/* Shared semantic tokens; the site follows the system theme. */

/* tokens */

/* Generated from extension/shared/palette.js; run the existing build scripts. */

:root {
  --bg: #FFFFFF;
  --card: #F7F7FA;
  --text: #20202A;
  --text-soft: #6D6D7D;
  --icon: #808080;
  --icon-action: #6D6D7D;
  --tip-bg: #20202A;
  --tip-text: #FFFFFF;
  --check: #6B58D8;
  --net-ok: #4CAF50;
  --net-error: #FF6B6B;
  --net-unknown: #858585;
  --border: #EBEBF2;
  --accent: #6B58D8;
  --accent-soft: #F0EDFF;
  --on-accent: #FFFFFF;
  --focus: #6B58D8;
  --ok: #237A46;
  --ok-mark: #237A46;
  --ok-soft: #E4F4EA;
  --warn: #876019;
  --warn-soft: #FBF1DE;
  --bad: #B8413D;
  --bad-soft: #FBE9E8;
  --trash: #B8413D;
  --notice: #CF7A22;
  --danger: #B8413D;
  --muted: #8A8A95;
  --badge: #7C6CF0;
  --on-badge: #16161D;
  --on-overlay: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #19191F;
    --card: #24242E;
    --text: #F0EFF6;
    --text-soft: #AAA8BB;
    --icon: #B7B7C2;
    --icon-action: #AAA8BB;
    --tip-bg: #F0EFF6;
    --tip-text: #20202A;
    --check: #AC9AFF;
    --net-ok: #4CAF50;
    --net-error: #FF6B6B;
    --net-unknown: #858585;
    --border: #363540;
    --accent: #AC9AFF;
    --accent-soft: #332D4C;
    --on-accent: #20202A;
    --focus: #AC9AFF;
    --ok: #31A660;
    --ok-mark: #6ECA93;
    --ok-soft: #1C2E24;
    --warn: #E0A33E;
    --warn-soft: #33291A;
    --bad: #FF7B7B;
    --bad-soft: #33201F;
    --trash: #FF9690;
    --notice: #F0A96A;
    --danger: #9E3835;
    --muted: #AAA8BB;
    --badge: #7C6CF0;
    --on-badge: #16161D;
    --on-overlay: #FFFFFF;
  }
}

/* end tokens */

* { box-sizing: border-box; margin: 0; padding: 0; }

/* The app shell stays in the viewport; long content scrolls inside main. */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg);
  height: 100vh; height: 100dvh; min-height: 0; display: flex; flex-direction: column; overflow: hidden;
}

/* Page content container; restricts content width with responsive horizontal padding. */
.container {
  max-width: 1280px;
  margin-inline: auto;
  width: 100%;
  padding-inline: 24px;
  box-sizing: border-box;
}
@media (max-width: 720px) {
  .container { padding-inline: 16px; }
}

main { flex: 1 1 auto; min-height: 0; min-width: 0; overflow: auto; padding-block: 16px;
  scrollbar-width: none; }
main::-webkit-scrollbar { display: none; }
.site-head, .site-foot { flex-shrink: 0; }

/* Links are never underlined (any state); interactivity shows as a colour or background change, keyboard focus keeps its ring. */
a, a:visited, a:hover, a:active, a:focus, a:focus-visible { text-decoration: none; }

/* Site header and navigation. Mobile menu and desktop rules depend on media queries. */
.site-head { background: var(--bg); border-bottom: 1px solid var(--border); }
.site-head-in { display: flex; align-items: center; gap: 16px; padding-block: 12px; position: relative; }
.logo { font-weight: 800; font-size: 18px; color: var(--accent); text-decoration: none; letter-spacing: .3px; }
.logo { display: inline-flex; align-items: center; gap: 8px; line-height: 1; }
.brand-icon { width: 32px; height: 32px; flex: none; display: block; }
.logo[data-home-hint] { position: relative; }
.logo[data-home-hint]::after { content: attr(data-home-hint); display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 10; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font-size: 12px; font-weight: 400; letter-spacing: normal; white-space: nowrap; pointer-events: none; }
.logo[data-home-hint]:hover::after, .logo[data-home-hint]:focus-visible::after { display: block; }
.site-nav { margin-left: auto; display: flex; gap: 18px; font-size: 14px; }
.site-nav a { color: var(--text-soft); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: var(--accent); }
.site-nav a.active { color: var(--accent); }
/* Desktop navigation and the shared mobile bottom bar. */
.bottom-nav { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .site-nav { display: none; }
  .site-head-in { padding-block: 8px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    position: fixed; bottom: 0; inset-inline: 0; z-index: 60;
    height: calc(64px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--bg); backdrop-filter: blur(14px); border-top: 1px solid var(--border);
    box-shadow: 0 -4px 18px rgba(26, 26, 34, .05); }
  .bottom-nav a { display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 3px; min-width: 0; min-height: 44px; color: var(--text-soft); text-decoration: none;
    font-size: 11px; font-weight: 600; border-radius: 8px; }
  .bottom-nav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .bottom-nav a.active { color: var(--accent); background: var(--accent-soft); }
}

/* Site footer */
.site-foot { margin-top: auto; background: var(--bg); border-top: 1px solid var(--border); }
.site-foot-in { padding-block: 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px 18px;
  font-size: 15px; line-height: 20px; color: var(--text-soft); }
.site-foot-in > * { min-height: 32px; display: inline-flex; align-items: center; }
.site-foot a { color: var(--accent); text-decoration: none; }
.site-foot a:not(.site-icon) { padding: 4px 6px; margin: 0 -6px; border-radius: 8px; }
/* Text links in the footer never get a fill (hover or press) and keep their colour; only the keyboard ring shows state. */
.site-foot a:not(.site-icon), .site-foot a:not(.site-icon):hover, .site-foot a:not(.site-icon):active { background: none; color: var(--accent); }
.site-foot a, .site-foot button.site-icon { -webkit-tap-highlight-color: transparent; }
.site-foot a:not(.site-icon):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.site-footer-links { display: flex; align-items: center; gap: 24px; }
/* Footer contacts stay on one line; each tooltip anchors to its own icon. */
.site-contacts { position: relative; display: inline-flex; flex-wrap: nowrap; gap: 4px; margin-left: auto; }
.site-foot .site-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 34px;
  flex: none; border-radius: 8px; text-decoration: none; }
