:root {
  --bg-1: #f3f4f6;
  --bg-2: #eceff3;
  --card: #f7f8fb;
  --panel: #ffffff;
  --text: #1b2230;
  --muted: #6a7281;
  --accent: #9c7f63;
  --accent-deep: #7f674f;
  --line: #ccd5e1;
  --shadow: 0 10px 28px rgba(35, 44, 60, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}
.shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px 22px 50px;
}
.hero {
  text-align: left;
  margin-bottom: 16px;
  border-radius: 20px;
  padding: 28px 32px;
}
.premium-panel {
  background: rgba(255,255,255,0.68);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.hero-glow { display:none; }
.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
  color: var(--muted);
}
h1, .question, .product-copy h3, .collection-card h3, .info-panel h2 {
  font-family: 'Playfair Display', Georgia, serif;
}
h1 {
  margin: 0 0 10px;
  font-size: 46px;
}
.sub, .muted {
  color: var(--muted);
  line-height: 1.55;
}
.feature-strip, .secondary-panels, .footer-note { display:none; }
.card.benchmark-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.benchmark-card > * {
  background: rgba(255,255,255,0.5);
}
.benchmark-card {
  padding: 12px 0 0;
}
.question {
  margin: 0 0 8px;
  font-size: 28px;
}
.intro-copy { margin: 0 0 20px; }
.label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #9097a3;
  margin-bottom: 8px;
}
.progress {
  height: 3px;
  background: #d7dde6;
  margin: 0 0 28px;
}
.progress > div {
  height: 100%;
  background: var(--accent);
}
.benchmark-card {
  max-width: 1040px;
  margin: 0 auto;
}
.summary-row {
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding: 14px 4px;
  border-bottom:1px solid var(--line);
  font-size:14px;
}
.summary-row span { letter-spacing:.12em; font-size:12px; color:var(--text); }
.summary-row strong { color: var(--accent); font-weight:500; }
.step-prompt {
  margin: 18px 0 12px;
  font-size: 17px;
  font-weight: 500;
}
.pill-grid {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.age-range-row {
  margin-top: 14px;
}
.age-range-pill {
  opacity: 0.88;
}
.age-range-pill:hover {
  opacity: 1;
}
.reveal-row {
  animation: fadeSlideIn .18s ease;
}
.option, .button, button {
  border-radius: 999px;
  border: 1px solid #bfd0e3;
  background: #f7f9fc;
  padding: 12px 20px;
  color: var(--text);
  cursor: pointer;
  font: inherit;
}
.option.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.other-input, .feedback-box {
  width: 100%;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #bfd0e3;
  border-radius: 10px;
  background: rgba(255,255,255,0.95);
  font: inherit;
}
.custom-label {
  display:block;
  margin-top:16px;
  font-size:14px;
}
.form-error {
  margin: 0 0 14px;
  color: #a0372f;
  font-size: 14px;
}
.actions {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.nav-actions { justify-content:flex-end; margin-top:20px; }
.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.secondary {
  background: #f7f9fc;
}
.review-topline {
  display:flex;
  justify-content:space-between;
  margin-bottom: 16px;
  font-size: 16px;
}
.review-layout, .summary-end-layout {
  display:grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 28px;
  align-items: start;
}
.review-main {
  display:grid;
  grid-template-columns: 360px minmax(0,1fr);
  gap: 26px;
  background: rgba(255,255,255,0.92);
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:var(--shadow);
  padding:14px;
}
.product-image-wrap {
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:340px;
  padding: 18px;
}
.product-image {
  max-width:100%;
  max-height:320px;
  object-fit:contain;
}
.product-copy h3 {
  margin: 12px 0;
  font-size: 24px;
  line-height:1.25;
}
.product-header-row {
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
}
.price { font-size: 18px; font-weight: 600; color: var(--text); }
.link-quality-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a7469;
}
.full-width { display:block; width:100%; text-align:center; text-decoration:none; margin: 18px 0; }
.review-actions { justify-content:space-between; }
.review-actions > * { flex: 1; text-align:center; border-radius:12px; }
.discard-btn { color: #d43c33; border-color: #efb4b1; }
.liked-sidebar {
  background: rgba(255,255,255,0.6);
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
}
.liked-sidebar-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-bottom:12px;
  border-bottom:1px solid var(--line);
  font-weight:600;
}
.liked-badge {
  display:inline-flex;
  width:24px;
  height:24px;
  border-radius:50%;
  align-items:center;
  justify-content:center;
  background:#dce3ec;
  font-size:13px;
}
.liked-list { display:grid; gap:12px; padding-top:14px; }
.liked-item {
  display:grid;
  grid-template-columns: 76px 1fr;
  gap:12px;
  background: rgba(255,255,255,0.92);
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px;
}
.liked-thumb {
  width:64px;
  height:64px;
  object-fit:contain;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
}
.liked-title { font-weight:500; margin-bottom:4px; }
.liked-price { margin-bottom:8px; }
.liked-shop-btn {
  display:inline-block;
  width:100%;
  text-align:center;
  text-decoration:none;
  background: var(--accent);
  color:#fff;
  border-color:var(--accent);
  border-radius:10px;
  padding:10px 12px;
}
.liked-empty {
  color: var(--muted);
  text-align:center;
  padding:26px 10px;
}
.progress-dots {
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:18px;
}
.dot {
  width:10px;
  height:10px;
  border-radius:50%;
  background:#c6d1de;
}
.dot.active { background:#1d8bcd; }
.dot.liked { background:var(--accent); }
.summary-end-main {
  background: rgba(255,255,255,0.92);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:40px;
  text-align:center;
}
.soft-divider {
  border:none;
  border-top:1px solid var(--line);
  margin:30px 0;
}
.generated-notice {
  text-align:center;
  color: var(--accent-deep);
  font-size: 14px;
  margin-bottom: 12px;
  animation: fadeSlideIn .35s ease;
}
.loading-state {
  animation: fadeSlideIn .25s ease;
}
.loading-panel {
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:18px;
  padding:16px 0 4px;
}
.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #d5dde7;
  border-top-color: var(--accent);
  animation: spin .9s linear infinite;
}
.loading-message {
  margin: 0;
  color: var(--muted);
}
.loading-progress {
  overflow:hidden;
}
.loading-progress-bar {
  width: 34%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  animation: loadingSweep 1.35s ease-in-out infinite;
}
.summary-subline { font-size:18px; margin-bottom:16px; }
.feedback-box { min-height:86px; }
.centered-actions { justify-content:center; }
.summary-actions { flex-direction:column; align-items:center; }
.refresh-btn[disabled] { opacity:0.5; cursor:not-allowed; }
.collection-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin-bottom:20px;
}
.collection-grid {
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:24px;
}
.collection-card {
  position:relative;
  background: rgba(255,255,255,0.92);
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:var(--shadow);
  padding:24px;
}
.collection-image {
  width:100%;
  height:260px;
  object-fit:contain;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  margin-bottom:16px;
}
.remove-btn {
  position:absolute;
  top:14px;
  right:14px;
  width:34px;
  height:34px;
  border-radius:50%;
  background:#fff;
}
.read-more {
  display:inline-block;
  margin-bottom:12px;
  color: var(--accent);
  text-decoration:none;
}
.collection-price { font-size: 24px; margin-bottom: 12px; }
@media (max-width: 1100px) {
  .review-layout, .summary-end-layout { grid-template-columns: 1fr; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes loadingSweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 760px) {
  .shell { padding: 14px; }
  .hero { padding: 20px; }
  h1 { font-size: 34px; }
  .benchmark-card { max-width: 100%; }
  .review-main { grid-template-columns: 1fr; }
  .collection-head { flex-direction:column; align-items:flex-start; gap:12px; }
  .collection-grid { grid-template-columns: 1fr; }
  .nav-actions, .actions { width:100%; }
  .nav-actions > *, .actions > * { width:100%; }
}
