/* ЛекБаланс — мобильная раскладка (v37.29), перенесена из слоя дизайна iPhone в общий веб-код: палитра приложения,
 * рецептурная этикетка «Требует внимания», блистер приёма, полоса категории у средств, весы в «Проверке», шесть показателей.
 * Работает на любом устройстве; «html:root» даёт ту же специфичность, что прежний «html.lbios». На широком экране (≥ 900 px) — две колонки (конец файла).
 * Без внешних шрифтов. */
html:root{--x-line:#cfc6b3;--gold:#b98a2e;--gold-soft:#f3e9d3;--r-field:10px;--r-card:14px;--r-med:16px;--r-hero:20px}
html:root[data-theme=dark]{--x-line:#3d4a44;--gold:#d2a94f;--gold-soft:#332b1c}
html:root .num,html:root .tm{font-variant-numeric:tabular-nums}
html:root h1,html:root h2,html:root h3{text-wrap:balance}
html:root p{text-wrap:pretty}
html:root .btn{border-radius:var(--r-field);min-height:48px;font-weight:600}
html:root .btn.quiet{background:var(--surface-2);color:var(--text);border:1px solid transparent}
html:root .btn.ghost{background:transparent;color:var(--primary);border:1px solid var(--x-line)}
html:root .btn:active{transform:scale(.97);transition:transform .15s ease-out}

/* ---------- панель вкладок ---------- */
html:root .tabbar svg.xi,html:root nav svg.xi{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html:root nav svg.xi{width:20px;height:20px}

/* ---------- общие ---------- */
html:root .xi{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
html:root .x-head{margin:4px 0 16px}
html:root .x-h1{font-size:1.6rem;line-height:1.2;letter-spacing:-.01em;margin:0}
html:root .x-sub{margin:4px 0 0;color:var(--muted);font-size:.92rem}
/* v37.111 (решение владельца 26.11.2026, вариант Б): на главной заголовок «Главная» — не h1, под ним единственный h1 страницы небольшой строкой */
html:root .x-h1-t{font-weight:700}
html:root .x-seo-h1{font-size:.92rem;line-height:1.35;font-weight:400;letter-spacing:0;color:var(--muted);margin:4px 0 0}
html:root .x-sh{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:24px 0 8px}
html:root .x-sh h2{font-size:1.1rem;margin:0}
html:root .x-sh .num{color:var(--muted);font-size:.85rem}
html:root .x-note{color:var(--muted);font-size:.86rem;margin:6px 0 0}
html:root .x-calm{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-card);box-shadow:var(--shadow);padding:14px 16px;margin:0 0 4px}
html:root .x-lnk{all:unset;cursor:pointer;color:var(--primary);font-weight:600;font-size:.92rem;text-decoration:underline;text-underline-offset:3px;min-height:48px;min-width:48px;display:inline-flex;align-items:center}
html:root :is(.x-lnk,.x-row,.x-lrow,.x-med,.x-rm,.x-cell,.x-ib,.x-back,.x-pairs button,.x-pan,.x-res-more,.x-nowc-n):focus-visible{outline:3px solid var(--primary);outline-offset:2px;border-radius:10px}
html:root .x-wide{width:100%}
html:root .x-gap{margin-top:16px}
html:root .x-btns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;min-width:0}
html:root .x-btns .btn{min-width:0;max-width:100%;padding-inline:8px;box-sizing:border-box}
@media (max-width:340px){html:root .x-btns:not(.three){grid-template-columns:minmax(0,1fr)}}
html:root[data-large=true] .x-btns:not(.three){grid-template-columns:minmax(0,1fr)}
html:root .x-btns.three{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:16px}
html:root .x-btns.three .btn{padding:10px 6px;font-size:.86rem;flex-direction:column;gap:4px}
html:root .x-kind{font-size:.86rem;color:var(--muted)}
html:root .x-meta{font-size:.9rem;color:var(--muted)}

/* статусы — значок и текст */
html:root .x-chip{display:inline-flex;align-items:flex-start;gap:6px;font-weight:700;font-size:.92rem;line-height:1.35}
html:root .x-chip .xi{width:18px;height:18px;margin-top:1px}
html:root .x-chip.d{color:var(--danger)}html:root .x-chip.w{color:var(--warn)}html:root .x-chip.n{color:var(--muted)}html:root .x-chip.ok{color:var(--text);font-weight:600}

/* предупреждения */
html:root .x-warn{display:flex;gap:12px;align-items:flex-start;border-radius:var(--r-card);padding:14px 16px;margin:16px 0 0;border:1px solid transparent}
html:root .x-warn p{margin:0;line-height:1.45;font-size:.95rem}
html:root .x-warn.rx{background:var(--danger-soft);border-color:color-mix(in oklab,var(--danger) 30%,transparent)}html:root .x-warn.rx>.xi,html:root .x-warn.rx b{color:var(--danger)}
html:root .x-warn.am{background:var(--warn-soft)}html:root .x-warn.am>.xi,html:root .x-warn.am b{color:var(--warn)}
html:root .x-warn .x-lnk{min-height:48px;font-size:.9rem}

/* списки */
html:root .x-list,html:root .x-pairs,html:root .x-next{list-style:none;margin:0;padding:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-card);box-shadow:var(--shadow);overflow:hidden}
html:root .x-list li+li,html:root .x-pairs li+li,html:root .x-next li+li{border-top:1px solid var(--border)}
html:root .x-row{all:unset;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px 12px 16px;min-height:56px}
html:root .x-row-ic{color:var(--primary);display:grid;place-items:center}
html:root .x-row-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
html:root .x-row-t b{font-weight:600;line-height:1.35}
html:root .x-row-t span{color:var(--muted);font-size:.88rem;line-height:1.35}
html:root .x-chev{color:var(--muted);display:grid}
html:root .x-chev .xi{width:18px;height:18px}

/* профили */
html:root .x-ava{display:flex;gap:8px;overflow-x:auto;margin:0 -14px 14px;padding:0 14px 2px;scrollbar-width:none}
html:root .x-ava button{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:8px;padding:6px 12px 6px 6px;border:1px solid var(--x-line);border-radius:24px;background:var(--surface);white-space:nowrap;font-weight:600;min-height:48px}
html:root .x-ava button span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary);font-weight:700}
html:root .x-ava button.on{border-color:var(--primary);box-shadow:0 0 0 2px var(--primary-soft)}

/* ---------- рецептурная этикетка «Требует внимания» ---------- */
html:root .x-label{border-radius:var(--r-hero);background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);overflow:hidden}
html:root .x-label-h{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:var(--surface-2);border-bottom:1px dashed var(--x-line);font-size:.88rem;color:var(--muted)}
html:root .x-label-h b{color:var(--text);font-size:1rem}
html:root .x-label ul{list-style:none;margin:0;padding:0}
html:root .x-label li+li{border-top:1px solid var(--border)}
html:root .x-lrow{all:unset;box-sizing:border-box;cursor:pointer;display:flex;gap:12px;align-items:center;width:100%;padding:12px 12px 12px 16px;min-height:60px}
html:root .x-dot{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;flex:none}
html:root .x-dot .xi{width:20px;height:20px}
html:root .x-dot.d{background:var(--danger-soft);color:var(--danger)}
html:root .x-dot.w{background:var(--warn-soft);color:var(--warn)}
html:root .x-dot.n{background:var(--surface-2);color:var(--muted)}