.site-foot button.site-icon { padding: 0; margin: 0; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; }
/* Icons keep the soft highlight, the same opaque token and 8px area as the extension; only where a pointer can hover, so a touch leaves nothing behind. */
@media (hover: hover) { .site-foot .site-icon:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; } }
.site-foot .site-icon:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* The privacy page is reached by its icon at every width (no duplicated long text link); "Как пользоваться" is the text link. */
.site-howto { white-space: nowrap; }
.site-share-note { position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 30; box-sizing: border-box; width: max-content;
  max-width: min(340px, calc(100vw - 32px)); padding: 4px; border-radius: 12px; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.site-share-note[hidden] { display: none; }
/* A compact menu row next to the icon: small icon + text, 44px high, no fill (light background on hover); keeps its size on «Скопировано». */
.site-share-copy { display: inline-flex; align-items: center; gap: 10px; box-sizing: border-box; height: 44px; padding: 0 12px; border: 0; border-radius: 8px;
  background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.site-share-copy:hover { background: var(--card); }
.site-share-copy svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
.site-share-copy:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.site-share-note input { display: block; width: 100%; box-sizing: border-box; margin-top: 8px; min-height: 36px; padding: 0 8px; font: inherit; font-size: 13px;
  color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; }
.site-icon svg { display: block; width: 18px; height: 18px; }
/* Globe menu: both sites in one compact popover above the icon (same look as the extension footer). Items are links, so the menu
   works with the keyboard and opens each site in a new tab. */
.site-menu-wrap { position: relative; display: inline-flex; }
.site-foot .site-menu-toggle[aria-expanded="true"] { background: var(--accent-soft); }
.site-foot .site-menu-toggle[aria-expanded="true"]::after { opacity: 0; visibility: hidden; }
.site-menu { position: absolute; bottom: calc(100% + 9px); right: -12px; z-index: 30; box-sizing: border-box; width: 224px; max-width: calc(100vw - 32px); padding: 5px;
  background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 13px; box-shadow: 0 7px 24px rgba(0, 0, 0, .18); }
.site-menu[hidden] { display: none; }
.site-foot a.site-menu-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; box-sizing: border-box; width: 100%; min-height: 40px; margin: 0; padding: 10px 11px; border-radius: 8px; background: none; color: var(--text); text-decoration: none; }
.site-menu-text { display: block; min-width: 0; }
.site-menu-label { display: block; font-size: 13px; font-weight: 500; line-height: 18px; }
.site-menu-domain { display: block; margin-top: 2px; font-size: 11px; line-height: 16px; color: var(--text-soft); }
.site-foot .site-menu-out { flex: none; width: 15px; height: 15px; color: var(--text-soft); }
.site-foot a.site-menu-item:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
@media (hover: hover) { .site-foot a.site-menu-item:hover { background: var(--accent-soft); color: var(--text); text-decoration: none; } }
@media (pointer: coarse) { .site-foot a.site-menu-item { min-height: 48px; } }
.site-icon[data-tip]::after { content: attr(data-tip); position: absolute; left: calc(50% + var(--tip-shift, 0px)); bottom: calc(100% + 8px); z-index: 20;
  box-sizing: border-box; width: max-content; max-width: min(320px, calc(100vw - 32px)); padding: 6px 8px; border-radius: 6px;
  background: #18181b; color: #fff; font-size: 12px; line-height: 1.4; font-weight: 400; text-align: center;
  overflow-wrap: anywhere; pointer-events: none; box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(4px);
  transition: opacity .16s ease, visibility .16s ease, transform .16s ease; }
.site-icon[data-tip]:hover::after, .site-icon[data-tip]:focus-visible::after, .site-icon[data-tip][data-tip-open]::after {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.site-icon[data-tip][data-tip-dismissed]::after { opacity: 0; visibility: hidden; }
@media (prefers-color-scheme: dark) {
  .site-icon[data-tip]::after { background: #f4f4f5; color: #18181b; }
}
@media (prefers-reduced-motion: reduce) { .site-icon[data-tip]::after { transition: none; } }
main p, main li, a[href^="mailto:"] { overflow-wrap: anywhere; }
.site-foot a[href^="mailto:"] { overflow-wrap: normal; }

/* Static page typography and layout blocks */
h1 { font-size: 30px; margin-bottom: 10px; line-height: 1.2; overflow-wrap: anywhere; }
@media (min-width: 900px) { h1 { font-size: 38px; } }
h2 { margin: 40px 0 14px; font-size: 20px; }
p.lead { font-size: 16px; color: var(--text-soft); margin-bottom: 16px; max-width: 640px; }
.sub { font-size: 15px; color: var(--text-soft); margin: 12px 0 0; }
.sub a { color: var(--accent); font-weight: 600; }
.btn { display: inline-block; padding: 13px 26px; background: var(--accent); color: var(--on-accent);
       border-radius: 12px; text-decoration: none; font-weight: 700; }
.btn:hover { filter: brightness(1.08); }
ol, ul { margin: 0 0 8px 20px; color: var(--text-soft); }
ol li, ul li { margin-bottom: 6px; }

/* Hero section and example card container */
.hero { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .hero { flex-direction: row; align-items: center; gap: 28px; } }
.demo { flex: none; width: 100%; max-width: 360px; background: var(--card); border: 1px solid var(--border);
        border-radius: 14px; padding: 14px 16px; }
@media (min-width: 900px) { .demo { width: 360px; } }
@media (max-width: 720px) { .demo { max-width: 100%; } }
.demo-caption { font-size: 12px; color: var(--text-soft); margin: 0 0 8px; }

/* Unified device card styles (used across hero demo and /v/:videoId).
   Wraps long values to avoid horizontal overflow. */
.dc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 8px; }
.dc-cat { font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }
.dc-card h2.dc-name { margin: 0 0 2px; }
.dc-name { font-weight: 700; font-size: 16px; margin-bottom: 2px; color: var(--text); overflow-wrap: anywhere; }
.dc-brand { font-size: 13px; color: var(--text-soft); }
.dc-specs { margin-top: 8px; }
.dc-specs-title { font-size: 12px; font-weight: 700; color: var(--text-soft); margin-bottom: 6px; }
.dc-spec { font-size: 13px; line-height: 1.45; margin-bottom: 3px; color: var(--text);
  overflow-wrap: anywhere; }
.dc-spec-label { color: var(--text-soft); }
.dc-spec-value { color: var(--text); }
.dc-specs-other { font-size: 12px; font-weight: 700; color: var(--text-soft); margin: 8px 0 4px; }

/* Recent analyses card grid and cards. Truncates long titles with webkit-line-clamp. */
.latest-row { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; gap: 12px; }
.latest-card { display: flex; flex-direction: row; align-items: flex-start; gap: 10px;
               background: var(--card); border: 1px solid var(--border); border-radius: 14px;
               padding: 14px 20px; text-decoration: none; color: var(--text); height: auto; min-width: 0;
               transition: border-color .18s ease, box-shadow .18s ease; }
.latest-card:hover { border-color: var(--text-soft); box-shadow: 0 6px 20px rgba(26, 26, 34, .08); }
.latest-card:focus-visible { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .latest-card { transition: none; } }
.latest-card img { width: 100%; height: 100%; object-fit: cover;
                   border-radius: 10px; display: block; background: var(--accent-soft); }
.latest-body { display: flex; flex-direction: column; align-self: stretch; min-width: 0; flex: 1; }
.latest-category { font-size: 12px; line-height: 1.4; color: var(--accent); opacity: .8;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.latest-card h3 { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.4;
  margin: 0 0 8px; display: -webkit-box; overflow-wrap: anywhere;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.latest-card p.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  font-size: 12px; color: var(--text-soft); margin: 0 0 8px; }
.latest-card .meta-count { color: var(--text-soft); font-weight: 600; padding: 3px 8px;
  border-radius: 999px; background: var(--accent-soft); }
.latest-card .meta-date { color: var(--text-soft); }
.latest-card .found { font-size: 12px; line-height: 1.5; color: var(--text-soft); margin: 0;
  overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.latest-ai { display: flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 8px;
  font-size: 11px; line-height: 1.4; color: var(--text-soft); }
.latest-ai svg { flex: none; color: var(--accent); opacity: .7; }
@media (min-width: 768px) {
  .latest-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Very narrow viewports (200% zoom of a phone): stack thumbnail above text instead of squeezing the text column. */
@media (max-width: 300px) {
  .latest-card { flex-direction: column; }
  .latest-card .latest-thumb { width: 100%; min-height: 0; }
  .latest-body { width: 100%; flex: 1; }
}
.howto-steps { color: var(--text-soft); font-size: 15px; margin: 0; }
.home h2 { margin: 20px 0 10px; }
.home .latest-head { margin: 20px 0 10px; }
.about p { color: var(--text-soft); font-size: 15px; margin-bottom: 10px; max-width: 720px; }
.install-steps { margin-top: 18px; }
.install-note { margin-top: 14px; font-size: 15px; color: var(--text-soft); }

/* SSR analysis pages (/v/:videoId, /articles/) */
.vp-back { display: inline-block; margin: 0 0 14px; font-size: 14px; font-weight: 600;
  color: var(--accent); text-decoration: none; }
.vp-back { padding: 2px 6px; margin-left: -6px; border-radius: 8px; }
.vp-back:hover { background: var(--accent-soft); }
h1.vp-h1 { font-size: 22px; margin: 0; }
.vp-intro { color: var(--text-soft); font-size: 14px; margin: 0 0 10px; }
.dc-conf { font-size: 12px; font-weight: 600; color: var(--text-soft); }
/* Compact region selector. The same rules (sizes, spacing, icons, colours) live in extension/popup/popup.css: keep both in sync. */
.vp-cities { position: relative; margin: 0 0 16px; }
/* Shrink-wrapped, so only the trigger itself is clickable or highlighted, never the empty line around it. */
.vp-city-pick { position: relative; width: max-content; max-width: 100%; margin-left: -6px; }
.rg-trigger { list-style: none; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 32px; padding: 0 6px;
  border-radius: 8px; font-size: 14px; line-height: 20px; color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.rg-trigger::-webkit-details-marker { display: none; }
.rg-icon { flex: none; color: var(--accent); }
.rg-name { font-weight: 600; white-space: nowrap; }
.rg-chev { flex: none; width: 14px; height: 14px; color: var(--text-soft); transition: transform .15s ease; }
.vp-city-pick[open] .rg-chev { transform: rotate(180deg); }
.rg-trigger:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--focus); }
.rg-menu { display: none; }
.vp-city-pick[open] .rg-menu { display: block; position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; width: 260px; max-width: calc(100vw - 32px);
  padding: 6px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .24); }
.rg-list, .rg-results { display: flex; flex-direction: column; gap: 2px; }
.rg-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 10px; border-radius: 8px;
  font-size: 14px; line-height: 20px; color: var(--text); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.rg-label { min-width: 0; overflow-wrap: anywhere; }
.rg-check { flex: none; display: none; color: var(--accent); }
.rg-active { background: var(--accent-soft); font-weight: 600; }
.rg-active .rg-check { display: block; }
.rg-more { margin-top: 4px; border-top: 1px solid var(--border); border-radius: 0 0 8px 8px; padding-top: 2px; color: var(--accent); }
.rg-more.rg-active { color: var(--text); }
.rg-panel { display: flex; flex-direction: column; gap: 6px; }
.rg-back { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; min-height: 32px; padding: 0 8px 0 4px; border: 0; background: none; border-radius: 8px;
  font: inherit; font-size: 14px; color: var(--accent); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rg-input { box-sizing: border-box; width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: 14px; }
.rg-input:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
.rg-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.rg-results { max-height: 220px; overflow-y: auto; }
.rg-empty { margin: 4px 10px 8px; font-size: 13px; line-height: 18px; color: var(--text-soft); }
.rg-item:focus-visible, .rg-back:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.rg-menu [hidden] { display: none !important; }
/* Hover only where a pointer can really hover: a touch must not leave a highlighted item or trigger behind. */
@media (hover: hover) {
  .rg-trigger:hover, .rg-back:hover { background: var(--accent-soft); }
  .rg-item:hover:not(.rg-active) { background: var(--card); }
}
@media (pointer: coarse), (max-width: 767px) {
  .rg-trigger { min-height: 44px; }
  .rg-item { min-height: 44px; }
  .rg-back { min-height: 44px; }
  .rg-input { min-height: 44px; font-size: 16px; }
}
/* Desktop: all shops in one row. Mobile (<=600px): 2x2 grid of tags, no horizontal scroll. */
.vp-offers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vp-offer { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--accent); text-decoration: none; color: var(--text); }
.vp-offer:hover { filter: brightness(.97); }
.vp-offer:focus-visible, .vp-shop-empty:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.vp-offer[aria-busy="true"] { opacity: 0.6; }
.vp-offer-shop { margin: 0; font-weight: 400; font-size: 12px; color: var(--text-soft); }
.vp-offer > .vp-offer-shop { order: -1; }
.vp-shop-empty { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; color: var(--text-soft);
  background: var(--card); border: 1px solid var(--border); text-decoration: none; }
.vp-shop-empty:hover { color: var(--accent); border-color: var(--accent); }
/* Market's article dissolves into the row: its link becomes a tag, the legally required ad line (Реклама +
   erid) stays on its own line below the row. */
.vp-offer[data-shop="yandex_market"] { display: contents; }
.vp-offer[data-shop="yandex_market"] > .vp-offer-shop { display: none; }
.vp-offer[data-shop="yandex_market"] .vp-offer-note { order: 9; flex-basis: 100%; min-width: 0; font-size: 10px; line-height: 1.3; overflow-wrap: anywhere; }
.vp-offer[data-shop="yandex_market"] .vp-offer-btn { margin: 0; padding: 4px 10px; font-size: 12px; font-weight: 600; border-radius: 999px;
  background: var(--card); color: var(--text-soft); border: 1px solid var(--border); }
@media (max-width: 600px) {
  .vp-offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vp-offer, .vp-shop-empty, .vp-offer[data-shop="yandex_market"] .vp-offer-btn { display: flex; justify-content: center; text-align: center;
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .vp-offer[data-shop="yandex_market"] .vp-offer-note { grid-column: 1 / -1; white-space: normal; }
  .vp-offer[data-shop="yandex_market"] .vp-offer-btn { font-size: 11px; padding-inline: 6px; }
  .vp-offer-note.vp-offer-empty { grid-column: 1 / -1; }
  /* UX-04: a finger needs ~44px; the tags keep their look and gaps, the target itself grows. */
  .vp-offer, .vp-shop-empty, .vp-offer[data-shop="yandex_market"] .vp-offer-btn { min-height: 44px; align-items: center; }
}
.vp-offer-price { font-size: 14px; font-weight: 700; color: var(--accent); overflow-wrap: anywhere; }
.vp-offer-price-oos { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.vp-offer-tag { align-self: center; padding: 1px 6px; border-radius: 999px; font-size: 10px;
  font-weight: 600; color: var(--warn); background: var(--warn-soft); }
/* "Где купить": a compact list of confirmed offers, cheapest first (the first row is the price the extension shows), then the
   price-less search links apart from it. Rows are soft cards: shop and note at the left, price and arrow at the right. */
.vp-offers-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.vp-offers-title { font-size: 14px; font-weight: 600; color: var(--text); }
.vp-offers-count { font-size: 12px; color: var(--text-soft); }
.vp-offers.vp-offers-list { display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 7px; }
.vp-offers-list:empty { display: none; }
.vp-offers-list .vp-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "shop price" "detail price" "tag price"; align-items: center; align-content: center; column-gap: 12px;
  box-sizing: border-box; width: 100%; padding: 10px 14px; border: 0; border-radius: 12px; background: var(--bg); text-align: left; white-space: normal; overflow: visible; }
.vp-offers-list .vp-offer > .vp-offer-shop { order: 0; grid-area: shop; font-size: 14px; font-weight: 600; color: var(--text); }
.vp-offers-list .vp-offer-price { grid-area: price; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.vp-offers-list .vp-offer-price::after { content: " ↗"; font-weight: 500; color: var(--accent); }
.vp-offers-list .vp-offer-price-oos::after { content: none; }
.vp-offer-detail { grid-area: detail; margin-top: 2px; font-size: 11px; line-height: 1.4; color: var(--text-soft); }
.vp-offer-detail.vp-offer-best { color: var(--ok); }
.vp-offers-list .vp-offer-tag { grid-area: tag; justify-self: start; margin-top: 4px; }
@media (hover: hover) { .vp-offers-list .vp-offer:hover { filter: none; background: var(--accent-soft); } }
.vp-search-group { margin-top: 12px; }
.vp-search-heading { margin: 0 0 6px; font-size: 12px; color: var(--text-soft); }
.vp-search-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
@media (max-width: 600px) {
  .vp-offers.vp-offers-list { display: flex; }
  .vp-offers-list .vp-offer { display: grid; justify-content: stretch; min-height: 48px; }
  .vp-search-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Product rows: the one component of a video review (/v/<id>), also the target of the popup's "Где купить" (?item= opens that row's
   other offers). Sizes, spacing and colours follow the approved full desktop and phone pages ("pcgrab-full-offers-*", "pcgrab-kingston-no-price").
   Desktop: photo 112px and description at the left; the price block (best price and shop, one row of buttons "Детали" / "Ещё N предложений" /
   loupe "Поиск без цены", one shared block) at the right, 300px. Phone (<=650px): photo 80px at the left; name, short parameters and price
   at the right; the buttons and the shared block under them. Buttons never move; toggling only flips `hidden`/aria on sections. The photo
   box is white on purpose: product photos have white backgrounds. */
.pr-page { max-width: 960px; margin-inline: auto; }
.pr-page .vp-back { display: flex; align-items: center; width: max-content; min-height: 36px; margin: 0; padding: 0; font-size: 12px; }
.pr-page-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; margin: 6px 0 0; }
.pr-page-head .vp-h1 { grid-column: 1; margin: 0; font-size: 25px; font-weight: 650; line-height: 1.25; letter-spacing: -.5px; }
.pr-yt { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; gap: 5px; min-height: 40px; font-size: 12px; color: var(--accent); text-decoration: none; }
.pr-yt svg { width: 15px; height: 15px; flex: none; }
.pr-video { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--text-soft); overflow-wrap: anywhere; }
.pr-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin: 8px 0 4px; font-size: 12px; color: var(--text-soft); }
.pr-toolbar .vp-cities { margin: 0; min-width: 0; max-width: 65%; }
.pr-toolbar .vp-city-pick { margin-left: 0; }
.pr-toolbar .vp-city-pick[open] .rg-menu { left: auto; right: 0; width: 240px; max-width: calc(100vw - 32px); }
@media (hover: hover) { .pr-toolbar .rg-item:hover:not(.rg-active), .pr-toolbar .rg-item:focus-visible { background: var(--accent-soft); } }
.pr-products { display: block; }
.pr-product { display: grid; grid-template-columns: 112px minmax(0, 1fr) 300px; gap: 0 20px; align-items: start; min-width: 0; padding: 14px 0; scroll-margin-top: calc(var(--sticky-head, 0px) + 12px); }
.pr-product:focus { outline: none; }
.pr-product[aria-busy="true"] :is(.pr-amount, .pr-store, .pr-pbtn, .pr-no-price) { opacity: .5; }
.pr-visual { display: flex; align-items: center; justify-content: center; width: 112px; height: 112px; margin: 0; overflow: hidden; border-radius: 8px; background: #FFFFFF; }
.pr-visual img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* No photo to show: a few words in the same frame, never an icon or another product's picture. */
.pr-photo-none { padding: 6px; background: var(--card); color: var(--text-soft); font-size: 12px; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
/* Several different photos of the product: side by side in the frame, a swipe or the arrow keys move them (scroll-snap), one dot per photo. */
/* The frame is white in both themes (product photos have white backgrounds), so its controls use two fixed inks instead of theme tokens: a mid grey that reads on white and on dark parts of a photo, and the light-theme accent. */
.pr-gallery { --photo-ink: #8E8EA3; --photo-accent: #6B58D8; position: relative; display: block; }
.pr-gallery:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pr-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.pr-track::-webkit-scrollbar { display: none; }
.pr-slide { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.pr-dots { position: absolute; left: 0; right: 0; bottom: 2px; display: flex; justify-content: center; pointer-events: none; }
/* One button per photo, side by side with no overlap (12 px wide, 10 px on a phone: eight fit the frame); the visible dot is a compact 6 px mark inside it. */
.pr-dot { position: relative; flex: none; width: 12px; height: 16px; padding: 0; border: 0; border-radius: 4px; background: none; pointer-events: auto; cursor: pointer; }
.pr-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--photo-ink); }
.pr-dot[aria-current="true"]::after { background: var(--photo-accent); }
.pr-dot:focus-visible { outline: 2px solid var(--photo-accent); outline-offset: -2px; }
@media (prefers-reduced-motion: no-preference) { .pr-track { scroll-behavior: smooth; } }
.pr-info { min-width: 0; }
.pr-type { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pr-name { margin: 0 0 5px; font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -.2px; overflow-wrap: anywhere; }
.pr-short { margin: 0; font-size: 12px; color: var(--text-soft); }
.vp-buy-body { display: block; min-width: 0; }
.pr-primary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; color: var(--text); text-decoration: none; }
.pr-primary-none { display: block; }
.pr-amount { font-size: 23px; font-weight: 650; line-height: 1.3; letter-spacing: -.4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pr-from { font-size: 13px; font-weight: 400; letter-spacing: 0; }
.pr-store { display: inline-flex; align-items: center; gap: 2px; min-height: 32px; font-size: 12px; color: var(--accent); }
.pr-store .pr-out { width: 13px; height: 13px; flex: none; }
.pr-edition, .pr-stale { flex-basis: 100%; font-size: 11px; color: var(--text-soft); }
.pr-no-price { min-height: 32px; margin: 2px 0 0; font-size: 16px; font-weight: 550; line-height: 1.4; }
.pr-retry { display: block; min-height: 32px; margin-left: -8px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; touch-action: manipulation; }
@media (hover: hover) { .pr-retry:hover { background: var(--accent-soft); } }
.pr-retry:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pr-controls { display: flex; align-items: center; gap: 4px; min-height: 44px; margin: 8px 0 0; }
.pr-pbtn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; padding: 5px 7px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 12px; white-space: nowrap; color: var(--text-soft); cursor: pointer; touch-action: manipulation; }
.pr-pbtn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.pr-search-btn { width: 36px; min-width: 36px; padding: 0; margin-left: auto; }
.pr-btn-icon { width: 15px; height: 15px; flex: none; }
@media (hover: hover) { .pr-pbtn:not([aria-pressed="true"]):hover { background: var(--card); } }
.pr-pbtn:focus-visible, .pr-primary:focus-visible, .pr-yt:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.pr-pane { box-sizing: border-box; min-height: 96px; margin: 6px 0 0; padding: 0 12px; border-radius: 10px; background: var(--card); }
.pr-pane .vp-offers.vp-offers-list { gap: 0; }
.pr-pane .vp-offers-list .vp-offer { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "shop price" "tag price"; box-sizing: border-box; min-height: 48px; padding: 4px 0; border-radius: 0; background: transparent; column-gap: 8px; }
.pr-pane .vp-offers-list .vp-offer > .vp-offer-shop { font-size: 13px; font-weight: 400; }
.pr-pane .vp-offers-list .vp-offer-price { font-size: 14px; font-weight: 600; }
.pr-pane .vp-offers-list .vp-offer-tag { margin-top: 0; }
@media (hover: hover) { .pr-pane .vp-offers-list .vp-offer:hover { background: transparent; } .pr-pane .vp-offers-list .vp-offer:hover > .vp-offer-shop { color: var(--accent); } }
.pr-specs { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; gap: 4px 16px; min-height: 96px; margin: 0; padding: 9px 0; box-sizing: border-box; font-size: 12px; }
.pr-specs dt { color: var(--text-soft); }
.pr-specs dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.pr-unavailable { margin-top: 6px; }
.pr-search-heading { margin: 0; padding-top: 10px; font-size: 11px; color: var(--text-soft); }
.pr-pane .vp-search-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.pr-pane .vp-shop-empty { display: inline-flex; align-items: center; justify-content: flex-start; min-height: 36px; padding: 0; border: 0; background: transparent; font-size: 12px; color: var(--accent); text-align: left; }
/* No price: the loupe section lists the shops as full-width rows (the approved "Цена не найдена" state). */
.pr-primary-none ~ .pr-pane .vp-search-links { display: block; }
.pr-primary-none ~ .pr-pane .vp-shop-empty { display: flex; width: 100%; min-height: 44px; font-size: 13px; }
@media (max-width: 650px) {
  .pr-page .vp-back { min-height: 32px; font-size: 11px; }
  .pr-page-head { margin-top: 0; gap: 0 6px; }
  .pr-page-head .vp-h1 { font-size: 21px; }
  .pr-yt { justify-content: center; width: 36px; min-height: 36px; }
  .pr-yt-text { display: none; }
  .pr-yt .pr-yt-icon { width: 19px; height: 19px; }
  .pr-video { font-size: 11px; }
  .pr-toolbar { min-height: 44px; margin: 2px 0 0; font-size: 11px; }
  .pr-product { grid-template-columns: 80px minmax(0, 1fr); grid-template-areas: "photo name" "photo short" "photo price" "oos oos" "ctrl ctrl" "pane pane"; gap: 0 12px; padding: 10px 0 8px; }
  .pr-visual { grid-area: photo; width: 80px; height: 80px; }
  .pr-photo-none { font-size: 11px; padding: 4px; }
  .pr-dot { width: 10px; }
  .pr-info, .vp-buy-body { display: contents; }
  .pr-name { grid-area: name; margin: 0 0 3px; font-size: 15px; letter-spacing: -.1px; }
  .pr-short { grid-area: short; margin: 0 0 5px; }
  .pr-primary { grid-area: price; }
  .pr-amount { font-size: 21px; }
  .pr-no-price { grid-area: price; min-height: 0; margin: 0; font-size: 15px; }
  .pr-retry { min-height: 44px; }
  .pr-primary-none { grid-area: price; }
  .pr-unavailable { grid-area: oos; }
  .pr-controls { grid-area: ctrl; margin: 6px 0 0; }
  .pr-pbtn { min-height: 44px; }
  .pr-pane { grid-area: pane; margin-top: 4px; }
}
.vp-offer-note, .vp-disclosure, .vp-offer-footnote { margin: 0; color: var(--text-soft); font-size: 12px; font-weight: 400; }
.vp-offer-btn { display: inline-block; margin-top: 4px; background: var(--accent); color: var(--on-accent);
  padding: 8px 10px; border-radius: 10px; font-size: 13px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.vp-offer-btn:hover { filter: brightness(1.08); }
.vp-offer-btn-plain { background: var(--accent-soft); color: var(--accent); }
.vp-offer-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.vp-offer-footnote { margin-top: 12px; }
.vp-disclosure { margin: 16px 0 0; }
.vp-disclosure[hidden] { display: none; }
.vp-notfound { text-align: center; padding: 60px 0; }
.vp-notfound h1 { font-size: 20px; margin-bottom: 10px; }
.vp-notfound a { color: var(--accent); }

/* Catalog filters and layout */
.vp-tools { display: flex; flex-direction: column; gap: 8px; margin: 0 0 8px; }
.vp-search-form { display: flex; }
.vp-search-form .vp-search { flex: 1; }
a.vp-chip-btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }

/* Catalog controls stay available inside the central scrolling area. */
.vp-panel { position: sticky; top: 0; z-index: 30; background: var(--bg); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px;
  padding: 6px 0; margin: 0 0 10px; border-bottom: 1px solid var(--border); }
.vp-count-slot { margin: 0; }
.vp-pager-slot { margin: 0; }
.vp-pager-slot:empty { margin: 0; }
/* Loading state dims elements and disables pointer events on buttons; does not intercept keyboard navigation. */
.vp-loading { opacity: .55; }
.vp-panel.vp-loading .vp-page, .vp-panel.vp-loading .vp-size { pointer-events: none; }
.vp-count-row { display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 8px 16px; }
.vp-total { font-size: 13px; color: var(--text-soft); }
.vp-size-form { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vp-size-label { font-size: 13px; color: var(--text-soft); }
.vp-size { height: 40px; min-height: 40px; padding: 0 12px; font-size: 13px;
  font-weight: 600; color: var(--text); background: var(--card);
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.vp-size:hover { border-color: var(--accent); }
/* One ring: the border turns transparent and the outline sits over it, instead of a coloured border plus an offset outline. */
.vp-size:focus-visible { border-color: transparent; outline: 2px solid var(--focus);
  outline-offset: -1px; }
.vp-size-go { height: 40px; min-height: 40px; padding: 0 14px; font-size: 13px;
  font-weight: 600; color: var(--accent); background: var(--card);
  border: 1px solid var(--accent); border-radius: 10px; cursor: pointer; }
.vp-size-go:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 560px) {
  .vp-count-row { justify-content: flex-start; row-gap: 10px; }
  .vp-size-form { width: 100%; justify-content: space-between; }
}

/* Pagination controls */
.vp-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0; }
.vp-page { display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px; padding: 0 14px; text-decoration: none;
  border: 1px solid var(--border); border-radius: 10px; background: var(--card);
  color: var(--text); font-size: 14px; font-weight: 600; line-height: 1; }
.vp-page:hover { color: var(--accent); border-color: var(--accent); }
.vp-page:focus-visible { border-color: transparent; outline: 2px solid var(--focus);
  outline-offset: -1px; }
.vp-page-current, .vp-page-current:hover { background: var(--accent);
  border-color: var(--accent); color: var(--on-accent); }
.vp-page-prev, .vp-page-next { padding: 0 16px; }
.vp-page-off, .vp-page-off:hover { background: var(--card); border-color: var(--border);
  color: var(--text-soft); opacity: .38; cursor: default;
  pointer-events: none; user-select: none; }
.vp-page-gap { display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; min-height: 40px; font-size: 14px; color: var(--text-soft); }
@media (max-width: 480px) {
  .vp-page { padding: 0 10px; font-size: 13px; }
  .vp-page-prev, .vp-page-next { padding: 0 12px; }
}
.vp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vp-chip-btn { border: 1px solid var(--border); background: var(--card); color: var(--text-soft);
  border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease; }
.vp-chip-btn:focus { outline: none; border-radius: 999px; }
.vp-chip-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--focus); }
@media (prefers-reduced-motion: reduce) { .vp-chip-btn { transition: none; } }
.vp-chip-btn:hover { color: var(--accent); border-color: var(--accent); }
.vp-chip-btn.vp-chip-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.vp-search { border: 1px solid var(--border); background: var(--card); color: var(--text);
  border-radius: 10px; padding: 8px 12px; font-size: 14px; width: 100%; }

/* Natural catalog rows: larger page sizes scroll inside main without a height reservation. */
.vp-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  grid-auto-rows: auto; align-content: start; min-height: 0; }

.vp-cat-card { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 10px; text-decoration: none; color: var(--text); }
.vp-cat-card:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(124, 108, 240, .14); }
.vp-cat-card:focus-visible { border-color: var(--accent); }
/* Thumbnail container maintains a 16:9 ratio; align-self:flex-start prevents stretching inside the flex card. */
.vp-cat-thumb-wrap { flex: none; width: 160px; aspect-ratio: 16 / 9; align-self: flex-start;
  border-radius: 10px; background: var(--accent-soft); box-shadow: 0 0 0 1px var(--border); overflow: hidden; }
