/* input(297,1): run-time error CSS1019: Unexpected token, found '}' */
/* Find Your Scent (/find-your-scent): the two questions, the result, the share block.
 *
 * Built to the approved phone mock-ups (docs/plans/mockups-quiz-v2/, spec: docs/plans/2026-10-26-find-your-scent-quiz-redesign.md
 * section 12). Mobile first. The page is a tool page (`.tool-page`, tools.css) on the site's 1200px container, like /gift, /layer
 * and /complement: it was a 640px column of its own with a second gutter, which DESIGN.md's Fixed-Measure and One-Gutter Rules
 * rule out (operator, 1st December 2026: "why is the reading column realy thin", "not consistent with the rest of the site").
 * Wider screens use the room: more tiles a row, the picks side by side, buttons sized to their label. Every colour and size is a token from core.css; nothing is
 * hardcoded except the ScentShape card, which is a fixed dark card in any theme.
 *
 * Prefixes: qz- is the quiz's older base (shell, option rows, search, the shared-result page); qv- is the redesigned
 * pieces (tiles, compact card, refine chips, ScentShape frame, sheets), named as they were in the mock-ups. */

/* No max-width and no horizontal padding: main.container owns the 1200px measure and the gutter (DESIGN.md). */
.qz-shell { width: 100%; box-sizing: border-box; }
.qz-shell h1 { font-size: clamp(1.6rem, 6.4vw, 2.1rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0.9rem 0 0; }
.qz-help { color: var(--color-text-secondary); margin: 0.5rem 0 0; }
.qz-note { color: var(--color-text-secondary); font-size: 0.875rem; line-height: 1.45; margin: 0.35rem 0 0; }
.qz-note a, .qz-help a { color: var(--color-accent-text); font-weight: 600; }
.qz-h2 { font-size: 1.25rem; line-height: 1.25; margin: 0 0 0.4rem; }
.qz-h3 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-secondary); margin: 1rem 0 0.25rem; }
.qz-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--color-accent-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.qz-headline { font-size: 1.125rem; font-weight: 600; margin: 0.4rem 0 0; color: var(--color-text-heading); }
.qv-ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- step row: Back beside the step count, then the progress rule ---- */
.qv-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.qv-back { display: inline-flex; align-items: center; gap: 0.15rem; min-height: 44px; padding-right: 0.75rem; margin-left: -0.25rem; font-weight: 600; color: var(--color-text-heading); text-decoration: none; }
.qv-step { font-size: 0.875rem; font-weight: 600; color: var(--color-text-secondary); }
.qz-progress { height: 4px; border-radius: 2px; background: var(--color-border-subtle); margin: 0; overflow: hidden; }
.qz-progress i { display: block; height: 100%; background: var(--color-accent-text); }
.qv-sub { color: var(--color-text-secondary); margin: 0.35rem 0 0; }
.qv-lead { color: var(--color-text-heading); font-weight: 600; font-size: 1.125rem; margin: 0.4rem 0 0; }

