:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --surface: #fffefa;
  --surface-sunken: #f2f2eb;
  --tint: #edf0e5;
  --lime: #e2e8bd;
  --line: #dedfd5;
  --line-strong: #c3c9b6;
  --accent-line: #8c9b74;
  --accent: #758454;
  --ink: #26322c;
  --text-soft: #5c6650;
  --muted: #5f6559;
  --green: #355346;
  --green-dark: #243f33;
  --on-green: #ffffff;
  --disabled-bg: #d8dcd1;
  --disabled-text: #737970;
  --error: #a14432;
  --shadow: #1b2b211f;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #121714;
    --surface: #1a211d;
    --surface-sunken: #161c19;
    --tint: #223029;
    --lime: #33402b;
    --line: #2c3631;
    --line-strong: #43514a;
    --accent-line: #8fa27f;
    --accent: #b4c48f;
    --ink: #e8ece5;
    --text-soft: #bcc5b2;
    --muted: #a5ad9f;
    --green: #9cc3ad;
    --green-dark: #b9d7c6;
    --on-green: #10201a;
    --disabled-bg: #29312c;
    --disabled-text: #848c80;
    --error: #ec9a84;
    --shadow: #0000005c;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 25px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  height: 95px;
  margin: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--font-body);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1.5px;
}
.logo span {
  color: var(--accent);
  font-size: 34px;
  margin-left: 3px;
}
.eyebrow,
.vertical {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
}
.header-link {
  font-size: 12px;
  border-bottom: 1px solid;
  padding-bottom: 6px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6%;
  padding: 60px 5% 50px;
  max-width: 1600px;
  margin: auto;
  align-items: center;
}
.eyebrow {
  color: var(--text-soft);
  margin: 0 0 22px;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.2vw, 78px);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}
em {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--accent);
}
.intro {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}
.primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--green);
  color: var(--on-green);
  border: 0;
  padding: 18px 23px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 3px;
}
.primary:hover {
  background: var(--green-dark);
}
.primary span {
  font-size: 20px;
}
.hero-cta {
  display: inline-flex;
  margin: 19px 0 35px;
  min-width: 230px;
}
.hero-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
  font-size: 13px;
}
.hero-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-steps span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
}
.editorial {
  position: relative;
  height: 520px;
  background: var(--surface-sunken);
  overflow: hidden;
  border-radius: 3px;
}
.editorial > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(0.65);
}
.editorial-tag {
  position: absolute;
  bottom: 24px;
  left: 25px;
  background: var(--paper);
  padding: 19px 25px;
  font-size: 20px;
  line-height: 1.4;
  transform: rotate(-3deg);
  box-shadow: 0 4px 20px var(--shadow);
}
.hero-matches {
  position: absolute;
  left: 22px;
  bottom: 22px;
  width: min(360px, calc(100% - 44px));
  padding: 16px;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 10px 30px var(--shadow);
}
.hero-matches[hidden],
.editorial-tag[hidden] {
  display: none;
}
.hero-matches-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.25;
}
.hero-matches ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-matches a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.hero-matches img {
  width: 100%;
  aspect-ratio: 3 / 4;
  margin-bottom: 4px;
  border-radius: 4px;
  background: var(--surface-sunken);
  object-fit: contain;
}
.hero-matches a span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-matches a strong {
  font-size: 13px;
  font-weight: 600;
}
.hero-matches a:hover img {
  outline: 2px solid var(--green);
}
.vertical {
  position: absolute;
  right: 12px;
  top: 25px;
  writing-mode: vertical-rl;
  color: white;
  font-size: 11px;
}
.brands {
  padding: 18px 5%;
  border-block: 1px solid var(--line);
  display: grid;
  grid-template-columns: 165px 32px minmax(0, 1fr) 32px;
  gap: 18px;
  align-items: center;
  color: var(--text-soft);
  min-width: 0;
}
.brands-caption {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.brands-caption > span {
  font-size: 11px;
  letter-spacing: 1px;
  line-height: 1.6;
}
.brands-caption small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.brands-track {
  display: flex;
  align-items: center;
  gap: 38px;
  overflow-x: auto;
  min-width: 0;
  scrollbar-width: none;
  scroll-snap-type: none;
  scroll-behavior: auto;
  padding: 10px 5px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.brands-track::-webkit-scrollbar {
  display: none;
}
.brands-track b {
  flex: 0 0 auto;
  white-space: nowrap;
  scroll-snap-align: start;
  font-size: 17px;
  letter-spacing: 1px;
  font-weight: 600;
}
.brands-arrow {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--green);
  font-size: 24px;
  line-height: 1;
  padding: 0;
}
.brands-arrow:hover:enabled {
  background: var(--tint);
}
.brands-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}
.serif {
  font-family: var(--font-display);
}
.workspace,
#results {
  margin: 65px 5%;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 30px;
  gap: 20px;
}
.section-heading .eyebrow {
  margin-bottom: 12px;
}
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-heading > p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 12px;
  margin: 0;
}
.studio {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 50px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 35px;
}
.step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.step-title > span:first-child {
  color: var(--text-soft);
  font-size: 12px;
  border: 1px solid var(--line);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}
