/* Race Day — shared, accessible RaceCentral colour and typography system. */
:root{color-scheme:light;--bg:#f3f6fb;--bg2:#eaf0fa;--panel:#fff;--panel2:#eaf0fa;--text:#17263f;--muted:#53627a;--faint:#53627a;--line:#d6dfed;--line2:#bfccdf;--accent:#174ee3;--accent-2:#174ee3;--disp:'Saira Condensed',Impact,'Arial Narrow',sans-serif;--body:'IBM Plex Sans',system-ui,sans-serif;--mono:'IBM Plex Mono',ui-monospace,monospace;--r:12px;--on-accent:#fff}
:root[data-theme=dark]{color-scheme:dark;--bg:#0d1422;--bg2:#202f48;--panel:#172236;--panel2:#202f48;--text:#f1f5ff;--muted:#b2c1d9;--faint:#b2c1d9;--line:#354663;--line2:#485d7b;--accent:#709bff;--accent-2:#709bff;--on-accent:#101b32}
::selection{background:#bfd2ff;color:#17263f}:root[data-theme=dark] ::selection{background:#4567ad;color:#fff}
html{font-size:18px}body{line-height:1.55}h1,h2,h3,.tab-title{font-family:var(--disp);letter-spacing:-.035em;text-transform:none}h1{font-size:2.35rem}h2,.tab-title{font-size:1.85rem}h3{font-size:1.2rem}p{line-height:1.6}button,input,select,textarea{font:inherit}input,select,textarea{color:var(--text);background:var(--panel);border:1px solid var(--line2);border-radius:8px;padding:10px 12px}label,.field label,.lbl{font-size:.8rem;letter-spacing:0;text-transform:none}.muted,small,.helptext{color:var(--muted)}small,.helptext{font-size:.8rem}.btn{font-size:.9rem;line-height:1.2;min-height:42px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;gap:8px;border-radius:8px}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.btn:hover{filter:brightness(.96)}.btn:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.topbar{background:var(--panel);border-bottom:1px solid var(--line);gap:14px}.brand b{font-size:1.4rem;letter-spacing:-.05em}.brand b span{color:var(--accent)}.brand small{font-size:.7rem}.mark{background:var(--accent);color:var(--on-accent);font:bold italic 30px Arial;border-radius:10px;transform:skew(-8deg)}.userchip{background:var(--panel2);color:var(--text);font-size:.85rem}.theme-toggle{background:var(--panel2);color:var(--text);min-width:42px;font-size:1.25rem;padding:6px}.nav{background:var(--panel);top:calc(var(--header-height,76px) + var(--series-height,62px));border-bottom:1px solid var(--line)}.nav a{font-size:.9rem;letter-spacing:0;text-transform:none;font-weight:700}.nav a.active{color:var(--accent);border-color:var(--accent)}.series-bar{position:sticky;top:var(--header-height,76px);z-index:30;display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding:10px max(24px,calc((100% - 1440px)/2));background:var(--panel);border-bottom:1px solid var(--line);font-size:.8rem}.series-bar form{display:flex;align-items:center;gap:12px;margin:0}.series-bar select{font-size:.85rem;max-width:320px;padding:7px 10px}.series-bar a{text-decoration:none;font-weight:700}.series-platform{margin-right:auto;color:var(--muted)}.series-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:28px 0}.series-cards .panel{padding:24px}.panel,.card,.social-post,.community-chat{box-shadow:0 4px 20px #17263f06;border-color:var(--line);background:var(--panel)}.phead p,.profile-form p{font-size:.95rem}.eyebrow{color:var(--accent);font-size:.75rem;letter-spacing:.12em}.foot{color:var(--muted)}.account-dropdown{background:var(--panel);color:var(--text)}.account-dropdown a{font-size:.9rem}.team-row-name,.club-badge,.recruitment-status{font-size:.85rem}.fixture-details,.fixture-details dt,.fixture-details dd{font-size:.85rem}.fixture-facts{font-size:1rem}.round-card{border-radius:12px}.controls,.seasonbar{background:var(--panel)}table{font-size:.88rem}th{font-size:.75rem}dialog{background:var(--panel);color:var(--text)}.profile-form{max-width:800px}.profile-form input,.profile-form select,.profile-form textarea{max-width:100%}.profile-form textarea{width:100%}.profile-form label{display:block;margin:12px 0 6px}.series-cards a{overflow-wrap:anywhere}
/* Loaded after page styles as well, so community and profile share the palette. */
html .community-chat,html .community-chat-head,html .posts-heading,html .social-post{background:var(--panel);color:var(--text)}html .chat-rider-name{color:var(--accent)}html .post-body,html .chat-message,html .community-message{font-size:.95rem}html .rider-hero{background:var(--panel);color:var(--text)}
@media(min-width:851px){body:has(.posts-layout)>main.wrap{top:var(--navigation-bottom,186px)!important}}
@media(max-width:850px){.series-platform{display:none}.series-bar{gap:12px;padding:10px 16px}.series-bar select{max-width:220px}.series-cards{grid-template-columns:1fr}.brand b{font-size:1.1rem}.brand small{display:none}.topbar{gap:8px}.nav{overflow-x:auto}.series-bar label{display:none}}

html .rider-cover{background:linear-gradient(110deg,var(--panel),var(--panel2))}html .rider-stat-strip{background:var(--panel2)}html .rider-cover-art{background:linear-gradient(115deg,transparent 65%,#174ee309 65%,#174ee318 82%,transparent 82%)}html .rider-byline,html .rider-stat-label{color:var(--muted)}html .rider-membership-roles span{background:var(--panel2);color:var(--accent)}html .auth-brand{margin-bottom:24px}.auth-shell>.theme-toggle{float:right;margin-top:-62px}

html .rider-settings{background:var(--panel)}html .rider-name h1{color:var(--text)}html .rider-stat-strip strong{color:var(--text)}html .rider-contact-item:first-child .rider-contact-priority{color:var(--accent)}.series-manager-row{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:16px 0;border-bottom:1px solid var(--line)}.series-manager-row form{margin-left:auto}.series-manager-row .btn{font-size:.8rem}

html .brand .mark{background:#174ee3;background-image:none;color:white}html .theme-toggle:hover{background:var(--panel2);color:var(--accent)}html .social-post a,html #community-messages a{color:var(--accent)}html .rider-settings #contact>p,html .rider-contact-value,html .rider-membership .muted{font-size:.85rem}html .rider-contact-priority,html .rider-membership-roles span{font-size:.75rem}.zp-category{min-width:1.8em;width:auto;padding-inline:6px}
html .brand-logo{display:block;width:300px;height:68px;object-fit:contain;object-position:left center}html .brand-logo-dark{display:none}:root[data-theme=dark] .brand-logo-light{display:none}:root[data-theme=dark] .brand-logo-dark{display:block}html .auth-shell .auth-brand{margin-bottom:10px}html .auth-brand .brand-logo{width:345px;height:84px}html .auth-shell>.theme-toggle{margin-top:-54px}@media(max-width:650px){html .brand-logo{width:220px;height:50px}html .auth-brand .brand-logo{width:258px;height:63px}html .auth-shell>.theme-toggle{margin-top:-37px}}

/* Match navigation content to the current page's content edges. */
body{--page-width:1180px;--page-gutter:16px}
body:has(>main.profile-wrap){--page-width:1120px;--page-gutter:24px}
body:has(>main.profile-wrap-wide){--page-width:1180px;--page-gutter:16px}
.topbar,.series-bar,.nav{
  padding-inline:calc(max(0px,(100% - var(--page-width))/2) + var(--page-gutter));
}
@media(max-width:720px){body:has(>main.profile-wrap){--page-gutter:16px}}
@media(max-width:650px){body{--page-gutter:12px}}
@media(max-width:650px){body:has(>main.profile-wrap-wide){--page-gutter:12px}}

.series-bar .series-explore{margin-left:auto;flex-shrink:0}
.setup-heading{max-width:770px;margin:24px 0}.setup-heading p{color:var(--muted)}.setup-card{display:flex;gap:22px;margin:22px 0;padding:28px}.setup-step{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;background:var(--accent);color:var(--on-accent);border-radius:12px;font-weight:800}.setup-body{flex:1;min-width:0}.setup-body h2{margin:0 0 8px}.setup-connect{margin:18px 0}.setup-connect-field{max-width:560px}.setup-connect label{display:block;margin-bottom:6px}.setup-connect-row{display:flex;align-items:center;gap:12px}.setup-connect-row input{width:auto;min-width:0;flex:1}.setup-connect-row .btn{flex:0 0 auto;white-space:nowrap}.connected-button{background:#18794e;color:#fff;border-color:#18794e}.setup-connected{display:flex;align-items:center;gap:14px;background:var(--panel2);border-radius:10px;padding:12px;margin:16px 0}.setup-connected img{width:58px;height:58px;object-fit:cover;border-radius:9px}.setup-connected span{display:block;color:var(--muted);font-size:.85rem}.setup-role-options{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.setup-role-option{display:flex;align-items:center;gap:8px;border:1px solid var(--line2);border-radius:10px;padding:12px 16px;cursor:pointer;font-weight:700}.setup-role-option:has(input:checked){border-color:var(--accent);background:var(--panel2);color:var(--accent)}.setup-role-panel{padding:20px;border:1px solid var(--line);border-radius:10px;margin:12px 0 20px}.setup-role-panel h3{margin:0 0 8px}.setup-role-panel select{width:100%;max-width:580px}.setup-check{display:flex;gap:10px;align-items:center;margin:10px 0}.setup-check input{width:auto}.setup-role-panel[hidden]{display:none}
@media(max-width:650px){.setup-card{padding:18px;gap:12px}.setup-role-options{flex-direction:column}}
.category-legend{display:flex;gap:9px;flex-wrap:wrap;margin:10px 0}.category-legend .zp-category{width:auto;padding:5px 10px}#captain-result{display:flex;align-items:center;gap:10px;margin-top:10px;color:var(--text)}#captain-result img{border-radius:8px;object-fit:cover}#captain-result span{color:var(--muted)}
:root:not([data-theme=dark]) .team-editor-form input,:root:not([data-theme=dark]) .team-editor-form select,:root:not([data-theme=dark]) .team-editor-form textarea{background:#fff}.team-captain-row{display:flex;align-items:center;gap:12px;max-width:560px}.team-captain-row input{flex:1;min-width:0}.team-captain-row .btn{flex:0 0 auto;white-space:nowrap}
.setup-connect .is-checking{cursor:wait;opacity:.92}.connect-spinner{width:15px;height:15px;display:inline-block;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:connect-spin .75s linear infinite}.setup-connect-status{margin:0 0 12px;color:var(--muted);font-size:.85rem}@keyframes connect-spin{to{transform:rotate(360deg)}}
.member-lookup-results{margin-top:10px}.member-lookup-list{list-style:none;margin:0;padding:0;display:grid;gap:5px}.member-lookup-list li{padding:7px 10px;border-radius:7px;font-size:.85rem}.member-lookup-success{background:#e9f7ee;color:#145b38}.member-lookup-error{color:#8d201b;margin:8px 0;font-size:.85rem}
.jersey-preview{margin-top:12px;width:160px;height:120px;display:grid;place-items:center;border:1px solid var(--line2);border-radius:10px;background:#fff;overflow:hidden}.jersey-preview img{max-width:100%;max-height:100%;object-fit:contain}.jersey-preview[hidden]{display:none}
.club-team-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.club-team-card{min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:hidden;box-shadow:0 4px 20px #17263f06}.club-team-card-head{display:flex;align-items:center;gap:12px;padding:16px;background:var(--panel2)}.club-team-card-head h3{margin:0;font-size:1.25rem}.club-team-card-head p{margin:2px 0 0;color:var(--muted);font-size:.8rem}.club-team-card .club-jersey,.club-jersey-empty{width:66px;height:66px;flex:0 0 66px}.club-team-card .club-jersey{object-fit:contain}.club-jersey-empty{display:grid;place-items:center;border-radius:9px;background:var(--panel);color:var(--muted);font-size:2rem}.club-team-details{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0;padding:16px;border-bottom:1px solid var(--line)}.club-team-details div{min-width:0}.club-team-details dt,.team-roster .muted{display:block;color:var(--muted);font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.club-team-details dd{margin:3px 0 0;font-size:.9rem}.club-team-card .team-roster{display:grid;gap:10px;padding:16px;min-height:76px;font-size:.85rem}.club-team-card .team-roster a{overflow-wrap:anywhere}.club-team-actions{display:flex;gap:10px;padding:14px 16px;border-top:1px solid var(--line)}.club-team-actions form{margin:0}.team-delete{color:#8d201b;border-color:#f0c2c0;background:#fff0ef}@media(max-width:1050px){.club-team-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.club-team-cards{grid-template-columns:1fr}}
.club-summary{padding:20px 24px}.club-summary-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.club-summary-head h2{margin:0}.club-summary-head .badge{display:inline-block;margin:0 0 0 8px;vertical-align:middle}.club-manager-id{margin:5px 0 0;font-size:.85rem;color:var(--muted)}.club-summary>p{margin:10px 0 0;font-size:.9rem}.club-name-form{margin-top:14px}.club-teams-section{margin-top:42px;padding-top:18px;border-top:1px solid var(--line)}.club-team-card .team-recruitment{display:inline-flex;align-items:center;padding:3px 8px;border:1px solid #f0c2c0;border-radius:6px;background:#fff0ef;color:#8d201b;font-size:.8rem;font-weight:700;line-height:1.3}.club-team-card .team-recruitment.is-recruiting{border-color:#b9dfc8;background:#e9f7ee;color:#145b38}.team-card-contact{display:inline-flex;vertical-align:middle;margin-left:10px;gap:6px}@media(max-width:650px){.club-summary-head{align-items:stretch;flex-direction:column}.club-summary-head .btn{width:100%}}
.club-team-actions{align-items:center}.club-team-actions form{display:flex}.club-team-actions .btn{height:42px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;line-height:1;padding-top:0;padding-bottom:0}.club-team-actions button.btn{appearance:none}

.team-jersey-editor{display:grid;justify-items:start;gap:10px}.team-jersey-current{display:block;width:160px;height:120px;padding:8px;border:1px solid var(--line2);border-radius:10px;background:#fff}.team-jersey-current img{display:block;width:100%;height:100%;object-fit:contain}.team-jersey-actions{display:flex;gap:10px}.team-jersey-editor input[type=file],.team-jersey-clear{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.team-jersey-remove{color:#8d201b;border-color:#f0c2c0;background:#fff0ef}.team-jersey-editor:has(.team-jersey-clear:checked) .team-jersey-remove{background:#8d201b;border-color:#8d201b;color:#fff}

.team-jersey-help{margin-top:-4px}.team-jersey-actions .btn{height:42px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;line-height:1;padding-top:0;padding-bottom:0}.team-editor-form>button.btn,.team-editor-form>a.btn{height:42px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;line-height:1;padding-top:0;padding-bottom:0;vertical-align:middle}

.team-jersey-actions{align-items:stretch}.team-jersey-actions>.btn{margin:0!important;align-self:stretch}.captain-help{display:block;margin-top:7px}
:root[data-theme=dark] .team-jersey-actions .team-jersey-remove,
.team-jersey-actions .team-jersey-remove{color:#8d201b!important}
:root[data-theme=dark] .team-jersey-editor:has(.team-jersey-clear:checked) .team-jersey-remove{color:#fff!important}

/* Chat and post body copy share one compact reading rhythm. */
html #community-messages .community-message,html .post-body{font-size:.88rem;line-height:1.35}

/* The series chooser belongs beside the account controls, not in its own banner. */
.nav{top:var(--header-height,76px)}
.top-series-switch{display:flex;align-items:center;margin:0}
.top-series-switch select{height:42px;max-width:280px;padding:7px 32px 7px 10px;font-size:.85rem;white-space:nowrap}
@media(max-width:850px){.top-series-switch select{max-width:190px}}
.topbar{padding-block:2px}.topbar,.nav{padding-inline:calc(max(0px,(100% - var(--page-width))/2) + var(--page-gutter))}
/* Chat follows the normal page flow so the footer is reachable after the posts list. */
@media(min-width:851px){
  body:has(.posts-layout){overflow:auto!important}
  body:has(.posts-layout)>main.wrap{position:static!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;overflow:visible!important}
  .posts-layout{height:auto!important;min-height:0!important;align-items:start}
  .posts-feed-panel{height:auto!important;overflow:visible!important}
  .posts-layout .community-chat{position:sticky;top:calc(var(--header-height,76px) + 70px);height:min(850px,var(--chat-page-height,calc(100dvh - 260px)));min-height:min(420px,var(--chat-page-height,calc(100dvh - 260px)));max-height:850px}
  body:has(.posts-layout)>.foot{display:block!important}
}

/* Keep the iPhone header controls in one tidy row, with the series chooser below. */
@media(max-width:650px){
  .topbar{display:grid;grid-template-columns:minmax(0,1fr) 38px auto;grid-template-areas:"brand theme auth" "series series series";column-gap:6px;row-gap:3px;padding-block:4px}
  .topbar .brand{grid-area:brand;min-width:0;overflow:hidden}
  html .topbar .brand-logo{width:min(100%,170px);height:38px}
  .topbar .spacer{display:none}
  .topbar .top-series-switch{grid-area:series;min-width:0;width:100%}
  .topbar .top-series-switch select{width:100%;max-width:none;height:38px;min-height:38px}
  .topbar>.theme-toggle{grid-area:theme;min-width:38px;width:38px;height:38px;min-height:38px;padding:0}
  .topbar #authArea{grid-area:auth;width:auto;min-width:0;justify-self:end;gap:4px}
  .topbar .notification-menu{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px}
  .topbar #authArea .account-menu .userchip{height:38px;min-height:38px;max-width:none;padding:3px 6px;gap:4px}
  .topbar #authArea .account-menu summary>span:nth-last-child(2){display:block;max-width:72px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .topbar:has(#authArea>a.btn){grid-template-areas:"brand theme theme" "series series series" "auth auth auth"}
  .topbar:has(#authArea>a.btn) #authArea{justify-self:stretch;justify-content:flex-end;flex-wrap:wrap}
}

/* Keep the league columns aligned while allowing long club and team names to wrap. */
#tzResults .tzbody{overflow-x:visible}
#tzResults .league-team-head,#tzResults .league-team{display:grid;grid-template-columns:96px 54px minmax(0,1fr) 132px;align-items:center;gap:8px;min-width:0}
#tzResults .league-team-head{padding:3px 0 6px;color:var(--muted);font-size:.62rem;font-weight:700;line-height:1.15}
#tzResults .league-team-head>span:last-child{text-align:right}
#tzResults .league-team{padding:8px 0}
#tzResults .team-division,#tzResults .team-result-division,#tzResults .team-identity,#tzResults .team-recruitment-contact{min-width:0}
#tzResults .team-identity{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;white-space:normal}
#tzResults .team-club{min-width:0;max-width:100%;flex:0 1 auto}
#tzResults .team-club .club-tag{max-width:100%;height:auto;min-height:20px;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
#tzResults .team-row-name{min-width:0;flex:1 1 90px;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
#tzResults .team-recruitment-contact{display:flex;align-items:center;justify-content:flex-end;gap:5px}
#tzResults .team-recruitment-contact .team-status:empty,#tzResults .team-recruitment-contact .team-action:empty{display:none}
#tzResults .team-recruitment-contact .direct-message-icon{font-size:1.15rem;line-height:1}
#tzResults .team-division .competition-badge{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:700px){
  #tzResults .league-team-head,#tzResults .league-team{grid-template-columns:minmax(0,1fr) 49px 92px;column-gap:5px;row-gap:4px}
  #tzResults .league-team-head{font-size:.56rem}
  #tzResults .league-team-head>span:nth-child(1),#tzResults .team-division{grid-column:1;grid-row:1}
  #tzResults .league-team-head>span:nth-child(2),#tzResults .team-result-division{grid-column:2;grid-row:1}
  #tzResults .league-team-head>span:nth-child(3),#tzResults .team-identity{grid-column:1/3;grid-row:2}
  #tzResults .league-team-head>span:nth-child(4),#tzResults .team-recruitment-contact{grid-column:3;grid-row:1/3;align-self:center}
  #tzResults .team-division .competition-badge{height:auto;min-height:20px;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
  #tzResults .team-club .club-tag{font-size:.62rem}
  #tzResults .team-row-name{font-size:.68rem}
  #tzResults .team-recruitment-contact .team-recruitment{width:16px;height:16px;min-width:16px;box-sizing:border-box;padding:0;border:1px solid #138a3d;border-radius:50%;background:#138a3d;color:transparent;font-size:0!important;overflow:hidden}
  #tzResults .team-recruitment-contact .team-contact{width:26px;height:26px;padding:0}
}

#spareCards .kv>span:last-child{min-width:0;text-align:right}
#spareCards .competition-badge{width:auto;max-width:100%;height:auto;min-height:22px;white-space:normal;text-align:center}

/* Keep sign-in providers and the welcome notice inside narrow phone screens. */
.auth-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.auth-header .auth-brand{display:block;flex:1;min-width:0;margin:0}
.auth-header .brand-logo{max-width:100%}
.auth-header .theme-toggle{flex:0 0 42px;margin:0}
.auth-provider-button{min-width:0;padding:0 8px;white-space:nowrap;font-size:.8rem;line-height:1}
.auth-provider-button .contact-icon{flex:0 0 24px;width:24px;height:24px}
.auth-provider-google{box-sizing:border-box;border:1px solid var(--line2);border-radius:8px;background:#f2f2f2;overflow:hidden}
.auth-provider-google img{height:46px}
.auth-community-dialog{box-sizing:border-box;max-height:calc(100dvh - 32px);overflow-y:auto}
.auth-community-dialog h2{font-size:1.35rem;line-height:1.2}
.auth-community-dialog p{font-size:.83rem;line-height:1.4}
@media(max-width:560px){.auth-provider-list{grid-template-columns:minmax(0,1fr)}.auth-community-dialog{padding:18px}.auth-community-actions{margin-top:14px}}

/* Gallery controls: media type comes first, with posting beside it. */
.media-post-label-short{display:none}
#p-media .media-controls{display:grid;grid-template-columns:auto auto minmax(180px,1fr) 150px;gap:10px;align-items:center}
#p-media .media-controls #mediaSearch{width:100%;min-width:0;max-width:none;margin:0}
#p-media .media-controls #mediaSort{width:100%;min-width:0;height:42px}
#p-media .media-controls #addMedia{white-space:nowrap}
@media(max-width:700px){
  #p-media .media-controls{grid-template-columns:minmax(0,1fr) auto;gap:8px}
  #p-media .media-controls #mediaFilter{grid-column:1;grid-row:1;justify-self:start;min-width:0}
  #p-media .media-controls #mediaFilter button{padding-inline:8px;font-size:.75rem}
  #p-media .media-controls #addMedia{grid-column:2;grid-row:1;padding-inline:10px;font-size:.75rem}
  #p-media .media-controls #mediaSearch{grid-column:1;grid-row:2;min-width:0;flex-basis:auto}
  #p-media .media-controls #mediaSort{grid-column:2;grid-row:2;width:116px;font-size:.75rem}
  .media-post-label-full{display:none}.media-post-label-short{display:inline}
}

/* Keep the calendar compact even when a route name wraps. */
.fixture-heading{background:#f1f3f5;align-items:center;gap:12px;padding:11px 16px;flex-wrap:wrap}.fixture-heading-main{min-width:0;flex:1}.fixture-heading .eyebrow{font-size:.7rem;font-weight:700;line-height:1.05}.fixture-heading h4{font-size:1.05rem;margin:1px 0 3px;line-height:1.12}.fixture-heading .race-format{padding:1px 7px;line-height:1.15}.fixture-calendar{display:flex;flex-direction:column;align-self:center;flex:0 0 64px;height:64px;margin:0}.fixture-calendar span{padding:3px;font-size:.71rem;line-height:1.1}.fixture-calendar b{display:grid;place-items:center;flex:1;padding:1px;font-size:1.65rem;line-height:1;background:#fff}:root[data-theme=dark] .fixture-heading{background:var(--panel2)}:root[data-theme=dark] .fixture-calendar b{background:var(--panel);color:var(--text)}
.fixture-registration{display:flex;flex:0 1 auto;flex-direction:column;align-items:flex-end;gap:4px;max-width:100%}.fixture-registration-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;max-width:100%;padding:5px 9px;border:1px solid #b9c9ec;border-radius:7px;background:#fff;color:#174ee3;font-size:.78rem;font-weight:700;line-height:1.2;text-decoration:none;white-space:nowrap}.fixture-registration-link img{width:17px;height:17px;object-fit:contain}.fixture-registration-link:hover,.fixture-registration-link:focus-visible{background:#e7efff;color:#174ee3;border-color:#8eaef8}.fixture-registration-event{color:var(--muted);font-weight:500}:root[data-theme=dark] .fixture-registration-link{background:var(--panel);color:#a8c2ff;border-color:var(--line)}:root[data-theme=dark] .fixture-registration-link:hover{background:var(--panel2);color:#d0dfff}
@media(max-width:600px){.fixture-registration{margin-left:76px;align-items:flex-start;flex-basis:100%}}
.fixture-calendar span{color:#fff}
#seasonRounds .round-card .badge.round-in-progress,.series-round-preview-card .badge.round-in-progress{background:#17834b;border-color:#116a3b;color:#fff}
#seasonRounds .round-card .round-number,.series-round-preview-card .round-number{display:block;font-family:var(--disp);font-size:1.2rem;font-weight:600;line-height:1.2}
.fixture-facts{--fixture-divider:#f1f3f5;gap:10px 12px}
:root[data-theme=dark] .fixture-facts{--fixture-divider:var(--panel2)}
.fixture-categories{padding:0;margin:0;border:0;border-radius:0;background:transparent}
.fixture-zrs-bands{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.fixture-zrs-band{display:inline-flex;align-items:center;justify-content:center;min-height:1.65rem;padding:.15rem .5rem;border-radius:.4rem;background:var(--category-bg,#5b3b9e);color:var(--category-fg,#fff);font:700 .8rem/1.2 "IBM Plex Sans",sans-serif;letter-spacing:0;white-space:nowrap}
.fixture-facts>:not(:last-child){position:relative;padding-right:18px}
.fixture-facts>:not(:last-child)::after{content:"";position:absolute;right:0;top:50%;width:3px;height:1em;transform:translateY(-50%);border-radius:2px;background:var(--fixture-divider)}
:root:not([data-theme=dark]) #p-resources .resource-support-link:hover,:root:not([data-theme=dark]) #p-resources .resource-support-link:focus-visible{background:#e7efff;border-color:#8eaef8;color:#174ee3;filter:none}

/* A selection is a non-destructive action; keep its light-mode hover light. */
:root:not([data-theme=dark]) .membership-entry .membership-remove:hover{background:var(--panel2);border-color:var(--accent);color:var(--text);filter:none}
.club-team-actions .team-delete:hover{background:#fbe1df;border-color:#dca4a0;color:#8d201b;filter:none}
:root:not([data-theme=dark]) .club-summary-head .btn:hover,:root:not([data-theme=dark]) .club-teams-section .fixture-toolbar .btn:not(.primary):hover,:root:not([data-theme=dark]) .team-import-download:hover{background:var(--panel2);border-color:var(--accent);color:var(--text);filter:none}

/* My Teams: one clearly labelled fact per row, using shared badge styles. */
.my-team-details{grid-template-columns:minmax(0,1fr);gap:9px}
.my-team-details>div{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:12px}
.my-team-details dt{font-size:.77rem}
.my-team-details dd{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0;min-width:0}
.my-team-details .competition-badge{font-size:.7rem}
.my-team-details .schedule-league-badge{width:auto;min-width:76px;max-width:100%;overflow-wrap:anywhere}
.my-team-details .team-card-contact{margin-left:4px}
@media(max-width:420px){.my-team-details>div{grid-template-columns:96px minmax(0,1fr);gap:8px}}

.setup-skip-form{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0 30px}
.setup-skip-form .note{margin:0}
:root:not([data-theme=dark]) .setup-skip-form .btn:hover,:root:not([data-theme=dark]) .setup-skip-form .btn:focus-visible{background:var(--panel2);border-color:var(--accent);color:var(--text);filter:none}
:root:not([data-theme=dark]) .membership-back:hover,:root:not([data-theme=dark]) .membership-back:focus-visible{background:var(--panel2);border-color:var(--accent);color:var(--text);filter:none}
.profile-reminder{gap:12px}
.profile-reminder>span{min-width:0}
.profile-reminder a{color:#174ee3;text-decoration:underline;text-underline-offset:2px}
.profile-reminder form{margin:0 0 0 auto;flex:0 0 auto}
.profile-reminder .notice-dismiss{color:#1e488e}
:root[data-theme=dark] .profile-reminder{background:#172c52;border-color:#355eaa;border-left-color:#8cb0ff;color:#edf3ff}
:root[data-theme=dark] .profile-reminder a,:root[data-theme=dark] .profile-reminder .notice-dismiss{color:#b7ccff}
.my-team-captain{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.my-team-chat{display:inline-grid;place-items:center;width:27px;height:27px;text-decoration:none;font-size:1.1rem;line-height:1}
.discord-series-settings{margin:20px 0}
.discord-series-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none}
.discord-series-summary::-webkit-details-marker{display:none}
.discord-series-summary>span:first-child{display:flex;flex-direction:column;gap:2px}
.discord-series-summary strong{font-family:var(--disp);font-size:1.35rem;line-height:1.15;color:var(--text)}
.discord-series-summary small{color:var(--muted);font-size:.8rem}
.discord-series-chevron{color:var(--accent);font-size:1.55rem;line-height:1;transition:transform .2s ease}
.discord-series-settings[open] .discord-series-chevron{transform:rotate(180deg)}
.discord-series-content{padding-top:18px;margin-top:18px;border-top:1px solid var(--line)}
.series-management-section{margin:20px 0}
.series-management-summary{display:flex;align-items:center;justify-content:flex-start;gap:8px;cursor:pointer;list-style:none}
.series-management-summary::-webkit-details-marker{display:none}
.series-management-summary::before{content:'+';display:inline-block;width:1.2em;flex:none;color:#fd6900;text-align:center;font-family:var(--disp);font-size:1.55rem;font-weight:700;line-height:1}
.series-management-section[open]>.series-management-summary::before{content:'−'}
.series-management-summary>span:not(.series-section-badge){display:flex;flex-direction:column;gap:2px;min-width:0}
.series-section-badge,.series-subsection-badge{display:inline-grid;place-items:center;flex:none;box-sizing:border-box;background:#2558bf;color:#fff;border-radius:4px;font-family:var(--disp);font-weight:700;line-height:1}
.series-section-badge{width:1.45em;height:1.45em;font-size:1.7rem;border-radius:50%;background:#203b78}
.series-subsection-badge{width:1.4em;height:1.4em;font-size:1em;border-radius:50%;background:#bedcff;color:#111}
.series-management-summary strong{font-family:var(--disp);font-size:1.7rem;line-height:1.15;color:var(--text)}
.series-management-summary small{color:var(--muted);font-size:.8rem}
.series-management-content{padding-top:18px;margin-top:18px;border-top:1px solid var(--line)}
.series-shareable-links p{margin:8px 0;overflow-wrap:anywhere}
.series-shareable-links h2{margin:0 0 8px}
.series-main-configuration>.series-management-content{padding-top:8px;margin-top:0;border-top:0}
.series-main-configuration>.series-management-content>.series-management-subsection:first-child{margin-top:0}
.series-management-cards{margin:22px 0}
.series-management-subsection{margin-top:22px}
.series-management-subsection>summary{cursor:pointer;list-style:none;font-family:var(--disp);font-size:1.4rem;font-weight:700;color:var(--text)}
.series-management-subsection>summary:has(.series-subsection-badge){display:flex;align-items:center;gap:10px}
.series-management-content .series-settings-section legend{font-size:1.15rem}
.series-settings-collapse{min-width:0;border:1px solid var(--series-race-edge);border-left:5px solid var(--series-race-edge);border-radius:0 8px 8px 0;background:var(--series-race-header)}
.series-settings-collapse>summary{display:flex;align-items:center;gap:8px;box-sizing:border-box;min-height:42px;padding:6px 9px;list-style:none;cursor:pointer;font-family:var(--disp);font-size:1.1rem;font-weight:700;color:var(--text)}
.series-settings-collapse>summary::-webkit-details-marker{display:none}
.series-settings-collapse>summary::before{content:'+';min-width:2ch;text-align:center;color:#fd6900;font-weight:800}
.series-settings-collapse[open]>summary::before{content:'−'}
.series-settings-collapse[open]>summary{border-bottom:1px solid var(--line)}
.series-settings-collapse>.series-settings-section{border:0;border-radius:0;background:transparent}
.series-settings-subgroup{display:grid;gap:18px;min-width:0;padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}
.series-settings-subgroup h4{margin:0;font-family:var(--disp);font-size:1.1rem;line-height:1.2}
.series-settings-subgroup>p{margin:0;color:var(--muted);font-size:.85rem;line-height:1.45}
.series-abcde-categories{display:grid;gap:12px;min-width:0}
.series-abcde-competitions{display:grid;gap:6px}
.series-abcde-competitions>p{margin:0;color:var(--muted);font-size:.8rem}
.series-abcde-competitions #id_abcde_competitions{display:flex;gap:16px;flex-wrap:wrap}
.series-abcde-competitions #id_abcde_competitions>div label{display:inline-flex;align-items:center;gap:6px;font-weight:600}
.series-abcde-competitions input[type=checkbox],.series-abcde-table input[type=checkbox]{width:18px;height:18px;min-width:18px;margin:0;padding:0}
.series-abcde-table-wrap{max-width:100%;overflow-x:auto}
.series-abcde-table{width:100%;border-collapse:collapse;table-layout:fixed}
.series-abcde-table th,.series-abcde-table td{padding:8px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.series-abcde-table thead th{background:var(--panel2);font-size:.8rem}
.series-abcde-table th:first-child{width:90px}
.series-abcde-table tbody th label{display:inline-flex;align-items:center;gap:8px;cursor:pointer}
.series-abcde-table textarea{box-sizing:border-box;width:100%;height:4.8em;min-height:0;resize:vertical;font-size:.8rem;line-height:1.35}
.series-abcde-table textarea:disabled{opacity:.55}
.series-abcde-table tbody tr:hover{background:color-mix(in srgb,var(--series-race-header) 65%,var(--panel));color:var(--text)}
.series-banner-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(260px,2fr);gap:18px;align-items:start}
.series-card-preview{min-width:0}
.series-card-preview>h4{margin:0 0 10px;font-family:var(--disp);font-size:1.1rem}
.series-card-preview-card{max-width:360px;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.series-card-preview-banner{height:112px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(120deg,#0e3775,#147cca 58%,#ff700a);color:#fff;font-family:var(--disp);font-weight:700}
.series-card-preview-banner img{display:block;width:100%;height:100%;object-fit:cover}
.series-card-preview-body{display:grid;gap:8px;padding:16px}
.series-card-preview-status{justify-self:start;padding:3px 8px;border-radius:999px;background:#e8eeff;color:#274aa6;font-size:.67rem;font-weight:700}
:root[data-theme=dark] .series-card-preview-status{background:#253c70;color:#cad7ff}
.series-card-preview-body h5{margin:0;font-family:var(--disp);font-size:1.15rem;line-height:1.2;overflow-wrap:anywhere}
.series-card-preview-body p{margin:0;font-size:.75rem;line-height:1.4}
.series-card-preview-body [data-preview-subtitle],.series-card-preview-dates{color:var(--muted)}
.series-card-preview-body [data-preview-description]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;min-height:3.15em}
.series-home-preview-layout{margin-top:14px}
.series-home-preview-card{max-width:360px;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.series-home-preview-hero{position:relative;display:flex;align-items:flex-end;min-height:160px;overflow:hidden;background:linear-gradient(115deg,#0b2452,#16579d 62%,#fd6900);color:#fff}
.series-home-preview-hero::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,20,48,.86),rgba(5,20,48,.38));pointer-events:none}
.series-home-preview-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.series-home-preview-copy{position:relative;z-index:1;padding:18px;overflow-wrap:anywhere}
.series-home-preview-copy span{color:#ffb678;font-size:.64rem;font-weight:700}
.series-home-preview-copy h5{margin:6px 0;font-family:var(--disp);font-size:1.4rem;line-height:1.1;color:#fff}
.series-home-preview-copy p{margin:3px 0;color:#edf4ff;font-size:.75rem}
.series-home-preview-intro{display:grid;gap:7px;padding:15px;overflow-wrap:anywhere}
.series-home-preview-intro strong{font-family:var(--disp)}
.series-home-preview-intro p{margin:0;font-size:.75rem;line-height:1.4}
.series-home-preview-intro small{color:var(--muted);font-size:.68rem}
.series-home-preview-intro a{color:var(--accent);text-decoration:none;overflow-wrap:anywhere}
.series-home-preview-intro a:hover{text-decoration:underline}
@media(max-width:760px){.series-banner-layout{grid-template-columns:minmax(0,1fr)}.series-card-preview-card{max-width:100%}}
@media(max-width:720px){.series-abcde-table,.series-abcde-table tbody,.series-abcde-table tr{display:block}.series-abcde-table thead{display:none}.series-abcde-table tr{margin-bottom:12px;padding:10px;border:1px solid var(--line);border-radius:8px}.series-abcde-table th,.series-abcde-table td{display:block;width:auto!important;border:0;padding:5px 0}.series-abcde-table td::before{display:block;margin-bottom:4px;font-size:.8rem;font-weight:700}.series-abcde-table td:nth-of-type(1)::before{content:'Open Regular guidance'}.series-abcde-table td:nth-of-type(2)::before{content:'Women’s Regular guidance'}}
.series-settings-collapse .series-settings-hidden-legend{position:absolute;width:1px;height:1px;padding:0!important;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:720px){.series-management-summary strong{font-size:1.55rem}.series-management-subsection>summary{font-size:1.3rem}.series-management-content .series-settings-section legend{font-size:1.1rem}}
.profile-form.series-settings-form{max-width:none;width:100%}
.series-management-subsection>.profile-form.series-settings-form{gap:10px;margin-top:10px}
.series-management-subsection>button[form="series-settings-form"]{margin-top:10px}
.series-settings-save-row{display:flex;align-items:flex-start;gap:20px;margin-top:16px}
.series-settings-save-row>.btn{flex:none}
.series-publish-setting{flex:1;min-width:0;max-width:560px}
.series-publish-setting .series-settings-checkbox{justify-content:flex-start}
@media(max-width:620px){.series-settings-save-row{flex-direction:column;gap:12px}}
.series-management-subsection>summary::-webkit-details-marker{display:none}
.series-management-subsection>summary::before{content:'+';display:inline-block;width:1.2em;margin-right:4px;color:#fd6900;text-align:center}
.series-management-subsection[open]>summary::before{content:'−'}
.series-management-subsection-body{padding-top:12px}
.series-management-cards{grid-template-columns:minmax(0,1fr);gap:12px;margin:16px 0}
.series-management-cards .series-management-subsection{margin-top:0;padding:16px}
.series-round-add>summary{list-style:none;cursor:pointer}.series-round-add>summary::-webkit-details-marker{display:none}.series-round-inline-form{max-width:none;margin-top:16px}.series-round-inline-form>button{justify-self:start}
.series-management-cards .series-management-subsection-body>.series-round-add,.series-management-cards .series-management-subsection-body>a.btn{margin-top:14px}
.series-management-cards .series-management-races,.series-management-cards .series-management-rounds{grid-column:1/-1;min-width:0}
.series-management-content .profile-form p,.series-item-form p{margin:0 0 10px}
.series-management-content .profile-form label,.series-item-form label{margin:4px 0 3px}
.series-management-content .profile-form input,.series-management-content .profile-form select,.series-management-content .profile-form textarea,.series-item-form input,.series-item-form select,.series-item-form textarea{padding:7px 10px}
.series-management-content .profile-form .series-settings-checkbox input[type=checkbox]{width:auto;margin:0;padding:0}
.series-item-form p:has(> input[type=checkbox]){display:flex;align-items:center;gap:8px}
.series-item-form p:has(> input[type=checkbox]) label{display:inline;margin:0}
.series-item-form p:has(> input[type=checkbox]) input[type=checkbox]{width:auto;margin:0;padding:0}
.series-powerup-row,.series-segment-row{display:grid;grid-template-columns:2ch minmax(0,1fr);align-items:center;gap:8px;padding:2px 0;border-bottom:1px solid var(--line)}
.series-powerup-row{grid-template-columns:34px minmax(0,1fr)}
.series-powerup-edit-row{margin-top:6px;border:1px solid var(--series-powerup-edge);border-left:4px solid var(--series-powerup-edge);border-radius:0 6px 6px 0;background:var(--series-powerup-header)}
.series-powerup-edit-row:first-child{margin-top:0}
.series-powerup-edit-row>summary{cursor:pointer;list-style:none;padding:7px 10px;background:var(--series-powerup-header);border-radius:0 5px 5px 0}
.series-powerup-edit-row>summary::-webkit-details-marker{display:none}
.series-powerup-edit-row>.series-powerup-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.series-powerup-edit-row>.series-powerup-row::before{content:'+';color:#fd6900;font-weight:800;min-width:2ch;text-align:center}
.series-powerup-edit-row[open]>.series-powerup-row::before{content:'−'}
.series-powerup-edit-row .series-powerup-name{font-family:var(--disp);font-size:1rem;font-weight:700;color:var(--text)}
.series-powerup-group-awards{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
.series-powerup-group-award{display:inline-flex;align-items:center;gap:5px;font-family:var(--disp);font-size:1rem;font-weight:700;color:var(--text)}
.series-powerup-group-award img{width:32px;height:32px;object-fit:contain}
.series-powerup-group-content{padding:12px}
.series-powerup-group-content>p{margin:0 0 12px}
.series-powerup-group-item+.series-powerup-group-item{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
.series-powerup-group-item h5{margin:0 0 6px;font-family:var(--disp);font-size:1rem}
.series-powerup-edit-row[open]>summary{border-radius:0 5px 0 0;border-bottom:1px solid var(--line)}
.series-powerup-inline-form{box-sizing:border-box;width:100%;max-width:none;padding:12px}
.series-powerup-inline-form p{margin:0 0 10px}
.series-powerup-inline-form p label{display:block;margin:0 0 4px;font-weight:700}
.series-powerup-inline-form p input:not([type=checkbox]),.series-powerup-inline-form p select{box-sizing:border-box;width:100%}
.series-powerup-choice-field{margin:0 0 10px}
.series-powerup-choice-field>label{display:block;margin:4px 0 3px;font-weight:700}
.series-powerup-choice{display:flex;align-items:center;gap:10px;min-width:0}
.series-powerup-choice select{box-sizing:border-box;flex:0 1 25%;min-width:160px;width:25%}
.series-powerup-choice img{flex:none;width:48px;height:48px;object-fit:contain}
.series-powerup-choice img[hidden]{display:none}
.series-powerup-details{padding:16px}
.series-powerup-details>h4{margin:0 0 4px}
.series-powerup-details>p{margin:0 0 16px;color:var(--muted)}
.series-powerup-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(240px,2fr);gap:20px;align-items:start}
.series-powerup-controls{min-width:0;display:grid;gap:12px}
.series-powerup-award-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start;width:100%;margin:16px 0}
.series-powerup-award-fields>div{min-width:0}
.series-powerup-award-fields select,.series-powerup-award-fields input{box-sizing:border-box;width:100%}
.series-powerup-award-fields .series-powerup-choice select{flex:1 1 auto;min-width:0;width:auto}
.series-powerup-save{display:inline-flex;width:auto;max-width:100%;justify-self:start;align-self:start;margin-top:12px}
.series-powerup-repeat-form{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:16px}
.series-powerup-repeat-form label{display:inline-flex;align-items:center;gap:8px;font-weight:700;cursor:pointer}
.series-powerup-repeat-form input[type=checkbox]{width:18px;height:18px;margin:0;padding:0;flex:none}
.fixture-shared-lists .powerup-list li.fixture-powerup-repeat{color:var(--muted);font-size:.78rem}
.series-powerup-controls .series-round-field{min-width:0}
.series-powerup-controls .series-round-field select,.series-powerup-controls .series-round-field input{width:100%;box-sizing:border-box}
.series-powerup-controls output{display:block;min-height:40px;box-sizing:border-box;padding:9px 12px;background:var(--panel2);border:1px solid var(--line);border-radius:6px}
.series-powerup-controls [data-powerup-custom][hidden],.series-powerup-map[hidden]{display:none}
.series-powerup-map{margin:0;min-width:0;text-align:center}
.series-powerup-map img{width:100%;max-height:420px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:6px}
.series-powerup-map figcaption{margin-top:6px;color:var(--muted)}
.series-powerup-table-wrap{overflow-x:auto;margin-top:14px}
.series-powerup-table{width:100%;border-collapse:collapse;text-align:left}
.series-powerup-table caption{text-align:left;font-family:var(--disp);font-weight:700;padding-bottom:8px}
.series-powerup-table th,.series-powerup-table td{padding:8px 10px;border-bottom:1px solid var(--line)}
.series-powerup-table td:first-child{font-variant-numeric:tabular-nums;width:4rem}
.series-powerup-table td:last-child{display:flex;align-items:center;gap:8px}
.series-powerup-table img{object-fit:contain}
.series-powerup-draft{overflow-x:auto;width:100%;max-width:none}
.series-powerup-draft table{box-sizing:border-box;width:100%;border-collapse:collapse;text-align:left;min-width:530px}
.series-powerup-draft tbody tr:hover{background:var(--panel2);color:var(--text)}
.series-powerup-draft caption{text-align:left;font-family:var(--disp);font-weight:700;padding:8px 0}
.series-powerup-draft th,.series-powerup-draft td{padding:8px;border-bottom:1px solid var(--line);vertical-align:top}
.series-powerup-draft-award,.series-powerup-draft-actions,.series-powerup-saved-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.series-powerup-draft-award+.series-powerup-draft-award{margin-top:6px}
.series-powerup-draft-award img{width:32px;height:32px;object-fit:contain;flex:none}
.series-powerup-draft-award .btn{min-height:30px;padding:4px 8px}
.series-powerup-draft-status{margin:0;color:var(--muted)}
.series-powerup-draft[hidden]{display:none}
@media(max-width:760px){.series-powerup-layout{grid-template-columns:1fr}.series-powerup-map{max-width:100%}.series-powerup-map img{max-height:300px}}
@media(max-width:760px){.series-powerup-award-fields{grid-template-columns:1fr}}
@media(max-width:520px){.series-powerup-choice select{flex-basis:65%;width:65%;min-width:0}}
.series-powerup-position{font-weight:700;font-variant-numeric:tabular-nums;color:var(--muted)}
.series-powerup-edit{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:8px}
.series-powerup-edit:hover,.series-powerup-edit:focus-visible{background:var(--panel2);outline-color:var(--accent)}
.series-powerup-edit img{width:32px;height:32px;object-fit:contain}
.series-powerup-location{min-width:0;overflow-wrap:anywhere;color:var(--text);font-family:var(--disp);font-size:1rem;font-weight:700}
.series-segment-position{font-weight:700;font-variant-numeric:tabular-nums;color:var(--muted)}
.series-segment-row{grid-template-columns:2ch 20px minmax(0,1fr) auto 65px}
.series-segment-edit{margin-top:6px;border:1px solid var(--series-segment-edge);border-left:4px solid var(--series-segment-edge);border-radius:0 6px 6px 0;background:var(--series-segment-header)}
.series-segment-edit:first-child{margin-top:0}
.series-segment-edit>summary{list-style:none;cursor:pointer}
.series-segment-edit>summary::-webkit-details-marker{display:none}
.series-segment-edit>.series-segment-row{grid-template-columns:2ch 20px minmax(0,1fr);gap:8px;padding:7px 10px;background:var(--series-segment-header);border-radius:0 5px 5px 0;border-bottom:0}
.series-segment-edit[open]>.series-segment-row{border-bottom:1px solid var(--line);border-radius:0 5px 0 0}
.series-segment-edit>summary::before{content:'+';color:#fd6900;font-weight:800;text-align:center}
.series-segment-edit[open]>summary::before{content:'−'}
.series-segment-edit .series-segment-name{font-family:var(--disp);font-size:1rem;font-weight:700}
.series-segment-edit .series-segment-position{font-family:var(--disp);font-size:1rem;font-weight:700}
.series-segment-detail{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;color:var(--muted)}
.profile-form.series-segment-inline-form{display:block;width:100%;max-width:none;box-sizing:border-box;padding:16px;background:transparent}
.series-segment-fields{display:grid;grid-template-columns:repeat(15,minmax(0,1fr));gap:14px 16px;align-items:start}
.series-segment-fields>.series-round-field{grid-column:span 3}
.series-segment-fields>.series-round-field:nth-child(n+6){grid-column:span 5}
.series-segment-fields .series-round-field{min-width:0}
.series-segment-fields input:not([type=checkbox]),.series-segment-fields select{box-sizing:border-box;width:100%;min-width:0}
.series-segment-inline-form small,.series-segment-inline-form .helptext{display:block;color:var(--muted);font-size:.78rem;line-height:1.4;margin-top:4px}
.series-segment-options{display:grid;grid-template-columns:1fr;gap:12px;margin-top:16px}
.series-segment-options>div{min-width:0}
.profile-form.series-segment-inline-form .series-segment-options label{display:inline-flex;align-items:center;gap:8px;margin:0;font-weight:700;max-width:100%;cursor:pointer}
.series-segment-options input[type=checkbox]{flex:none;width:18px;height:18px;margin:0;padding:0}
.series-segment-actions{display:flex;gap:8px;margin-top:16px}
@media(max-width:850px){.series-segment-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.series-segment-fields>.series-round-field,.series-segment-fields>.series-round-field:nth-child(n+6){grid-column:auto}}
@media(max-width:520px){.series-segment-fields{grid-template-columns:1fr}}
@media(max-width:520px){.series-segment-edit>.series-segment-row{grid-template-columns:2ch 20px minmax(0,1fr)}.series-segment-detail{flex-wrap:wrap}}
.series-segment-icon{width:20px;height:20px;display:block}
.series-segment-main{min-width:0;display:flex;align-items:baseline;gap:5px 14px;flex-wrap:wrap}
.series-segment-stats,.series-segment-visits{color:var(--muted);font-size:.8rem;white-space:nowrap;font-variant-numeric:tabular-nums}
.series-segment-stats:empty{display:none}
.series-segment-scores{display:inline-flex;gap:8px}
.series-segment-scores span{font-family:var(--disp);font-size:1rem;font-weight:700;color:var(--text);white-space:nowrap}
@media(max-width:520px){.series-segment-stats,.series-segment-visits{white-space:normal}}
:root{--series-round-header:#fbe6e4;--series-race-header:#e9f1fd;--series-route-header:#e8f4ec;--series-segment-header:#f0eafb;--series-powerup-header:#fff1d0;--series-round-edge:#bd352d;--series-race-edge:#3673c7;--series-route-edge:#27835a;--series-segment-edge:#7955bc;--series-powerup-edge:#ad7618}
:root[data-theme=dark]{--series-round-header:#4a2729;--series-race-header:#223955;--series-route-header:#203d32;--series-segment-header:#35294c;--series-powerup-header:#4a3a20;--series-round-edge:#f08078;--series-race-edge:#78acfa;--series-route-edge:#70c99a;--series-segment-edge:#b9a0ec;--series-powerup-edge:#e4b65c}
.series-scoring-round{margin-top:10px;border:1px solid var(--series-round-edge);border-left:5px solid var(--series-round-edge);border-radius:0 8px 8px 0;background:var(--series-round-header)}
.series-scoring-round>summary,.series-scoring-race>summary{cursor:pointer;list-style:none;font-family:var(--disp);font-weight:700;color:var(--text);padding:6px 9px;background:var(--panel2)}
.series-scoring-round>summary{box-sizing:border-box;min-height:42px;border-radius:0 7px 7px 0;background:var(--series-round-header);font-size:1.1rem}
.series-round-title-dates{display:inline-block;margin-left:14px;color:var(--muted);font-family:var(--body);font-size:.8rem;font-weight:500;font-variant-numeric:tabular-nums}
.series-race-title-times{display:inline-block;margin-left:8px;color:var(--muted);font-family:var(--body);font-size:.78rem;font-weight:500;font-variant-numeric:tabular-nums}
.series-scoring-round[open]>summary{border-radius:0 7px 0 0}
.series-scoring-race>summary{background:var(--series-race-header);border-radius:0 5px 5px 0;font-size:1rem}
.series-scoring-race[open]>summary{border-radius:0 5px 0 0}
.series-scoring-race>summary{display:flex;align-items:center;justify-content:flex-start;gap:6px;flex-wrap:wrap}.series-race-title{flex:0 1 auto;min-width:0}@media(max-width:600px){.series-race-title{font-size:.86rem}}
.series-scoring-race>summary{display:block;position:relative;padding-left:calc(9px + 1.2em + 10px)}
.series-scoring-race>summary::before{position:absolute;left:9px;top:6px;margin-right:0}
.series-scoring-race>summary .series-race-title{display:inline;margin-right:8px}
.series-scoring-race>summary .series-race-title-times{margin-left:0}
.series-scoring-round>summary::-webkit-details-marker,.series-scoring-race>summary::-webkit-details-marker{display:none}
.series-scoring-round>summary::before,.series-scoring-race>summary::before{content:'+';display:inline-block;width:1.2em;margin-right:4px;color:#fd6900;text-align:center}
.series-scoring-round[open]>summary::before,.series-scoring-race[open]>summary::before{content:'−'}
.series-scoring-round-content{padding:8px}
.series-scoring-race{margin-top:6px;border:1px solid var(--series-race-edge);border-left:4px solid var(--series-race-edge);border-radius:0 6px 6px 0;background:var(--series-race-header)}
.series-scoring-race:first-child{margin-top:0}
.series-scoring-race-content{padding:4px 8px 8px}
.configured-scoring{margin-bottom:18px}
.configured-scoring .phead{margin-bottom:12px}
.configured-scoring-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}
.configured-scoring-grid article{padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel2)}
.configured-scoring-grid h3{margin:0 0 5px;font-size:1rem}
.configured-scoring-grid p{margin:0;line-height:1.45}
.configured-segments{margin-top:14px}
.configured-segments summary{cursor:pointer;font-weight:700;color:#fd6900}
.configured-segments p{margin:7px 0;border-bottom:1px solid var(--line);padding-bottom:7px}
.series-segment-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.series-route-edit{margin-top:6px;border:1px solid var(--series-route-edge);border-left:4px solid var(--series-route-edge);border-radius:0 6px 6px 0;background:var(--series-route-header)}
.series-route-edit:first-child{margin-top:0}
.series-route-row{display:grid;grid-template-columns:2ch minmax(0,1fr);align-items:center;gap:8px;padding:7px 10px;background:var(--series-route-header);border-radius:0 5px 5px 0}
.series-route-edit[open]>.series-route-row{border-bottom:1px solid var(--line);border-radius:0 5px 0 0}
.series-route-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.series-route-main{min-width:0;display:flex;align-items:baseline;gap:5px 14px;flex-wrap:wrap}.series-route-stats{color:var(--muted);font-size:.8rem;white-space:nowrap;font-variant-numeric:tabular-nums}@media(max-width:520px){.series-route-stats{white-space:normal}}
.series-route-categories{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.series-route-categories .zp-category{box-sizing:border-box;min-width:17px;width:17px;height:17px;padding:0;font-size:.62rem;border-radius:4px}
.series-route-edit>summary{list-style:none;cursor:pointer}.series-route-edit>summary::-webkit-details-marker{display:none}.series-route-edit>summary .series-route-name{font-family:var(--disp);font-weight:700;font-size:1rem}.series-route-expander::before{content:'+';color:#fd6900;font-weight:800}.series-route-edit[open] .series-route-expander::before{content:'−'}.series-route-edit>form{padding:12px;margin:0;background:transparent}
.series-segment-add-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:10px 0}.series-segment-add-grid .series-round-field input,.series-segment-add-grid .series-round-field select{box-sizing:border-box;width:100%;min-width:0}.series-segment-scoring{display:flex;gap:20px;align-items:center;margin:12px 0}.series-segment-scoring label{display:inline-flex;gap:6px;align-items:center}@media(max-width:800px){.series-segment-add-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.series-segment-add-grid{grid-template-columns:1fr}}
.series-route-add-form{width:100%;max-width:none}.series-route-primary-row{display:grid;grid-template-columns:minmax(115px,.8fr) minmax(130px,.8fr) minmax(65px,.4fr) minmax(210px,1.6fr) auto;align-items:end;gap:10px}.series-route-primary-row .btn{white-space:nowrap}.series-route-new-fields{display:grid;grid-template-columns:minmax(145px,1.1fr) repeat(4,minmax(90px,.65fr)) minmax(150px,1.35fr) minmax(150px,1.35fr);align-items:end;gap:10px;margin-top:10px}.series-route-add-form .series-round-field select,.series-route-add-form .series-round-field input{box-sizing:border-box;min-width:0;width:100%}.series-route-picker{position:relative;min-width:0}.series-route-native-hidden{display:none!important}.series-route-options{position:absolute;top:100%;left:0;right:0;z-index:30;max-height:260px;overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:6px;box-shadow:0 8px 24px #0002}.series-route-options[hidden]{display:none}.series-route-option{display:block;width:100%;padding:8px 10px;border:0;background:transparent;color:var(--text);text-align:left;cursor:pointer}.series-route-option:hover,.series-route-option:focus{background:var(--panel2)}.series-route-existing .series-route-new-fields input[readonly]{background:var(--panel2);color:var(--muted)}@media(max-width:900px){.series-route-primary-row,.series-route-new-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.series-route-choice,.series-route-primary-row .btn,.series-route-new-fields .series-round-field:nth-last-child(-n+2){grid-column:1/-1}}@media(max-width:520px){.series-route-primary-row,.series-route-new-fields{grid-template-columns:1fr}.series-route-choice,.series-route-primary-row .btn,.series-route-new-fields .series-round-field:nth-last-child(-n+2){grid-column:auto}}
.series-route-new-fields{grid-template-columns:repeat(5,minmax(0,1fr))}
.series-route-url-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}
.series-route-url-fields input{box-sizing:border-box;width:100%;min-width:0}
.series-route-actions{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.series-route-existing .series-route-url-fields input[readonly]{background:var(--panel2);color:var(--muted)}
.series-route-powerups-field{margin-top:12px}
.series-route-powerups-field label{display:inline-flex;align-items:center;gap:8px;font-weight:700;font-family:var(--body);white-space:nowrap;cursor:pointer}
.series-route-powerups-field input{margin:0}
.series-route-powerups-field small{display:block;margin-top:4px;color:var(--muted)}
@media(max-width:900px){.series-route-new-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.series-route-new-fields .series-round-field:nth-last-child(-n+2){grid-column:auto}}
@media(max-width:520px){.series-route-new-fields,.series-route-url-fields{grid-template-columns:1fr}}
@media(max-width:900px){.series-route-primary-row .series-route-actions{grid-column:1/-1}}
.series-race-group{margin-top:10px}
.series-race-group h3{font-family:var(--disp);font-size:1rem;color:var(--muted);margin:0 0 4px}
.series-race-row{display:grid;grid-template-columns:6ch auto minmax(0,1fr);align-items:center;gap:8px;padding:2px 0;border-bottom:1px solid var(--line)}
.series-race-name{font-weight:700;white-space:nowrap}
.series-race-row time{font-variant-numeric:tabular-nums;white-space:nowrap}
.series-race-edit{display:grid;gap:9px;min-width:0;padding:12px 2px;border-bottom:1px solid var(--line)}
.series-race-fields{display:grid;grid-template-columns:minmax(80px,100px) minmax(135px,1fr) minmax(180px,1.25fr) minmax(135px,1fr) minmax(110px,.75fr) auto;align-items:end;gap:10px;min-width:0}
.series-race-start-edit .series-race-fields{grid-template-columns:minmax(80px,100px) minmax(200px,1.5fr) minmax(150px,1fr) minmax(130px,.8fr) auto}
.series-race-edit label{min-width:0;font-size:.78rem;color:var(--muted)}
.series-race-edit input:not([type=checkbox]),.series-race-edit select{display:block;box-sizing:border-box;width:100%;min-width:0;margin-top:4px}
.series-registration-toggle{display:inline-flex;align-items:center;gap:7px;cursor:pointer}.series-registration-toggle input{margin:0}
.series-race-fields button{justify-self:start;white-space:nowrap}
.series-race-field-actions{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.series-race-field-actions .btn{padding:7px 10px}
.series-race-delete-form{display:none}.series-race-delete{color:#b42318;border-color:#b42318}.series-race-delete:hover,.series-race-delete:focus{background:#b42318;color:#fff}
.series-race-group{min-width:0;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}
.series-race-group+.series-race-group{margin-top:14px}
.series-race-group h4{margin:0;font-family:var(--disp);font-size:1.35rem;line-height:1.2}
.series-race-group>p{margin:6px 0 12px;color:var(--muted);max-width:85ch}
.series-race-event-details .series-race-edit{border-bottom:0;padding-bottom:0}
.series-race-starts.series-race-group{background:var(--panel)}
.series-race-starts .series-race-start-edit .series-race-fields{grid-template-columns:minmax(72px,100px) minmax(190px,1.4fr) minmax(145px,.9fr) minmax(130px,.8fr) 164px}
.series-race-starts .series-race-field-actions{width:164px;justify-content:flex-start}
@media(max-width:900px){.series-race-starts .series-race-start-edit .series-race-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.series-race-starts .series-race-field-actions{width:auto}}
@media(max-width:600px){.series-race-starts .series-race-start-edit .series-race-fields{grid-template-columns:1fr}}
.series-add-start-form{margin-top:9px}.series-race-edit>label:not(.series-registration-toggle){display:block;max-width:330px;margin-top:9px}.series-race-edit>label:not(.series-registration-toggle) select{width:100%;margin-top:4px}
.series-start-events{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;margin-top:10px;padding:9px 10px;border-radius:8px;background:var(--panel2)}.series-start-events strong{font-size:.85rem}.series-start-event-form{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin-left:auto}.series-start-event-form label{font-size:.78rem;color:var(--muted)}.series-start-event-form input{display:block;box-sizing:border-box;max-width:165px;margin-top:4px}@media(max-width:600px){.series-start-event-form{margin-left:0;width:100%}.series-start-event-form input{max-width:100%}}
@media(max-width:850px){.series-race-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.series-race-field-actions{grid-column:1/-1;justify-self:end}}
@media(max-width:850px){.series-race-start-edit .series-race-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
.series-race-batch-form{width:100%;max-width:none}.series-race-batch-form>.series-round-field{max-width:440px}.series-race-batch-rows{display:grid;gap:10px}.series-race-batch-row{display:grid;grid-template-columns:100px minmax(0,1fr) minmax(0,1.25fr) minmax(0,1.25fr);align-items:center;gap:12px;width:100%;box-sizing:border-box;padding:12px;background:var(--panel2);border:1px solid var(--line);border-radius:8px}.series-race-batch-row strong{white-space:nowrap}.series-race-batch-row[hidden]{display:none}.series-race-batch-row .series-round-field{display:flex;align-items:center;gap:8px}.series-race-batch-row .series-round-field label{flex:none;margin:0}.series-race-batch-row select,.series-race-batch-row input{box-sizing:border-box;min-width:0;width:100%}.series-race-local-time{grid-column:2/-1;margin:0}.series-race-batch-row .errorlist{align-self:center}@media(max-width:900px){.series-race-batch-row{grid-template-columns:1fr}.series-race-local-time{grid-column:1}.series-race-batch-row .series-round-field label{min-width:90px}}
.series-race-save-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:8px}.series-race-save-status{color:#187446;font-weight:700}.series-race-save-status.is-error{color:#b42318}.series-timezone-native-hidden{display:none!important}.series-timezone-picker{position:relative;min-width:0;flex:1}.series-timezone-picker input.series-timezone-search{width:100%;min-width:0;margin-top:4px}.series-timezone-options{position:absolute;top:100%;left:0;right:0;z-index:30;max-height:250px;overflow-y:auto;background:var(--panel);border:1px solid var(--line);border-radius:6px;box-shadow:0 8px 24px #0002}.series-timezone-options[hidden]{display:none}.series-timezone-option{display:block;width:100%;padding:8px 10px;border:0;background:transparent;color:var(--text);text-align:left;cursor:pointer}.series-timezone-option:hover,.series-timezone-option:focus{background:var(--panel2)}
.series-race-format-settings #id_race_formats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}.series-race-format-settings #id_race_formats>div{min-width:0}.series-race-format-settings #id_race_formats label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:9px 12px;border:1px solid var(--line);border-radius:8px;cursor:pointer}.series-race-format-settings #id_race_formats input[type=checkbox]{order:2;flex:none;width:18px;height:18px;margin:0}@media(max-width:650px){.series-race-format-settings #id_race_formats{grid-template-columns:1fr}}
.race-format-criterium{background:#183a48;color:#a8edfb;border-color:#458795}.race-format-handicap{background:#493322;color:#ffe0a7;border-color:#ad8243}
.series-race-format{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:.85rem}
.series-race-first-start{display:grid;grid-template-columns:auto minmax(150px,1fr) minmax(190px,1.25fr);align-items:center;gap:10px;grid-column:3/-1}.series-race-first-start>.series-race-local-time{grid-column:2/-1}.series-race-starts{padding:10px 12px;background:var(--panel2);border-radius:8px}.series-race-starts h4{margin:0 0 8px}.series-race-start-edit .series-race-fields{grid-template-columns:minmax(80px,100px) minmax(180px,1.2fr) minmax(135px,1fr) minmax(110px,.75fr) auto}.series-race-edit:not(.series-race-start-edit) .series-race-fields{grid-template-columns:minmax(90px,130px) minmax(180px,1fr) auto}.series-add-start-form>summary{display:inline-flex;cursor:pointer}.series-add-start-form>form{margin-top:10px}@media(max-width:900px){.series-race-first-start{grid-column:1/-1;grid-template-columns:1fr 1fr}.series-race-first-start>strong,.series-race-first-start>.series-race-local-time{grid-column:1/-1}.series-race-start-edit .series-race-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.series-race-start-edit .series-race-fields,.series-race-first-start{grid-template-columns:1fr}.series-race-first-start>strong,.series-race-first-start>.series-race-local-time{grid-column:auto}}
.fixture-details .powerup-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 16px}
.fixture-details .powerup-list li{min-width:0;border:0}
@media(max-width:760px){.fixture-details .powerup-list{grid-template-columns:1fr}}
.fixture-shared-lists{display:grid;gap:14px;min-width:0}.fixture-shared-lists>div+div{border-top:1px solid var(--line);padding-top:12px}.fixture-shared-lists h5,.fixture-starts h5{font-family:var(--disp);font-size:1.15rem;margin:0 0 8px}.fixture-shared-lists .powerup-list,.fixture-segment-list,.fixture-starts ul{display:grid;grid-template-columns:1fr;gap:0;list-style:none;padding:0;margin:0}.fixture-shared-lists .powerup-list li,.fixture-segment-list li{display:flex;align-items:center;gap:10px;min-width:0;padding:7px 0;border-top:1px solid var(--line)}.fixture-shared-lists .powerup-list li:first-child,.fixture-segment-list li:first-child{border-top:0}.fixture-shared-lists .powerup-list li>span{display:grid;min-width:0;line-height:1.25}.fixture-shared-lists .powerup-list li small{color:var(--muted);font-size:.76rem}.fixture-segment-list li{justify-content:space-between;flex-wrap:wrap}.fixture-segment-scoring{color:var(--muted);font-weight:700;font-size:.77rem;white-space:nowrap}.fixture-starts{padding:14px 20px;border-top:1px solid var(--line);background:var(--panel2)}.fixture-start{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line)}.fixture-start small{display:block}.fixture-start-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}@media(max-width:600px){.fixture-start{align-items:flex-start;flex-direction:column}.fixture-start-actions{justify-content:flex-start}}
.fixture-toolbar h3{font-size:1.9rem;line-height:1.1}
.fixture-starts{padding-top:11px;padding-bottom:3px}.fixture-starts h5{margin-bottom:5px}.fixture-start{padding:6px 0;gap:8px}.fixture-start-main{font-family:var(--body,'IBM Plex Sans',sans-serif);font-size:.84rem;line-height:1.3}.fixture-start-main strong{font-weight:700}.fixture-start-date{font-size:.84rem;font-weight:400}.fixture-start-actions{margin-left:auto}.fixture-start-completed{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:2px 9px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--muted);font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}@media(max-width:600px){.fixture-start{flex-direction:row;align-items:center}.fixture-start-actions{justify-content:flex-end}.fixture-start-main{min-width:0}}
@media(max-width:600px){.fixture-start:not(.is-completed){flex-direction:column;align-items:flex-start}.fixture-start:not(.is-completed) .fixture-start-actions{margin-left:0;justify-content:flex-start}}
.fixture-heading .fixture-title{font-family:var(--disp);font-size:1.85rem;font-weight:600;line-height:1.1;margin:0 0 5px;overflow-wrap:anywhere}.fixture-heading .race-format{display:inline-block}.fixture-segment-list li{display:block;line-height:1.5}.fixture-segment-scoring{display:inline;color:inherit;font-family:inherit;font-size:inherit;font-weight:600;letter-spacing:inherit;white-space:normal;margin-left:6px}@media(max-width:600px){.fixture-heading .fixture-title{font-size:1.55rem}}
.fixture-detail-layout{border-top:1px solid var(--line);padding-top:14px}
@media(max-width:600px){.fixture-facts{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.fixture-facts>.fixture-categories{width:100%;margin-bottom:4px}.fixture-facts>span:not(.fixture-categories){display:block;width:100%;padding-right:0}.fixture-facts>:not(:last-child)::after{display:none}.fixture-start.is-completed{align-items:flex-start}.fixture-start.is-completed .fixture-start-actions{align-self:flex-start}}
.fixture-rider-count{display:inline-flex;align-items:center;gap:4px;min-height:28px;color:var(--text);font-size:.82rem;font-weight:700;text-decoration:none;white-space:nowrap}.fixture-rider-count svg{width:18px;height:18px}.fixture-rider-count:hover,.fixture-rider-count:focus-visible{color:var(--accent);text-decoration:none}.fixture-rider-count[hidden]{display:none}
.fixture-start-counts{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto}
@media(max-width:600px){.fixture-start,.fixture-start:not(.is-completed){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;column-gap:8px;row-gap:5px}.fixture-start-main{grid-column:1;grid-row:1;min-width:0}.fixture-start-counts{grid-column:2;grid-row:1;align-self:start;margin-left:0}.fixture-start-actions,.fixture-start:not(.is-completed) .fixture-start-actions,.fixture-start.is-completed .fixture-start-actions{grid-column:1/-1;grid-row:2;justify-content:flex-start;align-self:auto;margin-left:0}}
.fixture-heading{background:var(--panel2)}.fixture-starts{background:#f1f3f5}:root[data-theme=dark] .fixture-heading{background:var(--panel)}:root[data-theme=dark] .fixture-starts{background:var(--panel2)}
.fixture-day{min-width:0;border-top:1px solid var(--line)}.fixture-day>summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 0;list-style:none;cursor:pointer}.fixture-day>summary::-webkit-details-marker{display:none}.fixture-day>summary::before{content:'+';flex:none;width:1.2em;text-align:center;color:#fd6900;font-family:var(--disp);font-size:1.3rem;font-weight:700;line-height:1}.fixture-day[open]>summary::before{content:'−'}.fixture-day-label{min-width:0;font-family:var(--disp);font-size:1.05rem;font-weight:600;line-height:1.3}.fixture-day-count{flex:none;margin-left:auto;color:var(--muted);font-size:.76rem;white-space:nowrap}.fixture-day>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}.fixture-day>ul{padding-bottom:6px}.fixture-day>ul>.fixture-start:first-child{border-top:0}@media(max-width:600px){.fixture-day>summary{gap:6px}.fixture-day-label{font-size:1rem}.fixture-day-count{font-size:.72rem}}
@media(min-width:601px){.fixture-start{display:grid;grid-template-columns:max-content minmax(0,1fr) auto;align-items:center;column-gap:12px}.fixture-start-main{grid-column:1;grid-row:1;white-space:nowrap}.fixture-start-counts{grid-column:2;grid-row:1;justify-content:flex-start;margin-left:0;min-width:0}.fixture-start-actions{grid-column:3;grid-row:1;margin-left:0}}
.fixture-rider-label{margin-left:3px;color:var(--muted);font-size:.78rem;font-weight:500}
@media(max-width:600px){.fixture-rider-label{display:none}}
#seasonRounds .round-card,.series-round-preview-card{background:var(--round-bg,#174ee3);color:var(--round-fg,#fff)}
#seasonRounds .round-card .round-number,#seasonRounds .round-card .round-name,#seasonRounds .round-card .round-window,#seasonRounds .round-card .badge,.series-round-preview-card .round-number,.series-round-preview-card .round-name,.series-round-preview-card .round-window,.series-round-preview-card .badge{color:var(--round-fg,#fff)}
.series-result-event{padding:9px 3px 16px;border-bottom:2px solid color-mix(in srgb,var(--text) 48%,var(--line))}
.series-result-event-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-weight:700}
.series-result-event-title code{font-family:var(--mono);font-size:.75rem;color:#fd6900}
.series-result-event-facts{display:flex;align-items:center;gap:6px 15px;flex-wrap:wrap;margin-top:5px;color:var(--muted);font-size:.8rem}
.series-result-event-facts .zp-category{font-size:.7rem}
.series-result-event p{margin:5px 0 0;font-size:.78rem}
.series-result-event-map{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px}
.series-result-event-map select{min-width:180px}
.series-event-connection{display:flex;align-items:center;gap:14px;min-width:0}.series-event-source{display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px;flex:1 1 43%;min-width:0;padding:11px 13px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);text-decoration:none}.series-event-source:visited,.series-event-source:hover,.series-event-source:focus-visible{color:var(--text);text-decoration:none}.series-event-source:hover{border-color:var(--accent);background:var(--panel2)}.series-event-source code{font-family:var(--mono);font-size:.82rem;font-weight:700;color:#d85b00}.series-event-source strong{font-family:var(--disp);font-size:1.1rem;line-height:1.1}.series-event-source time{font-family:var(--body);font-size:.82rem;color:var(--muted);white-space:nowrap}.series-event-connection-arrow{display:grid;place-items:center;flex:none;color:#e96e12}.series-event-destination.series-result-event-map{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;flex:1 1 50%;min-width:0;margin:0}.series-event-destination select{width:100%;min-width:0;margin:0}.series-event-connect,.series-event-remove{white-space:nowrap}.series-event-connect svg{flex:none}.series-map-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:850px){.series-event-connection{flex-direction:column;align-items:stretch;gap:8px}.series-event-source{flex-basis:auto}.series-event-connection-arrow{align-self:center;transform:rotate(90deg)}.series-event-destination.series-result-event-map{flex-basis:auto}}@media(max-width:600px){.series-event-source{padding:10px}.series-event-source time{white-space:normal}.series-event-destination.series-result-event-map{grid-template-columns:repeat(2,minmax(0,1fr))}.series-event-destination select{grid-column:1/-1}.series-event-connect,.series-event-remove{width:100%;justify-content:center}}
.series-result-category-help{margin:12px 0 6px}
.series-result-category-competitions{display:flex;align-items:start;gap:10px;flex-wrap:nowrap;overflow-x:auto;margin-top:8px;padding-bottom:6px}
.series-result-category-field{display:flex;flex:1 0 175px;min-width:0;align-items:center;gap:7px}
.series-result-category-field .zp-category{display:inline-grid;place-items:center;width:25px;height:25px;min-width:25px;padding:0;border-radius:50%;font-size:.85rem;line-height:1}
.series-result-category-field select{flex:1 1 auto;width:100%;min-width:0;margin:0}
.series-result-category-field select:focus-visible{outline-offset:-3px}
.series-event-actions{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap;margin-top:12px}
.series-event-destination.series-result-event-map{grid-template-columns:minmax(0,1fr) auto}
.series-event-field-label{font-family:var(--disp);font-size:.84rem;font-weight:700;line-height:1.1;color:var(--muted)}
.series-event-source-wrap{display:flex;flex:1 1 43%;min-width:0;flex-direction:column;gap:8px}
.series-event-source-wrap .series-event-source{flex:1 1 auto}
.series-event-connection-arrow{margin-top:18px}
@media(max-width:850px){.series-event-source-wrap{flex-basis:auto;width:100%}}
@media(max-width:850px){.series-event-connection-arrow{margin-top:0}}
.series-event-destination .series-event-field-label{grid-column:1/-1}
.series-event-connect.is-connected,.series-event-connect.is-connected:hover{background:#198754;border-color:#198754;color:#fff}
.series-event-last-checked{font-family:var(--disp);font-size:1rem;line-height:1.2;color:var(--muted)}
.series-event-step{margin-top:14px;font-family:var(--disp);font-size:1.15rem;font-weight:700;color:var(--text)}
.series-event-step:first-child{margin-top:0}
.series-event-connection-help{margin:0 0 7px!important}
.series-event-connection .series-event-destination{flex:1 1 50%}
.series-event-connection .series-event-source-wrap{flex:1 1 43%}
.series-event-connection .series-event-connect{height:48px;min-height:48px;padding-block:0}
.series-event-grouping.series-result-event-map{display:grid;grid-template-columns:minmax(130px,auto) minmax(180px,300px) minmax(135px,auto) minmax(180px,300px);align-items:center;gap:9px 12px}
.series-event-grouping>[data-default-competition]{grid-column:2;max-width:none}
.series-event-grouping>.series-event-step--grouping{grid-column:1/-1;margin-top:6px}
.series-event-grouping select{min-width:0;width:100%;margin:0}
.series-event-category-overrides{margin-top:12px}
.series-event-category-overrides summary{font-family:var(--disp);font-weight:700;cursor:pointer}
@media(max-width:800px){.series-event-grouping.series-result-event-map{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.series-event-grouping>[data-default-competition]{grid-column:2}.series-event-grouping>.series-event-step--grouping{grid-column:1/-1}}
@media(max-width:520px){.series-event-grouping.series-result-event-map{grid-template-columns:1fr}.series-event-grouping>[data-default-competition]{grid-column:1}}
/* Keep the source event as compact as the race selector, without hiding its date. */
.series-event-source-wrap .series-event-source{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;flex:0 0 48px;width:100%;height:48px;min-height:48px;padding:0 12px;box-sizing:border-box;font-family:var(--body);font-size:.85rem;line-height:1.2}
.series-event-source .series-event-source-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--body);font-weight:400}
.series-event-source .series-event-source-name strong{font-family:var(--body);font-size:inherit;font-weight:700;line-height:inherit}
.series-event-source .series-result-local-time,.series-event-source .series-event-source-pending{font-family:var(--body);font-size:inherit;color:var(--text);white-space:nowrap}
.series-event-source .series-event-source-pending{color:var(--muted)}
.series-event-destination select{height:48px;box-sizing:border-box}
.series-route-primary-row--no-categories{grid-template-columns:minmax(115px,1fr) minmax(65px,.45fr) minmax(210px,1.7fr) auto}
/* ZRS bands form one settings group; each row follows the organiser's entry order. */
.series-category-band-list--zrs{gap:0;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.series-category-band-add{justify-self:start;width:max-content;max-width:100%}
.series-management-content .profile-form .series-image-preview-actions label.btn{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;height:var(--series-control-height);min-height:var(--series-control-height);margin:0;padding:0 14px;white-space:nowrap;font-size:.9rem;line-height:1.2}
.series-image-preview-actions{align-items:center}
.series-category-band-list--zrs .series-category-band-row--zrs:has(.series-category-band-color){grid-template-columns:minmax(90px,.7fr) minmax(130px,1.1fr) minmax(90px,.7fr) minmax(90px,.7fr) minmax(90px,.7fr) minmax(120px,1fr) auto;gap:10px;border:0;border-radius:0;background:var(--panel)}
.series-category-band-list--zrs .series-category-band-row--zrs + .series-category-band-row--zrs{border-top:1px solid var(--line)}
.series-category-band-row--zrs label{display:flex;flex-direction:column;align-items:stretch;gap:5px;font-size:.8rem}
.series-category-band-row--zrs .series-category-band-color{align-items:stretch}
.series-category-band-row--zrs .series-category-band-preview-wrap{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
.series-category-band-preview{display:inline-block;max-width:100%;padding:5px 9px;border-radius:6px;font-size:.8rem;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.series-category-band-row--zrs .series-category-band-delete{align-self:end}
@media(max-width:1050px){.series-category-band-list--zrs .series-category-band-row--zrs:has(.series-category-band-color){grid-template-columns:repeat(3,minmax(0,1fr))}.series-category-band-row--zrs .series-category-band-delete{justify-self:start}}
@media(max-width:600px){.series-category-band-list--zrs .series-category-band-row--zrs:has(.series-category-band-color){grid-template-columns:repeat(2,minmax(0,1fr))}.series-category-band-row--zrs .series-category-band-delete{grid-column:1/-1}}
@media(max-width:900px){.series-route-primary-row--no-categories{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.series-route-primary-row--no-categories{grid-template-columns:1fr}}
@media(max-width:600px){.series-event-source-wrap .series-event-source{grid-template-columns:auto minmax(0,1fr);flex-basis:auto;height:auto;min-height:48px;padding:8px 10px}.series-event-source .series-result-local-time,.series-event-source .series-event-source-pending{grid-column:2;white-space:normal}}
@media(max-width:600px){.series-event-destination.series-result-event-map{grid-template-columns:1fr}.series-event-destination select{grid-column:1}.series-event-actions .btn{flex:1 1 auto;justify-content:center}.series-event-last-checked{flex-basis:100%}}
.series-results-form p:has(input[type=checkbox]){display:flex;align-items:center;gap:8px}
.series-results-form p:has(input[type=checkbox]) label{margin:0}
.series-results-form input[type=checkbox]{width:auto;margin:0}
.series-results-form{width:100%}
.series-results-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}
.series-results-fields p{min-width:0;margin:0}
.series-results-fields p select,.series-results-fields p input:not([type=checkbox]){box-sizing:border-box;max-width:100%;width:100%}
.series-results-fields p small{display:block;margin-top:4px;color:var(--muted)}
.series-results-fields>.btn{grid-column:1/-1;justify-self:start}
.series-round-scoring-settings{display:grid;gap:12px;width:100%}
.series-round-scoring-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;width:100%}
.series-round-scoring-settings>small{color:var(--muted)}
.series-round-scoring-settings .series-round-field label{display:inline-flex;align-items:center;gap:8px}
.series-round-scoring-settings .series-round-field input[type=checkbox]{width:auto;margin:0;flex:none}
.series-round-scoring-settings .series-round-field[hidden]{display:none!important}
.series-round-group{display:grid;gap:12px;min-width:0;padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}
.series-round-group h3{margin:0;font-family:var(--disp);font-size:1.35rem;line-height:1.15}
.series-round-group>p{margin:0;color:var(--muted);max-width:78ch}
.series-round-form .btn.save{background:#17834b;border-color:#116a3b;color:#fff}
.series-round-form .btn.save:hover,.series-round-form .btn.save:focus-visible{background:#116a3b;border-color:#0d5630;color:#fff}
.series-management-section .btn.action-save{background:#16824b!important;border-color:#16824b!important;color:#fff!important;filter:none}
.series-management-section .btn.action-save:hover,.series-management-section .btn.action-save:focus-visible{background:#106b3d!important;border-color:#106b3d!important;color:#fff!important;filter:none}
.series-management-section .btn.action-add{background:color-mix(in srgb,#16824b 11%,var(--panel))!important;border-color:color-mix(in srgb,#16824b 35%,var(--line))!important;color:#116b3d!important;filter:none}
.series-management-section .btn.action-add:hover,.series-management-section .btn.action-add:focus-visible{background:color-mix(in srgb,#16824b 18%,var(--panel))!important;border-color:#16824b!important;color:#0d5831!important;filter:none}
.series-management-section .btn.action-remove{background:transparent!important;border-color:#ba3535!important;color:#a52929!important;filter:none}
.series-management-section .btn.action-remove:hover,.series-management-section .btn.action-remove:focus-visible{background:color-mix(in srgb,#ba3535 10%,var(--panel))!important;border-color:#a52929!important;color:#982323!important;filter:none}
:root[data-theme=dark] .series-management-section .btn.action-add{color:#9ce1b8!important;border-color:#449b68!important}
:root[data-theme=dark] .series-management-section .btn.action-add:hover,:root[data-theme=dark] .series-management-section .btn.action-add:focus-visible{color:#b5f0ca!important}
:root[data-theme=dark] .series-management-section .btn.action-remove{color:#ffaaa6!important;border-color:#d36a64!important}
:root[data-theme=dark] .series-management-section .btn.action-remove:hover,:root[data-theme=dark] .series-management-section .btn.action-remove:focus-visible{color:#ffd0cd!important;border-color:#ffaaa6!important}
.series-round-appearance{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,1fr);gap:20px;align-items:start}
.series-round-appearance .series-round-colours{display:grid;gap:14px}
.series-round-appearance .series-round-preview{justify-items:start}
.series-results-fields .gc-podium-bonus-fields{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 16px}
.series-results-fields .gc-podium-bonus-fields>strong,.series-results-fields .gc-podium-bonus-fields>small{grid-column:1/-1}
.series-results-fields .gc-podium-bonus-fields>small{color:var(--muted)}
.series-results-fields .gc-podium-bonus-fields p input{width:100%;box-sizing:border-box}
@media(max-width:650px){.series-results-fields{grid-template-columns:1fr}}
@media(max-width:650px){.series-round-scoring-row{grid-template-columns:1fr;gap:8px}}
@media(max-width:650px){.series-round-appearance{grid-template-columns:1fr}}
@media(max-width:650px){.series-results-fields .gc-podium-bonus-fields{grid-template-columns:1fr}}
.series-result-segment-points{display:grid;grid-template-columns:minmax(150px,1fr) auto minmax(140px,1fr) minmax(140px,1fr) auto;align-items:end;gap:8px;padding:8px 2px;border-bottom:1px solid var(--line)}
.series-result-segment-points>span{font-size:.78rem;color:var(--muted)}
.series-result-segment-points label{font-size:.75rem;color:var(--muted)}
.series-result-segment-points input{display:block;width:100%;margin-top:3px}
.series-round-form{display:grid;gap:14px}.series-round-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.series-round-field{min-width:0}.series-round-field label{display:block;margin:0 0 5px;font-weight:700}.series-round-field input:not([type=color]),.series-round-field textarea{box-sizing:border-box;width:100%}.series-round-colour-control{display:flex;align-items:center;justify-content:flex-start;gap:12px}.series-round-colour-control label{margin:0}.series-round-colours input[type=color]{display:inline-block;box-sizing:border-box;flex:none;width:48px;height:36px;padding:2px;border:1px solid var(--line);border-radius:6px;background:var(--panel);cursor:pointer}.series-round-notes textarea{height:96px;min-height:96px;resize:vertical}.series-round-field small{display:block;margin-top:4px;color:var(--muted)}.series-round-preview{display:grid;gap:8px}@media(max-width:650px){.series-round-fields{grid-template-columns:1fr}}
.series-round-preview-card.card.round-card{width:min(100%,288px);max-width:none;min-height:0;padding:14px;gap:10px;justify-content:flex-start;text-align:left;border:1px solid rgba(255,255,255,.25);border-radius:var(--r);box-shadow:0 4px 20px #17263f06}.series-round-preview-card .badge{background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.4)}.series-round-preview-card.round-active{border-color:#fff;box-shadow:0 0 0 2px rgba(255,255,255,.35)}
@media(max-width:850px){.series-round-preview-card.card.round-card{width:min(100%,205px)}}
@media(max-width:850px){.series-result-segment-points{grid-template-columns:1fr 1fr}.series-result-segment-points>strong{grid-column:1 / -1}}
/* Keep dropdown focus visible without the bulky blue outline. */
select:focus,select:focus-visible,.series-result-category-field select:focus-visible{outline:none;border-color:#c8692b;box-shadow:0 0 0 2px #c8692b30}
/* Compact Option A dropdowns; mobile keeps a full-size touch target. */
select:not([multiple]):not([size]){box-sizing:border-box;height:38px;min-height:38px;padding:0 34px 0 11px;border:1px solid var(--line2);border-radius:6px;background-color:#f8faff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6e89' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center;color:var(--text);font-family:var(--body);font-size:.8rem;line-height:1.2;appearance:none;-webkit-appearance:none}
:root[data-theme=dark] select:not([multiple]):not([size]){background-color:#202a3a;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23aebbd0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
select:not([multiple]):not([size]):hover:not(:disabled){border-color:var(--muted)}
select:not([multiple]):not([size]):disabled{opacity:.6;cursor:not-allowed}
@media(max-width:600px){select:not([multiple]):not([size]){height:44px;min-height:44px}}
/* Soft, compact actions beside dropdowns; retain provider and status buttons. */
.btn:not(.sm):not(.auth-provider-button){box-sizing:border-box;height:38px;min-height:38px;padding:0 13px;border-radius:6px;font-family:var(--body);font-size:.8rem;line-height:1.2}
.btn:not(.primary):not(.twitch):not(.connected-button):not(.is-connected):not(.auth-provider-button){background:transparent;border-color:var(--line2);color:var(--text)}
.btn.primary:not(.is-connected):not(.twitch){background:#e8efff;border-color:#e8efff;color:#174ee3}
.btn.primary:not(.is-connected):not(.twitch):hover{background:#d9e5ff;border-color:#d9e5ff;color:#123db5;filter:none}
:root[data-theme=dark] .btn.primary:not(.is-connected):not(.twitch){background:#293d68;border-color:#293d68;color:#d4e0ff}
:root[data-theme=dark] .btn.primary:not(.is-connected):not(.twitch):hover{background:#354e80;border-color:#354e80;color:#fff}
.btn:not(.primary):not(.twitch):not(.connected-button):not(.is-connected):not(.auth-provider-button):hover{background:var(--panel2);border-color:var(--muted);color:var(--text);filter:none}
@media(max-width:600px){.btn:not(.sm):not(.auth-provider-button){height:44px;min-height:44px}}
/* Event mapping: RaceCentral → ZwiftPower → action, with matching control heights. */
.series-event-connection{align-items:flex-end}
.series-event-connection .series-event-destination.series-result-event-map{display:grid;grid-template-columns:minmax(0,1fr);flex:1 1 42%;gap:8px}
.series-event-connection .series-event-destination select{grid-column:1;height:48px;min-height:48px}
.series-event-connection .series-event-source-wrap{flex:1 1 42%}
.series-event-connection .series-event-source-wrap .series-event-source{height:48px;min-height:48px;max-height:48px;overflow:hidden}
.series-event-connection .series-event-connect.btn{height:48px;min-height:48px;flex:none;margin:0}
.series-event-connection .series-event-connection-arrow{height:48px;margin:0}
@media(max-width:850px){.series-event-connection{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}.series-event-connection .series-event-destination{grid-column:1/-1;width:100%}.series-event-connection .series-event-connection-arrow{grid-column:1/-1;justify-self:center;height:28px;transform:rotate(90deg)}.series-event-connection .series-event-source-wrap{grid-column:1;grid-row:3;min-width:0;width:100%}.series-event-connection .series-event-connect.btn{grid-column:2;grid-row:3;width:auto;min-width:0}}
@media(max-width:600px){.series-event-connection .series-event-destination select{height:48px;min-height:48px}.series-event-connection .series-event-source-wrap .series-event-source{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:1fr 1fr;gap:0 6px;padding:2px 10px}.series-event-connection .series-event-source .series-result-local-time,.series-event-connection .series-event-source .series-event-source-pending{grid-column:1/-1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.series-event-connection .series-event-connect.btn{height:48px;min-height:48px;padding-inline:10px}}
/* A native select remains interactive; the selected value gets a styled route/date overlay. */
.series-event-select-wrap{position:relative;display:block;min-width:0;width:100%}
.series-event-connection .series-event-select-wrap select{width:100%;font-family:var(--body);font-size:.85rem}
.series-event-select-display{position:absolute;left:12px;right:34px;top:1px;bottom:1px;display:flex;align-items:center;gap:8px;min-width:0;overflow:hidden;white-space:nowrap;pointer-events:none;background:var(--panel);font-family:var(--body);font-size:.85rem;color:var(--text)}
.series-event-select-display strong{flex:none;max-width:55%;overflow:hidden;text-overflow:ellipsis;font-weight:700}
.series-event-select-display span{min-width:0;overflow:hidden;text-overflow:ellipsis;font-weight:400}
.series-event-source-wrap .series-event-source{grid-template-columns:auto minmax(0,1fr)}
.series-event-source-details{display:flex;align-items:center;gap:8px;min-width:0;overflow:hidden;white-space:nowrap}
.series-event-source-details .series-event-source-name{flex:none;max-width:55%}
.series-event-source-details .series-result-local-time,.series-event-source-details .series-event-source-pending{min-width:0;overflow:hidden;text-overflow:ellipsis}
@media(max-width:600px){.series-event-connection .series-event-source-wrap .series-event-source{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:1fr 1fr}.series-event-source-details{grid-column:1/-1;grid-row:2;gap:5px}.series-event-source-details .series-event-source-name{max-width:50%}.series-event-source-details .series-result-local-time,.series-event-source-details .series-event-source-pending{grid-column:auto;white-space:nowrap}}
/* Series Configuration: one control rhythm, matching the Series Details name field. */
.series-management-section{--series-control-height:40px}
.series-management-section input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]):not([type=hidden]),
.series-management-section select:not([multiple]),
.series-management-section .btn,
.series-management-section button:not(.series-route-option):not(.series-timezone-option):not(.series-segment-option){box-sizing:border-box;height:var(--series-control-height)!important;min-height:var(--series-control-height)!important}
.series-management-section .series-event-source-wrap .series-event-source{box-sizing:border-box;height:var(--series-control-height)!important;min-height:var(--series-control-height)!important;max-height:var(--series-control-height)!important}
.series-management-section .series-event-connection-arrow{height:var(--series-control-height)!important}
.series-management-section .series-route-primary-row,
.series-management-section .series-race-fields,
.series-management-section .series-event-connection{align-items:end}
@media(max-width:600px){.series-management-section{--series-control-height:44px}}
/* ZRS bands use the same field rhythm, with a direct pipette + colour swatch. */
.series-category-band-row--zrs{align-items:end}
.series-category-band-row--zrs label{min-width:0;margin:0!important}
.series-category-band-row--zrs input[type=number],
.series-category-band-row--zrs input[type=text],
.series-category-band-row--zrs select{box-sizing:border-box;width:100%;height:var(--series-control-height)!important;min-height:var(--series-control-height)!important}
.series-category-band-row--zrs .series-category-band-color-control{position:relative;display:flex;align-items:stretch;gap:7px;width:max-content;height:var(--series-control-height);min-width:0;cursor:pointer}
.series-category-band-color-icon{box-sizing:border-box;display:grid;place-items:center;flex:0 0 var(--series-control-height);border:1px solid var(--line2);border-radius:6px;background:var(--panel2);color:var(--text)}
.series-category-band-color-icon svg{width:24px;height:24px}
.series-category-band-color-swatch{box-sizing:border-box;display:block;flex:0 0 var(--series-control-height);width:var(--series-control-height);height:var(--series-control-height);border:0;border-radius:6px}
.series-category-band-color-swatch.is-white{border:1px solid var(--line2)}
.series-category-band-row--zrs .series-category-band-color-control input[type=color]{position:absolute;inset:0;box-sizing:border-box;width:100%!important;height:100%!important;min-width:0!important;margin:0;padding:0;border:0;opacity:0;cursor:pointer}
.series-category-band-color-control:focus-within .series-category-band-color-icon{outline:2px solid var(--accent);outline-offset:2px}
/* Create/organiser calls to action stay orange after the general blue
   primary-button rules, in both colour themes. */
:root .btn.primary.create-series-button:not(.is-connected):not(.twitch),
:root .btn.primary.orange-action-button:not(.is-connected):not(.twitch){background:#c54a08;border-color:#c54a08;color:#fff;display:inline-flex;align-items:center;justify-content:center;text-align:center;text-decoration:none}
:root .btn.primary.create-series-button:not(.is-connected):not(.twitch):hover,
:root .btn.primary.orange-action-button:not(.is-connected):not(.twitch):hover{background:#b84300;border-color:#b84300;color:#fff;filter:none}
.series-managers-settings{margin-top:10px}
.series-managers-settings .series-settings-section-copy{margin:0}
.series-managers-settings .series-manager-row{min-width:0}
.series-managers-settings .series-manager-appoint-form{width:100%;max-width:none;gap:10px}
.series-managers-settings .series-manager-appoint-form p{margin:0}
.series-managers-settings .series-manager-appoint-form .btn{justify-self:start}
.series-organisers-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:16px}.series-organisers-column{min-width:0}.series-organisers-column h5{font-family:var(--disp);font-size:1.1rem;margin:0 0 10px}.series-creator-identity,.series-organiser-contact{display:flex;align-items:center;gap:8px;min-width:0}.series-organiser-contact span:last-child{overflow-wrap:anywhere}.series-manager-appoint-form{margin-top:20px}.series-manager-appoint-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start}.series-manager-appoint-row .btn{white-space:nowrap}.series-manager-picker{position:relative;min-width:0}.series-manager-picker>input,.series-manager-picker>select{width:100%;box-sizing:border-box}.series-manager-options{position:absolute;z-index:50;top:calc(100% + 2px);left:0;right:0;max-height:240px;overflow:auto;background:var(--panel);border:1px solid var(--line2);border-radius:8px;box-shadow:0 10px 25px #17263f30}.series-manager-options[hidden]{display:none}.series-manager-options button{display:block;width:100%;min-height:38px;padding:6px 10px;text-align:left;border:0;border-radius:0;background:var(--panel);color:var(--text)}.series-manager-options button:hover,.series-manager-options button:focus-visible{background:var(--panel2);color:var(--text)}.series-organisers-table-wrap{overflow-x:auto}.series-organisers-table{width:100%;border-collapse:collapse}.series-organisers-table th,.series-organisers-table td{padding:9px 8px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}.series-organisers-table tbody tr:hover{background:var(--panel2);color:var(--text)}.series-organisers-table form{margin:0}.series-organisers-table .btn{white-space:nowrap}.direct-message-icon{text-decoration:none}.direct-message-icon:hover{text-decoration:none}@media(max-width:850px){.series-organisers-layout{grid-template-columns:1fr}}@media(max-width:480px){.series-manager-appoint-row{grid-template-columns:1fr}}
.series-race-event-details .series-race-edit:not(.series-race-start-edit) .series-race-fields{grid-template-columns:minmax(90px,130px) minmax(180px,1fr) 300px}
@media(max-width:900px){.series-race-event-details .series-race-edit:not(.series-race-start-edit) .series-race-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.series-race-event-details .series-race-field-actions{grid-column:1/-1;justify-self:start}}
@media(max-width:600px){.series-race-event-details .series-race-edit:not(.series-race-start-edit) .series-race-fields{grid-template-columns:1fr}}
.series-configuration-preview-action{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:24px 0 6px;padding-top:18px;border-top:1px solid var(--line)}.series-configuration-preview-action small{max-width:45ch}
.config-preview-page{max-width:1320px}.config-preview-hero{display:flex;flex-direction:column;justify-content:flex-end;min-height:250px;padding:34px 40px;background-color:#183253;background-position:center;background-size:cover;color:#fff;border-radius:12px 12px 0 0}.config-preview-hero h1{margin:10px 0 0;color:#fff;font-size:2.6rem}.config-preview-hero p{margin:0;color:#d8e8ff}.config-preview-kicker{text-transform:uppercase;letter-spacing:.13em;font-weight:700;font-size:.72rem;color:#a8d4ff}.config-preview-version{margin-top:20px;font-size:.75rem;color:#d8e8ff}.config-preview-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:16px 20px;background:var(--panel);border:1px solid var(--line)}.config-preview-toolbar form{margin:0 0 0 auto}.config-preview-share-link,.config-preview-scope{margin:18px 0;padding:20px;background:var(--panel);border:1px solid var(--line);border-radius:10px}.config-preview-share-link{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.config-preview-share-link input{flex:1;min-width:240px}.config-preview-share-link p{flex-basis:100%;margin:0;color:var(--muted);font-size:.84rem}.config-preview-scope h2{font-size:1.4rem;margin:0}.config-preview-scope p{color:var(--muted);margin:3px 0 10px}.config-preview-scope form{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.config-preview-scope label{display:inline-flex;align-items:center;gap:6px;cursor:pointer}.config-preview-round-options{display:flex;gap:9px;flex-wrap:wrap;width:100%}.config-preview-round-options label{padding:7px 10px;border:1px solid var(--line);border-radius:7px;background:var(--panel2)}.config-preview-document{display:grid;gap:20px;margin-top:20px}.config-preview-chapter{background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow:hidden}.config-preview-chapter-heading{display:flex;align-items:center;gap:16px;padding:18px 24px;background:var(--panel2)}.config-preview-chapter-heading h2{margin:0;font-size:1.8rem}.config-preview-chapter-heading span:not(.config-preview-chapter-number){font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}.config-preview-chapter-number{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:10px;background:#1952ad;color:#fff;font-family:var(--disp);font-size:1.5rem;font-weight:800}.config-preview-chapter-number--red{background:#b83735}.config-preview-chapter-body{padding:20px 26px 26px}.config-preview-node{--node:#3973bd;position:relative;margin:0 0 14px;padding:14px 18px;border-left:5px solid var(--node);border-radius:0 9px 9px 0;background:color-mix(in srgb,var(--node) 8%,var(--panel))}.config-preview-node--red{--node:#c43c3c}.config-preview-node--blue{--node:#3973bd}.config-preview-node--teal{--node:#158c91}.config-preview-node--violet{--node:#7959a7}.config-preview-node--amber{--node:#b57a15}.config-preview-node--green{--node:#25845d}.config-preview-node--slate{--node:#66758c}.config-preview-node h3{margin:0 0 10px;color:var(--text);font-family:var(--disp);font-size:1.3rem}.config-preview-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px 20px;margin:0}.config-preview-fields>div{display:grid;grid-template-columns:minmax(130px,.38fr) minmax(0,1fr);gap:8px;padding:6px 0;border-bottom:1px solid var(--line)}.config-preview-fields dt{color:var(--muted);font-size:.78rem;font-weight:700}.config-preview-fields dd{margin:0;overflow-wrap:anywhere;font-size:.85rem}.config-preview-children{margin:14px 0 0 12px;padding-left:17px;border-left:2px solid var(--node)}.config-preview-children>.config-preview-node:last-child{margin-bottom:0}.config-preview-footnote{font-size:.8rem;color:var(--muted);margin:20px 0 35px}@media(max-width:760px){.config-preview-hero{min-height:180px;padding:24px}.config-preview-hero h1{font-size:2rem}.config-preview-fields{grid-template-columns:1fr}.config-preview-chapter-body{padding:14px}.config-preview-toolbar form{margin-left:0}.config-preview-fields>div{grid-template-columns:minmax(105px,.35fr) minmax(0,1fr)}}@media print{.topbar,.nav,.series-bar,.config-preview-toolbar,.config-preview-scope,.config-preview-share-link,.config-preview-footnote,.foot{display:none!important}.config-preview-page{max-width:none!important;padding:0!important}.config-preview-hero{print-color-adjust:exact;-webkit-print-color-adjust:exact}.config-preview-node,.config-preview-chapter-number{print-color-adjust:exact;-webkit-print-color-adjust:exact}.config-preview-node{break-inside:avoid}.config-preview-chapter{break-before:auto;box-shadow:none}}
/* Distinguish the three top-level management areas without recolouring their forms. */
:root:not([data-theme=dark]) .series-main-configuration{background:#edf5ff;border-color:#c5d9f3}
:root:not([data-theme=dark]) #results-configuration{background:#fff0ed;border-color:#edc4bd}
:root:not([data-theme=dark]) .discord-series-settings{background:#edf8f0;border-color:#bfdfc9}
#results-configuration>.series-management-summary .series-section-badge{background:#9d2e2a;color:#fff}
.discord-series-settings>.series-management-summary .series-section-badge{background:#176b43;color:#fff}
:root[data-theme=dark] .series-main-configuration{background:#18283e;border-color:#365579}
:root[data-theme=dark] #results-configuration{background:#352326;border-color:#704247}
:root[data-theme=dark] .discord-series-settings{background:#1c3329;border-color:#3a7050}

/* RC15: FAL and FTS award lines sit under each segment so the number of
   crossings is not mistaken for the number of points awards. */
.configured-segments .scoring-award-line{display:inline-block;margin-top:3px;padding-left:12px;font-weight:400;color:var(--muted)}

/* RC16: state the saved status beside the competition control so a
   displayed value is never mistaken for a persisted one. */
.series-competition-state{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:999px;font-size:.68rem;font-weight:700;letter-spacing:.02em;vertical-align:middle;border:1px solid var(--line);background:var(--bg2);color:var(--muted)}
.series-competition-state--saved,.series-competition-state--mixed,.series-competition-state--overrides{border-color:#b9dfc8;background:#e9f7ee;color:#145b38}
.series-competition-state--unset{border-color:#f0c2c0;background:#fff0ef;color:#8d201b}

/* RC17: both time bases are legitimate - the rider's own zone for an instant,
   the organiser's calendar for a date-only round range - so each is named. */
.fixture-start-organiser{display:block;margin-top:2px;font-size:.72rem;font-weight:400;color:var(--muted)}
.fixture-start-counts{flex-wrap:wrap;min-width:0}.fixture-count-observation{display:grid;gap:2px;min-width:0;max-width:100%}.fixture-count-checked,.fixture-count-unavailable{color:var(--muted);font-size:.72rem;line-height:1.35;overflow-wrap:anywhere}.fixture-count-checked{display:block}.fixture-rider-count{white-space:normal}.fixture-rider-number{flex:none}.fixture-rider-count svg{flex:none}.fixture-rider-label{display:inline}
@media(max-width:600px){.fixture-start,.fixture-start:not(.is-completed){grid-template-columns:minmax(0,1fr)}.fixture-start-main{grid-column:1;grid-row:1}.fixture-start-counts{grid-column:1;grid-row:2;justify-content:flex-start;gap:8px}.fixture-start-actions,.fixture-start:not(.is-completed) .fixture-start-actions,.fixture-start.is-completed .fixture-start-actions{grid-column:1;grid-row:3}.fixture-starts .fixture-start .fixture-entry-bands{grid-column:1;grid-row:4}.fixture-count-checked{font-size:.7rem}}
.round-window-basis{display:block;margin-top:1px;font-size:.62rem;font-weight:600;letter-spacing:.03em;text-transform:uppercase;opacity:.72}
