/* SHARED enrollment application BODY styles — single source of truth for
   John's form (apply.html) and the agent viewer (app.html). Unscoped on purpose
   so both render byte-identical. Shell styles (topbar, stepper, progress, mirror
   head) stay in each page. Extracted verbatim from apply.html Build 109. */

/* ONE self-hosted signature font, bundled with the app (signature-font.woff2 at the deploy root).
   Both John's page and the viewer load this same stylesheet, so both resolve the signature to the
   SAME font file on EVERY device — no Google Fonts, no Mac system-font dependency, no drift. */
@font-face{
  font-family:'InvictusSignature';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url('signature-font.woff2') format('woff2');
}

.m-screen-title{font-size:18px;font-weight:800;letter-spacing:-0.4px;color:var(--ink);line-height:1.5}
.m-screen-desc{font-size:13px;color:var(--grey);margin-top:3px;margin-bottom:22px;line-height:1.5}
.step-screen{flex:1}
.step-screen[data-screen="2"]{display:flex;flex-direction:column;justify-content:center}
#refSplit{display:flex;flex-direction:column;flex:1}
.split-cancel{flex:1;display:flex;align-items:center;justify-content:center}
.m-form{display:flex;flex-direction:column;flex:1}

  .frow{display:grid;gap:16px;margin-bottom:16px}
  .frow.two{grid-template-columns:1fr 1fr}
  .fgroup-label{font-size:11px;font-weight:800;letter-spacing:0.5px;text-transform:uppercase;color:var(--grey-2);margin:22px 0 12px}
  .field label{display:block;font-size:12.5px;font-weight:700;color:var(--ink);margin-bottom:6px}
  .field label .lock-i{display:inline-flex;align-items:center;gap:3px;font-size:10px;font-weight:700;color:var(--grey-2);margin-left:6px;text-transform:uppercase;letter-spacing:.3px}
  .field label .lock-i svg{width:10px;height:10px;stroke:var(--grey-2);fill:none;stroke-width:2}
  /* NOTE: the old replica field-box styling (fbox / fcheck / fchev / field-state attrs) was removed
     with the replica animation engine. Real .in inputs (styled below) render on both pages now. */
  .pw-strength{margin:14px 0 4px}
  .pw-title{font-size:11px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:var(--grey-2);margin-bottom:9px}
  .pw-bar{height:6px;border-radius:999px;background:#ececee;overflow:hidden;margin-bottom:12px}
  .pw-bar i{display:block;height:100%;width:0;border-radius:999px;background:var(--ok);transition:width .4s cubic-bezier(.3,.9,.3,1),background .4s}
  .pw-bar i.strong{background:var(--ok)}
  .pw-reqs{display:grid;grid-template-columns:repeat(4,auto);justify-content:space-between;gap:9px 20px}
  .pw-req{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--grey-2);transition:.3s}
  .pw-req em{width:15px;height:15px;border-radius:50%;border:1.5px solid #cfd0d4;flex:none;position:relative;transition:.3s;display:flex;align-items:center;justify-content:center}
  .pw-req.met{color:var(--ink)}
  .pw-req.met em{background:var(--ok);border-color:var(--ok)}
  .pw-req.met em::after{content:"";width:3px;height:6px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg) translateY(-1px);margin-top:-1px}
  /* age gate flag */
  .age-flag{display:none;align-items:flex-start;gap:11px;background:var(--stall-soft);border:1px solid #f3c9c5;border-radius:4px;padding:13px 15px;margin:-2px 0 4px}
  .age-flag.show{display:flex}
  .age-flag .af-ic{width:28px;height:28px;border-radius:4px;background:#fff;display:flex;align-items:center;justify-content:center;flex:none}
  .age-flag .af-ic svg{width:16px;height:16px;stroke:var(--stall);fill:none;stroke-width:2}
  .age-flag .af-txt{font-size:12.5px;font-weight:700;color:var(--ink);line-height:1.35}
  .age-flag .af-txt small{display:block;font-weight:500;color:var(--grey);margin-top:2px;font-size:11.5px}
  .m-formfoot{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:26px;padding-top:22px;border-top:1px solid var(--card-line)}
  .mf-next:disabled{opacity:.4;cursor:not-allowed;background:var(--gold)}
  .mf-back{background:none;border:none;font-family:inherit;font-size:14px;font-weight:700;color:var(--grey);cursor:pointer;padding:11px 4px}
  .mf-back:hover:not(:disabled){color:var(--ink)}
  .mf-back:disabled{opacity:.35;cursor:not-allowed}
  .mf-next{background:var(--gold);border:none;border-radius:4px;padding:12px 24px;font-family:inherit;font-size:14px;font-weight:700;color:#fff;cursor:pointer;display:flex;align-items:center;gap:9px;transition:.15s}
  .mf-next:hover{background:var(--gold-hover)}
  .mf-next svg{width:15px;height:15px;stroke:#fff;fill:none;stroke-width:2}
  /* ===== Step 4: Agreement ===== */
  .agree-summary{background:#fbfbfc;border:1px solid var(--card-line);border-radius:4px;padding:18px 20px;margin-bottom:14px}
  .as-head{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:800;color:var(--gold-deep);margin-bottom:14px}
  .as-head svg{width:18px;height:18px;stroke:var(--gold-deep);fill:none;stroke-width:2}
  .as-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 24px}
  .as-grid span{font-size:13px;color:var(--ink);display:flex;align-items:center;gap:8px}
  .as-grid span b{color:var(--ok);font-weight:800}
  .agree-expander{border:1px solid var(--line-strong);border-radius:4px;margin-bottom:16px;overflow:hidden}
  .agree-expand{padding:14px 16px;font-size:13.5px;font-weight:700;color:var(--ink);display:flex;align-items:center;justify-content:space-between;cursor:pointer;transition:.15s;user-select:none}
  .agree-expand:hover{background:#fbfbfc}
  .agree-expand svg{width:16px;height:16px;stroke:var(--grey);fill:none;stroke-width:2;transition:transform .3s}
  .agree-expander.open .agree-expand{border-bottom:1px solid var(--line-strong)}
  .agree-expander.open .agree-expand svg{transform:rotate(180deg)}
  .ica-body{max-height:0;overflow:hidden;transition:max-height .35s cubic-bezier(.3,.9,.3,1)}
  .agree-expander.open .ica-body{max-height:300px}
  .ica-scroll{max-height:300px;overflow-y:auto;padding:16px 18px;font-size:12.5px;color:var(--grey);line-height:1.6}
  .ica-scroll h6{font-size:13px;font-weight:800;color:var(--ink);margin:14px 0 6px}
  .ica-scroll h6:first-child{margin-top:0}
  .ica-scroll p{margin-bottom:8px}
  .ica-scroll .ica-open{background:#fff4c9;border-left:3px solid #d9b23e;padding:8px 10px;display:block;border-radius:0 4px 4px 0;color:#5a4a16}
  .ica-scroll .ica-open b{color:#5a4a16}
  .checkrow{border:1.5px solid var(--line-strong);border-radius:4px;padding:15px 16px;display:flex;align-items:flex-start;gap:12px;cursor:pointer;transition:.15s}
  .checkrow.on{border-color:var(--gold);background:var(--gold-soft)}
  .checkbox{width:22px;height:22px;border-radius:4px;border:1.5px solid var(--line-strong);flex:none;display:flex;align-items:center;justify-content:center;transition:.15s}
  .checkbox svg{width:14px;height:14px;stroke:#fff;fill:none;stroke-width:3;opacity:0}
  .checkrow.on .checkbox{background:var(--gold);border-color:var(--gold)}.checkrow.on .checkbox svg{opacity:1}
  .checktxt{font-size:13.5px;color:var(--ink);line-height:1.4;padding-top:1px}
  .sig-wrap{margin-top:18px}
  .sig-label{font-size:12.5px;font-weight:700;color:var(--ink);margin-bottom:6px}
  .sig-input{width:100%;background:#fff;border:1.5px solid var(--line-strong);border-radius:4px;padding:11px 13px;font-size:14px;font-family:inherit;color:var(--ink);outline:none;transition:border-color .15s}
  .sig-input:focus{border-color:var(--gold)}
  .sig-input::placeholder{color:var(--grey-2)}
  .sig-preview{margin-top:10px;border:1.5px solid var(--line-strong);border-radius:4px;height:110px;position:relative;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden}
  .sig-preview-ph{font-size:13px;color:var(--grey-2);pointer-events:none;transition:.2s}
  .sig-preview-ph.hide{opacity:0}
  .sig-preview-name{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);text-align:center;font-family:'InvictusSignature',cursive;font-weight:400;font-size:46px;color:#1b1c1f;padding:0 24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .2s}
  .sig-preview-name.show{opacity:1}
  .sig-line{position:absolute;left:24px;right:24px;bottom:24px;height:1.5px;background:var(--line);pointer-events:none}
  .sig-meta{margin-top:8px;font-size:11.5px;color:var(--grey-2);min-height:15px;transition:.2s}
  /* Step 5 confirmation */
  .done-wrap{display:flex;flex-direction:column;align-items:center;text-align:center;padding:40px 24px 24px}
  .done-check{width:76px;height:76px;border-radius:50%;border:3px solid var(--gold);display:flex;align-items:center;justify-content:center;margin-bottom:22px;animation:io-pop .4s cubic-bezier(.3,1.3,.5,1)}
  .done-check svg{width:38px;height:38px;stroke:var(--gold);fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
  @keyframes io-pop{0%{transform:scale(.4);opacity:0}100%{transform:scale(1);opacity:1}}
  .done-title{font-size:21px;font-weight:800;color:var(--ink);margin-bottom:10px}
  .done-sub{font-size:14px;color:var(--grey);line-height:1.6;max-width:360px;margin-bottom:28px}
  .done-btn{background:var(--gold);border:none;border-radius:4px;padding:13px 26px;font-family:inherit;font-size:14.5px;font-weight:700;color:#fff;cursor:pointer;display:flex;align-items:center;gap:9px;transition:.15s}
  .done-btn:hover{background:var(--gold-hover)}
  .done-btn svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:2}
  /* Step 5 agent-code block */
  .code-box{background:var(--gold-soft);border:1px solid #ecd98f;border-radius:8px;padding:16px 26px;margin-bottom:26px;display:flex;flex-direction:column;align-items:center;max-width:400px}
  .code-label{font-size:11px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:var(--gold-deep);margin-bottom:6px}
  .code-value{font-size:30px;font-weight:900;color:var(--ink);letter-spacing:1px;font-variant-numeric:tabular-nums}
  .code-note{font-size:12.5px;color:var(--grey);margin-top:8px;max-width:360px;line-height:1.55;text-align:center}
  /* ===== Step 3: Compliance ===== */
  .qlabel{font-size:13.5px;font-weight:700;color:var(--ink);margin-bottom:10px}
  .cfield{margin-bottom:20px}
  .chips{display:flex;gap:8px;flex-wrap:wrap}
  .chip{padding:9px 16px;border:1.5px solid var(--line-strong);border-radius:4px;font-size:13px;font-weight:600;color:var(--grey);background:#fff;cursor:pointer;transition:.15s;user-select:none}
  .chip:hover{border-color:var(--gold)}
  .chip.picked{border-color:var(--gold);background:var(--gold-soft);color:var(--gold-deep);font-weight:700}
  .class-explain{font-size:12.5px;color:var(--grey);line-height:1.5;margin:-6px 0 4px;max-width:640px}
  .class-explain b{color:var(--ink);font-weight:700}
  .class-explain a{color:var(--gold-deep);font-weight:600;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
  .frow.three{grid-template-columns:1fr 1fr 1fr}
  .ssn-explain{display:flex;align-items:center;gap:8px;font-size:11.5px;color:var(--grey-2);margin-top:12px}
  .ssn-explain svg{width:12px;height:12px;stroke:var(--grey-2);fill:none;stroke-width:2;flex:none}
  .radio-list{display:flex;flex-direction:column;gap:10px}
  .radio-row{display:flex;align-items:center;gap:11px;font-size:14px;font-weight:600;color:var(--ink);cursor:pointer;user-select:none}
  .radio-dot{width:19px;height:19px;border-radius:50%;border:1.5px solid var(--line-strong);flex:none;position:relative;transition:.15s;display:flex;align-items:center;justify-content:center}
  .radio-row:hover .radio-dot{border-color:var(--gold)}
  .radio-row.picked .radio-dot{border-color:var(--gold)}
  .radio-row.picked .radio-dot::after{content:"";width:9px;height:9px;border-radius:50%;background:var(--gold)}
  .explain-box{display:none;margin-top:12px}
  .explain-box.show{display:block}
  .explain-box label{display:block;font-size:12px;font-weight:700;color:var(--ink);margin-bottom:6px}
  .explain-box textarea{width:100%;min-height:70px;border:1.5px solid var(--line-strong);border-radius:4px;padding:10px 13px;font-family:inherit;font-size:13.5px;color:var(--ink);background:#fff;outline:none;resize:none;transition:.15s}
  .explain-box textarea:focus{border-color:var(--gold)}
  /* ===== Step 2: Referring Agent ===== */
  .ref-wrap{display:flex;flex-direction:column;align-items:center;text-align:center;padding:8px 0 4px}
  .ref-card{border:1.5px solid var(--line-strong);border-radius:4px;padding:28px 24px;text-align:center;width:100%;max-width:360px;background:#fff}
  .ref-av{width:68px;height:68px;border-radius:50%;margin:0 auto 14px;overflow:hidden;background:var(--charcoal);display:flex;align-items:center;justify-content:center;color:var(--gold);font-weight:800;font-size:22px}
  .ref-av img{width:100%;height:100%;object-fit:cover;display:block}
  .ref-by{font-size:10.5px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:var(--grey-2)}
  .ref-name{font-size:19px;font-weight:800;letter-spacing:-0.4px;margin-top:3px;color:var(--ink)}
  .ref-code{font-size:12.5px;color:var(--grey);margin-top:2px}
  .ref-badge{display:inline-flex;align-items:center;gap:6px;margin-top:14px;background:none;color:var(--ok);font-size:12.5px;font-weight:700;padding:0}
  .ref-badge svg{width:13px;height:13px;stroke:var(--ok);fill:none;stroke-width:2.6}
  .ref-change{margin-top:16px;font-size:12.5px;font-weight:700;color:var(--gold-deep);cursor:pointer;background:none;border:none;font-family:inherit;text-decoration:underline;text-underline-offset:2px}
  /* change -> code entry */
  .ref-entry{width:100%;max-width:360px;margin-top:4px;display:none}
  .ref-entry.show{display:block}
  .ref-card.hide{display:none}
  .ref-entry .field{text-align:left;margin-bottom:12px}
  .ref-verify-row{display:flex;gap:10px}
  .ref-verify-row .field{flex:1;margin-bottom:0}
  .ref-verify-btn{height:44px;align-self:flex-end;padding:0 20px;border:none;border-radius:4px;background:var(--gold);color:#fff;font-family:inherit;font-size:13.5px;font-weight:700;cursor:pointer}
  .ref-verify-btn:hover{background:var(--gold-hover)}
  .ref-cancel{margin-top:12px;font-size:12px;font-weight:600;color:var(--grey);cursor:pointer;background:none;border:none;font-family:inherit;text-decoration:underline;text-underline-offset:2px}
  .ref-hint{font-size:12px;color:var(--grey);line-height:1.5;margin-top:26px;max-width:420px;text-align:center;margin-left:auto;margin-right:auto}
  /* name typeahead */
  .ref-search{width:100%;max-width:420px;text-align:left;position:relative}
  .ref-search>label{display:block;font-size:12.5px;font-weight:700;color:var(--ink);margin-bottom:6px}
  .ref-search-box{position:relative}
  .ref-search-box .rs-ic{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:17px;height:17px;stroke:var(--grey-2);fill:none;stroke-width:2;pointer-events:none}
  .ref-search-box input{width:100%;height:46px;border:1.5px solid var(--line-strong);border-radius:4px;padding:0 14px 0 40px;font-family:inherit;font-size:14px;color:var(--ink);background:#fff;outline:none;transition:.15s}
  .ref-search-box input:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(217,178,62,.18)}
  /* when results are open, connect the box to the dropdown as one unit */
  .ref-search.open .ref-search-box input{border-bottom-left-radius:0;border-bottom-right-radius:0}
  .ref-results{margin-top:0;border:1.5px solid var(--line-strong);border-top:none;border-radius:0 0 4px 4px;background:#fff;display:none;max-height:186px;overflow-y:auto}
  .ref-results.show{display:block}
  .ref-row{display:flex;align-items:center;gap:12px;padding:10px 13px;cursor:pointer;transition:.12s;border-bottom:1px solid var(--card-line)}
  .ref-row:last-child{border-bottom:none}
  .ref-row:hover{background:var(--gold-soft)}
  .ref-row .rr-av{width:44px;height:44px;border-radius:50%;background:var(--charcoal);color:var(--gold);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px;flex:none;overflow:hidden}
  .ref-row .rr-av img{width:100%;height:100%;object-fit:cover;display:block;image-rendering:auto}
  .ref-row .rr-txt{line-height:1.25}
  .ref-row .rr-name{font-size:14px;font-weight:700;color:var(--ink)}
  .ref-row .rr-code{font-size:12px;color:var(--grey-2);font-weight:600}
  .ref-empty{padding:14px;font-size:13px;color:var(--grey-2);text-align:center}
  .ref-actions{display:flex;flex-direction:column;gap:12px;align-items:center;margin-top:14px}
  .ref-split-btn{display:inline-flex;align-items:center;gap:7px;border:1.5px solid var(--gold);background:transparent;color:var(--gold-deep);font-family:inherit;font-size:13px;font-weight:700;padding:9px 16px;border-radius:4px;cursor:pointer;transition:.15s}
  .ref-split-btn:hover{background:var(--gold);color:#fff}
  .ref-split-btn svg{width:15px;height:15px;stroke:var(--gold-deep);fill:none;stroke-width:2.2}
  .ref-split-btn:hover svg{stroke:#fff}
  /* ===== split mode ===== */
  .split-cols{display:grid;grid-template-columns:1fr 1fr;gap:16px;width:100%;max-width:560px;margin:0 auto}
  .split-card{position:relative;border:1.5px solid var(--line-strong);border-radius:4px;padding:22px 18px;text-align:center;background:#fff;min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center}
  .sc-av{width:56px;height:56px;border-radius:50%;background:var(--charcoal);color:var(--gold);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:18px;margin-bottom:11px;overflow:hidden}
  .sc-av img{width:100%;height:100%;object-fit:cover;display:block}
  .sc-name{font-size:15px;font-weight:800;color:var(--ink);letter-spacing:-0.2px}
  .sc-code{font-size:12px;color:var(--grey);margin-top:2px}
  .sc-pct{display:inline-flex;align-items:center;justify-content:center;gap:2px;margin-top:14px;border:1.5px solid var(--line-strong);border-radius:4px;padding:6px 12px}
  .sc-pct input{width:34px;border:none;outline:none;font-family:inherit;font-size:18px;font-weight:800;color:var(--ink);text-align:right;background:transparent}
  .sc-pct-sign{font-size:15px;font-weight:800;color:var(--grey)}
  .sc-remove{position:absolute;top:10px;right:10px;width:24px;height:24px;border:none;background:none;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
  .sc-remove svg{width:15px;height:15px;stroke:var(--grey-2);fill:none;stroke-width:2.2}
  .sc-remove:hover svg{stroke:var(--ink)}
  .sc-filled{flex-direction:column;align-items:center;justify-content:center;width:100%}
  .sc-search{text-align:left;width:100%}
  .sc-search .ref-search-box{margin-bottom:0}
  .sc-search .ref-results{position:static}
  .sc-search .ref-row,.sc-search .rr-txt,.sc-search .rr-name,.sc-search .rr-code{text-align:left}
  .split-total{text-align:center;margin-top:18px;font-size:13px;font-weight:800;color:var(--ok)}
  .split-total.bad{color:var(--stall)}
  .split-total.bad::after{content:". Must equal 100%";font-weight:600;color:var(--grey)}
  /* demo control */
  .control{margin-top:18px;background:var(--charcoal);border-radius:4px;padding:13px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
  .ctrl-label{font-size:12px;color:#aeb0b6;font-weight:600;display:flex;align-items:center;gap:9px}
  .ctrl-label .demo-chip{background:rgba(255,255,255,.1);color:#d2d3d6;font-size:10px;font-weight:800;letter-spacing:.5px;padding:3px 8px;border-radius:999px;text-transform:uppercase}
  .ctrl-btns{display:flex;gap:10px}
  .cbtn{border:none;border-radius:4px;padding:11px 20px;font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;display:flex;align-items:center;gap:8px;transition:.15s}
  .cbtn.ghost{background:rgba(255,255,255,.08);color:#d2d3d6}.cbtn.ghost:hover{background:rgba(255,255,255,.15)}
  .cbtn svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2}


  /* ===== apply.html real-form overrides (standalone applicant page) ===== */
  /* The applicant sees the form directly: no live-mirror dimming, show the form always. */
  .m-form{display:flex !important;flex-direction:column;flex:1}
  /* real inputs styled to match the mockup's .fbox field boxes */
  .in{width:100%;height:44px;border:1.5px solid var(--line-strong);border-radius:4px;padding:0 13px;font-family:inherit;font-size:14px;color:var(--ink);background:#fff;outline:none;transition:.15s}
  .in:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(217,178,62,.18)}
  .in::placeholder{color:var(--grey-2)}
  /* locked, non-editable field (e.g. Country = US only for now; opens to a dropdown later) */
  .in-locked{background:#f1f1f3;color:var(--grey);cursor:default;border-color:var(--line)}
  .in-locked:focus{border-color:var(--line);box-shadow:none}
  /* password reveal eye (reveals only on the applicant's own device) */
  .pw-wrap{position:relative}
  .pw-wrap .in{padding-right:44px}
  .pw-eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:none;background:none;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;border-radius:4px;transition:.12s}
  .pw-eye:hover{background:var(--gold-soft)}
  .pw-eye svg{width:19px;height:19px;stroke:var(--grey-2);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  .pw-eye:hover svg{stroke:var(--gold-deep)}
  .pw-eye .eye-off{display:none}
  .pw-eye.shown .eye-open{display:none}
  .pw-eye.shown .eye-off{display:block}
  /* fully custom dropdown (no native <select>, so the OPEN menu is ours too) */
  .sel{position:relative}
  .sel-btn{width:100%;height:44px;border:1.5px solid var(--line-strong);border-radius:4px;padding:0 40px 0 13px;font-family:inherit;font-size:14px;color:var(--ink);background:#fff;outline:none;cursor:pointer;display:flex;align-items:center;transition:.15s;position:relative}
  .sel-btn .sel-txt{flex:1;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  .sel-btn .sel-txt.ph{color:var(--grey-2)}
  .sel-btn .sel-chev{position:absolute;right:13px;top:50%;transform:translateY(-50%);width:16px;height:16px;stroke:var(--grey-2);fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
  .sel.open .sel-btn{border-color:var(--gold);box-shadow:0 0 0 3px rgba(217,178,62,.18);border-bottom-left-radius:0;border-bottom-right-radius:0}
  .sel.open .sel-btn .sel-chev{transform:translateY(-50%) rotate(180deg)}
  .sel.err .sel-btn{border-color:var(--stall);box-shadow:0 0 0 3px rgba(224,72,63,.14);background:var(--stall-soft)}
  .sel-menu{position:absolute;left:0;right:0;top:100%;z-index:40;background:#fff;border:1.5px solid var(--gold);border-top:none;border-radius:0 0 4px 4px;box-shadow:0 12px 28px rgba(16,17,19,.14);max-height:240px;overflow-y:auto;padding:4px;display:none}
  .sel.open .sel-menu{display:block}
  .sel-opt{padding:10px 12px;border-radius:4px;font-size:14px;color:var(--ink);cursor:pointer;transition:.1s}
  .sel-opt:hover,.sel-opt.active,.sel-opt.hi{background:var(--gold-soft)}
  .sel-btn:focus-visible{border-color:var(--gold);box-shadow:0 0 0 3px rgba(217,178,62,.18)}
  .sel-opt.sel-cur{background:var(--gold-soft);color:var(--gold-deep);font-weight:700}
  .field .in.err{border-color:var(--stall);box-shadow:0 0 0 3px rgba(224,72,63,.14);background:var(--stall-soft)}
  /* inline gentle hint shown when trying to advance while invalid */
  .form-hint{display:none;align-items:center;gap:9px;background:var(--stall-soft);border:1px solid #f3c9c5;border-radius:4px;padding:11px 14px;margin-top:16px;font-size:12.5px;font-weight:700;color:var(--ink);line-height:1.35}
  .form-hint.show{display:flex}
  .form-hint svg{width:16px;height:16px;stroke:var(--stall);fill:none;stroke-width:2;flex:none}
  /* on the standalone page the card can breathe a little; remove the mirror head borders feel */
@media(max-width:620px){
    .frow.two{grid-template-columns:1fr}
    .split-cols{grid-template-columns:1fr}
       That zoom is what widened the viewport and let the page be dragged laterally.
       16px here keeps the horizontal-scroll lock intact on every step. ===== */
    .in, .ne-field input, .sig-input, .ref-search-box input, .sel-btn{font-size:16px}
       version, so every step label is a single line. Desktop keeps the full labels. */
}
