:root {
  --canvas: #fff;
  --wash: #f5f5f5;
  --ink: #171717;
  --muted: #626262;
  --edge: #e5e5e5;
  --action: #171717;
  --inverse: #fafafa;
  --danger: #a91e2c;
  --focus: #2865c7;
  --success-bg: #eaf6ed;
  --success: #246437;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--wash);
  font-size: 14px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
header {
  height: 76px;
  border-bottom: 1px solid var(--edge);
  background: var(--canvas);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.brand-icon {
  background: var(--ink);
  color: var(--inverse);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  text-align: center;
  font-size: 24px;
}
.tag {
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--edge);
  border-radius: 6px;
  padding: 4px 9px;
  color: var(--muted);
  background: var(--canvas);
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 42px 4vw;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 16px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 650;
  color: var(--muted);
  margin: 0 0 8px;
}
h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
  text-wrap: balance;
}
h2 {
  font-size: 17px;
  margin: 0 0 4px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
}
.muted,
small {
  color: var(--muted);
}
p {
  margin: 6px 0 16px;
}
.workspace {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.panel {
  background: var(--canvas);
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 24px;
}
.login {
  width: 100%;
  max-width: 420px;
  margin: 7vh auto;
}
label {
  display: block;
  font-weight: 550;
  font-size: 13px;
  margin: 16px 0 6px;
}
input,
select,
button {
  font: inherit;
  border: 1px solid var(--edge);
  border-radius: 7px;
  min-height: 42px;
}
input,
select {
  background: var(--canvas);
  color: var(--ink);
  padding: 9px 11px;
  width: 100%;
  min-width: 0;
}
small {
  display: block;
  font-size: 12px;
  margin-top: 5px;
}
button {
  cursor: pointer;
  background: var(--action);
  color: var(--inverse);
  padding: 9px 15px;
  font-weight: 550;
  touch-action: manipulation;
}
button:hover {
  opacity: 0.86;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.secondary {
  background: var(--canvas);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
form > button {
  width: 100%;
  margin-top: 20px;
}
.error {
  color: var(--danger);
  font-size: 13px;
}
.error:empty {
  display: none;
}
.result {
  margin-top: 22px;
  border-top: 1px solid var(--edge);
  padding-top: 12px;
}
.result p {
  font-size: 12px;
  color: var(--muted);
}
output {
  font-family: ui-monospace, monospace;
  overflow-wrap: anywhere;
  display: block;
  background: var(--wash);
  border: 1px solid var(--edge);
  padding: 12px;
  border-radius: 7px;
  font-size: 14px;
  margin-bottom: 12px;
}
.list-title {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}
.filters {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(130px, 180px) auto;
  align-items: end;
  gap: 12px;
  margin: 8px 0 20px;
}
.filters > button {
  width: auto;
  margin: 0;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 550;
  background: var(--wash);
}
th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--edge);
  vertical-align: top;
}
td {
  font-size: 13px;
}
.subline {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.badge {
  font-size: 11px;
  padding: 4px 7px;
  border-radius: 5px;
  display: inline-block;
  background: var(--wash);
  color: var(--muted);
}
.badge.activated {
  background: var(--success-bg);
  color: var(--success);
}
.empty {
  text-align: center;
  padding: 42px 10px;
  color: var(--muted);
  white-space: normal;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}
.pagination > div {
  display: flex;
  gap: 7px;
}
.pagination button {
  font-size: 12px;
  min-height: 36px;
}
.product-field {
  position: relative;
}
#product-options {
  position: absolute;
  z-index: 2;
  top: 100%;
  left: 0;
  right: 0;
  list-style: none;
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--edge);
  border-radius: 7px;
  padding: 4px;
  margin: 3px 0 0;
  max-height: 220px;
  overflow: auto;
  box-shadow: 0 3px 10px #00000012;
}
#product-options li {
  padding: 9px 8px;
  cursor: pointer;
  border-radius: 4px;
}
#product-options li[aria-selected="true"],
#product-options li:hover {
  background: var(--wash);
}
footer {
  padding: 20px 4vw 35px;
  color: var(--muted);
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 290px minmax(0, 1fr);
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .filters button {
    grid-column: 1/-1;
  }
  .panel {
    padding: 20px;
  }
}
@media (max-width: 760px) {
  main {
    padding: 28px 18px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .heading > .tag {
    display: none;
  }
  h1 {
    font-size: 25px;
  }
  header {
    height: 64px;
    padding: 0 18px;
  }
  .login {
    margin: 30px auto;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .filters {
    gap: 10px;
  }
  .heading {
    margin-bottom: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}

.panel {
  min-width: 0;
}
.workspace {
  min-width: 0;
}
