.race-editor-section{margin:15px 0;border:1px solid #46505c;border-radius:6px;background:#17202a}.race-editor-section>summary{padding:14px;font-weight:800;background:#233141;cursor:pointer}.race-editor-body{padding:18px;display:grid;gap:15px}.race-editor-body .race-editor-section{margin-left:15px;background:#111b26}.race-record-list{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.race-record{text-align:left;max-width:100%;overflow-wrap:anywhere}.race-state-pending{border-left:5px solid #e4b63e!important}.race-state-published{border-left:5px solid #62b578!important}.race-state-declined,.race-state-hidden{opacity:.7}.race-field-help{font-size:12px;color:#bcc7d6;font-weight:400;margin:5px 0}.race-field-help summary{cursor:pointer}.race-field-help p{padding:8px;border-left:2px solid #8ca1c0}.race-photo-field img{display:block;max-width:270px;max-height:190px;object-fit:contain;margin:12px 0}.race-library{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));max-height:640px;overflow:auto}.race-library img{width:100%;height:150px;object-fit:cover}.race-library label{background:#101720;padding:8px;font-size:12px}.race-library input{width:auto}.race-editor-body input,.race-editor-body textarea,.race-editor-body select{max-width:100%}

/* Follow the current light Manager theme, with shaded nested sections. */
.race-editor-section{background:#f1f4f7;border-color:#bccbd5;color:#173337}.race-editor-section>summary{background:#dfe8ef;color:#183741}.race-editor-body .race-editor-section{background:#eaf0f5}.race-field-help{color:#4d6270}.race-library label{background:#e5ebef;color:#173337}
/* Race Experience Manager: help content never participates in control alignment. */
.race-manager{min-width:0;--race-control-height:44px}
.race-manager .race-field{display:grid;gap:7px;min-width:0;align-content:start}
.race-manager .race-field>label{display:block;margin:0;line-height:1.4;font-size:.9rem}
.race-manager .race-input-row{display:flex;align-items:flex-start;gap:10px;min-width:0}
.race-manager .race-input-row>input:not([type=checkbox]),.race-manager .race-input-row>select,.race-manager .race-input-row>textarea{flex:1 1 0;min-width:0;width:100%;margin:0}
.race-manager button,.race-manager .button,.race-manager input:not([type=checkbox]),.race-manager select{min-height:var(--race-control-height);line-height:1.35;box-sizing:border-box}
.race-manager button{white-space:normal;overflow-wrap:anywhere;max-width:100%;margin:0}
.race-manager .race-input-row>button{flex:0 0 auto;max-width:45%}
.race-manager .race-field-help{margin:0;min-width:0;line-height:1.5;color:#405862}
.race-manager .race-field-help>summary{display:list-item;width:fit-content;max-width:100%;padding:7px 9px;border:1px solid #c0cdd3;border-radius:5px;background:#fff;line-height:1.35;cursor:pointer}
.race-manager .race-field-help p{margin:8px 0 0;padding:10px 12px;background:#e3ebf0;color:#243f4a;overflow-wrap:anywhere}
.race-manager .race-check .race-input-row{align-items:center;justify-content:flex-start}
.race-manager .race-check input{flex:0 0 20px;width:20px;height:20px;min-height:20px;margin:0;accent-color:#237847}
.race-manager .race-check label{display:block;margin:0;line-height:1.4;cursor:pointer}
.race-manager .race-check .race-field-help{margin-left:30px}
.race-manager .race-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,190px);align-items:start;gap:18px;margin:18px 0}
.race-manager .race-toolbar:has(>.race-filter:only-child){grid-template-columns:minmax(150px,220px)}
.race-manager .race-actions,.race-manager .actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0}
.race-manager .race-actions>button,.race-manager .actions>button{flex:0 1 auto;width:auto}
.race-manager .race-editor-body{gap:18px;min-width:0}
.race-manager .race-editor-body>p{margin:0;line-height:1.55}
.race-manager .race-editor-body .race-editor-section{margin:0 0 0 12px;min-width:0}
.race-manager .race-editor-section>summary{line-height:1.45;overflow-wrap:anywhere;min-height:48px}
.race-manager .race-field>.actions{gap:7px}
.race-manager .race-field>.actions button{min-height:38px;padding:7px 12px}
.race-manager .race-save-actions{padding-top:16px;margin-top:20px;border-top:1px solid #bbc9c4;gap:14px}
.race-manager button.race-remove{color:#852c23;background:#fff6f3;border-color:#b57c70}
.race-manager button.race-remove:hover{background:#f7e1dc}
.race-manager .race-photo-field{display:grid;gap:10px;padding:14px;border:1px solid #becbd3;border-radius:8px;background:#fff;min-width:0}
.race-manager .race-photo-field>label{margin:0;gap:7px}
.race-manager .race-photo-field>button{justify-self:start}
.race-manager .race-photo-field img{margin:0;max-width:100%;max-height:190px}
.race-manager .race-photo-field img[hidden]{display:none}
.race-manager input[type=file]{width:100%;min-width:0;padding:7px;background:#fff}
.race-manager input[type=file]::file-selector-button{padding:7px 10px;margin-right:10px;color:#183741;border:1px solid #9eb1bd;border-radius:5px;background:#e8eff3;font-weight:600}
.race-manager .race-state-hidden,.race-manager .race-state-declined{opacity:1;color:#48595d;background:#edf0f2}
.race-manager .race-record-list{align-items:stretch}
.race-manager .race-library{gap:12px;align-items:stretch}
.race-manager .race-library label{display:grid;grid-template-columns:20px minmax(0,1fr);align-content:start;align-items:center;gap:10px;border:1px solid #bdcbd4;border-radius:7px;cursor:pointer;margin:0}
.race-manager .race-library img{grid-column:1/-1;min-width:0;border-radius:4px}
.race-manager .race-library input{width:20px;height:20px;min-height:20px;margin:0;accent-color:#237847}
.race-manager .race-library label:has(:checked){border-color:#44825d;box-shadow:inset 0 0 0 1px #44825d}
.race-manager :is(button,input,select,textarea,summary,a):focus-visible{outline:3px solid #aa7e19;outline-offset:3px}
/* The shared racer-approval photo controls also appear in Race Experience. */
.manager-racer-photos{display:block;min-width:0;padding:16px;border:1px solid #b9c9c0;border-radius:8px;background:#f3f7f4}
.manager-racer-photos legend{font-weight:750;padding:0 6px}.manager-racer-photos>p{margin:0 0 14px;line-height:1.5}
.manager-racer-photos>div{align-items:stretch;margin-bottom:16px}
.manager-racer-photos>div>div{display:grid;align-content:start;gap:10px;width:174px;max-width:100%;padding:12px;background:white;border:1px solid #becdc3;border-radius:8px}
.manager-racer-photos label{display:flex;align-items:center;gap:8px;width:auto;min-height:32px;line-height:1.4;margin:0;padding:4px;cursor:pointer}
.manager-racer-photos label:has(:checked){outline:0;background:#e0eddf;border-radius:4px}
.manager-racer-photos input:is([type=radio],[type=checkbox]){width:18px;height:18px;min-height:18px;margin:0;flex:0 0 18px;accent-color:#237847}
.manager-racer-photos button{min-height:44px;white-space:normal;width:100%}
.manager-racer-photos>input[type=file]{display:block;width:100%;min-height:44px;background:white}
@media(max-width:950px){.race-manager .race-toolbar{grid-template-columns:minmax(0,1fr)}.race-manager .race-filter{max-width:240px}}
@media(max-width:600px){.race-manager .race-input-row:has(>button){flex-direction:column;align-items:stretch}.race-manager .race-input-row>button{max-width:100%;width:100%}.race-manager .race-editor-body{padding:14px;gap:16px}.race-manager .race-editor-body .race-editor-section{margin-left:0}.race-manager .race-actions>button{flex:1 1 150px}.race-manager .race-field>.actions button{flex:0 1 auto}.race-manager .race-library{grid-template-columns:repeat(2,minmax(0,1fr))}.manager-racer-photos>div>div{width:100%}}
.manager-racer-photos>div>label{flex:0 0 100%;align-self:flex-start}
.race-manager>.race-actions{margin-top:16px}
