.portal-root{--bg:#f5f6fa;--surface:#fff;--ink:#0f172a;--ink-soft:#475569;--muted:#94a3b8;--line:#e2e8f0;--brand:#386c70;--brand-dark:#2f585b;--brand-soft:#e3efef;--accent:#10b981;--warn:#f59e0b;--danger:#dc2626;--radius:14px;--radius-lg:20px;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,Segoe UI,Roboto,sans-serif;-webkit-font-smoothing:antialiased;font-size:16px;line-height:1.45;min-height:100vh}.portal-root *{box-sizing:border-box}.portal-root .app{max-width:480px;margin:0 auto;min-height:100vh;background:var(--bg);position:relative;padding-bottom:calc(120px + env(safe-area-inset-bottom))}.portal-root header.bar{position:sticky;top:0;z-index:10;background:var(--surface);border-bottom:1px solid var(--line);padding:12px 18px;display:flex;align-items:center;gap:10px}.portal-root header.bar .logo{width:28px;height:28px;border-radius:8px;background:linear-gradient(135deg,#386c70,#5b9498);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:13px}.portal-root header.bar .logo-img{height:26px;width:auto;display:block}.portal-root header.bar .brand{font-weight:600;font-size:15px}.portal-root header.bar .meta-sub{font-size:11px;color:var(--muted)}.portal-root .langs{display:flex;gap:2px;margin-left:auto;background:#f1f5f9;border-radius:999px;padding:3px}.portal-root .langs button{border:0;background:transparent;color:var(--ink-soft);font:inherit;font-size:11px;font-weight:600;padding:5px 8px;border-radius:999px;cursor:pointer;letter-spacing:.02em}.portal-root .langs button.active{background:#fff;color:var(--brand);box-shadow:0 1px 2px rgba(0,0,0,.06)}.portal-root .progress{height:4px;background:var(--line);overflow:hidden;position:relative}.portal-root .progress>i{display:block;height:100%;background:var(--brand);transition:width .35s ease;position:relative;overflow:hidden}.portal-root .progress.shimmer>i:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,hsla(0,0%,100%,.45) 50%,transparent);animation:portal-shimmer 1.4s linear infinite}@keyframes portal-shimmer{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}.portal-root main{padding:22px 18px 140px}.portal-root h1{font-size:26px;line-height:1.22;margin:0 0 8px;letter-spacing:-.015em;color:var(--ink);font-weight:700}.portal-root h2{font-size:19px;margin:0 0 6px;color:var(--ink);font-weight:600}.portal-root p.lead{color:var(--ink-soft);margin:0 0 22px;font-size:15px;line-height:1.6}.portal-root .welcome-hero{text-align:center;padding:8px 0 18px}.portal-root .welcome-greet{font-size:15px;font-weight:600;color:var(--brand-dark);letter-spacing:.01em}.portal-root .welcome-name{font-size:24px;font-weight:700;color:var(--ink);margin-top:6px;line-height:1.2}.portal-root .welcome-ch{font-size:38px;line-height:1;margin:10px 0 14px}.portal-root .welcome-pick{font-size:13px;color:var(--ink-soft);margin-bottom:10px}.portal-root .lang-flags{display:flex;justify-content:center;flex-wrap:wrap;gap:10px}.portal-root .lang-flags button{display:flex;flex-direction:column;align-items:center;gap:4px;width:72px;padding:10px 6px;background:var(--surface);border:1.5px solid var(--line);border-radius:14px;cursor:pointer;font:inherit;transition:border-color .15s,box-shadow .15s,transform .1s}@media (hover:hover){.portal-root .lang-flags button:hover{border-color:var(--brand)}}.portal-root .lang-flags button.active{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}.portal-root .lang-flags button .fl{font-size:30px;line-height:1}.portal-root .lang-flags button .nm{font-size:12px;font-weight:600;color:var(--ink-soft)}.portal-root .lang-flags button.active .nm{color:var(--brand-dark)}.portal-root .card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:20px;margin-bottom:16px}.portal-root .card.tight{padding:14px}.portal-root .row{display:flex;gap:12px;align-items:center}.portal-root .row+.row{margin-top:10px}.portal-root .pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:var(--brand-soft);color:var(--brand-dark);font-size:12px;font-weight:600}.portal-root .pill.ok{background:#dcfce7;color:#166534}.portal-root .pill.warn{background:#fef3c7;color:#92400e}.portal-root .label{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:600;margin-bottom:6px}.portal-root input[type=email],.portal-root input[type=tel],.portal-root input[type=text],.portal-root select,.portal-root textarea{width:100%;padding:14px;border:1px solid var(--line);border-radius:var(--radius);font:inherit;color:var(--ink);background:#fff;appearance:none;-webkit-appearance:none}.portal-root select{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");background-repeat:no-repeat;background-position:right 14px center;padding-right:42px}.portal-root input:focus,.portal-root select:focus,.portal-root textarea:focus{outline:2px solid var(--brand-soft);border-color:var(--brand)}.portal-root .help{font-size:13px;color:var(--ink-soft);margin-top:6px}.portal-root .actions{position:fixed;left:0;right:0;bottom:0;background:linear-gradient(180deg,rgba(245,246,250,0),#f5f6fa 25%,#f5f6fa);padding:20px 18px calc(20px + env(safe-area-inset-bottom));display:flex;justify-content:center;pointer-events:none;z-index:20}.portal-root .actions>*{pointer-events:auto;max-width:480px;width:100%}.portal-root button.primary{display:flex;justify-content:center;align-items:center;gap:8px;width:100%;padding:16px;background:var(--brand);color:#fff;border:0;border-radius:16px;font:inherit;font-weight:600;font-size:16px;box-shadow:0 8px 24px rgba(56,108,112,.28);cursor:pointer;transition:transform .12s ease,box-shadow .2s ease,background .2s ease}.portal-root button.primary:active:not(:disabled){transform:scale(.98);box-shadow:0 4px 12px rgba(56,108,112,.22)}@media (hover:hover){.portal-root button.primary:hover:not(:disabled){background:var(--brand-dark)}}.portal-root button.primary:disabled{opacity:.5;box-shadow:none;cursor:not-allowed}.portal-root button.ghost{background:transparent;color:var(--brand);border:0;font:inherit;font-weight:600;padding:10px;cursor:pointer}.portal-root button.secondary{justify-content:center;align-items:center;gap:8px;width:100%;color:var(--ink);border:1px solid var(--line);border-radius:14px;font:inherit;font-weight:600}.portal-root .checkbox,.portal-root button.secondary{display:flex;padding:14px;background:#fff;cursor:pointer}.portal-root .checkbox{gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:var(--radius)}.portal-root .checkbox+.checkbox{margin-top:10px}.portal-root .checkbox input{margin-top:3px;width:18px;height:18px;accent-color:var(--brand)}.portal-root .checkbox .t{font-weight:600;font-size:15px}.portal-root .checkbox .d{font-size:13px;color:var(--ink-soft);margin-top:3px;line-height:1.4}.portal-root .doc-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);padding:16px;margin-bottom:14px}.portal-root .doc-card .head{display:flex;gap:12px;align-items:center}.portal-root .doc-card .doc-ic{width:44px;height:44px;border-radius:10px;background:var(--brand-soft);color:var(--brand);display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0}.portal-root .doc-card .t{font-weight:600}.portal-root .doc-card .d{font-size:13px;color:var(--ink-soft);margin-top:2px}.portal-root .doc-card .dl{margin-top:14px;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:12px;background:var(--brand-soft);color:var(--brand-dark);border:0;border-radius:12px;font:inherit;font-weight:600;cursor:pointer}.portal-root .doc-card .consent-text{margin-top:14px;max-height:40vh;overflow-y:auto;background:#fafbfc;border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-size:13px;line-height:1.55;color:var(--ink);white-space:pre-wrap;-webkit-overflow-scrolling:touch}.portal-root .doc-card .dl.viewed{background:#dcfce7;color:#166534}.portal-root .upload{display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px dashed var(--line);border-radius:var(--radius-lg);padding:28px 18px;background:#fff;text-align:center;transition:border-color .2s,background .2s,transform .12s;-webkit-tap-highlight-color:transparent;position:relative}.portal-root .upload.clickable{cursor:pointer}.portal-root .upload.clickable:active{transform:scale(.99)}@media (hover:hover){.portal-root .upload.clickable:hover{border-color:var(--brand);background:#fafefe}}.portal-root .upload.ready{border-style:solid;border-color:#86efac;background:linear-gradient(180deg,#f0fdf4,#fff 60%)}.portal-root .upload.ready .ic{background:#dcfce7;color:#15803d}.portal-root .upload .check-badge{position:absolute;top:14px;right:14px;width:28px;height:28px;background:#22c55e;color:#fff;font-size:16px;font-weight:700;box-shadow:0 4px 10px rgba(34,197,94,.35)}.portal-root .upload .check-badge,.portal-root .upload .ic{border-radius:50%;display:flex;align-items:center;justify-content:center}.portal-root .upload .ic{width:60px;height:60px;background:var(--brand-soft);color:var(--brand);font-size:28px;margin-bottom:12px;transition:background .2s,color .2s,transform .25s}.portal-root .upload .t{font-weight:600;margin-bottom:4px;font-size:15px}.portal-root .upload .d{font-size:13px;color:var(--ink-soft)}.portal-root .preview{position:relative;border-radius:var(--radius-lg);overflow:hidden;border:1px solid var(--line);background:#000;aspect-ratio:1.586/1;display:flex;align-items:center;justify-content:center}.portal-root .preview img{width:100%;height:100%;object-fit:cover}.portal-root .preview .scan{position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,transparent,#7aa6ff,transparent);animation:portal-scan 1.6s linear infinite}@keyframes portal-scan{0%{transform:translateY(0)}to{transform:translateY(220px)}}.portal-root .kv{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}.portal-root .kv:last-child{border-bottom:0}.portal-root .kv .k{color:var(--muted);font-weight:500;flex-shrink:0}.portal-root .kv .v{font-weight:600;color:var(--ink);text-align:right}.portal-root .timeline{position:relative;padding-left:26px}.portal-root .timeline:before{content:"";position:absolute;left:9px;top:6px;bottom:6px;width:2px;background:var(--line)}.portal-root .step-item{position:relative;padding:8px 0 14px}.portal-root .step-item:before{content:"";position:absolute;left:-22px;top:14px;width:14px;height:14px;border-radius:50%;background:var(--line);border:2px solid var(--bg)}.portal-root .step-item.current:before{background:var(--brand);box-shadow:0 0 0 4px rgba(59,107,214,.18)}.portal-root .step-item .t{font-weight:600;font-size:14px}.portal-root .step-item .d{color:var(--muted);font-size:12px}.portal-root .toast{position:fixed;top:90px;left:50%;transform:translate(-50%,-20px);background:var(--ink);color:#fff;padding:10px 16px;border-radius:999px;font-size:13px;opacity:0;transition:all .25s ease;z-index:50;max-width:90vw;text-align:center;pointer-events:none}.portal-root .toast.show{opacity:1;transform:translate(-50%)}.portal-root .success-icon{width:72px;height:72px;border-radius:50%;background:#dcfce7;color:var(--accent);display:flex;align-items:center;justify-content:center;margin:0 auto 18px;font-size:34px;animation:portal-pop .4s ease}@keyframes portal-pop{0%{transform:scale(.5);opacity:0}70%{transform:scale(1.1)}to{transform:scale(1);opacity:1}}.portal-root .spinner{width:48px;height:48px;border:3px solid var(--brand-soft);border-top-color:var(--brand);border-radius:50%;animation:portal-spin 1s linear infinite;margin:0 auto 18px}@keyframes portal-spin{to{transform:rotate(1turn)}}.portal-root .conf-bar{height:6px;border-radius:999px;background:var(--line);overflow:hidden;margin-top:8px}.portal-root .conf-bar>i{display:block;height:100%;background:var(--accent);transition:width .5s}.portal-root .conf-bar>i.low{background:var(--warn)}.portal-root .meta{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;margin-top:14px}.portal-root .meta svg{width:14px;height:14px}.portal-root .footer-text{text-align:center;color:var(--muted);font-size:12px;padding:30px 18px 60px}.portal-root a{color:var(--brand)}.portal-root .otp{width:42px;height:54px;border:1px solid var(--line);border-radius:12px;text-align:center;font-size:22px;font-weight:600;background:#fff}.portal-root .step-num{padding:6px 18px 0;font-size:11px;color:var(--muted);display:flex;justify-content:flex-end}.portal-root .step-dots{display:flex;align-items:center;justify-content:center;gap:6px;padding:10px 18px 0;flex-wrap:wrap}.portal-root .step-dots .dot{width:8px;height:8px;border-radius:50%;background:var(--line);transition:background .25s,transform .2s}.portal-root .step-dots .dot.done{background:var(--brand)}.portal-root .step-dots .dot.current{background:var(--brand);transform:scale(1.5);box-shadow:0 0 0 4px var(--brand-soft)}.portal-root .capture-btn{display:flex;justify-content:center;align-items:center;gap:8px;flex:1;padding:14px 12px;background:var(--brand-soft);color:var(--brand-dark);border:1.5px solid var(--brand-soft);border-radius:14px;font:inherit;font-weight:600;font-size:14px;cursor:pointer;transition:transform .12s,background .2s,border-color .2s;-webkit-tap-highlight-color:transparent}.portal-root .capture-btn:active{transform:scale(.97)}@media (hover:hover){.portal-root .capture-btn:hover{background:#d4e7e7;border-color:var(--brand)}}.portal-root .confidence-badge{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:12px;font-size:13px;font-weight:600;margin-bottom:14px}.portal-root .confidence-badge.high{background:#dcfce7;color:#166534;border:1px solid #86efac}.portal-root .confidence-badge.med{background:#fef3c7;color:#92400e;border:1px solid #fcd34d}.portal-root .confidence-badge .ic{font-size:18px}.portal-root .field-uncertain input{border-color:#fcd34d;background:#fffbeb}.portal-root .done-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);padding:24px 20px;text-align:center;margin-bottom:16px;box-shadow:0 8px 28px rgba(15,23,42,.06)}.portal-root .done-card .photo{border-radius:50%;object-fit:cover;border:4px solid var(--brand-soft);display:block}.portal-root .done-card .photo,.portal-root .done-card .photo-placeholder{width:96px;height:96px;box-shadow:0 4px 14px rgba(0,0,0,.08);margin:0 auto 14px}.portal-root .done-card .photo-placeholder{border-radius:50%;background:var(--brand-soft);color:var(--brand);display:flex;align-items:center;justify-content:center;font-size:38px;border:4px solid #fff}.portal-root .done-card .role-pill{display:inline-block;padding:4px 10px;border-radius:999px;background:var(--brand-soft);color:var(--brand-dark);font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px}.portal-root .done-card .name{font-size:20px;font-weight:700;color:var(--ink);margin-bottom:4px}.portal-root .done-card .lang{font-size:13px;color:var(--ink-soft);margin-bottom:14px}.portal-root .done-card .phone-box{background:#f8fafc;border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:14px}.portal-root .done-card .phone-label{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:600;margin-bottom:4px}.portal-root .done-card .phone-number{font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:18px;font-weight:600;color:var(--ink)}.portal-root .next-steps{background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);padding:18px;margin-bottom:16px}.portal-root .next-steps h3{font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:0 0 14px}.portal-root .next-steps ol{margin:0;padding:0;list-style:none;counter-reset:step}.portal-root .next-steps li{counter-increment:step;position:relative;padding:6px 0 6px 36px;font-size:14px;line-height:1.5}.portal-root .next-steps li:before{content:counter(step);position:absolute;left:0;top:6px;width:24px;height:24px;border-radius:50%;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700}.portal-root .next-steps li+li{margin-top:4px}.portal-root .lang-picker{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.portal-root .lang-picker button{display:flex;align-items:center;gap:10px;padding:14px;background:#fff;border:1.5px solid var(--line);border-radius:14px;cursor:pointer;font:inherit;font-size:14px;font-weight:500;color:var(--ink);text-align:left;transition:border-color .2s,background .2s,transform .12s;-webkit-tap-highlight-color:transparent}.portal-root .lang-picker button:active{transform:scale(.98)}.portal-root .lang-picker button.active{border-color:var(--brand);background:var(--brand-soft)}.portal-root .lang-picker button.active .nm{color:var(--brand-dark);font-weight:600}.portal-root .lang-picker button .fl{font-size:24px;line-height:1}.portal-root .lang-picker button .nm{flex:1}.portal-root .lang-picker button .badge{font-size:10px;font-weight:600;padding:2px 6px;border-radius:999px;background:#fef3c7;color:#92400e;text-transform:uppercase;letter-spacing:.05em}.portal-root .lang-picker button:disabled{cursor:not-allowed;opacity:.85}