/* Energy Corridors — Invitations. Scoped to .ec-app and .ec-public. */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

.ec-app{
  --base:#0E1A1F;--surface:#15262C;--surface-2:#1C333A;--line:#2A464E;--ink:#EDE6DB;
  --muted:#86A0A6;--coral:#E08C82;--signal:#F4C04E;--cyan:#5BC0CC;--ok:#6FCF97;--warn:#E06A5A;--btn:#E08C82;
  background:var(--base);color:var(--ink);font-family:'IBM Plex Sans',sans-serif;
  border-radius:16px;padding:28px;max-width:880px;margin:0 auto;line-height:1.5;
}
.ec-app *{box-sizing:border-box}
.ec-loading{color:var(--muted);font-family:'IBM Plex Mono',monospace;font-size:13px;padding:20px}
.ec-eyebrow{font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:.2em;color:var(--cyan);text-transform:uppercase;margin-bottom:8px}
.ec-app h1{font-family:'Archivo',sans-serif;font-weight:800;font-size:30px;letter-spacing:-.02em;margin:0 0 8px;color:var(--ink)}
.ec-app h2{font-family:'Archivo',sans-serif;font-weight:700;font-size:25px;letter-spacing:-.02em;margin:0 0 6px;color:var(--ink)}
.ec-app h3{font-family:'Archivo',sans-serif;font-weight:500;font-size:16px;margin:0 0 4px;color:var(--ink)}
.ec-lede{color:var(--muted);font-size:14px;margin-bottom:22px;max-width:60ch}
.ec-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:22px;margin-bottom:16px}
.ec-app label{display:block;font-size:13px;font-weight:500;margin-bottom:6px;color:var(--ink)}
.ec-field{margin-bottom:14px}
.ec-app input,.ec-app select{width:100%;background:var(--base);border:1px solid var(--line);border-radius:7px;color:var(--ink);font-family:inherit;font-size:15px;padding:11px 13px}
.ec-app input:focus,.ec-app select:focus{outline:none;border-color:var(--btn);box-shadow:0 0 0 3px rgba(224,140,130,.18)}
.ec-app input::placeholder{color:#56727a}
.ec-row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:560px){.ec-row2{grid-template-columns:1fr}}
.ec-check{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:500;color:var(--ink);margin:2px 0 16px;cursor:pointer;user-select:none}
.ec-check input{width:18px;height:18px;flex:0 0 auto;accent-color:var(--cyan);cursor:pointer}
.ec-lunchtag{display:inline-block;font-family:'IBM Plex Mono',monospace;font-size:10px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--signal);background:rgba(244,192,78,.15);border-radius:20px;padding:2px 8px;margin-left:6px;vertical-align:middle}

