/* DREX CLEAN · 04.12.2026
   Единый спокойный стиль элементов управления поверх всех слоёв.
   Плоские кнопки с тонкой рамкой, выбор — цветом темы без свечения, главное действие — сплошным цветом.
   Цвета берутся из выбранной палитры, поэтому работают все темы. */
:root{
 --cl-acc:var(--brand,var(--dk-a,#3d8bff));
 --cl-on:var(--on-brand,#fff);
 --cl-s0:color-mix(in srgb,var(--ink) 4.5%,transparent);
 --cl-s1:color-mix(in srgb,var(--ink) 8%,transparent);
 --cl-s2:color-mix(in srgb,var(--ink) 12%,transparent);
 --cl-b0:color-mix(in srgb,var(--ink) 12%,transparent);
 --cl-b1:color-mix(in srgb,var(--ink) 22%,transparent);
 --cl-sel:color-mix(in srgb,var(--cl-acc) 16%,transparent);
 --cl-selb:color-mix(in srgb,var(--cl-acc) 60%,transparent);
 --cl-r:8px;
}

/* ---------- кнопки: обычное состояние ---------- */
html[data-drex-theme] body .pxtab,
html[data-drex-theme] body .chlink,
html[data-drex-theme] body .dxchip,
html[data-drex-theme] body .dxp-chips button,
html[data-drex-theme] body .dxp-more,
html[data-drex-theme] body .eco-indicator button,
html[data-drex-theme] body .eco-calendar button,
html[data-drex-theme] body .eco-fear button,
html[data-drex-theme] body .dxp-hero-act button,
html[data-drex-theme] body .dx-wl-top button,
html[data-drex-theme] body .pxmodes button,
html[data-drex-theme] body .lc-ab,
html[data-drex-theme] body .lc-tfbtn,
html[data-drex-theme] body .lc-tf button,
html[data-drex-theme] body .lf-chip,
html[data-drex-theme] body .cp-btn,
html[data-drex-theme] body .lq-b,
html[data-drex-theme] body .lq-symbtn,
html[data-drex-theme] body .dxp-heat button,
html[data-drex-theme] body .eco-presets button,
html[data-drex-theme] body .btn,
html[data-drex-theme] body .cb-btn,
html[data-drex-theme] body .tm-tool,
html[data-drex-theme] body .tm-ind,
html[data-drex-theme] body .tm-vbtn,
html[data-drex-theme] body .nfc-tgl,
html[data-drex-theme] body .eco-quick button,
html[data-drex-theme] body .eco-link-row button,
html[data-drex-theme] body .eco-bottom-bar button,
html[data-drex-theme] body .eco-edit-btn,
html[data-drex-theme] body .tourbtn,
html[data-drex-theme] body #dxk-btn,
html[data-drex-theme] body .dk-pal-btn,
html[data-drex-theme] body #bell,
html[data-drex-theme] body .lc-themebtn,
html[data-drex-theme] body .lc-tools button,
html[data-drex-theme] body .dx-ibtn,
html[data-drex-theme] body .dk-pop-more,
html[data-drex-theme] body .dxcb-btn,
html[data-drex-theme] body .dpb-code,
html[data-drex-theme] body .lc-thresetall,
html[data-drex-theme] body .tm-sym{
 background:var(--cl-s0)!important;background-image:none!important;
 border:1px solid var(--cl-b0)!important;color:var(--ink)!important;
 box-shadow:none!important;text-shadow:none!important;
 -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
 border-radius:var(--cl-r)!important;transform:none!important;animation:none!important;filter:none!important;
 font-weight:500!important;letter-spacing:0!important;
 transition:background-color .15s ease,border-color .15s ease,color .15s ease!important}
html[data-drex-theme] body .pxtab:hover,
html[data-drex-theme] body .chlink:hover,
html[data-drex-theme] body .dxchip:hover,
html[data-drex-theme] body .dxp-chips button:hover,
html[data-drex-theme] body .dxp-more:hover,
html[data-drex-theme] body .eco-indicator button:hover,
html[data-drex-theme] body .eco-calendar button:hover,
html[data-drex-theme] body .eco-fear button:hover,
html[data-drex-theme] body .dxp-hero-act button:hover,
html[data-drex-theme] body .dx-wl-top button:hover,
html[data-drex-theme] body .pxmodes button:hover,
html[data-drex-theme] body .lc-ab:hover,
html[data-drex-theme] body .lc-tfbtn:hover,
html[data-drex-theme] body .lc-tf button:hover,
html[data-drex-theme] body .lf-chip:hover,
html[data-drex-theme] body .cp-btn:hover,
html[data-drex-theme] body .lq-b:hover,
html[data-drex-theme] body .lq-symbtn:hover,
html[data-drex-theme] body .dxp-heat button:hover,
html[data-drex-theme] body .eco-presets button:hover,
html[data-drex-theme] body .btn:hover,
html[data-drex-theme] body .cb-btn:hover,
html[data-drex-theme] body .tm-tool:hover,
html[data-drex-theme] body .tm-ind:hover,
html[data-drex-theme] body .tm-vbtn:hover,
html[data-drex-theme] body .nfc-tgl:hover,
html[data-drex-theme] body .eco-quick button:hover,
html[data-drex-theme] body .eco-link-row button:hover,
html[data-drex-theme] body .eco-bottom-bar button:hover,
html[data-drex-theme] body .eco-edit-btn:hover,
html[data-drex-theme] body .tourbtn:hover,
html[data-drex-theme] body #dxk-btn:hover,
html[data-drex-theme] body .dk-pal-btn:hover,
html[data-drex-theme] body #bell:hover,
html[data-drex-theme] body .lc-themebtn:hover,
html[data-drex-theme] body .lc-tools button:hover,
html[data-drex-theme] body .dx-ibtn:hover,
html[data-drex-theme] body .dk-pop-more:hover,
html[data-drex-theme] body .dxcb-btn:hover,
html[data-drex-theme] body .dpb-code:hover,
html[data-drex-theme] body .lc-thresetall:hover,
html[data-drex-theme] body .tm-sym:hover{background:var(--cl-s1)!important;border-color:var(--cl-b1)!important;box-shadow:none!important;transform:none!important}
html[data-drex-theme] body .pxtab:active,
html[data-drex-theme] body .chlink:active,
html[data-drex-theme] body .dxchip:active,
html[data-drex-theme] body .dxp-chips button:active,
html[data-drex-theme] body .dxp-more:active,
html[data-drex-theme] body .eco-indicator button:active,
html[data-drex-theme] body .eco-calendar button:active,
html[data-drex-theme] body .eco-fear button:active,
html[data-drex-theme] body .dxp-hero-act button:active,
html[data-drex-theme] body .dx-wl-top button:active,
html[data-drex-theme] body .pxmodes button:active,
html[data-drex-theme] body .lc-ab:active,
html[data-drex-theme] body .lc-tfbtn:active,
html[data-drex-theme] body .lc-tf button:active,
html[data-drex-theme] body .lf-chip:active,
html[data-drex-theme] body .cp-btn:active,
html[data-drex-theme] body .lq-b:active,
html[data-drex-theme] body .lq-symbtn:active,
html[data-drex-theme] body .dxp-heat button:active,
html[data-drex-theme] body .eco-presets button:active,
html[data-drex-theme] body .btn:active,
html[data-drex-theme] body .cb-btn:active,
html[data-drex-theme] body .tm-tool:active,
html[data-drex-theme] body .tm-ind:active,
html[data-drex-theme] body .tm-vbtn:active,
html[data-drex-theme] body .nfc-tgl:active,
html[data-drex-theme] body .eco-quick button:active,
html[data-drex-theme] body .eco-link-row button:active,
html[data-drex-theme] body .eco-bottom-bar button:active,
html[data-drex-theme] body .eco-edit-btn:active,
html[data-drex-theme] body .tourbtn:active,
html[data-drex-theme] body #dxk-btn:active,
html[data-drex-theme] body .dk-pal-btn:active,
html[data-drex-theme] body #bell:active,
html[data-drex-theme] body .lc-themebtn:active,
html[data-drex-theme] body .lc-tools button:active,
html[data-drex-theme] body .dx-ibtn:active,
html[data-drex-theme] body .dk-pop-more:active,
html[data-drex-theme] body .dxcb-btn:active,
html[data-drex-theme] body .dpb-code:active,
html[data-drex-theme] body .lc-thresetall:active,
html[data-drex-theme] body .tm-sym:active{background:var(--cl-s2)!important;transform:none!important}

/* ---------- выбранное состояние ---------- */
html[data-drex-theme] body .pxtab.on,
html[data-drex-theme] body .chlink.on,
html[data-drex-theme] body .dxchip.on,
html[data-drex-theme] body .dxp-chips button.on,
html[data-drex-theme] body .dxp-more.on,
html[data-drex-theme] body .eco-indicator button.on,
html[data-drex-theme] body .eco-calendar button.on,
html[data-drex-theme] body .eco-fear button.on,
html[data-drex-theme] body .dxp-hero-act button.on,
html[data-drex-theme] body .dx-wl-top button.on,
html[data-drex-theme] body .pxmodes button.on,
html[data-drex-theme] body .lc-ab.on,
html[data-drex-theme] body .lc-tfbtn.on,
html[data-drex-theme] body .lc-tf button.on,
html[data-drex-theme] body .lf-chip.on,
html[data-drex-theme] body .cp-btn.on,
html[data-drex-theme] body .lq-b.on,
html[data-drex-theme] body .lq-symbtn.on,
html[data-drex-theme] body .dxp-heat button.on,
html[data-drex-theme] body .eco-presets button.on,
html[data-drex-theme] body .btn.on,
html[data-drex-theme] body .cb-btn.on,
html[data-drex-theme] body .tm-tool.on,
html[data-drex-theme] body .tm-ind.on,
html[data-drex-theme] body .tm-vbtn.on,
html[data-drex-theme] body .nfc-tgl.on,
html[data-drex-theme] body .eco-quick button.on,
html[data-drex-theme] body .eco-link-row button.on,
html[data-drex-theme] body .eco-bottom-bar button.on,
html[data-drex-theme] body .eco-edit-btn.on,
html[data-drex-theme] body .tourbtn.on,
html[data-drex-theme] body #dxk-btn.on,
html[data-drex-theme] body .dk-pal-btn.on,
html[data-drex-theme] body #bell.on,
html[data-drex-theme] body .lc-themebtn.on,
html[data-drex-theme] body .lc-tools button.on,
html[data-drex-theme] body .dx-ibtn.on,
html[data-drex-theme] body .dk-pop-more.on,
html[data-drex-theme] body .dxcb-btn.on,
html[data-drex-theme] body .dpb-code.on,
html[data-drex-theme] body .lc-thresetall.on,
html[data-drex-theme] body .tm-sym.on,
html[data-drex-theme] body .dxcb-it.on,
html[data-drex-theme] body .lc-thsw.on,
html[data-drex-theme] body .tm-ind.tm-dm.on{
 background:var(--cl-sel)!important;background-image:none!important;
 border-color:var(--cl-selb)!important;color:var(--ink)!important;
 box-shadow:none!important;animation:none!important;filter:none!important}
html[data-drex-theme] body .tm-ind.tm-dm.on{background:color-mix(in srgb,#ffc35c 14%,transparent)!important;border-color:color-mix(in srgb,#ffc35c 55%,transparent)!important}

/* ---------- главное действие ---------- */
html[data-drex-theme] body .dxp-hero-act .pri,
html[data-drex-theme] body .cb-btn:not(.ghost),
html[data-drex-theme] body #auth .btn,
html[data-drex-theme] body #auth button[type="submit"],
html[data-drex-theme] body .tact .go,
html[data-drex-theme] body #csvb{
 background:var(--cl-acc)!important;background-image:none!important;color:var(--cl-on)!important;
 border:1px solid transparent!important;box-shadow:none!important;text-shadow:none!important;
 border-radius:var(--cl-r)!important;animation:none!important;transform:none!important;font-weight:600!important;letter-spacing:0!important}
html[data-drex-theme] body .dxp-hero-act .pri:hover,
html[data-drex-theme] body .cb-btn:not(.ghost):hover,
html[data-drex-theme] body #auth .btn:hover,
html[data-drex-theme] body #auth button[type="submit"]:hover,
html[data-drex-theme] body .tact .go:hover,
html[data-drex-theme] body #csvb:hover{filter:brightness(1.08)!important;box-shadow:none!important;transform:none!important}

/* ---------- переключатели-сегменты ---------- */
html[data-drex-theme] body .eco-workspace-actions{background:var(--cl-s0)!important;border:1px solid var(--cl-b0)!important;border-radius:10px!important;padding:3px!important;gap:2px!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html[data-drex-theme] body .eco-workspace-actions button{background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;border-radius:7px!important;color:var(--mut)!important;font-weight:500!important;animation:none!important;transform:none!important}
html[data-drex-theme] body .eco-workspace-actions button:hover{color:var(--ink)!important;background:var(--cl-s1)!important}
html[data-drex-theme] body .eco-workspace-actions button.on{background:var(--cl-s2)!important;color:var(--ink)!important}

/* ---------- фильтр важности в календаре ---------- */
html[data-drex-theme] body .ch .ip{background:transparent!important;color:var(--mut)!important;display:inline-flex!important;align-items:center!important;gap:7px!important}
html[data-drex-theme] body .ch .ip.on{background:var(--cl-s1)!important;border-color:var(--cl-b1)!important;color:var(--ink)!important}
html[data-drex-theme] body .ch .ip.H{--lv:#f0506e}html[data-drex-theme] body .ch .ip.M{--lv:#f5a524}html[data-drex-theme] body .ch .ip.L{--lv:#8b96a8}
html[data-drex-theme] body .ch .ip i{display:inline-grid!important;place-items:center!important;width:14px!important;height:14px!important;margin:0!important;border-radius:4px!important;border:1.5px solid var(--lv)!important;background:transparent!important;box-shadow:none!important;flex:none}
html[data-drex-theme] body .ch .ip.on i{background:var(--lv)!important}
html[data-drex-theme] body .ch .ip i svg{width:10px!important;height:10px!important;fill:none!important;stroke:#0b0d12!important;stroke-width:2.6!important;opacity:0}
html[data-drex-theme] body .ch .ip.on i svg{opacity:1}

/* ---------- метки без «кнопочного» вида ---------- */
html[data-drex-theme] body .tag{background:transparent!important;background-image:none!important;box-shadow:none!important;border:1px solid var(--cl-b0)!important;border-radius:6px!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;animation:none!important}

/* ---------- текст без градиента ---------- */
html[data-drex-theme] body #auth .aform h1,
html[data-drex-theme] body #auth .ah1 em,
html[data-drex-theme] body #eco-studio .eco-studio-head h2,
html[data-drex-theme] body #socm .sh b,
html[data-drex-theme] body #ttl,
html[data-drex-theme] body .dxp-hpc b,
html[data-drex-theme] body .eco-hero-identity h1,
html[data-drex-theme] body .eco-workspace-head h2,
html[data-drex-theme] body .hero h1,
html[data-drex-theme] body .hero h1 em,
html[data-drex-theme] body aside .brand b,
html[data-drex-theme] body aside .cpr b{background:none!important;-webkit-background-clip:border-box!important;background-clip:border-box!important;-webkit-text-fill-color:currentColor!important;color:var(--ink)!important;animation:none!important;text-shadow:none!important}
html[data-drex-theme] body aside .brand b{color:var(--ink)!important}

/* ---------- заголовки: без лишнего капса и разрядки ---------- */
html[data-drex-theme] body .eco-workspace-head .eco-overline{display:none!important}
html[data-drex-theme] body .eco-workspace-head h2{font-size:clamp(22px,2.2vw,28px)!important;font-weight:700!important;letter-spacing:-.02em!important;line-height:1.15!important;margin:0 0 4px!important}
html[data-drex-theme] body .eco-workspace-head p{font-size:13.5px!important;color:var(--mut)!important}
html[data-drex-theme] body .eco-chrome-label{text-transform:none!important;letter-spacing:0!important;font-size:13.5px!important;font-weight:600!important;color:var(--ink)!important}
html[data-drex-theme] body .eco-big-label{text-transform:none!important;letter-spacing:0!important;font-size:12.5px!important;font-weight:500!important;color:var(--mut)!important}
html[data-drex-theme] body .eco-bottom-bar>span:first-child{text-transform:none!important;letter-spacing:0!important}
html[data-drex-theme] body .eco-ci{background:none!important;border:0!important;box-shadow:none!important;color:var(--mut)!important;width:auto!important;height:auto!important;padding:0!important}
html[data-drex-theme] body .k,html[data-drex-theme] body th,html[data-drex-theme] body .dx-eyebrow,html[data-drex-theme] body .dxp-sec,html[data-drex-theme] body .fxh,html[data-drex-theme] body .lvh{letter-spacing:.04em!important}
html[data-drex-theme] body #tabs button.gh,html[data-drex-theme] body #tabs button.gh .gl{text-transform:none!important;letter-spacing:0!important;font-size:14px!important;font-weight:600!important}
html[data-drex-theme] body #tabs button.gh{color:var(--mut)!important}
html[data-drex-theme] body #tabs button.gh.op,html[data-drex-theme] body #tabs button.gh:hover{color:var(--ink)!important}
html[data-drex-theme] body #tabs .gl>svg{background:none!important;border:0!important;box-shadow:none!important}

/* ---------- боковое меню: активный пункт без свечения ---------- */
html[data-drex-theme] body #tabs button.primary.on,html[data-drex-theme] body #tabs button.sub.on{background:var(--cl-s1)!important;background-image:none!important;box-shadow:inset 2px 0 0 var(--cl-acc)!important;border-color:transparent!important;color:var(--ink)!important}
html[data-drex-theme] body #tabs button.primary:not(.on):hover,html[data-drex-theme] body #tabs button.sub:not(.on):hover{background:var(--cl-s0)!important;box-shadow:none!important}

/* ---------- значки и иконки без ореола ---------- */
html[data-drex-theme] body .dxp-ic,html[data-drex-theme] body .dk-orb{box-shadow:none!important;filter:none!important}
html[data-drex-theme] body  :focus-visible{outline:2px solid var(--cl-acc)!important;outline-offset:2px!important}

/* ---------- телефон: «Выйти» иконкой, шапка не наезжает ---------- */
@media(max-width:600px){
 html[data-drex-theme] body #lo{font-size:0!important;width:36px!important;min-width:36px!important;height:36px!important;padding:0!important;position:relative!important}
 html[data-drex-theme] body #lo::before{content:"";position:absolute;inset:0;margin:auto;width:17px;height:17px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='M16 17l5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='M16 17l5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E") center/contain no-repeat}
 html[data-drex-theme] body .bellwrap{gap:6px!important}
}
@media(prefers-reduced-motion:reduce){html[data-drex-theme] body *{transition:none!important}}
html[data-drex-theme] body .dx-eyebrow,html[data-drex-theme] body #auth .asignature{display:none!important}

/* ---------- ряды-переключатели (.ch): один блок, кнопки внутри без рамок ---------- */
html[data-drex-theme] body .ch{background:var(--cl-s0)!important;border:1px solid var(--cl-b0)!important;border-radius:10px!important;padding:3px!important;gap:2px!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html[data-drex-theme] body .ch>button{background:transparent!important;background-image:none!important;border:1px solid transparent!important;box-shadow:none!important;border-radius:7px!important;color:var(--mut)!important;font-weight:500!important;animation:none!important;transform:none!important;filter:none!important;letter-spacing:0!important;transition:background-color .15s,color .15s!important}
html[data-drex-theme] body .ch>button:hover{background:var(--cl-s1)!important;color:var(--ink)!important}
html[data-drex-theme] body .ch>button.on{background:var(--cl-sel)!important;color:var(--ink)!important;border-color:transparent!important}
html[data-drex-theme] body .ch>.ip.on{background:var(--cl-s1)!important}
html[data-drex-theme] body .ch .tag{border:0!important;color:var(--ink)!important;font-weight:600!important}
html[data-drex-theme] body .ch select{background-color:transparent!important;border:0!important;box-shadow:none!important}
