#insurance-card-scan{background:#edf6f1;border:1px solid #82aa98;margin:16px 0;min-width:0}#insurance-card-scan summary{cursor:pointer;min-height:44px;padding:8px 0}.card-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.card-photo{min-width:0;padding:12px;background:white;border:1px solid #c6d7ce;border-radius:10px}#insurance-card-scan input[type=file]{max-width:100%;font-size:.9rem}#insurance-card-scan canvas[data-card-preview]{display:block;max-width:100%;max-height:420px;width:auto;height:auto;margin:12px auto;border:1px solid #789082;background:white}#insurance-card-scan canvas[hidden],#insurance-card-scan .card-photo-tools[hidden]{display:none!important}.card-photo-tools{display:flex;flex-wrap:wrap;gap:6px}.card-photo-tools button{min-height:44px;margin:0;font-size:13px;padding:8px 10px}.is-cropping{touch-action:none;cursor:crosshair;outline:3px solid #d69d22}.card-review-row{padding:8px 0}.card-review-row input:not([type=checkbox]){width:100%;box-sizing:border-box}#insurance-card-scan [data-card-status]{font-weight:600}.card-photo-dialog{box-sizing:border-box;width:min(96vw,1000px);max-height:95dvh;padding:12px;overflow:auto}.card-photo-dialog>button{position:sticky;top:0;display:block;margin:0 0 12px auto;min-height:44px}.card-photo-dialog canvas{display:block;max-width:100%;height:auto}.card-pattern-help{margin:16px 0}.card-help-front,.card-help-back{border:1px solid #86a6a0;border-radius:12px;background:#fff;padding:16px;margin:12px 0;font-size:12px}.card-help-back{background:#edf0ff}.card-help-front>div,.card-help-back>div{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:8px}.card-help-front>p{margin-top:36px}.card-help-front span,.card-help-back span{display:block;color:inherit;overflow-wrap:anywhere}@media(max-width:650px){.card-photo-grid{grid-template-columns:minmax(0,1fr)}.card-photo-tools button{flex:1 1 40%}}

#insurance-card-scan .card-review-attention{background:#fff5d6;border-left:4px solid #bd8a16;padding:12px;margin:8px 0;border-radius:6px}#insurance-card-scan .card-review-attention small{display:block;color:#59440a}

.card-crop-controls{padding:12px;background:#eef4f8;border-radius:8px;margin-top:12px}.card-crop-controls label{display:block}.card-crop-controls input[type=range]{width:100%;min-height:44px}.card-value-applied{background:#e8f6ed!important;border:2px solid #31815d!important}.card-save-photos{display:block;margin:16px 0}

.card-crop-dialog{box-sizing:border-box;width:min(96vw,760px);max-width:96vw;max-height:94dvh;padding:16px;overflow:auto;border:1px solid #739687;border-radius:14px}.card-crop-space{padding:48px;background:#dfe8e4;border-radius:12px;margin:12px 0}.card-crop-image{position:relative;max-width:100%;margin:auto}.card-crop-image>canvas{display:block;width:100%;height:auto}.card-crop-frame{position:absolute;box-sizing:border-box;border:3px solid #f3b62e;pointer-events:none}.card-crop-frame .card-crop-handle{position:absolute;width:44px;height:44px;min-height:44px;min-width:44px;padding:0;margin:0;border:2px solid white;border-radius:12px;background:#205c49;color:white;font-size:24px;pointer-events:auto;touch-action:none;user-select:none;cursor:move}.handle-nw{left:0;top:0;transform:translate(-100%,-100%)}.handle-ne{right:0;top:0;transform:translate(100%,-100%)}.handle-sw{left:0;bottom:0;transform:translate(-100%,100%)}.handle-se{right:0;bottom:0;transform:translate(100%,100%)}.card-crop-actions{position:sticky;bottom:0;display:flex;gap:8px;background:white;padding:12px 0}.card-crop-actions button{flex:1;min-height:48px}@media(max-width:450px){.card-crop-dialog{padding:10px}.card-crop-space{padding:48px}.card-crop-dialog h2{font-size:20px}}