/* W09: no cover image → a small dimmed "play" glyph instead of a blank tinted rectangle; pure CSS, no asset. */
.vp-cat-thumb-wrap:empty { display: flex; align-items: center; justify-content: center; }
.vp-cat-thumb-wrap:empty::after { content: ''; width: 0; height: 0;
  border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 14px solid var(--accent); opacity: .35; }
.vp-cat-thumb { width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 10px; background: var(--accent-soft); }
.vp-cat-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; align-self: stretch; }
.vp-cat-title { font-weight: 700; font-size: 14px; line-height: 1.35; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.vp-cat-meta { font-size: 12px; color: var(--text-soft); }
.vp-cat-meta .vp-cat-count { color: var(--text-soft); font-weight: 600; }
.vp-cat-meta .vp-cat-date { color: var(--text-soft); }
.vp-cat-found { font-size: 12px; color: var(--text-soft); display: -webkit-box;
  -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.vp-cat-open { font-size: 12px; font-weight: 700; color: var(--accent); }

@media (max-width: 300px) {
  .vp-cat-card { flex-direction: column; }
  .vp-cat-thumb-wrap { width: 100%; align-self: stretch; }
  .vp-cat-body { flex: none; width: 100%; }
}

/* Focus indicator for keyboard navigation */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.latest-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 40px 0 14px; }
.latest-head h2 { margin: 0; }
.latest-all { color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; margin-left: auto; }
.latest-all { padding: 4px 8px; border-radius: 8px; }
.latest-all:hover { background: var(--accent-soft); }

.hero-right { display: flex; flex-direction: column; gap: 12px; align-items: center; }
@media (min-width: 900px) { .hero-right { align-items: flex-end; } }
.hero-right:has(.hero-shot) .demo { display: none; }
.hero-shot { flex: none; width: 100%; max-width: 320px; margin: 0; }
.hero-shot img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border);
  background: var(--card); cursor: zoom-in; display: block; }
