.redeem-grid { grid-template-columns: minmax(300px, 370px) minmax(0, 1fr); }
.batch-concurrency { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.batch-concurrency .field-label { margin: 0; }
.batch-concurrency input { width: 92px; min-height: 40px; text-align: center; }
.batch-concurrency input, #downloadPackaging { padding: 9px 10px; border: 1px solid #374459; border-radius: 7px; color: var(--ink); background: #0a1019; font-size: 12px; }
.batch-concurrency input:focus-visible, #downloadPackaging:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#downloadPackaging { width: 100%; min-height: 42px; margin-top: 8px; }
.redeem-form > .action-row { grid-template-columns: 1fr 1.3fr 38px; }
.redeem-form > .action-row > button { font-size: 11px; }
.batch-progress { padding: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.batch-progress[hidden] { display: none; }
.result-selection { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 12px; }
.result-selection label, .result-choice { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.result-selection input, .result-choice input { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--accent); }
#selectedCount { color: var(--muted); font-variant-numeric: tabular-nums; }
.result-choice { margin-bottom: 10px; color: var(--muted); font-size: 11px; }
.redeem-form .reauthorize-button { width: 100%; gap: 10px; border-color: #46534e; color: var(--accent); }
.reauthorize-code { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid currentColor; border-radius: 50%; font: 800 8px/1 Consolas, monospace; }
.authorization-summary { padding: 12px 14px; margin-bottom: 14px; border: 1px solid #354e46; border-radius: 9px; background: var(--accent-soft); color: var(--ink); font-size: 13px; line-height: 1.6; }
.authorization-summary[hidden] { display: none; }
.redeem-results th:nth-child(1), .redeem-results td:nth-child(1) { width: 32%; }
.redeem-results th:nth-child(2), .redeem-results td:nth-child(2) { width: 38%; }
.redeem-results th:nth-child(3), .redeem-results td:nth-child(3) { width: 30%; }
.redeem-results td { vertical-align: top; }
.redeem-results .file-name { margin-bottom: 8px; font-weight: 700; }
.redeem-results .code-text { margin-bottom: 10px; color: var(--muted); font-weight: 400; }
.redeem-results .cell-note { display: block; color: var(--muted); font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.redeem-results .quota-status, .redeem-results .authorization-state { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.redeem-results .state-success { color: var(--ok); }
.redeem-results .state-failed { color: var(--danger); }
.redeem-results .state-pending { color: var(--warn); }
.quota-window + .quota-window { margin-top: 12px; }
.quota-window-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; }
.quota-window-head strong { color: var(--ink); font-size: 12px; }
.quota-track { display: block; appearance: none; width: 100%; height: 5px; margin: 6px 0; border: 0; border-radius: 4px; background: #303a43; }
.quota-track::-webkit-meter-bar { height: 5px; border: 0; border-radius: 4px; background: #303a43; }
.quota-track::-webkit-meter-optimum-value { background: var(--accent); }
.quota-track::-moz-meter-bar { background: var(--accent); }
.quota-stale { opacity: .65; }
.quota-stale .quota-track::-webkit-meter-optimum-value { background: #9aabbb; }
.quota-stale .quota-track::-moz-meter-bar { background: #9aabbb; }
.redeem-results .row-authorize { min-height: 34px; min-width: 0; margin-top: 10px; padding: 6px 9px; font-size: 11px; color: var(--accent); white-space: normal; }
.redeem-results .row-authorize:disabled { color: var(--muted); }
@media (max-width: 1180px) and (min-width: 1001px) {
  .redeem-grid { grid-template-columns: minmax(280px, 310px) minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .redeem-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .redeem-results table, .redeem-results tbody, .redeem-results tr, .redeem-results td { display: block; width: 100% !important; }
  .redeem-results thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .redeem-results tr:not(.empty-row) { padding: 16px; border-bottom: 1px solid var(--line); }
  .redeem-results tr:last-child { border-bottom: 0; }
  .redeem-results td { padding: 0; border-bottom: 0; font-size: 12px; }
  .redeem-results td + td { margin-top: 18px; }
  .redeem-results td[data-label]::before { display: block; margin-bottom: 8px; color: var(--muted); content: attr(data-label); font-size: 10px; letter-spacing: 1px; }
  .redeem-results .code-text, .redeem-results .file-name { font-size: 12px; }
  .redeem-results .row-authorize { min-height: 40px; width: 100%; }
  .redeem-results .empty-row td { display: grid; align-items: center; min-height: 160px; height: auto; padding: 24px; }
}
