/* Monipick home: search, purposes, filters, card grid, compare tray and dialogs. Requires monipick-theme.css. */
.wrap { max-width: 1200px; margin: auto; padding: 0 24px; }
/* Keep focused or scrolled-to cards clear of the sticky header/filter bar and the floating tray. */
html { scroll-padding-top: 200px; scroll-padding-bottom: 100px; }

/* header search */
.header-search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; height: 40px; width: 300px; transition: box-shadow 0.2s, border-color 0.2s; }
.header-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 10%, transparent); }
.header-search svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.header-search input { border: 0; outline: 0; background: none; font-size: 14px; width: 100%; min-width: 0; }
.header-search input::-webkit-search-cancel-button { cursor: pointer; }
.home .research-notice { max-width: 1200px; margin: 16px auto; padding: 0 24px; }

/* showroom hero: the monitor on the page runs live spec demos (monipick-showroom.js) */
.hero { padding-top: 34px; padding-bottom: 14px; display: grid; gap: 18px; }
.hero h1 { font-size: clamp(33px, 5.4vw, 54px); line-height: 1.2; letter-spacing: -0.035em; margin: 0; font-weight: 800; text-wrap: balance; }
.hero-copy { font-size: 16.5px; color: var(--muted); margin: 0; max-width: 30em; }
.sr-mon { width: 100%; max-width: 620px; justify-self: center; margin-top: 4px; }
.sr-bezel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 7px; box-shadow: 0 44px 90px -34px color-mix(in srgb, var(--brand) 60%, transparent), 0 0 70px -12px color-mix(in srgb, var(--brand) 24%, transparent); }
.sr-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden; background: radial-gradient(130% 120% at 50% -10%, color-mix(in srgb, var(--brand) 32%, var(--screen)) 0%, var(--screen) 62%); }
.sr-neck { width: 64px; height: 28px; margin: 0 auto; background: linear-gradient(var(--line), var(--surface)); }
.sr-base { width: 170px; height: 9px; margin: 0 auto; border-radius: 9px 9px 3px 3px; background: var(--line); }
.sr-demo { position: absolute; inset: 0; }
#sr-hz { position: absolute; inset: 0; width: 100%; height: 100%; }
.sr-cap { position: absolute; left: 5%; top: 7%; right: 5%; font-size: 12px; line-height: 1.4; color: var(--muted); }
.sr-lane { position: absolute; left: 5%; font: 900 clamp(17px, 5vw, 26px) / 1 var(--num); letter-spacing: 0.02em; }
#sr-lo { top: 30%; }
#sr-hi { top: 66%; color: var(--brand); }
.sr-ppi { display: grid; place-content: center; gap: 10px; text-align: center; }
.sr-ppi p { margin: 0; font-size: 12px; color: var(--muted); }
.sr-loupes { display: flex; gap: clamp(10px, 4vw, 30px); justify-content: center; }
.sr-loupes figure { margin: 0; display: grid; gap: 6px; justify-items: center; }
.sr-loupes canvas { width: clamp(66px, 20vw, 118px); aspect-ratio: 1; border-radius: 50%; image-rendering: pixelated; border: 2px solid color-mix(in srgb, var(--ink) 28%, transparent); }
.sr-loupes figcaption { font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.sr-loupes figcaption b { display: block; color: var(--ink); font: 900 17px / 1.1 var(--num); }
.sr-size svg { display: block; width: 100%; height: 100%; }
.sr-size .o { fill: none; stroke: color-mix(in srgb, var(--ink) 46%, transparent); stroke-width: 1.4; }
.sr-size .o.on { stroke: var(--brand); stroke-width: 2.4; fill: color-mix(in srgb, var(--brand) 13%, transparent); }
.sr-size .a4 { fill: color-mix(in srgb, var(--ink) 9%, transparent); stroke: color-mix(in srgb, var(--ink) 52%, transparent); stroke-width: 1.2; stroke-dasharray: 3 3; }
.sr-size .base { stroke: color-mix(in srgb, var(--ink) 40%, transparent); stroke-width: 1.2; }
.sr-size text { font: 500 10px var(--font); fill: var(--muted); }
.sr-size text.on { fill: var(--ink); font-weight: 700; }
.sr-osd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 620px; width: 100%; justify-self: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px; }
.mp .sr-osd button { border: 0; background: transparent; border-radius: 9px; padding: 10px 6px 11px; display: grid; gap: 7px; justify-items: center; font-weight: 600; font-size: 15px; color: var(--muted); cursor: pointer; }
.sr-osd i { display: flex; gap: 2px; }
.sr-osd i span { width: 5px; height: 5px; border-radius: 1px; background: var(--line); }
.mp .sr-osd button[aria-pressed="true"] { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.sr-osd button[aria-pressed="true"] i span:nth-child(1) { background: var(--sub-r); }
.sr-osd button[aria-pressed="true"] i span:nth-child(2) { background: var(--sub-g); }
.sr-osd button[aria-pressed="true"] i span:nth-child(3) { background: var(--sub-b); }
.sr-take { margin: 0; font-size: 17px; font-weight: 500; max-width: 25em; text-wrap: balance; }
.mp .sr-cta { justify-self: start; border: 0; cursor: pointer; background: var(--lit); color: var(--on-lit); border-radius: 12px; padding: 13px 18px; font-weight: 700; font-size: 15px; }
/* One quiet link to the tool page for the running demo (monipick-showroom.js swaps it with the tab). */
.sr-tool { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; margin-top: -10px; font-size: 14px; color: var(--ink-2); text-underline-offset: 3px; }
.sr-tool::after { content: "›"; margin-left: 6px; color: var(--muted); }
.sr-tool:hover { color: var(--ink); }

/* shelf: models that have what the running demo shows */
.sr-shelf { padding: 10px 0 22px; }
.sr-shelf h2, .sr-uses h2 { margin: 0 0 12px; font-size: 21px; letter-spacing: -0.03em; }
.sr-cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; max-width: 1200px; margin: 0 auto; padding: 2px 24px 12px; scroll-padding-inline: 24px; }
.sr-card { flex: 0 0 min(72vw, 276px); scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.sr-card .card-stage { height: auto; aspect-ratio: 4 / 3; padding: 14px; }
.sr-card .card-stage > .product-photo { border-radius: 0; }
.sr-body { padding: 14px 14px 16px; display: grid; gap: 10px; align-content: start; }
.sr-body h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.sr-body h3 small { display: block; font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.sr-nums { display: flex; gap: 18px; margin: 0; }
.sr-nums div { display: grid; gap: 3px; }
.sr-nums dd { order: -1; margin: 0; font: 900 26px / 1 var(--num); }
.sr-nums dt { font-size: 11.5px; color: var(--muted); }
.sr-why { margin: 0; font-size: 13.5px; color: var(--muted); }
.sr-btns { display: flex; gap: 8px; }
.sr-btns a { flex: 1; text-align: center; border-radius: 10px; padding: 9px 6px; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.sr-btns .buy { background: var(--lit); color: var(--on-lit); }
.sr-btns .spec { border: 1px solid var(--line); }

/* picks: the home section holds every set behind its tabs. The tabs and cards are shared with the
   situation pages, so their styles live in monipick-theme.css. */
.pk { margin-top: 8px; margin-bottom: 34px; } /* margins: the phone .wrap rule resets vertical padding */
.pk h2 { margin: 0 0 6px; font-size: 21px; letter-spacing: -0.03em; }

.sr-trust { margin-top: 18px; font-size: 14px; color: var(--muted); }
.sr-trust a { color: var(--brand); text-underline-offset: 3px; }

/* use rows: the four filter shortcuts, each with how many models it leaves */
.sr-uses { padding-top: 8px; padding-bottom: 6px; }
.purpose-options { display: grid; grid-template-columns: 1fr; margin: 0; }
.purpose-options button { text-align: left; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; padding: 15px 10px; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 8px; cursor: pointer; }
.purpose-options button:last-child { border-bottom: 1px solid var(--line); }
.purpose-options button:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.purpose-options button[aria-pressed="true"] { background: color-mix(in srgb, var(--brand) 14%, transparent); }
.purpose-count { font: 900 34px / 1 var(--num); color: var(--brand); }
.purpose-options strong { display: block; font-size: 17px; }
.purpose-options small { display: block; color: var(--muted); font-size: 13.5px; }
.purpose-go { font-style: normal; color: var(--muted); font-size: 20px; }
[aria-pressed="true"] > .purpose-go { color: var(--brand); }
.purpose-result { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--tint); border-radius: var(--r-md); padding: 14px 18px; }
.purpose-result strong { font-size: 15px; }
.purpose-result p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); }
#purpose-results-open { border: 0; background: var(--lit); color: var(--on-lit); border-radius: 999px; padding: 9px 16px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.purpose-caption { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.text-button { border: 0; background: none; padding: 4px 6px; font-size: 13px; font-weight: 600; color: var(--brand); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.text-button:disabled { color: var(--muted); text-decoration: none; cursor: default; }

