.customer-scan-page *,.customer-scan-manager *{box-sizing:border-box}
.customer-scan-manager .scan-manager-capture-state{display:block;margin:12px 0 6px;color:#205b68}
.customer-scan-manager progress{display:block;width:100%;height:9px;margin:8px 0 12px;accent-color:#07838b}
.customer-scan-manager .scan-manager-progress-details{margin-top:18px;border-top:1px solid #d9e4eb;padding-top:8px}
.customer-scan-manager .scan-manager-progress-details h5{font-size:15px;margin:14px 0 10px}
.customer-scan-manager .scan-manager-step{display:grid;gap:6px;padding:12px;margin-top:8px;border:1px solid #dce7ec;border-inline-start:3px solid #b4c7d0;border-radius:9px;background:#f8fbfc;overflow-wrap:anywhere;min-width:0}
.customer-scan-manager .scan-manager-step[data-scan-step-status=uploaded]{border-inline-start-color:#078b75;background:#f1faf6}
.customer-scan-manager .scan-manager-step[data-scan-step-status=skipped]{border-inline-start-color:#6e7fad}
.customer-scan-manager .scan-manager-step-state{font-size:13px;color:#476978}
.customer-scan-manager .scan-manager-step .scan-manager-actions{margin-top:2px}
.customer-scan-manager .scan-manager-timeline{list-style:none;padding:0;margin:0;border-inline-start:2px solid #c8dee4}
.customer-scan-manager .scan-manager-timeline li{display:grid;gap:4px;padding:8px 12px;font-size:13px;overflow-wrap:anywhere}
.customer-scan-manager .scan-manager-timeline time{color:#607582;font-size:12px}
.customer-scan-manager .scan-manager-review>summary{min-height:44px;display:list-item;padding:10px 4px;font-weight:650;cursor:pointer}
@media(max-width:560px){.customer-scan-manager .scan-manager-step .scan-manager-button{min-width:0;flex:1 1 110px;padding:10px;font-size:13px}.customer-scan-manager .scan-manager-head{flex-wrap:wrap}.customer-scan-manager .scan-manager-step strong{font-size:14px}}
.customer-scan-page button,.customer-scan-page a,.customer-scan-page input,.customer-scan-page select,.customer-scan-manager button,.customer-scan-manager input,.customer-scan-manager select{outline-offset:4px}
.customer-scan-page :focus-visible,.customer-scan-manager :focus-visible{outline:3px solid #176b90}
.scan-button,.customer-scan-manager .scan-manager-button{border:1px solid #bdcfd8;border-radius:10px;padding:12px 18px;min-height:46px;background:white;color:#173d50;cursor:pointer;font:inherit;font-weight:600;display:inline-flex;justify-content:center;align-items:center;gap:7px;text-decoration:none}
.scan-button-primary,.customer-scan-manager .scan-manager-primary{background:#176b90;color:#fff;border-color:#176b90}
.scan-button:hover:not(:disabled),.customer-scan-manager .scan-manager-button:hover:not(:disabled){box-shadow:0 0 0 2px #176b9020}
.scan-button:disabled,.customer-scan-manager button:disabled{opacity:.55;cursor:wait}
.customer-scan-page [hidden],.customer-scan-manager [hidden]{display:none!important}
.customer-scan-manager{border:1px solid #cbdce6;border-radius:14px;padding:20px;margin-top:18px;background:#f7fafc;color:#193c50}.customer-scan-manager h3{margin:0;font-size:18px}.customer-scan-manager p{margin:10px 0}.scan-manager-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.scan-manager-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.scan-manager-form label{display:flex;flex-direction:column;gap:5px;font-size:13px}.scan-manager-form input:not([type=checkbox]),.scan-manager-form select,.scan-manager-url{width:100%;min-height:42px;padding:9px 10px;border:1px solid #bdcfd8;border-radius:8px;background:white;color:#173d50;font:inherit}.scan-manager-form label.scan-manager-checkbox{flex-direction:row;align-items:center;gap:8px}.scan-manager-checkbox input{width:19px;height:19px;accent-color:#176b90}.scan-manager-form .scan-manager-full{grid-column:1/-1}.scan-manager-list{display:grid;gap:12px;margin-top:18px}.scan-manager-invitation{background:#fff;border:1px solid #d9e4eb;border-radius:11px;padding:16px}.scan-manager-invitation h4{margin:0;overflow-wrap:anywhere}.scan-manager-invitation small{color:#546f7e}.scan-manager-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.scan-manager-url{margin-top:10px;direction:ltr}.scan-manager-notice{min-height:1.5em}.scan-manager-error{color:#8a3324}.scan-manager-review{margin-top:10px;padding:10px;background:#fff6e8;border-radius:8px}.scan-manager-counts{font-size:13px;overflow-wrap:anywhere}
#customerScanInvitationsDialog{width:min(920px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:26px;border:1px solid #cbdce6;border-radius:16px;color:#193c50;background:#fff}#customerScanInvitationsDialog::backdrop{background:#102c406b}#customerScanInvitationsDialog .dialog-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}#customerScanInvitationsDialog .dialog-header h2{margin:0;font-size:22px}#customerScanInvitationsDialog>label{display:flex;flex-direction:column;gap:7px}#customerScanClientSelect{min-height:44px;max-width:100%;padding:10px;border:1px solid #bdcfd8;border-radius:8px;background:#fff;color:#193c50;font:inherit}#customerScanInvitationsDialog .icon-button{min-width:44px;min-height:44px}#customerScanInvitationsDialog>p{font-size:14px;line-height:1.6;color:#506979}@media(max-width:560px){#customerScanInvitationsDialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:16px}#customerScanInvitationsDialog .dialog-header h2{font-size:19px}}
@media(max-width:560px){.scan-manager-form{grid-template-columns:1fr}.scan-manager-head{align-items:flex-start}.customer-scan-manager{padding:14px}.scan-manager-actions .scan-manager-button{flex:1;min-width:115px}}
/* Public customer document scan. Manager styles below retain their existing contract. */
.customer-scan-page{--scan-navy:#133449;--scan-teal:#087f86;--scan-teal-dark:#086d73;--scan-ink:#17384a;--scan-muted:#526b79;--scan-border:#d7e4e9;--scan-surface:#f4f8f9;margin:0;background:linear-gradient(155deg,#edf7f7 0,#f3f6f9 45%,#f7f9fa 100%);color:var(--scan-ink);font:16px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-text-size-adjust:100%}
.customer-scan-page *{box-sizing:border-box}
.customer-scan-page button,.customer-scan-page input,.customer-scan-page select{font:inherit}
.customer-scan-page button,.customer-scan-page summary,.customer-scan-page a{touch-action:manipulation}
.customer-scan-page :focus-visible{outline:3px solid #148b94;outline-offset:4px}
.customer-scan-page [hidden]{display:none!important}
.scan-header{max-width:1080px;margin:auto;padding:26px 30px 18px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.scan-brand{display:flex;align-items:center;gap:12px;font-size:17px;font-weight:800;line-height:1.4;letter-spacing:.015em;color:var(--scan-navy)}
.scan-brand img{border-radius:12px;box-shadow:0 3px 12px #13344912}
.scan-brand small{display:block;font-size:11px;font-weight:500;letter-spacing:.02em;color:var(--scan-muted)}
.scan-languages{display:flex;flex-shrink:0;gap:3px;padding:3px;border:1px solid var(--scan-border);border-radius:12px;background:#ffffffc9}
.customer-scan-page .scan-languages button{min-width:44px;min-height:44px;padding:8px 13px;border:0;border-radius:9px;background:transparent;color:#476373;font-size:13px;font-weight:650;cursor:pointer;transition:background .18s,color .18s,box-shadow .18s}
.customer-scan-page .scan-languages button[aria-pressed=true]{background:var(--scan-navy);color:#fff;box-shadow:0 2px 5px #13344920}
.scan-layout{max-width:820px;margin:10px auto 48px;padding:0 24px}
.scan-eyebrow{margin:0 0 12px;color:#4c727e;font-size:11px;letter-spacing:.13em;font-weight:750}
.scan-stage-title{margin:0 2px 8px;color:var(--scan-muted);font-size:12px;font-weight:650}
.scan-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;list-style:none;margin:0 0 20px;padding:0}
.scan-steps li{position:relative;min-width:0;isolation:isolate}
.scan-steps li:not(:last-child)::after{content:"";position:absolute;z-index:-1;inset-block-start:23px;inset-inline-start:50%;width:calc(100% + 6px);height:2px;background:#cddfe4;transition:background .3s ease}
.scan-steps li[data-step-state=done]::after{background:#5db7b4}
#scan-steps[data-scan-motion=advance] .scan-steps li[data-step-state=done]::after,#scan-steps[data-scan-motion=advance] .scan-steps li[data-step-state=current]::after{animation:scan-connector-advance .22s ease-out;transform-origin:left center}
[dir=rtl] #scan-steps[data-scan-motion=advance] .scan-steps li::after{transform-origin:right center}
.customer-scan-page .scan-step{width:100%;min-width:44px;min-height:76px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;padding:8px 4px;border:0;border-radius:12px;background:transparent;color:#546b79;font-size:12px;font-weight:600;line-height:1.25;text-align:center;cursor:pointer;transition:background .18s,color .18s}
.scan-step-number{position:relative;display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border:1px solid #bfced7;border-radius:50%;background:#f5f8fa;color:#4b6676;font-size:12px;font-weight:750;box-shadow:0 0 0 4px #f2f7f8;transition:background .22s,color .22s,border-color .22s,box-shadow .22s}
.scan-step-label{max-width:100%;overflow-wrap:anywhere;hyphens:auto}
.scan-steps li[data-step-state=done] .scan-step-number{border-color:#8bc7be;background:#e4f5ee;color:#146d61}
.scan-steps li[aria-current=step] .scan-step{background:#e4f1f280;color:var(--scan-navy);font-weight:750}
.scan-steps li[aria-current=step] .scan-step-number{background:var(--scan-teal);border-color:var(--scan-teal);color:#fff;box-shadow:0 0 0 4px #dceff0}
.customer-scan-page .scan-step:disabled{cursor:wait;opacity:.65}
.scan-card{padding:32px;border:1px solid var(--scan-border);border-radius:22px;background:#fff;box-shadow:0 12px 34px #16374a07}
.scan-card h1{margin:0 0 14px;color:var(--scan-navy);font-size:clamp(26px,4vw,35px);font-weight:760;line-height:1.18;letter-spacing:-.025em;overflow-wrap:anywhere}
.scan-card h2{margin:24px 0 12px;color:var(--scan-navy);font-size:21px;line-height:1.35;overflow-wrap:anywhere}
.scan-card p{margin:12px 0}
.scan-card[data-scan-motion=enter]{animation:scan-content-enter .22s ease-out}
.scan-muted{color:var(--scan-muted)}
.scan-note{padding:14px 17px;border-inline-start:3px solid #60afa9;border-radius:0 10px 10px 0;background:#f0f7f6;color:#345b65}
[dir=rtl] .scan-note{border-radius:10px 0 0 10px}
.scan-status{margin:10px 2px;color:#27646b;font-size:14px}
.scan-status:empty{display:none}
.scan-error{padding:14px 16px;margin:12px 0;border:1px solid #e9c5bc;border-radius:12px;background:#fff2ee;color:#863f2d}
.scan-actions,.scan-document-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.customer-scan-page .scan-button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:48px;padding:12px 18px;border:1px solid #bcd0d8;border-radius:11px;background:#fff;color:var(--scan-navy);font:inherit;font-weight:650;line-height:1.4;text-align:center;text-decoration:none;cursor:pointer;transition:background .16s,border-color .16s,box-shadow .16s,transform .1s}
.customer-scan-page .scan-button-primary{border-color:var(--scan-teal);background:var(--scan-teal);color:#fff;box-shadow:0 4px 10px #087f8618}
.customer-scan-page .scan-button:active:not(:disabled){transform:translateY(1px)}
.customer-scan-page .scan-button:disabled{opacity:.55;cursor:wait;box-shadow:none}
.scan-checklist{padding-inline-start:23px}
.scan-checklist li{margin:8px 0;padding-inline-start:3px}
.scan-checklist li::marker{color:var(--scan-teal)}
.scan-welcome-points{counter-reset:scan-welcome;list-style:none;padding:0;margin:22px 0}
.scan-welcome-points li{counter-increment:scan-welcome;display:flex;align-items:center;gap:12px;min-height:40px}
.scan-welcome-points li::before{content:counter(scan-welcome);display:grid;place-items:center;flex:0 0 27px;height:27px;border:1px solid #c7e5e0;border-radius:9px;background:#edf8f5;color:#18786e;font-size:12px;font-weight:750}
.customer-scan-page details{min-width:0}
.customer-scan-page summary{min-height:48px;padding:12px 0;font-size:14px;font-weight:600;line-height:1.5;overflow-wrap:anywhere;cursor:pointer}
.customer-scan-page summary::marker{color:#527985;font-size:.8em}
.customer-scan-page summary:focus-visible{border-radius:8px}
.scan-preparation-group{border-bottom:1px solid #e0e9ed}
.scan-preparation-group summary{font-size:17px}
.scan-preparation-group .scan-checklist{margin-top:0}
.scan-support{margin-top:18px;border-top:1px solid #e1ebef}
.scan-support p{font-size:14px}
.scan-consent{display:flex;align-items:flex-start;gap:12px;padding:16px 0}
.scan-consent input{flex-shrink:0;width:22px;height:22px;margin-top:3px;accent-color:var(--scan-teal)}
.scan-person-label{color:#37747b;font-size:13px;font-weight:700}
.scan-person-progress{display:flex;align-items:center;gap:14px;margin:20px 0;color:#416675;font-size:14px}
.scan-person-progress span{white-space:nowrap;unicode-bidi:isolate}
.scan-person-progress progress{appearance:none;width:100%;height:8px;border:0;border-radius:20px;background:#e6eff1;color:var(--scan-teal);accent-color:var(--scan-teal);overflow:hidden}
.scan-person-progress progress::-webkit-progress-bar{background:#e6eff1;border-radius:20px}
.scan-person-progress progress::-webkit-progress-value{border-radius:20px;background:linear-gradient(90deg,#087f86,#55b6a7);transition:width .35s ease}
.scan-person-progress progress::-moz-progress-bar{border-radius:20px;background:#087f86}
.scan-document-picker{padding:0 14px;border:1px solid #d4e3e8;border-radius:12px;background:#f6fafb}
.scan-document-picker[open]{padding-bottom:12px}
.scan-document-picker summary{color:#216c76}
.scan-slot-list{display:grid;gap:8px}
.scan-slot{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;padding:13px 15px;border:1px solid var(--scan-border);border-radius:11px;background:#fff;color:var(--scan-ink);font:inherit;line-height:1.4;text-align:start;cursor:pointer;transition:background .16s,border-color .16s}
.scan-slot[aria-pressed=true]{border-color:#43a8a8;background:#edf8f6;box-shadow:inset 3px 0 #087f86}
[dir=rtl] .scan-slot[aria-pressed=true]{box-shadow:inset -3px 0 #087f86}
.scan-slot small{display:block;margin-top:3px;color:var(--scan-muted);font-size:12px}
.scan-slot-mark{flex-shrink:0;font-weight:700}
.scan-upload-box{margin-top:20px;padding:22px;border:1px solid #cde2e5;border-radius:16px;background:linear-gradient(150deg,#fff,#f8fcfb)}
.scan-upload-box>h2{margin:0 0 8px}
.customer-scan-page .scan-document-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
.customer-scan-page .scan-document-actions .scan-button{min-width:0;width:100%;min-height:104px;flex-direction:column;gap:8px;padding:12px 8px;border-radius:14px}
.scan-document-actions .scan-action-label{max-width:100%;overflow-wrap:anywhere}
.scan-document-actions .scan-action-icon{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border-radius:12px;background:#e7f5f4;color:#087f86}
.scan-document-actions .scan-button-primary .scan-action-icon{background:#ffffff26;color:#fff}
.scan-document-actions .scan-action-icon::before{content:"";width:24px;height:24px;background:currentColor;mask:var(--scan-action-symbol) center/contain no-repeat}
.scan-document-actions [data-scan-action=camera]{--scan-action-symbol:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 5l1.5-2h5L16 5h4a2 2 0 012 2v12a2 2 0 01-2 2H4a2 2 0 01-2-2V7a2 2 0 012-2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E")}
.scan-document-actions [data-scan-action=chooseFile]{background:#f0faf8;border-color:#acd5d0;--scan-action-symbol:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='3'/%3E%3Cpath d='M10 5h4M11 19h2M8 15l3-4 2 2 3-3'/%3E%3C/svg%3E")}
.scan-document-actions [data-scan-action=skipNow]{background:#f6f8fa;border-color:#d4dfe5;--scan-action-symbol:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h11M11 6l6 6-6 6M21 5v14'/%3E%3C/svg%3E")}
.scan-document-actions [data-scan-action=skipNow] .scan-action-icon{background:#e9eef2;color:#536b7c}
[dir=rtl] .scan-document-actions [data-scan-action=skipNow] .scan-action-icon::before{transform:scaleX(-1)}
.scan-alternative,.scan-saved-files,.scan-missing-document{margin-top:12px;border-top:1px solid #e0e9ed}
.scan-alternative .scan-file-label,.scan-missing-document .scan-choice{margin-top:0}
.scan-file-label{display:block;margin-top:18px}
.scan-file-label input{display:block;width:100%;max-width:100%;min-height:48px;padding:12px 0}
.scan-file-label input::file-selector-button{min-height:44px;margin-inline-end:10px;padding:10px 14px;border:1px solid #bdcfd8;border-radius:9px;background:#f3f8fa;color:#173d50;font:inherit;cursor:pointer}
.scan-choice{display:block;margin-top:20px}
.scan-choice select{display:block;width:100%;min-height:48px;margin-top:7px;padding:10px;border:1px solid #bdcfd8;border-radius:9px;background:#fff;color:var(--scan-ink);font-size:16px}
.scan-files{list-style:none;padding:0}
.scan-files li{padding:10px 0;border-bottom:1px solid #e0e9ed;overflow-wrap:anywhere}
.scan-files small{display:block;color:var(--scan-muted)}
.scan-child-choice{min-width:0;margin:16px 0;padding:16px;border:1px solid #bfdde0;border-radius:12px;background:#f1f9f8}
.scan-child-document-picker{margin-top:12px;padding:0 12px;border:1px solid #bfdde0;border-radius:10px;background:#f1f9f8}
.scan-child-document-picker>summary{color:#205e68;font-weight:700}
.scan-child-document-picker .scan-child-choice{margin:0;border:0;padding:0 0 12px}
@media(max-width:360px){.scan-stage-title{display:none}}
.scan-child-choice legend{padding:0 6px;font-size:14px;font-weight:750;color:#205e68}
.scan-child-choice p{margin:0 0 12px;color:var(--scan-muted);font-size:14px}
.scan-child-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.customer-scan-page .scan-child-options button{min-width:0;min-height:48px;padding:12px;border:1px solid #bdd3d9;border-radius:10px;background:#fff;color:var(--scan-navy);font-size:14px;font-weight:650;line-height:1.4;text-align:start;cursor:pointer;transition:background .18s,border-color .18s,box-shadow .18s}
.customer-scan-page .scan-child-options button[aria-pressed=true]{border-color:var(--scan-teal);background:#e0f3ee;color:#165d58;box-shadow:inset 0 0 0 1px var(--scan-teal)}
.customer-scan-page .scan-child-options button:disabled{opacity:.55;cursor:wait}
.scan-save-later{width:100%;margin-top:18px}
.scan-pause-count{font-size:20px;font-weight:750;color:var(--scan-teal)}
.scan-legal{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 20px;margin-top:24px;color:#587482;font-size:12px}
.scan-legal a,.scan-card a{display:inline-flex;align-items:center;min-height:44px;padding-block:8px;color:#356579}
.scan-receipt{display:block;padding:18px;border:1px solid #cde6dd;border-radius:12px;background:#edf8f3;color:#285c50;font-size:20px;font-weight:750;direction:ltr;text-align:start;overflow-wrap:anywhere}
.scan-receipt-icon{display:flex;align-items:center;justify-content:center;width:60px;height:60px;margin-bottom:20px;border:1px solid #c3e2d5;border-radius:50%;background:#e2f4eb;color:#237765;font-size:30px}
.scan-region-preview{position:relative;max-width:400px;aspect-ratio:1.586;margin:14px auto;border:1px solid #b4c9d4;border-radius:9px;background:#eef4f7;overflow:hidden}
.scan-region-preview img{display:block;width:100%;height:100%;object-fit:fill}
.scan-region-box{position:absolute;border:3px solid #b94a19;background:#ffde8933;pointer-events:none}
.scan-region-preview figcaption{position:absolute;bottom:0;inset-inline:0;padding:3px 7px;background:#ffffffd9;font-size:12px}
.scan-skip{position:fixed;inset-inline-start:12px;top:-100px;z-index:10;min-height:44px;padding:12px;background:#fff;color:#173d50;border-radius:8px}
.scan-skip:focus{top:12px}
@keyframes scan-content-enter{from{opacity:.25}to{opacity:1}}
@keyframes scan-connector-advance{from{transform:scaleX(.25);opacity:.45}to{transform:scaleX(1);opacity:1}}
@media(hover:hover){.customer-scan-page .scan-step:hover:not(:disabled){background:#e7f1f4}.customer-scan-page .scan-button:hover:not(:disabled){border-color:#65a5af;background:#f5fafb;box-shadow:0 3px 10px #1334490b}.customer-scan-page .scan-button-primary:hover:not(:disabled){background:var(--scan-teal-dark);color:#fff;border-color:var(--scan-teal-dark)}.scan-slot:hover{border-color:#91bfc3}.customer-scan-page .scan-child-options button:hover:not(:disabled){border-color:#4b9f9f}}
@media(max-width:640px){
 .customer-scan-page{font-size:16px;line-height:1.5}
 .scan-header{padding:calc(8px + env(safe-area-inset-top,0px)) 12px 8px;gap:8px}
 .scan-brand{min-width:0;gap:7px;font-size:12px;line-height:1.35}.scan-brand img{width:30px;height:30px;border-radius:9px}.scan-brand small{font-size:9px;letter-spacing:0}
 .scan-languages{padding:2px;gap:0;border-radius:11px}.customer-scan-page .scan-languages button{padding:8px;font-size:12px}
 .scan-layout{margin:0 auto 20px;padding:0 max(12px,env(safe-area-inset-left,0px)) 0 max(12px,env(safe-area-inset-right,0px))}
 .scan-eyebrow{display:none}.scan-stage-title{margin:2px 2px 6px;font-size:11px}
 .scan-steps{gap:3px;margin:0 0 10px}.scan-steps li:not(:last-child)::after{inset-block-start:17px;width:calc(100% + 3px)}
 .customer-scan-page .scan-step{min-height:62px;padding:5px 2px;gap:5px;border-radius:9px;font-size:10px;line-height:1.25}
 .scan-step-number{flex-basis:24px;width:24px;height:24px;font-size:11px;box-shadow:0 0 0 3px #f2f7f8}.scan-steps li[aria-current=step] .scan-step-number{box-shadow:0 0 0 3px #dceff0}
 .scan-card{padding:16px;border-radius:17px;box-shadow:0 5px 18px #16374a05}.scan-card h1{margin:0 0 10px;font-size:25px;line-height:1.25}.scan-card h2{font-size:18px;line-height:1.4}.scan-card p{margin:8px 0}
 .scan-welcome-points{margin:13px 0}.scan-welcome-points li{min-height:34px;gap:10px;font-size:14px}.scan-welcome-points li::before{flex-basis:24px;height:24px}
 .scan-note{padding:12px;font-size:14px}.scan-status{margin:5px 2px;font-size:13px}.scan-error{padding:12px;font-size:14px}
 .scan-person-label{margin:0 0 3px!important;font-size:12px}.scan-person-progress{gap:12px;margin:10px 0 14px;font-size:13px}
 .scan-document-picker{padding-inline:12px}.scan-document-picker summary{font-size:13px}.scan-slot{width:100%;padding:12px;font-size:14px}.scan-slot span{min-width:0;overflow-wrap:anywhere}
 .scan-upload-box{margin-top:12px;padding:14px;border-radius:12px}.scan-upload-box>h2{margin:0 0 5px}.scan-upload-box>.scan-muted{margin:4px 0 10px;font-size:13px}
 .customer-scan-page .scan-document-actions{gap:7px;margin-top:12px}.customer-scan-page .scan-document-actions .scan-button{min-height:96px;padding:10px 5px;font-size:13px;line-height:1.4;gap:7px}.scan-document-actions .scan-action-icon{width:34px;height:34px;border-radius:10px}.scan-document-actions .scan-action-icon::before{width:22px;height:22px}
 .scan-file-label{font-size:14px}.scan-file-label input{min-width:0;font-size:16px}.scan-file-label input::file-selector-button{font-size:14px}.scan-files{font-size:14px}.scan-support{margin-top:12px}
 .scan-child-choice{margin:12px 0;padding:12px}.scan-child-choice legend{font-size:13px}.scan-child-choice p{font-size:13px}.scan-child-options{grid-template-columns:1fr;gap:8px}
 .scan-actions{position:sticky;bottom:0;z-index:5;display:flex;flex-wrap:nowrap;gap:10px;margin:16px -16px -16px;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid #e2ebef;border-radius:0 0 17px 17px;background:#fffffff5;box-shadow:0 -5px 16px #173d5005}
 .customer-scan-page .scan-actions .scan-button{flex:1;min-width:0;min-height:48px;padding:10px;font-size:15px}.customer-scan-page .scan-actions .scan-button-primary{flex:2}
 .scan-card[data-scan-screen=welcome]>.scan-actions{position:static;margin:10px 0 0;padding:0;border:0;box-shadow:none;background:none}.scan-card[data-scan-screen=welcome]>.scan-actions .scan-button{width:100%}
 .customer-scan-page .scan-save-later{min-height:48px;margin-top:14px;font-size:14px}.scan-legal{gap:8px 18px;margin-top:16px;padding-bottom:env(safe-area-inset-bottom,0px);font-size:12px}.scan-legal>span{width:100%;text-align:center}.scan-consent{gap:10px;font-size:15px}.scan-receipt{padding:12px;font-size:17px}.scan-receipt-icon{width:46px;height:46px;margin-bottom:14px;font-size:25px}
}
@media(max-width:360px){
 .scan-card[data-scan-screen=documents] h1{font-size:22px;margin-bottom:4px}
 .scan-card[data-scan-screen=documents] .scan-person-progress{margin:4px 0 6px}
 .scan-card[data-scan-screen=documents] .scan-document-picker>summary{min-height:44px;padding:10px 0}
 .scan-card[data-scan-screen=documents] .scan-upload-box>h2{font-size:16px}
 .scan-card[data-scan-screen=documents] .scan-upload-box{margin-top:8px;padding:12px}
 .scan-card[data-scan-screen=documents] .scan-document-actions{margin-top:8px}
 .customer-scan-page .scan-document-actions .scan-button{min-height:74px;padding:6px 4px;gap:4px;font-size:12px;line-height:1.3;border-radius:11px}
 .scan-document-actions .scan-action-icon{width:26px;height:26px;border-radius:8px}.scan-document-actions .scan-action-icon::before{width:19px;height:19px}
}
@media(prefers-reduced-motion:reduce){.customer-scan-page *,.customer-scan-page *::before,.customer-scan-page *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Clear document samples and customer-controlled household setup. */
.scan-household{margin:20px 0;padding:18px;border:1px solid #cce0e5;border-radius:16px;background:#f6fbfc}.scan-household-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.scan-household-options [aria-pressed=true]{background:#dff4ed;border-color:#259b79;color:#125741}.scan-household label{display:block;margin-top:14px;font-weight:600}.scan-household select{display:block;width:100%;min-height:48px;margin-top:6px;padding:10px;border:1px solid #b7ced7;border-radius:10px;background:#fff;color:#143c50;font:inherit}.scan-household-count{font-weight:700;color:#176b79}
.customer-scan-page .scan-document-example{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;padding:16px;border:2px dashed #52a5ad;border-radius:16px;background:#f3fbfa;color:#164b59;cursor:pointer;font:inherit;text-align:center}.scan-document-example strong{display:block;padding:12px 16px;background:#087e8b;color:white;border-radius:12px;width:100%}.scan-document-example small,.scan-example-hint{font-size:12px;color:#526f7a}.scan-example-drawing{position:relative;display:block;direction:ltr;text-align:left;max-width:100%;width:280px;height:170px;overflow:hidden;border:1px solid #8db7c0;border-radius:12px;background:linear-gradient(120deg,#e8f1f9,#fbf8e9);box-shadow:0 6px 16px #12384715;color:#34596a}.scan-example-type{position:absolute;top:10px;left:12px;right:12px;font-size:13px;font-weight:700}.scan-example-side{position:absolute;top:34px;left:12px;right:12px;font-size:11px}.scan-example-avatar{position:absolute;top:66px;left:14px;width:62px;height:78px;border-radius:6px;background:#c8dce3}.scan-example-avatar::before{content:'';position:absolute;top:12px;left:21px;width:22px;height:22px;border-radius:50%;background:#809eae}.scan-example-avatar::after{content:'';position:absolute;bottom:10px;left:12px;width:40px;height:29px;border-radius:20px 20px 4px 4px;background:#809eae}.scan-example-lines{position:absolute;top:73px;left:92px;right:16px;height:64px;background:repeating-linear-gradient(to bottom,#91acb75c 0px,#91acb75c 5px,transparent 5px,transparent 16px);border-radius:3px}.scan-example-code{position:absolute;bottom:10px;left:14px;font-size:13px;letter-spacing:4px}.scan-example-drawing[data-side=back] .scan-example-avatar{display:none}.scan-example-drawing[data-side=back] .scan-example-lines{left:14px;right:14px}.scan-example-drawing[data-document=insurance_card]{background:linear-gradient(130deg,#e6f7ee,#e9f0fa)}.scan-example-drawing[data-document=insurance_card]::after{content:'+';position:absolute;right:15px;bottom:12px;width:28px;height:28px;background:#32876f;color:white;text-align:center;border-radius:5px;font-size:23px}.scan-example-drawing[data-document=bank_card]{background:linear-gradient(130deg,#20475a,#357a88);color:white}.scan-example-drawing[data-document=bank_card] .scan-example-avatar{width:37px;height:28px;background:#d6bc70}.scan-example-drawing[data-document=bank_card] .scan-example-avatar::before,.scan-example-drawing[data-document=bank_card] .scan-example-avatar::after{display:none}.scan-example-drawing[data-document=birth_certificate],.scan-example-drawing[data-document=benefit_notice],.scan-example-drawing[data-document=payslip]{width:180px;height:220px;border-radius:3px;background:#fff}.scan-example-drawing[data-document=birth_certificate] .scan-example-avatar,.scan-example-drawing[data-document=benefit_notice] .scan-example-avatar,.scan-example-drawing[data-document=payslip] .scan-example-avatar{display:none}.scan-example-drawing[data-document=birth_certificate] .scan-example-lines,.scan-example-drawing[data-document=benefit_notice] .scan-example-lines,.scan-example-drawing[data-document=payslip] .scan-example-lines{left:14px;right:14px;height:128px}
.customer-scan-page .scan-photo-picker{grid-template-columns:1fr 1fr;margin:12px 0}.scan-photo-picker[hidden]{display:none!important}.scan-photo-picker>p{grid-column:1/-1;font-weight:600}.scan-upload-box>[data-scan-action=skipNow]{display:block;margin:12px auto 0;border:0;background:none;color:#496876;min-height:44px}.scan-saved-thumbnail{display:block;width:100%;max-width:160px;max-height:140px;object-fit:contain;border-radius:8px;margin:8px 0}.scan-manager-setup-note{grid-column:1/-1}
@media(max-width:640px){.scan-household{padding:14px}.customer-scan-page .scan-document-example{padding:12px}.scan-example-drawing{width:260px;height:164px}.customer-scan-page .scan-photo-picker .scan-button{min-height:84px}.scan-document-example strong{font-size:16px}.scan-household-options .scan-button{min-height:52px}}

/* Each person signs only their capture mandate, never a final application. */
.scan-fund-choice{display:grid;gap:.6rem;margin-block:1.2rem;font-weight:700}
.scan-fund-choice select{width:100%;min-height:52px;padding:12px;border:1px solid #adcfc6;border-radius:12px;background:white;color:#133d36;font:inherit}
.scan-signature-canvas{display:block;width:100%;height:auto;aspect-ratio:7/4;background:white;border:2px dashed #258278;border-radius:14px;touch-action:none;cursor:crosshair;margin-block:12px;max-width:700px}
.scan-card[data-scan-screen=authorization]>.scan-actions{position:static;margin:16px 0;padding:0;border:0;box-shadow:none;background:none;flex-wrap:wrap}
.scan-authorization-fund{font-weight:700;padding:12px;background:#e8f6ef;border-radius:12px}
.scan-authorization-text{font-size:1rem;line-height:1.8}
.scan-authorization-documents{padding:12px;border:1px solid #cde1db;border-radius:12px;overflow-wrap:anywhere;margin-block:12px}
.scan-skip:not(:focus){width:1px;height:1px;min-height:0;padding:0;overflow:hidden;clip-path:inset(100%)}

/* One document, one visible photo, then an explicit Continue action. */
.scan-photo-review{margin:12px 0;padding:12px;border:1px solid #b7dcd0;border-radius:16px;background:#f0faf5;text-align:center}
.scan-photo-review img{display:block;width:100%;max-height:340px;object-fit:contain;border-radius:10px;background:#e4eee9}
.scan-photo-review figcaption{margin-top:12px;color:#17664e;font-weight:750;font-size:18px}
.scan-photo-review p{color:#284c44}.scan-photo-review small{display:block;color:#526e64}
.scan-photo-change,.scan-additional-proof,.scan-authorization-terms{margin:12px 0;border:1px solid #d4e3e7;border-radius:12px;padding:0 12px;background:#fff}
.scan-photo-change>summary,.scan-additional-proof>summary,.scan-authorization-terms>summary{min-height:48px;display:list-item;align-content:center;cursor:pointer;color:#275867;font-weight:650;padding:12px 0}
.scan-photo-change .scan-document-example{margin-bottom:12px}.scan-additional-proof{margin-bottom:0}.scan-additional-proof label:last-child{margin-bottom:12px}
.scan-support .scan-button{display:block;width:100%;margin:10px 0}
.scan-review-person{border:1px solid #cee2dd;border-radius:16px;padding:16px;margin:14px 0;background:#f8fcfa}.scan-review-person h2{margin-top:0}.scan-review-count{color:#237058;font-weight:650}.scan-review-details>summary{min-height:44px;padding:10px 0;cursor:pointer;color:#366571}.scan-review-person>.scan-button{margin:8px 8px 0 0}
.scan-card[data-scan-screen=documents] .scan-photo-review~[data-scan-action=skipNow]{display:none}
.scan-card[data-scan-screen=authorization] .scan-authorization-documents{font-size:14px;background:#f8fbfa}
@media(max-width:640px){.scan-photo-review{padding:10px}.scan-photo-review img{max-height:260px}.scan-card[data-scan-screen=documents] .scan-upload-box{background:#fff;border-color:#d2e2e7}.scan-card[data-scan-screen=documents] .scan-upload-box>.scan-muted{font-size:12px}.scan-card[data-scan-screen=documents]>.scan-support{margin-bottom:4px}.scan-card[data-scan-screen=authorization]>.scan-actions .scan-button-primary{flex-basis:100%}}

/* Accessible capture: one person and one document, large targets at every size. */
.customer-scan-page{font-size:18px;line-height:1.65;color:#163b35}
.scan-accessibility{display:flex;flex-wrap:wrap;gap:8px;padding:12px;margin-bottom:14px;border:1px solid #abcfc4;border-radius:16px;background:#fff}
.scan-accessibility button{flex:1;min-height:56px;min-width:120px;border:2px solid #237865;border-radius:12px;background:#fff;color:#125341;font:inherit;font-weight:700;padding:10px}
.scan-accessibility button:first-child{flex:2;background:#17634e;color:white}
.scan-accessibility button:disabled{opacity:.55}.scan-accessibility p{flex-basis:100%;margin:0;font-size:14px;color:#385c53}
.customer-scan-page button:focus-visible,.customer-scan-page summary:focus-visible,.customer-scan-page select:focus-visible{outline:4px solid #edaa18;outline-offset:3px}
.scan-current-person{display:flex;align-items:center;gap:16px;padding:14px 18px;border-radius:16px;background:#e0f1e9;border:2px solid #297a63;font-size:24px}
.scan-person-symbol{position:relative;display:inline-block;flex:none;width:48px;height:56px;font-size:0}
.scan-person-symbol::before{content:'';position:absolute;top:0;left:14px;width:22px;height:22px;border-radius:50%;background:#1a6852}
.scan-person-symbol::after{content:'';position:absolute;bottom:0;left:4px;width:42px;height:29px;border-radius:22px 22px 4px 4px;background:#1a6852}
.customer-scan-page .scan-button,.customer-scan-page .scan-actions .scan-button{min-height:58px;font-size:19px;padding:12px 18px}
.customer-scan-page .scan-document-actions .scan-button{min-height:86px;font-size:20px}
.customer-scan-page .scan-photo-picker{grid-template-columns:2fr 1fr}
.customer-scan-page .scan-photo-picker>p{display:none}
.customer-scan-page .scan-document-example strong{font-size:21px;background:none;color:#145442;padding:0}
.customer-scan-page .scan-document-example small,.customer-scan-page .scan-example-hint{display:none}
.customer-scan-page .scan-example-drawing{width:300px;height:185px;max-width:100%}
.customer-scan-page .scan-example-side{font-size:16px;font-weight:700;top:36px}
.customer-scan-page .scan-upload-box>h2{font-size:23px;line-height:1.4}
.customer-scan-page .scan-card[data-scan-screen=documents] .scan-upload-box>.scan-muted{font-size:16px}
.customer-scan-page .scan-photo-review figcaption{font-size:23px}.customer-scan-page .scan-photo-review p{font-size:19px}
.customer-scan-page .scan-actions .scan-button-primary::after{content:' →';font-size:24px}
[dir=rtl] .scan-actions .scan-button-primary::after{content:' ←'}
.customer-scan-page .scan-consent{font-size:18px}.scan-consent input{min-width:28px;min-height:28px}
[data-scan-large=true] .customer-scan-page{font-size:23px}
[data-scan-large=true] .customer-scan-page .scan-button,[data-scan-large=true] .scan-accessibility button{font-size:23px;min-height:64px}
[data-scan-large=true] .customer-scan-page .scan-muted,[data-scan-large=true] .customer-scan-page label{font-size:21px}
@media(max-width:640px){.customer-scan-page .scan-card{padding:16px}.scan-current-person{font-size:22px}.customer-scan-page .scan-document-actions .scan-button{font-size:18px;min-height:90px}.customer-scan-page .scan-photo-picker{grid-template-columns:1fr}.customer-scan-page .scan-photo-picker .scan-button:not(.scan-button-primary){min-height:56px}.scan-accessibility button{min-width:100px;font-size:17px}.scan-accessibility button:first-child{flex-basis:100%}.scan-steps .scan-step-label{display:none}.scan-stage-title{font-size:17px}.customer-scan-page .scan-card[data-scan-screen=documents] .scan-upload-box>h2{font-size:23px}.customer-scan-page .scan-actions{flex-wrap:wrap}.customer-scan-page .scan-actions .scan-button-primary{min-width:55%}}
.scan-empty-heading{display:none}.scan-current-person+.scan-person-label{margin-block:4px}.scan-accessibility button:not(:first-child){flex:0 1 auto}
.scan-person-links-panel{margin:14px 0;padding:12px;border:1px solid #b7d8cc;border-radius:14px;background:#f5fbf8}
.scan-person-links-panel>summary{cursor:pointer;font-weight:750;min-height:44px}
.scan-person-links-panel label{display:block;margin:10px 0;font-weight:650}
.scan-person-links-panel input:not([type=checkbox]),.scan-person-links-panel select,.scan-person-links-panel textarea{display:block;width:100%;min-height:44px;padding:10px;border:1px solid #b0cfc2;border-radius:9px;background:white;color:#143c32;font:inherit;box-sizing:border-box}
.scan-person-links-panel input[type=checkbox]{margin-inline:10px;width:22px;height:22px;vertical-align:middle}
.scan-person-link-list{margin-top:16px;border-top:1px solid #bdd4c9;padding-top:10px;overflow-wrap:anywhere}
.scan-person-link-list label{margin-top:18px}.scan-person-links-panel p[role=status]{font-weight:650;color:#176348}
[data-scan-screen=documents] #scan-steps{display:none}
.scan-accessibility button:not(:first-child){flex:none;min-width:52px;width:52px;padding:8px}
.scan-accessibility button:first-child{min-width:0}
.customer-scan-page .scan-card .scan-photo-picker [data-scan-action=chooseFile] .scan-action-icon{display:none}
@media(max-width:640px){.scan-accessibility{flex-wrap:wrap}.scan-accessibility button:first-child{flex:1;flex-basis:0}.customer-scan-page .scan-card .scan-photo-picker .scan-button-primary{min-height:80px;padding:8px;font-size:20px}.customer-scan-page .scan-card .scan-photo-picker [data-scan-action=chooseFile]{min-height:56px;padding:8px;font-size:18px}}
@media(max-width:640px){.scan-accessibility{padding:8px;gap:6px}.scan-accessibility button{min-width:44px;padding:8px;font-size:15px}.scan-accessibility button:first-child{flex:1;flex-basis:auto}.scan-accessibility p{font-size:12px}.scan-current-person{padding:10px 12px}.customer-scan-page .scan-document-actions .scan-button-primary{min-height:70px}.scan-document-example{margin-block:10px}.customer-scan-page .scan-upload-box>h2{margin-top:0}.scan-eyebrow,.scan-brand small{display:none}}

.scan-contact-form label{display:grid;gap:6px;margin:12px 0}.scan-contact-form input{width:100%;box-sizing:border-box;min-height:48px;font-size:18px;padding:10px;border:1px solid #9ebbb5;border-radius:10px;background:#fff;color:#173747}.scan-contact-form .scan-button{margin-block:5px}
