/* Verateca site — page layout only. Every colour, length and radius is a token from tokens.css.
   No colours, buttons or components of our own: those come from the design system (packages/design-system).
   The rules below transcribe the inline layout of the canvas artboards (1440 and 390). Phone = up to 720 px. */

html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 15px; line-height: 22px; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

.vt-page { display: flex; flex-direction: column; min-height: 100vh; }
.wrap { max-width: 1200px; width: 100%; margin: 0 auto; box-sizing: border-box; padding: 0 var(--space-5) var(--space-7); display: flex; flex-direction: column; gap: var(--space-6); flex: 1; }
.wrap--880 { max-width: 880px; padding-top: var(--space-7); }
.wrap--top { padding-top: var(--space-8); gap: var(--space-7); }

/* type, from the artboards (sizes equal the system's type tokens) */
.title { font-size: 40px; line-height: 44px; font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; }
.h1x { font-size: 28px; line-height: 34px; font-weight: 500; }
.small { font-size: 13px; line-height: 18px; }
.xsmall { font-size: 12px; line-height: 16px; }
.muted { color: var(--ink-muted); }
.ink { color: var(--ink); }
.num { font-variant-numeric: tabular-nums; }
.b5 { font-weight: 500; }
.label-ui { font-size: 12px; line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; color: var(--ink-muted); }
.code { font-family: var(--font-mono); font-size: 13px; }
pre.block { margin: 0; padding: var(--space-4); background: var(--bg-muted); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 13px; line-height: 20px; overflow-x: auto; }
pre.block--dark { background: var(--bg-graphite); color: var(--ink-on-graphite); }

