#event-dialog.event-wizard{width:min(1160px,calc(100vw - 48px));max-width:calc(100vw - 48px);max-height:calc(100dvh - 48px);padding:0;background:var(--surface);color:var(--text)}
.event-wizard #event-form{padding:0;width:100%;max-width:none;display:flex;flex-direction:column;max-height:calc(100dvh - 48px);min-width:0;overflow:auto}
.event-wizard .dialog-head{padding:20px 24px 10px;flex-wrap:wrap;gap:10px}
.event-wizard .dialog-head h2{font-size:1.5rem}
.event-wizard .dialog-head>small{color:var(--muted);font-size:.8rem}
.wizard-navigation{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:4px 24px 16px}
.wizard-navigation button{border:1px solid var(--line);border-radius:999px;padding:9px 10px;background:var(--surface-2);color:var(--muted);font-size:.82rem;min-width:0;white-space:normal;overflow-wrap:anywhere;min-height:44px}
.wizard-navigation button[aria-current="step"]{background:var(--brand-soft);border-color:var(--brand);color:var(--text);font-weight:700}
.wizard-navigation button.is-done{color:var(--text)}
.wizard-navigation button:disabled{opacity:.75}
.wizard-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);min-width:0;flex:1}
.event-wizard #event-fields{display:block;min-width:0;padding:20px 24px;align-self:start}
.wizard-step{min-width:0;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr))}
.wizard-step[hidden]{display:none}
.wizard-step-title{font-size:1rem;margin:0 0 4px;outline-offset:4px}
.wizard-step label,.wizard-step fieldset,.wizard-step input,.wizard-step select,.wizard-step textarea{min-width:0;max-width:100%}
.wizard-step .wide{grid-column:1/-1}
.wizard-step .flyer-analyzer{border:1.5px dashed var(--brand);background:var(--brand-soft);padding:14px;border-radius:16px}
.wizard-step .flyer-tools{min-width:0}
.wizard-step .flyer-tools>strong{display:block;margin-bottom:8px}
.wizard-preview-desktop{padding:22px;background:var(--surface-2);border-left:1px solid var(--line);min-width:0;overflow-wrap:anywhere}
.wizard-preview-desktop>strong{font-size:.86rem}
.wizard-preview-desktop>p{font-size:.82rem;color:var(--muted);line-height:1.5}
.wizard-footer{position:sticky;bottom:0;background:var(--surface);border-top:1px solid var(--line);padding:12px 24px;z-index:2;flex:none}
.wizard-footer-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.wizard-footer-actions>span{margin-left:auto;color:var(--muted);font-size:.82rem}
.wizard-footer button{min-height:44px;max-width:100%;white-space:normal}
.wizard-footer [hidden]{display:none}
.event-wizard [data-wizard-required]{grid-column:1/-1;color:var(--muted);font-size:.78rem;margin:0 0 8px;overflow-wrap:anywhere}
.wizard-preview-button{display:none}
@media(max-width:1024px){
 #event-dialog.event-wizard{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}
 .event-wizard #event-form{height:100dvh;max-height:100dvh}
 .event-wizard .dialog-head{padding:14px 16px 8px}
 .event-wizard .dialog-head h2{font-size:1.15rem}
 .event-wizard .dialog-head>small{display:none}
 .wizard-navigation{padding:0 16px 10px;gap:4px}
 .wizard-navigation button{border-radius:12px;padding:7px 4px;font-size:.75rem}
 .wizard-body{display:block}
 .event-wizard #event-fields{padding:14px 16px}
 .wizard-preview-desktop{display:none}
 .wizard-preview-button{display:inline-flex}
 .wizard-footer{padding:10px 16px calc(10px + env(safe-area-inset-bottom))}
 .wizard-footer-actions{gap:6px}
 .wizard-footer-actions>span{display:none}
 .wizard-footer-actions button{flex:1;font-size:.8rem;padding:9px 10px}
 .wizard-step{gap:10px}
}
@media(max-width:380px){.wizard-step{grid-template-columns:minmax(0,1fr)}.wizard-footer-actions button{flex-basis:40%}.wizard-step .age-range{grid-template-columns:repeat(2,minmax(0,1fr))}}
.family-event-card{margin-top:14px;border:1px solid var(--line);border-radius:18px;background:var(--surface);overflow:hidden;min-width:0}
.family-event-image{aspect-ratio:16/10;position:relative;display:grid;place-items:center;background:var(--brand-soft);color:var(--text);font-size:2rem}
.family-event-image img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.family-event-image .season-pill{position:absolute;top:12px;left:12px;font-size:.76rem}
.family-event-copy{padding:16px}
.family-event-copy h3{margin:0 0 8px;font-size:1.14rem;overflow-wrap:anywhere}
.family-event-copy p{font-size:.84rem;line-height:1.5;color:var(--muted);margin:6px 0;overflow-wrap:anywhere}
.family-event-features{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.wizard-phone-preview{width:min(540px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);background:var(--surface);color:var(--text);padding:0}
.wizard-phone-preview .dialog-card{max-width:100%;min-width:0;padding:20px;overflow:auto;max-height:calc(100dvh - 32px)}
.wizard-phone-preview .dialog-head h2{font-size:1.15rem}
.wizard-phone-preview p{color:var(--muted);line-height:1.5;font-size:.84rem}
.family-event-features .status,.event-wizard [data-recurrence-editor] button.active,.event-wizard .notice:not(.error){color:var(--text)}
@media(max-width:520px){.wizard-phone-preview{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.wizard-phone-preview .dialog-card{height:100dvh;max-height:100dvh;padding-bottom:calc(20px + env(safe-area-inset-bottom))}.wizard-step .flyer-analyzer{grid-template-columns:minmax(0,1fr)}.wizard-step .flyer-tools{grid-template-columns:minmax(0,1fr)}.wizard-step .flyer-preview{display:none}}
/* Header, compact phone preview and navigation share the form flow. */
.event-wizard .dialog-head{flex-wrap:nowrap;align-items:center;justify-content:flex-start;margin-bottom:8px}
.event-wizard .dialog-head>div{margin-right:auto;min-width:0}
.event-wizard .dialog-head [data-dismiss-event]{order:4;flex:none}
.event-wizard [data-wizard-phone-progress]{display:none}
.wizard-navigation{display:flex}
.wizard-navigation button{flex:1 1 auto;white-space:nowrap;overflow-wrap:normal}
.wizard-preview-strip{display:none}
.wizard-draft{grid-column:1/-1;min-height:44px;white-space:nowrap;margin-top:12px}
.event-wizard #global-notice{position:static;width:auto;flex:none;margin:8px 24px;background:var(--surface-2);color:var(--text)}
@media(min-width:1025px){.wizard-body{position:relative}.wizard-draft{width:max-content}.wizard-footer-actions{justify-content:flex-end}}
@media(max-width:1024px){
 .event-wizard .dialog-head{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:4px}
 .event-wizard .dialog-head [data-dismiss-event]{order:0;grid-column:1;grid-row:1}
 .event-wizard .dialog-head>div{grid-column:2;grid-row:1;min-width:0;margin:0}
 .event-wizard .dialog-head h2{grid-column:2;grid-row:1;text-align:center;margin:0;font-size:1rem}
 .event-wizard .dialog-head h2 .eyebrow,.event-wizard .dialog-head .eyebrow{display:none}
 .event-wizard [data-wizard-phone-progress]{display:block;grid-column:3;grid-row:1;font-size:.75rem;white-space:nowrap}
 .wizard-navigation{padding:0 8px 10px;gap:3px}
 .wizard-navigation button{padding:7px 3px;font-size:.7rem;flex:1 1 auto}
 .wizard-preview-strip{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--surface-2);border-block:1px solid var(--line)}
 [data-wizard-strip-card]{display:flex;align-items:center;gap:8px;min-width:0;flex:1}
 [data-wizard-strip-card]>img,[data-wizard-strip-card]>span{width:40px;height:40px;object-fit:cover;border-radius:8px;flex:none;background:var(--brand-soft)}
 [data-wizard-strip-card]>div{min-width:0}
 [data-wizard-strip-card] strong,[data-wizard-strip-card] small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.75rem}
 [data-wizard-strip-card] small{color:var(--muted);font-size:.65rem}
 .wizard-preview-strip button{padding:8px 4px;min-height:44px;font-size:.75rem;flex:none}
 .wizard-draft{width:100%;font-size:.8rem}
 .wizard-footer-actions{flex-wrap:nowrap;justify-content:space-between}
 .wizard-footer-actions [data-wizard-next],.wizard-footer-actions [data-wizard-save]{flex:none;min-width:150px;white-space:nowrap;margin-left:auto}
 .wizard-footer-actions [data-wizard-back]{flex:none;white-space:nowrap}
 .event-wizard #global-notice{margin:8px 16px}
}

.wizard-preview-strip button{border:0;background:transparent;color:var(--muted);text-decoration:underline}
