#emergencyEditor{--ec-border:#d9e2eb;--ec-ink:#18283b;color:var(--ec-ink)}
.ec-intro{padding:18px;border:1px solid #bcd9d8;background:#eff9f7;border-radius:12px;margin-bottom:18px}.ec-intro p{margin:8px 0 0;line-height:1.6}
.ec-toolbar,.ec-row-tools,.ec-dialog-head{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between}.ec-toolbar label{flex:1;min-width:200px}
.ec-section{border:1px solid var(--ec-border);border-radius:12px;margin:14px 0;background:#fff;overflow:hidden}.ec-section summary{padding:17px;font-weight:700;cursor:pointer;background:#f7f9fc}.ec-section-body{padding:16px}.ec-section-state{display:flex;align-items:center;gap:12px;margin-bottom:16px}.ec-section-state select{max-width:240px}
.ec-entry{border:1px solid var(--ec-border);border-radius:10px;padding:16px;margin:12px 0}.ec-entry h4{margin:0;font-size:17px}.ec-row-tools{margin-bottom:16px}.ec-actions{display:flex;gap:6px;flex-wrap:wrap}.ec-actions button,.ec-phone-remove{border:1px solid var(--ec-border);border-radius:7px;background:#fff;padding:8px;min-height:40px;cursor:pointer;color:var(--ec-ink)}
.ec-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ec-field{min-width:0}.ec-field>label:first-child{font-weight:600;display:block;margin-bottom:6px}.ec-field input:not([type=checkbox]),.ec-field textarea,.ec-field select{width:100%;box-sizing:border-box}.ec-field textarea{min-height:90px}.ec-field-wide{grid-column:1/-1}.ec-visible{font-size:12px!important;font-weight:400!important;display:flex!important;align-items:center;gap:6px;margin:6px 0;color:#526174}.ec-visible input,.ec-review input{width:auto!important;min-height:0!important}.ec-photo{width:72px;height:72px;object-fit:cover;border-radius:50%;display:block;margin:8px 0}.ec-phone-row{display:flex;gap:7px;margin:8px 0;align-items:center}.ec-phone-row input:first-child{max-width:100px}.ec-undo{margin:10px 0}.ec-review{padding:16px 0}#ecErrors{padding:14px;background:#fff0ed;color:#972d22;border:1px solid #e9b6ad;border-radius:8px;margin:12px 0}#ecPreviewDialog{width:min(95vw,600px);max-height:94vh;border:0;border-radius:18px;padding:20px;box-shadow:0 20px 80px #18283b55}#ecPreviewDialog::backdrop{background:#14283b99}#ecPreviewFrame{width:100%;height:70vh;border:1px solid var(--ec-border);border-radius:12px}#emergencyEditor button:focus-visible,#emergencyEditor summary:focus-visible{outline:3px solid #167c73;outline-offset:3px}
#emergencyEditor [hidden]{display:none!important}
#emergencyEditor input.ec-photo-file{position:absolute;width:1px;height:1px;min-height:0;padding:0;margin:-1px;border:0;clip:rect(0,0,0,0);overflow:hidden}.ec-photo-button{min-height:44px;margin:0 0 10px}.ec-photo-button+small{display:block}
.ec-photo-chooser{display:flex;align-items:center;justify-content:center;width:88px;height:88px;padding:0;margin:8px 0 12px;border:2px dashed #94aaa8;border-radius:18px;overflow:hidden;background:#f0f6f5;cursor:pointer;flex-shrink:0}
.ec-photo-chooser:hover{border-color:#155f52;background:#e3f1ec}.ec-photo-chooser .ec-photo{width:100%;height:100%;margin:0;border-radius:0;object-fit:cover}.ec-photo-placeholder{display:flex;align-items:center;justify-content:center;font-size:38px;line-height:1;color:#456c64}.ec-photo-status{font-size:13px;color:#526174;margin:8px 0}.ec-field input[type=file]{min-height:44px;margin-bottom:8px;max-width:100%}
.ec-appearance{margin:18px 0;padding:16px;border:1px solid var(--ec-border);border-radius:12px;background:#fff}.ec-colour-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0}.ec-colour-controls label{font-size:13px}.ec-colour-controls input[type=color]{width:54px;height:44px;padding:4px;cursor:pointer}.ec-colour-controls input[type=text]{width:112px;min-height:44px}.ec-colour-presets{display:flex;flex-wrap:wrap;gap:8px}.ec-colour-preset{display:flex;align-items:center;gap:7px;border:1px solid #cbd8d8;background:#fff;color:#243d40;border-radius:20px;padding:8px 12px;min-height:44px;cursor:pointer}.ec-colour-preset:before{content:'';width:14px;height:14px;border-radius:50%;background:var(--swatch)}.ec-colour-preset[aria-pressed=true]{outline:2px solid #243d40;outline-offset:1px}
@media(max-width:600px){.ec-grid{grid-template-columns:1fr}.ec-row-tools{align-items:flex-start}.ec-section-body,.ec-entry{padding:12px}.ec-phone-row{flex-wrap:wrap}.ec-toolbar button{width:100%}}