.required {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
}
.dropzone {
  border: 1px dashed var(--line-strong);
  background: var(--surface-sunken);
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  cursor: pointer;
  border-radius: 3px;
  position: relative;
  padding: 20px;
}
.dropzone.dragover {
  background: var(--lime);
}
.upload-icon {
  font-size: 34px;
  font-weight: 400;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}
.dropzone strong {
  font-size: 16px;
  font-weight: 500;
}
.dropzone > span:not(.upload-icon):not(.upload-button) {
  font-size: 12px;
  color: var(--muted);
}
.upload-button {
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 11px 18px;
  font-size: 12px;
  margin: 6px 0;
}
.dropzone small {
  font-size: 12px;
  color: var(--muted);
}
.dropzone input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.dropzone:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.privacy,
.helper {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.privacy {
  margin-top: 16px;
}
.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 25px;
}
.mode {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: transparent;
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 3px;
  gap: 8px;
}
.mode.active {
  background: var(--tint);
  border-color: var(--accent-line);
}
.mode-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--green);
}
.mode-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mode strong {
  font-size: 12px;
  font-weight: 500;
}
.mode small {
  font-size: 12px;
  color: var(--muted);
}
.radio {
  position: absolute;
  top: 17px;
  right: 13px;
  width: 12px;
  height: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
.active .radio {
  background: var(--green);
  box-shadow: inset 0 0 0 3px var(--tint);
  border-color: var(--green);
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
label {
  font-size: 12px;
  display: block;
}
select {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 11px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 3px;
  font-size: 12px;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--green);
  margin-top: 22px;
}
#budget-label {
  float: right;
}
.style-label {
  margin-top: 17px;
}
fieldset {
  padding: 0;
  border: 0;
  margin: 23px 0;
}
legend {
  font-size: 12px;
  margin-bottom: 12px;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  border-radius: 20px;
  font-size: 12px;
  padding: 8px 14px;
}
.chip.active {
  background: var(--tint);
  border-color: var(--accent-line);
  color: var(--green);
}
.search {
  width: 100%;
}
.primary:disabled {
  background: var(--disabled-bg);
  color: var(--disabled-text);
  cursor: not-allowed;
}
.preview-box {
  position: relative;
  height: 330px;
  background: var(--surface-sunken);
  touch-action: none;
  user-select: none;
  overflow: hidden;
}
.preview-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.preview-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  gap: 10px;
}
.preview-actions span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-actions button {
  background: none;
  border: 0;
  text-decoration: underline;
  color: var(--text-soft);
  font-size: 12px;
}
#selection {
  position: absolute;
  border: 2px solid #fff;
  outline: 1px solid var(--green);
  background: #dce7b833;
  pointer-events: none;
}
#error {
  color: var(--error);
  font-size: 12px;
}
.result-disclaimer {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 25px 0;
}
.result-toolbar label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.result-toolbar select {
  margin: 0;
  width: auto;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-image {
  aspect-ratio: 3 / 4;
  background: var(--surface-sunken);
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s;
}
.card:hover img {
  transform: scale(1.04);
}
.favorite {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--green);
  font-size: 19px;
  box-shadow: 0 1px 4px var(--shadow);
}
.favorite[aria-pressed="true"] {
  background: var(--green);
  color: var(--on-green);
}
.card-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 9px;
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}
.card-store {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card h3 {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.card-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 10px;
  margin-top: 8px;
}
.card-price strong {
  font-size: 17px;
  font-weight: 600;
}
.source-link {
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.match-reasons {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
}
.card-sizes {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card > :has(+ .cart-add) {
  margin-bottom: 14px;
}
.card .cart-add {
  width: 100%;
  margin-top: auto;
}
.card-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: 12px;
  margin-top: 4px;
}
.card-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--green);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.card-skeleton .card-image,
.skeleton-line {
  background: linear-gradient(
      100deg,
      transparent 30%,
      var(--surface) 50%,
      transparent 70%
    )
    var(--surface-sunken);
  background-size: 250% 100%;
  animation: skeleton 1.4s ease-in-out infinite;
}
.skeleton-line {
  display: block;
  width: 85%;
  height: 12px;
  margin-top: 12px;
  border-radius: 3px;
}
.skeleton-line.short {
  width: 40%;
  margin-top: 16px;
}
.skeleton-line.price {
  width: 30%;
  height: 16px;
}
@keyframes skeleton {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card-skeleton .card-image,
  .skeleton-line {
    animation: none;
  }
}
.empty {
  text-align: center;
  padding: 50px 15px;
  background: var(--surface-sunken);
}
.secondary {
  background: none;
  border: 1px solid var(--green);
  padding: 10px 20px;
  border-radius: 3px;
  color: var(--green);
}
.closing {
  background: var(--tint);
  text-align: center;
  margin-top: 70px;
  padding: 50px 20px;
}
.closing > span {
  font-size: 35px;
  color: var(--accent);
}
.closing h2 {
  font-size: 31px;
  line-height: 1.5;
  margin-top: 12px;
}
.closing p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 30px 5%;
}
footer > span {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  main,
  header,
  footer {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 950px) {
  .hero {
    gap: 25px;
  }
  .editorial {
    height: 400px;
  }
  h1 {
    letter-spacing: -0.03em;
  }

  .studio {
    gap: 25px;
    padding: 24px;
  }
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 680px) {
  header {
    height: 75px;
  }
  .logo {
    font-size: 30px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 35px;
  }
  .hero .eyebrow {
    font-size: 11px;
  }
  h1 {
    font-size: 49px;
  }
  .editorial {
    height: 460px;
    margin-top: 10px;
  }
  .hero-matches {
    left: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
    padding: 12px;
  }
  .hero-matches-title {
    font-size: 17px;
  }
  .hero-cta {
    margin-bottom: 25px;
  }
  .brands b {
    font-size: 16px;
  }
  .workspace,
  #results {
    margin: 40px 5%;
  }
  .section-heading {
    display: block;
  }
  .section-heading > p {
    margin-top: 15px;
  }
  h2 {
    font-size: 27px;
  }
  .studio {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 30px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }
  .result-toolbar {
    align-items: start;
    flex-direction: column;
  }
  .closing h2 {
    font-size: 25px;
  }
  footer {
    flex-wrap: wrap;
  }
  footer > span:last-child {
    width: 100%;
  }
  .header-link {
    font-size: 12px;
  }
}

