/* Inventory follows the account/rally token system; bounded lists keep large bags compact. */
.inventory-tools { display:flex; gap:8px; align-items:center; margin-bottom:12px; flex-wrap:wrap; }
.inventory-tools input[type=search] { flex:1; min-width:140px; max-width:360px; }
.inventory-tools input, .inventory-tools select, .chest-table input[type=number] { font:inherit; color:var(--text); background:var(--bg); border:1px solid var(--border); border-radius:7px; padding:6px 8px; min-height:32px; }
.inventory-pager { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:12px; flex-wrap:wrap; font-size:12px; }
.inventory-pager .pager { display:flex; align-items:center; gap:10px; }
.chest-workspace > .card-head { margin-bottom:12px; flex-wrap:wrap; }
.chest-workspace .card-head .subtabs { margin:0; }
.chest-table-wrap { max-height:390px; overflow:auto; box-shadow:none; }
.chest-table { min-width:720px; table-layout:fixed; }
.chest-table th:first-child { width:34px; }
.chest-table th:nth-child(2) { width:28%; }
.chest-table th:nth-child(3) { width:70px; }
.chest-table th:nth-child(4) { width:160px; }
.chest-table th:nth-child(5) { width:85px; }
.chest-table th { position:sticky; top:0; background:var(--surface); z-index:1; }
.chest-table td { vertical-align:middle; }
.chest-table .selected { background:var(--surface-2); }
.chest-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:500; }
.chest-amount { display:flex; gap:8px; align-items:center; }
.chest-amount input[type=number] { width:78px; }
.chest-amount input[type=number]:disabled { display:none; }
.chest-amount .check { margin:0; gap:4px; font-size:12px; white-space:nowrap; }
.chest-table .chest-keep { width:72px; }
.chest-table .chest-choice { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chest-footer { position:sticky; bottom:-20px; z-index:2; background:var(--surface); border-top:1px solid var(--border); padding:12px 0; margin-top:12px; }
.chest-explanation { color:var(--muted); margin:12px 0 !important; max-width:70ch; }
.chest-progress-summary { display:flex; justify-content:space-between; align-items:center; gap:12px; border:1px solid var(--border); border-radius:10px; padding:10px 12px; margin-bottom:12px; background:var(--surface-2); }
.chest-progress-summary > div { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.chest-progress-summary span { color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; }
.chest-review { width:min(850px,100%); display:flex; flex-direction:column; gap:12px; max-height:calc(100dvh - 40px); }
.chest-review .modal-head, .chest-reward-dialog .modal-head { margin:0; }
.chest-review p, .chest-reward-dialog p { margin:0; }
.chest-review-body { max-height:360px; overflow:auto; min-height:0; }
.chest-review-body td { overflow-wrap:anywhere; }
.chest-reward-dialog { width:min(580px,100%); display:flex; flex-direction:column; gap:12px; max-height:calc(100dvh - 40px); }
.chest-reward-list { overflow:auto; min-height:0; }
.chest-reward-option { display:flex; justify-content:space-between; align-items:center; gap:12px; width:100%; text-align:left; background:transparent; border:0; border-bottom:1px solid var(--border); color:var(--text); font:inherit; padding:11px 8px; cursor:pointer; transition:background-color 120ms ease-out; }
.chest-reward-option:hover, .chest-reward-option:focus-visible { background:var(--surface-2); }
.chest-reward-option b { white-space:nowrap; font-variant-numeric:tabular-nums; }
.chest-workspace input:focus-visible, .chest-workspace button:focus-visible, .chest-reward-dialog button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:700px) {
    .inventory-pager, .chest-progress-summary { gap:8px; }
    .chest-workspace > .card-head .chip { font-size:11px; }
    .chest-review, .chest-reward-dialog { max-height:calc(100dvh - 16px); }
    .chest-review-body { max-height:45dvh; }
    .chest-review-body table { min-width:480px; }
    .chest-footer .btn { flex:1; }
    .chest-footer { bottom:-12px; }
    .chest-table-wrap { max-height:30dvh; }
}
@media(prefers-reduced-motion:reduce) { .chest-reward-option { transition:none; } }

/* Compact collection controls and reviewed batch actions share the same customer UI. */
.fleet-selection { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:0 0 10px; font-size:12px; }
.fleet-selection .linklike { padding:3px 8px; color:var(--accent); }
.fleet-pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding-top:12px; font-size:12px; }
.fleet-pagination .row { align-items:center; }
.fleet-pagination label { display:flex; align-items:center; gap:8px; }
.fleet-pagination select { color:var(--text); background:var(--bg); border:1px solid var(--border); border-radius:7px; padding:6px 8px; font:inherit; }
.page-number { font-variant-numeric:tabular-nums; }
.bulk-actions { max-width:800px; display:flex; flex-direction:column; gap:14px; max-height:calc(100dvh - 32px); }
.bulk-actions .modal-head, .bulk-actions .subtabs { margin:0; flex:none; }
.bulk-actions-body { overflow:auto; min-height:0; }
.bulk-actions-body .table-wrap { max-height:340px; overflow:auto; }
.bulk-actions-body p { margin:0; }
.bulk-actions-body .field-label { display:flex; flex-direction:column; gap:6px; }
.bulk-actions-body input[type=text], .bulk-actions-body select, .bulk-actions-body textarea { font:inherit; color:var(--text); background:var(--bg); border:1px solid var(--border); border-radius:8px; padding:8px 10px; width:100%; }
.bulk-actions-body select { max-width:220px; }
.bulk-actions-body .check { margin-top:12px; }
.bulk-actions footer { flex:none; border-top:1px solid var(--border); padding-top:12px; }
@media(max-width:700px) { .bulk-actions { max-height:calc(100dvh - 16px); } .fleet-pagination > .row { width:100%; justify-content:space-between; } }