/* ---------- блистер ---------- */
html:root .x-blister{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:12px;background:var(--surface-2);border-radius:var(--r-hero);border:1px solid var(--border)}
html:root .x-blister.scroll{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
html:root .x-blister.scroll .x-cell{flex:0 0 120px;padding:10px 8px 8px;overflow:hidden;scroll-snap-align:start}
html:root .x-blister.scroll .x-cell .st{white-space:nowrap}
html:root[data-large=true] .x-blister.scroll .x-cell{flex-basis:148px}
html:root .x-cell{all:unset;box-sizing:border-box;border-radius:14px;background:var(--surface);border:1px solid var(--border);padding:10px 2px 8px;text-align:center;min-height:100px;display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0}
html:root button.x-cell{cursor:pointer}
html:root .x-cell .tm{font-weight:700;font-size:1.05rem}
html:root .x-pill{width:30px;height:16px;border-radius:8px;background:var(--primary-soft);border:1.5px solid var(--primary)}
html:root .x-pill.cap{background:linear-gradient(90deg,var(--gold-soft) 50%,var(--gold) 50%);border-color:var(--gold)}
html:root .x-cell .st{font-size:.82rem;color:var(--muted);line-height:1.25;width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word;hyphens:manual}
html:root .x-cell.done,html:root .x-cell.skip{background:transparent;border-style:dashed;border-color:var(--x-line)}
html:root .x-cell.done .x-pill,html:root .x-cell.skip .x-pill{background:transparent;border-style:dashed;opacity:.6}
html:root .x-cell.now{border:2px solid var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}
html:root .x-cell.now .st{color:var(--primary);font-weight:600}
html:root .x-cell.bad .st{color:var(--danger);font-weight:600}
html:root .x-cell.bad .x-pill{border-color:var(--danger);background:var(--danger-soft)}

/* ---------- средства в аптечке ---------- */
html:root .x-shelf{display:grid;grid-template-columns:1fr;gap:10px}
@media (min-width:600px){html:root .x-shelf{grid-template-columns:1fr 1fr}}
html:root .x-item{position:relative}
html:root .x-med{all:unset;box-sizing:border-box;cursor:pointer;position:relative;display:flex;flex-direction:column;width:100%;height:100%;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-med);padding:12px 52px 12px 20px;box-shadow:var(--shadow);overflow:hidden;color:var(--text)}
html:root .x-med::before{content:"";position:absolute;inset:0 auto 0 0;width:6px;background:var(--primary)}
html:root .x-med.supp::before{background:var(--gold)}
html:root .x-med.exp::before{background:var(--danger)}
html:root .x-med .x-name{font-size:1.08rem;font-weight:700;line-height:1.3;overflow-wrap:anywhere}
html:root .x-med .x-meta{margin-top:2px}
html:root .x-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
html:root .x-tag{display:inline-flex;align-items:center;gap:5px;font-size:.84rem;padding:3px 10px;border-radius:8px;background:var(--surface-2);color:var(--text)}
html:root .x-tag .xi{width:16px;height:16px}
html:root .x-tag.d{background:var(--danger-soft);color:var(--danger);font-weight:600}
html:root .x-tag.w{background:var(--warn-soft);color:var(--warn);font-weight:600}
html:root .x-rm{all:unset;box-sizing:border-box;position:absolute;top:4px;right:4px;width:48px;height:48px;display:grid;place-items:center;color:var(--muted);cursor:pointer;border-radius:10px}
html:root .x-rm .xi{width:20px;height:20px}
html:root .x-rm:active{background:var(--surface-2)}

/* ---------- проверка: весы ---------- */
html:root .x-scale{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-hero);box-shadow:var(--shadow);padding:16px}
html:root .x-scale-h{display:flex;align-items:center;gap:8px;color:var(--primary)}
html:root .x-scale-h .xi{width:28px;height:28px}
html:root .x-scale-h b{color:var(--text)}
html:root .x-pans{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-top:10px}
html:root .x-pan{all:unset;box-sizing:border-box;cursor:pointer;border:1px solid var(--x-line);border-radius:var(--r-field);padding:10px 12px;min-height:64px;background:var(--bg)}
html:root .x-pan small{display:block;color:var(--muted);font-size:.86rem}
html:root .x-pan b{font-size:.98rem;line-height:1.3;display:block;overflow-wrap:anywhere}
html:root .x-pan.empty b{color:var(--muted);font-weight:500}
html:root .x-sum{display:flex;gap:4px;margin:8px 0 2px}
html:root .x-sum span{height:8px;border-radius:4px}
html:root .x-res{position:relative;margin-top:12px;border-radius:var(--r-med);background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);overflow:hidden}
html:root .x-res::before{content:"";position:absolute;inset:0 auto 0 0;width:6px;background:var(--warn)}
html:root .x-res.d::before{background:var(--danger)}
html:root .x-res-h{padding:14px 16px 10px 22px}
html:root .x-res-h h3{font-size:1.05rem;margin:4px 0 0}
html:root .x-tbl{margin:0;padding:0 16px 0 22px}
html:root .x-tbl div{display:grid;grid-template-columns:104px 1fr;gap:10px;padding:10px 0;border-top:1px solid var(--border);font-size:.94rem}
html:root .x-tbl dt{color:var(--muted);font-size:.86rem}
html:root .x-tbl dd{margin:0}
html:root .x-res .x-ruler{margin:8px 20px 4px 26px}
html:root .x-res-more{all:unset;box-sizing:border-box;cursor:pointer;display:flex;justify-content:space-between;align-items:center;width:100%;padding:0 14px 0 22px;min-height:48px;background:var(--surface-2);border-top:1px solid var(--border);color:var(--primary);font-weight:600;font-size:.92rem}
html:root .x-res-more .xi{width:18px;height:18px}
html:root .x-pairs button{all:unset;box-sizing:border-box;cursor:pointer;width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;min-height:56px}
html:root .x-pairs b{font-weight:600}
html:root .x-pairs .x-chip{flex:none;max-width:55%;font-size:.86rem;text-align:right}
html:root .x-rest .x-pairs{box-shadow:none;border:0;border-radius:0;margin:0 -16px}
html:root .x-ruler{position:relative;height:84px;margin:18px 4px 4px}
html:root .x-ruler .axis{position:absolute;left:0;right:0;top:46px;height:1px;background:var(--x-line)}
html:root .x-ruler .need{position:absolute;top:38px;height:16px;background:var(--primary-soft);border:1px solid color-mix(in oklab,var(--primary) 45%,transparent);border-radius:4px}
html:root .x-ruler .pin{position:absolute;top:0;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:6px}
html:root .x-ruler .pin span{font-size:.86rem;font-weight:600;white-space:nowrap;background:var(--surface);padding:0 3px}
html:root .x-ruler .pin i{width:11px;height:11px;border-radius:50%;background:var(--surface);box-shadow:0 0 0 2px var(--text);margin-top:16px}
html:root .x-ruler .pin.bad span{color:var(--danger)}
html:root .x-ruler .pin.bad i{box-shadow:0 0 0 2px var(--danger)}
html:root .x-ruler .tick{position:absolute;top:62px;transform:translateX(-50%);font-size:.86rem;color:var(--muted)}

/* ---------- напоминания ---------- */
html:root .x-nowc{margin-top:16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-hero);box-shadow:var(--shadow);padding:16px}
html:root .x-nowc-t{display:flex;justify-content:space-between;align-items:baseline}
html:root .x-nowc-t .num{font-size:2rem;font-weight:700;line-height:1}
html:root .x-nowc-n{all:unset;cursor:pointer;display:block;font-size:1.15rem;font-weight:700;margin-top:8px;line-height:1.3}
html:root .x-nowc .x-meta{margin:2px 0 0}
html:root .x-nowc .x-warn{margin-top:12px}
html:root .x-next li{display:flex;align-items:center;gap:12px;padding:12px 16px;min-height:56px}
html:root .x-next .x-t{font-weight:700;width:48px;flex:none}
html:root .x-next li>div{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
html:root .x-next b{font-weight:600}
html:root .x-next li>div>span{color:var(--muted);font-size:.88rem}
html:root .x-next li>div>span.rx{color:var(--danger);font-weight:600}
html:root .x-acts{display:flex;gap:14px;flex:none;align-items:center}
html:root .x-done{color:var(--muted);font-size:.88rem}
html:root .x-det{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-card);box-shadow:var(--shadow);padding:0 16px;margin-top:16px}
html:root .x-det>summary{cursor:pointer;padding:14px 0;font-weight:600;min-height:24px}
html:root .x-det[open]>summary{border-bottom:1px solid var(--border);margin-bottom:12px}
html:root .x-det[open]{padding-bottom:14px}
html:root .x-det.x-rest[open]{padding-bottom:0}
html:root .x-det.x-rest[open]>summary{margin-bottom:0}
html:root .x-det svg{max-width:100%;height:auto}

/* закреплённые действия над панелью вкладок */
html:root .x-dock{position:sticky;bottom:calc(66px + env(safe-area-inset-bottom));z-index:15;margin:22px -14px 0;padding:10px 14px;background:linear-gradient(color-mix(in oklab,var(--bg) 0%,transparent),var(--bg) 30%)}
html:root .x-dock .btn{width:100%;min-height:56px}
html:root .x-dock.two .btn.ghost{min-height:52px}
html:root .x-dock.two{display:grid;grid-template-columns:auto 1fr;gap:8px}
html:root .x-dock .btn svg{width:20px;height:20px}
@media (min-width:821px){html:root .x-dock{bottom:0;margin:22px 0 0;padding:10px 0}}