/* stacks and rows */
.stack-1, .stack-2, .stack-3, .stack-4, .stack-5, .stack-6 { display: flex; flex-direction: column; }
.stack-1 { gap: var(--space-1); } .stack-2 { gap: var(--space-2); } .stack-3 { gap: var(--space-3); }
.stack-4 { gap: var(--space-4); } .stack-5 { gap: var(--space-5); } .stack-6 { gap: var(--space-6); }
.between { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.row { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.head-row { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); align-items: flex-end; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.actions, .actions > span { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.crumbs { display: flex; gap: var(--space-2); font-size: 13px; line-height: 18px; color: var(--ink-muted); flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: var(--space-2); }
.list--tight { gap: var(--space-1); }

/* grids */
.g2, .g3, .g4, .g5 { display: grid; gap: var(--space-4); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g2--gap6, .g3--gap6 { gap: var(--space-6); }
.gap-3 { gap: var(--space-3); } .gap-5 { gap: var(--space-5); }

/* surfaces */
.box { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.box--4 { padding: var(--space-4); }
.box--tint { background: var(--brand-tint); border-color: transparent; }
.box--muted { background: var(--bg-muted); border-color: transparent; }
.box--unknown { background: var(--status-unknown-bg); border: 1px dashed var(--line-strong); }
.tile { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); background: var(--bg-raised); min-width: 0; }
.tile:hover { text-decoration: none; border-color: var(--line-strong); }
.tile--on { background: var(--brand-tint); }
.tile--lg { padding: var(--space-4) var(--space-5); }
.photo { aspect-ratio: 1 / 1; max-width: 100%; background: var(--bg-muted); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--space-4); box-sizing: border-box; color: var(--ink-muted); font-size: 13px; line-height: 18px; }
.photo--sm { padding: var(--space-3); }
.note { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-3); background: var(--status-unknown-bg); border: 1px dashed var(--line); border-radius: var(--radius-xs); font-size: 13px; line-height: 18px; }

/* tables */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.tbl { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 22px; }
.tbl thead tr { background: var(--bg-muted); }
.tbl th { text-align: left; padding: var(--space-3) var(--space-4); font-size: 12px; line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; color: var(--ink-muted); }
.tbl td { padding: var(--space-3) var(--space-4); }
.tbl tbody tr { border-top: 1px solid var(--line); }
.tbl .r { text-align: right; }
.tbl .sub, .sub { display: block; font-size: 12px; line-height: 16px; color: var(--ink-muted); font-weight: 400; }

/* compare table: first column fixed while scrolling */
.cmp { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 15px; line-height: 22px; }
.cmp th, .cmp td { vertical-align: top; text-align: left; }
.cmp .stick { position: sticky; left: 0; z-index: 1; background: var(--bg-raised); border-right: 1px solid var(--line-strong); }
.cmp thead th { padding: var(--space-4); border-bottom: 1px solid var(--line); background: var(--bg-raised); }
.cmp thead .stick { z-index: 2; vertical-align: bottom; width: 200px; min-width: 200px; }
.cmp thead th + th { border-left: 1px solid var(--line); min-width: 210px; }
.cmp tbody th { padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line); font-weight: 500; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.cmp tbody td { padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line); border-left: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.cmp .add { background: var(--bg-muted); min-width: 180px; font-weight: 400; }
.minibar { height: 8px; background: var(--bar-track); border-radius: var(--radius-xs); position: relative; overflow: hidden; max-width: 180px; }
.minibar > i { position: absolute; top: 0; bottom: 0; }
.minibar > .f { left: 0; background: var(--bar-fill); }
.minibar > .o { right: 0; background: var(--bar-over); }

/* tabs (drawer) */
.tabs { display: flex; padding: 0 var(--space-4); border-bottom: 1px solid var(--line); }
.tab { font: inherit; font-weight: 500; background: transparent; border: 0; border-bottom: 2px solid transparent; padding: var(--space-3); color: var(--ink-muted); cursor: pointer; }
.tab[aria-selected="true"] { border-bottom-color: var(--brand); color: var(--ink); }

/* drawer of favourites and basket */
.drawer-scrim { position: fixed; inset: 0; background: var(--overlay); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100%; background: var(--bg-raised); color: var(--ink); z-index: 41; display: flex; flex-direction: column; box-shadow: var(--shadow-float); border-radius: var(--radius-md) 0 0 var(--radius-md); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--space-3) var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.drawer__foot { padding: var(--space-2) var(--space-4); border-top: 1px solid var(--line); }
.cbar-dock { position: sticky; bottom: 16px; align-self: center; width: 100%; max-width: 920px; z-index: 30; }

/* phone header (the canvas builds it from Logo, CountryPill and Button) */
.ph-header { background: var(--bg-raised); border-bottom: 1px solid var(--line); padding: 0 var(--space-4); min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }

/* desktop / phone switches */
.only-phone, .only-phone-inline, .only-phone-block, .only-phone-flex { display: none !important; }
.only-desk-inline { display: inline-flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }

@media (max-width: 720px) {
  .only-desk, .only-desk-inline, .only-desk-block, .only-desk-flex { display: none !important; }
  .only-phone, .only-phone-flex { display: flex !important; flex-direction: column; }
  .only-phone-inline { display: inline-flex !important; gap: var(--space-2); flex-wrap: wrap; }
  .only-phone-block { display: block !important; }
  .wrap { padding: var(--space-4) var(--space-4) var(--space-7); gap: var(--space-5); }
  .wrap--top { padding-top: var(--space-5); gap: var(--space-6); }
  .wrap--880 { padding-top: var(--space-5); }
  .title { font-size: 28px; line-height: 34px; letter-spacing: -0.005em; }
  .head-row { flex-direction: column; align-items: stretch; gap: var(--space-2); }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .g2.keep { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g2--gap6, .g3--gap6 { gap: var(--space-5); }
  .box { padding: var(--space-4); }
  .drawer { width: 100%; border-radius: 0; }
  .cbar-dock { bottom: 8px; }
}

/* compare bar dock on pages without a place for it in the layout */
.cbar-dock--fixed { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; width: calc(100% - 32px); max-width: 920px; }
.vt-list-notice {
  position: fixed;
  z-index: 39;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 16px;
  background: var(--bg, #fff);
  color: var(--ink, #202633);
  border: 1px solid var(--line, #ccc);
  border-radius: 8px;
  box-shadow: 0 4px 24px #0002;
  font-size: 14px;
}
[data-drawer-notice] .vt-list-notice { position: static; transform: none; max-width: 100%; margin-block-end: 8px; }
.vt-list-notice[hidden] { display: none; }
.cbar-dock:empty { display: none; }
@media (max-width: 720px) { .ph-header.only-phone { flex-direction: row; } }

/* Preview samples (src/pages/sample.jsx): a real pack photo inside the photo tile; a quiet preview note. */
.photo--img { padding: 0; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.photo--img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sample-note { color: var(--ink-muted); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); }

/* Home variant B (?home=b): scale line in numbers, three actions, one live example. */
.hb-scale { margin: 0; font-size: 17px; line-height: 24px; font-weight: 500; color: var(--ink); }
.hb-action { gap: var(--space-2); }
.hb-cta { color: var(--link); margin-top: auto; }
.hb-example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); align-items: center; padding: var(--space-5); background: var(--bg-muted); border-radius: var(--radius-sm); }
.hb-plain { margin: 0; font-size: 20px; line-height: 28px; font-weight: 500; color: var(--ink); max-width: 40ch; }
@media (max-width: 720px) { .hb-example { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); padding: var(--space-4); } .hb-plain { font-size: 17px; line-height: 24px; } .hb-actions { grid-template-columns: minmax(0, 1fr) !important; } }

/* Where to buy: offers beyond the first three */
.offers-more > summary { cursor: pointer; color: var(--link, var(--ink)); padding: var(--space-3) 0; list-style: none; }
.offers-more > summary::-webkit-details-marker { display: none; }
.offers-more[open] > summary { color: var(--muted); }

/* ---------- 18.10 · new site components (Архитектор сайта) ---------- */
:root { --num-over: #b42318; --dot-0: #283a6e; --dot-1: #c28a3b; --dot-2: #5f8a8b; --dot-3: #8a5f8b; --dot-4: #6b7a3a; --dot-5: #a3543a; }
[data-theme="dark"] { --num-over: #ff8b7b; --dot-0: #8fa0e0; --dot-1: #d9a757; --dot-2: #8fc0c1; --dot-3: #c39bc4; --dot-4: #b5c27a; --dot-5: #e39a7f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --num-over: #ff8b7b; } }

/* red number = above the applicable limit, only there (Ярослав 18.10) */
.num-over { color: var(--num-over); font-weight: 600; }
.num-over__tag { font-size: 0.8em; font-weight: 500; }
.lim { display: inline-flex; flex-direction: column; gap: 2px; }
.lim__sub { font-size: 12px; color: var(--ink-muted); line-height: 1.35; }
.lim__more summary { cursor: pointer; color: var(--link); list-style: none; font-size: 12px; }
.lim__more summary::-webkit-details-marker { display: none; }
.lim__more[open] summary { color: var(--ink-muted); }
.lim__more > span { display: block; font-size: 12px; line-height: 1.35; margin-top: 2px; }

/* quiet ladder 5 / 15 / 50 */
.ladder { border-top: 1px solid var(--line); padding-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.ladder__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ladder__list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.ladder--line { margin: 0; }

/* /stack */
.stk-products { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.stk-product { display: flex; align-items: center; gap: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-2) var(--space-3); background: var(--bg-raised); max-width: 100%; }
.stk-product__text { display: flex; flex-direction: column; min-width: 0; }
.stk-product__text a { color: var(--ink); font-weight: 500; text-decoration: none; }
.stk-remove { color: var(--ink-muted); }
.stk-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--dot-0); flex: none; vertical-align: baseline; }
.stk-dot[data-i="1"] { background: var(--dot-1); } .stk-dot[data-i="2"] { background: var(--dot-2); } .stk-dot[data-i="3"] { background: var(--dot-3); }
.stk-dot[data-i="4"] { background: var(--dot-4); } .stk-dot[data-i="5"] { background: var(--dot-5); }
.stk-add { display: flex; gap: var(--space-2); max-width: 640px; }
.stk-found { list-style: none; margin: 0; padding: 0; max-width: 640px; border: 1px solid var(--line); border-radius: var(--radius-md); }
.stk-found li { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) var(--space-3); border-top: 1px solid var(--line); }
.stk-found li:first-child { border-top: 0; }
.stk-alert { border-left: 3px solid var(--num-over); background: var(--bg-muted); padding: var(--space-3) var(--space-4); border-radius: 0 var(--radius-md) var(--radius-md) 0; display: flex; flex-direction: column; gap: var(--space-2); }
.stk-alert p { margin: 0; }
.stk-tbl td, .stk-tbl th { vertical-align: top; }
.stk-tbl tr.is-over td:first-child { box-shadow: inset 3px 0 0 var(--num-over); }
.stk-tbl .sub { display: block; font-size: 12px; color: var(--ink-muted); font-weight: 400; }
.cell-none::before { content: ""; display: inline-block; width: 12px; border-top: 1px dotted var(--line-strong); vertical-align: middle; }
.stk-cards { flex-direction: column; gap: var(--space-2); }
.stk-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); background: var(--bg-raised); }
.stk-card.is-over { border-left: 3px solid var(--num-over); }
.stk-card__from { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.stk-card__from li { display: flex; align-items: center; gap: 6px; }
.stk-card__from li > span:last-child { margin-left: auto; }
@media (max-width: 760px) { .stk-add { flex-direction: column; } .stk-product { width: 100%; } }

/* ---------- new home (N8) ---------- */
.hm-hero { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-7) 0 var(--space-5); max-width: 880px; }
.hm-title { font-size: 48px; line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; margin: 0; color: var(--ink); }
.hm-sub { font-size: 19px; line-height: 1.45; margin: 0; max-width: 62ch; }
.hm-field { display: flex; flex-direction: column; gap: 0; margin-top: var(--space-3); }
.hm-radio { position: absolute; opacity: 0; pointer-events: none; }
.hm-tabs { display: flex; gap: 0; }
.hm-tab { cursor: pointer; padding: 10px 18px; font-weight: 500; color: var(--ink-muted); border: 1px solid var(--line); border-bottom: 0; background: var(--bg-muted); border-radius: var(--radius-md) var(--radius-md) 0 0; margin-right: -1px; user-select: none; }
.hm-panel { display: none; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--line); background: var(--bg-raised); border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md); }
#hm-tab-find:checked ~ .hm-tabs .hm-tab--find, #hm-tab-check:checked ~ .hm-tabs .hm-tab--check { color: var(--ink); background: var(--bg-raised); position: relative; z-index: 1; box-shadow: inset 0 2px 0 var(--brand); }
#hm-tab-find:checked ~ .hm-panel--find, #hm-tab-check:checked ~ .hm-panel--check { display: flex; }
#hm-tab-find:focus-visible ~ .hm-tabs .hm-tab--find, #hm-tab-check:focus-visible ~ .hm-tabs .hm-tab--check { outline: 2px solid var(--focus); outline-offset: 2px; }
.hm-scale { margin: 0; }

