/* Scoped identity onboarding additions. Existing marketplace styles remain the base. */
.kyc-flow{--kyc-ink:#172b37;--kyc-muted:#5b6c76;--kyc-line:#dce4e8;--kyc-soft:#f5f8fa;--kyc-green:#176944;--kyc-error:#a82525;color:var(--kyc-ink)}
.kyc-flow [hidden],.ap-auth-form [hidden]{display:none!important}
.kyc-eyebrow{display:block;font-size:.7rem;letter-spacing:.12em;font-weight:800;color:var(--kyc-muted);margin-bottom:10px}
.kyc-hero{align-items:flex-start!important;gap:20px}.kyc-hero h2{font-size:clamp(1.65rem,3vw,2.2rem)!important;line-height:1.16!important;letter-spacing:-.035em;max-width:620px}.kyc-hero p{max-width:620px;color:var(--kyc-muted);line-height:1.65}.kyc-hero>.verification-status{white-space:nowrap;flex-shrink:0}
.kyc-journey{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0!important;margin:4px 0 28px!important;list-style:none;gap:8px}
.kyc-journey li{display:flex;align-items:center;gap:10px;padding:16px 14px;background:#f4f6f7;border-radius:12px;border:1px solid transparent}
.kyc-journey li>span{width:30px;height:30px;display:grid;place-items:center;flex-shrink:0;border-radius:50%;background:#e4e9ed;font-weight:800;font-size:.8rem;color:#576b77}
.kyc-journey strong{display:block;font-size:.8rem;line-height:1.4}.kyc-journey small{display:block;color:var(--kyc-muted);font-size:.7rem;margin-top:3px;line-height:1.4}
.kyc-journey .is-done{background:#eff7f2}.kyc-journey .is-done>span{background:#d8eee1;color:var(--kyc-green)}.kyc-journey .is-current{background:#fff;border-color:#9cabb3;box-shadow:0 3px 10px #172b3707}.kyc-journey .is-current>span{background:var(--brand-secondary,#172b37);color:#fff}
.kyc-before-start{padding:22px 24px;border:1px solid var(--kyc-line);border-radius:14px;background:var(--kyc-soft);margin-bottom:24px}
.kyc-before-start>div{display:flex;align-items:center;gap:10px}.kyc-before-start h3{font-size:.95rem!important;margin:0!important}.kyc-before-start svg{width:21px;height:21px;flex-shrink:0}.kyc-before-start ul{display:flex;gap:10px 24px;flex-wrap:wrap;margin:15px 0 10px;padding:0;list-style:none}.kyc-before-start li{display:flex;align-items:flex-start;gap:7px;font-size:.78rem;line-height:1.6}.kyc-before-start li svg{color:var(--kyc-green);width:16px;height:16px;margin-top:3px}.kyc-before-start>p{font-size:.77rem;color:var(--kyc-muted);line-height:1.75;margin:0}
.kyc-form-card{padding:clamp(20px,3vw,32px)!important}.kyc-form-card .section-heading{padding-bottom:20px;margin-bottom:0;border-bottom:1px solid var(--kyc-line);align-items:flex-start}.kyc-form-card .section-heading h2{font-size:1.4rem!important;letter-spacing:-.025em}.kyc-form-card .section-heading p{color:var(--kyc-muted);font-size:.83rem;line-height:1.6}
.kyc-flow .verification-form{display:block}.kyc-flow .verification-form fieldset{margin:0;padding:28px 0;border:0;border-bottom:1px solid var(--kyc-line);min-width:0}.kyc-flow .verification-form legend{float:left;display:flex;gap:9px;align-items:center;width:100%;margin:0 0 14px;padding:0;font-weight:800;font-size:1rem}.kyc-flow .verification-form legend+*{clear:both}.kyc-flow legend>span{width:25px;height:25px;display:inline-grid;place-items:center;border-radius:8px;background:#eef2f4;font-size:.72rem;flex-shrink:0}
.kyc-muted{color:var(--kyc-muted);font-size:.8rem;line-height:1.7;margin:0 0 16px}.kyc-small{font-size:.76rem!important;line-height:1.7;color:var(--kyc-muted);margin-top:12px}
.kyc-flow .form-grid{gap:18px}.kyc-flow .form-grid label{font-size:.82rem;font-weight:700}.kyc-flow input:not([type=checkbox]):not([type=radio]):not([type=file]),.kyc-flow textarea{font-size:16px;line-height:1.5;min-height:48px;border-radius:9px;border:1px solid #cbd6dd;box-shadow:0 1px 2px #172b3705}.kyc-flow textarea{min-height:94px;resize:vertical}
.kyc-flow input:focus-visible,.kyc-flow textarea:focus-visible,.kyc-flow button:focus-visible,.kyc-flow a:focus-visible,.kyc-password-toggle:focus-visible{outline:3px solid #327eb4;outline-offset:3px}.kyc-flow [aria-invalid=true]{border-color:var(--kyc-error)!important}
.kyc-layout-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.kyc-layout-options label{display:flex;align-items:center;gap:10px;padding:14px;border:1px solid var(--kyc-line);border-radius:10px;cursor:pointer}.kyc-layout-options label:has(input:checked){border-color:var(--kyc-ink);background:#f7f9fa;box-shadow:inset 0 0 0 1px var(--kyc-ink)}.kyc-layout-options input{accent-color:var(--kyc-ink);width:17px;height:17px;flex-shrink:0}.kyc-layout-options strong{display:block;font-size:.8rem}.kyc-layout-options small{display:block;font-size:.71rem;font-weight:400;color:var(--kyc-muted);margin-top:3px}
.kyc-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.kyc-upload-grid.is-single,.kyc-upload-grid:has(>.kyc-upload-card:only-child){grid-template-columns:minmax(0,1fr)}
.kyc-upload-card{position:relative;border:1px dashed #aebec8;background:#fff;border-radius:14px;overflow:hidden;transition:border-color .18s,box-shadow .18s,transform .18s;min-width:0}.kyc-upload-card.is-selected{border-style:solid;border-color:#70a88a;box-shadow:0 3px 14px #17694408}.kyc-upload-card.is-dragging{border:2px solid #27749f;box-shadow:0 0 0 4px #27749f18;transform:translateY(-2px)}.kyc-upload-card.has-error{border-color:var(--kyc-error);border-style:solid}
.kyc-upload-preview{position:relative;background:linear-gradient(145deg,#f1f5f7,#f9fbfc);height:164px;display:grid;place-items:center;overflow:hidden}.kyc-license-example{width:170px;color:#76909f;opacity:.85}.kyc-license-example svg{width:100%!important;height:auto!important}.kyc-upload-preview img{width:100%;height:100%;max-height:164px;object-fit:contain;padding:12px;animation:kyc-appear .22s ease-out}.kyc-selected-badge{position:absolute;right:10px;top:10px;display:inline-flex;align-items:center;gap:4px;border:1px solid #c7e0d1;background:#f1faf5;color:var(--kyc-green);font-size:.63rem;font-weight:800;padding:4px 7px;border-radius:30px}.kyc-selected-badge svg{width:13px;height:13px}
.kyc-upload-body{padding:18px}.kyc-upload-heading{display:flex;justify-content:space-between;gap:8px;align-items:center}.kyc-upload-heading h4{font-size:.91rem!important;font-weight:800;margin:0!important}.kyc-required{font-size:.6rem;letter-spacing:.03em;text-transform:uppercase;background:#f2f4f5;padding:3px 6px;border-radius:4px;color:#657781;font-weight:700}.kyc-upload-body>p:not(.kyc-field-error){font-size:.73rem;line-height:1.6;color:var(--kyc-muted);margin:9px 0 13px}.kyc-upload-body>.kyc-file-meta{font-weight:700;color:var(--kyc-ink)!important;overflow-wrap:anywhere}
.kyc-upload-actions{display:flex;align-items:center;gap:12px}.kyc-choose,.kyc-remove{min-height:44px!important;border-radius:8px;cursor:pointer;font-size:.76rem!important;font-weight:750!important;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 12px!important;width:auto!important}.kyc-choose{background:#fff!important;border:1px solid #b8c8d2!important;color:var(--kyc-ink)!important;box-shadow:0 1px 3px #172b3707}.kyc-choose:hover{background:#f1f5f7!important}.kyc-choose svg{width:16px;height:16px}.kyc-remove{background:transparent!important;border:0!important;color:var(--kyc-error)!important;text-decoration:underline;padding:8px 0!important}.kyc-drop-hint{font-size:.66rem!important;margin-bottom:0!important;color:#73858f!important}
.kyc-native-input{font-size:.8rem;max-width:100%}.kyc-native-input-enhanced{position:absolute!important;width:1px!important;height:1px!important;opacity:0;overflow:hidden;clip-path:inset(50%);padding:0!important;border:0!important}
.kyc-document-tile{display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;max-width:240px;padding:15px}.kyc-document-tile>svg{width:39px;height:39px;color:#63849a}.kyc-document-tile strong{font-size:.8rem}.kyc-document-tile span{font-size:.66rem;line-height:1.5;color:var(--kyc-muted)}.kyc-pdf-preview{display:inline-block;font-size:.73rem;margin-top:12px}
.kyc-preview-note{display:flex;gap:7px;align-items:flex-start;font-size:.72rem;line-height:1.65;color:var(--kyc-muted);margin:15px 0 0}.kyc-preview-note svg{width:17px;height:17px;flex-shrink:0;margin-top:2px}
.kyc-field-error{display:block;font-size:.76rem!important;color:var(--kyc-error)!important;font-weight:600;line-height:1.6;margin-top:8px}.kyc-form-alert,.kyc-feedback{border:1px solid #e3b1aa;background:#fff6f4;border-radius:12px;padding:17px 20px;color:#8e3027;margin-top:20px}.kyc-form-alert strong{font-size:.85rem}.kyc-form-alert p,.kyc-feedback p{font-size:.8rem;line-height:1.7;margin:5px 0 0}.kyc-feedback{display:flex;gap:12px;margin:0 0 24px}.kyc-feedback>svg{width:23px;height:23px;flex-shrink:0}
.kyc-readiness{padding:12px 14px;background:#f4f6f8;border-radius:9px;color:#586d7b;font-size:.76rem;line-height:1.65;margin:0 0 18px}.kyc-readiness.is-ready{background:#edf7f0;color:var(--kyc-green)}.kyc-flow .verification-consent{align-items:flex-start;gap:11px;font-size:.78rem;line-height:1.8}.kyc-flow .verification-consent input{margin-top:5px;flex-shrink:0;width:18px;height:18px;accent-color:var(--kyc-ink)}
.kyc-submit-area{display:flex;align-items:center;gap:22px;padding-top:24px}.kyc-submit{min-height:50px;display:inline-flex;align-items:center;justify-content:center;gap:10px;flex-shrink:0;padding:14px 19px!important;border-radius:9px;font-size:.83rem!important;font-weight:800!important;background:var(--brand-secondary,#172b37)!important;color:#fff!important}.kyc-submit svg{width:17px;height:17px}.kyc-submit-area>p{margin:0;font-size:.72rem;line-height:1.75;color:var(--kyc-muted);max-width:340px}.kyc-flow button:disabled{cursor:wait;opacity:.65}
.kyc-upload-progress{margin-top:22px;padding:18px;background:#f2f7fa;border-radius:11px;border:1px solid #dce7ee}.kyc-upload-progress>div{display:flex;gap:9px;align-items:center;font-size:.77rem}.kyc-upload-progress [data-progress-percent]{margin-left:auto}.kyc-upload-progress progress{width:100%;height:8px;margin-top:12px;accent-color:var(--kyc-green);display:block}.kyc-upload-progress>p{font-size:.7rem;color:var(--kyc-muted);line-height:1.65;margin:10px 0 0}.kyc-spinner{width:15px;height:15px;border:2px solid #c4d5df;border-top-color:#2f697c;border-radius:50%;animation:kyc-spin 1s linear infinite;flex-shrink:0}
.kyc-result-card{display:flex;gap:22px;padding:30px!important}.kyc-result-icon{width:58px;height:58px;display:grid;place-items:center;background:#edf7f0;border-radius:16px;color:var(--kyc-green);flex-shrink:0}.kyc-result-icon svg{width:30px;height:30px}.kyc-result-card h2{font-size:1.35rem!important;margin-bottom:10px!important}.kyc-result-card p{font-size:.83rem;line-height:1.8;max-width:620px}.kyc-result-card .button{margin-top:12px;font-size:.8rem}.kyc-flow .verification-help{margin-top:24px}.kyc-flow .verification-details h2{font-size:1.1rem!important}
.kyc-signup-process{list-style:none;padding:0;margin:30px 0;display:grid;gap:25px}.kyc-signup-process li{display:flex;gap:15px}.kyc-signup-process li>span{display:grid;place-items:center;width:35px;height:35px;flex-shrink:0;border:1px solid #ffffff45;background:#ffffff0c;border-radius:11px;font-weight:750;font-size:.85rem}.kyc-signup-process strong{font-size:.94rem}.kyc-signup-process p{color:#d1e1dc!important;font-size:.82rem;line-height:1.8;opacity:.78;margin-top:5px;max-width:350px}.kyc-signup-reassurance{color:#c0d5cb!important;display:flex;gap:10px;align-items:flex-start;font-size:.75rem;line-height:1.8;opacity:.8;max-width:360px}.kyc-signup-reassurance svg{width:18px;height:18px;flex-shrink:0;margin-top:3px}
.kyc-signup-next{display:flex;align-items:flex-start;gap:10px;padding:14px;background:#f3f7f9;border:1px solid #e0e8ed;border-radius:10px;margin-bottom:4px}.kyc-signup-next>svg{width:22px;height:22px;color:#45697d;flex-shrink:0}.kyc-signup-next strong{font-size:.76rem}.kyc-signup-next p{font-size:.7rem;line-height:1.75;color:#5b6d78;margin:5px 0 0}.kyc-signup-submit-note{margin:0!important;text-align:center;font-size:.69rem!important;color:#657781!important}
.kyc-password-wrap{position:relative}.kyc-password-wrap input{padding-right:68px!important;width:100%}.ap-auth-form .kyc-password-toggle{position:absolute;right:7px;top:50%;transform:translateY(-50%);min-height:44px;padding:5px 10px!important;width:auto!important;background:transparent!important;color:#456477!important;border:0!important;box-shadow:none!important;font-size:.74rem!important;font-weight:750!important;cursor:pointer}.kyc-password-checks{display:flex;gap:7px 12px;flex-wrap:wrap;padding:0!important;margin:0!important;list-style:none}.kyc-password-checks li{display:flex;align-items:center;gap:5px;font-size:.67rem;color:#6b7b85}.kyc-password-checks li:before{content:"○";font-size:.9rem}.kyc-password-checks .is-met{color:#176944}.kyc-password-checks .is-met:before{content:"✓";font-weight:800}
.kyc-flow .kyc-before-start,.kyc-flow .kyc-form-card,.kyc-flow .kyc-result-card{animation:kyc-appear .24s ease-out both}
@keyframes kyc-appear{from{opacity:.3;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes kyc-spin{to{transform:rotate(360deg)}}
@media(max-width:760px){.kyc-journey{gap:6px;margin-bottom:20px!important}.kyc-journey li{padding:12px 8px;gap:7px;align-items:flex-start}.kyc-journey li>span{width:24px;height:24px;font-size:.68rem}.kyc-journey strong{font-size:.7rem}.kyc-journey small{font-size:.63rem}.kyc-before-start{padding:18px}.kyc-before-start ul{display:grid;gap:7px}.kyc-form-card .section-heading{display:block}.kyc-form-card .verification-secure-note{display:inline-flex;margin-top:12px}.kyc-upload-grid{gap:12px}.kyc-upload-body{padding:14px}.kyc-upload-heading{align-items:flex-start}.kyc-upload-heading h4{font-size:.85rem!important}.kyc-submit-area{flex-direction:column;align-items:stretch;gap:12px}.kyc-submit-area>p{max-width:none}.kyc-result-card{padding:22px!important;gap:15px}.kyc-result-icon{width:44px;height:44px;border-radius:12px}.kyc-result-icon svg{width:25px;height:25px}.kyc-hero>.verification-status{align-self:flex-start}.kyc-signup-process{gap:19px;margin:24px 0}.kyc-signup-process p{color:#d1e1dc!important;font-size:.77rem}.kyc-signup-reassurance{margin-bottom:5px}}
@media(max-width:480px){.kyc-journey li{display:block}.kyc-journey li>span{margin-bottom:8px}.kyc-journey strong{font-size:.67rem}.kyc-layout-options{grid-template-columns:1fr;gap:8px}.kyc-layout-options label{padding:12px}.kyc-upload-grid{grid-template-columns:1fr}.kyc-upload-preview{height:170px}.kyc-upload-preview img{max-height:170px}.kyc-form-card{padding:18px!important}.kyc-result-card{display:block}.kyc-result-icon{margin-bottom:16px}.kyc-hero{flex-direction:column}.kyc-before-start>div{align-items:flex-start}.kyc-flow .verification-form fieldset{padding:23px 0}}
@media(prefers-reduced-motion:reduce){.kyc-flow *,.kyc-flow *:before,.kyc-flow *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.kyc-spinner{border-top-color:#2f697c;border-style:dotted}}


.kyc-signup-steps{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0!important;margin:0 0 3px!important}
.kyc-signup-steps li{display:flex;gap:6px;align-items:center;font-size:.67rem;line-height:1.4;color:#73838d;font-weight:600}
.kyc-signup-steps b{width:21px;height:21px;display:inline-grid;place-items:center;flex-shrink:0;border-radius:50%;background:#edf1f3;font-size:.61rem}
.kyc-signup-steps [aria-current=step]{color:#176944}.kyc-signup-steps [aria-current=step] b{background:#dcefe3;color:#176944}

.kyc-format-guidance{display:flex;gap:4px 16px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.kyc-format-guidance>.kyc-muted{margin:0}
.kyc-formats-tooltip{display:inline-flex;position:relative;align-items:center}
.kyc-formats-link{display:inline-flex;gap:5px;align-items:center;padding:8px 0!important;min-height:40px;border:0!important;background:transparent!important;color:#205d7b!important;box-shadow:none!important;font-size:.77rem!important;font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer;width:auto!important}
.kyc-formats-link svg{width:15px;height:15px;flex-shrink:0}
.kyc-formats-content{position:absolute;z-index:20;left:0;top:100%;width:270px;max-width:calc(100vw - 64px);padding:12px 14px;border:1px solid #cddae2;border-radius:9px;background:#fff;color:#243c4b;box-shadow:0 7px 24px #172b3720;font-size:.76rem;line-height:1.8;font-weight:500;visibility:hidden;opacity:0;pointer-events:none}
.kyc-formats-tooltip:hover:not(.is-dismissed)>.kyc-formats-content,.kyc-formats-tooltip:focus-within:not(.is-dismissed)>.kyc-formats-content{visibility:visible;opacity:1;pointer-events:auto}
@media(max-width:480px){.kyc-format-guidance{align-items:flex-start;gap:0}.kyc-format-guidance>.kyc-muted{width:100%}}