.hero-shot figcaption { font-size: 12px; color: var(--text-soft); margin-top: 8px; text-align: center; }

/* Screenshot lightbox overlay */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 14, 0.82);
  display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox img { max-width: min(94vw, 1200px); max-height: 88vh; width: auto; height: auto;
  border-radius: 12px; box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5); }
.lightbox-close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px;
  border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: var(--on-overlay);
  font-size: 24px; line-height: 1; cursor: pointer; }
.lightbox-close:focus-visible { outline-color: var(--on-overlay); }
.lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }

/* About section.
   Text link colors exclude .btn via :not(.btn) to avoid overriding button text styles. */
.about-scenarios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 24px; }
.about .about-scenarios h2 { font-size: 18px; margin: 0 0 10px; line-height: 1.3; }
.about-scenarios p { margin-bottom: 0; }
.about .how-to-use { margin-top: 28px; }
.about .how-to-use > h2 { font-size: 22px; margin: 0 0 4px; }
.about .about-scenarios h3 { font-size: 17px; margin: 0 0 8px; line-height: 1.3; }
.about-scenarios ol { margin: 0; padding-left: 22px; }
.about-scenarios li { margin-bottom: 6px; }
.about-note { margin-top: 10px; color: var(--text-soft); font-size: 14px; }
.about .how-to-use { scroll-margin-top: 16px; }
.about { max-width: 820px; margin-inline: auto; }
.about h2 { margin: 16px 0 8px; }
.about a:not(.btn) { color: var(--accent); text-decoration: none; }
.about a:not(.btn) { border-radius: 4px; }
.about a:not(.btn):hover { background: var(--accent-soft); }
.about a:not(.btn):visited { color: var(--accent); }
.about-contact { margin-top: 20px; padding: 12px 14px; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn-ghost { display: inline-block; padding: 13px 26px; border-radius: 12px; font-weight: 700;
  text-decoration: none; color: var(--accent); border: 1px solid var(--accent); background: transparent; }
.btn-ghost:hover { background: var(--accent-soft); }

/* Extension install guide */
.install-wrap { max-width: 896px; margin-inline: auto; }
/* Download is a compact action in the corner of the first card: icon + text, no fill, light background on hover. */
.install-download { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; margin: -6px -8px -6px 0; border-radius: 8px; color: var(--accent);
  font-size: 14px; font-weight: 600; line-height: 1.2; }
.install-download:hover { background: var(--accent-soft); }
.install-download:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.install-download svg { width: 20px; height: 20px; }
.install-step-icon { display: none; }
.install-steps .install-for { margin: 2px 0 0; font-size: 12px; color: var(--text-soft); }
.install-steps { margin-top: 16px; }
.install-steps li { margin-bottom: 16px; }
.install-steps h3 { font-size: 15px; margin-bottom: 4px; color: var(--text); }
.install-steps p { color: var(--text-soft); }
.install-steps code { background: var(--card); border: 1px solid var(--border); border-radius: 6px;
  padding: 1px 6px; font-size: 13px; user-select: all; overflow-wrap: anywhere; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--bg); color: var(--accent);
  border-radius: 8px; height: 32px; padding: 0 10px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; flex: none; }
