/* Foundations */
:root{--navy:#0b1f45;--blue:#1747a6;--blue-hover:#123985;--blue-soft:#eaf1ff;--ink:#152033;--muted:#58677d;--line:#d9e1ec;--canvas:#f4f7fb;--card:#fff;--success:#087443;--danger:#ba2520;--shadow:0 10px 30px rgba(19,41,79,.09);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--canvas)}
/* Component display rules must never override the native hidden state. */
[hidden]{display:none!important}
.space-top-12{margin-top:12px}.space-top-24{margin-top:24px}.space-top-32{margin-top:32px}
body{min-width:320px;background:var(--canvas);color:var(--ink);line-height:1.5}.site-header{position:sticky;top:0;z-index:10;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}.header-inner{display:flex;align-items:center;gap:28px;min-height:76px;max-width:1180px;margin:auto;padding:0 24px}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);font-weight:800;line-height:1.15;text-decoration:none}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--blue);color:white;box-shadow:0 5px 12px rgba(23,71,166,.22)}.brand small{display:block;margin-top:3px;color:var(--muted);font-size:.73rem;font-weight:650}nav{display:flex;align-self:stretch;gap:6px}nav a{display:grid;place-items:center;padding:0 12px;border-bottom:3px solid transparent;color:var(--muted);font-size:.94rem;font-weight:720;text-decoration:none}nav a:hover,nav a.active{border-bottom-color:var(--blue);color:var(--blue)}.header-inner>.button{margin-left:auto}.page-shell{max-width:1180px;margin:auto;padding:48px 24px 72px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:32px}.eyebrow{margin:0 0 7px;color:var(--blue);font-size:.75rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.page-heading h1{margin:0;font-size:clamp(2rem,4vw,2.7rem);letter-spacing:-.045em;line-height:1.08}.subtle,.muted{color:var(--muted)}.subtle{margin:9px 0 0}.card{border:1px solid var(--line);border-radius:14px;background:var(--card);box-shadow:var(--shadow)}.button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 15px;border:1px solid var(--blue);border-radius:9px;color:white;background:var(--blue);font-weight:750;text-decoration:none}.button:hover{border-color:var(--blue-hover);background:var(--blue-hover)}.button-secondary{border-color:var(--blue);color:var(--blue);background:white}.button-secondary:hover{background:var(--blue-soft)}.button-danger{border-color:var(--danger);color:var(--danger);background:white}.button-danger:hover{background:#fff1f0}.button-small{min-height:36px;padding:6px 11px;font-size:.88rem}.tabs{display:flex;gap:6px;margin-bottom:28px;border-bottom:1px solid var(--line)}.tab{min-height:47px;padding:11px 17px;border:0;border-bottom:3px solid transparent;color:var(--muted);background:transparent;font-weight:750}.tab:hover,.tab.active{color:var(--blue)}.tab.active{border-color:var(--blue)}.toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}.field{display:flex;flex-direction:column;gap:16px}.field>label,.field>span{font-size:.91rem;font-weight:750}.field label:has(input),.field label:has(select){display:flex;flex-direction:column;gap:16px}input,select{width:100%;min-height:43px;padding:10px 11px;border:1px solid #b9c5d6;border-radius:8px;color:var(--ink);background:white}input:focus,select:focus{border-color:var(--blue);outline:0;box-shadow:0 0 0 3px rgba(23,71,166,.15)}.compact{width:164px}.wide{width:min(100%,390px)}.day-list{display:grid;gap:16px}.day-card{overflow:hidden}.day-summary{display:flex;width:100%;align-items:center;gap:16px;padding:19px 24px;border:0;color:var(--ink);background:white;font-size:1rem;font-weight:780;text-align:left}.day-summary:hover{background:#fbfcff}.day-summary .meta{margin-left:auto;margin-right:10px;color:var(--muted);font-size:.88rem;font-weight:600}.chevron{color:var(--blue);font-size:1.2rem}.day-content{padding:0 24px 24px}.schedule{width:100%;border-collapse:collapse}.schedule th{padding:13px 8px;border-bottom:1px solid var(--line);color:var(--muted);font-size:.72rem;font-weight:800;letter-spacing:.06em;text-align:left;text-transform:uppercase}.schedule td{padding:14px 8px;border-bottom:1px solid #edf0f5;vertical-align:middle}.schedule tr:last-child td{border-bottom:0}.team-pair{font-weight:720}.official{color:var(--muted);font-size:.9rem}.result{white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:800}.empty-result{color:#98a2b3}.setup-row{display:flex;align-items:center;gap:16px;margin-top:9px;padding:17px 8px 0;border-top:1px solid var(--line);font-size:.92rem}.setup-row strong{color:var(--blue)}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}.stat{padding:20px}.stat strong{display:block;color:var(--blue);font-size:1.65rem;line-height:1.2}.stat span{color:var(--muted);font-size:.9rem}.ranking{width:100%;border-collapse:collapse}.ranking th,.ranking td{padding:14px 10px;border-bottom:1px solid var(--line);text-align:left}.ranking th{color:var(--muted);font-size:.73rem;letter-spacing:.06em;text-transform:uppercase}.ranking tbody tr:last-child td{border-bottom:0}.rank-number{color:var(--blue);font-weight:800}.team-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px}.team-layout>.card{padding:24px}.section-title{margin:0 0 20px;font-size:1.1rem}.team-list{display:grid}.team-row{display:flex;min-height:64px;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}.team-row:last-child{border-bottom:0}.team-row>strong{flex:1 1 auto;min-width:0;font-weight:750}.status{flex:0 0 auto;padding:0!important;background:none!important;font-size:.87rem;font-weight:700}.status-active{color:var(--success)}.status-off{color:var(--muted)}.row-actions{display:flex;flex:0 0 auto;gap:16px;width:auto!important}.icon-button{display:inline-grid;width:36px;min-height:36px;place-items:center;padding:0;border:1px solid var(--blue);border-radius:8px;color:var(--blue);background:white;font-size:1rem}.icon-button:hover{background:var(--blue-soft)}.icon-button.danger{border-color:var(--danger);color:var(--danger)}.icon-button.danger:hover{background:#fff1f0}.pen-icon span{display:block;transform:scaleX(-1)}.notice{margin-top:14px;padding:12px 14px;border:1px solid #f7d99b;border-radius:9px;color:#8d3a08;background:#fffaeb;font-size:.9rem}.login-note{margin:14px 0 0;color:var(--muted);font-size:.85rem}.modal-root:empty{display:none}.modal-root{position:fixed;z-index:50;inset:0;display:grid;place-items:center;padding:16px;background:rgba(16,24,40,.52)}.modal{position:relative;width:min(100%,620px);max-height:calc(100vh - 32px);overflow:auto;padding:24px;border-radius:16px;background:white;box-shadow:0 24px 60px rgba(16,24,40,.28)}.modal h2{margin:0 36px 8px 0;font-size:1.42rem;letter-spacing:-.025em}.modal-close{position:absolute;top:15px;right:15px;display:grid;width:36px;height:36px;place-items:center;border:0;border-radius:8px;color:var(--muted);background:transparent;font-size:1.55rem}.modal-close:hover{color:var(--ink);background:var(--canvas)}.score-game{padding:20px 0;border-top:1px solid var(--line)}.score-game:first-of-type{border-top:0}.score-game h3{margin:0 0 14px;font-size:1rem}.score-table{width:100%;border-collapse:collapse}.score-table th,.score-table td{padding:10px;border-bottom:1px solid var(--line);text-align:center}.score-table th:first-child,.score-table td:first-child{text-align:left}.score-input{width:74px;text-align:center}.score-total{background:#f7f9fc;font-weight:800}.modal-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:32px}.toast{position:fixed;z-index:60;right:24px;bottom:24px;max-width:min(360px,calc(100vw - 48px));padding:12px 16px;border-radius:9px;color:white;background:var(--ink);box-shadow:var(--shadow);opacity:0;pointer-events:none;transform:translateY(8px);transition:.2s ease}.toast.show{opacity:1;transform:translateY(0)}.hidden{display:none!important}
@media(max-width:760px){.header-inner{min-height:65px;padding:10px 16px;gap:12px;flex-wrap:wrap}.brand small{display:none}nav{order:3;width:100%;height:40px;justify-content:space-between}nav a{padding:0 5px;font-size:.88rem}.header-inner>.button{margin-left:auto}.page-shell{padding:30px 16px 52px}.page-heading{align-items:flex-start;flex-direction:column;margin-bottom:28px}.toolbar{align-items:stretch;flex-direction:column;gap:20px}.compact,.wide{width:100%}.day-summary{padding:16px}.day-summary .meta{display:none}.day-content{padding:0 16px 16px}.schedule thead{display:none}.schedule,.schedule tbody,.schedule tr,.schedule td{display:block;width:100%}.schedule tr{display:grid;grid-template-columns:1fr auto;gap:5px;padding:13px 0;border-bottom:1px solid var(--line)}.schedule td{padding:0;border:0}.schedule td:nth-child(1),.schedule td:nth-child(2){color:var(--muted);font-size:.85rem}.schedule td:nth-child(3),.schedule td:nth-child(4),.schedule td:nth-child(5){grid-column:1}.schedule td:nth-child(5){font-size:.85rem}.schedule td:nth-child(6){grid-column:2;grid-row:1/span 2}.setup-row{align-items:flex-start;flex-direction:column;gap:5px;padding:15px 0 0}.stats-grid,.team-layout,.settings-grid{grid-template-columns:1fr}.team-layout>.card{padding:18px}.team-row{min-height:60px;gap:16px}.team-row>strong{flex-basis:100%}.row-actions{margin-left:auto}.modal{padding:16px;border-radius:14px}.modal-actions{flex-direction:column-reverse}.modal-actions .button{width:100%}}

/* Compact invoer en uitlijning in de wedstrijdweergave. */
input,select{padding:16px}.day-summary .chevron{align-self:center}.score-table{table-layout:auto}.score-table th,.score-table td{white-space:nowrap}.score-table th:last-child,.score-table td:last-child{padding-right:16px}
#deleteTeamForm[data-mode="remove"] [name="goMatches"]{display:none}

/* Scores: vier compacte kolommen, met het verschil ook in de totaallijn. */
.score-table{width:100%;table-layout:fixed}.score-table th,.score-table td{padding:6px 4px;white-space:normal;overflow-wrap:anywhere}.score-table th:first-child,.score-table td:first-child{width:21%;padding-left:0}.score-table th:nth-child(2),.score-table td:nth-child(2),.score-table th:nth-child(3),.score-table td:nth-child(3){width:27%}.score-table th:nth-child(4),.score-table td:nth-child(4){width:25%;padding-right:0}.score-input{box-sizing:border-box;width:54px;min-height:42px;padding:10px 4px}.score-game{padding:14px 0}.score-game.score-new-time{margin-top:14px;padding-top:18px;border-top:3px solid var(--blue)}.score-game h3{margin-bottom:8px}.score-table .score-total td{font-weight:800;background:#f1f5fc}
@media(max-width:760px){.score-game{padding:12px 0}.score-game.score-new-time{margin-top:12px;padding-top:16px}.score-table th,.score-table td{padding:5px 2px;font-size:.88rem}.score-table th,.score-table .score-total td,.score-table tbody tr:not(.score-total) td:first-child{font-size:1rem}.score-input{width:50px;min-height:40px;padding:8px 2px;font-size:16px}.modal:has(.score-table){width:calc(100% - 32px)}}
.account-button{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;color:var(--ink);background:transparent;font-size:1.35rem}.account-button:hover{color:var(--blue);background:var(--blue-soft)}.settings-section{max-width:760px;margin:0 0 40px}.settings-section h2{margin:0 0 4px;font-size:1.35rem;letter-spacing:-.02em}.settings-subheading{margin-top:32px!important}.settings-summary{display:grid;gap:14px;margin:20px 0}.settings-summary div{display:grid;gap:3px}.settings-summary dt{font-weight:750}.settings-summary dd{margin:0}.setting-checks{display:grid;gap:14px;margin-top:20px}.setting-checks label{display:flex;align-items:center;gap:10px}.setting-checks input{width:18px;min-height:18px;padding:0}.inline-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.header-inner,.page-shell{max-width:764px}.header-inner{gap:22px}.page-shell{padding-top:32px}.page-heading{margin-bottom:24px}.page-heading h1{font-size:32px;line-height:40px}.page-heading .subtle{display:none}.tabs{margin-bottom:16px}.day-list{gap:16px}.day-card{border:0;box-shadow:0 4px 12px rgba(0,0,0,.12)}.day-summary{min-height:64px;padding:16px 24px;font-size:24px;line-height:32px}.day-summary .meta{display:none}.day-toggle-label{margin-left:auto;display:inline-flex;align-items:center;min-height:28px;padding:0 8px;border:1px solid var(--blue);border-radius:10px;color:var(--blue);font-size:12px;line-height:14px;font-weight:750}.day-summary .chevron{width:14px;font-size:16px}.day-content{padding:0 24px 16px}.day-filter{width:240px;margin:0 0 8px}.day-filter label{font-size:16px}.day-filter select{min-height:40px;padding:8px 12px;border-radius:4px;font-size:16px}.schedule th{padding:16px 8px 8px;font-size:12px;line-height:16px}.schedule td{padding:16px 8px;font-size:16px;line-height:24px}.day-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}.setup-row{margin-top:0;padding-top:16px}.control-card{display:flex;align-items:center;justify-content:space-between;margin-top:24px;padding:16px 24px}.control-card h2{margin:0;font-size:24px}.control-card .button{margin-left:auto}
@media(max-width:760px){.header-inner,.page-shell{max-width:none}.day-summary{padding:16px;font-size:20px;line-height:28px}.day-toggle-label{display:none}.day-content{padding:0 16px 16px}.day-filter{width:100%}.day-actions{flex-wrap:wrap}.day-actions .button{flex:1}.control-card{padding:16px}.control-card h2{font-size:20px}}
.ranking-card{max-width:567px;overflow:hidden}.ranking th,.ranking td{padding:16px 20px}.ranking th{font-size:12px;line-height:16px}.ranking td{font-size:16px;line-height:24px}.team-card{max-width:480px;padding:16px 20px 14px}.team-column-head{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:16px;padding:0 0 10px;color:var(--muted);font-size:12px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}.team-row{min-height:0;padding:12px 0}.team-add{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-top:24px}.team-add .field{flex:1;min-width:0}.team-add .button{flex:0 0 auto}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}@media(max-width:760px){.ranking-card,.team-card{max-width:none}.ranking th,.ranking td{padding:13px 10px}.team-add{align-items:stretch;flex-direction:column}.team-add .button{align-self:flex-end}.team-column-head{grid-template-columns:minmax(0,1fr) auto auto}.team-row{gap:12px}.team-row>strong{flex-basis:auto}.row-actions{gap:8px}}
.modal:has(.score-table-figma){width:min(100%,619px)}.score-slot{width:240px;margin:24px 0}.score-slot select{min-height:40px;padding:8px 12px;border-radius:4px}.modal .tabs{margin-bottom:16px}.score-table-figma{width:100%;border:1px solid var(--blue);border-radius:16px;border-collapse:separate;border-spacing:0;overflow:hidden;background:var(--canvas)}.score-table-figma th,.score-table-figma td{padding:9px 7px;border-bottom:1px solid var(--line);text-align:center;vertical-align:middle}.score-table-figma thead th{border:0;color:var(--muted);font-size:14px;font-weight:800;text-transform:uppercase}.score-table-figma thead th:first-child{width:34%;text-align:left}.score-table-figma tbody th{padding-left:24px;text-align:left;font-size:16px;font-weight:500}.score-table-figma tbody tr:last-child th,.score-table-figma tbody tr:last-child td{border-bottom:2px solid #b9bdc2}.score-table-figma tfoot td{border:0;font-size:16px;font-weight:800}.score-table-figma .score-input{width:56px;min-height:0;padding:10px 4px;border-radius:4px;font-size:16px}.score-table-figma .score-value{display:inline-grid;min-width:56px;min-height:42px;place-items:center;font-variant-numeric:tabular-nums}.score-table-figma .score-saldo,.score-table-figma .score-result{font-size:16px;font-weight:800}.score-game{padding:16px 0}.score-game h3{margin:0 0 10px;font-size:16px}.score-game[data-time]{display:none}.score-game[data-time="12:00"]{display:block}@media(max-width:760px){.modal:has(.score-table-figma){width:calc(100% - 32px)}.score-table-figma th,.score-table-figma td{padding:7px 2px;font-size:13px}.score-table-figma thead th{font-size:11px}.score-table-figma tbody th{padding-left:12px;font-size:14px}.score-table-figma .score-input{width:44px;min-height:38px;padding:8px 1px}.score-table-figma .score-value{min-width:44px;min-height:38px}.score-table-figma .score-saldo,.score-table-figma .score-result,.score-table-figma tfoot td{font-size:14px}}
.user-list{display:grid;margin-top:20px;border-top:1px solid var(--line)}.user-row{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:14px 0;border:0;border-bottom:1px solid var(--line);color:var(--ink);background:transparent;text-align:left}.user-row:hover{color:var(--blue)}.user-row span:first-child{display:grid;gap:2px}.user-row small{color:var(--muted)}.check-field{display:flex;align-items:center;gap:10px;margin:24px 0;font-weight:700}.check-field input{width:18px;min-height:18px;padding:0}
.season-selector{display:grid;gap:4px;min-width:180px}.season-selector label{color:var(--muted);font-size:12px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}.season-selector select{min-height:40px;padding:8px 12px;border-radius:4px;font-size:14px}@media(max-width:760px){.season-selector{width:100%;max-width:280px}}
.input-button{display:flex;align-items:end;gap:12px}.input-button input{width:180px}.date-list{display:grid;margin-top:24px;border-top:1px solid var(--line)}.date-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}@media(max-width:760px){.input-button{align-items:stretch;flex-direction:column}.input-button input{width:100%}.input-button .button{align-self:flex-start}}
.schedule-control{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin:0 0 24px}.schedule-control.has-schedule{padding:16px 20px;border:1px solid #f7d99b;border-radius:12px;background:#fffaeb}.schedule-control .notice{flex:1;margin:0;padding:0;border:0;background:transparent}.generator-errors{margin-top:12px;color:var(--danger);font-weight:700}.generator-errors p{margin:4px 0}.empty-state{max-width:600px;padding:24px}.empty-state h2{margin:0 0 8px;font-size:24px}.empty-state p{margin:0;color:var(--muted)}@media(max-width:760px){.schedule-control{align-items:stretch;flex-direction:column;gap:12px}.schedule-control .button{align-self:flex-start}}

/* Beheer van planning, speeldagtijden en eerlijke taakverdeling. */
.planning-badge{display:inline-flex;align-items:center;min-height:24px;padding:2px 8px;border-radius:999px;color:var(--blue);background:var(--blue-soft);font-size:12px;line-height:16px;font-weight:800}.date-row-times{display:grid;grid-template-columns:minmax(180px,1fr) auto auto 36px;align-items:end}.date-row-times label{display:grid;gap:6px;color:var(--muted);font-size:12px;font-weight:800}.time-input{width:124px}.fixture-edit-list{display:grid;gap:16px;margin-top:24px}.fixture-edit{min-width:0;margin:0;padding:16px;border:1px solid var(--line);border-radius:12px}.fixture-edit legend{padding:0 8px;color:var(--blue);font-weight:800}.fixture-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.fixture-edit-grid label{display:grid;gap:8px;font-size:14px;font-weight:750}.workload-summary{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.workload-summary span{padding:6px 10px;border-radius:999px;font-size:13px;font-weight:800}.workload-summary .ok{color:var(--success);background:#eaf8f1}.workload-summary .warning{color:#8d3a08;background:#fffaeb}.table-scroll{max-width:100%;overflow:auto}.workload-table{min-width:620px}.discard-confirm{position:absolute;z-index:3;inset:0;display:grid;place-items:center;padding:24px;border-radius:inherit;background:rgba(16,24,40,.52)}.discard-confirm>div{width:min(100%,460px);padding:24px;border-radius:14px;background:white;box-shadow:0 20px 50px rgba(16,24,40,.28)}.discard-confirm h2{margin:0;font-size:20px}
@media(max-width:760px){.date-row-times{grid-template-columns:1fr 1fr auto}.date-row-times strong{grid-column:1/-1}.time-input{width:100%}.fixture-edit-grid{grid-template-columns:1fr}.discard-confirm{padding:16px}.discard-confirm>div{padding:16px}.workload-table th,.workload-table td{padding:10px 8px}}
.import-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:24px 0}.import-preview div{padding:12px;border-radius:8px;background:var(--canvas)}.import-preview dt{color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase}.import-preview dd{margin:4px 0 0;font-size:20px;font-weight:800}@media(max-width:480px){.import-preview{grid-template-columns:1fr}}
@media(max-width:480px){.header-inner nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}.header-inner nav a{min-width:0;padding:0 2px;font-size:12px;line-height:15px;text-align:center;overflow-wrap:anywhere}}
.field-hint{display:block;margin-top:-10px;color:var(--muted);font-size:13px;font-weight:500}

/* Shared interaction states. These rules deliberately use :focus-visible so
   mouse users do not get a persistent focus ring, while keyboard users do. */
.modal-root{isolation:isolate}
button,.button{cursor:pointer}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgba(23,71,166,.38);outline-offset:3px}
.skip-link{position:absolute;z-index:100;left:16px;top:12px;padding:8px 12px;border-radius:6px;color:white;background:var(--blue);transform:translateY(-160%);transition:transform .16s ease}.skip-link:focus{transform:translateY(0)}

