:root {
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #18283d;
  background: #f3f6fa;
  --accent: #1559cc;
  --line: #dce4ef;
  --muted: #536881;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.top { background: white; border-bottom: 1px solid var(--line); }
.bar {
  max-width: 980px; margin: auto; padding: 13px 24px;
  display: flex; gap: 10px; align-items: center;
}
.mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  font: 21px/1 system-ui; color: white; background: var(--accent);
}
.brand { font-weight: 650; }
#account { margin-left: auto; color: var(--muted); font-size: 14px; }
main { max-width: 980px; margin: auto; padding: 34px 24px 64px; }
h1 { font-size: clamp(27px, 4vw, 36px); margin: 0 0 18px; }
h2 { font-size: 19px; margin: 0 0 18px; }
p { margin: 0; }
.notice {
  border: 1px solid #d4e3ff; background: #eaf2ff; color: #264e8c;
  margin-bottom: 17px; padding: 10px 13px; border-radius: 8px;
}
nav { display: flex; gap: 8px; margin-bottom: 15px; }
nav button, .subtle { border-color: transparent; background: transparent; color: var(--muted); }
nav button[aria-current] { color: var(--accent); border-color: #cddcf5; background: #eaf2ff; }
.card {
  background: white; border: 1px solid var(--line); padding: 23px; border-radius: 12px;
  margin-bottom: 16px; box-shadow: 0 3px 12px #2133540a;
}
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.control { display: grid; gap: 6px; }
label, legend { font-weight: 550; }
select, input[type="number"], textarea {
  width: 100%; min-height: 42px; padding: 8px 11px; border-radius: 7px;
  border: 1px solid #b9c8dc; background: #fff; color: inherit; font: inherit;
}
select:disabled { background: #f3f6fa; }
fieldset { margin: 19px 0; border: 0; padding: 0; }
legend { margin: 0 0 6px; padding: 0; }
.choices, .actions, .form-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.choices label {
  display: flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 7px;
}
.choices label:has(:checked) { border-color: #8bb1f2; background: #edf4ff; color: #154da6; }
input[type="radio"] { margin: 0; accent-color: var(--accent); }
button, .button {
  min-height: 40px; padding: 8px 14px; border: 1px solid #c4d0df; border-radius: 7px;
  background: white; color: #264267; font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
button:hover:not(:disabled), .button:hover { background: #eaf2ff; }
.primary { background: var(--accent); border-color: var(--accent); color: white; }
.primary:hover:not(:disabled), .button.primary:hover { background: #134baa; }
button:disabled { background: #e1e8f1; border-color: #d2dce9; color: #586a7f; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.error { color: #a0241b; }
#login .error { margin-bottom: 10px; }
.muted { color: var(--muted); }
.result-heading { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 14px; }
.result-heading h2 { margin-bottom: 2px; }
#copy-status { margin-top: 8px; min-height: 1.5em; }
#sku-list {
  display: block; height: 118px; resize: vertical; margin: 7px 0 9px;
  background: #f6f9fd; font: 15px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace;
}
#next-batch { margin-top: 12px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { padding: 10px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: #f4f7fc; color: #37516d; font-size: 14px; }
#more { margin-top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); }

@media (max-width: 580px) {
  main { padding: 20px 14px 44px; }
  .bar { padding: 10px 14px; }
  .card { padding: 16px; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
}