.hm-ex { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-5); background: var(--bg-raised); }
.hm-ex__side { display: flex; flex-direction: column; gap: var(--space-3); }
.hm-ex__products { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.hm-ex__products li { display: flex; gap: var(--space-2); align-items: baseline; }
.hm-ex__products li > span:last-child { display: flex; flex-direction: column; }
.hm-ex__products a { color: var(--ink); text-decoration: none; font-weight: 500; }
.hm-ex__rows { display: flex; flex-direction: column; gap: var(--space-4); }
.hm-ex__row { display: grid; grid-template-columns: 120px 1fr; column-gap: var(--space-4); row-gap: 4px; padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.hm-ex__name { font-weight: 600; grid-row: span 3; }
.hm-ex__sum { font-size: 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.hm-ex__part { display: inline-flex; align-items: baseline; gap: 6px; }
.hm-ex__foot { margin: 0; }

.hm-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.hm-door { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg-raised); }
.hm-door__cta { font-weight: 500; margin-top: auto; }
.hm-door__paid { color: var(--ink); text-decoration: none; padding-top: var(--space-3); border-top: 1px solid var(--line); }
.hm-door__paid:hover { text-decoration: underline; }
.hm-self { font-size: 17px; margin: 0; padding: var(--space-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hm-how { display: flex; flex-direction: column; gap: var(--space-4); }

@media (max-width: 760px) {
  .hm-hero { padding: var(--space-5) 0 var(--space-3); gap: var(--space-3); }
  .hm-title { font-size: 32px; }
  .hm-sub { font-size: 16px; }
  .hm-tab { flex: 1; text-align: center; padding: 10px 8px; font-size: 15px; }
  .hm-panel { flex-direction: column; border-radius: 0 0 var(--radius-md) var(--radius-md); }
  .hm-ex { grid-template-columns: 1fr; gap: var(--space-4); padding: var(--space-4); }
  .hm-ex__row { grid-template-columns: 1fr; }
  .hm-ex__name { grid-row: auto; }
  .hm-ex__sum { font-size: 19px; }
  .hm-doors { grid-template-columns: 1fr; gap: var(--space-3); }
  .hm-door { padding: var(--space-4); }
}
.hm-panel .vt-input { flex: 1; }
.ph-header .vt-country, .ph-header [class*="vt-pill"] { white-space: nowrap; }
@media (max-width:380px) { .ph-header { flex-wrap:wrap; padding-block:8px; gap:8px; } .ph-header>div { margin-left:auto; } }
@media (min-width: 761px) { .hm-hero { padding-top: var(--space-6); } }

/* ---------- card «разбор банки» ---------- */
.ings { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.ings__head, .ing { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 6fr); gap: var(--space-4); }
.ings__head { padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.only-desk-grid { display: grid; }
.ing { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); align-items: start; }
.ing.is-over { box-shadow: inset 3px 0 0 var(--num-over); padding-left: var(--space-3); }
.ing__name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ing__form summary { cursor: pointer; color: var(--link); list-style: none; }
.ing__form summary::-webkit-details-marker { display: none; }
.ing__form[open] summary { color: var(--ink-muted); }
.ing__form > span { display: block; margin-top: 4px; color: var(--ink); max-width: 60ch; }
.ing__num { font-size: 17px; }
.ing .sub { display: block; font-size: 12px; color: var(--ink-muted); font-weight: 400; }
.ing__limit { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ing__bar { position: relative; height: 6px; background: var(--bar-track); border-radius: 3px; overflow: visible; max-width: 360px; }
.ing__fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--bar-fill); border-radius: 3px; }
.ing__excess { position: absolute; top: 0; bottom: 0; right: 0; background: var(--num-over); border-radius: 0 3px 3px 0; }
.ing__mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); transform: translateX(-50%); }
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.checks__item { display: flex; flex-direction: column; gap: var(--space-2); }
.certs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.limits-more > summary { cursor: pointer; color: var(--link); padding: var(--space-2) 0; }
@media (max-width: 760px) {
  .only-desk-grid { display: none; }
  .ing { grid-template-columns: 1fr auto; gap: var(--space-2); }
  .ing__limit { grid-column: 1 / -1; }
  .checks { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* /services */
.svc-hero { display: grid; gap: var(--space-3); max-width: 760px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); align-items: stretch; }
.svc { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6) var(--space-5) var(--space-5); border: 1px solid var(--line); border-radius: 14px; background: var(--bg-raised); scroll-margin-top: 80px; transition: border-color .15s, box-shadow .15s; }
.svc:hover { border-color: var(--line-strong); box-shadow: 0 8px 28px rgba(20, 24, 40, .06); }
.svc:target { border-color: var(--brand); box-shadow: inset 0 3px 0 var(--brand); }
.svc__head { display: grid; gap: var(--space-2); padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.svc__eyebrow { font-size: 12px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.svc__title { margin: 0; font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -.01em; }
.svc__price-row { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
.svc__price { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -.02em; }
.svc__free { font-size: 12px; line-height: 16px; font-weight: 500; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--brand-tint); color: var(--ink); }
.svc__meta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-muted); }
.svc__body { margin: 0; font-size: 16px; line-height: 24px; }
.svc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.svc__list li { position: relative; padding-left: 22px; }
.svc__list li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--bar-fill); border-bottom: 2px solid var(--bar-fill); transform: rotate(-45deg); }
.svc__btn { width: 100%; justify-content: center; }
.svc-note { border-left: 3px solid var(--line-strong); background: var(--bg-muted); padding: var(--space-3) var(--space-4); border-radius: 0 var(--radius-md) var(--radius-md) 0; max-width: 760px; color: var(--ink-muted); }
@media (max-width: 760px) { .svc-grid { grid-template-columns: 1fr; gap: var(--space-4); } .svc { padding: var(--space-5) var(--space-4) var(--space-4); } .svc__price { font-size: 30px; line-height: 34px; } }
.th-prod { display: inline-flex; align-items: baseline; gap: 6px; justify-content: flex-end; text-align: right; }
.th-prod .stk-dot { flex: none; transform: translateY(1px); }
.stk-add .vt-input { flex: 1; min-width: 0; }