/* ---- Q1: the ten tiles ---- */
.qv-pick { margin: 0.85rem 0 0; font-size: 0.875rem; font-weight: 700; color: var(--color-text-heading); }
.qv-pick.is-warn { color: var(--color-text-heading); }
.qv-grid { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.qv-tile { position: relative; display: flex; flex-direction: column; box-sizing: border-box; height: 100%; overflow: hidden;
  border-radius: var(--radius-lg); border: 1.5px solid var(--color-border-subtle); background: var(--color-bg); cursor: pointer; }
.qv-tile input { position: absolute; opacity: 0; pointer-events: none; }
/* The smell's photograph across the top of the tile: the source itself, so the picture carries the smell before the label is read. */
.qv-tile__ph { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--color-card-bg); }
.qv-tile__tx { padding: 0.45rem 0.6rem 0.55rem; }
.qv-tile__tx b { display: block; font-size: 0.9375rem; line-height: 1.2; color: var(--color-text-heading); }
.qv-tile__tx small { display: block; font-size: 0.8125rem; line-height: 1.3; color: var(--color-text-secondary); margin-top: 0.1rem; }
.qv-tile__tick { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--color-bg); color: transparent; border: 1.5px solid var(--color-border); }
.qv-tile__tick svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.qv-tile:has(input:checked) { border-color: var(--color-accent-text); box-shadow: inset 0 0 0 1px var(--color-accent-text); background: var(--color-card-bg); }
.qv-tile:has(input:checked) .qv-tile__tick { background: var(--color-accent-text); border-color: var(--color-accent-text); color: #fff; }
.qv-tile:has(input:focus-visible) { outline: 3px solid var(--color-accent-text); outline-offset: 2px; }
.qv-tile--wide { justify-content: center; text-align: center; min-height: 48px; margin-top: 0.5rem; }
.qv-row { display: flex; align-items: center; gap: 0.5rem; min-height: 48px; margin-top: 0.25rem; padding: 0 0.15rem; color: var(--color-accent-text); font-weight: 600; text-decoration: none; cursor: pointer; }
.qv-row span { flex: 1; }

/* The primary button sits in normal page flow, never a floating bar. */
.qv-cta { width: 100%; box-sizing: border-box; min-height: 52px; margin-top: 0.75rem; font-size: 1rem; gap: 0.5rem; }
.qv-wide { width: 100%; box-sizing: border-box; min-height: 48px; }
.qv-alt { margin: 0.25rem 0 0; text-align: center; }
.qv-alt a, .qv-alt label, .qv-alt button { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--color-accent-text); text-underline-offset: 3px; cursor: pointer; }
.qv-alt a { text-decoration: underline; }
.qv-privacy { margin: 0.25rem 0 0; text-align: center; font-size: 0.875rem; }
.qv-privacy a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-text-secondary); text-underline-offset: 3px; }

/* ---- Q1: the perfume route replaces the grid in place ---- */
.qv-form[data-mode="smells"] .qv-panel--perfume, .qv-form[data-mode="smells"] .qv-h1--perfume, .qv-form[data-mode="smells"] .qv-alt--perfume { display: none; }
.qv-form[data-mode="perfume"] .qv-panel--smells, .qv-form[data-mode="perfume"] .qv-h1--smells { display: none; }
.qz-panel { margin: 0; padding: 0; border: 0; min-width: 0; }
.qv-search { display: flex; align-items: center; gap: 0.6rem; box-sizing: border-box; min-height: 52px; margin-top: 1.1rem; padding: 0 1rem; border: 1.5px solid var(--color-border); border-radius: var(--radius-lg); color: var(--color-text-secondary); background: var(--color-bg); }
.qv-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--color-text); min-height: 48px; }
.qv-search:has(input:focus-visible) { outline: 3px solid var(--color-accent-text); outline-offset: 1px; }
.qv-chosen { display: grid; grid-template-columns: 52px minmax(0, 1fr) 44px; gap: 0.75rem; align-items: center; margin-top: 0.75rem; padding: 0.5rem 0.4rem 0.5rem 0.6rem; border: 1.5px solid var(--color-accent-text); box-shadow: inset 0 0 0 1px var(--color-accent-text); border-radius: var(--radius-lg); background: var(--color-card-bg); }
.qv-chosen[hidden] { display: none; }
.qv-chosen:not(:has(.qv-chosen__img)) { grid-template-columns: minmax(0, 1fr) 44px; }
.qv-chosen__img { width: 52px; height: 68px; border-radius: var(--radius-md); background: #fff; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--color-border-subtle); }
.qv-chosen__img img { width: 100%; height: 100%; object-fit: contain; }
.qv-chosen__tx b { display: block; font-size: 1.125rem; color: var(--color-text-heading); line-height: 1.25; }
.qv-chosen__x { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--color-text-secondary); cursor: pointer; }