.ec-btn{font-family:'Archivo',sans-serif;font-weight:700;font-size:14px;background:var(--btn);color:#2a0f0b;border:none;border-radius:7px;padding:12px 20px;cursor:pointer;transition:.15s}
.ec-btn:hover{background:#e9a299}
.ec-btn.ghost{background:transparent;border:1px solid var(--line);color:var(--ink)}
.ec-btn.ghost:hover{border-color:var(--btn)}
.ec-btn.cyan{background:var(--cyan);color:#062126}
.ec-btn.sm{padding:8px 14px;font-size:12px}

.ec-quota{display:flex;align-items:center;gap:12px;margin-bottom:18px;font-family:'IBM Plex Mono',monospace;font-size:12px;color:var(--muted)}
.ec-quota .bar{flex:1;height:6px;background:var(--base);border-radius:4px;overflow:hidden;border:1px solid var(--line)}
.ec-quota .fill{height:100%;background:var(--btn);transition:.4s}

.ec-result{margin-top:18px;padding:18px;border:1px dashed var(--btn);border-radius:9px;background:rgba(224,140,130,.08)}
.ec-result .r{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.ec-linkbox{flex:1;min-width:200px;font-family:'IBM Plex Mono',monospace;font-size:12px;background:var(--base);border:1px solid var(--line);border-radius:6px;padding:10px 12px;color:var(--cyan);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ec-sendopts{display:flex;gap:8px;margin:14px 0 6px;flex-wrap:wrap}
.ec-sendopts button{font-family:'IBM Plex Mono',monospace;font-size:12px;color:var(--muted);background:var(--base);border:1px solid var(--line);border-radius:6px;padding:8px 12px;cursor:pointer}
.ec-sendopts button.on{border-color:var(--cyan);color:var(--cyan)}
.ec-hint{font-size:12px;color:var(--muted);margin-top:10px;line-height:1.5}

.ec-viewas{display:flex;align-items:center;gap:10px;margin-bottom:18px;background:rgba(91,192,204,.08);border:1px solid var(--cyan);border-radius:9px;padding:10px 14px;font-size:13px;flex-wrap:wrap}
.ec-viewas>span{color:var(--muted)}
.ec-viewas select{width:auto;min-width:180px;padding:8px 10px;background:var(--surface)}
.ec-viewas .tag{font-family:'IBM Plex Mono',monospace;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--cyan);border:1px solid var(--cyan);border-radius:20px;padding:2px 10px;margin-left:auto}

.ec-mi-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.ec-mi-row:last-child{border-bottom:none}
.ec-mi-info{flex:1;min-width:0}
.ec-mi-name{font-size:14px;font-weight:500}
.ec-mi-link{font-family:'IBM Plex Mono',monospace;font-size:11px;color:var(--cyan);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}
.ec-chk2{font-family:'IBM Plex Mono',monospace;font-size:11px;font-weight:600;padding:6px 11px;border-radius:6px;border:1px solid var(--line);color:var(--muted);background:transparent;cursor:pointer}
.ec-chk2:hover{border-color:var(--cyan);color:var(--cyan)}
.ec-chk2.send{border-color:var(--btn);color:var(--btn)}

.ec-tabs{display:flex;gap:4px;background:var(--surface);padding:4px;border-radius:8px;border:1px solid var(--line);margin-bottom:20px;flex-wrap:wrap}
.ec-tabs button{font-family:'IBM Plex Mono',monospace;font-size:12px;color:var(--muted);background:transparent;border:none;padding:8px 14px;border-radius:5px;cursor:pointer}
.ec-tabs button.on{background:var(--btn);color:#2a0f0b;font-weight:600}

.ec-stats{display:flex;gap:12px;margin-bottom:20px;flex-wrap:wrap}
.ec-stat{flex:1;min-width:130px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:16px 18px}
.ec-stat .n{font-family:'Archivo',sans-serif;font-weight:800;font-size:26px}
.ec-stat .l{font-family:'IBM Plex Mono',monospace;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-top:4px}

.ec-tbl{width:100%;border-collapse:collapse;font-size:13px}
.ec-tbl th{text-align:left;font-family:'IBM Plex Mono',monospace;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);padding:10px 12px;border-bottom:1px solid var(--line)}
.ec-tbl td{padding:11px 12px;border-bottom:1px solid var(--line)}
.ec-tbl tr:last-child td{border-bottom:none}
.ec-tblwrap{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:auto}
.ec-num{width:72px;text-align:center;padding:7px}
.ec-pill{font-family:'IBM Plex Mono',monospace;font-size:10px;font-weight:600;padding:3px 8px;border-radius:20px;white-space:nowrap}
.ec-pill.link{background:rgba(91,192,204,.15);color:var(--cyan)}
.ec-pill.email{background:rgba(224,135,90,.15);color:#E0875A}
.ec-pill.sms{background:rgba(244,192,78,.15);color:var(--signal)}
.ec-pill.manual{background:rgba(134,160,166,.15);color:var(--muted)}
.ec-pill.used{background:rgba(111,207,151,.15);color:var(--ok)}
.ec-pill.issued{background:rgba(134,160,166,.12);color:var(--muted)}

.ec-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.ec-live{display:inline-flex;align-items:center;gap:7px;font-family:'IBM Plex Mono',monospace;font-size:11px;color:var(--ok)}
.ec-dot{width:8px;height:8px;border-radius:50%;background:var(--ok);animation:ecp 1.8s infinite}
@keyframes ecp{0%{box-shadow:0 0 0 0 rgba(111,207,151,.5)}70%{box-shadow:0 0 0 7px rgba(111,207,151,0)}100%{box-shadow:0 0 0 0 rgba(111,207,151,0)}}

/* scanner */
.ec-lens{max-width:420px;margin:0 auto;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#000}
#ec-reader{width:100%}
.ec-verdict{max-width:420px;margin:16px auto 0;border-radius:11px;padding:20px;text-align:center;display:none}
.ec-verdict.show{display:block}
.ec-verdict.ok{background:rgba(111,207,151,.12);border:1px solid var(--ok)}
.ec-verdict.bad{background:rgba(224,106,90,.12);border:1px solid var(--warn)}
.ec-verdict .s{font-family:'Archivo',sans-serif;font-weight:800;font-size:22px}
.ec-verdict.ok .s{color:var(--ok)}.ec-verdict.bad .s{color:var(--warn)}
.ec-verdict .w{font-size:15px;margin-top:6px}
.ec-verdict .m{font-family:'IBM Plex Mono',monospace;font-size:11px;color:var(--muted);margin-top:6px}
.ec-glist{margin-top:12px;display:flex;flex-direction:column;gap:8px}
.ec-grow{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--base);border:1px solid var(--line);border-radius:8px;padding:11px 14px;font-size:14px}
.ec-grow .h{font-family:'IBM Plex Mono',monospace;font-size:11px;color:var(--muted)}

.ec-note{font-size:12px;color:var(--muted);line-height:1.6;border-left:2px solid var(--btn);padding-left:14px;margin-top:24px}
.ec-app code{font-family:'IBM Plex Mono',monospace;background:var(--base);border:1px solid var(--line);border-radius:4px;padding:1px 6px;font-size:12px;color:var(--cyan)}
.ec-err{color:var(--warn);font-size:13px;margin-top:8px}

.ec-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);background:#1C333A;border:1px solid var(--ok);color:#EDE6DB;font-size:14px;padding:13px 20px;border-radius:9px;box-shadow:0 12px 30px rgba(0,0,0,.5);opacity:0;pointer-events:none;transition:.3s;z-index:9999}
.ec-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* ---------- public ticket ---------- */
.ec-public{margin:0;background:#0E1A1F;min-height:100vh;font-family:'IBM Plex Sans',sans-serif;display:flex;align-items:center;justify-content:center;padding:24px}
.ec-ticket-wrap{width:100%;max-width:420px}
.ec-ticket{background:linear-gradient(160deg,#1C333A,#15262C);border:1px solid #2A464E;border-radius:14px;overflow:hidden;box-shadow:0 20px 50px rgba(0,0,0,.45)}
.ec-ticket-top{padding:26px;position:relative;text-align:center}
.ec-current{position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,transparent,#F4C04E,transparent)}
.ec-logo{height:42px;width:auto;margin-bottom:14px}
.ec-ev{font-family:'Archivo',sans-serif;font-weight:800;font-size:22px;color:#EDE6DB}
.ec-when{font-family:'IBM Plex Mono',monospace;font-size:12px;color:#86A0A6;margin-top:8px}
.ec-where{font-size:13px;color:#EDE6DB;margin-top:3px}
.ec-ticket-guest{padding:18px 26px;border-top:1px solid #2A464E;border-bottom:1px solid #2A464E;background:rgba(0,0,0,.15)}
.ec-k{font-family:'IBM Plex Mono',monospace;font-size:10px;letter-spacing:.18em;color:#86A0A6;text-transform:uppercase}
.ec-v{font-size:19px;font-weight:600;color:#EDE6DB;margin-top:3px}
.ec-host{font-size:13px;color:#E08C82;margin-top:2px}
.ec-lunch-badge{display:inline-block;margin-top:10px;font-family:'IBM Plex Mono',monospace;font-size:11px;font-weight:700;letter-spacing:.08em;line-height:1.4;text-align:center;color:#F4C04E;background:rgba(244,192,78,.13);border:1px solid rgba(244,192,78,.4);border-radius:14px;padding:4px 12px;max-width:100%;box-sizing:border-box}
.ec-ticket-qr{padding:26px;text-align:center}
#ec-qrcode{display:inline-block;padding:12px;background:#fff;border-radius:9px}
#ec-qrcode img,#ec-qrcode canvas{display:block}
.ec-tok{font-family:'IBM Plex Mono',monospace;font-size:11px;color:#86A0A6;margin:14px 0 18px;letter-spacing:.1em}
.ec-public .ec-btn{background:#E08C82;color:#2a0f0b;border:none;border-radius:7px;padding:11px 22px;font-family:'Archivo',sans-serif;font-weight:700;cursor:pointer}
.ec-foot{text-align:center;margin-top:16px}
.ec-muted{color:#86A0A6;font-size:12px}

/* Sponsor file upload links (MEGA) */
.ec-uplinks{display:flex;flex-wrap:wrap;gap:10px}
.ec-uplink{text-decoration:none;display:inline-block}


/* ---- Unified dark input fields (theme-proof) --------------------------------
   Every text input, dropdown, number box and textarea across all widgets uses
   the SAME dark field: dark background, light text, one font, one size. This
   stops fields inheriting a bigger or differently-coloured font from the site
   theme. Scoped to the widget roots + !important so it always wins. Checkboxes
   are excluded so their tick still renders. */
#ec-portal-root   input:not([type=checkbox]), #ec-portal-root   select, #ec-portal-root   textarea,
#ec-admin-root    input:not([type=checkbox]), #ec-admin-root    select, #ec-admin-root    textarea,
#ec-door-root     input:not([type=checkbox]), #ec-door-root     select, #ec-door-root     textarea,
#ec-register-root input:not([type=checkbox]), #ec-register-root select, #ec-register-root textarea,
#ec-cert-root     input:not([type=checkbox]), #ec-cert-root     select, #ec-cert-root     textarea{
  background:#0E1A1F !important;
  color:#EDE6DB !important;
  border:1px solid #2A464E !important;
  -webkit-text-fill-color:#EDE6DB !important;
  font-family:'IBM Plex Sans',sans-serif !important;
  font-size:15px !important;
  font-weight:400 !important;
  line-height:1.4 !important;
  border-radius:7px !important;
  opacity:1 !important;
}
#ec-portal-root input::placeholder, #ec-admin-root input::placeholder, #ec-door-root input::placeholder, #ec-register-root input::placeholder, #ec-cert-root input::placeholder,
#ec-portal-root textarea::placeholder, #ec-admin-root textarea::placeholder, #ec-register-root textarea::placeholder, #ec-cert-root textarea::placeholder{
  color:#6E8990 !important; opacity:1 !important;
}
#ec-portal-root input:not([type=checkbox]):focus, #ec-admin-root input:not([type=checkbox]):focus, #ec-door-root input:not([type=checkbox]):focus, #ec-register-root input:not([type=checkbox]):focus, #ec-cert-root input:not([type=checkbox]):focus,
#ec-portal-root select:focus, #ec-admin-root select:focus, #ec-door-root select:focus, #ec-register-root select:focus, #ec-cert-root select:focus,
#ec-portal-root textarea:focus, #ec-admin-root textarea:focus, #ec-register-root textarea:focus, #ec-cert-root textarea:focus{
  border-color:#5BC0CC !important;
  box-shadow:0 0 0 3px rgba(91,192,204,.22) !important;
  outline:none !important;
}
#ec-portal-root input:-webkit-autofill, #ec-admin-root input:-webkit-autofill, #ec-door-root input:-webkit-autofill, #ec-register-root input:-webkit-autofill, #ec-cert-root input:-webkit-autofill{
  -webkit-text-fill-color:#EDE6DB !important;
  -webkit-box-shadow:0 0 0 1000px #0E1A1F inset !important;
  caret-color:#EDE6DB !important;
}
#ec-portal-root select option, #ec-admin-root select option, #ec-door-root select option, #ec-register-root select option, #ec-cert-root select option{
  background:#15262C; color:#EDE6DB;
}

/* ---- Native controls the site theme leaves white/grey -----------------------
   These aren't plain inputs, so the field rule above doesn't reach them:
   the file-picker button, the QR scanner's own injected UI, and select option
   lists. We give them the same dark + brand colours so nothing stays white. */

/* File picker button (lead import) → branded coral instead of white/grey */
.ec-app input[type=file]{ color:var(--ink) !important; font-family:'IBM Plex Sans',sans-serif !important; font-size:14px !important; }
.ec-app input[type=file]::file-selector-button{
  background:var(--btn) !important; color:#2a0f0b !important; border:none !important;
  border-radius:6px !important; padding:9px 15px !important; margin-right:12px !important;
  font-family:'IBM Plex Sans',sans-serif !important; font-weight:700 !important; font-size:13px !important; cursor:pointer !important;
}
.ec-app input[type=file]::-webkit-file-upload-button{
  background:var(--btn) !important; color:#2a0f0b !important; border:none !important;
  border-radius:6px !important; padding:9px 15px !important; margin-right:12px !important;
  font-family:'IBM Plex Sans',sans-serif !important; font-weight:700 !important; font-size:13px !important; cursor:pointer !important;
}

/* Door scanner: html5-qrcode injects its own white boxes/grey text — darken them */
#ec-reader, #ec-reader *{ color:var(--ink) !important; font-family:'IBM Plex Sans',sans-serif !important; }
#ec-reader button, #ec-reader select{
  background:var(--surface) !important; color:var(--ink) !important;
  border:1px solid var(--line) !important; border-radius:7px !important;
  padding:8px 12px !important; font-size:13px !important; font-family:'IBM Plex Sans',sans-serif !important;
}
#ec-reader a{ color:var(--cyan) !important; }
#ec-reader img{ filter:brightness(0) invert(1); opacity:.75; }

/* Select dropdown option lists → dark, on every widget */
#ec-portal-root select option, #ec-admin-root select option, #ec-door-root select option,
#ec-register-root select option, #ec-cert-root select option{
  background:#15262C !important; color:#EDE6DB !important;
}

/* Safety net: any light-grey text the theme paints onto a pale control becomes
   the salmon accent so it stays readable (your requested fallback). */
#ec-reader .ec-grey, .ec-app ::file-selector-button{ color:#2a0f0b; }

/* ---- Tables: the Salient theme paints table cells white -----------------------
   The plugin tables set no cell background, so the theme's white/striped table
   styling shows through. Force every table cell onto the dark surface. The
   background uses !important to beat the theme; the text colour is root-scoped
   (no !important) so the coloured status cells (Arrived / Remaining, set via
   inline styles) still show through. */
.ec-app .ec-tblwrap{ background:var(--surface) !important; }
.ec-app table.ec-tbl,
.ec-app .ec-tbl thead,
.ec-app .ec-tbl tbody,
.ec-app .ec-tbl tr,
.ec-app .ec-tbl th,
.ec-app .ec-tbl td{
  background:transparent !important;
  background-color:transparent !important;
  box-shadow:none !important;
}
#ec-portal-root .ec-tbl td, #ec-admin-root .ec-tbl td, #ec-door-root .ec-tbl td,
#ec-register-root .ec-tbl td, #ec-cert-root .ec-tbl td{ color:var(--ink); border-bottom-color:var(--line) !important; }
#ec-portal-root .ec-tbl th, #ec-admin-root .ec-tbl th, #ec-door-root .ec-tbl th,
#ec-register-root .ec-tbl th, #ec-cert-root .ec-tbl th{ color:var(--muted); border-bottom-color:var(--line) !important; }

/* Guest invitation rows + any stray table the theme styles inside our widgets */
.ec-app .ec-mi-row{ background:transparent !important; }
.ec-app .ec-mi-name{ color:var(--ink) !important; }

/* Invitation action buttons (confirm attendance + add to calendar) */
.ec-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:16px auto 0;max-width:420px}
.ec-actions .ec-btn{flex:1 1 auto;text-align:center;text-decoration:none}
.ec-confirmed{flex:1 1 100%;background:rgba(111,207,151,.15);color:var(--ok);border:1px solid rgba(111,207,151,.4);border-radius:9px;padding:11px 16px;font-weight:600;font-family:'IBM Plex Sans',sans-serif;text-align:center}

/* ---- Invitation page: Energy Corridors theme -------------------------------
   One look for every ticket (sponsor, partner, registration), in the Energy
   Corridors palette. Only the accent line and the INVITATION / REGISTRATION
   label differ a little, so staff can tell them apart at a glance. */
body.ec-invite-blue, body.ec-invite-red, body.ec-invite-regblue{ background:#0E1A1F; }
.ec-public .ec-ticket{ background:linear-gradient(160deg,#1C333A,#15262C); border-color:#2A464E; box-shadow:0 20px 50px rgba(0,0,0,.45); }
.ec-public .ec-current{ background:linear-gradient(90deg,transparent,#F4C04E,transparent); }
.ec-public .ec-ticket-guest{ border-top-color:#2A464E; border-bottom-color:#2A464E; }
.ec-public .ec-invite-title{ font-family:'Archivo',sans-serif; font-weight:800; font-size:19px; letter-spacing:.28em; color:#E08C82; text-align:center; margin-bottom:14px; }
.ec-invite-red .ec-current{ background:linear-gradient(90deg,transparent,#5BC0CC,transparent); }
.ec-invite-red .ec-invite-title{ color:#5BC0CC; }
.ec-invite-regblue .ec-invite-title{ color:#F4C04E; }
/* Primary buttons (Print, RSVP) = coral */
.ec-public .ec-btn{ background:#E08C82; color:#2a0f0b; }
.ec-public .ec-btn:hover{ background:#e9a299; }
/* RSVP on its own full-width line, calendar buttons below */
.ec-public .ec-actions{ flex-direction:column; align-items:stretch; }
.ec-public .ec-attend{ width:100%; display:block; }
.ec-public .ec-cal-row{ display:flex; gap:8px; }
.ec-public a.ec-cal{ flex:1; display:flex; align-items:center; justify-content:center; gap:8px; background:#1C333A; color:#EDE6DB; border:1px solid #2A464E; text-decoration:none; text-align:center; }
.ec-public a.ec-cal:hover{ border-color:#E08C82; background:#1C333A; }
.ec-public a.ec-cal svg{ flex:none; }

/* Guest RSVP card on the public invitation page */
.ec-rsvp{ background:#15262C; border:1px solid #2A464E; border-radius:12px; padding:18px 20px; text-align:center; }
.ec-rsvp-q{ font-family:'Archivo',sans-serif; font-weight:700; font-size:16px; color:#EDE6DB; margin-bottom:12px; }
.ec-rsvp-actions{ display:flex; flex-direction:column; gap:8px; }
.ec-public .ec-rsvp .ec-btn.ghost{ background:transparent; border:1px solid #2A464E; color:#EDE6DB; }
.ec-public .ec-rsvp .ec-btn.on{ outline:2px solid #F4C04E; outline-offset:2px; }
.ec-public .ec-rsvp .ec-btn:disabled{ opacity:.55; cursor:default; }
.ec-rsvp-state{ min-height:18px; margin-top:12px; font-size:13px; color:#86A0A6; }
.ec-rsvp-state.ok{ color:#6FCF97; }
.ec-rsvp-state.err{ color:#E06A5A; }

/* ---- Dropdowns: force dark to match the text fields, beating the Salient theme
   (uses html body + #id for maximum specificity so the theme can't win). ------- */
html body #ec-portal-root select, html body #ec-admin-root select, html body #ec-door-root select,
html body #ec-register-root select, html body #ec-cert-root select{
  -webkit-appearance:none !important; -moz-appearance:none !important; appearance:none !important;
  background-color:#0E1A1F !important;
  color:#EDE6DB !important; -webkit-text-fill-color:#EDE6DB !important;
  border:1px solid #2A464E !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%236E8990' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") !important;
  background-repeat:no-repeat !important;
  background-position:right 14px center !important;
  background-size:12px 8px !important;
  padding:11px 38px 11px 13px !important;
  font-family:'IBM Plex Sans',sans-serif !important; font-size:15px !important; font-weight:400 !important;
  line-height:1.4 !important; border-radius:7px !important; height:auto !important;
  box-shadow:none !important; cursor:pointer !important; opacity:1 !important;
}
html body #ec-portal-root select option, html body #ec-admin-root select option, html body #ec-door-root select option,
html body #ec-register-root select option, html body #ec-cert-root select option{ background:#15262C !important; color:#EDE6DB !important; }

/* ---- Registration form: coral button ---- */
#ec-register-root .ec-btn{ background:#E08C82 !important; color:#2a0f0b !important; }
#ec-register-root .ec-btn:hover{ background:#e9a299 !important; }

/* ---- Custom dropdown (replaces <select> on WPBakery/Salient pages, where the
   theme hijacks native selects and repaints them white no matter what CSS we
   apply). Built from plain divs so the theme has nothing to grab onto. -------- */
.ec-dd{ position:relative; }
.ec-dd-btn{
  width:100%; text-align:left; display:flex; align-items:center; justify-content:space-between;
  background:#0E1A1F; color:#EDE6DB; border:1px solid #2A464E; border-radius:7px;
  padding:11px 13px; font-family:'IBM Plex Sans',sans-serif; font-size:15px; font-weight:400;
  cursor:pointer; line-height:1.4;
}
.ec-dd-btn:hover{ border-color:#3a5a63; }
.ec-dd-arrow{ width:10px; height:10px; margin-left:10px; flex:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%236E8990' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat center/contain; }
.ec-dd-list{
  position:absolute; z-index:40; top:calc(100% + 6px); left:0; right:0;
  background:#15262C; border:1px solid #2A464E; border-radius:8px;
  max-height:230px; overflow-y:auto; box-shadow:0 12px 28px rgba(0,0,0,.45);
}
.ec-dd-opt{ padding:10px 13px; color:#EDE6DB; font-family:'IBM Plex Sans',sans-serif; font-size:14px; cursor:pointer; }
.ec-dd-opt:hover{ background:#1C333A; }

/* ---- Language toggle on the registration form ---- */
.ec-langtoggle{ display:flex; justify-content:flex-end; margin-bottom:4px; }
.ec-lang-btn{
  background:transparent; border:1px solid var(--line); color:var(--cyan);
  font-family:'IBM Plex Sans',sans-serif; font-size:12px; font-weight:600;
  padding:6px 12px; border-radius:20px; cursor:pointer;
}
.ec-lang-btn:hover{ background:rgba(91,192,204,.1); }

/* ---- Organizer panel: wider working area (tables/lists need the room; the
   shared .ec-app rule caps everything at 880px, which was too tight here). */
#ec-admin-root.ec-app{ max-width:1280px; }

/* ---- Toggle/selection state for small pill buttons ---- */
.ec-chk2.on{ border-color:var(--cyan); color:var(--cyan); background:rgba(91,192,204,.12); }

/* ---- Sponsor portal: event photo booth (gallery + multi-select) ------------ */
.ec-pb-bar{ display:flex; align-items:center; gap:10px; margin:10px 0 14px; flex-wrap:wrap; }
.ec-pb-count{ color:var(--muted); font-family:'IBM Plex Sans',sans-serif; font-size:12px; flex:1; }
.ec-pb-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:10px; }
.ec-pb-thumb{ position:relative; aspect-ratio:1/1; border-radius:8px; overflow:hidden; cursor:pointer; border:2px solid transparent; background:var(--surface); }
.ec-pb-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.ec-pb-thumb .ec-pb-check{ position:absolute; top:6px; right:6px; width:22px; height:22px; border-radius:50%; background:rgba(14,26,31,.75); border:1px solid var(--line); color:transparent; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; transition:.12s; }
.ec-pb-thumb.on{ border-color:var(--btn); }
.ec-pb-thumb.on .ec-pb-check{ background:var(--btn); color:#2a0f0b; border-color:var(--btn); }

/* Download-count badge on a photo booth thumbnail */
.ec-pb-dlbadge{ position:absolute; left:6px; bottom:6px; background:rgba(14,26,31,.8); border:1px solid var(--line); color:var(--ink); font-family:'IBM Plex Sans',sans-serif; font-size:11px; font-weight:600; padding:2px 7px; border-radius:10px; }

/* ---- Portal directory widget ([ec_portal_directory]) ---------------------- */
.ec-portal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:8px}
a.ec-portal-card{text-align:center;padding:18px 14px;text-decoration:none;display:block;color:inherit;transition:.15s}
a.ec-portal-card:hover{border-color:var(--btn)}
div.ec-portal-card{text-align:center;padding:18px 14px} /* the non-clickable setup-hint card, matched to its link siblings */
.ec-portal-icon{margin-bottom:10px}
.ec-portal-name{font-weight:600;font-size:14px;color:var(--ink)}
.ec-portal-desc{font-size:11px;color:var(--muted);margin:2px 0 12px}
.ec-portal-open{display:inline-block;width:100%;background:var(--btn);color:#2a0f0b;font-weight:700;font-size:13px;padding:9px 0;border-radius:7px}
.ec-portal-staff{opacity:.6}
.ec-portal-staff .ec-portal-open{background:transparent;border:1px solid var(--line);color:var(--ink);font-weight:600}

/* Agenda Timeline — a program, not a dashboard: a single quiet rail running
   through the day, with each stop's clock time set in a precise mono face
   and each name set in a warmer serif, so a room full of people can scan it
   at a glance. Every element a drag or a save needs (.sr-drag-handle,
   [data-blockkey]) is exactly where the JS already expects it — this is a
   skin, not a rebuild. */
.sr-tl{position:relative}
.sr-tl::before{content:'';position:absolute;left:118px;top:8px;bottom:8px;width:1px;background:var(--line)}
.sr-tl-row{position:relative;display:grid;grid-template-columns:20px 76px 16px 1fr;column-gap:12px;padding:20px 4px;border-bottom:1px solid var(--line)}
.sr-tl-public.sr-tl::before{left:98px}
.sr-tl-public .sr-tl-row{grid-template-columns:76px 16px 1fr}
.sr-tl-row:last-child{border-bottom:none}
.sr-tl-row:hover{background:rgba(91,192,204,.035)}
.sr-tl-handle{cursor:grab;color:var(--muted);user-select:none;padding-top:3px;opacity:.35;transition:opacity .15s ease;font-size:14px}
.sr-tl-row:hover .sr-tl-handle{opacity:1}
.sr-tl-time{white-space:nowrap;font-family:'IBM Plex Sans',sans-serif;font-weight:600;font-size:14px;letter-spacing:.01em;color:var(--cyan);text-align:right;padding-top:3px;font-variant-numeric:tabular-nums}
.sr-tl-marker{display:flex;justify-content:center;padding-top:8px}
.sr-tl-dot{width:7px;height:7px;border-radius:50%;background:var(--cyan);box-shadow:0 0 0 4px var(--base)}
.sr-tl-dot-group{background:var(--signal)}
.sr-tl-content{min-width:0}
.sr-tl-kicker{font-size:10.5px;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);margin-bottom:4px}
.sr-tl-title{font-family:'IBM Plex Sans',sans-serif;font-weight:600;font-size:19px;line-height:1.35;color:var(--ink);word-break:break-word}
.sr-tl-byline{margin-top:5px;font-size:13.5px;color:var(--muted)}
.sr-tl-member-sub{font-weight:400;color:var(--muted);font-size:.93em}
.sr-tl-members{margin-top:9px;display:flex;flex-direction:column;gap:5px}
.sr-tl-member{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 9px;font-size:13px;color:var(--ink);opacity:.82}
.sr-tl-member-role{font-size:10px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);flex:none}
.sr-tl-empty{margin-top:6px;font-size:12.5px;color:var(--muted);font-style:italic}
@media (max-width:640px){
  .sr-tl::before{left:92px}
  .sr-tl-row{grid-template-columns:16px 60px 16px 1fr;column-gap:8px}
  .sr-tl-public.sr-tl::before{left:76px}
  .sr-tl-public .sr-tl-row{grid-template-columns:60px 16px 1fr}
  .sr-tl-time{font-size:12.5px}
  .sr-tl-title{font-size:17px}
}

/* ---- Sponsor contracts ---- */
.ec-pill.ct-wait{background:rgba(244,192,78,.16);color:var(--signal)}
.ec-pill.ct-sign{background:rgba(91,192,204,.16);color:var(--cyan)}
.ec-pill.ct-done{background:rgba(111,207,151,.16);color:var(--ok)}
.ec-tabs .ec-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--signal);margin-left:6px;vertical-align:middle;box-shadow:0 0 0 3px rgba(244,192,78,.2)}
.ec-ct-steps{font-family:'IBM Plex Sans',sans-serif;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--cyan);margin:0 0 10px}
.ec-field textarea{width:100%;box-sizing:border-box;padding:11px 13px;resize:vertical;min-height:84px}
.ec-ct-benefits{margin:8px 0 0 18px;padding:0;font-size:13.5px;line-height:1.7;color:var(--ink)}
/* The agreement text is a sheet of paper. Its colours are set explicitly (and !important) so a theme that forces
   light text on its sections can't make a contract unreadable. */
.ec-ct-paper{background:#FBF9F3!important;color:#1A2530!important;border:1px solid #C9AF6E;border-radius:8px;padding:28px 30px;max-height:460px;overflow-y:auto;margin:6px 0 18px;text-align:left}
.ec-ct-paper h3{font-family:Georgia,'Cormorant Garamond',serif!important;font-size:19px!important;line-height:1.3!important;margin:20px 0 6px!important;padding:0!important;color:#1A2530!important;text-transform:none!important;letter-spacing:0!important}
.ec-ct-paper h3:first-child{margin-top:0!important}
.ec-ct-paper p{font-size:14px!important;line-height:1.7!important;margin:0 0 11px!important;color:#27313c!important}
.ec-ct-paper ul{margin:0 0 12px 20px!important;padding:0!important}
.ec-ct-paper li{font-size:14px!important;line-height:1.65!important;color:#27313c!important;margin:0!important}
.ec-ct-paper strong,.ec-ct-paper em{color:#1A2530!important}
.ec-ct-padwrap{position:relative}
.ec-ct-pad{display:block;width:100%;height:150px;background:#FBF9F3;border:1px dashed #C9AF6E;border-radius:8px;touch-action:none;cursor:crosshair}
.ec-ct-padhint{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);text-align:center;color:#a59f90;font-size:13px;font-style:italic;pointer-events:none}
.ec-ct-padbar{display:flex;justify-content:space-between;align-items:center;margin-top:6px}
.ec-ct-sum{display:grid;grid-template-columns:140px 1fr;gap:6px 14px;font-size:13.5px;margin:10px 0 4px}
.ec-ct-sum dt{color:var(--muted)}.ec-ct-sum dd{margin:0;color:var(--ink)}
@media (max-width:560px){.ec-ct-paper{padding:20px 16px}.ec-ct-sum{grid-template-columns:1fr}}
.ec-ct-paper p.lt{padding-left:2.1em!important;text-indent:-2.1em!important;margin-bottom:7px!important}
.ec-modebar{display:flex;gap:8px;margin:6px 0 14px;flex-wrap:wrap}
.ec-lstats{margin:0 0 12px;padding:10px 14px;border:1px solid var(--line,#2A464E);border-radius:10px;font-size:14px}
.ec-lstats b{font-size:18px;color:#F4C04E}

/* ---- Door scanner: confirm-before-record button under the verdict ---- */
.ec-verdict-btn{width:100%;margin-top:16px;font-size:16px;padding:14px 20px}
.ec-verdict-btn:disabled{opacity:.6;cursor:default}
.ec-app .ec-btn.danger{background:#E0553F;color:#fff;border:none}
.ec-app .ec-btn.danger:hover{background:#e86a56}

/* ---- Inline edit area under an invitation in the organizer's account list ---- */
.ec-inline{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.ec-mi-slot{margin:6px 0 12px}
.ec-editbox{background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:14px}
.ec-confirmbox{background:var(--base);border:1px solid var(--line);border-radius:8px;padding:10px 12px;font-size:13px;color:var(--ink);line-height:1.6}
.ec-confirmbox.danger{border-color:#E0553F}

/* ---- Sign-in screens (organizer + sponsor portals): split brand panel ---- */
.ec-signin{display:flex;max-width:600px;margin:6px 0;background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.ec-signin-brand{width:210px;flex-shrink:0;background:var(--surface-2);border-top:2px solid var(--signal);padding:28px 22px;display:flex;flex-direction:column;gap:12px}
.ec-signin-logo{max-width:150px;max-height:54px;width:auto;height:auto}
.ec-signin-ev{font-family:'Archivo',sans-serif;font-weight:700;font-size:18px;line-height:1.25;color:var(--ink)}
.ec-signin-date{font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:.06em;color:var(--cyan)}
.ec-signin-venue{font-size:12px;color:var(--muted)}
.ec-signin-lock{margin-top:auto;font-family:'IBM Plex Mono',monospace;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.ec-signin-form{flex:1;min-width:0;padding:30px 28px}
.ec-signin-form h2{margin-bottom:4px}
.ec-signin-form .ec-card{background:transparent;border:none;padding:0;margin:0;max-width:none!important}
@media(max-width:560px){
  .ec-signin{flex-direction:column;max-width:420px}
  .ec-signin-brand{width:auto;flex-direction:row;align-items:center;flex-wrap:wrap;gap:8px 16px}
  .ec-signin-lock{margin-top:0;width:100%}
}
