:root {
  --bg: #f8f9fa;         /* Google surface grey */
  --card: #ffffff;
  --ink: #202124;        /* Google grey-900 */
  --muted: #5f6368;      /* Google grey-600 */
  --brand: #1a73e8;      /* Google product blue */
  --brand-dark: #1557b0;
  --border: #dadce0;     /* Google grey-300 */
  --ok: #188038;         /* Google green */
  --err: #d93025;        /* Google red */
  --warn: #e37400;       /* Google amber */
}

* { box-sizing: border-box; }

/* Consistent keyboard-focus ring across every interactive element. */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

body {
  margin: 0;
  font-family: "Rubik", "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a { color: var(--brand); }

/* Small, unobtrusive build stamp at the bottom of every page — lets Omri
   confirm at a glance which version is actually live after a deploy. */
.app-version {
  margin-top: 28px; padding-top: 14px;
  text-align: center; font-size: .78rem; color: var(--muted); opacity: .7;
  letter-spacing: .02em; font-variant-numeric: tabular-nums;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}
.wrap.wide { max-width: 1040px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .10), 0 1px 3px 1px rgba(60, 64, 67, .06);
  margin-bottom: 20px;
}

h1 { font-size: 1.7rem; margin: 0 0 8px; }
h2 { font-size: 1.25rem; margin: 20px 0 10px; }
.muted { color: var(--muted); }

.event-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

label { display: block; font-weight: 500; margin: 14px 0 6px; }

input[type=text], input[type=email], input[type=date],
input[type=time], input[type=number], input[type=url], textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, .15);
}

textarea { min-height: 90px; resize: vertical; }

/* Form <select> (time picker, settings pickers) styled like text inputs.
   Excludes the reminder-editor template dropdown, which is a .btn-secondary pill. */
select:not(.btn-secondary) {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
select:not(.btn-secondary):focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, .15);
}

/* Visually hidden without extending page width (a -9999px offset causes a huge
   horizontal scroll on RTL pages). */
.honeypot {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); border: 0;
}

button, .btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 12px 20px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
  transition: background-color .15s ease, box-shadow .15s ease, transform .05s ease;
}
button:hover, .btn:hover {
  background: var(--brand-dark);
  box-shadow: 0 1px 3px 0 rgba(60, 64, 67, .30), 0 4px 8px 3px rgba(60, 64, 67, .15);
}
button:active, .btn:active { transform: translateY(1px); }

