:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #263934;
  background: #f5f7f5;
  font-size: 14px;
  --accent: #17635b;
  --line: #dce4de;
  --muted: #6f7e77;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button {
  border: 1px solid #cbd7cf;
  background: #fff;
  color: #31493e;
  border-radius: 7px;
  padding: 9px 13px;
  cursor: pointer;
  white-space: nowrap;
}
button:hover {
  background: #edf4ef;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.primary:hover {
  background: #124f49;
}
.quiet {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
a {
  color: var(--accent);
}
input,
select,
textarea {
  border: 1px solid #cedbd2;
  border-radius: 6px;
  background: white;
  color: #233c31;
  padding: 9px 10px;
  min-width: 0;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #218d83;
  outline: 2px solid #218d8325;
}
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #5b6f63;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.7px;
  margin: 5px 0 10px;
  font-weight: 650;
}
h2 {
  font-size: 19px;
  margin: 0 0 14px;
}
h3 {
  font-size: 15px;
  margin: 0;
}
.muted,
.footnote {
  color: var(--muted);
  line-height: 1.6;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #688276;
  font-weight: 700;
}
.count {
  font-size: 17px;
  font-weight: 500;
  color: #789083;
  padding-left: 8px;
}
header {
  height: 77px;
  border-bottom: 1px solid var(--line);
  background: white;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 0 34px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1b4639;
  font-size: 25px;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -1px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 27px;
  font-weight: 750;
}
.brand-caption {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 7px;
}
nav {
  display: flex;
  align-self: stretch;
  gap: 8px;
}
nav button {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  padding: 0 16px;
}
nav button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 650;
}
.account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
}
main {
  padding: 34px;
  max-width: 1800px;
  margin: auto;
  min-height: calc(100vh - 138px);
}
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.title-row .muted {
  margin: 0 0 22px;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: end;
  margin: 4px 0 22px;
  flex-wrap: wrap;
}
.filters label {
  flex: 1;
  min-width: 140px;
}
.filters .search-label {
  flex: 2;
  min-width: 240px;
}
.filters button {
  height: 38px;
}
.selection-bar {
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: white;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  font-size: 12px;
}
.spacer {
  flex: 1;
}
.check {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-weight: 400;
  white-space: nowrap;
}
.table-scroll {
  overflow: auto;
  border: 1px solid var(--line);
  background: white;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  font-weight: 550;
  font-size: 11px;
  color: #748178;
  background: #f2f6f2;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 10px;
  border-bottom: 1px solid #e8ede8;
  vertical-align: top;
}
#products-table {
  min-width: 1070px;
}
#products-table > thead > tr > th:first-child {
  width: 38px;
}
#products-table > thead > tr > th:nth-child(2) {
  width: 32%;
}
#products-table > thead > tr > th:nth-child(3) {
  width: 12%;
}
#products-table > thead > tr > th:nth-child(4) {
  width: 14%;
}
#products-table > thead > tr > th:nth-child(5) {
  width: 9%;
}
#products-table > thead > tr > th:nth-child(6) {
  width: 15%;
}
.inline {
  width: 100%;
  border-color: transparent;
  background: transparent;
  padding: 6px 5px;
  border-radius: 4px;
}
.inline:hover {
  border-color: #d8e6dc;
  background: #f8fbf9;
}
.inline:focus {
  background: #e9f6f7;
  border-color: #2895a1;
}
.product-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  padding: 5px;
  color: var(--muted);
}
.product-meta a {
  text-decoration: none;
}
.pill {
  display: inline-block;
  border-radius: 5px;
  font-size: 10px;
  padding: 5px 7px;
  white-space: nowrap;
}
.pill.needs_review {
  background: #fff3d9;
  color: #886021;
}
.pill.confirmed {
  background: #e2f3e6;
  color: #2c7750;
}
.row-state {
  display: block;
  font-size: 10px;
  color: #648170;
  padding-top: 7px;
  max-width: 170px;
}
.error,
.row-state.error {
  color: #b14437;
}
.detail-toggle {
  padding: 6px 8px;
  font-size: 12px;
}
.detail-cell {
  background: #f5f9f6;
  padding: 22px 25px;
  border-bottom: 2px solid #cfdfd4;
}
.detail-head {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.detail-head h2 {
  margin: 0 auto 0 0;
}
.detail-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin-top: 14px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
}
.detail-section p {
  line-height: 1.6;
}
.detail-section textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
}
.relation-table {
  min-width: 680px;
}
.relation-table td {
  padding: 5px;
}
.relation-table input {
  width: 100%;
  font-size: 12px;
  padding: 8px;
}
.relation-table th {
  padding: 9px 5px;
}
.relation-table button {
  padding: 7px;
}
.relation-scroll {
  overflow: auto;
}
.detail-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.detail-columns .detail-section {
  min-width: 0;
}
.detail-columns .relation-table {
  min-width: 390px;
}
.detail-section .check {
  font-weight: 500;
}
.photo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}
.photo-row input {
  flex: 1;
}
.photo-row img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.photo-row button {
  padding: 7px;
}
.info {
  padding: 13px 16px;
  border-radius: 7px;
  background: #e9f1ee;
  color: #526a5d;
  font-size: 12px;
  line-height: 1.6;
  margin: 16px 0;
}
.conflict {
  border: 1px solid #e6ba7a;
  background: #fff6e7;
  border-radius: 6px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.6;
}
.conflict button {
  margin: 6px 6px 0 0;
}
.conflict pre {
  max-height: 160px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  font-size: 12px;
}
.pagination .muted {
  font-size: 10px;
}
.footnote {
  font-size: 11px;
}
.empty {
  text-align: center;
  padding: 45px 20px;
  background: white;
  border: 1px solid var(--line);
  border-top: 0;
}
.empty p {
  max-width: 580px;
  margin: 12px auto;
  line-height: 1.7;
}
.empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: #edf5ee;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 26px;
  margin: 0 auto 20px;
}
footer {
  display: flex;
  gap: 25px;
  border-top: 1px solid var(--line);
  padding: 20px 34px;
  font-size: 10px;
  color: #73857a;
  letter-spacing: 1px;
}
footer span {
  letter-spacing: 0;
  color: #98a49d;
}
#notice {
  padding: 13px 16px;
  background: #e5f2e8;
  border: 1px solid #c9dfcf;
  border-radius: 7px;
  margin-bottom: 18px;
  line-height: 1.5;
}
#notice.error {
  background: #fff0eb;
  border-color: #edc8bd;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(ellipse at top right, #dfebe4, transparent 60%);
}
.login-card {
  width: 380px;
  background: white;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 15px 65px #1b463909;
}
.login-card .brand-mark {
  margin-bottom: 20px;
}
.login-card label {
  margin: 20px 0;
}
.login-card button {
  width: 100%;
}
.login-card h1 {
  font-size: 25px;
}
.login-card .muted {
  font-size: 13px;
}
.job {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  margin-top: 12px;
}
.job-head {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.job p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.job progress {
  width: 100%;
  height: 6px;
  accent-color: var(--accent);
}
.download {
  display: inline-block;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  text-decoration: none;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 11px;
  background: #f1f5f1;
  padding: 12px;
  border-radius: 5px;
  max-height: 350px;
  overflow: auto;
}
details > summary {
  cursor: pointer;
  font-weight: 550;
  font-size: 12px;
  padding: 8px 0;
}
.model-card {
  background: white;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 10px 0;
}
.model-card p {
  font-size: 12px;
  color: var(--muted);
}
.history-row {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
@media (max-width: 850px) {
  header {
    height: auto;
    min-height: 70px;
    padding: 14px 18px;
    gap: 15px;
    flex-wrap: wrap;
  }
  .brand-caption {
    display: none;
  }
  .brand {
    font-size: 22px;
  }
  nav {
    order: 3;
    width: 100%;
    height: 43px;
  }
  .account {
    gap: 5px;
  }
  main {
    padding: 22px 16px;
  }
  .title-row {
    align-items: start;
  }
  h1 {
    font-size: 25px;
  }
  .filters {
    gap: 10px;
  }
  .filters label {
    flex: 1 1 40%;
    min-width: 100px;
  }
  .filters .search-label {
    flex-basis: 100%;
  }
  .selection-bar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .selection-bar .spacer {
    display: none;
  }
  .selection-bar button {
    font-size: 11px;
  }
  .selection-bar .check {
    margin-left: auto;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .pagination .muted {
    display: none;
  }
  .detail-cell {
    padding: 14px;
  }
  .detail-columns {
    grid-template-columns: 1fr;
  }
  footer {
    padding: 20px 16px;
  }
  .job-head {
    align-items: start;
  }
  .login-card {
    max-width: 100%;
  }
}

@media (max-width: 850px) {
  .detail-cell > div {
    width: calc(100vw - 66px);
  }
  .detail-head {
    align-items: flex-start;
  }
  .detail-version {
    font-size: 11px;
  }
}

.mobile-hint {
  display: none;
}
@media (max-width: 850px) {
  .mobile-hint {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin: 0;
    padding: 10px 14px;
    background: white;
    border: 1px solid var(--line);
    border-bottom: 0;
  }
}
