  .dh-prof-dd__item svg{width:17px;height:17px;color:#9ca3af;flex-shrink:0}
  .dh-prof-dd__item:hover svg{color:#c66a00}
  .dh-prof-dd .dh-pm-auth{display:none}
  .dh-prof-dd.is-auth .dh-pm-auth{display:block}
  .dh-prof-dd.is-auth .dh-pm-guest{display:none}

/* ═══ DEV1-AI-DESKTOP-PARITY-V2: моб-компоненты ИИ ВКЛЮЧЕНЫ на десктопе (логика и стор общие; лейаут внутри
   дровера: шторки История/+ absolute в панели, не fixed). Старая десктоп-шапка дровера скрыта — шапка = .ai-hdr
   с историей/новым чатом/✕ (как моб). Выдача = RESULTS-CARDS (.ai-pc, OTCCab.fmtPrice, ❤, тап→товар). ═══ */
@media (min-width:761px){
#h-ai-drawer .dh-drawer__hdr{display:none !important}
#h-ai-drawer{position:fixed}   /* контекст для absolute-шторок истории/вложений */
/* автогроу поля как на мобе (высота = scrollHeight, до ~6 строк) */
.ai-inbar #ai-input{flex:0 0 auto;resize:none;min-height:20px;max-height:150px;overflow-y:auto;white-space:pre-wrap;overflow-wrap:break-word}
.ai-hdr{flex:0 0 auto;display:flex;align-items:center;gap:11px;padding:calc(12px + 0px) 14px 12px}
.ai-hdr .ai-hdr__tile{width:34px;height:34px;flex:0 0 34px;border-radius:11px;background:#f5f5f7;display:flex;align-items:center;justify-content:center;border:0;cursor:pointer;padding:0}
.ai-hdr .ai-hdr__tile:active{background:#ececef}
.ai-hdr__tile.menu svg{width:19px;height:19px;color:#1c1a22}
.ai-hdr__title{font-size:16px;font-weight:500;color:#15141a;letter-spacing:-.01em;display:flex;align-items:center;gap:5px;white-space:nowrap}
.ai-hdr__title .ai{color:#e87b00;font-weight:600}
.ai-hdr__spark{width:14px;height:14px;flex:0 0 auto}
.ai-hdr__right{margin-left:auto;display:flex;gap:8px}
.ai-hdr__right .ai-hdr__tile svg{width:18px;height:18px;color:#5a5661}
.ai-hdr__line{display:block;flex:0 0 auto;height:2px;background:linear-gradient(90deg,#e87b00,rgba(232,123,0,0))}
#ai-messages .ai-pc{display:flex;align-items:center;gap:11px;background:#fff;border:1px solid #f0eef2;border-radius:14px;padding:9px 11px;cursor:pointer;-webkit-tap-highlight-color:transparent}
#ai-messages .ai-pc:active{background:#faf9fb}
#ai-messages .ai-pc__img{flex:0 0 54px;width:54px;height:54px;border-radius:10px;object-fit:cover;background:#f4f2f6}
#ai-messages .ai-pc__main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:4px}
#ai-messages .ai-pc__nm{font-size:13.5px;line-height:1.3;color:#1c1a22;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#ai-messages .ai-pc__pr{font-size:14px;font-weight:600;color:#15141a}
#ai-messages .ai-pc__unit{font-weight:400;font-size:12px;color:#9a96a0;margin-left:3px}
#ai-messages .ai-pc__fav{flex:0 0 auto;width:38px;height:38px;border-radius:50%;border:0;background:#f6f4f8;color:#c9c5cf;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
#ai-messages .ai-pc__fav svg{width:20px;height:20px}
#ai-messages .ai-pc__fav.is-active{color:#e87b00}
#ai-messages .ai-pc__fav.is-active svg{fill:#e87b00;stroke:#e87b00}
.dh-ai-mascot{display:block;width:72px;height:72px;border-radius:18px;object-fit:contain}
.dh-ai-greet{font-size:24px;font-weight:500;color:#1c1a22;letter-spacing:-.01em;line-height:1.15}
.dh-ai-plus{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:44px;height:44px;border-radius:50%;border:0;background:#f0f0f2;color:#1c1a22;cursor:pointer;padding:0}
.dh-ai-plus svg{width:22px;height:22px}
.dh-ai-attach-bd{position:fixed;inset:0;z-index:9300;background:rgba(20,16,30,.4);opacity:0;pointer-events:none;transition:opacity .28s}
.dh-ai-attach-bd.open{opacity:1;pointer-events:auto}
.dh-ai-attach{position:absolute;left:0;right:0;bottom:0;z-index:9310;background:#fff;border:0;border-radius:20px 20px 0 0;box-shadow:0 -8px 30px rgba(20,16,30,.18);padding:8px 10px calc(12px + 0px);display:flex;flex-direction:column;gap:2px;transform:translateY(110%);transition:transform .3s cubic-bezier(.32,.72,0,1);will-change:transform;touch-action:pan-y}
.dh-ai-attach[hidden]{display:flex}      /* держим в потоке для анимации; видимость через .open (transform) */
.dh-ai-attach.open{transform:translateY(0)}
.dh-ai-attach__grab{width:38px;height:4px;border-radius:99px;background:#dcdce0;margin:4px auto 8px;flex:0 0 auto}
.dh-ai-hist{position:absolute;top:0;bottom:0;left:0;width:280px;max-width:280px;z-index:9200;background:#fff;box-shadow:6px 0 40px rgba(20,16,30,.2);transform:translate3d(-100%,0,0);will-change:transform;backface-visibility:hidden;transition:transform .3s cubic-bezier(.32,.72,0,1);display:flex;flex-direction:column;gap:8px;padding:calc(10px + 0px) 12px 12px;overscroll-behavior:contain}
.dh-ai-hist[hidden]{display:flex}      /* держим в потоке для анимации; видимость через .open */
.dh-ai-hist.open{transform:translate3d(0,0,0)}
.dh-ai-hist__new{display:flex;align-items:center;gap:8px;border:1px solid #ececef;background:#fff;border-radius:13px;padding:11px 14px;font-family:inherit;font-size:14px;font-weight:500;color:#1c1a22;cursor:pointer}
.dh-ai-hist__new svg{width:18px;height:18px;color:#e87b00}
.dh-ai-hist__search{display:flex;align-items:center;gap:8px;background:#f4f4f6;border-radius:12px;padding:9px 12px}
.dh-ai-hist__search svg{width:16px;height:16px;color:#9a9aa1;flex:0 0 auto}
.dh-ai-hist__search input{flex:1;border:0;background:none;outline:none;font-family:inherit;font-size:14px;color:#1c1a22}
.dh-ai-hist__lbl{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#7a7680;margin-top:6px;padding:0 2px}
.dh-ai-hist__list{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;gap:2px}
.dh-ai-hist__it{display:flex;align-items:center;gap:9px;padding:11px 10px;border-radius:11px;font-size:14px;color:#1c1a22;cursor:pointer;background:none;border:0;font-family:inherit;text-align:left;width:100%}
.dh-ai-hist__it:active{background:#f4f4f6}
.dh-ai-hist__it svg{width:16px;height:16px;color:#9a9aa1;flex:0 0 auto}
.dh-ai-hist__it span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dh-ai-hist__empty{color:#9a9aa1;font-size:13px;padding:10px 2px}
.dh-ai-hist-bd{display:block;position:absolute;inset:0;z-index:9150;background:rgba(20,16,30,.4);opacity:0;pointer-events:none;transition:opacity .3s}   /* DEV1-MOB-AI-PAGE-V1 fix: display:block перебивает десктоп-нейтрализатор → затемнение есть (иначе белая шторка на белом = «не открылась») */
.dh-ai-hist-bd.open{opacity:1;pointer-events:auto}
.dh-ai-hist__top{display:flex;align-items:center;gap:8px;margin-bottom:2px}
.dh-ai-hist__title{flex:1;font-size:17px;font-weight:600;color:#1c1a22}
.dh-ai-hist__act{width:36px;height:36px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;border:0;background:none;color:#7a7680;cursor:pointer;border-radius:10px;padding:0}
.dh-ai-hist__act:active{background:#f0f0f2}
.dh-ai-hist__act svg{width:20px;height:20px}
}


/* ═══ DEV1-CHAT-X-UNIFY-V1: ЕДИНЫЙ крестик .otc-x ВЕЗДЕ (чат/ИИ/шторки/auth/история/лайтбокс):
   40×40 (тап-норма), radius 12, один фон/ховер, штрих 2.2. Классы-старожилы держат только позицию. ═══ */
.otc-x{ width:40px !important; height:40px !important; min-width:40px; border-radius:12px !important;
  border:0 !important; background:#f5f5f7 !important; color:#1c1a22 !important; display:flex; align-items:center;
  justify-content:center; cursor:pointer; padding:0 !important; flex:0 0 auto; -webkit-tap-highlight-color:transparent; }
.otc-x:hover{ background:#ececef !important; }
.otc-x:active{ background:#e4e4e8 !important; }
.otc-x svg{ width:19px !important; height:19px !important; }

/* ═══ DEV1-AI-WELCOME-V1 (мокап PM 1:1, моб И десктоп — один код): чёрный круг-мишка 64 → приветствие 19/500 →
   подстрока с ЖИВЫМ счётчиком → чипы 2×3 (оранж-иконки, r12, тап ≥40) → подсказка-пример. ═══ */
.dh-ai-starter{gap:10px !important}
.dh-ai-mascot{width:64px !important;height:64px !important;border-radius:50% !important;background:#0b0b0d;object-fit:cover;padding:0}
.dh-ai-greet{font-size:19px !important;font-weight:500 !important}
.dh-ai-sub{font-size:12.5px;color:#8a8792;max-width:300px;line-height:1.45}
.dh-ai-qr{display:grid !important;grid-template-columns:repeat(2,1fr);gap:8px;max-width:340px;width:100%;margin-top:6px}
.dh-ai-qr__btn{display:flex;align-items:center;gap:8px;min-height:40px;border-radius:12px !important;border:1px solid #ececef;background:#fff;padding:8px 12px;font-size:12.5px;color:#1c1a22;cursor:pointer;text-align:left}
.dh-ai-qr__btn svg{width:16px;height:16px;flex:0 0 auto;color:#e87b00;stroke:#e87b00}
.dh-ai-example{font-size:11px;color:#a5a1ab;margin-top:4px;max-width:320px}
/* AI-DESKTOP-FINAL-V2 п.1 (P0): размеры иконок ЖЁСТКО на svg ГЛОБАЛЬНО — никакой скоуп больше не потеряет
   (на десктопе svg без размера раздувался до 750×750). Обе версии, все элементы шторок ИИ. */
.dh-ai-att svg{ width:26px !important; height:26px !important; flex:0 0 26px; }
.dh-ai-att{ display:flex; align-items:center; gap:12px; }
.dh-ai-hist__act svg, .dh-ai-hist__it svg{ width:18px !important; height:18px !important; flex:0 0 18px; }
/* AI-DESKTOP-FINAL-V2 п.2: шрифт поля капсулы на ДЕСКТОПЕ 17px (моб не тронут — там свой 16px анти-зум закон) */
@media (min-width:761px){
  #h-ai-drawer .dh-ai-input-row #ai-input{ font-size:17px !important; }
  #h-ai-drawer .dh-ai-input-row #ai-input::placeholder{ font-size:17px; }
}
/* AI-DESKTOP-FINAL-V1 п.2: строки ломаются ровно, без слов-сирот (balance), центр */
.dh-ai-sub,.dh-ai-example{text-wrap:balance;max-width:340px;margin-left:auto;margin-right:auto}
/* AI-DESKTOP-FINAL-V1 п.3: капсула ввода ДЕСКТОПА = моб-эталон 1:1 (единая карточка r22, поле сверху,
   ряд [+ … 🎤] внутри; кнопки моб-размеров, по центру вертикали, ничего не вылезает) */
@media (min-width:761px){
  #h-ai-drawer .dh-ai-input-row{ margin:8px 14px 14px !important; border-radius:22px !important; border:1px solid #ececef !important; background:#fff !important; box-shadow:0 2px 14px rgba(20,16,30,.06) !important; padding:14px 16px 12px !important; }
  #h-ai-drawer .dh-ai-input-row #ai-input{ margin:0 0 10px !important; border:0 !important; outline:none !important; background:transparent !important; box-shadow:none !important; }   /* поле НЕВИДИМОЕ внутри капсулы (как моб) — без своей рамки и фокус-подчерка */
  #h-ai-drawer .dh-ai-input-btns{ display:flex; align-items:center; justify-content:space-between; width:100%; }
  #h-ai-drawer .ai-inbar__plus{ font-size:29px !important; line-height:1; color:#444746; background:none !important; border:0 !important; width:auto !important; height:auto !important; border-radius:0 !important; padding:0 2px !important; box-shadow:none !important; cursor:pointer; }
  #h-ai-drawer .ai-inbar__plus svg{ display:none !important; }
  #h-ai-drawer .ai-inbar__right{ margin-left:auto; display:flex; align-items:center; gap:16px; }
  #h-ai-drawer .ai-inbar__send{ width:36px !important; height:36px !important; border-radius:50% !important; background:#f1f3f4 !important; display:flex; align-items:center; justify-content:center; border:0 !important; padding:0 !important; box-shadow:none !important; cursor:pointer; }
  #h-ai-drawer .ai-inbar__send svg{ width:20px; height:20px; color:#9aa0a6; }
  #h-ai-drawer .ai-inbar__send.has-text{ background:#e87b00 !important; }
  #h-ai-drawer .ai-inbar__send.has-text svg{ color:#fff; }
}
/* AI-WELCOME-V1B (возврат Бека): композиция ЦЕНТРОМ окна — и по горизонтали, И по вертикали; моб и десктоп. */
.dh-ai-qr{margin-left:auto !important;margin-right:auto !important}
@media (min-width:761px){
  .dh-ai-greet{display:block !important}                    /* был убит старым display:none (line 105) — заголовок вернулся */
  .dh-ai-sub,.dh-ai-example{display:block !important}
  /* FEED-WIDTH-V1: display БЕЗ important — JS-скрытие welcome (style.display=none при старте диалога) обязано побеждать */
  .dh-ai-starter{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;flex:1 1 auto;min-height:0;overflow-y:auto;padding:24px}
  /* FEED-WIDTH-V1: лента ответа = ВСЯ ширина окна, фон окна (не белая полоска-вкладыш), скролл внутри */
  #h-ai-drawer .h-ai-msg.ai-cards-in{ max-width:100% !important; width:100%; }   /* карточная сетка НЕ зажата шириной пузыря бота → 3 колонки */
  #h-ai-drawer .dh-ai-messages{ flex:1 1 auto !important; min-height:0 !important; width:auto !important; max-width:none !important; background:transparent !important; overflow-y:auto; padding:12px 18px !important; margin:0 !important; border:0 !important; box-shadow:none !important; border-radius:0 !important; }
}

/* ═══ DEV1-TABLET-TOUCH-POLISH-V1: тач-эргономика планшетов — ТОЛЬКО @media(pointer:coarse),
   мышиный десктоп не меняется ни пикселем. Тап-зоны ≥40 рендер-зоной (::after), визуал не раздут. ═══ */
@media (pointer:coarse){
  .otc-lang-trigger{ position:relative; }
  .otc-lang-trigger::after{ content:""; position:absolute; left:-6px; right:-6px; top:-11px; bottom:-11px; }   /* h19 → ≥41 */
  #otc-ht-mini{ position:relative; }
  #otc-ht-mini::after{ content:""; position:absolute; inset:-8px; }                                            /* «?» до ≥40 */
  .cat-filt .chip{ min-height:40px; align-items:center; }
  .cat-filt label, #hp-filters label{ min-height:40px; display:inline-flex; align-items:center; }
  .otc-product-card [data-fav], .hp-prow [data-fav]{ position:relative; }
  .otc-product-card [data-fav]::after, .hp-prow [data-fav]::after{ content:""; position:absolute; inset:-8px; } /* ♡ до ≥40 */
}

/* ═══ DEV1-AI-PLUS-HISTORY-DESIGN-V1: «+»-меню по мокапу (обе версии — один код строк):
   строка-кнопка = оранжевый квадрат-иконка 40×40 + название 14.5 + серая подпись. Десктоп — компактный
   попап НАД «+»; моб — та же начинка в прежней шторке. Шрифты истории тем же ритмом. ═══ */
.dh-ai-att{ display:flex !important; align-items:center; gap:12px; width:100%; border:0; background:none; padding:9px 10px; border-radius:12px; cursor:pointer; text-align:left; }
.dh-ai-att:hover{ background:#faf7f2; }
.dh-ai-att__ic{ width:40px; height:40px; flex:0 0 40px; border-radius:12px; background:#fff3e0; display:flex; align-items:center; justify-content:center; }
.dh-ai-att__ic svg{ width:22px !important; height:22px !important; stroke:#e87b00; color:#e87b00; }
.dh-ai-att__tx{ display:flex; flex-direction:column; gap:1px; min-width:0; }
.dh-ai-att__tx b{ font-size:14.5px; font-weight:600; color:#1c1a22; line-height:1.25; }
.dh-ai-att__tx small{ font-size:12px; color:#8a8792; line-height:1.3; }
/* AI-HISTORY-ROWS-POLISH-V1: строки Истории — та же семья, что «+»-меню (иконка СЕРАЯ, оранж только у действий) */
.dh-ai-hist__it{ display:flex !important; align-items:center; gap:10px; width:100%; border:0; background:none; padding:7px 8px; border-radius:12px; cursor:pointer; text-align:left; }
.dh-ai-hist__it:hover{ background:#f6f4f8; }
.dh-ai-hist__it .hi-ic{ width:36px; height:36px; flex:0 0 36px; border-radius:10px; background:#f5f5f7; display:flex; align-items:center; justify-content:center; }
.dh-ai-hist__it .hi-ic svg{ width:18px !important; height:18px !important; color:#8a8792; stroke:#8a8792; }
.dh-ai-hist__it .hi-tx{ flex:1 1 auto; min-width:0; font-size:14.5px; color:#1c1a22; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dh-ai-hist__it .hi-tm{ flex:0 0 auto; font-size:11.5px; color:#a5a1ab; }
.dh-ai-hist__it .hi-del{ flex:0 0 auto; width:28px; height:28px; border-radius:8px; display:none; align-items:center; justify-content:center; color:#a5a1ab; }
.dh-ai-hist__it .hi-del svg{ width:15px !important; height:15px !important; }
.dh-ai-hist__it:hover .hi-del{ display:flex; }
.dh-ai-hist__it .hi-del:hover{ background:#eeecf1; color:#d33; }
.hi-sec{ font-size:11px; font-weight:600; letter-spacing:.04em; color:#a5a1ab; padding:10px 8px 4px; }
@media (min-width:761px){
  .dh-ai-attach{ position:absolute !important; left:16px !important; right:auto !important; bottom:84px !important; top:auto !important;
    width:330px; border-radius:16px !important; box-shadow:0 12px 40px rgba(20,16,30,.22) !important; padding:8px !important;
    transform:translateY(8px) !important; opacity:0; pointer-events:none; transition:transform .22s cubic-bezier(.22,1,.36,1), opacity .18s !important; }
  .dh-ai-attach.open{ transform:translateY(0) !important; opacity:1; pointer-events:auto; }
  .dh-ai-attach__grab{ display:none; }
}

/* ═══ DEV1-TABBAR-IOS-FEEL-V1: нативный отклик таб-бара (только transform/opacity, композитор) ═══ */
@media (max-width:760px){
  .otc-tabbar{ touch-action:manipulation; }                                     /* страховка от dbl-tap-zoom задержки */
  .otc-tabbar .otc-tb, .otc-tabbar a, .otc-tabbar [data-tab-action]{ min-height:48px; transition:transform .34s cubic-bezier(.34,1.56,.64,1), background .18s; border-radius:14px; -webkit-tap-highlight-color:transparent; }
  .otc-tabbar .tb-down{ transform:scale(.9); background:rgba(232,123,0,.10); transition:transform .06s ease-out, background .06s; }   /* просадка <50мс; отпуск — пружина выше */
  /* кнопки ШАПКИ — тот же отклик (translateZ сохраняет HUAWEI-слой) */
  .dh-acts .dh-icon-btn, .otc-lang-trigger, #dh-cats-trig, .dh-mm{ transition:transform .34s cubic-bezier(.34,1.56,.64,1), background .18s; }
  .dh-acts .dh-icon-btn.tb-down, .otc-lang-trigger.tb-down, #dh-cats-trig.tb-down{ transform:scale(.9); background:rgba(232,123,0,.14); border-radius:10px; transition:transform .06s ease-out, background .06s; }
  .dh-mm.tb-down{ transform:translateZ(0) scale(.9); transition:transform .06s ease-out; }
  #h-poc .dh-r1, .topbar-strip{ touch-action:manipulation; }
}

/* DEV1-HEADER-BADGES-INSTANT-V1: микро-пульс бейджа как отклик на клик (200мс, только transform) */
@keyframes otc-bdg-pop{0%{transform:scale(1)}45%{transform:scale(1.3)}100%{transform:scale(1)}}
.bdg-pop{animation:otc-bdg-pop .2s ease-out}