/* home v2.1: slogan + three features; three tabs; positive example */
.hm-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); max-width: 1040px; }
.hm-feats li { display: flex; gap: var(--space-3); align-items: baseline; font-size: 16px; line-height: 1.4; }
.hm-feats__n { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ink-muted); transform: translateY(-2px); }
.hm-hero { max-width: none; }
.hm-field { max-width: 1040px; }
#hm-tab-build:checked ~ .hm-tabs .hm-tab--build { color: var(--ink); background: var(--bg-raised); position: relative; z-index: 1; box-shadow: inset 0 2px 0 var(--brand); }
#hm-tab-build:checked ~ .hm-panel--build { display: flex; }
#hm-tab-build:focus-visible ~ .hm-tabs .hm-tab--build { outline: 2px solid var(--focus); outline-offset: 2px; }
.hm-panel--build { align-items: flex-end; }
.hm-goals { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex: 1; }
.hm-goals__lead { width: 100%; }
.hm-goal { position: relative; cursor: pointer; }
.hm-goal input { position: absolute; opacity: 0; pointer-events: none; }
.hm-goal span { display: inline-block; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); font-size: 14px; background: var(--bg); }
.hm-goal input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--ink-on-brand); }
.hm-goal input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.hm-ex__verdicts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.hm-ex__verdict { display: flex; flex-direction: column; gap: 2px; }
.hm-ex__big { font-size: 28px; font-weight: 600; line-height: 1.1; color: var(--ink); }
.hm-ex__bar { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; }
.hm-ex__bar .ing__bar { max-width: none; }
@media (max-width: 760px) {
  .hm-feats { grid-template-columns: 1fr; gap: var(--space-2); }
  .hm-tab { font-size: 13px; padding: 10px 4px; }
  .hm-panel--build { align-items: stretch; }
  .hm-ex__verdicts { grid-template-columns: 1fr 1fr; }
  .hm-ex__big { font-size: 22px; }
  .hm-ex__bar { grid-template-columns: 1fr auto; }
  .hm-ex__bar .ing__bar { grid-column: 1 / -1; grid-row: 2; }
}
.svc--fit { border-color: var(--brand); box-shadow: inset 0 3px 0 var(--brand); }
.th-prod { white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }
.th-prod .stk-dot { margin-right: 6px; }
.stk-ok { border-left: 3px solid var(--brand); background: var(--brand-tint); padding: var(--space-3) var(--space-4); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.stk-health { margin: 0; color: var(--ink); max-width: 90ch; }
.stk-ok { display: flex; flex-direction: column; gap: var(--space-2); }

/* program mode of /stack */
.stk-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; max-width: 80ch; }
.stk-help { border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: var(--space-3) var(--space-4); background: var(--bg-raised); max-width: 980px; }
@media (min-width: 1100px) { .stk-help { position: sticky; top: 8px; z-index: 2; } }

