:root {
  --ink: #163428;
  --green: #266a4c;
  --lime: #d9f24d;
  --cream: #f6f2e8;
  --paper: #fffdf8;
  --line: #d9ddcf;
}

* { box-sizing: border-box; }
.checking-admin body { visibility: hidden; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}
.access-shell{max-width:680px;margin:80px auto;padding:0 24px}.access-shell h1{font-size:clamp(42px,7vw,68px);line-height:1;margin:8px 0 20px}.access-shell p:not(.eyebrow){color:#647269;font-size:17px;line-height:1.6;margin-bottom:28px}
button, a { font: inherit; }
button { cursor: pointer; }
.topbar {
  height: 76px;
  max-width: 1180px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}
.topbar-left{display:flex;align-items:center;gap:18px;min-width:0}.team-switcher{display:inline-flex;align-items:center;gap:7px;background:#fff;color:var(--ink);white-space:nowrap}.team-switcher:hover{background:#f3f4ed}.team-selector-logo{width:24px;height:24px;flex:0 0 24px}.team-selector-logo[hidden]{display:none}.team-selector-logo img{display:block;width:100%;height:100%;object-fit:contain}.team-switcher select{max-width:300px;border:0;outline:0;background:transparent;color:var(--ink);font-family:"Segoe UI",sans-serif;font-size:13px;font-weight:750;cursor:pointer}.team-switcher .team-logo-wrap{display:none}.team-logo-wrap{width:22px;height:22px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:#edf2e8;flex:0 0 auto}.team-logo-wrap>*{grid-area:1/1}.team-logo-wrap img{width:100%;height:100%;object-fit:cover}.team-logo-wrap .team-dot{margin:0}.empty-team{grid-column:1/-1;display:flex;min-height:220px;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:var(--muted)}.empty-team strong{color:var(--ink);font-family:Georgia,serif;font-size:25px}
.user-header-actions{display:flex;align-items:center;gap:10px}.inbox-link{display:inline-flex;align-items:center;gap:7px;color:var(--ink);font-weight:750;text-decoration:none;padding:7px 10px;border-radius:999px}.inbox-link:hover{background:#f1eee7}.inbox-badge{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#c54437;color:#fff;font-size:11px;line-height:20px;text-align:center}
.account-menu{position:relative}.account-button{display:inline-flex;align-items:center;background:transparent;color:var(--ink)}.account-button:hover{background:#f1eee7}.team-dot.is-unread{background:#c54437}.menu-unread-count{margin-left:3px}.menu-unread-count[hidden]{display:none}.account-dropdown{position:absolute;z-index:30;right:0;top:calc(100% + 8px);display:grid;min-width:150px;padding:6px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 10px 28px rgba(22,52,40,.14)}.account-dropdown[hidden]{display:none}.account-menu-link{display:flex;align-items:center;justify-content:flex-start;padding:10px 12px;border-radius:7px;color:var(--ink);font-size:13px;font-weight:800;text-decoration:none}.account-menu-link[hidden]{display:none}.account-menu-link:hover{background:#f6f2e8}
.admin-home-link{display:inline-flex;align-items:center;padding:9px 13px;border-radius:999px;background:var(--ink);color:#fff;font-size:12px;font-weight:800;text-decoration:none}.admin-home-link:hover{background:var(--green)}.admin-home-link[hidden]{display:none}
.admin-feedback-badge{position:static;margin-left:6px;background:#f2cf57;color:#25352d}.nav-badge{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:5px;padding:0 5px;border-radius:999px;background:#d8584d;color:#fff;font-size:9px;font-weight:900}.nav-badge[hidden]{display:none}
.whatsapp-link{display:inline-flex;align-items:center;padding:9px 13px;border-radius:999px;background:#dff4e6;color:#236442;font-size:13px;font-weight:800;text-decoration:none}.whatsapp-link[hidden]{display:none}.whatsapp-link:hover{background:#ccebd7}.whatsapp-setting{display:grid;grid-template-columns:minmax(220px,1fr) minmax(300px,1.4fr) auto;align-items:end;gap:22px}.whatsapp-setting>div{display:flex;flex-direction:column;gap:5px}.whatsapp-setting label{display:grid;gap:7px;font-size:12px;font-weight:800}.whatsapp-setting input{width:100%;border:1px solid var(--line);border-radius:10px;background:#fff;padding:11px 12px;color:var(--ink);font:inherit;font-weight:500}
.team-logo-setting{display:grid;grid-template-columns:auto minmax(220px,1fr) auto auto;align-items:center;gap:18px}.team-logo-setting>div:nth-child(2){display:flex;flex-direction:column;gap:5px}.team-logo-preview{width:68px;height:68px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:var(--ink);color:var(--lime);font:italic 30px Georgia,serif}.team-logo-preview>*{grid-area:1/1}.team-logo-preview img{width:100%;height:100%;object-fit:cover}.team-logo-upload{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.team-logo-setting .text-button{white-space:nowrap}
.families-communication{margin-top:54px}
.settings-section{margin-top:64px}.season-list{display:grid;gap:10px}.season-row{display:grid;grid-template-columns:1.3fr 1fr 1fr auto;align-items:end;gap:16px;padding:17px 18px;background:#fff;border:1px solid var(--line);border-radius:12px}.season-row label{display:grid;gap:6px;font-size:11px;font-weight:800}.season-row label small{font-weight:500;color:#78847d}.season-row input{min-width:0;border:1px solid #bdc7bb;border-radius:8px;padding:9px 10px;color:var(--ink);font:inherit}.season-row>div{display:flex;flex-direction:column;align-items:flex-end;gap:7px}.current-season{padding:4px 8px;border-radius:999px;background:#dfeee4;color:#286640;font-size:10px;font-weight:800}.season-save{margin-top:16px;border:0;border-radius:999px;background:var(--ink);color:#fff;padding:11px 17px;font-weight:800}
.unsaved-state{color:#a35b13!important;font-weight:800}.unsaved-dialog{position:fixed;inset:0;z-index:100;background:rgba(13,33,25,.55);display:grid;place-items:center;padding:20px}.unsaved-dialog[hidden]{display:none}.unsaved-dialog section{width:min(520px,100%);background:var(--paper);border-radius:20px;padding:30px;box-shadow:0 24px 70px rgba(0,0,0,.22)}.unsaved-dialog h2{font-family:Georgia,serif;font-size:30px;line-height:1.1;margin:8px 0 12px}.unsaved-dialog p:not(.eyebrow){color:#647269;line-height:1.55}.unsaved-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:25px}.unsaved-actions .primary-action{background:var(--ink);color:#fff;border:0;border-radius:999px;padding:11px 17px;font-weight:800}.danger-outline{color:#9a4037;border-color:#d9aaa4!important}
.family-unsaved-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.family-unsaved-actions button{width:100%;min-width:0;padding:10px 6px!important;white-space:normal}
.team-admin-list{display:grid;gap:12px}.team-admin-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 18px;background:#fff;border:1px solid var(--line);border-radius:14px;font-size:9px}.team-admin-card.is-archived{background:#f1f2ef;opacity:.78}.team-admin-main{display:flex;align-items:center;gap:10px;flex:1;min-width:0}.team-admin-main small{color:var(--muted);font-size:9px}.team-card-sport{font-family:"Segoe UI Emoji",sans-serif;font-size:9px;line-height:1}.team-card-logo{width:24px;height:24px;object-fit:contain}.team-name-link{color:var(--ink);font-size:9px;font-weight:750;text-decoration:underline;text-decoration-color:#b8c6bb;text-underline-offset:4px}.team-name-link:hover{color:var(--green);text-decoration-color:currentColor}.team-admin-status{align-self:center;padding:5px 9px;border-radius:999px;background:#dfeee4;color:#286640;font-size:9px;font-weight:850;text-transform:uppercase}.is-archived .team-admin-status{background:#e1e2df;color:#667069}.team-admin-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.team-admin-actions a,.team-admin-actions button{font-size:9px;text-decoration:none}.archived-team-title{margin:28px 0 2px;font-family:Georgia,serif;font-size:20px}.team-add-actions{justify-content:flex-start;margin-top:24px}.team-dialog-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr);gap:16px;margin-top:22px}.team-dialog-fields label{display:grid;align-content:start;gap:7px;min-width:0;color:#68756d;font-size:11px;font-weight:850;text-transform:uppercase}.team-dialog-fields input,.team-dialog-fields select{width:100%;min-width:0;border:1px solid #bdc7bb;border-radius:8px;background:#fff;padding:12px;color:var(--ink);font:inherit;text-transform:none}.team-dialog-fields label small{color:var(--muted);font-weight:500;text-transform:none}@media(max-width:760px){.team-admin-card{align-items:stretch;flex-direction:column}.team-admin-main{align-items:flex-start;flex-wrap:wrap}.team-admin-status{width:max-content}.team-admin-actions{justify-content:flex-start}.team-dialog-fields{grid-template-columns:1fr}}
.team-profile-form{display:grid;align-items:stretch;gap:18px;margin-top:36px;padding:26px}.team-form-heading{display:flex;align-items:end;justify-content:space-between;gap:20px}.team-form-heading h3{margin:2px 0 0;font-family:Georgia,serif;font-size:28px;font-weight:500}.team-form-heading>span{color:#607268;font-weight:800}.team-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.team-profile-form select,.team-profile-form input,.team-settings-form select,.team-settings-form input{width:100%;border:1px solid #bdc7bb;border-radius:8px;background:#fff;padding:11px 12px;color:var(--ink);font:inherit}.team-logo-upload-field small{color:#7b8780;font-weight:500;text-transform:none}.team-links-editor{display:grid;gap:10px;margin:0;padding:16px;border:1px solid var(--line);border-radius:12px}.team-links-editor legend{padding:0 7px;color:#68756d;font-size:11px;font-weight:850;text-transform:uppercase}.team-link-row{display:grid;grid-template-columns:minmax(130px,.6fr) minmax(220px,1.4fr) auto;align-items:center;gap:10px}.team-links-editor>.outline{justify-self:start}.team-settings-form{display:grid;gap:20px;padding:24px;background:#fff;border:1px solid var(--line);border-radius:16px}.team-settings-form label{display:grid;gap:7px;color:#68756d;font-size:11px;font-weight:850;text-transform:uppercase}.team-settings-form label small{font-weight:500;text-transform:none}.team-settings-actions{display:flex;justify-content:flex-end}.team-settings-logo-preview{width:72px;height:72px;border-radius:50%;object-fit:cover;background:#edf2e8;border:1px solid var(--line)}.team-basics-form{margin-bottom:34px}.team-basics-grid{display:grid;grid-template-columns:minmax(150px,.65fr) minmax(240px,1.35fr) minmax(220px,1fr);align-items:end;gap:18px}.team-basics-logo{grid-column:1/-1;display:flex;align-items:center;gap:14px}.family-register-title{margin-top:4px}@media(max-width:900px){.team-basics-grid{grid-template-columns:1fr 1fr}.team-basics-logo{grid-column:1/-1}}@media(max-width:760px){.team-profile-grid,.team-basics-grid{grid-template-columns:1fr}.team-form-heading{align-items:flex-start;flex-direction:column}.team-link-row{grid-template-columns:1fr}.team-settings-actions>*{width:100%}}
.moved-note{display:inline-flex;width:max-content;margin-top:5px;padding:4px 8px;border-radius:999px;background:#f7e8c9;color:#875711;font-size:11px!important;font-weight:800}.admin-match-number .moved-note{max-width:112px;white-space:normal;line-height:1.25;text-align:center;justify-content:center}
.inbox-shell{max-width:860px;margin:0 auto;padding:64px 24px 90px}.inbox-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.inbox-heading h1{font-family:Georgia,serif;font-size:clamp(42px,7vw,68px);line-height:.95;margin:5px 0 0}.inbox-intro{max-width:650px;color:var(--muted);font-size:17px;line-height:1.6;margin:24px 0 32px}.inbox-list{display:grid;gap:12px}.inbox-message{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px 24px;box-shadow:0 8px 26px rgba(30,25,15,.04)}.inbox-message.is-unread{border-color:#b4cf8b;box-shadow:inset 4px 0 0 #76983c,0 8px 26px rgba(30,25,15,.04)}.inbox-message-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.inbox-message time{color:var(--muted);font-size:13px;margin-left:auto}.inbox-message h2{font-size:19px;margin:14px 0 7px}.inbox-message p{color:var(--muted);line-height:1.5;margin:0}.inbox-type,.inbox-new{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;background:#eee}.inbox-new{background:#e5f0d3;color:#38631c}.inbox-type.schema{background:#e5ecfa;color:#315b95}.inbox-type.bekräftelse{background:#dfeee4;color:#286640}.inbox-type.byte{background:#f8e9c9;color:#8a5a00}.inbox-message-actions{display:flex;justify-content:flex-end;margin-top:10px;padding-top:8px;border-top:1px solid #edf0eb}.inbox-message-actions .text-button{padding:4px 0}.inbox-empty{display:flex;flex-direction:column;gap:8px;text-align:center;color:var(--muted);padding:60px 24px;border:1px dashed var(--line);border-radius:18px}.inbox-empty strong{color:var(--ink);font-size:18px}
.feedback-admin-shell{display:block;max-width:900px;padding:0}.feedback-admin-shell.is-admin{display:grid;max-width:1280px}.feedback-shell{max-width:900px;margin:0 auto;padding:64px 24px 90px}.feedback-admin-shell.is-admin .feedback-shell{max-width:none;margin:0;padding:0}.feedback-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.feedback-heading h1{font-family:Georgia,serif;font-size:clamp(42px,7vw,68px);line-height:.95;margin:5px 0 0}.feedback-intro{max-width:690px;color:var(--muted);font-size:16px;line-height:1.6;margin:24px 0 30px}.feedback-form{display:grid;gap:18px;padding:26px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 12px 32px rgba(30,55,40,.06)}.feedback-form label{display:grid;gap:7px;color:var(--ink);font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.06em}.feedback-form select,.feedback-form textarea{width:100%;border:1px solid #d2d8ce;background:#fffefa;border-radius:9px;padding:12px;color:var(--ink);font:inherit}.feedback-form textarea{min-height:150px;resize:vertical;line-height:1.5}.feedback-form button{justify-self:start;border:0;border-radius:9px;padding:13px 20px;background:var(--ink);color:#fff;font-weight:850}.feedback-form small{color:#7a867f;line-height:1.5}.feedback-list{display:grid;gap:12px}.feedback-item{padding:20px 22px;background:#fff;border:1px solid var(--line);border-radius:15px}.feedback-item-top{display:flex;align-items:center;justify-content:space-between;gap:14px}.feedback-item p{margin:13px 0 0;color:#53665c;line-height:1.55;white-space:pre-wrap}.feedback-meta{display:flex;gap:8px;align-items:center;color:#7a867f;font-size:12px}.feedback-kind{display:inline-flex;padding:5px 9px;border-radius:999px;background:#fff0c8;color:#7d601c;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.feedback-success{padding:30px;background:#e2f2e4;border:1px solid #bfd9c6;border-radius:16px;color:#276842}.feedback-success strong{display:block;font-family:Georgia,serif;font-size:26px;font-weight:500;margin-bottom:7px}@media(max-width:600px){.feedback-heading{align-items:flex-start;flex-direction:column}.feedback-item-top{align-items:flex-start;flex-direction:column}}
.feedback-bubble{position:fixed;z-index:52;right:24px;bottom:24px;width:58px;height:58px;border:0;border-radius:50%;background:var(--lime);color:var(--ink);font-size:24px;box-shadow:0 10px 28px rgba(20,49,35,.28);display:grid;place-items:center}.feedback-bubble:hover{transform:translateY(-2px)}.feedback-widget[hidden]{display:none}.feedback-widget{position:fixed;z-index:51;inset:0;background:rgba(10,32,23,.34)}.feedback-widget-card{position:absolute;right:24px;bottom:94px;width:min(430px,calc(100vw - 32px));max-height:calc(100vh - 120px);overflow:auto;padding:24px;background:var(--paper);border:1px solid #d7ddd0;border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.24)}.feedback-widget-card h2{margin:3px 42px 8px 0;font-family:Georgia,serif;font-size:28px;font-weight:500}.feedback-widget-card>p{margin:0 0 18px;color:#65746b;font-size:13px;line-height:1.5}.feedback-widget-close{position:absolute;right:16px;top:13px;border:0;background:transparent;color:var(--ink);font-size:27px}.feedback-widget-form{display:grid;gap:13px}.feedback-widget-form label{display:grid;gap:6px;color:#65746b;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.feedback-widget-form select,.feedback-widget-form textarea{width:100%;border:1px solid #d2d8ce;background:#fffefa;border-radius:9px;padding:10px;color:var(--ink);font:inherit}.feedback-widget-form textarea{min-height:120px;resize:vertical;line-height:1.45}.feedback-widget-context{padding:10px 12px;border-radius:8px;background:#edf1e7;color:#6a776f;font-size:11px;line-height:1.45}.feedback-widget-submit{border:0;border-radius:9px;padding:12px 16px;background:var(--ink);color:#fff;font-weight:850}.feedback-context{margin-top:15px;padding-top:12px;border-top:1px solid #e5e9e1;color:#68766e;font-size:12px}.feedback-context summary{cursor:pointer;font-weight:800}.feedback-context dl{display:grid;grid-template-columns:80px 1fr;gap:6px 10px;margin:12px 0 0}.feedback-context dt{font-weight:800}.feedback-context dd{margin:0;overflow-wrap:anywhere}@media(max-width:600px){.feedback-bubble{right:16px;bottom:16px}.feedback-widget-card{right:16px;bottom:86px;padding:20px}}
@media(max-width:900px){.season-row{grid-template-columns:1fr 1fr}.season-row>div{align-items:flex-start}}@media(max-width:760px){.whatsapp-setting,.team-logo-setting{grid-template-columns:1fr}.whatsapp-setting button{width:100%}.team-logo-setting .team-logo-preview{justify-self:start}}@media(max-width:650px){.season-row{grid-template-columns:1fr}.topbar-left{gap:8px}.brand>span:last-child{display:none}.team-switcher{padding:8px 10px}.user-header-actions{gap:4px}.whatsapp-link{font-size:12px;padding:8px 10px}.inbox-shell{padding:40px 18px 70px}.inbox-heading{align-items:flex-start;flex-direction:column}.inbox-back{align-self:stretch;text-align:center}.inbox-message{padding:19px}.inbox-message-top{align-items:flex-start}}
.brand { color: var(--ink); display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.4px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--lime); font-family: Georgia, serif; font-style: italic; }
.team { border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font-size: 13px; font-weight: 700; }
.team-dot { display: inline-block; width: 8px; height: 8px; background: #3baa67; border-radius: 50%; margin-right: 8px; }
.notice {
  position: fixed;
  z-index: 20;
  top: 86px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: 11px;
  background: var(--ink);
  color: white;
  box-shadow: 0 12px 30px rgba(22,52,40,.24);
  text-align: center;
  font-weight: 750;
}
.swap-dialog[hidden] { display: none; }
.swap-dialog { position: fixed; z-index: 40; inset: 0; background: rgba(10,32,23,.58); display: grid; place-items: center; padding: 20px; }
.swap-dialog-panel { position: relative; width: min(570px,100%); max-height: min(760px,calc(100vh - 40px)); overflow: auto; background: var(--paper); border-radius: 18px; padding: 32px; box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.swap-dialog-panel h2 { font-family: Georgia,serif; font-size: 30px; font-weight: 500; margin: 0 38px 10px 0; }
.swap-dialog-intro { color: #627168; line-height: 1.55; margin: 0 0 24px; }
.swap-dialog-close { position: absolute; right: 18px; top: 16px; border: 0; background: transparent; color: var(--ink); font-size: 28px; line-height: 1; }
.swap-takeover { width: 100%; border: 0; border-radius: 10px; padding: 14px; background: var(--ink); color: white; font-weight: 850; }
.swap-divider { display: flex; align-items: center; gap: 10px; margin: 22px 0; color: #7a877f; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; }
.swap-divider::before,.swap-divider::after { content:""; height: 1px; background: var(--line); flex: 1; }
.swap-options { display: grid; gap: 9px; }
.swap-options label { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: white; border-radius: 10px; padding: 12px; cursor: pointer; }
.swap-options label span { display: flex; flex-direction: column; color: #68776e; font-size: 12px; }
.swap-options label b { color: var(--ink); font-size: 13px; }
.swap-submit { width: 100%; margin-top: 14px; }
.swap-offer { border: 1px solid var(--line); background: white; border-radius: 12px; padding: 16px; margin-top: 12px; display: grid; gap: 9px; }
.swap-preferences{display:grid;gap:7px;margin:0 0 18px;padding:14px;border-radius:11px;background:#eef1e8;color:#607067;font-size:12px}.swap-preferences strong{color:var(--ink)}.swap-preferences span{display:block}.swap-preferences .text-button{justify-self:start;margin-top:4px;padding:0}
.swap-choice { text-align: left; border: 1px solid #cfd8c9; border-radius: 9px; background: #f7faef; color: var(--ink); padding: 11px 13px; display: flex; flex-direction: column; }
.swap-choice:hover { border-color: var(--green); }
.swap-choice span { color: #647268; font-size: 11px; text-transform: capitalize; }
.swap-choice b { font-size: 14px; margin-top: 2px; }
.swap-decline { justify-self: start; margin-top: 5px; }
.swap-empty,.swap-summary { background: #f0f3ea; color: #66736b; border-radius: 9px; padding: 14px; margin-bottom: 14px; }
.swap-unavailable{display:grid;gap:6px;margin-top:14px;padding:13px 14px;border:1px solid #e2ddd0;border-radius:10px;background:#f6f3eb;color:#74786f;font-size:12px}.swap-unavailable strong{color:var(--ink)}
.swap-summary { display: grid; gap: 5px; font-size: 13px; }
.hero {
  background: var(--cream);
  border-top: 1px solid #ece8dc;
  border-bottom: 1px solid #e4dfd2;
  padding: 72px max(28px, calc((100vw - 1124px) / 2)) 82px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: start;
  gap: 72px;
}
.hero-match,.hero-summary{min-width:0}.hero-match>.eyebrow{margin-bottom:17px}.hero-summary{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:20px;padding-top:39px}.hero-summary .intro{max-width:none;margin:0}.hero-summary .quota-summary{grid-column:1/-1;width:100%;max-width:none;margin:0}
.eyebrow { font-size: 12px; font-weight: 900; letter-spacing: 2px; color: var(--green); margin: 0 0 17px; }
h1 { font-family: Georgia, serif; font-weight: 500; font-size: clamp(50px, 6vw, 78px); letter-spacing: -3.5px; line-height: .97; margin: 0 0 26px; }
.intro { max-width: 430px; font-size: 17px; line-height: 1.65; color: #52665d; }
.quota-summary { max-width: 470px; margin-top: 24px; padding: 16px 18px; border: 1px solid #d8dfca; border-radius: 13px; background: rgba(255,255,255,.58); }
.quota-summary > span { display: block; margin-bottom: 5px; color: #6f7d75; font-size: 9px; font-weight: 900; letter-spacing: 1px; }
.quota-summary > strong { display: block; color: var(--green); font-family: Georgia,serif; font-size: 21px; font-weight: 500; }
.quota-summary p { margin: 7px 0 0; color: #607168; font-size: 12px; line-height: 1.5; }
.quota-summary b { color: var(--ink); }
.season-duty-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:9px}.season-duty-stats>div{min-width:0;padding:9px 8px;border-radius:9px;background:rgba(255,255,255,.65);text-align:center}.season-duty-stats span,.season-duty-stats small{display:block;color:#69786f;font-size:9px;font-weight:800}.season-duty-stats strong{display:block;margin:2px 0;color:var(--green);font:500 21px Georgia,serif}.season-duty-stats small{font-weight:650}@media(max-width:420px){.season-duty-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
.public-season-stats{grid-template-columns:repeat(auto-fit,minmax(88px,1fr))}.season-duty-stats .season-total{background:#e4f0d5;border:1px solid #c7daa7}.season-duty-stats .season-total strong{color:#315d2e}

.club-admin-list{display:grid;gap:12px}.club-admin-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:#fff}.club-admin-main{display:flex;align-items:center;gap:12px}.club-admin-main img,.club-logo-placeholder{width:38px;height:38px;border-radius:50%;object-fit:contain}.club-logo-placeholder{display:grid;place-items:center;background:var(--ink);color:var(--lime);font:italic 20px Georgia,serif}.club-admin-main strong{font-size:16px}.club-dialog-fields{display:grid;gap:18px;margin-top:22px}.club-dialog-fields>label{display:grid;gap:7px;color:#68756d;font-size:11px;font-weight:850;text-transform:uppercase}.club-dialog-fields input{width:100%;border:1px solid #bdc7bb;border-radius:8px;background:#fff;padding:12px;color:var(--ink);font:inherit;text-transform:none}.club-dialog-logo{display:flex;align-items:center;gap:16px}.club-dialog-logo img{width:72px;height:72px;border-radius:50%;object-fit:contain;border:1px solid var(--line)}.club-dialog-logo>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.club-dialog-logo small{flex-basis:100%;color:var(--muted)}.logo-picker-button{display:inline-flex;cursor:pointer}
.next-card { background: #fff; border: 1px solid #dce1d4; border-radius: 18px; min-height: 252px; box-shadow: 0 18px 40px rgba(28,55,40,.08); display: grid; grid-template-columns: 110px 1fr; overflow: hidden; }
.date-block { background: var(--ink); color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.date-block span { font-family: Georgia, serif; font-size: 50px; line-height: 1; }
.date-block strong { color: var(--lime); letter-spacing: 2px; margin-top: 9px; }
.next-main { padding: 28px 30px; display: flex; flex-direction: column; justify-content: space-between; }
.next-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.next-heading p, .match-info > span { margin: 0 0 9px; font-weight: 700; font-size: 13px; text-transform: capitalize; color: #607268; }
.next-heading h2 { margin: 0 0 9px; font-family: Georgia, serif; font-size: 29px; font-weight: 500; }
.location { font-size: 14px; color: #67776f; }
.pill { white-space: nowrap; align-self: flex-start; padding: 7px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.confirmed { background: #e4f4e7; color: #267044; }
.host-confirmed { background: #e4f4e7; color: #267044; }
.secretariat-confirmed { background: #e4f4e7; color: #267044; }
.done { background: #e8ebe7; color: #5f6963; }
.duty-choice-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:12px}.duty-choice-actions button{border:1px solid #bfc8bd;border-radius:10px;padding:14px;background:#fff;color:var(--ink);font-weight:850}.duty-choice-actions button:hover{border-color:var(--green);background:#f3f7ef}
.quota-warning,.selection-summary{display:flex;flex-direction:column;gap:6px;margin:0 0 20px;padding:14px 16px;border-radius:11px;background:#fff0c8;color:#765a17;font-size:13px;line-height:1.45}.quota-warning strong{color:#684b08}.selection-summary{background:#edf3e8;color:#52675b}.confirmation-actions{display:flex;flex-wrap:wrap;gap:10px}.confirmation-actions>button:first-child{border:0;border-radius:9px;padding:12px 16px;background:var(--ink);color:#fff;font-weight:850}
.pending { background: #fff0c8; color: #846214; }
.swap { background: #efe4ff; color: #6b4093; }
.cancelled { background: #ececeb; color: #777; }
.responsible { border-top: 1px solid var(--line); padding-top: 23px; display: flex; align-items: center; gap: 14px; }
.next-card .responsible { padding-top: 17px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-weight: 900; }
.responsible:not(.duty-list) > div:nth-child(2) { display: flex; flex-direction: column; }
.responsible div span:not(.pill), .family span:not(.pill) { font-size: 9px; font-weight: 900; letter-spacing: 1.2px; color: #73837a; }
.responsible strong { font-size: 16px; }
.responsible small { color: #77867e; }
.group-avatar { font-size: 12px; }
.next-actions { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.responsible button, .actions button:not(.text-button) { margin-left: auto; border: 0; background: var(--ink); color: white; font-weight: 800; border-radius: 9px; padding: 11px 15px; }
.check { margin-left: auto; color: var(--green); font-weight: 800; }
.schedule { max-width: 1124px; margin: 0 auto; padding: 78px 28px; }
.section-title { display: flex; justify-content: space-between; align-items: end; margin-bottom: 26px; }
.section-title h2 { margin: 0; font-family: Georgia, serif; font-size: 38px; font-weight: 500; }
.outline { background: transparent; border: 1px solid #bfc8bd; border-radius: 9px; padding: 10px 14px; color: var(--ink); font-weight: 700; }
.schedule .section-title { flex-wrap: wrap; gap: 16px; }
.away-filter { min-height: 44px; }
.away-filter:hover, .away-filter[aria-pressed="true"] { background: #e5eedc; border-color: var(--green); }
.away-filter:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.match-list { border-top: 1px solid var(--line); }
.match-row { min-height: 106px; display: grid; grid-template-columns: 68px minmax(230px, 1fr) 180px 190px; align-items: center; gap: 22px; border-bottom: 1px solid var(--line); padding: 14px 4px; }
.compact-date { text-align: center; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.compact-date strong { font-family: Georgia, serif; font-size: 29px; line-height: 1; }
.compact-date span { font-size: 10px; font-weight: 900; letter-spacing: 1px; color: var(--green); }
.match-info { display: flex; flex-direction: column; }
.match-info strong { font-family: Georgia, serif; font-size: 19px; font-weight: 500; }
.match-info small { margin-top: 3px; color: #738078; }
.family { display: flex; flex-direction: column; }
.family strong { margin-top: 3px; }
.actions { text-align: right; }
.action-stack { display: flex; width: 100%; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 9px; text-align: left; }
.action-stack .pill { align-self: center; }
.action-stack button:not(.text-button) { margin-left: 0; }
.actions { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.host-action { padding-bottom: 0; border-bottom: 0; }
.away-note{display:inline-flex;align-items:center;width:max-content;margin-top:6px;padding:4px 9px;border-radius:999px;background:#edf1f5;color:#485461;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.away-public{padding:12px 15px;border-radius:12px;background:#f1f4f6;color:#45515c;font-weight:700}
.admin-match.admin-away{background:#f8fafb}
.text-button { border: 0; background: none; color: var(--green); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.muted { color: #849087; font-size: 12px; }
.is-cancelled .match-info, .is-cancelled .compact-date, .is-cancelled .family { opacity: .45; text-decoration: line-through; }
.match-row.is-mine, .match-row.is-host, .match-row.is-secretariat {
  background: linear-gradient(90deg, #edf5dc 0%, #f7faef 70%, transparent 100%);
  box-shadow: inset 4px 0 0 #76983c;
  border-radius: 8px;
  padding-left: 12px;
  padding-right: 12px;
}
.secretariat-label { margin-top: 10px; }
.match-row.is-away, .match-row.is-completed { background: #fafaf7; }
.team-resources{max-width:1068px;margin:0 auto;padding:0 28px 64px}.team-resources>div{display:flex;flex-wrap:wrap;gap:10px}.team-resources a{padding:10px 14px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-weight:800;text-decoration:none}.team-resources a:hover{background:#f1eee7}
.how { background: var(--ink); color: white; padding: 65px max(28px, calc((100vw - 1068px) / 2)) 75px; }
.how .eyebrow { color: var(--lime); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 55px; }
.steps div { display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; }
.steps span { grid-row: 1 / 3; width: 38px; height: 38px; border: 1px solid #71847a; color: var(--lime); border-radius: 50%; display: grid; place-items: center; font-weight: 900; }
.steps strong { font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.steps p { margin: 6px 0 0; color: #b8c6be; line-height: 1.5; font-size: 14px; }
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 35px; padding-top: 50px; }
  .hero-summary { padding-top: 0; }
  .match-row { grid-template-columns: 55px 1fr auto; gap: 14px; }
  .family { grid-column: 2; }
  .actions { grid-column: 3; grid-row: 2; }
}
@media (max-width: 600px) {
  .hero { padding-left: 18px; padding-right: 18px; }
  .hero-summary { grid-template-columns:56px minmax(0,1fr); gap:14px; }
  .home-club-logo { width:56px; height:56px; }
  .topbar { padding: 0 18px; }
  .next-card { grid-template-columns: 1fr; }
  .date-block { padding: 18px; flex-direction: row; gap: 8px; }
  .date-block span { font-size: 32px; }
  .next-main { padding: 23px 19px; gap: 30px; }
  .next-heading { flex-direction: column; }
  .responsible { flex-wrap: wrap; }
  .next-actions { width: 100%; margin-left: 0; justify-content: flex-start; }
  .responsible button { width: 100%; margin: 8px 0 0; }
  .schedule { padding: 55px 18px; }
  .section-title { align-items: flex-start; gap: 20px; }
  .section-title h2 { font-size: 31px; }
  .match-row { grid-template-columns: 50px 1fr; padding: 18px 0; }
  .actions { grid-column: 2; grid-row: auto; justify-self: start; }
  .family { grid-column: 2; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
}

/* Administration */
.admin-page { background: #f4f1e8; padding-bottom: 100px; }
.admin-header-actions { display: flex; align-items: center; gap: 10px; }
.admin-preview-link { text-decoration: none; font-size: 12px; }
.admin-shell { max-width: 1280px; margin: 0 auto; padding: 38px 28px 90px; display: grid; grid-template-columns: 230px 1fr; gap: 52px; }
.admin-sidebar { position: sticky; top: 28px; align-self: start; }
.admin-sidebar h1 { font-size: 43px; letter-spacing: -2px; margin-bottom: 20px; }
.admin-sidebar > p:not(.eyebrow) { color: #68766e; font-size: 14px; line-height: 1.6; }
.admin-sidebar nav { display: grid; margin: 30px 0; border-top: 1px solid var(--line); }
.admin-sidebar nav a { color: #68766e; text-decoration: none; padding: 13px 4px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 13px; }
.admin-sidebar nav a.active { color: var(--ink); }
.admin-stat { display: inline-flex; flex-direction: column; margin-right: 25px; }
.admin-stat strong { font-family: Georgia, serif; font-size: 30px; font-weight: 500; }
.admin-stat span { color: #78847d; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.sidebar-slot-setting { display: grid; gap: 6px; margin: 0 0 20px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; }
.sidebar-slot-setting select,.slot-count-control select { border: 1px solid #d2d8ce; background: #fffefa; border-radius: 7px; padding: 7px; color: var(--ink); }
.sidebar-slot-setting small { color: #7a867f; font-size: 9px; font-weight: 500; line-height: 1.4; text-transform: none; letter-spacing: 0; }
.target-setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 12px; font-weight: 800; }
.target-setting select { border: 1px solid #bdc7bb; border-radius: 7px; background: white; padding: 6px 9px; color: var(--ink); }
.sidebar-family-stats{margin-top:22px;padding-top:17px;border-top:1px solid var(--line)}.sidebar-stats-title{margin-bottom:12px}.sidebar-stats-title strong{font-size:12px}.sidebar-stats-section+.sidebar-stats-section{margin-top:18px;padding-top:15px;border-top:1px solid #dfe4dd}.sidebar-stats-section h2{margin:0;font:800 11px "Segoe UI",sans-serif;color:var(--ink)}.sidebar-stats-section>span{display:block;margin:2px 0 7px;color:#7a867f;font-size:8px;text-transform:uppercase;letter-spacing:.06em}.sidebar-stats-table{width:100%;border-collapse:collapse;font-size:10px}.sidebar-stats-table th,.sidebar-stats-table td{padding:5px 3px;border-bottom:1px solid #e5e7df;text-align:right}.sidebar-stats-table th:first-child{text-align:left}.sidebar-stats-table thead th{color:#7a867f;font-size:7px;text-transform:uppercase;letter-spacing:.035em}.sidebar-stats-table tbody th{max-width:72px;overflow:hidden;text-overflow:ellipsis;font-weight:750;white-space:nowrap}.sidebar-stats-table tbody td{color:#6e7c74}.sidebar-stats-table tbody b{color:var(--green)}
.schedule-add-actions{display:flex;flex-wrap:wrap;gap:10px}.add-season-break{background:#eef1e8!important}.season-break-row{display:grid;grid-template-columns:1fr 190px auto;align-items:end;gap:22px;margin:18px 0;padding:18px 22px;border:1px dashed #b7a36d;border-radius:14px;background:#fbf5df}.season-break-row>div{display:flex;flex-direction:column;gap:4px}.season-break-row span{font-size:9px;letter-spacing:.12em;font-weight:900;color:#866b24}.season-break-row strong{font-family:Georgia,serif;font-size:20px;font-weight:500}.season-break-row label{display:grid;gap:6px;font-size:11px;font-weight:800}.season-break-row input{border:1px solid #c9bb91;border-radius:8px;background:#fff;padding:9px;color:var(--ink);font:inherit}
.admin-section-title { display: flex; justify-content: space-between; align-items: end; margin-bottom: 22px; }
.family-title-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.outline:disabled { cursor: not-allowed; opacity: .48; }
.admin-section-title h2 { font-family: Georgia, serif; font-weight: 500; font-size: 35px; margin: 0; }
.admin-callout { display: flex; gap: 12px; align-items: baseline; padding: 14px 18px; background: #e7edd6; border: 1px solid #d3ddbb; border-radius: 10px; margin-bottom: 18px; font-size: 12px; }
.admin-callout span { color: #64715e; }
.admin-match { background: white; border: 1px solid #d9ddcf; border-radius: 14px; padding: 24px; margin-bottom: 14px; display: grid; grid-template-columns: 65px 1fr 280px; gap: 22px; box-shadow: 0 5px 16px rgba(35,57,43,.035); }
.admin-match-number { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.admin-match-number span { font-size: 9px; letter-spacing: 1.5px; font-weight: 900; color: #75827b; }
.admin-match-number strong { font-family: Georgia, serif; font-size: 31px; font-weight: 500; }
.admin-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-fields label, .admin-assignments label { display: flex; flex-direction: column; gap: 5px; color: #6c7972; font-size: 10px; font-weight: 900; letter-spacing: .7px; text-transform: uppercase; }
.admin-fields input, .admin-assignments select { width: 100%; border: 1px solid #cfd5cb; background: #fffefa; color: var(--ink); border-radius: 7px; padding: 9px 10px; font: 600 13px "Segoe UI", sans-serif; text-transform: none; letter-spacing: 0; }
.admin-fields label > small{color:#89938d;text-transform:none;letter-spacing:0;font-weight:500}.admin-time-field{position:relative}.admin-time-field output{position:absolute;inset:1px 34px 1px 1px;display:flex;align-items:center;padding:0 10px;border-radius:6px;background:#fffefa;color:var(--ink);font:600 13px "Segoe UI",sans-serif;letter-spacing:.08em;pointer-events:none}.admin-time-field output[hidden]{display:none}.admin-time-field input.typing-time{color:transparent}
.admin-assignments { border-left: 1px solid var(--line); padding-left: 22px; display: grid; gap: 12px; }
.match-host-editor { background: transparent; border: 0; border-radius: 0; padding: 0 0 9px; }
.match-host { margin-top: 3px; color: var(--ink) !important; }
.match-host-label, .next-role-label { display: block; margin-top: 10px; }
.assignment-editor { display: grid; gap: 8px; padding-bottom: 9px; border-bottom: 1px solid #edf0e9; }
.assignment-editor:last-child { border-bottom: 0; padding-bottom: 0; }
.actual-label { background: #eef4df; border-radius: 7px; padding: 8px; }
.actual-label span { color: #3b6648; }
.admin-assignments small { color: #89938d; text-transform: none; letter-spacing: 0; font-weight: 500; }
.no-fika-note { min-height: 100%; border-radius: 9px; background: #f1f3ed; color: #66736b; display: flex; flex-direction: column; justify-content: center; padding: 18px; }
.no-fika-note strong { color: var(--ink); font-size: 13px; }
.no-fika-note span { margin-top: 4px; font-size: 11px; }
.no-fika-public { background: #f0f3ea; border-radius: 8px; color: #66736b; padding: 14px 16px; font-weight: 700; font-size: 13px; }
.admin-match-controls { grid-column: 2 / 4; border-top: 1px solid #edf0e9; padding-top: 12px; display: flex; align-items:center; justify-content: flex-end; gap: 22px; font-size: 12px; }
.slot-count-control { display: flex; align-items: center; gap: 7px; }
.slot-count-control select { padding: 4px 7px; }
.cancel-check { display: flex; align-items: center; gap: 7px; color: #68756d; }
.publish-actions{display:flex;flex-direction:row!important;align-items:center;gap:14px}.discard-changes{border-color:#a9b3aa!important;color:var(--ink)!important}.changed-field{outline:2px solid #c78300!important;outline-offset:3px;border-radius:5px;background:#fff6d8!important}.changed-card{box-shadow:inset 4px 0 #c78300}.sidebar-stats-table thead th{white-space:normal}
.admin-cancelled { opacity: .6; }
.add-match { width: 100%; border: 1px dashed #aeb9ac; background: transparent; color: var(--green); border-radius: 12px; padding: 16px; font-weight: 800; }
.family-section { margin-top: 70px; }
.family-help { color: #6f7d75; margin: -10px 0 18px; font-size: 13px; }
.family-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.family-grid + .schedule-add-actions { margin-top: 18px; }
.family-card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 17px; display: flex; align-items: center; gap: 13px; }
.family-card > div:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.family-card span { font-size: 9px; font-weight: 900; letter-spacing: 1px; color: #78857e; }
.family-card small { color: #7c8982; }
.family-card b { font-size: 12px; color: var(--green); }
.family-editor { align-items: stretch; }
.family-inputs { display: grid !important; gap: 7px; }
.family-inputs label { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 6px; font-size: 9px; font-weight: 900; color: #77847c; text-transform: uppercase; }
.family-parent-row { display: grid; grid-template-columns: 78px minmax(130px,.8fr) minmax(175px,1.1fr) auto auto auto minmax(70px,auto); align-items: center; gap: 6px; }
.family-parent-row > span { color: #77847c; text-transform: uppercase; }
.family-inputs .family-admin-check { display:flex;align-items:center;gap:6px;color:var(--ink);font-size:10px;white-space:nowrap;text-transform:none;letter-spacing:0; }
.family-inputs .family-admin-check input { width:16px;height:16px;min-width:16px;padding:0; }
.person-access{display:flex;align-items:center;justify-content:flex-end;gap:7px;font-size:9px;color:#7b8881}.person-access .text-button{font-size:9px}.access-active{color:#276842!important}
.family-inputs input { min-width: 0; border: 1px solid #d2d8ce; background: #fffefa; border-radius: 6px; padding: 7px; color: var(--ink); text-transform: none; }
.family-inputs .field-changed{border-color:#c78300;background:#fff7df}.family-inputs label.changed-field{outline:2px solid #c78300;outline-offset:2px;border-radius:5px;background:#fff6d8;padding:2px}
.family-save-bar{justify-content:center;margin-top:22px}.family-save-bar .primary-action{min-width:150px}
.schedule-review{padding:22px;margin:20px 0;border:1px solid var(--line);border-radius:16px;background:#fff}.schedule-review-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.schedule-review h3{font-family:Georgia,serif;font-size:24px;margin:0 0 8px}.schedule-review p{line-height:1.5;color:#607268}.schedule-review-heading p{margin:0}.schedule-review-heading button{flex-shrink:0}.schedule-proposal{border-top:1px solid var(--line);padding:16px 0}.schedule-proposal h4{margin:0 0 8px}.schedule-proposal p{margin:8px 0}.schedule-proposal-actions{display:flex;align-items:center;gap:18px}.schedule-proposal-status{font-weight:700}.schedule-review details{margin-top:16px}.schedule-review li{line-height:1.5;margin:8px 0}@media(max-width:650px){.schedule-review-heading{align-items:flex-start;flex-direction:column}.schedule-review{padding:16px}}
.schedule-sources-editor{margin-bottom:34px}.schedule-sources-editor h3{margin:0 0 10px;font-family:Georgia,serif;font-size:25px;font-weight:500}.schedule-sources-editor p{color:#607268;line-height:1.55;margin:0}.schedule-sources-editor>button{justify-self:start}.schedule-sources-editor>small{color:#607268;line-height:1.55}.schedule-source-row{display:grid;grid-template-columns:minmax(180px,1.4fr) minmax(150px,1fr) auto;gap:12px;align-items:end;padding:18px 0;border-bottom:1px solid var(--line)}.schedule-source-row input{min-width:0}.schedule-source-row>button{min-height:44px}@media(max-width:900px){.schedule-source-row{grid-template-columns:1fr 1fr}.schedule-source-row label:first-child{grid-column:1/-1}}@media(max-width:540px){.schedule-source-row{grid-template-columns:1fr}.schedule-source-row label:first-child{grid-column:auto}.schedule-source-row>button{justify-self:start}}
.team-logo-wrap [hidden]{display:none!important}
.child-name{color:var(--ink)!important;font-size:inherit!important;font-weight:inherit!important;letter-spacing:inherit!important;text-transform:none!important}.own-child-name{color:var(--ink)!important;font-weight:inherit!important}
.match-row.is-completed .family strong,.match-row.is-completed .child-name{font-weight:400!important}.home-club-logo{display:grid;place-items:center;width:72px;height:72px;margin:0}.home-club-logo[hidden]{display:none}.home-club-logo img{max-width:100%;max-height:100%;object-fit:contain}.team-switcher{position:relative}.team-switcher [data-team-selected]{font-family:"Segoe UI Emoji","Segoe UI",sans-serif;font-size:13px;font-weight:750}.team-switcher select{position:absolute!important;inset:0;width:100%;max-width:none!important;opacity:0}.team-switcher .team-selector-logo{display:none!important}
.invitation-link-panel{width:min(620px,calc(100vw - 32px))}.invitation-link-field{display:grid;gap:7px;margin:18px 0}.invitation-link-field span{font-size:10px;font-weight:850;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.invitation-link-field input{width:100%;padding:12px;border:1px solid #cbd3c8;border-radius:8px;background:#fff;font:13px ui-monospace,SFMono-Regular,Consolas,monospace}.invitation-link-actions{display:flex;gap:10px;flex-wrap:wrap}
.family-balance { min-width: 82px; padding: 10px; border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.family-balance strong { font-family: Georgia, serif; font-size: 22px; }
.family-balance span { font-size: 8px; letter-spacing: .8px; font-weight: 900; text-transform: uppercase; }
.family-balance small { margin-top: 3px; font-size: 9px; }
.family-card-side { min-width: 110px; display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.family-card-side .invite-family { padding: 8px 10px; font-size: 11px; }
.family-card-side small { color: #7c8982; font-size: 9px; text-align: center; }
.remove-family { color: #7c5f54; font-size: 10px; }
.inactive-family-list { margin-top: 16px; display: grid; gap: 7px; color: #78847d; font-size: 12px; }
.inactive-family-list > strong { color: var(--ink); font-size: 11px; text-transform: uppercase; letter-spacing: .8px; }
.inactive-family-list span { display: flex; align-items: center; justify-content: space-between; max-width: 430px; padding: 8px 10px; background: rgba(255,255,255,.55); border-radius: 7px; }
.goal-done { background: #e2f2e4; color: #276842; }
.goal-open { background: #fff0c8; color: #7d601c; }
.publish-bar { position: fixed; z-index: 15; bottom: 0; left: 0; right: 0; min-height: 76px; background: var(--ink); color: white; display: flex; align-items: center; justify-content: center; padding: 12px max(28px, calc((100vw - 1224px) / 2)); box-shadow: 0 -10px 30px rgba(22,52,40,.15); }
.publish-bar > strong { position: absolute; left: max(28px, calc((100vw - 1224px) / 2)); }
.publish-bar span { color: #aebeb5; font-size: 12px; }
.publish-bar button { background: var(--lime); color: var(--ink); border: 0; border-radius: 9px; padding: 13px 20px; font-weight: 900; }
.publish-bar button:disabled { cursor: not-allowed; opacity: 1; background: #b8c1b9; color: var(--ink); }
.stats-filters { display: flex; flex-wrap: wrap; gap: 12px; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.stats-filters label { display: flex; flex-direction: column; gap: 5px; color: #718078; font-size: 9px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; }
.stats-filters select,.stats-filters input { min-width: 150px; border: 1px solid #cfd5cb; border-radius: 7px; padding: 9px 10px; background: #fffefa; color: var(--ink); font: 600 13px "Segoe UI",sans-serif; }
.stats-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 18px; }
.stats-summary article { background: var(--ink); color: white; border-radius: 11px; padding: 17px; display: flex; flex-direction: column; }
.stats-summary strong { color: var(--lime); font-family: Georgia,serif; font-size: 28px; font-weight: 500; }
.stats-summary span { color: #b8c7be; font-size: 10px; text-transform: uppercase; letter-spacing: .7px; }
.stats-table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 12px; }
.stats-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.stats-table th { text-align: left; padding: 12px 15px; background: #eef1e8; color: #718078; font-size: 9px; text-transform: uppercase; letter-spacing: .8px; }
.stats-table td { padding: 14px 15px; border-top: 1px solid #e7eadf; font-size: 13px; vertical-align: top; }
.stats-table td:first-child { display: flex; flex-direction: column; }
.stats-table td:first-child small { color: #7b8881; margin-top: 3px; }
.stats-count { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; font-weight: 900; }
.stats-count.done { background: #e2f2e4; color: #276842; }
.stats-count.open { background: #fff0c8; color: #7d601c; }
.stats-inactive { opacity: .62; }
.stats-table summary { color: var(--green); cursor: pointer; font-weight: 800; white-space: nowrap; }
.history-list { width: 280px; padding-top: 8px; }
.history-list p { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 7px 0; border-bottom: 1px solid #edf0e9; font-size: 11px; }
.history-list p span { color: #66756d; }
.history-list p b { white-space: nowrap; }
.history-list em { color: #7b8881; font-size: 11px; }
.magic-link-form{display:grid;gap:15px;margin-top:26px;padding:22px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 30px rgba(25,50,38,.06)}.magic-link-form label{display:grid;gap:7px;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.magic-link-form input{border:1px solid #d2d8ce;border-radius:9px;background:#fffefa;padding:12px;color:var(--ink);font:inherit;text-transform:none}.magic-link-form button{border:0;border-radius:9px;padding:13px 18px;background:var(--ink);color:#fff;font-weight:850}.magic-link-form small{color:#718078;line-height:1.5}.access-admin-link{margin-top:22px}
.access-action-link{display:inline-block;border-radius:9px;padding:13px 18px;background:var(--ink);color:#fff;font-weight:850;text-decoration:none}
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .admin-match { grid-template-columns: 55px 1fr; }
  .admin-assignments { grid-column: 2; border-left: 0; padding-left: 0; }
  .admin-match-controls { grid-column: 2; }
}
@media (max-width: 600px) {
  .admin-preview-link { display: none; }
  .admin-shell { padding: 28px 16px 100px; }
  .admin-section-title { align-items: flex-start; gap: 14px; }
  .family-title-actions { justify-content: flex-start; }
  .admin-section-title .outline { max-width: 150px; }
  .admin-callout { flex-direction: column; }
  .admin-match { padding: 17px; grid-template-columns: 42px 1fr; }
  .admin-fields { grid-template-columns: 1fr; }
  .family-grid { grid-template-columns: 1fr; }
  .family-card { align-items: flex-start; flex-wrap: wrap; }
  .family-card .avatar { flex: 0 0 auto; }
  .family-inputs { min-width: calc(100% - 58px); }
  .family-parent-row { grid-template-columns: 70px 1fr; }
  .family-parent-row input[type="email"] { grid-column: 2; }
  .family-inputs .family-admin-check { grid-column: 2; }
  .person-access{grid-column:2;justify-content:flex-start}
  .family-card-side { margin-left: 58px; }
  .publish-bar { justify-content: center; padding: 12px 16px; }
  .publish-bar > strong { position: static; }
  .stats-summary { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:650px){.season-break-row{grid-template-columns:1fr}.season-break-row .text-button{justify-self:start}}

/* Unsaved form values use an amber warning state rather than an error state. */
.changed-field{outline-color:#c78300!important;background:#fff6d8!important}
.schedule-match-status{display:inline-flex;align-self:flex-start;margin-top:10px;padding:5px 8px;border-radius:7px;background:#eef1ed;color:#52665b;font-size:10px!important;line-height:1.4;letter-spacing:0!important;text-transform:none;font-weight:800;overflow-wrap:anywhere}
.schedule-match-status[data-kind="new"]{background:#dceee2;color:#235d3b}.schedule-match-status[data-kind="updated"],.schedule-match-status[data-kind="edited"]{background:#fff0ce;color:#795310}.schedule-match-status[data-kind="ignored"]{background:#f0f0ee;color:#737b75}
.schedule-new{border-left:4px solid #4b8962}.schedule-updated{border-left:4px solid #c58a28}
.schedule-card-actions{grid-column:2 / 4;display:flex;align-items:center;flex-wrap:wrap;gap:12px;border-top:1px solid var(--line);padding-top:14px}.schedule-card-actions small{color:#67766d;font-size:12px;line-height:1.5}
.admin-fields label.import-field,.admin-match-controls label.import-field{border-radius:8px;background:#fff6df;padding:7px}.schedule-old-value{white-space:normal;width:fit-content;max-width:100%;line-height:1.4;text-transform:none;letter-spacing:0;overflow-wrap:anywhere}
@media(max-width:900px){.schedule-card-actions{grid-column:2}}@media(max-width:700px){.schedule-card-actions{grid-column:1/-1}.schedule-match-status{max-width:100%}}
.changed-card{box-shadow:inset 4px 0 #c78300}
.family-inputs .field-changed{border-color:#c78300;background:#fff7df}
.family-inputs label.changed-field{outline-color:#c78300;background:#fff6d8}

/* Keep all three basic team settings together on one row. */
.team-basics-grid{grid-template-columns:minmax(150px,.65fr) minmax(240px,1.35fr) minmax(260px,1fr);align-items:start}
.team-basics-logo-field{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}
.team-basics-logo{grid-column:auto;gap:8px}
.team-basics-logo .team-settings-logo-preview{width:54px;height:54px}
@media(max-width:900px){.team-basics-grid{grid-template-columns:1fr 1fr}.team-basics-logo-field{grid-column:1/-1}}
@media(max-width:760px){.team-basics-grid{grid-template-columns:1fr}}

/* Preserve the home control when the team and account controls get tight on phones. */
@media(max-width:650px){
  .topbar{gap:6px;padding-left:10px;padding-right:10px}
  .topbar-left,.brand,.brand-mark{flex-shrink:0}
  .topbar-left{flex-basis:34px;min-width:34px}
  .brand-mark{flex-basis:34px}
  .user-header-actions,.admin-header-actions{min-width:0;flex:1;justify-content:flex-start}
  .team-switcher{min-width:0;max-width:150px;flex:1 1 110px;padding-left:8px;padding-right:8px}
  .team-switcher select{min-width:0;width:100%;max-width:105px;text-overflow:ellipsis}
  .account-menu{min-width:0;flex:0 1 auto}
  .account-button{max-width:88px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

.hero-summary{display:block;padding-top:39px}
.duty-progress-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0}
.duty-progress-total{display:flex;flex-direction:column;gap:4px;min-width:0}
.duty-progress-total>strong{font-size:42px;line-height:1;color:var(--ink);font-variant-numeric:tabular-nums}
.duty-progress-total>span{color:#52665d;font-size:14px;line-height:1.4}
.duty-progress-goal{display:grid;justify-items:center;gap:2px;flex-shrink:0;padding:10px 16px;border:1px solid #d8dfca;border-radius:10px;background:#f0f3e8}
.duty-progress-goal>span{font-size:14px;color:#52665d}
.duty-progress-goal>strong{font-size:26px;line-height:1.2;color:var(--ink);font-variant-numeric:tabular-nums}
.duty-progress-track{display:flex;height:18px;overflow:hidden;border-radius:999px;background:#e1e6da}
.duty-progress-track>span{height:100%;flex-shrink:0}
.duty-progress-completed{background:var(--green)}
.duty-progress-booked{background:#c5df75;background-image:repeating-linear-gradient(135deg,transparent,transparent 5px,rgba(22,52,40,.14) 5px,rgba(22,52,40,.14) 7px)}
.duty-progress-legend{display:flex;flex-wrap:wrap;gap:8px 20px;margin:12px 0 16px;color:#52665d;font-size:14px;line-height:1.5}
.duty-progress-legend>span{display:inline-flex;align-items:center;gap:5px}
.duty-progress-legend i{display:inline-block;width:12px;height:12px;margin-right:2px;border-radius:3px}
.quota-summary .duty-progress-status{font-size:14px;font-weight:700;color:var(--ink)}
.vacancy-summary{margin:14px 0 0;font-size:16px;font-weight:800}
.leader-exemption{display:block;font-size:12px;font-weight:500;color:var(--muted)}
#magic-status{font-size:14px;line-height:1.6}
#magic-status.mail-sent{padding:22px;border:1px solid #b8d4bd;border-radius:12px;background:#e2f2e4;color:#173d2e;font-size:22px;font-weight:750;line-height:1.5}
.admin-match>*,.admin-fields>*,.admin-assignments>*{min-width:0}
.admin-fields input,.admin-assignments select{min-width:0;max-width:100%}
@media(max-width:850px){.hero-summary{padding-top:0}}
@media(max-width:650px){
  .brand>span:last-child{display:none}
  .topbar .brand{flex:0 0 34px}
  .user-header-actions,.admin-header-actions{gap:6px}
  .team-switcher{flex:1 1 0;max-width:none;overflow:hidden;text-align:left;justify-content:flex-start}
  .team-switcher [data-team-selected]{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .account-menu{flex:1 1 0;max-width:45%}
  .account-button{width:100%;max-width:100%;justify-content:flex-start;text-align:left;padding:8px}
  .account-button>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .account-button .team-dot{flex-shrink:0}
  .account-dropdown{max-width:calc(100vw - 24px);min-width:140px}
  .account-menu-link{white-space:normal;overflow-wrap:anywhere}
}
@media(max-width:600px){
  .admin-shell,.admin-content,.admin-section,.admin-match{min-width:0;max-width:100%}
  .admin-match{grid-template-columns:minmax(0,1fr);gap:14px}
  .admin-match-number{border-right:0}
  .admin-fields{grid-template-columns:minmax(0,1fr)}
  .admin-assignments,.admin-match-controls{grid-column:1}
  .admin-match-controls{flex-wrap:wrap;justify-content:flex-start;gap:12px}
  .admin-fields input,.admin-assignments select{font-size:16px}
}

/* Role actions stay paired with their labels at every screen size. */
.responsible-group { align-items: flex-start; }
.responsible-group .responsible-names { display: flex; flex-direction: column; min-width: 0; }
.responsible-group .next-actions { flex-direction: column; align-items: stretch; flex-shrink: 0; }
.next-actions .text-button { width: auto; margin: 0; padding: 4px 0; background: none; color: var(--green); }
.actions .action-stack, .next-actions .action-stack { justify-content: space-between; flex-wrap: nowrap; }
@media (max-width: 600px) {
  .responsible-group { flex-wrap: nowrap; }
  .responsible-group .next-actions { width: auto; margin-left: auto; }
  .actions { justify-self: stretch; align-items: stretch; }
  .actions .confirmed, .actions .host-confirmed, .actions .secretariat-confirmed,
  .next-actions .confirmed, .next-actions .host-confirmed, .next-actions .secretariat-confirmed { background: none; padding: 0; border-radius: 0; }
}

.family.duty-list { grid-column: 3 / 5; }
.duty-list, .responsible.duty-list { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.duty-group { min-width: 0; }
.duty-label { display: block; margin-bottom: 4px; }
.duty-list .duty-person { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; margin-top: 4px; }
.duty-list .duty-name-actions { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.duty-list .duty-name-actions strong { margin: 0; }
.duty-list .text-button { width: auto; margin: 0; padding: 3px 0; border: 0; border-radius: 0; background: none; color: var(--green); font-family: inherit; font-size: 14px; font-weight: 400; }
.duty-list .duty-tags { display: flex; flex-direction: row; justify-content: flex-end; }
.duty-list .duty-tags .pill { letter-spacing: normal; }
.match-row:is(.is-completed,.is-away) :is(.match-info,.match-info>span,.match-info strong,.compact-date,.compact-date span,.family,.family strong,.family .child-name,.away-note) { color: #738078 !important; }
@media (max-width: 850px) {
  .family.duty-list { grid-column: 2 / 4; }
}
@media (max-width: 600px) {
  .family.duty-list { grid-column: 2; }
  .date-block { flex-wrap: wrap; }
  .duty-list .duty-tags:has(.confirmed,.host-confirmed,.secretariat-confirmed) { display: none; }
  .duty-list .duty-person { gap: 6px; }
}

.duty-list .duty-name-link { width: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink); font: inherit; font-weight: 700; text-align: left; text-decoration: underline; text-decoration-color: #a1b5a5; text-underline-offset: 3px; cursor: pointer; }
.duty-list .duty-name-link:hover { text-decoration-color: currentColor; }
.duty-list .duty-name-link:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

/* Keep the main card's roles, names and statuses in one vertical list. */
.next-card .duty-list .duty-group { width: 100%; }
.next-card .duty-list .duty-person { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.next-card .duty-list .duty-tags { justify-content: flex-start; }
.next-card .duty-list .duty-tags:empty { display: none; }
.next-card .duty-list .duty-name-link { font-size: 16px; }

.next-heading .days-left, .match-info .days-left { display: inline-flex; width: max-content; padding: 4px 9px; border-radius: 999px; background: #e4f4e7; color: #267044; font-size: 12px; font-weight: 850; white-space: nowrap; }
.next-heading .days-left { flex-shrink: 0; margin: 0 0 0 auto; }
.match-info .days-left { margin-top: 7px; }
@media (max-width: 600px) {
  .next-heading { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .next-heading > div { flex: 1 1 180px; min-width: 0; }
}

.duty-list .vacant-name { font-weight: 400; }
.host-confirmed { background: #fff0c8; color: #846214; }
.secretariat-confirmed { background: #e6edff; color: #365b9d; }
.card-badges, .own-duty-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.card-badges { flex-shrink: 0; margin-left: auto; }
.card-badges .pill, .own-duty-tags .pill { font-size: 14px; padding: 9px 13px; align-self: flex-end; }
.match-row .family.duty-list { grid-column: 3; min-width: 0; }
.match-row .own-duty-tags { grid-column: 4; grid-row: 1; align-self: start; }
.next-heading > .card-badges { flex: 0 0 auto; }
@media (max-width: 850px) {
  .match-row .family.duty-list { grid-column: 2; }
  .match-row .own-duty-tags { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width: 600px) {
  .match-row { grid-template-columns: 42px minmax(0,1fr) auto; gap: 10px; }
  .match-row .family.duty-list { grid-column: 2 / 4; }
  .match-row .own-duty-tags { grid-column: 3; grid-row: 1; }
  .card-badges .pill, .own-duty-tags .pill { font-size: 14px; padding: 7px 10px; }
}

.duty-list .vacancy-tag { display: inline-flex; padding: 4px 9px; background: #fff0c8; color: #846214; font-size: 12px; font-weight: 850; letter-spacing: normal; }
.next-card .main-duty-section { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 16px; }
.next-card .main-duty-section > .duty-list { display: flex; flex-direction: column; min-width: 0; }
.next-card .main-duty-section > .own-duty-tags { display: flex; flex-direction: column; align-items: flex-end; }
.next-card .main-duty-section > .own-duty-tags:empty { display: none; }

/* Match cards share countdown-sized text without overriding role colors. */
:is(.next-card, .match-row) .pill,
.next-heading .days-left,
.match-info .days-left,
.match-row .away-note { font-size: 12px; font-weight: 400; letter-spacing: normal; }
:is(.next-card, .match-row) .duty-name-actions strong,
:is(.next-card, .match-row) .duty-name-link { font-size: 12px; }

/* Consistent badge dimensions and five distinct role/status colors. */
:is(.next-card, .match-row) .pill,
.next-heading .days-left, .match-info .days-left, .match-row .away-note {
  display: inline-flex; align-items: center; box-sizing: border-box; min-height: 24px;
  padding: 4px 9px; border: 0; border-radius: 999px; font-family: inherit;
  font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: normal;
}
:is(.next-card, .match-row) .confirmed { background: #e4f4e7; color: #267044; }
:is(.next-card, .match-row) .host-confirmed { background: #fff0c8; color: #846214; }
:is(.next-card, .match-row) .secretariat-confirmed { background: #e6edff; color: #365b9d; }
.next-heading .days-left, .match-info .days-left { background: #eee4fa; color: #6b4093; }
:is(.next-card, .match-row) .vacancy-tag { background: #ffeadb; color: #99501d; margin: 0; width: auto; }
.duty-vacancy { display: flex; justify-content: flex-end; margin-top: 4px; }
.duty-vacancy button { cursor: pointer; }
.duty-vacancy button:hover { filter: brightness(.96); }
.duty-vacancy button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
:is(.next-card, .match-row) .duty-list .text-button { font-size: 12px; }

.own-duty-tags button.vacancy-tag { cursor: pointer; margin: 0; width: auto; }
.own-duty-tags button.vacancy-tag:hover { filter: brightness(.96); }
.own-duty-tags button.vacancy-tag:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

:is(.next-card, .match-row) .secretariat-confirmed { background: #eee4fa; color: #6b4093; }
.next-heading .days-left, .match-info .days-left { background: #e6edff; color: #365b9d; }
:is(.next-card, .match-row) .host-confirmed { background: #ffeadb; color: #99501d; }
:is(.next-card, .match-row) .vacancy-tag { background: #fff0c8; color: #846214; }
.own-duty-tags .choose-duty-link { background: none; color: var(--green); padding: 0; margin: 0; width: auto; font-size: 12px; font-weight: 400; }

/* Center the responsibility badges and booking link as one spaced group. */
.match-row .own-duty-tags,
.next-card .main-duty-section > .own-duty-tags {
  align-self: center; align-items: center; justify-content: center; gap: 12px;
}
.own-duty-tags .pill, .own-duty-tags .choose-duty-link { align-self: center; }

/* Shared typography for the schedule and next-match card. */
.next-card, .match-row { --match-small-size: 0.75rem; --match-meta-size: 0.8125rem; }
:is(.next-card, .match-row) .pill,
:is(.next-card, .match-row) .days-left,
:is(.next-card, .match-row) .duty-name-actions strong,
:is(.next-card, .match-row) .text-button { font-family: inherit; font-size: var(--match-small-size); line-height: 1.4; }
:is(.next-card, .match-row) .duty-label { font-size: var(--match-small-size); line-height: 1.4; letter-spacing: .04em; font-weight: 700; }
.match-info > span, .next-heading p,
.match-info > small:not(.pill), .next-heading .location { font-size: var(--match-meta-size); line-height: 1.5; }
.own-duty-tags .role-tag-action { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 10px; }
.own-duty-tags .text-button { background: none; border: 0; color: var(--green); font-weight: 400; margin: 0; padding: 0; width: auto; }
.match-row .away-note { text-transform: none; margin: 0; }
.card-badges:empty { display: none; }

/* Explicit five-column schedule: date, match, own roles, names, status. */
.match-row { grid-template-columns: 58px minmax(170px,1.5fr) minmax(110px,1fr) minmax(130px,1.1fr) minmax(100px,.8fr); gap: 16px; }
.match-row > .compact-date { grid-column: 1; grid-row: 1; }
.match-row > .match-info { grid-column: 2; grid-row: 1; min-width: 0; }
.match-row > .own-duty-tags { grid-column: 3; grid-row: 1; }
.match-row > .family.duty-list { grid-column: 4; grid-row: 1; }
.match-row > .match-status-tags { grid-column: 5; grid-row: 1; }
.match-status-tags { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; align-self: center; }
:is(.own-duty-tags,.match-status-tags) .pill { align-self: center; }
:is(.own-duty-tags,.match-status-tags) button.pill { cursor: pointer; width: auto; margin: 0; }
:is(.own-duty-tags,.match-status-tags) button.pill:hover { filter: brightness(.95); }
:is(.own-duty-tags,.match-status-tags) button.pill:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 850px) {
 .match-row { grid-template-columns: 44px minmax(0,1fr) minmax(100px,auto); gap: 12px; }
 .match-row > .own-duty-tags { grid-column: 3; grid-row: 1; }
 .match-row > .family.duty-list { grid-column: 2; grid-row: 2; }
 .match-row > .match-status-tags { grid-column: 3; grid-row: 2; }
}

.schedule-summary { margin: 16px 0 24px; font-size: 14px; line-height: 1.6; color: var(--green); }
.publish-bar { justify-content: flex-end; gap: 0; }
.publish-bar .publish-actions { display: flex; flex: 0 0 auto; }
.unsaved-actions { flex-wrap: wrap; gap: 12px; }

.stats-page .stats-summary { grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); }
.stats-page .stats-summary span { font-size:14px; text-transform:none; letter-spacing:0; }
.stats-page .stats-table th { font-size:14px; text-transform:none; letter-spacing:0; }
.stats-page .stats-table td { font-size:14px; }
.stats-page #quota-explanation { font-size:14px; line-height:1.6; margin-bottom:18px; }

/* Validation errors take precedence over unsaved changes. */
.family-inputs input[aria-invalid="true"],#team-name[aria-invalid="true"]{border-color:#c86a61!important;background:#fff1ef!important;outline:2px solid #c86a61!important;outline-offset:1px}

.schedule-filters { display:flex; flex-wrap:wrap; gap:8px; }
.schedule-team-name { font-weight:700; }

.show-all-teams .match-info .schedule-team-name { display:inline-flex; align-self:flex-start; width:fit-content; padding:5px 10px; margin-bottom:5px; border:1px solid #9eb7ab; border-radius:8px; background:#e0eee6; color:#204f3b; font-size:13px; font-weight:750; line-height:1.35; }

.show-all-teams .match-info a.other-team-label { text-decoration:underline; text-underline-offset:3px; border-color:#799c89; }
.show-all-teams .match-info a.other-team-label:hover { background:#cde3d6; }
.show-all-teams .match-info a.other-team-label:focus-visible { outline:2px solid #204f3b; outline-offset:3px; }

.played-matches-heading { margin-top:32px; }

.match-status-tags .other-team-label { display:inline-block; padding:5px 10px; border:1px solid #799c89; border-radius:8px; background:#e0eee6; color:#204f3b; font-size:13px; font-weight:750; line-height:1.35; text-decoration:underline; text-underline-offset:3px; }
.match-status-tags .other-team-label:hover { background:#cde3d6; }
.match-status-tags .other-team-label:focus-visible { outline:2px solid #204f3b; outline-offset:3px; }

.admin-match[hidden]{display:none!important}.admin-match-number strong{line-height:1.1}.baking-confirmed{background:#e8edcf;color:#163c2c}.schedule-sources-editor{margin-block:1.5rem}

/* Compact match administration */
.admin-list-toolbar{position:sticky;top:12px;z-index:5;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding:12px 0;margin:18px 0;background:#f8f8f2}
.schedule-source-actions{display:flex;flex-wrap:wrap;gap:10px}.schedule-source-actions button:disabled{opacity:.45;cursor:not-allowed}
details.admin-match{display:block;padding:0;overflow:hidden}.admin-match-summary{display:grid;grid-template-columns:145px minmax(0,1fr) 16px minmax(0,1fr) auto;align-items:center;gap:14px;padding:18px 22px;cursor:pointer;list-style:none;color:var(--ink);font-weight:700;font-size:14px}.admin-match-summary::-webkit-details-marker{display:none}.admin-match-summary>span{min-width:0;overflow-wrap:anywhere}.admin-match-summary time{font-weight:600;color:#607268;font-size:13px}.match-summary-vs{color:#8a968e;text-align:center}.admin-match-summary .match-expand-icon{font-size:20px;transition:transform .15s}.admin-match[open]>.admin-match-summary .match-expand-icon{transform:rotate(180deg)}.admin-match[open]>.admin-match-summary{border-bottom:1px solid var(--line);background:#fafbf7}.admin-match-summary:focus-visible{outline:2px solid #47745a;outline-offset:-3px}.admin-match-body{display:grid;grid-template-columns:65px minmax(0,1fr) 280px;gap:22px;padding:24px}.admin-match-controls{flex-wrap:wrap;gap:14px}.admin-cancelled{opacity:1}.admin-cancelled>.admin-match-summary{background:#f3eee7}.match-state-label{font-size:11px;color:#865b32;grid-column:2/5;grid-row:2}.admin-match-removed{border:1px dashed #bb8b6a;border-radius:14px;margin-bottom:14px;background:#fbf5ee}.admin-match-removed .admin-match-summary{cursor:default;grid-template-columns:145px minmax(0,1fr) 16px minmax(0,1fr)}.removed-match-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 22px 16px;color:#785b48;font-size:13px}.removed-match-actions button{white-space:nowrap}
@media(max-width:1000px){.admin-match-body{grid-template-columns:55px minmax(0,1fr)}.admin-match-body .admin-assignments{grid-column:2}.admin-match-body .admin-match-controls,.admin-match-body .schedule-card-actions{grid-column:2}.admin-match-summary{grid-template-columns:115px minmax(0,1fr) 10px minmax(0,1fr) auto;gap:10px;padding:16px}.admin-match-removed .admin-match-summary{grid-template-columns:115px minmax(0,1fr) 10px minmax(0,1fr)}}
@media(max-width:650px){.admin-list-toolbar{top:0;justify-content:space-between}.admin-list-toolbar button{flex:1;padding:10px;font-size:12px}.admin-match-summary,.admin-match-removed .admin-match-summary{grid-template-columns:minmax(0,1fr) 10px minmax(0,1fr) auto;gap:8px;font-size:13px}.admin-match-summary time{grid-column:1/-1;font-size:12px}.admin-match-summary>.match-state-label{grid-column:1/4;grid-row:auto}.admin-match-body{grid-template-columns:minmax(0,1fr);padding:16px;gap:16px}.admin-match-body .admin-fields,.admin-match-body .admin-assignments,.admin-match-body .admin-match-controls,.admin-match-body .schedule-card-actions{grid-column:1}.admin-match-body .admin-match-number{display:none}.admin-match-body .admin-assignments{padding-left:0;border-left:0}.removed-match-actions{flex-wrap:wrap;padding:0 16px 16px}}

.schedule-sources-editor>summary{cursor:pointer;padding:20px 24px;font-family:Georgia,serif;font-size:25px;color:var(--ink)}details.schedule-sources-editor{border:1px solid var(--line);border-radius:16px;background:#fff}.schedule-sources-body{border:0!important;margin:0!important;border-radius:0 0 16px 16px!important}.schedule-source-row label[hidden]{display:none}.schedule-source-row.schedule-team-link{grid-template-columns:minmax(0,1fr) auto}.schedule-source-row.schedule-team-link label:first-child{grid-column:auto}

.admin-match-body{grid-template-columns:minmax(0,1fr) minmax(220px,.65fr)}.admin-match-body>.schedule-match-status{grid-column:1/-1;margin-top:0}.admin-match-body .admin-match-controls,.admin-match-body .schedule-card-actions{grid-column:1/-1}@media(max-width:1000px){.admin-match-body{grid-template-columns:minmax(0,1fr)}.admin-match-body .admin-assignments{grid-column:1;border-left:0;padding-left:0}}

.admin-match-body{grid-template-columns:minmax(0,1fr)}.admin-match-body .admin-assignments{grid-column:1;border-left:0;padding-left:0;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}

/* Match dates and compact editor controls. */
.admin-match-summary{padding:0 18px 0 0;grid-template-columns:104px minmax(0,1fr) 12px minmax(0,1fr) 30px;gap:14px;min-height:84px}
.admin-match-summary time{align-self:stretch;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:12px 8px;background:#f0f3eb;border-right:1px solid var(--line);font-weight:500;line-height:1.1}
.admin-match-summary time span{font-size:9px;letter-spacing:1px;text-transform:uppercase;font-weight:900;color:#75827b}
.admin-match-summary time strong{font-family:Georgia,serif;font-size:31px;font-weight:500;color:var(--ink);margin-top:4px}
.admin-match-summary .match-expand-icon{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid var(--line);border-radius:50%;background:#fff}
.match-expand-icon svg{width:18px;height:18px}
.schedule-source-add{display:flex;justify-content:flex-end}.schedule-source-add button{width:38px;height:38px;padding:0;font-size:24px}
.schedule-source-divider{width:100%;border:0;border-top:1px solid var(--line);margin:8px 0}
.default-custom-role{display:flex;align-items:center;gap:8px}.default-custom-role label{flex:1;min-width:0}.default-custom-role button{padding:6px;color:inherit}
.role-dialog{border:1px solid var(--line);border-radius:16px;padding:24px;max-width:380px;width:calc(100% - 32px);color:var(--ink)}
.role-dialog::backdrop{background:#10291d70}.role-dialog form{display:grid;gap:20px}.role-dialog h2{margin:0}.role-dialog label{display:grid;gap:8px}.role-dialog input{width:100%;box-sizing:border-box}
@media(max-width:650px){.admin-match-summary,.admin-match-removed .admin-match-summary{grid-template-columns:68px minmax(0,1fr) 8px minmax(0,1fr) 26px;gap:8px;padding:0 10px 0 0;min-height:80px}.admin-match-summary time{grid-column:auto;grid-row:1;padding:10px 4px}.admin-match-summary time span{font-size:8px;letter-spacing:.2px}.admin-match-summary .match-expand-icon{width:26px;height:26px}.admin-match-summary>.match-state-label{grid-column:2/5}}
