/* event-wizard.css -- gated tickets (pre-approval / racer / tech card) on the V2 event tickets page, 2026-11.
   Hand-edited like the rest of the site CSS; the look is Mike's artifact (Bebas Neue + Outfit, orange accent, black
   header, neutral cards). Three scopes:
     .ewz        the gate strip and per-ride rows inside the ticket card (ep/gated_ticket.php, ep/pa_row_*.php)
     .ewz-dlg    the jQuery UI dialogs around the wizard steps (ride pick, stages hub, ride edit, tech card)
     .ewz-signin the existing sign-in dialog, given the black header
   Bootstrap 2 + theme_bs_tb are global and collide with buttons / headings / form controls, hence the resets.
   Cache-bust: asset_url() appends ?v=<filemtime> (ep/gated_ticket.php). */

.ewz, .ewz-dlg, .ewz-toast, .ewz-signin {
  --orange: #F47B20; --orange-dark: #D96400; --orange-tint: #FFF3E8;
  --black: #0D0D0D; --white: #FFFFFF; --gray-bg: #F4F4F4; --gray-text: #888; --gray-border: #E5E5E5;
  --radius-btn: 6px;
  --shadow-card: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05);
  --font-display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --transition: .22s ease;
}

/* ================================================================== resets */
.ewz, .ewz-dlg { font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--black); text-align: left; -webkit-font-smoothing: antialiased; }
.ewz *, .ewz *::before, .ewz *::after, .ewz-dlg .ewz-d *, .ewz-dlg .ewz-d *::before, .ewz-dlg .ewz-d *::after,
.ewz-dlg .ewz-head *, .ewz-dlg .ewz-head *::before, .ewz-dlg .ewz-head *::after { box-sizing: border-box; }
.ewz [hidden], .ewz-dlg [hidden] { display: none !important; }
.ewz a, .ewz-dlg .ewz-d a.ewz-btn { text-decoration: none; }
.ewz a:hover, .ewz a:focus, .ewz-dlg .ewz-d a.ewz-btn:hover { text-decoration: none; }
.ewz button, .ewz-dlg .ewz-d button, .ewz-dlg .ewz-head button { font-family: inherit; cursor: pointer; line-height: 1.2; text-shadow: none; box-shadow: none; background-image: none; margin: 0; }
.ewz p, .ewz-dlg .ewz-d p { margin: 0; }
.ewz-dlg .ewz-d h3, .ewz-dlg .ewz-d h4, .ewz-dlg .ewz-d dl, .ewz-dlg .ewz-d dd, .ewz-dlg .ewz-d ol { margin: 0; padding: 0; text-transform: none; text-shadow: none; letter-spacing: normal; }

/* ================================================================== buttons (artifact .btn) */
.ewz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: var(--radius-btn); font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1.2;
  border: 2px solid transparent; white-space: nowrap; transition: var(--transition); cursor: pointer; text-align: center; }
.ewz-btn-orange { background: var(--orange); color: var(--white) !important; border-color: var(--orange); }
.ewz-btn-orange:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); }
.ewz-btn-dark { background: var(--black); color: var(--white) !important; border-color: var(--black); }
.ewz-btn-dark:hover { background: #333; border-color: #333; }
.ewz-btn-ghost-dark { background: transparent; color: var(--black) !important; border-color: var(--black); }
.ewz-btn-ghost-dark:hover { background: var(--black); color: var(--white) !important; }
.ewz-btn:disabled, .ewz-btn.is-disabled, .ewz-btn-orange:disabled, .ewz-btn-orange.is-disabled { opacity: 1; background: #E5E5E5; border-color: #E5E5E5; color: #8a8a8a !important; cursor: not-allowed; transform: none; pointer-events: auto; }
.ewz-btn:disabled:hover, .ewz-btn.is-disabled:hover { transform: none; background: #E5E5E5; border-color: #E5E5E5; }
.ewz-plain { border: none; background: none; font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--gray-text); padding: 12px 6px; display: inline-flex; align-items: center; gap: 6px; }
.ewz-plain:hover { color: var(--black); }
.ewz-plain.is-danger:hover { color: var(--orange-dark); }
.ewz-link { border: none; background: none; padding: 0; font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--gray-text); text-decoration: underline; cursor: pointer; }
.ewz-link:hover { color: var(--orange-dark); }

/* ================================================================== gate strip (artifact .tk-gate) */
.ewz-gated { grid-column: 1 / -1; margin-top: 4px; }
.ewz-gate { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px 20px; align-items: center; padding: 14px 16px; border-radius: 12px; background: #161616; color: var(--white); }
.ewz-gate-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ewz-gate-msg { font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.7); }
.ewz-gate-msg b { color: var(--white); }
.ewz-gate-note { font-size: 13px; font-weight: 600; color: var(--orange); }
.ewz-gate .ewz-help { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--orange); }
.ewz-gate .ewz-help:hover { color: var(--white); }
.ewz-gate .ewz-btn { padding: 12px 22px; }
/* the opener's label follows the gate state: first-time wording vs "add another" */
.ewz-gated .lbl-more { display: none; }
.ewz-gated:not([data-ewz-state="none"]) .lbl-none { display: none; }
.ewz-gated:not([data-ewz-state="none"]) .lbl-more { display: inline; }
.ewz-gated:not([data-ewz-state="none"]) .ewz-gate > .ewz-btn-orange { background: transparent; border-color: rgba(255,255,255,.45); }
.ewz-gated:not([data-ewz-state="none"]) .ewz-gate > .ewz-btn-orange:hover { border-color: var(--white); background: rgba(255,255,255,.08); transform: none; }