.btn-secondary { background: #e8f0fe; color: var(--brand); box-shadow: none; }
.btn-secondary:hover { background: #d2e3fc; box-shadow: none; }
.btn-danger { background: #fee2e2; color: var(--err); }
.btn-danger:hover { background: #fecaca; }
.btn-sm { padding: 5px 10px; font-size: .85rem; }

td.actions { text-align: left; white-space: nowrap; }
td.actions form { display: inline; margin: 0; }

tr.row-link { cursor: pointer; }
tr.row-link:hover { background: rgba(26, 115, 232, .04); }

.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > div { flex: 1; min-width: 140px; }

.msg { padding: 12px 14px; border-radius: 10px; margin: 12px 0; }
.msg.error { background: #fce8e6; color: var(--err); border: 1px solid #f6c9c4; }
.msg.ok, .msg.success { background: #e6f4ea; color: var(--ok); border: 1px solid #b7dfc2; }
.msg.warning { background: #fef7e0; color: var(--warn); border: 1px solid #fde293; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: right; padding: 9px 8px; border-bottom: 1px solid var(--border); }
/* Long, unbreakable values (emails are dir="ltr") must wrap rather than force
   the table wider than a phone screen. Harmless on desktop. */
td[dir="ltr"] { overflow-wrap: anywhere; }
th { color: var(--muted); font-weight: 600; font-size: .9rem; }
tbody tr { transition: background-color .12s ease; }
tbody tr:hover { background: rgba(26, 115, 232, .04); }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.badge.active { background: #e6f4ea; color: var(--ok); }
.badge.draft { background: #fef7e0; color: var(--warn); }
.badge.canceled { background: #fce8e6; color: var(--err); }
.badge--before { background: #e8f0fe; color: #1a56db; }
.badge--after { background: #fffbeb; color: #92400e; }
/* "sorted itself out" — e.g. a waiting-list person who already picked a new date. */
.badge--ok { background: #ecfdf5; color: #047857; }
/* A waiting-list row already invited to the currently-selected target event —
   dimmed, since it's excluded from this send (see admin_notify_new_date.html). */
tr.is-muted { opacity: .5; }
/* Reminder-row statuses — distinct at a glance: scheduled=green (will send),
   sent=blue (done, calm), skipped=amber (needs a look), canceled=red/grey. */
.badge.scheduled { background: #e6f4ea; color: var(--ok); }
.badge.sent { background: #e8f0fe; color: #1a56db; }
.badge.skipped { background: #fef7e0; color: var(--warn); }
.nowrap { white-space: nowrap; }

/* Event categories: filter chips above the list, and the per-row tag. Neutral
   grey on purpose — the status badge next to it is the colour-coded one, and
   two competing colour systems in one row read as noise. */
.cat-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.cat-chip {
  display: inline-block; font-size: .85rem; font-weight: 500;
  padding: 5px 12px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--border); color: var(--muted); background: #fff;
}
.cat-chip:hover { background: #f1f5f9; }
.cat-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.cat-tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; background: #f1f5f9; color: #475569;
  white-space: nowrap;
}

.share-box, .url-box {
  background: #f8fafc;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 12px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: .9rem;
  word-break: break-all;
  white-space: pre-wrap;
}

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.topbar > div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pill-link {
  display: inline-block; font-size: .9rem; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  color: var(--brand); transition: background-color .15s ease;
}
.pill-link:hover { background: rgba(26, 115, 232, .08); }

.brand-card { padding: 0; overflow: hidden; }
.brand-bar { display: flex; height: 6px; }
.brand-bar > div { flex: 1; }
.brand-body { padding: 24px; }
.brand-logo { display: block; margin: 0 auto 18px; width: 88px; }

/* Tabbed navigation on the event page (Overview / Reminders / Analytics / Registrants). */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
/* One clean, flat tab strip. Both in-page tab buttons (.tab-link) and the tabs
   that navigate to a dedicated page (.tab-navlink) share the exact same look —
   no button box/shadow, transparent bg, underline for hover/active. */
.tab-link, .tab-navlink {
  display: inline-block;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 14px;
  border: 0;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  box-shadow: none;
  text-decoration: none;
  white-space: nowrap;
}
.tab-link:hover, .tab-navlink:hover {
  background: transparent;
  color: var(--brand-dark);
  border-bottom-color: #c6dafc;
  box-shadow: none;
}
.tab-link:active { transform: none; }
.tab-link.is-active {
  color: var(--brand-dark);
  border-bottom-color: var(--brand);
}
.tab-navlink .tab-plus, .tab-plus { color: var(--brand); font-weight: 800; }
.tab-panel[hidden] { display: none; }

/* Registrants list toolbar — search + sort. */
.reg-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.reg-toolbar .reg-search { flex: 1 1 240px; min-width: 180px; margin: 0; }
.reg-toolbar .reg-sort-label { font-size: .9rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.reg-toolbar .reg-sort { width: auto; margin: 0; }
.reg-toolbar .reg-count { margin-inline-start: auto; font-size: .88rem; }

/* Visually group each reminder editor so the dense list is easier to scan. */
.reminder {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  background: #fbfcfe;
}
.reminder--confirmation { background: #f1f6fe; border-color: #d2e3fc; }
/* Reminder card header: icon + friendly Hebrew name + status, above the raw
   date/time fields — so scanning the list means reading names, not ids. */
.reminder__head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.reminder__title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.02rem; }
.reminder__icon { font-size: 1.15rem; line-height: 1; }
.reminder__id { color: var(--muted); font-weight: 400; font-size: .82rem; }
.reminder__head .badge { margin-inline-start: auto; }
/* A skipped reminder has no copy and will never send — explain why, in place,
   rather than leaving an unexplained grey pill. */
.reminder__hint {
  display: flex; gap: 8px; align-items: flex-start;
  background: #fef7e0; border: 1px solid #fde293; color: #7a5900;
  border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: .88rem;
}
.reminder__hint .hint-icon { flex: none; }
/* A wrong date reads as perfectly correct, so this one warning has to out-shout
   the amber "just so you know" hints it sits beside. */
.reminder__hint--warn {
  background: #fce8e6; border-color: #f5b7b1; color: #a50e0e;
}
/* One line at the top of the reminders panel surfacing whether a meeting link
   is set — the button every email tries to show depends on it. */
.meet-status {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  border-radius: 10px; padding: 10px 12px; margin-bottom: 16px; font-size: .9rem;
}
.meet-status.is-set { background: #e6f4ea; color: var(--ok); }
.meet-status.is-missing { background: #fef7e0; color: #7a5900; }
.meet-status a { color: inherit; text-decoration: underline; font-weight: 600; }
.ai-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.ai-controls .js-ai-panel { flex-basis: 100%; }
.js-save-status.is-error { color: var(--err); }

/* A row of panel-level actions (each often its own one-button <form>), instead
   of a stacked column of them. */
.panel-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px;
}
.panel-toolbar form { margin: 0; }

.editor-toolbar {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin-bottom: 12px; padding: 8px; border-radius: 12px;
  background: #f1f6fe; border: 1px solid #d2e3fc;
}
/* Selects (size / font) styled as pills to match the toolbar buttons. */
.editor-toolbar select {
  width: auto; padding: 5px 10px; font-size: .85rem; font-weight: 600;
  border-radius: 10px; border: 0; background: #e8f0fe; color: var(--brand-dark);
  cursor: pointer;
}
/* Colour picker wrapped in a pill label. */
.tb-color {
  display: inline-flex; align-items: center; gap: 6px; margin: 0;
  padding: 3px 10px; font-size: .85rem; font-weight: 600;
  border-radius: 10px; background: #e8f0fe; color: var(--brand-dark); cursor: pointer;
}
.tb-color input[type=color] {
  width: 26px; height: 22px; padding: 0; border: 0; border-radius: 6px;
  background: none; cursor: pointer;
}
/* Thin divider between formatting and insert groups. */
.tb-sep { width: 1px; align-self: stretch; margin: 2px 4px; background: #d2e3fc; }

/* Inline signature editor in the composer (admin only). Sits under the
   "add the automatic signature" checkbox, so it reads as belonging to it. */
/* The recording link, above the follow-up email it feeds. */
.recording-box {
  border: 1px solid #e0e0e0; border-radius: 10px;
  padding: 12px 14px; margin-bottom: 14px; background: #fafafa;
}
.recording-box__warn { color: #b06000; }
.recording-box__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.recording-box__row label { flex-basis: 100%; margin: 0; }
.recording-box__row input[type="url"] { flex: 1 1 320px; width: auto; }

.waiting-box textarea { width: 100%; }
.waiting-box .js-waiting-status.is-error { color: #c5221f; }

/* Restore-a-previous-version + save-as-default, one row under the AI controls. */
.stage-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.stage-tools .js-stage-status { font-size: .85rem; }
.stage-tools .js-stage-status.is-error { color: #c5221f; }

.sig-edit { margin-top: 6px; }
.sig-edit > summary {
  cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--brand-dark);
}
.sig-edit__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sig-edit__row { margin-bottom: 6px; }
.sig-edit__row input { flex: 1 1 200px; width: auto; }
/* The phone is short; without this it takes the same width as the site. */
.sig-edit__row .js-org-whatsapp { flex: 0 1 160px; }

/* The hand-rolled .btnbuilder / .uidlg dialogs lived here. Both belonged to the
   old email composer and both are gone — TinyMCE renders its own dialogs
   (windowManager.open), so there is nothing left on any page carrying those
   classes. `.editor-toolbar` and `.html-advanced` above/below deliberately STAY:
   the sign-up-description editor on admin_event.html still uses them, and it is
   a different editor that was never part of this change. */

/* Roomy, comfortable sign-up description editor (not a cramped text box). */
.desc-edit {
  min-height: 200px;
  padding: 18px 20px;
  font-size: 1.05rem;
  line-height: 1.75;
  border-radius: 14px;
  background: #fbfcfe;
}
.desc-edit:focus { background: #fff; }

/* The description is edited in place — one contentEditable box that shows the
   bold/highlight formatting live, instead of a raw textarea plus a separate
   read-only preview underneath (static/description_format.js). A <div> gets
   none of the global textarea chrome, so restore it here. */
.desc-wysiwyg {
  border: 1px solid var(--border);
  direction: rtl;
  text-align: right;
  white-space: pre-wrap;
  outline: none;
}
.desc-wysiwyg:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26, 115, 232, .15); }
.desc-wysiwyg mark { color: inherit; }
.html-advanced > summary {
  color: var(--muted);
  cursor: pointer;
  font-size: .9rem;
  margin-bottom: 6px;
  user-select: none;
}
.html-advanced[open] > summary { margin-bottom: 8px; }

/* ---- Email composer (static/reminder_blocks.js -> TinyMCE) ----
   The palette-era rules (.blocks-list, .block-palette, .block-row*,
   .block-fields-row, .block-field, .block-*-preview, .block-section-box,
   .block-raw-html) were dead long before TinyMCE arrived — the editor stopped
   rendering stacked blocks and nothing has created those elements since. They
   are gone rather than kept "just in case": a stylesheet that describes a UI
   the app no longer has is a map to a place that doesn't exist. */

/* The <textarea> TinyMCE mounts onto. Normally invisible — TinyMCE hides it on
   init — but it is also the deliberate fallback surface if the editor script
   fails to load, so it has to be usable rather than merely present. */
.email-body-source {
  width: 100%; min-height: 260px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 12px; background: #fff;
  font-family: monospace; font-size: .9rem; line-height: 1.6;
  direction: ltr; text-align: left;
}
.email-body-source:focus {
  border-color: #d2e3fc; box-shadow: 0 0 0 3px rgba(66,133,244,.12); outline: none;
}
/* Round TinyMCE's own chrome to match the cards it sits inside. */
.block-editor .tox-tinymce { border-radius: 12px; border-color: var(--border); }

/* "👁️ תצוגה מקדימה" — the email inside its real branded shell. The iframe is
   what keeps the email's own styling from colliding with the admin page's. */
.preview-pane {
  margin-top: 12px; padding: 10px; background: #f6f8fc;
  border: 1px solid var(--border); border-radius: 12px;
}
.preview-pane iframe {
  display: block; width: 100%; height: 620px;
  border: 0; border-radius: 8px; background: #fff;
}
.js-preview-status.is-error, .js-save-status.is-error, .js-test-status.is-error {
  color: #c5221f;
}

/* "Edit event details" collapsible on the Overview tab. */
.edit-details > summary {
  cursor: pointer; user-select: none; font-weight: 600; color: var(--brand-dark);
  background: #e8f0fe; border-radius: 10px; padding: 10px 14px; display: inline-block;
}
.edit-details[open] > summary { margin-bottom: 4px; }

/* Utility classes (replace scattered inline styles). */
.field-hint { color: var(--muted); font-size: .9rem; margin-top: -2px; }
.form-inline-row { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.grow-ltr { flex: 1; text-align: left; }
/* A <select> inside .form-inline-row would otherwise inherit the global
   select{width:100%} rule as its flex-basis (flex-basis:auto resolves from
   width), claiming almost the whole row and squeezing a sibling .grow-ltr
   input down to nothing — pin it to its content width instead. */
.form-inline-row select { flex: 0 0 auto; width: auto; }
/* ---- Public registration page (conversion-oriented) ---- */
/* Roomy but not sprawling: wide enough that the description reads big and
   comfortable, still narrow enough to keep the form focused for conversion. */
.reg-card { max-width: 680px; margin-inline: auto; }
.reg-card .brand-body { padding: 40px 48px; }
/* Headline: smaller by default, with three admin-selectable sizes. */
.reg-title { text-align: center; margin: 6px 0 22px; line-height: 1.3; }
.reg-title--small { font-size: 1.25rem; }
.reg-title--medium { font-size: 1.55rem; }
.reg-title--large { font-size: 1.95rem; }
.event-desc {
  white-space: pre-line;      /* keep the admin's paragraph/line breaks */
  color: var(--ink);          /* high contrast, not muted grey */
  font-size: 1.2rem;
  line-height: 1.9;
  margin: 4px 0;
}
.reg-sep { border: 0; border-top: 1px solid var(--border); margin: 30px 0; }
/* Emphasized "when" callout — date/time/duration/online, so the details
   people scan for on a sign-up page jump out instead of blending into the
   description paragraph. */
.when-box {
  background: #f8fafc; border: 1px solid var(--border); border-inline-start: 4px solid var(--brand);
  border-radius: 12px; padding: 14px 18px; margin: 18px 0 8px;
  display: flex; flex-direction: column; gap: 8px;
}
.when-box__row { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.when-box__icon { font-size: 1.2rem; }
.when-box--past { background: #f1f5f9; border-inline-start-color: #94a3b8; color: var(--muted); }
/* Phase banner above the sign-up form: live (happening now) / ended (waiting list). */
.phase-banner {
  border-radius: 12px; padding: 12px 16px; margin: 16px 0 4px;
  font-size: 1.05rem; font-weight: 600; line-height: 1.5;
}
.phase-banner--live { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.phase-banner--ended { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.reg-nudge { text-align: center; font-size: 1.2rem; font-weight: 600; margin: 0 0 16px; }
/* "Not that date? here are the next ones" — the one-click picker shown on the
   waiting-list success page and on the /pick fallback page. */
.alt-dates-box {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 16px; text-align: center;
}
.alt-dates-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 4px; }
.alt-dates { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.alt-dates form { margin: 0; }
.alt-dates .btn { width: 100%; }
/* Gentle "did you mean gmail.com?" typo nudge under the email field. */
.email-suggest {
  margin: 6px 2px 0; font-size: .92rem; color: var(--muted);
}
.email-suggest__fix {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--brand); font: inherit; font-weight: 600;
  text-decoration: underline; direction: ltr; unicode-bidi: isolate;
}
.email-suggest__fix:hover { color: var(--brand-dark); }
.reg-form label { font-size: 1.02rem; }
.optin-row {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  background: #f8fafc; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; margin: 18px 0 8px; font-weight: 500;
}
.optin-row input { width: auto; margin: 3px 0 0; flex: 0 0 auto; transform: scale(1.25); }
/* Attendance choice — a clear yes/no at the top of the form, kept visually
   distinct from the mailing-list opt-in checkbox below it. */
.attend-choice {
  border: 1px solid var(--border); border-inline-start: 4px solid var(--brand);
  border-radius: 12px; padding: 14px 16px; margin: 0 0 20px;
}
.attend-choice legend { font-weight: 700; font-size: 1.05rem; padding: 0 6px; color: var(--ink); }
.attend-opt {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  padding: 8px 4px; font-weight: 500;
}
.attend-opt input { width: auto; margin: 3px 0 0; flex: 0 0 auto; transform: scale(1.25); }
.btn-cta {
  display: block; width: 100%; margin-top: 18px;
  padding: 16px 24px; font-size: 1.15rem; font-weight: 700;
  box-shadow: 0 6px 16px rgba(26, 115, 232, .3);
}
.reg-fineprint { text-align: center; font-size: .85rem; margin: 12px 0 0; }

@media (max-width: 560px) {
  .reg-card .brand-body { padding: 26px 20px; }
  .reg-title--large { font-size: 1.6rem; }
  .reg-title--medium { font-size: 1.4rem; }
  .reg-title--small { font-size: 1.2rem; }
  .event-desc { font-size: 1.1rem; line-height: 1.8; }
}

/* ---- Admin pages on mobile ---- */
@media (max-width: 560px) {
  .wrap { padding: 18px 14px 48px; }
  .card { padding: 18px 16px; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.15rem; }
  /* Wide data tables become their own horizontal scroll container, so a table
     that still can't shrink scrolls inside its card rather than pushing the
     whole page sideways. display:block on <table> keeps the internal table
     layout (thead/tbody/tr/td keep their table-* display) while turning the
     outer box into a scroll container. */
  table { display: block; overflow-x: auto; font-size: .92rem; }
  th, td { padding: 8px 6px; }
}

/* ---- Admin sign-up funnel ---- */
.funnel {
  display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap;
  margin: 14px 0 4px;
}
.funnel-stat {
  flex: 1; min-width: 120px; text-align: center;
  background: #f8fafc; border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 12px;
}
.funnel-num { font-size: 2.2rem; font-weight: 800; color: var(--brand-dark); line-height: 1; }
.funnel-label { margin-top: 8px; font-weight: 600; }
.funnel-sub { font-size: .85rem; margin-top: 2px; }
.funnel-arrow { align-self: center; color: var(--muted); font-size: 1.4rem; }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.center { text-align: center; }
.input-ltr { text-align: left; }
.inline-form { display: inline; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-weight: normal; cursor: pointer; }
.checkbox-row input { width: auto; margin: 0; }

/* ---- New-event AI assistant (chat) ---------------------------------------- */
.assistant { border-color: #d2e3fc; background: linear-gradient(180deg, #fbfcff, #fff); }
.assistant-head h2 { margin-top: 0; }
.assistant-log { display: flex; flex-direction: column; gap: 8px; max-height: 340px;
  overflow-y: auto; margin: 4px 0 12px; }
.assistant-log:empty { display: none; }
.assistant-msg { max-width: 85%; padding: 9px 13px; border-radius: 14px;
  white-space: pre-wrap; line-height: 1.5; }
.assistant-msg--user { align-self: flex-start; background: var(--brand); color: #fff;
  border-bottom-right-radius: 4px; }
.assistant-msg--model { align-self: flex-end; background: #e8f0fe; color: var(--ink);
  border-bottom-left-radius: 4px; }
.assistant-chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-end;
  margin-bottom: 4px; }
.assistant-chip { background: #fff; color: var(--brand-dark); border: 1px solid #d2e3fc;
  border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 600; cursor: pointer; }
.assistant-chip:hover { background: #e8f0fe; }
.assistant-chip--all { background: var(--brand); color: #fff; border-color: var(--brand); }
.assistant-chip--all:hover { background: var(--brand-dark); }
.assistant-chip--done { background: #f0fdf4; color: var(--ok); border-color: #bbf7d0; }
.assistant-input textarea { margin-bottom: 8px; }
.assistant-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.assistant-controls .btn-sm { background: var(--brand); color: #fff; }
.assistant-ground { display: flex; align-items: center; gap: 6px; font-weight: normal;
  font-size: .9rem; cursor: pointer; margin: 0; }
.assistant-ground input { width: auto; margin: 0; }
/* brief highlight on an input the assistant just filled */
.field-filled { border-color: var(--ok) !important; box-shadow: 0 0 0 3px rgba(22,163,74,.15) !important; }

/* ---- Event-image guidance ------------------------------------------------- */
.img-guide { margin-top: 8px; }
.img-warn, .img-note { padding: 8px 12px; border-radius: 10px; margin: 8px 0; font-size: .9rem; }
.img-warn--bad { background: #fce8e6; color: var(--err); border: 1px solid #f6c9c4; }
.img-warn--warn { background: #fef7e0; color: var(--warn); border: 1px solid #fde293; }
.img-warn--ok { background: #e6f4ea; color: var(--ok); border: 1px solid #b7dfc2; }

/* ---- Daily send-cap forecast card (admin dashboard) -------------------- */
.forecast-card { margin-bottom: 16px; }
.forecast-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.forecast-title { font-size: 1rem; margin: 0 0 2px; }
.forecast-sub { margin: 0; font-size: .9rem; }
.meter { flex: 1; min-width: 160px; max-width: 320px; height: 10px; background: #e8eaed; border-radius: 999px; overflow: hidden; }
.meter-fill { height: 100%; background: var(--brand); border-radius: 999px; }
.meter-fill.near { background: var(--warn); }
.meter-fill.over { background: var(--err); }
.forecast-warn { margin: 12px 0 4px; }
.forecast-bars { display: flex; gap: 8px; align-items: flex-end; height: 110px; margin: 14px 0 6px; overflow-x: auto; }
.forecast-bar { flex: 1 0 44px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.forecast-bar .fill { width: 70%; min-height: 3px; background: var(--brand); border-radius: 5px 5px 0 0; }
.forecast-bar.near .fill { background: var(--warn); }
.forecast-bar.over .fill { background: var(--err); }
.forecast-bar.today .fill { outline: 2px dashed var(--muted); outline-offset: 1px; }
.forecast-bar .val { font-size: 11px; color: var(--ink); margin-bottom: 3px; }
.forecast-bar .lbl { font-size: 11px; color: var(--muted); margin-top: 5px; white-space: nowrap; }
.forecast-note { font-size: .8rem; margin: 4px 0 0; }

/* ---- Custom survey question widgets (public registration form) ---------- */
.custom-q { margin: 14px 0; }
.custom-q > label { display: block; font-weight: 600; margin-bottom: 6px; }
.custom-q .req { color: var(--err); }
.choice-group { display: flex; flex-direction: column; gap: 2px; }

/* Star rating */
.rating-input { display: flex; gap: 6px; direction: ltr; justify-content: flex-end; }
.rating-input .star {
  background: none; border: none; cursor: pointer; padding: 2px;
  font-size: 2rem; line-height: 1; color: #f5b301;
}
.rating-input .star.is-on { color: #f5b301; }

/* 0–10 scale / NPS */
.scale-input { display: flex; flex-wrap: wrap; gap: 6px; direction: ltr; justify-content: flex-end; }
.scale-input .scale-btn {
  min-width: 40px; padding: 8px 0; cursor: pointer;
  border: 1px solid #dadce0; border-radius: 8px; background: #fff;
  font-weight: 600; color: var(--ink);
}
.scale-input .scale-btn.is-on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* One-word */
.one-word-input { max-width: 260px; }

/* Finger drawing */
.drawing-input { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.draw-canvas {
  width: 100%; max-width: 600px; height: auto; touch-action: none;
  border: 2px dashed #dadce0; border-radius: 12px; background: #fff; cursor: crosshair;
}
.draw-clear { align-self: flex-start; }

/* ---- Survey results dashboard ------------------------------------------- */
.sv-q { padding: 16px 0; border-bottom: 1px solid #eee; }
.sv-q:last-child { border-bottom: none; }
.sv-q-title { margin: 0 0 12px; font-size: 1.05rem; }
.sv-q-n { font-weight: 400; font-size: .85rem; }
.sv-bars { display: flex; flex-direction: column; gap: 8px; }
.sv-bar-row { display: flex; align-items: center; gap: 10px; }
.sv-bar-label { flex: 0 0 34%; text-align: right; font-size: .9rem; }
.sv-bar-track { flex: 1; height: 20px; background: #f1f3f4; border-radius: 6px; overflow: hidden; }
.sv-bar-fill { display: block; height: 100%; background: var(--brand); border-radius: 6px; min-width: 2px; }
.sv-bar-val { flex: 0 0 auto; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.sv-avg { font-size: 2rem; font-weight: 700; color: #f5b301; margin-bottom: 10px; }
.sv-avg span { font-size: .9rem; color: var(--muted); font-weight: 400; }
.sv-tiles { display: flex; gap: 12px; margin-bottom: 12px; }
.sv-tile { background: #f1f3f4; border-radius: 10px; padding: 10px 18px; text-align: center; }
.sv-tile b { display: block; font-size: 1.6rem; color: var(--brand); }
.sv-tile span { font-size: .78rem; color: var(--muted); }
.sv-scale { display: flex; align-items: flex-end; gap: 6px; height: 120px; direction: ltr; }
.sv-scale-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.sv-scale-fill { width: 70%; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; }
.sv-scale-n { margin-top: 4px; font-size: .75rem; color: var(--muted); }
.sv-cloud { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; line-height: 1.35; padding: 6px 0; }
.sv-word { font-weight: 700; }
.sv-c0 { color: #1a73e8; } .sv-c1 { color: #d93025; } .sv-c2 { color: #188038; }
.sv-c3 { color: #e37400; } .sv-c4 { color: #9334e6; } .sv-c5 { color: #12a4af; }
.sv-gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.sv-gallery img { width: 150px; height: 100px; object-fit: contain; background: #fff;
  border: 1px solid #dadce0; border-radius: 8px; }
.sv-thumb { width: 56px; height: 38px; object-fit: contain; border: 1px solid #dadce0; border-radius: 4px; }
.sv-list { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 4px; }
.sv-list li { font-size: .92rem; }

/* ---- QR screen: timer, stopwatch, live counter -------------------------- */
.qr-live { margin-top: 18px; }
.qr-live-num { font-size: clamp(40px, 8vw, 92px); font-weight: 800; color: var(--brand); line-height: 1; }
.qr-live-lbl { display: block; font-size: clamp(14px, 2vw, 22px); color: var(--muted); }
.qr-timer { text-align: center; margin: 18px 0; }
.qr-timer-display {
  font-size: clamp(56px, 14vw, 160px); font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--ink); letter-spacing: 2px;
}
.qr-timer-display.is-done { color: var(--err); animation: qr-flash .6s step-start 6; }
@keyframes qr-flash { 50% { opacity: .15; } }
.qr-timer-controls { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: center; align-items: center; margin-top: 12px; }
.qr-mode-btn.is-on { background: var(--brand); color: #fff; border-color: var(--brand); }
.qr-toggle { font-size: .9rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.qr-toggle input { width: auto; }

/* ---- Live projected results screen (dark, big) -------------------------- */
.live-screen { color: #f8f9fa; }
.live-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 8px 4px 18px; border-bottom: 1px solid #3c4043; margin-bottom: 18px; }
.live-title { font-size: clamp(24px, 4vw, 48px); margin: 0; flex: 1; }
.live-count { font-size: clamp(18px, 3vw, 34px); font-weight: 700; color: #8ab4f8; }
.live-count span { font-size: 1.3em; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.live-card { background: #202124; border: 1px solid #3c4043; border-radius: 14px; padding: 18px 20px; }
.live-card-title { margin: 0 0 14px; font-size: clamp(18px, 2vw, 26px); color: #f8f9fa; }
.live-big { font-size: clamp(36px, 6vw, 72px); font-weight: 800; color: #fdd663; margin-bottom: 10px; }
/* Reuse the dashboard chart classes but lighten text/tracks for the dark bg. */
.live-card .sv-bar-track { background: #3c4043; }
.live-card .sv-bar-label, .live-card .sv-bar-val { color: #e8eaed; }
.live-card .sv-tile { background: #303134; }
.live-card .sv-cloud .sv-word { text-shadow: 0 1px 2px rgba(0,0,0,.4); }

/* ---- Live screen: one question at a time, with prev/next nav ------------ */
.live-single { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.live-nav { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.live-nav-btn { background: #202124; color: #e8eaed; border: 1px solid #3c4043; border-radius: 10px;
  padding: 10px 18px; font-size: 1rem; font-weight: 700; cursor: pointer; }
.live-nav-btn:hover { background: #303134; }
.live-counter { font-size: 1.1rem; font-weight: 700; color: #9aa0a6; min-width: 60px; text-align: center; }
.live-card-slot { width: 100%; max-width: 760px; }
.live-card-slot .live-card { padding: 28px 32px; }
.live-card-slot .live-card-title { font-size: clamp(22px, 3vw, 34px); }

/* ---- Event-type choice cards (new-event form) --------------------------- */
.type-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 6px; }
.type-choice label {
  display: block; border: 2px solid #dadce0; border-radius: 14px; padding: 16px;
  cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.type-choice label:has(input:checked) { border-color: var(--brand); background: #e8f0fe; }
.type-choice input { width: auto; margin-inline-end: 8px; accent-color: var(--brand); }
.type-choice .tc-title { font-weight: 700; font-size: 1.05rem; }
.type-choice .tc-sub { display: block; color: var(--muted); font-size: .85rem; margin-top: 6px; }
@media (max-width: 600px) { .type-choice { grid-template-columns: 1fr; } }

/* ---- "What now?" guidance strip (event page) ---------------------------- */
.next-steps { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  background: #f8fafc; border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 16px; margin-bottom: 14px; font-size: .92rem; }
.next-steps .ns-title { font-weight: 700; color: var(--muted); }
.next-steps .ns-step { display: inline-flex; align-items: center; gap: 6px; }
/* Every step is an anchor (each links to where you'd go do it) — keep them
   looking like plain steps, with a hover hint that they're clickable. */
.next-steps a.ns-step { color: inherit; text-decoration: none; }
.next-steps a.ns-step:hover { text-decoration: underline; }
.next-steps .ns-step.is-done { color: #188038; }
.next-steps .ns-step.is-done .ns-num { background: #188038; }
.next-steps .ns-num { display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff;
  font-size: .78rem; font-weight: 700; flex: none; }
.next-steps .ns-arrow { color: var(--muted); }

/* ---- The one big Present button + hero action row ----------------------- */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin-bottom: 16px; }
.btn-present {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  flex: 1 1 260px; padding: 18px 28px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; font-size: 1.25rem; font-weight: 800;
  text-decoration: none; box-shadow: 0 3px 10px rgba(26, 115, 232, .35);
  transition: background-color .15s ease, transform .1s ease;
}
.btn-present:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-present .bp-sub { display: block; font-size: .8rem; font-weight: 400; opacity: .9; }
.hero-secondary { flex: 1 1 200px; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; padding: 14px 20px; border-radius: 14px;
  border: 2px solid var(--brand); background: #fff; color: var(--brand-dark);
  font-size: 1.05rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.hero-secondary:hover { background: #e8f0fe; }

/* ---- Task action cards (event page) ------------------------------------- */
.action-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px; margin-bottom: 18px; }
.action-card {
  display: block; background: #fff; border: 1.5px solid #dadce0; border-radius: 14px;
  padding: 14px 16px; text-decoration: none; color: var(--ink); text-align: center;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.action-card:hover { border-color: var(--brand); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.action-card .ac-icon { display: block; font-size: 1.7rem; margin-bottom: 4px; }
.action-card .ac-title { display: block; font-weight: 700; }
.action-card .ac-sub { display: block; color: var(--muted); font-size: .8rem; margin-top: 3px; }

/* ---- Present screen (Mentimeter-style: QR + live results together) ------ */
.present { color: #f8f9fa; }
.present-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 6px 4px 14px; border-bottom: 1px solid #3c4043; margin-bottom: 18px; }
.present-title { font-size: clamp(20px, 2.6vw, 32px); margin: 0; flex: 1 1 260px; min-width: 0; }
.present-count { font-size: clamp(16px, 2.5vw, 30px); font-weight: 700; color: #8ab4f8; white-space: nowrap; }
.present-count span { font-size: 1.3em; }
.present-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.present-controls .btn { background: #202124; color: #e8eaed; border: 1px solid #3c4043; }
.present-controls .btn:hover { background: #303134; }
.present-join { text-align: center; padding: 4vh 8px; }
.present-join .pj-cta { font-size: clamp(24px, 4.5vw, 52px); font-weight: 800; margin: 20px 0 8px; }
.present-join .pj-url { direction: ltr; font-size: clamp(15px, 2.2vw, 26px); color: #9aa0a6; }
.present-join img.qr { width: min(62vmin, 520px); height: auto; border-radius: 18px;
  background: #fff; padding: 12px; border: 6px solid var(--brand); }
.present-results { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; }
.present-qr-mini { position: sticky; top: 12px; text-align: center; background: #202124;
  border: 1px solid #3c4043; border-radius: 14px; padding: 14px; width: 190px; }
.present-qr-mini img.qr { width: 150px; height: 150px; background: #fff; border-radius: 10px; padding: 6px; }
.present-qr-mini .pj-url { direction: ltr; font-size: .72rem; color: #9aa0a6; word-break: break-all; margin-top: 8px; }
.present-qr-mini .pm-lbl { font-size: .85rem; font-weight: 700; margin-top: 6px; }
.present .qr-timer { color: #f8f9fa; }
.present .qr-timer-display { color: #f8f9fa; }
.present .qr-timer .btn { background: #202124; color: #e8eaed; border: 1px solid #3c4043; }
.present .qr-timer .qr-mode-btn.is-on { background: var(--brand); color: #fff; border-color: var(--brand); }
.present .qr-toggle { color: #9aa0a6; }
.present-results .live-card { animation: present-in .35s ease both; }
@keyframes present-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .present-results { grid-template-columns: 1fr; }
  .present-qr-mini { position: static; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .present-results .live-card { animation: none; }
  .btn-present:hover { transform: none; }
}

/* ---- Dashboard "ניהול" dropdown menu ------------------------------------ */
.admin-menu { position: relative; display: inline-block; }
.admin-menu summary { list-style: none; cursor: pointer; }
.admin-menu summary::-webkit-details-marker { display: none; }
.admin-menu[open] summary .pill-link { background: rgba(26, 115, 232, .08); }
.admin-menu-list { position: absolute; inset-inline-end: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12); padding: 6px; min-width: 210px; z-index: 30; }
.admin-menu-list a { display: block; padding: 9px 12px; border-radius: 8px;
  text-decoration: none; color: var(--ink); font-size: .95rem; white-space: nowrap; }
.admin-menu-list a:hover { background: #e8f0fe; color: var(--brand-dark); }

/* ---- Live countdown-to-start widget (public sign-up page) --------------- */
.countdown { display: flex; gap: 10px; justify-content: center; margin: 18px 0 8px; }
.countdown__unit {
  background: #f8fafc; border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 14px; min-width: 64px; text-align: center;
}
.countdown__num {
  display: block; font-size: 1.7rem; font-weight: 800; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.countdown__label { display: block; font-size: .75rem; color: var(--muted); margin-top: 2px; }
.countdown-live-msg { text-align: center; font-weight: 700; font-size: 1.1rem; color: #b91c1c; margin: 18px 0 8px; }
@media (max-width: 560px) {
  .countdown { gap: 6px; }
  .countdown__unit { padding: 8px 8px; min-width: 52px; }
  .countdown__num { font-size: 1.3rem; }
}

/* ---- Public sign-up page themes ------------------------------------------
   'classic' (no body class) is the untouched original look — zero visual
   change on deploy. Every other theme is scoped under body.theme-* so it can
   never leak into the admin dashboard, and reads its accent from
   --theme-accent (set inline in register.html from the admin's brand color). */
body.theme-modern .brand-card {
  border-radius: 20px; box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
  border-top: 6px solid var(--theme-accent);
}
body.theme-modern .brand-bar { display: none; }
body.theme-modern .btn-cta { background: var(--theme-accent); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
body.theme-modern a { color: var(--theme-accent); }
body.theme-modern .when-box, body.theme-modern .attend-choice { border-inline-start-color: var(--theme-accent); }

body.theme-dark { background: #0f172a; }
body.theme-dark .brand-card { background: #1e293b; }
body.theme-dark .brand-bar { display: none; }
body.theme-dark .reg-title, body.theme-dark .event-desc,
body.theme-dark .when-box__text, body.theme-dark .reg-nudge,
body.theme-dark label, body.theme-dark .countdown__num { color: #e2e8f0; }
body.theme-dark .when-box { background: #0f172a; border-color: #334155; border-inline-start-color: var(--theme-accent); }
body.theme-dark .optin-row, body.theme-dark .attend-choice, body.theme-dark .countdown__unit {
  background: #0f172a; border-color: #334155;
}
body.theme-dark input[type=text], body.theme-dark input[type=email], body.theme-dark textarea,
body.theme-dark select:not(.btn-secondary) { background: #0f172a; color: #e2e8f0; border-color: #334155; }
body.theme-dark .btn-cta { background: var(--theme-accent); }
body.theme-dark a { color: var(--theme-accent); }

body.theme-gradient { background: linear-gradient(160deg, var(--theme-accent) 0%, #0f172a 130%); min-height: 100vh; }
body.theme-gradient .brand-card { border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
body.theme-gradient .brand-bar { display: none; }
body.theme-gradient .btn-cta { background: var(--theme-accent); }

body.theme-minimal .brand-card { box-shadow: none; border: 1px solid var(--border); border-radius: 4px; }
body.theme-minimal .brand-bar { display: none; }
body.theme-minimal .btn-cta { background: var(--theme-accent); border-radius: 4px; box-shadow: none; }
body.theme-minimal .when-box { border-radius: 4px; border-inline-start-color: var(--theme-accent); }
body.theme-minimal a { color: var(--theme-accent); }

/* ---- A/B experiment card (admin Analytics tab) --------------------------- */
.ab-card__variants { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.ab-variant { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.ab-variant__label { font-weight: 700; font-size: .95rem; color: var(--brand-dark); margin-bottom: 4px; }
.ab-variant__rate { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.ab-variant__sub { color: var(--muted); font-size: .85rem; }
.ab-meter { background: var(--border); border-radius: 999px; height: 10px; overflow: hidden; margin: 10px 0; }
.ab-meter__fill { background: var(--brand); height: 100%; border-radius: 999px; transition: width .3s ease; }
.ab-verdict { border-radius: 12px; padding: 12px 16px; font-weight: 600; margin: 10px 0; }
.ab-verdict--sample { background: #f1f5f9; color: var(--muted); }
.ab-verdict--inconclusive { background: #fffbeb; color: #92400e; }
.ab-verdict--trend { background: #eff6ff; color: #1e40af; }
.ab-verdict--confident { background: #f0fdf4; color: #166534; }

/* ---- UTM channel-preset chips (link builder) ------------------------------ */
.utm-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.utm-preset-btn {
  border: 1px solid var(--border); background: #fff; border-radius: 999px;
  padding: 6px 14px; font-size: .85rem; cursor: pointer; color: var(--ink);
}
.utm-preset-btn:hover { background: #e8f0fe; border-color: var(--brand); color: var(--brand-dark); }
/* source / medium / campaign side by side, like every other .row on the page,
   instead of three full-width stacked fields. */
.utm-fields { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.utm-fields label { flex: 1 1 150px; margin-top: 0; font-size: .9rem; }

/* ---- Registrant survey-completion checkmark ------------------------------ */
.reg-feedback-done { color: var(--ok); font-weight: 700; }
.reg-feedback-pending { color: var(--muted); }