@media(max-width:720px){
  .card{padding:16px;border-radius:12px}
}

@media(max-width:760px){
  .icon-button{flex:0 0 36px}
}

/* Figma alignment: shared foundations and component proportions. */
*,*::before,*::after{box-sizing:border-box}
body{margin:0}
h1,h2,h3,.button,button,nav a{font-family:Asap,Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
.site-header{position:sticky}
.header-inner{width:min(100%,764px);max-width:764px;min-height:0;margin:auto;padding:12px 0;gap:16px}
.brand{display:flex;flex-direction:column;align-items:flex-start;gap:0;min-width:130px;margin-right:18px;padding:8px 16px;border-radius:12px;color:#f3f6fa;background:var(--blue);line-height:1;text-decoration:none;box-shadow:none}
.brand strong{font-size:16px;line-height:22px}.brand small{margin:0;color:#d1daed;font-size:11px;line-height:15px;font-weight:400}
nav{align-self:center;gap:21px}nav a{display:inline-flex;align-items:center;padding:0;border:0;color:#5c6371;font-size:14px;line-height:19px;font-weight:700;white-space:nowrap}nav a:hover,nav a.active{border:0;color:var(--blue)}
.account-button{flex:0 0 32px;width:32px;height:32px;margin-left:0}.account-button img{width:32px;height:32px}.header-inner>.button{min-height:36px;margin-left:auto;padding:8px 12px;border-radius:16px}
.page-shell{width:min(100%,764px);max-width:764px;margin:auto;padding:32px 0 72px}.page-heading{margin-bottom:24px}.page-heading h1{font-size:32px;line-height:40px;letter-spacing:0}.page-heading .subtle{display:block}.logged-in .page-heading .subtle{display:none}.eyebrow{margin-bottom:8px;font-size:12px;line-height:16px;letter-spacing:0}
.card{border-radius:16px;box-shadow:0 4px 6px rgba(0,0,0,.15)}
.button{min-height:36px;padding:8px 12px;border-radius:16px;font-size:16px;line-height:20px;font-weight:700}.button-small{min-height:28px;padding:6px 8px;border-radius:10px;font-size:12px;line-height:14px}
.tabs{width:156px;gap:16px;margin-bottom:24px}.tab{width:70px;min-height:35px;padding:8px 0;border-bottom-width:3px;font-size:14px;line-height:19px;text-align:left}
.day-list,.schedule-control,.control-card{width:min(100%,688px)}.day-card{border:0}.day-summary{padding:16px 24px}.day-content{padding:0 24px 16px}.day-filter{margin-bottom:8px}
.schedule tbody tr.time-group-start td{border-top:2px solid #b9bdc2}.schedule td{border-bottom:1px solid #d0d2d6}.schedule tbody tr:last-child td{border-bottom:0}
.team-card{width:min(100%,420px);max-width:420px;padding:16px 20px 14px}.logged-in .team-card{width:min(100%,480px);max-width:480px}.team-add{justify-content:flex-end;margin-top:16px}.team-add .button{flex:0 0 auto}
.rank-number{color:var(--ink);font-weight:400}
.icon-button{width:28px;min-height:28px;border:0;border-radius:6px;background:transparent}.icon-button:hover{background:var(--blue-soft)}.icon-button img{display:block;width:24px;height:24px}.row-actions{gap:16px}
.modal{width:min(100%,544px);padding:24px;border-radius:16px}.modal h2{font-size:24px;line-height:32px;letter-spacing:0}.modal h3.modal-section-title{margin:32px 0 16px;font-size:24px;line-height:32px}.modal .field input:not(.score-input),.modal .field select{width:min(100%,254px)}.modal-actions{justify-content:flex-start}.contact-fieldset{display:grid;gap:24px;margin:24px 0;padding:0;border:0}.contact-fieldset legend{margin-bottom:16px;font-size:16px;font-weight:800}.contact-fieldset .field{gap:16px}
.score-slot{margin:24px 0 16px}.score-game{margin:0 0 16px;padding:0;border:0}.score-game:last-of-type{margin-bottom:0}.score-table-figma{table-layout:fixed}.score-table-figma th:first-child,.score-table-figma td:first-child{width:26%;padding-left:24px}.score-table-figma th:nth-child(2),.score-table-figma td:nth-child(2),.score-table-figma th:nth-child(3),.score-table-figma td:nth-child(3),.score-table-figma th:nth-child(4),.score-table-figma td:nth-child(4){width:14%}.score-table-figma th:nth-child(5),.score-table-figma td:nth-child(5),.score-table-figma th:nth-child(6),.score-table-figma td:nth-child(6){width:16%}.score-table-figma th,.score-table-figma td{overflow:visible;overflow-wrap:normal;white-space:nowrap}.score-table-figma thead th{padding-top:16px;padding-bottom:8px}.score-table-figma tbody th,.score-table-figma tbody td{height:67px}.score-table-figma tfoot th,.score-table-figma tfoot td{height:56px}.score-table-figma tfoot th{padding:0}.score-table-figma .score-input{width:56px;height:48px;padding:12px 4px;border-color:#5c6371}.score-table-figma .score-saldo,.score-table-figma .score-result{font-weight:800}.score-table-figma .score-difference-row td:nth-last-child(-n+2){background:transparent}

@media(max-width:800px){.header-inner,.page-shell{padding-left:16px;padding-right:16px}.header-inner{gap:12px}.brand{margin-right:auto}nav{order:3;width:100%;justify-content:space-between}.account-button{margin-left:auto}.page-shell{max-width:none}}
@media(max-width:760px){.page-heading .subtle{display:block}.logged-in .page-heading .subtle{display:none}.day-list,.schedule-control,.control-card{width:100%}.schedule tr.time-group-start{border-top:3px solid #b9bdc2}.schedule tr.time-group-start td{border-top:0}.modal{width:calc(100% - 32px);padding:16px}.modal-actions{align-items:stretch;flex-direction:column}.modal-actions .button{width:100%}.score-table-figma th:first-child,.score-table-figma td:first-child{width:28%;padding-left:8px}.score-table-figma th:nth-child(2),.score-table-figma td:nth-child(2),.score-table-figma th:nth-child(3),.score-table-figma td:nth-child(3),.score-table-figma th:nth-child(4),.score-table-figma td:nth-child(4){width:14%}.score-table-figma th:nth-child(5),.score-table-figma td:nth-child(5),.score-table-figma th:nth-child(6),.score-table-figma td:nth-child(6){width:15%}.score-table-figma thead th{font-size:10px}.score-table-figma tbody th{font-size:13px}.score-table-figma .score-input{width:38px;height:40px;min-height:40px;padding:7px 1px}.score-table-figma .score-value{min-width:38px}.score-table-figma .score-saldo,.score-table-figma .score-result,.score-table-figma tfoot td{font-size:13px}}
@media(max-width:480px){.brand{min-width:112px;padding:7px 12px}.brand strong{font-size:14px}.header-inner nav{grid-template-columns:repeat(3,minmax(0,1fr))}.logged-in .header-inner nav{grid-template-columns:repeat(4,minmax(0,1fr))}.header-inner nav a{font-size:12px;line-height:15px}.score-table-figma th:first-child,.score-table-figma td:first-child{width:29%}.score-table-figma th:nth-child(2),.score-table-figma td:nth-child(2),.score-table-figma th:nth-child(3),.score-table-figma td:nth-child(3),.score-table-figma th:nth-child(4),.score-table-figma td:nth-child(4){width:13.5%}.score-table-figma th:nth-child(5),.score-table-figma td:nth-child(5),.score-table-figma th:nth-child(6),.score-table-figma td:nth-child(6){width:15.25%}.score-table-figma .score-input{width:34px}.score-table-figma tbody th{font-size:12px;overflow-wrap:anywhere;white-space:normal}}

.modal:has(.schedule-edit-table){width:min(100%,780px)}.schedule-edit-filter{width:240px;margin:16px 0 8px}.schedule-edit-table{margin-top:16px}.schedule-edit-row{display:grid;grid-template-columns:84px 44px minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) 32px;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid #d0d2d6}.schedule-edit-row.time-group-start{border-top:2px solid #b9bdc2}.schedule-edit-head{padding-bottom:6px;border-bottom:0;color:#737985;font-size:12px;line-height:16px;font-weight:800;text-transform:uppercase}.schedule-edit-row input,.schedule-edit-row select{width:100%!important;min-height:38px;padding:7px 8px;border-radius:4px;font-size:14px}.schedule-edit-row .icon-button:disabled{cursor:not-allowed;opacity:.35}.setup-edit{display:flex;gap:16px;margin:24px 0 0;padding:16px 0 0;border:0;border-top:1px solid var(--line)}.setup-edit legend{width:100%;margin-bottom:8px;color:var(--ink);font-weight:800}.setup-edit label{display:grid;gap:8px;font-size:14px;font-weight:700}.setup-edit select{width:180px!important;min-height:40px;padding:8px 10px}
@media(max-width:760px){.modal:has(.schedule-edit-table){width:calc(100% - 16px)}.schedule-edit-table{overflow-x:auto}.schedule-edit-row{min-width:700px}.setup-edit{align-items:stretch;flex-direction:column}.setup-edit select{width:100%!important}}
/* Mobile Figma implementation. These rules deliberately do not alter desktop. */
.mobile-page-title,.mobile-menu-button,.mobile-menu-root,.mobile-time-filters,.mobile-fixture-list,.mobile-only,.mobile-setting-days{display:none}
@media(max-width:760px){.account-button[hidden] + .mobile-menu-button{margin-left:auto}.mobile-menu-root{display:block}.mobile-menu-sheet nav{height:auto;order:initial;width:100%;align-self:auto}}
@media(max-width:760px){.desktop-manage-days{display:none}.mobile-setting-days{display:grid;margin-top:24px}.settings-summary div:nth-child(3){display:none}.mobile-setting-day{display:grid;grid-template-columns:minmax(0,1fr) 64px 32px 32px;align-items:center;gap:8px;min-height:36px;font-size:16px;line-height:24px}.mobile-setting-day .icon-button{width:32px;min-height:32px;border:1px solid #1747a6;border-radius:9px}.mobile-setting-day .icon-button img{width:16px;height:16px}.mobile-setting-day .icon-button.danger{border-color:#1747a6;color:#1747a6}}
@media(max-width:760px){
  body{background:#f3f6fa}.site-header{position:sticky;top:0;border:0;background:#fff}.header-inner{width:100%;min-height:66px;padding:14px 16px;gap:0;flex-wrap:nowrap;border-bottom:1px solid #d0d2d6}.header-inner nav,.header-inner>#loginButton{display:none}.brand{width:auto!important;min-width:0!important;height:38px!important;margin:0!important;padding:0 16px!important;border-radius:11px;background:#1747a6;color:#fff}.brand strong{font-family:Inter,Arial,sans-serif;font-size:16px!important;line-height:22px}.mobile-page-title{position:absolute;left:50%;display:block;transform:translateX(-50%);font-family:Asap,Arial,sans-serif;font-size:20px;font-weight:700;color:#152033}.account-button{flex:0 0 24px;width:24px;height:24px;margin-left:auto;border:0;background:transparent}.account-button img{width:24px;height:24px}.mobile-menu-button{display:grid;width:24px;height:24px;margin-left:16px;padding:4px 1px;border:0;background:transparent;gap:4px}.mobile-menu-button span{display:block;width:22px;height:2px;border-radius:2px;background:#1747a6}.page-shell{padding:0 0 24px;max-width:none}.page-heading{margin:0;padding:16px 40px 14px;border-bottom:1px solid #d0d2d6;background:#f3f6fa}.page-heading h1{font-family:Asap,Arial,sans-serif;font-size:24px;line-height:32px;letter-spacing:0}.page-heading .eyebrow{margin:0 0 4px;font-size:11px;letter-spacing:0}.page-heading .subtle,.page-heading .season-selector{display:none}.tabs{gap:16px;margin:0;padding:0 40px;background:#f3f6fa;border:0}.tab{min-height:44px;width:70px;padding:10px 0;border-bottom-width:3px;text-align:left;font-size:14px}.day-list{gap:0;background:#fff}.day-card{border:0;border-radius:0;box-shadow:none}.day-summary{min-height:56px;padding:16px 40px;border-bottom:1px solid #d0d2d6;font-size:16px;line-height:24px}.day-toggle-label{display:none!important}.day-summary>span:first-child:before{display:inline-block;width:8px;height:8px;margin:0 8px 2px 0;border-radius:999px;background:#1747a6;content:""}.day-summary .chevron{display:none}.day-summary:after{margin-left:auto;color:#1747a6;font-size:22px;line-height:1;content:'⌃'}.day-summary[aria-expanded="false"]:after{content:'⌄'}.day-content{padding:16px 40px 20px}.day-filter{width:100%;margin:0 0 16px}.day-filter label{display:none}.day-filter select{height:40px;min-height:40px;padding:8px 42px 8px 12px;border:1px solid #5c6371;border-radius:4px;background-color:#fff;font-size:16px}.desktop-schedule{display:none}.mobile-time-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.time-chip{min-height:34px;padding:8px 10px;border:1px solid #5c6371;border-radius:9px;color:#5c6371;background:#fff;font-family:Asap,Arial,sans-serif;font-size:14px;font-weight:700;line-height:16px}.time-chip.active{border-color:#1747a6;color:#fff;background:#1747a6}.mobile-fixture-list{display:grid;gap:8px}.mobile-fixture{padding:12px;border:1px solid #8490a0;border-radius:14px;background:#f3f6fa}.mobile-fixture-meta{display:flex;align-items:center;gap:6px;color:#5c6371;font-size:14px;font-weight:700;line-height:20px}.mobile-fixture-meta strong{margin-left:auto;min-width:42px;padding:5px 7px;border-radius:4px;color:#fff;background:#1747a6;text-align:center;font-size:14px;line-height:16px}.mobile-fixture-teams{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);align-items:center;gap:6px;margin:10px 0 8px;font-size:16px;font-weight:700}.mobile-fixture-teams span:last-child{text-align:right}.mobile-fixture-teams b{color:#737985;text-align:center}.mobile-fixture p{margin:0;padding-top:6px;border-top:1px solid #d0d2d6;color:#5c6371;font-size:13px;line-height:18px}.setup-row{align-items:flex-start;flex-direction:row;gap:8px;margin:16px 0 0;padding:0;border:0;font-size:14px;line-height:20px}.day-actions{display:grid;grid-template-columns:1fr;gap:8px;margin-top:16px}.day-actions .button{width:100%;min-height:32px;padding:8px 12px;font-family:Asap,Arial,sans-serif;font-size:12px;line-height:14px}.ranking-card,.team-card{width:100%;max-width:none;border:0;border-radius:0;box-shadow:none}.ranking th,.ranking td{padding:16px 16px}.ranking th{font-size:14px;line-height:24px}.ranking th:first-child,.ranking td:first-child{padding-left:40px}.ranking th:last-child,.ranking td:last-child{padding-right:40px}.ranking th:nth-child(1):after{content:'#';font-size:14px}.ranking th:nth-child(1){font-size:0}.ranking th:nth-child(2){font-size:0}.ranking th:nth-child(2):after{content:'Team';font-size:14px}.ranking th:nth-child(3){font-size:0}.ranking th:nth-child(3):after{content:'Sets';font-size:14px}.ranking th:nth-child(4){font-size:0}.ranking th:nth-child(4):after{content:'Saldo';font-size:14px}.team-card{padding:0}.team-column-head{grid-template-columns:minmax(0,1fr) auto auto;padding:16px 40px 10px}.team-row{padding:14px 40px;gap:12px}.team-row>strong{font-size:16px;line-height:24px}.row-actions{gap:16px}.icon-button{width:24px;min-height:24px;border:0;border-radius:0;background:transparent}.icon-button img{width:24px;height:24px}.team-add{margin:16px 40px}.team-add .button{width:100%;font-family:Asap,Arial,sans-serif;font-size:12px}.settings-section{margin:0;padding:18px 40px;border:0;border-bottom:1px solid #d0d2d6;background:#fff}.settings-section h2{font-family:Asap,Arial,sans-serif;font-size:19px;line-height:28px}.settings-summary{gap:12px}.settings-summary dt{font-size:16px}.settings-summary dd{font-size:16px}.settings-section .button{width:100%;margin-top:18px;font-family:Asap,Arial,sans-serif;font-size:12px}.settings-section .inline-actions{display:grid;gap:8px}.modal-root{padding:16px;background:rgba(21,32,51,.36)}.modal{width:calc(100% - 32px);max-height:calc(100dvh - 32px);padding:20px 16px;border-radius:0;box-shadow:0 4px 18px rgba(0,0,0,.18)}.modal h2{font-family:Asap,Arial,sans-serif;font-size:20px;line-height:28px}.modal-close{top:12px;right:12px}.field{gap:4px}.field label:has(input),.field label:has(select){gap:4px}.modal .field+ .field,.modal .field.space-top-24{margin-top:24px}.modal-actions{gap:8px;margin-top:24px}.modal-actions .button{min-height:32px;padding:8px 12px;font-family:Asap,Arial,sans-serif;font-size:12px;line-height:14px}.score-slot{width:240px;margin:24px 0}.modal:has(.score-table-figma){padding:20px 16px}.score-table-figma{border-radius:16px}.score-table-figma th:nth-child(5),.score-table-figma td:nth-child(5){display:none}.score-table-figma th,.score-table-figma td{padding:8px 3px}.score-table-figma thead th{font-size:12px}.score-table-figma tbody th{max-width:104px;padding-left:12px;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.score-table-figma .score-input{width:40px;height:40px;min-height:40px;padding:4px 1px;font-size:16px}.score-table-figma .score-value{min-width:40px;min-height:40px}.score-table-figma .score-saldo,.score-table-figma .score-result,.score-table-figma tfoot td{font-size:16px}.mobile-menu-root{position:fixed;z-index:70;inset:0}.mobile-menu-root:empty{display:none}.mobile-menu-scrim{position:absolute;inset:0;background:rgba(21,32,51,.36)}.mobile-menu-sheet{position:absolute;right:0;bottom:0;left:0;padding:12px 24px 24px;border-radius:20px 20px 0 0;background:#fff;box-shadow:0 -12px 30px rgba(21,32,51,.16);animation:mobile-sheet-in .18s ease-out}.mobile-menu-handle{width:36px;height:4px;margin:0 auto 12px;border-radius:10px;background:#b9c5d6}.mobile-menu-sheet nav{display:grid}.mobile-menu-sheet nav a{display:block;padding:14px 0;border-bottom:1px solid #d0d2d6;color:#152033;font-size:20px;font-weight:400;text-decoration:none}.mobile-menu-sheet nav a.active{color:#1747a6;font-weight:700}.mobile-menu-sheet .button{width:100%;margin-top:24px;font-family:Asap,Arial,sans-serif;font-size:16px}.mobile-menu-open{overflow:hidden}@keyframes mobile-sheet-in{from{transform:translateY(100%)}to{transform:translateY(0)}}
}

/* Compact merkblok: dezelfde visuele hoogte, met gelijke ruimte rondom ORVWFO. */
.brand{display:grid;place-items:center;box-sizing:border-box;width:116px;min-width:116px;height:64px;margin-right:18px;padding:0 21px;text-align:center}
.brand strong{font-size:16px;line-height:22px}.brand small{display:none}
@media(max-width:480px){.brand{width:96px;min-width:96px;height:48px;margin-right:auto;padding:0 13px}.brand strong{font-size:14px}}

/* Form and button tokens from the Figma component library. */
.modal{width:min(100%,600px)}
.field{gap:4px}
.field>label,.field>span,.field label:has(input),.field label:has(select){gap:4px}
.field>label,.field>span{font-size:16px;line-height:24px;font-weight:700}
.modal form>.field+.field{margin-top:24px}
.field-hint{margin-top:0}
input:not([type="checkbox"]):not([type="radio"]),select{height:40px;min-height:40px;padding:8px 12px;border-color:#5c6371;border-radius:4px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;line-height:24px;box-shadow:inset 0 2px 2px #d5d5d5}
select{width:160px;max-width:100%;padding-right:36px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.modal .field select{width:160px}
.button{min-height:38px;padding:8px 12px;border-radius:16px;font-family:Asap,Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;line-height:20px;font-weight:700}
.button-medium{min-height:30px;padding:6px 12px;border-radius:12px;font-size:14px;line-height:16px}
.button-small{min-height:28px;padding:6px 8px;border-radius:10px;font-size:12px;line-height:14px}
.contact-fieldset{gap:24px}.contact-fieldset .field{gap:4px}
.contact-add-action{display:flex;margin-top:16px}
.account-password-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.schedule-warning{margin-bottom:16px}
.score-table-figma .score-input{height:40px;min-height:40px;padding:8px 4px}
.schedule-edit-row input,.schedule-edit-row select{height:40px;min-height:40px;padding:8px 36px 8px 8px;font-size:14px}
.schedule-edit-row input{padding-right:8px}

/* Consistente native controls: het eigen chevron staat altijd 12px van de rand. */
select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%235c6371' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;background-size:12px 8px;padding-right:36px}
.day-toggle-label{display:inline-flex;align-items:center;gap:8px}
.day-toggle-label::after{width:12px;height:8px;content:"";background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%231747a6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E") center/12px 8px no-repeat}
.day-summary[aria-expanded="true"] .day-toggle-label::after{transform:rotate(180deg)}
.schedule-edit-row{grid-template-columns:112px 76px 160px 160px 160px 32px;gap:8px}
.schedule-edit-row input[type="time"]{min-width:112px}
.schedule-edit-row select{width:160px!important;max-width:160px}
.schedule-edit-row select[data-key="field"]{width:76px!important;max-width:76px}
#addDayForm{margin-top:24px}
.setup-edit label{gap:4px}.setup-edit select{height:40px;min-height:40px;padding:8px 36px 8px 12px}

@media(max-width:760px){
  /* Kleine bevestigingen blijven compacte dialogen op een scrim. */
  .modal-root .modal{width:min(100%,360px)!important}
  .modal-actions{gap:8px}
  .contact-add-action .button{width:auto}
  .account-password-actions{align-items:flex-start;flex-direction:column}
}
@media(max-width:480px){.header-inner nav a{white-space:normal;overflow-wrap:anywhere}}

/* Mobiele verfijningen: inhoud blijft overal 16px van de schermrand. */
@media(max-width:760px){
  .page-heading,.tabs,.day-summary,.day-content,.team-column-head,.team-row,.settings-section{padding-left:16px;padding-right:16px}
  .tabs{width:100%}
  .day-card{padding:0}
  .ranking-card{box-sizing:border-box;padding:0 16px}
  .ranking-card .ranking th:first-child,.ranking-card .ranking td:first-child{padding-left:0}
  .ranking-card .ranking th:last-child,.ranking-card .ranking td:last-child{padding-right:0}
  .team-add{margin-right:16px;margin-left:16px}

  .mobile-menu-sheet nav{width:100%;grid-template-columns:minmax(0,1fr)!important;justify-content:stretch}
  .mobile-menu-sheet nav a{width:100%}
  .mobile-menu-sheet nav a{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start}

  .day-summary:after{display:none;content:none}
  .day-summary .day-toggle-icon{display:block;flex:0 0 24px;width:24px;height:24px;margin-left:auto;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='m6 15 6-6 6 6' fill='none' stroke='%231747a6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E") center/24px 24px no-repeat}
  .day-summary[aria-expanded="false"] .day-toggle-icon{transform:rotate(180deg)}

  .mobile-fixture-teams{grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);column-gap:8px}
  .mobile-fixture-teams span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

  .ranking-card .ranking{table-layout:fixed}
  .ranking-card .ranking th:nth-child(1),.ranking-card .ranking td:nth-child(1){width:38px;padding-right:4px;text-align:right}
  .ranking-card .ranking th:nth-child(2),.ranking-card .ranking td:nth-child(2){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ranking-card .ranking th:nth-child(3),.ranking-card .ranking td:nth-child(3),.ranking-card .ranking th:nth-child(4),.ranking-card .ranking td:nth-child(4){width:58px;text-align:center}
  .ranking-card .ranking th:nth-child(3),.ranking-card .ranking th:nth-child(4){padding-left:4px;padding-right:4px}
  .ranking-card .ranking td:nth-child(3),.ranking-card .ranking td:nth-child(4){padding-left:4px;padding-right:4px}

  .team-column-head span:nth-child(2),.team-row>.status{text-align:right;justify-self:end}
  .team-list{padding:0 16px}
  .team-row{padding-right:0;padding-left:0}
  .team-row>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

  /* Formulieren en lange overzichten gebruiken op mobiel het hele scherm.
     Korte bevestigingen houden de compacte variant hierboven. */
  .modal-root:has(.score-table-figma),.modal-root:has(#addDayForm),.modal-root:has(.schedule-edit-table),.modal-root:has(#settingsForm),.modal-root:has(#fieldDistributionForm),.modal-root:has(#accountForm),.modal-root:has(#passwordForm),.modal-root:has(.user-list),.modal-root:has(#userForm),.modal-root:has(#seasonForm),.modal-root:has(#contactsForm),.modal-root:has(#newTeamForm),.modal-root:has(#editTeamForm){padding:0;place-items:stretch}
  .modal:has(.score-table-figma),.modal:has(#addDayForm),.modal:has(.schedule-edit-table),.modal:has(#settingsForm),.modal:has(#fieldDistributionForm),.modal:has(#accountForm),.modal:has(#passwordForm),.modal:has(.user-list),.modal:has(#userForm),.modal:has(#seasonForm),.modal:has(#contactsForm),.modal:has(#newTeamForm),.modal:has(#editTeamForm){width:100%!important;height:100dvh;max-height:100dvh;padding:20px 16px;border-radius:0}
}

/* Heldere voortgang tijdens een mogelijk wat langere schema-indeling. */
.generation-progress{display:flex;align-items:center;gap:16px;min-height:120px}
.generation-progress h2{margin:0 0 4px}
.generation-progress .subtle{margin:0}
.generation-division{margin:8px 0 0;color:var(--blue);font-weight:750}
.generation-spinner{width:32px;height:32px;flex:0 0 auto;border:3px solid color-mix(in srgb,var(--blue) 22%,transparent);border-top-color:var(--blue);border-radius:50%;animation:generation-spin .85s linear infinite}
@keyframes generation-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.generation-spinner{animation-duration:2.5s}}
.generation-candidates{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:24px 0}
.generation-candidate{padding:16px;border:1px solid var(--line);border-radius:8px;background:#fff}
.generation-candidate h3{margin:0 0 8px;font-size:18px}
.generation-candidate p{min-height:48px;margin:0 0 12px;color:var(--muted);font-size:14px;line-height:20px}
.generation-candidate dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 16px}
.generation-candidate dl div{padding:6px 0;border-top:1px solid var(--line)}
.generation-candidate dt{font-size:12px;font-weight:700;color:var(--muted)}
.generation-candidate dd{margin:2px 0 0;font-weight:800}

/* De generator gebruikt dezelfde middelgrote outline-variant als Schema bewerken. */
[data-generate-schedule]{min-height:36px;padding:6px 11px;border-color:var(--blue);color:var(--blue);background:#fff;font-size:.88rem}
[data-generate-schedule]:hover{background:var(--blue-soft)}

/* Pauzevoorkeuren horen inhoudelijk bij wedstrijdinstellingen. De bestaande
   divider van die sectie blijft de enige scheiding erboven; deze sectie voegt
   uitsluitend haar eigen afsluitende divider toe via .settings-section. */
.rest-preferences-section{max-width:760px}
.rest-preference-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:20px}
.rest-preference-bucket{min-width:0;padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff}
.rest-preference-bucket h3{margin:0 0 12px;font-size:16px;line-height:24px}
.rest-preference-list{display:grid;gap:8px;margin:0;padding:0;list-style:none;min-height:48px}
.rest-preference-list.is-drop-target{outline:2px dashed var(--blue);outline-offset:4px}
.rest-preference-item{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;min-width:0}
.rest-preference-item.is-dragging{opacity:.45}
.rest-priority{display:inline-flex;align-items:center;justify-content:center;min-width:76px;min-height:32px;padding:6px 8px;border-radius:999px;color:#1747a6;background:#e7eefc;font-size:12px;font-weight:800;line-height:16px;white-space:nowrap}
.rest-preference-row{display:flex;align-items:center;gap:8px;min-width:0;min-height:40px;padding:4px 8px;border:1px solid #8490a0;border-radius:8px;background:#f3f6fa}
.rest-preference-row strong{min-width:0;flex:1;font-size:14px;line-height:20px}
.rest-drag-handle,.rest-icon-action{display:grid;place-items:center;flex:0 0 auto;width:28px;height:28px;padding:0;border:0;border-radius:6px;color:#5c6371;background:transparent;font:inherit;font-size:18px;line-height:1;cursor:grab}
.rest-drag-handle:focus-visible,.rest-icon-action:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.rest-icon-action{cursor:pointer;font-size:16px}.rest-icon-action:hover:not(:disabled){color:#1747a6;background:#e7eefc}.rest-icon-action:disabled{opacity:.35;cursor:not-allowed}
.rest-item-actions{display:flex;align-items:center;gap:2px}.rest-disallowed-list .rest-preference-row{background:#fff}.rest-empty{display:grid;place-items:center;min-height:40px;color:var(--muted);font-size:14px;line-height:20px;text-align:center}.rest-reset{margin-top:16px}
@media(max-width:760px){.rest-preference-columns{grid-template-columns:1fr;gap:16px}.rest-preference-bucket{padding:12px}.rest-priority{min-width:70px}.rest-preference-row{padding:4px 6px}.rest-preference-row strong{font-size:14px}.rest-preferences-section .button{width:auto}.rest-reset{width:100%!important}}

/* Controle auto generatie: brede, horizontaal scrollbare kruistabel. */
.modal:has(.matchup-matrix){width:min(100%,1040px)}
.matchup-title{margin:32px 0 0;font-size:20px;line-height:28px}
.matchup-matrix{min-width:max-content;margin-top:16px;font-variant-numeric:tabular-nums}
.matchup-matrix th,.matchup-matrix td{min-width:64px;padding:9px 10px;text-align:center}
.matchup-matrix thead th{max-width:88px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.matchup-matrix thead th:first-child,.matchup-matrix tbody th{position:sticky;left:0;z-index:1;min-width:150px;max-width:190px;color:var(--ink);background:white;text-align:left;text-transform:none}
.matchup-matrix thead th:first-child{z-index:2;color:var(--muted);text-transform:uppercase}
.matchup-matrix .matrix-diagonal{color:var(--muted);background:var(--canvas)}
@media(max-width:760px){.matchup-matrix thead th:first-child,.matchup-matrix tbody th{min-width:126px;max-width:150px}.matchup-matrix th,.matchup-matrix td{min-width:52px;padding:8px}}

/* Mobiele polish: inhoudskaarten lopen door tot de schermrand, terwijl
   waarschuwingen en korte meldingen hun veilige marge behouden. */
@media(max-width:760px){
  .mobile-menu-button span{display:none}
  .mobile-menu-button svg{display:block;width:24px;height:24px;fill:none;stroke:#1747a6;stroke-linecap:round;stroke-width:2}

  .day-card{border:0;border-bottom:1px solid #d0d2d6;border-radius:0;box-shadow:none}
  .day-summary{border-bottom:0}
  .day-summary[aria-expanded="true"]>span:first-child:before{display:inline-block;width:8px;height:8px;margin:0 8px 2px 0;border-radius:999px;background:#1747a6;content:""}
  .day-summary[aria-expanded="false"]>span:first-child:before{display:none}

  .mobile-menu-handle{display:block;width:36px;height:20px;margin:0 auto 8px;padding:8px 0;border:0;background:linear-gradient(#b9c5d6,#b9c5d6) center/36px 4px no-repeat;border-radius:10px;touch-action:none}
  .control-card{display:none}
  .schedule-control{margin:16px 16px 0}
  .schedule-control .notice{margin:0 0 16px}
  [data-generate-schedule]{color:#1747a6!important;background:#fff!important}

  .team-card{box-sizing:border-box;width:100%;max-width:none;padding-bottom:16px}
  .team-card .team-list{padding-bottom:0}
  .team-card .team-row:last-child{padding-bottom:0}

  .settings-section{position:relative;border-bottom:0}
  .settings-section::after{position:absolute;right:16px;bottom:0;left:16px;height:1px;background:#d0d2d6;content:""}
}

/* Actueel overzicht — compacte desktopweergave voor een tv of scherm. */
.current-overview-button{display:inline-grid;flex:0 0 32px;width:32px;height:32px;place-items:center;border:1px solid transparent;border-radius:8px;color:var(--blue);text-decoration:none}
.current-overview-button:hover,.current-overview-button.active{border-color:var(--blue);background:var(--blue-soft)}
.current-overview-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}
.current-overview-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.85fr);gap:24px;align-items:start}
.current-schedule-card,.current-ranking-card,.current-empty{padding:20px 24px}
.current-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}
.current-card-heading .eyebrow{margin:0 0 4px}
.current-card-heading h2,.current-empty h2{margin:0;font-size:20px;line-height:28px}
.current-card-heading>span{padding-top:4px;color:var(--muted);font-size:12px;font-weight:700;white-space:nowrap}
.current-schedule th,.current-schedule td{padding-right:6px;padding-left:6px}
.current-schedule th:first-child,.current-schedule td:first-child{padding-left:0}
.current-schedule th:last-child,.current-schedule td:last-child{padding-right:0}
.current-schedule .official{font-size:13px}
.current-schedule-card .setup-row{padding-right:0;padding-left:0}
.current-ranking-card .ranking th,.current-ranking-card .ranking td{padding-right:8px;padding-left:8px}
.current-ranking-card .ranking th:first-child,.current-ranking-card .ranking td:first-child{padding-left:0}
.current-ranking-card .ranking th:last-child,.current-ranking-card .ranking td:last-child{padding-right:0}
.current-ranking-card .ranking td:nth-child(3),.current-ranking-card .ranking td:nth-child(4),.current-ranking-card .ranking th:nth-child(3),.current-ranking-card .ranking th:nth-child(4){text-align:center}
.current-empty p{margin:8px 0 0;color:var(--muted)}
@media(max-width:760px){.current-overview-button{display:none}.current-overview-grid{grid-template-columns:1fr}}

/* Tv-weergave voor Actueel overzicht. De reguliere pagina's behouden hun compacte leesbreedte. */
@keyframes tv-overview-fade{from{opacity:0}to{opacity:1}}
.tv-overview{animation:tv-overview-fade .5s ease-out}
.tv-overview-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 0 24px}
.tv-overview-heading .eyebrow{margin:0 0 4px}
.tv-overview-heading h1{margin:0;font-size:32px;line-height:40px}
.tv-overview-heading p:not(.eyebrow){margin:4px 0 0;color:var(--muted);font-size:20px;font-weight:700}
.tv-overview-next{color:var(--muted)!important;font-size:14px!important;font-weight:600!important;white-space:nowrap}
.tv-overview .current-schedule tbody tr.presentation-next-block td{background:#e7f2ff}
.tv-overview .current-schedule tbody tr.presentation-next-block td:first-child{border-radius:6px 0 0 6px}
.tv-overview .current-schedule tbody tr.presentation-next-block td:last-child{border-radius:0 6px 6px 0}
@media(min-width:1000px){
  body.tv-overview-active .header-inner,.page-shell.tv-page{width:min(calc(100% - 64px),1888px);max-width:1888px}
  .page-shell.tv-page{padding-top:28px}
  .tv-overview .current-overview-grid{grid-template-columns:minmax(0,1.55fr) minmax(420px,.85fr);gap:32px}
  .tv-overview .current-schedule-card,.tv-overview .current-ranking-card,.tv-overview .current-empty{padding:24px 28px}
  .tv-overview .current-card-heading h2{font-size:24px;line-height:32px}
  .tv-overview .current-schedule th{padding-top:12px;padding-bottom:10px;font-size:13px}
  .tv-overview .current-schedule td{padding-top:14px;padding-bottom:14px;font-size:18px;line-height:24px}
  .tv-overview .current-schedule .official{font-size:17px}
  .tv-overview .current-ranking-card .ranking th{padding-top:12px;padding-bottom:10px;font-size:13px}
  .tv-overview .current-ranking-card .ranking td{padding-top:14px;padding-bottom:14px;font-size:18px;line-height:24px}
  .tv-overview .setup-row{padding-top:18px;font-size:17px}
}
@media(max-width:999px){.current-overview-button{display:none!important}}
@media(prefers-reduced-motion:reduce){.tv-overview{animation:none}}