.copy-btn:hover { border-color: var(--accent); }
.copy-btn svg, .copy-main svg { width: 16px; height: 16px; flex: none; }
.ico-check { display: none; }
[data-copied] .ico-copy { display: none; }
[data-copied] .ico-check { display: inline-block; }
.copy-btn:focus-visible, .copy-main:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* The address field: the copy button lives inside it. */
.install-copy-row { display: flex; align-items: center; gap: 8px; box-sizing: border-box; height: 44px; margin: 10px 0 0; padding: 0 6px 0 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.install-copy-row code { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; padding: 0; font-size: 14px; overflow-wrap: anywhere; }
.install-shot-wrap { margin: 10px 0 0; }
.install-shot { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border);
  display: block; cursor: zoom-in; }
.install-shot-wrap figcaption { font-size: 12px; color: var(--text-soft); margin-top: 8px; }
.install-popup { margin: 22px 0 0; max-width: 360px; }
.install-popup img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); display: block; }
.install-popup figcaption { font-size: 12px; color: var(--text-soft); margin-top: 8px; }
.install-help { margin-top: 12px; font-size: 14px; color: var(--text-soft); }
.install-help a { color: var(--accent); }

/* Notice displayed using hover and pointer interaction media features, not viewport width or phone detection. */
.mobile-notice, .mobile-only { display: none; }
.vp-pager-end { display: none; }
.vp-load-status { margin: 8px 0; color: var(--text-soft); font-size: 14px; text-align: center; }
.vp-load-status[hidden] { display: none; }
.vp-retry { min-height: 44px; padding: 0 16px; margin-left: 8px; border: 1px solid var(--accent); border-radius: 10px; background: var(--card); color: var(--accent); font: inherit; cursor: pointer; }
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  .mobile-notice { display: block; margin: 0 0 18px; padding: 14px 16px; background: var(--card);
    border: 1px solid var(--border); border-radius: 14px; }
  .mobile-notice p { color: var(--text-soft); font-size: 14px; margin-bottom: 10px; }
  /* Description, button and link share one left edge; controls hug their content. */
  .mobile-notice { display: flex; flex-direction: column; align-items: flex-start; }
  .mobile-notice .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box;
    min-height: 40px; padding: 0 14px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 500; line-height: 20px; cursor: pointer; }
  .mobile-notice .btn svg { flex: none; width: 16px; height: 16px; }
  .mobile-notice .copy-main { background: var(--bg); color: var(--text); border: 1px solid var(--icon); }
  .mobile-notice .copy-main:hover { filter: none; background: var(--accent-soft); }
  .mobile-notice .btn-ghost { display: inline-flex; align-items: center; min-height: 32px; margin-top: 4px; padding: 0; border: 0; border-radius: 4px;
    background: none; font-size: 14px; font-weight: 500; color: var(--accent); text-decoration: none; }
  .mobile-notice .btn-ghost:hover { background: none; text-decoration: none; }
  /* Fallback when the clipboard is unavailable: a compact selectable link field. */
  .mobile-notice [data-install-url]:not([hidden]) { box-sizing: border-box; max-width: 100%; margin: 8px 0 0; padding: 8px 10px; border: 1px solid var(--border);
    border-radius: 8px; background: var(--bg); color: var(--text); font-size: 13px; line-height: 1.3; }
}

