@font-face {
  font-family: Inter;
  src: local("Inter");
  font-display: swap;
}
:root {
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.5;
  --ink: #192621;
  --muted: #52645b;
  --border: #dbe4dd;
  --green: #1b6847;
  --accent: #bde96f;
  --card: #fff;
  --page: #eff2ef;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
a {
  color: var(--green);
  text-underline-offset: 3px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #409b6d;
  outline-offset: 3px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.53;
  cursor: default;
}
.top {
  --brand-navy: #083657;
  --brand-lime: #72b204;
  color: var(--brand-navy);
  background: #fff;
  border-bottom: 3px solid var(--brand-lime);
}
.top-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  max-width: 1500px;
  padding: 6px clamp(16px, 4vw, 56px);
  margin: auto;
}
.identity {
  color: var(--brand-navy);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: .07em;
}
.identity img {
  display: block;
  width: auto;
  height: 58px;
  object-fit: contain;
}
.header-label {
  align-self: center;
  border-left: 1px solid #cdd9df;
  padding-left: clamp(10px, 2vw, 24px);
  font-size: .87rem;
  font-weight: 650;
}
.top-actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.nav-button {
  min-height: 36px;
  padding: 5px clamp(8px, 1.3vw, 15px);
  border: 1px solid #cdd9df;
  border-radius: 8px;
  color: var(--brand-navy);
  background: #fff;
  font-size: .84rem;
  font-weight: 700;
  white-space: nowrap;
}
.nav-button:hover {
  background: #f0f6e8;
}
.nav-sign-out {
  border-color: var(--brand-navy);
  background: var(--brand-navy);
  color: #fff;
}
.nav-sign-out:hover {
  background: #124967;
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 12px clamp(16px, 4vw, 56px) clamp(16px, 4vw, 56px);
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 1rem;
  letter-spacing: -0.015em;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.83rem;
}
.loading,
.vacant {
  padding: 24px;
}
.progress-card {
  flex: 1 1 155px;
  min-width: 0;
  max-width: 270px;
}
.progress-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
  margin-bottom: 6px;
}
progress {
  width: 100%;
  height: 9px;
  display: block;
  appearance: none;
  border: 0;
  border-radius: 15px;
  background: #e7eee7;
  overflow: hidden;
  accent-color: #2b885c;
}
progress::-webkit-progress-bar {
  background: #e7eee7;
}
progress::-webkit-progress-value {
  background: #2b885c;
}
progress::-moz-progress-bar {
  background: #2b885c;
}
.brands {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 15px 20px;
  margin-bottom: 18px;
  border-radius: 14px;
}
.section-title,
.catalog-head,
.inline {
  display: flex;
  align-items: center;
  gap: 7px;
}
.section-title,
.catalog-head {
  justify-content: space-between;
  flex-wrap: wrap;
}
.brand-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 3px 5px;
}
.brand {
  scroll-snap-align: start;
  flex: 0 0 98px;
  padding: 5px;
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 9px;
  font-weight: 650;
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 0.85rem;
}
.brand-mark {
  background: #eff4ef;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: var(--green);
}
.brand[aria-pressed="true"] .brand-mark {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  background: #edf5e7;
}
.brand-mark img {
  max-width: 86%;
  max-height: 77%;
  object-fit: contain;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(240px, 305px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.catalog,
.panel {
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 14px;
}
.review-nav {
  position: sticky;
  top: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100dvh - 24px);
  min-width: 0;
}
.review-nav .brands {
  margin: 0;
  padding: 10px 12px;
}
.review-nav .brand {
  flex-basis: 70px;
}
.review-nav .brand-mark {
  width: 50px;
  height: 50px;
}
.catalog {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 14px 12px;
}
.catalog-head {
  padding: 0 4px 8px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 2px 0 13px;
}
.filter {
  padding: 6px 10px;
  border: 1px solid transparent;
  background: #f0f4f0;
  border-radius: 7px;
  color: #42554b;
  font-weight: 650;
  font-size: 0.82rem;
}
.filter[aria-pressed="true"] {
  color: #103d2a;
  background: #dceee0;
  border-color: #b2d4bc;
}
.product-list {
  max-height: min(62vh, 650px);
  overflow: auto;
  display: grid;
  gap: 3px;
}
.product-link {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  text-align: left;
  min-width: 0;
  padding: 10px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 8px;
}
.product-link:hover {
  background: #f4f7f4;
}
.product-link[aria-pressed="true"] {
  color: #154531;
  background: #e8f3e9;
  border-color: #c5ddcc;
}
.list-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  font-weight: 620;
}
.pill {
  white-space: nowrap;
  font-size: 0.71rem;
  font-weight: 750;
  border-radius: 20px;
  padding: 3px 8px;
  background: #f9eed5;
  color: #76510b;
}
.pill.approved {
  background: #dbefdf;
  color: #155037;
}
.panel.vacant p {
  margin: 5px 0 16px;
}
.product-detail {
  padding: clamp(13px, 2.5vw, 30px);
}
.product-top {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(14px, 3vw, 32px);
  margin-bottom: 24px;
}
.product-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.product-info h1 {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
}
.product-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-weight: 700;
}
.gallery {
  min-width: 0;
  min-height: 180px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.gallery-empty {
  display: grid;
  place-items: center;
}
.photo {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 7px;
}
.photo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  min-height: 0;
  background: transparent;
}
.gallery-controls {
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-top: 1px solid var(--border);
}
.counter {
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.meta {
  width: 100%;
  margin: 2px 0 0;
  display: grid;
  gap: 7px;
  font-size: 0.84rem;
}
.meta div {
  display: grid;
  grid-template-columns: minmax(70px, 0.72fr) minmax(0, 1.3fr);
  gap: 6px;
}
.meta dt {
  font-weight: 700;
}
.meta dd {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.source-warnings {
  font-size: 0.86rem;
  background: #fcf4e4;
  color: #694a17;
  border-radius: 8px;
  padding: 8px 10px;
  width: 100%;
}
.source-warnings ul {
  padding-left: 20px;
  margin: 5px 0;
}
.detail-section {
  border-top: 1px solid var(--border);
  padding: 16px 0 13px;
  display: grid;
  gap: 10px;
}
.detail-section .filters {
  margin: 0;
}
.text-block {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #263a30;
}
details summary {
  cursor: pointer;
  font-weight: 650;
}
.variant-view,
.variant-editor {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.variant-view summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.variant-view summary::before {
  content: "›";
  color: var(--green);
}
.variant-view[open] summary::before {
  content: "⌄";
}
.variant-view summary span:first-child {
  margin-right: auto;
}
.variant-view .meta {
  margin: 10px 0 3px;
}
.variant-editor .fields {
  margin: 8px 0;
}
.variant-editor details {
  margin-top: 6px;
}
.pricing {
  display: inline-flex;
  gap: 5px 8px;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
}
.pricing del,
.pricing small {
  font-size: 0.82rem;
  color: var(--muted);
}
.pricing strong {
  color: #135237;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.field {
  min-width: 0;
  display: grid;
  gap: 5px;
}
label,
.field span {
  font-size: 0.88rem;
  font-weight: 650;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #aabbb0;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
}
textarea {
  resize: vertical;
}
.map-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  align-items: start;
  gap: 6px;
  margin: 8px 0;
}
button.primary,
button.secondary,
button.ghost,
button.icon {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
}
button.primary {
  background: #1b6847;
  color: white;
  border-color: #1b6847;
}
button.primary:hover:not(:disabled) {
  background: #144e36;
}
button.secondary,
button.icon {
  background: #f3f7f3;
  color: #244b38;
  border-color: #c9d9ce;
}
button.secondary:hover:not(:disabled),
button.icon:hover:not(:disabled) {
  background: #e6f0e8;
}
button.ghost {
  background: transparent;
  color: #28543e;
}
button.ghost:hover:not(:disabled) {
  background: #edf3ee;
}
button.danger {
  color: #8a3029;
}
button.icon {
  min-width: 34px;
  padding: 4px 8px;
  font-size: 1.05rem;
}
button.compact {
  padding: 4px 6px;
  font-size: 0.8rem;
}
.review-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  box-shadow: 0 -5px 16px #13242012;
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding: 10px clamp(13px, 2.5vw, 30px) max(10px, env(safe-area-inset-bottom));
  background: #f6f9f6;
  border-top: 1px solid var(--border);
  border-radius: 0 0 14px 14px;
}
.review-action-buttons {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.review-actions button {
  min-height: 42px;
}
.login {
  min-height: calc(74vh - 66px);
  display: grid;
  place-items: center;
}
.login-card {
  background: var(--card);
  width: min(100%, 420px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(22px, 5vw, 38px);
  box-shadow: 0 16px 45px #263a3014;
}
.login-card p {
  margin: 8px 0;
}
.login-card form,
dialog form {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.login-card button {
  min-height: 43px;
}
.form-error {
  color: #882e2e;
  font-size: 0.88rem;
}
.form-error:empty {
  display: none;
}
dialog {
  width: min(540px, calc(100% - 28px));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  color: var(--ink);
}
dialog::backdrop {
  background: #132420a0;
}
dialog form {
  margin: 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.toast {
  position: fixed;
  z-index: 5;
  bottom: 18px;
  right: 18px;
  max-width: calc(100% - 36px);
  background: #153c2c;
  color: white;
  border-radius: 9px;
  padding: 12px 16px;
  box-shadow: 0 8px 24px #182b2450;
}
.toast.error {
  background: #813630;
}
@media (max-width: 1000px) {
  .workspace {
    grid-template-columns: minmax(185px, 236px) minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .review-nav {
    top: 0;
    gap: 4px;
    background: #f0f4f1;
    padding-bottom: 4px;
  }
  .review-nav .brands {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-block: 4px;
  }
  .review-nav .brand-row {
    min-width: 0;
    padding-block: 2px;
  }
  .review-nav .brand-mark {
    display: none;
  }
  .review-nav .brand[aria-pressed="true"] {
    background: #dceee0;
  }
  .catalog {
    padding: 4px 8px;
  }
  .catalog-head {
    padding-bottom: 0;
  }
  .catalog .filters {
    margin: 0 0 2px;
  }
  .product-list {
    max-height: min(15dvh, 110px);
  }
  #review-note {
    scroll-margin-top: 240px;
    scroll-margin-bottom: 110px;
  }
  .product-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .gallery {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }
  .panel {
    scroll-margin-top: min(245px, 34dvh);
  }
  .photo {
    aspect-ratio: 4/3;
  }
}
@media (max-width: 450px) {
  .header-label {
    display: none;
  }
  .top-inner {
    gap: 5px;
  }
  .fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .review-action-buttons {
    justify-content: flex-start;
  }
  .review-actions button {
    flex: 1 0 auto;
  }
}

.brand-mark.dark-mark,
.brand[aria-pressed="true"] .brand-mark.dark-mark {
  background: #172620;
  color: #eef5ed;
}

.pricing strong {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.product-info .pricing strong {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.pricing del {
  font-size: 0.95rem;
}

.photo {
  overflow: hidden;
}

.photo img {
  max-height: 100%;
}

.reviewed-copy {
  display: grid;
  gap: 0.65rem;
}
.reviewed-copy h3,
.reviewed-copy p,
.reviewed-copy ul {
  margin: 0;
}
.reviewed-copy h3 {
  font-size: 1rem;
  margin-top: 0.35rem;
}
.reviewed-copy ul {
  padding-left: 1.35rem;
}
.reviewed-copy li + li {
  margin-top: 0.25rem;
}

.variant-selectors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  width: 100%;
}

.variant-selectors select {
  min-width: 0;
}

.product-info .pricing {
  justify-content: flex-start;
  align-items: baseline;
}

.variant-selectors {
  grid-template-columns: minmax(0, 1fr);
}
.variant-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.variant-choices legend {
  margin-bottom: 5px;
  padding: 0;
  font-weight: 650;
  font-size: .88rem;
}
.variant-choices button[aria-pressed="true"] {
  color: white;
  background: #1b6847;
  border-color: #1b6847;
}

.product-top {
  align-items: center;
}
.gallery-controls {
  flex-wrap: wrap;
}
.gallery-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
  border-bottom: 1px solid var(--border);
  background: #f6f9f6;
}
.gallery-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 5px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
}
.gallery-tab svg {
  flex: 0 0 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gallery-tab[aria-pressed="true"] {
  background: #e4f2e9;
  border-color: #a8cdb6;
  color: #164c35;
  font-weight: 700;
}
.gallery-tab:hover:not([aria-pressed="true"]) {
  background: #eef4ef;
}

.reviewed-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}
.reviewed-copy > * {
  min-width: 0;
  margin-block: 0;
}
.reviewed-copy ol {
  padding-left: 1.35rem;
}
.reviewed-copy pre {
  overflow: auto;
}
.reviewed-copy img {
  max-width: 100%;
  height: auto;
}

.note-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.reviewed-copy table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.reviewed-copy th,
.reviewed-copy td {
  border: 1px solid var(--border);
  padding: 6px 9px;
  text-align: left;
}

dialog > .muted {
  margin-block: 8px 18px;
}

.theme-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #cdd9df;
  border-radius: 50%;
  color: var(--brand-navy);
  background: transparent;
}
.top-actions[hidden] + .theme-toggle {
  margin-left: auto;
}
.theme-toggle:hover {
  background: #f0f6e8;
}
.theme-toggle svg {
  display: none;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle[data-mode="system"] .theme-system,
.theme-toggle[data-mode="light"] .theme-light,
.theme-toggle[data-mode="dark"] .theme-dark {
  display: block;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef6fb;
  --muted: #b2c9da;
  --border: #315572;
  --green: #a9de59;
  --accent: #bde96f;
  --card: #0d2b42;
  --page: #071c2d;
  --surface: #12354e;
  --interactive: #1a4260;
  --selected: #264e36;
}
[data-theme="dark"] .top {
  background: #083657;
  color: var(--ink);
}
[data-theme="dark"] .identity { color: var(--ink); }
[data-theme="dark"] .identity img {
  background: #fff;
  border: 3px solid #fff;
  border-radius: 8px;
}
[data-theme="dark"] .header-label { border-color: #47728d; }
[data-theme="dark"] .nav-button,
[data-theme="dark"] .theme-toggle {
  background: #113f5e;
  border-color: #567892;
  color: var(--ink);
}
[data-theme="dark"] .nav-button:hover,
[data-theme="dark"] .theme-toggle:hover { background: var(--interactive); }
[data-theme="dark"] .nav-sign-out {
  color: #142600;
  background: var(--accent);
  border-color: var(--accent);
}
[data-theme="dark"] .nav-sign-out:hover { background: #c9f38a; }

[data-theme="dark"] dialog,
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select,
[data-theme="dark"] .gallery-modes,
[data-theme="dark"] .review-actions {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="dark"] .text-block,
[data-theme="dark"] .filter { color: var(--ink); }
[data-theme="dark"] .brand-mark { background: #eaf0f2; }
[data-theme="dark"] .brand-mark.dark-mark { background: #071c2d; }
[data-theme="dark"] .brand[aria-pressed="true"] .brand-mark { outline-color: var(--accent); }
[data-theme="dark"] .filter,
[data-theme="dark"] button.secondary,
[data-theme="dark"] button.icon {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="dark"] .product-link:hover,
[data-theme="dark"] .gallery-tab:hover:not([aria-pressed="true"]),
[data-theme="dark"] button.secondary:hover:not(:disabled),
[data-theme="dark"] button.icon:hover:not(:disabled),
[data-theme="dark"] button.ghost:hover:not(:disabled) {
  background: var(--interactive);
}
[data-theme="dark"] .filter[aria-pressed="true"],
[data-theme="dark"] .product-link[aria-pressed="true"],
[data-theme="dark"] .gallery-tab[aria-pressed="true"],
[data-theme="dark"] .variant-choices button[aria-pressed="true"],
[data-theme="dark"] .brand[aria-pressed="true"] {
  color: #d8f4b6;
  background: var(--selected);
  border-color: #64904d;
}
[data-theme="dark"] .pricing strong,
[data-theme="dark"] button.ghost { color: var(--accent); }
[data-theme="dark"] button.primary {
  color: #142600;
  border-color: var(--accent);
  background: var(--accent);
}
[data-theme="dark"] button.primary:hover:not(:disabled) { background: #c9f38a; }
[data-theme="dark"] .pill,
[data-theme="dark"] .source-warnings { color: #ffe3af; background: #4a3721; }
[data-theme="dark"] .pill.approved { color: #d8f4b6; background: var(--selected); }
[data-theme="dark"] .form-error,
[data-theme="dark"] button.danger { color: #ffb6ac; }
[data-theme="dark"] progress { background: var(--interactive); accent-color: var(--accent); }
[data-theme="dark"] progress::-webkit-progress-bar { background: var(--interactive); }
[data-theme="dark"] progress::-webkit-progress-value { background: var(--accent); }
[data-theme="dark"] progress::-moz-progress-bar { background: var(--accent); }

@media (max-width: 760px) {
  [data-theme="dark"] .review-nav { background: var(--page); }
}
@media (max-width: 450px) {
  .top-inner { padding-inline: 12px; }
  .identity img { height: 46px; }
}
