body.product-match {
  min-height: 100dvh;
  opacity: 1;
}

.pm-shell {
  max-width: 920px;
}

.pm-page {
  padding-top: 10px;
}

.pm-hero {
  margin-bottom: 22px;
}

.pm-kicker {
  margin: 0 0 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted2);
}

.pm-hero h1 {
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.pm-wizard-head {
  margin: 0 0 18px;
}

.pm-wizard-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.pm-wizard-head__label {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.pm-area-count {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(47, 107, 79, 0.12);
  color: #146b4a;
  font-size: 12px;
  font-weight: 800;
}

.pm-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(10, 26, 20, 0.08);
  overflow: hidden;
}

.pm-track > span {
  display: block;
  height: 100%;
  width: 10%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f6b4f, #4aa77a);
  transition: width 0.35s ease;
}

.pm-dots {
  display: flex;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.pm-dots li {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(10, 26, 20, 0.1);
}

.pm-dots li.is-done,
.pm-dots li.is-active {
  background: #2f6b4f;
}

.pm-step {
  animation: pmStepIn 0.32s ease both;
}

@keyframes pmStepIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.pm-wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.pm-wizard-nav .btn {
  min-width: 120px;
}

.pm-summary {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.pm-summary div {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8f6f1, #ffffff);
  border: 1px solid rgba(10, 26, 20, 0.06);
}

.pm-summary dt {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted2);
}

.pm-summary dd {
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
}

.pm-bubble {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 18px 50px rgba(10, 26, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 24px;
  backdrop-filter: blur(16px);
}

.pm-bubble + .pm-bubble {
  margin-top: 16px;
}

.pm-bubble h2,
.pm-panel h3 {
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.pm-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.pm-choices--count {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pm-choice {
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(10, 26, 20, 0.1);
  background: linear-gradient(180deg, #ffffff, #f7f3ea);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pm-choice:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 107, 79, 0.35);
}

.pm-choice.is-selected {
  border-color: rgba(47, 107, 79, 0.55);
  background: linear-gradient(180deg, #f3faf6, #ffffff);
  box-shadow: 0 10px 24px rgba(47, 107, 79, 0.12);
}

.pm-ready {
  animation: pmReadyIn 0.55s ease both;
}

@keyframes pmReadyIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.pm-ready__badge {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(46, 229, 157, 0.16);
  color: #146b4a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pm-ready__copy {
  margin: 0 0 18px;
  line-height: 1.7;
  color: var(--muted);
}

.pm-lockframe {
  position: relative;
  margin: 0 0 18px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(10, 26, 20, 0.08);
}

.pm-lockframe__glass {
  position: relative;
  min-height: 168px;
  padding: 16px;
  background:
    radial-gradient(400px 160px at 20% 20%, rgba(47, 107, 79, 0.12), transparent 60%),
    linear-gradient(180deg, #f7f3ea, #eef2ef);
}

.pm-ghost-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  filter: blur(1.5px);
  opacity: 0.55;
}

.pm-ghost-grid span {
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1.5px dashed rgba(47, 107, 79, 0.28);
  background: rgba(255, 255, 255, 0.7);
}

.pm-lockframe__lock {
  position: absolute;
  inset: auto 16px 16px;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10, 26, 20, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.pm-ready__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 14px;
}

.pm-ready__price strong {
  font-size: 36px;
  letter-spacing: -0.04em;
}

.pm-ready .btn + .btn {
  margin-top: 8px;
}

.pm-scan h3 {
  font-size: 18px;
}

.pm-callout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(47, 107, 79, 0.18);
  background: linear-gradient(180deg, #f7faf8, #ffffff);
  color: var(--text);
  line-height: 1.55;
}

.pm-callout p,
.pm-callout ul {
  margin: 4px 0 0;
}

.pm-callout ul {
  padding-left: 18px;
}

.pm-callout li + li {
  margin-top: 6px;
}

.pm-callout__icon {
  flex: 0 0 auto;
  line-height: 1.4;
}

.pm-callout--note {
  border-color: rgba(47, 107, 79, 0.22);
  background: linear-gradient(180deg, #f3faf6, #ffffff);
}

.pm-callout--camera {
  border-color: rgba(10, 26, 20, 0.12);
  background: linear-gradient(180deg, #f6f7f6, #ffffff);
}

.pm-callout--tip {
  align-items: center;
  border-color: rgba(203, 191, 154, 0.55);
  background: linear-gradient(180deg, #fbf8ef, #ffffff);
}

.pm-callout--warn {
  border-color: rgba(47, 107, 79, 0.16);
  background: linear-gradient(180deg, #f7f8f6, #ffffff);
}

.pm-grid {
  display: grid;
  gap: 16px;
  margin: 18px 0 20px;
}

@media (min-width: 880px) {
  .pm-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.pm-panel {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(10, 26, 20, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 243, 234, 0.7));
}

.pm-slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

@media (max-width: 640px) {
  .pm-choices {
    grid-template-columns: 1fr;
  }
  .pm-choices--count {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .pm-slots,
  .pm-ghost-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pm-slot {
  position: relative;
  aspect-ratio: 1;
  border-radius: 18px;
  border: 1.5px dashed rgba(47, 107, 79, 0.35);
  background: #f7f3ea;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
}

.pm-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-slot__add {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 22px;
  font-weight: 700;
}

.pm-slot__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 26, 20, 0.75);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}

.pm-slot.is-filled {
  border-style: solid;
  border-color: rgba(47, 107, 79, 0.4);
}

.pm-results {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.pm-diag__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.pm-score {
  min-width: 92px;
  text-align: right;
}

.pm-score strong {
  display: block;
  font-size: 34px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pm-metrics {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

@media (min-width: 720px) {
  .pm-metrics {
    grid-template-columns: 1fr 1fr;
  }
}

.pm-metric {
  background: linear-gradient(180deg, #ffffff, #f8f6f1);
  border-radius: 20px;
  border: 1px solid rgba(10, 26, 20, 0.08);
  padding: 14px 16px;
}

.pm-metric__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  font-weight: 800;
}

.pm-metric__score {
  font-size: 20px;
  letter-spacing: -0.04em;
  color: #2f6b4f;
}

.pm-metric__bar {
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(10, 26, 20, 0.08);
  overflow: hidden;
}

.pm-metric__bar > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(47, 107, 79, 0.28);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.pm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.pm-chip {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(47, 107, 79, 0.1);
  color: #2f6b4f;
  font-size: 11px;
  font-weight: 800;
}

.pm-alt__try {
  margin: 8px 0 0;
  font-size: 17px;
  font-weight: 800;
}

.pm-product-grid,
.pm-alt-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.pm-product,
.pm-alt,
.pm-warning {
  border-radius: 22px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(10, 26, 20, 0.08);
  box-shadow: 0 10px 28px rgba(10, 26, 20, 0.04);
}

.pm-product--safe { border-color: rgba(46, 229, 157, 0.45); background: linear-gradient(180deg, #f3fff8, #fff); }
.pm-product--caution { border-color: rgba(212, 160, 23, 0.45); background: linear-gradient(180deg, #fff8e8, #fff); }
.pm-product--conflict { border-color: rgba(255, 77, 109, 0.4); background: linear-gradient(180deg, #fff1f4, #fff); }

.pm-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pm-badge--good,
.pm-badge--safe { background: rgba(46, 229, 157, 0.18); color: #146b4a; }
.pm-badge--mixed,
.pm-badge--caution { background: rgba(203, 191, 154, 0.45); color: #5b4e2a; }
.pm-badge--poor,
.pm-badge--high,
.pm-badge--conflict { background: rgba(255, 77, 109, 0.16); color: #a11b3a; }
.pm-badge--medium { background: rgba(255, 176, 32, 0.2); color: #8a5a00; }
.pm-badge--low { background: rgba(47, 107, 79, 0.12); color: #2f6b4f; }

.pm-toast {
  margin-top: 14px;
  min-height: 1.4em;
  color: var(--muted);
}

.pm-toast[data-tone="error"] { color: #a11b3a; }
.pm-toast[data-tone="info"] { color: #146b4a; }

.pm-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.topnav--drawer .topnav__feature {
  width: 100%;
  justify-content: flex-start;
}

.pm-dash__hero {
  display: grid;
  place-items: center;
  margin: 18px 0 8px;
}

.pm-dash__minis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.pm-ring {
  --p: 0;
  width: 92px;
  height: 92px;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(#2f6b4f calc(var(--p) * 1%), #e8ece9 0);
  display: grid;
  place-items: center;
}

.pm-ring--hero {
  width: 176px;
  height: 176px;
}

.pm-ring__inner {
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(10, 26, 20, 0.04);
}

.pm-ring__inner strong {
  font-size: 18px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pm-ring--hero .pm-ring__inner strong {
  font-size: 34px;
}

.pm-ring__inner span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted2);
}

.pm-scan-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.pm-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pm-thumb {
  margin: 0;
  width: 92px;
}

.pm-thumb img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(10, 26, 20, 0.08);
}

.pm-thumb figcaption {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.pm-rate {
  margin-top: 14px;
}

.pm-rate__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 800;
  margin-bottom: 8px;
}

.pm-ing,
.pm-rec {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(10, 26, 20, 0.08);
}

.pm-rec-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .pm-rec-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pm-rec__price {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pm-dash {
  background:
    radial-gradient(circle at 50% 18%, rgba(47, 107, 79, 0.16), transparent 42%),
    linear-gradient(180deg, #f7fbf8, #ffffff);
}

.pm-dash__summary {
  margin: 18px 0 0;
  line-height: 1.7;
  color: var(--muted);
}

.pm-thumbs-cols {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

@media (min-width: 720px) {
  .pm-thumbs-cols {
    grid-template-columns: 1fr 1fr;
  }
}

.pm-thumbs-cols__label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted2);
}

.pm-thumb--empty .pm-thumb__ph,
.pm-thumb__ph {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  border: 1.5px dashed rgba(47, 107, 79, 0.28);
  background:
    linear-gradient(135deg, rgba(47, 107, 79, 0.08), rgba(255, 255, 255, 0.9)),
    repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(47, 107, 79, 0.05) 6px, rgba(47, 107, 79, 0.05) 7px);
}

.pm-empty {
  margin-top: 10px;
  padding: 18px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8f6f1, #fff);
  border: 1px dashed rgba(10, 26, 20, 0.14);
}

.pm-empty strong {
  display: block;
  margin-bottom: 6px;
}

.pm-vault {
  margin-top: 18px;
}

.pm-vault__list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.pm-vault__card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(10, 26, 20, 0.08);
  border-radius: 18px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.pm-vault__card img,
.pm-vault__card .pm-thumb__ph {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
}

.pm-vault__card strong {
  display: block;
}

.pm-ing {
  background: linear-gradient(180deg, #f7fbf8, #fff);
}

.pm-blueprint {
  background:
    linear-gradient(180deg, #f4fbf6, #ffffff);
}

.pm-flow {
  margin-top: 16px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(47, 107, 79, 0.14);
  background: #fff;
}

.pm-flow__title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #146b4a;
}

.pm-flow__chain {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  margin: 0;
  padding: 0;
}

.pm-flow__step {
  flex: 1 1 140px;
  min-width: 132px;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7fbf8, #fff);
  border: 1px solid rgba(10, 26, 20, 0.08);
}

.pm-flow__badge {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(47, 107, 79, 0.12);
  color: #146b4a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pm-flow__step strong,
.pm-flow__step em {
  display: block;
}

.pm-flow__step em {
  margin-top: 4px;
  font-style: normal;
  color: var(--muted);
  line-height: 1.45;
}

.pm-flow__arrow {
  display: grid;
  place-items: center;
  min-width: 22px;
  color: #2f6b4f;
  font-weight: 800;
}

.pm-blueprint-mini {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2f6b4f, #4aa77a);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

.pm-vault__card--blueprint {
  border-color: rgba(47, 107, 79, 0.22);
}

@media print {
  body.product-match * { visibility: hidden; }
  [data-pm-blueprint], [data-pm-blueprint] * { visibility: visible; }
  [data-pm-blueprint] {
    position: absolute;
    inset: 12px;
    box-shadow: none;
  }
  [data-pm-blueprint-save], [data-pm-blueprint-status] { display: none !important; }
}
