/* css/main/competition-wizard.css — part 19/30 of the app styles (was css/main.css; loaded in this order by index.html). */
      /* ─── Wizard CV: progress + screen title ─── */
      .wiz-progress-btn {
        border: none;
        font-family: 'Oswald', sans-serif;
        cursor: pointer;
        flex: 1;
        min-width: 0;
        padding: 6px 8px;
        border-radius: 6px;
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
      }
      .wiz-progress-btn.is-active   { background: var(--accent); color: var(--accent-fg); }
      .wiz-progress-btn.is-done     { background: var(--accent-dim, #a8893a); color: var(--text); }
      .wiz-progress-btn.is-pending  { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
      .wiz-progress-btn.is-locked   { opacity: .55; cursor: not-allowed; }
      .wiz-progress-num   { font-weight: 700; }
      .wiz-progress-name  { display: none; }
      .wiz-step-title {
        font-family: 'Oswald', sans-serif;
        font-weight: 600;
        font-size: 18px;
        color: var(--text);
        text-align: center;
        margin: 0 0 14px 0;
        letter-spacing: 0.5px;
      }
      /* Quota: wider, more legible textarea (they must not make mistakes here) */
      .wiz-cuo-textarea {
        width: 100%;
        min-height: 160px;
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        line-height: 1.5;
        padding: 12px 14px;
      }
      .wiz-pay-templates {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        margin-top: 8px;
      }
      .wiz-pay-templates button {
        flex: 1 1 auto;
        min-width: 0;
        background: var(--surface);
        border: 1px solid var(--border);
        color: var(--text);
        font-family: 'Oswald', sans-serif;
        font-size: 12px;
        padding: 7px 10px;
        border-radius: 6px;
        cursor: pointer;
      }
      .wiz-pay-templates button:hover { border-color: var(--accent); color: var(--accent); }

      /* ─── Wizard CV: blocks grouped by color (Step 1) ─── */
      .wiz-block {
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 12px 14px;
        margin-bottom: 14px;
      }
      .wiz-block .form-group:last-child { margin-bottom: 0; }
      .wiz-block-1 {
        background: linear-gradient(180deg, rgba(86,190,176,0.08), rgba(86,190,176,0.02));
        border-color: rgba(86,190,176,0.30);
      }
      .wiz-block-2 {
        background: linear-gradient(180deg, rgba(200,168,75,0.08), rgba(200,168,75,0.02));
        border-color: rgba(200,168,75,0.30);
      }
      .wiz-block-3 {
        background: var(--surface);
      }
      .wiz-block-4 {
        background: linear-gradient(180deg, rgba(180,140,200,0.06), rgba(180,140,200,0.02));
        border-color: rgba(180,140,200,0.28);
      }
      /* ─── Wizard CV: compact card of the selected template ─── */
      .wiz-plantilla-info {
        margin-top: 8px;
        padding: 8px 10px;
        background: var(--surface-2, var(--surface));
        border: 1px solid var(--border);
        border-radius: 6px;
        font-size: 12px;
        line-height: 1.35;
      }
      .wiz-plantilla-info .wpi-row {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        padding: 2px 0;
      }
      .wiz-plantilla-info .wpi-row + .wpi-row { border-top: 1px dashed var(--border); }
      .wiz-plantilla-info .wpi-lbl { color: var(--muted); }
      .wiz-plantilla-info .wpi-val { color: var(--text); font-weight: 600; text-align: right; }

      /* ─── Wizard CV: custom promoter selector ─── */
      .wiz-org-list {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 6px;
      }
      .wiz-org-item {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        text-align: left;
        background: transparent;
        border: 1px solid transparent;
        border-radius: 6px;
        padding: 10px 12px;
        cursor: pointer;
        color: var(--text);
        font-family: 'Inter', sans-serif;
      }
      .wiz-org-item:hover { background: rgba(255,255,255,0.03); }
      .wiz-org-item.selected {
        background: rgba(200,168,75,0.10);
        border-color: rgba(200,168,75,0.45);
      }
      .wiz-org-item-logo {
        width: 36px; height: 36px;
        border-radius: 6px;
        object-fit: cover;
        background: var(--bg);
        flex-shrink: 0;
      }
      .wiz-org-item-icon {
        width: 36px; height: 36px;
        border-radius: 6px;
        background: var(--bg);
        display: flex; align-items: center; justify-content: center;
        color: var(--muted);
        font-size: 18px;
        flex-shrink: 0;
      }
      .wiz-org-item-text { flex: 1; min-width: 0; }
      .wiz-org-item-name {
        font-family: 'Oswald', sans-serif;
        font-weight: 600;
        font-size: 14px;
        color: var(--text);
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .wiz-org-item-sub {
        font-size: 11px;
        color: var(--muted);
        margin-top: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .wiz-org-item.is-create .wiz-org-item-icon {
        background: var(--accent-dim);
        color: var(--accent);
        font-weight: 700;
        font-size: 20px;
      }
      .wiz-org-item.is-create .wiz-org-item-name { color: var(--accent); }
      .wiz-org-item-check {
        flex-shrink: 0;
        width: 20px; height: 20px;
        color: var(--accent);
      }

      .wiz-mod-col-head {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        font-size: 10px;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: 4px 4px 4px 4px;
      }

      /* ─── Wizard CV: redesigned Review step ─── */
      .wiz-rev-header {
        background: linear-gradient(135deg, rgba(200,168,75,0.10), rgba(200,168,75,0.02));
        border: 1px solid rgba(200,168,75,0.35);
        border-radius: 10px;
        padding: 14px 16px;
        margin-bottom: 14px;
      }
      .wiz-rev-name {
        font-family: 'Oswald', sans-serif;
        font-size: 20px;
        font-weight: 700;
        color: var(--text);
        line-height: 1.2;
        word-break: break-word;
      }
      .wiz-rev-meta {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        margin-top: 8px;
      }
      .wiz-rev-meta-pill {
        font-family: 'Oswald', sans-serif;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 3px 9px;
        background: var(--surface);
        border: 1px solid var(--border);
        color: var(--text);
        border-radius: 999px;
      }
      .wiz-rev-meta-pill.is-priv { color: var(--muted); }
      .wiz-rev-meta-pill.is-pub  { color: #4bc8c8; border-color: #4bc8c8; }

      .wiz-rev-card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 10px;
        margin-bottom: 10px;
        overflow: hidden;
      }
      .wiz-rev-card-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 14px;
        background: rgba(255,255,255,0.025);
        border-bottom: 1px solid var(--border);
      }
      .wiz-rev-card-title {
        margin: 0;
        font-family: 'Oswald', sans-serif;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        color: var(--accent);
      }
      .wiz-rev-card-edit {
        flex: 0 0 auto;
        padding: 4px 10px;
        font-size: 10px;
        background: transparent;
        border: 1px solid var(--border);
        color: var(--muted);
        border-radius: 6px;
        cursor: pointer;
        font-family: 'Oswald', sans-serif;
        letter-spacing: 0.5px;
        text-transform: uppercase;
      }
      .wiz-rev-card-edit:hover { color: var(--accent); border-color: var(--accent); }
      .wiz-rev-card-body { padding: 12px 14px; }

      .wiz-rev-row {
        display: grid;
        grid-template-columns: 90px 1fr;
        gap: 10px;
        padding: 5px 0;
        align-items: baseline;
        font-size: 13px;
        border-bottom: 1px solid rgba(255,255,255,0.04);
      }
      .wiz-rev-row:last-child { border-bottom: none; }
      .wiz-rev-row-label {
        font-size: 10px;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }
      .wiz-rev-row-value {
        color: var(--text);
        word-break: break-word;
        min-width: 0;
      }
      .wiz-rev-empty { color: var(--muted); font-style: italic; }
      .wiz-rev-info  { color: var(--muted); font-style: italic; font-size: 13px; }

      .wiz-rev-chips { display: flex; gap: 5px; flex-wrap: wrap; }
      .wiz-rev-chip {
        display: inline-block;
        padding: 3px 8px;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 10px;
        font-size: 11px;
        color: var(--text);
      }

      .wiz-rev-desc {
        white-space: pre-wrap;
        line-height: 1.5;
        color: var(--text);
        font-size: 13px;
      }

      .wiz-rev-total {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid var(--accent);
        text-align: right;
        font-family: 'Oswald', sans-serif;
        font-size: 14px;
        color: var(--accent);
      }
      .wiz-rev-total b { font-size: 18px; }

      .wiz-rev-campo {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 6px;
        padding: 10px 12px;
        margin-bottom: 8px;
      }
      .wiz-rev-campo:last-child { margin-bottom: 0; }
      .wiz-rev-campo-head {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 4px;
      }
      .wiz-rev-campo-num {
        flex: 0 0 22px;
        height: 22px;
        line-height: 22px;
        text-align: center;
        background: var(--accent);
        color: var(--accent-fg);
        border-radius: 50%;
        font-family: 'Oswald', sans-serif;
        font-weight: 700;
        font-size: 12px;
      }
      .wiz-rev-campo-name {
        font-weight: 600;
        font-size: 14px;
        color: var(--text);
      }
      .wiz-rev-campo-ubic {
        font-size: 11px;
        color: var(--muted);
        margin-bottom: 6px;
      }
      .wiz-rev-campo-tot {
        font-size: 11px;
        color: var(--muted);
        margin-top: 6px;
      }

      .wiz-rev-fases {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px dashed var(--border);
      }
      .wiz-rev-fase {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        padding: 3px 0;
      }
      .wiz-rev-fase-num {
        flex: 0 0 28px;
        text-align: center;
        background: var(--accent-dim, #a8893a);
        color: #000;
        border-radius: 6px;
        font-family: 'Oswald', sans-serif;
        font-weight: 700;
        font-size: 11px;
        padding: 2px 0;
      }
      .wiz-rev-fase-name { flex: 1; color: var(--text); }
      .wiz-rev-fase-meta { color: var(--muted); font-size: 11px; }

      .wiz-rev-cuota-free {
        font-family: 'Oswald', sans-serif;
        font-size: 16px;
        color: var(--accent);
        text-align: center;
        padding: 8px;
      }
      .wiz-rev-cuota-text {
        margin: 0;
        white-space: pre-wrap;
        font-family: 'Inter', sans-serif;
        font-size: 13px;
        color: var(--text);
        line-height: 1.5;
      }

      .wiz-rev-pdf-btn {
        width: 100%;
        padding: 12px;
        margin-top: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
      }
      .wiz-rev-pdf-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

      /* Quick Shot — RESULTS mode.
         In the countdown (LOAD/FIRE/SHOOT) the big title is OK
         because it is only text over a background. In RESULTS mode the header
         overlaps the "Session name" input because on tablet
         the clamp(...,12vw,88px) reach 88 px and the results panel
         only has padding-top:108 px. Reduce the header in this mode. */
      #tr-practice-overlay.is-results #tr-phase-title {
        font-size: clamp(32px, 6vw, 40px);
      }
      #tr-practice-overlay.is-results #tr-practice-mod-label {
        font-size: clamp(16px, 3.5vw, 20px);
      }
      /* In RESULTS the header stays fixed and the panel scrolls underneath
         —which is what is wanted, so as not to lose sight of what is being looked at—,
         but without a background the table passed OVER the title and both were read
         at once (iPhone, 2026-08-06). With a background, what scrolls up disappears
         cleanly behind it. The shadow marks the edge of what scrolls. */
      #tr-practice-overlay.is-results #tr-practice-head {
        background: var(--bg);
        padding-bottom: 10px;
        box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.6);
      }

      /* ═══════════════════════════════════════════════════════════════
         WIZARD · Full-screen overlay. It was born for the private/public
         comparison; that was removed along with the private ones (#81b, 2026-08-15) and
         today it is used by the BETA GATE (wizard-cv.js) and the FIRST STEPS
         (tiradores.js). All through theme tokens (light/dark).
         ⛔ Gone with the comparison: .wizvis-grid, .wizvis-card.priv, the
         loop, the card header (chead/kind/title/tag/hic), the LIVE
         chip and its pulse, the avatar cluster, the «only you» block, the
         struck-through traits (.off), the step 1 «i» button (.wiz-vis-info), and the
         entire «what you lose» panel (keep/missh/chips/nudge).
         ═══════════════════════════════════════════════════════════════ */
      .wizvis-ov{
        /* Fixed container (does NOT scroll). Height = real visual viewport / UI
           zoom (--tl-zoom), so that with Large/Extra scale the end can also be
           reached. The scroll is done by the child .wizvis-scroll (flex:1), which is the
           same pattern as the app's views and works on iOS/Android. */
        position:fixed; top:0; left:0; right:0;
        height:calc(var(--app-h, 100dvh) / var(--tl-zoom, 1));
        z-index:99990;
        display:flex; flex-direction:column; overflow:hidden;
        background:color-mix(in srgb, var(--bg) 78%, rgba(0,0,0,.6));
        -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
        --wv-glow:color-mix(in srgb, var(--accent) 26%, transparent);
        --wv-wash:color-mix(in srgb, var(--accent) 10%, transparent);
        --wv-soft:color-mix(in srgb, var(--border) 55%, transparent);
        animation:wvFade .18s ease;
      }
      @keyframes wvFade{from{opacity:0}to{opacity:1}}
      /* Real scroller: flex:1 child with its own overflow. WITHOUT
         -webkit-overflow-scrolling:touch (deprecated; it was the cause of "I reach
         the end and it won't scroll up" on iOS). overscroll-behavior:contain prevents
         chaining to the background; touch-action:pan-y ensures the vertical gesture. */
      .wizvis-scroll{flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; touch-action:pan-y}
      .wizvis-wrap{max-width:1000px; margin:0 auto; padding:clamp(18px,4vw,40px) clamp(14px,4vw,30px) calc(56px + env(safe-area-inset-bottom, 0px))}

      .wizvis-ov .wizvis-eyebrow{font-family:'Oswald',sans-serif; text-transform:uppercase; letter-spacing:.15em; font-size:12px; font-weight:600; color:var(--muted)}
      .wizvis-ov .wizvis-q{font-family:'Oswald',sans-serif; font-weight:600; text-wrap:balance; font-size:clamp(24px,5vw,40px); line-height:1.05; letter-spacing:-.01em; margin:.28em 0 .12em; color:var(--text)}
      .wizvis-ov .wizvis-sub{color:var(--muted); max-width:56ch; font-size:clamp(14px,2.1vw,16px); line-height:1.55; margin:0}
      .wizvis-ov .wizvis-sub b{color:var(--text); font-weight:600}

      .wizvis-card{position:relative; border-radius:14px; padding:clamp(17px,2.5vw,24px); background:var(--card); border:1px solid var(--border); overflow:hidden; box-shadow:0 10px 30px -16px rgba(0,0,0,.4)}
      .wizvis-card.pub{border:1.5px solid var(--accent); background:radial-gradient(120% 90% at 100% 0%, var(--wv-wash), transparent 60%), var(--card); box-shadow:0 26px 60px -22px rgba(0,0,0,.5), 0 0 0 4px var(--wv-glow)}
      @media(min-width:820px){ .wizvis-card.pub{transform:translateY(-10px)} }

      .wizvis-price{display:flex; align-items:baseline; gap:6px; margin-top:8px}
      .wizvis-price .amt{font-family:'Oswald',sans-serif; font-weight:700; font-size:clamp(24px,4vw,32px); font-variant-numeric:tabular-nums}
      .wizvis-price .per{font-size:12px; color:var(--muted); font-family:'Oswald',sans-serif; letter-spacing:.03em; text-transform:uppercase}
      .wizvis-price.free .amt{color:var(--muted)}
      .wizvis-price.pub .amt{color:var(--accent)}

      .wizvis-feats{display:flex; flex-direction:column; margin-top:15px; border-top:1px solid var(--wv-soft); padding-top:4px}
      .wizvis-feat{display:flex; align-items:center; gap:12px; padding:9px 2px}
      .wizvis-feat + .wizvis-feat{border-top:1px solid var(--wv-soft)}
      .wizvis-fic{flex:0 0 auto; width:22px; height:22px; color:var(--accent)}
      .wizvis-fic svg{width:22px; height:22px}
      .wizvis-ftx{font-size:14px; line-height:1.4; color:var(--text)}
      .wizvis-ftx b{font-weight:600}
      .wizvis-btns{display:flex; gap:12px; margin-top:20px; flex-wrap:wrap}
      .wizvis-btn{flex:1 1 auto; min-width:140px; min-height:48px; cursor:pointer; font-family:'Oswald',sans-serif; font-weight:600; letter-spacing:.04em; text-transform:uppercase; font-size:14px; border-radius:10px; border:1.5px solid var(--border); background:var(--card); color:var(--text); transition:background .18s,border-color .18s,box-shadow .18s,transform .1s; display:inline-flex; align-items:center; justify-content:center; gap:8px}
      .wizvis-btn:hover{border-color:var(--accent)}
      .wizvis-btn:active{transform:translateY(1px)}
      .wizvis-btn.gold{background:var(--accent); color:var(--accent-fg); border-color:var(--accent); box-shadow:0 12px 26px -12px var(--wv-glow)}
      .wizvis-btn.gold:hover{filter:brightness(1.06)}
      .wizvis-btn.ghost{background:transparent}
      .wizvis-btn.wide{flex:0 1 auto; min-width:180px}
      .wizvis-btn:focus-visible{outline:2px solid var(--accent); outline-offset:2px}
      .wizvis-close-row{display:flex; justify-content:center; margin-top:22px}

      /* Badge of the FIRST STEPS (tiradores.js). It was born with the
         «you chose private» panel, which left along with the private ones. */
      .wizvis-badge{align-self:flex-start; display:inline-flex; align-items:center; gap:8px; font-family:'Oswald',sans-serif; font-weight:600; text-transform:uppercase; letter-spacing:.1em; font-size:12px; color:var(--muted); border:1px solid var(--border); background:color-mix(in srgb,var(--muted) 8%,transparent); padding:5px 12px; border-radius:999px}
      .wizvis-badge svg{width:15px; height:15px}
      .wizvis-foot{margin-top:18px; text-align:center; color:var(--muted); font-size:12px; line-height:1.5}
      /* ACTIONABLE footer (beta screen): leads to Help. Underlined besides the
         color — color cannot be the only indicator that it can be tapped. */
      .wizvis-footlink{display:inline-flex; align-items:center; justify-content:center; gap:7px; margin:0 auto; padding:6px 10px; background:none; border:0; border-radius:6px; color:var(--accent); font:inherit; font-size:12px; line-height:1.5; text-decoration:underline; text-underline-offset:3px; cursor:pointer}
      .wizvis-footlink svg{width:15px; height:15px; flex:0 0 auto}
      .wizvis-footlink:focus-visible{outline:2px solid var(--accent); outline-offset:2px}
      @media (pointer: coarse){ .wizvis-footlink{min-height:44px; padding:10px 14px} }

      /* ── "First steps" onboarding (reuses the .wizvis-ov overlay) ── */
      .onb-steps{display:flex; flex-direction:column; gap:clamp(12px,2.2vw,18px); margin-top:clamp(18px,3.5vw,28px)}
      .onb-step{position:relative; display:grid; grid-template-columns:auto 1fr; gap:clamp(12px,2vw,16px); border-radius:14px; background:var(--card); border:1px solid var(--border); padding:clamp(15px,2.4vw,22px); box-shadow:0 10px 30px -18px rgba(0,0,0,.4)}
      .onb-num{width:38px; height:38px; border-radius:10px; background:var(--accent-dim); color:var(--accent); font-family:'Oswald',sans-serif; font-weight:700; font-size:18px; display:grid; place-items:center; flex:0 0 auto}
      .onb-body{min-width:0}
      .onb-head{display:flex; align-items:center; gap:10px}
      .onb-ic{flex:0 0 auto; width:22px; height:22px; color:var(--accent)}
      .onb-ic svg{width:22px; height:22px}
      .onb-title{font-family:'Oswald',sans-serif; font-weight:600; font-size:clamp(16px,2.6vw,20px); line-height:1.1; color:var(--text)}
      .onb-desc{color:var(--muted); font-size:14px; line-height:1.55; margin-top:7px}
      .onb-desc b{color:var(--text); font-weight:600}
      .onb-bullets{display:flex; flex-wrap:wrap; gap:7px; margin-top:11px}
      .onb-bullet{display:inline-flex; align-items:center; gap:6px; font-size:12px; padding:5px 10px; border-radius:999px; border:1px solid var(--border); background:var(--surface2); color:var(--text)}
      .onb-bullet svg{width:14px; height:14px; color:var(--success); flex:0 0 auto}
      .onb-cta-row{margin-top:15px}
      .onb-cta-row .wizvis-btn{flex:0 1 auto; min-width:0; padding:0 22px; min-height:44px; font-size:14px}
      .onb-link{display:inline-flex; align-items:center; gap:7px; cursor:pointer; background:transparent; border:none; color:var(--accent); font-family:'Oswald',sans-serif; font-weight:600; text-transform:uppercase; letter-spacing:.05em; font-size:12px; padding:10px 12px; min-height:44px}
      /* In the actions row it goes on the LEFT (the bar is flex-end). The
         `auto` pushes the rest into place without touching the bar, which is shared by
         twelve screens.
         ⛔ And the two NEGATIVE pixels above and below are not an eyeballed adjustment:
         the link is 44 px tall —the touch minimum— and `.btn-primary` 40,
         so putting it in the row made the row grow 4 px and the profile moved down, which
         is exactly what Santi did not want. The negative margin tucks it inside the
         padding the bar already had: the row measures the same as before and the touch
         target is still 44. */
      .form-actions .onb-link{margin-right:auto; margin-left:-12px; margin-top:-2px; margin-bottom:-2px}
      .onb-link svg{width:15px; height:15px}
      .onb-link:hover{text-decoration:underline}
      .onb-link:focus-visible{outline:2px solid var(--accent); outline-offset:2px}

      @media (prefers-reduced-motion:reduce){ .wizvis-ov{animation:none} .wizvis-btn{transition:none} }