/* ---------- карточка средства ---------- */
html:root .x-bar{display:flex;flex-wrap:wrap;row-gap:6px;min-width:0;align-items:center;justify-content:space-between;margin:-4px -6px 8px}
html:root .x-back{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:2px;color:var(--primary);font-weight:600;min-height:48px;padding:0 6px}
html:root .x-bar-r{display:flex;flex-wrap:wrap;row-gap:6px;min-width:0;gap:8px}
@media (max-width:380px){html:root .x-bar{margin-inline:-2px}html:root .x-bar-r{gap:6px}html:root .x-bar .x-back{padding:0 4px}html:root .x-bar .x-ib{width:44px;height:44px}}
html:root[data-large=true] .x-bar{margin-inline:-2px}html:root[data-large=true] .x-bar-r{gap:6px}html:root[data-large=true] .x-bar .x-back{padding:0 4px}
html:root .x-ib{all:unset;cursor:pointer;box-sizing:border-box;width:48px;height:48px;display:grid;place-items:center;color:var(--text);border-radius:12px;border:1px solid var(--x-line);background:var(--surface)}
html:root .x-cardh .x-h1{margin-top:2px}
html:root .x-descw{margin-top:16px}
html:root .x-desc{margin:0;font-size:.96rem;line-height:1.5} /* v37.58: описание показывается полностью, без обрезки на 3 строках */
html:root .x-descw.open .x-desc{display:block;-webkit-line-clamp:unset}
html:root .x-six{margin-top:20px;border-radius:var(--r-hero);background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);overflow:hidden}
html:root .x-six-h{padding:12px 16px;background:var(--surface-2);border-bottom:1px dashed var(--x-line);font-size:.88rem}
html:root .x-six-h b{color:var(--text);font-size:1rem}
html:root .x-six ul{list-style:none;margin:0;padding:0}
html:root .x-q{padding:12px 16px;display:grid;grid-template-columns:22px 1fr;gap:10px}
html:root .x-q+.x-q{border-top:1px solid var(--border)}
html:root .x-qn{font-weight:700;color:var(--muted);font-size:.9rem;padding-top:1px}
html:root .x-q h4{margin:0 0 4px;font-size:.98rem}
html:root .x-q p{font-size:.9rem;color:var(--muted);margin:4px 0 0;line-height:1.45}
html:root .x-plain{margin:0;line-height:1.5;font-size:.95rem}

/* крупный текст */
html:root[data-large=true] .x-shelf{grid-template-columns:1fr}
html:root[data-large=true] .x-blister:not(.scroll){grid-template-columns:repeat(2,minmax(0,1fr))}
html:root[data-large=true] .x-tbl div{grid-template-columns:1fr;gap:2px}

@media (prefers-reduced-motion:reduce){html:root .btn:active{transform:none;transition:none}}

/* ===== окна и разделы веб-кода в том же стиле ===== */
html:root .map-hint,html:root .fd-ex,html:root .alco-cta .small,
html:root #modal .card>h2+p.small.muted:not([style]),html:root #modal .card>h2+p.small.muted[style="margin-top:0"]{display:none}
/* окна */
html:root #modal .card{border-radius:16px 16px 0 0;box-shadow:none;border:0;background:var(--bg)}
html:root #modal .card h2{font-size:1.3rem;letter-spacing:-.015em;font-weight:600}
html:root #modal .card label{font-weight:500}

/* метки */
html:root .tag,html:root .tag.drug,html:root .tag.supp{background:var(--bg);color:var(--muted);border-radius:8px;font-weight:500;box-shadow:inset 0 0 0 1px var(--border)}
html:root .tag.bad{background:var(--danger-soft);color:var(--danger);box-shadow:none}
html:root .kbadge,html:root .kbadge.ok,html:root .kbadge.info,html:root .kbadge.unk,html:root .kbadge.warn,html:root .kbadge.bad{background:none;border:0;padding:0;border-radius:0;font-size:.86rem;font-weight:500;text-transform:none;letter-spacing:0;color:var(--text)}
html:root .kbadge.warn{color:var(--warn)}html:root .kbadge.bad{color:var(--danger)}html:root .kbadge.unk{color:var(--muted)}

/* старая карточка препарата (поиск «Узнать о препарате», «Добавить», «Изменить») */
html:root .kcard{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-card);box-shadow:none;padding:16px}
html:root .kcard h3{font-weight:600;font-size:1.25rem!important;letter-spacing:-.015em}
html:root .k-h{font-size:.86rem;font-weight:500;color:var(--muted);margin:16px 0 4px}
html:root .kcard-desc{background:none;padding:0;border-radius:0;font-weight:400;font-size:.95rem;margin:4px 0 0}
html:root .ind-block{background:none;border:0;padding:0}
html:root .kgrid{grid-template-columns:1fr;gap:0;border:1px solid var(--border);border-radius:var(--r-card);overflow:hidden;margin-top:14px!important}
html:root .kitem,html:root .kitem.ok,html:root .kitem.warn,html:root .kitem.bad,html:root .kitem.info,html:root .kitem.unk{background:var(--surface);border:0;border-left:0;border-radius:0;padding:12px 14px}
html:root .kitem+.kitem{border-top:1px solid var(--border)}
html:root .kitem-title{font-weight:500;font-size:.86rem;color:var(--muted)}
html:root .kitem p{font-size:.9rem;color:var(--muted)}
html:root .kitem-top{margin-bottom:2px}
html:root .cab-block{background:none;border:0;border-top:1px solid var(--border);border-radius:0;padding:14px 0 0;margin-top:14px}
html:root .cab-pairs li{border-color:var(--border)}
html:root .kcard-empty{background:var(--surface);border:1px dashed var(--x-line);border-radius:var(--r-card)}

/* предупреждения о сочетаниях */
html:root .alert,html:root .alert.high,html:root .alert.moderate,html:root .alert.low,html:root .alert.ok,html:root .alert.nodata,html:root .alert.unchecked{background:var(--surface);border:1px solid var(--border);border-left:1px solid var(--border);border-radius:var(--r-card);padding:14px 16px}
html:root .alert .lvl{text-transform:none;letter-spacing:0;font-size:.92rem;font-weight:600;color:var(--muted)}
html:root .alert.high .lvl{color:var(--danger)}html:root .alert.moderate .lvl{color:var(--warn)}
html:root .alert h3{font-size:1.05rem;margin:4px 0 0}

/* еда, возраст, сроки, архив */
html:root .sec.card,html:root section.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-card);box-shadow:none}
html:root .fd,html:root .fd.high,html:root .fd.moderate,html:root .fd.low,html:root .fd.unknown{border:1px solid var(--border);border-top:1px solid var(--border);border-radius:var(--r-card);background:var(--surface)}
html:root .fd-ic,html:root .fd.high .fd-ic,html:root .fd.moderate .fd-ic,html:root .fd.low .fd-ic{background:none;color:var(--text);width:28px;height:28px}
html:root .fd-l,html:root .fd.high .fd-l,html:root .fd.moderate .fd-l,html:root .fd.low .fd-l{background:none;padding:0;text-transform:none;letter-spacing:0;font-size:.86rem;font-weight:500;color:var(--muted)}
html:root .fd.high .fd-l{color:var(--danger)}html:root .fd.moderate .fd-l{color:var(--warn)}
html:root .fd li,html:root .fd li.high,html:root .fd li.moderate{border-left:0;padding-left:0}
html:root .fd li+li{border-top:1px solid var(--border);padding-top:8px}
html:root .fd-until{color:var(--text)}
html:root .fd-good{background:var(--surface);border:1px solid var(--border)}html:root .fd-good svg{color:var(--text)}
html:root .fd-note,html:root .fd-note.unknown,html:root .fd-note.ok{background:var(--surface);border:1px solid var(--border);color:var(--text)}
html:root .alco-cta{border-color:var(--border);border-radius:var(--r-card)}html:root .alco-cta>svg,html:root .alco-arr{stroke:var(--text);color:var(--text)}
html:root .ex-r,html:root .ex-r.bad,html:root .ex-r.soon{background:var(--surface);border:1px solid var(--border)}
html:root .ex-r,html:root .ex-list{min-width:0;max-width:100%}html:root .ex-t{min-width:0;flex:1 1 140px}html:root .ex-a{flex-wrap:wrap;min-width:0}html:root .ex-a .btn{min-width:0;padding-inline:10px;flex:1 1 auto}
html:root .ex-r.bad .ex-d{background:none;color:var(--danger);font-weight:600}html:root .ex-r.soon .ex-d{color:var(--warn)}
html:root .fd-src summary{border-bottom:1px solid var(--x-line);color:var(--muted)}
html:root .map-zoom .btn{min-height:48px;min-width:48px;border-radius:8px}

/* ---------- v2.1: вкладки «Требует внимания» / «Еда и напитки» ---------- */
html:root .x-tabs{display:flex;gap:4px;padding:6px;background:var(--surface-2);border-bottom:1px dashed var(--x-line);min-width:0}
html:root .x-tab{all:unset;box-sizing:border-box;cursor:pointer;flex:1 1 0;min-width:0;display:flex;align-items:center;justify-content:center;gap:6px;min-height:48px;padding:6px 8px;border-radius:12px;color:var(--muted);font-size:.95rem;text-align:center;line-height:1.2}
html:root .x-tab b{font-weight:600;min-width:0}
html:root .x-tab .num{min-width:22px;height:22px;padding:0 6px;border-radius:11px;display:inline-grid;place-items:center;background:var(--x-line);color:var(--text);font-size:.8rem;font-weight:700;box-sizing:border-box;flex-shrink:0}
html:root .x-tab.on{background:var(--surface);color:var(--text);box-shadow:0 1px 2px rgba(0,0,0,.08),0 0 0 1px var(--border)}
html:root .x-tab.on b{font-weight:700}
html:root .x-tab:focus-visible{outline:3px solid var(--primary);outline-offset:1px}
html:root .x-pane[hidden]{display:none}
html:root .x-pane-food{padding:12px}