/* ================================================================== per-ride rows */
.ewz-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.ewz-rows:empty { display: none; }
.ewz-row { position: relative; display: grid; grid-template-columns: 76px minmax(0,1fr) auto; gap: 8px 16px; align-items: center; padding: 12px 16px;
  background: var(--gray-bg); border: 1px solid var(--gray-border); border-radius: 12px; overflow: hidden; transition: var(--transition); }
.ewz-row.is-approved.in-cart { border-color: var(--orange); }
.ewz-row.is-denied { opacity: .78; }
.ewz-flash { box-shadow: 0 0 0 4px rgba(244,123,32,.28); }
.ewz-thumb, .ewz-ride-thumb { width: 76px; aspect-ratio: 4 / 3; border-radius: 10px; background: #161616 center / cover no-repeat; display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,.35); flex-shrink: 0; }
.ewz-row-main { display: flex; flex-direction: column; min-width: 0; }
.ewz-row-title { font-size: 15.5px; font-weight: 700; line-height: 1.3; color: var(--black); overflow-wrap: anywhere; }
.ewz-row-sub { font-size: 13px; color: #555; line-height: 1.45; margin-top: 2px; }
.ewz-row-side { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 14px; }
.ewz-row-price { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; letter-spacing: .5px; color: var(--black); }
.ewz-chip { display: inline-flex; align-items: center; gap: 7px; border-radius: 100px; padding: 5px 12px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--white); border: 1px solid var(--gray-border); color: #444; }
.ewz-chip.is-pending { color: var(--orange-dark); border-color: rgba(244,123,32,.4); }
.ewz-chip.is-ok { color: var(--black); }
.ewz-chip.is-ok svg { color: var(--orange); }
.ewz-chip.is-warn { color: #444; text-transform: uppercase; letter-spacing: .8px; font-size: 11px; }
.ewz-chip.is-muted, .ewz-chip.is-denied { color: var(--gray-text); }
.ewz-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: ewz-pulse 1.6s ease-in-out infinite; }
@keyframes ewz-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.ewz-confirm { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; padding: 12px 14px; background: var(--white); border: 1px solid var(--gray-border); border-radius: 10px; font-size: 13.5px; font-weight: 600; }
.ewz-confirm-btns { display: inline-flex; gap: 8px; }
.ewz-confirm .ewz-btn { padding: 8px 16px; font-size: 13.5px; }
.ewz-msg { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: var(--orange-dark); }
.ewz-msg:empty { display: none; }

@media (max-width: 760px) {
  .ewz-gate { grid-template-columns: minmax(0,1fr); }
  .ewz-gate .ewz-btn { width: 100%; }
}
@media (max-width: 560px) {
  .ewz-row { grid-template-columns: 64px minmax(0,1fr); }
  .ewz-thumb { width: 64px; }
  .ewz-row-side { grid-column: 1 / -1; justify-content: space-between; }
  /* approved rows: the status chip on its own line, then ONE row with the price left and the +/- stepper right, centred (Sam 2026-11-12) */
  .ewz-row.is-approved .ewz-row-side { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px 8px; align-items: center; justify-content: stretch; }
  .ewz-row.is-approved .ewz-row-side > .ewz-chip:first-child { grid-column: 1 / -1; justify-self: start; }
  .ewz-row.is-approved .ewz-row-side > .ewz-row-price { grid-column: 1; min-width: 0; white-space: nowrap; }
  .ewz-row.is-approved .ewz-row-side > .stepper { grid-column: 2; justify-self: end; }
  .ewz-row.is-approved .ewz-row-side > .stepper output { min-width: 32px; }
}
@media (max-width: 360px) {
  .ewz-row.is-approved { padding-left: 8px; padding-right: 8px; }
  .ewz-row.is-approved .ewz-row-price { font-size: 1.2rem; }
  .ewz-row.is-approved .ewz-row-side > .stepper output { min-width: 28px; }
}

/* toast (artifact: black, orange left border, above the dock) */
.ewz-toast { position: fixed; left: 50%; bottom: 100px; transform: translate(-50%, 12px); z-index: 100000; max-width: calc(100vw - 32px); background: var(--black); color: var(--white); border: 1px solid var(--orange);
  border-radius: 8px; padding: 12px 18px; font-family: var(--font-body); font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s ease; }
.ewz-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ================================================================== dialog shell */
html.ewz-lock { overflow: hidden; }
.ui-dialog.ewz-dlg { position: fixed !important; top: 24px !important; left: 50% !important; transform: translateX(-50%); width: min(760px, calc(100vw - 32px)) !important; max-width: none !important; height: auto !important;
  max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 18px; background: var(--gray-bg); box-shadow: 0 30px 80px rgba(0,0,0,.5); overflow: hidden !important; }
.ewz-dlg .ui-dialog-titlebar, .ewz-dlg .ui-resizable-handle, .ewz-dlg .ui-dialog-buttonpane { display: none !important; }
.ewz-dlg .ui-dialog-content { display: block; width: auto !important; height: auto !important; max-height: calc(100vh - 48px) !important; max-height: calc(100dvh - 48px) !important; padding: 0 !important; margin: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--gray-bg); }
.ewz-dlg .ewz-d { display: block; }
.ewz-dlg .ewz-main { display: block; }
@media (max-width: 760px) {
  .ui-dialog.ewz-dlg { top: auto !important; bottom: 0 !important; left: 0 !important; transform: none; width: 100% !important; max-height: 94vh; max-height: 94dvh; border-radius: 18px 18px 0 0; }
  .ewz-dlg .ui-dialog-content { max-height: 94vh !important; max-height: 94dvh !important; }
}

/* header (artifact .mdl-h + .wiz) */
.ewz-head { position: sticky; top: 0; z-index: 4; background: var(--black); color: var(--white); padding: 20px 24px 16px; }
.ewz-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--orange); padding-right: 44px; }
.ewz-dlg h2.ewz-title { font-family: var(--font-display); font-weight: 400; font-size: 2rem; letter-spacing: .6px; line-height: 1; margin: 6px 0 0; padding: 0 44px 0 0; color: var(--white); text-transform: none; text-shadow: none; }
.ewz-x { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: transparent; color: var(--white); display: inline-flex; align-items: center; justify-content: center; transition: var(--transition); padding: 0; }
.ewz-x:hover { background: var(--orange); border-color: var(--orange); }
.ewz-wiz { display: flex; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.ewz-wiz li { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .4px; color: rgba(255,255,255,.5); margin: 0; padding: 0; }
.ewz-wiz li::before { content: ''; height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); }
.ewz-wiz li.done, .ewz-wiz li.now { color: var(--white); }
.ewz-wiz li.done::before, .ewz-wiz li.now::before { background: var(--orange); }