/* ---- Q2: option rows ---- */
.qv-opts { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.qz-opt { display: grid; grid-template-columns: minmax(0, 1fr) 26px; gap: 0.9rem; align-items: center; min-height: 64px; padding: 0.6rem 0.9rem;
  border-radius: var(--radius-lg); border: 1.5px solid var(--color-border-subtle); background: var(--color-bg); cursor: pointer; position: relative; }
.qz-opt input { position: absolute; opacity: 0; pointer-events: none; }
.qz-opt__text b { display: block; color: var(--color-text-heading); font-size: 1.125rem; }
.qz-opt__tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--color-border); display: grid; place-items: center; color: transparent; }
.qz-opt__tick svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.qz-opt:has(input:checked) { border-color: var(--color-accent-text); box-shadow: inset 0 0 0 1px var(--color-accent-text); background: var(--color-card-bg); }
.qz-opt:has(input:checked) .qz-opt__tick { background: var(--color-accent-text); border-color: var(--color-accent-text); color: #fff; }
.qz-opt:has(input:focus-visible) { outline: 3px solid var(--color-accent-text); outline-offset: 2px; }

/* ---- the refine controls ---- */
.qv--result h1 { margin-top: 0.6rem; }
.qv-brief { margin: 0.35rem 0 0; font-size: 0.9375rem; color: var(--color-text-secondary); }
.qv-brief button, .qv-brief a { font: inherit; font-weight: 600; color: var(--color-accent-text); text-underline-offset: 3px; text-decoration: underline; background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer; }
.qv-refine { display: flex; flex-wrap: wrap; gap: 0.4rem 0.35rem; margin-top: 0.85rem; }
.qv-chip { display: inline-flex; align-items: center; gap: 0.3rem; box-sizing: border-box; min-height: 44px; padding: 0 0.8rem; border-radius: 999px; border: 1.5px solid var(--color-border); background: var(--color-bg);
  font: inherit; font-size: 0.8125rem; font-weight: 600; color: var(--color-text-heading); cursor: pointer; text-decoration: none; }
.qv-chip.is-active { border-color: var(--color-accent-text); box-shadow: inset 0 0 0 1px var(--color-accent-text); background: var(--color-card-bg); }
.qv-chip__val { font-weight: 700; color: var(--color-accent-text); }
.qv-chip:focus-visible, .qv-brief button:focus-visible { outline: 3px solid var(--color-accent-text); outline-offset: 2px; }
.qv-chip--quiet { border-color: transparent; color: var(--color-accent-text); text-decoration: underline; text-underline-offset: 3px; padding: 0 0.3rem; }
.qz-notice, .qz-common { margin-top: 1rem; padding: 0.8rem 1rem; border-radius: var(--radius-lg); border: 1.5px solid var(--color-accent-text); background: var(--color-card-bg); }
.qz-notice p, .qz-common p { margin: 0.2rem 0; }
.qz-notice__acts { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.qz-empty { margin-top: 1.5rem; }

/* ---- the match from each pillar (Quiz/PillarPicksEnabled): the filter, then a section for each pillar ---- */
.qv-pillars-filter { margin-top: 1rem; }
.qv-pillars-filter fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.qv-pillars-filter legend { padding: 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-secondary); }
.qv-pillars { display: grid; gap: 1.4rem; margin-top: 1.1rem; }
.qv-pillar .qv-h2 { margin: 0; }
.qv-pillar .qv-picks { margin-top: 0.6rem; }
.qv-pillar__more { display: inline-flex; align-items: center; margin-top: 0.3rem; }
/* Cards in a row are one height: each stretches to the tallest, its buttons sit at its foot, and the links below line up. */
.qv-pillar { display: flex; flex-direction: column; }
.qv-pillar .qv-picks { flex: 1 1 auto; grid-auto-rows: 1fr; }
.qv-pillars .qv-card { display: flex; flex-direction: column; }
.qv-pillars .qv-card > .qv-pair { margin-top: auto; padding-top: 0.75rem; }
.qv-pillar__more { align-self: flex-start; }

/* ---- the compact cards ---- */
.qv-picks { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.qv-card { border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); padding: 0.9rem; background: var(--color-bg); }
.qv-card__head { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0.8rem; align-items: start; }
.qv-bottle { width: 56px; height: 74px; border-radius: var(--radius-md); background: #fff; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--color-border-subtle); }
.qv-bottle img { width: 100%; height: 100%; object-fit: contain; }
.qv-card__title p { margin: 0; }
.qv-role { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent-text); }
.qv-card__title h2, .qv-card__title h3 { font-size: 1.125rem; line-height: 1.25; margin: 0.15rem 0 0; }
.qv-card__title h2 a, .qv-card__title h3 a { color: var(--color-text-heading); text-decoration: none; }
.qv-brand { font-size: 0.875rem; color: var(--color-text-secondary); }
.qv-card__title .qv-eth { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.3rem; font-size: 0.8125rem; font-weight: 600; color: var(--color-accent-text); }
.qv-eth__ic { display: inline-flex; gap: 0.15rem; }
.qv-eth__ic svg { width: 16px; height: 16px; }
.qv-card__title p:last-child { margin-top: 0.35rem; }
.qv-line { margin: 0.7rem 0 0; font-size: 0.9375rem; line-height: 1.45; color: var(--color-text-secondary); }
.qv-line + .qv-line { margin-top: 0.3rem; }
.qv-line b { color: var(--color-text-heading); }
.qv-price { margin: 0.7rem 0 0; display: grid; gap: 0.05rem; color: var(--color-text-heading); }
.qv-price b { font-size: 0.9375rem; }
.qv-price small { font-size: 0.8125rem; color: var(--color-text-secondary); }
.qv-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.75rem; }
.qv-btn { box-sizing: border-box; min-height: 44px; padding: 0 0.75rem; gap: 0.25rem; font-size: 0.875rem; white-space: nowrap; }
.qv-btn .qv-ic { width: 1rem; height: 1rem; }
.qv-card.is-open { border-color: var(--color-border); box-shadow: var(--shadow-md); }
.qv-card.is-open .qv-btn[aria-expanded="true"] .qv-ic { transform: rotate(180deg); }