/* простая схема: плитка = продукт, цвет = насколько строго, ниже — какие средства */
html:root .x-fds{list-style:none;margin:0;padding:0;display:grid;gap:8px}
html:root .x-fd details{border-radius:var(--r-card);border:1px solid var(--border);background:var(--bg);overflow:hidden}
html:root .x-fd summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;padding:10px 12px;min-height:60px;box-sizing:border-box}
html:root .x-fd summary::-webkit-details-marker{display:none}
html:root .x-fd summary:focus-visible{outline:3px solid var(--primary);outline-offset:-3px;border-radius:var(--r-card)}
html:root .x-fd-ic{width:44px;height:44px;flex:none;border-radius:12px;display:grid;place-items:center;background:var(--surface-2);color:var(--muted)}
html:root .x-fd-ic svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
html:root .x-fd-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
html:root .x-fd-t b{font-size:1.02rem;line-height:1.25}
html:root .x-fd-t span{font-size:.88rem;color:var(--muted);line-height:1.3}
html:root .x-fd-v{flex:none;font-weight:700;font-size:.85rem;padding:5px 10px;border-radius:20px;background:var(--surface-2);color:var(--muted)}
html:root .x-fd.high details{border-color:color-mix(in srgb,var(--danger) 35%,var(--border));border-left:6px solid var(--danger)}
html:root .x-fd.high .x-fd-ic,html:root .x-fd.high .x-fd-v{background:var(--danger-soft);color:var(--danger)}
html:root .x-fd.moderate details{border-left:6px solid var(--warn)}
html:root .x-fd.moderate .x-fd-ic,html:root .x-fd.moderate .x-fd-v{background:var(--warn-soft);color:var(--warn)}
html:root .x-fd.low details{border-left:6px solid var(--x-line)}
html:root .x-fd-det{list-style:none;margin:0;padding:4px 14px 12px 68px;display:grid;gap:8px;font-size:.92rem;line-height:1.4}
html:root .x-fd-adv{display:block;color:var(--muted)}
html:root .x-fd-until{display:block;color:var(--muted);font-size:.85rem}
html:root .x-fd-good{display:flex;gap:12px;align-items:center;margin-top:10px;padding:10px 12px;border-radius:var(--r-card);border:1px dashed var(--x-line);font-size:.92rem;line-height:1.35}
html:root .x-fd-ic.g{width:36px;height:36px;color:var(--primary)}
html:root .x-fd-nd,html:root .x-fd-none{margin:10px 2px 0;font-size:.88rem;color:var(--muted);line-height:1.4}
html:root .x-fd-none{margin-top:2px;color:var(--text)}
html:root .x-fd-alco{margin-top:10px;border-top:1px solid var(--border);padding-left:4px}
html:root .x-fd-alco .x-dot svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ---------- схема сочетаний: масштаб пальцами, без стрелок ---------- */
html:root .map-zoom [data-act="mapTurn"]{display:none}
html:root .mapw svg.map{touch-action:none}
html:root .mapw svg.map.x-zoomed:not(.map3d){cursor:move}

/* ---------- без увеличения по двойному нажатию во всём приложении ---------- */
html:root,html:root body,html:root *{touch-action:manipulation!important}
html:root .mapw svg.map,html:root .mapw svg.map *{touch-action:none!important}
html:root :is(input,select,textarea){font-size:max(16px,1em)}

/* v2.1: схема-светофор продуктов */
html:root .x-fgs{display:grid;gap:10px}
html:root .x-fg{border-radius:var(--r-card);border:1px solid var(--border);background:var(--bg);padding:10px 10px 12px}
html:root .x-fg-h{display:flex;align-items:center;gap:8px;margin:0 2px 8px;font-size:.95rem}
html:root .x-fg-h i{width:12px;height:12px;border-radius:50%;background:var(--x-line);flex:none}
html:root .x-fg-h .num{margin-left:auto;color:var(--muted);font-size:.85rem}
html:root .x-fg.high .x-fg-h i{background:var(--danger)}html:root .x-fg.high .x-fg-h b{color:var(--danger)}
html:root .x-fg.moderate .x-fg-h i{background:var(--warn)}html:root .x-fg.moderate .x-fg-h b{color:var(--warn)}
html:root .x-fq-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:8px}
html:root .x-fq{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px 8px;min-height:84px;border-radius:12px;background:var(--surface);border:1px solid var(--border);text-align:center}
html:root .x-fq .x-fd-ic{width:40px;height:40px}
html:root .x-fq-n{font-size:.86rem;font-weight:600;line-height:1.15;color:var(--text)}
html:root .x-fq.high .x-fd-ic{background:var(--danger-soft);color:var(--danger)}
html:root .x-fq.moderate .x-fd-ic{background:var(--warn-soft);color:var(--warn)}
html:root .x-fq[aria-expanded="true"]{border-color:var(--primary);box-shadow:0 0 0 2px var(--primary) inset}
html:root .x-fq:focus-visible{outline:3px solid var(--primary);outline-offset:2px}
html:root .x-fd-panel{margin-top:10px;padding:10px 12px;border-radius:12px;background:var(--surface);border:1px solid var(--border)}
html:root .x-fd-panel[hidden]{display:none}
html:root .x-fd-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
html:root .x-fd-panel .x-fd-det{padding:0}
html:root .x-fg.high .x-fd-v{background:var(--danger-soft);color:var(--danger)}
html:root .x-fg.moderate .x-fd-v{background:var(--warn-soft);color:var(--warn)}
html:root .x-fd-tip{margin:8px 2px 0;font-size:.85rem;color:var(--muted)}
html:root .x-tab{font-size:.9rem;padding:6px 8px}

/* ---------- v37.29: пиктограммы статусов 3–5 (ЕСМ 3.1): «Состав не определён» — пунктир, «Добавьте второе средство» — подсказка-действие ---------- */
html:root .x-chip.u{border:1px dashed var(--x-line);border-radius:10px;padding:2px 8px;background:var(--surface-2)}
html:root .x-calm.x-need{display:flex;gap:10px;align-items:center;background:var(--surface-2);border-style:solid;border-color:transparent;box-shadow:none;color:var(--muted)}
html:root .x-calm.x-need .xi{color:var(--primary);width:22px;height:22px}
html:root .x-calm .x-meta{display:inline-block;margin-top:4px}

/* ---------- v37.29: широкий экран — две колонки (W1) ---------- */
html:root .x-cols{display:contents}
html:root .x-col{display:contents}
@media (min-width:1100px){
  html:root .x-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 32px;align-items:start}
  html:root .x-col{display:block;min-width:0}
  html:root .x-col > .x-sh:first-child{margin-top:0}
  html:root .x-shelf{grid-template-columns:1fr}
}

/* v37.29, I17: кнопка «Озвучить» с подписью, область нажатия не меньше 48 px */
html:root .x-ib.x-spk{width:auto;min-width:48px;padding:0 14px;grid-auto-flow:column;gap:8px;font-weight:600;font-size:.9rem;white-space:nowrap}
html:root .x-ib.x-spk svg{flex:none}

/* v37.29: на узком экране в блистере четыре ячейки с подписью не меньше 14 px — чуть меньше полей, чтобы «просрочен» не переносился */
@media (max-width:430px){html:root .x-blister:not(.scroll){padding:10px 6px;gap:6px}}

/* v37.39: подписи двух приёмов на шкале «В вашем графике» больше не накладываются — вторая подпись под осью. */
html:root .x-ruler{height:106px}
html:root .x-ruler .pin.r{top:41px;flex-direction:column-reverse}
html:root .x-ruler .pin.r i{margin-top:0}
html:root .x-ruler .tick{top:84px}

