:root{color-scheme:light;--brand:#2f5bea;--brand-deep:#1b2f7a;--ink:#111827;--ink-soft:#6b7280;--page:#f4f6fb;--card:#ffffff;--line:#e5e7eb;--good:#16a34a;--alert:#dc2626;--warn:#d97706;--soil:#2563eb;--muted:#9aa3af;--hero:linear-gradient(135deg,#1b2f7a,#2f5bea,#38bdf8);--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}*{box-sizing:border-box}body,html{margin:0;padding:0}body{background:var(--page);color:var(--ink);font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:pointer}img{display:block}a{color:var(--brand);font-weight:600}h1,h2,h3,p{margin:0}.app{max-width:520px;margin:0 auto;background:var(--page);position:relative}.app,.screen{min-height:100dvh}.screen{display:flex;flex-direction:column}.padded{padding:calc(16px + var(--safe-top)) 24px calc(24px + var(--safe-bottom))}.padded-x{padding-left:24px;padding-right:24px}.centered{align-items:center;text-align:center}.grow{flex:1 1}.center{display:flex;flex-direction:column;align-items:center;gap:4px}.display{font-size:34px;line-height:40px;font-weight:700;letter-spacing:-.5px}.headline{font-size:28px;line-height:34px;font-weight:700;letter-spacing:-.3px;margin:16px 0 6px}.headline-sm{font-size:22px;line-height:28px;font-weight:700;margin:24px 0 8px}.title{font-size:17px;line-height:22px;font-weight:600}.body-lg{font-size:17px;line-height:24px}.body{font-size:15px;line-height:21px}.small{font-size:13px;line-height:18px}.soft{color:var(--ink-soft)}.faint{color:rgba(255,255,255,.65)}.warn{color:var(--warn)}.strong{font-weight:600}.mono{font-family:ui-monospace,Cascadia Mono,Consolas,monospace}.ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.note{font-size:13px;line-height:18px;color:var(--ink-soft);text-align:center;margin-bottom:8px}.note.alert{color:var(--alert)}.primary{width:100%;height:58px;border-radius:18px;background:var(--brand);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:17px;font-weight:600;transition:filter .15s,transform .1s}.primary:hover:not(:disabled){filter:brightness(1.08)}.primary:active:not(:disabled){transform:scale(.99)}.primary:disabled{background:var(--line);color:var(--ink-soft);cursor:default}.circle-btn{flex:none;border-radius:50%;background:var(--card);color:var(--ink);display:inline-flex;align-items:center;justify-content:center}.circle-btn.dark{background:rgba(0,0,0,.55);color:#fff}.viewer .circle-btn.dark{background:rgba(255,255,255,.14)}.badge{flex:none;border-radius:50%;display:inline-flex;align-items:center;justify-content:center}.text-link{color:var(--brand);font-size:17px;font-weight:600;padding:12px 14px;border-radius:12px}.text-link.muted{color:var(--ink-soft)}.text-link:hover{background:rgba(47,91,234,.06)}.card{background:var(--card);border-radius:20px;padding:12px;width:100%;text-align:left}.dot{width:10px;height:10px;border-radius:50%;flex:none;display:inline-block}.small-dot{width:8px;height:8px}:focus-visible{outline:3px solid rgba(47,91,234,.5);outline-offset:2px}.hero{background:var(--hero);color:#fff;border-radius:0 0 36px 36px;padding:calc(28px + var(--safe-top)) 24px 40px;display:flex;flex-direction:column;align-items:flex-start}.hero .display{margin-top:24px}.hero-body{margin-top:10px;font-size:17px;line-height:24px;color:rgba(255,255,255,.9)}.hero-top{width:100%;display:flex;justify-content:space-between;align-items:center;margin-bottom:40px}.brand{font-size:17px;font-weight:600;color:rgba(255,255,255,.85)}.key-chip{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.16);color:#fff;font-size:13px;font-weight:600}.key-chip:hover{background:rgba(255,255,255,.24)}.how{flex:1 1;padding:28px 24px;display:flex;flex-direction:column;gap:20px}.how-step{display:flex;gap:14px;align-items:flex-start}.how-n{flex:none;width:32px;height:32px;border-radius:50%;background:rgba(47,91,234,.12);color:var(--brand);font-weight:600;font-size:17px;display:inline-flex;align-items:center;justify-content:center}.actions{padding:12px 24px calc(24px + var(--safe-bottom));flex-direction:column}.actions,.skip{display:flex;align-items:center}.skip{height:48px}.topbar{display:flex;align-items:center;gap:14px;padding-top:calc(8px + var(--safe-top));padding-bottom:8px;margin-bottom:16px}.padded .topbar{padding-top:0}.key-saved{display:flex;justify-content:space-between;align-items:center;margin:24px 0 0}.danger-link{color:var(--alert);font-weight:600;padding:10px 12px;border-radius:12px}.danger-link:hover{background:rgba(220,38,38,.08)}.key-form{display:flex;flex-direction:column;gap:10px;margin:24px 0}.key-form .note{text-align:left;margin:0}.key-input{display:flex;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:16px;padding-left:14px}.key-input:focus-within{border-color:var(--brand)}.key-input input{flex:1 1;min-width:0;border:0;outline:0;background:none;height:52px;font:16px ui-monospace,Cascadia Mono,Consolas,monospace;color:var(--ink)}.modal-backdrop{position:fixed;inset:0;z-index:20;background:rgba(11,15,25,.55);display:flex;align-items:flex-end;justify-content:center;animation:fade .2s ease-out}.modal{width:100%;max-width:520px;max-height:88dvh;background:var(--card);border-radius:28px 28px 0 0;padding:8px 24px calc(16px + var(--safe-bottom));animation:rise .25s ease-out}.modal,.terms-body{display:flex;flex-direction:column}.terms-body{overflow-y:auto;gap:8px;color:var(--ink-soft);padding-bottom:8px}.terms-body .title{color:var(--ink);margin-top:8px}.modal-actions{display:flex;flex-direction:column;align-items:center;padding-top:12px;border-top:1px solid var(--line)}@media (min-width:560px){.modal-backdrop{align-items:center}.modal{border-radius:28px;max-height:80dvh}}@keyframes rise{0%{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}.progress{flex:1 1;display:flex;gap:6px}.progress button{flex:1 1;height:28px;display:flex;align-items:center}.progress button span{width:100%;height:6px;border-radius:3px;background:var(--line);transition:background .2s}.progress button.done span{background:rgba(47,91,234,.45)}.progress button.current span{background:var(--brand)}.capture-body{flex:1 1;padding-top:16px;padding-bottom:16px}.capture-body .body-lg{margin-bottom:24px}.empty-capture{width:100%;height:260px;border-radius:24px;background:rgba(47,91,234,.05);border:2px dashed rgba(47,91,234,.5);display:flex;flex-direction:column;margin-bottom:10px}.cam-circle,.empty-capture{align-items:center;justify-content:center}.cam-circle{width:76px;height:76px;border-radius:50%;background:var(--brand);color:#fff;display:inline-flex;margin-bottom:16px}.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:10px;gap:10px;margin-bottom:10px}.photo-tile{position:relative;aspect-ratio:.8;border-radius:16px;overflow:hidden;background:var(--line)}.photo-tile img{width:100%;height:100%;object-fit:cover}.photo-tile.loading{background:linear-gradient(100deg,var(--line) 30%,#f3f4f6 50%,var(--line) 70%);background-size:300% 100%;animation:shimmer 1.2s linear infinite}.add-tile{aspect-ratio:.8;border-radius:16px;background:rgba(47,91,234,.05);border:2px dashed rgba(47,91,234,.45);color:var(--brand);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}@keyframes shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}.analyzing{align-items:center;text-align:center}.scanner{position:relative;width:min(260px,70vw);aspect-ratio:1;border-radius:32px;overflow:hidden;background:var(--brand-deep);animation:pulse 1.8s ease-in-out infinite alternate;margin-bottom:12px}.mosaic{position:absolute;inset:0;display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:1fr}.mosaic img{width:100%;height:100%;object-fit:cover;opacity:.9}.mosaic.n1{grid-template-columns:1fr}.mosaic.n3 img:last-child{grid-column:1/span 2}.sweep{position:absolute;left:0;right:0;height:28%;top:-28%;background:linear-gradient(180deg,transparent,rgba(47,91,234,.45),#7dd3fc);border-bottom:3px solid #bae6fd;animation:sweep 1.6s linear infinite alternate}@keyframes sweep{0%{top:-28%}to{top:100%}}@keyframes pulse{0%{transform:scale(.96)}to{transform:scale(1)}}.fade-in{animation:fade .3s ease-out}@keyframes fade{0%{opacity:0}to{opacity:1}}.details{margin-top:4px;word-break:break-word}.verdict{padding-bottom:32px}.verdict .display{margin-top:20px}.pop{animation:pop .5s cubic-bezier(.34,1.56,.64,1)}@keyframes pop{0%{transform:scale(.4);opacity:0}to{transform:scale(1);opacity:1}}.result-list{padding:14px 20px 0;display:flex;flex-direction:column;gap:14px}.section-title{font-size:17px;line-height:22px;font-weight:600;margin-top:8px}.retake-card{background:rgba(217,119,6,.1);border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:6px}.retake-card .primary{margin-top:6px}.row{display:flex;align-items:center;gap:14px}.row.clickable:hover{box-shadow:0 1px 6px rgba(17,24,39,.08)}.row-text{flex:1 1;min-width:0}.crop{position:relative;flex:none;width:64px;height:64px;border-radius:14px;overflow:hidden;border:3px solid}.photo-strip{display:flex;gap:12px;overflow-x:auto;padding:14px 20px 4px;scroll-snap-type:x proximity}.strip-item{flex:none;width:150px;text-align:left;scroll-snap-align:start}.strip-thumb{position:relative;display:block;width:100%;aspect-ratio:.8;border-radius:16px;overflow:hidden;margin-bottom:6px}.strip-thumb img{width:100%;height:100%;object-fit:cover}.dots{position:absolute;left:8px;bottom:8px;display:flex;gap:4px;padding:4px 8px;border-radius:999px;background:rgba(0,0,0,.55)}.results .actions{padding-top:24px}.viewer{position:fixed;inset:0;z-index:10;background:#0b0f19;color:#fff;animation:fade .2s ease-out}.pager{position:absolute;inset:0;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}.pager::-webkit-scrollbar{display:none}.page{flex:none;width:100%;height:100%;scroll-snap-align:start;display:flex;flex-direction:column;padding:calc(76px + var(--safe-top)) 0 var(--safe-bottom)}.page-photo{flex:1 1;min-height:0;display:flex;align-items:center;justify-content:center;container-type:size}.page-photo .fit{width:min(100cqw,calc(100cqh * var(--ar, 1)))}.annotated{position:relative;width:100%}.annotated img,.annotated svg{position:absolute;inset:0;width:100%;height:100%}.caption{padding:20px;display:flex;flex-direction:column;gap:8px;max-height:35%;overflow-y:auto}.caption-row{gap:10px}.caption-row,.viewer-bar{display:flex;align-items:center}.viewer-bar{position:absolute;top:0;left:0;right:0;gap:14px;padding:calc(16px + var(--safe-top)) 16px 16px;background:linear-gradient(180deg,rgba(11,15,25,.9),transparent);pointer-events:none}.viewer-bar>*{pointer-events:auto}