/* Details expands in place */
.qv-details { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--color-border-subtle); display: grid; gap: 0.75rem; }
.qv-details[hidden] { display: none; }
.qv-details__art { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-md); display: block; background: var(--color-card-bg); }
.qv-dl { margin: 0; display: grid; gap: 0; }
.qv-dl > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.5rem; padding: 0.55rem 0; border-bottom: 1px solid var(--color-border-subtle); font-size: 0.9375rem; }
.qv-dl > div:last-child { border-bottom: 0; }
.qv-dl dt { color: var(--color-text-secondary); font-size: 0.875rem; }
.qv-dl dd { margin: 0; color: var(--color-text-heading); }
.qv-dl dd small { display: block; color: var(--color-text-secondary); font-size: 0.8125rem; }
.qv-details .qv-pair { margin-top: 0; }
.qv-seg { box-sizing: border-box; min-height: 44px; border-radius: var(--radius-md); border: 1.5px solid var(--color-border); background: var(--color-bg); font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--color-text-heading); cursor: pointer; }
.qv-seg[aria-pressed="true"] { border-color: var(--color-accent-text); box-shadow: inset 0 0 0 1px var(--color-accent-text); background: var(--color-card-bg); }
.qz-react__form { display: grid; gap: 0.3rem; }
.qv-details .qv-alt { margin: -0.25rem 0 0; }
.qz-replace summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--color-accent-text); text-decoration: underline; text-underline-offset: 3px; }
.qz-replace summary::-webkit-details-marker { display: none; }
.qz-replace ul { list-style: none; margin: 0.25rem 0 0; padding: 0; display: grid; gap: 0.1rem; text-align: left; }
.qz-replace a, .qz-replace button { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-accent-text); font-weight: 600; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---- ScentShape: a fixed dark card in any theme ---- */
.qv-shape-wrap { margin-top: 1.75rem; max-width: 640px; } /* a phone-shaped card: its 4:3 frame would grow tall across the page */
.qv-shape { background: linear-gradient(180deg, #1A1A2E 0%, #0E0E1A 100%); color: #fff; border-radius: 20px; padding: 1.1rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.8rem; }
.qv-shape__pill { align-self: flex-start; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; padding: 0.25rem 0.75rem; color: #D6DDF0; }
.qv-shape__line { margin: 0; font-size: 1.75rem; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; color: #fff; }
.qv-toggle { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.qv-toggle button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 0.9375rem; font-weight: 600; color: #D6DDF0; cursor: pointer; }
.qv-toggle button.is-on { background: #00D4AA; color: #1A1A2E; }
.qv-toggle button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.qv-shape__frame { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.qv-shape__pane { position: absolute; inset: 0; display: grid; place-items: center; }
.qv-shape__pane[hidden] { display: none; }
.qv-shape__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.qv-shape__wheel { width: 100%; height: 100%; display: block; }
.qv-shape__ph, .qv-shape__fail { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-size: 0.875rem; color: #C0C0CE; pointer-events: none; }
.qv-shape__ph[hidden], .qv-shape__fail[hidden] { display: none; }
.qv-shape__key { margin: -0.3rem 0 0; font-size: 0.8125rem; color: #C0C0CE; }
.qv-shape__key[hidden] { display: none; }
.qv-shape__note { margin: 0; font-size: 0.8125rem; color: #C0C0CE; }
.qv-shape__sub { margin: -0.45rem 0 0; font-size: 0.8125rem; color: #C0C0CE; }

/* ---- compare, share, account ---- */
.qv-compare { margin-top: 0.9rem; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-bg); }
.qv-compare summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 1rem; font-weight: 700; color: var(--color-text-heading); cursor: pointer; list-style: none; }
.qv-compare summary::-webkit-details-marker { display: none; }
.qv-compare[open] summary .qv-ic { transform: rotate(180deg); }
.qv-compare__body { padding: 0 1rem 1rem; }
.qz-wheels__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.75rem; }
.qz-wheel { margin: 0; text-align: center; }
.qz-wheel__svg { width: 100%; height: auto; display: block; }
.qz-wheel figcaption { font-size: 0.8125rem; color: var(--color-text-secondary); margin-top: 0.25rem; overflow-wrap: anywhere; }
@media (max-width: 480px) { .qz-wheels__row { grid-template-columns: 1fr; } .qz-wheel__svg { max-width: 320px; margin: 0 auto; } }
.qv-share, .qz-account, .qz-owner { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--color-border-subtle); }
.qv-share p, .qv-account p { margin: 0; color: var(--color-text-secondary); }
.qv-share .qv-cta { margin-top: 0.9rem; }
.qv-more { text-align: center; }
.qv-more summary { list-style: none; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--color-accent-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.qv-more summary::-webkit-details-marker { display: none; }
.qv-more__acts { display: grid; gap: 0.5rem; margin-top: 0.25rem; text-align: left; }
.qv-more__acts .btn { min-height: 48px; }
.qz-share__form { display: contents; }
.qz-share__link { margin-top: 0.5rem; }
.qz-link-made__row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.qz-link-made__row .qz-input { flex: 1 1 220px; }
.qv-account { margin-top: 1.25rem; padding: 1rem; border-radius: var(--radius-lg); background: var(--color-card-bg); border: 1px solid var(--color-border-subtle); }
.qv-account .qv-wide { margin-top: 0.8rem; background: var(--color-bg); }
.qv--result .qv-privacy { margin-top: 1rem; }

/* The full privacy text lives in one section the "Your answers and privacy" link points at. It shows when it is the target. */
.qz-privacy { display: none; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--color-border-subtle); color: var(--color-text-secondary); font-size: 0.9375rem; }
.qz-privacy:target { display: block; }
.qz-privacy h2 { font-size: 1.125rem; color: var(--color-text-heading); }
.qz-privacy a { color: var(--color-accent-text); font-weight: 600; }

/* ---- inputs, searches, chips (the sheets and the perfume route) ---- */
.qz-input { width: 100%; box-sizing: border-box; min-height: 48px; padding: 0 1rem; border-radius: var(--radius-md); border: 1.5px solid var(--color-border); background: var(--color-bg); color: var(--color-text); font: inherit; }
.qz-input:focus-visible { outline: 3px solid var(--color-accent-text); outline-offset: 1px; }
.qz-search { position: relative; margin-top: 0.5rem; }
.qz-search__results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); background: var(--color-bg); border: 1.5px solid var(--color-border); border-radius: var(--radius-lg); max-height: 320px; overflow: auto; box-shadow: var(--shadow-dock); }
.qz-search__results[hidden] { display: none; }
.qz-search__results a { display: block; padding: 0.7rem 1rem; color: var(--color-text-heading); text-decoration: none; min-height: 44px; box-sizing: border-box; }
.qz-search__results a:hover, .qz-search__results a:focus-visible { background: var(--color-card-bg); }
.qz-tags { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.qz-tags button { min-height: 44px; border-radius: 999px; border: 1.5px solid var(--color-border); background: var(--color-card-bg); padding: 0 0.85rem; font: inherit; font-size: 0.875rem; cursor: pointer; color: var(--color-text-heading); }
.qz-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.qz-chip { position: relative; display: inline-flex; }
.qz-chip input { position: absolute; opacity: 0; pointer-events: none; }
.qz-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--color-border); background: transparent; font-size: 0.875rem; font-weight: 600; color: var(--color-text-heading); cursor: pointer; }
.qz-chip input:checked + span { border-color: var(--color-accent-text); box-shadow: inset 0 0 0 1px var(--color-accent-text); background: var(--color-card-bg); }
.qz-chip input:focus-visible + span { outline: 3px solid var(--color-accent-text); outline-offset: 2px; }
.qz-chip input:disabled + span { opacity: 0.45; cursor: not-allowed; }
.qz-worn { margin-top: 0.75rem; padding: 0.75rem; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); }
.qz-worn[hidden] { display: none; }
.qz-chips--tight { margin-top: 0.4rem; }

/* ---- the refine sheets: a native <dialog> bottom sheet, the site's phone pattern (collection.css .coll-sheet) ---- */
.qv-sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--color-text); overflow: visible; z-index: 110; }
.qv-sheet::backdrop { background: rgba(10, 10, 26, 0.55); }
.qv-sheet__panel { display: flex; flex-direction: column; box-sizing: border-box; max-width: 640px; margin: 0 auto; max-height: 88vh; max-height: 88dvh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--color-bg); box-shadow: var(--shadow-lg); }
.qv-sheet__panel::before { content: ""; display: block; flex: 0 0 auto; width: 40px; height: 4px; margin: 0.6rem auto 0; border-radius: 999px; background: var(--color-border); }
.qv-sheet__hdr { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; flex: 0 0 auto; min-height: 56px; padding: 0 var(--space-md); border-bottom: 1px solid var(--color-border-subtle); }
.qv-sheet__hdr h2 { margin: 0; font-size: 1.125rem; font-family: var(--font-display); color: var(--color-text-heading); text-align: center; grid-column: 2; }
.qv-sheet__close { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.25rem; font: inherit; font-weight: 700; color: var(--color-accent-text); background: none; border: 0; cursor: pointer; }
.qv-sheet__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-md); }
.qv-sheet__q { margin: 0; font-weight: 700; color: var(--color-text-heading); }
.qv-sheet__q small { font-weight: 400; color: var(--color-text-secondary); font-size: 0.8125rem; }
.qv-amts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.75rem; }
.qv-amt { position: relative; }
.qv-amt input { position: absolute; opacity: 0; pointer-events: none; }
.qv-amt span { display: grid; place-items: center; box-sizing: border-box; min-height: 48px; border-radius: var(--radius-md); border: 1.5px solid var(--color-border); font-weight: 600; font-size: 0.9375rem; color: var(--color-text-heading); background: var(--color-bg); cursor: pointer; }
.qv-amt input:checked + span { border-color: var(--color-accent-text); box-shadow: inset 0 0 0 1px var(--color-accent-text); background: var(--color-card-bg); }
.qv-amt input:focus-visible + span { outline: 3px solid var(--color-accent-text); outline-offset: 2px; }
.qv-money { display: flex; align-items: center; gap: 0.5rem; box-sizing: border-box; min-height: 48px; margin-top: 0.75rem; padding: 0 0.9rem; border: 1.5px solid var(--color-border); border-radius: var(--radius-md); font-weight: 700; color: var(--color-text-heading); }
.qv-money input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-weight: 400; color: var(--color-text); min-height: 44px; }
.qv-money:has(input:focus-visible) { outline: 3px solid var(--color-accent-text); outline-offset: 1px; }
.qv-sheet__note { margin: 0.75rem 0 0; font-size: 0.875rem; color: var(--color-text-secondary); }
.qv-sheet__note button { font: inherit; font-weight: 600; color: var(--color-accent-text); background: none; border: 0; padding: 0; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.qv-sheet__ftr { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); flex: 0 0 auto; background: var(--color-bg); color: var(--color-text); padding: var(--space-sm) var(--space-md); padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--color-border-subtle); }
.qv-sheet__ftr .btn { min-height: 48px; font-size: 0.9375rem; }
.qv-sheet__add { margin-top: 0.5rem; }
body:has(.qv-sheet[open]) { overflow: hidden; }