/* body + footer (artifact .mdl-b / .mdl-f) */
.ewz-body { padding: 22px 24px; }
.ewz-dlg .ewz-h { font-size: 17px; font-weight: 700; color: var(--black); font-family: var(--font-body); line-height: 1.3; }
.ewz-dlg .ewz-h2 { margin-top: 28px; }
.ewz-dlg .ewz-p { font-size: 14px; color: var(--gray-text); margin-top: 4px; line-height: 1.55; }
.ewz-p b { color: #444; }
.ewz-foot { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--white); border-top: 1px solid var(--gray-border); }
.ewz-foot .right { display: flex; gap: 10px; margin-left: auto; }
/* the "Submitted for approval / Ride registered" success footer: Done sits in the middle (Mike 2026-11-10) */
.ewz-foot-done { justify-content: center; }
.ewz-foot-done .right { margin-left: 0; }
.ewz-foot-done-r { justify-content: flex-end; }
.ewz-foot-done-r .right { margin-left: auto; }
.ewz-foot-done-r .ewz-btn { display: inline-flex; align-items: center; gap: 8px; }
.ewz-plus-ic { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: var(--white); vertical-align: middle; margin: 0 2px; }
.ewz-next .ewz-plus-ic { width: 20px; height: 20px; vertical-align: -4px; }
.ewz-dlg .ewz-next li b { color: var(--white); }
/* review step footer: Back + Delete this entry sit together on the left */
.ewz-foot-l { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ewz-foot .ewz-btn { padding: 12px 22px; }
.ewz-confirm-msg { font-size: 14px; font-weight: 600; color: var(--black); }
.ewz-note { margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; background: var(--white); border: 1px solid var(--gray-border); color: #444; }
.ewz-note.is-warn { border: 1px solid var(--orange); }
.ewz-err-box { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--white); border: 1px solid var(--orange); font-size: 13.5px; font-weight: 600; color: var(--orange-dark); }
.ewz-err-box:empty { display: none; }
@media (max-width: 760px) {
  .ewz-body { padding: 18px; }
  .ewz-foot { padding-left: 18px; padding-right: 18px; }
  .ewz-head { padding: 18px 18px 14px; }
  .ewz-foot-confirm { flex-direction: column; align-items: stretch; }
  .ewz-foot-confirm .right { margin-left: 0; }
  .ewz-foot-confirm .right .ewz-btn { flex: 1; }
}

/* ================================================================== ride picker (artifact .rp) */
.ewz-rides { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.ewz-ride { position: relative; display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--gray-border); border-radius: 14px; overflow: hidden; cursor: pointer; text-align: left; padding: 0; font-family: var(--font-body); transition: var(--transition); color: var(--black); }
.ewz-ride:hover { border-color: rgba(244,123,32,.6); }
.ewz-ride input { position: absolute; opacity: 0; pointer-events: none; }
.ewz-ride:focus-within { outline: 3px solid rgba(244,123,32,.45); outline-offset: 2px; }
.ewz-ride.is-on { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(244,123,32,.18); }
.ewz-ride-pic { aspect-ratio: 16 / 9; background: #161616 center / cover no-repeat; position: relative; display: flex; align-items: flex-end; padding: 10px; }
.ewz-ride-pic::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 80% at 90% 0%, rgba(244,123,32,.35), transparent 65%); }
.ewz-ride-pic.has-img::before { display: none; }
.ewz-ride-pic .yr { position: relative; font-family: var(--font-display); font-size: 1.3rem; color: var(--orange); letter-spacing: 1px; background: rgba(13,13,13,.75); padding: 2px 8px; border-radius: 6px; line-height: 1.2; }
.ewz-ride-ic { position: absolute; top: 10px; left: 10px; color: rgba(255,255,255,.3); }
.ewz-ride-pic .chk { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: rgba(13,13,13,.6); border: 2px solid rgba(255,255,255,.6); display: inline-flex; align-items: center; justify-content: center; color: transparent; }
.ewz-ride.is-on .chk { background: var(--orange); border-color: var(--orange); color: var(--white); }
.ewz-ride-b { padding: 12px 14px 14px; display: block; }
.ewz-ride-b b { display: block; font-size: 15px; color: var(--black); line-height: 1.3; overflow-wrap: anywhere; }
.ewz-ride-b span { font-size: 12.5px; color: var(--gray-text); }
.ewz-ride-new { align-items: center; justify-content: center; gap: 10px; min-height: 180px; border-style: dashed; background: transparent; color: var(--black) !important; font-weight: 700; font-size: 15px; text-align: center; padding: 12px; }
.ewz-ride-new .plus-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--orange); color: var(--white); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(244,123,32,.35); }
.ewz-ride-new span { font-size: 12.5px; font-weight: 500; color: var(--gray-text); }
.ewz-ride-new:hover { background: var(--white); }
.ewz-incomplete { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.ewz-inc { display: grid; grid-template-columns: 76px minmax(0,1fr) auto; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--gray-border); border-radius: 12px; padding: 10px 14px 10px 10px; }
.ewz-inc-b { display: flex; flex-direction: column; min-width: 0; }
.ewz-inc-b b { font-size: 14.5px; overflow-wrap: anywhere; }
.ewz-inc-b span { font-size: 12.5px; color: var(--gray-text); }
.ewz-inc .ewz-btn { padding: 9px 16px; font-size: 14px; }
@media (max-width: 760px) {
  .ewz-rides { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .ewz-ride-pic { aspect-ratio: 21 / 9; }
  .ewz-ride-new { min-height: 120px; }
  .ewz-inc { grid-template-columns: 64px minmax(0,1fr); }
  .ewz-inc .ewz-btn { grid-column: 1 / -1; }
  .ewz-ride-thumb { width: 64px; }
}

/* ================================================================== step cards (stages hub) + review + done */
.ewz-fs { background: var(--white); border: 1px solid var(--gray-border); border-radius: 14px; padding: 20px; margin-top: 16px; }
.ewz-fs-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ewz-fs-h .n { width: 28px; height: 28px; border-radius: 8px; background: var(--black); color: var(--orange); font-family: var(--font-display); font-size: 1.15rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ewz-fs.is-done .ewz-fs-h .n { background: var(--orange); color: var(--white); }
.ewz-fs-h h4 { font-size: 16px; font-weight: 700; color: var(--black); font-family: var(--font-body); }
.ewz-fs-h p { font-size: 12.5px; color: var(--gray-text); }
.ewz-fs.is-locked { opacity: .6; }
.ewz-rv-ride { display: flex; align-items: center; gap: 12px; }
.ewz-rv-ride + .ewz-rv-ride { margin-top: 10px; }
.ewz-rv-ride b { display: block; font-size: 15px; color: var(--black); overflow-wrap: anywhere; }
.ewz-rv-ride small { display: block; font-size: 12.5px; color: var(--gray-text); }
.ewz-ride-thumb.is-check { background: var(--orange); color: var(--white); width: 56px; aspect-ratio: 1; border-radius: 50%; }
.ewz-rv { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.ewz-rv-card { background: var(--white); border: 1px solid var(--gray-border); border-radius: 14px; padding: 18px; }
.ewz-dlg .ewz-rv-card h4 { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gray-text); margin: 0 0 10px; }
.ewz-rv-card h4 button { border: none; background: none; font-size: 13px; font-weight: 600; color: var(--orange-dark); letter-spacing: 0; text-transform: none; text-decoration: underline; padding: 0; }
.ewz-dlg .ewz-rv-card dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 6px 14px; font-size: 14px; }
.ewz-rv-card dt { color: var(--gray-text); font-weight: 400; }
.ewz-rv-card dd { color: var(--black); font-weight: 600; word-break: break-word; }
.ewz-next { margin-top: 16px; background: var(--black); color: var(--white); border-radius: 14px; padding: 20px; }
.ewz-dlg .ewz-next h4 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; letter-spacing: .5px; color: var(--white); }
.ewz-dlg .ewz-next ol { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; counter-reset: ewz-nx; list-style: none; }
.ewz-next li { display: flex; gap: 12px; font-size: 14px; color: rgba(255,255,255,.78); line-height: 1.5; margin: 0; }
.ewz-next li::before { counter-increment: ewz-nx; content: counter(ewz-nx); flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: var(--white); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.ewz-done-wrap { text-align: center; padding: 34px 24px 20px; }
.ewz-done-ic { width: 76px; height: 76px; border-radius: 50%; background: var(--orange); color: var(--white); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(244,123,32,.18); animation: ewz-pop .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes ewz-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ewz-dlg .ewz-done-wrap h3 { font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; letter-spacing: .5px; margin-top: 18px; color: var(--black); }
.ewz-dlg .ewz-done-wrap p { font-size: 15px; color: #444; max-width: 460px; margin: 8px auto 0; line-height: 1.6; }
@media (max-width: 760px) { .ewz-rv { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) { .ewz-chip .dot, .ewz-done-ic { animation: none; } .ewz-btn, .ewz-ride, .ewz-row { transition: none; } }

/* ================================================================== sign-in dialog (existing dialog, wizard header) */
.ui-dialog.ewz-signin { border: 0; border-radius: 18px; padding: 0; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.ewz-signin .ui-dialog-titlebar { background: var(--black); border: 0; border-radius: 0; padding: 20px 24px; }
.ewz-signin .ui-dialog-title { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; letter-spacing: .6px; color: var(--white); text-shadow: none !important; }
.ewz-signin .ui-dialog-title .icon { color: var(--orange); }
.ewz-signin .ui-dialog-titlebar-close { color: var(--white) !important; }

/* ================================================================== forms inside the dialogs
   The real tech card template forms (user/rides/dsp_tech_card_*_form.php, shared with My Rides, so styled ONLY under
   .ewz-dlg) and the ride edit form, restyled from Bootstrap-2 markup to the artifact's field-set / field look. */
.ewz-tech-intro { padding: 22px 24px 0; }
.ewz-dlg .form-large, .ewz-dlg #ride-edit-container { padding: 0 24px 28px; font-family: var(--font-body); color: var(--black); font-size: 15px; line-height: 1.5; }
.ewz-dlg .form-large *, .ewz-dlg #ride-edit-container * { box-sizing: border-box; }
.ewz-dlg #ride-edit-container > h4 { margin: 22px 0 4px; font-family: var(--font-body); font-size: 17px; font-weight: 700; text-transform: none; color: var(--black); }
.ewz-dlg #ride-edit-container > h4 .icon { color: var(--orange); }
.ewz-dlg #ride-edit-container a:not(.btn) { color: var(--orange-dark); text-decoration: underline; }
.ewz-dlg .form-large h4, .ewz-dlg .form-large h5 { font-family: var(--font-body); font-weight: 700; text-transform: none; text-shadow: none; letter-spacing: normal; color: var(--black); margin: 0 0 8px; }
.ewz-dlg .form-large h4 { font-size: 16px; }
.ewz-dlg .form-large h5 { font-size: 14px; }
.ewz-dlg .form-large .red, .ewz-dlg #ride-edit-container .red { color: var(--orange-dark); }
.ewz-dlg .form-large .faded { color: var(--gray-text); }

/* cards: the template forms nest .well.well-dash-dark > h4 + .well; the outer one is the card, the inner one is a plain wrapper */
.ewz-dlg .well { min-height: 0; margin: 16px 0 0; padding: 20px; background: var(--white); border: 1px solid var(--gray-border); border-radius: 14px; box-shadow: none; color: var(--black); text-shadow: none; }
.ewz-dlg .well .well { margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; }
.ewz-dlg .well-dash-dark > h4:first-child { margin: 0 0 14px; }
.ewz-dlg .well-dash-dark-alt { background: var(--white); }
/* the ride edit form's section bars ("RIDE BASICS", "UPLOAD PHOTOS", "CURRENT PHOTOS") are plain headings in the artifact's field-set style */
.ewz-dlg #ride-edit-container .well-dash-dark:not(:has(> .well)) { margin: 26px 0 12px; padding: 2px 0 2px 12px; background: none; border: 0; border-left: 4px solid var(--orange); border-radius: 0; font-size: 16px; font-weight: 700; text-transform: none; color: var(--black); box-shadow: none; }
.ewz-dlg #ride-edit-container .well-dash-dark:not(:has(> .well)) .icon { display: none; }

/* labels and fields (artifact .fld) */
.ewz-dlg .form-large .control-group, .ewz-dlg #ride-edit-container .control-group { margin-bottom: 14px; }
.ewz-dlg .label { display: inline-block; padding: 0; margin: 0 0 6px; background: none; color: var(--black); font-family: var(--font-body); font-size: 13px; font-weight: 600; text-shadow: none; text-transform: none; border-radius: 0; line-height: 1.4; }
.ewz-dlg .icon-star.yellow, .ewz-dlg .fa-asterisk.red { color: var(--orange-dark); }
.ewz-dlg .form-large input[type="text"], .ewz-dlg .form-large input[type="email"], .ewz-dlg .form-large input[type="tel"], .ewz-dlg .form-large input[type="number"], .ewz-dlg .form-large input[type="date"], .ewz-dlg .form-large input[type="password"],
.ewz-dlg .form-large select, .ewz-dlg .form-large textarea,
.ewz-dlg #ride-edit-container input[type="text"], .ewz-dlg #ride-edit-container input[type="email"], .ewz-dlg #ride-edit-container input[type="url"], .ewz-dlg #ride-edit-container input[type="number"],
.ewz-dlg #ride-edit-container select, .ewz-dlg #ride-edit-container textarea {
  display: block; width: 100%; max-width: 100%; height: auto; min-height: 46px; padding: 11px 13px; font-family: var(--font-body); font-size: 16px; line-height: 1.3; color: var(--black); background: var(--white);
  border: 1px solid var(--gray-border); border-radius: var(--radius-btn); box-shadow: none; margin: 0; }
.ewz-dlg .form-large textarea, .ewz-dlg #ride-edit-container textarea { min-height: 76px; resize: vertical; line-height: 1.5; }
.ewz-dlg .form-large input:focus, .ewz-dlg .form-large select:focus, .ewz-dlg .form-large textarea:focus,
.ewz-dlg #ride-edit-container input:focus, .ewz-dlg #ride-edit-container select:focus, .ewz-dlg #ride-edit-container textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,123,32,.2); }
.ewz-dlg .form-large input[type="checkbox"], .ewz-dlg .form-large input[type="radio"], .ewz-dlg #ride-edit-container input[type="checkbox"], .ewz-dlg #ride-edit-container input[type="radio"] { accent-color: var(--orange); }
.ewz-dlg .form-large input::placeholder, .ewz-dlg #ride-edit-container input::placeholder { color: #b5b5b5; }
/* problem fields (the server's field-keyed errors add .foat-warning / .errorform) */
.ewz-dlg .control-group.foat-warning input, .ewz-dlg .control-group.warning select, .ewz-dlg .control-group.warning textarea, .ewz-dlg .control-group.foat-warning select, .ewz-dlg .control-group.foat-warning textarea, .ewz-dlg .control-group.foat-warning #signature-container {
  background: var(--white); color: var(--black) !important; border-color: var(--orange-dark); box-shadow: 0 0 0 2px rgba(217,100,0,.25); }
.ewz-dlg .control-group.foat-warning .label, .ewz-dlg .control-group.foat-warning .help-block, .ewz-dlg .control-group.foat-warning .help-inline, .ewz-dlg .control-group.foat-warning .control-label,
.ewz-dlg .control-group.foat-warning .checkbox-label, .ewz-dlg .control-group.foat-warning .radio-label { color: var(--orange-dark); }
.ewz-dlg .errorform { border-color: var(--orange-dark) !important; }
.ewz-dlg .help-block, .ewz-dlg .help-inline { font-size: 12.5px; font-weight: 600; color: var(--orange-dark); margin: 4px 0 0; }
.ewz-dlg .help-block.hide:empty { display: none; }
.ewz-dlg .alert { padding: 12px 14px; margin: 16px 0 0; border-radius: 10px; background: var(--white); border: 1px solid var(--orange); color: #444; text-shadow: none; font-size: 14px; }
.ewz-dlg .alert ul { margin: 0 0 0 18px; }
.ewz-dlg .form-large .row-fluid [class*="span"] { min-height: 0; }
/* a float left above a row (e.g. an alert icon) must never push the Bootstrap-2 span columns of the next row into one narrow column: every row clears (tech card safety fields, 2026-11-12) */
.ewz-dlg .form-large .row-fluid { clear: both; }
.ewz-dlg .form-large img { max-width: 100%; height: auto; }

/* signature block (jSignature canvas stays; only the chrome changes) */
.ewz-dlg #signature-container { background: var(--white); border: 1px solid var(--gray-border); border-radius: 10px; overflow: hidden; }
.ewz-dlg #signature { border: 0; }
.ewz-dlg #signature-clear { margin-top: 10px; }

/* buttons inside the legacy bodies: one orange primary, ghost secondary (artifact .btn) */
.ewz-dlg .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius-btn); border: 2px solid var(--black); background: var(--white); color: var(--black); font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1.2; text-shadow: none; box-shadow: none; background-image: none; filter: none; transition: var(--transition); cursor: pointer; }
.ewz-dlg .btn:hover { background: var(--black); color: var(--white); }
.ewz-dlg .btn-action, .ewz-dlg .btn-success, .ewz-dlg .btn-primary, .ewz-dlg .btn-info { background: var(--orange); border-color: var(--orange); color: var(--white) !important; }
.ewz-dlg .btn-action:hover, .ewz-dlg .btn-success:hover, .ewz-dlg .btn-primary:hover, .ewz-dlg .btn-info:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--white); }
.ewz-dlg #ride-edit-container .btn-cancel { border-color: var(--gray-border); color: var(--gray-text); }
.ewz-dlg #ride-edit-container .btn-cancel:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.ewz-dlg #ride-edit-container .span12 > .btn { margin-right: 10px; float: none !important; }
.ewz-dlg #ride-edit-container .response.notify { display: block; margin: 12px 0 0; color: var(--orange-dark); font-weight: 600; }