/* home: two sets */
.ad { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-6) 0; }
.ad__head { display: flex; flex-direction: column; gap: var(--space-2); max-width: 760px; }
.ad__title { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; margin: 0; }
.ad__sub { font-size: 18px; margin: 0; max-width: 760px; }
/* Ярослав 20.10: «Two sets of three products. One goes over the limit» in one line (wide screens) */
.ad__head { max-width: none; }
@media (min-width: 1000px) { .ad__title-a { white-space: nowrap; } .ad__title { font-size: clamp(32px, 3.1vw, 40px); } }
.ad__sets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.ad-set { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg-raised); }
.ad-set--good { border-top: 4px solid var(--brand); }
.ad-set--over { border-top: 4px solid var(--num-over); }
.ad-set__products { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 18px; font-weight: 500; }
.ad-set__products li { display: flex; align-items: center; gap: 10px; }
.ad-set__products .stk-dot { width: 12px; height: 12px; }
.ad-set__verdict { display: flex; gap: var(--space-3); align-items: center; font-size: 18px; padding: var(--space-3) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ad-mark { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--ink-on-brand); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; }
.ad-mark--over { background: var(--num-over); color: #fff; }
.ad-set__rows { display: flex; flex-direction: column; gap: var(--space-3); }
.ad-row { display: grid; grid-template-columns: 110px auto 1fr; column-gap: var(--space-3); row-gap: 6px; align-items: baseline; }
.ad-row__name { font-weight: 500; }
.ad-row__num { font-size: 28px; font-weight: 600; line-height: 1; }
.ad-row__bar { grid-column: 1 / -1; position: relative; height: 8px; background: var(--bar-track); border-radius: 4px; }
.ad__foot { display: flex; flex-direction: column; gap: var(--space-2); }
.ad__cta { font-size: 18px; font-weight: 600; }
@media (max-width: 760px) {
  .ad { padding: var(--space-4) 0; }
  .ad__title { font-size: 28px; }
  .ad__sub { font-size: 16px; }
  .ad__sets { grid-template-columns: 1fr; gap: var(--space-3); }
  .ad-set { padding: var(--space-4); }
  .ad-set__products { font-size: 16px; }
  .ad-row__num { font-size: 24px; }
}
.ad-row__over { position: absolute; top: 0; bottom: 0; right: 0; background: var(--num-over); border-radius: 0 4px 4px 0; }
.ad { padding-top: var(--space-4); }

/* stack / program page — larger type (Ярослав 18.10: «всё немного крупнее») */
.stk-page { display: flex; flex-direction: column; gap: var(--space-5); font-size: 17px; }
.stk-page .small { font-size: 15px; }
.stk-page .title { font-size: 44px; line-height: 1.1; }
.stk-page .stk-steps { font-size: 17px; gap: 6px; }
.stk-page .stk-lead { font-size: 18px; }
.stk-start { font-weight: 600; font-size: 18px; margin-bottom: -4px; }
.stk-page .stk-add { max-width: 760px; }
.stk-page .stk-add .vt-input input { font-size: 17px; }
.stk-page .stk-found { max-width: 760px; }
.stk-page .stk-found li { padding: var(--space-3) var(--space-4); }
.stk-example { background: var(--paper); color: #23262b; border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-size: 16px; }
.stk-example a { margin-left: 6px; }

/* help panel */
.help { border-radius: var(--radius-md); background: var(--brand-tint); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
.help__head { display: flex; flex-direction: column; gap: 4px; }
.help__title { font-size: 22px; font-weight: 600; color: var(--ink); }
.help__lead { color: var(--ink-muted); font-size: 16px; }
.help__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.help__item { display: flex; flex-direction: column; gap: 6px; padding: var(--space-4); background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-md); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.help__item:hover { border-color: var(--brand); box-shadow: 0 2px 10px rgba(40,58,110,.12); }
.help__item:last-child { border-top: 3px solid var(--gold); }
.help__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); }
.help__name { font-weight: 600; font-size: 17px; }
.help__price { font-size: 22px; font-weight: 600; color: var(--brand); }
.help__what { font-size: 15px; color: var(--ink-muted); line-height: 1.4; }
.ad__title-q { display: block; color: var(--brand); }
@media (max-width: 760px) {
  .stk-page { font-size: 16px; }
  .stk-page .title { font-size: 30px; }
  .help { padding: var(--space-4); }
  .help__grid { grid-template-columns: 1fr; }
}
.help__item:last-child { border-top: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--gold); }
.stk-page .stk-steps { gap: 8px; line-height: 1.45; }
.hm-panel--build { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.hm-goals__lead { width: 100%; font-size: 17px; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.hm-goal input:disabled + span { opacity: .4; cursor: not-allowed; }
.hm-build__foot { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.hm-goals__note { display: none; color: var(--ink-muted); }
.hm-panel--build.is-full .hm-goals__note { display: inline; }

/* two sets v2: verdict on top, one bar of product pieces with the limit line */
.ad-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: var(--radius-pill); background: var(--brand); color: var(--ink-on-brand); font-size: 20px; font-weight: 600; }
.ad-badge__mark { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.ad-badge--over { background: var(--num-over); color: #fff; }
.ad-set__products { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; font-size: 17px; }
.pbar { display: flex; flex-direction: column; gap: 10px; padding-top: 26px; }
.pbar__track { position: relative; height: 22px; background: var(--bar-track); border-radius: 4px; display: flex; overflow: visible; }
.pbar__piece { height: 100%; background: var(--dot-0); border-right: 2px solid var(--bg-raised); }
.pbar__piece:first-child { border-radius: 4px 0 0 4px; }
.pbar__piece[data-i="1"], .pbar__dot[data-i="1"] { background: var(--dot-1); }
.pbar__piece[data-i="2"], .pbar__dot[data-i="2"] { background: var(--dot-2); }
.pbar__over { position: absolute; top: -4px; bottom: -4px; border: 2px solid var(--num-over); border-left: 0; border-radius: 0 4px 4px 0; background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(180,35,24,.18) 5px 9px); }
.pbar__limit { position: absolute; top: -10px; bottom: -10px; width: 3px; margin-left: -1px; background: var(--ink); border-radius: 2px; }
.pbar__limit-label { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--ink); padding-bottom: 2px; }
.pbar__sum { font-size: 18px; }
.pbar__sum .pbar__name { font-weight: 600; }
.pbar__sum b { font-size: 22px; }
.pbar__dot { display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: var(--dot-0); flex: none; }
.ad-set__also { margin: 0; font-size: 16px; }
.ad-set__verdict, .ad-set__rows { display: none; }
@media (max-width: 760px) { .ad-badge { font-size: 17px; } .pbar__sum { font-size: 16px; } }
.nowrap { white-space: nowrap; }
.hm-panel--check { flex-direction: column; }
.hm-check { display: flex; flex-direction: column; gap: var(--space-2); width: 100%; }
.hm-check__row { display: flex; gap: var(--space-2); }
.hm-check__row .vt-input { flex: 1; }
@media (max-width: 760px) { .hm-check__row { flex-direction: column; } }
/* back to the elegant bars; verdict words added (Ярослав 18.10) */
.ad-set__verdict { display: flex; }
.ad-set__rows { display: flex; }
.ad-set__products { flex-direction: column; flex-wrap: nowrap; gap: 8px; font-size: 18px; }
.ad-verdict__big { display: block; font-size: 24px; line-height: 1.15; color: var(--brand); margin-bottom: 2px; }
.ad-verdict__big--over { color: var(--num-over); }
.ad-set__verdict { align-items: flex-start; }
.ad-set__verdict .ad-mark { margin-top: 2px; }

/* add by photo */
.stk-photo { display: flex; flex-direction: column; gap: var(--space-3); max-width: 760px; }
.stk-photo__btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 10px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--bg-raised); font-weight: 500; }
.stk-photo__btn:hover { border-color: var(--brand); }
.stk-photo__out { display: flex; flex-direction: column; gap: var(--space-2); }
.stk-photo__out p { margin: 0; }
.stk-read tr.is-off td:first-child { color: var(--ink-muted); }
.stk-amt { width: 90px; padding: 4px 6px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; }
.vt-footer__legal { font-size: 11px; opacity: .55; text-decoration: none; }
.vt-footer__legal:hover { opacity: .9; text-decoration: underline; }

