.result-image-overlay{position:fixed;inset:0;z-index:70;display:flex;align-items:center;justify-content:center;padding:12px;color:#10233f}
.result-image-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.38);backdrop-filter:blur(5px)}
.result-image-dialog{position:relative;display:flex;flex-direction:column;width:100%;max-width:520px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);background:#fff;border:1px solid #e0e7ef;border-radius:24px;box-shadow:0 24px 70px #0f172a26;outline:none;overflow:hidden}
.result-image-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px 14px;flex-shrink:0}
.result-image-header h3{font-size:18px;font-weight:700;margin:0}
.result-image-header button{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;font-size:28px;line-height:1;color:#94a3b8}
.result-image-header button:hover{background:#f1f5f9;color:#334155}
.result-image-body{min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 22px}
[data-result-card]{width:100%;min-width:0}
[data-result-card] .flex-1{min-width:0}
[data-result-card] .badge{box-shadow:none;border:1px solid var(--tw-ring-color);padding:1px 9px}
[data-result-card]>div>div>div:first-child>div:first-child{min-width:0}
.result-image-preview{display:block;width:100%;height:auto;-webkit-touch-callout:default;user-select:auto;-webkit-user-select:auto}
.result-image-hint{text-align:center;background:#f4f8ff;border-radius:12px;padding:12px;font-size:13px;line-height:1.7;color:#64748b;margin-top:14px}
.result-image-hint p{margin:0}
.result-image-hint a{display:inline-block;margin-top:4px;color:#2563eb;text-decoration:underline;text-underline-offset:3px}
.result-image-error,.result-image-notice{font-size:13px;line-height:1.6;margin:12px 0 0;text-align:center;color:#64748b}
.result-image-error{color:#b91c1c}
.result-image-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-shrink:0;padding:18px 22px 20px}
.result-image-actions button{min-height:44px;padding:10px 16px;font-size:14px;border-radius:12px;white-space:nowrap}
.result-image-save{background:#2563eb;color:#fff;font-weight:600;box-shadow:0 5px 14px #2563eb25}
.result-image-save:hover{background:#1d4ed8}
.result-image-save:disabled{cursor:wait;opacity:.6}
.result-image-dialog button:focus-visible,.result-image-dialog a:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
@media(max-width:480px){
 .result-image-header{padding:16px 14px 12px}.result-image-body{padding:0 14px}
 .result-image-actions{display:grid;grid-template-columns:1fr 1fr;padding:14px;gap:8px}
 .result-image-save{grid-column:1/-1}
 [data-result-card]>div>div{padding:16px}
 [data-result-card]>div>div>div:first-child{flex-wrap:wrap;gap:10px}
 [data-result-card] .tracking-\[0\.22em\]{font-size:10px;letter-spacing:.18em}
 [data-result-card] h3{font-size:22px}
 [data-result-card] .w-20{width:64px}
}

.result-image-preparing{inset:auto;left:-100000px;top:0;width:100vw;height:100vh;height:100dvh;pointer-events:none;opacity:0;z-index:-1}