/* the tech card's save bar (V1: fixed black strip) becomes the wizard footer: Close | Save, Save & continue */
.ewz-dlg .bottom-progress-nav { position: sticky !important; bottom: 0; left: auto !important; right: auto !important; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 10px; padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--white); color: var(--gray-text); text-align: right; border-radius: 0; border-top: 1px solid var(--gray-border); }
.ewz-dlg .bottom-progress-nav > div { margin: 0; display: contents; }
.ewz-dlg .bottom-progress-nav .status { order: -1; margin: 0 auto 0 0 !important; padding: 0; border-radius: 0; font-size: 13px; font-weight: 600; color: var(--gray-text); text-align: left; flex: 1 1 200px; border: 0 !important; }
.ewz-dlg .bottom-progress-nav .btn { margin: 0 !important; padding: 12px 22px; font-size: 15px; }
.ewz-dlg .bottom-progress-nav .btn-cancel { order: 0; background: none; border-color: transparent; color: var(--gray-text); }
.ewz-dlg .bottom-progress-nav .btn-cancel:hover { background: none; color: var(--black); }
.ewz-dlg .bottom-progress-nav .btn-save { order: 1; background: var(--white); border-color: var(--black); color: var(--black) !important; }
.ewz-dlg .bottom-progress-nav .btn-save:hover { background: var(--black); color: var(--white) !important; }
.ewz-dlg .bottom-progress-nav .btn-save-close { order: 2; }
.ewz-dlg .form-large + .bottom-progress-nav, .ewz-dlg .ui-dialog-content > .bottom-progress-nav { margin-top: 0; }
.ewz-dlg .form-large > form > div[style*="margin-top:100px"] { display: none; }
@media (max-width: 760px) {
  .ewz-dlg .form-large, .ewz-dlg #ride-edit-container { padding: 0 18px 24px; }
  .ewz-tech-intro { padding: 18px 18px 0; }
  .ewz-dlg .bottom-progress-nav { padding-left: 18px; padding-right: 18px; }
  .ewz-dlg .bottom-progress-nav .btn { flex: 1 1 auto; }
  .ewz-dlg .well { padding: 16px; }
  .ewz-dlg .form-large .row-fluid [class*="span"], .ewz-dlg #ride-edit-container .row-fluid [class*="span"] { float: none; display: block; width: 100%; margin-left: 0; }
}