/* Shared footer identity; only the product name is bold. */
.site-credit { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; white-space: nowrap; }
.site-credit strong { font-weight: 700; color: var(--accent); }
.site-foot a.site-credit-home, .site-foot a.site-credit-home:visited, .site-foot a.site-credit-home:hover, .site-foot a.site-credit-home:active { color: var(--accent); text-decoration: none; }
.privacy-policy-link, .privacy-policy-link:visited, .privacy-policy-link:hover { color: var(--accent); font-weight: 600; }
/* Neutral placeholders stay visible until the matching image has loaded. */
.latest-placeholder { min-height: 86px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); }
.latest-thumb { display: block; flex: none; width: 160px; min-height: 90px; aspect-ratio: 16 / 9; background: var(--border); border-radius: 10px; box-shadow: 0 0 0 1px var(--border); overflow: hidden; }
.latest-thumb img { width: 100%; height: 100%; border-radius: 0; background: transparent; }
/* Reserve the same card space before /web/latest arrives. The text budget is two category
   lines, three title/found lines, two metadata rows and two AI lines, plus gaps/padding. */
.home .latest-row { --latest-card-height: 294px; }
.home .latest-card, .home .latest-placeholder { min-height: var(--latest-card-height); }
@media (min-width: 768px) {
  .home .latest-row { --latest-card-height: 298px; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  /* Stacked cards add the 90px preview and the existing 16px gap. */
  .home .latest-row { --latest-card-height: 365px; }
}
@media (min-width: 1280px) {
  /* At full container width metadata and the AI caption each fit on one row. */
  .home .latest-row { --latest-card-height: 259px; }
}
@media (min-width: 900px) and (max-height: 850px) {
  /* The compact layout below saves 51.4px through its two-line clamps and margins. */
  .home .latest-card, .home .latest-placeholder { min-height: calc(var(--latest-card-height) - 51px); }
}
/* Loading is announced without introducing a status row that disappears on success.
   Empty/error messages remain visible once aria-busy becomes false. */
.latest-row[aria-busy="true"] + [data-latest-status] { position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-thumbs-ready [data-video-thumb] { opacity: 0; }
.site-thumbs-ready [data-video-thumb][data-loaded] { opacity: 1; }
.dc-head { justify-content: space-between; align-items: flex-start; }
.dc-cat { min-width: 0; overflow-wrap: anywhere; }
.dc-confidence { position: relative; flex: none; margin-left: auto; }
.dc-conf { list-style: none; cursor: help; white-space: nowrap; border-radius: 999px; padding: 2px 6px; background: var(--card); }
.dc-conf::-webkit-details-marker { display: none; }
.dc-confidence-help { display: none; position: absolute; right: 0; top: 100%; z-index: 5; width: 220px; max-width: calc(100vw - 48px); padding: 8px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px; font-size: 12px; }
.dc-confidence[open] .dc-confidence-help, .dc-confidence:hover .dc-confidence-help, .dc-confidence:focus-within .dc-confidence-help { display: block; }

/* Compact app pages retain all content; lower heights fall back to main scrolling. */
.home-howto { display: grid; gap: 12px 24px; }
.home-howto h3 { font-size: 14px; margin-bottom: 4px; }
.home-howto p { font-size: 14px; color: var(--text-soft); }
.hero > div:first-child { min-width: 0; flex: 1; }
.hero .lead { margin: 10px 0 0; }
[data-latest-status]:empty { display: none; }
.install-steps { list-style: none; margin-left: 0; padding: 0; }
.install-steps li { break-inside: avoid; min-width: 0; }
.install-wrap [data-install-url] { user-select: all; overflow-wrap: anywhere; margin-block: 10px; }
@media (min-width: 768px) {
  .latest-card, .vp-cat-card { gap: 16px; padding: 16px 20px; }
  .home-howto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .install-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
  .install-steps li { margin-bottom: 0; }
  /* One grid row: the action of each step (download, address field) sits on the same horizontal line. */
  .install-steps li { display: flex; flex-direction: column; }
  .install-steps li > .install-copy-row { margin-top: auto; }
  .install-shot { max-height: 100px; object-fit: contain; }
  .install-popup { max-width: 260px; margin-top: 12px; }
  .install-popup img { max-height: 110px; object-fit: contain; }
  .vp-size-form { margin-left: 12px; }
  main:has(> .vp-catalog) { display: flex; flex-direction: column; }
  main:has(> .vp-catalog) > * { flex-shrink: 0; }
  main:has(> .vp-catalog) > .vp-panel { order: 1; position: static; margin: 10px 0 0;
    border-bottom: 0; border-top: 1px solid var(--border); }

}
@media (min-width: 768px) and (max-width: 1099px) {
  .latest-card, .vp-cat-card { flex-direction: column; }
  .latest-body, .vp-cat-body { width: 100%; }
}
/* Desktop installation uses the available page height and retains natural scrolling on short screens. */
@media (min-width: 768px) {
  main:has(> .install-wrap) { display: flex; flex-direction: column; }
  .install-wrap { width: 100%; margin-block: auto; padding: 26px; box-sizing: border-box;
    background: var(--card); border: 1px solid var(--border); border-radius: 24px;
    box-shadow: 0 12px 40px rgba(24, 24, 27, .05); }
  .install-wrap h1 { font-size: 30px; margin-bottom: 18px; }
  .install-steps { margin: 0; padding: 0; list-style: none; gap: 12px; }
  .install-steps li { padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); }
  .install-steps p { font-size: 13px; line-height: 1.45; }
  .install-copy-row code { font-size: 13px; }
  .install-help { margin-top: 16px; margin-bottom: 0; text-align: center; font-size: 13px; }
}
.install-step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: var(--accent); }
.install-step-number { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 9px; background: var(--accent-soft); font-weight: 700; font-size: 14px; }
.install-step-top svg { width: 24px; height: 24px; }
@media (min-width: 1100px) {
  main:has(> .vp-catalog) { padding-block: 12px; }
  main:has(> .vp-catalog) > .vp-h1 { font-size: 28px; margin-bottom: 6px; }
  main:has(> .vp-catalog) > .vp-intro { margin-bottom: 10px; }
  .vp-catalog { gap: 10px; }
  .vp-cat-body { gap: 3px; }
  .vp-cat-title { font-size: 13px; }
}
@media (min-width: 900px) and (max-height: 850px) {
  main { padding-block: 12px; }
  .site-head-in { padding-block: 8px; }
  .home h1 { font-size: 30px; line-height: 1.15; }
  .hero { gap: 24px; }
  .hero .lead { font-size: 14px; line-height: 1.45; }
  .home h2, .home .latest-head { margin: 6px 0 4px; }
  .home .latest-category { margin-bottom: 3px; }
  .home .latest-card h3, .home .latest-card p.meta { margin-bottom: 4px; }
  .home-howto { gap: 8px 24px; }
  .home .latest-head h2 { margin: 0; }
  .latest-card h3 { -webkit-line-clamp: 2; font-size: 15px; }
  .latest-card .found { -webkit-line-clamp: 2; }
  .hero .demo { max-width: 320px; padding: 10px 12px; }
  .hero .dc-spec { font-size: 12px; line-height: 1.35; }
  .hero-shot img { max-height: 220px; object-fit: contain; }
  .home-howto p { line-height: 1.4; }
}
@media (max-width: 767px) {
  main { padding-block: 12px; }
  .container { padding-inline: 16px; }
  .site-foot-in { padding: 5px 16px; gap: 10px; font-size: 11px; }
  .site-footer-links { display: flex; gap: 0; }
  .site-credit { gap: 3px; }
  .site-contacts { gap: 0; }
  .site-icon[data-tip]:not([data-tip-open]):not(:focus-visible)::after { opacity: 0; visibility: hidden; }
  .site-foot-in > * { min-height: 28px; }
}
/* Very narrow phones: credit + text link on one row, the icons on the next; nothing is cropped. */
@media (max-width: 380px) {
  .site-foot-in { flex-wrap: wrap; }
  .site-footer-links { flex: 1 1 100%; justify-content: space-between; }
}
@media (max-width: 767px) {
  .site-foot .site-icon { width: 32px; height: 34px; }
  .vp-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 4px; scroll-padding-inline: 4px; }
  .vp-chip-btn { flex: none; white-space: nowrap; min-height: 36px; display: inline-flex; align-items: center; }
  /* With JS: a short row (Всё, Мини-ПК, Ноутбуки, Консоли, Пауэрбанки + the chosen one) scrolling on its own, and a pinned "…" for the rest. */
  .vp-js .vp-chips-wrap { display: flex; align-items: center; gap: 6px; }
  .vp-js .vp-chips-wrap > .vp-chips { flex: 1 1 auto; min-width: 0; }
  .vp-js .vp-chips .vp-chip-btn:not([data-short]):not(.vp-chip-active) { display: none; }
  .vp-js .vp-cats-more { display: inline-flex; }
  .vp-chips::-webkit-scrollbar, .vp-catalog::-webkit-scrollbar, .latest-row::-webkit-scrollbar { display: none; }
  .vp-catalog { display: flex; flex-direction: column; gap: 10px; padding: 3px 0 10px; min-height: 0; }
  .vp-cat-card { flex: none; width: 100%; min-width: 0; padding: 14px; gap: 12px; }
  .vp-cat-thumb-wrap, .latest-thumb { width: 140px; }
  .latest-thumb { min-height: 78.75px; }
  .vp-thumb { width: 100%; }
  .vp-cat-title { -webkit-line-clamp: 3; }
  .vp-cat-found { -webkit-line-clamp: 3; }
  /* Phones: ordinary pages (Назад / numbers / Далее) under the list; the sticky panel keeps only the count and size. */
  .vp-pager-slot { display: none; }
  .vp-pager-end { display: block; margin: 8px 0 14px; }
  .vp-pager-end .vp-pager { justify-content: center; }
  .vp-pager-end .vp-page { min-height: 44px; min-width: 44px; }
  .vp-pager-end .vp-page-prev, .vp-pager-end .vp-page-next { padding: 0 14px; }
  .site-head { position: sticky; top: 0; z-index: 50; }
  main { overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; }
  .mobile-only { display: block; }
  .mobile-notice { position: sticky; top: -12px; z-index: 10; padding: 10px 12px; margin-bottom: 14px; }
  .mobile-notice p { font-size: 12px; line-height: 1.4; margin-bottom: 8px; }
  .about-scenarios { grid-template-columns: minmax(0, 1fr); gap: 20px; }

  main:has(> .vp-catalog) { padding-block: 10px; }
  main:has(> .vp-catalog) > .vp-h1 { font-size: 18px; margin-bottom: 4px; }
  main:has(> .vp-catalog) > .vp-intro { font-size: 13px; line-height: 1.4; margin-bottom: 8px; }
  main:has(> .vp-catalog) .vp-tools { gap: 6px; margin-bottom: 6px; }
  main:has(> .vp-catalog) .vp-panel { padding-block: 4px; margin-bottom: 6px; }
  .vp-count-row { gap: 6px 10px; }
  .latest-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; padding: 3px; }
  .latest-card, .latest-placeholder { flex: 0 0 calc(100% - 16px); min-width: 0; scroll-snap-align: start; }
  /* Outlined compact primary action instead of the desktop filled button. */
  .hero .btn { display: inline-flex; align-items: center; box-sizing: border-box; min-height: 40px; padding: 0 14px; border: 1px solid var(--accent);
    border-radius: 10px; background: transparent; color: var(--accent); font-size: 14px; font-weight: 500; line-height: 20px; }
  .hero .btn:hover { filter: none; background: var(--accent-soft); }
  /* The extension installs on desktop Chrome only: on phones the step keeps its icon instead of a download action. */
  .install-download { display: none; }
  .install-step-icon { display: block; }
}