/* services order (test mode) */
.svc__cta { margin-top: auto; padding-top: var(--space-2); }
.ord-form { display: flex; flex-direction: column; gap: var(--space-4); max-width: 640px; }
.ord-field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; }
.ord-label { font-weight: 600; font-size: 17px; }
.ord-field input[type=email], .ord-field textarea { font: inherit; font-size: 17px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--bg-raised); color: var(--ink); }
.ord-check { display: flex; gap: 8px; align-items: flex-start; }
.ord-err { color: var(--num-over); font-weight: 600; margin: 0; }
.ord-note { margin: 0; }

/* /admin/analytics */
.an-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-3); }
.an-kpis--sm { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.an-kpi { display: flex; flex-direction: column; gap: 2px; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg-raised); }
.an-kpi__v { font-size: 28px; font-weight: 600; line-height: 1.1; }
.an-kpi__k { font-weight: 500; font-size: 15px; }
.an-block { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg-raised); min-width: 0; }
.an-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.an-bars { width: 100%; border-collapse: collapse; font-size: 14px; }
.an-bars td { padding: 4px 0; vertical-align: middle; }
.an-bars__k { width: 42%; padding-right: var(--space-3) !important; overflow-wrap: anywhere; }
.an-bars__b span { display: block; height: 10px; border-radius: 3px; background: var(--bar-fill); min-width: 2px; }
.an-bars__n { width: 1%; white-space: nowrap; padding-left: var(--space-3) !important; text-align: right; }
.an-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--space-3); align-items: end; }
.an-day { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.an-day__bars { height: 140px; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.an-day__p, .an-day__b { width: 38%; border-radius: 3px 3px 0 0; min-height: 2px; }
.an-day__p { background: var(--brand); }
.an-day__b { background: var(--bar-track); border: 1px solid var(--line-strong); }
@media (max-width: 900px) { .an-kpis, .an-kpis--sm { grid-template-columns: repeat(2, minmax(0, 1fr)); } .an-grid { grid-template-columns: 1fr; } }

/* /compare — side by side from the register */
.tbl.cmp { min-width: 640px; }
.cmp th, .cmp td { vertical-align: top; text-align: left; }
.cmp__k { width: 26%; font-size: var(--text-sm, 14px); }
.cmp__k .sub, .cmp td .sub { display: block; font-size: 12px; color: var(--ink-muted); font-weight: 400; }
.cmp__p { display: table-cell; }
.cmp__p > * { display: block; }
.cmp__name { font-weight: 600; color: var(--ink); margin: 2px 0 4px; }
.cmp td .num-over .sub { color: var(--status-over-fg); }
/* /me */
.me-block { display: flex; flex-direction: column; gap: var(--space-2); }
.me-block h2 { margin: 0; }
.me-row { padding: var(--space-2) 0; border-bottom: 1px solid var(--line); align-items: center; }
.me-row a { font-weight: 600; color: var(--ink); }
/* /me buttons at their own width, left-aligned with the field above (owner 22.11, U22) */
.me-block .ord-form > .vt-btn { align-self: flex-start; min-height: 44px; }
.me-block [data-me] .stack-2 { flex-direction: row; flex-wrap: wrap; align-items: center; margin-top: var(--space-2); }
.me-block [data-me] .stack-2 > .vt-btn { min-height: 44px; }
.cmp thead th { text-transform: none; letter-spacing: normal; font-weight: 400; color: var(--ink); }
.cmp thead th .small { font-size: 13px; }
.cmp__name { font-size: 15px; line-height: 1.3; }
.drawer__body .between > a { min-width: 0; flex: 1; }
/* order: the free step where payment will be */
.ord-price { font-size: 0.55em; color: var(--ink-muted); font-weight: 400; margin-left: 0.3em; white-space: nowrap; }
.ord-free__box { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2, #f6f7fb); }
.legal-dl { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: var(--space-2) var(--space-4); margin: 0; }
.legal-dl dd { margin: 0; }
@media (max-width: 560px) { .legal-dl { grid-template-columns: 1fr; } .legal-dl dd { margin-bottom: var(--space-2); } }

/* Search filters (src/pages/search.jsx, src/lib/filters.js) */
.sf { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-raised); }
.sf-row { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4); align-items: flex-end; }
.sf-row--checks { align-items: center; }
.sf-field { display: flex; flex-direction: column; gap: 4px; min-width: 150px; flex: 1 1 150px; max-width: 240px; }
.sf-label { font-size: 13px; color: var(--ink-muted); }
.sf-select { font: inherit; font-size: 15px; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 9px 10px; min-height: 42px; }
.sf-select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.sf-check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.sf-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.sf-apply { font: inherit; padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--bg); cursor: pointer; }
@media (max-width: 640px) { .sf-field { max-width: none; flex-basis: 45%; } }

