/* Event editor only. Public registration and programme rules are unchanged. */
.event-editor{--ee-soft:#f5f6f8}
.event-editor [hidden]{display:none!important}
.event-editor .sectionhead{align-items:flex-start;margin-bottom:22px}
.event-editor h1{margin-top:10px}
.event-editor .sectionhead>.secondary{margin-top:12px}
.ee-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 20px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.ee-tabs button{background:white;color:var(--ink);border:1px solid #cbd0d9;min-height:44px;padding:11px 16px}
.ee-tabs button[aria-selected=true]{background:var(--red);color:white;border-color:var(--red)}
.ee-tabs [data-programme-total]{display:inline-block;margin-left:8px;font-size:11px;border-radius:20px;padding:1px 7px;background:#0000000a}
.ee-tabs [aria-selected=true] [data-programme-total]{background:#ffffff30}
.ee-panel{min-width:0;margin-bottom:20px;padding:26px}
.ee-panel .grid>*{min-width:0}
.ee-panel h2{font-size:21px}
.ee-panel .muted{line-height:1.6}
.ee-panel .event-performance-editor{border-top:1px solid var(--line);margin-top:24px;padding-top:24px}
.event-performance-editor>label{max-width:420px}
.ee-panel .event-media-editor{margin:0;padding:0 0 24px;border-top:0}
.ee-panel .event-media-editor>p{font-size:13px;color:var(--muted)}
.ee-panel .event-link-editor{margin-bottom:0}
.ee-panel .wrc-editor{padding:18px;margin:24px 0}
.ee-programme-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}
.ee-programme-heading h2{margin-bottom:7px}
.ee-programme-heading p{margin:0}
.ee-programme-heading button{font-size:12px}
.ee-help{padding:12px 0;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}
.ee-help>summary{color:var(--ink);font-weight:600;cursor:pointer}
.ee-help p{max-width:100ch}
.ee-add,.ee-bulk{border:1px solid var(--line);border-radius:8px;background:var(--ee-soft);padding:14px 16px;margin:18px 0}
.ee-add>summary,.ee-bulk>summary{cursor:pointer;font-size:14px;font-weight:700}
.ee-add-fields{display:grid;grid-template-columns:1fr 1fr 1.3fr .7fr auto;gap:12px;align-items:end;margin-top:16px}
.ee-add-fields label,.ee-bulk-fields label,.ee-programme-filters label{min-width:0;margin:0}
.ee-add-fields input,.ee-add-fields select,.ee-bulk-fields input,.ee-bulk-fields select,.ee-programme-filters select{min-width:0;max-width:100%}
.ee-add>p:last-child,.ee-bulk>p:last-child{margin-bottom:0}
.ee-programme-filters{display:grid;grid-template-columns:1fr 1fr 1.5fr auto;align-items:end;gap:12px;margin-top:22px}
.ee-programme-filters button{min-height:44px;font-size:12px}
.ee-programme-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;font-size:13px;margin:10px 0}
.ee-programme-tools p{margin:0;color:var(--muted)}
.ee-programme-tools>div{display:flex;flex-wrap:wrap;gap:6px}
.ee-programme-tools button{font-size:12px;padding:8px 0 8px 12px}
.ee-bulk{margin-top:4px;background:white;border-left:3px solid var(--red)}
.ee-bulk summary span{color:var(--muted);font-weight:400}
.ee-bulk-fields{display:grid;grid-template-columns:minmax(100px,180px) minmax(150px,220px) auto;align-items:end;gap:14px}
.ee-bulk-fields button{justify-self:start;min-height:44px;font-size:13px}
#ee-bulk-result{font-size:13px;color:#175b44}
#ee-bulk-result:empty{display:none}
.ee-age-group{border:1px solid var(--line);border-radius:8px;overflow:hidden;margin-top:10px;background:white}
.ee-age-group>summary{display:flex;align-items:center;gap:12px;list-style:none;padding:14px 16px;background:var(--ee-soft);cursor:pointer;min-height:50px}
.ee-age-group>summary::-webkit-details-marker{display:none}
.ee-age-group>summary::before{content:'›';font-size:21px;line-height:1;transform:rotate(0deg)}
.ee-age-group[open]>summary::before{transform:rotate(90deg)}
.ee-age-group>summary strong{font-size:15px}
.ee-age-group>summary span{margin-left:auto;font-size:12px;color:var(--muted);text-align:right}
.ee-age-group table{table-layout:fixed}
.ee-age-group th:first-child{width:50%}
.ee-age-group th:nth-child(2){width:20%}
.ee-age-group td,.ee-age-group th{padding:10px 16px}
.ee-age-group tr:last-child td{border-bottom:0}
.ee-age-group td input,.ee-age-group td select{width:100%;min-width:0;max-width:100%;font-size:13px;padding:9px 10px}
.ee-age-group td input{max-width:150px}
.ee-discipline{overflow-wrap:anywhere}
.ee-discipline strong{font-size:13px;font-weight:600}
.ee-mobile-label{display:none}
.ee-savebar{position:sticky;bottom:12px;z-index:4;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px 20px;border:1px solid var(--line);border-radius:10px;background:white;box-shadow:0 4px 22px #20222b12;margin-top:22px}
.ee-savebar.is-dirty{border-top:3px solid var(--red)}
.ee-savebar strong{display:block;font-size:14px}
.ee-savebar small{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.ee-savebar button{flex-shrink:0}
.event-editor :is(input,select,textarea,summary){scroll-margin:30px 0 150px}
@media(max-width:900px){
 .ee-add-fields{grid-template-columns:1fr 1fr}.ee-add-fields button{justify-self:start}
 .ee-programme-heading{align-items:flex-start;flex-direction:column;gap:12px}
 .ee-programme-filters{grid-template-columns:1fr 1fr}.ee-programme-filters button{justify-self:start}
 .ee-bulk-fields{grid-template-columns:1fr 1fr}.ee-bulk-fields button{grid-column:1/-1}
}
@media(max-width:600px){
 .ee-panel{padding:16px}.ee-panel .grid{grid-template-columns:minmax(0,1fr)}
 .ee-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ee-tabs button{font-size:12px;padding:10px 8px}
 .ee-tabs [data-programme-total]{margin-left:4px;padding:0 5px}
 .ee-age-group thead{display:none}.ee-age-group table,.ee-age-group tbody{display:block}
 .ee-age-group tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);padding:12px;border-bottom:1px solid var(--line);gap:12px}
 .ee-age-group tr:last-child{border-bottom:0}.ee-age-group td{display:block;padding:0;border:0;min-width:0}
 .ee-age-group .ee-discipline{grid-column:1/-1}.ee-mobile-label{display:block;font-size:11px;color:var(--muted);margin-bottom:4px}
 .ee-savebar{bottom:8px;padding:12px;gap:12px;flex-wrap:wrap}.ee-savebar>div{flex:1;min-width:150px}
 .ee-savebar strong{font-size:12px}.ee-savebar small{font-size:11px}.ee-savebar button{font-size:12px;padding:11px 12px}
 .ee-add,.ee-bulk{padding:12px}.ee-add-fields,.ee-bulk-fields{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:380px){.ee-programme-filters{grid-template-columns:minmax(0,1fr)}.ee-savebar button{width:100%}.ee-age-group>summary{padding:12px}}