/* Short phones keep the catalog card above the persistent footer. */
@media (max-width: 767px) and (max-height: 650px) {
  main:has(> .vp-catalog) { padding-block: 4px; }
  main:has(> .vp-catalog) > .vp-h1 { margin-bottom: 2px; }
  main:has(> .vp-catalog) > .vp-intro { margin-bottom: 4px; }
  main:has(> .vp-catalog) .vp-tools { gap: 4px; margin-bottom: 4px; }
  main:has(> .vp-catalog) .vp-chips { padding-block: 1px; }
  main:has(> .vp-catalog) .vp-chip-btn { min-height: 30px; padding: 4px 10px; }
  main:has(> .vp-catalog) .vp-search { padding: 6px 10px; }
  main:has(> .vp-catalog) .vp-panel { padding-block: 2px; margin-bottom: 4px; }
  main:has(> .vp-catalog) .vp-catalog { padding-bottom: 4px; }
  main:has(> .vp-catalog) .vp-cat-card { padding: 10px; gap: 10px; }
  main:has(> .vp-catalog) .vp-cat-title,
  main:has(> .vp-catalog) .vp-cat-found { -webkit-line-clamp: 2; }
}

/* Category list as a bottom sheet (phones, JS). Same anchors/codes as the chips; colours come from the site tokens. */
.vp-cats-more { display: none; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); color: var(--accent); cursor: pointer; }
.vp-cats-more:focus-visible, .vp-sheet-close:focus-visible, .vp-sheet a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.vp-sheet { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; justify-content: center; }
.vp-sheet[hidden] { display: none; }
.vp-sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.vp-sheet-panel { position: relative; width: 100%; max-width: 560px; max-height: min(78vh, 78dvh); display: flex; flex-direction: column; box-sizing: border-box;
  background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 16px 16px 0 0; padding: 0 16px env(safe-area-inset-bottom, 0); }
.vp-sheet-head { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.vp-sheet-head h2 { margin: 0; font-size: 17px; }
.vp-sheet-close { width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.vp-sheet-list { overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 6px; padding: 0 0 16px; }
.vp-sheet-list a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--card);
  color: var(--text); text-decoration: none; font-size: 15px; }
.vp-sheet-list a[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.vp-sheet-open main { overflow: hidden; }
@media (min-width: 768px) { .vp-sheet { display: none; } }
/* Inline rating icons in the policy text: the popup's SVG, inheriting the text colour. */
.policy-icon { width: 1.15em; height: 1.15em; vertical-align: -0.22em; }
/* Narrow phones (320-359 px): a smaller cover keeps the text column readable and the "open" arrow on its line. */
@media (max-width: 359px) {
  .vp-cat-card { padding: 12px; gap: 10px; }
  .vp-cat-thumb-wrap { width: clamp(88px, 30vw, 104px); }
  .vp-cat-open { white-space: nowrap; }
}
