/* Events only. Loaded after settings.css; the owner save/PIN/booking surfaces keep their existing styles. */
#set-events{--ev-photo-bg:var(--plum,#2f1c2d)}
#set-events .evOwnerIntro{margin:0 0 18px;max-width:720px}
#set-events .evOwnerIntro p{margin:4px 0;color:var(--ink-2);font-size:14px;line-height:1.5}
:where(#set-events,.evEditorModal,.evPreviewModal) .evEyebrow{font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--terra);margin:0 0 9px}
#set-events .evOwnerToolbar{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 16px}
#set-events .evFilters{display:flex;gap:6px;flex-wrap:wrap}
#set-events .evFilters .aBtn{min-height:38px;background:var(--card);color:var(--ink)}
#set-events .evFilters [aria-pressed=true]{background:var(--plum);border-color:var(--plum);color:var(--cream)}
#set-events .evSearch{display:grid;gap:4px;font-size:11px;color:var(--ink-2);min-width:180px;flex:0 1 240px}
#set-events .evSearch input{width:100%;min-width:0;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:14px}
#set-events .evOwnerRow{display:grid;grid-template-columns:150px minmax(0,1fr) 148px;gap:20px;align-items:start;padding:20px 0;border-top:1px solid var(--line)}
#set-events .evOwnerPhoto{aspect-ratio:4/3;border-radius:12px;overflow:hidden;background:var(--ev-photo-bg);color:#f7f0e2;display:flex;align-items:center;justify-content:center;text-align:center;font-family:Georgia,serif;font-size:20px;line-height:1.3}
#set-events .evOwnerPhoto span{padding:16px}
#set-events .evOwnerPhoto img{display:block;width:100%;height:100%;object-fit:cover}
#set-events .evOwnerMain{min-width:0}
#set-events .evOwnerTitle{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#set-events .evOwnerTitle h5{font-family:Fraunces,Georgia,serif;color:var(--ink);font-size:21px;line-height:1.25;overflow-wrap:anywhere;margin:0 6px 2px 0}
:where(#set-events,.evPreviewModal) .evState{display:inline-block;font-size:10px;line-height:1.5;font-weight:750;border:1px solid var(--line);border-radius:999px;padding:3px 8px;white-space:nowrap;color:var(--ink-2);background:var(--bg)}
#set-events .evState-published{color:var(--ink);border-color:var(--terra)}
#set-events .evUnsaved{font-size:10px;font-weight:750;color:var(--terra);white-space:nowrap}
#set-events .evOwnerWhen{margin:7px 0;color:var(--ink);font-size:13px;font-weight:650}
#set-events .evOwnerDesc{font-size:13px;line-height:1.5;color:var(--ink-2);margin:0 0 10px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#set-events .evOwnerFacts{display:flex;gap:5px 14px;flex-wrap:wrap;color:var(--ink-2);font-size:11px}
#set-events .evOwnerFacts span:first-child{font-weight:750;color:var(--ink)}
#set-events .evOwnerBooked{margin:12px 0 0;font-size:12px;line-height:1.6;color:var(--ink-2)}
#set-events .evOwnerBooked b{font-weight:650;color:var(--ink)}
#set-events .evOwnerActions{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}
#set-events .evOwnerActions :is(button,a){min-height:40px;padding:8px 12px;font-size:12px}
#set-events .evOwnerActions .aBtn,#set-events .evOwnerManage .aBtn{background:var(--card);color:var(--ink);text-decoration:none}
#set-events .evOwnerManage{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding-top:3px;font-size:12px;line-height:1.4}
#set-events .evOwnerManage label{display:flex;gap:8px;align-items:center;cursor:pointer;font-weight:650;color:var(--ink)}
#set-events .evOwnerManage input{width:17px;height:17px;flex:none}
#set-events .evOwnerManage .hint{font-size:10px}
#set-events .evOwnerManage button{margin-top:15px;min-height:38px}
.evEditorModal{max-width:800px;padding:26px}
.evEditorModal .evEditorLead{font-size:14px;margin:0 0 13px}
.evEditorModal .evStagingNote,.evPreviewModal .evStagingNote{padding:12px 14px;background:var(--bg);border:1px solid var(--line);border-radius:10px;font-size:12px;line-height:1.6;margin:0 0 16px;color:var(--ink-2)}
.evEditorModal .evEditorSection{border-top:1px solid var(--line);padding-top:22px;margin-top:22px}
.evEditorModal .evSectionTitle{display:flex;gap:13px;align-items:flex-start;margin-bottom:18px}
.evEditorModal .evSectionTitle>span{font-size:10px;font-weight:800;letter-spacing:.1em;color:var(--terra);padding-top:5px}
.evEditorModal .evSectionTitle h4{font-family:Fraunces,Georgia,serif;color:var(--ink);font-size:23px;font-weight:600;line-height:1.2;margin:0 0 4px}
.evEditorModal .evSectionTitle p{margin:0;font-size:12px;color:var(--ink-2)}
.evEditorModal .evEditorForm .fLbl{font-size:12px;text-transform:none;letter-spacing:0;color:var(--ink);margin-bottom:6px}
.evEditorModal .evEditorForm input:not([type=checkbox]):not([type=file]),.evEditorModal .evEditorForm select,.evEditorModal .evEditorForm textarea{min-height:44px;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:9px;padding:10px 11px;font-size:14px;width:100%;min-width:0;box-sizing:border-box}
.evEditorModal .evEditorForm textarea{resize:vertical;line-height:1.5}
.evEditorModal .evEditorForm .hint{font-size:12px;line-height:1.5}
.evEditorModal .evEditorForm .fRow{gap:14px;margin:14px 0}
.evEditorModal .evEditorForm [hidden]{display:none!important}
.evEditorModal .evFamilyPrices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.evEditorModal .evFamilyPrices>p{grid-column:1/-1;margin:0}
.evFamilySummary{margin-top:6px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--bg);font-size:12px;line-height:1.5}
.evFamilySummary b{display:block;font-weight:650}
.evEditorModal .evEditorForm input[type=checkbox]{width:18px;height:18px;flex:none;accent-color:var(--terra)}
.evEditorModal .evEditorForm input:disabled,.evEditorModal .evEditorForm select:disabled{opacity:.65;cursor:not-allowed}
.evEditorModal .evSeatRow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 36px;align-items:end;gap:12px;margin-top:10px}
.evEditorModal .evSeatRow label{font-size:11px;color:var(--ink-2);margin:0}
.evEditorModal .evSeatRow input{margin-top:4px}
.evEditorModal .evSeatDel{height:44px;width:36px}
.evEditorModal #evAddSeat{min-height:40px;margin-top:12px}
.evEditorModal .evPhotoField{margin:16px 0}
.evEditorModal .evPhotoTools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.evEditorModal .evPhotoTools>input{flex:1 1 240px;min-width:0}
.evEditorModal .evPhotoTools .aBtn{position:relative;min-height:42px;display:flex;align-items:center;justify-content:center;padding:8px 12px;box-sizing:border-box;margin:0;color:var(--ink);background:var(--card);white-space:nowrap}
.evEditorModal .evUpBtn{overflow:hidden;cursor:pointer}
.evEditorModal .evUpBtn input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.evEditorModal .evUpBtn:focus-within{outline:2px solid var(--terra);outline-offset:2px}
.evEditorModal #evPhotoPrev{font-size:12px;color:var(--ink-2);line-height:1.5}
.evEditorModal #evPhotoPrev img{display:block;width:100%;max-width:320px;aspect-ratio:16/10;object-fit:cover;border-radius:11px;margin-top:12px}
.evEditorModal .evTableChoice{display:inline-flex;gap:7px;align-items:center;border:1px solid var(--line);border-radius:8px;padding:8px 10px;margin:0 7px 7px 0;font-size:12px}
.evEditorModal #evHoldAuto{min-height:40px;margin-top:10px}
.evEditorModal .evLockedNote{font-size:12px;border-left:3px solid var(--terra);padding:8px 12px;background:var(--bg);color:var(--ink)}
.evEditorModal .modalActs{position:sticky;bottom:-26px;z-index:1;background:var(--card);padding:16px 0 4px;border-top:1px solid var(--line)}
.evEditorModal .modalActs button{min-height:44px}
.evPreviewModal{max-width:580px}
.evPreviewModal .evPreviewPhoto{height:220px;border-radius:12px;background:var(--plum);color:#f7f0e2;display:flex;align-items:center;justify-content:center;overflow:hidden;font-family:Georgia,serif;font-size:27px;margin:0 0 18px}
.evPreviewModal .evPreviewPhoto img{width:100%;height:100%;object-fit:cover}
.evPreviewModal .evOwnerPreview h4{font-family:Fraunces,Georgia,serif;font-size:27px;color:var(--ink);line-height:1.2;margin:0 0 12px;overflow-wrap:anywhere}
.evPreviewModal .evPreviewDescription{white-space:pre-line;overflow-wrap:anywhere}
.evPreviewModal .evPreviewSlots{display:grid;gap:8px;padding:14px 0;border-block:1px solid var(--line);margin:14px 0}
.evPreviewModal .evPreviewSlots>div{display:flex;gap:14px;justify-content:space-between;font-size:13px}
.evPreviewModal .evOwnerPreview a{display:inline-flex;min-height:40px;align-items:center;text-decoration:none}
.evShareField{display:block;font-size:13px}
.evShareField input{display:block;width:100%;box-sizing:border-box;padding:12px;font-size:14px;margin-top:6px;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--ink)}
@media(max-width:1050px){
  #set-events .evOwnerRow{grid-template-columns:120px minmax(0,1fr);gap:16px}
  #set-events .evOwnerManage{grid-column:2;flex-direction:row;align-items:center;flex-wrap:wrap;gap:10px}
  #set-events .evOwnerManage button{margin:0 0 0 auto}
}
@media(max-width:600px){
  #set-events .evOwnerRow{grid-template-columns:80px minmax(0,1fr);gap:12px;padding:18px 0}
  #set-events .evOwnerPhoto{aspect-ratio:1;font-size:15px;border-radius:9px}
  #set-events .evOwnerPhoto span{padding:8px}
  #set-events .evOwnerTitle h5{font-size:20px}
  #set-events .evOwnerTitle{gap:5px}
  #set-events .evOwnerMain{display:contents}
  #set-events .evOwnerTitle,#set-events .evOwnerWhen{grid-column:2}
  #set-events .evOwnerPhoto{grid-row:1 / span 2}
  #set-events .evOwnerWhen{margin:0}
  #set-events .evOwnerDesc,#set-events .evOwnerFacts,#set-events .evOwnerBooked,#set-events .evOwnerActions,#set-events .evOwnerManage{grid-column:1 / -1}
  #set-events .evOwnerDesc,#set-events .evOwnerBooked,#set-events .evOwnerActions{margin:0}
  #set-events .evOwnerActions :is(button,a){min-height:44px}
  #set-events .evOwnerManage{padding-top:10px;border-top:1px dashed var(--line)}
  #set-events .evOwnerToolbar{align-items:stretch}
  #set-events .evSearch{flex-basis:100%}
  #set-events .evFilters{gap:5px}
  #set-events .evFilters .aBtn{min-height:40px;padding:6px 9px}
  .evEditorModal{padding:18px}
  .evEditorModal .evSeatRow{gap:8px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 32px}
  .evEditorModal .evSeatDel{width:32px}
  .evEditorModal .evSectionTitle h4{font-size:22px}
  .evEditorModal .modalActs{bottom:-18px;padding-bottom:2px}
  .evEditorModal .evPhotoTools>input{flex-basis:100%}
  .evPreviewModal .evPreviewPhoto{height:180px}
}
@media(prefers-color-scheme:dark){
  :root:not([data-theme=light]) .evEditorModal :is(input[type=date],input[type=time]){color-scheme:dark}
}
:root[data-theme=dark] .evEditorModal :is(input[type=date],input[type=time]){color-scheme:dark}
