.queue-actions {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 15px 17px;
  border-bottom: 1px solid #e3eaf3;
  background: #f8fbff;
}
.queue-actions > div { display: flex; flex-direction: column; gap: 4px; }
.queue-actions b { color: #21344f; }
.queue-actions b span { color: #0f8a63; }
.queue-actions > div > span { color: #6c7c91; font-size: 12px; }
.queue-link { padding: 0; border: 0; background: transparent; color: #1769e0; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.queue-link span { color: inherit; }
.queue-link:focus-visible { outline: 3px solid #1769e0; outline-offset: 3px; border-radius: 3px; }
.button.queue { border-color: #0f8a63; background: #0f8a63; color: #fff; }
.button.export { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border-color: #1769e0; color: #1769e0; }
.queue-actions .button[hidden] { display: none; }
.tracking-actions {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 15px 17px;
  border-bottom: 1px solid #e3eaf3;
  background: #f4fbf8;
}
.tracking-actions > div { display: flex; flex-direction: column; gap: 4px; }
.tracking-actions b { color: #185946; }
.tracking-actions span { color: #6c7c91; font-size: 12px; }
.action-message { padding: 12px 18px; border-bottom: 1px solid; font-size: 13px; font-weight: 700; }
.action-message.success { color: #087454; background: #eafaf4; border-color: #bce8d8; }
.action-message.warning { color: #8c5a00; background: #fff7e7; border-color: #f2d49b; }
.action-message.error { color: #b42d3c; background: #fff0f2; border-color: #f3c1c8; }
.select-all-bar { padding: 10px 13px 6px; background: #fff; }
.select-all-bar[hidden] { display: none; }
.select-all-bar .button { min-width: 100px; border-color: #1769e0; color: #1769e0; }
.billiards-row { background: #fff5e8; }
.billiards-row:hover { background: #ffedcf; }
.billiards-row .product { color: #854700; }
.billiards-tag { display: block; width: fit-content; margin-top: 5px; padding: 3px 7px; border: 1px solid #e9b774; border-radius: 7px; color: #854700; background: #fff; font-size: 12px; font-weight: 800; }
.classification-actions { display: flex; align-items: center; gap: 12px; padding: 0 22px 18px; }
.classification-actions span { color: #6c7c91; font-size: 13px; }
@media (max-width: 900px) { .queue-actions,.tracking-actions { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .billiards-row { border-color: #e9b774; } .classification-actions { align-items: stretch; flex-direction: column; } .select-all-bar .button { width: auto; } }
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat.teal strong { color: #12828c; }
.stat.cyan strong { color: #087fa7; }
.badge.teal { color: #08737d; background: #e8f8fa; border-color: #a9dfe5; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .stat { padding: 14px 12px; } .stat strong { font-size: 22px; } }
.queue-link.failure-link { color: #b42d3c; }
.queue-link.failure-link span { color: inherit; }
.failure-note { color: #b42d3c; font-weight: 700; max-width: 290px; overflow-wrap: anywhere; }
.action-message { white-space: pre-line; overflow-wrap: anywhere; }
.tracking-issues { padding: 17px; border-bottom: 1px solid #edb1b8; background: #fff5f5; }
.tracking-issues[hidden] { display: none; }
.tracking-issues h2 { margin: 0 0 7px; color: #ae2635; font-size: 18px; }
.tracking-issues h2 span { color: inherit; }
.tracking-issues > p { margin: 0 0 14px; color: #5f2831; font-size: 14px; line-height: 1.5; }
#issueList { display: grid; gap: 10px; }
.issue-card { padding: 15px; border: 1px solid #e9a7b0; border-left: 5px solid #c42c40; border-radius: 12px; background: white; }
.issue-card > div { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; }
.issue-card strong { color: #23364e; }
.issue-reason { color: #a21e30; font-weight: 750; }
.issue-card p { margin: 8px 0; overflow-wrap: anywhere; color: #3d4f63; line-height: 1.5; }
.issue-card label { display: block; margin: 8px 0; font-weight: 700; }
.issue-card select,.issue-card input { display: block; width: 100%; margin: 7px 0; padding: 11px; border: 1px solid #bdc9d6; border-radius: 8px; font: inherit; background: white; }
.issue-card button { margin-top: 9px; }
.tracking-issue-row { background: #fff0f1; }
.tracking-issue-row:hover { background: #ffe2e5; }
@media (max-width: 900px) { .tracking-issue-row { border-color: #c42c40; } }
.sync-warning { padding: 14px 18px; border-bottom: 1px solid #e9bc6f; background: #fff2d9; color: #704100; font-size: 14px; font-weight: 700; line-height: 1.55; }
.sync-warning[hidden] { display: none; }
.sync-meta.stale { border-color: #e9bc6f; background: #fff2d9; color: #704100; }
.sync-meta.stale strong { color: #9b4c00; }
