:root {
    --yellow: #f4cd00;
    --yellow-soft: #fff7c8;
    --ink: #171711;
    --muted: #6c6c61;
    --line: #e6e4da;
    --paper: #ffffff;
    --background: #f6f5ef;
    --green: #147a4b;
    --red: #b83a32;
    --shadow: 0 14px 38px rgba(34, 33, 24, .08);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--background); }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration-color: rgba(23, 23, 17, .35); text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
.shell { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.site-header { background: var(--ink); color: white; position: sticky; top: 0; z-index: 20; box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.header-row { height: 74px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--yellow); color: var(--ink); font-weight: 950; font-size: 22px; transform: rotate(-3deg); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; }
.brand small { margin-top: 2px; color: #bdbdaf; font-size: 12px; }
.quiet-button { border: 0; color: #d5d4c9; background: transparent; cursor: pointer; padding: 10px; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-actions form { margin: 0; }
.quiet-link { color: #d5d4c9; padding: 10px; text-decoration: none; font-size: 13px; }
.team-nav { border-top: 1px solid #32322c; }
.nav-scroll { display: flex; gap: 6px; overflow-x: auto; padding-block: 8px; scrollbar-width: none; }
.team-nav a { color: #cdccc1; text-decoration: none; padding: 9px 12px; border-radius: 9px; white-space: nowrap; font-size: 14px; font-weight: 650; }
.team-nav a:hover { color: white; background: #2b2b26; }
.team-nav a.nav-active { color: var(--ink); background: var(--yellow); box-shadow: inset 0 -3px 0 #a88900; font-weight: 800; }
.team-nav a:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.page { padding-block: 38px 60px; }
.footer { padding-block: 24px 42px; color: var(--muted); font-size: 13px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(32px, 5vw, 54px); line-height: .98; letter-spacing: -.045em; }
h2 { margin-bottom: 6px; letter-spacing: -.025em; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading p { color: var(--muted); margin-bottom: 0; }
.eyebrow { display: block; margin-bottom: 10px; color: #7b6810; font-size: 12px; line-height: 1; font-weight: 850; text-transform: uppercase; letter-spacing: .13em; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid transparent; border-radius: 12px; padding: 10px 16px; text-decoration: none; font-weight: 800; cursor: pointer; }
.button-primary { color: var(--ink); background: var(--yellow); border-color: #d7b400; }
.button-dark { color: white; background: var(--ink); }
.button-light { color: var(--ink); background: white; border-color: var(--line); }
.button-danger { color: white; background: var(--red); border-color: #972d27; }
.button-wide { width: 100%; }
.next-match { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 24px; overflow: hidden; margin-bottom: 20px; padding: 30px; border-radius: 24px; background: var(--yellow); box-shadow: var(--shadow); }
.next-match::after { content: ""; position: absolute; width: 230px; height: 230px; border: 50px solid rgba(255,255,255,.22); border-radius: 50%; top: -115px; right: 120px; }
.next-match > * { position: relative; z-index: 1; }
.next-match h2 { max-width: 700px; font-size: clamp(24px, 4vw, 38px); }
.next-match p { margin-bottom: 0; }
.next-match .next-absence { display: inline-flex; margin-top: 10px; padding: 6px 9px; border-radius: 9px; color: #7f2924; background: rgba(255,255,255,.68); font-size: 11px; }
.next-absence strong { margin-right: 4px; }
.match-date { font-weight: 800; margin: 10px 0 8px !important; }
.status-chip { display: inline-flex; padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.6); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.next-time { min-width: 140px; text-align: right; }
.next-time small, .next-time strong { display: block; }
.next-time small { font-weight: 750; }
.next-time strong { font-size: 48px; letter-spacing: -.05em; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.stat-card strong, .stat-card span { display: block; }
.stat-card strong { font-size: 31px; }
.stat-card span { color: var(--muted); font-size: 14px; }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-block: 26px 42px; padding: 26px 28px; border-radius: var(--radius); color: white; background: #24241f; }
.callout > div { display: grid; grid-template-columns: 38px auto; column-gap: 14px; }
.callout .step { grid-row: 1 / 3; width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink); background: var(--yellow); border-radius: 50%; font-weight: 900; }
.callout h2, .callout p { margin-bottom: 0; }
.callout p { color: #c2c1b7; }
.callout .button { color: var(--ink); background: var(--yellow); white-space: nowrap; }
.section-block { margin-top: 42px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 16px; }
.section-heading .eyebrow { margin-bottom: 7px; }
.section-heading h2 { font-size: 27px; margin: 0; }
.fixture-list { display: grid; gap: 10px; }
.fixture-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.fixture-row.large { padding: 20px; }
.date-tile { width: 48px; height: 52px; flex: 0 0 auto; display: grid; place-content: center; text-align: center; border-radius: 11px; color: var(--ink); background: var(--yellow-soft); }
.date-tile strong, .date-tile span { display: block; line-height: 1; }
.date-tile strong { font-size: 20px; }
.date-tile span { margin-top: 4px; text-transform: uppercase; font-size: 10px; font-weight: 800; }
.fixture-main { display: grid; gap: 4px; flex: 1; min-width: 0; }
.fixture-main strong, .fixture-main span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fixture-main span { color: var(--muted); font-size: 13px; }
.fixture-main .fixture-absence { color: #9b352f; font-size: 11px; }
.plan-chip { display: inline-flex; padding: 6px 9px; border-radius: 999px; background: #efeee8; font-size: 11px; font-weight: 800; white-space: nowrap; }
.plan-chip.published { color: var(--green); background: #dff3e9; }
.plan-chip.changed { color: var(--red); background: #f9e3df; }
.panel, .table-card, .panel-list { border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 24px rgba(34,33,24,.04); }
.team-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.team-card { display: flex; align-items: center; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; text-decoration: none; box-shadow: var(--shadow); }
.team-card > span:nth-child(2) { display: grid; gap: 5px; flex: 1; }
.team-card strong { font-size: 19px; }
.team-card small { color: var(--muted); }
.panel { padding: 26px; }
.panel-list { padding: 12px; }
.panel-list .fixture-row { border-color: transparent; border-bottom-color: var(--line); border-radius: 0; }
.panel-list .fixture-row:last-child { border-bottom: 0; }
.sync-status { display: flex; align-items: center; gap: 12px; margin: -8px 0 18px; padding: 13px 15px; border: 1px solid #bfe3cf; border-radius: 13px; background: #eaf7f0; }
.sync-status > div { display: grid; gap: 2px; }
.sync-status small { color: var(--muted); }
.sync-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(20,122,75,.12); }
.sync-status.sync-error { border-color: #ecc0bc; background: #fbe8e6; }
.sync-status.sync-error .sync-dot { background: var(--red); box-shadow: 0 0 0 5px rgba(184,58,50,.12); }
.fixture-review { border-left: 4px solid #d3ae00 !important; background: #fffdf2; }
.change-summary { color: #786300 !important; white-space: normal !important; font-weight: 700; }
.cancelled-label { display: inline-flex; margin-left: 6px; padding: 3px 5px; border-radius: 5px; color: white; background: var(--red); font-size: 9px; font-style: normal; vertical-align: 2px; }
.row-actions { display: grid; justify-items: end; gap: 7px; }
.row-actions form { margin: 0; }
.review-button { padding: 5px 8px; border: 1px solid #d8bd3d; border-radius: 8px; color: #6d5900; background: #fff4b8; cursor: pointer; font-size: 11px; font-weight: 800; }
.table-card { overflow: hidden; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 15px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table th { color: var(--muted); background: #faf9f5; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td small { display: block; color: var(--muted); }
.muted-row { opacity: .55; }
.tag { display: inline-flex; margin: 2px 4px 2px 0; padding: 4px 7px; background: #f0efe9; border-radius: 7px; font-size: 12px; }
.yesno { display: inline-flex; min-width: 40px; justify-content: center; padding: 5px 7px; color: var(--muted); background: #eeeeea; border-radius: 8px; font-size: 11px; font-weight: 850; }
.yesno.yes { color: var(--green); background: #dff3e9; }
.row-link { font-size: 13px; font-weight: 800; white-space: nowrap; }
.bottom-actions, .action-group, .form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.availability-table th, .availability-table td { min-width: 100px; text-align: center; }
.availability-table th:first-child, .availability-table td:first-child { min-width: 160px; text-align: left; position: sticky; left: 0; z-index: 2; background: white; }
.availability-table thead th:first-child { background: #faf9f5; }
.availability-table th small { display: block; margin-top: 3px; text-transform: none; letter-spacing: 0; }
.availability-explanation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 30px; }
.availability-explanation.single-message { grid-template-columns: 1fr; }
.availability-explanation > div { display: grid; gap: 4px; padding: 17px 18px; border: 1px solid #e5d469; border-radius: 14px; background: var(--yellow-soft); }
.availability-explanation span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.availability-heading { margin-top: 0; }
.check-cell { display: inline-grid; place-items: center; cursor: pointer; }
.check-cell input { position: absolute; opacity: 0; }
.check-cell span { width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid #d9d8cf; border-radius: 10px; color: transparent; font-weight: 950; }
.check-cell input:checked + span { color: var(--ink); border-color: #d2af00; background: var(--yellow); }
.absence-section .section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.absence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.absence-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 24px rgba(34,33,24,.04); }
.absence-card header { padding: 18px 20px; border-bottom: 1px solid var(--line); background: #faf9f5; }
.absence-card header span { color: #806c08; font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.absence-card h3 { margin: 5px 0 0; font-size: 16px; }
.absence-player-list { display: grid; padding: 8px 18px; }
.absence-player { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 54px; border-bottom: 1px solid var(--line); cursor: pointer; }
.absence-player:last-child { border-bottom: 0; }
.absence-player input { width: 19px; height: 19px; accent-color: var(--red); }
.absence-player span, .absence-player strong, .absence-player small { display: block; }
.absence-player strong { font-size: 13px; }
.absence-player small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.absence-player em { padding: 4px 7px; border-radius: 7px; color: var(--muted); background: #f0efe9; font-size: 9px; font-style: normal; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.absence-player:has(input:checked) em { color: white; background: var(--red); }
.availability-match-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.availability-match-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.availability-match-card > header { padding: 20px; color: white; background: var(--ink); }
.availability-match-card > header span { color: var(--yellow); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.availability-match-card > header h2 { margin: 6px 0 0; font-size: 18px; }
.family-absence-list { display: grid; }
.family-absence-group { padding: 15px 18px 17px; border-bottom: 1px solid var(--line); }
.family-absence-group:last-child { border-bottom: 0; }
.family-absence-group h3 { margin: 0 0 9px; font-size: 14px; }
.absence-toggle { position: relative; display: grid; grid-template-columns: 25px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 46px; margin-top: 5px; padding: 7px 9px; border-radius: 10px; cursor: pointer; }
.absence-toggle:hover { background: #faf9f5; }
.absence-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.absence-box { width: 23px; height: 23px; display: grid; place-items: center; border: 2px solid #cfcec3; border-radius: 7px; color: transparent; background: white; font-size: 19px; font-weight: 900; line-height: 1; }
.absence-toggle input:checked + .absence-box { color: white; border-color: #972d27; background: var(--red); }
.absence-toggle input:focus-visible + .absence-box { outline: 3px solid rgba(244,205,0,.6); outline-offset: 2px; }
.absence-toggle strong, .absence-toggle small { display: block; }
.absence-toggle strong { font-size: 12px; }
.absence-toggle small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.parent-toggle { border: 1px solid #e5e3d8; background: #faf9f5; }
.player-toggle { margin-left: 15px; }
.no-player-note { margin: 8px 0 0 44px; color: var(--muted); font-size: 10px; }
.roster-heading { align-items: center; }
.action-group { margin: 0; flex-wrap: wrap; }
.action-group form { margin: 0; }
.roster-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.roster-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.roster-card header { min-height: 96px; display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 20px; border-bottom: 1px solid var(--line); }
.roster-card header span:first-child { color: #806c08; font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.roster-card h2 { margin-top: 6px; font-size: 19px; }
.match-meta { display: flex; gap: 20px; padding: 12px 20px; background: #faf9f5; color: var(--muted); font-size: 12px; }
.location-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 10px 20px; border-top: 1px solid var(--line); background: #faf9f5; }
.location-strip small, .location-strip strong { display: block; }
.location-strip small { color: #806c08; font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.location-strip strong { margin-top: 2px; font-size: 12px; }
.card-warning { padding: 10px 20px; color: #6d5900; background: #fff5be; font-size: 11px; font-weight: 750; }
.absence-strip { padding: 9px 20px; color: #8f302a; background: #fff0ee; font-size: 11px; }
.match-meta strong { color: var(--ink); }
.jobs { display: grid; gap: 16px; padding: 20px; }
.job-row { display: flex; gap: 12px; }
.job-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: var(--yellow-soft); }
.job-row div { display: grid; gap: 3px; }
.job-row small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.job-row strong { display: block; }
.job-row em { color: #806c08; font-size: 11px; font-style: normal; }
.leader-row .job-icon { color: white; background: var(--ink); }
.roster-card footer { display: flex; justify-content: space-between; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 800; }
.points { display: inline-grid; place-items: center; min-width: 34px; padding: 5px; border-radius: 9px; background: var(--yellow-soft); font-weight: 900; }
.narrow-page { width: min(700px, 100%); margin-inline: auto; }
.form-stack { display: grid; gap: 18px; }
.form-stack > div { display: grid; gap: 7px; }
.form-stack label { font-weight: 800; font-size: 13px; }
.form-stack input[type="text"], .form-stack input[type="email"], .form-stack input[type="password"], .form-stack input[type="number"], .form-stack input[type="datetime-local"], .form-stack input[type="time"], .form-stack textarea, .form-stack select { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid #cfcec3; border-radius: 10px; color: var(--ink); background: white; }
.form-stack textarea { resize: vertical; }
.form-stack input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--yellow); }
.form-stack .helptext { color: var(--muted); font-size: 11px; }
.form-stack ul.errorlist { margin: 0; padding-left: 18px; color: var(--red); font-size: 12px; }
.back-link { display: block; margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.auth-wrap { min-height: 65vh; display: grid; place-items: center; }
.auth-card { width: min(460px, 100%); padding: 34px; border-radius: 22px; background: white; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 38px; }
.auth-card > p { color: var(--muted); }
.helper { margin: 20px 0 0; text-align: center; font-size: 12px; }
.whatsapp-card { padding: 18px; border: 1px solid #d9e3d8; border-radius: 20px; background: #eef8ef; box-shadow: var(--shadow); }
.whatsapp-card textarea { width: 100%; min-height: 490px; padding: 18px; border: 0; border-radius: 14px; resize: vertical; color: #20251f; background: white; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; line-height: 1.55; }
.whatsapp-card .button { margin-top: 12px; }
.copy-status { margin: 10px 0 0; color: var(--green); text-align: center; font-size: 12px; font-weight: 800; }
.reset-panel { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 42px; padding: 24px 26px; border: 1px solid #ecc0bc; border-radius: var(--radius); background: #fff7f5; }
.reset-panel h2 { font-size: 22px; }
.reset-panel p { max-width: 700px; margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.reset-panel form { flex: 0 0 auto; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr); gap: 22px; align-items: start; }
.whatsapp-settings-form { padding: 20px; }
.settings-intro { display: grid; gap: 4px; margin-bottom: 15px; padding: 14px; border-radius: 12px; background: var(--yellow-soft); }
.settings-intro span { color: var(--muted); font-size: 12px; }
.toggle-list { display: grid; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 5px; border-bottom: 1px solid var(--line); cursor: pointer; }
.toggle-row strong { font-size: 13px; }
.toggle-row input { width: 21px; height: 21px; flex: 0 0 auto; accent-color: var(--yellow); }
.extra-text-field { display: grid; gap: 7px; padding: 20px 5px 5px; }
.extra-text-field label { font-size: 13px; font-weight: 800; }
.extra-text-field textarea { width: 100%; padding: 12px; border: 1px solid #cfcec3; border-radius: 10px; resize: vertical; }
.extra-text-field small { color: var(--muted); font-size: 11px; }
.settings-preview { position: sticky; top: 150px; padding: 22px; border: 1px solid #cfe1d0; border-radius: var(--radius); background: #edf7ee; }
.settings-preview > p { color: var(--muted); font-size: 12px; }
.settings-preview pre { max-height: 540px; overflow: auto; margin: 0 0 14px; padding: 16px; border-radius: 12px; overflow-wrap: anywhere; white-space: pre-wrap; color: #20251f; background: white; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.settings-preview a { font-size: 12px; font-weight: 800; }
.share-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; max-width: 480px; margin: 0 auto 18px; }
.share-toolbar-wide { max-width: 1180px; }
.share-toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.share-range { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.share-range a { padding: 8px 10px; border-radius: 8px; font-size: 11px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.share-range a.active { color: var(--yellow); background: var(--ink); }
.share-sheet { overflow: hidden; max-width: 480px; margin-inline: auto; border: 1px solid #dad8cc; border-radius: 24px; background: white; box-shadow: var(--shadow); }
.share-title { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; background: var(--yellow); }
.share-title h1 { margin: 0; font-size: 36px; }
.share-title p { margin: 5px 0 0; font-size: 13px; font-weight: 750; }
.share-title .eyebrow { color: #5f5109; }
.share-badge { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; color: var(--yellow); background: var(--ink); font-size: 27px; font-weight: 950; transform: rotate(-3deg); }
.share-concept-warning { padding: 10px 18px; color: white; background: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .06em; text-align: center; }
.share-fixtures { display: grid; }
.share-fixture { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 22px 20px; border-bottom: 1px solid var(--line); }
.share-fixture:last-child { border-bottom: 0; }
.share-date { width: 54px; min-height: 70px; display: grid; place-content: center; border-radius: 14px; text-align: center; background: var(--yellow-soft); }
.share-date strong { margin-block: 3px; font-size: 27px; line-height: 1; }
.share-date span { color: #776408; font-size: 10px; font-weight: 900; line-height: 1; text-transform: uppercase; }
.share-match-title { display: flex; align-items: flex-start; gap: 8px; }
.share-match-title > span { flex: 0 0 auto; margin-top: 1px; padding: 4px 6px; border-radius: 6px; color: var(--yellow); background: var(--ink); font-size: 10px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.share-match h2 { margin: 0; font-size: 19px; line-height: 1.18; }
.share-alert { margin-top: 12px; padding: 9px 11px; border-radius: 9px; font-size: 12px; font-weight: 900; letter-spacing: .025em; }
.share-alert-danger { color: white; background: var(--red); }
.share-alert-warning { color: #5d4b00; background: #ffeb86; }
.share-times { display: grid; grid-template-columns: 1.2fr .8fr; gap: 8px; margin: 13px 0 12px; }
.share-times > span { min-width: 0; padding: 9px 10px; border-radius: 10px; background: #f3f2ec; }
.share-times .share-primary-time { background: var(--yellow-soft); }
.share-times small, .share-times strong, .share-times em { display: block; }
.share-times small { color: #625409; font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.share-times strong { margin-top: 2px; font-size: 18px; line-height: 1; }
.share-times em { margin-top: 5px; color: #5e5d54; font-size: 11px; font-style: normal; font-weight: 750; line-height: 1.2; }
.share-match .share-absence { display: grid; gap: 2px; margin: 0 0 12px; padding: 9px 11px; border: 1px solid #f0c4c0; border-radius: 9px; color: #852c26; background: #fff0ee; font-size: 13px; }
.share-absence strong { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.share-absence span { color: #57211d; font-weight: 800; }
.share-jobs { display: grid; gap: 0; }
.share-jobs > span { display: grid; grid-template-columns: 132px 1fr; gap: 10px; min-width: 0; padding: 7px 0; border-bottom: 1px dashed #dedcd0; }
.share-jobs > span:last-child { border-bottom: 0; }
.share-jobs small { color: #6f5e06; font-size: 11px; font-weight: 900; letter-spacing: .035em; text-transform: uppercase; }
.share-jobs strong { overflow-wrap: anywhere; font-size: 15px; line-height: 1.25; }
.share-location { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.share-location span { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 9px; background: #f3f2ec; }
.share-location small { color: #625409; font-size: 10px; font-weight: 900; letter-spacing: .035em; text-transform: uppercase; }
.share-location strong { font-size: 13px; }
.share-footer { display: flex; justify-content: space-between; gap: 12px; padding: 13px 20px; color: #c8c7bd; background: var(--ink); font-size: 10px; font-weight: 800; }
.share-table-sheet { max-width: 1180px; }
.share-table-wrap { overflow-x: auto; }
.share-overview-table { width: 100%; min-width: 1040px; border-collapse: collapse; table-layout: fixed; }
.share-overview-table th { padding: 11px 8px; color: #d7d6cd; background: #292923; font-size: 9px; font-weight: 900; letter-spacing: .045em; text-align: left; text-transform: uppercase; }
.share-overview-table th:nth-child(1) { width: 82px; }
.share-overview-table th:nth-child(2) { width: 225px; }
.share-overview-table th:nth-child(3) { width: 145px; }
.share-overview-table th:nth-child(4) { width: 78px; }
.share-overview-table th:nth-child(5) { width: 210px; }
.share-overview-table th:nth-child(6), .share-overview-table th:nth-child(7) { width: 115px; }
.share-overview-table th:nth-child(8) { width: 150px; }
.share-overview-table td { padding: 13px 8px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
.share-overview-table tbody tr:nth-child(even) { background: #fbfaf6; }
.share-overview-table tbody tr:last-child td { border-bottom: 0; }
.share-overview-table td strong { font-weight: 800; }
.share-table-date strong { font-size: 13px; text-transform: uppercase; }
.share-table-match > span { display: inline-flex; margin: 0 5px 4px 0; padding: 4px 7px; border-radius: 5px; font-size: 9px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.share-table-match > .share-side-home { color: var(--ink); background: var(--yellow); }
.share-table-match > .share-side-away { color: white; background: var(--ink); }
.share-table-match > strong { display: block; font-size: 13px; line-height: 1.25; }
.share-table-match > small { display: inline-flex; margin-top: 5px; padding: 3px 5px; border-radius: 5px; color: #5d4b00; background: #ffeb86; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.share-table-primary-time { background: var(--yellow-soft); }
.share-table-primary-time strong, .share-table-primary-time small { display: block; }
.share-table-primary-time strong, .share-table-kickoff strong { font-size: 16px; }
.share-table-primary-time small { margin-top: 3px; color: #5e5d54; font-size: 9px; font-weight: 750; line-height: 1.2; }
.share-table-absence { color: #8f302a; }
.share-table-empty { color: #a7a69d; }
.share-table-cancelled { background: #fff0ee !important; }
.share-table-cancelled-message { color: #8f302a; text-align: center; }
.share-table-cancelled-message strong, .share-table-cancelled-message span { display: block; }
.share-table-cancelled-message strong { font-size: 17px; }
.share-table-cancelled-message span { margin-top: 3px; font-size: 10px; }
.share-sheet-scroll { max-width: 100%; overflow-x: auto; padding-bottom: 8px; }
.share-parent-sheet { width: var(--parent-sheet-width, 720px); max-width: none; overflow: clip; }
.share-parent-overview { display: grid; }
.share-parent-group + .share-parent-group { border-top: 10px solid var(--ink); }
.share-parent-scroll { overflow-x: visible; }
.share-parent-matches, .share-parent-tasks { width: 100%; min-width: 680px; border-collapse: collapse; table-layout: fixed; }
.share-parent-label-col { width: 126px; }
.share-parent-matches th, .share-parent-matches td, .share-parent-tasks th, .share-parent-tasks td { padding: 9px 7px; border-right: 1px solid #dedcd2; border-bottom: 1px solid #dedcd2; font-size: 11px; line-height: 1.25; overflow-wrap: anywhere; }
.share-parent-matches tr > *:last-child, .share-parent-tasks tr > *:last-child { border-right: 0; }
.share-parent-matches thead th { padding-block: 11px; background: #f4f3ed; text-align: center; }
.share-parent-matches thead th:first-child { color: white; background: var(--ink); font-size: 10px; letter-spacing: .045em; text-align: left; text-transform: uppercase; }
.share-parent-matches thead th:not(:first-child) { border-top: 6px solid transparent; }
.share-parent-matches thead .share-parent-head-home { border-top-color: var(--yellow); }
.share-parent-matches thead .share-parent-head-away { border-top-color: var(--ink); }
.share-parent-matches thead th span, .share-parent-matches thead th strong { display: block; }
.share-parent-matches thead th span { width: fit-content; margin: 0 auto 5px; padding: 3px 6px; border-radius: 5px; font-size: 8px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.share-parent-head-home span { color: var(--ink); background: var(--yellow); }
.share-parent-head-away span { color: white; background: var(--ink); }
.share-parent-matches thead th strong { font-size: 12px; text-transform: uppercase; }
.share-parent-matches tbody th { color: #665708; background: #f8f6e9; font-size: 9px; font-weight: 900; letter-spacing: .035em; text-align: left; text-transform: uppercase; }
.share-parent-matches tbody td { text-align: center; vertical-align: top; }
.share-parent-matches tbody td > strong:first-child { font-size: 11px; }
.share-parent-primary-row td { background: var(--yellow-soft); }
.share-parent-primary-row td > strong, .share-parent-primary-row td > small { display: block; }
.share-parent-primary-row td > strong { font-size: 16px; line-height: 1; }
.share-parent-primary-row td > small { margin-top: 3px; color: #6b6652; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.share-parent-kickoff { font-size: 14px; }
.share-parent-absence { color: #8f302a; }
.share-parent-cancelled, .share-parent-changed { display: block; margin-top: 5px; padding: 3px 5px; border-radius: 5px; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.share-parent-cancelled { color: white; background: var(--red); }
.share-parent-changed { color: #5d4b00; background: #ffeb86; }
.share-parent-tasks { margin-top: 16px; }
.share-parent-tasks thead th { padding-block: 9px; color: white; background: var(--ink); font-size: 9px; font-weight: 900; letter-spacing: .04em; text-align: center; text-transform: uppercase; }
.share-parent-tasks thead th:first-child { color: var(--ink); background: var(--yellow); text-align: left; }
.share-parent-tasks tbody th { font-size: 11px; text-align: left; }
.share-parent-tasks tbody tr > * { background: white; }
.share-parent-tasks tbody tr:nth-child(even) > * { background: #f2f3f5; }
.share-parent-tasks tbody td { height: 37px; text-align: center; vertical-align: middle; }
@media screen {
    .share-parent-matches tr > th:first-child, .share-parent-tasks tr > th:first-child { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 #dedcd2; }
    .capture-mode .share-parent-matches tr > th:first-child, .capture-mode .share-parent-tasks tr > th:first-child { position: static; box-shadow: none; }
}
.share-parent-task-cell { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 3px; }
.share-parent-task { display: inline-flex; align-items: center; justify-content: center; padding: 4px 6px; border-radius: 6px; font-size: 8px; font-weight: 900; letter-spacing: .02em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.share-parent-task-drive { color: #193b05; background: #8fd34e; }
.share-parent-task-lead { color: var(--ink); background: var(--yellow); }
.share-parent-task-wash { color: #063449; background: #36b5e5; }
.share-parent-legend { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; padding: 12px 16px; background: #f4f3ed; }
.share-parent-legend > strong { margin-right: 3px; font-size: 9px; text-transform: uppercase; }
.capture-mode .site-header, .capture-mode .footer, .capture-mode .share-toolbar, .capture-mode .messages { display: none; }
.capture-mode { background: white; }
.capture-mode .page { width: 100%; padding: 0; }
.capture-mode .share-sheet { max-width: 480px; border: 0; border-radius: 0; box-shadow: none; }
.capture-mode .share-table-sheet { max-width: 1180px; }
.capture-mode .share-parent-sheet { max-width: none; }
.capture-mode .share-sheet-scroll { max-width: none; overflow: visible; padding: 0; }
.messages { display: grid; gap: 8px; margin-bottom: 20px; }
.message { padding: 13px 15px; border: 1px solid #d9d8cf; border-radius: 12px; background: white; font-size: 13px; }
.message.success { color: #0b6840; border-color: #b9dfcc; background: #e5f5ed; }
.message.warning { color: #745d00; border-color: #ead676; background: #fff7cf; }
.message.error { color: #922c25; border-color: #ecc0bc; background: #fbe8e6; }
.muted, .empty { color: var(--muted); }
.empty { padding: 30px !important; text-align: center !important; }

@media (max-width: 760px) {
    .shell { width: min(100% - 22px, 1120px); }
    .page { padding-top: 25px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .page-heading > .button { width: 100%; }
    .next-match { align-items: flex-start; flex-direction: column; padding: 22px; }
    .next-time { text-align: left; }
    .stats-grid { gap: 8px; }
    .stat-card { padding: 15px; }
    .callout { align-items: stretch; flex-direction: column; }
    .callout .button { width: 100%; }
    .availability-explanation, .absence-grid, .availability-match-grid { grid-template-columns: 1fr; }
    .roster-grid { grid-template-columns: 1fr; }
    .team-list { grid-template-columns: 1fr; }
    .roster-heading .action-group, .roster-heading .action-group form, .roster-heading .button { width: 100%; }
    .households-table th:nth-child(2), .households-table td:nth-child(2), .households-table th:nth-child(6), .households-table td:nth-child(6) { display: none; }
    .data-table th, .data-table td { padding: 12px 10px; }
    .fixture-row { gap: 10px; }
    .fixture-row .plan-chip { display: none; }
    .auth-card { padding: 25px; }
    .reset-panel { align-items: stretch; flex-direction: column; }
    .reset-panel form, .reset-panel .button { width: 100%; }
    .settings-layout { grid-template-columns: 1fr; }
    .settings-preview { position: static; }
    .share-toolbar, .share-toolbar .button, .share-toolbar-actions { width: 100%; }
    .share-toolbar, .share-toolbar-actions { flex-direction: column; }
    .share-range { width: 100%; }
    .share-range a { flex: 1; text-align: center; }
    .share-title { padding: 20px 18px; }
    .share-title h1 { font-size: 34px; }
    .share-fixture { grid-template-columns: 50px 1fr; gap: 11px; padding: 19px 14px; }
    .share-date { width: 50px; min-height: 66px; }
    .share-jobs > span { grid-template-columns: 116px 1fr; gap: 8px; }
    .share-footer { padding-inline: 14px; }
    .share-table-sheet { max-width: none; }
    .share-parent-sheet { max-width: none; }
}

@media print {
    .share-roster-page .site-header, .share-roster-page .footer, .share-roster-page .share-toolbar, .share-roster-page .messages { display: none; }
    .share-roster-page, .share-roster-page html { background: white; }
    .share-roster-page .page { width: 100%; padding: 0; }
    .share-sheet { border: 0; box-shadow: none; }
}

/* Wedstrijdgerichte planning */
a.fixture-row, a.next-match { text-decoration: none; color: inherit; }
a.fixture-row:hover { outline: 2px solid #d2ad00; }
.match-summary { margin-bottom: 20px; }
.detail-nav { display: flex; gap: 20px; flex-wrap: wrap; margin: 24px 0; }
.detail-nav a { font-weight: 700; }
.family-availability { padding: 18px 0; border-bottom: 1px solid #e7e8e5; }
.family-availability h3 { margin: 0 0 10px; }
.family-choices { display: flex; gap: 18px; flex-wrap: wrap; }
.family-choices > div { flex: 1; min-width: 180px; }
.family-choices > div > select { width: 100%; }
.household-form > .form-actions { display: flex; flex-wrap: wrap; }
.family-choices label { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 180px; }
.family-choices select { min-height: 44px; padding: 10px; background: white; color: #17251d; border: 1px solid #aaa; border-radius: 8px; font: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.detail-save { position: sticky; bottom: 0; background: #fff; padding: 16px 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.task-list { display: grid; grid-template-columns: minmax(90px, 140px) 1fr; gap: 12px; }
.task-list dd { margin: 0; font-weight: 650; }
.attention-item { margin-bottom: 12px; }
section[id] { scroll-margin-top: 24px; }
@media(max-width: 600px) { .family-choices { flex-direction: column; gap: 12px; } .detail-nav { gap: 16px; } }

/* Club identity; warnings retain their independent semantic colours. */
.brand-mark, .share-badge, .button-primary, .team-nav a.nav-active, .next-match { color: var(--club-ink, #171711); }
.team-nav a.nav-active { box-shadow: inset 0 -3px 0 var(--club-secondary, #171711); }
.message.warning, .share-concept-warning { background: #fff7cc; color: #604800; border-color: #dac257; }
.club-logo { width: 64px; height: 64px; object-fit: contain; }
.brand-mark .club-logo { width: 32px; height: 32px; }
.design-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.brand-preview { padding: 24px; border-radius: 12px 12px 0 0; border-bottom: 8px solid; }
.preview-body { padding: 24px; background: #f5f6f8; border-radius: 0 0 12px 12px; }
.template-gallery { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin: 24px 0; }
.template-tile { display: flex; flex-direction: column; gap: 12px; border: 2px solid var(--line); background: white; padding: 12px; border-radius: 14px; text-decoration: none; }
.template-tile img { width: 100%; height: 220px; object-fit: contain; object-position: top; background: #f1f2f5; }
.template-tile.selected { border-color: var(--club-secondary); box-shadow: 0 0 0 2px var(--yellow); }
.schema-page { display: block; width: 100%; height: auto; margin: 20px auto; border: 1px solid var(--line); box-shadow: var(--shadow); }
.gallery-controls details { margin-top: 20px; }
.gallery-controls input[type=checkbox] { width: auto; }
.gallery-controls select, .gallery-controls input[type=date] { display: block; margin-bottom: 12px; }
@media(max-width: 740px) { .design-columns { grid-template-columns: 1fr; } .template-gallery { grid-template-columns: 1fr 1fr; } .template-tile img { height: 160px; } }

a.next-match { color: var(--club-ink, #171711); }
.share-badge { background: var(--yellow); }
.fixture-review { background: #fffbed; border-left-color: #d5b000; }
.button-primary { border-color: var(--yellow); }

/* Schema gallery: readable previews, use-case descriptions and optional zoom. */
.template-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap:24px; }
.template-tile { padding:20px; color:var(--ink); gap:10px; }
.template-tile img { height:270px; border-radius:8px; padding:12px; box-sizing:border-box; }
.template-tile strong { font-size:20px; }
.template-description { color:var(--muted); font-size:15px; line-height:1.55; }
.template-tile:hover { border-color:var(--club-secondary); }
.template-tile:focus-visible, .schema-zoom summary:focus-visible { outline:3px solid var(--club-secondary); outline-offset:4px; }
.schema-zoom { margin:24px 0; }
.schema-zoom summary { cursor:zoom-in; list-style:none; }
.schema-zoom summary > span { display:block; padding:12px 0; font-weight:600; }
.schema-zoom[open] summary { cursor:zoom-out; }
.schema-zoom[open] summary > img { display:none; }
.schema-scroll { overflow:auto; max-height:85vh; border:1px solid var(--line); background:#eef1f4; padding:16px; }
.schema-page.full-size { width:1100px; max-width:none; margin:0 auto; box-shadow:none; }
@media(max-width:600px) { .template-gallery { grid-template-columns:1fr; } .template-tile img { height:230px; } }

@media(max-width:600px) {
    .schema-gallery-page .section-heading { align-items:flex-start; flex-direction:column; gap:12px; }
    .schema-gallery-page .action-group { justify-content:flex-start; flex-wrap:wrap; }
}

.task-setting-row { display:flex; align-items:center; gap:16px; flex-wrap:wrap; padding:20px 0; border-top:1px solid var(--line); }
.task-setting-row > div:first-child { flex:1; min-width:180px; }
.task-setting-row h3, .task-setting-row p { margin:0 0 6px; }
.task-setting-row p { color:var(--muted); font-size:14px; }
.task-status { padding:7px 12px; border-radius:20px; background:#e9edf0; color:#46525c; font-weight:700; font-size:13px; }
.task-status-active { background:#e2f2e9; color:#225e40; }
.task-disabled { background:#f6f7f8; padding-inline:12px; }
.task-disabled h3 { color:#53616c; }
.task-status-undo { display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin:16px 0; }
@media(max-width:600px) { .task-setting-row .action-group { width:100%; justify-content:flex-start; } }

.address-results { display: grid; gap: .75rem; margin-bottom: 1.5rem; }
.address-choice { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.address-choice p { margin: 0; }
.address-choice .button { flex-shrink: 0; }

.route-status { border: 2px solid; border-left-width: 7px; border-radius: 10px; padding: 1rem; margin: 1rem 0; }
.route-status p { margin: .45rem 0; }
.route-status-red { background: #fff1f2; color: #881337; border-color: #be123c; }
.route-status-orange { background: #fffbeb; color: #78350f; border-color: #b45309; }
.route-status-green { background: #f0fdf4; color: #14532d; border-color: #15803d; }
.route-inline-red { color: #881337; background: #fff1f2; padding: .2rem .4rem; border: 1px solid #be123c; border-radius: 4px; }

.share-parent-task-other { color: #452264; background: #e9dcf5; }
.share-parent-task { white-space: normal; overflow-wrap: anywhere; }

.share-title, .share-title .eyebrow, .share-parent-tasks thead th:first-child, .share-parent-task-lead, .share-parent-head-home span { color: var(--club-ink, #171711); }

.settings-team-heading { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-bottom:12px; }
.settings-tabs { display:flex; gap:8px; overflow-x:auto; padding:6px 0 14px; margin-bottom:24px; border-bottom:2px solid #ddd; }
.settings-tabs a { white-space:nowrap; padding:12px 16px; border-radius:9px; text-decoration:none; background:#fff; border:1px solid #ddd; font-weight:700; }
.settings-tabs a[aria-current="page"] { background:var(--yellow); color:var(--club-ink); border-color:var(--yellow); box-shadow:inset 0 -3px var(--club-ink); }
.settings-tabs a:focus-visible { outline:3px solid var(--ink); outline-offset:2px; }
.settings-columns { display:grid; grid-template-columns:minmax(0, 1fr) minmax(240px, .7fr); gap:24px; }
@media(max-width:700px) { .settings-columns { grid-template-columns:1fr; } .settings-tabs a { padding:10px 12px; } }

@media(max-width:700px) { .settings-tabs { display:grid; grid-template-columns:1fr 1fr; overflow:visible; } .settings-tabs a { white-space:normal; text-align:center; } }

.planning-held { display:inline-block; color:#765100; background:#fff0bc; border:1px solid #d4af45; border-radius:6px; padding:5px 9px; }

.capture-mode .planning-period { display:none; }

#planningsperiode { margin-top:18px; border-top:1px solid #ddd; padding-top:18px; }
#planningsperiode legend { font-size:1.2rem; font-weight:800; }
#planning-date { margin-top:16px; }
#planning-date input { display:block; width:100%; padding:12px; border:1px solid #d4d4d4; border-radius:10px; font:inherit; background:white; margin-top:8px; }

/* Calendar controls use the same clear selection and touch targets as settings. */
.calendar-create, .calendar-settings { max-width: 36rem; }
.calendar-create { display: grid; gap: 10px; }
.calendar-create .button { justify-self: start; }
.calendar-tabs a { padding: 10px 16px; border: 1px solid #cfcec3; border-radius: 10px; text-decoration: none; }
.calendar-tabs a[aria-current="page"] { background: var(--yellow); color: var(--club-ink); border-color: var(--club-secondary); }

.share-time-unconfirmed { display: inline-block; padding: 5px 7px; border-radius: 5px; background: #fce8e6; color: #942d25; }

.distribution-settings #id_distribution_mode { display:grid; gap:.75rem; }
.distribution-settings #id_distribution_mode > div { padding:1rem; border:1px solid var(--line, #deded5); border-radius:12px; background:var(--surface, #fff); }
.distribution-settings #id_distribution_mode label { display:flex; align-items:center; gap:.7rem; cursor:pointer; }
.distribution-settings input[type=radio] { width:1.1rem; height:1.1rem; margin:0; flex-shrink:0; }
.distribution-stats { display:flex; flex-wrap:wrap; gap:1rem; margin:1rem 0; }
.distribution-stats > div { flex:1 1 180px; padding:1rem; border-radius:12px; background:var(--yellow-soft, #f5f5ed); }
.distribution-stats strong, .distribution-stats span, .distribution-stats small { display:block; }
.distribution-stats span { font-size:1.25rem; font-weight:700; margin:.35rem 0; }
.burden-explanation { white-space:normal; font-size:.85rem; max-width:24rem; margin-top:.35rem; }
.burden-explanation summary { cursor:pointer; font-weight:400; }
.burden-explanation p { margin:.4rem 0; }
.form-stack > div[hidden] { display:none; }

/* Shared workflow screens remain usable with a keyboard and on a phone. */
.skip-link { position:absolute; left:1rem; top:-5rem; padding:.7rem 1rem; background:white; z-index:100; }
.skip-link:focus { top:1rem; }
:focus-visible { outline:3px solid #1261a0; outline-offset:3px; }
.setup-steps { display:grid; gap:1rem; padding-left:1.5rem; }
.setup-steps li { padding:.7rem; }
body[data-read-only] main form[method="post"] { opacity:.6; }
.table-card { overflow-x:auto; }
.table-card > .data-table { min-width:560px; overflow-wrap:normal; }
.table-scroll-hint { display:none; }
@media (max-width:640px) { .table-scroll-hint { display:block; font-size:13px; color:var(--muted); } }
@media (max-width:640px) { .panel { overflow-wrap:anywhere; } .page form input:not([type=checkbox]):not([type=radio]), .page form select { max-width:100%; } }

/* Consistent orientation, actions and meaning across club themes. */
.team-switcher { position:relative; }
.team-switcher summary { cursor:pointer; padding:12px 8px; font-weight:700; }
.team-menu { position:absolute; z-index:40; right:0; width:min(340px,85vw); background:#fff; box-shadow:0 10px 35px #0002; border:1px solid #d8d8d0; border-radius:12px; padding:8px; }
.team-menu a { display:block; padding:12px; color:#20231e; border-radius:6px; text-decoration:none; }
.team-menu small { display:block; color:#5b6057; }
.team-menu a:hover, .team-menu a[aria-current] { background:var(--yellow-soft); }
.mobile-menu-row { display:none; }
.team-nav .nav-scroll { overflow:visible; }
.detail-nav a[aria-current], .settings-tabs a[aria-current] { box-shadow:inset 0 -3px currentColor; font-weight:800; }
.share-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.share-choices .panel { margin:0; }
.share-choices h2 { font-size:24px; }
.link-list { padding-left:20px; }
.link-list li { padding:10px 0; }
.priority-links { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:12px; margin:0 0 24px; }
.priority-links a { background:#fff; border:1px solid #d8d8d0; border-radius:12px; padding:18px; color:inherit; text-decoration:none; }
.priority-links span { display:block; margin-top:6px; }
.setup-callout { margin-bottom:24px; border-left:5px solid var(--yellow); }
.setup-steps { list-style:none; padding:0; counter-reset:setup; }
.setup-steps li { counter-increment:setup; padding:18px 20px; margin-bottom:12px; background:#fff; border:1px solid #ddd; border-radius:12px; }
.setup-steps li strong::before { content:counter(setup) '. '; }
.setup-steps p { margin:8px 0 0; }
.assignment-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 0; border-bottom:1px solid #e1e1d9; }
.assignment-row:last-child { border:0; }
.assignment-row p { margin:6px 0; }
.match-counts { font-size:18px; }
.plan-chip.published, .task-status-active { color:#175434; background:#e3f4e9; }
.plan-chip.changed, .message.warning, .card-warning { color:#783e06; background:#fff3df; }
.plan-chip.draft, .planning-held { color:#545954; background:#edf0ed; }
.message.error, .route-alert, .route-inline-red { color:#a31f28; }
.message.error { background:#fff0f0; border-color:#d7777b; }
button[aria-disabled="true"] { opacity:.65; cursor:wait; }
summary { cursor:pointer; min-height:32px; }
section[id], details[id], h2[id] { scroll-margin-top:160px; }
.form-actions { flex-wrap:wrap; }
@media(max-width:760px) {
  .share-choices { grid-template-columns:1fr; }
  .header-row { align-items:flex-start; gap:8px; }
  .brand { min-width:0; }
  .brand small { white-space:normal; max-width:220px; }
  .header-actions { gap:0; flex-wrap:wrap; justify-content:flex-end; }
  .mobile-menu-row { display:block; }
  .has-menu .team-nav { display:none; }
  .has-menu .team-nav.is-open { display:block; }
  .team-nav .nav-scroll { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); overflow:visible; gap:4px; }
  .team-nav a { min-height:44px; }
  .assignment-row { align-items:flex-start; flex-wrap:wrap; }
  .page-heading .button { width:100%; }
  .settings-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .form-actions, .detail-save { position:sticky; bottom:0; padding:12px 0; background:#fff; z-index:3; }
  .table-card { max-width:100%; overflow-x:auto; }
}

/* Coach preparation: colour always accompanies a readable role label. */
.rotation-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin:1.5rem 0}
.rotation-stats>div{background:white;border:1px solid var(--line,#dedcd2);border-radius:16px;padding:1.2rem}
.rotation-stats strong{display:block;font-size:1.6rem}.rotation-stats span{color:#5e625b}
.rotation-scroll{overflow-x:auto;border:1px solid #d7dbd5;border-radius:12px;background:white}
.rotation-table{border-collapse:separate;border-spacing:0;width:100%;text-align:center}
.rotation-table th,.rotation-table td{padding:.7rem;border-bottom:1px solid #ddd;border-right:1px solid #e3e4df;min-width:140px}
.rotation-table thead th{background:#edf0ea;font-size:.85rem;color:#303b2b}
.rotation-table th:first-child{position:sticky;left:0;z-index:1;background:#f6f6f1;min-width:170px;text-align:left;max-width:240px;overflow-wrap:anywhere}
.rotation-table tr:nth-child(even) th:first-child{background:#eceee7}
.rotation-table tr:nth-child(even) td:not(.rotation-cell){background:#f7f8f5}
.rotation-table select{width:100%;min-width:95px;margin:0;padding:.5rem}
.rotation-lock{display:flex;align-items:center;justify-content:center;gap:.4rem;font-size:.8rem;margin-top:.5rem;color:#374235}
.rotation-lock input,.rotation-player input[type=checkbox]{width:1.15rem;height:1.15rem;margin:0}
.rotation-role{display:inline-block;font-weight:700;padding:.3rem .7rem;border-radius:7px}
.rotation-role.field,.rotation-cell.field{background:#e1f2d8;color:#224418}
.rotation-role.keeper,.rotation-cell.keeper{background:#e4e3fc;color:#343064}
.rotation-role.bench,.rotation-cell.bench{background:#f1f2ee;color:#4b5247}
.rotation-role.away,.rotation-cell.away{background:#fff0dc;color:#714405}
.rotation-legend{display:flex;gap:.6rem;flex-wrap:wrap}.rotation-table small{display:block}
.rotation-totals{width:100%;text-align:left;border-collapse:collapse}.rotation-totals td,.rotation-totals th{padding:.65rem;border-bottom:1px solid #ddd}
.rotation-events{list-style:none;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.rotation-events li>strong{font-size:1.15rem;color:#25321f}.rotation-events p{margin:.5rem 0;overflow-wrap:anywhere}
.rotation-players{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin-bottom:1.5rem}
.rotation-player{border:1px solid #d9ddd4;border-radius:12px;padding:1rem;min-width:0}
.rotation-player-name{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}.rotation-player-name small{color:#6a7065}
.rotation-player details{margin-top:.6rem}.rotation-player-options{display:grid;grid-template-columns:1fr 1fr;gap:.65rem;padding-top:.8rem}
.rotation-player-options input[type=number]{width:100%;min-width:0}.rotation-player-options label{font-size:.85rem}
.rotation-settings fieldset{border:0;margin:0;padding:0;min-width:0}.rotation-settings h2{margin-top:1.8rem}
.rotation-preview{border-left:5px solid #43703a}.rotation-settings summary{cursor:pointer}
@media(max-width:680px){.rotation-stats{grid-template-columns:1fr}.rotation-stats>div{padding:.8rem}.rotation-stats strong{font-size:1.3rem}.rotation-events,.rotation-players{grid-template-columns:1fr}.rotation-table th:first-child{min-width:125px;max-width:160px}.rotation-table td{min-width:120px}}
