/* Dealer voice panel + enrolment wizard. Dark, large touch targets (iPad / iPhone). */
:root { --dv-bg: #0d1426; --dv-line: #24304d; --dv-muted: #93a1bd; --dv-ok: #3ddc84; --dv-ng: #ff4d5a; --dv-acc: #f08a16; --dv-blue: #4ea1ff; }
[hidden] { display: none !important; }
.muted { color: var(--dv-muted); }
.small { font-size: 12px; }
.panel { background: var(--dv-bg); border: 1px solid var(--dv-line); border-radius: 12px; padding: 10px; display: grid; gap: 8px; }
.panel-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.panel-title h1 { margin: 0; font-size: 15px; letter-spacing: .06em; }
.panel-title .muted { font-size: 12px; }

.dealers { display: flex; flex-wrap: wrap; gap: 6px; }
.dealer { display: flex; border-radius: 10px; background: #1c2438; overflow: hidden; }
.dealer.on { background: var(--dv-blue); color: #04122a; }
.dealer button { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.dealer .pick { padding: 0 12px; min-height: 44px; font-weight: 700; font-size: 15px; }
.dealer .menu { padding: 0 8px; opacity: .75; border-left: 1px solid rgba(255, 255, 255, .12); }
.dealers .add { border: 1px dashed #3a4a70; background: transparent; color: #c4cee6; border-radius: 10px; min-height: 44px; padding: 0 12px; display: flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; cursor: pointer; }

.mic-row { display: flex; gap: 10px; align-items: center; }
.mic { flex: none; display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 16px; border: 0; border-radius: 14px; background: #1c2438; color: #c4cee6; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.mic.on { background: var(--dv-ok); color: #032312; }
.mic-info { flex: 1; min-width: 0; display: grid; gap: 6px; font-size: 13px; }
.meter, .wiz-meter { height: 10px; border-radius: 5px; background: #1c2438; overflow: hidden; }
.meter i, .wiz-meter i { display: block; height: 100%; width: 0; background: #5d6b8a; transition: width .06s linear; }
.meter i.speaking, .wiz-meter i.speaking { background: var(--dv-ok); }
progress { width: 100%; height: 6px; }

.sim { display: grid; gap: 4px; }
.sim-track { position: relative; height: 12px; border-radius: 6px; background: #1c2438; overflow: visible; }
.sim-track i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; width: 0; transition: width .2s; }
.sim-track i.ok { background: var(--dv-ok); }
.sim-track i.ng { background: var(--dv-ng); }
.sim-track b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #fff; }
.heard { min-height: 1.4em; font-size: 14px; color: #c4cee6; }
.banner { background: #3a1418; color: #ffd0d4; border-radius: 8px; padding: 8px 10px; font-size: 13px; }

.tools summary { cursor: pointer; font-size: 13px; color: var(--dv-muted); }
.tools[open] summary { margin-bottom: 4px; }
.thr { display: grid; gap: 4px; font-size: 13px; color: #c4cee6; }
.thr-row { display: flex; align-items: center; gap: 8px; }
.thr-row input { flex: 1; }
.ghost { height: 40px; border: 1px solid var(--dv-line); background: transparent; color: #c4cee6; border-radius: 10px; font: inherit; cursor: pointer; }

.lg.reject { box-shadow: inset 3px 0 0 #5d6b8a; opacity: .75; }
.lg.undone b { text-decoration: line-through; opacity: .6; }
.lg .sim { grid-column: 2 / 4; font-size: 11px; color: #c4cee6; display: block; }

/* ---------- wizard ---------- */
.wiz-wrap, .sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(2, 6, 16, .82); display: grid; place-items: center; padding: 16px; }
.wiz, .sheet { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: #0f1830; border: 1px solid var(--dv-line); border-radius: 18px; padding: 20px; display: grid; gap: 14px; }
.wiz h2, .sheet h2 { margin: 0; font-size: 22px; line-height: 1.35; }
.wiz .lead { margin: 0; font-size: 17px; line-height: 1.5; }
.wiz p, .sheet p { margin: 0; }
.steps { list-style: none; margin: 0 0 6px; padding: 0; display: flex; gap: 6px; font-size: 12px; color: var(--dv-muted); }
.steps li { flex: 1; padding-top: 6px; border-top: 3px solid #24304d; }
.steps li.done { border-color: var(--dv-ok); color: #c4cee6; }
.steps li.now { border-color: var(--dv-blue); color: #fff; font-weight: 700; }
.wiz .name { height: 60px; border-radius: 12px; border: 1px solid #33426a; background: #0b1222; color: #fff; font-size: 24px; padding: 0 16px; width: 100%; }
.dots { display: flex; gap: 8px; justify-content: center; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: #24304d; }
.dots i.done { background: var(--dv-ok); }
.dots i.now { background: var(--dv-blue); box-shadow: 0 0 0 4px rgba(78, 161, 255, .25); }
.phrase { text-align: center; font-size: clamp(26px, 6vw, 38px); font-weight: 800; letter-spacing: .04em; padding: 18px 0; }
.wiz-meter { height: 14px; border-radius: 7px; }
.wiz-foot { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.big { min-height: 52px; padding: 0 20px; border: 0; border-radius: 12px; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; background: #1c2438; color: #c4cee6; }
.big.primary { background: var(--dv-acc); color: #1b0f00; }
.big.danger { background: #4a1820; color: #ffd0d4; }
.sheet .big { width: 100%; }
.result { display: grid; justify-items: center; gap: 8px; text-align: center; min-height: 90px; }
.result-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; }
.result-icon.ok { background: rgba(61, 220, 132, .18); color: var(--dv-ok); }
.result-icon.ng { background: rgba(255, 77, 90, .18); color: var(--dv-ng); }
.wiz-foot .big.sub:first-child { margin-right: auto; }
.side > .row button { font-size: 13px; white-space: nowrap; padding: 0 8px; }
@media (max-width: 900px) {
  .side { gap: 8px; }
}
