/* ONEp1 bèta 2 — koppelwizard (ONEp1, SolarONE, batteryONE). Telefoon eerst; volgt het thema. */

.wz-body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.wz-top {
    position: sticky; top: 0; z-index: 5; height: 60px; flex: none; box-sizing: border-box;
    padding: 0 16px; padding-top: env(safe-area-inset-top);
    display: flex; align-items: center; justify-content: space-between;
    background: var(--surface); border-bottom: 1px solid var(--line);
}
.wz-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.wz-brand .brand-logo { width: 32px; height: 32px; }
.wz-brand .brand-name { font-size: 18px; }
.wz-cancel { font-size: 14px; font-weight: 700; text-decoration: none; padding: 12px 4px; }

.wz-main {
    flex: 1; width: 100%; max-width: 520px; margin: 0 auto; box-sizing: border-box;
    padding: 22px 16px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column;
}
.wizard-step { display: none; flex: 1; flex-direction: column; gap: 16px; }
.wizard-step.active { display: flex; }

.wz-intro h1, .wz-h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.wz-intro h1 { font-size: 26px; }
.wz-intro p { margin: 4px 0 0; font-size: 14px; color: var(--ink-3); }
.wz-h2 { margin: 2px 0 0; font-size: 16px; font-weight: 800; }
.wz-label { margin: 0; font-size: 12px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }

/* Voortgang: vier balkjes + "Stap 2 van 4 · …" */
.wz-progress { display: flex; flex-direction: column; gap: 8px; }
.wz-bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.wz-bars span { height: 6px; border-radius: 3px; background: var(--line); transition: background 0.3s; }
.wz-bars span.on { background: var(--blue); }
.wz-progress.done .wz-bars span { background: var(--green); }
.wz-progress p { margin: 0; font-size: 12px; font-weight: 700; color: var(--ink-3); }

.wz-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

.wz-codecard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wz-codecard-text { display: flex; flex-direction: column; gap: 2px; }
.wz-label, .wz-codecard .wz-label { display: block; }
.wz-code { font-size: 28px; font-weight: 600; letter-spacing: 0.14em; }
.wz-codecard-hint { font-size: 12px; color: var(--ink-3); text-align: right; }

/* Methode-tegels */
.wz-methods { display: flex; flex-direction: column; gap: 10px; }
.wz-method {
    width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px; text-align: left; font: inherit; color: inherit;
    background: var(--surface); border: 1px solid var(--field-line); border-radius: 14px; cursor: pointer;
}
.wz-method:hover:not(:disabled) { border-color: var(--blue); }
.wz-method.primary { border: 2px solid var(--blue); padding: 15px; }
.wz-method:disabled { cursor: not-allowed; background: var(--surface-2); border-color: var(--line); }
.wz-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.wz-method:disabled .wz-ico { background: var(--muted-fill); color: var(--chev); }
.wz-mtext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wz-mtitle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; }
.wz-mdesc { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.wz-method:disabled .wz-mtitle, .wz-method:disabled .wz-mdesc { color: var(--ink-3); }
.wz-chev { flex: none; color: var(--chev); }
.wz-method:disabled .wz-chev { visibility: hidden; }
.wz-tag { font-size: 11px; font-weight: 800; color: var(--tag-ink); background: var(--amber-soft); border-radius: 999px; padding: 2px 8px; }
.wz-tag.rec { color: var(--green-ink); background: var(--green-soft); }

.wz-help { margin: auto 0 0; padding-top: 8px; text-align: center; font-size: 13px; color: var(--ink-3); }

/* Genummerde stappen (wifi-hotspot) */
.wz-numbered { list-style: none; margin: 0; padding: 6px 18px; }
.wz-numbered li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; line-height: 1.45; }
.wz-numbered li:last-child { border-bottom: 0; }
.wz-num { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.wz-codechip { margin: 0 18px 14px 54px; display: inline-flex; background: var(--blue-wash); border: 1px solid var(--blue-line); border-radius: 10px; padding: 8px 14px; font-size: 22px; font-weight: 600; letter-spacing: 0.14em; }

/* Knoppen onderaan, binnen duimbereik */
.wz-bottom { margin-top: auto; padding-top: 6px; display: flex; flex-direction: column; gap: 10px; }
.wz-bottom .btn { min-height: 48px; font-size: 15px; border-radius: 12px; }
.wz-bottom .btn-primary { font-weight: 800; }
.wz-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; }
.wz-wide { width: 100%; box-sizing: border-box; }

