/* ============================================================================
   Gas Station Price Sign Survey — stylesheet
   Desktop-first; the labeling task needs a real screen for Street View.
   ========================================================================= */
:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --border: #e4e6ea;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #1a73e8;
  --accent-hover: #1765cc;
  --ok: #0f9d58;
  --partial: #f9ab00;
  --bad: #d93025;
  --bad-hover: #b3261e;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.45;
}
code, .mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
a { color: var(--accent); }

/* ── University of Chicago brand bar (shown on every screen) ────────────── */
.brandbar {
  background: #800000;
  display: flex; align-items: center;
  height: 52px; padding: 0 24px;
}
.brandbar .uc-logo { height: 36px; width: auto; display: block; }

/* ── Survey stage stepper (onboarding screens) ──────────────────────────── */
.stagebar {
  display: flex; justify-content: center; gap: 6px; flex-wrap: wrap;
  background: #fff; border-bottom: 1px solid var(--border); padding: 9px 16px;
}
.stage {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted); padding: 3px 11px; border-radius: 999px;
}
.stage .sd {
  width: 18px; height: 18px; border-radius: 50%; background: #e8eaed;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--muted);
}
.stage.cur { color: #800000; font-weight: 700; background: #f4e9e9; }
.stage.cur .sd { background: #800000; color: #fff; }
.stage.done { color: var(--ok); }
.stage.done .sd { background: var(--ok); color: #fff; }

/* ── Screen system ──────────────────────────────────────────────────────── */
/* Only the .active screen shows. The 3-class selector for an active centered
   screen keeps `display:flex` more specific than plain `.centered`, so
   non-active screens stay hidden by `.screen { display:none }` and never stack. */
.screen { display: none; }
.screen.active { display: block; }
.screen.centered.active { display: flex; }

/* Centered card screens (intro / consent / demo / quiz / done) — layout only;
   deliberately NO `display` here, so it can't override the show/hide above. */
.centered {
  min-height: calc(100vh - 102px); align-items: flex-start;
  justify-content: center; padding: 38px 16px;
}
.panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow);
  max-width: 720px; width: 100%; padding: 30px 40px 34px;
  text-align: center;                 /* pages are centered; long text opts out */
}
.panel.wide { max-width: 1040px; }
.panel h1 { font-size: 22px; margin: 2px 0 6px; }
.panel h2 { font-size: 17px; margin: 26px 0 10px; }
.panel h3 { font-size: 14px; margin: 18px 0 6px; }
.panel p { margin: 8px 0; }
.lead { color: var(--muted); font-size: 14px; margin-top: 0; }
.step-tag {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: #800000; margin-bottom: 8px;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border: 1px solid var(--border); background: #fff;
  border-radius: 7px; font-size: 14px; font-family: inherit; cursor: pointer;
  color: var(--text);
}
.btn:hover { background: #f0f2f6; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn.big { padding: 12px 26px; font-size: 15px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent); }
.btn-row { display: flex; gap: 10px; align-items: center; margin-top: 22px; }
.btn-row .spacer { flex: 1; }

/* ── Form inputs (intro/consent) ────────────────────────────────────────── */
.field { margin: 14px 0; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.field input[type=text] {
  width: 100%; max-width: 380px; padding: 9px 11px; font-size: 14px;
  font-family: inherit; border: 1px solid var(--border); border-radius: 7px;
}
.field .hint { font-size: 12px; color: var(--muted); margin-top: 3px; }
.checkrow {
  display: flex; gap: 9px; align-items: flex-start; justify-content: center;
  margin: 12px 0; font-size: 13px; text-align: left;
}
.checkrow input { margin-top: 2px; width: 16px; height: 16px; }

.callout {
  background: #f0f6ff; border: 1px solid #cfe0fb; border-left: 3px solid var(--accent);
  border-radius: 6px; padding: 11px 14px; font-size: 13px; margin: 14px 0;
  text-align: left;
}
.callout.warn { background: #fef7e0; border-color: #f3d98a; border-left-color: var(--partial); }
.callout strong { display: block; margin-bottom: 2px; }

/* ── Instruction slideshow ──────────────────────────────────────────────── */
.demo-panel { max-width: 720px; }
.demo-slide { min-height: 430px; }
.demo-slide h1 { font-size: 20px; margin: 4px 0 14px; text-align: center; }
/* full image, never cropped — the part the caption points to stays visible */
.demo-img {
  display: block; margin: 0 auto 14px;
  max-width: 100%; max-height: 340px; width: auto;
  border-radius: 8px; border: 1px solid var(--border); cursor: zoom-in;
}
.demo-body { font-size: 14px; line-height: 1.6; max-width: 560px; margin: 0 auto; text-align: left; }
.demo-body ul.rules { margin: 4px 0; padding-left: 20px; }
.demo-body ul.rules li { margin: 7px 0; }
.slide-nav {
  display: flex; align-items: center; gap: 12px;
  margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border);
}
.slide-nav .btn { min-width: 132px; justify-content: center; }
.dots { flex: 1; display: flex; justify-content: center; gap: 7px; }
.dots .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #d4d7dd; cursor: pointer;
}
.dots .dot:hover { background: #b0b4bc; }
.dots .dot.on { background: var(--accent); }

/* Grade cheat-sheet */
.cheat {
  width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0;
}
.cheat th, .cheat td {
  border: 1px solid var(--border); padding: 7px 10px; text-align: left;
}
.cheat th { background: #f0f2f6; font-size: 12px; }
.cheat td:first-child { font-weight: 600; }

/* Lightbox for enlarging demo images */
#lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  display: none; align-items: center; justify-content: center; z-index: 300;
  padding: 30px; cursor: zoom-out;
}
#lightbox.show { display: flex; }
#lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; }

/* ── Comprehension quiz ─────────────────────────────────────────────────── */
.quiz-q { margin: 18px 0; padding-bottom: 16px; border-bottom: 1px dashed var(--border); text-align: left; }
.quiz-q:last-of-type { border-bottom: none; }
.quiz-q .qtext { font-weight: 600; margin-bottom: 8px; }
.quiz-opt {
  display: flex; gap: 9px; align-items: flex-start; padding: 8px 11px;
  border: 1px solid var(--border); border-radius: 7px; margin: 6px 0;
  cursor: pointer; font-size: 13px;
}
.quiz-opt:hover { background: #f0f2f6; }
.quiz-opt.picked { border-color: var(--accent); background: #e8f0fe; }
.quiz-opt input { margin-top: 2px; }
.quiz-q.wrong .qtext::after {
  content: " — try again"; color: var(--bad); font-weight: 600; font-size: 12px;
}

/* ============================================================================
   LABEL SCREEN
   ========================================================================= */
/* ── Tip bar (collapsible) ──────────────────────────────────────────────── */
.tipbar {
  background: #fff4d1; border-bottom: 1px solid #ecd99a;
  position: sticky; top: 0; z-index: 30;
}
.tipbar-head {
  display: flex; align-items: center; gap: 9px; padding: 11px 18px;
  cursor: pointer; font-size: 14px; user-select: none;
}
.tipbar-head:hover { background: #fdebb4; }
.tipbar-head .ico { font-size: 17px; }
.tipbar-head b { font-weight: 700; }
.tipbar-head .tip-toggle {
  margin-left: auto; background: #800000; color: #fff;
  font-size: 12px; font-weight: 600; padding: 4px 13px; border-radius: 999px;
}
.tipbar.collapsed .tt-hide { display: none; }
.tipbar:not(.collapsed) .tt-show { display: none; }
.tipbar-body {
  padding: 4px 18px 13px; font-size: 12.5px; color: #5a4b1e;
}
.tipbar.collapsed .tipbar-body { display: none; }
.tipbar-body ul { margin: 4px 0; padding-left: 20px; }
.tipbar-body li { margin: 3px 0; }
.tipbar-body a { font-weight: 600; }

/* ── Header / progress ──────────────────────────────────────────────────── */
header {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px; padding: 8px 16px;
  flex-wrap: wrap;
}
header.below-tipbar { top: 33px; }
header .title { font-size: 14px; font-weight: 600; }
header .who { font-size: 12px; color: var(--muted); }
header .prog-wrap { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.progbar {
  width: 220px; height: 8px; background: #e8eaed; border-radius: 999px; overflow: hidden;
}
.progbar > div { height: 100%; background: var(--ok); width: 0%; transition: width 0.2s; }
header .prog-text { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
header .prog-text b { color: var(--text); }

/* ── Main two-pane layout ───────────────────────────────────────────────── */
main {
  max-width: 1640px; margin: 0 auto; display: grid;
  grid-template-columns: minmax(0,1fr) minmax(400px, 560px);
  gap: 14px; padding: 14px 16px 60px;
}
.left-pane { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* Store card */
.store-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 9px; padding: 15px 18px;
}
.store-card .uid-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
}
.store-card .uid { font-size: 12px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.store-card .pos { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.store-card .addr-big { font-size: 19px; font-weight: 600; margin: 4px 0 2px; }
.store-card .citystate { font-size: 14px; color: var(--muted); }
.store-card .addr-note {
  margin-top: 9px; font-size: 12px; color: #8a6d1a; background: #fef7e0;
  border-radius: 5px; padding: 6px 9px;
}

/* Big map actions */
.big-actions { display: flex; gap: 10px; }
.big-actions a {
  flex: 1; text-align: center; padding: 15px 12px; border-radius: 8px;
  font-weight: 500; text-decoration: none; font-size: 15px; cursor: pointer;
  border: 1px solid var(--accent);
}
.big-actions a.street { background: var(--accent); color: #fff; }
.big-actions a.street:hover { background: var(--accent-hover); }
.big-actions a.map { background: #fff; color: var(--accent); }
.big-actions a.map:hover { background: #f0f6ff; }
.big-actions a .sub { display: block; margin-top: 3px; font-size: 10px; opacity: 0.85; font-weight: 400; }

/* Screenshot upload zone */
.shot-zone {
  background: var(--card); border: 1px solid var(--border); border-radius: 9px;
  padding: 14px 16px;
}
.shot-zone .sz-head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.shot-zone .sz-head b { font-size: 13px; }
.shot-zone .req-star { color: var(--bad); }
.dropzone {
  border: 2px dashed var(--border); border-radius: 8px; padding: 18px;
  text-align: center; cursor: pointer; color: var(--muted); font-size: 13px;
  transition: background 0.12s, border-color 0.12s;
}
.dropzone:hover, .dropzone.dragover {
  background: #f0f6ff; border-color: var(--accent); color: var(--accent);
}
.dropzone.done { border-style: solid; border-color: var(--ok); background: #f0fbf4; color: var(--ok); }
.shot-preview { margin-top: 10px; display: none; }
.shot-preview.show { display: block; }
.shot-preview img {
  max-width: 100%; max-height: 200px; border-radius: 6px; border: 1px solid var(--border);
}
.shot-preview .sp-row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.shot-preview .sp-row .ok-tag { color: var(--ok); font-size: 12px; font-weight: 600; }

/* Screenshot how-to popover (?) */
.howto { position: relative; display: inline-block; }
.howto .q {
  width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--accent);
  color: var(--accent); font-size: 11px; font-weight: 700; cursor: help;
  display: inline-flex; align-items: center; justify-content: center;
}
.howto .pop {
  display: none; position: absolute; left: 0; top: 22px; z-index: 50;
  width: 320px; background: #202124; color: #fff; border-radius: 8px;
  padding: 11px 13px; font-size: 12px; line-height: 1.5;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.howto:hover .pop { display: block; }   /* disappears when the mouse leaves */
.howto .pop b { color: #ffd54a; }
.howto .pop kbd {
  background: #3c4043; border-radius: 3px; padding: 1px 5px; font-size: 11px;
  font-family: ui-monospace, Menlo, monospace;
}

/* Store strip */
.strip {
  background: var(--card); border: 1px solid var(--border); border-radius: 9px;
  padding: 8px 10px; display: flex; gap: 4px; flex-wrap: wrap;
}
.strip .pill {
  width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--border);
  background: #fff; font-size: 10px; cursor: pointer; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.strip .pill:hover { background: #f0f2f6; }
.strip .pill.done { background: var(--ok); color: #fff; border-color: var(--ok); }
.strip .pill.current { outline: 2px solid var(--accent); outline-offset: 1px; font-weight: 700; }

/* ── Label form (right pane) ────────────────────────────────────────────── */
.form-pane {
  background: var(--card); border: 1px solid var(--border); border-radius: 9px;
  padding: 16px 18px; position: sticky; top: 92px;
  max-height: calc(100vh - 110px); overflow-y: auto;
}
.form-pane h2 { margin: 0 0 4px; font-size: 15px; }
.form-pane .sub { margin: 0 0 12px; font-size: 12px; color: var(--muted); }

.grp {
  padding-bottom: 13px; margin-bottom: 13px;
  border-bottom: 1px dashed var(--border);
}
.grp:last-child { border-bottom: none; margin-bottom: 0; }
.grp-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); font-weight: 700; margin-bottom: 6px;
  display: flex; align-items: center; gap: 5px; position: relative;
}
.grp-label .req-star { color: var(--bad); }
.grp.locked { opacity: 0.4; pointer-events: none; }
.sub-q { font-size: 12px; font-weight: 600; margin: 9px 0 4px; position: relative; }
.sub-q .req-star { color: var(--bad); }
.q-hint { font-size: 11px; color: var(--muted); margin: 2px 0 5px; }

/* chips (single-select) */
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
  padding: 5px 10px; border: 1px solid var(--border); background: #fff;
  border-radius: 5px; cursor: pointer; font-size: 12px; font-family: inherit;
  color: var(--text); white-space: nowrap;
}
.chip:hover { background: #f0f2f6; }
.chip.selected { background: var(--accent); color: #fff; border-color: var(--accent); }

/* multi-select chips */
.mchips { display: flex; flex-wrap: wrap; gap: 4px; }
.mchip {
  padding: 5px 10px; border: 1px solid var(--border); background: #fff;
  border-radius: 5px; cursor: pointer; font-size: 12px; font-family: inherit;
  color: var(--text); white-space: nowrap;
}
.mchip:hover { background: #f0f2f6; }
.mchip.selected { background: #e8f0fe; color: var(--accent); border-color: var(--accent); font-weight: 600; }

/* Binary Yes/No — NO default selection (every question needs a real click) */
.binary { display: flex; gap: 4px; }
.binary button {
  flex: 1; padding: 7px 10px; border: 1px solid var(--border); background: #fff;
  border-radius: 6px; cursor: pointer; font-size: 12px; font-family: inherit;
  color: var(--muted);
}
.binary button:hover { background: #f0f2f6; }
.binary button.sel-yes { background: var(--ok); color: #fff; border-color: var(--ok); }
.binary button.sel-no  { background: var(--bad); color: #fff; border-color: var(--bad); }

/* radio-style option list (location / sign-readability) */
.optlist { display: flex; flex-direction: column; gap: 5px; }
.optrow {
  display: flex; gap: 8px; align-items: flex-start; padding: 8px 11px;
  border: 1px solid var(--border); border-radius: 7px; cursor: pointer; font-size: 12.5px;
}
.optrow:hover { background: #f0f2f6; }
.optrow.sel { border-color: var(--accent); background: #e8f0fe; }
.optrow .dot {
  width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border);
  margin-top: 1px; flex: none;
}
.optrow.sel .dot { border-color: var(--accent); background: var(--accent);
  box-shadow: inset 0 0 0 2px #fff; }
.optrow.sel.danger { border-color: var(--bad); background: #fde9e7; }
.optrow.sel.danger .dot { border-color: var(--bad); background: var(--bad); }

/* text / number inputs in the form */
.inp {
  width: 100%; padding: 7px 9px; font-size: 13px; font-family: inherit;
  border: 1px solid var(--border); border-radius: 6px;
}
.inp.invalid { border-color: var(--bad); background: #fdeceb; }
textarea.inp { min-height: 56px; resize: vertical; }
.inp-row { display: flex; flex-direction: column; gap: 6px; }
select.inp { background: #fff; }

/* price inputs */
.price-grid { display: flex; flex-direction: column; gap: 8px; }
.price-item .price-cap { font-size: 12px; font-weight: 600; margin-bottom: 3px; }
.price-item .price-cap .tag {
  font-weight: 400; color: var(--muted); font-size: 11px;
}
.price-input-wrap { position: relative; }
.price-input-wrap::before {
  content: "$"; position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 13px;
}
.price-input-wrap .inp { padding-left: 20px; font-variant-numeric: tabular-nums; }

/* layout-picker follow-ups */
.followup { margin-top: 6px; padding-left: 10px; border-left: 2px solid var(--border); }

/* validation summary */
.valbox {
  background: #fdeceb; border: 1px solid #f4c3bf; border-radius: 7px;
  padding: 9px 12px; font-size: 12px; color: var(--bad-hover); margin-bottom: 10px;
  display: none;
}
.valbox.show { display: block; }
.valbox ul { margin: 4px 0 0; padding-left: 18px; }

/* ── Step wizard (per-station form) ─────────────────────────────────────── */
.step-indicator { display: flex; gap: 4px; margin-bottom: 14px; }
.step-pip {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 2px 7px; font-size: 10px; color: var(--muted);
  border-bottom: 2px solid var(--border); text-align: center;
}
.step-pip .n {
  width: 21px; height: 21px; border-radius: 50%; background: #e8eaed;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--muted);
}
.step-pip.cur { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.step-pip.cur .n { background: var(--accent); color: #fff; }
.step-pip.done { color: var(--ok); border-bottom-color: var(--ok); }
.step-pip.done .n { background: var(--ok); color: #fff; }
.step-pip.skip { opacity: 0.35; }
.step-nav {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
}
.step-nav .spacer { flex: 1; }

/* ── Bottom nav (sticky) ────────────────────────────────────────────────── */
.bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 25;
  background: #fff; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; padding: 9px 16px;
  box-shadow: 0 -1px 4px rgba(0,0,0,0.05);
}
.bottom-bar .spacer { flex: 1; }
.bottom-bar .navinfo { font-size: 12px; color: var(--muted); }

/* ── Done screen ────────────────────────────────────────────────────────── */
.done-big { font-size: 44px; }

/* ── Toast ──────────────────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 64px; left: 50%; transform: translateX(-50%);
  background: #202124; color: #fff; padding: 9px 18px; border-radius: 7px;
  font-size: 13px; opacity: 0; transition: opacity 0.15s; pointer-events: none; z-index: 200;
}
#toast.show { opacity: 1; }
#toast.bad { background: var(--bad); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  main { grid-template-columns: 1fr; }
  .form-pane { position: static; max-height: none; }
  .sign-gallery { grid-template-columns: 1fr; }
}
.desktop-note {
  display: none; background: var(--partial); color: #3a2e00; text-align: center;
  font-size: 12px; padding: 5px;
}
@media (max-width: 760px) { .desktop-note { display: block; } }

/* ── Onboarding pointer (one-time hint on the layout question) ─────────── */
.layout-hint {
  display: flex; align-items: center; gap: 8px;
  background: #fef7e0; border: 1px solid #f3d98a; border-left: 3px solid var(--partial);
  border-radius: 6px; padding: 8px 12px; font-size: 12px;
  margin: 8px 0; color: #8a6d1a;
  animation: layoutHintPulse 1.2s ease-in-out infinite alternate;
}
.layout-hint .lh-arrow { font-size: 18px; }
.layout-hint.fade { opacity: 0; transition: opacity 0.6s; }
@keyframes layoutHintPulse {
  from { transform: translateY(0); }
  to   { transform: translateY(-3px); }
}

/* ── Price-mode setup screen (one-time) ────────────────────────────────── */
.pricemode-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin: 18px 0; text-align: left;
}
.pm-card {
  border: 2px solid var(--border); border-radius: 10px; padding: 16px;
  cursor: pointer; background: #fff;
  transition: background 0.12s, border-color 0.12s;
}
.pm-card:hover { background: #f0f2f6; }
.pm-card.sel { border-color: var(--accent); background: #e8f0fe; }
.pm-card h3 { margin: 0 0 6px; font-size: 16px; }
.pm-card p { margin: 4px 0; font-size: 13px; }
.pm-card p.muted { color: var(--muted); font-size: 12px; }
@media (max-width: 640px) { .pricemode-cards { grid-template-columns: 1fr; } }

/* ── Per-store price-mode toggle ───────────────────────────────────────── */
.pricemode-toggle {
  display: flex; align-items: center; gap: 6px;
  margin: 0 0 12px; font-size: 12px;
}
.pricemode-toggle .pmt-label { color: var(--muted); }
.pricemode-toggle .pmt-btn {
  padding: 3px 9px; border: 1px solid var(--border); background: #fff;
  border-radius: 5px; cursor: pointer; font-size: 12px; color: var(--muted);
  font-family: inherit;
}
.pricemode-toggle .pmt-btn:hover { background: #f0f2f6; }
.pricemode-toggle .pmt-btn.sel {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* ── A-case confirmation callout (extra care on the single-price case) ── */
.a-confirm { margin-top: 10px; }

/* ── Inline "?" tooltip next to a question (hover reveals an example) ─── */
.qhint-tip {
  /* static, so the popup anchors to the question row (.sub-q / .grp-label),
     not this tiny inline span — see .qhint-pop. */
  position: static; display: inline-block;
  margin-left: 5px; vertical-align: middle;
}
.qhint-icon {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid var(--muted); background: #fff; color: var(--muted);
  font-size: 10px; font-weight: 700; cursor: help;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}
.qhint-tip:hover .qhint-icon { border-color: var(--accent); color: var(--accent); }
.qhint-pop {
  /* Anchored to the question row (its .sub-q / .grp-label is position:relative)
     and capped at that row's own width, so the bubble can never spill past
     either edge of the form-pane — which clips because of overflow-y:auto. */
  display: none; position: absolute; top: 100%; right: 0; left: auto;
  margin-top: 4px; z-index: 60;
  width: max-content; max-width: 100%; box-sizing: border-box;
  background: #202124; color: #fff; border-radius: 6px;
  padding: 8px 11px; font-size: 12px; line-height: 1.5; font-weight: normal;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.qhint-tip:hover .qhint-pop { display: block; }
