:root {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #253029;
  background: #f4f5f0;
  font-synthesis: none;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
header {
  padding: 20px clamp(16px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-bottom: 1px solid #e0e5dc;
  gap: 16px;
}
.brand {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand img {
  width: 145px;
  height: auto;
}
.brand span {
  border-left: 1px solid #d8dfd2;
  padding-left: 24px;
  font-size: 14px;
  color: #66705f;
}
nav {
  display: flex;
  gap: 12px;
}
main {
  max-width: 1550px;
  margin: 0 auto;
  padding: 36px clamp(16px, 4vw, 64px);
}
h1 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 8px 0 16px;
}
h2 {
  font-size: 20px;
}
.eyebrow {
  color: #5a762e;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}
.card {
  background: white;
  border: 1px solid #e0e5dc;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 8px 28px #29331f06;
}
.login {
  max-width: 450px;
  margin: 6vh auto;
}
label {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  font-size: 14px;
  font-weight: 600;
}
input,
textarea,
select,
button {
  font: inherit;
}
input,
textarea,
select {
  border: 1px solid #cbd2c4;
  border-radius: 9px;
  background: white;
  padding: 11px 12px;
  min-width: 0;
}
button {
  border: 1px solid #719c32;
  background: #719c32;
  color: #fff;
  border-radius: 9px;
  padding: 11px 17px;
  font-weight: 650;
  cursor: pointer;
  min-height: 44px;
}
button:hover {
  filter: brightness(0.96);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.quiet {
  color: #34402d;
  background: #fff;
  border-color: #cbd2c4;
}
:focus-visible {
  outline: 3px solid #8ec33f;
  outline-offset: 3px;
}
.login button {
  width: 100%;
  margin-top: 12px;
}
.muted {
  color: #687362;
  font-size: 14px;
}
.pill {
  border: 1px solid #d4ddcc;
  border-radius: 40px;
  padding: 8px 14px;
  font-size: 13px;
  white-space: nowrap;
}
.review-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 28px;
}
.review-grid:has(aside[hidden]) {
  grid-template-columns: 1fr;
}
.design {
  min-width: 0;
}
.controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid #dbe2d4;
  padding: 10px;
  border-radius: 14px 14px 0 0;
  position: sticky;
  top: 0;
  z-index: 2;
}
.controls select {
  flex: 1;
  max-width: 280px;
}
.zoom {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.canvas {
  background: #e5e9df;
  overflow: auto;
  min-height: 250px;
  max-height: 78vh;
  border-radius: 0 0 14px 14px;
  padding: 20px;
  display: grid;
  align-items: start;
}
.canvas img {
  display: block;
  max-width: 100%;
  width: auto;
  max-height: 68vh;
  margin: auto;
  box-shadow: 0 8px 26px #25302120;
  user-select: none;
}
.canvas.zoomed {
  display: block;
}
.canvas.zoomed img {
  max-width: none;
  max-height: none;
  margin: 0 auto;
}
.note {
  font-size: 12px;
  margin: 12px 0 24px;
}
.response {
  max-width: 850px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
}
.check input {
  margin-top: 4px;
  accent-color: #719c32;
}
.response-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.product-card {
  padding: 22px;
  border: 1px solid #dbe2d4;
  background: white;
  border-radius: 14px;
  margin: 12px 0;
}
.product-card h3 {
  font-size: 17px;
  margin: 0;
}
.product-card p {
  font-size: 14px;
  color: #687362;
}
.product-card a {
  color: #567a20;
  font-weight: 600;
  text-underline-offset: 4px;
}
footer {
  text-align: center;
  color: #798170;
  font-size: 12px;
  padding: 32px 16px;
}
#message {
  padding: 14px 24px;
  background: #fff0de;
  color: #763f12;
  margin: 16px;
  border-radius: 10px;
}
#recorded {
  white-space: pre-wrap;
  border-left: 4px solid #8ec33f;
  padding: 12px;
  background: #f2f7ec;
}
dialog {
  border: 1px solid #d3dcc9;
  border-radius: 18px;
  padding: 28px;
  max-width: 460px;
  width: calc(100% - 32px);
  color: inherit;
}
dialog::backdrop {
  background: #19221177;
}
@media (max-width: 850px) {
  .review-grid {
    grid-template-columns: 1fr;
  }
  .review-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .brand span {
    display: none;
  }
  header {
    padding: 16px;
  }
  .brand img {
    width: 122px;
  }
  main {
    padding-top: 24px;
  }
  .controls {
    flex-wrap: wrap;
  }
  .controls select {
    max-width: none;
  }
  .zoom {
    margin-left: 0;
    justify-content: center;
    width: 100%;
  }
  .canvas {
    padding: 8px;
    max-height: 65vh;
  }
  .canvas img {
    max-height: 55vh;
  }
  .card {
    padding: 20px;
  }
  #cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
  }
  .login {
    margin: 3vh auto;
  }
  .response-actions button {
    flex: 1;
  }
  .pill {
    white-space: normal;
  }
}

.product-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

@media (max-width: 600px) {
  header {
    gap: 8px;
  }
  .brand img {
    width: 108px;
  }
  header nav {
    gap: 6px;
    min-width: 0;
  }
  header nav select {
    width: 110px;
    padding: 8px;
    font-size: 13px;
  }
  header nav button {
    font-size: 13px;
    padding: 8px 10px;
  }
}
