.input-methods{display:flex;align-items:stretch;gap:12px;flex-wrap:wrap}.input-methods .upload-action{margin:0}.capture-action{display:flex;justify-content:center;align-items:center;font-family:inherit;cursor:pointer}.capture-action svg{height:22px;width:22px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none}.capture-explanation{font-size:16px;line-height:1.55;color:#c4d6d2;max-width:470px;margin:13px 0 7px}#capture-dialog{padding:0;border:1px solid #789c9a70;border-radius:15px;width:min(1060px,96vw);max-width:96vw;height:92dvh;max-height:92dvh;background:#101e22;color:#edf7f3;overflow:hidden}#capture-dialog[open]{display:flex;flex-direction:column}#capture-dialog::backdrop{background:#02090edd;backdrop-filter:blur(8px)}.capture-bar{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:17px 22px;background:#14292e;border-bottom:1px solid #a2ded32a}.capture-bar strong{font-size:21px}.capture-bar p{font-size:15px;line-height:1.4;color:#c1d6d0;margin:4px 0 0}.capture-bar button{font:inherit;font-size:16px;color:#e8f9f3;border:1px solid #94caba66;border-radius:9px;background:#203b41;padding:10px 14px;cursor:pointer;white-space:nowrap}.capture-bar button span{margin-inline-start:10px;font-size:22px}#capture-frame{width:100%;height:100%;flex:1;border:0;background:#101e1b;min-height:0}#capture-connection{padding:25px;text-align:center;color:#c7e8dc}#capture-ready{display:flex;gap:15px;align-items:center;margin:17px 0;padding:14px 16px;border:1px solid #a9e5ce50;border-radius:12px;background:#122c30}#capture-ready[hidden]{display:none}#capture-thumb{height:90px;width:66px;object-fit:contain;background:white;border-radius:5px}#capture-ready strong{font-size:18px}#capture-ready p{font-size:16px;line-height:1.4;margin:6px 0;color:#c4d8d0}#capture-ready button{font-size:16px;padding:0}.local-scanner-runtime [data-format=mp3],.local-scanner-runtime [data-format=mscz]{display:none}.local-scanner-runtime .mode-choice:has(input:disabled){opacity:.55;cursor:default}
@media(max-width:600px){.input-methods{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-width:440px}.input-methods .shine-button{min-width:0;width:100%;padding:12px 10px;gap:8px;font-size:16px}.input-methods .upload-action{width:auto;min-width:0}.input-methods .button-arrow{display:none}.capture-explanation{font-size:16px;max-width:360px}#capture-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;border:0}.capture-bar{padding:12px 14px;gap:12px}.capture-bar strong{font-size:19px}.capture-bar p{font-size:14px}.capture-bar button{font-size:14px;padding:9px}.capture-bar button span{margin-inline-start:4px}#capture-ready{padding:12px;gap:12px}}

.source-actions{display:flex;align-items:center;gap:20px;justify-content:space-between}.source-actions .back{margin:0}.source-actions button{font-size:16px}

.local-scanner-runtime .outputs bdi:not(:first-of-type){display:none}

/* Camera capture is offered on phones/tablets; file upload remains on desktop. */
#open-capture[hidden],#capture-another[hidden],.capture-explanation[hidden]{display:none}
html:not(.capture-device) .input-methods{grid-template-columns:1fr}
#capture-another{display:inline-flex;align-items:center;gap:8px}
#capture-another svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none}
