:root{color-scheme:light;--ink:#111;--muted:#666;--primary:#111;--line:#e8e8e8;--ease:cubic-bezier(.2,.8,.2,1)}
*{box-sizing:border-box}
html{height:100%;background:#fff}
body{margin:0;height:100dvh;display:flex;flex-direction:column;color:var(--ink);font:16px/1.5 Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;overflow-wrap:anywhere}
button,input{font:inherit}
button{color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;transition:background .15s,transform .15s}
button:active:not(:disabled){transform:scale(.985)}
button:disabled{cursor:default}
button:focus-visible{outline:3px solid #428766;outline-offset:3px}
button svg{pointer-events:none}
svg{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
[hidden]{display:none!important}
.widget-header{min-height:72px;padding:10px max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));display:grid;grid-template-columns:44px 1fr 44px;align-items:center;flex-shrink:0;padding-top:max(10px,env(safe-area-inset-top))}
.kita-logo{width:66px;height:auto;object-fit:contain;justify-self:center}
.icon-button{display:grid;place-items:center;border:0;background:none;width:44px;height:44px;border-radius:50%;color:#333}
.icon-button:hover{background:#f4f4f4}
.icon-button:disabled{opacity:.35}
main{flex:1;min-height:0;overflow-y:auto;padding:24px max(24px,env(safe-area-inset-right)) 24px max(24px,env(safe-area-inset-left));display:flex;flex-direction:column;gap:12px;overscroll-behavior:contain;scrollbar-width:thin}
main>*{flex-shrink:0}
h1{font-size:24px;line-height:30px;letter-spacing:-.5px;font-weight:600;margin:0}
h1:focus{outline:none}
p{margin:0;color:var(--muted);font-size:16px;line-height:24px}
footer{padding:20px max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));display:flex;flex-direction:column;gap:16px;flex-shrink:0;background:#fff;border-top:1px solid #eee}
footer>.caption{text-align:center;color:#666;font-size:11px;line-height:16px;margin:0}
.legal-link{font:inherit;border:0;background:none;text-decoration:underline;text-underline-offset:2px;padding:12px 0;margin:-12px 0;color:inherit;min-height:40px}
.primary{display:flex;align-items:center;justify-content:center;width:100%;min-height:56px;line-height:24px;border:0;border-radius:8px;background:var(--primary);color:#fff;font-size:17px;font-weight:600;padding:16px}
.primary:hover:not(:disabled){background:#303030}
.primary:disabled{background:#e9e9e9;color:#858585}
.text-button{border:0;background:none;min-height:44px;padding:10px 0;font-size:14px;font-weight:600;text-align:left;color:#111}
.text-button:hover{text-decoration:underline;text-underline-offset:3px}
.center{text-align:center;width:100%}
.caption{font-size:12px}
.document-symbol{display:flex;justify-content:center;margin:6px auto 14px;width:120px;height:88px}
.document-symbol svg{width:120px;height:88px;flex-shrink:0}
.import-note{font-size:12px;line-height:18px;color:#777}
.import-steps{list-style:none;counter-reset:step;padding:0;display:flex;flex-direction:column;gap:24px;margin:16px 0}
.import-steps li{counter-increment:step;position:relative;padding-left:38px}
.import-steps li::before{content:counter(step);position:absolute;left:0;top:0;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#f1f1f1;font-size:12px;font-weight:600}
.import-steps strong{display:block;font-size:14px;line-height:22px;margin-bottom:4px;font-weight:600}
.import-steps p{font-size:14px;line-height:20px}
.password-field{display:flex;flex-direction:column;gap:8px;margin-top:16px}
.password-field label{font-size:14px;font-weight:600}
.password-field input{width:100%;border:1px solid #aaa;border-radius:8px;min-height:52px;padding:12px;font-size:16px;outline-offset:3px}
.unlock-filename{font-size:14px;color:#111}
body[data-view=import] footer{box-shadow:0 -8px 20px #fff;border-top:1px solid var(--line)}
.files{display:flex;flex-direction:column;margin-top:16px}
.file{display:flex;gap:12px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line);min-width:0;animation:appear .2s ease}
.file-icon{width:40px;height:44px;background:#f6f6f6;border-radius:8px;align-items:center;flex-shrink:0;color:#333;display:flex;justify-content:center}
.file-icon svg{width:24px;height:29px}
.file-details{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.file-name{font-size:14px;font-weight:600;line-height:20px;overflow-wrap:anywhere}
.file small{font-size:12px;line-height:18px;color:var(--muted)}
.file .remove{font-size:13px;min-width:48px;flex-shrink:0;text-align:center;text-decoration:underline;text-underline-offset:3px;font-weight:400}
.file.failed small,.file.failed .file-icon{color:#ae342c}
.add-file{align-self:flex-start;display:flex;align-items:center;gap:8px;margin-top:8px}
.add-file::before{content:'+';font-size:22px;font-weight:400}
.error{border-left:2px solid #ae342c;color:#ae342c;padding:10px 12px;font-size:13px;background:#fff8f7}
.processing-steps{display:flex;align-items:center;gap:12px;font-size:12px;color:#aaa;margin-top:18px}
.processing-steps i{width:20px;height:1px;background:#ddd}
.processing-steps .done{color:#666}
.processing-steps .active{color:#111;font-weight:600}
progress::-webkit-progress-bar{background:#e8e8e8}progress::-webkit-progress-value{background:#111;transition:width .15s}
body[data-view=processing] footer{border:0}
body[data-view=complete] main{text-align:center;justify-content:center;padding-top:32px;padding-bottom:40px}
.success-icon{display:grid;place-items:center;margin:16px 0 14px}
.success-icon svg{width:64px;height:64px;padding:13px;color:#111;background:#d5f4e4;border-radius:50%}
.success-icon circle{stroke:none}
.success-icon path{stroke-dasharray:40;stroke-dashoffset:40;animation:check-draw .35s ease forwards}
.receipt{display:flex;flex-direction:column;gap:12px;margin-top:20px;text-align:left}
.receipt>p{font-size:13px;text-align:center}
.receipt .file{padding:12px 0}
.sandbox{margin:0 24px 10px;padding:8px 12px;background:#faf3de;border:1px solid #d5c891;font-size:11px}
.spinner{width:30px;height:30px;border:2px solid #e8e8e8;border-top-color:#111;border-radius:50%;animation:spin .85s linear infinite}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes appear{from{opacity:0;translate:0 4px}to{opacity:1;translate:0 0}}
@keyframes check-draw{to{stroke-dashoffset:0}}
@media(max-height:700px){main{padding-top:16px;gap:10px}body[data-view=intro] main{padding-top:8px}.document-symbol{margin:0 auto 8px;height:64px}.document-symbol svg{height:64px}body[data-view=intro] h1{margin:4px 0 20px}.intro-benefits{padding:16px;gap:18px}footer{padding-top:16px;padding-bottom:max(16px,env(safe-area-inset-bottom));gap:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.success-icon path{stroke-dashoffset:0}}
/* Institution selection follows the same compact rhythm as the document flow. */
.bank-search:focus-within{outline:2px solid #111;outline-offset:2px}
.bank-search svg{flex-shrink:0;fill:none;stroke:#666;stroke-width:1.6}
.bank-search input{width:100%;min-width:0;border:0;background:transparent;outline:0;font-size:16px;padding:13px 0;color:#111}
.bank-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:4px 0 12px}
.bank-tile:hover{background:#f7f9f8;border-color:#b5bdb9}.bank-tile:active{transform:scale(.97)}
.institution-logo{display:block;width:128px;height:36px;max-width:100%;object-fit:contain}
.institution-image{display:inline-flex;align-items:center;justify-content:center;min-height:36px;max-width:100%}
.institution-fallback{font-size:16px;font-weight:600;color:var(--ink)}
.bank-bdo .institution-logo{background:#003b78;border-radius:4px;padding:4px}
.bank-security-bank .institution-logo{background:#004b76;border-radius:4px;padding:5px}
.institution-mark .institution-logo{width:auto;height:40px;max-width:140px;object-position:left center}
.institution-mark{font-size:23px;line-height:32px;font-weight:700;letter-spacing:-.4px;margin:8px 0 12px;min-height:32px}
.recording-symbol{width:62px;height:62px;border:1px solid #d4d7d5;border-radius:50%;display:grid;place-items:center;margin:12px 0}
.recording-symbol span{width:24px;height:24px;background:#111;border-radius:50%}
.recording-symbol.live span{background:#c12e28;animation:record-pulse 1.5s ease-in-out infinite}
.recording-preview{display:block;width:100%;min-height:180px;max-height:36dvh;background:#f3f4f3;border-radius:12px;object-fit:contain;margin-top:10px}
body[data-view=saved-recording] .recording-preview{max-height:calc(100dvh - 300px)}
body[data-view=recording-review] .recording-preview{max-height:48dvh}
.recording-placeholder{display:grid;justify-items:center;gap:16px;padding:40px 24px;background:#f6f6f6;border-radius:12px;text-align:center}
.recording-meta{display:flex;justify-content:space-between;gap:12px;font-size:12px;line-height:18px;color:#666;margin:4px 0}
.recording-meta strong{font-weight:500;color:#222;overflow-wrap:anywhere;min-width:0}.recording-meta span{white-space:nowrap}
body[data-view=capturing] main{align-items:center;justify-content:center;text-align:center}
@keyframes record-pulse{50%{opacity:.45}}
@media(max-height:700px){.institution-mark{margin:2px 0 8px}.import-steps{gap:18px;margin:8px 0}.recording-symbol{width:48px;height:48px;margin:4px 0}.recording-preview{max-height:30dvh;min-height:140px}}


.bank-metrobank .institution-logo,.bank-rcbc .institution-logo{background:#154d94;border-radius:4px;padding:6px}
.bank-cimb .institution-logo{background:#242424;border-radius:4px;padding:6px}

/* Shared Paper layouts. Native system dialogs remain owned by Android/iOS. */
body{font-family:system-ui,sans-serif}
h1{font-size:28px;line-height:34px;font-weight:700;letter-spacing:-.02em}
p{color:#444;line-height:25px}
main{gap:16px}
footer{gap:10px}
footer>.caption{font-size:12px;line-height:17px;color:#8a918d;padding-bottom:6px}
footer>.text-button.center,.secondary{display:flex;align-items:center;justify-content:center;min-height:52px;width:100%;border:1px solid #c8cfcb;border-radius:8px;background:#fff;font-size:15px;line-height:22px;font-weight:600}
.co-brand{display:flex;align-items:center;height:44px;margin-bottom:4px}
.co-brand>span{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#1b3a5c;color:#fff}
.co-brand img{width:44px;height:44px;border:2px solid #fff;border-radius:50%;margin-left:-10px}
body[data-view=import] main{gap:10px;padding-top:24px}
body[data-view=import] .co-brand{margin-bottom:10px}
.evidence-list{display:flex;flex-direction:column;margin-top:22px}
.eyebrow{text-transform:uppercase;color:#8a918d;letter-spacing:.08em;font-size:12px;line-height:16px;font-weight:600;padding-bottom:8px}
.evidence-row{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid #edefee}
.evidence-row:last-child{border-bottom:0}
.evidence-icon,.file-icon{display:flex;align-items:center;justify-content:center;width:36px;height:36px;background:#eef3f0;border-radius:10px;color:#286644;flex-shrink:0}
.evidence-icon svg,.file-icon svg{width:18px;height:20px}
.evidence-row strong,.file-name{font-size:15px;line-height:21px;font-weight:600}
.evidence-row p,.file small{font-size:14px;line-height:20px;color:#6b726e}
.evidence-row p{margin-top:3px}
.file{gap:14px;padding:16px 0;border-color:#edefee}
.add-file,.file-details .text-button{color:#286644;font-size:15px}
.success-icon svg{background:#eef3f0}
body[data-view=native-capture] main,body[data-view=capture-unavailable] main{align-items:center;justify-content:safe center;text-align:center;gap:20px}
body[data-view=complete] main{align-items:center;justify-content:safe center}
body[data-view=complete] main>p{width:100%;max-width:342px;text-align:center}
.state-heading{display:flex;flex-direction:column;gap:10px;width:100%}
body[data-view=capture-apps] main{overflow:hidden;padding-bottom:0}
.bank-search{display:flex;align-items:center;gap:10px;min-height:48px;padding:0 14px;border:1px solid #c8cfcb;border-radius:8px}
.capture-apps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start;overflow-y:auto;min-height:0;flex:1;padding-bottom:16px}
.capture-app{height:72px;display:flex;align-items:center;justify-content:center;border:1px solid #edefee;border-radius:10px;background:#fff;padding:12px;min-width:0}
.capture-app .institution-image{display:flex;justify-content:center;align-items:center;min-width:0;width:100%}
.capture-app .institution-logo{width:80px;height:32px;max-width:100%;object-fit:contain;padding:0;background:none}
.capture-app.bank-bdo{background:#003b71}.capture-app.bank-metrobank,.capture-app.bank-rcbc{background:#154d94}.capture-app.bank-security-bank{background:#004b76}.capture-app.bank-cimb{background:#242424}
.capture-app:hover{outline:2px solid #37886a;outline-offset:-2px}
#other-capture-app,.empty-search{grid-column:1/-1}
body[data-view=capture-guide] .institution-mark{margin:0;width:44px;height:44px}
body[data-view=capture-guide] .institution-logo{width:44px;height:44px;object-fit:contain}
body[data-view=native-capture] .institution-mark,body[data-view=capture-unavailable] .institution-mark{margin:0}
.import-steps{gap:0;margin:10px 0 0}
.import-steps li{padding:16px 0 16px 50px;border-bottom:1px solid #edefee}
.import-steps li::before{top:18px;width:36px;height:36px;border-radius:10px;background:#eef3f0;color:#286644}
.import-steps strong{font-size:15px;line-height:21px}
.recording-status{font-size:13px;color:#a32925}
#upload-meter{width:100%;height:4px;accent-color:#111;border:0;border-radius:4px;overflow:hidden}
main.dragging{outline:2px dashed #37886a;outline-offset:-8px;background:#f4faf7}