/* ride edit: the current-photo tiles (user/rides/ajax_get_photo.php: .span3.reorder-item > .box > .width-calculator + .photo-container + two absolutely-placed button divs).
   Same construction as the shared .tm-tiles in thefoat-tbhost.css (which the event page does not load): square-ish image above a bar holding Primary | Delete. */
.ewz-dlg #ride-edit-container .tm-tiles { --ewz-bar: 46px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin: 0; padding: 0; }
.ewz-dlg #ride-edit-container .tm-tiles::before, .ewz-dlg #ride-edit-container .tm-tiles::after { display: none; }
.ewz-dlg #ride-edit-container .tm-tiles > .reorder-item { float: none; width: auto; margin: 0; min-width: 0; }
.ewz-dlg #ride-edit-container .tm-tiles .box { position: relative; display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 0 0 var(--ewz-bar); overflow: hidden; background: var(--gray-bg); border: 1px solid var(--gray-border); border-radius: 10px; box-shadow: none; }
.ewz-dlg #ride-edit-container .tm-tiles .box .width-calculator { display: block; padding-top: 75%; }
.ewz-dlg #ride-edit-container .tm-tiles .box .photo-container { position: absolute; top: 0; left: 0; right: 0; bottom: var(--ewz-bar); height: auto; background-color: #ddd; background-size: cover; background-position: 50% 50%; }
.ewz-dlg #ride-edit-container .tm-tiles .box > div[style*="position:absolute"] { top: auto !important; bottom: 0 !important; left: 0 !important; right: 0 !important; height: var(--ewz-bar); display: flex; align-items: center; background: var(--white); border-top: 1px solid var(--gray-border); }
.ewz-dlg #ride-edit-container .tm-tiles .box > div[style*="left:5px"]:not([style*="right"]) { right: 50% !important; padding: 0 0 0 6px; justify-content: flex-start; }
.ewz-dlg #ride-edit-container .tm-tiles .box > div[style*="right:5px"]:not([style*="left"]) { left: 50% !important; padding: 0 6px 0 0; justify-content: flex-end; }
.ewz-dlg #ride-edit-container .tm-tiles .box .btn { float: none; margin: 0; min-height: 36px; padding: 0 9px; font-size: 12.5px; border-width: 1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.ewz-dlg #ride-edit-container .tm-tiles .box .btn .icon { margin: 0; color: var(--gray-text); }
.ewz-dlg #ride-edit-container .tm-tiles .box .btn .icon.orange { color: var(--orange); }
.ewz-dlg #ride-edit-container .tm-tiles .box .btn[disabled] { opacity: 1; cursor: default; background: var(--orange-tint); border-color: var(--orange); color: var(--black); }
.ewz-dlg #ride-edit-container .tm-tiles .box .btn[disabled]:hover { background: var(--orange-tint); color: var(--black); }
@media (max-width: 760px) { .ewz-dlg #ride-edit-container .tm-tiles { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ride edit (V2): the photo block, laid out like My Rides > Upload Photos / Current Photos (tb2/dsp_ride_edit.php, .ewz-ph) */
.ewz-dlg .ewz-ph { margin-top: 8px; }
.ewz-dlg .ewz-ph-types { font-size: 14px; color: var(--black); margin: 0 0 12px; }
.ewz-dlg .ewz-ph-note { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; padding: 14px 16px; background: var(--gray-bg); border: 1px solid var(--orange); border-radius: 8px; font-size: 13.5px; line-height: 1.55; color: rgba(13,13,13,.78); }
.ewz-dlg .ewz-ph-note > i { color: var(--orange); margin-top: 3px; }
.ewz-dlg .ewz-ph-note b { color: var(--black); }
.ewz-dlg .ewz-ph-patient { font-size: 13.5px; line-height: 1.55; color: rgba(13,13,13,.78); margin: 0 0 14px; }
.ewz-dlg .ewz-ph-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 28px 16px; min-height: 140px; border: 2px dashed var(--gray-border); border-radius: 14px; background: var(--gray-bg); color: var(--gray-text); cursor: pointer; transition: border-color var(--transition), background var(--transition); }
.ewz-dlg .ewz-ph-drop:hover, .ewz-dlg .ewz-ph-drop.ewz-drag { border-color: var(--orange); background: var(--orange-tint); }
.ewz-dlg .ewz-ph-drop.ewz-drag { border-style: solid; box-shadow: 0 0 0 4px rgba(244,123,32,.18); }
.ewz-dlg .ewz-ph-icon { font-size: 28px; line-height: 1; color: var(--orange); }
.ewz-dlg .ewz-ph-drop b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; letter-spacing: 1px; color: var(--black); line-height: 1; }
.ewz-dlg .ewz-ph-drop small { font-size: 12.5px; }
.ewz-dlg .ewz-ph-actions { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-top: 10px; }
.ewz-dlg .ewz-ph-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; }
.ewz-dlg .ewz-ph-choose { margin: 0; padding: 8px 16px; font-size: 14px; }
.ewz-dlg .ewz-ph-hint { flex: 1 1 260px; font-size: 12.5px; line-height: 1.5; color: var(--gray-text); }
.ewz-dlg .ewz-ph-auto { margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; color: var(--orange-dark); }
/* upload progress rows (JS-built .row-fluid.well.well-small > .span12 + the X button) */
.ewz-dlg .ewz-ph-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; width: 100%; }
.ewz-dlg .ewz-ph-list:empty { display: none; }
.ewz-dlg .ewz-ph-list > .well { margin: 0; min-height: 0; display: grid; grid-template-columns: minmax(0,1fr) 36px; column-gap: 8px; align-items: center; padding: 10px 12px; border-radius: 8px; }
.ewz-dlg .ewz-ph-list > .well::before, .ewz-dlg .ewz-ph-list > .well::after { display: none; }
.ewz-dlg .ewz-ph-list > .well > [class*="span"] { float: none; width: auto; margin: 0; min-width: 0; }
.ewz-dlg .ewz-ph-list .clearfix { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; font-size: 13.5px; font-weight: 600; line-height: 1.3; word-break: break-all; }
.ewz-dlg .ewz-ph-list .clearfix::before, .ewz-dlg .ewz-ph-list .clearfix::after { display: none; }
.ewz-dlg .ewz-ph-list .clearfix small { font-weight: 400; color: var(--gray-text); white-space: nowrap; }
.ewz-dlg .ewz-ph-list .status { float: none !important; margin-left: auto; font-size: 12.5px; font-weight: 600; }
.ewz-dlg .ewz-ph-list .status.green { color: #2e7d32; }
.ewz-dlg .ewz-ph-list .progress { height: 6px; margin: 8px 0 0; background: var(--gray-bg); border-radius: 3px; box-shadow: none; overflow: hidden; }
.ewz-dlg .ewz-ph-list .progress .bar { background: var(--orange); box-shadow: none; }
.ewz-dlg .ewz-ph-list .tm-uprow-x { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: transparent; color: var(--gray-text); font-size: 16px; line-height: 1; cursor: pointer; }
.ewz-dlg .ewz-ph-list .tm-uprow-x:hover { background: var(--gray-bg); color: #b3261e; }
.ewz-dlg .ewz-ph-list .tm-uprow-x:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.ewz-dlg #ride-edit-container .tm-tiles > .tm-empty { grid-column: 1 / -1; padding: 14px 0; color: var(--gray-text); }
@media (max-width: 520px) { .ewz-dlg #ride-edit-container .tm-tiles .box .btn { padding: 0 8px; } .ewz-dlg #ride-edit-container .tm-tiles .box .btn .icon { display: none; } }