/* ---- the shared-result page (FindYourScentShare) keeps the older card ---- */
.qz-picks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.qz-card { border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); padding: 1rem; background: var(--color-bg); }
.qz-card__role { margin: 0 0 0.6rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent-text); }
.qz-card__head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 0.9rem; align-items: start; }
.qz-picks--shared .qz-card__head { grid-template-columns: 64px minmax(0, 1fr); }
.qz-bottle { width: 64px; height: 84px; border-radius: var(--radius-md); background: #fff; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--color-border-subtle); }
.qz-bottle img { width: 100%; height: 100%; object-fit: contain; }
.qz-card__title h2 { margin: 0; font-size: 1.125rem; line-height: 1.25; }
.qz-card__title h2 a { color: var(--color-text-heading); text-decoration: none; }
.qz-card__title p { margin: 0.2rem 0 0; }
.qz-card__brand { color: var(--color-text-secondary); font-size: 0.9375rem; }
.qz-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin: 0.7rem 0 0; }
.qz-links a { color: var(--color-accent-text); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

/* ---- motion: cards fade in within 300 ms; nothing moves under prefers-reduced-motion ---- */
@media (prefers-reduced-motion: no-preference) {
  .qz-opt, .qv-tile, .qz-chip span, .qv-chip { transition: border-color 0.15s ease, background-color 0.15s ease; }
  .qv-card { animation: qv-in 200ms ease-out both; }
  .qv-picks > li:nth-child(2) { animation-delay: 40ms; }
  .qv-picks > li:nth-child(3) { animation-delay: 80ms; }
  @keyframes qv-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  .qv-shape__ph { animation: qv-pulse 1.4s ease-in-out infinite; }
  @keyframes qv-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
  .qv-sheet[open] .qv-sheet__panel { animation: qv-sheet-up 200ms ease; }
  @keyframes qv-sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}
/* Wider screens: more tiles a row (ten tiles: three rows of three and one, then two rows of five), the answers two a row, the picks
   side by side, and the primary button sized to its label instead of running the full width of the page. */
@media (min-width: 640px) {
  .qv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qv-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .qv-cta { width: auto; min-width: 320px; padding-inline: var(--space-xl); }
}
@media (min-width: 1024px) {
  .qv-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .qv-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  /* One column a pillar that has a match, side by side; each section's own list is a single card, so it stays one column. */
  .qv-pillars { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: stretch; }
  .qv-pillar .qv-picks { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  /* The "more" view is one pillar's six: three a row, as the three picks are. */
  .qv-pillars--more { grid-auto-flow: row; grid-auto-columns: auto; }
  .qv-pillars--more .qv-pillar .qv-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
