:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #20242a;
  background: #f5f7fa;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 860px; background: #f5f7fa; }

.shell { max-width: 1500px; margin: 0 auto; padding: 28px 32px 36px; }

.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.eyebrow { margin: 0 0 6px; color: #69717c; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-size: 28px; line-height: 1.2; }
.subtitle { margin: 7px 0 0; color: #69717c; }

.summary { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.summary span { padding: 9px 12px; border: 1px solid #dce1e7; border-radius: 10px; background: #fff; color: #58616c; font-size: 13px; }
.summary .bad { color: #a12525; border-color: #f0c4c4; background: #fff7f7; }

.notice { margin: 0 0 18px; padding: 13px 16px; border: 1px solid #f0b9b9; border-radius: 10px; background: #fff3f3; color: #8f2020; font-size: 14px; white-space: pre-wrap; }
.notice.success { border-color: #a9d7b8; background: #f1fbf4; color: #176333; }
.notice.info { border-color: #b9d3ef; background: #f1f7fd; color: #245b8f; }

.toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: 18px; border: 1px solid #dce1e7; border-radius: 12px; background: #fff; }
.field { display: grid; gap: 7px; min-width: 360px; font-size: 14px; font-weight: 600; }
.field b { color: #c43131; }
select { width: 100%; height: 42px; border: 1px solid #bcc4ce; border-radius: 8px; padding: 0 38px 0 12px; background: #fff; color: #20242a; font: inherit; }
select:focus { outline: 3px solid #d9ebff; border-color: #3b82d0; }

.primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 180px; height: 44px; padding: 0 20px; border: 0; border-radius: 9px; background: #1676d2; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.primary:hover:not(:disabled) { background: #0f67bb; }
.primary:disabled { background: #aab4bf; cursor: not-allowed; }
.spinner { width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.table-card { overflow: hidden; border: 1px solid #dce1e7; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(20, 33, 48, .04); }
.table-scroll { overflow: auto; max-height: calc(100vh - 285px); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead { position: sticky; top: 0; z-index: 1; background: #f0f3f6; }
th { padding: 12px 10px; border-bottom: 1px solid #ccd3dc; color: #505965; text-align: left; font-size: 12px; font-weight: 700; white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid #e8ebef; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tr.invalid { background: #fff0f0; color: #8c2626; }
tr.invalid:hover { background: #ffe7e7; }
tr.ready:hover { background: #f5faff; }
tr.completed { background: #f4faf6; color: #42604c; }
.center { text-align: center; }
.number { text-align: right; font-variant-numeric: tabular-nums; }
.name { min-width: 210px; font-weight: 600; }
code { padding: 2px 5px; border-radius: 4px; background: rgba(80, 90, 105, .08); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.barcodes { display: grid; gap: 4px; min-width: 190px; }
.barcode { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; white-space: nowrap; }
.barcode.gtin { color: #165f37; }
.muted { color: #8b939d; }
.status-icon { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; margin-right: 6px; border-radius: 50%; background: rgba(50, 70, 90, .1); font-weight: 800; }
.invalid .status-icon { background: #d94c4c; color: #fff; }
.ready .status-icon { background: #23864c; color: #fff; }
.loading { padding: 42px; color: #747d88; text-align: center; }
.footnote { margin: 12px 3px 0; color: #747d88; font-size: 12px; }

@media (max-width: 1000px) {
  .shell { padding: 20px; }
  .page-header { flex-direction: column; }
  .summary { justify-content: flex-start; }
}
