:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #16282b;
  background: #f5f6f3;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
button,
input,
select {
  font: inherit;
}
textarea {
  font: inherit;
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd5d0;
  border-radius: 6px;
  resize: vertical;
}
.card.review-card {
  display: block;
}
.chatgpt-form {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 16px;
}
.chatgpt-form button {
  justify-self: start;
}
.chatgpt-results {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.chatgpt-card {
  padding: 20px;
  border: 1px solid #cbd5d0;
  border-radius: 8px;
  background: white;
  overflow-wrap: anywhere;
}
.chatgpt-card > a {
  display: inline-block;
  margin-bottom: 12px;
}
.chatgpt-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: 0.85rem;
  margin-top: 12px;
}
.review-card > button {
  margin-top: 12px;
}
.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.comparison-product {
  background: #f5f6f3;
  padding: 14px;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.comparison dl {
  grid-template-columns: 1fr;
  gap: 6px;
}
.comparison dd {
  margin-bottom: 8px;
}
.review-images {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.review-form {
  margin-top: 20px;
}
@media (max-width: 480px) {
  .comparison {
    grid-template-columns: 1fr;
  }
}
button,
.link-button {
  border: 1px solid #cbd5d0;
  border-radius: 7px;
  padding: 10px 15px;
  background: white;
  color: #233b38;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
button:hover,
.link-button:hover {
  border-color: #156356;
  background: #edf5ef;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button.primary {
  background: #146655;
  color: white;
  border-color: #146655;
}
button.primary:hover {
  background: #0b5143;
}
:focus-visible {
  outline: 3px solid #d6a748;
  outline-offset: 3px;
}
input,
select {
  width: 100%;
  min-height: 41px;
  background: white;
  border: 1px solid #cbd5d0;
  border-radius: 6px;
  padding: 9px;
  color: #233b38;
}
label {
  display: grid;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}
h2 {
  font-size: 1.4rem;
}
h3 {
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 8px;
}
a {
  color: #146655;
}
.small {
  font-size: 0.8rem;
  line-height: 1.6;
}
.muted {
  color: #63736d;
  line-height: 1.5;
}
.eyebrow {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  margin: 0 0 15px;
}
.centre {
  min-height: 100vh;
  display: grid;
  place-content: center;
}
.login-panel {
  max-width: 430px;
  margin: 12vh auto;
  padding: 32px;
  background: white;
  border: 1px solid #dbe1da;
  border-radius: 14px;
}
.login-panel .brand-mark {
  margin-bottom: 28px;
}
.login-panel form {
  display: grid;
  gap: 19px;
  margin: 28px 0;
}
.brand-mark {
  display: grid;
  place-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #b5d7bf;
  color: #12372d;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -3px;
  padding-right: 3px;
}
.brand {
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 55px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  background: #182f2e;
  color: #c6d3ce;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.sidebar .eyebrow {
  color: #8da7a0;
  padding-left: 12px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.sidebar nav button {
  border: 0;
  background: transparent;
  color: #c6d3ce;
  text-align: left;
  padding: 13px;
  font-size: 0.9rem;
  font-weight: 500;
}
.sidebar nav button[aria-current] {
  background: #305047;
  color: #fff;
}
.sidebar nav button:hover {
  background: #28443f;
}
.account {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 20px 12px 0;
  border-top: 1px solid #38504b;
  font-size: 0.9rem;
}
.account span {
  font-size: 0.8rem;
  color: #9bb2aa;
}
.account button {
  background: transparent;
  border: none;
  color: #b3ccc1;
  text-align: left;
  padding: 10px 0;
}
.desk {
  margin-left: 224px;
  padding: 40px clamp(20px, 4vw, 64px);
  max-width: 1700px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
header p:last-child {
  margin-bottom: 0;
}
.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.policy-note {
  border-left: 3px solid #84ab96;
  padding: 13px 16px;
  background: #eaf0e9;
  font-size: 0.84rem;
  line-height: 1.6;
  margin-bottom: 26px;
}
.filters {
  display: grid;
  grid-template-columns: minmax(145px, 1.4fr) 95px 95px minmax(150px, 1fr) minmax(130px, 1fr) minmax(145px, 1fr);
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid #dce2da;
}
.filters button {
  grid-column: -2 / -1;
}
#notice {
  font-size: 0.86rem;
  margin: 20px 0;
  min-height: 20px;
}
.error {
  color: #a03523;
}
p.error:empty {
  display: none;
}
p.error:not(:empty),
#notice.success {
  padding: 13px 16px;
  border: 1px solid #eccbc4;
  border-radius: 8px;
  background: #fff5f2;
  line-height: 1.6;
}
#notice.success {
  color: #15533f;
  border-color: #bdd5c5;
  background: #edf5ee;
}
.results {
  display: grid;
  gap: 15px;
}
.card {
  display: grid;
  grid-template-columns: 92px minmax(180px, 1fr) auto;
  gap: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid #dae0d8;
  border-radius: 11px;
}
.history-card {
  grid-template-columns: minmax(180px, 1fr) minmax(300px, 1.5fr) auto;
  align-items: center;
}
.history-card > button {
  justify-self: start;
}
.expired-note {
  grid-column: 1 / -1;
}
.product-image {
  width: 92px;
  height: 106px;
  object-fit: contain;
  background: #f8f9f5;
  border-radius: 6px;
}
.image-placeholder {
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: #718078;
  text-align: center;
  padding: 8px;
}
.retailer {
  font-size: 0.7rem;
  font-weight: 650;
  color: #537366;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 7px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 16px;
  align-content: center;
}
.metric {
  display: grid;
  gap: 5px;
}
.metric span {
  font-size: 0.7rem;
  color: #64756d;
}
.metric strong {
  font-size: 1.1rem;
  font-weight: 650;
}
.metric.profit strong {
  color: #146655;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 17px;
}
.actions button,
.actions a {
  font-size: 0.8rem;
  padding: 8px 12px;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  background: #e9f3eb;
  border-radius: 4px;
  color: #33674f;
  font-size: 0.7rem;
  margin-right: 8px;
}
.blocked {
  color: #905c1d;
  background: #faf0de;
}
.reason {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: #91602c;
  line-height: 1.5;
}
.empty {
  padding: 55px 24px;
  text-align: center;
  background: #fff;
  border: 1px dashed #c8d6ca;
  border-radius: 10px;
}
.pagination {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
  margin: 24px 0;
  font-size: 0.85rem;
}
dialog {
  width: min(850px, 95vw);
  max-height: 90vh;
  border: 1px solid #b9cbc1;
  border-radius: 14px;
  padding: 28px;
  color: #16282b;
}
dialog::backdrop {
  background: #132a25a6;
  backdrop-filter: blur(3px);
}
.confirmation {
  width: min(510px, calc(100vw - 32px));
  padding: 28px;
  border-color: #dce2da;
  border-radius: 18px;
  box-shadow: 0 24px 80px #102b3040;
}
.confirmation-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}
.confirmation-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #eccbc4;
  border-radius: 14px;
  color: #9b3029;
  background: #fff0ec;
}
.icon-button {
  width: 34px;
  height: 34px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: #62756d;
  font-size: 1.5rem;
  font-weight: 400;
}
.confirmation h2 {
  margin-bottom: 12px;
  font-size: 1.6rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
#confirmation-message {
  color: #52685f;
  line-height: 1.65;
}
.confirmation-note {
  padding: 14px 16px;
  border: 1px solid #dce2da;
  border-radius: 8px;
  background: #f5f6f3;
  color: #52685f;
  font-size: 0.86rem;
  line-height: 1.6;
}
.confirmation-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e9e2;
}
button.danger.solid-danger {
  background: #a43c30;
  border-color: #a43c30;
  color: white;
}
button.danger.solid-danger:hover {
  background: #873025;
  border-color: #873025;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}
.dialog-heading h2 {
  margin: 0;
}
dialog section {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid #dce2da;
}
dl {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 2fr;
  gap: 12px 18px;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}
dt {
  color: #64756d;
}
dd {
  margin: 0;
}
li {
  margin-bottom: 8px;
  line-height: 1.5;
  font-size: 0.87rem;
}
.purchase-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: #eef4ec;
  padding: 20px;
  border-radius: 8px;
  margin-top: 24px;
}
.purchase-form p {
  grid-column: 1 / -1;
  margin: 0;
}
.sourcing-panel,
.connection-panel {
  padding: 24px;
  margin-bottom: 22px;
  background: white;
  border: 1px solid #dce3dd;
  border-radius: 12px;
}
.connection-panel {
  background: #eef4ec;
}
.settings-form {
  display: grid;
  gap: 22px;
}
.sourcing-field {
  display: grid;
  align-content: start;
  gap: 7px;
}
.sourcing-group,
.discovery-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}
fieldset.sourcing-group {
  border: 1px solid #dce3dd;
  border-radius: 8px;
  padding: 20px;
}
.sourcing-group legend {
  padding: 0 8px;
  font-weight: 650;
}
.form-wide {
  grid-column: 1 / -1;
}
.form-message {
  margin: 0;
}
.settings-form > button,
.discovery-form > button {
  justify-self: start;
  align-self: end;
}
.run-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}
.run-status {
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #f5eedc;
}
.run-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
button.danger {
  color: #9b3029;
  border-color: #d9a5a0;
}
button.danger:hover {
  background: #fff0ee;
}
.run-complete {
  background: #e1f0e5;
}
.run-running {
  background: #e6eef6;
}
.run-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 20px 0;
}
.run-activity {
  border-left: 3px solid #47705b;
  background: #f1f5f1;
  padding: 14px 18px;
  overflow-wrap: anywhere;
}
.run-activity h3,
.matching-timeline h4 {
  margin: 8px 0;
}
.run-decisions {
  margin: 18px 0;
}
.product-timeline {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dce3dd;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.product-timeline > summary,
.progress-evidence > summary {
  cursor: pointer;
  font-weight: 600;
}
.product-timeline > a,
.matching-timeline > li > a {
  display: inline-block;
  margin: 8px 12px 0 0;
}
.matching-timeline {
  padding-left: 22px;
}
.matching-timeline > li {
  padding: 8px 0 16px 12px;
  border-left: 2px solid #dce3dd;
}
.matching-timeline .progress-failed,
.matching-timeline .progress-rejected {
  border-left-color: #9b3029;
}
.matching-timeline .progress-matched,
.matching-timeline .progress-passed {
  border-left-color: #47705b;
}
.progress-evidence {
  margin-top: 12px;
}
.progress-table {
  overflow-x: auto;
}
.progress-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.progress-table th,
.progress-table td {
  padding: 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #dce3dd;
  min-width: 100px;
}
.policy-history {
  padding: 14px 0;
  border-top: 1px solid #dce3dd;
}
.policy-history summary {
  cursor: pointer;
  font-weight: 600;
}
.policy-history[open] > summary {
  margin-bottom: 18px;
}
.connection-services {
  padding-left: 20px;
}
.stats-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid #dce2da;
}
.stats-tabs button {
  background: transparent;
  border-color: transparent;
}
.stats-tabs button[aria-selected='true'] {
  color: #12523f;
  background: #deeee1;
  border-color: #b8d1bf;
}
.stats-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 22px 0;
}
.stats-filter-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}
#stats-content {
  min-width: 0;
}
#stats-content[aria-busy='true'] {
  opacity: 0.6;
}
.stats-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stats-metric {
  padding: 20px;
  background: white;
  border: 1px solid #dae0d8;
  border-radius: 11px;
}
.stats-metric h3 {
  min-height: 2.8em;
  font-size: 0.8rem;
  font-weight: 600;
  color: #537366;
}
.stats-metric > strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  margin: 14px 0 8px;
  color: #146655;
}
.stats-metric p {
  margin-bottom: 0;
}
.stats-note {
  margin: 16px 0;
  max-width: 980px;
}
.stats-table-wrap {
  overflow: auto;
  max-width: 100%;
  background: white;
  border: 1px solid #dae0d8;
  border-radius: 11px;
}
.stats-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.83rem;
  font-variant-numeric: tabular-nums;
}
.stats-table caption {
  text-align: left;
  padding: 20px;
  font-size: 1.05rem;
  font-weight: 650;
  border-bottom: 1px solid #e4e9e1;
}
.stats-table th,
.stats-table td {
  padding: 16px;
  min-width: 112px;
  vertical-align: top;
  border-bottom: 1px solid #e4e9e1;
  line-height: 1.5;
}
.stats-table thead th {
  color: #537366;
  background: #f6f8f3;
  font-size: 0.75rem;
  font-weight: 600;
}
.stats-table tbody th {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.stats-table tbody tr:last-child > * {
  border-bottom: 0;
}
.stats-product {
  min-width: 180px;
  max-width: 320px;
  display: grid;
  gap: 7px;
}
.stats-product .link-button {
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 600;
  color: #146655;
}
.stats-product .link-button:hover {
  text-decoration: underline;
}
.stats-confidence,
.stats-path {
  display: grid;
  gap: 7px;
}
.stats-confidence meter {
  width: 100%;
  max-width: 150px;
  height: 9px;
}
.stats-path .badge {
  margin: 0;
  width: max-content;
}
@media (max-width: 1200px) {
  .stats-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filters {
    grid-template-columns: repeat(3, 1fr);
  }
  .card {
    grid-template-columns: 75px 1fr;
    gap: 18px;
  }
  .product-image {
    width: 75px;
  }
  .metrics {
    grid-column: 2;
    grid-template-columns: repeat(3, 1fr);
  }
  .history-card {
    grid-template-columns: 1fr;
  }
  .history-card .metrics {
    grid-column: 1;
  }
}
@media (max-width: 720px) {
  .stats-tabs {
    gap: 4px;
  }
  .stats-tabs button {
    padding: 10px 11px;
    font-size: 0.85rem;
  }
  .stats-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats-filter-actions {
    flex-wrap: wrap;
    grid-column: 1 / -1;
  }
  .stats-metric {
    padding: 15px;
  }
  .stats-metric > strong {
    font-size: 1.6rem;
  }
  header {
    align-items: flex-start;
    flex-direction: column;
  }
  .header-actions {
    justify-content: flex-start;
  }
  .sourcing-group,
  .discovery-form {
    grid-template-columns: 1fr;
  }
  .run-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sourcing-panel,
  .connection-panel {
    padding: 18px;
  }
  .sidebar {
    position: static;
    width: auto;
    padding: 18px;
  }
  .brand {
    margin: 0;
  }
  .sidebar > .eyebrow {
    display: none;
  }
  .sidebar nav {
    display: flex;
    flex-wrap: wrap;
    margin-top: 16px;
    gap: 2px;
  }
  .sidebar nav button {
    padding: 10px;
    font-size: 0.8rem;
  }
  .account {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 12px;
    padding: 10px 0 0;
  }
  .account button {
    margin-left: auto;
  }
  .desk {
    margin: 0;
    padding: 26px 16px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .card {
    padding: 16px;
    gap: 14px;
  }
  .metrics {
    grid-column: 1 / -1;
  }
  dialog {
    padding: 20px;
  }
  dl {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  dd {
    margin-bottom: 12px;
  }
  .purchase-form {
    grid-template-columns: 1fr;
  }
}
