:root {
    --brand: #128643; --brand-dark: #075d2d; --background: #f6f8f7; --surface: #fff;
    --text: #111b2e; --muted: #737d8e; --border: #e5e9e8; --danger: #d93641;
    --warning: #aa7200; --green-soft: #eaf7ef; --blue-team: #2462ce; --red-team: #d63845;
    --radius: 18px; --radius-small: 11px; --shadow: 0 4px 24px rgba(18,41,29,.045);
    --space: 20px;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text); background: var(--background); font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select, summary { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #62ac84; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.18; letter-spacing: -.9px; font-weight: 750; overflow-wrap: anywhere; }
h2 { font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -.45px; overflow-wrap: anywhere; }
h3 { font-size: 18px; }
strong { font-weight: 650; }
small { font-size: 12px; }
.icon { flex: 0 0 auto; vertical-align: middle; }
.muted { color: var(--muted); }
.green-text { color: var(--brand); }
.red-text { color: var(--danger); }
.app-shell { max-width: 1080px; margin: auto; padding: 0 30px; }
.app-header { display: flex; align-items: center; justify-content: space-between; padding: 28px 0 26px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 27px; font-weight: 800; color: #07291b; letter-spacing: -1px; }
.brand-ball { width: 36px; height: 36px; display: grid; place-items: center; color: var(--brand-dark); }
.brand-ball .icon { width: 36px; height: 36px; }
.profile-link { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #e8edeb; color: #18362a; font-weight: 700; font-size: 18px; }
.main-content { padding-bottom: 115px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 12px 0 26px; }
.page-heading p { font-size: 16px; margin-top: 7px; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.97); border-top: 1px solid var(--border); padding: 8px max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)); box-shadow: 0 -4px 24px rgba(18,41,29,.025); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #82888f; font-size: 12px; min-height: 54px; justify-content: center; position: relative; }
.bottom-nav .icon { width: 25px; height: 25px; }
.bottom-nav a.active { color: var(--brand); font-weight: 650; }
.bottom-nav a.active:after { content: ""; position: absolute; bottom: -3px; width: 32px; height: 3px; border-radius: 3px; background: var(--brand); }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(229,233,232,.5); }
.button { min-height: 46px; border-radius: var(--radius-small); padding: 11px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 600; font-size: 14px; border: 1px solid transparent; line-height: 1.3; text-align: center; transition: background .15s, box-shadow .15s; }
.button.primary { background: var(--brand); color: white; border-color: var(--brand); }
.button.primary:hover { background: #0b7637; }
.button.secondary { background: var(--surface); border-color: #d7dfdc; color: var(--text); }
.button.secondary:hover { background: #f3f8f5; }
.button.danger { color: var(--danger); background: #fff4f4; border-color: #efd0d2; }
.button.small { padding: 9px 12px; min-height: 44px; font-size: 13px; }
.button.small .icon { width: 18px; height: 18px; }
.button.full, .full { width: 100%; }
.button-row { display: flex; gap: 10px; align-items: stretch; }
.button-row > * { flex: 1; }
.spaced { margin: 18px 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 13px; gap: 12px; }
.section-heading h2 { font-size: 20px; }
.text-link { color: var(--brand); font-weight: 600; border: none; background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 4px 0; font-size: 14px; }
.text-link .icon { width: 17px; height: 17px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); }
.group-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.group-card { padding: 20px; overflow: hidden; position: relative; }
.featured { background-color: #1f6b39; background-image: url('/pitch.svg'); background-size: cover; border-radius: var(--radius); color: white; }
.group-card.featured { padding: 22px 12px 12px; }
.group-card-heading { display: flex; align-items: center; gap: 12px; padding: 0 7px 20px; position: relative; }
.group-card-heading h2 { font-size: 21px; }
.group-card-heading p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.featured .group-card-heading p { color: #d8eadd; }
.group-avatar { display: grid; place-items: center; background: #e0f3e7; color: var(--brand); width: 48px; height: 48px; border-radius: 50%; flex: 0 0 auto; }
.group-avatar .icon { width: 27px; height: 27px; }
.featured .group-avatar { background: #338b50; color: white; }
.group-card-body { background: white; border-radius: 13px; padding: 16px; color: var(--text); position: relative; }
.group-card:not(.featured) .group-card-body { padding: 0; }
.detail-line { display: flex; align-items: center; gap: 11px; margin-bottom: 8px; min-width: 0; }
.detail-line div { display: flex; flex-direction: column; }
.detail-line strong { font-size: 15px; }
.icon-tile { width: 35px; height: 35px; border-radius: 10px; display: grid; place-items: center; background: var(--green-soft); color: var(--brand-dark); flex: 0 0 auto; }
.icon-tile .icon { width: 20px; height: 20px; }
.card-summary { display: flex; margin: 19px 0 16px; gap: 12px; align-items: center; }
.attendance-summary { display: grid; grid-template-columns: repeat(3, 1fr); flex: 1; min-width: 0; padding: 10px 0; }
.attendance-summary > div { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 6px; border-right: 1px solid var(--border); }
.attendance-summary > div:last-child { border: none; }
.attendance-summary strong { font-size: 23px; line-height: 1.1; }
.attendance-summary span { font-size: 11px; color: var(--muted); margin-top: 5px; white-space: nowrap; }
.attendance-summary > div:first-child span { color: var(--brand); }
.money-note { background: #fff8e6; padding: 10px 11px; border-radius: 10px; color: var(--warning); display: flex; gap: 7px; align-items: center; min-width: 93px; }
.money-note .icon { width: 24px; }
.money-note small { color: #8a805e; font-size: 10px; line-height: 1.3; display: block; }
.money-note strong { color: #2c302b; font-size: 17px; display: block; }
.event-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.event-row { display: flex; padding: 14px; gap: 13px; align-items: center; min-width: 0; }
.date-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; padding: 8px 4px; background: var(--green-soft); color: var(--brand-dark); border-radius: 10px; flex-shrink: 0; line-height: 1.15; }
.date-tile strong { font-size: 25px; }
.date-tile small { text-transform: uppercase; font-size: 10px; font-weight: 600; }
.row-copy { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.row-copy > strong, .row-copy > a strong { font-size: 15px; line-height: 1.3; }
.row-copy > .muted { font-size: 12px; }
.meta { color: var(--muted); display: flex; align-items: center; gap: 6px; font-size: 13px; overflow-wrap: anywhere; }
.meta .icon { width: 16px; height: 16px; }
.trailing { width: 18px; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 25px; padding: 4px 9px; border-radius: 9px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 0; }
.pill.green { color: #09703b; background: #e8f7ee; }
.pill.amber { color: #8c5c00; background: #fff3d9; }
.pill.red { color: #b92935; background: #fdecef; }
.pill.neutral { color: #5a6572; background: #eef1f4; }
.back-link { display: inline-flex; align-items: center; gap: 5px; color: var(--brand); min-height: 44px; margin: 0 0 16px -5px; font-size: 14px; font-weight: 600; }
.back-link .icon { width: 20px; }
.entity-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 22px; }
.entity-heading > div { min-width: 0; }
.entity-heading h1 { font-size: 28px; }
.entity-heading p { margin-top: 5px; }
.next-event { padding: 22px 15px 15px; }
.next-event > .eyebrow { color: #d5e9da; }
.next-event > h2 { margin-top: 6px; font-size: 26px; }
.next-event > .meta { color: #e2eee5; font-size: 15px; margin: 8px 0 18px; }
.next-event-inner { color: var(--text); padding: 16px; background: white; border-radius: 12px; margin-bottom: 13px; }
.next-event > .button { width: 100%; }
.cost-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.cost-row .detail-line { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 22px 14px; margin: 18px 0; }
.stats > div { display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid var(--border); gap: 5px; text-align: center; min-width: 0; }
.stats > div:last-child { border: 0; }
.stats .icon { color: var(--brand); width: 24px; height: 24px; margin-bottom: 4px; }
.stats strong { font-size: 26px; line-height: 1.15; }
.stats small { color: var(--muted); font-size: 11px; }
.stats.plain { padding: 18px 0 0; margin: 18px 0 0; border-top: 1px solid var(--border); }
.stats.plain strong { color: var(--brand); }
.group-description { margin-top: 18px; font-size: 14px; }
.segmented { display: flex; background: #e9efeb; padding: 3px; border-radius: 10px; }
.segmented button { background: transparent; border: 0; padding: 9px 12px; min-height: 40px; color: var(--muted); border-radius: 8px; font-size: 12px; }
.segmented button.selected { background: white; box-shadow: 0 2px 8px #1435200a; color: var(--brand); font-weight: 600; }
.calendar-card { padding: 18px 16px; max-width: 720px; margin: auto; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.icon-button { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; background: transparent; border: 0; border-radius: 9px; }
.icon-button:hover { background: #edf4ef; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px 0; }
.weekday { color: var(--muted); text-align: center; font-size: 12px; padding: 9px 0; }
.calendar-day { border: 0; background: transparent; border-radius: 50%; min-width: 0; aspect-ratio: 1; max-width: 62px; width: 100%; justify-self: center; font-size: 17px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; position: relative; }
.calendar-day.outside { color: #adb4bd; }
.calendar-day.today span { text-decoration: underline; text-underline-offset: 4px; }
.calendar-day.selected { background: var(--brand); color: white; font-weight: 650; }
.event-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.calendar-day .event-dot { position: absolute; bottom: 5px; }
.calendar-day.selected .event-dot { background: white; }
.calendar-key { display: flex; align-items: center; gap: 8px; font-size: 11px; margin-top: 18px; }
.notice { border-radius: 12px; padding: 13px 15px; display: flex; align-items: center; gap: 10px; margin: 15px 0; font-size: 13px; overflow-wrap: anywhere; }
.notice .icon { width: 20px; height: 20px; }
.notice.success, .notice.notes { background: #eaf6ee; color: #12633a; }
.notice.error { background: #fdecef; color: #b52935; }
.notice.neutral { background: #edf0f5; color: #647085; }
.loading { display: flex; align-items: center; gap: 12px; padding: 24px 0; color: var(--muted); }
.spinner { width: 20px; height: 20px; border: 2px solid #d8e9df; border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 30px 22px; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; margin: 18px 0; }
.empty .icon-tile { width: 52px; height: 52px; border-radius: 15px; }
.empty p { max-width: 340px; font-size: 14px; }
.quiet-empty { color: var(--muted); text-align: center; padding: 20px 12px; font-size: 13px; }
.rsvp-card { padding: 17px; margin: 18px 0; }
.rsvp-card .section-heading { margin: 0 0 14px; }
.rsvp-card .section-heading h2 { font-size: 17px; }
.rsvp-card p { margin-top: 12px; font-size: 13px; }
.manager-actions { flex-wrap: wrap; margin: 18px 0; }
.manager-actions .button { min-width: 100px; }
.roster-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.attendance-card { padding: 9px; overflow: hidden; }
.attendance-heading { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 11px; background: #f0f7f3; }
.attendance-heading h2 { font-size: 17px; }
.attendance-card.red .attendance-heading { background: #fff0f2; }
.attendance-card.red .icon-tile { background: #fde3e8; color: var(--danger); }
.attendance-card.neutral .attendance-heading { background: #f0f2f5; }
.attendance-card.neutral .icon-tile { background: #e9edf1; color: #63727a; }
.attendance-card.amber .attendance-heading { background: #fff6e2; }
.participant-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 13px 8px; border-bottom: 1px solid var(--border); }
.participant-row:last-child { border: 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto; display: inline-grid; place-items: center; background: #dcf2e5; color: #187441; font-size: 16px; font-weight: 600; }
.avatar.small { width: 32px; height: 32px; font-size: 11px; background: #eef0f3; color: #465369; }
.avatar.large { width: 76px; height: 76px; font-size: 28px; }
.participant-copy { display: flex; flex: 1; flex-direction: column; min-width: 70px; overflow-wrap: anywhere; }
.participant-copy strong { font-size: 14px; }
.participant-controls { display: flex; align-items: center; gap: 8px; flex-basis: 100%; padding-left: 40px; }
.participant-controls select { width: 100%; max-width: 180px; padding: 7px 9px; min-height: 44px; font-size: 12px; }
.participant-controls .text-link { font-size: 11px; flex: 1; line-height: 1.3; }
.payment-action { min-width: 73px; }
.payment-audit { flex-basis: 100%; padding-left: 40px; color: var(--muted); font-size: 11px; }
.payment-audit summary { min-height: 28px; padding-top: 5px; }
.share-controls { display: flex; gap: 10px; margin-top: 22px; }
.share-controls > * { flex: 1; }
.share-message { padding: 18px; margin: 15px 0; }
.danger-zone { padding: 18px 0; color: var(--muted); }
.danger-zone summary { min-height: 44px; padding: 10px 0; font-size: 13px; }
.danger-zone p { margin-bottom: 12px; font-size: 13px; }
input:not([type=checkbox]), textarea, select { width: 100%; border: 1px solid #dbe1de; background: #fcfdfc; color: var(--text); border-radius: 10px; min-height: 46px; padding: 11px 13px; min-width: 0; }
textarea { resize: vertical; }
input[readonly] { color: var(--muted); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); }
.form-card { padding: 24px; max-width: 650px; margin: 18px auto; }
.form-card > label, .form-grid label, .share-message > label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 7px; }
.form-card > label:first-of-type { margin-top: 0; }
.form-card > small { display: block; margin: 6px 0; }
.form-card > button { margin-top: 22px; }
.form-card > h2 { margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox-label { display: flex !important; align-items: center; gap: 9px; min-height: 44px; font-size: 13px; font-weight: normal !important; }
.validation-message, .validation-errors, .text-danger { color: var(--danger); font-size: 13px; }
.validation-errors { padding-left: 16px; }
.invalid { border-color: var(--danger) !important; }
.group-select { border: 0; background: transparent; padding: 8px 0; font-size: 18px; color: var(--muted); margin: -10px 0 8px; }
.search-row { display: grid; grid-template-columns: 1fr 130px; gap: 10px; margin: 22px 0 16px; }
.search-input { display: flex; align-items: center; border: 1px solid #dfe5e2; border-radius: 12px; padding: 0 12px; gap: 8px; background: white; color: var(--muted); }
.search-input input { border: 0; padding-left: 0; background: transparent; outline-offset: -3px; }
.search-input .icon { width: 21px; }
.player-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.player-row { display: flex; align-items: center; gap: 12px; padding: 17px; min-width: 0; }
.player-owed { font-size: 15px; font-weight: 600; display: flex; flex-direction: column; text-align: right; }
.player-owed small { font-weight: 400; color: var(--muted); font-size: 10px; }
.player-row .icon { width: 18px; }
.profile-card { padding: 22px; margin: 18px 0; }
.profile-card .entity-heading { margin-bottom: 12px; }
.profile-card h2 { font-size: 20px; }
.profile-year { text-align: center; font-size: 11px; margin-top: 16px; }
.outstanding-card { background: #fff8e7; border-radius: var(--radius); display: flex; align-items: center; gap: 16px; padding: 20px; margin: 20px 0; }
.outstanding-card > div { flex: 1; display: flex; flex-direction: column; }
.outstanding-card strong { font-size: 30px; letter-spacing: -.6px; }
.outstanding-card small { color: #9c864d; }
.coin-tile { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: #fcedc3; color: #c08d03; }
.coin-tile .icon { width: 30px; height: 30px; }
.list-card { padding: 5px 18px; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: 0; }
.list-row > div, .list-row > span { display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; min-width: 0; }
.payment-row { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.payment-row:last-child { border-bottom: 0; }
.payment-row .date-tile { width: 42px; padding: 6px; }
.payment-row .date-tile strong { font-size: 21px; }
.payment-row .row-copy strong { font-size: 13px; }
.payment-row > strong { font-size: 13px; }
.payment-pill { cursor: pointer; min-height: 44px; padding: 8px 9px; }
.attendance-history { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; }
.history-item { flex: 1; min-width: 48px; display: flex; flex-direction: column; align-items: center; border: 1px solid var(--border); border-radius: 10px; padding: 10px 5px; gap: 7px; font-size: 11px; }
.history-item small { color: var(--muted); font-size: 10px; }
.history-status { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; color: white; }
.history-status .icon { width: 17px; }
.history-status.green { background: #28ac66; }
.history-status.red { background: #e54d5e; }
.member-settings { padding: 18px; margin-top: 24px; }
.member-settings summary { min-height: 44px; padding: 8px 0; font-weight: 600; }
.member-settings p { font-size: 13px; margin: 12px 0; }
.teams-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px 0; align-items: start; }
.team-card { border-radius: 15px; padding: 14px; border: 1px solid #e2e8ed; background: #edf4ff; }
.team-card.blue { background: #edf4ff; }
.team-card.red { background: #fff0f1; border-color: #f4e2e5; }
.team-card.unassigned { background: #f1f4f3; grid-column: 1/-1; }
.team-heading { display: flex; gap: 12px; align-items: center; margin: 4px 0 14px; }
.team-heading h2 { font-size: 20px; }
.team-heading p { color: var(--muted); font-size: 13px; }
.team-card.blue .avatar, .team-card.blue .group-avatar { background: #dceaff; color: var(--blue-team); }
.team-card.red .avatar, .team-card.red .group-avatar { background: #fce0e4; color: var(--red-team); }
.team-player, .published-player { display: flex; align-items: center; gap: 8px; padding: 8px; background: white; border: 1px solid #e2e8ed; border-radius: 9px; margin-top: 7px; }
.team-player strong, .published-player strong { font-size: 13px; flex: 1; overflow-wrap: anywhere; min-width: 0; }
.team-player select { width: 112px; min-height: 44px; padding: 8px; font-size: 12px; }
.team-card > h2 { margin: 0 0 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.team-card > h2 small { color: var(--muted); font-size: 12px; font-weight: 400; }
.order-card { padding: 18px; margin: 18px 0; }
.order-card .section-heading { margin-top: 0; }
.order-card > p { font-size: 13px; margin-bottom: 14px; }
.order-row { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--border); padding: 6px 0; }
.order-row strong { flex: 1; font-size: 13px; overflow-wrap: anywhere; }
.order-row .icon-button { width: 44px; }
.order-number { color: var(--muted); width: 20px; font-size: 13px; }
.swap-card { padding: 18px; margin: 18px 0; }
.swap-card .button { margin-top: 15px; }
.auth-wrap { max-width: 440px; margin: 15px auto 0; }
.auth-intro { text-align: center; margin-bottom: 25px; }
.auth-intro h1 { margin-top: 15px; }
.auth-intro > p:last-child { margin-top: 9px; }
.invite-ball { display: inline-grid; place-items: center; width: 70px; height: 70px; border-radius: 22px; background: #e1f2e7; color: var(--brand-dark); margin: 5px 0 20px; }
.invite-ball .icon { width: 44px; height: 44px; }
.auth-wrap .form-card { padding: 25px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--muted); }
.auth-switch .text-link { font-size: 13px; }
.account-wrap { max-width: 650px; margin: auto; }
.account-wrap > form:last-child { margin-top: 14px; }
.invite-wrap { max-width: 440px; margin: 30px auto; text-align: center; }
.invite-wrap > h1 { margin-top: 12px; }
.invite-card { padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: center; margin-top: 26px; }
.invite-card h2 { font-size: 25px; }
.invite-card .group-avatar { width: 64px; height: 64px; }
.invite-card > small { font-size: 12px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; padding: 12px; background: white; z-index: 100; }
#blazor-error-ui { display: none; position: fixed; bottom: 90px; background: #fff2cf; padding: 15px 25px; width: 100%; z-index: 100; box-shadow: 0 -1px 2px #0002; }
#blazor-error-ui a { text-decoration: underline; margin-left: 10px; }
#blazor-error-ui .dismiss { float: right; cursor: pointer; }
/* These small compatibility rules style the remaining standard Identity security screens. */
.form-floating { display: flex; flex-direction: column-reverse; gap: 7px; margin: 18px 0; }
.form-label { font-size: 13px; font-weight: 600; }
.btn { min-height: 44px; padding: 11px 15px; border-radius: 10px; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; }
.btn-primary { background: var(--brand); color: white; }
.w-100 { width: 100%; }
.alert { padding: 14px; margin: 16px 0; border-radius: 10px; background: #eaf6ee; font-size: 13px; }
.alert-danger { background: #fdecef; color: var(--danger); }
hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
@media (min-width: 800px) {
    .app-shell { padding-top: 12px; }
    .bottom-nav { left: 50%; right: auto; width: 470px; transform: translateX(-50%); bottom: 16px; border: 1px solid var(--border); border-radius: 18px; padding: 8px 14px 12px; box-shadow: 0 5px 35px #12341b15; }
    .next-event { max-width: 660px; }
    .next-event + .button-row { max-width: 660px; }
    .team-toolbar { max-width: 650px; }
    .profile-card { max-width: 650px; }
    .outstanding-card { max-width: 650px; }
    .event-stats { max-width: 660px; }
    .rsvp-card { max-width: 660px; }
}
@media (max-width: 799px) {
    :root { --space: 16px; --radius: 16px; }
    .app-shell { padding: 0 18px; }
    .app-header { padding: 22px 0 20px; }
    .brand { font-size: 25px; }
    .brand-ball, .brand-ball .icon { width: 33px; height: 33px; }
    .page-heading { margin: 10px 0 22px; }
    .page-heading p { font-size: 14px; }
    .group-grid, .event-grid, .player-grid, .roster-grid, .teams-grid { grid-template-columns: 1fr; }
    .group-card { padding: 17px; }
    .group-card.featured { padding: 20px 10px 10px; }
    .group-card-heading h2 { font-size: 20px; }
    .group-card-body { padding: 14px; }
    .group-card .button { padding: 11px 10px; font-size: 13px; }
    .group-card .button .icon { width: 18px; }
    .group-card-heading { padding-bottom: 18px; }
    .card-summary { gap: 9px; }
    .money-note { padding: 9px; min-width: 83px; }
    .money-note .icon { display: none; }
    .attendance-summary > div { padding: 0 4px; }
    .attendance-summary span { font-size: 10px; }
    .event-row { padding: 13px; gap: 11px; }
    .event-row .count-pill { font-size: 10px; padding: 5px 7px; }
    .event-row .count-pill + .trailing { display: none; }
    .row-copy > strong { font-size: 14px; }
    .entity-heading { gap: 12px; }
    .entity-heading h1 { font-size: 25px; }
    .entity-heading > .group-avatar { width: 44px; height: 44px; }
    .next-event > h2 { font-size: 23px; }
    .section-heading h2 { font-size: 18px; }
    .segmented button { padding: 9px; font-size: 11px; }
    .calendar-card { padding: 14px 10px; }
    .calendar-heading h2 { font-size: 19px; }
    .calendar-day { min-height: 44px; font-size: 16px; }
    .calendar-grid { gap: 7px 0; }
    .calendar-card + .section-heading h2 { font-size: 16px; max-width: 165px; }
    .calendar-card + .section-heading .button { padding: 10px; font-size: 12px; }
    .form-card { padding: 20px; }
    .manager-actions .button { font-size: 12px; padding: 10px 7px; }
    .manager-actions .icon { width: 17px; }
    .participant-controls { padding-left: 40px; }
    .search-row { grid-template-columns: 1fr 112px; }
    .search-row select { font-size: 12px; padding: 10px; }
    .player-row { padding: 15px; gap: 10px; }
    .profile-card { padding: 18px; }
    .profile-card .avatar.large { width: 62px; height: 62px; font-size: 24px; }
    .profile-card h2 { font-size: 18px; }
    .list-card { padding: 4px 13px; }
    .payment-row { gap: 7px; }
    .payment-row .row-copy strong { font-size: 12px; }
    .payment-row .row-copy small { font-size: 10px; }
    .team-toolbar { flex-wrap: wrap; }
    .team-toolbar > .button { flex-basis: 45%; padding: 10px 8px; font-size: 12px; }
    .team-toolbar > .primary { flex-basis: 100%; }
    .team-toolbar .icon { width: 17px; }
    .auth-wrap { margin-top: 6px; }
    .auth-wrap .form-card { padding: 22px; }
    .invite-wrap { margin-top: 10px; }
}
@media (max-width: 370px) {
    .app-shell { padding: 0 14px; }
    .group-card-heading h2 { font-size: 19px; }
    .group-card .button-row { flex-wrap: wrap; }
    .group-card .button-row > * { flex-basis: 100%; }
    .card-summary { flex-wrap: wrap; }
    .money-note { width: 100%; }
    .event-row .count-pill { display: none; }
    .payment-row { flex-wrap: wrap; }
    .payment-row .row-copy { flex-basis: 60%; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation: none !important; transition: none !important; } }
.compact-group-next { display: flex; align-items: center; gap: 12px; padding: 0 5px; }
.compact-group-next .row-copy > .muted { font-size: 12px; }
.featured { background-position: right top; }
h1:focus { outline: none; }
/* Readable secondary text and navigation labels at phone sizes. */
:root { --muted: #657184; }
.bottom-nav a { color: #68737b; }
.calendar-day.outside { color: #6e7782; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.order-row strong small, .team-player strong small { display: block; font-size: 11px; font-weight: 400; margin-top: 2px; }
