
:root{
    --kkb-sa-blue:#0086b9;
    --kkb-sa-dark:#005a7d;
    --kkb-sa-deep:#00435e;
    --kkb-sa-soft:#eaf6fb;
    --kkb-sa-text:#111;
    --kkb-sa-muted:#667178;
    --kkb-sa-line:#dce4e8;
}

/* Header placement */
.kkb-sa-header-item{display:flex!important;align-items:center;margin-right:12px!important}
.kkb-sa-header-button{
    appearance:none;border:1px solid var(--kkb-sa-dark);background:#fff;color:var(--kkb-sa-dark);
    min-height:42px;padding:0 16px;border-radius:999px;display:inline-flex;align-items:center;gap:8px;
    font-size:12px;font-weight:800;letter-spacing:.02em;cursor:pointer;white-space:nowrap;
    transition:background .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.kkb-sa-header-button:hover,.kkb-sa-header-button:focus{
    background:var(--kkb-sa-dark);color:#fff;box-shadow:0 7px 18px rgba(0,90,125,.17);
}
.kkb-sa-header-button:focus{outline:3px solid rgba(0,134,185,.2);outline-offset:2px}
.kkb-sa-scan-icon{display:inline-flex;align-items:center}
body:has(.kkb-sa-header-item) .kkb-sa-floating-trigger{display:none!important}

.kkb-sa-floating-trigger{
    position:fixed;right:18px;bottom:18px;z-index:99991;border:0;border-radius:999px;
    background:var(--kkb-sa-dark);color:#fff;padding:13px 18px;font-weight:800;box-shadow:0 8px 28px rgba(0,0,0,.2);
}

/* Modal */
body.kkb-sa-open{overflow:hidden}
.kkb-sa-overlay{
    position:fixed;inset:0;z-index:999999;background:rgba(10,18,23,.67);
    display:flex;align-items:flex-start;justify-content:center;padding:28px 18px;overflow-y:auto;
}
.kkb-sa-overlay[hidden]{display:none!important}
.kkb-sa-dialog{
    position:relative;width:min(1040px,100%);margin:auto;background:#fff;border-radius:22px;
    box-shadow:0 28px 90px rgba(0,0,0,.25);overflow:hidden;color:var(--kkb-sa-text);
}
.kkb-sa-close{
    position:absolute;top:18px;right:18px;z-index:3;width:42px;height:42px;border:1px solid var(--kkb-sa-line);
    border-radius:50%;background:#fff;color:#111;font-size:26px;line-height:1;cursor:pointer;
}
.kkb-sa-brand{padding:30px 72px 22px 34px;background:linear-gradient(110deg,#f8fcfe,#e8f6fb)}
.kkb-sa-brand span,.kkb-sa-step-heading>span,.kkb-sa-result-top>div>span,.kkb-sa-recommendation-heading>span{
    color:var(--kkb-sa-blue);font-size:10px;font-weight:900;letter-spacing:.13em;
}
.kkb-sa-brand strong{display:block;margin:5px 0 5px;font-size:27px;line-height:1.1}
.kkb-sa-brand p{margin:0;color:var(--kkb-sa-muted);font-size:13px}
.kkb-sa-progress{display:grid;grid-template-columns:auto 1fr auto 1fr auto;align-items:center;gap:12px;padding:17px 34px;border-bottom:1px solid var(--kkb-sa-line)}
.kkb-sa-progress>span{display:flex;align-items:center;gap:7px;color:#8b9498;font-size:11px;font-weight:800}
.kkb-sa-progress>span::first-letter{font-weight:900}
.kkb-sa-progress>span.is-active{color:var(--kkb-sa-dark)}
.kkb-sa-progress>i{height:1px;background:#dce4e8}
.kkb-sa-step{padding:30px 34px 34px}
.kkb-sa-step[hidden]{display:none!important}
.kkb-sa-step-heading{margin-bottom:24px}
.kkb-sa-step-heading h2{margin:5px 0 7px!important;font-size:32px!important;line-height:1.08!important;color:#111!important}
.kkb-sa-step-heading p{margin:0;color:var(--kkb-sa-muted);font-size:14px}

.kkb-sa-photo-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);gap:20px}
.kkb-sa-camera-card,.kkb-sa-photo-help,.kkb-sa-question,.kkb-sa-result-note{
    border:1px solid var(--kkb-sa-line);border-radius:15px;background:#fff;
}
.kkb-sa-camera-card{padding:15px}
.kkb-sa-preview-wrap{position:relative;min-height:390px;background:#edf3f5;border-radius:12px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.kkb-sa-preview-wrap video,.kkb-sa-preview-wrap img{width:100%;height:390px;object-fit:cover;display:block}
.kkb-sa-photo-placeholder{text-align:center;color:#5e6b70;display:flex;flex-direction:column;align-items:center;gap:8px}
.kkb-sa-photo-placeholder strong{color:#111;font-size:17px}
.kkb-sa-photo-placeholder small{font-size:11px}
.kkb-sa-face-guide{width:150px;height:195px;border:2px dashed #8ab7c7;border-radius:48% 48% 46% 46%;position:relative}
.kkb-sa-face-guide:before,.kkb-sa-face-guide:after{content:"";position:absolute;width:26px;height:26px;border-color:var(--kkb-sa-blue)}
.kkb-sa-face-guide:before{left:-12px;top:-12px;border-left:3px solid var(--kkb-sa-blue);border-top:3px solid var(--kkb-sa-blue)}
.kkb-sa-face-guide:after{right:-12px;bottom:-12px;border-right:3px solid var(--kkb-sa-blue);border-bottom:3px solid var(--kkb-sa-blue)}
.kkb-sa-photo-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:13px}
.kkb-sa-photo-help{padding:22px}
.kkb-sa-photo-help h3{margin:0 0 13px!important;font-size:18px!important;color:#111!important}
.kkb-sa-photo-help ul{margin:0;padding-left:19px;color:#5c666b;font-size:13px;line-height:1.65}
.kkb-sa-photo-status{margin-top:20px;padding:14px;background:var(--kkb-sa-soft);display:flex;flex-direction:column;gap:3px;font-size:12px}
.kkb-sa-photo-status strong{color:var(--kkb-sa-dark)}
.kkb-sa-consent{display:flex;align-items:flex-start;gap:10px;margin-top:18px;font-size:12px;color:#41494d}
.kkb-sa-consent input{margin-top:2px}
.kkb-sa-privacy{margin:7px 0 0;color:#7b8488;font-size:10px;line-height:1.5}

.kkb-sa-btn,.kkb-sa-link-btn{min-height:44px;cursor:pointer;font-weight:800}
.kkb-sa-btn{border-radius:7px;padding:0 19px;border:1px solid var(--kkb-sa-dark)}
.kkb-sa-btn.is-primary{background:var(--kkb-sa-dark);color:#fff}
.kkb-sa-btn.is-primary:hover{background:var(--kkb-sa-deep)}
.kkb-sa-btn.is-primary:disabled{opacity:.45;cursor:not-allowed}
.kkb-sa-btn.is-secondary{background:#fff;color:var(--kkb-sa-dark)}
.kkb-sa-link-btn{border:0;background:transparent;color:var(--kkb-sa-dark);padding:0 4px}
.kkb-sa-step-actions{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:23px}

.kkb-sa-question{padding:20px;margin-bottom:15px}
.kkb-sa-question h3{margin:0 0 5px!important;font-size:17px!important;color:#111!important}
.kkb-sa-question>p{margin:0 0 10px;color:#7b8589;font-size:11px}
.kkb-sa-choice-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-top:13px}
.kkb-sa-choice-grid.is-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.kkb-sa-choice-grid.is-goals{grid-template-columns:repeat(4,minmax(0,1fr))}
.kkb-sa-choice-grid label{position:relative}
.kkb-sa-choice-grid input{position:absolute;opacity:0;pointer-events:none}
.kkb-sa-choice-grid span{display:flex;align-items:center;justify-content:center;min-height:54px;padding:8px;border:1px solid var(--kkb-sa-line);border-radius:9px;text-align:center;color:#4e585d;font-size:12px;font-weight:700;cursor:pointer}
.kkb-sa-choice-grid input:checked+span{border-color:var(--kkb-sa-blue);background:#eaf7fb;color:var(--kkb-sa-dark);box-shadow:inset 0 0 0 1px var(--kkb-sa-blue)}
.kkb-sa-choice-grid input:focus+span{outline:3px solid rgba(0,134,185,.15);outline-offset:2px}

.kkb-sa-loading{text-align:center;padding:70px 20px}
.kkb-sa-loading h2{font-size:27px!important;color:#111!important}
.kkb-sa-loading p{max-width:570px;margin:7px auto;color:#6c767a}
.kkb-sa-loader{width:54px;height:54px;border:4px solid #d8eaf1;border-top-color:var(--kkb-sa-blue);border-radius:50%;margin:0 auto 18px;animation:kkbspin .9s linear infinite}
@keyframes kkbspin{to{transform:rotate(360deg)}}

.kkb-sa-result-top{display:flex;justify-content:space-between;align-items:flex-start;gap:25px;border-bottom:1px solid var(--kkb-sa-line);padding-bottom:18px}
.kkb-sa-result-top h2{margin:5px 0 7px!important;font-size:31px!important;color:#111!important}
.kkb-sa-result-top p{margin:0;color:#5e696e;max-width:720px}
.kkb-sa-profile-chips{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.kkb-sa-profile-chip{padding:8px 11px;border-radius:999px;background:#eaf6fb;color:var(--kkb-sa-dark);font-size:11px;font-weight:800}
.kkb-sa-result-note{padding:13px 15px;background:#fffaf0;display:flex;gap:8px;align-items:flex-start;font-size:11px;color:#665d4c}
.kkb-sa-result-note strong{white-space:nowrap;color:#4e4639}
.kkb-sa-recommendation-heading{margin:27px 0 16px}
.kkb-sa-recommendation-heading h3{margin:5px 0!important;font-size:25px!important;color:#111!important}
.kkb-sa-recommendation-heading p{margin:0;color:#6b7478;font-size:12px}
.kkb-sa-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.kkb-sa-product-card{border:1px solid var(--kkb-sa-line);border-radius:12px;overflow:hidden;background:#fff;display:flex;flex-direction:column;min-width:0}
.kkb-sa-product-image{aspect-ratio:1/1;background:#fff;display:flex;align-items:center;justify-content:center;padding:12px}
.kkb-sa-product-image img{width:100%;height:100%;object-fit:contain}
.kkb-sa-product-copy{padding:13px;display:flex;flex-direction:column;flex:1}
.kkb-sa-product-brand{font-size:9px;font-weight:800;letter-spacing:.06em;color:#827a75;text-transform:uppercase}
.kkb-sa-product-copy h4{margin:5px 0 7px!important;font-size:14px!important;line-height:1.3!important;color:#111!important}
.kkb-sa-product-copy h4 a{color:#111!important;text-decoration:none!important}
.kkb-sa-product-reasons{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:9px}
.kkb-sa-product-reasons span{padding:4px 6px;border-radius:999px;background:#f1f6f8;color:#56636a;font-size:8px}
.kkb-sa-product-price{margin-top:auto;color:#111;font-size:13px;font-weight:800}
.kkb-sa-product-price del{color:#aaa;font-weight:500}
.kkb-sa-product-price ins{text-decoration:none}
.kkb-sa-product-action{display:block;margin-top:10px;background:var(--kkb-sa-dark);color:#fff!important;text-decoration:none!important;text-align:center;padding:9px 8px;border-radius:6px;font-size:10px;font-weight:800}
.kkb-sa-error{text-align:center;padding:50px 20px}
.kkb-sa-error h2{font-size:26px!important;color:#111!important}

@media(max-width:1200px){
    .kkb-sa-header-button{padding:0 11px}
    .kkb-sa-button-label{font-size:0}
    .kkb-sa-button-label:after{content:"Skin Scan";font-size:11px}
}
@media(max-width:991px){
    .kkb-sa-header-item{margin-right:8px!important}
    .kkb-sa-header-button{width:42px;padding:0;justify-content:center}
    .kkb-sa-button-label{display:none}
    .kkb-sa-photo-layout{grid-template-columns:1fr}
    .kkb-sa-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .kkb-sa-choice-grid.is-three{grid-template-columns:repeat(3,minmax(0,1fr))}
    .kkb-sa-choice-grid.is-goals{grid-template-columns:repeat(2,minmax(0,1fr))}
    .kkb-sa-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
    .kkb-sa-overlay{padding:0}
    .kkb-sa-dialog{border-radius:0;min-height:100%}
    .kkb-sa-brand{padding:25px 58px 18px 18px}
    .kkb-sa-brand strong{font-size:23px}
    .kkb-sa-progress{padding:13px 18px;gap:7px}
    .kkb-sa-progress span b{display:none}
    .kkb-sa-step{padding:23px 17px 28px}
    .kkb-sa-step-heading h2{font-size:27px!important}
    .kkb-sa-preview-wrap{min-height:330px}
    .kkb-sa-preview-wrap video,.kkb-sa-preview-wrap img{height:330px}
    .kkb-sa-choice-grid,.kkb-sa-choice-grid.is-three,.kkb-sa-choice-grid.is-goals{grid-template-columns:1fr 1fr}
    .kkb-sa-product-grid{grid-template-columns:1fr 1fr}
    .kkb-sa-result-top{flex-direction:column}
    .kkb-sa-result-note{flex-direction:column}
}
@media(max-width:420px){
    .kkb-sa-product-grid{grid-template-columns:1fr}
}

.kkb-sa-brand p b{
    color:var(--kkb-sa-dark);
    font-weight:800;
}
.kkb-sa-melanin-note{
    background:#f4fafc;
    border-left:3px solid var(--kkb-sa-blue);
    padding:10px 12px;
    color:#536168;
    font-size:11px;
}

.kkb-sa-market-badge{
    display:inline-flex;
    align-items:center;
    margin:7px 0 8px;
    padding:7px 11px;
    border-radius:999px;
    background:#dff3fb;
    border:1px solid #b9e1ef;
    color:var(--kkb-sa-dark);
    font-size:11px;
    line-height:1.2;
    font-weight:900;
    letter-spacing:.025em;
}
.kkb-sa-melanin-disclaimer{
    display:grid;
    grid-template-columns:auto 1fr;
    gap:8px 12px;
    margin-top:14px;
    padding:13px 15px;
    border-left:3px solid var(--kkb-sa-blue);
    background:#f5fbfd;
    color:#58666d;
    font-size:11px;
    line-height:1.55;
}
.kkb-sa-melanin-disclaimer strong{
    color:var(--kkb-sa-dark);
    white-space:nowrap;
}
.kkb-sa-result-market{
    display:inline-flex;
    margin:7px 0 2px;
    padding:6px 9px;
    border-radius:999px;
    background:#eaf7fb;
    color:var(--kkb-sa-dark);
    font-size:10px;
    font-weight:900;
}
@media(max-width:640px){
    .kkb-sa-melanin-disclaimer{
        grid-template-columns:1fr;
    }
    .kkb-sa-melanin-disclaimer strong{
        white-space:normal;
    }
}


/* v1.2.0 — structured skin profile + four-step routine */
.kkb-sa-analysis-summary{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    margin:20px 0;
}
.kkb-sa-analysis-card{
    padding:16px;
    border:1px solid var(--kkb-sa-line);
    border-radius:13px;
    background:#fff;
}
.kkb-sa-analysis-card>span{
    display:block;
    margin-bottom:10px;
    color:var(--kkb-sa-blue);
    font-size:9px;
    line-height:1.2;
    font-weight:900;
    letter-spacing:.11em;
}
.kkb-sa-analysis-tags{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
}
.kkb-sa-analysis-empty{
    color:#899196;
    font-size:11px;
    font-style:italic;
}
.kkb-sa-routine-heading{
    margin:28px 0 16px;
}
.kkb-sa-routine-heading>span{
    color:var(--kkb-sa-blue);
    font-size:10px;
    font-weight:900;
    letter-spacing:.12em;
}
.kkb-sa-routine-heading h3{
    margin:5px 0 5px!important;
    color:#111!important;
    font-size:27px!important;
    line-height:1.1!important;
}
.kkb-sa-routine-heading p{
    margin:0;
    color:#687378;
    font-size:12px;
}
.kkb-sa-routine-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:13px;
}
.kkb-sa-routine-card{
    position:relative;
    display:flex;
    flex-direction:column;
    min-width:0;
    overflow:hidden;
    border:1px solid #cbdfe7;
    border-radius:14px;
    background:#fff;
}
.kkb-sa-routine-step{
    display:flex;
    align-items:center;
    gap:8px;
    padding:11px 13px;
    background:#eaf7fb;
    border-bottom:1px solid #d3e8f0;
    color:var(--kkb-sa-dark);
}
.kkb-sa-routine-step b{
    width:24px;
    height:24px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:var(--kkb-sa-dark);
    color:#fff;
    font-size:10px;
}
.kkb-sa-routine-step span{
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.kkb-sa-routine-product{
    display:flex;
    flex-direction:column;
    min-width:0;
}
.kkb-sa-routine-product .kkb-sa-product-image{
    aspect-ratio:1/1;
}
.kkb-sa-routine-why{
    margin:0;
    padding:0 13px 15px;
    color:#5e686d;
    font-size:10px;
    line-height:1.5;
}
.kkb-sa-routine-empty{
    grid-column:1/-1;
    margin:0;
    padding:18px;
    border:1px dashed var(--kkb-sa-line);
    color:#687378;
    text-align:center;
    font-size:12px;
}

@media(max-width:991px){
    .kkb-sa-analysis-summary{grid-template-columns:1fr}
    .kkb-sa-routine-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
    .kkb-sa-routine-grid{grid-template-columns:1fr}
}


/* v1.3.1 — mandatory photo + correctly centred face guide */
.kkb-sa-dialog [hidden]{
    display:none!important;
}

.kkb-sa-preview-wrap{
    position:relative;
}

.kkb-sa-photo-placeholder{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    box-sizing:border-box;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap:10px;
    padding:24px;
}

.kkb-sa-face-guide{
    flex:0 0 auto;
    margin:0 auto;
}

.kkb-sa-step-actions-required{
    justify-content:flex-end;
}

.kkb-sa-required-hint{
    margin-right:auto;
    align-self:center;
    color:#6d777c;
    font-size:11px;
    line-height:1.4;
}

@media(max-width:640px){
    .kkb-sa-step-actions-required{
        align-items:stretch;
        flex-direction:column;
    }
    .kkb-sa-required-hint{
        margin-right:0;
    }
    .kkb-sa-step-actions-required .kkb-sa-btn{
        width:100%;
    }
}

.kkb-sa-quality-panel{margin-top:16px;padding-top:14px;border-top:1px solid var(--kkb-sa-line)}
.kkb-sa-quality-title{display:block;margin-bottom:8px;color:var(--kkb-sa-blue);font-size:9px;font-weight:900;letter-spacing:.11em}
.kkb-sa-quality-row{display:grid;grid-template-columns:18px 1fr auto;gap:7px;align-items:center;padding:5px 0;color:#738087;font-size:10px}
.kkb-sa-quality-row i{display:grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#eef3f5;font-style:normal;font-weight:900}
.kkb-sa-quality-row b{font-size:9px}.kkb-sa-quality-row.is-pass{color:#216d43}.kkb-sa-quality-row.is-pass i{background:#e4f5eb}.kkb-sa-quality-row.is-fail{color:#a13535}.kkb-sa-quality-row.is-fail i{background:#fdeaea}
.kkb-sa-choice-grid.is-steps{grid-template-columns:repeat(5,minmax(0,1fr))}
.kkb-sa-choice-grid.is-steps span{flex-direction:column;gap:5px;min-height:74px}.kkb-sa-choice-grid.is-steps span b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#eef7fb;color:var(--kkb-sa-dark);font-size:9px}.kkb-sa-choice-grid.is-steps input:checked+span b{background:var(--kkb-sa-dark);color:#fff}
.kkb-sa-extra-care-heading{margin:30px 0 14px}.kkb-sa-extra-care-heading>span{color:var(--kkb-sa-blue);font-size:10px;font-weight:900;letter-spacing:.12em}.kkb-sa-extra-care-heading h3{margin:5px 0!important;color:#111!important;font-size:25px!important}.kkb-sa-extra-care-heading p{margin:0;color:#6b7478;font-size:12px}
.kkb-sa-extra-care-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.kkb-sa-extra-care-bucket,.kkb-sa-extra-grid{display:contents}.kkb-sa-extra-card{display:grid;grid-template-columns:120px minmax(0,1fr);gap:18px;align-items:center;min-height:156px;padding:20px 22px;border:1px solid var(--kkb-sa-line);border-radius:16px;background:#fff;min-width:0}.kkb-sa-extra-image{display:flex;width:120px;height:120px;align-items:center;justify-content:center;overflow:hidden;background:#fff;text-decoration:none!important}.kkb-sa-extra-image img{width:100%;height:100%;object-fit:contain}.kkb-sa-extra-copy{min-width:0}.kkb-sa-extra-meta{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin-bottom:6px}.kkb-sa-extra-care-tag,.kkb-sa-extra-brand{font-size:9px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}.kkb-sa-extra-care-tag{color:var(--kkb-sa-blue)}.kkb-sa-extra-brand{color:#8b817b}.kkb-sa-extra-card h4{margin:0 0 7px!important;font-size:17px!important;line-height:1.25!important;color:#111!important}.kkb-sa-extra-card h4 a{color:#111!important;text-decoration:none!important}.kkb-sa-extra-desc{display:-webkit-box;overflow:hidden;margin:0 0 10px!important;color:#716a67;font-size:11px;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:2}.kkb-sa-extra-price-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.kkb-sa-extra-price,.kkb-sa-extra-price *{color:#111!important;font-size:14px!important;font-weight:800!important}.kkb-sa-extra-price del,.kkb-sa-extra-price del *{color:#aaa!important;font-weight:500!important}.kkb-sa-extra-price ins{text-decoration:none!important}.kkb-sa-extra-sale{color:#f04432;font-size:10px;font-weight:900}.kkb-sa-extra-empty{display:none!important}
@media(max-width:991px){.kkb-sa-choice-grid.is-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.kkb-sa-extra-care-grid{grid-template-columns:1fr}}
@media(max-width:520px){.kkb-sa-choice-grid.is-steps{grid-template-columns:1fr 1fr}.kkb-sa-extra-card{grid-template-columns:88px minmax(0,1fr);gap:12px;padding:14px}.kkb-sa-extra-image{width:88px;height:88px}.kkb-sa-extra-card h4{font-size:14px!important}.kkb-sa-extra-desc{font-size:10px}}


/* v1.4.1 — manual uploaded-photo positioning */
.kkb-sa-upload-adjuster{
    position:absolute;
    inset:0;
    overflow:hidden;
    cursor:grab;
    touch-action:none;
    user-select:none;
    background:#eaf1f4;
}
.kkb-sa-upload-adjuster:active{cursor:grabbing}
.kkb-sa-upload-adjuster img{
    position:absolute;
    left:50%;
    top:50%;
    max-width:none!important;
    object-fit:contain;
    transform-origin:center center;
    will-change:transform;
    pointer-events:none;
    user-select:none;
}
.kkb-sa-adjust-shade{
    position:absolute;
    inset:0;
    pointer-events:none;
    background:rgba(0,25,35,.16);
}
.kkb-sa-adjust-face-guide{
    position:absolute;
    left:50%;
    top:48%;
    width:min(38%,190px);
    height:min(66%,250px);
    transform:translate(-50%,-50%);
    border:3px dashed #fff;
    border-radius:48% 48% 46% 46%;
    box-shadow:
        0 0 0 1px rgba(0,90,125,.85),
        0 0 0 999px rgba(0,26,38,.18);
    pointer-events:none;
}
.kkb-sa-adjust-caption{
    position:absolute;
    left:50%;
    bottom:14px;
    transform:translateX(-50%);
    max-width:90%;
    padding:7px 11px;
    border-radius:999px;
    background:rgba(255,255,255,.94);
    color:var(--kkb-sa-dark);
    font-size:10px;
    font-weight:800;
    text-align:center;
    pointer-events:none;
}
.kkb-sa-adjust-controls{
    margin-top:13px;
    padding:14px;
    border:1px solid var(--kkb-sa-line);
    border-radius:10px;
    background:#f8fbfc;
}
.kkb-sa-adjust-instruction{
    display:flex;
    flex-direction:column;
    gap:3px;
    margin-bottom:10px;
}
.kkb-sa-adjust-instruction strong{font-size:12px;color:#111}
.kkb-sa-adjust-instruction span{font-size:10px;color:#68757b}
.kkb-sa-zoom-control{
    display:grid;
    grid-template-columns:auto 1fr;
    gap:12px;
    align-items:center;
    margin:10px 0;
    color:#526169;
    font-size:10px;
    font-weight:800;
}
.kkb-sa-zoom-control input{width:100%}
.kkb-sa-adjust-buttons{
    display:flex;
    justify-content:flex-end;
    gap:8px;
}

/* Quality checks now live below the image instead of in the right column. */
.kkb-sa-camera-card > .kkb-sa-quality-panel{
    margin-top:14px;
    padding:14px;
    border:1px solid var(--kkb-sa-line);
    border-radius:10px;
    background:#fff;
}
.kkb-sa-quality-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 18px;
}
.kkb-sa-quality-row{
    grid-template-columns:18px 1fr auto;
}
.kkb-sa-photo-help .kkb-sa-photo-status{
    margin-top:18px;
}
@media(max-width:640px){
    .kkb-sa-quality-grid{grid-template-columns:1fr}
    .kkb-sa-adjust-buttons{flex-direction:column}
    .kkb-sa-adjust-buttons .kkb-sa-btn{width:100%}
    .kkb-sa-adjust-face-guide{
        width:min(45%,170px);
        height:min(64%,230px);
    }
}


/* v1.4.2 — gender confirmation + revised 10-step labels */
.kkb-sa-gender-question{
    display:grid;
    grid-template-columns:minmax(150px,.45fr) minmax(260px,.75fr);
    column-gap:18px;
    align-items:start;
}
.kkb-sa-gender-question h3,
.kkb-sa-gender-question>p{
    grid-column:1/-1;
}
.kkb-sa-choice-grid.is-gender{
    grid-template-columns:1fr 1fr;
    margin-top:8px;
}
.kkb-sa-choice-grid.is-gender span{
    min-height:52px;
}
.kkb-sa-beard-note{
    margin-top:8px;
    min-height:52px;
    padding:10px 12px;
    border-left:3px solid var(--kkb-sa-blue);
    background:#f2f9fc;
    color:#59666d;
    font-size:10px;
    line-height:1.45;
}
.kkb-sa-beard-note strong{
    display:block;
    margin-bottom:2px;
    color:var(--kkb-sa-dark);
    font-size:10px;
}
.kkb-sa-choice-grid.is-steps span{
    padding-left:9px;
    padding-right:9px;
    line-height:1.25;
}
@media(max-width:640px){
    .kkb-sa-gender-question{
        grid-template-columns:1fr;
    }
    .kkb-sa-gender-question h3,
    .kkb-sa-gender-question>p{
        grid-column:auto;
    }
}


/* v1.4.4 — paired consultation questions */
.kkb-sa-profile-question-row{
    display:grid;
    grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
    gap:15px;
    margin-bottom:15px;
}
.kkb-sa-profile-question-row .kkb-sa-question{
    margin-bottom:0;
    height:100%;
    box-sizing:border-box;
}
.kkb-sa-profile-question-row .kkb-sa-gender-question{
    display:block;
}
.kkb-sa-profile-question-row .kkb-sa-gender-question h3,
.kkb-sa-profile-question-row .kkb-sa-gender-question>p{
    grid-column:auto;
}
.kkb-sa-profile-question-row .kkb-sa-choice-grid.is-gender{
    grid-template-columns:1fr 1fr;
}
.kkb-sa-profile-question-row .kkb-sa-sensitivity-question{
    display:flex;
    flex-direction:column;
}
.kkb-sa-profile-question-row .kkb-sa-sensitivity-question .kkb-sa-choice-grid{
    margin-top:auto;
    grid-template-columns:repeat(3,minmax(0,1fr));
}
@media(max-width:760px){
    .kkb-sa-profile-question-row{
        grid-template-columns:1fr;
    }
}

.kkb-sa-account-gate{padding:42px 28px;border-bottom:1px solid var(--kkb-sa-line);background:#fff}
.kkb-sa-account-gate-inner{max-width:650px;margin:0 auto;text-align:center}
.kkb-sa-account-gate-inner>span{color:var(--kkb-sa-blue);font-size:10px;font-weight:900;letter-spacing:.12em}
.kkb-sa-account-gate-inner h2{margin:8px 0!important;color:#111!important;font-size:28px!important}
.kkb-sa-account-gate-inner p{max-width:560px;margin:0 auto 18px;color:#667178;font-size:13px;line-height:1.55}
.kkb-sa-account-link{display:inline-flex!important;align-items:center;justify-content:center;text-decoration:none!important}
.kkb-sa-account-limit-note{margin-top:12px;color:#7a858a;font-size:10px}
.kkb-sa-result-actions{display:flex;flex-direction:column;align-items:flex-end;gap:7px}
.kkb-sa-usage-count{color:var(--kkb-sa-dark);font-size:10px;font-weight:900;letter-spacing:.05em}
.kkb-sa-photo-toolbar{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:start;margin-top:13px}
.kkb-sa-photo-toolbar .kkb-sa-photo-actions,.kkb-sa-photo-toolbar .kkb-sa-adjust-controls{margin-top:0}
@media(max-width:760px){.kkb-sa-photo-toolbar{grid-template-columns:1fr}.kkb-sa-result-actions{align-items:flex-start}}


/* v1.5.1 — routine cards show product key ingredients */
.kkb-sa-routine-ingredients{
    margin-top:auto;
    padding:10px 13px 14px;
    border-top:1px solid var(--kkb-sa-line);
    background:#fbfdfe;
}
.kkb-sa-routine-ingredients-label{
    display:block;
    margin-bottom:7px;
    color:var(--kkb-sa-dark);
    font-size:8px;
    font-weight:900;
    letter-spacing:.11em;
}
.kkb-sa-routine-ingredient-list{
    display:flex;
    flex-wrap:wrap;
    gap:5px;
}
.kkb-sa-routine-ingredient-list>span{
    display:inline-flex;
    align-items:center;
    min-height:23px;
    padding:4px 7px;
    border-radius:999px;
    background:#eaf6fb;
    color:#315866;
    font-size:8px;
    line-height:1.25;
    font-weight:700;
}
.kkb-sa-routine-ingredient-list>span.is-empty{
    background:#f3f5f6;
    color:#8a9296;
    font-weight:500;
}


/* v1.5.2 — professional monthly analysis allowance */
.kkb-sa-analysis-allowance-note{
    display:flex;
    gap:8px;
    align-items:flex-start;
    margin:18px 0;
    padding:13px 15px;
    border:1px solid #cfe3ec;
    border-left:4px solid var(--kkb-sa-blue);
    border-radius:9px;
    background:#f3fafd;
    color:#53636a;
    font-size:11px;
    line-height:1.5;
}
.kkb-sa-analysis-allowance-note[hidden]{
    display:none!important;
}
.kkb-sa-analysis-allowance-note strong{
    flex:0 0 auto;
    color:var(--kkb-sa-dark);
}
.kkb-sa-analysis-allowance-note span{
    min-width:0;
}


/* =========================================================
   v1.5.4 — Live camera face-positioning guide
   ========================================================= */

.kkb-sa-preview-wrap{
    position:relative;
    overflow:hidden;
}

.kkb-sa-live-camera-guide{
    position:absolute;
    inset:0;
    z-index:4;
    pointer-events:none;
}

.kkb-sa-live-guide-mask{
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, rgba(0,32,46,.18) 0%, rgba(0,32,46,.10) 100%);
}

.kkb-sa-live-face-outline{
    position:absolute;
    left:50%;
    top:48%;
    width:min(44%,220px);
    height:min(72%,300px);
    transform:translate(-50%,-50%);
    border:3px dashed rgba(255,255,255,.96);
    border-radius:48% 48% 44% 44% / 32% 32% 56% 56%;
    box-shadow:
        0 0 0 2px rgba(1,147,207,.85),
        0 0 0 999px rgba(0,22,34,.16);
}

.kkb-sa-live-face-outline::before{
    content:'';
    position:absolute;
    left:18%;
    right:18%;
    top:18%;
    height:1px;
    border-top:2px dashed rgba(255,255,255,.55);
}

.kkb-sa-live-face-outline::after{
    content:'';
    position:absolute;
    left:50%;
    bottom:14%;
    width:28%;
    height:14%;
    transform:translateX(-50%);
    border:2px dashed rgba(255,255,255,.45);
    border-top:0;
    border-radius:0 0 50% 50% / 0 0 100% 100%;
}

.kkb-sa-live-guide-caption{
    position:absolute;
    left:50%;
    bottom:14px;
    transform:translateX(-50%);
    width:min(88%, 380px);
    padding:10px 14px;
    border-radius:14px;
    background:rgba(255,255,255,.94);
    box-shadow:0 10px 24px rgba(0,0,0,.10);
    color:var(--kkb-sa-dark);
    text-align:center;
    line-height:1.3;
}

.kkb-sa-live-guide-caption strong{
    display:block;
    margin-bottom:2px;
    font-size:12px;
    font-weight:900;
}

.kkb-sa-live-guide-caption small{
    display:block;
    font-size:10px;
    color:#526168;
}

/* Match the placeholder and upload-adjust guide to the same face language */
.kkb-sa-face-guide{
    width:162px;
    height:212px;
    border:2px dashed #8ab7c7;
    border-radius:48% 48% 44% 44% / 32% 32% 56% 56%;
    position:relative;
    box-shadow:0 0 0 1px rgba(1,147,207,.08);
}

.kkb-sa-face-guide:before{
    content:'';
    position:absolute;
    left:18%;
    right:18%;
    top:18%;
    height:1px;
    border-top:2px dashed rgba(1,147,207,.45);
}

.kkb-sa-face-guide:after{
    content:'';
    position:absolute;
    left:50%;
    bottom:14%;
    width:28%;
    height:14%;
    transform:translateX(-50%);
    border:2px dashed rgba(1,147,207,.35);
    border-top:0;
    border-radius:0 0 50% 50% / 0 0 100% 100%;
}

.kkb-sa-adjust-face-guide{
    top:48%;
    width:min(40%,200px);
    height:min(68%,270px);
    border-radius:48% 48% 44% 44% / 32% 32% 56% 56%;
}

@media (max-width: 767px){
    .kkb-sa-live-face-outline{
        width:min(56%,210px);
        height:min(68%,280px);
    }

    .kkb-sa-live-guide-caption{
        bottom:10px;
        width:min(92%, 340px);
        padding:9px 12px;
    }

    .kkb-sa-live-guide-caption strong{
        font-size:11px;
    }

    .kkb-sa-live-guide-caption small{
        font-size:9px;
    }
}


/* =========================================================
   v1.5.6 — Full-face guide, two-way zoom + shareable page
   ========================================================= */

/* The guide now represents the whole face, not the central nose/mouth area. */
.kkb-sa-live-face-outline{
    top:47%;
    width:min(72%,440px);
    height:min(84%,330px);
    border-radius:46% 46% 44% 44% / 34% 34% 58% 58%;
}
.kkb-sa-adjust-face-guide{
    top:47%;
    width:min(72%,440px);
    height:min(84%,330px);
    border-radius:46% 46% 44% 44% / 34% 34% 58% 58%;
}
.kkb-sa-face-guide{
    width:min(68%,280px);
    height:min(80%,320px);
    min-width:220px;
    min-height:275px;
    border-radius:46% 46% 44% 44% / 34% 34% 58% 58%;
}

/* Keep the upload instruction out of the face area; the detailed instruction is below. */
.kkb-sa-adjust-caption{display:none!important}

.kkb-sa-zoom-control{
    grid-template-columns:90px 1fr;
}
.kkb-sa-zoom-control input{
    accent-color:var(--kkb-sa-blue);
}

/* Shareable /skin-analysis/ landing page. */
.kkb-sa-share-page{
    width:min(1180px,calc(100% - 32px));
    margin:54px auto 70px;
}
.kkb-sa-share-card{
    padding:clamp(34px,6vw,76px);
    border:1px solid var(--kkb-sa-line);
    border-radius:22px;
    background:linear-gradient(120deg,#f7fcfe 0%,#eaf7fb 100%);
    text-align:center;
}
.kkb-sa-share-eyebrow{
    color:var(--kkb-sa-blue);
    font-size:10px;
    font-weight:900;
    letter-spacing:.14em;
}
.kkb-sa-share-card h1{
    margin:10px 0 14px!important;
    color:#111!important;
    font-size:clamp(38px,6vw,72px)!important;
    line-height:.98!important;
}
.kkb-sa-share-card>p{
    max-width:760px;
    margin:0 auto 28px;
    color:#5d696f;
    font-size:15px;
    line-height:1.7;
}
.kkb-sa-share-actions{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
}
.kkb-sa-share-actions .kkb-sa-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none!important;
}
.kkb-sa-share-whatsapp{background:#fff}
.kkb-sa-share-note{
    display:block;
    margin-top:18px;
    color:#7a858a;
    font-size:10px;
}

@media(max-width:767px){
    .kkb-sa-live-face-outline,
    .kkb-sa-adjust-face-guide{
        top:46%;
        width:min(74%,290px);
        height:min(82%,270px);
    }
    .kkb-sa-face-guide{
        width:min(72%,240px);
        height:min(78%,265px);
        min-width:190px;
        min-height:235px;
    }
    .kkb-sa-share-page{width:calc(100% - 20px);margin:24px auto 40px}
    .kkb-sa-share-card{padding:34px 20px;border-radius:16px}
    .kkb-sa-share-actions{display:grid}
    .kkb-sa-share-actions .kkb-sa-btn{width:100%}
}


/* =========================================================
   v1.5.7 — Portrait full-face guide correction
   ========================================================= */
/* Keep the guide visibly taller than it is wide so it follows a natural
   forehead → cheeks → jaw → chin portrait face shape. */
.kkb-sa-live-face-outline,
.kkb-sa-adjust-face-guide{
    left:50%;
    top:49%;
    width:min(52%,280px);
    height:min(90%,400px);
    transform:translate(-50%,-50%);
    border-radius:50% 50% 46% 46% / 40% 40% 58% 58%;
}

/* Placeholder guide uses the same upright proportions. */
.kkb-sa-face-guide{
    width:min(52%,220px);
    height:min(86%,300px);
    min-width:180px;
    min-height:250px;
    border-radius:50% 50% 46% 46% / 40% 40% 58% 58%;
}

/* Forehead and chin markers follow the taller oval. */
.kkb-sa-live-face-outline::before,
.kkb-sa-face-guide:before{
    left:20%;
    right:20%;
    top:16%;
}
.kkb-sa-live-face-outline::after,
.kkb-sa-face-guide:after{
    bottom:10%;
    width:30%;
    height:12%;
}

@media(max-width:767px){
    .kkb-sa-live-face-outline,
    .kkb-sa-adjust-face-guide{
        top:49%;
        width:min(56%,225px);
        height:min(88%,330px);
    }
    .kkb-sa-face-guide{
        width:min(56%,205px);
        height:min(84%,285px);
        min-width:165px;
        min-height:230px;
    }
}

/* v1.5.10 — Beyond the Face only appears when real in-stock matches exist. */
#kkb-sa-extra-care-heading[hidden],#kkb-sa-extra-care-grid[hidden],#kkb-sa-hair-section[hidden],#kkb-sa-foot-section[hidden]{display:none!important}


/* v1.5.11 — legacy SPF explanatory line is never shown. */
#kkb-sa-routine-note,.kkb-sa-routine-heading>p,.kkb-sa-routine-heading .kkb-sa-routine-note{display:none!important}