/* «Published studies» (src/components/publications.jsx) — Methodology's sample */
.pb-n { font-size: 14px; color: var(--ink-muted); margin-left: 6px; font-weight: 400; }
.pb-lead { max-width: 62ch; margin: 0; }
.pb-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pb-row { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.pb-row--nested { padding-left: var(--space-5); position: relative; }
.pb-row--nested::before { content: ""; position: absolute; left: 8px; top: 14px; bottom: 14px; border-left: 2px solid var(--line); }
.pb-head { margin: 0 0 4px; max-width: 78ch; }
.pb-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pb-term { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.ord-ts { margin: var(--space-2) 0; min-height: 0; }
.an-bench th { text-align: left; font-weight: 600; padding: var(--space-2) var(--space-3) var(--space-2) 0; }
.an-bench td { padding: var(--space-2) var(--space-3) var(--space-2) 0; vertical-align: top; }
.an-ok { color: var(--ok, #2e7d4f); }
.an-bad { color: var(--danger, #b23b3b); }

/* Owner analytics: date navigation and wide daily counters stay within the viewport. */
.an .an-period { display: flex; flex-direction: column; gap: var(--space-3); }
.an .an-period__links, .an .an-period__form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.an .an-period__links [aria-current="page"] { border-color: var(--brand); background: var(--bg-raised); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.an .an-period input[type="date"] { color: inherit; font: inherit; min-height: 40px; max-width: 100%; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg-raised); }
.an .an-scroll { max-width: 100%; overflow-x: auto; }
.an .an-daily { min-width: 700px; }
.an .an-daily th, .an .an-daily td { padding: 9px 12px; }
.an .an-daily th:first-child { position: sticky; left: 0; background: var(--bg-raised); z-index: 1; min-width: 130px; }
.an .an-daily td { text-align: right; white-space: nowrap; }
.an summary { cursor: pointer; }
.an details[open] > summary { margin-bottom: var(--space-3); }
@media (max-width: 600px) {
  .an .an-period__form label { flex-basis: 100%; }
  .an .an-period__links .btn { padding-inline: 12px; }
  .an .an-bars__b { display: none; }
  .an .an-bars__k { width: auto; }
}
/* A failed remote pack photo should never leave a browser error icon. */
.product-photo-unavailable{display:block;color:var(--ink-muted);font-size:14px;line-height:1.4;text-align:center;padding:16px}
.vt-card__img .product-photo-unavailable{min-width:0;padding:0;font-size:11px;overflow-wrap:anywhere}


/* The desktop list has its own column so it cannot cover product content. */
.vt-browse-list-layout { flex: 1; width: 100%; min-width: 0; }
.vt-browse-list { display: none; }
@media (min-width: 901px) {
  .vt-browse-list-layout--active {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 258px);
    align-items: start; gap: var(--space-4); box-sizing: border-box;
    max-width: 1460px; margin-inline: auto; padding-inline-end: var(--space-5);
  }
  .vt-browse-list-layout--active > main { min-width: 0; }
  .vt-browse-list:not([hidden]) {
    display: block; position: sticky; top: var(--space-4);
    min-width: 0; max-height: calc(100dvh - 2 * var(--space-4)); overflow-y: auto;
    margin-top: var(--space-4); padding: var(--space-4);
    border: 1px solid var(--line); border-radius: 8px; background: var(--bg-raised);
  }
  .vt-browse-list > ul { list-style: none; margin: 0; padding: 0; }
  .vt-browse-list li {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    gap: var(--space-2); padding-block: var(--space-2); overflow-wrap: anywhere;
  }
  .vt-browse-list li > button {
    min-width: 32px; min-height: 32px; border: 1px solid var(--line); border-radius: 50%;
    background: var(--bg-raised); color: var(--ink); font: inherit; cursor: pointer;
  }
}
.market-photo-unavailable img, .ux-pack-stage img[data-photo-failed], .vt-card__img img[data-photo-failed] { display: none; }
.market-photo-unavailable .market-photo-fallback { display: block; }

.editorial-credit { line-height: 1.45; overflow-wrap: anywhere; }
.editorial-credit__name { margin: 0; font-weight: 600; }
.editorial-credit__process { margin: 5.8em 0 0; margin-block-start: 4lh; }

/* Navigation wait after a search or filter submit (owner 22.11). */
html.vt-busy::before{content:"";position:fixed;inset:0 0 auto 0;height:3px;z-index:10000;background:linear-gradient(90deg,transparent,var(--brand,#283a6e),transparent) no-repeat;background-size:40% 100%;animation:vt-busy 1s linear infinite}
@keyframes vt-busy{from{background-position:-40% 0}to{background-position:140% 0}}
html.vt-busy .ux-search-results,html.vt-busy .ux-search-list{opacity:.55;transition:opacity .15s}
.vt-btn[aria-busy=true]{cursor:progress}
@media (prefers-reduced-motion:reduce){html.vt-busy::before{animation:none;background:var(--brand,#283a6e)}}

/* "Share list" on My list (owner 22.11). The system share sheet first; this menu where there is none. */
.vt-list-share { position: relative; display: grid; gap: 6px; min-width: 0; }
.vt-list-share__note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink-muted); }
.vt-list-share__menu { position: absolute; z-index: 20; inset-block-start: calc(100% + 6px); inset-inline-start: 0; display: grid; gap: 2px; box-sizing: border-box; width: min(16rem, calc(100vw - 48px)); padding: 6px; border: 1px solid var(--line-strong, var(--line)); border-radius: 8px; background: var(--bg-raised); color: var(--ink); box-shadow: 0 8px 24px #1c1e2214; font-family: var(--font-sans); }
.vt-list-share__menu[hidden] { display: none; }
.vt-list-share__item { box-sizing: border-box; display: flex; align-items: center; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 5px; background: transparent; color: var(--brand); font: inherit; font-size: 14px; font-weight: 600; text-align: start; text-decoration: none; cursor: pointer; }
.vt-list-share__item:hover { background: var(--bg-muted); text-decoration: none; }
.vt-list-share__manual { display: grid; padding: 4px 6px; }
.vt-list-share__manual[hidden] { display: none; }
.vt-list-share__manual input { box-sizing: border-box; min-width: 0; min-height: 40px; padding: 6px 8px; border: 1px solid var(--line-strong, var(--line)); border-radius: 4px; background: var(--bg-raised); color: var(--ink); font: inherit; font-size: 13px; }
.vt-list-share__status { margin: 0; padding: 2px 10px 4px; font-size: 13px; color: var(--ink-muted); }
.vt-list-share__status:empty { display: none; }
.vt-list-share :is(a, button, input):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* A form word on a card or label row opens the form section of the ingredient article (owner 22.11). */
.vt-form-link { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.vt-form-link:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.vt-form-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