.query-label,
.size-label {
  margin-top: 18px;
}
.query-label input {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
}
.palette {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0;
  font-size: 12px;
  color: var(--muted);
}
.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #0002;
}
.reset-crop {
  background: none;
  border: 0;
  text-decoration: underline;
  color: var(--green);
  padding: 5px 0;
  font-size: 12px;
}
.coverage {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.load-more {
  display: block;
  margin: 30px auto;
}
.error {
  color: var(--error);
}
.image-unavailable {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
}
.secondary[aria-pressed="true"] {
  background: var(--green);
  color: var(--on-green);
}

@media (max-width: 680px) {
  .brands {
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    gap: 10px;
    padding-block: 14px;
  }
  .brands-caption {
    grid-column: 1/-1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
  }
  .brands-caption > span {
    font-size: 11px;
  }
  .brands-caption > span br {
    display: none;
  }
  .brands-caption small {
    font-size: 11px;
    text-align: right;
  }
  .brands-track {
    gap: 27px;
  }
  .brands-track b {
    font-size: 15px;
  }
  .brands-arrow {
    width: 28px;
    height: 28px;
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brands-track {
    scroll-behavior: auto;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.account-open {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  font-size: 12px;
  text-decoration: none;
}
#account-notification-count,
#selection-count {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  margin-left: 5px;
  padding: 0 5px;
  place-items: center;
  border-radius: 99px;
  background: #a24d36;
  color: var(--on-green);
  font-size: 10px;
}
#account-notification-count[hidden],
#selection-count[hidden] {
  display: none;
}
.selection-icon-link {
  position: relative;
  display: inline-grid;
  width: 38px;
  height: 40px;
  place-items: center;
  color: var(--green);
}
.selection-icon-link svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}
.selection-icon-link #selection-count {
  position: absolute;
  top: 0;
  right: -1px;
  min-width: 18px;
  height: 18px;
  margin: 0;
  padding: 0 4px;
  border-radius: 99px;
  background: #a24d36;
  color: #fff;
  font-size: 9px;
}
.selection-preview {
  position: fixed;
  inset: 82px 5% auto auto;
  width: min(410px, calc(100vw - 28px));
  max-width: none;
  max-height: min(78dvh, 680px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 60px var(--shadow);
}
.selection-preview::backdrop {
  background: #17221c55;
  backdrop-filter: blur(2px);
}
.selection-preview-head,
.selection-preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: var(--paper);
}
.selection-preview-head {
  border-bottom: 1px solid var(--line);
}
.selection-preview-head .eyebrow {
  margin: 0 0 5px;
}
.selection-preview-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}
.selection-preview-head .secondary {
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 21px;
}
.selection-preview-items {
  max-height: min(52dvh, 460px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 18px;
}
.selection-preview-empty {
  margin: 0;
  padding: 20px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.selection-preview-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.selection-preview-image-link {
  display: block;
}
.selection-preview-thumb {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  width: 48px;
  height: 58px;
  border-radius: 3px;
  background: var(--surface-sunken);
}
.selection-preview-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.selection-preview-thumb .image-unavailable {
  padding: 6px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
}
.selection-preview-details {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.selection-preview-details a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.selection-preview-details small {
  color: var(--muted);
  font-size: 12px;
}
.selection-preview-foot {
  position: sticky;
  bottom: 0;
  justify-content: stretch;
  border-top: 1px solid var(--line);
}
.selection-preview-foot .primary {
  width: 100%;
  padding: 12px 14px;
  border-radius: 3px;
  color: var(--on-green);
  font-size: 12px;
  text-align: center;
}
.selection-preview[open] {
  display: flex;
  flex-direction: column;
}
.selection-preview[open] .selection-preview-items {
  flex: 1;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.profile-size-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--green);
  font-size: 12px;
}
.profile-size-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--green);
}
.profile-size-option input:disabled {
  cursor: not-allowed;
}
.similar-search-link {
  color: var(--green);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.reference-result-note {
  display: inline-block;
  margin: 0 0 18px;
  padding: 9px 12px;
  border-left: 2px solid var(--green);
  background: var(--tint);
  color: var(--green);
  font-size: 12px;
}
.reference-result-note[hidden] {
  display: none;
}
#catalog-reference-note {
  margin: 8px 0 0;
  padding: 9px 11px;
  border-radius: 3px;
  background: var(--tint);
  color: var(--green);
}
.cart-add {
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: transparent;
  color: var(--green);
  font-size: 12px;
}
.cart-add:hover {
  background: var(--tint);
}
.account-tabs {
  display: flex;
  gap: 8px;
  margin: 22px 0 12px;
}
.account-tabs button[aria-pressed="true"] {
  background: var(--green);
  color: var(--on-green);
}
.auth-card {
  width: min(460px, 100%);
  margin-top: 8px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px var(--shadow);
}
.auth-title {
  font-size: 26px;
}
.auth-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.auth-card .account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 22px 0 20px;
  padding: 4px;
  border-radius: 6px;
  background: var(--surface-sunken);
}
.auth-card .account-tabs button {
  border: 0;
  border-radius: 4px;
  min-height: 40px;
}
.auth-card .account-tabs button[aria-pressed="false"] {
  color: var(--text-soft);
}
.auth-card .account-form {
  max-width: none;
}
.auth-card .account-form .primary {
  justify-self: stretch;
  justify-content: center;
  min-height: 46px;
  margin-top: 6px;
  font-size: 14px;
}
.auth-card .account-privacy-note {
  margin: 18px 0 0;
}
.account-form,
.account-form label,
.account-size-grid label {
  display: grid;
  gap: 7px;
}
.account-form {
  max-width: 430px;
  gap: 14px;
}
.account-form input,
.account-size-grid select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
}
.account-form label,
.account-size-grid label {
  color: var(--green);
  font-size: 12px;
}
.account-form .primary,
.account-size-grid .primary,
.save-search-form .primary {
  justify-self: start;
  padding: 11px 16px;
  border: 0;
  border-radius: 3px;
  background: var(--green);
  color: var(--on-green);
  font-size: 12px;
}
.account-form .primary:disabled,
.account-size-grid .primary:disabled,
.save-search-form .primary:disabled {
  opacity: 0.55;
  cursor: wait;
}
.account-privacy-note,
.account-description,
.account-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.account-status {
  margin: 14px 0;
  color: var(--green);
  font-size: 12px;
}
.account-status[hidden] {
  display: none;
}
.account-section {
  margin-top: 26px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}
