.order-status-dialog {
    box-sizing: border-box;
    width: min(520px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    overflow: auto;
    padding: 26px;
    border: 1px solid #cbd5e1;
    border-radius: 24px;
    background: #fff;
    color: #111827;
    box-shadow: 0 25px 80px #0005;
    animation: order-dialog-in .16s ease-out;
}
.order-status-dialog::backdrop { background: #02061799; backdrop-filter: blur(5px); }
.order-status-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.order-status-dialog-head h2 { margin: 0; font-size: 23px; line-height: 1.25; letter-spacing: -.02em; }
.order-status-dialog-close { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 1px solid #cbd5e1; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }
.order-status-dialog-close .atm-icon { width: 20px; height: 20px; }
.order-status-dialog-body { margin-top: 20px; }
.order-status-dialog form { display: grid; gap: 16px; margin: 0; }
.order-status-dialog label { display: grid; gap: 8px; margin: 0; line-height: 1.4; }
.order-status-dialog input, .order-status-dialog select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; margin: 0; font: inherit; }
.order-status-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.order-status-dialog .button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; margin: 0; line-height: 1.25; }
.order-status-dialog [hidden] { display: none !important; }
.order-status-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.order-status-choices button { min-height: 48px; padding: 12px; border: 1px solid #bfdbfe; border-radius: 12px; background: #eff6ff; color: #1d4ed8; font: inherit; font-weight: 700; line-height: 1.3; cursor: pointer; transition: background .15s; }
.order-status-choices button:hover { background: #dbeafe; }
.order-status-dialog button:focus-visible, .order-status-dialog select:focus-visible, .order-status-dialog input:focus-visible { outline: 2px solid #60a5fa; outline-offset: 3px; }
.theme-dark .order-status-dialog { background: #111827; color: #f1f5f9; border-color: #334155; }
.theme-dark .order-status-dialog-close { border-color: #334155; }
.theme-dark .order-status-choices button { background: #2563eb2e; color: #bfdbfe; border-color: #60a5fa59; }
.theme-dark .order-status-choices button:hover { background: #2563eb4d; }
@keyframes order-dialog-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) { .order-status-dialog { padding: 20px; } .order-status-dialog-head h2 { font-size: 21px; } }
@media (prefers-reduced-motion: reduce) { .order-status-dialog { animation: none; } .order-status-choices button { transition: none; } }
