: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{padding-top:29px}.hero-summary .intro{margin-top:0}.hero-summary .quota-summary{margin-left:auto}
.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))}.public-season-stats .season-total{background:#e4f0d5;border:1px solid #c7daa7}.public-season-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: #dff5f3; color: #236b66; }
.secretariat-confirmed { background: #e6edff; color: #365b9d; }
.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 div:nth-child(2) { display: flex; flex-direction: column; }
.responsible div span, .family span { 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; }
.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; }
.match-info .days-left{display:inline-flex;width:max-content;margin-top:7px;padding:4px 9px;border-radius:999px;background:#e4f4e7;color:#267044;font-size:11px;font-weight:850}
.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 {
  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;
}
.match-row.is-host {
  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;
}
.match-row.is-secretariat {
  background: linear-gradient(90deg, #eaf0ff 0%, #f6f8ff 70%, transparent 100%);
  box-shadow: inset 4px 0 0 #6685c2;
  border-radius: 8px;
  padding-left: 12px;
  padding-right: 12px;
}
.secretariat-label { margin-top: 10px; }
.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; }
  .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; }
  .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 #d8584d!important;outline-offset:3px;border-radius:5px;background:#fff1ef!important}.changed-card{box-shadow:inset 4px 0 #d8584d}.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:#c86a61;background:#fff3f1}.family-inputs label.changed-field{outline:2px solid #d8584d;outline-offset:2px;border-radius:5px;background:#fff1ef;padding:2px}
.family-save-bar{justify-content:center;margin-top:22px}.family-save-bar .primary-action{min-width:150px}
.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 0 18px auto}.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}
@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}
.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-end}
  .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}
}