/* Bluetooth zoeken */
.wz-search { padding: 28px 20px 22px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.wz-radar { position: relative; width: 140px; height: 140px; display: flex; align-items: center; justify-content: center; }
.wz-radar > span:nth-child(1) { position: absolute; inset: 0; border-radius: 50%; background: var(--blue-wash); border: 1px solid var(--blue-soft); }
.wz-radar > span:nth-child(2) { position: absolute; inset: 22px; border-radius: 50%; background: var(--blue-soft); }
.wz-radar.busy > span:nth-child(1) { animation: wz-ping 1.8s ease-out infinite; }
.wz-radar-dot { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: var(--on-accent); display: flex; align-items: center; justify-content: center; }
.wz-radar.error .wz-radar-dot { background: var(--red-ink); }
@keyframes wz-ping { 0% { transform: scale(0.75); opacity: 1; } 100% { transform: scale(1.08); opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) { .wz-radar.busy > span:nth-child(1) { animation: none; } }
.wz-search-text p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.wz-search-text .wz-strong { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.wz-search-text.error .wz-strong { color: var(--red-ink); }
.wz-tips { display: flex; flex-direction: column; gap: 8px; }
.wz-tips ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* Wifi kiezen */
.wz-connected { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.wz-form { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.wz-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.wz-row-head .wz-h2 { font-size: 18px; margin: 0; }
.wz-link { border: 0; background: none; color: var(--blue); font: inherit; font-size: 13px; font-weight: 700; padding: 8px 0; cursor: pointer; }
.wz-link:disabled { color: var(--ink-3); cursor: default; }
.wz-netlist { overflow: hidden; }
.wifi-row {
    width: 100%; min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 16px;
    border: 0; border-top: 1px solid var(--line-soft); background: var(--surface); color: var(--ink);
    font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer;
}
.wifi-row:first-child { border-top: 0; }
.wifi-row:hover { background: var(--surface-2); }
.wifi-row.selected { background: var(--blue-wash); box-shadow: inset 3px 0 0 var(--blue); font-weight: 800; }
.wifi-row.other { color: var(--ink-2); }
.wifi-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wifi-icons { display: flex; align-items: center; gap: 10px; flex: none; color: var(--ink-3); }
.wifi-row.selected .wifi-icons { color: var(--blue); }
.wifi-icons .bar-off { fill: var(--field-line); }
.wifi-empty { display: flex; align-items: center; gap: 10px; padding: 16px; font-size: 14px; color: var(--ink-3); }
.wz-pw { position: relative; }
.wz-pw .input { padding-right: 52px; }
.wz-eye { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: var(--ink-3); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.wz-eye[aria-pressed="true"] { color: var(--blue); }
.wz-auto { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; font-size: 14px; color: var(--ink-2); border-radius: 12px; }
.wz-auto strong { color: var(--ink); letter-spacing: 0.1em; }
.wz-auto a { font-weight: 700; text-decoration: none; }
.wz-status { display: flex; align-items: center; gap: 10px; margin: 0; }
.spinner.sm { width: 18px; height: 18px; border-width: 2px; flex: none; }

/* Klaar */
.wz-done { padding: 32px 20px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.wz-check { width: 76px; height: 76px; border-radius: 50%; background: var(--green-soft); color: var(--green-ink); display: flex; align-items: center; justify-content: center; }
.wz-done h1 { margin: 4px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.wz-done p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 32ch; }
.wz-facts { margin: 8px 0 0; width: 100%; }
.wz-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.wz-facts dt { color: var(--ink-3); }
.wz-facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; text-align: right; }
.wz-facts dd.mono { font-size: 13px; }
.wz-done ~ .wz-help { margin: 0; }
.notice.ok { background: var(--green-soft); color: var(--ok-ink); }
.mono { font-family: var(--mono); }
