.scan-document{--fg:#0e0e0f;--bg-paper:#fff;--paper-ring:#0000000f;--raw:#e9eaeb;--raw-img:#f5f6f7;--ink:#0e0e0f;--ink-img:color-mix(in oklab, var(--scan) 22%, #f5f6f7);--back:#e9eaeb;--back-line:#0000000f;--frame:#b0b4b8;--btn:#000;--btn-pressed:#272729;--btn-fg:#fff;--shadow:#00000029;-webkit-user-select:none;user-select:none;flex-direction:column;justify-content:center;align-items:center;gap:1.5em;width:100%;height:100%;font-family:Manrope,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,PingFang SC,sans-serif;font-size:clamp(12px,4.1cqmin,22px);display:flex;container-type:size}.scan-document[data-theme=dark]{--fg:#e1e2e5;--bg-paper:#272729;--paper-ring:#ffffff1a;--raw:#ffffff1a;--raw-img:#ffffff0f;--ink:#e1e2e5;--ink-img:color-mix(in oklab, var(--scan) 30%, #272729);--back:#1d1d1f;--back-line:#ffffff0f;--frame:#6e6f70;--btn:#fff;--btn-pressed:#e9eaeb;--btn-fg:#000;--shadow:#0000008c}.scan-document__stage{perspective:40em;width:8.4em;height:10.9em;position:relative}.scan-document__frame{pointer-events:none;position:absolute;inset:-.75em}.scan-document__frame i{border:.16em solid var(--frame);width:1.3em;height:1.3em;transition:border-color .2s ease-out;position:absolute}.scan-document[data-phase=done] .scan-document__frame i{border-color:var(--scan)}.scan-document__frame i[data-c=tl]{border-bottom:0;border-right:0;border-top-left-radius:.5em;top:0;left:0}.scan-document__frame i[data-c=tr]{border-bottom:0;border-left:0;border-top-right-radius:.5em;top:0;right:0}.scan-document__frame i[data-c=bl]{border-top:0;border-right:0;border-bottom-left-radius:.5em;bottom:0;left:0}.scan-document__frame i[data-c=br]{border-top:0;border-left:0;border-bottom-right-radius:.5em;bottom:0;right:0}.scan-document__shadow{background:radial-gradient(closest-side, var(--shadow), transparent);filter:blur(4px);pointer-events:none;border-radius:50%;height:1.4em;position:absolute;bottom:-.6em;left:8%;right:8%}.scan-document__page{transform-origin:50% 100%;transform-style:preserve-3d;position:absolute;inset:0}.scan-document__sheet{transform-style:preserve-3d;position:absolute;inset:0}.scan-document__face{backface-visibility:hidden;border-radius:.5em;position:absolute;inset:0;overflow:hidden}.scan-document__face[data-side=front]{background:var(--bg-paper);box-shadow:0 0 0 1px var(--paper-ring), 0 1px 2px #0000000a, 0 10px 28px -10px var(--shadow)}.scan-document__face[data-side=back]{background:repeating-linear-gradient(0deg, transparent 0 .9em, var(--back-line) .9em calc(.9em + 1px)), var(--back);box-shadow:0 0 0 1px var(--paper-ring);transform:rotateY(180deg)}.scan-document__fold{background:linear-gradient(135deg, var(--bg-paper) 50%, #00000014 50%);width:1.5em;height:1.5em;position:absolute;top:0;left:0}.scan-document__body{flex-direction:column;gap:.42em;padding:.95em .85em;display:flex;position:absolute;inset:0}.scan-document__head{align-items:center;gap:.45em;margin-bottom:.3em;display:flex}.scan-document__logo,.scan-document__title,.scan-document__line,.scan-document__img{background:var(--raw);border-radius:.25em;display:block}.scan-document__logo{border-radius:.25em;width:1.15em;height:1.15em}.scan-document__title{width:55%;height:.5em}.scan-document__line{border-radius:1em;height:.28em}.scan-document__img{background:var(--raw-img);border-radius:.375em;height:2.3em;margin:.2em 0}.scan-document__ink{background:var(--bg-paper);position:absolute;inset:0}.scan-document__body[data-ink] .scan-document__logo{background:var(--scan)}.scan-document__body[data-ink] .scan-document__title{background:var(--ink)}.scan-document__body[data-ink] .scan-document__line{background:color-mix(in oklab, var(--ink) 62%, transparent)}.scan-document__body[data-ink] .scan-document__img{background:var(--ink-img)}.scan-document__glow{pointer-events:none;border-radius:.5em;position:absolute;inset:0;overflow:hidden}.scan-document__trail{transform-origin:50% 100%;background:linear-gradient(to top, color-mix(in oklab, var(--scan) 34%, transparent), transparent);height:2.6em;margin-top:-2.6em;position:absolute;left:0;right:0}.scan-document__beam{background:var(--scan);height:.16em;box-shadow:0 0 .35em var(--scan), 0 0 1.2em color-mix(in oklab, var(--scan) 60%, transparent);pointer-events:none;border-radius:1em;margin-top:-.08em;position:absolute;left:-.45em;right:-.45em}.scan-document__badge{background:var(--scan);width:2em;height:2em;box-shadow:0 0 0 .2em var(--bg-paper), 0 6px 16px -4px color-mix(in oklab, var(--scan) 60%, transparent);border-radius:1000px;place-items:center;display:grid;position:absolute;top:-.7em;right:-.7em;transform:translateZ(1px)}.scan-document[data-theme=dark] .scan-document__badge{box-shadow:0 0 0 .2em #18181b,0 6px 16px -4px #0009}.scan-document__badge svg{fill:none;stroke:#fff;stroke-width:3px;stroke-linecap:round;stroke-linejoin:round;width:62%;height:62%}.scan-document__btn{background:var(--btn);width:8.5em;height:3em;color:var(--btn-fg);font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;border:0;border-radius:1000px;outline:none;justify-content:center;align-items:center;gap:.5em;padding:0 1em;font-size:1em;font-weight:700;line-height:1.375;transition:background-color .2s ease-out,color .2s ease-out;display:inline-flex;overflow:hidden}.scan-document__btn:focus-visible{box-shadow:0 0 0 2px var(--bg-paper), 0 0 0 4px var(--scan)}.scan-document:not([data-phase=scanning]) .scan-document__btn:active{background:var(--btn-pressed);transition-duration:0s}.scan-document[data-phase=scanning] .scan-document__btn{cursor:default}.scan-document[data-phase=done] .scan-document__btn{background:var(--scan);color:#fff}.scan-document[data-phase=done] .scan-document__btn:active{background:color-mix(in oklab, var(--scan) 86%, #000)}.scan-document__icon,.scan-document__label{display:inline-grid;position:relative}.scan-document__icon>span,.scan-document__label>span{white-space:nowrap;grid-area:1/1;place-items:center;display:inline-grid}.scan-document__icon{place-items:center;width:1.25em;height:1.25em}.scan-document__icon svg{width:1em;height:1em}.scan-document__spin{background:conic-gradient(#0000,currentColor);border-radius:1000px;width:1.25em;height:1.25em;animation:1s linear infinite scan-document-spin;display:block;-webkit-mask:radial-gradient(farthest-side,#0000 calc(100% - .25em),#000 calc(100% - .25em));mask:radial-gradient(farthest-side,#0000 calc(100% - .25em),#000 calc(100% - .25em))}@keyframes scan-document-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.scan-document__spin{animation-duration:2s}}
