.refund-status{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;border-radius:4px;font-size:11px;line-height:1.5;white-space:nowrap}
.refund-status-neutral{background:#f0f2f5;color:#7e8795}
.refund-status-pending{background:#edf2ff;color:#315fe8}
.refund-status-warning{background:#fff5e7;color:#9a6b20}
.refund-status-refunded{background:#f1edfc;color:#7050b5}
.refund-status-failed{background:#fff0f0;color:#bd4545}
.order-refund-amount{color:var(--muted);font-size:11px}
.order-refund-action .refund-status{flex-shrink:0}
dialog.refund-dialog{width:min(1040px,calc(100vw - 32px))}
dialog.refund-dialog[open]{display:flex;flex-direction:column;height:min(900px,calc(100dvh - 48px));max-height:calc(100dvh - 32px);overflow:hidden}
.refund-dialog .dialog-head,.refund-dialog .dialog-foot{flex-shrink:0}
.refund-dialog .dialog-body{display:flex;flex-direction:column;flex:1;min-height:0;max-height:none;padding:0;overflow:hidden}
.refund-dialog .dialog-foot{display:block;padding:14px 20px}
.refund-layout{display:flex;flex-direction:column;flex:1;min-height:0}
.refund-tabs{display:flex;flex-shrink:0;gap:8px;padding:12px 20px;border-bottom:1px solid var(--line);background:#f7f9fc}
.refund-tabs button{border-color:transparent;background:transparent;color:var(--muted);font-size:13px}
.refund-tabs button[aria-selected=true]{border-color:#d4dfff;background:#edf2ff;color:var(--blue)}
.refund-tabs button:focus-visible,.refund-panel:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.refund-panel{flex:1;min-height:0;padding:20px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.refund-footer-actions,.refund-exit-actions,.refund-main-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.refund-footer-actions{justify-content:space-between}
.refund-main-actions{justify-content:flex-end}
.refund-dialog .refund-message{margin:0 0 12px;max-height:20dvh;overflow:auto}
.refund-message[hidden]{display:none}
.refund-message[data-tone=progress]{color:var(--blue);background:#edf2ff}
.refund-message[data-tone=success]{color:#32724e;background:#edf8f1}
.refund-content{display:grid;gap:16px;min-width:0}
.refund-content p{margin:0;white-space:normal;overflow-wrap:anywhere}
.refund-overview{padding:20px;border:1px solid var(--line);border-radius:9px;background:#f7f9fc}
.refund-eyebrow{font-size:11px;color:var(--muted)}
.refund-overview h3{margin:5px 0 8px;font-size:22px;font-weight:650}
.refund-overview-heading p{font-size:12px;color:var(--muted);line-height:1.7}
.refund-overview-refunded{background:#f8f6ff;border-color:#e3daf7}
.refund-overview-refunded h3{color:#7050b5}
.refund-overview-pending{background:#f3f6ff;border-color:#d4dfff}
.refund-overview-pending h3{color:var(--blue)}
.refund-overview-warning{background:#fffaf1;border-color:#f1dfbd}
.refund-overview-warning h3{color:#9a6b20}
.refund-overview-failed{background:#fff6f5;border-color:#efd3d3}
.refund-overview-failed h3{color:var(--red)}
.refund-amounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:18px;padding-top:16px;border-top:1px solid #dce2eb}
.refund-amounts>div{min-width:0}
.refund-amounts span{display:block;font-size:11px;color:var(--muted)}
.refund-amounts strong{display:block;margin-top:5px;font-size:24px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.refund-section{padding:16px;border:1px solid var(--line);border-radius:8px;min-width:0}
.refund-section h3{margin:0 0 14px;font-size:13px;font-weight:650}
.refund-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;margin:0}
.refund-info-grid>div{min-width:0}
.refund-info-grid dt,.refund-record-text>span{font-size:11px;color:var(--muted)}
.refund-info-grid dd{margin:4px 0 0;font-size:12px;line-height:1.65;white-space:normal;overflow-wrap:anywhere}
.refund-channel-message,.refund-channel-guide,.refund-message{padding:12px 14px;border-radius:6px;background:#f4f6fa;font-size:12px;line-height:1.7}
.refund-message{color:#9a6b20;background:#fff5e7;white-space:pre-wrap}
.refund-channel-guide a{display:inline-block}
.refund-section-note{font-size:12px;color:var(--muted);line-height:1.7}
.refund-field{display:flex;align-items:center;gap:8px;margin:14px 0 6px;font-size:12px;font-weight:550}
.refund-field span{margin-left:auto;font-size:11px;font-weight:400;color:var(--muted)}
.refund-dialog textarea,.refund-dialog select,.refund-dialog input:not([type=checkbox]){display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0}
.refund-dialog .refund-confirm{display:flex;align-items:flex-start;gap:8px;margin:14px 0 0;font-size:12px;line-height:1.7}
.refund-confirm input{margin:4px 0 0;flex-shrink:0}
.refund-record-text{margin-top:14px}
.refund-record-text ul{padding-left:20px;margin:10px 0 0}
.refund-record-text li{margin:6px 0;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.refund-source-confirmation{margin-top:20px;padding-top:6px;border-top:1px solid var(--line)}
.refund-audit{display:grid;gap:14px;list-style:none;margin:0;padding:0}
.refund-audit li{padding:14px;background:#f7f9fc;border-radius:6px;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.refund-audit p{margin-top:5px;color:var(--muted)}
.refund-dialog [aria-invalid=true]{outline:2px solid #bd4545;outline-offset:2px}
.refund-record-text p,.refund-content .refund-note-text{margin-top:5px;font-size:12px;line-height:1.7;white-space:pre-wrap}
.refund-note-text{padding:12px;border-radius:6px;background:#f7f9fc}
.refund-note-text+button{margin-top:12px}
.refund-verification{padding:12px 16px;border:1px solid var(--line);border-radius:8px;font-size:12px}
.refund-verification summary{cursor:pointer;color:var(--muted)}
.refund-verification .refund-info-grid{margin-top:14px}
.refund-verification p{margin-top:10px;color:var(--muted)}
.refund-footnote{color:var(--muted);font-size:11px;line-height:1.7}
.refund-loading{color:var(--muted);font-size:12px}
@media(max-width:600px){dialog.refund-dialog{width:calc(100vw - 16px)}dialog.refund-dialog[open]{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.refund-dialog .dialog-head{padding:14px 16px}.refund-panel{padding:12px}.refund-tabs{gap:4px;padding:10px 12px}.refund-tabs button{padding:7px 8px;font-size:12px}.refund-dialog .dialog-foot{padding:12px}.refund-footer-actions{align-items:flex-start}.refund-main-actions{flex:1}.refund-overview{padding:16px}.refund-overview h3{font-size:20px}.refund-amounts{gap:12px}.refund-amounts strong{font-size:20px}.refund-info-grid{grid-template-columns:minmax(0,1fr);gap:12px}.refund-section{padding:14px}.refund-dialog .dialog-foot button{padding:6px 10px;font-size:12px}}
