.scan-contact-step{font:14px/1.65 sans-serif}.scan-contact-step button,#scanJoinLinkBox button{min-height:44px;margin:6px 4px 0 0;padding:10px;border-radius:8px;border:1px solid #9f914b;background:#252824;color:#fff;cursor:pointer}.scan-contact-step{margin-top:16px;padding:14px;border:1px solid #8a803e;border-radius:10px;overflow-wrap:anywhere;text-align:left}.scan-contact-step label{display:block}.scan-contact-step input{width:auto}.scan-contact-step a{color:#e5c158}.scan-contact-step button:disabled{opacity:.45;cursor:default}.scan-all-fields{margin:12px 0 0;text-align:left}.scan-all-fields summary{min-height:44px;cursor:pointer}.scan-all-fields label{display:block;font-size:13px;margin:8px 0}.scan-all-fields input,.scan-all-fields textarea,#scanJoinLink{box-sizing:border-box;width:100%;background:#242528;color:#eee;border:1px solid #57594e;border-radius:6px;padding:10px;min-width:0;font:14px sans-serif}.scan-all-fields textarea{min-height:80px}.scan-contact-step[hidden],#scanJoinLinkBox[hidden]{display:none!important}#handoffChoices .handoff-actions{flex-wrap:wrap}#handoffChoices .handoff-action{flex:1 1 42%;min-width:0}#bcPreview{object-fit:contain!important}

#tempSuccessModal .ocr-success-badge{font-size:16px!important;white-space:normal!important;overflow:visible!important;padding:8px!important}.scan-edit-highlight{color:#80e2c1;font-weight:800}#handoffChoices .handoff-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}#handoffChoices .handoff-actions .handoff-action{width:100%;min-width:0;min-height:48px;margin:0;padding:10px 3px;font-size:clamp(12px,3.5vw,15px);line-height:1.4;white-space:nowrap;box-sizing:border-box}.handoff-save{background:#252824;color:#f6e5ac;border:1px solid #a18e53}
#tempSuccessModal .ocr-success-badge{color:#f5f3e9!important}.scan-edit-highlight{color:#80e2c1!important}

#tempSuccessModal .scan-all-fields + #handoffChoices{margin-top:0;padding-top:0;border-top:0}
.scan-transfer-choice{margin:12px 0;text-align:left;font-size:13px;line-height:1.55;color:#ddd}.scan-transfer-choice p{margin:6px 0}.scan-transfer-choice label{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;color:#f6e5ac}.scan-transfer-choice input{flex:0 0 18px;width:18px;height:18px;margin:0;accent-color:#e5c158}

.scan-storage-note{display:none;font-size:13px;line-height:1.55;color:#c9c9ce;text-align:left;margin:8px 0}
[data-scan-mode="storage"] .scan-storage-note{display:block}
#tempSuccessModal[data-scan-mode="storage"] #handoffKakaoBtn,#tempSuccessModal[data-scan-mode="storage"] #handoffQrBtn,#tempSuccessModal[data-scan-mode="storage"] #continueJoinBtn,#tempSuccessModal[data-scan-mode="storage"] #resQmailPreview{display:none!important}
#tempSuccessModal[data-scan-mode="storage"] .handoff-actions{grid-template-columns:minmax(0,1fr)}

.scan-back-add{width:100%;min-height:44px;margin:4px 0 10px;border:1px solid #66582f;border-radius:8px;background:#171714;color:#e5c158;font:inherit;font-size:14px;cursor:pointer}
.scan-back-add:disabled{opacity:.5;cursor:default}
.scan-duplex-review[hidden],.scan-back-add[hidden],.scan-duplex-note[hidden]{display:none!important}
.scan-duplex-review{margin:4px 0 10px;font-size:13px;line-height:1.5;text-align:left;color:#ddd}
.scan-duplex-images{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.scan-duplex-images figure{margin:0;min-width:0}.scan-duplex-images figcaption{margin-bottom:4px;color:#e5c158}
.scan-duplex-images img{display:block;width:100%;border-radius:6px}
.scan-duplex-review fieldset{min-width:0;margin:10px 0;padding:8px;border:1px solid #66582f;border-radius:8px}
.scan-duplex-review legend{color:#e5c158}.scan-duplex-review label{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer}
.scan-duplex-review input{flex:0 0 auto;width:18px;height:18px}.scan-duplex-review span{overflow-wrap:anywhere;white-space:pre-wrap}
.scan-duplex-note{font-size:13px;line-height:1.5;color:#e5c158}
.studio-scan-crop{box-sizing:border-box;width:min(640px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;margin:auto;padding:20px;background:#191b20;color:#eceef3;border:1px solid #776c50;border-radius:16px;color-scheme:dark}
.studio-scan-crop::backdrop{background:#000c}
.studio-scan-crop .studio-scan-header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.studio-scan-crop h2{font-size:20px;margin:0}
.studio-scan-crop .studio-muted{font-size:12px;line-height:1.6;color:#c9c9ce}
.studio-scan-crop .scan-crop-stage{position:relative;margin:24px 16px}
.studio-scan-crop .scan-crop-stage:has(canvas){width:fit-content;max-width:calc(100% - 32px);margin:24px auto}
.studio-scan-crop .scan-crop-stage canvas{display:block;width:auto;max-width:100%;height:auto;max-height:48dvh;object-fit:contain}
.studio-scan-crop .scan-crop-point{position:absolute;transform:translate(-50%,-50%);width:40px;height:40px;min-height:40px;padding:0;border-radius:50%;background:#ffcf60;color:#181818;border:2px solid #fff;font-weight:700;touch-action:none;cursor:move;z-index:1}
.studio-scan-crop .studio-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.studio-scan-crop button,.studio-scan-crop select{min-height:44px;padding:8px 12px;border-radius:8px;border:1px solid #525761;background:#24262d;color:#eceef3;cursor:pointer;font-family:inherit;font-size:13px}
.studio-scan-crop button.studio-primary{background:#e4c679;border-color:#e4c679;color:#201b0e;font-weight:700}
.studio-scan-crop label{display:flex;gap:8px;align-items:center;font-size:12px}
.studio-scan-crop #scanCropResult{display:block;max-width:100%;max-height:40dvh;margin:16px auto;object-fit:contain}
.studio-scan-crop [hidden]{display:none!important}
.studio-scan-crop #scanCropError{color:#ffbe98;font-size:12px}
@media(max-width:420px){.studio-scan-crop{padding:14px}.studio-scan-crop .studio-actions button{flex:1 1 42%;font-size:12px}.studio-scan-crop .scan-crop-point{min-width:40px;min-height:40px}}