/* filter bar */
.filter-bar { position: sticky; top: 64px; z-index: 20; background: var(--bg); margin-top: 28px; padding: 12px 0; border-bottom: 1px solid var(--line); }
#filters > summary { display: none; }
.filter-body { display: grid; gap: 10px; }
.filter-selects { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill-select { position: relative; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0 30px 0 13px; height: 36px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.pill-select::after { content: ""; position: absolute; right: 13px; top: 50%; width: 6px; height: 6px; border-right: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.pill-select select { appearance: none; -webkit-appearance: none; border: 0; background: none; font-weight: 700; color: var(--ink); font-size: 13.5px; cursor: pointer; padding: 0; outline: 0; }
.pill-select:has(select:focus-visible) { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.pill-select:has(option:checked:not([value="all"])) { background: var(--inv); border-color: var(--inv); color: rgba(255, 255, 255, 0.65); }
.pill-select:has(option:checked:not([value="all"])) select { color: #fff; }
.pill-select:has(option:checked:not([value="all"]))::after { border-color: #fff; }
.pill-check { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.pill-check input { accent-color: var(--accent); margin: 0; }
.brand-filter { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.brand-filter legend { float: left; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-right: 6px; padding: 0; }
.brand-filter legend span { color: var(--brand); margin-left: 2px; }
#brand-options { display: contents; }
.brand-option { position: relative; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 600; cursor: pointer; }
.brand-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.brand-option small { color: var(--muted); font-size: 11.5px; }
.brand-option:has(input:checked) { background: var(--inv); color: var(--inv-ink); border-color: var(--inv); }
.brand-option:has(input:checked) small { color: rgba(255, 255, 255, 0.6); }
.brand-option:has(input:focus-visible) { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.filter-note { margin: 0; font-size: 12px; color: var(--muted); }

/* products */
#products { padding-top: 22px; outline: 0; scroll-margin-top: 150px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 21px; letter-spacing: -0.03em; }
#result-count { color: var(--muted); font-weight: 600; margin-left: 4px; }
.section-tools { display: flex; align-items: center; gap: 12px; }
.group-toggle { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.group-toggle input { accent-color: var(--accent); margin: 0; }
.sort-label select { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
#interaction-status:empty { display: none; }
#interaction-status { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: var(--warn-bg); font-size: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.brand-group { display: contents; }
.brand-group-title { grid-column: 1 / -1; margin: 14px 0 -4px; font-size: 17px; letter-spacing: -0.02em; }
.brand-group-title span { color: var(--muted); font-weight: 600; font-size: 14px; margin-left: 4px; }
.product-card { position: relative; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform 0.18s, box-shadow 0.18s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.product-card.selected { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.card-stage { height: 190px; display: grid; place-items: end center; padding: 22px 20px 18px; background: radial-gradient(120% 90% at 50% 100%, var(--stage-a) 0%, var(--stage-b) 70%); }
.card-body { padding: 18px 20px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-brand { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.product-card h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.035em; margin: 2px 0 0; line-height: 1.2; }
.product-card h3 a { text-decoration: none; }
.product-card h3 a:hover { color: var(--brand); }
.card-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; }
.stat { padding: 0 10px; border-left: 1px solid var(--line); min-width: 0; }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat b { display: block; font-family: var(--num); font-weight: 900; font-size: 22px; letter-spacing: 0; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat b small { font-family: var(--font); font-size: 13px; font-weight: 700; margin-left: 2px; }
.stat > span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.card-badges { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; }
.card-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
/* link to the model's own page, which has every fact with its source, outside reviews and the Coupang box */
.card-meta .spec { flex: none; padding: 6px 0; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; text-underline-offset: 3px; text-decoration-color: var(--hover-line); }
.card-meta .spec:hover { color: var(--brand); }
.select-button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px 7px 11px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.select-button:hover { border-color: var(--ink); }
.select-button i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-style: normal; font-size: 11px; line-height: 1; }
.select-button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.card-region { margin: -4px 0 0; font-size: 11.5px; color: var(--muted); }
#empty-state { text-align: center; padding: 50px 20px; background: var(--surface); border-radius: var(--r-lg); }
#empty-state h3 { margin: 0 0 6px; }
#empty-state p { color: var(--muted); margin: 0 0 18px; }

/* compare entry + guides */
.compare-entry { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--inv); color: var(--inv-ink); border-radius: var(--r-lg); padding: 28px 32px; scroll-margin-top: 90px; }
.compare-entry h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -0.03em; }
.compare-entry p { margin: 0; color: rgba(255, 255, 255, 0.7); }
.compare-entry .btn { padding: 13px 22px; font-size: 15px; flex: none; }
.guides { margin-top: 40px; }
.guides h2 { font-size: 21px; letter-spacing: -0.03em; margin: 0 0 14px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: start; }
.guide { background: var(--surface); border-radius: var(--r-lg); padding: 20px 22px; text-decoration: none; display: block; }
.guide summary { cursor: pointer; list-style: none; display: flex; gap: 14px; align-items: center; }
.guide summary::-webkit-details-marker { display: none; }
.guide-art { width: 56px; height: 56px; border-radius: 14px; background: var(--tint); color: var(--brand-ink); display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 12px; line-height: 1.2; flex: none; }
.guide small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.guide strong { display: block; font-size: 16px; letter-spacing: -0.02em; }
.guide-teaser { display: block; font-size: 13px; color: var(--ink-2); }
.guide p { font-size: 14px; color: var(--ink-2); }
.guide a { font-weight: 700; color: var(--brand); font-size: 14px; }
.guides-more { font-size: 14px; margin: 16px 0 0; }
.guides-more a { color: var(--brand); font-weight: 600; }

/* floating compare tray */
.compare-tray { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 10px; background: var(--inv); color: var(--inv-ink); border-radius: 999px; padding: 8px 8px 8px 18px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25); max-width: calc(100% - 24px); }
.tray-title { display: flex; flex-direction: column; line-height: 1.2; flex: none; }
.tray-title strong { font-size: 13px; }
.tray-title span { font-size: 11.5px; color: rgba(255, 255, 255, 0.6); }
#selected-products { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.selected-item { display: flex; align-items: center; gap: 2px; background: rgba(255, 255, 255, 0.1); border-radius: 999px; padding: 4px 4px 4px 12px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.selected-item button { border: 0; background: none; color: rgba(255, 255, 255, 0.7); width: 24px; height: 24px; border-radius: 50%; cursor: pointer; }
.selected-item button:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.tray-clear { border: 0; background: none; color: rgba(255, 255, 255, 0.6); font-size: 12.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; flex: none; }
.compare-tray .btn { flex: none; }

/* dialogs */
.home dialog { border: 0; border-radius: 24px; padding: 0; width: min(1080px, calc(100% - 32px)); max-height: calc(100% - 48px); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.home dialog::backdrop { background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
#compare-picker-dialog { width: min(520px, calc(100% - 32px)); padding-bottom: 24px; }
#compare-picker-dialog > p, .compare-pickers, #compare-picker-dialog > button { margin-left: 24px; margin-right: 24px; }
.dialog-top { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px; background: var(--dialog-top-bg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.dialog-top h2 { margin: 0; font-size: 20px; letter-spacing: -0.03em; }
.close-button { border: 0; background: var(--bg); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 15px; flex: none; }
.close-button:hover { background: var(--line); }
#compare-dialog > :not(.dialog-top) { margin-left: 24px; margin-right: 24px; }
#compare-dialog { padding-bottom: 24px; }
.compare-pickers { display: grid; gap: 6px; margin-top: 8px; margin-bottom: 8px; }
.compare-pickers label { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-top: 6px; }
.compare-pickers select { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); }
#compare-picker-status:empty { display: none; }
.dialog-notice { font-size: 13px; color: var(--ink-2); background: var(--bg); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.source-conflict { background: var(--warn-bg); }
.source-conflict ul { margin: 6px 0; padding-left: 18px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.table-scroll table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 14px; }
.table-scroll caption { text-align: left; padding: 14px 16px; font-size: 13px; color: var(--muted); }
.table-scroll th, .table-scroll td { text-align: left; vertical-align: top; padding: 12px 16px; border-top: 1px solid var(--line); }
.table-scroll thead th { background: var(--bg); font-size: 13px; border-top: 0; }
.table-scroll tbody th { color: var(--ink-2); font-weight: 600; font-size: 13.5px; width: 150px; position: sticky; left: 0; background: var(--surface); }
.fact-value { white-space: pre-line; font-weight: 500; }
.fact-context { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.fact-location { font-size: 12px; color: var(--muted); }
.fact-location summary { cursor: pointer; width: fit-content; }
.table-scroll td a { color: var(--brand); font-size: 13px; }
.table-scroll .unknown { color: var(--muted); }
#compare-table tr.different > th { box-shadow: inset 3px 0 0 var(--accent); color: var(--ink); }
#compare-table tr.different td { background: var(--diff-bg); }
#compare-table thead th { font-size: 15px; }
#compare-table hr { border: 0; border-top: 1px dashed var(--line); }
.compare-overlay { display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: center; background: var(--bg); border-radius: 18px; padding: 22px 24px; margin-top: 20px; }
.compare-overlay:empty { display: none; }
.compare-overlay svg { width: 100%; height: auto; max-height: 300px; }
.compare-overlay .outline { stroke-width: 2.5; fill-opacity: 0.07; }
.outline.c1 { stroke: var(--c1); fill: var(--c1); }
.outline.c2 { stroke: var(--c2); fill: var(--c2); stroke-dasharray: 10 6; }
.outline.c3 { stroke: var(--c3); fill: var(--c3); stroke-dasharray: 3 5; }
.overlay-title { margin: 0 0 10px; font-weight: 800; font-size: 15px; }
.overlay-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.overlay-legend li { padding-left: 16px; position: relative; }
.overlay-legend li::before { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 3px; }
.overlay-legend li.c1::before { background: var(--c1); }
.overlay-legend li.c2::before { background: var(--c2); }
.overlay-legend li.c3::before { background: var(--c3); }
.overlay-legend strong { display: block; font-size: 14px; }
.overlay-legend span { font-size: 12.5px; color: var(--muted); }
.overlay-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.compare-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.compare-scroll-hint { margin: 0; font-size: 12.5px; color: var(--muted); }

@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .header-search { width: 220px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .header-search { width: auto; flex: 1; height: 38px; margin-left: 8px; }
  .hero { padding-top: 22px; }
  .hero-copy { font-size: 15.5px; }
  .sr-cards { padding-inline: 16px; scroll-padding-inline: 16px; }
  .purpose-result { flex-direction: column; align-items: stretch; }
  .filter-bar { top: 100px; padding: 8px 0; }
  #filters > summary { display: inline-flex; gap: 6px; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--inv); color: var(--inv-ink); font-weight: 700; font-size: 13.5px; cursor: pointer; list-style: none; }
  #filters > summary::-webkit-details-marker { display: none; }
  #filters[open] > summary { margin-bottom: 10px; }
  .product-grid, .guide-grid { grid-template-columns: 1fr; gap: 12px; }
  /* phone: one compact row per model, so 36 models stay scannable */
  .product-card { flex-direction: row; }
  .card-stage { flex: 0 0 108px; height: auto; min-height: 108px; padding: 10px; }
  .card-stage > .product-photo { border-radius: 0; }
  .card-body { padding: 12px 14px; gap: 8px; min-width: 0; }
  .product-card h3 { font-size: 16.5px; }
  .card-stats { display: flex; gap: 14px; border: 0; padding: 0; }
  .stat { border: 0; padding: 0; }
  .stat b { font-size: 17px; }
  .stat b small { font-size: 11.5px; }
  .stat > span, .card-region { display: none; }
  .card-badges { min-height: 0; }
  .card-badges .badge { font-size: 11px; padding: 3px 7px; }
  .card-meta .spec { min-width: 44px; padding: 12px 0; margin: -6px 0; } /* a 44px touch target; the row keeps its height */
  .compare-entry { flex-direction: column; align-items: flex-start; padding: 24px; }
  .compare-tray { left: 12px; right: 12px; transform: none; max-width: none; border-radius: 22px; }
  .tray-title { display: none; }
  .home dialog { width: 100%; max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; margin: 0; }
  #compare-dialog > :not(.dialog-top) { margin-left: 16px; margin-right: 16px; }
  .compare-overlay { grid-template-columns: 1fr; padding: 16px; }
}
.overlay-toggle { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.overlay-toggle button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer; min-height: 32px; }
.overlay-toggle button[aria-pressed="true"] { background: var(--inv); color: var(--inv-ink); }
.overlay-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bento { margin-top: 40px; }
.bento h2 { font-size: 21px; letter-spacing: -0.03em; margin: 0; }
.bento-sub { margin: 4px 0 14px; font-size: 14px; color: var(--muted); }
@media (pointer: coarse) { .table-scroll td a { display: inline-block; padding: 5px 0; } }
.bento-more-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bento-more-list a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.bento-more-list a:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--brand); }
.bento-more-list a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* questions, grouped under their situation page: the group title opens the page, a chip jumps to its section */
.bento-group + .bento-group { margin-top: 18px; }
.bento-group h3 { margin: 0; font-size: 16px; letter-spacing: -0.02em; }
.bento-group h3 a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; }
.bento-group h3 a::after { content: "›"; color: var(--muted); font-size: 18px; font-weight: 400; }
.bento-group h3 a:hover { color: var(--brand); }
.bento-group .bento-more-list { margin-top: 2px; }
.bento-n { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.bento-n b { margin-right: 1px; font: 900 16px / 1 var(--num); color: var(--brand); }
.vs-shortcuts { margin-top: 40px; }
.vs-shortcuts h2 { font-size: 21px; letter-spacing: -0.03em; margin: 0; }
.vs-shortcut-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.vs-shortcut-list a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 16px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-size: 14px; }
.vs-shortcut-list a:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.vs-shortcut-list a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vs-shortcut-list b { font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-shortcut-list span { flex: none; font-size: 11px; font-weight: 900; padding: 3px 7px; border-radius: 999px; background: var(--inv); color: var(--inv-ink); }
.guide-shortcuts { margin-top: 40px; }
.guide-shortcuts h2 { font-size: 21px; letter-spacing: -0.03em; margin: 0; }

/* Programmatic result-list focus must remain visible after keyboard navigation. */
#products:focus { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* more: the question, guide and comparison link lists end the page folded. Each row opens in place,
   and its number says how many links it holds (monipick-showroom.js). */
.more { margin-top: 40px; }
.more > h2 { margin: 0 0 12px; font-size: 21px; letter-spacing: -0.03em; }
.fold { border-top: 1px solid var(--line); }
.fold:last-of-type { border-bottom: 1px solid var(--line); }
.fold:not(:has(a)) { display: none; }
.fold > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 0 12px; padding: 15px 10px; font-size: 17px; font-weight: 700; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.fold > summary::after { content: "›"; grid-column: 3; color: var(--muted); font-size: 20px; font-weight: 400; transition: transform 0.15s; }
.fold[open] > summary::after { transform: rotate(90deg); }
.fold-n { font: 900 30px / 1 var(--num); color: var(--brand); }
.fold > section { margin: 4px 0 26px; }
.fold > section > h2 { display: none; } /* the row above is the title */
.fold > section > .bento-sub { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .fold > summary::after { transition: none; } }

/* showroom, wide screens: copy and controls left, the monitor right; use rows in two columns */
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 56px; align-items: center; padding-top: 52px; padding-bottom: 40px; }
  .hero h1, .hero-copy, .sr-osd, .sr-take, .sr-cta, .sr-tool { grid-column: 1; }
  .sr-mon { grid-column: 2; grid-row: 1 / span 6; max-width: none; }
  .sr-osd { justify-self: start; max-width: 420px; }
  .purpose-options { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .purpose-options button:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