.account-section h3 {
  margin: 0 0 7px;
  font-size: 16px;
  font-weight: 600;
}
.account-description {
  margin: 0 0 13px;
}
.account-size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 12px;
}
.account-size-grid .primary {
  grid-column: 1 / -1;
  margin-top: 4px;
}
.account-user-row,
.account-item,
.account-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.account-user-row {
  margin: 16px 0 0;
  color: var(--green);
  font-size: 12px;
}
.account-user-row p {
  overflow-wrap: anywhere;
}
.account-user-row .secondary,
.account-item .secondary,
.account-section > .secondary {
  padding: 7px 10px;
  font-size: 12px;
}
.account-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}
.account-item {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.account-preset-item {
  align-items: flex-start;
}
.account-preset-details {
  flex: 1;
  min-width: 0;
}
.account-preset-details summary {
  display: flex;
  cursor: pointer;
  list-style-position: inside;
}
.account-preset-details summary::marker {
  color: var(--green);
}
.account-preset-results {
  display: grid;
  margin: 8px 0 0 17px;
}
.account-match-row {
  align-items: center;
}
.account-match-row .account-item-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.account-match-row .secondary {
  white-space: nowrap;
}
.account-item-details {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.account-item-details strong {
  overflow-wrap: anywhere;
}
.account-item small {
  color: var(--muted);
  line-height: 1.5;
}
.account-item a {
  color: var(--green);
  text-decoration: underline;
  white-space: nowrap;
}
.account-item-actions {
  flex-shrink: 0;
}
.account-section > .secondary {
  margin: 4px 0 8px;
}

.personal-page {
  width: min(1120px, calc(100% - 64px));
  min-height: 70vh;
  margin: 0 auto;
  padding: clamp(38px, 7vw, 82px) 0 72px;
}
.personal-intro {
  max-width: 760px;
  padding-bottom: 26px;
}
.personal-intro h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 70px);
  font-weight: 400;
  line-height: 1.05;
}
.personal-intro h1 em {
  color: var(--green);
  font-weight: 400;
}
.personal-intro > p:last-child {
  max-width: 590px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.personal-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.personal-subnav[hidden] {
  display: none;
}
.personal-subnav a,
.personal-footer a {
  color: var(--green);
  font-size: 12px;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.personal-subnav a {
  padding: 7px 12px;
  border-radius: 3px;
  background: var(--tint);
  text-decoration: none;
}
.personal-footer {
  padding: 24px 32px 38px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.account-item-thumb,
.selection-thumb,
.preset-preview {
  display: grid;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  background: var(--surface-sunken);
}
.account-item-thumb {
  width: 62px;
  height: 76px;
  border-radius: 3px;
}
.account-item-thumb img,
.selection-thumb img,
.preset-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-item-thumb .image-unavailable,
.selection-thumb .image-unavailable,
.preset-preview .image-unavailable {
  padding: 6px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
}
.preset-preview {
  width: 78px;
  height: 88px;
  border-radius: 3px;
}
.selection-list {
  gap: 0;
  margin-top: 24px;
}
.selection-item {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 18px 0;
}
.selection-thumb {
  width: 106px;
  height: 126px;
  border-radius: 4px;
}
.selection-item .account-item-details strong {
  font-size: 14px;
}
.selection-item .account-item-details small {
  font-size: 12px;
}
.selection-shop-link {
  display: inline-block;
  padding: 9px 12px;
  border-radius: 3px;
  color: white !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.selection-search-link {
  display: inline-block;
  margin-top: 8px;
  padding: 11px 15px;
  border-radius: 3px;
  color: var(--on-green);
  font-size: 12px;
  text-decoration: none;
}
.save-search-form {
  display: grid;
  grid-template-columns:
    minmax(190px, 1.3fr) minmax(150px, 0.8fr) minmax(180px, 1fr)
    auto;
  align-items: end;
  gap: 12px;
  margin: 12px 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
.save-search-form[hidden] {
  display: none;
}
.save-search-form > label:not(.profile-size-option) {
  display: grid;
  gap: 7px;
  color: var(--green);
  font-size: 12px;
}
.save-search-form input[name="name"] {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
}
.save-search-form input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}
.save-search-form small,
.save-search-form .helper {
  color: var(--muted);
}
.save-search-form .primary {
  min-height: 40px;
  padding: 10px 14px;
}
.save-search-form .helper {
  grid-column: 1 / -1;
  margin: 0;
}
.save-search-form .helper.error {
  color: var(--error);
}
.account-match-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
}
.account-preset-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}
.account-preset-item .account-preset-details {
  grid-column: 2;
  grid-row: 1;
}
.account-preset-item > .secondary {
  grid-column: 3;
  grid-row: 1;
}
.account-preset-item > .preset-preview {
  grid-column: 1;
  grid-row: 1;
}
.account-preset-details summary {
  align-items: center;
  min-height: 44px;
}
.account-preset-details summary .account-item-details {
  padding-left: 6px;
}
.account-preset-results .account-item {
  padding: 9px 0;
}
.account-preset-results .account-item-details small {
  font-size: 12px;
}
.account-preset-results .account-item-actions a {
  font-size: 12px;
}
@media (max-width: 760px) {
  .personal-page {
    width: min(100% - 36px, 620px);
    padding-top: 38px;
  }
  .selection-item {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
  }
  .selection-thumb {
    grid-row: span 2;
    width: 82px;
    height: 108px;
  }
  .selection-item .account-item-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
  .save-search-form {
    grid-template-columns: 1fr 1fr;
  }
  .save-search-form .primary {
    justify-self: start;
  }
}
@media (max-width: 480px) {
  .personal-page {
    width: calc(100% - 28px);
  }
  .selection-item {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px;
  }
  .selection-thumb {
    width: 70px;
    height: 94px;
  }
  .selection-item .account-item-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  .account-preset-item {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 8px;
  }
  .preset-preview {
    width: 58px;
    height: 68px;
  }
  .account-match-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }
  .account-match-row .account-item-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
  .account-item-thumb {
    width: 54px;
    height: 66px;
  }
  .save-search-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  header {
    gap: 12px;
  }
  .header-actions {
    gap: 13px;
  }
  .header-actions > .header-link {
    display: none;
  }
  .account-open {
    font-size: 12px;
  }
  .account-item {
    align-items: start;
    flex-direction: column;
  }
  .account-item-actions {
    width: 100%;
  }
  .account-preset-results {
    margin-left: 0;
  }
}

/* Audit UX: make the controls and product metadata readable at a glance. */
.store-filter-help {
  margin: -2px 0 12px;
  font-size: 12px;
  line-height: 1.6;
}
.advanced-filters {
  margin: 22px 0 18px;
  border-block: 1px solid var(--line);
}
.advanced-filters > summary {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 32px 14px 0;
  position: relative;
  cursor: pointer;
  list-style: none;
}
.advanced-filters > summary::-webkit-details-marker {
  display: none;
}
.advanced-filters > summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  translate: 0 -50%;
  color: var(--green);
  font-size: 22px;
  line-height: 1;
}
.advanced-filters[open] > summary::after {
  content: "−";
}
.advanced-filters > summary:focus-visible {
  outline-offset: 0;
}
.advanced-filters-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}
#advanced-filters-count {
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--lime);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
}
.advanced-filters > summary small {
  color: var(--muted);
  font-size: 12px;
}
.advanced-filters-body {
  padding-bottom: 18px;
}
.advanced-filters-body > label:first-child {
  margin-top: 4px;
}
.store-picker {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}
.store-picker > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  list-style: none;
}
.store-picker > summary::-webkit-details-marker {
  display: none;
}
.store-picker > summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: -3px;
}
.store-picker-action {
  color: var(--green);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.store-picker-body {
  padding: 12px;
  border-top: 1px solid var(--line);
}
.store-picker-body > label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}
#store-filter {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
}
#stores .chip {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 12px;
}
#stores {
  max-height: 220px;
  margin-top: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  align-content: start;
}
#stores .chip[hidden] {
  display: none;
}
#stores .chip:disabled {
  border-style: dashed;
  color: var(--disabled-text);
  cursor: not-allowed;
  opacity: 0.7;
}
.cart-add,
.account-open {
  min-height: 40px;
}
.cart-add {
  padding: 8px 12px;
  font-size: 12px;
}

@media (max-width: 680px) {
  .brands-caption > span,
  .brands-caption small {
    font-size: 11px;
  }
  .brands-arrow {
    width: 40px;
    height: 40px;
  }
}

/* Studio: keep the photo in view on desktop and the search action reachable on phones. */
@media (min-width: 681px) {
  .reference {
    position: sticky;
    top: 24px;
    align-self: start;
  }
}
@media (max-width: 680px) {
  .dropzone {
    min-height: 240px;
  }
  .search {
    position: sticky;
    bottom: 12px;
    z-index: 2;
    box-shadow: 0 6px 18px var(--shadow);
  }
}