/* v37.39: цели касания не меньше 44 px для аудитории 60+ (микрофон, удаление упаковки, связи схемы). */
html:root body .mic{width:44px;height:44px;top:2px;right:2px}
html:root body .micwrap > input, html:root body .micwrap > textarea{padding-right:52px}
html:root body .pk-x{min-width:44px;min-height:44px}
html:root body .map .pl .hit{stroke-width:44px}
html:root body .map .nd .hitc{fill:transparent;stroke:none}
/* v37.42: стартовый экран «Проверка» — крупное поле поиска, карточка препарата и второе средство сразу на экране */
html:root .ck-find{margin:4px 0 20px}
html:root .ck-box{padding:16px;border:1px solid var(--x-line);border-radius:var(--r-card);background:var(--surface)}
html:root .ck-l{display:block;font-weight:700;font-size:1.15rem;line-height:1.3;margin:0 0 8px;color:var(--text)}
html:root .ck-f{margin:0}
html:root .ck-f input{min-height:56px;font-size:1.15rem;padding:12px 14px;width:100%;box-sizing:border-box;border-radius:var(--r-field)}
html:root .ck-b{gap:8px;margin:10px 0 0;flex-wrap:wrap}
html:root .ck-b .btn{min-height:48px;flex:1 1 auto}
html:root .ck-hint{margin:12px 0 0;line-height:1.45}
html:root .ck-res{margin-top:16px;outline:none;scroll-margin-top:72px}
html:root .ck-res:focus-visible{outline:3px solid var(--primary);outline-offset:4px;border-radius:var(--r-card)}
html:root .ck-two{margin-top:16px;scroll-margin-top:72px}
html:root .ck-pair{margin-top:12px}
html:root .ck-pair .pc-head{font-weight:700;line-height:1.35}
html:root .comp-unk .btn{min-height:44px}
/* v37.43: «Что в аптечке» — раскрывающиеся группы; мини-шар на «Проверке»; «+ Добавить средство» */
html:root .x-shg{margin-top:10px}
html:root .x-shg>summary{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 0}
html:root .x-shg>summary .num{margin-left:auto;color:var(--muted);font-weight:600}
html:root .x-shg[open]>summary{margin-bottom:12px}
html:root .ck-more{margin-top:10px;min-height:48px}
html:root .ck-mini{margin-top:12px;text-align:center}
html:root .ck-mini .mapw{max-width:260px;margin:0 auto}
html:root .ck-mini svg.mini{width:100%;height:auto;display:block}
html:root .x-shg>summary{list-style:none}
html:root .x-shg>summary::-webkit-details-marker{display:none}
html:root .x-shg>summary::after{content:'';flex:none;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin:0 6px 4px 2px;transition:transform .2s}
html:root .x-shg[open]>summary::after{transform:rotate(-135deg);margin-bottom:-4px}
/* v37.44: крестик у добавленных полей проверки; свёрнутые пары */
html:root .ck-lr{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:14px}
html:root .ck-lr .ck-l{margin:0}
html:root .ck-del{min-width:48px;min-height:48px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);font-size:1.5rem;line-height:1;cursor:pointer}
html:root .ck-rest{margin-top:8px;text-align:left}
/* v37.45: светофор на схеме сочетаний и мини-шаре (цвета статусов брендбука 3.4) */
html:root body .map .pl.high .vis{stroke:#B3412E}
html:root body .map .pl.moderate .vis,html:root body .map .pl.low .vis{stroke:#C98A1B}
html:root body .map .pl.ok .vis{stroke:#2F7A3F;stroke-width:2.2;stroke-dasharray:none;opacity:.85}
html:root body .mapw .map .pl.none,html:root body .mapw .map .pl.ok{display:none}
html:root body .map .pl.none .vis{stroke:#8A948F;stroke-width:1.6;stroke-dasharray:3 4}
html:root body .map .nd.high .nc{stroke:#B3412E}
html:root body .map .nd.moderate .nc{stroke:#C98A1B}
html:root .map-legend{display:flex;flex-wrap:wrap;gap:6px 14px;justify-content:center;margin:8px 0 0;font-size:.95rem;color:var(--text)}
html:root .map-legend span{display:inline-flex;align-items:center;gap:6px}
html:root .map-legend .l{width:20px;border-top-width:4px;border-top-style:solid}
html:root .map-legend .l.high{border-color:#B3412E}
html:root .map-legend .l.moderate{border-color:#C98A1B}
html:root .map-legend .l.ok{border-color:#2F7A3F}
html:root .map-legend .l.none{border-color:#8A948F;border-top-style:dashed;border-top-width:3px}
html[data-theme=dark] body .map .pl.high .vis,html[data-theme=dark] .map-legend .l.high{stroke:#E57A66;border-color:#E57A66}
html[data-theme=dark] body .map .pl.moderate .vis,html[data-theme=dark] body .map .pl.low .vis,html[data-theme=dark] .map-legend .l.moderate{stroke:#E0B25A;border-color:#E0B25A}
html[data-theme=dark] body .map .pl.ok .vis,html[data-theme=dark] .map-legend .l.ok{stroke:#7CC48A;border-color:#7CC48A}
html[data-theme=dark] body .map .pl.none .vis,html[data-theme=dark] .map-legend .l.none{stroke:#9AA7A1;border-color:#9AA7A1}
/* v37.45: «Еда и напитки» плотнее — один блок, уровень = строка с цветной меткой слева, продукты чипами в ряд */
html:root body .x-fgs{display:block;gap:0;border:1px solid var(--border);border-radius:var(--r-card);background:var(--surface);padding:2px 12px}
html:root body .x-fgs .x-fg{display:flex;flex-wrap:wrap;align-items:center;gap:6px;border:0;border-radius:0;background:none;padding:8px 0}
html:root body .x-fgs .x-fg+.x-fg{border-top:1px solid var(--border)}
html:root body .x-fgs .x-fg-h{margin:0 4px 0 0;min-height:44px;gap:6px}
html:root body .x-fgs .x-fg-h .num{margin-left:0}
html:root body .x-fgs .x-fq-grid{display:contents}
html:root body .x-fgs .x-fq{flex-direction:row;align-items:center;min-height:44px;padding:4px 12px 4px 4px;border-radius:99px;gap:6px;text-align:left}
html:root body .x-fgs .x-fq .x-fd-ic{width:34px;height:34px;flex:none}
html:root body .x-fgs .x-fq .x-fd-ic svg{width:20px;height:20px}
html:root body .x-fgs .x-fd-panel{flex:1 0 100%;margin-top:2px}
html:root body .x-fd-tip{margin:6px 2px 0}
html:root body .ck-b.ck-b-s{display:flex;flex-wrap:nowrap;gap:8px}
html:root body .ck-b.ck-b-s .btn{flex:1 1 0;min-height:48px;width:auto}
html:root body .ck-top .ck-lr{margin-top:10px}
html:root .map-legend .map-leg-n{flex-basis:100%;justify-content:center;color:var(--muted)}

/* v37.47: вкладка «Магазин» (контур SALES). Нижняя панель: Проверка · Аптека · Магазин · Напоминания · Ещё («Семья» — в «Ещё») */
/* v37.61: шесть вкладок — Главная, Аптечка, Сочетания, Магазин, Приём, Ещё */
html:root body #tabbar.tabbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.18fr) minmax(0,1fr) minmax(0,0.82fr) minmax(0,0.62fr)}
.shop-sep{border:1px dashed #B98A2E;background:#FBF6EA;color:#5C4A1E;border-radius:12px;padding:10px 12px;margin:0 0 12px;font-size:1rem;line-height:1.4}
.shop-sub{margin:4px 0 8px;color:#3D4A44}
.shop-ndb,.shop-nd{font-weight:700;letter-spacing:.02em;color:#2B2B2B}
.shop-ndb{border:1px solid #2B2B2B;border-radius:8px;padding:6px 10px;display:inline-block;margin:0 0 12px}
.shop-grp{margin:16px 0}
.shop-gh{margin:0 0 2px;font-size:1.2rem}
.shop-gs{margin:0 0 10px;color:#59645E}
.shop-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.shop-card{all:unset;box-sizing:border-box;display:flex;flex-direction:column;gap:6px;width:100%;min-height:48px;padding:14px 16px;border-radius:16px;cursor:pointer;border:1px solid transparent;overflow-wrap:anywhere}
.shop-card:focus-visible{outline:3px solid #1F6F5C;outline-offset:2px}
.shop-resurs{background:#1F4A3B;color:#F4EFE3;border-color:#B98A2E}
.shop-resurs .shop-code{color:#E8D29C}.shop-resurs .shop-nd{color:#F4EFE3}
.shop-warn{border:1px solid #B3261E;background:#FCEEEC;color:#5A1712;border-radius:12px;padding:10px 12px;margin:10px 0;line-height:1.45}
.shop-trio{background:#F7F2E6;color:#22262A;border-color:#B98A2E}
.shop-trio .shop-code{color:#6E5420}
.shop-code{font-size:1rem;font-weight:600}
.shop-name{font-size:1.15rem;line-height:1.3}
.shop-comps{display:flex;flex-direction:column;gap:2px;font-size:1rem;line-height:1.35}
.shop-comps i,.shop-roles i{font-style:normal;font-weight:700;color:inherit}
.shop-nd{font-size:1rem;margin-top:4px}
.shop-foot{color:#59645E;margin:16px 0 8px}
.shop-modal h3{margin:14px 0 6px}
.shop-roles{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.shop-roles li{display:flex;gap:10px;align-items:flex-start}
.shop-roles li>i{flex:0 0 auto;min-width:2.2em;text-align:center;border:1px solid #B98A2E;border-radius:8px;padding:2px 4px}
.shop-st{padding-left:1.1em;margin:4px 0}.shop-st li{margin:6px 0}.shop-st a{color:#1F6F5C;overflow-wrap:anywhere;line-height:1.6}
.shop-badges{list-style:none;padding:0;margin:12px 0;display:flex;flex-wrap:wrap;gap:8px}
.shop-badges li{border:1px solid #B98A2E;border-radius:999px;padding:4px 12px;color:#5C4A1E;background:#FBF6EA}
.shop-acts{flex-wrap:wrap;gap:10px;margin-top:12px}
.shop-acts .btn{min-height:48px}
.shop-li{display:flex;flex-direction:column;gap:8px}
.shop-li>.shop-card{flex:1 1 auto}
.shop-add{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;width:100%;border:1px solid #1F6F5C;background:#1F6F5C;color:#fff;font-weight:600;border-radius:12px;font-size:1rem}
.shop-modal .shop-add{width:auto;padding:0 18px}
.shop-add:focus-visible,.shop-qb:focus-visible,.shop-qi:focus-visible,.shop-cart:focus-visible,.shop-del:focus-visible{outline:3px solid #1F6F5C;outline-offset:2px}
.shop-add .xi,.shop-cart .xi{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.shop .x-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.shop-cart{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border-radius:999px;border:1px solid #B98A2E;background:#FBF6EA;color:#5C4A1E;font-weight:600;cursor:pointer}
.shop-qty{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.shop-li .shop-qty{justify-content:space-between;border:1px solid #1F6F5C;border-radius:12px;padding:0;background:#FFFDF8}
.shop-qb{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:12px;background:#1F6F5C;color:#fff;font-size:1.4rem;font-weight:700;cursor:pointer;flex:0 0 auto}
.shop-qb[disabled]{opacity:.4;cursor:not-allowed}
.shop-qi{box-sizing:border-box;width:4.5em;min-height:48px;text-align:center;font-size:1.1rem;font-weight:700;border:1px solid #B9B2A3;border-radius:10px;background:#fff;color:#22262A;-moz-appearance:textfield}
.shop-li .shop-qi{border:0;background:transparent;flex:1 1 auto;min-width:0}
.shop-qi::-webkit-inner-spin-button,.shop-qi::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.shop-qn{color:#3D4A44}
.shop-cl{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:12px}
.shop-cl li{display:grid;grid-template-columns:1fr auto;gap:8px 12px;align-items:center;padding:12px;border:1px solid #E2DBCB;border-radius:14px;background:#FFFDF8}
.shop-cn{display:flex;flex-direction:column;gap:2px;grid-column:1/-1}
.shop-del{all:unset;box-sizing:border-box;min-height:44px;padding:0 12px;display:inline-flex;align-items:center;color:#8C2A22;text-decoration:underline;cursor:pointer;justify-self:end}
.shop-tot{font-size:1.1rem;margin:8px 0 4px}
.shop-sum{background:#FBF6EA;border:1px solid #E2D3AE;border-radius:12px;padding:10px 12px;line-height:1.5}
.shop-form{display:grid;gap:12px;margin:8px 0}
.shop-fl{display:grid;gap:4px;font-weight:600;color:#22262A}
.shop-fl input,.shop-fl textarea{box-sizing:border-box;width:100%;min-height:48px;padding:10px 12px;font:inherit;font-weight:400;font-size:1rem;border:1px solid #B9B2A3;border-radius:10px;background:#fff;color:#22262A}
.shop-fl [aria-invalid=true],.shop-cb [aria-invalid=true]{border-color:#B3261E;outline:2px solid #B3261E}
.shop-fs{border:0;margin:0;padding:0;display:flex;gap:8px 20px;flex-wrap:wrap}
.shop-fs legend{font-weight:600;margin-bottom:4px;padding:0}
.shop-rb,.shop-cb{display:inline-flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}
.shop-cb{align-items:flex-start;line-height:1.4}
.shop-rb input,.shop-cb input{width:22px;height:22px;flex:0 0 auto;accent-color:#1F6F5C;margin:2px 0 0}
.shop-price{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;margin-top:2px}
.shop-price b{font-size:1.25rem;color:#1F4A3B}
.shop-price span{font-size:.95rem;color:#59645E}
.shop-resurs .shop-price b{color:#F4EFE3}.shop-resurs .shop-price span{color:#E8D29C}
.shop-pl{margin:4px 0 8px}
.shop-lp{font-size:1rem;color:#3D4A44}
.shop-err{color:#8C2A22;background:#FCEEEC;border:1px solid #B3261E;border-radius:10px;padding:8px 12px;margin:0}
/* v37.119: промокод в оформлении заказа */
.shop-promo{border:1px solid #D8D2C4;border-radius:12px;padding:10px 12px;background:#FBFAF7}
.shop-promo summary{cursor:pointer;font-weight:600;color:#22262A;min-height:32px;display:flex;align-items:center}
.shop-promo[open] summary{margin-bottom:8px}
.shop-prow{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap}.shop-prow .shop-fl{flex:1 1 200px}.shop-prow .btn{min-height:48px}
#shopPromoIn{text-transform:uppercase;letter-spacing:.04em}
.shop-perr{color:#8C2A22;margin:8px 0 0}.shop-perr[hidden]{display:none}
.shop-pok{margin:0 0 8px;color:#22262A}div.shop-promo{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}div.shop-promo .shop-pok{margin:0}
.shop-disc{color:#1F5E3A;font-weight:600}
.shop-pay{border:1px solid var(--border,#E0D9CA);border-radius:14px;padding:12px 14px;margin:12px 0 0;display:grid;gap:8px}
.shop-pay p{margin:0}
.shop-soon{display:inline-flex;align-items:center;min-height:48px;padding:0 16px;border-radius:12px;border:1px dashed #8A8F8C;color:#59645E;background:#EFEDE8;cursor:not-allowed;user-select:none}
#shopCk:not(:empty){margin-top:12px;border-top:1px solid #E3DED2;padding-top:4px}

/* v37.48: фото серий и фильтры магазина */
.shop-ph{display:block;width:100%;height:auto;aspect-ratio:493/237;object-fit:cover;border-radius:10px;margin:0 0 4px;background:#E9E3D6}
.shop-fig{margin:8px 0 4px}.shop-fig figcaption{font-size:.875rem;color:#59645E;margin-top:4px}
html:root body .shop-fig figcaption{font-size:.875rem}
.shop-flt{display:grid;gap:10px;margin:4px 0 8px}
.shop-fgt{display:block;font-weight:600;margin:0 0 6px;color:#3D4A44}
.shop-chips{display:flex;flex-wrap:wrap;gap:8px}
.shop-chip{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:999px;border:1px solid #B9B2A3;background:#FFFDF8;color:#22262A;cursor:pointer;font-size:1rem;line-height:1.2}
.shop-chip[aria-pressed="true"]{background:#1F6F5C;border-color:#1F6F5C;color:#fff;font-weight:600}
.shop-chip:focus-visible{outline:3px solid #1F6F5C;outline-offset:2px}
.shop-cnt{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:10px 0 4px;font-weight:600;min-height:44px}
.shop-empty{border:1px dashed #B9B2A3;border-radius:12px;padding:14px;color:#3D4A44;background:#FFFDF8}
html:root body .shop-pcap{font-size:.875rem;color:#59645E;margin:-6px 0 10px}

/* v37.49: кнопка профиля и меню личных настроек; листок в иконке «Магазин» */
html:root .xi .xi-leaf,html:root nav svg.xi .xi-leaf{fill:currentColor;stroke:none}
.pm-btn{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:6px;min-height:44px;min-width:44px;max-width:100%;padding:0 10px 0 8px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text);cursor:pointer;font-weight:600;font-size:1rem}
.pm-btn:focus-visible,.pmenu button:focus-visible,.pmenu input:focus-visible{outline:3px solid var(--primary);outline-offset:2px}
.pm-btn .xi{width:22px;height:22px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pm-btn .pm-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:9.5em}
.pm-btn .pm-chev{width:18px;height:18px}
.pmenu{position:fixed;right:8px;left:auto;z-index:60;width:min(360px,calc(100vw - 16px));max-height:calc(100vh - 80px);overflow:auto;box-sizing:border-box;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:16px;box-shadow:0 12px 32px rgba(0,0,0,.18);padding:14px}
.pmenu .xi{width:24px;height:24px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pm-head{display:flex;gap:10px;align-items:center;margin-bottom:8px}
.pm-head div{display:flex;flex-direction:column;min-width:0}.pm-head b{font-size:1.1rem;overflow-wrap:anywhere}.pm-head span{color:var(--muted)}
.pm-sec{border-top:1px solid var(--border);margin-top:10px;padding-top:8px}
.pm-sec h3{font-size:1rem;margin:0 0 6px;color:var(--muted)}
.pm-row{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:0 6px;border-radius:10px;cursor:pointer;color:var(--text)}
.pm-row:hover{background:color-mix(in srgb,var(--primary) 8%,transparent)}
.pm-all{font-weight:600;color:var(--primary);border-top:1px solid var(--border);margin-top:10px;border-radius:0}
.pmenu .pm-b{min-height:44px}
.pmenu .row{flex-wrap:wrap;gap:8px}
.pm-seg{display:flex;flex-wrap:wrap;gap:6px}
.pm-seg button{all:unset;box-sizing:border-box;min-height:44px;padding:0 12px;display:inline-flex;align-items:center;border:1px solid var(--border);border-radius:999px;cursor:pointer;color:var(--text)}
.pm-seg button[aria-pressed="true"]{background:var(--primary);border-color:var(--primary);color:var(--primary-ink);font-weight:600}
.pm-chk{display:flex;align-items:center;gap:10px;min-height:48px;margin-top:6px}
.pm-chk input{width:24px;height:24px}

/* v37.50: кнопка «Фильтры», строка «Не является лекарственным средством» в конце */
.shop-ftog{margin:4px 0 8px;font-weight:600}
.shop-ftog::after{content:"";width:8px;height:8px;margin-left:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.shop-ftog[aria-expanded="true"]::after{transform:translateY(2px) rotate(-135deg)}
.shop-flt[hidden]{display:none}
.shop-ndl{margin:16px 0 8px;padding:12px 14px;border-radius:12px;border:2px solid #22262A;background:#FFFDF8;color:#22262A;font-weight:700;font-size:1.05rem}
html[data-theme=dark] .shop-ndl{background:transparent;border-color:#E8E3D8;color:#F2EEE6}

/* v37.51: упрощённая карточка — время приёма вместо кодов ролей, свёрнутые «Исследования» */
.shop-roles li{flex-direction:column;gap:2px}
.shop-when{font-weight:600;color:#6E5420;font-size:1rem}
html[data-theme=dark] .shop-when{color:#E3C98E}
.shop-res{margin:14px 0 4px;border-top:1px solid #E3DED2;padding-top:6px}
.shop-res summary{min-height:48px;display:flex;align-items:center;cursor:pointer;font-weight:600}
.shop-res summary:focus-visible{outline:3px solid #1F6F5C;outline-offset:2px}

/* v37.52: «Аптечка» — длинный заголовок на широком экране, короткий рядом с кнопкой «Добавить» на телефоне */
html:root .lb-n{display:none}
@media (max-width:600px){html:root .lb-w{display:none}html:root .lb-n{display:inline}}
/* v37.52: пустая аптечка — четыре способа добавления плитками 2×2 прямо на экране */
html:root .empty-hero .add-inline{grid-template-columns:1fr 1fr;gap:10px;max-width:560px;margin:4px auto 0;text-align:left}
html:root .empty-hero .add-inline .opt{box-sizing:border-box;flex-direction:column;align-items:flex-start;gap:6px;min-height:96px;padding:14px;border-radius:16px;background:var(--surface)}
html:root .empty-hero .add-inline .opt b{font-size:1rem}
html:root .empty-hero .add-inline .opt small{font-size:.84rem;line-height:1.3}
html:root .empty-hero .add-inline .opt:focus-visible{outline:3px solid var(--primary);outline-offset:2px}
@media (max-width:600px){html:root .empty-hero{padding:22px 16px}html:root .empty-hero .art{width:150px}html:root .empty-hero p{margin-bottom:14px}}
@media (min-width:900px){html:root .empty-hero .add-inline{grid-template-columns:repeat(4,1fr);max-width:none}}

/* v37.53: «Главная» — переключатель «Сочетания | В аптечку», описание режима с иллюстрацией (как в пустой аптечке) */
html:root .lbh{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:14px;margin:0 0 16px}
html:root .lbh-a{border:2px solid var(--primary)}
html:root .lbh-seg{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:var(--surface-2);border-radius:16px;padding:5px;margin:0 0 12px}
html:root .lbh-tab{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 8px;border-radius:12px;font-weight:800;font-size:1rem;color:var(--muted);cursor:pointer;text-align:center}
html:root .lbh-tab svg{width:20px;height:20px;flex:none}
html:root .lbh-tab.on{background:var(--primary);color:#fff;box-shadow:0 2px 6px rgba(0,0,0,.15)}
html:root .lbh-tab:focus-visible{outline:3px solid var(--primary);outline-offset:2px}
html:root .lbh-desc{text-align:center;padding:6px 8px 14px;margin:0 0 6px;border-radius:14px;background:radial-gradient(120% 90% at 50% 0%,var(--primary-soft) 0%,transparent 70%)}
html:root .lbh-art{width:150px;height:auto;display:block;margin:0 auto 4px}
html:root .lbh-desc h2{font-size:1.4rem;line-height:1.2;margin:4px 0 6px}
html:root .lbh-desc p{font-size:.95rem;line-height:1.42;color:var(--muted);margin:0 auto;max-width:520px}
html:root .lbh .ck-box.ck-top{background:none;border:0;box-shadow:none;padding:0;margin:0}
html:root .lbh.fresh .ck-top > .ck-l:first-child{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
html:root .lbh-inp{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;min-height:54px;padding:12px 14px;border:1.5px solid var(--primary);border-radius:14px;background:var(--surface);color:var(--muted);font-size:1.05rem;cursor:pointer}
html:root .lbh-inp svg{width:22px;height:22px;color:var(--primary)}
html:root .lbh-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
html:root .lbh-o{all:unset;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:6px;min-height:72px;padding:12px 4px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--primary);font-weight:800;font-size:.92rem;text-align:center;cursor:pointer}
html:root .lbh-o svg{width:24px;height:24px}
html:root .lbh-o svg,html:root .lbh-inp svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html:root .lbh-inp:focus-visible,html:root .lbh-o:focus-visible,html:root .lbh-cab:focus-visible{outline:3px solid var(--primary);outline-offset:2px}
html:root .lbh-note{font-size:.9rem;color:var(--muted);margin:10px 0 0;line-height:1.38}
html:root .lbh-empty{background:var(--surface);border:1px dashed var(--border);border-radius:18px;padding:16px;font-size:.95rem;line-height:1.42;color:var(--muted)}
html:root .lbh-empty b{display:block;font-size:1.05rem;color:var(--text);margin-bottom:4px}
html:root .lbh-cab{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;padding:14px 16px;border:1px solid var(--border);border-radius:16px;background:var(--surface);font-weight:700;color:var(--primary);cursor:pointer}
html:root .lbh-cab svg{width:18px;height:18px}

/* v37.54: главная без режимов */
html:root .ck-addbox{margin-top:14px;padding:14px;border:1.5px solid var(--primary);border-radius:16px;background:var(--surface)}
html:root .ck-addbox h3{margin:0 0 8px;font-size:1.02rem}
html:root .ck-addbox ul{list-style:none;margin:0 0 10px;padding:0}
html:root .ck-addbox li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--border)}
html:root .ck-addbox li:first-child{border-top:0}
html:root .ck-addbox>.btn{width:100%}
html:root .ck-addbox li .btn{white-space:nowrap;min-height:44px}
html:root .ck-f{position:relative}
html:root .ck-f input::-webkit-search-cancel-button{display:none}
html:root .ck-f.has-x input{padding-right:52px}
html:root .ck-x{all:unset;position:absolute;right:6px;top:50%;transform:translateY(-50%);width:44px;height:44px;display:grid;place-items:center;border-radius:12px;font-size:1.6rem;line-height:1;color:var(--muted);cursor:pointer}
html:root .ck-x:focus-visible{outline:3px solid var(--primary)}
html:root .ck-more{display:flex;width:100%;justify-content:center;min-height:56px;margin-top:12px;font-size:1.02rem;border-radius:14px}
html:root .lbh-o.on{background:var(--primary-soft)}
/* v37.55 (05.11.2026): крестик «Средство N» — отступ до поля, не налезает */
html:root body .ck-top .ck-lr{margin:12px 0 8px;min-height:44px}
html:root body .ck-del{min-width:44px;min-height:44px;width:44px;height:44px;padding:0;display:inline-flex;align-items:center;justify-content:center;flex:none}
/* v37.55: «Требует внимания → Еда и напитки» — статус слева в одной колонке, продукты справа */
html:root body .x-fgs{display:grid;grid-template-columns:8.9rem 1fr;padding:2px 12px}
html:root body .x-fgs .x-fg{grid-column:1/-1;display:grid;grid-template-columns:subgrid;align-items:start;column-gap:12px;row-gap:6px;padding:10px 0}
@supports not (grid-template-columns:subgrid){html:root body .x-fgs .x-fg{grid-template-columns:8.9rem 1fr}}
html:root body .x-fgs .x-fg-h{margin:0;min-height:44px;flex-wrap:nowrap;white-space:nowrap}
html:root body .x-fgs .x-fg-h .num{margin-left:2px}
html:root body .x-fgs .x-fq-grid{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
html:root body .x-fgs .x-fd-panel{grid-column:1/-1;margin-top:2px}
/* v37.56: полоска-ручка — подсказка, что окно можно смахнуть вниз */
@media (max-width:820px){
  html:root body .modal>.card{position:relative;padding-top:max(22px,1.4rem);overscroll-behavior:contain}
  html:root body .modal>.card::before{content:"";position:absolute;top:8px;left:50%;width:40px;height:5px;margin-left:-20px;border-radius:3px;background:color-mix(in srgb,var(--muted) 55%,transparent);pointer-events:none}
}

/* v37.58: вторая строка описания главной — короткая подсказка, как начать */
html:root .lbh-desc p.lbh-hint{margin-top:8px;color:var(--text);font-weight:600;font-size:.93rem}
/* v37.58: окно «Средство добавлено» */
html:root .qa-h{margin:0 0 8px}
html:root .qa-t{margin:0 0 10px;font-size:1.02rem;line-height:1.45}
html:root .qa-w{margin:0 0 10px;padding:10px 12px;border-radius:12px;background:var(--warn-soft,#f6ecd6);color:var(--text);font-size:.95rem;line-height:1.4}
html:root .qa-b{display:flex;flex-wrap:wrap;gap:8px}
html:root .qa-b .btn{flex:1 1 180px;min-height:48px}

/* ---------- v37.62 (06.11.2026): «Сочетания» — «Принимаю сейчас / Вся аптечка», список по степени опасности, фильтр линий, точное касание линий ---------- */
html:root .x-cscope{margin:12px 0 0}
html:root .x-cscope .lbh-tab{font-size:.95rem;font-weight:700;gap:6px;flex-wrap:wrap}
html:root .x-cscope .x-cs-n{min-width:24px;padding:0 6px;border-radius:999px;background:var(--surface);color:var(--text);font-size:.85rem;line-height:22px}
html:root .x-cscope .lbh-tab.on .x-cs-n{background:rgba(255,255,255,.22);color:#fff}
html:root .x-head .x-cscope + .x-note{margin-top:8px}
html:root .x-cg-h{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:1rem;margin:18px 0 8px;padding-left:12px;border-left:5px solid var(--x-line)}
html:root .x-cg-h.d{border-left-color:var(--danger);color:var(--danger)}
html:root .x-cg-h.w{border-left-color:var(--warn)}
html:root .x-cg-h .num{color:var(--muted);font-weight:500;font-size:.86rem}
html:root .x-cg .x-cp-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
html:root .x-cg .x-cp-t b{overflow-wrap:anywhere;line-height:1.35}
html:root .x-cg .x-cp-t span{color:var(--muted);font-size:.86rem;line-height:1.35}
html:root .x-cg-rest{padding-bottom:0}
html:root .x-cg-rest > summary{display:flex;justify-content:space-between;gap:10px;align-items:center}
html:root .x-cg-rest > summary .num{color:var(--muted);font-weight:500;font-size:.86rem}
html:root .x-cg-rest .x-cg{box-shadow:none;border:0;border-radius:0;margin:0 -16px}
html:root .x-iso{margin-top:10px;font-size:.92rem;line-height:1.45}
html:root .x-mf{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
html:root .x-mfb{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid var(--x-line);border-radius:999px;background:var(--surface);color:var(--text);font-weight:600;font-size:.92rem}
html:root .x-mfb .num{color:var(--muted);font-weight:500}
html:root .x-mfb[aria-pressed="false"]{background:transparent;color:var(--muted);border-style:dashed}
html:root .x-mfb[aria-pressed="false"] .l{opacity:.35}
html:root .x-mfb:focus-visible{outline:3px solid var(--primary);outline-offset:2px}
html:root .x-mf .map-leg-n{flex-basis:100%}
html:root body .mapw.hide-high .map .pl.high,html:root body .mapw.hide-moderate .map .pl.moderate,html:root body .mapw.hide-moderate .map .pl.low{display:none}
/* касание: у 3D-шара полоса касания уже (28 px), дальние линии и погашенные при выбранном средстве касание не перехватывают */
html:root body .map.map3d .pl .hit{stroke-width:28px}
html:root body .map.map3d:not(.has-sel) .pl.back .hit,html:root body .map.has-sel .pl:not(.on) .hit{pointer-events:none}
html:root body .map .pl.picked .vis{stroke-width:7}
html:root .x-cg .x-cp-i{flex:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:999px}
html:root .x-cg .x-cp-i svg{width:20px;height:20px}
html:root .x-cg .x-cp-i.d{color:var(--danger);background:rgba(179,65,46,.10)}
html:root .x-cg .x-cp-i.w{color:var(--warn);background:rgba(201,138,27,.12)}
html:root .x-cg .x-cp-i.n,html:root .x-cg .x-cp-i.u{color:var(--muted);background:var(--surface-2,rgba(0,0,0,.04))}
html:root .x-clist .x-sh .num,html:root .x-combos .x-sh .num,html:root .x-cg-h .num,html:root .x-cg-rest>summary .num{white-space:nowrap;flex:none}
/* v37.64: на шаре нажимается только передний план — средства на задней стороне не перехватывают нажатие (в том числе при выбранном средстве) */
html:root body .map.map3d .nd.back,html:root body .map.map3d .nd.back *{pointer-events:none}
html:root body .map.map3d .pl.back .hit,html:root body .map.map3d:not(.has-sel) .pl.far .hit{pointer-events:none}
html:root .x-side-b{display:grid;gap:8px}
html:root .x-side-b .x-plain,html:root .x-side-b .x-note{margin:0}
html:root .x-side-w{padding:8px 10px;border-radius:10px;background:var(--warn-soft,#f6ecd6);border-left:4px solid var(--warn,#c98a1b)}
html:root .side-det{margin:8px 0;padding:8px 12px;border-radius:12px;border:1px solid var(--border);background:var(--surface-2)}
html:root .side-det>summary{cursor:pointer;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px;min-height:28px}
html:root .side-body{margin-top:8px;display:grid;gap:6px}
html:root .side-body p{margin:0;line-height:1.45}
html:root .side-warn{padding:6px 10px;border-radius:8px;background:var(--warn-soft,#f6ecd6);border-left:3px solid var(--warn,#c98a1b)}
/* v37.65: группы по степени опасности и прочие ограничения — раскрывающиеся списки */
html:root .x-cg-grp{padding:0 16px;margin-top:12px}
html:root .x-cg-grp>summary.x-cg-h{list-style:none;margin:0;padding:14px 34px 14px 12px;position:relative;cursor:pointer;min-height:24px;border-left-width:5px}
html:root .x-cg-grp>summary.x-cg-h::-webkit-details-marker{display:none}
html:root .x-cg-grp>summary.x-cg-h::after,html:root .x-olim>summary::after{content:"";position:absolute;right:4px;top:50%;width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-70%) rotate(45deg);transition:transform .2s;color:var(--muted)}
html:root .x-cg-grp[open]>summary.x-cg-h::after,html:root .x-olim[open]>summary::after{transform:translateY(-30%) rotate(225deg)}
html:root .x-cg-grp[open]>summary.x-cg-h{border-bottom:1px solid var(--border);margin-bottom:0}
html:root .x-cg-grp[open]{padding-bottom:0}
html:root .x-cg-grp .x-cg{box-shadow:none;border:0;border-radius:0;margin:0 -16px}
html:root .x-cg-grp>summary:focus-visible,html:root .x-olim>summary:focus-visible{outline:3px solid var(--focus,#1f6f5c);outline-offset:2px}
html:root .x-olim>summary{list-style:none;position:relative;padding-right:30px}
html:root .x-olim>summary::-webkit-details-marker{display:none}
html:root .x-olim .sec-h:first-child,html:root .x-olim>.x-sh:first-of-type{margin-top:4px}
@media (prefers-reduced-motion:reduce){html:root .x-cg-grp>summary.x-cg-h::after,html:root .x-olim>summary::after{transition:none}}

/* v37.81: нижняя панель на телефоне — вся высота панели нажимается (включая полосу над индикатором «домой»), без мёртвых зазоров между пунктами, «Ещё» и «Приём» шире */
@media (max-width:743px){
  html:root body #tabbar.tabbar{column-gap:0;padding:0 env(safe-area-inset-right) 0 env(safe-area-inset-left);
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.18fr) minmax(0,1fr) minmax(0,0.92fr) minmax(0,0.78fr)}
  html:root body #tabbar.tabbar button{justify-content:flex-start;min-height:calc(60px + env(safe-area-inset-bottom));
    padding:10px 2px calc(8px + env(safe-area-inset-bottom))}
  /* подсветка выбранного пункта — прежнего размера, без растяжения на полосу над индикатором «домой» */
  html:root body #tabbar.tabbar button.active{background:linear-gradient(var(--primary-soft),var(--primary-soft)) 0 6px/100% 50px no-repeat}
}
