.start-entry-selector{margin:12px 0;display:grid;gap:8px;max-width:100%}
.start-entry-selector label{max-width:480px;display:grid;gap:6px}
.start-entry-selector small{color:var(--muted);line-height:1.5}
.series-round-add>summary.btn.series-create-round{background:#e5f3ec!important;border-color:#8fc2ae!important;color:#166b43!important}
.series-round-add>summary.btn.series-create-round:hover{background:#d4eadf!important;border-color:#23975b!important;color:#135b39!important}
:root[data-theme=dark] .series-round-add>summary.btn.series-create-round{background:#203f32!important;border-color:#548d70!important;color:#c0e6cf!important}
.start-entry-selector fieldset{border:1px solid var(--series-race-edge);border-left:5px solid var(--series-race-edge);border-radius:12px;background:var(--panel);padding:16px;margin:0;min-width:0}
.start-entry-selector legend{font-family:var(--disp);font-size:1.1rem;font-weight:700;padding:0 8px}
.start-entry-selector label:has(.zp-category){display:flex;align-items:center;gap:8px}
.start-entry-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr));gap:16px;padding-top:8px}
@container series-editor (min-width:800px){
  .start-entry-fields:has(select[name$="pen_A"]){grid-template-columns:repeat(5,minmax(0,1fr));gap:16px 12px}
}
.start-entry-competitions{grid-column:1/-1;display:grid;gap:8px}
.start-entry-field-title{font-size:.78rem;color:var(--muted)}
.start-entry-competition-options{display:flex;flex-wrap:wrap;gap:12px 20px}
.series-editor .start-entry-competition-options label{display:inline-flex;align-items:center;gap:8px;max-width:100%;margin:0;white-space:nowrap}
.start-entry-competition-options input[type=checkbox]{width:18px!important;min-width:18px!important;max-width:18px!important;height:18px;margin:0;flex:0 0 18px}
.start-entry-field{min-width:0;display:grid;align-content:start;gap:6px}
.series-editor .start-entry-field>label{margin:0;min-height:26px}
.series-editor .start-entry-field>select{margin:0;width:100%}
.series-management-section .series-route-primary-row--no-categories{grid-template-columns:minmax(140px,1fr) minmax(190px,1.25fr) minmax(110px,.7fr) minmax(230px,1.6fr);align-items:end}
.series-route-primary-row .series-route-actions{grid-column:1/-1;justify-self:start}
.series-route-length-value,.series-route-primary-row>.series-round-field{min-width:0}
.series-route-length-value input,.series-route-primary-row select{width:100%;box-sizing:border-box}
.series-editor .series-management-section p.series-route-future-warning{color:var(--series-round-edge);margin:16px 0;line-height:1.6}
@media(max-width:1000px){.series-management-section .series-route-primary-row--no-categories{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.series-management-section .series-route-primary-row--no-categories{grid-template-columns:1fr}}
.start-entry-badges{display:flex;gap:6px;flex-wrap:wrap}
.start-entry-badges span{display:inline-flex;padding:4px 8px;border-radius:6px;background:var(--entry-bg);color:var(--entry-fg);font-size:.8rem;font-weight:600}
.start-entry-saved{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}
.start-entry-saved form{margin:0}
.start-entry-table{max-width:100%;overflow-x:auto;margin:12px 0}
.start-entry-table table{min-width:330px;width:100%}
[id^="start-band-sets"] [data-entry-band-form]{min-width:0;width:100%;box-sizing:border-box}
[id^="start-band-sets"] [data-entry-band-form]>label{display:grid;gap:6px;min-width:0}
[id^="start-band-sets"] [data-entry-band-form]>label input,[id^="start-band-sets"] [data-entry-band-form]>label select{min-width:0;width:100%;max-width:100%;box-sizing:border-box}
.series-round-categories fieldset{border:1px solid var(--line);border-radius:12px;padding:12px 16px;margin:0;background:var(--panel);box-sizing:border-box}
.series-round-categories legend{font-size:.85rem;font-weight:600;padding:0 6px;max-width:100%;white-space:normal}
.round-zrs-heading{margin:0 0 20px}
.round-zrs-assignments{padding-top:20px}
.round-zrs-competitions{display:grid;gap:20px}
.series-round-edit>.series-scoring-round-content>.series-round-inline-form{margin-top:8px;gap:10px}
details.series-round-group{display:block;padding:0;border-color:var(--series-round-edge);border-left:5px solid var(--series-round-edge)}
details.series-round-group[open]{padding-bottom:16px}
details.series-round-group>summary{display:flex;align-items:center;gap:8px;box-sizing:border-box;min-height:42px;padding:6px 9px;cursor:pointer;list-style:none;font-family:var(--disp);font-size:1.1rem;font-weight:700;color:var(--text)}
details.series-round-group>summary::-webkit-details-marker{display:none}
details.series-round-group>summary::before{content:'+';min-width:2ch;text-align:center;color:#fd6900;font-weight:800}
details.series-round-group[open]>summary::before{content:'−'}
details.series-round-group>summary h3{margin:0;font:inherit}
details.series-round-group[open]>summary{margin-bottom:0;border-bottom:1px solid var(--line)}
details.series-round-group[open]>:not(summary){margin:16px 16px 0}
.round-toggle-label{display:flex!important;align-items:center;gap:12px!important;white-space:normal!important;margin:14px 0}
details[data-round-segment-scoring] .round-toggle-label{margin:0}
details[data-round-segment-scoring][open]>[data-format-scoring-warning]{color:var(--series-round-edge);margin-top:20px}
.round-save-action{display:grid;gap:6px;justify-items:start;margin-top:4px}
.round-save-action small{color:var(--muted);font-size:.8rem;line-height:1.5}
.new-round-actions{display:flex;align-items:center;justify-content:flex-start;gap:12px;flex-wrap:wrap;margin-top:4px}
.new-round-actions .btn{margin:0;white-space:nowrap}
.new-round-actions .btn.new-round-cancel{background:#f8e7e5!important;border-color:#d49b95!important;color:#a03d34!important}
.new-round-actions .btn.new-round-cancel:hover{background:#f2d5d1!important;border-color:#b65349!important;color:#893229!important;filter:none}
:root[data-theme=dark] .new-round-actions .btn.new-round-cancel{background:#4a2928!important;border-color:#975b56!important;color:#f1c1ba!important}
:root[data-theme=dark] .new-round-actions .btn.new-round-cancel:hover{background:#5b3330!important;border-color:#b8766f!important;color:#ffe0db!important}
:is(.series-round-group,.series-publish-setting,.series-registration-toggle,:where(#leaderboards)) input.round-scoring-switch{appearance:none;-webkit-appearance:none;position:relative;width:46px!important;min-width:46px!important;max-width:46px!important;height:28px!important;min-height:28px!important;padding:0!important;border:0!important;border-radius:20px!important;background:#9299a3;flex:0 0 46px!important;cursor:pointer;transition:background .15s}
:is(.series-round-group,.series-publish-setting,.series-registration-toggle,:where(#leaderboards)) input.round-scoring-switch::after{content:'';position:absolute;width:22px;height:22px;top:3px;left:3px;border-radius:50%;background:white;box-shadow:0 1px 3px #0003;transition:transform .15s}
:is(.series-round-group,.series-publish-setting,.series-registration-toggle,:where(#leaderboards)) input.round-scoring-switch:checked{background:#23975b!important}
:is(.series-round-group,.series-publish-setting,.series-registration-toggle,:where(#leaderboards)) input.round-scoring-switch:checked::after{transform:translateX(18px)}
:is(.series-round-group,.series-publish-setting,.series-registration-toggle,:where(#leaderboards)) input.round-scoring-switch:focus-visible{outline:2px solid var(--text);outline-offset:3px}
.series-publish-setting .round-toggle-label{margin:0 0 8px}
.series-round-formats [id$="-race_formats"]{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:10px 20px;margin:10px 0}
.series-round-formats label:has(input[type=checkbox]:not([role=switch])){display:flex!important;align-items:center;gap:8px;white-space:normal}
.series-round-formats input[type=checkbox]:not([role=switch]){width:18px!important;min-width:18px!important;max-width:18px!important;height:18px;flex:0 0 18px;padding:0;margin:0}
.series-round-categories .round-competition-options>div{display:flex;flex-wrap:wrap;gap:12px 20px}
.series-round-categories .round-competition-options>div>div{flex:0 0 auto}
.series-round-categories label:has(input[type=checkbox]){display:inline-flex!important;align-items:center;gap:8px;white-space:nowrap}
.series-round-categories input[type=checkbox]{width:18px!important;min-width:18px;max-width:18px;height:18px;flex:0 0 18px;padding:0;margin:0}
.round-guidance-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr));gap:12px}
.series-round-categories .round-guidance-column{min-width:0;display:grid;gap:10px;padding:12px}
.round-guidance-column textarea{width:100%;box-sizing:border-box;min-height:calc(4.65em + 20px);line-height:1.55;resize:vertical}
.round-guidance-column .series-round-field>label{display:flex;align-items:center;gap:8px}
.series-round-categories select{box-sizing:border-box;width:100%;min-width:0;min-height:42px;color:var(--text);background:var(--panel);border:1px solid var(--line2);border-radius:8px;padding:10px 12px;font:inherit}
.start-entry-preset{display:grid;gap:6px;margin:12px 0}
.start-entry-library{display:grid;gap:12px;margin:16px 0}
.start-entry-library .start-entry-saved{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;margin:0;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.start-entry-saved-content{display:grid;gap:10px;min-width:0}
.start-entry-saved-actions{display:flex;gap:8px;align-items:center}
.start-entry-saved-actions .btn{min-width:70px;box-sizing:border-box}
.start-entry-saved-actions form{position:relative}
#series-editor .start-entry-saved-actions form .editor-form-state{position:absolute;inset-inline-end:0;bottom:calc(100% + 6px);margin:0;white-space:nowrap;pointer-events:none}
.start-entry-badges span{gap:8px;align-items:center;white-space:nowrap}
.start-entry-badges span small{color:inherit;font-size:.75rem;opacity:.9}
.series-round-categories .start-entry-table tbody tr:hover{background:var(--panel2)}
@container series-editor (max-width:500px){.round-guidance-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.start-entry-library .start-entry-saved{grid-template-columns:minmax(0,1fr)}.start-entry-saved-actions{justify-content:flex-end}}
@container series-editor (max-width:500px){.start-entry-saved-actions{padding-top:24px}}
@container series-editor (max-width:340px){.round-guidance-columns{grid-template-columns:minmax(0,1fr)}}
.series-round-categories [hidden]{display:none!important}
.start-entry-table th,.start-entry-table td{padding:6px;text-align:left;background:transparent!important}
.start-entry-table input,.start-entry-table select{width:100%;min-width:85px}
.start-entry-actions{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}
.start-entry-action{display:grid;gap:6px;align-content:start;flex:1 1 180px;min-width:0}
.start-entry-action .btn{justify-self:start}
.start-entry-action small{display:block;color:var(--muted);font-size:.75rem;line-height:1.5}
.series-management-section .btn.series-negative-action{color:#b12c2c!important;border-color:#b12c2c!important;background:var(--editor-negative-soft)!important}
.fixture-entry-bands{grid-column:1/-1;grid-row:2;white-space:normal;font-size:.8rem;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
@media(max-width:600px){.fixture-start .fixture-entry-bands{grid-row:3}}
