.batch-nav{height:38px;padding:0 14px;border:1px solid #d7d8ff;border-radius:8px;background:#f1f1ff;color:#4338ca;font-size:14px;font-weight:850;cursor:pointer;white-space:nowrap}
.batch-overlay[hidden]{display:none}
.batch-overlay{position:fixed;inset:0;z-index:90;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(17,24,39,.48);backdrop-filter:blur(6px)}
.batch-dialog{width:min(1280px,100%);max-height:calc(100dvh - 32px);display:flex;flex-direction:column;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow);overflow:hidden}
.batch-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line)}
.batch-header h2{font-size:20px}.batch-header p{font-size:12px;color:var(--muted);margin-top:4px}
.batch-close{border:1px solid var(--line);background:#fff;border-radius:8px;width:34px;height:34px;font-size:23px;cursor:pointer;flex-shrink:0}
.batch-close:disabled{opacity:.4;cursor:not-allowed}
.batch-scroll{overflow:auto;overscroll-behavior:contain;padding:14px 20px;min-height:0;flex:1}
.batch-setup{display:grid;grid-template-columns:minmax(0,1fr) 155px;gap:12px;align-items:end;margin-bottom:12px}
.batch-setup label{display:block;font-size:13px;font-weight:800;margin-bottom:6px}
.batch-keys{display:block;width:100%;height:78px;padding:9px 11px;border:1px solid #dfe3ed;border-radius:8px;resize:vertical;font:12px/1.5 ui-monospace,Consolas,monospace;outline:none}
.batch-setup .btn{font-size:13px;padding:0 12px;width:100%;height:38px}
.batch-notice{font-size:12px;line-height:1.6;color:#6b7280;margin-bottom:10px;overflow-wrap:anywhere}
.batch-notice.error{color:#b91c1c}.batch-notice.ok{color:#047857}
.batch-rows{display:grid;gap:6px}
.batch-row{display:grid;grid-template-columns:24px 180px minmax(0,1fr) 210px;align-items:center;gap:10px;padding:7px 10px;border:1px solid #e5e7eb;border-radius:8px;background:#fafbff;min-width:0}
.batch-row-number{font-size:12px;font-weight:850;color:#6b7280;text-align:center}
.batch-key-meta{min-width:0}.batch-row-key{font:11px/1.5 ui-monospace,Consolas,monospace;overflow-wrap:anywhere;font-weight:700}
.batch-product{font-size:11px;color:#666;margin-top:2px}.batch-key-error{color:#b91c1c}
.batch-session{display:block;width:100%;min-width:0;height:52px;min-height:52px;resize:vertical;padding:7px 9px;border:1px solid #d9ddea;border-radius:6px;background:#fff;font:11px/1.45 ui-monospace,Consolas,monospace;outline:none}
.batch-session:focus,.batch-keys:focus{border-color:var(--primary);box-shadow:0 0 0 2px rgba(91,92,246,.1)}
.batch-status{min-width:0;font-size:11px;line-height:1.45;overflow-wrap:anywhere}
.batch-email{font-size:12px;font-weight:750;overflow-wrap:anywhere}.batch-account{color:#64748b;margin-top:2px}.batch-account.paid{color:#b45309}.batch-account.error{color:#b91c1c}
.batch-result{margin-top:3px;font-weight:800;color:#64748b}.batch-result.success{color:#047857}.batch-result.failed,.batch-result.unknown{color:#b91c1c}.batch-result.recharging{color:#4f46e5}
.batch-stage{display:flex;gap:3px;margin-top:4px}.batch-stage i{height:3px;flex:1;border-radius:3px;background:#dfe3ed}.batch-stage i.complete{background:#5b5cf6}
.batch-row[data-state="recharging"] .batch-stage i:last-child{animation:batch-pulse .8s ease-in-out infinite alternate;background:#a5b4fc}
.batch-row[data-state="success"]{border-color:#a7e3cf;background:#f4fdf8}.batch-row[data-state="success"] .batch-stage i{background:#10b981}
.batch-footer{padding:12px 20px;border-top:1px solid var(--line);background:#fff;display:flex;flex-direction:column;gap:9px}
.batch-summary{font-size:13px;font-weight:800;overflow-wrap:anywhere}.batch-footer-line{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.batch-consent{display:flex;align-items:flex-start;gap:7px;font-size:12px;color:#475569;line-height:1.5;flex:1;min-width:180px}.batch-consent input{margin-top:3px;accent-color:var(--primary)}
.batch-controls{display:flex;gap:8px}.batch-controls .btn{height:38px;font-size:13px;padding:0 16px}
.batch-empty{font-size:13px;text-align:center;color:var(--muted);padding:30px;border:1px dashed #dfe3ed;border-radius:8px}
@keyframes batch-pulse{to{opacity:.3}}
@media(max-width:900px){.batch-row{grid-template-columns:20px 145px minmax(0,1fr) 160px;gap:7px;padding:7px}.batch-row-key{font-size:10px}}
@media(max-width:640px){.batch-overlay{padding:6px}.batch-dialog{max-height:calc(100dvh - 12px);border-radius:12px}.batch-header{padding:12px}.batch-header h2{font-size:18px}.batch-scroll{padding:10px}.batch-setup{grid-template-columns:minmax(0,1fr) 102px;gap:8px}.batch-setup .btn{font-size:12px;padding:0 6px}.batch-row{grid-template-columns:18px minmax(0,1fr) 125px;gap:6px}.batch-key-meta{grid-column:2 / 4;display:flex;align-items:center;gap:6px;flex-wrap:wrap}.batch-row-number{grid-column:1;grid-row:1 / 3;align-self:start;margin-top:2px}.batch-session{grid-column:2;grid-row:2;height:58px}.batch-status{grid-column:3;grid-row:2;font-size:10px}.batch-email{font-size:10px}.batch-product{margin:0;font-size:10px}.batch-footer{padding:10px}.batch-footer-line{gap:8px}.batch-controls{width:100%;justify-content:flex-end}.batch-summary{font-size:12px}.batch-nav{height:34px;padding:0 10px;font-size:12px}.nav-links{gap:6px}.batch-consent{font-size:11px}}
@media(prefers-reduced-motion:reduce){.batch-row[data-state="recharging"] .batch-stage i:last-child{animation:none}}
