/* KYC components. Colours and fonts come from CSS variables the theme defines; fallbacks keep the plugin usable standalone. */
:root{
  --_primary:var(--kyc-primary,#2a74c9);--_deep:var(--kyc-primary-dark,#1d5aa6);--_ink:var(--kyc-ink,#0f2338);--_text:var(--kyc-text,#243447);
  --_muted:var(--kyc-muted,#566879);--_line:var(--kyc-line,#d5dde7);--_ground:var(--kyc-ground,#f3f6fa);--_tint:var(--kyc-tint,#e6effa);
  --_ok:var(--kyc-ok,#1e7e46);--_bad:var(--kyc-bad,#b3261e);--_radius:var(--kyc-radius,8px);
  --_display:var(--kyc-display,system-ui,sans-serif);--_font:var(--kyc-font,system-ui,sans-serif);
  --_shadow:0 1px 2px rgb(15 35 56 / .06),0 18px 40px -26px rgb(15 35 56 / .35);
}
.kyc-picker,.kyc-account,.kyc-pricing,.kyc-profile,.kyc-form{color:var(--_text)}

/* ---------- Form controls ---------- */
.kyc-field{margin:0 0 1.15rem;position:relative}
.kyc-field label,.kyc-panel__label{display:block;font-weight:650;color:var(--_ink);margin-bottom:.4rem}
.kyc-panel__label{font:650 1.15rem/1.3 var(--_display);margin-bottom:.65rem}
.kyc-field input[type=text],.kyc-field input[type=email],.kyc-field input[type=tel],.kyc-field input[type=url],.kyc-field input[type=password],.kyc-field input[type=file],.kyc-field select,.kyc-field textarea,
.kyc-panel input[type=text],.kyc-panel select,.kyc-maptools select{
  width:100%;min-height:3.25rem;padding:.7rem .9rem;border:1.5px solid #aebdce;border-radius:10px;font:inherit;background:#fff;color:var(--_ink);transition:border-color .15s,box-shadow .15s}
.kyc-field textarea{min-height:7rem;line-height:1.5}
.kyc-field input::placeholder,.kyc-panel input::placeholder,.kyc-field textarea::placeholder{color:#74869a}
.kyc-field input:hover,.kyc-field select:hover,.kyc-panel input:hover,.kyc-panel select:hover{border-color:#8da2b8}
.kyc-field input:focus,.kyc-field select:focus,.kyc-field textarea:focus,.kyc-panel input:focus,.kyc-panel select:focus,.kyc-maptools select:focus{outline:none;border-color:var(--_primary);box-shadow:0 0 0 4px color-mix(in srgb,var(--_primary) 22%,transparent)}
select,.kyc-field select,.kyc-panel select,.kyc-maptools select{appearance:none;-webkit-appearance:none;padding-right:2.6rem;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5l5.5 5.5 5.5-5.5' fill='none' stroke='%231d5aa6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 1rem center}
select:disabled{background-color:#f1f4f8;color:#8697aa;cursor:not-allowed}
.kyc-field input[type=file]{padding:.55rem .7rem;min-height:0}
.kyc-row{display:flex;gap:.6rem;align-items:stretch}.kyc-row input{flex:1;min-width:0}
.kyc-row .kyc-button{white-space:nowrap}
.kyc-grid{display:grid;gap:0 1.25rem;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr))}
.kyc-grid--2{grid-template-columns:repeat(auto-fit,minmax(18rem,1fr))}
.kyc-picker__selects{display:grid;gap:0 1.25rem;grid-template-columns:repeat(3,minmax(0,1fr))}
.kyc-picker__selects .kyc-field{margin:0}
.kyc-check{display:flex;gap:.7rem;align-items:flex-start;margin:0 0 1.15rem}.kyc-check input{margin-top:.35rem;width:1.1rem;height:1.1rem;accent-color:var(--_primary)}
.kyc-hint{font-size:.9rem;color:var(--_muted);margin:.5rem 0 0}.kyc-hint--sandbox{color:var(--_deep)}.kyc-hint--lead{margin:0 0 1rem;font-size:1rem}
.kyc-optional{font-weight:400;color:var(--_muted)}
.kyc-button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;background:var(--_primary);color:#fff;border:2px solid var(--_primary);border-radius:10px;padding:.7rem 1.3rem;font:650 1rem/1.2 var(--_font);cursor:pointer;text-decoration:none;transition:background-color .15s,border-color .15s,color .15s}
.kyc-button:hover{background:var(--_deep);border-color:var(--_deep);color:#fff}
.kyc-button[disabled]{opacity:.55;cursor:wait}
.kyc-button--ghost{background:transparent;color:var(--_deep);border-color:var(--_primary)}.kyc-button--ghost:hover{background:var(--_tint);color:var(--_deep)}
.kyc-button--sm{padding:.5rem .9rem;font-size:.92rem}
.kyc-button--danger{background:var(--_bad);border-color:var(--_bad)}.kyc-button--danger:hover{background:#8f1c16;border-color:#8f1c16}
.kyc-button:focus-visible{outline:3px solid color-mix(in srgb,var(--_primary) 45%,transparent);outline-offset:2px}

/* ---------- Notices, cards ---------- */
.kyc-card{background:#fff;border:1px solid var(--_line);border-radius:14px;padding:clamp(1.25rem,3vw,2rem);margin:0 0 1.5rem;box-shadow:var(--_shadow)}
.kyc-card h2,.entry .kyc-card h2{font-size:clamp(1.35rem,1.1rem + .8vw,1.7rem)}
.kyc-narrow{max-width:32rem;margin-inline:auto}
.kyc-lead{font-size:1.2rem;color:var(--_text);max-width:38rem}
.kyc-notice{padding:.85rem 1.1rem;border-radius:10px;background:var(--_tint);border:1px solid #c3d4ea;color:var(--_ink);margin:0 0 1rem}
.kyc-notice--ok{background:#e8f5ed;border-color:#b5dcc3}.kyc-notice--error{background:#fdeeec;border-color:#f0bdb8;color:#7a1710}.kyc-notice--sandbox{background:var(--_tint)}
.kyc-status{margin:1rem 0 0}.kyc-status:empty{display:none}

/* ---------- Finder (home) ---------- */
.kyc-finder{background:#fff;border:1px solid var(--_line);border-radius:16px;box-shadow:var(--_shadow);overflow:visible}
.kyc-tabs{display:flex;gap:.25rem;padding:.5rem .6rem 0;border-bottom:1px solid var(--_line);overflow-x:auto;scrollbar-width:none}
.kyc-tabs::-webkit-scrollbar{display:none}
.kyc-tab{appearance:none;background:none;border:0;border-bottom:3px solid transparent;margin-bottom:-1px;padding:.85rem 1.1rem;font:650 .98rem/1 var(--_font);color:var(--_muted);cursor:pointer;white-space:nowrap;border-radius:8px 8px 0 0}
.kyc-tab:hover{color:var(--_ink);background:var(--_ground)}
.kyc-tab[aria-selected=true]{color:var(--_ink);border-bottom-color:var(--_primary)}
.kyc-panel{padding:clamp(1.25rem,3vw,2rem);position:relative}.kyc-panel[hidden]{display:none}
.kyc-panel .kyc-row input{min-height:3.5rem;font-size:1.05rem}.kyc-panel .kyc-row .kyc-button{min-height:3.5rem;padding-inline:1.6rem}
.kyc-search-results{list-style:none;margin:.4rem 0 0;padding:.35rem;border:1px solid var(--_line);border-radius:12px;background:#fff;max-height:20rem;overflow:auto;position:absolute;left:clamp(1.25rem,3vw,2rem);right:clamp(1.25rem,3vw,2rem);z-index:30;box-shadow:0 20px 44px -16px rgb(15 35 56 / .35)}
.kyc-search-results[hidden]{display:none}
.kyc-search-results li{padding:0;border:0}
.kyc-search-results a{display:block;padding:.7rem .85rem;color:var(--_ink);text-decoration:none;border-radius:8px;line-height:1.35}.kyc-search-results a:hover,.kyc-search-results a:focus-visible{background:var(--_tint)}
.kyc-search-results a strong{display:block}.kyc-search-results a .kyc-hint{display:block;margin:.1rem 0 0}
li.kyc-hint{padding:.7rem .85rem;margin:0}

/* ---------- Stage: map + ballot ---------- */
.kyc-stage{margin-top:2.5rem;display:grid;gap:1.25rem 2.5rem;grid-template-columns:minmax(0,5fr) minmax(0,7fr);align-items:start}
.kyc-stage[hidden]{display:none}
.kyc-stage__head{grid-column:1/-1;border-top:1px solid var(--_line);padding-top:1.75rem}
.kyc-stage__head h2{margin:0;font-size:clamp(1.9rem,1.2rem + 2.6vw,3rem)}
.kyc-stage__sub{margin:.35rem 0 0;font-size:1.1rem;color:var(--_muted)}
.kyc-stage__map{position:sticky;top:calc(var(--kyc-header,4.5rem) + 1rem)}
.kyc-stage__main>*:first-child{margin-top:0}
.kyc-results{margin:0 0 2rem}.kyc-results:empty{display:none}
.kyc-results>h3{margin:0 0 .35rem}
.kyc-empty{border:1.5px dashed #aebdce;border-radius:14px;padding:2rem;background:rgb(255 255 255 / .6)}.kyc-empty h3{margin:0 0 .4rem}.kyc-empty p{margin:0;color:var(--_muted);max-width:30rem}

/* Map */
.kyc-mapwrap[hidden]{display:none}
.kyc-maptools{display:flex;gap:.75rem;align-items:flex-end;flex-wrap:wrap;margin:0 0 .6rem}
.kyc-maptools__filter{flex:1 1 13rem;min-width:0}
.kyc-maptools label{display:block;font-size:.88rem;font-weight:650;color:var(--_ink);margin-bottom:.3rem}
.kyc-maptools select{min-height:2.75rem;padding-block:.5rem;font-size:.95rem;text-overflow:ellipsis}
.kyc-map{height:clamp(20rem,52vh,34rem);border-radius:14px;border:1px solid var(--_line);background:#e7eef6;z-index:0;cursor:zoom-in;box-shadow:var(--_shadow);overflow:hidden}
.kyc-map[hidden]{display:none}
.kyc-map .leaflet-tile-pane{filter:grayscale(1) contrast(.88) brightness(1.06);opacity:.8}
.kyc-map .leaflet-control-zoom a{color:var(--_ink)}
.kyc-map .leaflet-tooltip{font:600 .85rem var(--_font);color:var(--_ink);border:0;border-radius:8px;box-shadow:0 8px 20px -8px rgb(15 35 56 / .5);padding:.35rem .6rem}
.kyc-map .leaflet-interactive{cursor:pointer;transition:fill-opacity .15s}
.kyc-maplegend{margin:.6rem 0 0;font-size:.9rem;color:var(--_muted);line-height:1.4}.kyc-maplegend:empty{display:none}
.kyc-mapwrap.is-full{position:fixed;inset:0;z-index:99999;background:#fff;padding:.9rem 1rem 1rem;display:flex;flex-direction:column}
.kyc-mapwrap.is-full .kyc-map{flex:1;height:auto;border-radius:12px;cursor:grab;box-shadow:none}
.kyc-mapwrap.is-full .kyc-maptools{max-width:var(--kyc-max,72rem);width:100%;margin:0 auto .75rem}
html.kyc-noscroll{overflow:hidden}

/* The ballot slip: party mark, name, the box */
.kyc-slip{background:#fff;border:1px solid #b9c8d9;border-radius:6px;box-shadow:var(--_shadow);margin:0 0 2rem}
.kyc-slip__head{position:relative;padding:1.1rem 1.4rem 1rem;background:var(--_tint);border-bottom:2px dashed #9db4cf;border-radius:5px 5px 0 0}
.kyc-slip__head::before,.kyc-slip__head::after{content:"";position:absolute;bottom:-9px;width:16px;height:16px;border-radius:50%;background:var(--kyc-ground,#f3f6fa);border:1px solid #b9c8d9}
.kyc-slip__head::before{left:-9px;clip-path:inset(0 0 0 50%)}.kyc-slip__head::after{right:-9px;clip-path:inset(0 50% 0 0)}
.kyc-slip__head h3{margin:0;font-size:1.35rem}
.kyc-slip__head p{margin:.2rem 0 0;color:var(--_muted);font-size:.95rem}
.kyc-slip__rows{list-style:none;margin:0;padding:0}
.kyc-slip__row{position:relative;display:grid;grid-template-columns:4.25rem 2.5rem minmax(0,1fr) auto 2.25rem;gap:.85rem;align-items:center;padding:.8rem 1.4rem;border-bottom:1px solid var(--_line);transition:background-color .12s}
.kyc-slip__row:last-child{border-bottom:0}
.kyc-slip__row:hover,.kyc-slip__row:focus-within{background:#f7fafd}
.kyc-slip__party{display:grid;place-items:center;height:2.5rem;border-radius:5px;background:var(--_tint);border:1px solid #c3d4ea;color:var(--_deep);font:800 .95rem/1 var(--_display);letter-spacing:.01em;text-align:center;padding:0 .25rem;overflow:hidden}
.kyc-slip__party.is-long{font-size:.7rem;letter-spacing:0}
.kyc-slip__party--sm{height:2rem;width:3.5rem;font-size:.82rem;flex:none}
.kyc-avatar{width:2.5rem;height:2.5rem;border-radius:50%;object-fit:cover;background:var(--_ground);flex:none}
.kyc-avatar--initials{display:grid;place-items:center;background:#dde8f5;color:var(--_deep);font:700 .85rem/1 var(--_display)}
.kyc-slip__who{display:flex;flex-direction:column;min-width:0}
.kyc-slip__name{font:650 1.08rem/1.25 var(--_display);color:var(--_ink);text-decoration:none;overflow-wrap:anywhere}
.kyc-slip__name::after{content:"";position:absolute;inset:0}
.kyc-slip__name:hover{color:var(--_deep);text-decoration:underline;text-underline-offset:.2em}
.kyc-slip__name:focus-visible{outline:none}
.kyc-slip__row:focus-within{outline:3px solid color-mix(in srgb,var(--_primary) 50%,transparent);outline-offset:-3px;border-radius:4px}
.kyc-slip__sub{font-size:.88rem;color:var(--_muted);line-height:1.3;overflow-wrap:anywhere}
.kyc-slip__spacer{width:0}
.kyc-slip__box{position:relative;width:2.25rem;height:2.25rem;border:2px solid #7f94ab;border-radius:4px;background:#fff;transition:border-color .12s,background-color .12s}
.kyc-slip__box::before,.kyc-slip__box::after{content:"";position:absolute;left:50%;top:50%;width:1.35rem;height:2.5px;border-radius:2px;background:var(--_deep);opacity:0;transform:translate(-50%,-50%) rotate(45deg) scaleX(.3);transition:opacity .12s,transform .16s}
.kyc-slip__box::after{transform:translate(-50%,-50%) rotate(-45deg) scaleX(.3)}
.kyc-slip__row:hover .kyc-slip__box,.kyc-slip__row:focus-within .kyc-slip__box{border-color:var(--_deep);background:var(--_tint)}
.kyc-slip__row:hover .kyc-slip__box::before,.kyc-slip__row:focus-within .kyc-slip__box::before{opacity:1;transform:translate(-50%,-50%) rotate(45deg) scaleX(1)}
.kyc-slip__row:hover .kyc-slip__box::after,.kyc-slip__row:focus-within .kyc-slip__box::after{opacity:1;transform:translate(-50%,-50%) rotate(-45deg) scaleX(1)}
.kyc-chip{display:inline-flex;align-items:center;gap:.3rem;font-size:.78rem;font-weight:700;border-radius:999px;padding:.2rem .6rem;line-height:1.2;white-space:nowrap}
.kyc-chip--verified{background:#e3f4ea;color:#14612f}
.kyc-chip--verified::before{content:"";width:.85em;height:.85em;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}

/* Party lists */
.kyc-party{background:#fff;border:1px solid var(--_line);border-radius:12px;margin:0 0 .6rem;overflow:hidden}
.kyc-party[open]{border-color:#b9c8d9;box-shadow:var(--_shadow)}
.kyc-party summary{list-style:none;display:flex;align-items:center;gap:.9rem;padding:.8rem 1.1rem;cursor:pointer}
.kyc-party summary::-webkit-details-marker{display:none}
.kyc-party summary::after{content:"";margin-left:auto;width:.6rem;height:.6rem;border-right:2.5px solid var(--_deep);border-bottom:2.5px solid var(--_deep);transform:rotate(45deg) translateY(-2px);transition:transform .15s;flex:none}
.kyc-party[open] summary::after{transform:rotate(-135deg) translateY(-2px)}
.kyc-party summary:hover{background:#f7fafd}
.kyc-party__name{font:650 1.02rem/1.25 var(--_display);color:var(--_ink)}
.kyc-party__text{display:flex;flex-direction:column;min-width:0;gap:.05rem}
.kyc-party__count{font-size:.88rem;color:var(--_muted)}
.kyc-party__body{padding:.25rem 1.1rem 1rem;border-top:1px solid var(--_line)}
.kyc-plist{list-style:none;margin:.5rem 0 0;padding:0;columns:2 16rem;column-gap:2rem}
.kyc-plist__row{display:flex;align-items:center;gap:.75rem;padding:.4rem 0;border-bottom:1px solid #edf1f6;break-inside:avoid}
.kyc-plist__pos{flex:none;min-width:1.9rem;text-align:right;font:700 .95rem/1 var(--_display);color:var(--_muted)}
.kyc-plist__row a{color:var(--_ink);text-decoration:none;font-weight:550}.kyc-plist__row a:hover{color:var(--_deep);text-decoration:underline}

/* Voting stations */
.kyc-voting details{background:#fff;border:1px solid var(--_line);border-radius:12px;padding:.85rem 1.1rem}
.kyc-voting summary{cursor:pointer;font-weight:650;color:var(--_ink)}
.kyc-stations{padding-left:1.1rem;margin:.9rem 0}

/* ---------- Pricing ---------- */
.kyc-pricing{display:grid;gap:clamp(2rem,5vw,4.5rem);grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:start;max-width:none}
.kyc-pricing__intro .kyc-lead{margin-top:0}
.kyc-pricing h2{font-size:1.5rem;margin:2.2rem 0 1rem}
.kyc-pricing .kyc-plan h2{margin:0 0 .75rem}
.kyc-plan{margin:0;padding:clamp(1.5rem,3vw,2.25rem);border-color:#b9c8d9;position:sticky;top:calc(var(--kyc-header,4.5rem) + 1.25rem)}
.kyc-plan h2{margin:0 0 .75rem;font-size:1.25rem}
.kyc-plan__price{display:flex;align-items:baseline;flex-wrap:wrap;gap:.2rem .6rem;margin:0 0 1.25rem}
.kyc-plan__amount{font:780 clamp(2.6rem,2rem + 2.5vw,3.6rem)/1 var(--_display);letter-spacing:-.03em;color:var(--_ink)}
.kyc-plan__freq{color:var(--_muted);font-size:1.05rem}
.kyc-checklist{list-style:none;padding:0;margin:0 0 1.5rem}
.kyc-checklist li{position:relative;padding:.5rem 0 .5rem 2rem;border-bottom:1px solid #edf1f6}.kyc-checklist li:last-child{border:0}
.kyc-checklist li::before{content:"";position:absolute;left:0;top:.7rem;width:1.2rem;height:1.2rem;border-radius:50%;background:var(--_primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.7 2.7L12 5.6' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat}
.kyc-plan .kyc-button{width:100%}
.kyc-steps{list-style:none;margin:0;padding:0;counter-reset:s}
.kyc-steps li{position:relative;counter-increment:s;padding:0 0 1.25rem 3.25rem}
.kyc-steps li::before{content:counter(s);position:absolute;left:0;top:0;width:2.25rem;height:2.25rem;border-radius:50%;background:var(--_tint);color:var(--_deep);display:grid;place-items:center;font:750 1rem/1 var(--_display)}

/* ---------- Claim + account ---------- */
.kyc-account__head,.kyc-claim-card__head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;flex-wrap:wrap}
.kyc-account__head h2,.kyc-claim-card__head h2{margin:0}
.kyc-status-pill{display:inline-flex;align-items:center;padding:.3rem .8rem;border-radius:999px;font-weight:700;font-size:.85rem;background:var(--_ground)}
.kyc-status--ok{background:#e3f4ea;color:#14612f}.kyc-status--wait{background:#eef2f6;color:#3d4d5c}.kyc-status--action{background:var(--_tint);color:var(--_deep)}.kyc-status--bad{background:#fbe1de;color:#8a1c14}
.kyc-progress{list-style:none;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:.5rem;padding:0;margin:1.5rem 0;counter-reset:p}
.kyc-progress li{position:relative;counter-increment:p;padding-top:2.4rem;font-size:.88rem;line-height:1.3;color:var(--_muted);text-align:left}
.kyc-progress li::before{content:counter(p);position:absolute;left:0;top:0;width:1.8rem;height:1.8rem;border-radius:50%;display:grid;place-items:center;background:#fff;border:2px solid var(--_line);font:700 .85rem/1 var(--_display);color:var(--_muted);z-index:1}
.kyc-progress li::after{content:"";position:absolute;left:2rem;right:.4rem;top:.9rem;height:2px;background:var(--_line)}
.kyc-progress li:last-child::after{display:none}
.kyc-progress li.is-done{color:var(--_ink)}.kyc-progress li.is-done::before{background:var(--_ok);border-color:var(--_ok);color:#fff;content:"\2713"}.kyc-progress li.is-done::after{background:var(--_ok)}
.kyc-progress li.is-current{color:var(--_ink);font-weight:700}.kyc-progress li.is-current::before{border-color:var(--_primary);background:var(--_primary);color:#fff}
.kyc-photo-row{display:flex;gap:1.1rem;align-items:center;margin-bottom:1.15rem}.kyc-photo-row .kyc-field{flex:1;margin:0}
.kyc-photo-thumb{width:5.25rem;height:5.25rem;border-radius:50%;object-fit:cover;background:#dde8f5;border:1px solid var(--_line);flex:none}
.kyc-cancel{margin-top:2rem;border-top:1px solid var(--_line);padding-top:1.1rem}.kyc-cancel summary{cursor:pointer;color:var(--_muted);font-weight:600}

/* ---------- Candidate profile ---------- */
.kyc-profile{color:var(--_text)}
.kyc-profile__hero{background:#fff;border-bottom:1px solid var(--_line);padding:clamp(1.5rem,3vw,2.25rem) 0 clamp(2rem,4vw,3rem)}
.kyc-profile__back{display:inline-flex;align-items:center;gap:.4rem;margin:0 0 1.5rem;color:var(--_deep);font-weight:600;text-decoration:none}
.kyc-profile__back::before{content:"";width:.55rem;height:.55rem;border-left:2.5px solid currentColor;border-bottom:2.5px solid currentColor;transform:rotate(45deg)}
.kyc-profile__back:hover{text-decoration:underline}
.kyc-profile__id{display:flex;gap:clamp(1.25rem,3vw,2.25rem);align-items:center}
.kyc-profile__photo{flex:none;width:clamp(6.5rem,16vw,10rem);aspect-ratio:1;border-radius:50%;object-fit:cover;background:#dde8f5;display:grid;place-items:center;font:700 clamp(2.4rem,6vw,3.6rem)/1 var(--_display);color:var(--_deep);box-shadow:0 0 0 6px var(--_tint)}
.kyc-profile__name{margin:0 0 .5rem;font-size:clamp(2rem,1.2rem + 3.4vw,3.6rem)}
.kyc-profile__facts{display:flex;flex-wrap:wrap;gap:.5rem .9rem;align-items:center;margin:0;color:var(--_text);font-size:1.05rem}
.kyc-profile__party{display:inline-flex;align-items:center;gap:.6rem;font-weight:650;color:var(--_ink)}
.kyc-profile__party .kyc-slip__party{width:3.5rem;height:2rem;font-size:.82rem}
.kyc-profile__sep{width:4px;height:4px;border-radius:50%;background:#9db0c5}
.kyc-profile__tags{display:flex;gap:.5rem;margin-top:.9rem;flex-wrap:wrap}
.kyc-profile .kyc-profile__body{display:grid;gap:clamp(1.5rem,4vw,3.5rem);grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);align-items:start;padding-top:clamp(2rem,4vw,3.25rem);padding-bottom:clamp(2.5rem,5vw,4rem)}
.kyc-profile__main h2{font-size:1.5rem;margin:0 0 .6rem}.kyc-profile__main section+section{margin-top:2.25rem}
.kyc-profile__main p{max-width:40rem;font-size:1.08rem;line-height:1.7}
.kyc-profile__aside{position:sticky;top:calc(var(--kyc-header,4.5rem) + 1.25rem);display:grid;gap:1.25rem}
.kyc-profile__aside .kyc-card{margin:0}
.kyc-profile__aside h2{font-size:1.15rem;margin:0 0 .75rem}
.kyc-contact{list-style:none;padding:0;margin:0;display:grid;gap:.15rem}
.kyc-contact a{display:block;padding:.55rem .1rem;color:var(--_deep);font-weight:600;text-decoration:none;border-bottom:1px solid #edf1f6;overflow-wrap:anywhere}.kyc-contact li:last-child a{border:0}.kyc-contact a:hover{text-decoration:underline}
.kyc-facts{margin:0;display:grid;gap:.9rem}.kyc-facts div{display:grid;gap:.1rem}
.kyc-facts dt{font-size:.88rem;color:var(--_muted)}.kyc-facts dd{margin:0;font-weight:600;color:var(--_ink)}
.kyc-claimcard{background:var(--_ink);color:#d3deea;border-color:var(--_ink)}
.kyc-claimcard h2{color:#fff}.kyc-claimcard p{margin:0 0 1.1rem}
.kyc-claimcard .kyc-button{background:#fff;color:var(--_ink);border-color:#fff;width:100%}.kyc-claimcard .kyc-button:hover{background:var(--_tint);border-color:var(--_tint)}
.kyc-emptynote{background:#fff;border:1.5px dashed #aebdce;border-radius:14px;padding:1.5rem}.kyc-emptynote p{margin:0}

/* ---------- Responsive ---------- */
@media (max-width:900px){
  .kyc-stage{grid-template-columns:1fr}.kyc-stage__map{position:static}
  .kyc-pricing{grid-template-columns:1fr}.kyc-plan{position:static}
  .kyc-profile__body{grid-template-columns:1fr}.kyc-profile__aside{position:static}
}
@media (max-width:640px){
  .kyc-row{flex-direction:column}
  .kyc-picker__selects{grid-template-columns:1fr;gap:.9rem}
  .kyc-slip__row{grid-template-columns:3.5rem minmax(0,1fr) 2rem;gap:.15rem .75rem;padding:.8rem 1rem}
  .kyc-slip__row .kyc-avatar,.kyc-slip__spacer{display:none}
  .kyc-slip__row .kyc-slip__party{grid-column:1;grid-row:1 / span 2;align-self:center}
  .kyc-slip__row .kyc-slip__who{grid-column:2;grid-row:1}
  .kyc-slip__row .kyc-chip{grid-column:2;grid-row:2;justify-self:start;margin-top:.2rem}
  .kyc-slip__row .kyc-slip__box{grid-column:3;grid-row:1 / span 2;align-self:center}
  .kyc-slip__box{width:2rem;height:2rem}
  .kyc-slip__head{padding:1rem}
  .kyc-profile__id{flex-direction:column;align-items:flex-start}
  .kyc-profile__facts{flex-direction:column;align-items:flex-start;gap:.35rem}.kyc-profile__sep{display:none}
  .kyc-progress{grid-auto-flow:row}
  .kyc-progress li{padding:0 0 1.1rem 2.6rem;min-height:1.8rem}.kyc-progress li::after{display:none}
  .kyc-map{height:clamp(18rem,48vh,26rem)}
  .kyc-photo-row{flex-direction:column;align-items:flex-start}
}
@media (prefers-reduced-motion:reduce){.kyc-slip__box::before,.kyc-slip__box::after{transition:none}}

/* Clickable South Africa map */
.kyc-samap{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:2rem;align-items:center}
.kyc-samap__art{max-width:400px;width:100%;margin-inline:auto}
.kyc-samap__svg{display:block;width:100%;height:auto}
.kyc-prov{fill:#dbe8f8;stroke:#fff;stroke-width:3;stroke-linejoin:round;cursor:pointer;transition:fill .15s}
.kyc-prov:hover{fill:#b6d0f0}
.kyc-prov:focus-visible{outline:none;stroke:var(--_ink);stroke-width:5}
.kyc-prov.is-active{fill:var(--_primary)}
.kyc-prov-label{font:600 22px/1 var(--_font);fill:var(--_ink);paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}
.kyc-prov.is-active + *{}
.kyc-samap__side h3{margin:0 0 .5rem}
@media (max-width:720px){.kyc-samap{grid-template-columns:1fr;gap:1rem}.kyc-prov-label{font-size:30px}}

.kyc-prov.is-in{fill:color-mix(in srgb,var(--_primary) calc(var(--kyc-heat,1) * 100%),#fff)}
.kyc-prov.is-in:hover{fill:var(--_primary)}
.kyc-prov.is-out{fill:#eceff3;cursor:not-allowed}
.kyc-prov.is-out:hover{fill:#e3e7ec}
.kyc-prov.is-active.is-in{fill:var(--_deep)}
.kyc-samap__party{margin:0 0 .75rem}
.kyc-samap__summary{margin:0 0 1rem;padding:.65rem .85rem;border-left:4px solid var(--_primary);background:var(--_ground);border-radius:0 8px 8px 0;font-weight:550;color:var(--_ink)}

.kyc-dot{fill:var(--_deep);fill-opacity:.88;stroke:#fff;stroke-width:3;cursor:pointer;transition:fill-opacity .12s}
.kyc-dot:hover,.kyc-dot:focus-visible{fill-opacity:1;stroke:var(--_ink);outline:none}
.kyc-prov.is-in{fill:color-mix(in srgb,var(--_primary) calc(var(--kyc-heat,1) * 35%),#fff)}
.kyc-samap__top{list-style:none;margin:0 0 1rem;padding:0;display:flex;flex-wrap:wrap;gap:.4rem}
.kyc-samap__toplink{appearance:none;border:1px solid #b9c9dc;background:#fff;border-radius:999px;padding:.35rem .8rem;font:600 .88rem/1.2 var(--_font);color:var(--_deep);cursor:pointer}
.kyc-samap__toplink:hover{background:var(--_ground);border-color:var(--_primary)}
.kyc-prov.is-nodata{fill:#eceff3;cursor:help}

.kyc-combo{position:relative}
.kyc-combo input[type=text]{width:100%;padding-right:2.6rem}
.kyc-combo__clear{position:absolute;right:.5rem;top:50%;transform:translateY(-50%);appearance:none;border:0;background:none;font:400 1.6rem/1 var(--_font);color:var(--_muted);cursor:pointer;padding:.2rem .5rem;border-radius:6px}
.kyc-combo__clear:hover{color:var(--_ink);background:var(--_ground)}
.kyc-combo__list{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 4px);margin:0;padding:.3rem;list-style:none;max-height:280px;overflow:auto;background:#fff;border:1px solid #b9c9dc;border-radius:10px;box-shadow:0 12px 32px rgb(15 35 56 / .16)}
.kyc-combo__list li{padding:.55rem .7rem;border-radius:7px;cursor:pointer;font-weight:550;color:var(--_ink)}
.kyc-combo__list li:hover,.kyc-combo__list li.is-active{background:var(--_ground);color:var(--_deep)}
.kyc-combo__list .kyc-combo__empty{cursor:default;color:var(--_muted);font-weight:400}
.kyc-combo__list .kyc-combo__empty:hover{background:none}

.kyc-filterbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;margin:0 0 1rem;padding:.7rem .9rem;border-left:4px solid var(--_primary);background:var(--_ground);border-radius:0 10px 10px 0;font-weight:600;color:var(--_ink)}
.kyc-picker [hidden]{display:none!important}

.kyc-hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
