/* =========================================================
   СК «Альянс» — без белых фонов v5.1
   Фоны: navy-слои. Текст: белый; золотой — фирменные акценты.
   v5.0: процесс/оплачено/аванс; сворачивание этапов.
   v5.1: главное меню входа / кабинеты — тёмный фон, читаемый текст.
   ========================================================= */

:root{
  --al-bg0:#0B141C;          /* самый глубокий фон */
  --al-bg1:#152533;          /* основной фон */
  --al-bg2:#1C2E3E;          /* карточки */
  --al-bg3:#243B52;          /* приподнятые панели */
  --al-bg4:#2C4560;          /* hover / вложенные */
  --al-line:rgba(255,255,255,.12);
  --al-line-2:rgba(255,255,255,.18);
  --al-line-soft:rgba(255,255,255,.08);
  --al-text:#FFFFFF;
  --al-text-2:#FFFFFF;
  --al-muted:#FFFFFF;
  --al-gold:#F6BA3E;
  --al-gold-soft:#FBD888;
  --al-btn-h:44px;
  --al-btn-pad:10px 14px;
  --al-btn-fs:13px;
  --al-btn-r:12px;
  --al-ease:cubic-bezier(.22,.9,.28,1);
  --al-spring:cubic-bezier(.34,1.2,.64,1);
  /* переопределяем legacy-токены без #fff фонов; текст — белый */
  --white:var(--al-bg2)!important;
  --paper:var(--al-bg1)!important;
  --paper-2:var(--al-bg2)!important;
  --ink:#FFFFFF!important;
  --muted:#FFFFFF!important;
  --line:var(--al-line)!important;
  --line-2:var(--al-line-2)!important;
}

/* без entrance-анимаций при каждом render — они давали «прыжки» */

/* ========== Базовый текст — белый везде ========== */
html,body,
body,
#app,
#clientShell,
#workerShell,
#partnerShell,
#supplierShell,
#designerShell,
#clientRoot,
#workerRoot,
#partnerMain,
#designerRoot,
#authShell{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}

/* ========== Фоны страниц (не белые) ========== */
html,body{
  background:var(--al-bg0)!important;
}
body,
#app .main,
#clientShell,
#workerShell,
#partnerShell,
#supplierShell,
#designerShell,
#partnerShell .partner-main,
#supplierShell .supplier-main,
#designerShell .designer-main,
#designerShell .design-embed-main,
.partner-app,
.supplier-app,
.login,
.login.login-home{
  /* Ровный navy-фон без радиальных «пятен»-свечений */
  background:linear-gradient(165deg,var(--al-bg0) 0%,var(--al-bg1) 48%,#1A2C3C 100%)!important;
}

/* ========== Сайдбары (ещё глубже фона main) ========== */
#app .sidebar,
.app .sidebar,
.partner-side,
.supplier-side,
.designer-side{
  background:linear-gradient(180deg,#0A1219 0%,#101C28 40%,#152533 100%)!important;
  border-right:1px solid var(--al-line)!important;
  box-shadow:6px 0 28px rgba(0,0,0,.35)!important;
}
#app .sidebar::after,
.app .sidebar::after{display:none!important;content:none!important}
#app .brand{
  background:transparent!important;
  border-bottom:1px solid var(--al-line)!important;
}
#app .brand::after{content:none!important;display:none!important}
#app .brand img,
.home-logo img,
.login .lb img,
#clientRoot .band img,
#workerRoot .band img,
#partnerMain .band img,
#designerRoot .band img,
.psb-logo,
#supplierShell .sup-sess-logo,
.dsb-logo{
  filter:none!important;
  box-shadow:none!important;
}

/* ========== Карточки / панели — слой выше фона ========== */
#app .cards .card,
#app .smeta-sum-cards .card,
#app .card,
#app .progress-wrap,
#app .stage,
#app .adv-card,
#app .rec-item,
#app .fm-mob-card,
#app .workers-db-banner,
#app .proc-box,
#app .worker-block,
#clientRoot .wrap,
#workerRoot .wrap,
#partnerMain .wrap,
#clientRoot .card,
#partnerMain .card,
#workerRoot .w-card,
#clientRoot .prog,
#partnerMain .prog,
#clientRoot .st,
#partnerMain .st,
#clientRoot .team-block,
#clientRoot .team-sec,
.sup-head-card,
.sup-rec-card,
.sup-item,
.modal,
.login .box:not(.entry-home),
.entry-card,
.cdir-card,
.cdir-objs li{
  background:linear-gradient(165deg,var(--al-bg3) 0%,var(--al-bg2) 100%)!important;
  border:1px solid var(--al-line)!important;
  border-top-color:var(--al-line)!important;
  border-left-color:var(--al-line)!important;
  box-shadow:0 6px 20px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.06)!important;
  color:var(--al-text-2)!important;
  animation:none!important;
}

/* Убрать белые псевдо-линии */
#app .cards .card::before,
#app .smeta-sum-cards .card::before,
#app .card::before,
#clientRoot .card::after,
#partnerMain .card::after{
  display:none!important;content:none!important;opacity:0!important;
}

/* Акцент-карточки (итого) — ещё темнее + золотой контур */
#app .card.accent,
#app .cards .card.accent,
#app .smeta-sum-cards .card.accent,
#clientRoot .card.a,
#partnerMain .card.a{
  background:linear-gradient(145deg,#101C28 0%,#1C2E3E 50%,#2A4058 100%)!important;
  border:1px solid rgba(246,186,62,.28)!important;
  box-shadow:0 10px 28px rgba(0,0,0,.35),inset 0 1px 0 rgba(246,186,62,.12)!important;
}
#app .card.accent .lbl,
#app .smeta-sum-cards .card.accent .lbl,
#clientRoot .card.a .l,
#partnerMain .card.a .l{color:var(--al-gold)!important;-webkit-text-fill-color:var(--al-gold)!important}
#app .card.accent .val,
#app .smeta-sum-cards .card.accent .val,
#app #cardTotal,
#app .card .val,
#clientRoot .card .v,
#partnerMain .card .v,
#workerRoot .w-card,
#clientRoot .card.a .v{
  color:var(--al-text)!important;
  -webkit-text-fill-color:var(--al-text)!important;
}

/* Подписи / вторичный текст */
#app .card .lbl,
#app .section-title h3,
#clientRoot .card .l,
#partnerMain .card .l,
#clientRoot h1,
#workerRoot h1,
#app .field-name input,
#app .stage-head input.stage-name,
#app .stage-head .stage-sum,
#app .row-sum{
  color:var(--al-text)!important;
  -webkit-text-fill-color:var(--al-text)!important;
  background:none!important;
}
#app .section-title h3,
#app .obj-head .field-name input{
  background:none!important;
  -webkit-background-clip:unset!important;
  background-clip:unset!important;
}
#app .meta-row label,
#app .fm-mob-lbl,
#clientRoot .sub,
#workerRoot .sub,
.muted,
#app .source-badge{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}

/* Заголовки этапов — чуть светлее карточки */
#app .stage-head,
#clientRoot .st-h,
#partnerMain .st-h,
#app .stage-foot,
#app .proc-head{
  background:linear-gradient(180deg,var(--al-bg4) 0%,var(--al-bg3) 100%)!important;
  border-bottom:1px solid var(--al-line)!important;
  color:var(--al-text)!important;
}
#app .stage{
  border-top:1px solid var(--al-line)!important;
}
#app .stage-head .tri,
#app .section-title .tri{
  filter:none!important;
  animation:none!important;
}

/* Таблицы */
#app table,
#clientRoot table,
#partnerMain table{
  color:var(--al-text-2)!important;
}
#app thead th,
#clientRoot th,
#partnerMain th{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  border-bottom:1px solid var(--al-line)!important;
  background:rgba(0,0,0,.15)!important;
}
#app tbody td,
#clientRoot td,
#partnerMain td{
  border-bottom:1px solid var(--al-line-soft)!important;
  color:var(--al-text-2)!important;
}
#app tbody tr.st-done{background:rgba(59,110,156,.12)!important}
#app tbody tr.st-paid{background:rgba(46,125,91,.12)!important}

/* Инпуты — не белые */
#app input,
#app select,
#app textarea,
#app .cell-in,
#app .cell-sel,
#app .stat-sel,
#app .fm-mob-name,
#app .fm-mob-in,
#app .fm-mob-sel,
#app .meta-row input,
#app .add-stage input,
#app .prog-add input,
.login input,
.modal input,
.modal select,
.modal textarea{
  background:rgba(0,0,0,.28)!important;
  border:1px solid var(--al-line-2)!important;
  color:var(--al-text)!important;
  border-radius:10px!important;
}
#app input::placeholder,
.login input::placeholder,
.modal input::placeholder{
  color:rgba(232,238,244,.45)!important;
}
#app input:focus,
#app select:focus,
#app .cell-in:focus,
.login input:focus,
.modal input:focus{
  border-color:rgba(246,186,62,.55)!important;
  box-shadow:0 0 0 3px rgba(246,186,62,.16)!important;
  background:rgba(0,0,0,.38)!important;
  outline:none!important;
}

/* ========== Кнопки — единый размер, без белого фона ========== */
#app .btn-primary,
#app .btn-outline,
#app .btn-add,
#app .btn-row,
#app .btn-deliver,
#app .btn-ghost-danger,
#app .btn-back-nav,
#app .side-foot-sync,
#app .side-foot-btn,
#app .side-nav-btn,
#app .head-actions .btn-primary,
#app .head-actions .btn-outline,
#app .head-actions .btn-row,
#app .head-actions .btn-deliver,
#clientRoot .btn-cli-pdf,
#clientRoot .btn-cli-excel,
#clientRoot .logout-btn,
#workerRoot .w-card-btn,
#workerRoot .logout-btn,
.psb-logout,
.psb-back,
.dsb-btn,
.btn-dz-add,
#supplierShell .sup-sess-inner .logout-btn,
#supplierShell .sup-sess-back,
.login button.main,
.modal-f .btn-go,
.modal-f .btn-cancel,
.entry-card{
  min-height:var(--al-btn-h)!important;
  padding:var(--al-btn-pad)!important;
  font-size:var(--al-btn-fs)!important;
  border-radius:var(--al-btn-r)!important;
  box-sizing:border-box!important;
  line-height:1.25!important;
}

#app .btn-primary,
.dsb-btn{
  background:linear-gradient(145deg,#152533,#263B50 50%,#2F4862)!important;
  color:#fff!important;
  border:1px solid var(--al-line-2)!important;
  box-shadow:0 4px 14px rgba(0,0,0,.3)!important;
}
#app .btn-outline,
#app .btn-back-nav,
#app .btn-row,
.modal-f .btn-cancel,
#clientRoot .logout-btn,
#workerRoot .logout-btn,
#clientRoot .btn-cli-pdf,
#clientRoot .btn-cli-excel{
  background:rgba(255,255,255,.06)!important;
  color:var(--al-text)!important;
  border:1px solid var(--al-line-2)!important;
  box-shadow:none!important;
}
#app .btn-outline:hover,
#app .btn-back-nav:hover,
#app .btn-row:hover{
  background:rgba(246,186,62,.12)!important;
  border-color:rgba(246,186,62,.45)!important;
  color:#fff!important;
}
#app .btn-add,
#app .side-head .btn-add,
.psb-logout,
.psb-back,
.btn-dz-add,
.login button.main,
.modal-f .btn-go{
  background:linear-gradient(135deg,#E8A82E,var(--al-gold),var(--al-gold-soft))!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  border:1px solid rgba(246,186,62,.5)!important;
  box-shadow:0 4px 14px rgba(246,186,62,.28)!important;
  font-weight:800!important;
}

/* Side nav / foot */
#app .side-nav-btn,
#app .side-foot-sync,
#app .side-foot-btn{
  background:rgba(255,255,255,.06)!important;
  border:1px solid var(--al-line)!important;
  color:#fff!important;
}
#app .side-nav-btn:hover,
#app .side-nav-btn.act,
#app .side-foot-sync:hover,
#app .side-foot-btn:hover{
  background:rgba(246,186,62,.14)!important;
  border-color:rgba(246,186,62,.4)!important;
  color:var(--al-gold)!important;
  -webkit-text-fill-color:var(--al-gold)!important;
}
#app .side-nav-btn:hover .side-nav-arr,
#app .side-nav-btn.act .side-nav-arr{
  color:var(--al-gold)!important;
  -webkit-text-fill-color:var(--al-gold)!important;
}
#app .client-card,
#app .client-list .client-card{
  display:block!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  flex:none!important;
  flex-grow:0!important;
  flex-shrink:0!important;
  background:rgba(255,255,255,.08)!important;
  border:1px solid rgba(255,255,255,.14)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  animation:none!important;
  transform:none!important;
}
#app .client-card:hover{
  background:rgba(255,255,255,.12)!important;
  border-color:rgba(255,255,255,.2)!important;
  transform:translateX(2px)!important;
}
#app .client-card.active{
  background:rgba(246,186,62,.16)!important;
  border-color:rgba(246,186,62,.4)!important;
  box-shadow:0 4px 14px rgba(0,0,0,.25)!important;
}
#app .client-card .cc-name,
#app .client-card .cc-obj,
#app .client-card .cc-total{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
#app .client-card .cc-total b{
  color:var(--al-gold)!important;
  -webkit-text-fill-color:var(--al-gold)!important;
}
#app .client-card .cc-bar{background:rgba(255,255,255,.12)!important}
#app .client-card .cc-bar i{background:var(--al-gold)!important;box-shadow:none!important;filter:none!important;animation:none!important}
#app .client-card.active::before{filter:none!important;animation:none!important}

/* Шапки кабинетов */
#clientRoot .band,
#workerRoot .band,
#partnerMain .band,
#designerRoot .band,
.partner-session,
#supplierShell .sup-sess-inner,
.designer-session,
.login .lb:not(.home-logo){
  background:linear-gradient(135deg,#0F1A24 0%,#1C2E3E 50%,#263B50 100%)!important;
  border-bottom:1px solid rgba(246,186,62,.18)!important;
  color:#fff!important;
}
/* Главное меню: логотип SVG без navy-прямоугольника */
.home-hero{
  background:transparent!important;
  background-image:none!important;
  border-bottom:none!important;
  color:#fff!important;
}
#clientRoot .band::after,
#workerRoot .band::after,
#partnerMain .band::after,
#designerRoot .band::after{display:none!important;content:none!important}
#clientRoot .band .e,
#workerRoot .band .e,
#clientRoot .band .d .e,
#workerRoot .band .d .e,
.psb-kicker,
#supplierShell .sup-sess-kicker{color:var(--al-gold)!important;-webkit-text-fill-color:var(--al-gold)!important}
#clientRoot .band .d,
#workerRoot .band .d,
.psb-title,
#supplierShell .sup-sess-text b{color:#fff!important}

/* Entry / home cards */
.entry-card{
  background:linear-gradient(165deg,var(--al-bg3),var(--al-bg2))!important;
  border:1px solid var(--al-line)!important;
  color:var(--al-text-2)!important;
}
.entry-card-title{color:#fff!important;-webkit-text-fill-color:#fff!important}
.entry-card-desc{color:#FFFFFF!important;-webkit-text-fill-color:#FFFFFF!important}
.entry-card:hover{
  border-color:rgba(246,186,62,.4)!important;
  background:linear-gradient(165deg,#2C4560,#243B52)!important;
}
.login .box:not(.entry-home){
  background:linear-gradient(180deg,var(--al-bg2),var(--al-bg1))!important;
  border:1px solid var(--al-line)!important;
  box-shadow:0 18px 50px rgba(0,0,0,.4)!important;
  backdrop-filter:none!important;
}
/* Главное меню — панель; ширина на ПК 920/980 (см. media в index) */
.login.login-home .box.entry-home{
  width:100%!important;
  background:linear-gradient(180deg,#1C2E3E 0%,#152533 55%,#121E2A 100%)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-bottom:none!important;
  box-shadow:0 18px 40px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.06)!important;
  border-radius:24px!important;
  overflow:hidden!important;
  backdrop-filter:none!important;
  clip-path:none!important;
}
@media (min-width:781px){
  .login.login-home .box.entry-home{max-width:920px!important;border-radius:28px!important}
}
@media (min-width:1100px){
  .login.login-home .box.entry-home{max-width:980px!important}
}
html body #authShell .app-ver.home-menu-ver,
html body #authShell .entry-home .app-ver.home-menu-ver{
  color:rgba(255,255,255,.78)!important;
  -webkit-text-fill-color:rgba(255,255,255,.78)!important;
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
}
/* Старый вырез «П» — полностью выключен */
html body #authShell .home-notch,
html body #authShell .home-notch-frame,
html body #authShell .entry-home-shell::after{
  display:none!important;
  content:none!important;
  background:none!important;
  border:none!important;
  box-shadow:none!important;
}
.login h2,
.entry-cabinets-title{color:#fff!important;-webkit-text-fill-color:#fff!important}
.login p.hint,
.entry-cabinets-hint{color:#FFFFFF!important;-webkit-text-fill-color:#FFFFFF!important}

/* Модалки */
.modal-overlay{
  background:rgba(5,10,16,.72)!important;
  backdrop-filter:blur(8px)!important;
}
.modal{
  background:linear-gradient(180deg,var(--al-bg3),var(--al-bg2))!important;
  color:var(--al-text-2)!important;
}
.modal-h,
.modal-f{
  border-color:var(--al-line)!important;
  background:rgba(0,0,0,.15)!important;
}
.modal-h h3{color:#fff!important}
.toast{
  background:linear-gradient(135deg,#101C28,#243B52)!important;
  color:#fff!important;
  border:1px solid rgba(246,186,62,.25)!important;
}

/* Статусы — фон цветной, буквы белые */
#app .stat-plan{background:rgba(255,255,255,.08)!important;color:#FFFFFF!important;border-color:var(--al-line)!important}
#app .stat-done{background:rgba(59,110,156,.22)!important;color:#FFFFFF!important;border-color:rgba(59,110,156,.4)!important}
#app .stat-paid{background:rgba(46,125,91,.22)!important;color:#FFFFFF!important;border-color:rgba(46,125,91,.4)!important}
#clientRoot .p-plan,#partnerMain .p-plan{background:rgba(255,255,255,.08)!important;color:#FFFFFF!important}
#clientRoot .p-done,#partnerMain .p-done{background:rgba(59,110,156,.22)!important;color:#FFFFFF!important}
#clientRoot .p-paid,#partnerMain .p-paid{background:rgba(46,125,91,.22)!important;color:#FFFFFF!important}

/* Source badge / empty */
#app .source-badge,
#app .adv-empty,
#app .empty-side,
#app .welcome,
#app .welcome h2,
#app .welcome p{
  color:var(--al-text-2)!important;
}
#app .source-badge{
  background:rgba(0,0,0,.25)!important;
  border:1px solid var(--al-line)!important;
}
#app .welcome h2{color:#fff!important}
#app .bar{background:rgba(0,0,0,.35)!important}
#app .fill.done{background:linear-gradient(90deg,#2E5A82,#3B6E9C)!important}
#app .fill.paid{background:linear-gradient(90deg,#1F6B4A,#2E7D5B)!important}
#app .bar i::after,
#app .bar .fill::after{display:none!important}

/* Партнёр / поставщик / дизайнер */
.po-card,
.sup-obj-card,
.dz-card{
  background:rgba(255,255,255,.05)!important;
  border:1px solid var(--al-line)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
.po-card.active,
.sup-obj-card.active,
.dz-card.active{
  background:rgba(246,186,62,.14)!important;
  border-color:rgba(246,186,62,.4)!important;
}
.designer-session{
  background:var(--al-bg2)!important;
  border-bottom:1px solid var(--al-line)!important;
  color:#fff!important;
}
.dsb-role{color:#fff!important}

/* Скроллбар */
#app .main::-webkit-scrollbar-thumb,
#app .client-list::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,rgba(246,186,62,.4),rgba(59,110,156,.35))!important;
  border-radius:99px!important;
}

/* Телефон: список «Клиенты и объекты» — максимум высоты */
@media (max-width:780px){
  .app.mode-pick .sidebar{
    display:flex!important;
    flex-direction:column!important;
    height:100dvh!important;
    overflow:hidden!important;
  }
  .app.mode-pick .brand{padding:6px 12px 4px!important;flex:none!important}
  .app.mode-pick .brand img{max-height:36px!important}
  .app.mode-pick .foreman-session{flex:none!important;padding:2px 10px 4px!important}
  .app.mode-pick .side-top-nav{flex:none!important;padding:4px 10px 6px!important}
  .app.mode-pick .division-bar{flex:none!important}
  .app.mode-pick .side-head{flex:none!important;padding:6px 12px!important}
  .app.mode-pick .client-list{
    display:block!important;
    flex:1 1 auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
    padding:2px 10px 6px!important;
    border:none!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  /* плотные строки: высота по контенту, НЕ на весь экран */
  .app.mode-pick .client-card,
  .app.mode-pick .client-list .client-card{
    display:block!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    flex:none!important;
    flex-grow:0!important;
    padding:8px 10px 8px 16px!important;
    margin-bottom:4px!important;
    border-radius:10px!important;
  }
  .app.mode-pick .client-card .cc-name{font-size:14px!important;line-height:1.2!important}
  .app.mode-pick .client-card .cc-obj{
    font-size:11.5px!important;margin-top:1px!important;
    white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
    display:block!important;-webkit-line-clamp:unset!important
  }
  .app.mode-pick .client-card .cc-prog{font-size:10px!important;margin-top:2px!important}
  .app.mode-pick .client-card .cc-bar{margin-top:4px!important;height:3px!important}
  .app.mode-pick .client-card .cc-total{font-size:11px!important;margin-top:3px!important}
  .app.mode-pick .client-card .cc-pcts{font-size:10px!important;margin-top:2px!important}
  .app.mode-pick .side-foot{
    display:flex!important;
    flex:0 0 auto!important;
    gap:6px!important;
    padding:8px 12px max(10px,env(safe-area-inset-bottom,0px))!important;
    border-top:1px solid var(--al-line)!important;
    background:linear-gradient(180deg,rgba(0,0,0,.15),rgba(0,0,0,.4))!important;
  }
  .app.mode-pick .msk-clock,
  .app.mode-pick .side-foot-sync,
  .app.mode-pick .side-foot-btn{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    min-height:44px!important;
    height:auto!important;
    padding:10px 14px!important;
    font-size:13px!important;
    border-radius:12px!important;
    box-sizing:border-box!important;
  }
  .app.mode-pick .msk-clock{min-height:36px!important;padding:6px 10px!important;font-size:12px!important}
  .app.mode-pick .side-foot-btn{font-size:12px!important;padding:10px 8px!important}
  .app.mode-pick .side-nav-btn{
    min-height:44px!important;padding:10px 12px!important;font-size:13px!important;border-radius:12px!important
  }
  .app.mode-pick .side-head .btn-add{
    min-height:44px!important;padding:10px 14px!important;font-size:13px!important;border-radius:12px!important
  }
  #app .btn-back-nav{
    margin-top:12px!important;
    margin-bottom:18px!important;
    width:100%!important;
    min-height:44px!important;
  }
  #app .stage:hover,
  #app .cards .card:hover{transform:none!important}
  /* единый размер action-кнопок на телефоне */
  #app .btn-primary,#app .btn-outline,#app .btn-add,#app .btn-row,#app .btn-deliver,
  #app .btn-back-nav,#app .head-actions button,
  #clientRoot .btn-cli-pdf,#clientRoot .btn-cli-excel,.logout-btn,
  .dsb-btn,.psb-logout,.psb-back,.btn-dz-add{
    min-height:44px!important;padding:10px 14px!important;font-size:13px!important;border-radius:12px!important
  }
}

@media (max-width:780px) and (max-height:560px){
  .app.mode-pick .msk-clock,
  .app.mode-pick .side-foot-sync,
  .app.mode-pick .side-foot-btn,
  .app.mode-pick .side-foot .app-ver{
    display:flex!important;visibility:visible!important;opacity:1!important
  }
  .app.mode-pick .side-foot .app-ver{display:block!important}
}

@media (prefers-reduced-motion:reduce){
  #app .cards .card,#app .stage,#app .client-card{animation:none!important}
}

/* NO-JUMP: выключить всё, что дёргает экран */
#app, #app *, #app *::before, #app *::after,
#clientRoot, #clientRoot *, #workerRoot, #workerRoot *,
#partnerShell, #partnerShell *, #supplierShell, #supplierShell *,
#designerShell, #designerShell * {
  animation: none !important;
}
body { animation: none !important; }

/* =========================================================
   v4.9 — буквы белые (телефон + широкий экран),
   затем фирменный золотой там, где текст изначально был золотым.
   ========================================================= */
html, body,
#authShell, #app, #clientShell, #workerShell, #partnerShell, #designerShell,
#authShell *, #app *, #clientShell *, #workerShell *, #partnerShell *, #designerShell *,
.login, .login *, .modal, .modal *, .toast, .entry-card, .entry-card *,
.partner-app, .partner-app *,
.designer-app, .designer-app *{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
/* поставщик: белый только navy-chrome (сайдбар/сессия), НЕ .supplier-main */
html body #supplierShell,
html body #supplierShell .supplier-side,
html body #supplierShell .supplier-side *,
html body #supplierShell .sup-sess-inner,
html body #supplierShell .sup-sess-inner *{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
/* placeholder чуть прозрачнее, но тоже белый */
html input::placeholder,
html textarea::placeholder,
#app input::placeholder,
#app textarea::placeholder,
.login input::placeholder,
.modal input::placeholder,
.modal textarea::placeholder{
  color:rgba(255,255,255,.55)!important;
  -webkit-text-fill-color:rgba(255,255,255,.55)!important;
  opacity:1!important;
}
/* option в select — белый текст (фон системный/тёмный) */
select option{
  color:#FFFFFF!important;
  background:#1C2E3E!important;
}

/* --- Фирменный золотой текст (#F6BA3E) — поверх белого (выше специфичность, чем shell *) --- */
html body #app .eyebrow,
html body #app .card.accent .lbl,
html body #app .smeta-sum-cards .card.accent .lbl,
html body #app .client-card .cc-total b,
html body #app .side-nav-btn:hover,
html body #app .side-nav-btn.act,
html body #app .side-nav-btn:hover .side-nav-arr,
html body #app .side-nav-btn.act .side-nav-arr,
html body #app .side-foot-sync:hover,
html body #app .side-foot-btn:hover,
html body #app .fsb-role,
html body #app .fsb-btn:hover,
html body #app .nb-hero-kicker,
html body #app .msk-clock b,
html body #app .rep-band .rep-doc .eyebrow,
html body #clientShell .band .e,
html body #clientShell .band .d .e,
html body #clientShell .band .clk b,
html body #clientShell .card.a .l,
html body #clientShell .gph.vid,
html body #workerShell .band .e,
html body #workerShell .band .d .e,
html body #workerShell .band .clk b,
html body #partnerShell .psb-kicker,
html body #partnerShell .partner-side-h-kicker,
html body #partnerShell .partner-side-count,
html body #partnerShell .po-card.active .po-card-meta,
html body #partnerShell .pk-hero-kicker,
html body #partnerShell .pk-hero-stat-lbl,
html body #partnerShell .card.a .l,
html body #supplierShell .sup-sess-kicker,
html body #supplierShell .supplier-side-h-kicker,
html body #supplierShell .supplier-side-count,
html body #supplierShell .sup-obj-phone,
html body #designerShell .designer-side-h span,
html body #designerShell .dz-card-st,
html body #authShell .entry-card:hover .entry-card-arr,
html body #authShell .home-btn-primary .home-btn-txt b,
html body #authShell .home-btn-primary .home-btn-ic,
html body #authShell .home-btn-primary .home-btn-arr,
html body #authShell .home-social-btn .cli-social-ar,
html body #authShell .home-social-btn:hover .cli-social-ar,
html body #authShell .home-social-btn:active .cli-social-ar,
html body #authShell .home-fact-ar,
html body #authShell .login .lb .e,
html body .mskclock .t,
html body .eyebrow{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}

/* телефон + широкий: белый базово, золотой — исключения (после белого) */
@media (max-width:780px),(min-width:781px){
  html, body,
  #authShell, #app, #clientShell, #workerShell, #partnerShell, #designerShell,
  #authShell *, #app *, #clientShell *, #workerShell *, #partnerShell *, #designerShell *,
  .login, .login *, .modal, .modal *, .toast{
    color:#FFFFFF!important;
    -webkit-text-fill-color:#FFFFFF!important;
  }
  html body #supplierShell .supplier-side,
  html body #supplierShell .supplier-side *,
  html body #supplierShell .sup-sess-inner,
  html body #supplierShell .sup-sess-inner *{
    color:#FFFFFF!important;
    -webkit-text-fill-color:#FFFFFF!important;
  }
  html body #app .eyebrow,
  html body #app .card.accent .lbl,
  html body #app .smeta-sum-cards .card.accent .lbl,
  html body #app .client-card .cc-total b,
  html body #app .side-nav-btn:hover,
  html body #app .side-nav-btn.act,
  html body #app .side-nav-btn:hover .side-nav-arr,
  html body #app .side-nav-btn.act .side-nav-arr,
  html body #app .side-foot-sync:hover,
  html body #app .side-foot-btn:hover,
  html body #app .fsb-role,
  html body #app .fsb-btn:hover,
  html body #app .nb-hero-kicker,
  html body #app .msk-clock b,
  html body #clientShell .band .e,
  html body #clientShell .band .d .e,
  html body #clientShell .band .clk b,
  html body #clientShell .card.a .l,
  html body #clientShell .gph.vid,
  html body #workerShell .band .e,
  html body #workerShell .band .d .e,
  html body #workerShell .band .clk b,
  html body #partnerShell .psb-kicker,
  html body #partnerShell .partner-side-h-kicker,
  html body #partnerShell .partner-side-count,
  html body #partnerShell .po-card.active .po-card-meta,
  html body #partnerShell .pk-hero-kicker,
  html body #partnerShell .pk-hero-stat-lbl,
  html body #partnerShell .card.a .l,
  html body #supplierShell .sup-sess-kicker,
  html body #supplierShell .supplier-side-h-kicker,
  html body #supplierShell .supplier-side-count,
  html body #supplierShell .sup-obj-phone,
  html body #designerShell .designer-side-h span,
  html body #designerShell .dz-card-st,
  html body #authShell .entry-card:hover .entry-card-arr,
  html body #authShell .home-btn-primary .home-btn-txt b,
  html body #authShell .home-btn-primary .home-btn-ic,
  html body #authShell .home-btn-primary .home-btn-arr,
  html body #authShell .login .lb .e,
  html body .mskclock .t,
  html body .eyebrow{
    color:#F6BA3E!important;
    -webkit-text-fill-color:#F6BA3E!important;
  }
}

/* =========================================================
   v5.0 — Процесс работ, оплачено, аванс, сворачивание этапов
   ========================================================= */

/* Процесс работ · общая статистика — фирменный синий текст на светлых окошках */
html body #app .proc-box{
  background:linear-gradient(165deg,var(--al-bg3),var(--al-bg2))!important;
  border:1px solid var(--al-line)!important;
  color:#FFFFFF!important;
}
html body #app .proc-head h3{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .proc-stat{
  background:linear-gradient(165deg,#E8EEF4 0%,#D5DEE8 100%)!important;
  border:1px solid rgba(38,59,80,.18)!important;
  box-shadow:0 4px 14px rgba(0,0,0,.18)!important;
  color:#263B50!important;
  -webkit-text-fill-color:#263B50!important;
}
html body #app .proc-stat .ps-top,
html body #app .proc-stat .ps-top span,
html body #app .proc-stat .ps-top b{
  color:#263B50!important;
  -webkit-text-fill-color:#263B50!important;
}
html body #app .proc-stat .ps-bar{
  background:rgba(38,59,80,.14)!important;
}
html body #app .proc-hint{
  color:rgba(255,255,255,.78)!important;
  -webkit-text-fill-color:rgba(255,255,255,.78)!important;
}

/* Карточки: рамка цветная, суммы — белые */
html body #app .card.paid{
  border:1px solid rgba(192,67,47,.55)!important;
  box-shadow:0 0 0 1px rgba(192,67,47,.12),0 6px 18px rgba(0,0,0,.22)!important;
}
html body #app .card.paid .lbl{
  color:rgba(255,180,170,.95)!important;
  -webkit-text-fill-color:rgba(255,180,170,.95)!important;
}
html body #app .card.paid .val,
html body #app #cardPaid{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
/* Остаток к оплате — зелёная рамка, сумма белая */
html body #app .card.balance{
  border:1px solid rgba(46,125,91,.55)!important;
  box-shadow:0 0 0 1px rgba(46,125,91,.12),0 6px 18px rgba(0,0,0,.22)!important;
}
html body #app .card.balance .lbl{
  color:rgba(160,220,190,.95)!important;
  -webkit-text-fill-color:rgba(160,220,190,.95)!important;
}
html body #app .card.balance .val,
html body #app .card.balance .val.due,
html body #app #cardBalance,
html body #app #cardBalance.due{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}

/* Аванс: суммы белые; перерасход — весь текст красный */
html body #app .adv-card,
html body #app .adv-card.adv-gold,
html body #app .adv-card.pos{
  border:1px solid rgba(255,255,255,.14)!important;
}
html body #app .adv-card .lbl{
  color:rgba(255,255,255,.78)!important;
  -webkit-text-fill-color:rgba(255,255,255,.78)!important;
}
html body #app .adv-card .val,
html body #app .adv-card.pos .val{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .adv-card.neg{
  border:1px solid rgba(192,67,47,.55)!important;
  background:linear-gradient(165deg,rgba(80,30,28,.55),rgba(40,18,16,.7))!important;
}
html body #app .adv-card.neg .lbl,
html body #app .adv-card.neg .val{
  color:#FF6B5A!important;
  -webkit-text-fill-color:#FF6B5A!important;
}

/* Кнопка «Пополнение аванса»: золотой фон, белый текст */
html body #app .btn-adv-add,
html body #app .adv-wrap .btn-adv-add,
html body #app button.btn-row.btn-adv-add{
  background:linear-gradient(135deg,#E8A82E,#F6BA3E,#FBD888)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  border:1px solid rgba(246,186,62,.55)!important;
  box-shadow:0 4px 14px rgba(246,186,62,.28)!important;
  font-weight:800!important;
}
html body #app .btn-adv-add:hover{
  filter:brightness(1.06)!important;
}

/* Сворачивание этапов / разделов — телефон + широкий экран */
html body #app .stage-chev-btn{
  display:inline-flex!important;
  flex:none!important;
  align-items:center!important;
  justify-content:center!important;
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  border:1px solid rgba(255,255,255,.16)!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.08)!important;
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  cursor:pointer!important;
  padding:0!important;
  line-height:1!important;
}
html body #app .stage-chev{
  display:inline-block!important;
  font-size:12px!important;
  transition:transform .2s ease!important;
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
html body #app .stage-head{
  cursor:pointer!important;
  user-select:none!important;
}
html body #app .stage-head input.stage-name,
html body #app .smeta-phase-title input.stage-name{
  cursor:text!important;
  user-select:text!important;
}
html body #app .stage-count{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:28px!important;
  height:24px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  font-size:11px!important;
  font-weight:800!important;
  background:rgba(246,186,62,.16)!important;
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  border:1px solid rgba(246,186,62,.35)!important;
}
html body #app .stage.is-collapsed .stage-body{
  display:none!important;
}
html body #app .stage.is-collapsed .stage-chev,
html body #app .smeta-phase-block.is-collapsed .stage-chev{
  transform:rotate(-90deg)!important;
}
html body #app .smeta-phase-block.is-collapsed > .stage{
  display:none!important;
}
html body #app .smeta-phase-title{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  cursor:pointer!important;
}
html body #app .smeta-phase-title .stage-chev-btn{
  background:rgba(255,255,255,.1)!important;
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}

/* Контраст: светлые «вкрапления» на тёмной теме — тёмный текст */
html body #app .extra-line,
html body #app .extra-line b{
  color:#7A4F0C!important;
  -webkit-text-fill-color:#7A4F0C!important;
  background:#FFF6E3!important;
  border-color:#F3DFAA!important;
}
html body #app .type-tag{
  color:#8A5B0C!important;
  -webkit-text-fill-color:#8A5B0C!important;
  background:#FFF1D3!important;
}
html body #app .chip{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  background:rgba(255,255,255,.08)!important;
  border:1px solid rgba(255,255,255,.18)!important;
}
html body #app .source-badge,
html body #app .source-badge b{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .stat-plan{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .stat-done{
  color:#9FCBEF!important;
  -webkit-text-fill-color:#9FCBEF!important;
}
html body #app .stat-paid{
  color:#8FE0B8!important;
  -webkit-text-fill-color:#8FE0B8!important;
}
/* прогресс-строки этапности — читаемо на тёмном */
html body #app .prog-row .prog-name,
html body #app .prog-mini .pm-lbl,
html body #app .prog-mini .pm-lbl span,
html body #app .prog-mini .pm-lbl b,
html body #app .prog-track-head,
html body #app .prog-empty{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .prog-mini.done .pm-lbl b{color:#9FCBEF!important;-webkit-text-fill-color:#9FCBEF!important}
html body #app .prog-mini.paid .pm-lbl b{color:#8FE0B8!important;-webkit-text-fill-color:#8FE0B8!important}

/* =========================================================
   v5.1 — Главное меню входа / кабинеты / формы login
   Тёмные панели + белый текст + золотые акценты (без слияния).
   ========================================================= */

/* Фон экрана входа и карточки */
html body #authShell.login,
html body #authShell.login.login-home,
html body #authShell.login.login-cabinets{
  background:linear-gradient(165deg,#0B141C 0%,#152533 48%,#1A2C3C 100%)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
/* Убрать декоративное свечение (орбы / ::before/::after) на главной */
html body #authShell.login.login-home .home-ambient,
html body #authShell.login.login-home .home-orb,
html body #authShell.login.login-home .home-hero-shine,
html body #authShell.login::before,
html body #authShell.login::after,
html body #authShell.login.login-home::before,
html body #authShell.login.login-home::after{
  display:none!important;
  content:none!important;
  opacity:0!important;
  background:none!important;
  box-shadow:none!important;
  filter:none!important;
}
/* Обычные login-карточки (OTP и т.п.) — с рамкой; главная — без */
html body #authShell .box:not(.entry-home),
html body #authShell .box.entry-box:not(.entry-home){
  background:linear-gradient(180deg,#243B52 0%,#1C2E3E 55%,#152533 100%)!important;
  border:1px solid rgba(255,255,255,.14)!important;
  box-shadow:0 18px 50px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.06)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #authShell .box.entry-home,
html body #authShell .box.entry-cabinets,
html body #authShell .box.entry-home.entry-cabinets{
  width:100%!important;
  background:linear-gradient(180deg,#1C2E3E 0%,#152533 55%,#121E2A 100%)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-bottom:none!important;
  box-shadow:0 18px 40px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.06)!important;
  border-radius:24px!important;
  overflow:hidden!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  clip-path:none!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
@media (min-width:781px){
  html body #authShell .box.entry-home,
  html body #authShell .box.entry-cabinets,
  html body #authShell .box.entry-home.entry-cabinets{max-width:920px!important;border-radius:28px!important}
}
@media (min-width:1100px){
  html body #authShell .box.entry-home,
  html body #authShell .box.entry-cabinets,
  html body #authShell .box.entry-home.entry-cabinets{max-width:980px!important}
}

/* Сплит входа: левая панель формы — по центру по вертикали */
html body #authShell .login-gate-left{
  background:linear-gradient(165deg,#243B52 0%,#1C2E3E 100%)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  color:#fff!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-self:stretch!important;
  min-height:100%!important;
}
html body #authShell .login-gate-left h2,
html body #authShell .login-gate-placeholder h2,
html body #authShell .login-gate-left label,
html body #authShell .login-gate-left .hint,
html body #authShell .login-gate-left .consent,
html body #authShell .login-gate-left .consent span{
  color:#fff!important;-webkit-text-fill-color:#fff!important;
}
html body #authShell .login-gate-left .hint,
html body #authShell .login-gate-placeholder .hint{
  color:rgba(255,255,255,.82)!important;-webkit-text-fill-color:rgba(255,255,255,.82)!important;
}
html body #authShell .login-gate-left input[type="tel"],
html body #authShell .login-gate-left input.code{
  background:rgba(0,0,0,.28)!important;
  border:1px solid rgba(255,255,255,.18)!important;
  color:#fff!important;
}
html body #authShell .entry-card.entry-card-on{
  border-color:rgba(246,186,62,.55)!important;
  background:linear-gradient(165deg,#334F6B 0%,#2A4058 100%)!important;
}
html body #authShell .entry-card.entry-card-on .entry-card-title,
html body #authShell .entry-card.entry-card-on .entry-card-arr{
  color:#F6BA3E!important;-webkit-text-fill-color:#F6BA3E!important;
}

/* Hero главной: без прямоугольника — только SVG-логотип на фоне карточки */
html body #authShell .home-hero{
  background:transparent!important;
  background-image:none!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #authShell .home-logo,
html body #authShell .home-logo img{
  background:transparent!important;
  background-image:none!important;
  border:none!important;
  box-shadow:none!important;
}
/* Шапка обычных экранов входа (OTP и т.п.) — navy-блок остаётся */
html body #authShell .login .lb:not(.home-logo){
  background:linear-gradient(135deg,#0F1A24 0%,#1C2E3E 50%,#263B50 100%)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #authShell .home-kicker,
html body #authShell .login .lb .e,
html body #authShell .login .lb .eyebrow{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}

/* Тело home: панели, услуги, контакты, соцсети — тёмные, текст белый */
html body #authShell .home-body,
html body #authShell .home-panel,
html body #authShell .home-fact,
html body #authShell .home-fact-hit,
html body #authShell .home-social-btn,
html body #authShell .entry-card,
html body #authShell .entry-stub-note{
  background:linear-gradient(165deg,#2C4560 0%,#243B52 100%)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  box-shadow:0 6px 18px rgba(0,0,0,.22)!important;
}
/* Плитки «Все услуги»: без рамки, только Г-линии */
html body #authShell .home-svc{
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #authShell .home-panel{
  background:linear-gradient(180deg,#243B52 0%,#1C2E3E 100%)!important;
}
html body #authShell .home-panel-head h3,
html body #authShell .home-services h3,
html body #authShell .home-social h3,
html body #authShell .home-info h3,
html body #authShell .home-svc-body b,
html body #authShell .home-svc-body small,
html body #authShell .home-fact-val,
html body #authShell .home-fact-sub,
html body #authShell .home-fact-lbl,
html body #authShell .home-social-hint,
html body #authShell .home-social-btn,
html body #authShell .home-social-btn .cli-social-tx,
html body #authShell .home-social-btn .social-note,
html body #authShell .social-legal,
html body #authShell .entry-card-title,
html body #authShell .entry-card-desc,
html body #authShell .entry-card-arr,
html body #authShell .entry-cabinets-title,
html body #authShell .entry-cabinets-hint,
html body #authShell .entry-back-link,
html body #authShell .home-since,
html body #authShell .app-ver,
html body #authShell .login-ver,
html body #authShell .login h2,
html body #authShell .login p.hint,
html body #authShell .login label,
html body #authShell .login .msg,
html body #authShell .login button.back,
html body #authShell .entry-stub-note,
html body #authShell .home-btn-txt,
html body #authShell .home-btn-txt b,
html body #authShell .home-btn-txt small,
html body #authShell .home-btn-ic,
html body #authShell .home-btn-arr{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
/* вторичный текст чуть мягче, но всё ещё светлый (не серый на тёмном) */
html body #authShell .home-svc-body small,
html body #authShell .home-fact-lbl,
html body #authShell .home-fact-sub,
html body #authShell .home-social-hint,
html body #authShell .social-legal,
html body #authShell .home-social-btn .social-note,
html body #authShell .entry-card-desc,
html body #authShell .entry-cabinets-hint,
html body #authShell .login p.hint,
html body #authShell .login .msg,
html body #authShell .app-ver,
html body #authShell .login-ver,
html body #authShell .entry-back-link{
  color:rgba(255,255,255,.82)!important;
  -webkit-text-fill-color:rgba(255,255,255,.82)!important;
}

/* Золотые акценты на главном экране */
html body #authShell .home-kicker,
html body #authShell .home-btn-primary .home-btn-txt b,
html body #authShell .home-btn-primary .home-btn-ic,
html body #authShell .home-btn-primary .home-btn-arr,
html body #authShell .home-btn-primary .home-btn-txt small,
html body #authShell .entry-card:hover .entry-card-arr,
html body #authShell .home-social-btn .cli-social-ar,
html body #authShell .home-social-btn:hover .cli-social-ar,
html body #authShell .home-social-btn:active .cli-social-ar,
html body #authShell .home-fact-ar,
html body #authShell .home-fact-hit:hover .home-fact-ar,
html body #authShell .home-fact-hit:active .home-fact-ar,
html body #authShell .home-since-dot{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
html body #authShell .home-btn-primary .home-btn-txt small{
  color:rgba(246,186,62,.9)!important;
  -webkit-text-fill-color:rgba(246,186,62,.9)!important;
}

/* Кнопки входа */
html body #authShell .home-btn-primary{
  background:linear-gradient(135deg,#2F4862 0%,#263B50 45%,#1C2E3E 100%)!important;
  border:1px solid rgba(246,186,62,.35)!important;
  color:#F6BA3E!important;
}
html body #authShell .home-btn-secondary{
  background:linear-gradient(135deg,#E8A82E 0%,#F6BA3E 55%,#FBD888 100%)!important;
  border:1px solid rgba(246,186,62,.5)!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
/* Оранжевая кнопка «Войти в кабинет» — чёрный текст */
html body #authShell .home-btn-secondary .home-btn-txt b,
html body #authShell .home-btn-secondary .home-btn-txt small,
html body #authShell .home-btn-secondary .home-btn-ic,
html body #authShell .home-btn-secondary .home-btn-arr{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body #authShell .home-btn-secondary .home-btn-txt small{
  color:rgba(17,24,39,.72)!important;
  -webkit-text-fill-color:rgba(17,24,39,.72)!important;
}
html body #authShell .login button.main{
  background:linear-gradient(135deg,#E8A82E,#F6BA3E,#FBD888)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #authShell .login button.back:hover{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  background:rgba(246,186,62,.1)!important;
}

/* Иконки / бейджи на тёмном */
html body #authShell .home-svc-ic,
html body #authShell .home-fact-ic,
html body #authShell .entry-card-ic{
  background:rgba(255,255,255,.08)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  color:#FFFFFF!important;
}
html body #authShell .home-since{
  background:rgba(255,255,255,.06)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #authShell .entry-stub-badge{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  background:rgba(246,186,62,.14)!important;
  border:1px solid rgba(246,186,62,.4)!important;
}
html body #authShell .entry-card.entry-lead{
  background:linear-gradient(165deg,#2C4560 0%,#243B52 100%)!important;
  border-color:rgba(246,186,62,.35)!important;
}
html body #authShell .entry-card:hover,
html body #authShell .home-fact:hover,
html body #authShell .home-social-btn:hover,
html body #authShell .home-panel:hover{
  background:linear-gradient(165deg,#334F6B 0%,#2A4058 100%)!important;
  border-color:rgba(246,186,62,.4)!important;
}
html body #authShell .home-svc:hover{
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
}
html body #authShell .home-svc::before{
  background:
    linear-gradient(90deg,
      #F6BA3E 0%,
      #F6BA3E 28%,
      rgba(246,186,62,.55) 62%,
      rgba(246,186,62,.18) 82%,
      transparent 100%)
      top left / 100% 2px no-repeat,
    linear-gradient(180deg,
      #F6BA3E 0%,
      #F6BA3E 28%,
      rgba(246,186,62,.55) 62%,
      rgba(246,186,62,.18) 82%,
      transparent 100%)
      top left / 2px 100% no-repeat !important;
}
html body #authShell .home-social-btn{
  border-left:4px solid #263B50!important;
}
html body #authShell .home-social-btn:hover,
html body #authShell .home-social-btn:active{
  border-left-color:#F6BA3E!important;
}

/* Сообщения формы */
html body #authShell .login .msg.err{
  color:#FF8A7A!important;
  -webkit-text-fill-color:#FF8A7A!important;
}
html body #authShell .login .msg.ok{
  color:#8FE0B8!important;
  -webkit-text-fill-color:#8FE0B8!important;
}
html body #authShell .login input,
html body #authShell .login input.code{
  background:rgba(0,0,0,.28)!important;
  border:1px solid rgba(255,255,255,.18)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #authShell .login input::placeholder{
  color:rgba(255,255,255,.5)!important;
  -webkit-text-fill-color:rgba(255,255,255,.5)!important;
}

/* fact value link hover — золото, не синий на белом */
html body #authShell .home-fact-hit:hover .home-fact-val{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}

/* Выбор кабинета / объекта / заявка: светлые кнопки → тёмные, текст белый */
html body #authShell .login .picker button,
html body #authShell .pick-obj,
html body #authShell .lead-cat-btn,
html body #authShell .lead-opt{
  background:linear-gradient(165deg,#2C4560,#243B52)!important;
  border:1px solid rgba(255,255,255,.14)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #authShell .login .picker button:hover,
html body #authShell .pick-obj:hover,
html body #authShell .lead-cat-btn:hover,
html body #authShell .lead-opt:hover,
html body #authShell .lead-opt.on{
  background:linear-gradient(165deg,#334F6B,#2A4058)!important;
  border-color:rgba(246,186,62,.45)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  box-shadow:0 0 0 2px rgba(246,186,62,.18)!important;
}
html body #authShell .lead-textarea{
  background:rgba(0,0,0,.28)!important;
  border:1px solid rgba(255,255,255,.18)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}

/* телефон + широкий: явно то же правило для auth */
@media (max-width:780px),(min-width:781px){
  html body #authShell,
  html body #authShell .box,
  html body #authShell .home-panel,
  html body #authShell .home-svc,
  html body #authShell .home-fact,
  html body #authShell .home-social-btn,
  html body #authShell .entry-card,
  html body #authShell .entry-card-title,
  html body #authShell .home-svc-body b,
  html body #authShell .home-fact-val,
  html body #authShell .login h2,
  html body #authShell .home-panel-head h3{
    color:#FFFFFF!important;
    -webkit-text-fill-color:#FFFFFF!important;
  }
  html body #authShell .home-kicker,
  html body #authShell .home-btn-primary .home-btn-txt b,
  html body #authShell .home-btn-primary .home-btn-ic,
  html body #authShell .home-btn-primary .home-btn-arr{
    color:#F6BA3E!important;
    -webkit-text-fill-color:#F6BA3E!important;
  }
  html body #authShell .login button.main{
    color:#FFFFFF!important;
    -webkit-text-fill-color:#FFFFFF!important;
  }
  html body #authShell .home-btn-secondary,
  html body #authShell .home-btn-secondary .home-btn-txt b,
  html body #authShell .home-btn-secondary .home-btn-txt small,
  html body #authShell .home-btn-secondary .home-btn-ic,
  html body #authShell .home-btn-secondary .home-btn-arr{
    color:#111827!important;
    -webkit-text-fill-color:#111827!important;
  }
  html body #authShell .home-btn-secondary .home-btn-txt small{
    color:rgba(17,24,39,.72)!important;
    -webkit-text-fill-color:rgba(17,24,39,.72)!important;
  }
  html body #authShell .home-svc-body small,
  html body #authShell .home-fact-lbl,
  html body #authShell .entry-card-desc,
  html body #authShell .entry-cabinets-hint,
  html body #authShell .login p.hint,
  html body #authShell .app-ver{
    color:rgba(255,255,255,.82)!important;
    -webkit-text-fill-color:rgba(255,255,255,.82)!important;
  }
}
/* =========================================================
   v5.2 � ������� ����: ������� ��� ������������� ���������
   ========================================================= */
html body #authShell.login.login-home .box.entry-home,
html body #authShell.login.login-cabinets .box.entry-home,
html body #authShell .box.entry-home.entry-cabinets{
  width:100%!important;
  background:linear-gradient(180deg,#1C2E3E 0%,#152533 55%,#121E2A 100%)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-bottom:none!important;
  border-radius:24px!important;
  box-shadow:0 18px 40px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.06)!important;
  outline:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  overflow:hidden!important;
  clip-path:none!important;
}
@media (min-width:781px){
  html body #authShell.login.login-home .box.entry-home,
  html body #authShell.login.login-cabinets .box.entry-home,
  html body #authShell .box.entry-home.entry-cabinets{max-width:920px!important;border-radius:28px!important}
}
@media (min-width:1100px){
  html body #authShell.login.login-home .box.entry-home,
  html body #authShell.login.login-cabinets .box.entry-home,
  html body #authShell .box.entry-home.entry-cabinets{max-width:980px!important}
}
html body #authShell .home-hero,
html body #authShell .home-logo,
html body #authShell .home-logo img{
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  box-shadow:none!important;
  outline:none!important;
}

/* =========================================================
   v5.70 � ������� �������: ����� ������/����� (������ UI)
   ========================================================= */

/* ������ (�������� �������) � ������� ���, ������ ����� */
/* РАЗДЕЛ (div-fixed / вкладки) — оранжевая рамка, чёрный текст */
html body #app .div-fixed,
html body #app .division-bar .div-fixed,
html body #app .div-tab,
html body #app .div-tab.act,
html body #app .division-bar .div-tab.act{
  background:linear-gradient(135deg,#E8A82E,#F6BA3E)!important;
  border:1px solid rgba(246,186,62,.85)!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  font-weight:800!important;
  box-shadow:0 2px 8px rgba(246,186,62,.25)!important;
}

/* =========================================================
   v5.75 — шапки этапности / сметы (navy + gold, премиум)
   Вместо плоского оранжа: глубокий navy, золотая кайма,
   аккуратные бейджи сумм, читаемый белый/золотой текст.
   ========================================================= */

/* Оболочка списка этапов (ЭТАП / ВЫПОЛНЕНО / ОПЛАЧЕНО) */
html body #app .prog-track{
  background:linear-gradient(165deg,#1A2C3C 0%,#152532 100%)!important;
  border:1px solid rgba(246,186,62,.22)!important;
  border-radius:14px!important;
  overflow:hidden!important;
  box-shadow:0 8px 24px rgba(0,0,0,.22)!important;
}
html body #app .prog-track-head{
  background:linear-gradient(180deg,#2C4560 0%,#243B52 100%)!important;
  border-bottom:2px solid #F6BA3E!important;
  padding:12px 16px!important;
  letter-spacing:.1em!important;
  font-size:10.5px!important;
  font-weight:800!important;
  text-transform:uppercase!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06)!important;
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
html body #app .prog-track-head span{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  background:transparent!important;
  border:none!important;
}
html body #app .prog-row{
  border-bottom:1px solid rgba(255,255,255,.06)!important;
  background:transparent!important;
}
html body #app .prog-row:hover{
  background:rgba(246,186,62,.05)!important;
}

/* Шапка фазы сметы: «ЭТАП 1 · …» */
html body #app .smeta-phase-title{
  position:relative!important;
  background:linear-gradient(135deg,#1A2C3C 0%,#263B50 52%,#2F4A62 100%)!important;
  border:1px solid rgba(246,186,62,.28)!important;
  border-left:4px solid #F6BA3E!important;
  border-radius:12px 12px 0 0!important;
  padding:14px 16px!important;
  color:#FFFFFF!important;
  box-shadow:0 6px 20px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.06)!important;
  overflow:hidden!important;
}
html body #app .smeta-phase-title::after{
  content:""!important;
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  height:2px!important;
  background:linear-gradient(90deg,#F6BA3E 0%,rgba(246,186,62,.35) 55%,transparent 100%)!important;
  pointer-events:none!important;
}
html body #app .smeta-phase-title .phase-lbl{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  letter-spacing:.14em!important;
  font-size:10px!important;
  font-weight:800!important;
  margin-bottom:5px!important;
}
html body #app .smeta-phase-title input.stage-name,
html body #app .smeta-phase-title .stage-name{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  font-weight:800!important;
  font-size:15.5px!important;
}
html body #app .smeta-phase-title input.stage-name:focus{
  background:rgba(0,0,0,.22)!important;
  box-shadow:0 0 0 2px rgba(246,186,62,.45)!important;
  border-radius:6px!important;
}
html body #app .smeta-phase-title .phase-sum{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  text-shadow:none!important;
  font-weight:800!important;
  font-size:14.5px!important;
  padding:6px 12px!important;
  border-radius:10px!important;
  background:rgba(246,186,62,.12)!important;
  border:1px solid rgba(246,186,62,.35)!important;
  white-space:nowrap!important;
}
html body #app .smeta-phase-title .phase-del{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  border:1px solid rgba(246,186,62,.35)!important;
  background:rgba(0,0,0,.22)!important;
  border-radius:10px!important;
  transition:background .18s ease,color .18s ease!important;
}
html body #app .smeta-phase-title .phase-del:hover{
  background:rgba(246,186,62,.2)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}

/* Шапка раздела сметы (внутри этапа) */
html body #app .stage-head{
  position:relative!important;
  background:linear-gradient(180deg,#2A4158 0%,#243B52 100%)!important;
  border-bottom:1px solid rgba(246,186,62,.2)!important;
  border-left:3px solid #F6BA3E!important;
  padding:13px 16px!important;
  color:#FFFFFF!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;
}
html body #app .stage-head input.stage-name,
html body #app .stage-head .stage-name{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  font-weight:700!important;
  font-size:15.5px!important;
}
html body #app .stage-head input.stage-name:focus{
  background:rgba(0,0,0,.25)!important;
  box-shadow:0 0 0 2px rgba(246,186,62,.45)!important;
  border-radius:6px!important;
  outline:none!important;
}
html body #app .stage-head .stage-sum{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  text-shadow:none!important;
  font-weight:800!important;
  font-size:14.5px!important;
  padding:5px 11px!important;
  border-radius:9px!important;
  background:rgba(246,186,62,.12)!important;
  border:1px solid rgba(246,186,62,.3)!important;
  white-space:nowrap!important;
}
html body #app .stage-head .tri{
  border-bottom-color:#F6BA3E!important;
  filter:drop-shadow(0 0 5px rgba(246,186,62,.45))!important;
}
html body #app .stage-head .x,
html body #app .stage-head .stage-chev-btn,
html body #app .stage-head .stage-chev,
html body #app .stage-head .stage-count{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  border-color:rgba(246,186,62,.35)!important;
}
html body #app .stage-head .stage-chev-btn,
html body #app .stage-head .stage-count{
  background:rgba(246,186,62,.12)!important;
}
html body #app .stage-head .x:hover{
  background:rgba(192,67,47,.22)!important;
  color:#FF8A7A!important;
  -webkit-text-fill-color:#FF8A7A!important;
}
html body #app .stage.is-extra .stage-head{
  background:linear-gradient(180deg,#3A3428 0%,#2C281F 100%)!important;
  border-left-color:#F6BA3E!important;
}
html body #app .stage.is-extra{
  border-color:rgba(246,186,62,.35)!important;
  box-shadow:0 1px 3px rgba(0,0,0,.15),0 0 0 1px rgba(246,186,62,.2)!important;
}

/* Согласовать «доп»-кнопки медиа под новую шапку */
html body #app .media-row{
  background:rgba(0,0,0,.12)!important;
  border-top:1px dashed rgba(246,186,62,.2)!important;
}

/* Фото / видео в этапе: кнопки — чёрный на gold; пустой текст — белый */
html body #app .media-row .btn-row,
html body #app .media-row button.btn-row{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  background:linear-gradient(135deg,#E8A82E,#F6BA3E)!important;
  border:1px solid rgba(246,186,62,.55)!important;
  font-weight:700!important;
}
html body #app .media-empty{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  background:transparent!important;
  opacity:.85!important;
}

/* ����: ������� PDF � ���������, ����� ������ */
html body #app .rec-pdf,
html body #app button.rec-pdf{
  background:linear-gradient(135deg,#E8A82E,#F6BA3E,#FBD888)!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:1px solid rgba(246,186,62,.5)!important;
  font-weight:800!important;
  box-shadow:0 2px 10px rgba(246,186,62,.28)!important;
}
html body #app .rec-pdf:hover{
  filter:brightness(1.05)!important;
}

/* ������� �� ������� � ��������� �����, ������ ����� */
/* Рабочие на объекте — оранжевая рамка, чёрный текст */
html body #app .worker-block,
html body #app .worker-team .worker-block,
html body #app .worker-team{
  border:1px solid rgba(246,186,62,.75)!important;
  background:linear-gradient(165deg,#FFF8E8 0%,#FFF3D6 100%)!important;
  box-shadow:0 4px 14px rgba(246,186,62,.16)!important;
  border-radius:14px!important;
}
html body #app .worker-team{padding:12px!important}
html body #app .worker-block h4,
html body #app .worker-block-head,
html body #app .worker-block-head h4,
html body #app .worker-block .worker-block-sum,
html body #app .worker-block td,
html body #app .worker-block th,
html body #app .worker-block .fm-mob-wname,
html body #app .worker-block .fm-mob-wstage,
html body #app .worker-block .fm-mob-lbl,
html body #app .worker-block .fm-mob-in,
html body #app .worker-block .fm-mob-sum,
html body #app .worker-block .fm-mob-wmeta,
html body #app .worker-block .fm-mob-wmeta b,
html body #app .worker-team,
html body #app .worker-team h4,
html body #app .worker-team td,
html body #app .worker-team th{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}

/* ������� ������� � ������ ������� ����� */
html body #app .btn-ghost-danger,
html body #app button.btn-ghost-danger,
html body #app .head-actions .btn-ghost-danger{
  color:#FF6B5A!important;
  -webkit-text-fill-color:#FF6B5A!important;
  border:1px solid rgba(192,67,47,.65)!important;
  background:rgba(192,67,47,.12)!important;
  font-weight:700!important;
}
html body #app .btn-ghost-danger:hover{
  background:rgba(192,67,47,.22)!important;
  border-color:rgba(192,67,47,.85)!important;
}

/* =========================================================
   v5.72 � ���� �������� + ������ ������/������: ��������� �����, ������ �����
   ========================================================= */
html body #app .worker-chip,
html body #app .worker-team .worker-chip,
html body #app div.worker-chip{
  background:linear-gradient(135deg,#FFF8E8 0%,#FFF3D6 100%)!important;
  border:2px solid #F6BA3E!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  font-weight:700!important;
  box-shadow:none!important;
}
html body #app .worker-chip .row-x,
html body #app .worker-chip button{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  background:transparent!important;
  border:none!important;
}

/* ������ ������ / ������ (div-fixed) � ������ ��������� �����, ������ ����� */
html body #app .div-fixed,
html body #app .division-bar .div-fixed,
html body #app #divisionBar .div-fixed,
html body #divisionBar .div-fixed,
html body #app .div-tab,
html body #app .div-tab.act{
  background:linear-gradient(135deg,#E8A82E 0%,#F6BA3E 55%,#FBD888 100%)!important;
  border:2px solid #F6BA3E!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  font-weight:800!important;
  box-shadow:0 2px 10px rgba(246,186,62,.3)!important;
}

/* =========================================================
   v5.73 � ������/������ = .type-readonly; ������� = .worker-chip
   (���������� #app * {color:white} ������������ � ���� �����)
   ========================================================= */
html body #app .type-readonly,
html body #app .meta-row label .type-readonly,
html body #app .obj-head .type-readonly,
html body #app .obj-fields .type-readonly{
  background:linear-gradient(135deg,#E8A82E 0%,#F6BA3E 55%,#FBD888 100%)!important;
  border:2px solid #F6BA3E!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  font-weight:800!important;
  box-shadow:0 2px 8px rgba(246,186,62,.28)!important;
  border-radius:10px!important;
  padding:7px 12px!important;
}
html body #app .worker-chip,
html body #app .worker-team .worker-chip,
html body #app div.worker-chip{
  background:linear-gradient(135deg,#FFF8E8 0%,#FFF3D6 100%)!important;
  border:2px solid #F6BA3E!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  font-weight:700!important;
  border-radius:20px!important;
}
html body #app .worker-chip .row-x,
html body #app .worker-chip button.row-x{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  background:transparent!important;
  border:none!important;
}
/* ������ media-query white-all */
@media (max-width:780px),(min-width:781px){
  html body #app .type-readonly,
  html body #app .meta-row .type-readonly,
  html body #app .worker-chip,
  html body #app .worker-team .worker-chip{
    color:#111827!important;
    -webkit-text-fill-color:#111827!important;
  }
  html body #app .type-readonly{
    background:linear-gradient(135deg,#E8A82E,#F6BA3E,#FBD888)!important;
    border:2px solid #F6BA3E!important;
  }
  html body #app .worker-chip{
    background:linear-gradient(135deg,#FFF8E8,#FFF3D6)!important;
    border:2px solid #F6BA3E!important;
  }
}

/* =========================================================
   v5.74 — модалка «Сотрудники»: светлый фон + чёрный текст
   (глобальный .modal * {color:#fff} делал подписи невидимыми
    на белых карточках / полях)
   ========================================================= */
html body .modal.staff-modal{
  background:linear-gradient(180deg,#FFFFFF 0%,#F8FAFC 100%)!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:1px solid #E5E9EF!important;
  box-shadow:0 24px 64px rgba(12,18,26,.28)!important;
}
html body .modal.staff-modal .modal-h,
html body .modal.staff-modal .modal-f{
  background:#F8FAFC!important;
  border-color:#E5E9EF!important;
}
html body .modal.staff-modal,
html body .modal.staff-modal *,
html body .modal.staff-modal .mnote,
html body .modal.staff-modal .mnote b,
html body .modal.staff-modal .mlbl,
html body .modal.staff-modal label,
html body .modal.staff-modal .staff-settings,
html body .modal.staff-modal .staff-settings *,
html body .modal.staff-modal .staff-section-h,
html body .modal.staff-modal .staff-empty,
html body .modal.staff-modal .staff-card,
html body .modal.staff-modal .staff-card *,
html body .modal.staff-modal .staff-card-lbl,
html body .modal.staff-modal .staff-add-btn,
html body .modal.staff-modal .staff-card-del,
html body .modal.staff-modal .modal-h h3,
html body .modal.staff-modal .modal-h .eyebrow,
html body .modal.staff-modal input,
html body .modal.staff-modal select{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body .modal.staff-modal .staff-section-h,
html body .modal.staff-modal .staff-card-lbl,
html body .modal.staff-modal .modal-h .eyebrow,
html body .modal.staff-modal .mnote{
  color:#46586A!important;
  -webkit-text-fill-color:#46586A!important;
}
html body .modal.staff-modal .staff-card{
  background:#F7F9FB!important;
  border:1px solid #E5E9EF!important;
}
html body .modal.staff-modal .staff-empty{
  background:#F7F9FB!important;
  border-color:#D0D7E0!important;
  color:#6B7888!important;
  -webkit-text-fill-color:#6B7888!important;
}
html body .modal.staff-modal input,
html body .modal.staff-modal select{
  background:#FFFFFF!important;
  border:1px solid #D0D7E0!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body .modal.staff-modal input:focus,
html body .modal.staff-modal select:focus{
  background:#FFFFFF!important;
  border-color:rgba(246,186,62,.75)!important;
  box-shadow:0 0 0 3px rgba(246,186,62,.18)!important;
}
html body .modal.staff-modal input::placeholder{
  color:#8A96A3!important;
  -webkit-text-fill-color:#8A96A3!important;
  opacity:1!important;
}
html body .modal.staff-modal select option{
  color:#111827!important;
  background:#FFFFFF!important;
}
html body .modal.staff-modal .staff-add-btn{
  background:#FAFBFC!important;
  border:1px dashed #C5CDD8!important;
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
}
html body .modal.staff-modal .staff-card-del{
  background:#FFFFFF!important;
  border:1px solid #E5E9EF!important;
  color:#6B7888!important;
  -webkit-text-fill-color:#6B7888!important;
}
html body .modal.staff-modal .modal-f .btn-cancel{
  background:#EEF0F3!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body .modal.staff-modal .modal-f .btn-go{
  background:linear-gradient(135deg,#F6BA3E,#E8A82E)!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
/* «Просмотр от лица сотрудника» — список выбора */
html body .modal.staff-modal .staff-switch-grp-h,
html body .modal.staff-modal .staff-pick-cnt,
html body .modal.staff-modal .obs-staff-meta{
  color:#6B7888!important;
  -webkit-text-fill-color:#6B7888!important;
}
html body .modal.staff-modal .acc-pick,
html body .modal.staff-modal .obs-staff-row{
  background:#FFFFFF!important;
  border:1px solid #E5E9EF!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body .modal.staff-modal .acc-row.act .acc-pick{
  background:#FFFBF1!important;
  border-color:#F6BA3E!important;
}
html body .modal.staff-modal .acc-name,
html body .modal.staff-modal .obs-staff-name,
html body .modal.staff-modal .acc-pick,
html body .modal.staff-modal .acc-pick *{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body .modal.staff-modal .acc-badge{
  color:#7A4F0C!important;
  -webkit-text-fill-color:#7A4F0C!important;
  background:#FFF1D3!important;
}
html body .modal.staff-modal .staff-pick-tag{
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
}
html body .modal.staff-modal .staff-pick-tag.tag-admin{
  color:#7A4F0C!important;-webkit-text-fill-color:#7A4F0C!important;background:#FFF1D3!important;
}
html body .modal.staff-modal .staff-pick-tag.tag-design{
  color:#6B3F8F!important;-webkit-text-fill-color:#6B3F8F!important;background:#F0E6F8!important;
}
html body .modal.staff-modal .staff-pick-tag.tag-partner{
  color:#5B6EF5!important;-webkit-text-fill-color:#5B6EF5!important;background:#E8EBFF!important;
}
html body .modal.staff-modal .staff-pick-tag.tag-observer{
  color:#1565A8!important;-webkit-text-fill-color:#1565A8!important;background:#E8F4FD!important;
}
html body .modal.staff-modal .staff-pick-tag.tag-supplier{
  color:#B85C1A!important;-webkit-text-fill-color:#B85C1A!important;background:rgba(224,122,61,.18)!important;
}
html body .modal.staff-modal .modal-f .btn-close,
html body .modal.staff-modal .modal-f .btn-outline,
html body .modal.staff-modal .modal-f .btn-cancel{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  background:#EEF0F3!important;
  border:1px solid #D0D7E0!important;
}
html body .modal.staff-modal .modal-f .btn-outline{
  background:#FFFFFF!important;
}
@media (max-width:780px),(min-width:781px){
  html body .modal.staff-modal,
  html body .modal.staff-modal *,
  html body .modal.staff-modal input,
  html body .modal.staff-modal select{
    color:#111827!important;
    -webkit-text-fill-color:#111827!important;
  }
  html body .modal.staff-modal{
    background:linear-gradient(180deg,#FFFFFF 0%,#F8FAFC 100%)!important;
  }
  html body .modal.staff-modal input,
  html body .modal.staff-modal select{
    background:#FFFFFF!important;
  }
  html body .modal.staff-modal .acc-name,
  html body .modal.staff-modal .obs-staff-name,
  html body .modal.staff-modal .acc-pick,
  html body .modal.staff-modal .acc-pick *{
    color:#111827!important;
    -webkit-text-fill-color:#111827!important;
  }
  html body .modal.staff-modal .staff-section-h,
  html body .modal.staff-modal .staff-card-lbl,
  html body .modal.staff-modal .modal-h .eyebrow,
  html body .modal.staff-modal .mnote{
    color:#46586A!important;
    -webkit-text-fill-color:#46586A!important;
  }
}

/* =========================================================
   v5.81 — Задачи / заметки: чёрный текст на белых панелях
   (глобальный #app * {color:#fff} делал списки/редактор нечитаемыми)
   ========================================================= */
/* белые панели и всё внутри */
html body #app .nb-side,
html body #app .nb-main,
html body #app .nb-side *,
html body #app .nb-main *,
html body #app .nb-layout .nb-side,
html body #app .nb-layout .nb-main,
html body #app .nb-layout .nb-side *,
html body #app .nb-layout .nb-main *,
html body #app .nb-card,
html body #app .nb-card *,
html body #app .nb-editor,
html body #app .nb-editor *,
html body #app .nb-empty-editor,
html body #app .nb-empty-editor *,
html body #app .nb-loading,
html body #app .nb-list-empty,
html body #app .nb-search-wrap,
html body #app .nb-side-foot,
html body #app .nb-lbl,
html body #app .nb-meta,
html body #app .nb-title-ro,
html body #app .nb-body-ro,
html body #app .nb-kicker,
html body #app .nb-card-title,
html body #app .nb-card-prev,
html body #app .nb-card-meta,
html body #app .nb-card-date,
html body #app .nb-remind-hint,
html body #app .nb-save-status,
html body #app .nb-check,
html body #app .nb-check span{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
/* приглушённые подписи — тёмно-серые, не белые */
html body #app .nb-card-prev,
html body #app .nb-card-meta,
html body #app .nb-card-date,
html body #app .nb-meta,
html body #app .nb-kicker,
html body #app .nb-side-foot,
html body #app .nb-list-empty,
html body #app .nb-loading,
html body #app .nb-remind-hint,
html body #app .nb-save-status,
html body #app .nb-lbl,
html body #app .nb-empty-editor p{
  color:#46586A!important;
  -webkit-text-fill-color:#46586A!important;
}
html body #app .nb-card-title,
html body #app .nb-empty-editor h3,
html body #app .nb-title-ro{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body #app .nb-card-done{color:#2E7D5B!important;-webkit-text-fill-color:#2E7D5B!important}
html body #app .nb-remind-hint.hot{color:#B71C1C!important;-webkit-text-fill-color:#B71C1C!important}
html body #app .nb-save-status.ok{color:#2E7D5B!important;-webkit-text-fill-color:#2E7D5B!important}
html body #app .nb-save-status.busy{color:#8A5A00!important;-webkit-text-fill-color:#8A5A00!important}
html body #app .nb-save-status.err{color:#B71C1C!important;-webkit-text-fill-color:#B71C1C!important}
html body #app .nb-save-status.ro{color:#1565A8!important;-webkit-text-fill-color:#1565A8!important}
/* поля на белом */
html body #app .nb-search,
html body #app .nb-filter-type,
html body #app .nb-select,
html body #app .nb-lbl input,
html body #app .nb-lbl textarea,
html body #app .nb-lbl select,
html body #app #nbTitle,
html body #app #nbBody,
html body #app #nbDue,
html body #app #nbType,
html body #app #nbAssignee,
html body #app #nbClient{
  background:#FFFFFF!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:1px solid #D0D7E0!important;
}
html body #app .nb-search::placeholder,
html body #app .nb-lbl input::placeholder,
html body #app .nb-lbl textarea::placeholder,
html body #app #nbTitle::placeholder,
html body #app #nbBody::placeholder{
  color:#8A96A3!important;
  -webkit-text-fill-color:#8A96A3!important;
  opacity:1!important;
}
html body #app .nb-filter-type option,
html body #app .nb-select option,
html body #app .nb-lbl select option{
  color:#111827!important;
  background:#FFFFFF!important;
}
/* табы фильтров: белые — тёмный текст; активный — navy + белый */
html body #app .nb-scope-tab{
  background:#FFFFFF!important;
  color:#46586A!important;
  -webkit-text-fill-color:#46586A!important;
  border:1px solid #D0D7E0!important;
}
html body #app .nb-scope-tab:hover:not(.on){
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border-color:#F6BA3E!important;
}
html body #app .nb-scope-tab.on{
  background:#1C2E3E!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  border-color:#1C2E3E!important;
}
/* кнопки на светлой панели */
html body #app .nb-main .nb-btn.primary,
html body #app .nb-side .nb-btn.primary,
html body #app .nb-empty-editor .nb-btn.primary,
html body #app .nb-editor .nb-btn.primary{
  background:linear-gradient(135deg,#F6BA3E,#E8A82E)!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body #app .nb-main .nb-btn.ghost-dark,
html body #app .nb-editor .nb-btn.ghost-dark{
  background:#EEF1F4!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:1px solid #D0D7E0!important;
}
html body #app .nb-main .nb-btn.danger,
html body #app .nb-editor .nb-btn.danger{
  background:#FFFFFF!important;
  color:#B71C1C!important;
  -webkit-text-fill-color:#B71C1C!important;
  border:1px solid #F5C6C6!important;
}
html body #app .nb-main .nb-btn.success,
html body #app .nb-editor .nb-btn.success{
  background:#2E7D5B!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
/* карточки списка */
html body #app .nb-card{
  background:#FAFBFC!important;
  border:1px solid transparent!important;
}
html body #app .nb-card:hover,
html body #app .nb-card.active{
  background:#FFFBF1!important;
  border-color:rgba(246,186,62,.45)!important;
}
html body #app .nb-card.overdue{
  background:#FFF8F8!important;
  border-color:rgba(198,40,40,.35)!important;
}
/* hero остаётся тёмным — белый/золотой текст */
html body #app .nb-hero,
html body #app .nb-hero h1,
html body #app .nb-hero-sub{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .nb-hero-kicker{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
html body #app .nb-hero .nb-btn.ghost{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  background:rgba(255,255,255,.1)!important;
  border:1px solid rgba(255,255,255,.16)!important;
}
html body #app .nb-hero .nb-btn.primary{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
@media (max-width:780px),(min-width:781px){
  html body #app .nb-side,
  html body #app .nb-main,
  html body #app .nb-side *,
  html body #app .nb-main *,
  html body #app .nb-card,
  html body #app .nb-card *,
  html body #app .nb-search,
  html body #app .nb-filter-type,
  html body #app .nb-select,
  html body #app .nb-lbl input,
  html body #app .nb-lbl textarea{
    color:#111827!important;
    -webkit-text-fill-color:#111827!important;
  }
  html body #app .nb-card-prev,
  html body #app .nb-card-meta,
  html body #app .nb-card-date,
  html body #app .nb-meta,
  html body #app .nb-lbl,
  html body #app .nb-side-foot{
    color:#46586A!important;
    -webkit-text-fill-color:#46586A!important;
  }
  html body #app .nb-scope-tab.on,
  html body #app .nb-main .nb-btn.success,
  html body #app .nb-hero,
  html body #app .nb-hero h1,
  html body #app .nb-hero-sub,
  html body #app .nb-hero .nb-btn.ghost{
    color:#FFFFFF!important;
    -webkit-text-fill-color:#FFFFFF!important;
  }
  html body #app .nb-hero-kicker{
    color:#F6BA3E!important;
    -webkit-text-fill-color:#F6BA3E!important;
  }
  html body #app .nb-search,
  html body #app .nb-filter-type,
  html body #app .nb-select,
  html body #app .nb-lbl input,
  html body #app .nb-lbl textarea{
    background:#FFFFFF!important;
  }
}

/* =========================================================
   v5.83 — «Мои рабочие» / база рабочих: чёрный текст на белом
   ========================================================= */
html body .modal.workers-modal,
html body .modal.workers-modal *,
html body .modal.workers-modal .mnote,
html body .modal.workers-modal .mnote b,
html body .modal.workers-modal .mlbl,
html body .modal.workers-modal label,
html body .modal.workers-modal .wdb-group,
html body .modal.workers-modal .wdb-group *,
html body .modal.workers-modal .wdb-row,
html body .modal.workers-modal .wdb-row *,
html body .modal.workers-modal .wdb-group-h,
html body .modal.workers-modal .wdb-cat,
html body .modal.workers-modal .wdb-cnt,
html body .modal.workers-modal .wdb-empty,
html body .modal.workers-modal .wdb-pick,
html body .modal.workers-modal .wdb-pick b,
html body .modal.workers-modal .wdb-pick span,
html body .modal.workers-modal .wdb-manual,
html body .modal.workers-modal .wdb-manual summary,
html body .modal.workers-modal input,
html body .modal.workers-modal select{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body .modal.workers-modal .mnote,
html body .modal.workers-modal .wdb-cnt,
html body .modal.workers-modal .wdb-empty,
html body .modal.workers-modal .wdb-pick span{
  color:#46586A!important;
  -webkit-text-fill-color:#46586A!important;
}
html body .modal.workers-modal .wdb-on-obj{
  color:#946A1B!important;
  -webkit-text-fill-color:#946A1B!important;
}
html body .modal.workers-modal .wdb-group{
  background:#FFFFFF!important;
  border:1px solid #E5E9EF!important;
  border-radius:10px!important;
  overflow:hidden!important;
}
html body .modal.workers-modal .wdb-group-h{
  background:#F7F9FB!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body .modal.workers-modal .wdb-row{
  background:#FFFFFF!important;
  border-top:1px solid #E5E9EF!important;
  color:#111827!important;
}
html body .modal.workers-modal .wdb-pick{
  background:#FAFBFC!important;
  border:1px solid #E5E9EF!important;
  color:#111827!important;
}
html body .modal.workers-modal .wdb-pick:hover{
  background:#FFFBF1!important;
  border-color:#F6BA3E!important;
}
html body .modal.workers-modal .wdb-tab{
  background:#FFFFFF!important;
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
  border:1px solid #D0D7E0!important;
}
html body .modal.workers-modal .wdb-tab.on{
  background:#1C2E3E!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  border-color:#1C2E3E!important;
}
html body .modal.workers-modal .wdb-tab:not(.on) i{
  background:#EEF1F4!important;
  color:#6B7888!important;
  -webkit-text-fill-color:#6B7888!important;
}
html body .modal.workers-modal .wdb-tab.on i{
  background:rgba(255,255,255,.2)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body .modal.workers-modal .wdb-add-btn,
html body .modal.workers-modal button.wdb-add-btn{
  background:linear-gradient(135deg,#F6BA3E,#E8A82E)!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:none!important;
  font-weight:800!important;
}
html body .modal.workers-modal input,
html body .modal.workers-modal select{
  background:#FFFFFF!important;
  border:1px solid #D0D7E0!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body .modal.workers-modal input::placeholder{
  color:#8A96A3!important;
  -webkit-text-fill-color:#8A96A3!important;
}
/* баннер «База рабочих» на объекте — светлый, чёрный текст */
html body #app .workers-db-banner,
html body #app .workers-db-banner *{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body #app .workers-db-banner{
  background:linear-gradient(135deg,#FFFBF1,#F7F9FB)!important;
  border:1px solid #F3DFAA!important;
}
html body #app .wdb-banner-text span{
  color:#6B7888!important;
  -webkit-text-fill-color:#6B7888!important;
}
/* «Назначить рабочего» / «База рабочих» — белый текст */
html body #app .workers-db-banner .btn-row,
html body #app .worker-btns .btn-row,
html body #app .worker-btns .btn-row.btn-row-sec,
html body #app .worker-btns button.btn-row,
html body #app .worker-btns button.btn-row-sec{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  background:rgba(255,255,255,.12)!important;
  border:1px solid rgba(255,255,255,.28)!important;
  border-style:solid!important;
}
html body #app .workers-db-banner .btn-row:hover,
html body #app .worker-btns .btn-row:hover,
html body #app .worker-btns .btn-row.btn-row-sec:hover{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  background:rgba(246,186,62,.22)!important;
  border-color:rgba(246,186,62,.5)!important;
}
@media (max-width:780px),(min-width:781px){
  html body .modal.workers-modal,
  html body .modal.workers-modal *,
  html body .modal.workers-modal input{
    color:#111827!important;
    -webkit-text-fill-color:#111827!important;
  }
  html body .modal.workers-modal .wdb-tab.on,
  html body .modal.workers-modal .wdb-tab.on i{
    color:#FFFFFF!important;
    -webkit-text-fill-color:#FFFFFF!important;
  }
  html body #app .workers-db-banner,
  html body #app .workers-db-banner *{
    color:#111827!important;
    -webkit-text-fill-color:#111827!important;
  }
  html body #app .wdb-banner-text span{
    color:#6B7888!important;
    -webkit-text-fill-color:#6B7888!important;
  }
}

/* =========================================================
   v5.84 — «Назначить партнёра»: чёрный текст на белом фоне
   ========================================================= */
html body #app .partner-assign-panel,
html body #app .partner-assign-panel *,
html body #app .partner-assign-list,
html body #app .partner-assign-row,
html body #app .partner-assign-row *,
html body #app .partner-assign-info,
html body #app .partner-assign-info b,
html body #app .partner-assign-info span,
html body #app .partner-assign-sel,
html body #app .partner-assign-sel select,
html body #app .partner-assign-panel .mnote,
html body #app .partner-assign-panel .mnote b,
html body #app .partner-assign-panel h2,
html body #app .partner-assign-panel .btn-back-nav{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body #app .partner-assign-info span,
html body #app .partner-assign-sel,
html body #app .partner-assign-panel .mnote{
  color:#46586A!important;
  -webkit-text-fill-color:#46586A!important;
}
html body #app .partner-assign-info b,
html body #app .partner-assign-panel h2{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body #app .partner-assign-row{
  background:#FFFFFF!important;
  border:1px solid #E5E9EF!important;
  border-radius:12px!important;
}
html body #app .partner-assign-sel select{
  background:#F7F9FB!important;
  border:1px solid #D0D7E0!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body #app .partner-assign-sel select option{
  color:#111827!important;
  background:#FFFFFF!important;
}
html body #app .partner-assign-panel .btn-back-nav{
  background:rgba(255,255,255,.08)!important;
  border:1px solid rgba(255,255,255,.18)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
/* кнопка «назад» на тёмном main — если фон main тёмный, белый; если светлый ряд — чёрный */
html body #app .partner-assign-panel > .btn-back-nav{
  background:#EEF1F4!important;
  border:1px solid #D0D7E0!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
@media (max-width:780px),(min-width:781px){
  html body #app .partner-assign-panel,
  html body #app .partner-assign-panel *,
  html body #app .partner-assign-row,
  html body #app .partner-assign-row *,
  html body #app .partner-assign-sel select{
    color:#111827!important;
    -webkit-text-fill-color:#111827!important;
  }
  html body #app .partner-assign-info span,
  html body #app .partner-assign-sel,
  html body #app .partner-assign-panel .mnote{
    color:#46586A!important;
    -webkit-text-fill-color:#46586A!important;
  }
  html body #app .partner-assign-row{
    background:#FFFFFF!important;
  }
  html body #app .partner-assign-sel select{
    background:#F7F9FB!important;
  }
}

/* =========================================================
   v5.85 — Кабинет клиента (дизайн-проект): чёрный текст
   на белых блоках; шапка .band остаётся светлой
   ========================================================= */
html body #clientRoot .dz-client-wrap .body,
html body #clientRoot .dz-client-wrap .body *,
html body #clientRoot .dz-client-wrap .dz-block,
html body #clientRoot .dz-client-wrap .dz-block *,
html body #clientRoot .dz-client-wrap .dz-client-hero,
html body #clientRoot .dz-client-wrap .dz-client-hero *,
html body #clientRoot .dz-client-wrap .dz-stage,
html body #clientRoot .dz-client-wrap .dz-stage *,
html body #clientRoot .dz-client-wrap .dz-variant,
html body #clientRoot .dz-client-wrap .dz-variant *,
html body #clientRoot .dz-client-wrap .dz-pay-row,
html body #clientRoot .dz-client-wrap .dz-pay-row *,
html body #clientRoot .dz-client-wrap .dz-pay-summary,
html body #clientRoot .dz-client-wrap .dz-pay-summary *,
html body #clientRoot .dz-client-wrap .dz-lbl,
html body #clientRoot .dz-client-wrap .dz-note,
html body #clientRoot .dz-client-wrap .dz-sub,
html body #clientRoot .dz-client-wrap .dz-meta,
html body #clientRoot .dz-client-wrap h1,
html body #clientRoot .dz-client-wrap h3,
html body #clientRoot .dz-client-wrap .sub,
html body #clientRoot .dz-client-wrap .typetag,
html body #clientRoot .dz-client-wrap .dz-files,
html body #clientRoot .dz-client-wrap .dz-files *,
html body #clientRoot .dz-client-wrap .dz-link,
html body #clientRoot .dz-client-wrap .dz-chk,
html body #clientRoot .dz-client-wrap .dz-pill,
html body #clientRoot .dz-client-wrap .dz-btn,
html body #clientRoot .dz-client-wrap .dz-file-btn,
html body #clientRoot .dz-client-wrap .dz-sticky-cta,
html body #clientRoot .dz-client-wrap .dz-sticky-cta *,
html body #clientRoot .dz-client-wrap .logout-btn,
html body #clientRoot .dz-client-wrap .foot,
html body #clientRoot .dz-client-wrap .foot *{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
/* приглушённые */
html body #clientRoot .dz-client-wrap .dz-sub,
html body #clientRoot .dz-client-wrap .dz-meta,
html body #clientRoot .dz-client-wrap .dz-note,
html body #clientRoot .dz-client-wrap .sub,
html body #clientRoot .dz-client-wrap .dz-lbl{
  color:#46586A!important;
  -webkit-text-fill-color:#46586A!important;
}
html body #clientRoot .dz-client-wrap .dz-warn{
  color:#8A5A00!important;
  -webkit-text-fill-color:#8A5A00!important;
}
html body #clientRoot .dz-client-wrap .dz-ok{
  color:#2E7D5B!important;
  -webkit-text-fill-color:#2E7D5B!important;
}
html body #clientRoot .dz-client-wrap .dz-pay-due b{
  color:#C45C00!important;
  -webkit-text-fill-color:#C45C00!important;
}
/* белые/светлые поверхности */
html body #clientRoot .dz-client-wrap .wrap,
html body #clientRoot .dz-client-wrap{
  background:#FFFFFF!important;
}
html body #clientRoot .dz-client-wrap .body{
  background:#FFFFFF!important;
}
html body #clientRoot .dz-client-wrap .dz-block{
  background:#FFFFFF!important;
  border:1px solid #E5E9EF!important;
}
html body #clientRoot .dz-client-wrap .dz-stage-h{
  background:#F7F9FB!important;
}
html body #clientRoot .dz-client-wrap .dz-stage-b{
  background:#FFFFFF!important;
}
html body #clientRoot .dz-client-wrap .dz-variant{
  background:#FAFBFC!important;
  border:1px solid #E5E9EF!important;
}
html body #clientRoot .dz-client-wrap .typetag{
  background:#FFF1D3!important;
  color:#7A4F0C!important;
  -webkit-text-fill-color:#7A4F0C!important;
}
html body #clientRoot .dz-client-wrap .dz-pill{
  background:#EEF1F4!important;
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
}
html body #clientRoot .dz-client-wrap .dz-st-review .dz-pill{
  background:#FFF3D6!important;
  color:#8A5A00!important;
  -webkit-text-fill-color:#8A5A00!important;
}
html body #clientRoot .dz-client-wrap .dz-st-approved .dz-pill{
  background:#E8F5E9!important;
  color:#2E7D5B!important;
  -webkit-text-fill-color:#2E7D5B!important;
}
/* кнопки на светлом: светло-серые — чёрный текст; navy/go — белый */
html body #clientRoot .dz-client-wrap .dz-btn{
  background:#EEF1F4!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:1px solid #D0D7E0!important;
}
html body #clientRoot .dz-client-wrap .dz-btn-go,
html body #clientRoot .dz-client-wrap .dz-btn.dz-btn-go{
  background:#1C2E3E!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  border-color:#1C2E3E!important;
}
html body #clientRoot .dz-client-wrap .dz-btn-sec{
  background:#FFFFFF!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:1px solid #D0D7E0!important;
}
html body #clientRoot .dz-client-wrap .dz-file-btn{
  background:#F7F9FB!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:1px dashed #C5CDD8!important;
}
html body #clientRoot .dz-client-wrap .logout-btn{
  background:#EEF1F4!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:1px solid #D0D7E0!important;
}
html body #clientRoot .dz-client-wrap .dz-mini{
  color:#C0432F!important;
  -webkit-text-fill-color:#C0432F!important;
}
html body #clientRoot .dz-client-wrap .dz-lbl input,
html body #clientRoot .dz-client-wrap .dz-lbl textarea{
  background:#FFFFFF!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:1px solid #D0D7E0!important;
}
/* sticky CTA внизу — светлая панель */
html body #clientRoot .dz-client-wrap .dz-sticky-cta,
html body.dz-has-sticky #clientRoot .dz-sticky-cta{
  background:#FFFFFF!important;
  border-top:1px solid #E5E9EF!important;
  box-shadow:0 -6px 20px rgba(0,0,0,.08)!important;
}
html body #clientRoot .dz-client-wrap .dz-sticky-msg{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
/* шапка band — тёмная, белый/золотой текст (не трогаем белым-на-чёрном) */
html body #clientRoot .dz-client-wrap .band,
html body #clientRoot .dz-client-wrap .band .d,
html body #clientRoot .dz-client-wrap .band .dt{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #clientRoot .dz-client-wrap .band .e,
html body #clientRoot .dz-client-wrap .band .d .e{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
/* =========================================================
   v5.88 — Кабинет дизайнера (embed в #app + shell):
   чёрный текст на белых панелях (design-embed-detail, dz-detail)
   ========================================================= */
html body #designerShell .designer-main,
html body #designerShell .designer-main *,
html body #app .designer-main,
html body #app .designer-main *,
html body #app .design-embed-main,
html body #app .design-embed-main *,
html body #app .design-embed-detail,
html body #app .design-embed-detail *,
html body #app #designEmbedDetail,
html body #app #designEmbedDetail *,
html body #app .design-embed-wrap,
html body #app .design-embed-wrap *,
html body #app .dz-detail,
html body #app .dz-detail *,
html body #app .dz-embed-head,
html body #app .dz-embed-head *,
html body #app .dz-embed-title,
html body #app .dz-empty-main,
html body #app .dz-empty-main *,
html body #app .dz-block,
html body #app .dz-block *,
html body #app .dz-stage,
html body #app .dz-stage *,
html body #app .dz-timeline,
html body #app .dz-timeline *,
html body #app .dz-lbl,
html body #app .dz-note,
html body #app .dz-sub,
html body #app .dz-meta,
html body #app .dz-btn,
html body #app .dz-file-btn,
html body #app .dz-pill,
html body #app .dz-link,
html body #app .dz-chk,
html body #app .dz-pay-row,
html body #app .dz-pay-summary,
html body #app .dz-variant{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body #app .designer-main,
html body #app .design-embed-detail,
html body #app #designEmbedDetail,
html body #app .design-embed-main,
html body #designerShell .designer-main{
  background:#FFFFFF!important;
}
html body #app .dz-sub,
html body #app .dz-meta,
html body #app .dz-note,
html body #app .dz-lbl,
html body #app .dz-empty-main,
html body #designerShell .designer-main .dz-sub,
html body #designerShell .designer-main .dz-meta,
html body #designerShell .designer-main .dz-note{
  color:#46586A!important;
  -webkit-text-fill-color:#46586A!important;
}
html body #app .dz-warn,
html body #designerShell .designer-main .dz-warn{
  color:#8A5A00!important;
  -webkit-text-fill-color:#8A5A00!important;
}
html body #app .dz-ok,
html body #designerShell .designer-main .dz-ok{
  color:#2E7D5B!important;
  -webkit-text-fill-color:#2E7D5B!important;
}
html body #app .dz-block,
html body #app .dz-stage,
html body #app .dz-variant{
  background:#FFFFFF!important;
  border-color:#E5E9EF!important;
}
html body #app .dz-stage-h{
  background:#F7F9FB!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body #app .dz-stage-b{
  background:#FFFFFF!important;
}
html body #app .dz-pill{
  background:#EEF1F4!important;
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
}
html body #app .dz-st-review .dz-pill{
  background:#FFF3D6!important;
  color:#8A5A00!important;
  -webkit-text-fill-color:#8A5A00!important;
}
html body #app .dz-st-approved .dz-pill{
  background:#E8F5E9!important;
  color:#2E7D5B!important;
  -webkit-text-fill-color:#2E7D5B!important;
}
html body #app .dz-btn,
html body #designerShell .designer-main .dz-btn{
  background:#EEF1F4!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:1px solid #D0D7E0!important;
}
html body #app .dz-btn-go,
html body #app .dz-btn.dz-btn-go,
html body #designerShell .designer-main .dz-btn-go,
html body #designerShell .designer-main .dz-btn.dz-btn-go{
  background:#1C2E3E!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  border-color:#1C2E3E!important;
}
html body #app .dz-btn-sec,
html body #app .dz-btn.dz-btn-sec{
  background:#FFFFFF!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:1px solid #D0D7E0!important;
}
html body #app .dz-file-btn{
  background:#F7F9FB!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:1px dashed #C5CDD8!important;
}
html body #app .dz-lbl input,
html body #app .dz-lbl textarea,
html body #app .dz-detail input,
html body #app .dz-detail textarea,
html body #app .dz-detail select,
html body #app #designEmbedDetail input,
html body #app #designEmbedDetail textarea,
html body #app #designEmbedDetail select,
html body #designerShell .designer-main input,
html body #designerShell .designer-main textarea,
html body #designerShell .designer-main select{
  background:#FFFFFF!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:1px solid #D0D7E0!important;
}
html body #app .dz-lbl input::placeholder,
html body #app .dz-lbl textarea::placeholder,
html body #app #designEmbedDetail input::placeholder,
html body #app #designEmbedDetail textarea::placeholder{
  color:#8A96A3!important;
  -webkit-text-fill-color:#8A96A3!important;
}
html body #app .dz-link{
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
  font-weight:700!important;
}
html body #app .dz-mini{
  color:#C0432F!important;
  -webkit-text-fill-color:#C0432F!important;
}
html body #app .dz-embed-head .eyebrow{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
html body #app .dz-embed-title{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
/* сайдбар дизайнера — тёмный, белый текст */
html body #designerShell .designer-side,
html body #designerShell .designer-side *,
html body #app .design-embed-side,
html body #app .design-embed-side *{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #designerShell .dz-card-st,
html body #app .design-embed-side .dz-card-st{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
html body #designerShell .btn-dz-add,
html body #app .design-embed-side .btn-dz-add,
html body #app .btn-dz-add{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  background:linear-gradient(135deg,#F6BA3E,#E8A82E)!important;
}
@media (max-width:780px),(min-width:781px){
  html body #clientRoot .dz-client-wrap .body,
  html body #clientRoot .dz-client-wrap .body *,
  html body #clientRoot .dz-client-wrap .dz-block,
  html body #clientRoot .dz-client-wrap .dz-block *{
    color:#111827!important;
    -webkit-text-fill-color:#111827!important;
  }
  html body #clientRoot .dz-client-wrap .dz-sub,
  html body #clientRoot .dz-client-wrap .dz-meta,
  html body #clientRoot .dz-client-wrap .dz-note,
  html body #clientRoot .dz-client-wrap .sub{
    color:#46586A!important;
    -webkit-text-fill-color:#46586A!important;
  }
  html body #clientRoot .dz-client-wrap .dz-btn-go,
  html body #clientRoot .dz-client-wrap .band,
  html body #clientRoot .dz-client-wrap .band .d{
    color:#FFFFFF!important;
    -webkit-text-fill-color:#FFFFFF!important;
  }
  html body #clientRoot .dz-client-wrap .band .e{
    color:#F6BA3E!important;
    -webkit-text-fill-color:#F6BA3E!important;
  }
  html body #designerShell .designer-main,
  html body #designerShell .designer-main *,
  html body #app .designer-main,
  html body #app .designer-main *,
  html body #app .design-embed-detail,
  html body #app .design-embed-detail *,
  html body #app #designEmbedDetail,
  html body #app #designEmbedDetail *,
  html body #app .dz-detail,
  html body #app .dz-detail *,
  html body #app .design-embed-wrap,
  html body #app .design-embed-wrap *{
    color:#111827!important;
    -webkit-text-fill-color:#111827!important;
  }
  html body #app .dz-btn-go,
  html body #app .dz-btn.dz-btn-go,
  html body #designerShell .designer-main .dz-btn-go{
    color:#FFFFFF!important;
    -webkit-text-fill-color:#FFFFFF!important;
  }
  html body #app .dz-sub,
  html body #app .dz-meta,
  html body #app .dz-note,
  html body #app .dz-lbl{
    color:#46586A!important;
    -webkit-text-fill-color:#46586A!important;
  }
  html body #app .dz-lbl input,
  html body #app .dz-lbl textarea,
  html body #app #designEmbedDetail input,
  html body #app #designEmbedDetail textarea,
  html body #app #designEmbedDetail select{
    background:#FFFFFF!important;
    color:#111827!important;
    -webkit-text-fill-color:#111827!important;
  }
  html body #designerShell .designer-side,
  html body #designerShell .designer-side *,
  html body #app .design-embed-side,
  html body #app .design-embed-side *{
    color:#FFFFFF!important;
    -webkit-text-fill-color:#FFFFFF!important;
  }
}

/* =========================================================
   v5.90 — Кабинет дизайнера: фирменный polish (navy + gold)
   ========================================================= */

/* --- Session bar (designer shell): navy like partner --- */
html body #designerShell .designer-session{
  background:linear-gradient(135deg,#1A2C3C 0%,#263B50 50%,#2F4A62 100%)!important;
  border-bottom:1px solid rgba(246,186,62,.28)!important;
  box-shadow:0 8px 28px rgba(12,20,30,.22)!important;
  padding:12px 18px!important;
  position:relative!important;
}
html body #designerShell .designer-session::after{
  content:""!important;
  position:absolute!important;
  left:18px!important;right:18px!important;bottom:0!important;
  height:2px!important;
  background:linear-gradient(90deg,transparent,#F6BA3E,transparent)!important;
  pointer-events:none!important;
}
html body #designerShell .dsb-role,
html body #designerShell .designer-session .dsb-role{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  font-weight:800!important;
}
html body #designerShell .dsb-btn{
  background:rgba(255,255,255,.1)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  border:1px solid rgba(255,255,255,.18)!important;
  border-radius:12px!important;
  font-weight:700!important;
  box-shadow:none!important;
}
html body #designerShell .dsb-btn:hover{
  background:rgba(246,186,62,.18)!important;
  border-color:rgba(246,186,62,.45)!important;
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
html body #designerShell .dsb-back,
html body #designerShell .dsb-btn.dsb-back{
  background:linear-gradient(135deg,#F6BA3E,#E8A82E)!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:none!important;
  font-weight:800!important;
  box-shadow:0 4px 14px rgba(246,186,62,.3)!important;
}
html body #designerShell .role-switch-lbl{color:rgba(197,208,218,.9)!important;-webkit-text-fill-color:rgba(197,208,218,.9)!important}
html body #designerShell .role-switch-sel{
  background:rgba(255,255,255,.1)!important;
  border-color:rgba(255,255,255,.2)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* --- Side list (dark navy) --- */
html body #designerShell .designer-side{
  background:linear-gradient(180deg,#152533 0%,#1C2E3E 55%,#243B52 100%)!important;
  border-right:1px solid rgba(246,186,62,.15)!important;
  box-shadow:inset -1px 0 0 rgba(255,255,255,.04)!important;
}
html body #designerShell .designer-side-h{
  padding:16px 14px 12px!important;
  border-bottom:1px solid rgba(255,255,255,.08)!important;
}
html body #designerShell .designer-side-h span,
html body #designerShell .designer-side-h #designerSideTitle{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  letter-spacing:.12em!important;
  font-weight:800!important;
}
html body #designerShell .btn-dz-add,
html body #app .btn-dz-add{
  background:linear-gradient(135deg,#F6BA3E 0%,#E8A82E 100%)!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:none!important;
  border-radius:12px!important;
  font-weight:800!important;
  box-shadow:0 4px 14px rgba(246,186,62,.32)!important;
  padding:9px 14px!important;
}
html body #designerShell .btn-dz-add:hover,
html body #app .btn-dz-add:hover{
  filter:brightness(1.06)!important;
  box-shadow:0 6px 18px rgba(246,186,62,.4)!important;
}
html body #designerShell .dz-card,
html body #app .designer-project-list .dz-card{
  background:linear-gradient(160deg,rgba(255,255,255,.08),rgba(255,255,255,.03))!important;
  border:1px solid rgba(255,255,255,.1)!important;
  border-radius:14px!important;
  padding:12px 12px!important;
  margin-bottom:8px!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  transition:border-color .18s ease,background .18s ease,transform .18s ease,box-shadow .18s ease!important;
}
html body #designerShell .dz-card:hover,
html body #designerShell .dz-card.active{
  background:linear-gradient(105deg,rgba(246,186,62,.22),rgba(246,186,62,.08))!important;
  border-color:rgba(246,186,62,.45)!important;
  box-shadow:0 6px 18px rgba(0,0,0,.2),0 0 0 1px rgba(246,186,62,.12)!important;
  transform:translateX(2px)!important;
}
html body #designerShell .dz-card-name{color:#FFFFFF!important;-webkit-text-fill-color:#FFFFFF!important;font-weight:800!important}
html body #designerShell .dz-card-obj{color:rgba(255,255,255,.7)!important;-webkit-text-fill-color:rgba(255,255,255,.7)!important}
html body #designerShell .dz-card-st{color:#F6BA3E!important;-webkit-text-fill-color:#F6BA3E!important;font-weight:800!important}

/* --- Main workspace (paper white) --- */
html body #designerShell .designer-main,
html body #app .designer-main,
html body #app .design-embed-detail,
html body #app #designEmbedDetail,
html body #app .design-embed-main{
  background:linear-gradient(180deg,#F4F6F8 0%,#EEF1F4 40%,#F7F9FB 100%)!important;
  padding:22px 26px 40px!important;
}
html body #app .design-embed-wrap{
  background:linear-gradient(180deg,#F4F6F8 0%,#EEF1F4 100%)!important;
  min-height:100%!important;
}
html body #app .dz-embed-head{
  padding:6px 4px 16px!important;
  margin-bottom:4px!important;
  border-bottom:1px solid rgba(28,46,62,.08)!important;
}
html body #app .dz-embed-head .eyebrow{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  font-size:10px!important;
  letter-spacing:.14em!important;
  text-transform:uppercase!important;
  font-weight:800!important;
}
html body #app .dz-embed-title{
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
  font-size:22px!important;
  font-weight:800!important;
  letter-spacing:-.02em!important;
  margin:4px 0 0!important;
}

/* --- Detail card --- */
html body #app .dz-detail,
html body #designerShell .dz-detail{
  background:#FFFFFF!important;
  border:1px solid rgba(28,46,62,.08)!important;
  border-radius:18px!important;
  padding:22px 24px 28px!important;
  box-shadow:0 10px 32px rgba(20,35,50,.08),0 1px 0 rgba(255,255,255,.8) inset!important;
  max-width:920px!important;
}
html body #app .dz-detail-head,
html body #designerShell .dz-detail-head{
  display:flex!important;
  justify-content:space-between!important;
  align-items:flex-start!important;
  gap:16px!important;
  flex-wrap:wrap!important;
  margin-bottom:18px!important;
  padding-bottom:16px!important;
  border-bottom:1px solid rgba(28,46,62,.08)!important;
  position:relative!important;
}
html body #app .dz-detail-head::after,
html body #designerShell .dz-detail-head::after{
  content:""!important;
  position:absolute!important;
  left:0!important;bottom:-1px!important;
  width:72px!important;height:3px!important;
  background:linear-gradient(90deg,#F6BA3E,#E8A82E)!important;
  border-radius:3px!important;
}
html body #app .dz-detail h1,
html body #designerShell .dz-detail h1{
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
  font-size:24px!important;
  font-weight:800!important;
  letter-spacing:-.02em!important;
  margin:0 0 6px!important;
}
html body #app .dz-sub{color:#5A6A7A!important;-webkit-text-fill-color:#5A6A7A!important;font-size:14px!important}
html body #app .dz-meta{color:#6B7888!important;-webkit-text-fill-color:#6B7888!important}

/* --- Summary chips + progress --- */
html body #app .dz-summary,
html body #designerShell .dz-summary{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin:12px 0 10px!important;
}
html body #app .dz-sum-chip,
html body #designerShell .dz-sum-chip{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  padding:6px 12px!important;
  border-radius:999px!important;
  background:linear-gradient(135deg,#FFFBF1,#F7F9FB)!important;
  border:1px solid rgba(246,186,62,.35)!important;
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
  font-size:12px!important;
  font-weight:700!important;
}
html body #app .dz-sum-chip b{
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
  font-weight:800!important;
}
html body #app .dz-sum-bar,
html body #designerShell .dz-sum-bar{
  height:8px!important;
  background:#E8ECF0!important;
  border-radius:99px!important;
  overflow:hidden!important;
  margin:4px 0 8px!important;
}
html body #app .dz-sum-bar i,
html body #designerShell .dz-sum-bar i{
  display:block!important;
  height:100%!important;
  border-radius:99px!important;
  background:linear-gradient(90deg,#E8A82E,#F6BA3E 50%,#FBD888)!important;
  box-shadow:0 0 8px rgba(246,186,62,.35)!important;
}

/* --- Timeline --- */
html body #app .dz-timeline,
html body #designerShell .dz-timeline{
  display:flex!important;
  align-items:flex-start!important;
  gap:0!important;
  flex-wrap:wrap!important;
  margin:16px 0 20px!important;
  padding:14px 12px!important;
  background:linear-gradient(165deg,#1A2C3C 0%,#263B50 100%)!important;
  border-radius:16px!important;
  border:1px solid rgba(246,186,62,.22)!important;
  box-shadow:0 8px 24px rgba(12,20,30,.18)!important;
}
html body #app .dz-tl-item{
  flex:1 1 90px!important;
  min-width:80px!important;
  text-align:center!important;
  padding:4px 6px!important;
}
html body #app .dz-tl-dot{
  width:14px!important;height:14px!important;
  border-radius:50%!important;
  margin:0 auto 8px!important;
  background:rgba(255,255,255,.2)!important;
  border:2px solid rgba(255,255,255,.35)!important;
  box-shadow:none!important;
}
html body #app .dz-tl-approved .dz-tl-dot,
html body #app .dz-tl-item.dz-tl-approved .dz-tl-dot{
  background:linear-gradient(135deg,#F6BA3E,#E8A82E)!important;
  border-color:#F6BA3E!important;
  box-shadow:0 0 0 4px rgba(246,186,62,.2)!important;
}
html body #app .dz-tl-review .dz-tl-dot,
html body #app .dz-tl-item.dz-tl-review .dz-tl-dot{
  background:#5B8FBF!important;
  border-color:#9FCBEF!important;
  box-shadow:0 0 0 4px rgba(59,110,156,.25)!important;
}
html body #app .dz-tl-work .dz-tl-dot,
html body #app .dz-tl-item.dz-tl-work .dz-tl-dot{
  background:rgba(255,255,255,.15)!important;
  border-color:rgba(246,186,62,.5)!important;
}
html body #app .dz-tl-label{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  font-size:11.5px!important;
  font-weight:800!important;
  line-height:1.25!important;
}
html body #app .dz-tl-st{
  color:rgba(255,255,255,.65)!important;
  -webkit-text-fill-color:rgba(255,255,255,.65)!important;
  font-size:10px!important;
  font-weight:700!important;
  margin-top:3px!important;
  text-transform:uppercase!important;
  letter-spacing:.04em!important;
}
html body #app .dz-tl-approved .dz-tl-st{color:#F6BA3E!important;-webkit-text-fill-color:#F6BA3E!important}
html body #app .dz-tl-line{
  flex:0 0 18px!important;
  height:2px!important;
  align-self:center!important;
  margin-top:-18px!important;
  background:linear-gradient(90deg,rgba(246,186,62,.5),rgba(255,255,255,.2))!important;
  border-radius:2px!important;
}

/* --- Content blocks --- */
html body #app .dz-block,
html body #designerShell .dz-block{
  background:#FFFFFF!important;
  border:1px solid rgba(28,46,62,.08)!important;
  border-radius:16px!important;
  padding:16px 18px!important;
  margin-bottom:14px!important;
  box-shadow:0 4px 16px rgba(20,35,50,.05)!important;
  position:relative!important;
  overflow:hidden!important;
}
html body #app .dz-block::before{
  content:""!important;
  position:absolute!important;
  left:0!important;top:0!important;bottom:0!important;
  width:3px!important;
  background:linear-gradient(180deg,#F6BA3E,#E8A82E)!important;
  border-radius:3px 0 0 3px!important;
}
html body #app .dz-block h3,
html body #designerShell .dz-block h3{
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
  font-size:15px!important;
  font-weight:800!important;
  margin:0 0 12px!important;
  letter-spacing:-.01em!important;
}
html body #app .dz-block-danger{
  border-color:rgba(192,67,47,.25)!important;
  background:linear-gradient(165deg,#FFF8F7,#FFFFFF)!important;
}
html body #app .dz-block-danger::before{
  background:linear-gradient(180deg,#E57373,#C0432F)!important;
}
html body #app .dz-note{color:#6B7888!important;-webkit-text-fill-color:#6B7888!important;line-height:1.45!important}
html body #app .dz-warn{
  color:#8A5A00!important;-webkit-text-fill-color:#8A5A00!important;
  background:rgba(246,186,62,.12)!important;
  border-radius:8px!important;
  padding:8px 10px!important;
}
html body #app .dz-ok{color:#2E7D5B!important;-webkit-text-fill-color:#2E7D5B!important;font-weight:800!important}

/* --- Stages accordion --- */
html body #app .dz-stage,
html body #designerShell .dz-stage{
  border:1px solid rgba(28,46,62,.1)!important;
  border-radius:14px!important;
  margin-bottom:12px!important;
  overflow:hidden!important;
  background:#FFFFFF!important;
  box-shadow:0 2px 10px rgba(20,35,50,.04)!important;
}
html body #app .dz-stage-h{
  background:linear-gradient(180deg,#2A4158 0%,#243B52 100%)!important;
  border-left:3px solid #F6BA3E!important;
  padding:12px 14px!important;
  cursor:pointer!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .dz-stage-h *,
html body #app .dz-stage-h b,
html body #app .dz-stage-h span{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .dz-stage-h .dz-pill{
  background:rgba(246,186,62,.2)!important;
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  border:1px solid rgba(246,186,62,.4)!important;
}
html body #app .dz-st-review .dz-stage-h .dz-pill,
html body #app .dz-stage.dz-st-review .dz-pill{
  background:rgba(159,203,239,.2)!important;
  color:#9FCBEF!important;
  -webkit-text-fill-color:#9FCBEF!important;
  border-color:rgba(159,203,239,.4)!important;
}
html body #app .dz-st-approved .dz-stage-h .dz-pill,
html body #app .dz-stage.dz-st-approved .dz-pill{
  background:rgba(143,224,184,.2)!important;
  color:#8FE0B8!important;
  -webkit-text-fill-color:#8FE0B8!important;
  border-color:rgba(143,224,184,.4)!important;
}
html body #app .dz-stage-b{
  background:#FAFBFC!important;
  padding:14px 16px!important;
  border-top:1px solid rgba(28,46,62,.06)!important;
  color:#111827!important;
}
html body #app .dz-stage-b,
html body #app .dz-stage-b *{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body #app .dz-stage-b .dz-note{color:#6B7888!important;-webkit-text-fill-color:#6B7888!important}
html body #app .dz-stage-b .dz-warn{color:#8A5A00!important;-webkit-text-fill-color:#8A5A00!important}
html body #app .dz-stage-b .dz-ok{color:#2E7D5B!important;-webkit-text-fill-color:#2E7D5B!important}
html body #app .dz-stage-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin-top:12px!important;
  padding-top:12px!important;
  border-top:1px dashed rgba(28,46,62,.1)!important;
}

/* --- Variants / files --- */
html body #app .dz-variant{
  background:#FFFFFF!important;
  border:1px solid rgba(28,46,62,.1)!important;
  border-radius:12px!important;
  padding:12px 14px!important;
  margin:10px 0!important;
}
html body #app .dz-variant-on{
  border-color:rgba(246,186,62,.55)!important;
  background:linear-gradient(135deg,#FFFBF1,#FFFFFF)!important;
  box-shadow:0 0 0 1px rgba(246,186,62,.15)!important;
}
html body #app .dz-files li{
  padding:6px 0!important;
  border-bottom:1px solid rgba(28,46,62,.06)!important;
  color:#1C2E3E!important;
}
html body #app .dz-link{
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
  text-decoration:underline!important;
  text-underline-offset:2px!important;
  font-weight:800!important;
}
html body #app .dz-link:hover{color:#F6BA3E!important;-webkit-text-fill-color:#C48A12!important}

/* --- Buttons --- */
html body #app .dz-btn,
html body #designerShell .dz-btn{
  background:#EEF1F4!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:1px solid #D0D7E0!important;
  border-radius:12px!important;
  font-weight:700!important;
  padding:9px 14px!important;
  margin:0 6px 6px 0!important;
  box-shadow:none!important;
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease!important;
}
html body #app .dz-btn:hover{
  background:#E3E8EE!important;
  border-color:#C5CDD8!important;
  transform:translateY(-1px)!important;
}
html body #app .dz-btn-go,
html body #app .dz-btn.dz-btn-go{
  background:linear-gradient(135deg,#F6BA3E,#E8A82E)!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:none!important;
  font-weight:800!important;
  box-shadow:0 4px 14px rgba(246,186,62,.3)!important;
}
html body #app .dz-btn-go:hover{
  filter:brightness(1.05)!important;
  box-shadow:0 6px 18px rgba(246,186,62,.4)!important;
}
html body #app .dz-btn-sec{
  background:#FFFFFF!important;
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
  border:1px solid rgba(28,46,62,.15)!important;
}
html body #app .dz-btn-del{
  background:rgba(192,67,47,.1)!important;
  color:#C0432F!important;
  -webkit-text-fill-color:#C0432F!important;
  border:1px solid rgba(192,67,47,.3)!important;
}
html body #app .dz-file-btn{
  background:linear-gradient(135deg,#FFFBF1,#F7F9FB)!important;
  border:1px dashed rgba(246,186,62,.55)!important;
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
  border-radius:12px!important;
  font-weight:700!important;
  padding:10px 14px!important;
}
html body #app .dz-file-btn:hover{
  background:#FFF8E8!important;
  border-style:solid!important;
  border-color:#F6BA3E!important;
}

/* --- Inputs --- */
html body #app .dz-lbl{
  color:#6B7888!important;
  -webkit-text-fill-color:#6B7888!important;
  font-size:11px!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
  font-weight:800!important;
}
html body #app .dz-lbl input,
html body #app .dz-lbl textarea,
html body #app .dz-detail input,
html body #app .dz-detail textarea,
html body #app .dz-detail select,
html body #app #designEmbedDetail input,
html body #app #designEmbedDetail textarea,
html body #app #designEmbedDetail select,
html body #app #dzClientPhone,
html body #app #dzTotalSum{
  background:#FFFFFF!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:1px solid #D0D7E0!important;
  border-radius:10px!important;
  padding:10px 12px!important;
  font-weight:600!important;
  text-transform:none!important;
  letter-spacing:0!important;
}
html body #app .dz-lbl input:focus,
html body #app .dz-lbl textarea:focus,
html body #app #designEmbedDetail input:focus,
html body #app #dzClientPhone:focus,
html body #app #dzTotalSum:focus{
  border-color:rgba(246,186,62,.75)!important;
  box-shadow:0 0 0 3px rgba(246,186,62,.18)!important;
  outline:none!important;
}

/* --- Payments --- */
html body #app .dz-pay-summary{
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
  font-weight:700!important;
  padding:8px 0!important;
}
html body #app .dz-pay-summary b{font-weight:800!important}
html body #app .dz-pay-due b{color:#C45C00!important;-webkit-text-fill-color:#C45C00!important}
html body #app .dz-pay-row{
  border-top:1px solid rgba(28,46,62,.08)!important;
  padding:10px 0!important;
  color:#111827!important;
}
html body #app .dz-pay-wait{
  background:rgba(246,186,62,.08)!important;
  border-radius:10px!important;
  padding:10px 12px!important;
  margin:4px 0!important;
}

/* --- Empty states --- */
html body #app .dz-empty-main,
html body #app .dz-empty-state{
  color:#6B7888!important;
  -webkit-text-fill-color:#6B7888!important;
  padding:40px 24px!important;
  text-align:center!important;
  background:#FFFFFF!important;
  border:1px dashed rgba(28,46,62,.12)!important;
  border-radius:16px!important;
}
html body #app .dz-empty-ico{
  font-size:28px!important;
  margin-bottom:8px!important;
  opacity:.85!important;
}

/* --- Phone edit row --- */
html body #app .dz-phone-edit{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:flex-end!important;
  gap:10px!important;
  margin-top:12px!important;
}
html body #app .dz-phone-lbl{
  color:#6B7888!important;
  -webkit-text-fill-color:#6B7888!important;
  font-size:11px!important;
  font-weight:800!important;
  text-transform:uppercase!important;
  letter-spacing:.05em!important;
}

/* --- Client design cabinet: same polish on body cards --- */
html body #clientRoot .dz-client-wrap .body{
  background:linear-gradient(180deg,#F4F6F8,#EEF1F4)!important;
}
html body #clientRoot .dz-client-wrap .dz-block{
  box-shadow:0 4px 16px rgba(20,35,50,.05)!important;
  border-radius:16px!important;
}
html body #clientRoot .dz-client-wrap .dz-btn-go{
  background:linear-gradient(135deg,#F6BA3E,#E8A82E)!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:none!important;
  font-weight:800!important;
}

@media (max-width:780px){
  html body #app .dz-detail,
  html body #designerShell .dz-detail{
    padding:16px 14px 22px!important;
    border-radius:14px!important;
  }
  html body #app .dz-timeline{
    padding:12px 8px!important;
  }
  html body #app .dz-tl-item{min-width:70px!important}
}

/* =========================================================
   v5.91 — Дизайн-кабинет: premium navy + gold (строгая палитра)
   navy #1C2E3E / #263B50 · gold #F6BA3E · paper #EEF1F4
   ========================================================= */

/* Workspace canvas */
html body #designerShell .designer-main,
html body #app .designer-main,
html body #app .design-embed-detail,
html body #app #designEmbedDetail,
html body #app .design-embed-main,
html body #app .design-embed-wrap{
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%,rgba(246,186,62,.07),transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 100%,rgba(38,59,80,.06),transparent 45%),
    linear-gradient(165deg,#E8ECF0 0%,#EEF1F4 40%,#F4F6F8 100%)!important;
}

/* Embed top banner */
html body #app .dz-embed-head{
  margin:0 0 18px!important;
  padding:0!important;
  border:none!important;
}
html body #app .dz-embed-head-inner{
  display:flex!important;
  align-items:center!important;
  gap:16px!important;
  padding:18px 20px!important;
  background:linear-gradient(135deg,#152533 0%,#1C2E3E 45%,#263B50 100%)!important;
  border:1px solid rgba(246,186,62,.28)!important;
  border-radius:18px!important;
  box-shadow:0 12px 32px rgba(12,20,30,.2),inset 0 1px 0 rgba(255,255,255,.06)!important;
  position:relative!important;
  overflow:hidden!important;
}
html body #app .dz-embed-head-inner::after{
  content:""!important;
  position:absolute!important;
  left:0!important;right:0!important;bottom:0!important;
  height:2px!important;
  background:linear-gradient(90deg,transparent 0%,#F6BA3E 30%,#FBD888 50%,#F6BA3E 70%,transparent 100%)!important;
}
html body #app .dz-embed-mark{
  flex:none!important;
  width:48px!important;height:48px!important;
  border-radius:14px!important;
  display:grid!important;place-items:center!important;
  font-size:20px!important;
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  background:rgba(246,186,62,.12)!important;
  border:1px solid rgba(246,186,62,.4)!important;
  box-shadow:0 4px 14px rgba(0,0,0,.2),inset 0 0 0 1px rgba(255,255,255,.04)!important;
}
html body #app .dz-embed-head .eyebrow{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  font-size:10px!important;
  letter-spacing:.16em!important;
  text-transform:uppercase!important;
  font-weight:800!important;
  margin-bottom:4px!important;
}
html body #app .dz-embed-title{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  font-size:22px!important;
  font-weight:800!important;
  letter-spacing:-.02em!important;
  margin:0!important;
  line-height:1.2!important;
}
html body #app .dz-embed-sub{
  margin:5px 0 0!important;
  color:rgba(255,255,255,.62)!important;
  -webkit-text-fill-color:rgba(255,255,255,.62)!important;
  font-size:12.5px!important;
  font-weight:600!important;
}

/* Project hero (designer detail) */
html body #app .dz-detail,
html body #designerShell .dz-detail{
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
  padding:0!important;
  max-width:960px!important;
}
html body #app .dz-hero,
html body #designerShell .dz-hero,
html body #clientRoot .dz-client-wrap .dz-hero{
  background:linear-gradient(145deg,#152533 0%,#1C2E3E 42%,#2A4158 100%)!important;
  border:1px solid rgba(246,186,62,.3)!important;
  border-radius:20px!important;
  padding:22px 22px 18px!important;
  margin-bottom:16px!important;
  box-shadow:0 14px 36px rgba(12,20,30,.22),inset 0 1px 0 rgba(255,255,255,.06)!important;
  position:relative!important;
  overflow:hidden!important;
}
html body #app .dz-hero::before,
html body #clientRoot .dz-client-wrap .dz-hero::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  pointer-events:none!important;
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%,rgba(246,186,62,.16),transparent 55%),
    radial-gradient(ellipse 50% 60% at 100% 100%,rgba(59,110,156,.18),transparent 50%)!important;
}
html body #app .dz-hero > *,
html body #clientRoot .dz-client-wrap .dz-hero > *{position:relative!important;z-index:1!important}
html body #app .dz-hero-top{
  display:flex!important;
  justify-content:space-between!important;
  align-items:flex-start!important;
  gap:14px!important;
  flex-wrap:wrap!important;
}
html body #app .dz-hero-kicker,
html body #clientRoot .dz-client-wrap .dz-hero-kicker{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  font-size:10px!important;
  letter-spacing:.16em!important;
  text-transform:uppercase!important;
  font-weight:800!important;
  margin-bottom:8px!important;
}
html body #app .dz-hero h1,
html body #designerShell .dz-hero h1,
html body #clientRoot .dz-client-wrap .dz-hero h1{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  font-size:26px!important;
  font-weight:800!important;
  letter-spacing:-.03em!important;
  margin:0 0 6px!important;
  line-height:1.15!important;
}
html body #app .dz-hero .dz-sub,
html body #clientRoot .dz-client-wrap .dz-hero .sub{
  color:rgba(255,255,255,.72)!important;
  -webkit-text-fill-color:rgba(255,255,255,.72)!important;
  font-size:14px!important;
  font-weight:600!important;
}
html body #app .dz-hero .dz-note,
html body #app .dz-hero .dz-note-ro{
  color:rgba(255,255,255,.55)!important;
  -webkit-text-fill-color:rgba(255,255,255,.55)!important;
  margin-top:8px!important;
}
html body #app .dz-hero .dz-sum-chip,
html body #clientRoot .dz-client-wrap .dz-hero .dz-sum-chip{
  background:rgba(255,255,255,.08)!important;
  border:1px solid rgba(246,186,62,.35)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .dz-hero .dz-sum-chip b,
html body #clientRoot .dz-client-wrap .dz-hero .dz-sum-chip b{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
html body #app .dz-hero .dz-sum-bar,
html body #clientRoot .dz-client-wrap .dz-hero .dz-sum-bar{
  background:rgba(255,255,255,.12)!important;
  height:9px!important;
  margin-top:10px!important;
}
html body #app .dz-hero .dz-sum-bar i,
html body #clientRoot .dz-client-wrap .dz-hero .dz-sum-bar i{
  background:linear-gradient(90deg,#E8A82E,#F6BA3E,#FBD888)!important;
}
html body #app .dz-hero .dz-phone-lbl{
  color:rgba(255,255,255,.55)!important;
  -webkit-text-fill-color:rgba(255,255,255,.55)!important;
}
html body #app .dz-hero #dzClientPhone{
  background:rgba(0,0,0,.28)!important;
  border:1px solid rgba(255,255,255,.18)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .dz-hero #dzClientPhone::placeholder{
  color:rgba(255,255,255,.4)!important;
  -webkit-text-fill-color:rgba(255,255,255,.4)!important;
}
html body #app .dz-hero .dz-btn-sec{
  background:rgba(255,255,255,.1)!important;
  border:1px solid rgba(255,255,255,.22)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .dz-hero .dz-btn-del{
  background:rgba(192,67,47,.2)!important;
  border:1px solid rgba(255,107,90,.4)!important;
  color:#FFB4A8!important;
  -webkit-text-fill-color:#FFB4A8!important;
}
html body #app .dz-hero .dz-head-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
}

/* Timeline — richer */
html body #app .dz-timeline,
html body #designerShell .dz-timeline,
html body #clientRoot .dz-client-wrap .dz-timeline{
  display:flex!important;
  align-items:stretch!important;
  gap:0!important;
  flex-wrap:nowrap!important;
  margin:0 0 16px!important;
  padding:16px 14px 14px!important;
  background:linear-gradient(135deg,#101C28 0%,#1C2E3E 50%,#243B52 100%)!important;
  border-radius:18px!important;
  border:1px solid rgba(246,186,62,.28)!important;
  box-shadow:0 12px 28px rgba(12,20,30,.2)!important;
  overflow-x:auto!important;
}
html body #app .dz-tl-item{
  flex:1 1 0!important;
  min-width:96px!important;
  text-align:center!important;
  padding:2px 8px!important;
}
html body #app .dz-tl-dot{
  width:16px!important;height:16px!important;
  border-radius:50%!important;
  margin:0 auto 10px!important;
  background:rgba(255,255,255,.12)!important;
  border:2px solid rgba(255,255,255,.28)!important;
}
html body #app .dz-tl-approved .dz-tl-dot,
html body #app .dz-tl-item.dz-tl-approved .dz-tl-dot{
  background:linear-gradient(135deg,#F6BA3E,#E8A82E)!important;
  border-color:#FBD888!important;
  box-shadow:0 0 0 5px rgba(246,186,62,.22),0 0 16px rgba(246,186,62,.35)!important;
}
html body #app .dz-tl-review .dz-tl-dot,
html body #app .dz-tl-item.dz-tl-review .dz-tl-dot{
  background:linear-gradient(135deg,#5B8FBF,#3B6E9C)!important;
  border-color:#9FCBEF!important;
  box-shadow:0 0 0 5px rgba(59,110,156,.25)!important;
}
html body #app .dz-tl-label{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  font-size:12px!important;
  font-weight:800!important;
}
html body #app .dz-tl-st{
  color:rgba(255,255,255,.55)!important;
  -webkit-text-fill-color:rgba(255,255,255,.55)!important;
  font-size:10px!important;
  font-weight:700!important;
  margin-top:4px!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
}
html body #app .dz-tl-approved .dz-tl-st{color:#F6BA3E!important;-webkit-text-fill-color:#F6BA3E!important}
html body #app .dz-tl-review .dz-tl-st{color:#9FCBEF!important;-webkit-text-fill-color:#9FCBEF!important}
html body #app .dz-tl-line{
  flex:0 0 20px!important;
  align-self:center!important;
  height:2px!important;
  margin-top:-22px!important;
  background:linear-gradient(90deg,rgba(246,186,62,.55),rgba(255,255,255,.15))!important;
}

/* Content blocks — white cards, gold edge */
html body #app .dz-block,
html body #designerShell .dz-block,
html body #clientRoot .dz-client-wrap .dz-block{
  background:#FFFFFF!important;
  border:1px solid rgba(28,46,62,.08)!important;
  border-radius:18px!important;
  padding:18px 18px 18px 20px!important;
  margin-bottom:14px!important;
  box-shadow:0 8px 24px rgba(20,35,50,.06)!important;
  position:relative!important;
  overflow:hidden!important;
}
html body #app .dz-block::before,
html body #clientRoot .dz-client-wrap .dz-block::before{
  content:""!important;
  position:absolute!important;
  left:0!important;top:0!important;bottom:0!important;
  width:4px!important;
  background:linear-gradient(180deg,#F6BA3E 0%,#E8A82E 55%,rgba(246,186,62,.35) 100%)!important;
}
html body #app .dz-block-head{
  display:flex!important;
  align-items:baseline!important;
  justify-content:space-between!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  margin-bottom:6px!important;
}
html body #app .dz-block h3,
html body #clientRoot .dz-client-wrap .dz-block h3{
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
  font-size:16px!important;
  font-weight:800!important;
  margin:0 0 8px!important;
  letter-spacing:-.015em!important;
}
html body #app .dz-block-hint{
  color:#8A96A3!important;
  -webkit-text-fill-color:#8A96A3!important;
  font-size:11px!important;
  font-weight:700!important;
  text-transform:uppercase!important;
  letter-spacing:.06em!important;
}
html body #app .dz-block-danger{
  background:linear-gradient(165deg,#FFF5F4 0%,#FFFFFF 60%)!important;
  border-color:rgba(192,67,47,.2)!important;
}
html body #app .dz-block-danger::before{
  background:linear-gradient(180deg,#E57373,#C0432F)!important;
}

/* Stage accordion — solid navy headers */
html body #app .dz-stage,
html body #clientRoot .dz-client-wrap .dz-stage{
  border:1px solid rgba(28,46,62,.1)!important;
  border-radius:16px!important;
  overflow:hidden!important;
  margin-bottom:12px!important;
  box-shadow:0 4px 14px rgba(20,35,50,.05)!important;
  background:#FFFFFF!important;
}
html body #app .dz-stage-h,
html body #clientRoot .dz-client-wrap .dz-stage-h{
  background:linear-gradient(135deg,#1A2C3C 0%,#263B50 55%,#2F4A62 100%)!important;
  border-left:4px solid #F6BA3E!important;
  padding:13px 16px!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .dz-stage-h *,
html body #clientRoot .dz-client-wrap .dz-stage-h *{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .dz-stage-h .dz-pill{
  background:rgba(246,186,62,.18)!important;
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  border:1px solid rgba(246,186,62,.45)!important;
  border-radius:999px!important;
  font-weight:800!important;
  padding:4px 10px!important;
}
html body #app .dz-stage-b,
html body #clientRoot .dz-client-wrap .dz-stage-b{
  background:linear-gradient(180deg,#FAFBFC,#FFFFFF)!important;
  padding:16px!important;
  color:#111827!important;
}
html body #app .dz-stage-b,
html body #app .dz-stage-b *:not(.dz-btn-go):not(.dz-ok):not(.dz-warn){
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body #app .dz-stage-b .dz-note{color:#6B7888!important;-webkit-text-fill-color:#6B7888!important}
html body #app .dz-stage-b .dz-warn{color:#8A5A00!important;-webkit-text-fill-color:#8A5A00!important}
html body #app .dz-stage-b .dz-ok{color:#2E7D5B!important;-webkit-text-fill-color:#2E7D5B!important}
html body #app .dz-stage-b .dz-btn-go{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}

/* Buttons — brand gold primary */
html body #app .dz-btn-go,
html body #app .dz-btn.dz-btn-go,
html body #clientRoot .dz-client-wrap .dz-btn-go,
html body #designerShell .dz-btn-go{
  background:linear-gradient(135deg,#F6BA3E 0%,#E8A82E 100%)!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:none!important;
  border-radius:12px!important;
  font-weight:800!important;
  box-shadow:0 4px 16px rgba(246,186,62,.32)!important;
  padding:10px 16px!important;
}
html body #app .dz-btn,
html body #clientRoot .dz-client-wrap .dz-btn{
  border-radius:12px!important;
  font-weight:700!important;
  padding:9px 14px!important;
}
html body #app .dz-btn-sec{
  background:#FFFFFF!important;
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
  border:1px solid rgba(28,46,62,.14)!important;
}
html body #app .dz-file-btn{
  background:linear-gradient(135deg,#FFFBF1,#F7F9FB)!important;
  border:1px dashed rgba(246,186,62,.55)!important;
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
  border-radius:12px!important;
  font-weight:800!important;
}

/* Empty state */
html body #app .dz-empty-main{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  gap:8px!important;
  max-width:420px!important;
  margin:48px auto!important;
  padding:40px 28px!important;
  background:#FFFFFF!important;
  border:1px solid rgba(28,46,62,.08)!important;
  border-radius:20px!important;
  box-shadow:0 12px 32px rgba(20,35,50,.08)!important;
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
}
html body #app .dz-empty-main b{
  font-size:17px!important;
  font-weight:800!important;
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
}
html body #app .dz-empty-main span{
  color:#6B7888!important;
  -webkit-text-fill-color:#6B7888!important;
  font-size:13.5px!important;
  line-height:1.45!important;
  text-align:center!important;
}
html body #app .dz-empty-main .dz-empty-ico{
  width:56px!important;height:56px!important;
  border-radius:16px!important;
  display:grid!important;place-items:center!important;
  background:linear-gradient(135deg,rgba(246,186,62,.2),rgba(246,186,62,.08))!important;
  border:1px solid rgba(246,186,62,.4)!important;
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  font-size:22px!important;
  margin-bottom:6px!important;
}

/* Client typetag on hero */
html body #clientRoot .dz-client-wrap .dz-hero .typetag{
  background:rgba(246,186,62,.18)!important;
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  border:1px solid rgba(246,186,62,.4)!important;
  margin-top:10px!important;
}

/* Payments polish */
html body #app .dz-pay-summary{
  padding:10px 0!important;
  font-size:14.5px!important;
}
html body #app .dz-pay-row{
  padding:12px 4px!important;
}
html body #app .dz-pay-wait{
  background:linear-gradient(135deg,rgba(246,186,62,.12),rgba(246,186,62,.04))!important;
  border:1px solid rgba(246,186,62,.25)!important;
}

/* Side list cards — stronger active gold */
html body #designerShell .dz-card.active,
html body #app .client-card.active{
  /* keep client-card for embed list in #clientList when design mode */
}
html body #app[data-panel=design] .client-card,
html body.foreman-mode #app .client-card[data-pid]{
  /* design project cards in left list use client-card class */
}

/* Design project cards in left sidebar (client-card with data-pid) */
html body #app .client-card[data-pid]{
  background:linear-gradient(160deg,rgba(255,255,255,.07),rgba(255,255,255,.03))!important;
  border:1px solid rgba(255,255,255,.1)!important;
  border-radius:14px!important;
}
html body #app .client-card[data-pid].active{
  background:linear-gradient(105deg,rgba(246,186,62,.28),rgba(246,186,62,.1))!important;
  border-color:rgba(246,186,62,.5)!important;
  box-shadow:0 0 0 1px rgba(246,186,62,.2),0 8px 20px rgba(0,0,0,.18)!important;
}
html body #app .client-card[data-pid] .cc-name{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .client-card[data-pid] .cc-obj,
html body #app .client-card[data-pid] .cc-prog{
  color:rgba(255,255,255,.7)!important;
  -webkit-text-fill-color:rgba(255,255,255,.7)!important;
}
html body #app .client-card[data-pid] .cc-bar{
  background:rgba(255,255,255,.12)!important;
}
html body #app .client-card[data-pid] .cc-bar i{
  background:linear-gradient(90deg,#E8A82E,#F6BA3E)!important;
}
html body #app .client-card[data-pid] .cc-total,
html body #app .client-card[data-pid] .cc-total b{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}

/* Designer session — gold logout emphasis */
html body #designerShell #btnDesignerLogout.dsb-btn{
  background:linear-gradient(135deg,#F6BA3E,#E8A82E)!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:none!important;
  font-weight:800!important;
}

@media (max-width:780px){
  html body #app .dz-hero h1,
  html body #clientRoot .dz-client-wrap .dz-hero h1{font-size:21px!important}
  html body #app .dz-embed-head-inner{padding:14px 14px!important;gap:12px!important}
  html body #app .dz-embed-mark{width:42px!important;height:42px!important}
  html body #app .dz-timeline{flex-wrap:wrap!important}
}

/* =========================================================
   v5.92 — Дизайн-кабинет: БАЗА = фирменный navy,
   красота и акценты строятся ОТ синего фона
   navy #152533 / #1C2E3E / #263B50 · gold #F6BA3E
   ========================================================= */

/* ========== 1. ФОН — весь кабинет фирменный синий ========== */
html body #designerShell{
  background:linear-gradient(165deg,#101C28 0%,#152533 35%,#1C2E3E 70%,#243B52 100%)!important;
}
html body #designerShell .designer-app{
  background:transparent!important;
}
html body #designerShell .designer-main,
html body #app .designer-main,
html body #app .design-embed-detail,
html body #app #designEmbedDetail,
html body #app .design-embed-main,
html body #app .design-embed-wrap,
html body #app .main-inner.design-embed-root{
  background:
    radial-gradient(ellipse 90% 55% at 100% -10%,rgba(246,186,62,.1),transparent 52%),
    radial-gradient(ellipse 70% 45% at -5% 100%,rgba(59,110,156,.12),transparent 48%),
    linear-gradient(165deg,#101C28 0%,#152533 40%,#1C2E3E 75%,#243B52 100%)!important;
  color:#FFFFFF!important;
}

/* Sidebar already navy — unify depth */
html body #designerShell .designer-side{
  background:linear-gradient(180deg,#0E1822 0%,#152533 40%,#1C2E3E 100%)!important;
  border-right:1px solid rgba(246,186,62,.18)!important;
  box-shadow:4px 0 24px rgba(0,0,0,.25)!important;
}

/* ========== 2. Красота поверх navy ========== */

/* Embed header — glass on navy */
html body #app .dz-embed-head-inner{
  background:linear-gradient(135deg,rgba(38,59,80,.95) 0%,rgba(28,46,62,.98) 100%)!important;
  border:1px solid rgba(246,186,62,.35)!important;
  border-radius:20px!important;
  box-shadow:
    0 16px 40px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 0 1px rgba(246,186,62,.08)!important;
  backdrop-filter:blur(8px)!important;
}
html body #app .dz-embed-mark{
  background:linear-gradient(145deg,rgba(246,186,62,.22),rgba(246,186,62,.08))!important;
  border:1px solid rgba(246,186,62,.5)!important;
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  box-shadow:0 0 20px rgba(246,186,62,.2),inset 0 0 12px rgba(246,186,62,.08)!important;
}
html body #app .dz-embed-title{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  text-shadow:0 2px 12px rgba(0,0,0,.25)!important;
}
html body #app .dz-embed-sub{
  color:rgba(255,255,255,.55)!important;
  -webkit-text-fill-color:rgba(255,255,255,.55)!important;
}
html body #app .dz-embed-head .eyebrow{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}

/* Project hero — deeper navy glass + gold rim */
html body #app .dz-hero,
html body #designerShell .dz-hero,
html body #clientRoot .dz-client-wrap .dz-hero{
  background:
    radial-gradient(ellipse 80% 70% at 0% 0%,rgba(246,186,62,.18),transparent 50%),
    radial-gradient(ellipse 60% 50% at 100% 100%,rgba(59,110,156,.2),transparent 45%),
    linear-gradient(145deg,#0E1822 0%,#152533 40%,#1C2E3E 100%)!important;
  border:1px solid rgba(246,186,62,.38)!important;
  border-radius:22px!important;
  padding:24px 24px 20px!important;
  box-shadow:
    0 20px 48px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 40px rgba(246,186,62,.06)!important;
}
html body #app .dz-hero::after,
html body #clientRoot .dz-client-wrap .dz-hero::after{
  content:""!important;
  position:absolute!important;
  left:20px!important;right:20px!important;bottom:0!important;
  height:2px!important;
  background:linear-gradient(90deg,transparent,#F6BA3E 25%,#FBD888 50%,#F6BA3E 75%,transparent)!important;
  pointer-events:none!important;
  z-index:2!important;
}
html body #app .dz-hero-kicker,
html body #clientRoot .dz-client-wrap .dz-hero-kicker{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  text-shadow:0 0 20px rgba(246,186,62,.35)!important;
}
html body #app .dz-hero h1,
html body #clientRoot .dz-client-wrap .dz-hero h1{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  font-size:28px!important;
  text-shadow:0 2px 16px rgba(0,0,0,.3)!important;
}
html body #app .dz-hero .dz-sub,
html body #clientRoot .dz-client-wrap .dz-hero .sub{
  color:rgba(255,255,255,.7)!important;
  -webkit-text-fill-color:rgba(255,255,255,.7)!important;
}
html body #app .dz-hero .dz-sum-chip,
html body #clientRoot .dz-client-wrap .dz-hero .dz-sum-chip{
  background:rgba(246,186,62,.1)!important;
  border:1px solid rgba(246,186,62,.4)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  box-shadow:0 2px 10px rgba(0,0,0,.15)!important;
}
html body #app .dz-hero .dz-sum-chip b{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
html body #app .dz-hero .dz-sum-bar{
  background:rgba(255,255,255,.1)!important;
  box-shadow:inset 0 1px 3px rgba(0,0,0,.25)!important;
}
html body #app .dz-hero .dz-sum-bar i{
  background:linear-gradient(90deg,#C48A12,#F6BA3E 40%,#FBD888 100%)!important;
  box-shadow:0 0 12px rgba(246,186,62,.45)!important;
}

/* Timeline — floating on navy */
html body #app .dz-timeline,
html body #designerShell .dz-timeline,
html body #clientRoot .dz-client-wrap .dz-timeline{
  background:
    radial-gradient(ellipse 50% 80% at 50% 0%,rgba(246,186,62,.1),transparent 60%),
    linear-gradient(135deg,#0A121A 0%,#152533 50%,#1C2E3E 100%)!important;
  border:1px solid rgba(246,186,62,.32)!important;
  border-radius:20px!important;
  box-shadow:
    0 16px 40px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.06)!important;
  padding:18px 16px 16px!important;
}
html body #app .dz-tl-label{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  font-weight:800!important;
}
html body #app .dz-tl-st{
  color:rgba(255,255,255,.5)!important;
  -webkit-text-fill-color:rgba(255,255,255,.5)!important;
}
html body #app .dz-tl-approved .dz-tl-dot{
  background:linear-gradient(135deg,#F6BA3E,#E8A82E)!important;
  border-color:#FBD888!important;
  box-shadow:0 0 0 5px rgba(246,186,62,.2),0 0 20px rgba(246,186,62,.4)!important;
}
html body #app .dz-tl-approved .dz-tl-st{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
html body #app .dz-tl-line{
  background:linear-gradient(90deg,rgba(246,186,62,.6),rgba(255,255,255,.12))!important;
}

/* White content cards — float on navy (beauty contrast) */
html body #app .dz-block,
html body #designerShell .dz-block,
html body #clientRoot .dz-client-wrap .dz-block{
  background:linear-gradient(165deg,#FFFFFF 0%,#F7F9FB 100%)!important;
  border:1px solid rgba(255,255,255,.9)!important;
  border-radius:20px!important;
  box-shadow:
    0 12px 36px rgba(0,0,0,.22),
    0 2px 0 rgba(246,186,62,.15)!important;
  padding:18px 18px 18px 22px!important;
}
html body #app .dz-block::before,
html body #clientRoot .dz-client-wrap .dz-block::before{
  width:4px!important;
  background:linear-gradient(180deg,#F6BA3E 0%,#E8A82E 60%,rgba(246,186,62,.25) 100%)!important;
  box-shadow:0 0 12px rgba(246,186,62,.35)!important;
}
html body #app .dz-block h3{
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
}
html body #app .dz-block,
html body #app .dz-block *:not(.dz-btn-go):not(.dz-ok):not(.dz-warn):not(.dz-link){
  /* base black on white cards — overridden for buttons below */
}
html body #app .dz-block .dz-note{color:#5A6A7A!important;-webkit-text-fill-color:#5A6A7A!important}
html body #app .dz-block .dz-lbl{color:#6B7888!important;-webkit-text-fill-color:#6B7888!important}
html body #app .dz-block h3{color:#1C2E3E!important;-webkit-text-fill-color:#1C2E3E!important}
html body #app .dz-block .dz-pay-summary{color:#1C2E3E!important;-webkit-text-fill-color:#1C2E3E!important}
html body #app .dz-block .dz-pay-row{color:#111827!important;-webkit-text-fill-color:#111827!important}
html body #app .dz-block .dz-pay-lbl,
html body #app .dz-block .dz-pay-amt{color:#111827!important;-webkit-text-fill-color:#111827!important}

/* Stage — navy head pops on blue canvas */
html body #app .dz-stage,
html body #clientRoot .dz-client-wrap .dz-stage{
  border:1px solid rgba(246,186,62,.2)!important;
  border-radius:18px!important;
  box-shadow:0 10px 28px rgba(0,0,0,.2)!important;
  overflow:hidden!important;
  background:#FFFFFF!important;
}
html body #app .dz-stage-h,
html body #clientRoot .dz-client-wrap .dz-stage-h{
  background:linear-gradient(135deg,#0E1822 0%,#1C2E3E 50%,#2A4158 100%)!important;
  border-left:4px solid #F6BA3E!important;
  box-shadow:inset 0 -1px 0 rgba(246,186,62,.15)!important;
}
html body #app .dz-stage-h *,
html body #clientRoot .dz-client-wrap .dz-stage-h *{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .dz-stage-h .dz-pill{
  background:rgba(246,186,62,.15)!important;
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  border:1px solid rgba(246,186,62,.45)!important;
  box-shadow:0 0 12px rgba(246,186,62,.15)!important;
}
html body #app .dz-stage-b{
  background:linear-gradient(180deg,#FAFBFC 0%,#FFFFFF 100%)!important;
  color:#111827!important;
}
html body #app .dz-stage-b *:not(.dz-btn-go):not(.dz-ok):not(.dz-warn){
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body #app .dz-stage-b .dz-note{color:#6B7888!important;-webkit-text-fill-color:#6B7888!important}
html body #app .dz-stage-b .dz-btn-go{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}

/* Gold CTAs — jewel on blue */
html body #app .dz-btn-go,
html body #app .dz-btn.dz-btn-go,
html body #clientRoot .dz-client-wrap .dz-btn-go{
  background:linear-gradient(135deg,#FBD888 0%,#F6BA3E 40%,#E8A82E 100%)!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:none!important;
  border-radius:14px!important;
  font-weight:800!important;
  box-shadow:
    0 6px 20px rgba(246,186,62,.4),
    inset 0 1px 0 rgba(255,255,255,.35)!important;
  padding:11px 18px!important;
}
html body #app .dz-btn-go:hover{
  filter:brightness(1.06)!important;
  box-shadow:0 8px 24px rgba(246,186,62,.5),inset 0 1px 0 rgba(255,255,255,.4)!important;
  transform:translateY(-1px)!important;
}
html body #app .dz-btn-sec{
  background:rgba(255,255,255,.95)!important;
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
  border:1px solid rgba(246,186,62,.35)!important;
  border-radius:14px!important;
}
html body #app .dz-file-btn{
  background:linear-gradient(135deg,rgba(246,186,62,.12),rgba(255,255,255,.95))!important;
  border:1px dashed rgba(246,186,62,.55)!important;
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
  border-radius:14px!important;
  font-weight:800!important;
  box-shadow:0 4px 14px rgba(0,0,0,.08)!important;
}

/* Empty state — glass card on navy */
html body #app .dz-empty-main{
  background:linear-gradient(165deg,rgba(255,255,255,.98),rgba(247,249,251,.95))!important;
  border:1px solid rgba(246,186,62,.3)!important;
  border-radius:22px!important;
  box-shadow:
    0 20px 48px rgba(0,0,0,.28),
    0 0 0 1px rgba(246,186,62,.08),
    inset 0 1px 0 #fff!important;
  color:#1C2E3E!important;
}
html body #app .dz-empty-main .dz-empty-ico{
  background:linear-gradient(145deg,rgba(246,186,62,.25),rgba(246,186,62,.08))!important;
  border:1px solid rgba(246,186,62,.5)!important;
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  box-shadow:0 0 24px rgba(246,186,62,.25)!important;
}

/* Client design wrap body — navy base too */
html body #clientRoot .dz-client-wrap{
  background:transparent!important;
  box-shadow:none!important;
}
html body #clientRoot .dz-client-wrap .body{
  background:
    radial-gradient(ellipse 80% 40% at 100% 0%,rgba(246,186,62,.08),transparent 50%),
    linear-gradient(180deg,#152533 0%,#1C2E3E 50%,#243B52 100%)!important;
  padding:22px 20px 36px!important;
}
html body #clientRoot .dz-client-wrap .band{
  background:linear-gradient(135deg,#0E1822 0%,#152533 40%,#1C2E3E 100%)!important;
  border-bottom:1px solid rgba(246,186,62,.25)!important;
}

/* Detail container transparent so navy shows */
html body #app .dz-detail,
html body #designerShell .dz-detail{
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
  padding:4px 2px 24px!important;
}

/* Designer session bar — same firm navy family */
html body #designerShell .designer-session{
  background:linear-gradient(135deg,#0E1822 0%,#152533 40%,#1C2E3E 100%)!important;
  border-bottom:1px solid rgba(246,186,62,.3)!important;
  box-shadow:0 8px 28px rgba(0,0,0,.3)!important;
}
html body #designerShell .designer-session::after{
  background:linear-gradient(90deg,transparent,#F6BA3E 20%,#FBD888 50%,#F6BA3E 80%,transparent)!important;
  height:2px!important;
}

/* Side cards — gold glow active */
html body #designerShell .dz-card{
  background:linear-gradient(160deg,rgba(255,255,255,.07),rgba(255,255,255,.02))!important;
  border:1px solid rgba(255,255,255,.1)!important;
}
html body #designerShell .dz-card.active,
html body #designerShell .dz-card:hover{
  background:linear-gradient(105deg,rgba(246,186,62,.28),rgba(246,186,62,.08))!important;
  border-color:rgba(246,186,62,.5)!important;
  box-shadow:0 0 0 1px rgba(246,186,62,.2),0 8px 22px rgba(0,0,0,.25),0 0 24px rgba(246,186,62,.08)!important;
}
html body #app .client-card[data-pid].active{
  background:linear-gradient(105deg,rgba(246,186,62,.3),rgba(246,186,62,.1))!important;
  border-color:rgba(246,186,62,.55)!important;
  box-shadow:0 0 0 1px rgba(246,186,62,.25),0 10px 24px rgba(0,0,0,.25)!important;
}

/* Soft gold dust on navy canvas (beauty, not clutter) */
html body #app .design-embed-wrap::before{
  content:""!important;
  position:fixed!important;
  inset:0!important;
  pointer-events:none!important;
  z-index:0!important;
  background:
    radial-gradient(circle at 85% 15%,rgba(246,186,62,.06),transparent 28%),
    radial-gradient(circle at 10% 80%,rgba(59,110,156,.07),transparent 30%)!important;
}
html body #app .design-embed-wrap > *{position:relative!important;z-index:1!important}

/* Inputs in white blocks */
html body #app .dz-block input,
html body #app .dz-block textarea,
html body #app .dz-block select,
html body #app .dz-stage-b input,
html body #app .dz-stage-b textarea{
  background:#FFFFFF!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:1px solid #D0D7E0!important;
}
html body #app .dz-block input:focus,
html body #app .dz-stage-b input:focus,
html body #app .dz-stage-b textarea:focus{
  border-color:rgba(246,186,62,.7)!important;
  box-shadow:0 0 0 3px rgba(246,186,62,.2)!important;
}

/* Block danger on navy */
html body #app .dz-block-danger{
  background:linear-gradient(165deg,#FFF5F4,#FFFFFF)!important;
  box-shadow:0 12px 32px rgba(0,0,0,.2)!important;
}

/* =========================================================
   v5.93 — Дизайн-кабинет: аудит контраста текста
   Только designer shell + design embed. Без остального app.
   Navy bg → белый/золотой · Белые карточки → чёрный/серый
   ========================================================= */

/* --- A) Navy surfaces → white / gold --- */
html body #designerShell .designer-main,
html body #app .design-embed-wrap,
html body #app .design-embed-detail,
html body #app #designEmbedDetail,
html body #app .designer-main.design-embed-detail{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}

/* default text sitting on navy canvas (not inside white cards) */
html body #app #designEmbedDetail > .dz-empty-main,
html body #app .design-embed-detail > .dz-empty-main{
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
}

/* Hero / timeline / stage headers — white text */
html body #app .dz-hero,
html body #app .dz-hero *,
html body #designerShell .dz-hero,
html body #designerShell .dz-hero *,
html body #clientRoot .dz-client-wrap .dz-hero,
html body #clientRoot .dz-client-wrap .dz-hero *,
html body #app .dz-timeline,
html body #app .dz-timeline *,
html body #designerShell .dz-timeline,
html body #designerShell .dz-timeline *,
html body #clientRoot .dz-client-wrap .dz-timeline,
html body #clientRoot .dz-client-wrap .dz-timeline *,
html body #app .dz-stage-h,
html body #app .dz-stage-h *,
html body #designerShell .dz-stage-h,
html body #designerShell .dz-stage-h *,
html body #clientRoot .dz-client-wrap .dz-stage-h,
html body #clientRoot .dz-client-wrap .dz-stage-h *,
html body #app .dz-embed-head-inner,
html body #app .dz-embed-head-inner *,
html body #designerShell .designer-session,
html body #designerShell .designer-session *,
html body #designerShell .designer-side,
html body #designerShell .designer-side *{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}

/* gold accents on navy */
html body #app .dz-hero-kicker,
html body #app .dz-hero .dz-sum-chip b,
html body #app .dz-tl-approved .dz-tl-st,
html body #app .dz-stage-h .dz-pill,
html body #app .dz-embed-head .eyebrow,
html body #app .dz-embed-mark,
html body #designerShell .designer-side-h span,
html body #designerShell .designer-side-h #designerSideTitle,
html body #designerShell .dz-card-st,
html body #clientRoot .dz-client-wrap .dz-hero-kicker,
html body #clientRoot .dz-client-wrap .dz-hero .dz-sum-chip b,
html body #clientRoot .dz-client-wrap .band .e{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}

/* muted white on navy */
html body #app .dz-hero .dz-sub,
html body #app .dz-hero .dz-note,
html body #app .dz-tl-st,
html body #app .dz-embed-sub,
html body #clientRoot .dz-client-wrap .dz-hero .sub{
  color:rgba(255,255,255,.7)!important;
  -webkit-text-fill-color:rgba(255,255,255,.7)!important;
}

/* --- B) White cards → black / muted --- */
html body #app .dz-block,
html body #app .dz-block *:not(.dz-btn-go):not(.dz-ok):not(.dz-warn),
html body #designerShell .dz-block,
html body #designerShell .dz-block *:not(.dz-btn-go):not(.dz-ok):not(.dz-warn),
html body #clientRoot .dz-client-wrap .dz-block,
html body #clientRoot .dz-client-wrap .dz-block *:not(.dz-btn-go):not(.dz-ok):not(.dz-warn),
html body #app .dz-stage-b,
html body #app .dz-stage-b *:not(.dz-btn-go):not(.dz-ok):not(.dz-warn),
html body #designerShell .dz-stage-b,
html body #designerShell .dz-stage-b *:not(.dz-btn-go):not(.dz-ok):not(.dz-warn),
html body #clientRoot .dz-client-wrap .dz-stage-b,
html body #clientRoot .dz-client-wrap .dz-stage-b *:not(.dz-btn-go):not(.dz-ok):not(.dz-warn),
html body #app .dz-variant,
html body #app .dz-variant *,
html body #app .dz-empty-main,
html body #app .dz-empty-main *,
html body #app .dz-empty-state,
html body #app .dz-empty-state *{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}

/* muted on white */
html body #app .dz-block .dz-note,
html body #app .dz-block .dz-lbl,
html body #app .dz-block .dz-block-hint,
html body #app .dz-stage-b .dz-note,
html body #app .dz-stage-b .dz-lbl,
html body #app .dz-empty-main span,
html body #app .dz-empty-main .dz-note,
html body #designerShell .dz-block .dz-note,
html body #designerShell .dz-block .dz-lbl,
html body #clientRoot .dz-client-wrap .dz-block .dz-note{
  color:#5A6A7A!important;
  -webkit-text-fill-color:#5A6A7A!important;
}

/* headings on white */
html body #app .dz-block h3,
html body #app .dz-block b,
html body #app .dz-block .dz-pay-summary,
html body #app .dz-block .dz-pay-lbl,
html body #app .dz-block .dz-pay-amt,
html body #app .dz-variant b,
html body #app .dz-empty-main b,
html body #designerShell .dz-block h3,
html body #clientRoot .dz-client-wrap .dz-block h3{
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
}

/* status colors on white */
html body #app .dz-block .dz-ok,
html body #app .dz-stage-b .dz-ok,
html body #clientRoot .dz-client-wrap .dz-ok{
  color:#2E7D5B!important;
  -webkit-text-fill-color:#2E7D5B!important;
}
html body #app .dz-block .dz-warn,
html body #app .dz-stage-b .dz-warn,
html body #clientRoot .dz-client-wrap .dz-warn{
  color:#8A5A00!important;
  -webkit-text-fill-color:#8A5A00!important;
}
html body #app .dz-block .dz-pay-due b,
html body #app .dz-pay-due b{
  color:#C45C00!important;
  -webkit-text-fill-color:#C45C00!important;
}
html body #app .dz-block .dz-link,
html body #app .dz-stage-b .dz-link{
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
}
html body #app .dz-block .dz-mini,
html body #app .dz-stage-b .dz-mini{
  color:#C0432F!important;
  -webkit-text-fill-color:#C0432F!important;
}

/* buttons on white cards */
html body #app .dz-block .dz-btn,
html body #app .dz-stage-b .dz-btn,
html body #app .dz-empty-main .dz-btn{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body #app .dz-block .dz-btn-go,
html body #app .dz-stage-b .dz-btn-go,
html body #app .dz-btn-go,
html body #app .dz-btn.dz-btn-go,
html body #clientRoot .dz-client-wrap .dz-btn-go{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  background:linear-gradient(135deg,#F6BA3E,#E8A82E)!important;
}
html body #app .dz-block .dz-btn-del,
html body #app .dz-btn-del{
  color:#C0432F!important;
  -webkit-text-fill-color:#C0432F!important;
}

/* inputs on white */
html body #app .dz-block input,
html body #app .dz-block textarea,
html body #app .dz-block select,
html body #app .dz-stage-b input,
html body #app .dz-stage-b textarea,
html body #app .dz-stage-b select,
html body #app .dz-empty-main input{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  background:#FFFFFF!important;
}
html body #app .dz-block input::placeholder,
html body #app .dz-stage-b input::placeholder,
html body #app .dz-stage-b textarea::placeholder{
  color:#8A96A3!important;
  -webkit-text-fill-color:#8A96A3!important;
}

/* pills inside white stage body (not header) */
html body #app .dz-stage-b .dz-pill{
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
  background:#EEF1F4!important;
}
html body #app .dz-stage-b .dz-pill-on,
html body #app .dz-variant-on .dz-pill{
  color:#7A4F0C!important;
  -webkit-text-fill-color:#7A4F0C!important;
  background:#FFF1D3!important;
}

/* empty main icon gold on white card */
html body #app .dz-empty-main .dz-empty-ico{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}

/* file btn / sec on white */
html body #app .dz-file-btn{
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
}
html body #app .dz-btn-sec{
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
}

/* hero phone field stays white text (on navy) */
html body #app .dz-hero input,
html body #app .dz-hero #dzClientPhone{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .dz-hero input::placeholder{
  color:rgba(255,255,255,.45)!important;
  -webkit-text-fill-color:rgba(255,255,255,.45)!important;
}
html body #app .dz-hero .dz-btn-sec{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .dz-hero .dz-btn-del{
  color:#FFB4A8!important;
  -webkit-text-fill-color:#FFB4A8!important;
}

/* sidebar list text readable */
html body #designerShell .dz-card,
html body #designerShell .dz-card *{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #designerShell .dz-card-obj{
  color:rgba(255,255,255,.7)!important;
  -webkit-text-fill-color:rgba(255,255,255,.7)!important;
}
html body #designerShell .dz-card-st{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
html body #app .client-card[data-pid] .cc-name{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .client-card[data-pid] .cc-obj,
html body #app .client-card[data-pid] .cc-prog,
html body #app .client-card[data-pid] .cc-pcts,
html body #app .client-card[data-pid] .cc-pcts em{
  color:rgba(255,255,255,.7)!important;
  -webkit-text-fill-color:rgba(255,255,255,.7)!important;
}
html body #app .client-card[data-pid] .cc-total,
html body #app .client-card[data-pid] .cc-total b{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}

/* designer session / gold CTA buttons on navy */
html body #designerShell .dsb-role{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #designerShell .dsb-btn{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #designerShell .dsb-back,
html body #designerShell #btnDesignerLogout.dsb-btn,
html body #designerShell .btn-dz-add{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}

/* media re-assert (beats global white-all) */
@media (max-width:780px),(min-width:781px){
  html body #app .dz-block,
  html body #app .dz-block h3,
  html body #app .dz-block .dz-pay-summary,
  html body #app .dz-block .dz-pay-row,
  html body #app .dz-stage-b,
  html body #app .dz-stage-b *:not(.dz-btn-go):not(.dz-ok):not(.dz-warn),
  html body #app .dz-empty-main,
  html body #app .dz-empty-main b{
    color:#111827!important;
    -webkit-text-fill-color:#111827!important;
  }
  html body #app .dz-block .dz-note,
  html body #app .dz-block .dz-lbl,
  html body #app .dz-stage-b .dz-note,
  html body #app .dz-empty-main span{
    color:#5A6A7A!important;
    -webkit-text-fill-color:#5A6A7A!important;
  }
  html body #app .dz-hero,
  html body #app .dz-hero h1,
  html body #app .dz-timeline,
  html body #app .dz-tl-label,
  html body #app .dz-stage-h,
  html body #app .dz-stage-h *,
  html body #app .dz-embed-title{
    color:#FFFFFF!important;
    -webkit-text-fill-color:#FFFFFF!important;
  }
  html body #app .dz-hero-kicker,
  html body #app .dz-hero .dz-sum-chip b,
  html body #app .dz-stage-h .dz-pill,
  html body #app .dz-embed-head .eyebrow{
    color:#F6BA3E!important;
    -webkit-text-fill-color:#F6BA3E!important;
  }
  html body #app .dz-btn-go,
  html body #app .dz-btn.dz-btn-go{
    color:#111827!important;
    -webkit-text-fill-color:#111827!important;
  }
}

/* =========================================================
   v5.94 — Дизайн: hero + timeline + stage-h = БЕЛЫЙ текст
   (перебивает любые чёрные правила)
   ========================================================= */

/* --- Hero: имя, адрес, м², чипы, телефон, кнопки --- */
html body #app .dz-hero,
html body #app .dz-hero *,
html body #app .dz-detail .dz-hero,
html body #app .dz-detail .dz-hero *,
html body #app #designEmbedDetail .dz-hero,
html body #app #designEmbedDetail .dz-hero *,
html body #app .design-embed-detail .dz-hero,
html body #app .design-embed-detail .dz-hero *,
html body #designerShell .dz-hero,
html body #designerShell .dz-hero *,
html body #clientRoot .dz-client-wrap .dz-hero,
html body #clientRoot .dz-client-wrap .dz-hero *{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .dz-hero h1,
html body #app .dz-hero .dz-sub,
html body #app .dz-hero .dz-sum-chip,
html body #app .dz-hero .dz-sum-chip b,
html body #app .dz-hero .dz-phone-lbl,
html body #app .dz-hero .dz-meta,
html body #app .dz-hero .dz-note,
html body #app .dz-hero input,
html body #app .dz-hero #dzClientPhone,
html body #app .dz-hero .dz-btn,
html body #app .dz-hero .dz-btn-sec,
html body #app .dz-hero .dz-btn-del,
html body #app .dz-hero .dz-btn-go,
html body #app .dz-hero button,
html body #designerShell .dz-hero h1,
html body #designerShell .dz-hero .dz-sub,
html body #designerShell .dz-hero .dz-sum-chip,
html body #designerShell .dz-hero .dz-sum-chip b,
html body #designerShell .dz-hero .dz-btn,
html body #designerShell .dz-hero button,
html body #clientRoot .dz-client-wrap .dz-hero h1,
html body #clientRoot .dz-client-wrap .dz-hero .sub,
html body #clientRoot .dz-client-wrap .dz-hero .dz-sum-chip,
html body #clientRoot .dz-client-wrap .dz-hero .dz-sum-chip b{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
/* kicker остаётся золотым для акцента; если нужен белый — ниже можно снять */
html body #app .dz-hero-kicker,
html body #designerShell .dz-hero-kicker,
html body #clientRoot .dz-client-wrap .dz-hero-kicker{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
/* чипы: белый текст на полупрозрачном */
html body #app .dz-hero .dz-sum-chip,
html body #designerShell .dz-hero .dz-sum-chip,
html body #clientRoot .dz-client-wrap .dz-hero .dz-sum-chip{
  background:rgba(255,255,255,.12)!important;
  border:1px solid rgba(255,255,255,.28)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .dz-hero .dz-sum-chip b,
html body #designerShell .dz-hero .dz-sum-chip b,
html body #clientRoot .dz-client-wrap .dz-hero .dz-sum-chip b{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
/* кнопки в hero — белый текст */
html body #app .dz-hero .dz-btn,
html body #app .dz-hero .dz-btn-sec,
html body #app .dz-hero .dz-btn-del,
html body #app .dz-hero .dz-btn-go,
html body #app .dz-hero button[data-action],
html body #designerShell .dz-hero .dz-btn,
html body #designerShell .dz-hero button{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  border-color:rgba(255,255,255,.35)!important;
  background:rgba(255,255,255,.12)!important;
}
html body #app .dz-hero .dz-btn-del,
html body #designerShell .dz-hero .dz-btn-del{
  background:rgba(192,67,47,.35)!important;
  border-color:rgba(255,180,168,.5)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .dz-hero input,
html body #app .dz-hero #dzClientPhone{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  background:rgba(0,0,0,.28)!important;
  border:1px solid rgba(255,255,255,.25)!important;
}
html body #app .dz-hero input::placeholder{
  color:rgba(255,255,255,.5)!important;
  -webkit-text-fill-color:rgba(255,255,255,.5)!important;
}

/* --- Timeline: Планировка / Визуализация / Тех.план + статусы --- */
html body #app .dz-timeline,
html body #app .dz-timeline *,
html body #app .dz-tl-item,
html body #app .dz-tl-item *,
html body #app .dz-tl-label,
html body #app .dz-tl-st,
html body #designerShell .dz-timeline,
html body #designerShell .dz-timeline *,
html body #designerShell .dz-tl-label,
html body #designerShell .dz-tl-st,
html body #clientRoot .dz-client-wrap .dz-timeline,
html body #clientRoot .dz-client-wrap .dz-timeline *,
html body #clientRoot .dz-client-wrap .dz-tl-label,
html body #clientRoot .dz-client-wrap .dz-tl-st{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .dz-tl-approved .dz-tl-st,
html body #app .dz-tl-review .dz-tl-st,
html body #app .dz-tl-work .dz-tl-st,
html body #app .dz-tl-item.dz-tl-approved .dz-tl-st,
html body #app .dz-tl-item.dz-tl-review .dz-tl-st,
html body #app .dz-tl-item.dz-tl-work .dz-tl-st{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}

/* --- Шапка этапов работ: белый текст --- */
html body #app .dz-stage-h,
html body #app .dz-stage-h *,
html body #app .dz-stage-h b,
html body #app .dz-stage-h span,
html body #app .dz-stage-h .dz-pill,
html body #app .dz-stage .dz-stage-h,
html body #app .dz-stage .dz-stage-h *,
html body #designerShell .dz-stage-h,
html body #designerShell .dz-stage-h *,
html body #designerShell .dz-stage-h .dz-pill,
html body #clientRoot .dz-client-wrap .dz-stage-h,
html body #clientRoot .dz-client-wrap .dz-stage-h *,
html body #clientRoot .dz-client-wrap .dz-stage-h .dz-pill{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .dz-stage-h .dz-pill,
html body #designerShell .dz-stage-h .dz-pill,
html body #clientRoot .dz-client-wrap .dz-stage-h .dz-pill{
  background:rgba(255,255,255,.15)!important;
  border:1px solid rgba(255,255,255,.35)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}

/* media: жёстко перебить чёрный text-fill */
@media (max-width:780px),(min-width:781px){
  html body #app .dz-hero,
  html body #app .dz-hero *,
  html body #app .dz-hero h1,
  html body #app .dz-hero .dz-sub,
  html body #app .dz-hero .dz-sum-chip,
  html body #app .dz-hero .dz-sum-chip b,
  html body #app .dz-hero .dz-phone-lbl,
  html body #app .dz-hero button,
  html body #app .dz-hero input,
  html body #app .dz-timeline,
  html body #app .dz-timeline *,
  html body #app .dz-tl-label,
  html body #app .dz-tl-st,
  html body #app .dz-stage-h,
  html body #app .dz-stage-h *,
  html body #app .dz-stage-h .dz-pill,
  html body #designerShell .dz-hero,
  html body #designerShell .dz-hero *,
  html body #designerShell .dz-timeline *,
  html body #designerShell .dz-stage-h,
  html body #designerShell .dz-stage-h *,
  html body #clientRoot .dz-client-wrap .dz-hero,
  html body #clientRoot .dz-client-wrap .dz-hero *,
  html body #clientRoot .dz-client-wrap .dz-timeline *,
  html body #clientRoot .dz-client-wrap .dz-stage-h,
  html body #clientRoot .dz-client-wrap .dz-stage-h *{
    color:#FFFFFF!important;
    -webkit-text-fill-color:#FFFFFF!important;
  }
}

/* v5.95 — absolute white on navy heads (timeline + stage-h + hero) */
html body #app #designEmbedDetail .dz-stage-h,
html body #app #designEmbedDetail .dz-stage-h b,
html body #app #designEmbedDetail .dz-stage-h span,
html body #app #designEmbedDetail .dz-stage-h .dz-pill,
html body #app #designEmbedDetail .dz-stage-h .dz-chev,
html body #app #designEmbedDetail .dz-tl-label,
html body #app #designEmbedDetail .dz-tl-st,
html body #app #designEmbedDetail .dz-hero,
html body #app #designEmbedDetail .dz-hero h1,
html body #app #designEmbedDetail .dz-hero .dz-sub,
html body #app #designEmbedDetail .dz-hero .dz-sum-chip,
html body #app #designEmbedDetail .dz-hero .dz-sum-chip b,
html body #app #designEmbedDetail .dz-hero .dz-phone-lbl,
html body #app #designEmbedDetail .dz-hero button,
html body #app #designEmbedDetail .dz-hero input,
html body #app .design-embed-detail .dz-stage-h,
html body #app .design-embed-detail .dz-stage-h *,
html body #app .design-embed-detail .dz-tl-label,
html body #app .design-embed-detail .dz-tl-st,
html body #app .design-embed-detail .dz-hero,
html body #app .design-embed-detail .dz-hero *,
html body #designerShell .designer-main .dz-stage-h,
html body #designerShell .designer-main .dz-stage-h *,
html body #designerShell .designer-main .dz-tl-label,
html body #designerShell .designer-main .dz-tl-st,
html body #designerShell .designer-main .dz-hero,
html body #designerShell .designer-main .dz-hero *{
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  opacity:1!important;
}
html body #app #designEmbedDetail .dz-stage-h .dz-pill,
html body #app .design-embed-detail .dz-stage-h .dz-pill,
html body #designerShell .designer-main .dz-stage-h .dz-pill{
  background:rgba(255,255,255,.16)!important;
  border:1px solid rgba(255,255,255,.4)!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}

/* =========================================================
   v5.96 — Дизайн-кабинет: лёгкий style-play (navy + gold)
   Сохраняем белый текст на navy-шапках
   ========================================================= */

/* Canvas: глубже, мягче glow */
html body #designerShell .designer-main,
html body #app .design-embed-wrap,
html body #app #designEmbedDetail,
html body #app .design-embed-detail,
html body #app .designer-main{
  background:
    radial-gradient(ellipse 70% 45% at 90% 0%,rgba(246,186,62,.14),transparent 55%),
    radial-gradient(ellipse 55% 40% at 5% 95%,rgba(59,110,156,.14),transparent 50%),
    linear-gradient(168deg,#0B141C 0%,#121E2A 32%,#1A2C3C 68%,#243B52 100%)!important;
}

/* Embed banner — тоньше, «ювелирнее» */
html body #app .dz-embed-head-inner{
  border-radius:22px!important;
  border:1px solid rgba(246,186,62,.4)!important;
  box-shadow:
    0 18px 44px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.1),
    0 0 0 1px rgba(246,186,62,.06)!important;
  padding:20px 22px!important;
}
html body #app .dz-embed-mark{
  width:52px!important;height:52px!important;
  border-radius:16px!important;
  font-size:22px!important;
  box-shadow:0 0 28px rgba(246,186,62,.28),inset 0 0 16px rgba(246,186,62,.1)!important;
}
html body #app .dz-embed-title{
  font-size:24px!important;
  letter-spacing:-.03em!important;
}

/* Hero — больше «воздуха» и золотой каймы */
html body #app .dz-hero,
html body #designerShell .dz-hero,
html body #clientRoot .dz-client-wrap .dz-hero{
  border-radius:24px!important;
  padding:26px 26px 22px!important;
  border:1px solid rgba(246,186,62,.42)!important;
  box-shadow:
    0 22px 50px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.1),
    0 0 60px rgba(246,186,62,.07)!important;
}
html body #app .dz-hero h1,
html body #clientRoot .dz-client-wrap .dz-hero h1{
  font-size:30px!important;
  letter-spacing:-.035em!important;
  line-height:1.1!important;
}
html body #app .dz-hero-kicker{
  letter-spacing:.18em!important;
  font-size:10.5px!important;
  opacity:.95!important;
}
html body #app .dz-hero .dz-sum-chip{
  border-radius:999px!important;
  padding:7px 14px!important;
  backdrop-filter:blur(6px)!important;
  background:rgba(255,255,255,.1)!important;
  border:1px solid rgba(255,255,255,.22)!important;
  transition:background .15s ease,border-color .15s ease,transform .15s ease!important;
}
html body #app .dz-hero .dz-sum-chip:hover{
  background:rgba(246,186,62,.18)!important;
  border-color:rgba(246,186,62,.45)!important;
  transform:translateY(-1px)!important;
}
html body #app .dz-hero .dz-sum-bar{
  height:10px!important;
  margin-top:12px!important;
  border-radius:99px!important;
  background:rgba(0,0,0,.35)!important;
}
html body #app .dz-hero .dz-sum-bar i{
  border-radius:99px!important;
  background:linear-gradient(90deg,#C48A12 0%,#F6BA3E 45%,#FBD888 100%)!important;
  box-shadow:0 0 14px rgba(246,186,62,.5)!important;
}
html body #app .dz-hero .dz-btn,
html body #app .dz-hero button{
  border-radius:12px!important;
  padding:9px 14px!important;
  font-weight:800!important;
  letter-spacing:.01em!important;
  transition:transform .15s ease,background .15s ease,box-shadow .15s ease!important;
}
html body #app .dz-hero .dz-btn:hover,
html body #app .dz-hero button:hover{
  transform:translateY(-1px)!important;
  background:rgba(246,186,62,.22)!important;
  border-color:rgba(246,186,62,.5)!important;
  box-shadow:0 4px 14px rgba(0,0,0,.2)!important;
}
html body #app .dz-hero #dzClientPhone{
  border-radius:12px!important;
  padding:10px 14px!important;
  min-width:180px!important;
}

/* Timeline — «капсула» */
html body #app .dz-timeline,
html body #designerShell .dz-timeline,
html body #clientRoot .dz-client-wrap .dz-timeline{
  border-radius:22px!important;
  padding:20px 18px 18px!important;
  border:1px solid rgba(246,186,62,.35)!important;
  box-shadow:
    0 18px 40px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.07)!important;
  gap:4px!important;
}
html body #app .dz-tl-item{
  padding:6px 10px!important;
}
html body #app .dz-tl-dot{
  width:18px!important;height:18px!important;
  margin-bottom:11px!important;
  transition:transform .2s ease,box-shadow .2s ease!important;
}
html body #app .dz-tl-item:hover .dz-tl-dot{
  transform:scale(1.12)!important;
}
html body #app .dz-tl-label{
  font-size:12.5px!important;
  letter-spacing:.01em!important;
}
html body #app .dz-tl-st{
  font-size:9.5px!important;
  letter-spacing:.08em!important;
  margin-top:5px!important;
  opacity:.9!important;
}
html body #app .dz-tl-approved .dz-tl-dot{
  box-shadow:0 0 0 6px rgba(246,186,62,.18),0 0 22px rgba(246,186,62,.45)!important;
}
html body #app .dz-tl-line{
  flex:0 0 24px!important;
  height:2px!important;
  margin-top:-20px!important;
  background:linear-gradient(90deg,rgba(246,186,62,.65),rgba(255,255,255,.14))!important;
  opacity:.9!important;
}

/* White cards — мягче, «парят» */
html body #app .dz-block,
html body #designerShell .dz-block,
html body #clientRoot .dz-client-wrap .dz-block{
  border-radius:20px!important;
  padding:20px 20px 18px 22px!important;
  margin-bottom:16px!important;
  box-shadow:
    0 14px 36px rgba(0,0,0,.24),
    0 1px 0 rgba(255,255,255,.9) inset!important;
  border:1px solid rgba(255,255,255,.85)!important;
  transition:box-shadow .2s ease,transform .2s ease!important;
}
html body #app .dz-block:hover{
  box-shadow:
    0 18px 42px rgba(0,0,0,.28),
    0 0 0 1px rgba(246,186,62,.12),
    0 1px 0 #fff inset!important;
}
html body #app .dz-block::before{
  width:4px!important;
  background:linear-gradient(180deg,#FBD888 0%,#F6BA3E 40%,#E8A82E 100%)!important;
  box-shadow:0 0 14px rgba(246,186,62,.4)!important;
}
html body #app .dz-block h3{
  font-size:16.5px!important;
  letter-spacing:-.02em!important;
  margin-bottom:10px!important;
}
html body #app .dz-block-head{
  margin-bottom:8px!important;
  padding-bottom:8px!important;
  border-bottom:1px solid rgba(28,46,62,.06)!important;
}
html body #app .dz-block-hint{
  font-size:10.5px!important;
  letter-spacing:.08em!important;
}

/* Stage headers — чётче */
html body #app .dz-stage,
html body #clientRoot .dz-client-wrap .dz-stage{
  border-radius:18px!important;
  margin-bottom:14px!important;
  box-shadow:0 12px 30px rgba(0,0,0,.22)!important;
  border:1px solid rgba(246,186,62,.22)!important;
  overflow:hidden!important;
}
html body #app .dz-stage-h,
html body #clientRoot .dz-client-wrap .dz-stage-h{
  padding:14px 16px!important;
  background:linear-gradient(135deg,#0E1822 0%,#1A2C3C 48%,#2A4158 100%)!important;
  border-left:4px solid #F6BA3E!important;
  transition:filter .15s ease!important;
}
html body #app .dz-stage-h:hover{
  filter:brightness(1.06)!important;
}
html body #app .dz-stage-h b{
  font-size:14.5px!important;
  font-weight:800!important;
  letter-spacing:-.01em!important;
}
html body #app .dz-stage-h .dz-pill{
  border-radius:999px!important;
  padding:5px 12px!important;
  font-size:11px!important;
  font-weight:800!important;
  letter-spacing:.04em!important;
  text-transform:none!important;
}
html body #app .dz-stage-h .dz-chev{
  font-size:11px!important;
  opacity:.75!important;
  transition:transform .2s ease!important;
}
html body #app .dz-stage.dz-open .dz-stage-h .dz-chev{
  transform:rotate(180deg)!important;
}
html body #app .dz-stage-b{
  padding:16px 16px 18px!important;
  background:linear-gradient(180deg,#F8FAFC 0%,#FFFFFF 100%)!important;
}

/* Buttons — gold jewel */
html body #app .dz-btn-go,
html body #app .dz-btn.dz-btn-go,
html body #clientRoot .dz-client-wrap .dz-btn-go{
  border-radius:14px!important;
  padding:11px 18px!important;
  background:linear-gradient(145deg,#FBD888 0%,#F6BA3E 42%,#E0A028 100%)!important;
  box-shadow:
    0 6px 20px rgba(246,186,62,.42),
    inset 0 1px 0 rgba(255,255,255,.45)!important;
  letter-spacing:.01em!important;
}
html body #app .dz-btn-go:hover{
  transform:translateY(-2px)!important;
  box-shadow:0 10px 26px rgba(246,186,62,.5),inset 0 1px 0 rgba(255,255,255,.5)!important;
}
html body #app .dz-btn,
html body #app .dz-btn-sec{
  border-radius:12px!important;
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease!important;
}
html body #app .dz-btn:hover,
html body #app .dz-btn-sec:hover{
  transform:translateY(-1px)!important;
}
html body #app .dz-file-btn{
  border-radius:14px!important;
  padding:11px 16px!important;
  transition:background .15s ease,border-color .15s ease,transform .15s ease!important;
}
html body #app .dz-file-btn:hover{
  transform:translateY(-1px)!important;
  box-shadow:0 6px 16px rgba(246,186,62,.15)!important;
}

/* Variants */
html body #app .dz-variant{
  border-radius:14px!important;
  padding:12px 14px!important;
  border:1px solid rgba(28,46,62,.1)!important;
  transition:border-color .15s ease,box-shadow .15s ease!important;
}
html body #app .dz-variant:hover{
  border-color:rgba(246,186,62,.35)!important;
  box-shadow:0 4px 14px rgba(20,35,50,.06)!important;
}
html body #app .dz-variant-on{
  border-color:rgba(246,186,62,.55)!important;
  background:linear-gradient(135deg,#FFFBF1,#FFFFFF)!important;
  box-shadow:0 0 0 1px rgba(246,186,62,.2),0 6px 16px rgba(246,186,62,.1)!important;
}

/* Empty state */
html body #app .dz-empty-main{
  border-radius:24px!important;
  padding:48px 32px!important;
  max-width:440px!important;
  box-shadow:0 24px 56px rgba(0,0,0,.3),0 0 0 1px rgba(246,186,62,.15)!important;
}
html body #app .dz-empty-main .dz-empty-ico{
  width:64px!important;height:64px!important;
  border-radius:18px!important;
  font-size:26px!important;
  box-shadow:0 0 32px rgba(246,186,62,.3)!important;
  margin-bottom:10px!important;
}

/* Payments rows */
html body #app .dz-pay-row{
  border-radius:10px!important;
  padding:12px 8px!important;
  transition:background .15s ease!important;
}
html body #app .dz-pay-row:hover{
  background:rgba(246,186,62,.04)!important;
}
html body #app .dz-pay-wait{
  border-radius:12px!important;
  border:1px solid rgba(246,186,62,.3)!important;
}

/* Side cards — smoother */
html body #designerShell .dz-card{
  border-radius:16px!important;
  padding:13px 13px!important;
  margin-bottom:9px!important;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease!important;
}
html body #designerShell .dz-card:hover{
  transform:translateX(3px)!important;
}
html body #designerShell .dz-card.active{
  box-shadow:0 0 0 1px rgba(246,186,62,.35),0 10px 24px rgba(0,0,0,.28),0 0 28px rgba(246,186,62,.1)!important;
}
html body #app .client-card[data-pid]{
  border-radius:16px!important;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease!important;
}
html body #app .client-card[data-pid]:hover{
  transform:translateX(2px)!important;
}
html body #app .client-card[data-pid].active{
  box-shadow:0 0 0 1px rgba(246,186,62,.4),0 10px 26px rgba(0,0,0,.28),0 0 24px rgba(246,186,62,.12)!important;
}
html body #app .client-card[data-pid] .cc-bar{
  height:5px!important;
  border-radius:99px!important;
  overflow:hidden!important;
}
html body #app .client-card[data-pid] .cc-bar i{
  border-radius:99px!important;
}

/* Session bar polish */
html body #designerShell .designer-session{
  padding:13px 20px!important;
}
html body #designerShell .dsb-btn{
  border-radius:12px!important;
  transition:transform .15s ease,background .15s ease,border-color .15s ease!important;
}
html body #designerShell .dsb-btn:hover{
  transform:translateY(-1px)!important;
}
html body #designerShell .btn-dz-add{
  border-radius:12px!important;
  padding:10px 16px!important;
  box-shadow:0 4px 16px rgba(246,186,62,.35)!important;
}
html body #designerShell .btn-dz-add:hover{
  transform:translateY(-1px) scale(1.02)!important;
}

/* Soft spacing rhythm */
html body #app .dz-detail,
html body #designerShell .dz-detail{
  display:flex!important;
  flex-direction:column!important;
  gap:4px!important;
}
html body #app .dz-hero{margin-bottom:14px!important}
html body #app .dz-timeline{margin-bottom:14px!important}

@media (max-width:780px){
  html body #app .dz-hero{padding:18px 16px 16px!important;border-radius:18px!important}
  html body #app .dz-hero h1{font-size:24px!important}
  html body #app .dz-timeline{padding:14px 10px!important;border-radius:16px!important}
  html body #app .dz-block{padding:16px 14px 14px 16px!important}
}

/* =========================================================
   v5.97 — Дизайн-кабинет: анимации (navy + gold)
   Уважает prefers-reduced-motion
   ========================================================= */

@keyframes dzFadeUp{
  from{opacity:0;transform:translateY(14px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes dzFadeIn{
  from{opacity:0}
  to{opacity:1}
}
@keyframes dzScaleIn{
  from{opacity:0;transform:scale(.96)}
  to{opacity:1;transform:scale(1)}
}
@keyframes dzSlideRight{
  from{opacity:0;transform:translateX(-10px)}
  to{opacity:1;transform:translateX(0)}
}
@keyframes dzGlowPulse{
  0%,100%{box-shadow:0 0 0 0 rgba(246,186,62,.0),0 0 16px rgba(246,186,62,.2)}
  50%{box-shadow:0 0 0 6px rgba(246,186,62,.08),0 0 28px rgba(246,186,62,.35)}
}
@keyframes dzBarFill{
  from{transform:scaleX(0);transform-origin:left center}
  to{transform:scaleX(1);transform-origin:left center}
}
@keyframes dzDotPop{
  0%{transform:scale(.4);opacity:.4}
  70%{transform:scale(1.15)}
  100%{transform:scale(1);opacity:1}
}
@keyframes dzLineGrow{
  from{transform:scaleX(0);opacity:0}
  to{transform:scaleX(1);opacity:1}
}
@keyframes dzShimmer{
  0%{background-position:0% 50%}
  100%{background-position:100% 50%}
}
@keyframes dzFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-3px)}
}

/* Canvas fade */
html body #app .design-embed-wrap,
html body #designerShell .designer-main{
  animation:dzFadeIn .35s ease both!important;
}

/* Embed head */
html body #app .dz-embed-head-inner{
  animation:dzFadeUp .45s cubic-bezier(.22,1,.36,1) both!important;
}
html body #app .dz-embed-mark{
  animation:dzScaleIn .5s .08s cubic-bezier(.22,1,.36,1) both!important;
}

/* Hero */
html body #app .dz-hero,
html body #designerShell .dz-hero,
html body #clientRoot .dz-client-wrap .dz-hero{
  animation:dzFadeUp .5s cubic-bezier(.22,1,.36,1) both!important;
}
html body #app .dz-hero h1{
  animation:dzFadeUp .45s .06s cubic-bezier(.22,1,.36,1) both!important;
}
html body #app .dz-hero .dz-sub{
  animation:dzFadeUp .45s .1s cubic-bezier(.22,1,.36,1) both!important;
}
html body #app .dz-hero .dz-summary{
  animation:dzFadeUp .45s .14s cubic-bezier(.22,1,.36,1) both!important;
}
html body #app .dz-hero .dz-sum-chip{
  animation:dzScaleIn .4s cubic-bezier(.22,1,.36,1) both!important;
}
html body #app .dz-hero .dz-sum-chip:nth-child(1){animation-delay:.12s!important}
html body #app .dz-hero .dz-sum-chip:nth-child(2){animation-delay:.18s!important}
html body #app .dz-hero .dz-sum-chip:nth-child(3){animation-delay:.24s!important}
html body #app .dz-hero .dz-sum-chip:nth-child(4){animation-delay:.3s!important}
html body #app .dz-hero .dz-sum-bar i,
html body #clientRoot .dz-client-wrap .dz-hero .dz-sum-bar i{
  animation:dzBarFill .7s .2s cubic-bezier(.22,1,.36,1) both!important;
}

/* Timeline */
html body #app .dz-timeline,
html body #designerShell .dz-timeline,
html body #clientRoot .dz-client-wrap .dz-timeline{
  animation:dzFadeUp .5s .12s cubic-bezier(.22,1,.36,1) both!important;
}
html body #app .dz-tl-item{
  animation:dzFadeUp .4s cubic-bezier(.22,1,.36,1) both!important;
}
html body #app .dz-tl-item:nth-child(1){animation-delay:.18s!important}
html body #app .dz-tl-item:nth-child(3){animation-delay:.28s!important}
html body #app .dz-tl-item:nth-child(5){animation-delay:.38s!important}
html body #app .dz-tl-dot{
  animation:dzDotPop .45s cubic-bezier(.22,1,.36,1) both!important;
}
html body #app .dz-tl-item:nth-child(1) .dz-tl-dot{animation-delay:.22s!important}
html body #app .dz-tl-item:nth-child(3) .dz-tl-dot{animation-delay:.32s!important}
html body #app .dz-tl-item:nth-child(5) .dz-tl-dot{animation-delay:.42s!important}
html body #app .dz-tl-approved .dz-tl-dot{
  animation:dzDotPop .45s cubic-bezier(.22,1,.36,1) both,dzGlowPulse 2.4s ease-in-out infinite!important;
}
html body #app .dz-tl-line{
  transform-origin:left center!important;
  animation:dzLineGrow .4s cubic-bezier(.22,1,.36,1) both!important;
}
html body #app .dz-tl-item:nth-child(1) + .dz-tl-line{animation-delay:.3s!important}
html body #app .dz-tl-item:nth-child(3) + .dz-tl-line{animation-delay:.4s!important}

/* Content blocks stagger */
html body #app .dz-block,
html body #designerShell .dz-block,
html body #clientRoot .dz-client-wrap .dz-block{
  animation:dzFadeUp .48s cubic-bezier(.22,1,.36,1) both!important;
}
html body #app .dz-detail > .dz-block:nth-of-type(1),
html body #app #designEmbedDetail .dz-block:nth-of-type(1){animation-delay:.18s!important}
html body #app .dz-detail > .dz-block:nth-of-type(2),
html body #app #designEmbedDetail .dz-block:nth-of-type(2){animation-delay:.26s!important}
html body #app .dz-detail > .dz-block:nth-of-type(3),
html body #app #designEmbedDetail .dz-block:nth-of-type(3){animation-delay:.34s!important}
html body #app .dz-detail > .dz-block:nth-of-type(4),
html body #app #designEmbedDetail .dz-block:nth-of-type(4){animation-delay:.42s!important}
html body #app .dz-detail > .dz-block:nth-of-type(5),
html body #app #designEmbedDetail .dz-block:nth-of-type(5){animation-delay:.5s!important}

/* Stages stagger */
html body #app .dz-stage,
html body #clientRoot .dz-client-wrap .dz-stage{
  animation:dzFadeUp .42s cubic-bezier(.22,1,.36,1) both!important;
}
html body #app .dz-stage:nth-child(1){animation-delay:.2s!important}
html body #app .dz-stage:nth-child(2){animation-delay:.28s!important}
html body #app .dz-stage:nth-child(3){animation-delay:.36s!important}
html body #app .dz-stage:nth-child(4){animation-delay:.44s!important}
html body #app .dz-stage:nth-child(5){animation-delay:.52s!important}

/* Stage body expand */
html body #app .dz-stage .dz-stage-b{
  display:none!important;
  animation:none!important;
}
html body #app .dz-stage.dz-open .dz-stage-b{
  display:block!important;
  animation:dzFadeUp .32s cubic-bezier(.22,1,.36,1) both!important;
}
html body #app .dz-stage-h{
  transition:filter .2s ease,background .2s ease!important;
}
html body #app .dz-stage-h .dz-chev{
  display:inline-block!important;
  transition:transform .28s cubic-bezier(.22,1,.36,1)!important;
}
html body #app .dz-stage.dz-open .dz-stage-h .dz-chev{
  transform:rotate(180deg)!important;
}

/* Buttons press / hover (smooth) */
html body #app .dz-btn,
html body #app .dz-btn-go,
html body #app .dz-file-btn,
html body #app .dz-btn-sec,
html body #clientRoot .dz-client-wrap .dz-btn,
html body #clientRoot .dz-client-wrap .dz-btn-go{
  transition:transform .18s cubic-bezier(.22,1,.36,1),box-shadow .18s ease,filter .18s ease,background .18s ease,border-color .18s ease!important;
}
html body #app .dz-btn:active,
html body #app .dz-btn-go:active,
html body #app .dz-file-btn:active{
  transform:translateY(0) scale(.98)!important;
}

/* Variants */
html body #app .dz-variant{
  animation:dzFadeUp .35s cubic-bezier(.22,1,.36,1) both!important;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease,transform .18s ease!important;
}
html body #app .dz-variant:hover{
  transform:translateY(-1px)!important;
}

/* Empty state */
html body #app .dz-empty-main{
  animation:dzScaleIn .5s cubic-bezier(.22,1,.36,1) both!important;
}
html body #app .dz-empty-main .dz-empty-ico{
  animation:dzFloat 3s ease-in-out infinite!important;
}

/* Side list cards stagger */
html body #designerShell .dz-card{
  animation:dzSlideRight .4s cubic-bezier(.22,1,.36,1) both!important;
}
html body #designerShell .dz-card:nth-child(1){animation-delay:.04s!important}
html body #designerShell .dz-card:nth-child(2){animation-delay:.08s!important}
html body #designerShell .dz-card:nth-child(3){animation-delay:.12s!important}
html body #designerShell .dz-card:nth-child(4){animation-delay:.16s!important}
html body #designerShell .dz-card:nth-child(5){animation-delay:.2s!important}
html body #designerShell .dz-card:nth-child(n+6){animation-delay:.24s!important}

html body #app .client-card[data-pid]{
  animation:dzSlideRight .38s cubic-bezier(.22,1,.36,1) both!important;
  transition:transform .18s cubic-bezier(.22,1,.36,1),box-shadow .18s ease,background .18s ease,border-color .18s ease!important;
}
html body #app .client-card[data-pid]:nth-child(1){animation-delay:.03s!important}
html body #app .client-card[data-pid]:nth-child(2){animation-delay:.07s!important}
html body #app .client-card[data-pid]:nth-child(3){animation-delay:.11s!important}
html body #app .client-card[data-pid]:nth-child(4){animation-delay:.15s!important}
html body #app .client-card[data-pid]:nth-child(5){animation-delay:.19s!important}
html body #app .client-card[data-pid]:nth-child(n+6){animation-delay:.23s!important}

/* Progress bar in list cards */
html body #app .client-card[data-pid] .cc-bar i{
  transition:width .45s cubic-bezier(.22,1,.36,1)!important;
}

/* Embed head / session */
html body #app .dz-embed-head-inner{
  animation:dzFadeUp .45s cubic-bezier(.22,1,.36,1) both!important;
}
html body #designerShell .designer-session{
  animation:dzFadeIn .3s ease both!important;
}
html body #designerShell .btn-dz-add{
  transition:transform .18s cubic-bezier(.22,1,.36,1),box-shadow .18s ease,filter .18s ease!important;
}

/* Pay rows subtle enter */
html body #app .dz-pay-row{
  animation:dzFadeIn .35s ease both!important;
  transition:background .18s ease,transform .15s ease!important;
}
html body #app .dz-pay-row:nth-child(1){animation-delay:.05s!important}
html body #app .dz-pay-row:nth-child(2){animation-delay:.1s!important}
html body #app .dz-pay-row:nth-child(3){animation-delay:.15s!important}

/* Gold CTA shimmer on hover (background-size play) */
html body #app .dz-btn-go:hover,
html body #app .dz-btn.dz-btn-go:hover{
  background-size:200% 100%!important;
  animation:dzShimmer .8s ease!important;
}

/* Respect reduced motion */
@media (prefers-reduced-motion:reduce){
  html body #app .design-embed-wrap,
  html body #app .dz-hero,
  html body #app .dz-hero *,
  html body #app .dz-timeline,
  html body #app .dz-tl-item,
  html body #app .dz-tl-dot,
  html body #app .dz-tl-line,
  html body #app .dz-block,
  html body #app .dz-stage,
  html body #app .dz-stage-b,
  html body #app .dz-variant,
  html body #app .dz-empty-main,
  html body #app .dz-empty-main .dz-empty-ico,
  html body #app .client-card[data-pid],
  html body #designerShell .dz-card,
  html body #designerShell .designer-main,
  html body #designerShell .designer-session,
  html body #app .dz-embed-head-inner,
  html body #app .dz-pay-row,
  html body #clientRoot .dz-client-wrap .dz-hero,
  html body #clientRoot .dz-client-wrap .dz-timeline,
  html body #clientRoot .dz-client-wrap .dz-block,
  html body #clientRoot .dz-client-wrap .dz-stage{
    animation:none!important;
    transition:none!important;
  }
}

/* v5.97b — снять global animation:none для дизайна (перебить NO-JUMP) */
html body #app .design-embed-wrap,
html body #app .design-embed-wrap *,
html body #app .design-embed-detail,
html body #app .design-embed-detail *,
html body #app #designEmbedDetail,
html body #app #designEmbedDetail *,
html body #app .designer-main,
html body #app .designer-main *,
html body #app .dz-hero,
html body #app .dz-hero *,
html body #app .dz-timeline,
html body #app .dz-timeline *,
html body #app .dz-block,
html body #app .dz-stage,
html body #app .dz-stage *,
html body #app .dz-variant,
html body #app .dz-empty-main,
html body #app .dz-empty-main *,
html body #app .dz-embed-head-inner,
html body #app .dz-embed-head-inner *,
html body #app .client-card[data-pid],
html body #app .client-card[data-pid] *,
html body #designerShell,
html body #designerShell *,
html body #clientRoot .dz-client-wrap,
html body #clientRoot .dz-client-wrap *{
  /* allow animations defined in v5.97 — do not set animation:none here */
}
/* Force re-enable: NO-JUMP uses animation:none !important on #app * — beat with longer selector + same !important on key elements */
html body #app.foreman-mode .design-embed-wrap,
html body #app .main-inner.design-embed-root .design-embed-wrap{
  animation:dzFadeIn .35s ease both!important;
}
html body #app .main-inner.design-embed-root .dz-embed-head-inner{
  animation:dzFadeUp .45s cubic-bezier(.22,1,.36,1) both!important;
}
html body #app .main-inner.design-embed-root .dz-hero{
  animation:dzFadeUp .5s cubic-bezier(.22,1,.36,1) both!important;
}
html body #app .main-inner.design-embed-root .dz-timeline{
  animation:dzFadeUp .5s .12s cubic-bezier(.22,1,.36,1) both!important;
}
html body #app .main-inner.design-embed-root .dz-block{
  animation:dzFadeUp .48s cubic-bezier(.22,1,.36,1) both!important;
}
html body #app .main-inner.design-embed-root .dz-stage{
  animation:dzFadeUp .42s cubic-bezier(.22,1,.36,1) both!important;
}
html body #app .main-inner.design-embed-root .dz-tl-item{
  animation:dzFadeUp .4s cubic-bezier(.22,1,.36,1) both!important;
}
html body #app .main-inner.design-embed-root .dz-tl-dot{
  animation:dzDotPop .45s cubic-bezier(.22,1,.36,1) both!important;
}
html body #app .main-inner.design-embed-root .dz-tl-approved .dz-tl-dot{
  animation:dzDotPop .45s cubic-bezier(.22,1,.36,1) both,dzGlowPulse 2.4s ease-in-out infinite!important;
}
html body #app .main-inner.design-embed-root .dz-sum-bar i{
  animation:dzBarFill .7s .2s cubic-bezier(.22,1,.36,1) both!important;
}
html body #app .main-inner.design-embed-root .dz-empty-main{
  animation:dzScaleIn .5s cubic-bezier(.22,1,.36,1) both!important;
}
html body #app .main-inner.design-embed-root .dz-empty-main .dz-empty-ico{
  animation:dzFloat 3s ease-in-out infinite!important;
}
html body #app .main-inner.design-embed-root .dz-stage.dz-open .dz-stage-b{
  display:block!important;
  animation:dzFadeUp .32s cubic-bezier(.22,1,.36,1) both!important;
}
html body #app .main-inner.design-embed-root .dz-stage:not(.dz-open) .dz-stage-b{
  display:none!important;
}
html body #app #clientList .client-card[data-pid]{
  animation:dzSlideRight .38s cubic-bezier(.22,1,.36,1) both!important;
}
html body #designerShell .dz-hero{
  animation:dzFadeUp .5s cubic-bezier(.22,1,.36,1) both!important;
}
html body #designerShell .dz-timeline{
  animation:dzFadeUp .5s .12s cubic-bezier(.22,1,.36,1) both!important;
}
html body #designerShell .dz-block{
  animation:dzFadeUp .48s cubic-bezier(.22,1,.36,1) both!important;
}
html body #designerShell .dz-stage{
  animation:dzFadeUp .42s cubic-bezier(.22,1,.36,1) both!important;
}
html body #designerShell .dz-card{
  animation:dzSlideRight .4s cubic-bezier(.22,1,.36,1) both!important;
}
html body #clientRoot .dz-client-wrap .dz-hero{
  animation:dzFadeUp .5s cubic-bezier(.22,1,.36,1) both!important;
}
html body #clientRoot .dz-client-wrap .dz-timeline{
  animation:dzFadeUp .5s .12s cubic-bezier(.22,1,.36,1) both!important;
}
html body #clientRoot .dz-client-wrap .dz-block{
  animation:dzFadeUp .48s cubic-bezier(.22,1,.36,1) both!important;
}
html body #clientRoot .dz-client-wrap .dz-stage{
  animation:dzFadeUp .42s cubic-bezier(.22,1,.36,1) both!important;
}
html body #clientRoot .dz-client-wrap .dz-stage:not(.dz-open) .dz-stage-b{
  display:none!important;
}
html body #clientRoot .dz-client-wrap .dz-stage.dz-open .dz-stage-b{
  display:block!important;
  animation:dzFadeUp .32s cubic-bezier(.22,1,.36,1) both!important;
}

@media (prefers-reduced-motion:reduce){
  html body #app .main-inner.design-embed-root .design-embed-wrap,
  html body #app .main-inner.design-embed-root .dz-hero,
  html body #app .main-inner.design-embed-root .dz-timeline,
  html body #app .main-inner.design-embed-root .dz-block,
  html body #app .main-inner.design-embed-root .dz-stage,
  html body #app .main-inner.design-embed-root .dz-tl-item,
  html body #app .main-inner.design-embed-root .dz-tl-dot,
  html body #app .main-inner.design-embed-root .dz-empty-main,
  html body #app #clientList .client-card[data-pid],
  html body #designerShell .dz-hero,
  html body #designerShell .dz-timeline,
  html body #designerShell .dz-block,
  html body #designerShell .dz-stage,
  html body #designerShell .dz-card,
  html body #clientRoot .dz-client-wrap .dz-hero,
  html body #clientRoot .dz-client-wrap .dz-timeline,
  html body #clientRoot .dz-client-wrap .dz-block,
  html body #clientRoot .dz-client-wrap .dz-stage{
    animation:none!important;
  }
}

/* =========================================================
   v5.98 � ������� ����������: ���� ����� ������ �� �������
   �������; ���� ����� ���� ������ (#E4E9EF)
   (���������� #supplierShell * {color:#fff} ����� ����������)
   ========================================================= */

/* --- �������� ����: ������ ����� ����� --- */
html body #supplierShell .supplier-main,
html body #supplierShell .supplier-main *,
html body #supplierShell .sup-main-empty,
html body #supplierShell .sup-main-empty *,
html body #supplierShell .sup-head-card,
html body #supplierShell .sup-head-card *,
html body #supplierShell .sup-section,
html body #supplierShell .sup-section *,
html body #supplierShell .sup-form,
html body #supplierShell .sup-form *,
html body #supplierShell .sup-item,
html body #supplierShell .sup-item *,
html body #supplierShell .sup-rec-card,
html body #supplierShell .sup-rec-card *,
html body #supplierShell .sup-list,
html body #supplierShell .sup-list *,
html body #supplierShell .sup-client-block,
html body #supplierShell .sup-client-block *,
html body #supplierShell .sup-field,
html body #supplierShell .sup-field *,
html body #supplierShell .sup-chips,
html body #supplierShell .sup-chips *,
html body #supplierShell .sup-chip,
html body #supplierShell .sup-mini,
html body #supplierShell .sup-btn-ghost,
html body #supplierShell .sup-btn-primary,
html body #supplierShell .sup-form-msg,
html body #supplierShell .sup-list-empty,
html body #supplierShell .sup-ro-note,
html body #supplierShell .sup-back,
html body #supplierShell .sup-lbl,
html body #supplierShell .sup-addr,
html body #supplierShell .sup-tag,
html body #supplierShell .sup-auto-plan,
html body #supplierShell .sup-auto-plan *,
html body #supplierShell .sup-item-meta,
html body #supplierShell .sup-item-cat,
html body #supplierShell .sup-item-st,
html body #supplierShell .sup-st-pill,
html body #supplierShell .sup-st-btn,
html body #supplierShell .sup-rec-sum,
html body #supplierShell .sup-rec-date,
html body #supplierShell .sup-rec-note,
html body #supplierShell .sup-client-hint,
html body #supplierShell .sup-client-recs,
html body #supplierShell .sup-client-recs *{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}

/* ������� / muted � ���� ����� (�� �����) */
html body #supplierShell .supplier-main .sup-lbl,
html body #supplierShell .supplier-main .sup-form-msg,
html body #supplierShell .supplier-main .sup-list-empty,
html body #supplierShell .supplier-main .sup-ro-note,
html body #supplierShell .supplier-main .sup-client-hint,
html body #supplierShell .supplier-main .sup-addr,
html body #supplierShell .supplier-main .sup-addr.muted,
html body #supplierShell .supplier-main .sup-rec-date,
html body #supplierShell .supplier-main .sup-back,
html body #supplierShell .supplier-main .sup-field,
html body #supplierShell .supplier-main .sup-item-meta{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}

/* ���� ����� � ���� ������ + ������ ����� */
html body #supplierShell .sup-field input,
html body #supplierShell .sup-field textarea,
html body #supplierShell .supplier-main input[type="text"],
html body #supplierShell .supplier-main input[type="number"],
html body #supplierShell .supplier-main input[type="tel"],
html body #supplierShell .supplier-main input[type="date"],
html body #supplierShell .supplier-main input[type="search"],
html body #supplierShell .supplier-main input:not([type]),
html body #supplierShell .supplier-main textarea,
html body #supplierShell .supplier-main select{
  background:#DCE3EB!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:1px solid #B8C2CE!important;
  border-radius:12px!important;
}
html body #supplierShell .sup-field input:focus,
html body #supplierShell .sup-field textarea:focus,
html body #supplierShell .supplier-main input:focus,
html body #supplierShell .supplier-main textarea:focus,
html body #supplierShell .supplier-main select:focus{
  background:#D0D8E2!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border-color:rgba(38,59,80,.45)!important;
  box-shadow:0 0 0 3px rgba(38,59,80,.12)!important;
  outline:none!important;
}
html body #supplierShell .supplier-main input::placeholder,
html body #supplierShell .supplier-main textarea::placeholder,
html body #supplierShell .sup-field input::placeholder,
html body #supplierShell .sup-field textarea::placeholder{
  color:#4B5563!important;
  -webkit-text-fill-color:#4B5563!important;
  opacity:1!important;
}
html body #supplierShell .supplier-main select option{
  color:#111827!important;
  background:#FFFFFF!important;
}

/* ���� / ����-������ �� ������� � ������ ����� */
html body #supplierShell .sup-chip{
  background:#F0F3F6!important;
  border:1px solid #C5CED6!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body #supplierShell .sup-chip.on{
  background:#E8EDF2!important;
  border-color:#263B50!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  box-shadow:none!important;
}
html body #supplierShell .sup-mini{
  background:#E8EDF2!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:1px solid #C5CED6!important;
}
html body #supplierShell .sup-mini.danger{
  color:#B71C1C!important;
  -webkit-text-fill-color:#B71C1C!important;
  background:#FFF8F8!important;
  border-color:#F0C4C4!important;
}
html body #supplierShell .sup-mini.gold,
html body #supplierShell .sup-btn-primary{
  background:linear-gradient(135deg,#F6BA3E,#E8A82E)!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:none!important;
}
html body #supplierShell .sup-btn-ghost{
  background:#FFFFFF!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:1px solid #C5CED6!important;
}

/* ������� � ������ ����� (��� ������ �� �������) */
html body #supplierShell .sup-item-st,
html body #supplierShell .sup-item-st.sup-st-plan,
html body #supplierShell .sup-item-st.sup-st-collected,
html body #supplierShell .sup-item-st.sup-st-done,
html body #supplierShell .sup-item-st.sup-st-delivered,
html body #supplierShell .sup-st-pill,
html body #supplierShell .sup-st-pill.plan.on,
html body #supplierShell .sup-st-btn,
html body #supplierShell .sup-st-btn.on,
html body #supplierShell .sup-st-btn.on.collected,
html body #supplierShell .sup-st-btn.on.delivered{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body #supplierShell .sup-st-btn.on.collected{
  background:rgba(59,110,156,.18)!important;
  border-color:rgba(59,110,156,.4)!important;
}
html body #supplierShell .sup-st-btn.on.delivered{
  background:rgba(46,125,91,.18)!important;
  border-color:rgba(46,125,91,.4)!important;
}

/* �������-������ � ����� ������� � navy, ����� ����� (��������) */
html body #supplierShell .sup-phone-btn,
html body #supplierShell .sup-phone-btn *,
html body #supplierShell .sup-phone-btn b,
html body #supplierShell .sup-phone-btn small{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #supplierShell .sup-phone-btn small{
  color:rgba(255,255,255,.7)!important;
  -webkit-text-fill-color:rgba(255,255,255,.7)!important;
}

/* navy chrome (������� + ������) � �����/gold, �� ������ */
html body #supplierShell .sup-sess-inner,
html body #supplierShell .sup-sess-inner *,
html body #supplierShell .supplier-side,
html body #supplierShell .supplier-side *{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #supplierShell .sup-sess-kicker,
html body #supplierShell .supplier-side-h-kicker,
html body #supplierShell .supplier-side-count,
html body #supplierShell .sup-obj-phone{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
/* «Назад» / «Выйти» на navy: белый/gold, не чёрный */
html body #supplierShell .sup-sess-back,
html body #supplierShell .sup-sess-back *{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
html body #supplierShell .sup-sess-inner .logout-btn,
html body #supplierShell .sup-sess-inner .logout-btn *{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #supplierShell .role-switch-sel option{
  color:#111827!important;
  background:#FFFFFF!important;
}


/* =========================================================
   v5.101 — Поставщик: чёрный текст в main (плашка/заголовок/форма),
   яркие фоны статусов; datetime-local
   ========================================================= */

/* Основная зона: бумага + чёрный текст (перебивает v4.9 white) */
html body #supplierShell .supplier-main,
html body #supplierShell #supplierMain{
  background:linear-gradient(180deg,#EEF1F4 0%,#F4F6F8 55%,#F7F9FB 100%)!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body #supplierShell .supplier-main,
html body #supplierShell .supplier-main *:not(.sup-phone-btn):not(.sup-phone-btn *):not(.sup-st-btn.on):not(.sup-st-btn.on *):not(.sup-item-st.sup-st-collected):not(.sup-item-st.sup-st-done):not(.sup-item-st.sup-st-delivered),
html body #supplierShell #supplierMain,
html body #supplierShell #supplierMain *:not(.sup-phone-btn):not(.sup-phone-btn *):not(.sup-st-btn.on):not(.sup-st-btn.on *):not(.sup-item-st.sup-st-collected):not(.sup-item-st.sup-st-done):not(.sup-item-st.sup-st-delivered){
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}

/* Явные узлы, на которые жаловались */
html body #supplierShell .sup-main-empty,
html body #supplierShell .sup-main-empty b,
html body #supplierShell .sup-main-empty p,
html body #supplierShell .sup-main-empty *,
html body #supplierShell .sup-head-card,
html body #supplierShell .sup-head-card h1,
html body #supplierShell .sup-head-card h2,
html body #supplierShell .sup-head-card p,
html body #supplierShell .sup-head-card .sup-tag,
html body #supplierShell .sup-head-card .sup-addr,
html body #supplierShell .sup-head-top,
html body #supplierShell .sup-head-top *,
html body #supplierShell .sup-tag,
html body #supplierShell .supplier-main h1,
html body #supplierShell .supplier-main h2,
html body #supplierShell .supplier-main h3,
html body #supplierShell .supplier-main b,
html body #supplierShell .supplier-main p,
html body #supplierShell .supplier-main label,
html body #supplierShell .supplier-main span:not(.sup-phone-btn span):not(.sup-phone-ic):not(.sup-phone-arr),
html body #supplierShell .sup-form,
html body #supplierShell .sup-form *,
html body #supplierShell .sup-form h3,
html body #supplierShell .sup-form .sup-lbl,
html body #supplierShell .sup-form .sup-field,
html body #supplierShell .sup-form .sup-auto-plan,
html body #supplierShell .sup-form .sup-auto-plan b,
html body #supplierShell .sup-form .sup-chip,
html body #supplierShell .sup-field,
html body #supplierShell .sup-section,
html body #supplierShell .sup-section h2,
html body #supplierShell .sup-section-head,
html body #supplierShell .sup-section-head *,
html body #supplierShell .sup-item-cat,
html body #supplierShell .sup-item-meta,
html body #supplierShell .sup-back{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}

/* Плашки/карточки — светлый фон, чтобы чёрный читался */
html body #supplierShell .sup-main-empty{
  background:linear-gradient(165deg,#FFFFFF,#F4F7FA)!important;
  border:1px solid #D0D7E0!important;
  border-radius:18px!important;
  padding:28px 22px!important;
  box-shadow:0 8px 24px rgba(20,35,50,.08)!important;
}
html body #supplierShell .sup-head-card,
html body #supplierShell .sup-section,
html body #supplierShell .sup-form,
html body #supplierShell .sup-item,
html body #supplierShell .sup-rec-card{
  background:#FFFFFF!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body #supplierShell .sup-tag{
  background:linear-gradient(90deg,rgba(246,186,62,.28),rgba(246,186,62,.12))!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:1px solid rgba(246,186,62,.45)!important;
}

/* Поля формы (включая datetime-local) */
html body #supplierShell .supplier-main input,
html body #supplierShell .supplier-main textarea,
html body #supplierShell .supplier-main select,
html body #supplierShell .sup-field input,
html body #supplierShell .sup-field textarea,
html body #supplierShell input#supQty,
html body #supplierShell input#supDatetime,
html body #supplierShell input#supCustom,
html body #supplierShell input[type="datetime-local"]{
  background:#DCE3EB!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:1px solid #B8C2CE!important;
  caret-color:#111827!important;
}
html body #supplierShell .supplier-main input::placeholder,
html body #supplierShell .sup-field input::placeholder,
html body #supplierShell input#supQty::placeholder,
html body #supplierShell input#supCustom::placeholder{
  color:#4B5563!important;
  -webkit-text-fill-color:#4B5563!important;
  opacity:1!important;
}

/* Чипы категории/единиц — чёрный */
html body #supplierShell .sup-chip,
html body #supplierShell .sup-chip.on{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body #supplierShell .sup-chip.on{
  background:#E8EDF2!important;
  border-color:#263B50!important;
}

/* ---- Статусы: яркий фон ---- */
/* бейдж на карточке */
html body #supplierShell .sup-item-st.sup-st-plan{
  background:#D6DEE8!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:1px solid #A8B4C2!important;
}
html body #supplierShell .sup-item-st.sup-st-collected,
html body #supplierShell .sup-item-st.sup-st-done{
  background:#2F6FA8!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  border:1px solid #1E4F7A!important;
  box-shadow:0 2px 8px rgba(47,111,168,.35)!important;
}
html body #supplierShell .sup-item-st.sup-st-delivered{
  background:#1F9A5C!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  border:1px solid #157A47!important;
  box-shadow:0 2px 8px rgba(31,154,92,.35)!important;
}

/* pill «План» */
html body #supplierShell .sup-st-pill,
html body #supplierShell .sup-st-pill.plan.on{
  background:#D6DEE8!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:1px solid #A8B4C2!important;
  opacity:1!important;
}

/* кнопки статусов */
html body #supplierShell .sup-st-btn{
  background:#FFFFFF!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:1px solid #C5CED6!important;
}
html body #supplierShell .sup-st-btn.on.collected,
html body #supplierShell .sup-st-btn.on.collected *{
  background:linear-gradient(135deg,#3B8FD4,#2F6FA8)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  border-color:transparent!important;
  box-shadow:0 4px 14px rgba(47,111,168,.4)!important;
}
html body #supplierShell .sup-st-btn.on.delivered,
html body #supplierShell .sup-st-btn.on.delivered *{
  background:linear-gradient(135deg,#2EBB72,#1F9A5C)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  border-color:transparent!important;
  box-shadow:0 4px 14px rgba(31,154,92,.4)!important;
}

/* телефон — navy, белый текст */
html body #supplierShell .sup-phone-btn,
html body #supplierShell .sup-phone-btn *,
html body #supplierShell a.sup-phone-btn,
html body #supplierShell a.sup-phone-btn *{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #supplierShell .sup-phone-btn small{
  color:rgba(255,255,255,.75)!important;
  -webkit-text-fill-color:rgba(255,255,255,.75)!important;
}

/* gold primary buttons — чёрный на gold */
html body #supplierShell .sup-btn-primary,
html body #supplierShell .sup-mini.gold{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}


/* =========================================================
   v5.102 — кнопки объекта: deliver wide; worker-btns белый текст
   ========================================================= */
html body #app .head-actions .btn-deliver.btn-deliver-wide,
html body #app button.btn-deliver.btn-deliver-wide{
  min-width:min(100%,280px)!important;
  padding-left:28px!important;
  padding-right:28px!important;
  flex:1 1 220px!important;
  justify-content:center!important;
  font-weight:800!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
@media (max-width:780px){
  html body #app .head-actions .btn-deliver.btn-deliver-wide{
    flex:1 1 100%!important;
    width:100%!important;
    min-width:100%!important;
  }
}
html body #app .worker-btns .btn-row,
html body #app .worker-btns .btn-row *,
html body #app .worker-btns .btn-row-sec,
html body #app .worker-btns .btn-row-sec *,
html body #app .worker-btns button[data-action="assign-worker"],
html body #app .worker-btns button[data-action="workers-db"],
html body #app .worker-btns button[data-action="assign-worker"] *,
html body #app .worker-btns button[data-action="workers-db"] *{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .worker-btns .btn-row,
html body #app .worker-btns .btn-row-sec,
html body #app .worker-btns button[data-action="assign-worker"],
html body #app .worker-btns button[data-action="workers-db"]{
  background:rgba(255,255,255,.12)!important;
  border:1px solid rgba(255,255,255,.28)!important;
}

/* v5.102b — worker-btns white after media queries */
html body #app .worker-btns button.btn-row,
html body #app .worker-btns button.btn-row-sec{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  background:rgba(255,255,255,.12)!important;
  border:1px solid rgba(255,255,255,.28)!important;
}


/* =========================================================
   v5.103 — «Пригласить» и «Объект сдан» full-width parallel
   ========================================================= */
html body #app .head-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
}
html body #app .head-actions .btn-outline.btn-head-wide,
html body #app .head-actions .btn-deliver.btn-deliver-wide{
  flex:1 1 100%!important;
  width:100%!important;
  min-width:100%!important;
  max-width:100%!important;
  justify-content:center!important;
  min-height:48px!important;
  box-sizing:border-box!important;
  font-weight:800!important;
}
html body #app .head-actions .btn-outline.btn-head-wide{
  order:10!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .head-actions .btn-deliver.btn-deliver-wide{
  order:11!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}


/* =========================================================
   v5.104 — отмена full-width «Пригласить»; снова компакт в ряду
   ========================================================= */
html body #app .head-actions .btn-outline.btn-head-wide{
  flex:0 1 auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  order:unset!important;
}
html body #app .head-actions .btn-outline.btn-head-sm{
  flex:0 1 auto!important;
  width:auto!important;
  min-width:0!important;
  order:unset!important;
  font-size:12px!important;
  min-height:40px!important;
  padding:8px 11px!important;
}
html body #app .head-actions .btn-deliver.btn-deliver-wide{
  flex:1 1 220px!important;
  min-width:min(100%,280px)!important;
  width:auto!important;
  max-width:none!important;
  order:unset!important;
}
@media (max-width:780px){
  html body #app .head-actions .btn-deliver.btn-deliver-wide{
    flex:1 1 100%!important;
    width:100%!important;
    min-width:100%!important;
  }
}


/* =========================================================
   v5.105 — «Доступ для клиента» = длина «Объект сдан»
   ========================================================= */
html body #app .head-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  width:100%!important;
}
html body #app .head-actions .btn-primary.btn-access-wide,
html body #app .head-actions .btn-deliver.btn-deliver-wide{
  flex:1 1 100%!important;
  width:100%!important;
  min-width:100%!important;
  max-width:100%!important;
  justify-content:center!important;
  min-height:48px!important;
  box-sizing:border-box!important;
  font-weight:800!important;
}
html body #app .head-actions .btn-primary.btn-access-wide{
  order:1!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body #app .head-actions .btn-outline{
  order:2!important;
}
html body #app .head-actions .btn-deliver.btn-deliver-wide{
  order:3!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}


/* =========================================================
   v5.106 — отмена full-width «Доступ для клиента»
   ========================================================= */
html body #app .head-actions .btn-primary.btn-access-wide,
html body #app .head-actions .btn-primary{
  flex:0 1 auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  order:unset!important;
}
html body #app .head-actions .btn-outline{
  order:unset!important;
}
html body #app .head-actions .btn-deliver.btn-deliver-wide{
  flex:1 1 220px!important;
  min-width:min(100%,280px)!important;
  width:auto!important;
  max-width:none!important;
  order:unset!important;
}
@media (max-width:780px){
  html body #app .head-actions .btn-deliver.btn-deliver-wide{
    flex:1 1 100%!important;
    width:100%!important;
    min-width:100%!important;
  }
}


/* =========================================================
   v5.107 — «Доступ для клиента» чуть крупнее (баланс с «Объект сдан»)
   ========================================================= */
html body #app .head-actions .btn-primary.btn-access-balanced{
  min-width:min(100%,210px)!important;
  padding:11px 20px!important;
  min-height:46px!important;
  font-size:14px!important;
  font-weight:800!important;
  justify-content:center!important;
  flex:0 1 auto!important;
  width:auto!important;
  max-width:100%!important;
  order:unset!important;
}
html body #app .head-actions .btn-deliver.btn-deliver-wide{
  min-width:min(100%,240px)!important;
  min-height:46px!important;
  flex:1 1 240px!important;
  width:auto!important;
  max-width:100%!important;
  padding-left:24px!important;
  padding-right:24px!important;
  order:unset!important;
}
@media (max-width:780px){
  html body #app .head-actions .btn-primary.btn-access-balanced{
    min-width:min(100%,200px)!important;
    min-height:46px!important;
    padding:11px 18px!important;
    font-size:13.5px!important;
  }
  html body #app .head-actions .btn-deliver.btn-deliver-wide{
    flex:1 1 100%!important;
    width:100%!important;
    min-width:100%!important;
  }
}


/* =========================================================
   v5.110 — ui batch: логотип-А, имя, модалки, этапы, направление
   ========================================================= */

/* --- Фирменная «А» вместо оранжевых треугольников --- */
html body #app .stage-head .tri,
html body #app .section-title .tri,
html body .section-title .tri,
html body .stage-head .tri{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  border:none!important;
  border-left:none!important;
  border-right:none!important;
  border-bottom:none!important;
  background:transparent!important;
  filter:none!important;
  box-shadow:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  position:relative!important;
  flex:none!important;
  overflow:visible!important;
}
html body #app .stage-head .tri::before,
html body #app .section-title .tri::before,
html body .section-title .tri::before,
html body .stage-head .tri::before{
  content:"А"!important;
  font-weight:900!important;
  font-size:15px!important;
  line-height:1!important;
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  font-family:Georgia,"Times New Roman",serif!important;
  letter-spacing:-.02em!important;
  text-shadow:0 0 8px rgba(246,186,62,.4)!important;
}

/* --- Имя клиента: не выходит за плашку --- */
html body #app .obj-fields{
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
}
html body #app .field-name{
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
html body #app .field-name input,
html body #app .obj-head .field-name input{
  max-width:100%!important;
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  display:block!important;
  min-height:48px!important;
  padding:12px 16px!important;
  font-size:20px!important;
  line-height:1.3!important;
  border:1px solid rgba(255,255,255,.16)!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.06)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  -webkit-background-clip:unset!important;
  background-clip:unset!important;
}
html body #app .field-name input:focus,
html body #app .obj-head .field-name input:focus{
  white-space:normal!important;
  overflow:auto!important;
  text-overflow:clip!important;
  border-color:rgba(246,186,62,.55)!important;
  box-shadow:0 0 0 2px rgba(246,186,62,.2)!important;
  outline:none!important;
}

/* --- Модалка: «Скопировать» / «Закрыть» — текст не белеет при hover --- */
html body .modal .modal-f .btn-outline,
html body .modal-f .btn-outline,
html body #modal .btn-outline,
html body .modal-f .btn-cancel,
html body .modal-f .btn-close,
html body #modal .btn-close{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  background:#F3F5F7!important;
  border:1px solid #D0D7E0!important;
}
html body .modal .modal-f .btn-outline:hover,
html body .modal-f .btn-outline:hover,
html body #modal .btn-outline:hover,
html body .modal-f .btn-cancel:hover,
html body .modal-f .btn-close:hover,
html body #modal .btn-close:hover{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  background:#FFF8E8!important;
  border-color:rgba(246,186,62,.65)!important;
  box-shadow:0 2px 10px rgba(246,186,62,.18)!important;
}
html body .modal .modal-f .btn-go,
html body .modal-f .btn-go{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body .modal .modal-f .btn-go:hover,
html body .modal-f .btn-go:hover{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}

/* --- Этап: убрать «прямоугольник в прямоугольнике» --- */
html body #app .stage{
  overflow:hidden!important;
  border:1px solid rgba(255,255,255,.1)!important;
  border-radius:14px!important;
  background:var(--al-bg2,#1C2E3E)!important;
  box-shadow:0 4px 14px rgba(0,0,0,.12)!important;
}
html body #app .stage-head{
  border:none!important;
  border-bottom:1px solid rgba(246,186,62,.18)!important;
  border-left:none!important;
  border-radius:0!important;
  margin:0!important;
  box-shadow:none!important;
  background:linear-gradient(180deg,#2A4158 0%,#243B52 100%)!important;
  padding:12px 14px!important;
}
html body #app .stage-head input.stage-name,
html body #app .stage-head .stage-name{
  border:none!important;
  box-shadow:none!important;
  background:transparent!important;
  border-radius:0!important;
  outline:none!important;
  min-width:0!important;
  flex:1 1 auto!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .stage-head input.stage-name:focus{
  border:none!important;
  box-shadow:none!important;
  background:rgba(0,0,0,.15)!important;
  border-radius:6px!important;
  outline:1px solid rgba(246,186,62,.4)!important;
  outline-offset:0!important;
}
/* сумма — бейдж, но без «второй рамки» этапа */
html body #app .stage-head .stage-sum{
  border:1px solid rgba(246,186,62,.35)!important;
  background:rgba(246,186,62,.14)!important;
  box-shadow:none!important;
}

/* Направление в базе рабочих */
html body .modal.workers-modal .wdb-dir,
html body .workers-modal .wdb-dir{
  font-style:normal!important;
  color:#8A5A00!important;
  -webkit-text-fill-color:#8A5A00!important;
  font-weight:700!important;
}


/* =========================================================
   v5.112 — ЭТАП 1/2/3: убрать «прямоугольник в прямоугольнике»
   ========================================================= */

/* Шапка фазы — одна сплошная полоса, без второй рамки */
html body #app .smeta-phase-title{
  border:none!important;
  border-bottom:1px solid rgba(246,186,62,.22)!important;
  border-left:none!important;
  border-radius:12px 12px 0 0!important;
  box-shadow:none!important;
  outline:none!important;
  background:linear-gradient(135deg,#1A2C3C 0%,#263B50 55%,#2F4A62 100%)!important;
  padding:12px 14px!important;
  overflow:hidden!important;
}
html body #app .smeta-phase-title::before,
html body #app .smeta-phase-title::after{
  display:none!important;
  content:none!important;
}
html body #app .smeta-phase-title .phase-title-in{
  border:none!important;
  background:transparent!important;
  box-shadow:none!important;
  padding:0!important;
  margin:0!important;
  min-width:0!important;
  flex:1 1 auto!important;
}
html body #app .smeta-phase-title input.stage-name,
html body #app .smeta-phase-title .stage-name{
  border:none!important;
  outline:none!important;
  box-shadow:none!important;
  background:transparent!important;
  border-radius:0!important;
  padding:0!important;
  margin:0!important;
  width:100%!important;
  min-width:0!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .smeta-phase-title input.stage-name:focus{
  border:none!important;
  outline:none!important;
  box-shadow:none!important;
  background:transparent!important;
  border-radius:0!important;
}
/* сумма — просто золотой текст, без бейджа-коробки */
html body #app .smeta-phase-title .phase-sum{
  border:none!important;
  background:transparent!important;
  box-shadow:none!important;
  padding:0 4px!important;
  border-radius:0!important;
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
/* крестик — без отдельной рамки-кнопки */
html body #app .smeta-phase-title .phase-del{
  border:none!important;
  background:transparent!important;
  box-shadow:none!important;
  min-width:36px!important;
  min-height:36px!important;
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
html body #app .smeta-phase-title .phase-del:hover{
  background:rgba(246,186,62,.15)!important;
  border-radius:8px!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
/* блок фазы: без лишней внешней «коробки» вокруг шапки */
html body #app .smeta-phase-block{
  border:none!important;
  box-shadow:none!important;
  background:transparent!important;
  overflow:hidden!important;
  border-radius:12px!important;
  margin-bottom:16px!important;
}
/* разделы внутри этапа — без второй тяжёлой рамки у шапки */
html body #app .smeta-phase-block .stage{
  border-left:none!important;
  border-right:none!important;
  border-top:1px solid rgba(255,255,255,.06)!important;
  box-shadow:none!important;
  border-radius:0!important;
  margin-top:0!important;
}
html body #app .smeta-phase-block .stage:last-child{
  border-radius:0 0 12px 12px!important;
}
html body #app .smeta-phase-block .stage-head{
  border:none!important;
  border-left:none!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:rgba(255,255,255,.04)!important;
}
html body #app .smeta-phase-block .stage-head input.stage-name,
html body #app .smeta-phase-block .stage-head .stage-name{
  border:none!important;
  box-shadow:none!important;
  background:transparent!important;
  outline:none!important;
}
html body #app .smeta-phase-block .stage-head .stage-sum{
  border:none!important;
  background:transparent!important;
  box-shadow:none!important;
  padding:0 4px!important;
}

/* index.html inline overrides (#app .smeta-phase-title border-left) */
html body #app .smeta-phase-title,
html body #app .stage-head{
  border-left-width:0!important;
}


/* =========================================================
   v5.113 — оранжевая полоса под шапкой ЭТАП 1/2/3
   ========================================================= */
html body #app .smeta-phase-title{
  position:relative!important;
  border-bottom:none!important;
  padding-bottom:14px!important;
}
/* полоса между шапкой этапа и блоками ниже */
html body #app .smeta-phase-title::after{
  content:""!important;
  display:block!important;
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  height:3px!important;
  background:linear-gradient(90deg,#F6BA3E 0%,#E8A82E 55%,rgba(246,186,62,.45) 100%)!important;
  border-radius:0!important;
  pointer-events:none!important;
  box-shadow:0 0 10px rgba(246,186,62,.35)!important;
  z-index:2!important;
}
/* на всякий случай — линия на стыке с первым разделом */
html body #app .smeta-phase-block > .stage:first-of-type{
  border-top:none!important;
  box-shadow:none!important;
}
html body #app .smeta-phase-block > .smeta-phase-title + .stage,
html body #app .smeta-phase-block > .smeta-phase-title + *{
  border-top-color:transparent!important;
}


/* =========================================================
   v5.114 — Финансы: 6 карточек в одном ряду/стиле
   ========================================================= */
html body #app .finance-cards,
html body #app .cards.finance-cards,
html body #app .finance-cards.finance-grid-6{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  margin-bottom:18px!important;
  width:100%!important;
}
/* телефон / планшет: ровно 2 колонки × 3 ряда (6 карточек) */
@media (max-width:900px){
  html body #app .finance-cards,
  html body #app .cards.finance-cards,
  html body #app .finance-cards.finance-grid-6,
  html body #app .finance-cards.finance-row-1,
  html body #app .finance-cards.finance-row-2{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
html body #app .finance-cards .card{
  min-width:0!important;
  padding:14px 16px!important;
  border-radius:14px!important;
  background:linear-gradient(165deg,#243B52 0%,#1C2E3E 100%)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:0 6px 18px rgba(0,0,0,.2)!important;
}
html body #app .finance-cards .card .lbl{
  color:rgba(255,255,255,.72)!important;
  -webkit-text-fill-color:rgba(255,255,255,.72)!important;
  font-size:10.5px!important;
  letter-spacing:.06em!important;
  margin-bottom:8px!important;
}
html body #app .finance-cards .card .val{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  font-size:20px!important;
  font-weight:800!important;
  letter-spacing:-.02em!important;
}
/* акценты по смыслу — только тонкая рамка, общий стиль сохраняем */
html body #app .finance-cards .card.accent{
  border-color:rgba(246,186,62,.45)!important;
  box-shadow:0 0 0 1px rgba(246,186,62,.12),0 6px 18px rgba(0,0,0,.22)!important;
}
html body #app .finance-cards .card.accent .lbl{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
html body #app .finance-cards .card.paid{
  border-color:rgba(192,67,47,.5)!important;
}
html body #app .finance-cards .card.balance{
  border-color:rgba(46,125,91,.5)!important;
}
html body #app .finance-cards .card.buy{
  border-color:rgba(59,110,156,.5)!important;
}
html body #app .finance-cards .card.adv{
  border-color:rgba(246,186,62,.35)!important;
}
html body #app .finance-cards .card.adv-left.pos{
  border-color:rgba(46,125,91,.45)!important;
}
html body #app .finance-cards .card.adv-left.neg{
  border-color:rgba(192,67,47,.55)!important;
  background:linear-gradient(165deg,rgba(80,30,28,.55),rgba(40,18,16,.75))!important;
}
html body #app .finance-cards .card.adv-left.neg .lbl,
html body #app .finance-cards .card.adv-left.neg .val{
  color:#FF6B5A!important;
  -webkit-text-fill-color:#FF6B5A!important;
}
html body #app .finance-cards .card.balance .val.due{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
/* таблица авансов под карточками */
html body #app .adv-wrap{
  margin-bottom:18px!important;
}


/* =========================================================
   v5.116 — Финансы: 2 ряда по 3 карточки, без «остаток к оплате»
   ========================================================= */
html body #app .finance-cards.finance-row-1,
html body #app .finance-cards.finance-row-2{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  margin-bottom:12px!important;
}
html body #app .finance-cards.finance-row-2{
  margin-bottom:18px!important;
}
html body #app .finance-cards .card.extra{
  border-color:rgba(246,186,62,.4)!important;
}
html body #app .finance-cards .card.extra .lbl{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
/* старую balance-карточку скрываем, если где-то осталась */
html body #app .finance-cards .card.balance{
  display:none!important;
}


/* =========================================================
   v5.117 — верхний ряд единый стиль; остаток аванса = зелёный «перерасход»
   ========================================================= */

/* Ряд 1: Итого / Закупки / Допы — одинаковый вид */
html body #app .finance-row-1 .card,
html body #app .finance-row-1 .card.accent,
html body #app .finance-row-1 .card.buy,
html body #app .finance-row-1 .card.extra{
  background:linear-gradient(165deg,#243B52 0%,#1C2E3E 100%)!important;
  border:1px solid rgba(255,255,255,.14)!important;
  box-shadow:0 6px 18px rgba(0,0,0,.2)!important;
}
html body #app .finance-row-1 .card .lbl,
html body #app .finance-row-1 .card.accent .lbl,
html body #app .finance-row-1 .card.buy .lbl,
html body #app .finance-row-1 .card.extra .lbl{
  color:rgba(255,255,255,.75)!important;
  -webkit-text-fill-color:rgba(255,255,255,.75)!important;
}
html body #app .finance-row-1 .card .val,
html body #app .finance-row-1 .card.accent .val,
html body #app .finance-row-1 .card.buy .val,
html body #app .finance-row-1 .card.extra .val,
html body #app .finance-row-1 #cardTotal,
html body #app .finance-row-1 #cardBuy,
html body #app .finance-row-1 #cardExtra{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}

/* Внесено авансом / Оплачено — не трогаем (как есть) */

/* Остаток аванса (pos) — как перерасход, но зелёным */
html body #app .finance-cards .card.adv-left.pos{
  border:1px solid rgba(46,125,91,.55)!important;
  background:linear-gradient(165deg,rgba(28,70,48,.55),rgba(16,40,28,.75))!important;
  box-shadow:0 0 0 1px rgba(46,125,91,.12),0 6px 18px rgba(0,0,0,.22)!important;
}
html body #app .finance-cards .card.adv-left.pos .lbl,
html body #app .finance-cards .card.adv-left.pos .val,
html body #app .finance-cards .card.adv-left.pos #cardAdvLeft{
  color:#5DDB9A!important;
  -webkit-text-fill-color:#5DDB9A!important;
}
/* Перерасход (neg) — оставляем красный как был */
html body #app .finance-cards .card.adv-left.neg{
  border:1px solid rgba(192,67,47,.55)!important;
  background:linear-gradient(165deg,rgba(80,30,28,.55),rgba(40,18,16,.75))!important;
}
html body #app .finance-cards .card.adv-left.neg .lbl,
html body #app .finance-cards .card.adv-left.neg .val{
  color:#FF6B5A!important;
  -webkit-text-fill-color:#FF6B5A!important;
}


/* =========================================================
   v5.118 — полоска + оранжевые подписи верхнего ряда;
            внесено зелёным, оплачено красным
   ========================================================= */

/* Верхние 3: золотая полоска + оранжевый label (fin-top или legacy finance-row-1) */
html body #app .finance-cards .card.fin-top::after,
html body #app .finance-row-1 .card::after,
html body #app .finance-row-1 .card.accent::after,
html body #app .finance-row-1 .card.buy::after,
html body #app .finance-row-1 .card.extra::after{
  content:""!important;
  position:absolute!important;
  top:0!important;
  left:0!important;
  right:0!important;
  height:3px!important;
  opacity:1!important;
  background:linear-gradient(90deg,transparent,#F6BA3E,#E8A82E,transparent)!important;
  pointer-events:none!important;
  display:block!important;
}
html body #app .finance-cards .card.fin-top .lbl,
html body #app .finance-row-1 .card .lbl,
html body #app .finance-row-1 .card.accent .lbl,
html body #app .finance-row-1 .card.buy .lbl,
html body #app .finance-row-1 .card.extra .lbl{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
/* суммы верхнего ряда — белые */
html body #app .finance-cards .card.fin-top .val,
html body #app .finance-row-1 .card .val{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}

/* Внесено авансом — зелёный текст (label + value) */
html body #app .finance-cards .card.adv .lbl,
html body #app .finance-cards .card.adv .val,
html body #app .finance-cards .card.adv #cardAdvIn{
  color:#5DDB9A!important;
  -webkit-text-fill-color:#5DDB9A!important;
}

/* Оплачено — красный текст (label + value) */
html body #app .finance-cards .card.paid .lbl,
html body #app .finance-cards .card.paid .val,
html body #app .finance-cards .card.paid #cardPaid,
html body #app .finance-cards .card.paid .lbl span{
  color:#FF6B5A!important;
  -webkit-text-fill-color:#FF6B5A!important;
}


/* =========================================================
   v5.119 — суммы «Внесено» и «Оплачено» белые; подписи цветные
   ========================================================= */
html body #app .finance-cards .card.adv .val,
html body #app .finance-cards .card.adv #cardAdvIn{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .finance-cards .card.adv .lbl{
  color:#5DDB9A!important;
  -webkit-text-fill-color:#5DDB9A!important;
}
html body #app .finance-cards .card.paid .val,
html body #app .finance-cards .card.paid #cardPaid{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .finance-cards .card.paid .lbl,
html body #app .finance-cards .card.paid .lbl span{
  color:#FF6B5A!important;
  -webkit-text-fill-color:#FF6B5A!important;
}


/* =========================================================
   v5.120 — «Оплачено (смета + чеки)» подпись оранжевая
   ========================================================= */
html body #app .finance-cards .card.paid .lbl,
html body #app .finance-cards .card.paid .lbl span{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
/* сумма остаётся белой */
html body #app .finance-cards .card.paid .val,
html body #app .finance-cards .card.paid #cardPaid{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}


/* =========================================================
   v5.121 — блок «Пополнения аванса»: лёгкий polish
   ========================================================= */
html body #app .adv-wrap{
  margin:4px 0 22px!important;
}
html body #app .adv-panel{
  background:linear-gradient(165deg,#243B52 0%,#1C2E3E 100%)!important;
  border:1px solid rgba(246,186,62,.28)!important;
  border-radius:16px!important;
  box-shadow:0 8px 24px rgba(0,0,0,.2)!important;
  overflow:hidden!important;
  position:relative!important;
}
html body #app .adv-panel::before{
  content:""!important;
  position:absolute!important;
  top:0!important;left:0!important;right:0!important;
  height:3px!important;
  background:linear-gradient(90deg,transparent,#F6BA3E,#E8A82E,transparent)!important;
  pointer-events:none!important;
}
html body #app .adv-panel-h{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  padding:14px 16px 12px!important;
  border-bottom:1px solid rgba(255,255,255,.08)!important;
}
html body #app .adv-panel-ic{
  width:40px!important;height:40px!important;
  border-radius:12px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:rgba(246,186,62,.14)!important;
  border:1px solid rgba(246,186,62,.3)!important;
  font-size:18px!important;
  flex:none!important;
}
html body #app .adv-panel-titles{flex:1!important;min-width:0!important}
html body #app .adv-panel-kicker{
  font-size:10px!important;
  font-weight:800!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  margin-bottom:2px!important;
}
html body #app .adv-panel-title{
  font-size:15px!important;
  font-weight:800!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  letter-spacing:-.01em!important;
}
html body #app .adv-panel-count{
  flex:none!important;
  min-width:28px!important;
  height:28px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:12px!important;
  font-weight:800!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  background:linear-gradient(135deg,#F6BA3E,#E8A82E)!important;
  box-shadow:0 2px 8px rgba(246,186,62,.3)!important;
}
html body #app .adv-table-wrap{
  margin:0!important;
  border:none!important;
  border-radius:0!important;
  background:transparent!important;
  overflow-x:auto!important;
}
html body #app .adv-table{
  width:100%!important;
  border-collapse:collapse!important;
  margin:0!important;
}
html body #app .adv-table thead th{
  text-align:left!important;
  font-size:10px!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
  color:rgba(255,255,255,.55)!important;
  -webkit-text-fill-color:rgba(255,255,255,.55)!important;
  font-weight:800!important;
  padding:10px 14px 8px!important;
  border-bottom:1px solid rgba(255,255,255,.08)!important;
  background:rgba(0,0,0,.12)!important;
}
html body #app .adv-table thead th.num{text-align:right!important}
html body #app .adv-table tbody td{
  padding:11px 14px!important;
  border-bottom:1px solid rgba(255,255,255,.06)!important;
  color:rgba(255,255,255,.88)!important;
  -webkit-text-fill-color:rgba(255,255,255,.88)!important;
  font-size:13.5px!important;
  vertical-align:middle!important;
}
html body #app .adv-table tbody tr:last-child td{border-bottom:none!important}
html body #app .adv-table tbody tr:hover td{
  background:rgba(246,186,62,.06)!important;
}
html body #app .adv-table .adv-date{
  color:rgba(255,255,255,.7)!important;
  -webkit-text-fill-color:rgba(255,255,255,.7)!important;
  white-space:nowrap!important;
  font-weight:600!important;
}
html body #app .adv-table .adv-note{
  font-weight:600!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #app .adv-table .adv-sum,
html body #app .adv-table td.num{
  text-align:right!important;
  font-weight:800!important;
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  white-space:nowrap!important;
}
html body #app .adv-table .row-x{
  color:rgba(255,255,255,.45)!important;
  -webkit-text-fill-color:rgba(255,255,255,.45)!important;
  border-radius:8px!important;
}
html body #app .adv-table .row-x:hover{
  background:rgba(192,67,47,.2)!important;
  color:#FF8A7A!important;
  -webkit-text-fill-color:#FF8A7A!important;
}
html body #app .adv-empty{
  margin:0!important;
  padding:16px 18px!important;
  color:rgba(255,255,255,.65)!important;
  -webkit-text-fill-color:rgba(255,255,255,.65)!important;
  font-size:13.5px!important;
  line-height:1.45!important;
  border-bottom:1px solid rgba(255,255,255,.06)!important;
}
html body #app .adv-panel-f{
  padding:12px 14px 14px!important;
  display:flex!important;
  justify-content:flex-start!important;
  border-top:1px solid rgba(255,255,255,.06)!important;
  background:rgba(0,0,0,.1)!important;
}
html body #app .adv-panel-f .btn-adv-add,
html body #app .adv-wrap .btn-adv-add,
html body #app button.btn-row.btn-adv-add{
  background:linear-gradient(135deg,#F6BA3E,#E8A82E)!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:none!important;
  border-radius:12px!important;
  font-weight:800!important;
  min-height:44px!important;
  padding:10px 16px!important;
  box-shadow:0 4px 14px rgba(246,186,62,.32)!important;
}
html body #app .adv-panel-f .btn-adv-add:hover{
  filter:brightness(1.05)!important;
  transform:translateY(-1px)!important;
}

/* =========================================================
   v5.127 — MOBILE AUDIT FIX (≤780 / ≤420)
   Только телефон/планшет. ПК-layout не меняем.
   ========================================================= */

/* --- Превью сметы: «Закрыть» / «PDF» всегда читаемые --- */
html body .modal-actions .btn-close,
html body #reportOverlay .btn-close,
html body .smeta-x .btn-close,
html body .smeta-rpt-sheet .btn-close{
  background:#F3F5F7!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:1px solid #D0D7E0!important;
  font-weight:700!important;
}
html body .modal-actions .btn-print,
html body #reportOverlay .btn-print,
html body .smeta-x .btn-print,
html body .smeta-rpt-sheet .btn-print{
  background:linear-gradient(135deg,#E8A82E,#F6BA3E)!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:none!important;
  font-weight:800!important;
}

/* --- Партнёр: светлые блоки прогресса — тёмный текст --- */
html body #partnerShell .partner-main,
html body #partnerMain.partner-main,
html body #partnerMain{
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
}
html body #partnerShell .pk-pick-empty,
html body #partnerShell .pk-pick-empty *,
html body #partnerShell .pk-overview,
html body #partnerShell .pk-overview *,
html body #partnerShell .pk-cat,
html body #partnerShell .pk-cat *,
html body #partnerShell .pk-metric,
html body #partnerShell .pk-metric *,
html body #partnerShell .pk-title,
html body #partnerShell .pk-kicker,
html body #partnerShell .pk-big-pct,
html body #partnerShell .pk-big-pct span,
html body #partnerShell .pk-cat-name,
html body #partnerShell .pk-metric-top,
html body #partnerShell .pk-metric-top b,
html body #partnerShell .pk-metric-sub,
html body #partnerShell .pk-cat-row,
html body #partnerShell .pk-cat-row b,
html body #partnerShell .pk-chip,
html body #partnerShell .pk-chip b,
html body #partnerShell .pk-section-label,
html body #partnerShell .partner-photo-block h4,
html body #partnerShell .partner-photos h3,
html body #partnerShell .partner-photo-empty,
html body #partnerShell .partner-assign-info,
html body #partnerShell .partner-assign-info b,
html body #partnerShell .partner-assign-info span,
html body #partnerShell .partner-assign-sel{
  color:#1C2E3E!important;
  -webkit-text-fill-color:#1C2E3E!important;
}
html body #partnerShell .pk-kicker,
html body #partnerShell .pk-section-label,
html body #partnerShell .pk-metric-sub,
html body #partnerShell .partner-assign-info span,
html body #partnerShell .partner-photo-empty{
  color:#5A6A7A!important;
  -webkit-text-fill-color:#5A6A7A!important;
}
html body #partnerShell .pk-hero,
html body #partnerShell .pk-hero *,
html body #partnerShell .pk-hero-kicker,
html body #partnerShell .pk-hero-stat-lbl,
html body #partnerShell .pk-phase-label,
html body #partnerShell .pk-phase-label *{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #partnerShell .pk-hero-kicker,
html body #partnerShell .pk-hero-stat-lbl{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}

/* --- Вход: чёрный на gold (как остальные CTA) --- */
html body #authShell .login button.main{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}

@media (max-width:780px){
  /* Touch: удаление / крестики */
  html body #app .row-x,
  html body #app .stage-head .x,
  html body #app .phase-del,
  html body #app .fm-mob-del,
  html body #app .worker-chip .row-x,
  html body #app .worker-block .row-x,
  html body #app .media-thumb .mx{
    min-width:44px!important;
    min-height:44px!important;
    width:auto!important;
    height:auto!important;
    padding:10px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:18px!important;
    line-height:1!important;
    border-radius:10px!important;
    box-sizing:border-box!important;
    -webkit-tap-highlight-color:transparent!important;
  }
  html body #app .media-thumb .mx{
    position:absolute!important;
    top:0!important;right:0!important;
    width:36px!important;height:36px!important;
    min-width:36px!important;min-height:36px!important;
    padding:0!important;
    font-size:15px!important;
    background:rgba(20,30,42,.82)!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    border-radius:0 0 0 10px!important;
  }
  html body #app .media-thumb{
    width:76px!important;height:76px!important;
  }

  /* База рабочих: вкладки и + */
  html body .modal.workers-modal .wdb-tab,
  html body .modal .wdb-tab{
    min-height:44px!important;
    padding:10px 12px!important;
    font-size:12.5px!important;
    border-radius:12px!important;
  }
  html body .modal.workers-modal .wdb-add-btn,
  html body .modal .wdb-add-btn{
    min-height:40px!important;
    padding:8px 12px!important;
    font-size:12px!important;
  }
  html body .modal.workers-modal .wdb-add-dir,
  html body .modal .wdb-add-dir{
    min-height:44px!important;
    padding:10px 14px!important;
    font-size:13px!important;
  }

  /* Карточки сметы: 2 колонки + сумма на всю ширину */
  html body #app .fm-mob-row{
    grid-template-columns:1fr 1fr!important;
  }
  html body #app .fm-mob-row > div:last-child{
    grid-column:1 / -1!important;
  }
  html body #app .fm-mob-sum{
    text-align:left!important;
  }
  html body #app .fm-mob-name,
  html body #app .fm-mob-in,
  html body #app .fm-mob-sel{
    min-height:44px!important;
    font-size:16px!important;
  }

  /* Экспорт сметы рабочего */
  html body #app .worker-block-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    width:100%!important;
  }
  html body #app .worker-block-actions .btn-worker-export,
  html body #app .worker-block-actions .btn-ghost-danger,
  html body #app .worker-block-actions .btn-sm{
    width:100%!important;
    min-height:44px!important;
    justify-content:center!important;
    font-size:13px!important;
  }
  html body #app .worker-block-actions .btn-ghost-danger{
    grid-column:1 / -1!important;
  }

  /* Кнопки шапки объекта */
  html body #app .head-actions .btn-primary,
  html body #app .head-actions .btn-outline,
  html body #app .head-actions .btn-deliver,
  html body #app .head-actions .btn-access-balanced,
  html body #app .head-actions .btn-head-sm{
    min-height:46px!important;
  }
  html body #app .head-actions .btn-outline.btn-head-sm{
    min-height:44px!important;
    font-size:13px!important;
    padding:10px 12px!important;
  }

  /* Отдел / чипы */
  html body #app .div-tab,
  .app .div-tab{
    min-height:44px!important;
    padding:10px 14px!important;
    font-size:12px!important;
  }
  html body #app .chip,
  .chip{
    min-height:40px!important;
    padding:8px 14px!important;
  }

  /* Поставщик: чипы / статусы */
  html body #supplierShell .sup-chip{
    min-height:44px!important;
    padding:10px 14px!important;
    font-size:13px!important;
    display:inline-flex!important;
    align-items:center!important;
  }
  html body #supplierShell .sup-st-btn{
    min-height:44px!important;
    min-width:100px!important;
    padding:10px 14px!important;
  }

  /* Лента объектов: не съедать весь экран */
  html body #supplierShell .supplier-side,
  html body #partnerShell .partner-side{
    max-height:38vh!important;
    overflow:hidden!important;
  }
  html body #supplierShell .supplier-object-list,
  html body #partnerShell .partner-object-list{
    max-height:28vh!important;
    -webkit-overflow-scrolling:touch!important;
  }
  html body #supplierShell .sup-obj-card,
  html body #partnerShell .po-card{
    min-width:min(220px,78vw)!important;
  }
  html body #supplierShell .supplier-main,
  html body #partnerShell .partner-main{
    min-height:0!important;
    flex:1 1 auto!important;
  }

  /* Тулбар прораба: читаемые подписи */
  html body #app .fsb-btn,
  .app.mode-pick .fsb-btn{
    min-height:48px!important;
    height:auto!important;
    font-size:11px!important;
    padding:8px 6px!important;
    white-space:normal!important;
  }
  html body #app .fsb-btn .fsb-tx,
  .app.mode-pick .fsb-btn .fsb-tx{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:unset!important;
    font-size:11px!important;
    line-height:1.15!important;
  }

  /* Модалки: выше + safe-area footer */
  html body .modal-b,
  .modal .modal-b{
    max-height:min(72vh,640px)!important;
  }
  html body .modal-actions,
  .modal-actions{
    padding:12px 14px max(14px,env(safe-area-inset-bottom,0px))!important;
    gap:8px!important;
    flex-wrap:wrap!important;
  }
  html body .modal-actions .btn-close,
  html body .modal-actions .btn-print{
    min-height:44px!important;
    flex:1 1 40%!important;
  }

  /* Дизайн: timeline удобнее скроллить */
  html body #app .dz-timeline,
  html body #designerShell .dz-timeline,
  html body #clientRoot .dz-client-wrap .dz-timeline{
    padding:14px 12px!important;
    gap:4px!important;
    scroll-snap-type:x proximity!important;
    -webkit-overflow-scrolling:touch!important;
  }
  html body #app .dz-tl-item,
  html body #designerShell .dz-tl-item{
    min-width:88px!important;
    flex:0 0 auto!important;
    scroll-snap-align:start!important;
  }

  /* Клиент / партнёр: карточки этапов (дубль на случай theme override) */
  html body #clientRoot .table-wrap,
  html body #partnerMain .table-wrap{
    display:none!important;
  }
  html body #clientRoot .mob-stages,
  html body #partnerMain .mob-stages{
    display:block!important;
  }
  html body #clientRoot .cli-adv-tbl{
    display:none!important;
  }
  html body #clientRoot .cli-adv-cards{
    display:block!important;
  }

  /* Финансы на телефоне: 2 в ряд (не 1 и не «вразнобой») */
  html body #app .finance-cards,
  html body #app .finance-cards.finance-grid-6,
  html body #app .finance-cards.finance-row-1,
  html body #app .finance-cards.finance-row-2{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  /* Превью report overlay */
  html body #reportOverlay.modal-overlay,
  html body .modal-overlay#reportOverlay{
    padding:8px 6px max(8px,env(safe-area-inset-bottom,0px))!important;
    align-items:flex-end!important;
  }
  html body #reportOverlay .smeta-x,
  html body #reportOverlay .smeta-rpt-sheet{
    max-height:min(92dvh,920px)!important;
    overflow:auto!important;
    -webkit-overflow-scrolling:touch!important;
    border-radius:14px 14px 0 0!important;
  }

  /* btn-sm не ниже 44 на touch */
  html body #app .btn-sm{
    min-height:44px!important;
    padding:10px 12px!important;
  }

  /* access icon touch */
  html body #app .acc-ic{
    min-width:44px!important;
    min-height:44px!important;
    width:44px!important;
    height:44px!important;
  }
}

@media (max-width:420px){
  html body #app .fm-mob-row{
    grid-template-columns:1fr!important;
  }
  html body #app .fm-mob-row > div:last-child{
    grid-column:auto!important;
  }
  html body #app .fm-mob-row2{
    grid-template-columns:1fr!important;
  }
  html body #app .worker-block-actions{
    grid-template-columns:1fr!important;
  }
  html body #supplierShell .supplier-side,
  html body #partnerShell .partner-side{
    max-height:34vh!important;
  }
}

@media (max-width:780px) and (max-height:560px){
  html body #supplierShell .supplier-side,
  html body #partnerShell .partner-side{
    max-height:30vh!important;
  }
  html body #supplierShell .supplier-object-list,
  html body #partnerShell .partner-object-list{
    max-height:20vh!important;
  }
  html body .modal-b,
  .modal .modal-b{
    max-height:min(58vh,420px)!important;
  }
}

/* =========================================================
   v5.128 — mobile smeta: позиции видны; media-row; titles; open
   ========================================================= */

/* ПК: таблицы; телефон: карточки — всегда с !important */
@media (min-width:781px){
  html body #app .fm-mob-cards,
  html body #app .fm-mob-wcards{display:none!important}
}
@media (max-width:780px){
  html body #app .fm-mob-cards,
  html body #app .fm-mob-wcards{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    padding:10px 12px 6px!important;
  }
  html body #app .stage .table-wrap,
  html body #app .worker-block .table-wrap{
    display:none!important;
  }
  html body #app .fm-mob-card{
    display:block!important;
    margin-bottom:10px!important;
    visibility:visible!important;
  }
  html body #app .fm-mob-empty{
    display:block!important;
    color:rgba(255,255,255,.7)!important;
    -webkit-text-fill-color:rgba(255,255,255,.7)!important;
  }

  /* media-row: текст сверху, Фото|Видео в ряд */
  html body #app .media-row{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:10px!important;
    padding:12px!important;
  }
  html body #app .media-row .media-empty{
    display:block!important;
    width:100%!important;
    margin:0!important;
    color:rgba(255,255,255,.78)!important;
    -webkit-text-fill-color:rgba(255,255,255,.78)!important;
    font-size:12.5px!important;
    line-height:1.4!important;
  }
  html body #app .media-row .media-acts{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    width:100%!important;
  }
  html body #app .media-row .media-acts .btn-row{
    width:100%!important;
    min-height:44px!important;
    justify-content:center!important;
    margin:0!important;
  }
  html body #app .media-row .media-thumbs{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px!important;
  }
  html body #app .stage-foot{
    width:100%!important;
    padding:10px 12px!important;
  }
  html body #app .stage-foot .btn-row{
    width:100%!important;
    min-height:44px!important;
    justify-content:center!important;
  }

  /* Названия: перенос, не ellipsis */
  html body #app .stage-head{
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr) auto auto!important;
    align-items:start!important;
    gap:8px!important;
  }
  html body #app .stage-head input.stage-name,
  html body #app .stage-head .stage-name{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    line-height:1.25!important;
    font-size:15px!important;
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
  }
  html body #app .stage-head .stage-sum{
    white-space:nowrap!important;
    font-size:13px!important;
    align-self:center!important;
  }
  html body #app .smeta-phase-title{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto auto!important;
    align-items:start!important;
    gap:8px!important;
  }
  html body #app .smeta-phase-title .phase-title-in{
    min-width:0!important;
    max-width:100%!important;
  }
  html body #app .smeta-phase-title input.stage-name{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    line-height:1.25!important;
    font-size:14px!important;
    width:100%!important;
  }
  html body #app .smeta-phase-title .phase-sum{
    padding-top:2px!important;
    font-size:13px!important;
    white-space:nowrap!important;
  }

  /* mode-edit: main всегда доступен */
  html body #app.app.mode-edit .main,
  html body .app.mode-edit .main{
    display:block!important;
    visibility:visible!important;
    height:100dvh!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
  html body #app.app.mode-edit .sidebar,
  html body .app.mode-edit .sidebar{
    display:none!important;
  }
  html body #app.app.mode-pick .main,
  html body .app.mode-pick .main{
    display:none!important;
  }
  html body #app.app.mode-pick .sidebar,
  html body .app.mode-pick .sidebar{
    display:flex!important;
  }
}

/* =========================================================
   v5.129 — media-row HARD: Фото | Видео ровно, всегда
   ========================================================= */
html body #app .media-row,
html body #app .media-row.media-row-empty{
  display:flex!important;
  flex-direction:column!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:10px!important;
  width:100%!important;
  box-sizing:border-box!important;
}
html body #app .media-row > .media-empty,
html body #app .media-row .media-empty{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  flex:0 0 auto!important;
  order:1!important;
  margin:0!important;
  float:none!important;
  position:static!important;
}
html body #app .media-row > .media-thumbs,
html body #app .media-row .media-thumbs{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  width:100%!important;
  order:1!important;
  flex:0 0 auto!important;
}
html body #app .media-row > .media-acts,
html body #app .media-row .media-acts{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  grid-auto-flow:row!important;
  gap:8px!important;
  width:100%!important;
  max-width:100%!important;
  order:2!important;
  flex:0 0 auto!important;
  float:none!important;
  box-sizing:border-box!important;
}
html body #app .media-row .media-acts .btn-row,
html body #app .media-row .media-acts button,
html body #app .media-row button.media-btn-photo,
html body #app .media-row button.media-btn-video,
html body #app .media-row .btn-row{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  max-width:100%!important;
  min-height:48px!important;
  margin:0!important;
  float:none!important;
  flex:none!important;
  box-sizing:border-box!important;
  white-space:nowrap!important;
}
/* не давать кнопкам вставать в один ряд с текстом empty */
html body #app .media-row > .btn-row,
html body #app .media-row > button.btn-row{
  width:100%!important;
  order:3!important;
}

/* =========================================================
   v5.130 — главное меню mobile: сотрудники / заявки / задачи
   ========================================================= */
@media (max-width:780px){
  html body #app .side-top-nav,
  html body .app.mode-pick .side-top-nav{
    display:flex!important;
    flex-direction:column!important;
    flex-wrap:nowrap!important;
    gap:8px!important;
    width:100%!important;
    padding:8px 12px 10px!important;
    box-sizing:border-box!important;
  }
  html body #app .side-top-nav .leads-menu-wrap,
  html body #app .side-top-nav .notify-menu-wrap{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  html body #app .side-top-nav .leads-menu-wrap.on,
  html body #app .side-top-nav .notify-menu-wrap.on{
    display:block!important;
    width:100%!important;
  }
  html body #app .side-nav-btn,
  html body #app .side-nav-btn.staff-bar,
  html body #app .side-nav-btn.leads-menu-btn,
  html body #app button.side-nav-btn{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    max-width:100%!important;
    min-height:48px!important;
    height:auto!important;
    padding:12px 14px!important;
    gap:8px!important;
    white-space:normal!important;
    text-align:center!important;
    box-sizing:border-box!important;
    float:none!important;
    margin:0!important;
  }
  html body #app .side-nav-tx,
  html body #app .leads-menu-label,
  html body #app .side-nav-btn .side-nav-tx,
  html body #app .side-nav-btn .leads-menu-label{
    flex:0 1 auto!important;
    min-width:0!important;
    white-space:normal!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    line-height:1.25!important;
    font-size:14px!important;
    font-weight:700!important;
    color:#FFFFFF!important;
    -webkit-text-fill-color:#FFFFFF!important;
    padding-right:0!important;
    text-align:center!important;
  }
  html body #app .side-nav-ic{
    flex:0 0 22px!important;
    width:22px!important;
    font-size:16px!important;
  }
  html body #app .fsb-toolbar{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    grid-template-rows:none!important;
    grid-auto-rows:minmax(52px,auto)!important;
    gap:8px!important;
    width:100%!important;
    max-width:none!important;
  }
  html body #app .fsb-btn{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-height:52px!important;
    height:auto!important;
    padding:8px 6px!important;
    white-space:normal!important;
    box-sizing:border-box!important;
  }
  html body #app .fsb-btn .fsb-tx{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    font-size:11px!important;
    line-height:1.2!important;
    max-width:100%!important;
    text-align:center!important;
    color:inherit!important;
    -webkit-text-fill-color:inherit!important;
  }
  html body #app .side-foot-row{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    width:100%!important;
  }
  html body #app .side-foot-btn,
  html body #app .side-foot-sync{
    width:100%!important;
    min-height:48px!important;
    white-space:normal!important;
    line-height:1.2!important;
    justify-content:center!important;
  }
  /* Закрыть в модалке */
  html body .modal .modal-f,
  html body .modal-f{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:10px!important;
    justify-content:flex-end!important;
    align-items:center!important;
  }
  html body .modal .modal-f .btn-close,
  html body .modal-f .btn-close,
  html body .modal .btn-close{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:48px!important;
    padding:12px 20px!important;
    background:#F3F5F7!important;
    color:#111827!important;
    -webkit-text-fill-color:#111827!important;
    border:1px solid #D0D7E0!important;
    border-radius:12px!important;
    font-weight:700!important;
    font-size:14px!important;
    white-space:nowrap!important;
    width:auto!important;
    max-width:100%!important;
  }
}
/* =========================================================
   v5.131 — field-name (client name plaque): taller on phone
   ========================================================= */
@media (max-width:780px){
  html body #app .field-name,
  html body #app .obj-fields .field-name{
    width:100%!important;
  }
  html body #app .field-name input,
  html body #app .obj-head .field-name input{
    min-height:56px!important;
    padding:14px 16px!important;
    font-size:20px!important;
    line-height:1.3!important;
    border-radius:14px!important;
  }
}
/* =========================================================
   v5.132 — mobile mode-pick: more height for client list
   (compact chrome: toolbar, menu, footer)
   ========================================================= */
@media (max-width:780px){
  /* Sidebar: list must eat remaining height */
  html body #app.app.mode-pick,
  html body .app.mode-pick{
    height:100dvh!important;
    max-height:100dvh!important;
    overflow:hidden!important;
  }
  html body #app.app.mode-pick .sidebar,
  html body .app.mode-pick .sidebar{
    display:flex!important;
    flex-direction:column!important;
    height:100%!important;
    max-height:100dvh!important;
    overflow:hidden!important;
    min-height:0!important;
  }

  /* Logo + identity: tight */
  html body .app.mode-pick .brand{
    padding:4px 10px 2px!important;
    flex:0 0 auto!important;
  }
  html body .app.mode-pick .brand img,
  html body .app.mode-pick .brand .app-logo{
    max-height:28px!important;
    max-width:min(130px,55vw)!important;
  }
  html body .app.mode-pick .foreman-session{
    padding:0 8px 4px!important;
    flex:0 0 auto!important;
  }
  html body .app.mode-pick .fsb-identity{
    padding:2px 4px 4px!important;
    min-height:0!important;
  }
  html body .app.mode-pick .fsb-name{font-size:14px!important;line-height:1.15!important}
  html body .app.mode-pick .fsb-role{font-size:11px!important;margin-top:1px!important}

  /* 6 admin buttons: 3 columns x 2 rows (was 2x3) */
  html body #app .fsb-toolbar,
  html body .app.mode-pick .fsb-toolbar{
    display:grid!important;
    grid-template-columns:1fr 1fr 1fr!important;
    grid-template-rows:none!important;
    grid-auto-rows:minmax(40px,auto)!important;
    gap:5px!important;
    width:100%!important;
    max-width:none!important;
    padding:0!important;
    margin:0!important;
  }
  html body #app .fsb-btn,
  html body .app.mode-pick .fsb-btn{
    min-height:40px!important;
    height:auto!important;
    padding:5px 3px!important;
    gap:2px!important;
    border-radius:10px!important;
    font-size:10px!important;
  }
  html body #app .fsb-btn .fsb-ic,
  html body .app.mode-pick .fsb-btn .fsb-ic{
    font-size:14px!important;
    line-height:1!important;
  }
  html body #app .fsb-btn .fsb-tx,
  html body .app.mode-pick .fsb-btn .fsb-tx{
    font-size:9.5px!important;
    line-height:1.1!important;
    white-space:normal!important;
    overflow:hidden!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
  }

  /* Menu: 2 columns (staff full width), shorter rows */
  html body #app .side-top-nav,
  html body .app.mode-pick .side-top-nav{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:5px!important;
    padding:4px 8px 6px!important;
    flex:0 0 auto!important;
    width:100%!important;
    box-sizing:border-box!important;
  }
  html body #app .side-top-nav > .staff-bar,
  html body #app .side-top-nav > #staffBar,
  html body .app.mode-pick .side-top-nav > .staff-bar,
  html body .app.mode-pick .side-top-nav > #staffBar{
    grid-column:1 / -1!important;
  }
  html body #app .side-top-nav .leads-menu-wrap,
  html body #app .side-top-nav .notify-menu-wrap,
  html body .app.mode-pick .side-top-nav .leads-menu-wrap,
  html body .app.mode-pick .side-top-nav .notify-menu-wrap{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  html body #app .side-top-nav .leads-menu-wrap.on,
  html body #app .side-top-nav .notify-menu-wrap.on,
  html body .app.mode-pick .side-top-nav .leads-menu-wrap.on,
  html body .app.mode-pick .side-top-nav .notify-menu-wrap.on{
    display:block!important;
  }
  html body #app .side-nav-btn,
  html body #app .side-nav-btn.staff-bar,
  html body #app .side-nav-btn.leads-menu-btn,
  html body #app button.side-nav-btn,
  html body .app.mode-pick .side-nav-btn{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:36px!important;
    height:auto!important;
    padding:7px 10px!important;
    gap:6px!important;
    font-size:12px!important;
    border-radius:10px!important;
    width:100%!important;
    box-sizing:border-box!important;
    text-align:center!important;
  }
  html body #app .side-nav-ic,
  html body .app.mode-pick .side-nav-ic{
    flex:0 0 16px!important;
    width:16px!important;
    font-size:13px!important;
  }
  html body #app .side-nav-tx,
  html body #app .leads-menu-label,
  html body #app .side-nav-btn .side-nav-tx,
  html body #app .side-nav-btn .leads-menu-label,
  html body .app.mode-pick .side-nav-tx,
  html body .app.mode-pick .leads-menu-label{
    flex:0 1 auto!important;
    font-size:11.5px!important;
    line-height:1.15!important;
    padding-right:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    text-align:center!important;
  }
  html body #app .leads-menu-badge,
  html body .app.mode-pick .leads-menu-badge{
    right:6px!important;
    min-width:16px!important;
    height:16px!important;
    font-size:9px!important;
  }

  /* Section head: compact */
  html body .app.mode-pick .side-head{
    padding:4px 10px!important;
    flex:0 0 auto!important;
    min-height:0!important;
  }
  html body .app.mode-pick .side-head .eyebrow{
    font-size:9px!important;
    letter-spacing:.08em!important;
  }
  html body .app.mode-pick .side-head .btn-add{
    min-height:34px!important;
    padding:6px 10px!important;
    font-size:12px!important;
    border-radius:10px!important;
  }

  /* THE LIST: take all remaining height */
  html body .app.mode-pick .client-list,
  html body #app.app.mode-pick .client-list{
    display:block!important;
    flex:1 1 auto!important;
    flex-grow:1!important;
    flex-shrink:1!important;
    min-height:120px!important;
    max-height:none!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior:contain!important;
    padding:2px 8px 6px!important;
    border:none!important;
  }

  /* Cards still readable, not huge */
  html body .app.mode-pick .client-card,
  html body .app.mode-pick .client-list .client-card{
    min-height:0!important;
    padding:7px 10px 7px 14px!important;
    margin-bottom:3px!important;
    border-radius:10px!important;
  }

  /* Footer: compact, less chrome */
  html body .app.mode-pick .side-foot{
    flex:0 0 auto!important;
    gap:4px!important;
    padding:4px 8px max(6px,env(safe-area-inset-bottom,0px))!important;
  }
  html body .app.mode-pick .msk-clock{
    min-height:28px!important;
    padding:4px 8px!important;
    font-size:11px!important;
    border-radius:8px!important;
  }
  html body .app.mode-pick .side-foot-sync,
  html body #app .side-foot-sync{
    min-height:36px!important;
    padding:7px 10px!important;
    font-size:12px!important;
    border-radius:10px!important;
  }
  html body .app.mode-pick .side-foot-row{
    gap:5px!important;
  }
  html body .app.mode-pick .side-foot-btn,
  html body #app .side-foot-btn{
    min-height:32px!important;
    padding:6px 6px!important;
    font-size:10.5px!important;
    border-radius:8px!important;
  }
  html body .app.mode-pick .side-foot .app-ver{
    font-size:10px!important;
    margin:0!important;
    line-height:1.2!important;
    opacity:.75!important;
  }
}

/* Very short screens: hide backup row, shrink more */
@media (max-width:780px) and (max-height:700px){
  html body .app.mode-pick .side-foot-row{
    display:none!important;
  }
  html body .app.mode-pick .side-foot .app-ver{
    display:none!important;
  }
  html body #app .fsb-btn,
  html body .app.mode-pick .fsb-btn{
    min-height:36px!important;
    padding:4px 2px!important;
  }
  html body #app .side-nav-btn,
  html body .app.mode-pick .side-nav-btn{
    min-height:34px!important;
    padding:6px 7px!important;
  }
}
/* =========================================================
   v5.133 — side-nav labels centered in button frame (mobile)
   ========================================================= */
@media (max-width:780px){
  html body #app .side-top-nav .side-nav-btn,
  html body #app .side-top-nav .side-nav-btn.staff-bar,
  html body #app .side-top-nav .side-nav-btn.leads-menu-btn,
  html body #app .side-top-nav button.side-nav-btn,
  html body .app.mode-pick .side-top-nav .side-nav-btn{
    justify-content:center!important;
    align-items:center!important;
    text-align:center!important;
  }
  html body #app .side-top-nav .side-nav-tx,
  html body #app .side-top-nav .leads-menu-label,
  html body #app .side-top-nav .side-nav-btn .side-nav-tx,
  html body #app .side-top-nav .side-nav-btn .leads-menu-label,
  html body .app.mode-pick .side-top-nav .side-nav-tx,
  html body .app.mode-pick .side-top-nav .leads-menu-label{
    flex:0 1 auto!important;
    text-align:center!important;
    padding-right:0!important;
    padding-left:0!important;
    margin:0!important;
  }
  /* badge stays absolute — doesn't shift text */
  html body #app .side-top-nav .leads-menu-badge,
  html body .app.mode-pick .side-top-nav .leads-menu-badge{
    position:absolute!important;
    right:6px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
  }
}


/* =========================================================
   v5.134b — ТОЛЬКО телефон (≤780px). ПК не трогаем.
   + фикс «ДОП» в одной строке с названием (таблица сметы)
   ========================================================= */

/* «ДОП» рядом с названием — в строке таблицы (ПК и телефон) */
html body #app .smeta-tbl td.col-name .name-cell{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0!important;
  width:100%!important;
  box-sizing:border-box!important;
}
html body #app .smeta-tbl td.col-name .name-cell > .cell-in{
  flex:1 1 auto!important;
  min-width:0!important;
  width:auto!important;
  max-width:100%!important;
}
html body #app .smeta-tbl td.col-name .name-cell > .type-tag{
  flex:none!important;
  margin:0!important;
  align-self:center!important;
  white-space:nowrap!important;
  line-height:1.2!important;
  vertical-align:middle!important;
}

/* fold / collapse / meta / buttons — только мобилка */
@media (max-width:780px){
  html body #app .obj-head{
    flex-direction:column!important;
    align-items:stretch!important;
    gap:12px!important;
  }
  html body #app .obj-head .obj-fields{
    width:100%!important;
    max-width:100%!important;
  }
  html body #app .obj-head .meta-row{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px 8px!important;
    margin-top:12px!important;
    width:100%!important;
    align-items:stretch!important;
  }
  html body #app .obj-head .meta-row > label{
    display:flex!important;
    flex-direction:column!important;
    gap:6px!important;
    min-width:0!important;
    flex:none!important;
    width:100%!important;
    margin:0!important;
    font-size:10px!important;
    letter-spacing:.05em!important;
    text-transform:uppercase!important;
    font-weight:700!important;
    line-height:1.2!important;
  }
  html body #app .obj-head .meta-row input,
  html body #app .obj-head .meta-row select,
  html body #app .obj-head .meta-row .type-readonly{
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:44px!important;
    height:44px!important;
    margin:0!important;
    padding:0 10px!important;
    border-radius:10px!important;
    font-size:13px!important;
    font-weight:700!important;
    line-height:1.2!important;
    display:flex!important;
    align-items:center!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  html body #app .obj-head .meta-row input,
  html body #app .obj-head .meta-row select{
    border:1px solid rgba(255,255,255,.18)!important;
    background:rgba(0,0,0,.28)!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
  }
  html body #app .obj-head .meta-row select{
    appearance:none!important;
    -webkit-appearance:none!important;
    background-image:linear-gradient(45deg,transparent 50%,#F6BA3E 50%),linear-gradient(135deg,#F6BA3E 50%,transparent 50%)!important;
    background-position:calc(100% - 14px) calc(50% - 2px),calc(100% - 9px) calc(50% - 2px)!important;
    background-size:5px 5px,5px 5px!important;
    background-repeat:no-repeat!important;
    padding-right:28px!important;
  }
  html body #app .obj-head .meta-row .type-readonly{
    justify-content:center!important;
    text-align:center!important;
    text-transform:uppercase!important;
    letter-spacing:.04em!important;
    border:2px solid #F6BA3E!important;
    background:linear-gradient(135deg,#E8A82E,#F6BA3E,#FBD888)!important;
    color:#111827!important;
    -webkit-text-fill-color:#111827!important;
    box-shadow:0 2px 8px rgba(246,186,62,.25)!important;
    font-size:11.5px!important;
    font-weight:800!important;
    padding:0 8px!important;
  }
  html body #app .obj-head .meta-row > label:nth-child(odd):last-child{
    grid-column:1 / -1!important;
  }

  html body #app .source-badge{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:flex-start!important;
    gap:6px 8px!important;
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    white-space:normal!important;
    word-break:break-word!important;
    overflow-wrap:anywhere!important;
    line-height:1.45!important;
    border-radius:12px!important;
    padding:10px 12px!important;
    margin:6px 0 14px!important;
    font-size:12px!important;
  }
  html body #app .source-badge b,
  html body #app .source-badge .source-badge-txt{
    word-break:break-word!important;
    overflow-wrap:anywhere!important;
    white-space:normal!important;
  }
  html body #app .source-badge .source-badge-ico{flex:none!important}
  html body #app .source-badge .source-badge-txt{flex:1 1 0!important;min-width:0!important}

  html body #app .stage-fold{
    flex:none!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:32px!important;
    min-width:32px!important;
    height:32px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid rgba(246,186,62,.35)!important;
    border-radius:8px!important;
    background:rgba(246,186,62,.12)!important;
    cursor:pointer!important;
    box-sizing:border-box!important;
  }
  html body #app .stage-fold .stage-chev{
    width:0!important;height:0!important;
    border-left:5px solid transparent!important;
    border-right:5px solid transparent!important;
    border-top:7px solid #F6BA3E!important;
    border-bottom:none!important;
    transition:transform .2s ease!important;
    display:block!important;
  }
  html body #app .stage.is-collapsed .stage-fold .stage-chev{
    transform:rotate(-90deg)!important;
  }
  html body #app .stage.is-collapsed > .table-wrap,
  html body #app .stage.is-collapsed > .fm-mob-cards,
  html body #app .stage.is-collapsed > .media-row,
  html body #app .stage.is-collapsed > .stage-foot{
    display:none!important;
  }
  html body #app .stage.is-collapsed .stage-head{
    border-bottom:none!important;
  }

  html body #app .head-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    width:100%!important;
    max-width:100%!important;
    align-items:stretch!important;
    justify-content:stretch!important;
  }
  html body #app .head-actions > button,
  html body #app .head-actions .btn-primary,
  html body #app .head-actions .btn-outline,
  html body #app .head-actions .btn-deliver,
  html body #app .head-actions .btn-primary.btn-access-balanced,
  html body #app .head-actions .btn-outline.btn-head-sm,
  html body #app .head-actions .btn-deliver.btn-deliver-wide{
    grid-column:auto!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    flex:none!important;
    min-height:48px!important;
    height:auto!important;
    padding:10px 8px!important;
    margin:0!important;
    font-size:12px!important;
    font-weight:700!important;
    line-height:1.25!important;
    white-space:normal!important;
    text-align:center!important;
    justify-content:center!important;
    align-items:center!important;
    display:inline-flex!important;
    gap:6px!important;
    box-sizing:border-box!important;
    order:unset!important;
    border-radius:12px!important;
  }
  html body #app .head-actions .btn-primary.btn-access-balanced svg{
    width:14px!important;height:14px!important;flex:none!important;
  }
  html body #app .head-actions .btn-deliver,
  html body #app .head-actions .btn-deliver.btn-deliver-wide{
    grid-column:1 / -1!important;
    min-height:48px!important;
    font-size:13.5px!important;
    font-weight:800!important;
  }
  html body #app .head-actions > button:only-child{
    grid-column:1 / -1!important;
  }

  /* мобильная карточка: ДОП в шапке рядом с именем */
  html body #app .fm-mob-card .fm-mob-head{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
  }
  html body #app .fm-mob-card .fm-mob-head .fm-mob-name{
    flex:1 1 auto!important;
    min-width:0!important;
  }
  html body #app .fm-mob-card .fm-mob-head .type-tag{
    flex:none!important;
    margin:0!important;
  }
}

/* ПК: кнопку сворачивания разделов не показываем */
@media (min-width:781px){
  html body #app .stage-fold{
    display:none!important;
  }
}

@media (max-width:380px){
  html body #app .obj-head .meta-row{
    grid-template-columns:1fr!important;
  }
  html body #app .obj-head .meta-row > label:nth-child(odd):last-child{
    grid-column:auto!important;
  }
  html body #app .head-actions > button{
    font-size:11.5px!important;
    min-height:46px!important;
    padding:9px 6px!important;
  }
}
/* =========================================================
   v5.135 — Кабинет клиента: читаемый текст + финансы как у прораба
   ========================================================= */

/* Убрать светлые «белые» куски, на которых белый текст пропадал */
html body #clientRoot .wrap,
html body #clientRoot .cli-wrap,
html body #clientRoot .body{
  background:transparent!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #clientRoot h1,
html body #clientRoot .sub,
html body #clientRoot .typetag,
html body #clientRoot .cli-section-title,
html body #clientRoot .team-block,
html body #clientRoot .team-block *,
html body #clientRoot .team-sec,
html body #clientRoot .team-sec *,
html body #clientRoot .team-row,
html body #clientRoot .team-name,
html body #clientRoot .team-cat,
html body #clientRoot .st,
html body #clientRoot .st *,
html body #clientRoot .st-h,
html body #clientRoot .st-b,
html body #clientRoot table,
html body #clientRoot th,
html body #clientRoot td,
html body #clientRoot .prog,
html body #clientRoot .prog *,
html body #clientRoot .adv-note,
html body #clientRoot .adv-note *,
html body #clientRoot .cli-extra-line,
html body #clientRoot .cli-extra-line *,
html body #clientRoot .extra-line,
html body #clientRoot .notify-row,
html body #clientRoot .notify-row *,
html body #clientRoot .foot,
html body #clientRoot .foot *{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #clientRoot .sub,
html body #clientRoot .team-cat,
html body #clientRoot .team-empty,
html body #clientRoot th,
html body #clientRoot .prog .t span,
html body #clientRoot .card .l,
html body #clientRoot .card .lbl{
  color:rgba(255,255,255,.78)!important;
  -webkit-text-fill-color:rgba(255,255,255,.78)!important;
}
/* светлые фоны → navy-карточки */
html body #clientRoot .team-block,
html body #clientRoot .team-sec,
html body #clientRoot .team-row,
html body #clientRoot .st,
html body #clientRoot .st-h,
html body #clientRoot .st-b,
html body #clientRoot .prog,
html body #clientRoot .cli-adv-block,
html body #clientRoot .cli-adv-cards,
html body #clientRoot .mob-stages{
  background:linear-gradient(165deg,#243B52 0%,#1C2E3E 100%)!important;
  border-color:rgba(255,255,255,.12)!important;
}
html body #clientRoot .team-sec,
html body #clientRoot .team-row,
html body #clientRoot .st-h{
  background:rgba(0,0,0,.18)!important;
}
html body #clientRoot .typetag{
  display:inline-block!important;
  margin:6px 0 12px!important;
  padding:6px 12px!important;
  border-radius:10px!important;
  background:linear-gradient(135deg,#E8A82E,#F6BA3E)!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  font-weight:800!important;
  border:2px solid #F6BA3E!important;
}
html body #clientRoot .cli-section-title{
  font-size:15px!important;
  font-weight:800!important;
  letter-spacing:.02em!important;
  margin:18px 0 10px!important;
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
/* финансы — одна сетка 6 карточек: ПК 3×2, телефон 2×3 */
html body #clientRoot .cli-finance.finance-cards,
html body #clientRoot .cards.cli-finance,
html body #clientRoot .cli-finance-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  margin:0 0 16px!important;
  width:100%!important;
}
html body #clientRoot .cli-finance .card{
  min-width:0!important;
  padding:14px 16px!important;
  border-radius:14px!important;
  background:linear-gradient(165deg,#243B52 0%,#1C2E3E 100%)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:0 6px 18px rgba(0,0,0,.22)!important;
}
html body #clientRoot .cli-finance .card .l,
html body #clientRoot .cli-finance .card .lbl{
  font-size:10.5px!important;
  letter-spacing:.05em!important;
  text-transform:uppercase!important;
  font-weight:700!important;
  margin-bottom:8px!important;
  color:rgba(255,255,255,.75)!important;
  -webkit-text-fill-color:rgba(255,255,255,.75)!important;
}
html body #clientRoot .cli-finance .card .lbl-hint{
  text-transform:none!important;
  letter-spacing:0!important;
  font-weight:600!important;
  opacity:.8!important;
}
html body #clientRoot .cli-finance .card .v,
html body #clientRoot .cli-finance .card .val{
  font-size:20px!important;
  font-weight:800!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  word-break:break-word!important;
}
html body #clientRoot .cli-finance .card.accent{
  border-color:rgba(246,186,62,.45)!important;
  box-shadow:0 0 0 1px rgba(246,186,62,.12),0 6px 18px rgba(0,0,0,.25)!important;
}
html body #clientRoot .cli-finance .card.accent .l,
html body #clientRoot .cli-finance .card.accent .lbl{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
html body #clientRoot .cli-finance .card.buy{border-color:rgba(59,110,156,.5)!important}
html body #clientRoot .cli-finance .card.extra{border-color:rgba(246,186,62,.35)!important}
html body #clientRoot .cli-finance .card.adv{border-color:rgba(246,186,62,.35)!important}
html body #clientRoot .cli-finance .card.paid{border-color:rgba(46,125,91,.5)!important}
html body #clientRoot .cli-finance .card.adv-left.pos{border-color:rgba(46,125,91,.45)!important}
html body #clientRoot .cli-finance .card.adv-left.neg{
  border-color:rgba(192,67,47,.55)!important;
  background:linear-gradient(165deg,rgba(80,30,28,.55),rgba(40,18,16,.75))!important;
}
html body #clientRoot .cli-finance .card.adv-left.neg .l,
html body #clientRoot .cli-finance .card.adv-left.neg .lbl,
html body #clientRoot .cli-finance .card.adv-left.neg .v,
html body #clientRoot .cli-finance .card.adv-left.neg .val{
  color:#FF6B5A!important;
  -webkit-text-fill-color:#FF6B5A!important;
}
html body #clientRoot .cli-extra-line,
html body #clientRoot .extra-line.cli-extra-line{
  margin:0 0 14px!important;
  padding:10px 12px!important;
  border-radius:12px!important;
  background:rgba(246,186,62,.12)!important;
  border:1px solid rgba(246,186,62,.28)!important;
  font-size:13px!important;
  line-height:1.4!important;
}
html body #clientRoot .cli-extra-line b{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
/* прогресс: подписи и % читаемы */
html body #clientRoot .prog .t b,
html body #clientRoot .cli-prog .t b{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
html body #clientRoot .bar{
  background:rgba(255,255,255,.12)!important;
}
/* кнопки скачивания — чёрный текст на золоте */
html body #clientRoot .btn-cli-pdf,
html body #clientRoot .btn-cli-excel{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  background:linear-gradient(135deg,#E8A82E,#F6BA3E)!important;
  border:none!important;
  font-weight:800!important;
}
html body #clientRoot .logout-btn{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  background:rgba(255,255,255,.08)!important;
  border:1px solid rgba(255,255,255,.22)!important;
}
/* статусы pill — белый текст на цветных метках ок; имена работ */
html body #clientRoot td,
html body #clientRoot .team-name{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #clientRoot .clear{
  color:#7CD89A!important;
  -webkit-text-fill-color:#7CD89A!important;
}
html body #clientRoot .due{
  color:#FF6B5A!important;
  -webkit-text-fill-color:#FF6B5A!important;
}
@media (max-width:900px){
  html body #clientRoot .cli-finance.finance-cards,
  html body #clientRoot .cards.cli-finance,
  html body #clientRoot .cli-finance-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  html body #clientRoot .cli-finance .card .v,
  html body #clientRoot .cli-finance .card .val{
    font-size:17px!important;
  }
  html body #clientRoot .body{padding:18px 14px 28px!important}
}

/* =========================================================
   v5.136 — Кабинет клиента: аванс, уведомления, смета,
   «мы в сети», отзывы — читаемый текст на тёмном
   ========================================================= */

/* ---- Общий: любые светлые куски внутри клиента → navy ---- */
html body #clientRoot .cli-adv-block,
html body #clientRoot .cli-adv-block *,
html body #clientRoot .cli-adv-card,
html body #clientRoot .cli-adv-card *,
html body #clientRoot .cli-adv-tbl,
html body #clientRoot .cli-adv-tbl *,
html body #clientRoot .notify-row,
html body #clientRoot .notify-row *,
html body #clientRoot .cli-social-block,
html body #clientRoot .cli-social-block *,
html body #clientRoot .cli-review-block,
html body #clientRoot .cli-review-block *,
html body #clientRoot .mob-card,
html body #clientRoot .mob-card *,
html body #clientRoot #clientStages,
html body #clientRoot #clientStages *,
html body #clientRoot .st,
html body #clientRoot .st *,
html body #clientRoot .cli-tbl,
html body #clientRoot .cli-tbl *{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}

/* ---- Аванс ---- */
html body #clientRoot .cli-adv-block{
  margin:14px 0!important;
  padding:14px 16px!important;
  border-radius:14px!important;
  background:linear-gradient(165deg,#243B52 0%,#1C2E3E 100%)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:0 6px 18px rgba(0,0,0,.22)!important;
}
html body #clientRoot .cli-adv-block h3{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  font-size:15px!important;
  font-weight:800!important;
  margin:0 0 12px!important;
}
html body #clientRoot .cli-adv-card,
html body #clientRoot .mob-card.cli-adv-card{
  background:rgba(0,0,0,.22)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:12px!important;
  padding:12px 14px!important;
  margin-bottom:8px!important;
}
html body #clientRoot .cli-adv-card .mh,
html body #clientRoot .mob-card .mh{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  font-weight:700!important;
}
html body #clientRoot .cli-adv-card .mr,
html body #clientRoot .mob-card .mr,
html body #clientRoot .mob-card .mr span{
  color:rgba(255,255,255,.75)!important;
  -webkit-text-fill-color:rgba(255,255,255,.75)!important;
}
html body #clientRoot .cli-adv-card .mr b,
html body #clientRoot .mob-card .mr b,
html body #clientRoot .cli-adv-tbl .clear,
html body #clientRoot .cli-adv-card .clear{
  color:#7CD89A!important;
  -webkit-text-fill-color:#7CD89A!important;
}
html body #clientRoot .cli-adv-tbl,
html body #clientRoot .cli-adv-tbl thead th,
html body #clientRoot .cli-adv-tbl tbody td{
  background:transparent!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  border-color:rgba(255,255,255,.12)!important;
}
html body #clientRoot .cli-adv-tbl thead th{
  color:rgba(255,255,255,.7)!important;
  -webkit-text-fill-color:rgba(255,255,255,.7)!important;
}
html body #clientRoot .table-wrap{
  background:transparent!important;
  border-color:rgba(255,255,255,.1)!important;
}

/* ---- Уведомления ---- */
html body #clientRoot .notify-row,
html body #workerRoot .notify-row{
  background:linear-gradient(165deg,#243B52 0%,#1C2E3E 100%)!important;
  border:1px solid rgba(255,255,255,.14)!important;
  border-radius:14px!important;
  padding:14px 16px!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  box-shadow:0 6px 18px rgba(0,0,0,.2)!important;
}
html body #clientRoot .notify-hint,
html body #workerRoot .notify-hint,
html body #clientRoot .notify-status,
html body #workerRoot .notify-status{
  color:rgba(255,255,255,.88)!important;
  -webkit-text-fill-color:rgba(255,255,255,.88)!important;
  line-height:1.45!important;
}
html body #clientRoot .notify-row.on,
html body #workerRoot .notify-row.on{
  border-color:rgba(46,125,91,.45)!important;
  background:linear-gradient(165deg,rgba(30,70,50,.55),#1C2E3E 70%)!important;
}
html body #clientRoot .notify-row.on .notify-status,
html body #workerRoot .notify-row.on .notify-status{
  color:#7CD89A!important;
  -webkit-text-fill-color:#7CD89A!important;
}
html body #clientRoot .notify-btns,
html body #workerRoot .notify-btns{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
}
html body #clientRoot .notify-row button,
html body #workerRoot .notify-row button{
  min-height:44px!important;
  padding:10px 14px!important;
  border-radius:12px!important;
  font-weight:700!important;
  box-sizing:border-box!important;
}
html body #clientRoot #notifyEnableBtn,
html body #workerRoot #notifyEnableBtn,
html body #clientRoot #notifyTestClosedBtn,
html body #workerRoot #notifyTestClosedBtn{
  background:linear-gradient(135deg,#E8A82E,#F6BA3E)!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:none!important;
}
html body #clientRoot #notifyTestBtn,
html body #workerRoot #notifyTestBtn{
  background:rgba(255,255,255,.12)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  border:1px solid rgba(255,255,255,.25)!important;
}

/* ---- Смета (этапы / таблица / карточки) ---- */
html body #clientRoot .st,
html body #clientRoot #clientStages .st{
  background:linear-gradient(165deg,#243B52 0%,#1C2E3E 100%)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:14px!important;
  overflow:hidden!important;
  margin-bottom:12px!important;
}
html body #clientRoot .st-h{
  background:linear-gradient(180deg,#2C4560,#243B52)!important;
  border-bottom:1px solid rgba(246,186,62,.25)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #clientRoot .st-h span{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  font-weight:700!important;
}
html body #clientRoot .st-h span:last-child{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
html body #clientRoot .st-b{
  background:transparent!important;
  padding:10px 12px!important;
}
html body #clientRoot .cli-tbl,
html body #clientRoot .cli-tbl th,
html body #clientRoot .cli-tbl td{
  background:transparent!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  border-color:rgba(255,255,255,.1)!important;
}
html body #clientRoot .cli-tbl th{
  color:rgba(255,255,255,.7)!important;
  -webkit-text-fill-color:rgba(255,255,255,.7)!important;
}
html body #clientRoot .pill,
html body #clientRoot .p-plan{
  background:rgba(255,255,255,.12)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #clientRoot .p-done{
  background:rgba(59,110,156,.35)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #clientRoot .p-paid{
  background:rgba(46,125,91,.4)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #clientRoot .mob-card{
  background:rgba(0,0,0,.22)!important;
  border:1px solid rgba(255,255,255,.12)!important;
}

/* ---- Ход работ / этапность (как на ПК: общее + по этапам) ---- */
html body #clientRoot .cli-prog-stage{
  margin:0 0 16px!important;
  padding:12px 12px 10px!important;
  background:linear-gradient(165deg,#1A2C3C 0%,#152532 100%)!important;
  border:1px solid rgba(246,186,62,.22)!important;
  border-radius:14px!important;
  box-shadow:0 8px 22px rgba(0,0,0,.22)!important;
  overflow:hidden!important;
}
html body #clientRoot .cps-kicker{
  font-size:10px!important;
  font-weight:800!important;
  letter-spacing:.1em!important;
  text-transform:uppercase!important;
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  margin:0 0 10px!important;
}
html body #clientRoot .cps-overall{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
  margin:0 0 10px!important;
}
html body #clientRoot .cps-ov{
  position:relative!important;
  min-width:0!important;
  border-radius:12px!important;
  padding:11px 11px 10px!important;
  overflow:hidden!important;
  box-shadow:0 4px 12px rgba(0,0,0,.18)!important;
}
/* Общее «Выполнено» — синий акцент */
html body #clientRoot .cps-ov.done{
  background:linear-gradient(155deg,rgba(59,110,156,.38) 0%,rgba(28,50,72,.92) 100%)!important;
  border:1px solid rgba(127,184,232,.45)!important;
  box-shadow:0 0 0 1px rgba(91,143,191,.12),0 4px 14px rgba(0,0,0,.2)!important;
}
/* Общее «Оплачено» — зелёный акцент */
html body #clientRoot .cps-ov.paid{
  background:linear-gradient(155deg,rgba(46,125,91,.38) 0%,rgba(22,48,38,.92) 100%)!important;
  border:1px solid rgba(125,216,154,.42)!important;
  box-shadow:0 0 0 1px rgba(93,219,154,.1),0 4px 14px rgba(0,0,0,.2)!important;
}
html body #clientRoot .cps-ov.done::before,
html body #clientRoot .cps-ov.paid::before{
  content:""!important;
  position:absolute!important;
  left:0!important;top:0!important;bottom:0!important;
  width:3px!important;
  border-radius:12px 0 0 12px!important;
  pointer-events:none!important;
}
html body #clientRoot .cps-ov.done::before{
  background:linear-gradient(180deg,#7FB8E8,#3B6E9C)!important;
}
html body #clientRoot .cps-ov.paid::before{
  background:linear-gradient(180deg,#7CD89A,#2E7D5B)!important;
}
html body #clientRoot .cps-ov-top{
  display:flex!important;
  justify-content:space-between!important;
  align-items:baseline!important;
  gap:4px!important;
  margin-bottom:7px!important;
  font-size:10px!important;
  font-weight:700!important;
}
html body #clientRoot .cps-ov.done .cps-ov-top span{
  color:#A8D0F0!important;
  -webkit-text-fill-color:#A8D0F0!important;
}
html body #clientRoot .cps-ov.paid .cps-ov-top span{
  color:#9FE0B8!important;
  -webkit-text-fill-color:#9FE0B8!important;
}
html body #clientRoot .cps-ov.done .cps-ov-top b{
  font-size:17px!important;
  font-weight:800!important;
  color:#B8DEFF!important;
  -webkit-text-fill-color:#B8DEFF!important;
  letter-spacing:-.02em!important;
}
html body #clientRoot .cps-ov.paid .cps-ov-top b{
  font-size:17px!important;
  font-weight:800!important;
  color:#9FEFC0!important;
  -webkit-text-fill-color:#9FEFC0!important;
  letter-spacing:-.02em!important;
}
html body #clientRoot .cps-ov-bar{
  height:8px!important;
  background:rgba(0,0,0,.28)!important;
  border-radius:99px!important;
  overflow:hidden!important;
}
html body #clientRoot .cps-ov-bar i{
  display:block!important;
  height:100%!important;
  border-radius:99px!important;
  max-width:100%!important;
}
html body #clientRoot .cps-ov.done .cps-ov-bar i{
  background:linear-gradient(90deg,#4A8BC4,#8EC5F0)!important;
  box-shadow:0 0 8px rgba(142,197,240,.35)!important;
}
html body #clientRoot .cps-ov.paid .cps-ov-bar i{
  background:linear-gradient(90deg,#3A9B6A,#7CE0A8)!important;
  box-shadow:0 0 8px rgba(124,224,168,.3)!important;
}
html body #clientRoot .cps-track{
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:12px!important;
  overflow:hidden!important;
  background:rgba(0,0,0,.14)!important;
}
html body #clientRoot .cps-track-h{
  display:none!important;
}
html body #clientRoot .cps-row{
  padding:10px 10px!important;
  border-bottom:1px solid rgba(255,255,255,.06)!important;
  background:transparent!important;
}
html body #clientRoot .cps-row:last-child{border-bottom:none!important}
html body #clientRoot .cps-name{
  font-size:12.5px!important;
  font-weight:700!important;
  line-height:1.3!important;
  margin:0 0 8px!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  word-break:break-word!important;
}
html body #clientRoot .cps-mins{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:7px!important;
}
html body #clientRoot .cps-mini{
  min-width:0!important;
  padding:7px 8px!important;
  border-radius:9px!important;
  background:rgba(0,0,0,.2)!important;
  border:1px solid rgba(255,255,255,.08)!important;
}
html body #clientRoot .cps-ml{
  display:flex!important;
  justify-content:space-between!important;
  align-items:baseline!important;
  gap:3px!important;
  margin-bottom:5px!important;
  font-size:9.5px!important;
  font-weight:700!important;
  color:rgba(255,255,255,.68)!important;
  -webkit-text-fill-color:rgba(255,255,255,.68)!important;
}
html body #clientRoot .cps-ml span{
  color:rgba(255,255,255,.68)!important;
  -webkit-text-fill-color:rgba(255,255,255,.68)!important;
}
html body #clientRoot .cps-ml b{
  font-size:11.5px!important;
  font-weight:800!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #clientRoot .cps-mini.done .cps-ml b{
  color:#9FCBEF!important;
  -webkit-text-fill-color:#9FCBEF!important;
}
html body #clientRoot .cps-mini.paid .cps-ml b{
  color:#8FE0B8!important;
  -webkit-text-fill-color:#8FE0B8!important;
}
html body #clientRoot .cps-mb{
  height:6px!important;
  background:rgba(255,255,255,.12)!important;
  border-radius:99px!important;
  overflow:hidden!important;
}
html body #clientRoot .cps-mb i{
  display:block!important;
  height:100%!important;
  border-radius:99px!important;
  max-width:100%!important;
}
html body #clientRoot .cps-mini.done .cps-mb i{
  background:linear-gradient(90deg,#3B6E9C,#5B8FBF)!important;
}
html body #clientRoot .cps-mini.paid .cps-mb i{
  background:linear-gradient(90deg,#2E7D5B,#4CAF82)!important;
}
/* ПК-клиент: имя слева, полоски справа */
@media (min-width:900px){
  html body #clientRoot .cli-prog-stage{padding:16px 16px 14px!important}
  html body #clientRoot .cps-track-h{
    display:grid!important;
    grid-template-columns:minmax(0,1.2fr) minmax(220px,1fr)!important;
    gap:12px!important;
    padding:9px 14px!important;
    font-size:10px!important;
    font-weight:800!important;
    letter-spacing:.08em!important;
    text-transform:uppercase!important;
    color:#F6BA3E!important;
    -webkit-text-fill-color:#F6BA3E!important;
    border-bottom:1px solid rgba(246,186,62,.35)!important;
    background:rgba(44,69,96,.55)!important;
  }
  html body #clientRoot .cps-track-h span{
    color:#F6BA3E!important;
    -webkit-text-fill-color:#F6BA3E!important;
  }
  html body #clientRoot .cps-row{
    display:grid!important;
    grid-template-columns:minmax(0,1.2fr) minmax(220px,1fr)!important;
    gap:12px!important;
    align-items:center!important;
    padding:12px 14px!important;
  }
  html body #clientRoot .cps-name{margin:0!important;font-size:13.5px!important}
  html body #clientRoot .cps-overall{gap:12px!important;margin-bottom:14px!important}
  html body #clientRoot .cps-ov{padding:12px 14px!important}
  html body #clientRoot .cps-ov-top{font-size:12px!important}
  html body #clientRoot .cps-ov-top b{font-size:18px!important}
}

/* ---- Мы в сети / Отзывы ---- */
html body #clientRoot .cli-social-block,
html body #clientRoot .cli-review-block{
  margin:22px 0!important;
  padding:18px 16px!important;
  background:linear-gradient(165deg,#243B52 0%,#1C2E3E 100%)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:14px!important;
  box-shadow:0 6px 18px rgba(0,0,0,.22)!important;
}
html body #clientRoot .cli-social-block h3,
html body #clientRoot .cli-review-block h3{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  font-size:15px!important;
  font-weight:800!important;
  margin:0 0 6px!important;
}
html body #clientRoot .cli-social-hint{
  color:rgba(255,255,255,.75)!important;
  -webkit-text-fill-color:rgba(255,255,255,.75)!important;
  font-size:12.5px!important;
  margin:0 0 14px!important;
  line-height:1.45!important;
}
html body #clientRoot .cli-social-btn{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  padding:13px 15px!important;
  background:rgba(0,0,0,.22)!important;
  border:1px solid rgba(255,255,255,.14)!important;
  border-radius:12px!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  font-weight:700!important;
  text-decoration:none!important;
}
html body #clientRoot .cli-social-btn:hover{
  border-color:rgba(246,186,62,.55)!important;
  background:rgba(246,186,62,.12)!important;
}
html body #clientRoot .cli-social-tx,
html body #clientRoot .cli-social-tx *,
html body #clientRoot .cli-social-ic,
html body #clientRoot .cli-social-ar{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #clientRoot .cli-social-ar{
  color:rgba(255,255,255,.55)!important;
  -webkit-text-fill-color:rgba(255,255,255,.55)!important;
}
html body #clientRoot .cli-social-btn .social-note,
html body #clientRoot .social-note{
  color:rgba(255,255,255,.65)!important;
  -webkit-text-fill-color:rgba(255,255,255,.65)!important;
  font-size:10px!important;
}
html body #clientRoot .social-star{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
/* цветные акценты слева сохраняем */
html body #clientRoot .cli-social-ig{border-left:4px solid #E1306C!important}
html body #clientRoot .cli-social-max,
html body #clientRoot .cli-social-max-write{border-left:4px solid #5B6EF5!important}
html body #clientRoot .cli-social-dzen{border-left:4px solid #FF3B30!important}
html body #clientRoot .cli-social-avito{border-left:4px solid #00AAFF!important}
html body #clientRoot .cli-social-profi{border-left:4px solid #48A868!important}
html body #clientRoot .cli-social-yandex{border-left:4px solid #FC3F1D!important}
html body #clientRoot .cli-social-gis{border-left:4px solid #2DBE2C!important}
html body #clientRoot .cli-social-rev-avito{border-left:4px solid #00AAFF!important}

/* баннер «объект сдан» — читаемо */
html body #clientRoot .delivered-banner{
  background:linear-gradient(165deg,rgba(30,70,50,.55),#1C2E3E)!important;
  border:1px solid rgba(46,125,91,.45)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #clientRoot .delivered-banner b,
html body #clientRoot .delivered-banner .purge-countdown{
  color:#7CD89A!important;
  -webkit-text-fill-color:#7CD89A!important;
}
html body #clientRoot .delivered-banner .purge-timer{
  color:rgba(255,255,255,.85)!important;
  -webkit-text-fill-color:rgba(255,255,255,.85)!important;
}

/* social legal note */
html body #clientRoot .social-legal{
  color:rgba(255,255,255,.65)!important;
  -webkit-text-fill-color:rgba(255,255,255,.65)!important;
}

/* =========================================================
   v5.137 — Кабинет клиента: финансы 1:1 как у прораба (ПК)
   на телефоне та же стилистика (полоска, цвета, сетка)
   ========================================================= */

html body #clientRoot .cli-finance.finance-cards,
html body #clientRoot .cards.cli-finance,
html body #clientRoot .cli-finance-grid,
html body #clientRoot .cli-finance.finance-row-1,
html body #clientRoot .cli-finance.finance-row-2{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  margin:0 0 16px!important;
  width:100%!important;
}

/* карточка — как #app .finance-cards .card */
html body #clientRoot .cli-finance .card{
  position:relative!important;
  overflow:hidden!important;
  min-width:0!important;
  padding:14px 16px!important;
  border-radius:14px!important;
  background:linear-gradient(165deg,#243B52 0%,#1C2E3E 100%)!important;
  border:1px solid rgba(255,255,255,.14)!important;
  box-shadow:0 6px 18px rgba(0,0,0,.2)!important;
}
html body #clientRoot .cli-finance .card .l,
html body #clientRoot .cli-finance .card .lbl{
  font-size:10.5px!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
  font-weight:700!important;
  margin-bottom:8px!important;
  color:rgba(255,255,255,.75)!important;
  -webkit-text-fill-color:rgba(255,255,255,.75)!important;
}
html body #clientRoot .cli-finance .card .lbl-hint,
html body #clientRoot .cli-finance .card .lbl span{
  text-transform:none!important;
  letter-spacing:0!important;
  font-weight:600!important;
  opacity:.9!important;
}
html body #clientRoot .cli-finance .card .v,
html body #clientRoot .cli-finance .card .val{
  font-size:20px!important;
  font-weight:800!important;
  letter-spacing:-.02em!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  word-break:break-word!important;
}

/* Верхние 3: золотая полоска + оранжевые подписи */
html body #clientRoot .cli-finance .card.fin-top::after,
html body #clientRoot .cli-finance.finance-row-1 .card::after{
  content:""!important;
  position:absolute!important;
  top:0!important;
  left:0!important;
  right:0!important;
  height:3px!important;
  opacity:1!important;
  background:linear-gradient(90deg,transparent,#F6BA3E,#E8A82E,transparent)!important;
  pointer-events:none!important;
  display:block!important;
}
html body #clientRoot .cli-finance .card.fin-top,
html body #clientRoot .cli-finance .card.fin-top.accent,
html body #clientRoot .cli-finance .card.fin-top.buy,
html body #clientRoot .cli-finance .card.fin-top.extra{
  background:linear-gradient(165deg,#243B52 0%,#1C2E3E 100%)!important;
  border:1px solid rgba(255,255,255,.14)!important;
  box-shadow:0 6px 18px rgba(0,0,0,.2)!important;
}
html body #clientRoot .cli-finance .card.fin-top .l,
html body #clientRoot .cli-finance .card.fin-top .lbl{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
html body #clientRoot .cli-finance .card.fin-top .v,
html body #clientRoot .cli-finance .card.fin-top .val{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}

/* Ряд 2: внесено — зелёная подпись, белая сумма */
html body #clientRoot .cli-finance .card.adv .l,
html body #clientRoot .cli-finance .card.adv .lbl{
  color:#5DDB9A!important;
  -webkit-text-fill-color:#5DDB9A!important;
}
html body #clientRoot .cli-finance .card.adv .v,
html body #clientRoot .cli-finance .card.adv .val{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
/* Оплачено — оранжево-красная подпись, белая сумма */
html body #clientRoot .cli-finance .card.paid .l,
html body #clientRoot .cli-finance .card.paid .lbl,
html body #clientRoot .cli-finance .card.paid .lbl span,
html body #clientRoot .cli-finance .card.paid .lbl-hint{
  color:#FF6B5A!important;
  -webkit-text-fill-color:#FF6B5A!important;
}
html body #clientRoot .cli-finance .card.paid .v,
html body #clientRoot .cli-finance .card.paid .val{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
/* Остаток аванса (pos) — зелёный фон + зелёный текст */
html body #clientRoot .cli-finance .card.adv-left.pos{
  border:1px solid rgba(46,125,91,.55)!important;
  background:linear-gradient(165deg,rgba(28,70,48,.55),rgba(16,40,28,.75))!important;
  box-shadow:0 0 0 1px rgba(46,125,91,.12),0 6px 18px rgba(0,0,0,.22)!important;
}
html body #clientRoot .cli-finance .card.adv-left.pos .l,
html body #clientRoot .cli-finance .card.adv-left.pos .lbl,
html body #clientRoot .cli-finance .card.adv-left.pos .v,
html body #clientRoot .cli-finance .card.adv-left.pos .val{
  color:#5DDB9A!important;
  -webkit-text-fill-color:#5DDB9A!important;
}
/* Перерасход (neg) — красный */
html body #clientRoot .cli-finance .card.adv-left.neg{
  border:1px solid rgba(192,67,47,.55)!important;
  background:linear-gradient(165deg,rgba(80,30,28,.55),rgba(40,18,16,.75))!important;
  box-shadow:0 0 0 1px rgba(192,67,47,.12),0 6px 18px rgba(0,0,0,.22)!important;
}
html body #clientRoot .cli-finance .card.adv-left.neg .l,
html body #clientRoot .cli-finance .card.adv-left.neg .lbl,
html body #clientRoot .cli-finance .card.adv-left.neg .v,
html body #clientRoot .cli-finance .card.adv-left.neg .val{
  color:#FF6B5A!important;
  -webkit-text-fill-color:#FF6B5A!important;
}

/* Телефон: всегда 2×3, без «висящей» третьей и без 1-колонки */
@media (max-width:900px){
  html body #clientRoot .cli-finance.finance-cards,
  html body #clientRoot .cards.cli-finance,
  html body #clientRoot .cli-finance-grid,
  html body #clientRoot .cli-finance.finance-row-1,
  html body #clientRoot .cli-finance.finance-row-2{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  html body #clientRoot .cli-finance .card{
    padding:12px 12px!important;
  }
  html body #clientRoot .cli-finance .card .v,
  html body #clientRoot .cli-finance .card .val{
    font-size:17px!important;
  }
}
@media (max-width:520px){
  html body #clientRoot .cli-finance.finance-cards,
  html body #clientRoot .cards.cli-finance,
  html body #clientRoot .cli-finance-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  html body #clientRoot .cli-finance .card .v,
  html body #clientRoot .cli-finance .card .val{
    font-size:16px!important;
  }
  html body #clientRoot .cli-finance .card .l,
  html body #clientRoot .cli-finance .card .lbl{
    font-size:9.5px!important;
  }
}

/* ===== v5.138: этапы + сворачиваемые подэтапы в кабинете клиента ===== */
html body #clientRoot .cli-phase-block{
  margin:0 0 16px!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:14px!important;
  overflow:hidden!important;
  background:linear-gradient(165deg,#243B52 0%,#1C2E3E 100%)!important;
  box-shadow:0 6px 18px rgba(0,0,0,.22)!important;
}
html body #clientRoot .cli-phase-title{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:8px 12px!important;
  padding:12px 14px!important;
  background:rgba(0,0,0,.22)!important;
  border-bottom:1px solid rgba(246,186,62,.35)!important;
}
html body #clientRoot .cli-phase-lbl{
  font-size:10px!important;
  font-weight:700!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  width:100%!important;
}
html body #clientRoot .cli-phase-name{
  flex:1 1 auto!important;
  min-width:0!important;
  font-size:14.5px!important;
  font-weight:800!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  line-height:1.3!important;
  word-break:break-word!important;
}
html body #clientRoot .cli-phase-sum{
  font-size:14px!important;
  font-weight:800!important;
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  white-space:nowrap!important;
}
html body #clientRoot .cli-phase-block > .st.kind-section,
html body #clientRoot .cli-phase-block > .st{
  margin:0!important;
  border:none!important;
  border-radius:0!important;
  border-top:1px solid rgba(255,255,255,.1)!important;
  box-shadow:none!important;
  background:transparent!important;
}
html body #clientRoot .st-h{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  cursor:pointer!important;
  user-select:none!important;
  -webkit-user-select:none!important;
}
html body #clientRoot .st-h-name{
  flex:1 1 auto!important;
  min-width:0!important;
  font-weight:700!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  word-break:break-word!important;
}
html body #clientRoot .st-h-sum{
  font-weight:800!important;
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
  white-space:nowrap!important;
}
html body #clientRoot .cli-stage-fold{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:32px!important;
  min-width:32px!important;
  height:32px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid rgba(246,186,62,.35)!important;
  border-radius:8px!important;
  background:rgba(246,186,62,.12)!important;
  cursor:pointer!important;
  box-sizing:border-box!important;
  flex-shrink:0!important;
}
html body #clientRoot .cli-stage-fold .cli-stage-chev,
html body #clientRoot .cli-stage-chev{
  width:0!important;
  height:0!important;
  border-left:5px solid transparent!important;
  border-right:5px solid transparent!important;
  border-top:7px solid #F6BA3E!important;
  border-bottom:none!important;
  transition:transform .2s ease!important;
  display:block!important;
}
html body #clientRoot .st.is-collapsed .cli-stage-fold .cli-stage-chev,
html body #clientRoot .st.is-collapsed .cli-stage-chev{
  transform:rotate(-90deg)!important;
}
html body #clientRoot .st.is-collapsed > .st-b{
  display:none!important;
}
html body #clientRoot .st.is-collapsed .st-h{
  border-bottom:none!important;
}

/* ===== v5.140: этапность на телефоне (прораб) — компактно 2×полоски ===== */
@media (max-width:780px){
  html body #app .proc-box{
    padding:12px!important;
    margin-bottom:12px!important;
    border-radius:12px!important;
  }
  html body #app .proc-head h3{
    font-size:14px!important;
  }
  html body #app .proc-stats{
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }
  /* Общие карточки: синий / зелёный, крупнее % */
  html body #app .proc-stat{
    position:relative!important;
    padding:11px 11px 10px!important;
    border-radius:12px!important;
    overflow:hidden!important;
  }
  html body #app .proc-stat.done{
    background:linear-gradient(155deg,rgba(59,110,156,.42) 0%,rgba(30,52,74,.95) 100%)!important;
    border:1px solid rgba(127,184,232,.48)!important;
    box-shadow:0 0 0 1px rgba(91,143,191,.12),0 4px 14px rgba(0,0,0,.2)!important;
    color:#B8DEFF!important;
    -webkit-text-fill-color:#B8DEFF!important;
  }
  html body #app .proc-stat.paid{
    background:linear-gradient(155deg,rgba(46,125,91,.42) 0%,rgba(24,52,40,.95) 100%)!important;
    border:1px solid rgba(125,216,154,.45)!important;
    box-shadow:0 0 0 1px rgba(93,219,154,.1),0 4px 14px rgba(0,0,0,.2)!important;
    color:#9FEFC0!important;
    -webkit-text-fill-color:#9FEFC0!important;
  }
  html body #app .proc-stat.done::before,
  html body #app .proc-stat.paid::before{
    content:""!important;
    position:absolute!important;
    left:0!important;top:0!important;bottom:0!important;
    width:3px!important;
    pointer-events:none!important;
  }
  html body #app .proc-stat.done::before{
    background:linear-gradient(180deg,#7FB8E8,#3B6E9C)!important;
  }
  html body #app .proc-stat.paid::before{
    background:linear-gradient(180deg,#7CD89A,#2E7D5B)!important;
  }
  html body #app .proc-stat .ps-top{
    font-size:10.5px!important;
    margin-bottom:7px!important;
  }
  html body #app .proc-stat.done .ps-top,
  html body #app .proc-stat.done .ps-top span{
    color:#A8D0F0!important;
    -webkit-text-fill-color:#A8D0F0!important;
  }
  html body #app .proc-stat.paid .ps-top,
  html body #app .proc-stat.paid .ps-top span{
    color:#9FE0B8!important;
    -webkit-text-fill-color:#9FE0B8!important;
  }
  html body #app .proc-stat.done .ps-top b{
    font-size:17px!important;
    color:#B8DEFF!important;
    -webkit-text-fill-color:#B8DEFF!important;
  }
  html body #app .proc-stat.paid .ps-top b{
    font-size:17px!important;
    color:#9FEFC0!important;
    -webkit-text-fill-color:#9FEFC0!important;
  }
  html body #app .proc-stat .ps-bar{
    height:8px!important;
    background:rgba(0,0,0,.28)!important;
  }
  html body #app .proc-stat.done .ps-bar i{
    background:linear-gradient(90deg,#4A8BC4,#8EC5F0)!important;
  }
  html body #app .proc-stat.paid .ps-bar i{
    background:linear-gradient(90deg,#3A9B6A,#7CE0A8)!important;
  }
  html body #app .proc-hint{
    font-size:11px!important;
    margin-top:8px!important;
    line-height:1.35!important;
  }
  html body #app .prog-track{
    border-radius:12px!important;
    margin-bottom:14px!important;
  }
  html body #app .prog-row{
    padding:10px!important;
  }
  html body #app .prog-row .prog-name{
    color:#FFFFFF!important;
    -webkit-text-fill-color:#FFFFFF!important;
    font-size:12.5px!important;
    font-weight:700!important;
  }
  html body #app .prog-mins{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:7px!important;
  }
  html body #app .prog-mini{
    padding:7px 8px!important;
    border-radius:9px!important;
    background:rgba(0,0,0,.2)!important;
    border:1px solid rgba(255,255,255,.08)!important;
  }
  html body #app .prog-mini .pm-lbl{
    font-size:9.5px!important;
    color:rgba(255,255,255,.7)!important;
    -webkit-text-fill-color:rgba(255,255,255,.7)!important;
  }
  html body #app .prog-mini .pm-lbl span{
    color:rgba(255,255,255,.7)!important;
    -webkit-text-fill-color:rgba(255,255,255,.7)!important;
  }
  html body #app .prog-mini .pm-lbl b{
    font-size:11.5px!important;
  }
  html body #app .prog-mini .pm-bar{height:6px!important;background:rgba(255,255,255,.12)!important}
  html body #app .prog-add{
    flex-direction:column!important;
    align-items:stretch!important;
    gap:8px!important;
  }
  html body #app .prog-add input{
    min-width:0!important;
    width:100%!important;
  }
}

/* =========================================================
   v5.142 — Шапка объекта: единая сетка кнопок (ПК + телефон)
   Перебивает старые v5.102–v5.107 (flex/min-width вразнобой)
   ========================================================= */
html body #app .obj-head .head-actions,
html body #app .head-actions{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  width:100%!important;
  max-width:100%!important;
  align-items:stretch!important;
  justify-content:stretch!important;
  box-sizing:border-box!important;
  flex-wrap:unset!important;
}
html body #app .head-actions > button,
html body #app .head-actions .btn-primary,
html body #app .head-actions .btn-outline,
html body #app .head-actions .btn-ghost-danger,
html body #app .head-actions .btn-deliver,
html body #app .head-actions .btn-primary.btn-access-balanced,
html body #app .head-actions .btn-outline.btn-head-sm,
html body #app .head-actions .btn-ghost-danger.btn-clear-smeta,
html body #app .head-actions .btn-deliver.btn-deliver-wide,
html body #app .head-actions .btn-primary.btn-access-wide{
  grid-column:auto!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  flex:none!important;
  order:unset!important;
  min-height:46px!important;
  height:auto!important;
  margin:0!important;
  padding:11px 10px!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.25!important;
  letter-spacing:0!important;
  white-space:normal!important;
  text-align:center!important;
  justify-content:center!important;
  align-items:center!important;
  display:inline-flex!important;
  gap:6px!important;
  border-radius:12px!important;
  box-sizing:border-box!important;
}
/* «Объект сдан» — на всю ширину сетки */
html body #app .head-actions > button.btn-deliver,
html body #app .head-actions .btn-deliver.btn-deliver-wide{
  grid-column:1 / -1!important;
  min-height:48px!important;
  font-weight:800!important;
  font-size:13.5px!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
/* «Доступ» — тот же размер ячейки, чуть жирнее */
html body #app .head-actions .btn-primary.btn-access-balanced,
html body #app .head-actions .btn-primary{
  font-weight:800!important;
}
/* «Очистить смету» — тот же размер, опасный акцент */
html body #app .head-actions .btn-ghost-danger,
html body #app .head-actions .btn-clear-smeta{
  border:1px solid rgba(192,67,47,.55)!important;
  background:rgba(192,67,47,.1)!important;
  color:#FF6B5A!important;
  -webkit-text-fill-color:#FF6B5A!important;
  min-height:46px!important;
  padding:11px 10px!important;
  font-size:13px!important;
}
html body #app .head-actions .btn-outline.btn-head-sm{
  font-size:13px!important;
  min-height:46px!important;
  padding:11px 10px!important;
}
@media (max-width:1100px){
  html body #app .obj-head .head-actions,
  html body #app .head-actions{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media (max-width:780px){
  html body #app .obj-head .head-actions,
  html body #app .head-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    width:100%!important;
  }
  html body #app .head-actions > button,
  html body #app .head-actions .btn-primary,
  html body #app .head-actions .btn-outline,
  html body #app .head-actions .btn-ghost-danger,
  html body #app .head-actions .btn-deliver,
  html body #app .head-actions .btn-primary.btn-access-balanced,
  html body #app .head-actions .btn-outline.btn-head-sm,
  html body #app .head-actions .btn-ghost-danger.btn-clear-smeta,
  html body #app .head-actions .btn-deliver.btn-deliver-wide{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    flex:none!important;
    min-height:48px!important;
    padding:12px 8px!important;
    font-size:12.5px!important;
    white-space:normal!important;
    order:unset!important;
    grid-column:auto!important;
  }
  html body #app .head-actions > button.btn-deliver,
  html body #app .head-actions .btn-deliver.btn-deliver-wide{
    grid-column:1 / -1!important;
    min-height:50px!important;
    font-size:13.5px!important;
    width:100%!important;
    min-width:0!important;
  }
}


/* =========================================================
   v5.146 — Партнёр: открытый клиент — текст не сливается
   (partner-app * даёт белый текст на белых карточках сметы)
   ========================================================= */

/* Фон main: светлый, как задумано в index (не navy «пятно») */
html body #partnerShell .partner-main,
html body #partnerShell #partnerMain.partner-main,
html body #partnerShell #partnerMain{
  background:linear-gradient(180deg,#EEF1F4 0%,#F4F6F8 55%,#F7F9FB 100%)!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}

/* Открытый объект */
html body #partnerShell .partner-client-view,
html body #partnerShell .partner-body.partner-client-view{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}

/* Светлые блоки: принудительно тёмный текст */
html body #partnerShell .partner-client-view .pk-overview,
html body #partnerShell .partner-client-view .pk-overview *,
html body #partnerShell .partner-client-view .pk-metric,
html body #partnerShell .partner-client-view .pk-metric *,
html body #partnerShell .partner-client-view .pk-cat,
html body #partnerShell .partner-client-view .pk-cat *,
html body #partnerShell .partner-client-view .pk-work-card,
html body #partnerShell .partner-client-view .pk-work-card *,
html body #partnerShell .partner-client-view .pk-work-item,
html body #partnerShell .partner-client-view .pk-work-item *,
html body #partnerShell .partner-client-view .pk-works,
html body #partnerShell .partner-client-view .pk-works *,
html body #partnerShell .partner-client-view .partner-photos,
html body #partnerShell .partner-client-view .partner-photos *,
html body #partnerShell .partner-client-view .partner-photo-block,
html body #partnerShell .partner-client-view .partner-photo-block *,
html body #partnerShell .partner-client-view .pk-empty,
html body #partnerShell .partner-client-view .pk-empty *,
html body #partnerShell .partner-client-view .pk-pick-empty,
html body #partnerShell .partner-client-view .pk-pick-empty *,
html body #partnerShell .partner-client-view .pk-section-label,
html body #partnerShell .partner-client-view .pk-title,
html body #partnerShell .partner-client-view .pk-kicker,
html body #partnerShell .partner-client-view .pk-big-pct,
html body #partnerShell .partner-client-view .pk-big-pct span,
html body #partnerShell .partner-client-view .pk-cat-name,
html body #partnerShell .partner-client-view .pk-work-title,
html body #partnerShell .partner-client-view .pk-work-name,
html body #partnerShell .partner-client-view .pk-work-sub,
html body #partnerShell .partner-client-view .pk-work-st,
html body #partnerShell .partner-client-view .pk-metric-top,
html body #partnerShell .partner-client-view .pk-metric-top b,
html body #partnerShell .partner-client-view .pk-metric-sub,
html body #partnerShell .partner-client-view .pk-cat-meta,
html body #partnerShell .partner-client-view .pk-cat-row,
html body #partnerShell .partner-client-view .pk-cat-row b,
html body #partnerShell .partner-client-view .pk-chip,
html body #partnerShell .partner-client-view .pk-chip b,
html body #partnerShell .partner-client-view .pk-pill,
html body #partnerShell .partner-client-view .partner-photo-empty,
html body #partnerShell .partner-client-view .partner-photos h3,
html body #partnerShell .partner-client-view .partner-photo-block h4{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}

/* Карточки — белый фон (не прозрачные на navy) */
html body #partnerShell .partner-client-view .pk-overview,
html body #partnerShell .partner-client-view .pk-cat,
html body #partnerShell .partner-client-view .pk-work-card,
html body #partnerShell .partner-client-view .partner-photos,
html body #partnerShell .partner-client-view .pk-empty,
html body #partnerShell .partner-client-view .pk-metric{
  background:#FFFFFF!important;
  border:1px solid #D0D7E0!important;
  box-shadow:0 4px 14px rgba(20,35,50,.06)!important;
}
html body #partnerShell .partner-client-view .pk-work-item{
  background:#F3F5F7!important;
  border:1px solid #E5E9EE!important;
}
html body #partnerShell .partner-client-view .pk-metric{
  background:#F7F9FB!important;
}

/* Приглушённые подписи */
html body #partnerShell .partner-client-view .pk-kicker,
html body #partnerShell .partner-client-view .pk-section-label,
html body #partnerShell .partner-client-view .pk-metric-sub,
html body #partnerShell .partner-client-view .pk-work-sub,
html body #partnerShell .partner-client-view .pk-cat-meta,
html body #partnerShell .partner-client-view .pk-empty,
html body #partnerShell .partner-client-view .partner-photo-empty{
  color:#5A6A7A!important;
  -webkit-text-fill-color:#5A6A7A!important;
}

/* Статусы / чипы / pill — читаемые акценты */
html body #partnerShell .partner-client-view .pk-chip-done,
html body #partnerShell .partner-client-view .pk-chip-done b,
html body #partnerShell .partner-client-view .pk-st-done .pk-work-st,
html body #partnerShell .partner-client-view .pk-pill.done{
  color:#1E4F7A!important;
  -webkit-text-fill-color:#1E4F7A!important;
}
html body #partnerShell .partner-client-view .pk-chip-done{
  background:rgba(59,110,156,.14)!important;
}
html body #partnerShell .partner-client-view .pk-pill.done{
  background:rgba(59,110,156,.14)!important;
}
html body #partnerShell .partner-client-view .pk-chip-work,
html body #partnerShell .partner-client-view .pk-chip-work b{
  color:#8A5A00!important;
  -webkit-text-fill-color:#8A5A00!important;
  background:#FFF6E3!important;
}
html body #partnerShell .partner-client-view .pk-chip-all,
html body #partnerShell .partner-client-view .pk-chip-all b{
  color:#374151!important;
  -webkit-text-fill-color:#374151!important;
  background:#EEF1F4!important;
}
html body #partnerShell .partner-client-view .pk-work-st{
  color:#6B7280!important;
  -webkit-text-fill-color:#6B7280!important;
}

/* Кольцо % */
html body #partnerShell .partner-client-view .pk-work-ring span{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body #partnerShell .partner-client-view .pk-work-ring::after{
  background:#FFFFFF!important;
}

/* Hero шапка объекта — navy + белый (как было) */
html body #partnerShell .partner-client-view .pk-hero{
  background:linear-gradient(135deg,#1C2E3E 0%,#2A4058 100%)!important;
  border:1px solid rgba(246,186,62,.28)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #partnerShell .partner-client-view .pk-hero,
html body #partnerShell .partner-client-view .pk-hero *,
html body #partnerShell .partner-client-view .pk-hero h1,
html body #partnerShell .partner-client-view .pk-hero-sub,
html body #partnerShell .partner-client-view .pk-hero-stat-val{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body #partnerShell .partner-client-view .pk-hero-kicker,
html body #partnerShell .partner-client-view .pk-hero-stat-lbl{
  color:#F6BA3E!important;
  -webkit-text-fill-color:#F6BA3E!important;
}
html body #partnerShell .partner-client-view .pk-hero-stat{
  background:rgba(255,255,255,.1)!important;
  border:1px solid rgba(246,186,62,.35)!important;
}

/* Фаза «ЭТАП …» — navy + белый */
html body #partnerShell .partner-client-view .pk-phase-label,
html body #partnerShell .partner-client-view .pk-phase-label *{
  background:linear-gradient(90deg,#2F3F50,#26333F)!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  border-left:4px solid #F6BA3E!important;
}

/* Пустой выбор объекта */
html body #partnerShell .pk-pick-empty{
  background:#FFFFFF!important;
  border:1px solid #D0D7E0!important;
  border-radius:18px!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body #partnerShell .pk-pick-empty h3{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
}
html body #partnerShell .pk-pick-empty p{
  color:#5A6A7A!important;
  -webkit-text-fill-color:#5A6A7A!important;
}

/* =========================================================
   v5.147 — Поставщик: телефон — кнопки не вылезают / не режутся
   ========================================================= */
@media (max-width:780px){
  html body #supplierShell,
  html body #supplierShell .supplier-app,
  html body #supplierShell .supplier-main,
  html body #supplierShell #supplierMain{
    min-width:0!important;
    max-width:100%!important;
    overflow-x:hidden!important;
    box-sizing:border-box!important;
  }
  html body #supplierShell .sup-section,
  html body #supplierShell .sup-form,
  html body #supplierShell .sup-head-card,
  html body #supplierShell .sup-item,
  html body #supplierShell .sup-rec-card,
  html body #supplierShell .sup-main-head{
    max-width:100%!important;
    width:100%!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  /* шапка: кнопки в ряд/столбик, без обрезки */
  html body #supplierShell .sup-sess-inner{
    flex-wrap:wrap!important;
    gap:8px!important;
    padding:10px 12px!important;
  }
  html body #supplierShell .sup-sess-actions{
    width:100%!important;
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px!important;
  }
  html body #supplierShell .sup-sess-back,
  html body #supplierShell .sup-sess-inner .logout-btn,
  html body #supplierShell .role-switch{
    flex:1 1 calc(50% - 4px)!important;
    min-width:0!important;
    min-height:44px!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    white-space:normal!important;
    justify-content:center!important;
  }
  html body #supplierShell .role-switch-sel{
    max-width:100%!important;
    min-width:0!important;
    width:100%!important;
  }
  /* телефон клиента */
  html body #supplierShell .sup-phone-btn{
    flex-wrap:wrap!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    gap:10px!important;
    padding:12px!important;
  }
  html body #supplierShell .sup-phone-arr{
    flex:1 1 100%!important;
    min-height:44px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    padding:10px 12px!important;
  }
  /* статусы: скролл, компакт */
  html body #supplierShell .sup-status-scroll{
    max-width:100%!important;
    box-sizing:border-box!important;
    gap:6px!important;
  }
  html body #supplierShell .sup-st-btn,
  html body #supplierShell .sup-st-pill{
    min-height:42px!important;
    min-width:0!important;
    flex:0 0 auto!important;
    padding:9px 12px!important;
    font-size:12px!important;
    box-sizing:border-box!important;
  }
  html body #supplierShell .sup-st-btn{min-width:86px!important}
  /* чипы */
  html body #supplierShell .sup-chip{
    min-height:42px!important;
    max-width:100%!important;
    padding:8px 12px!important;
    font-size:12.5px!important;
    white-space:normal!important;
    line-height:1.25!important;
    box-sizing:border-box!important;
    overflow:visible!important;
  }
  /* действия: столбик на всю ширину */
  html body #supplierShell .sup-form-acts,
  html body #supplierShell .sup-item-acts{
    display:flex!important;
    flex-direction:column!important;
    gap:8px!important;
    width:100%!important;
  }
  html body #supplierShell .sup-btn-primary,
  html body #supplierShell .sup-btn-ghost,
  html body #supplierShell .sup-form-acts .sup-mini,
  html body #supplierShell .sup-item-acts .sup-mini,
  html body #supplierShell .sup-section-head .sup-mini{
    width:100%!important;
    max-width:100%!important;
    min-height:46px!important;
    box-sizing:border-box!important;
    justify-content:center!important;
    white-space:normal!important;
    padding:12px 14px!important;
    font-size:13.5px!important;
  }
  html body #supplierShell .sup-section-head{
    flex-wrap:wrap!important;
    gap:8px!important;
  }
  html body #supplierShell .sup-field input,
  html body #supplierShell .sup-field textarea,
  html body #supplierShell .supplier-main input,
  html body #supplierShell .supplier-main textarea{
    max-width:100%!important;
    width:100%!important;
    box-sizing:border-box!important;
    font-size:16px!important;
    min-height:46px!important;
  }
}
@media (max-width:400px){
  html body #supplierShell .sup-sess-back,
  html body #supplierShell .sup-sess-inner .logout-btn,
  html body #supplierShell .role-switch{
    flex:1 1 100%!important;
  }
  html body #supplierShell .sup-rec-grid{
    grid-template-columns:1fr!important;
  }
}

/* =========================================================
   v5.148 — Поставщик: дата/время доставки не вылезают с телефона
   ========================================================= */
html body #supplierShell .sup-dt-row{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  min-width:0!important;
}
html body #supplierShell .sup-field,
html body #supplierShell .sup-field-dt{
  display:block!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
html body #supplierShell .sup-field input,
html body #supplierShell .sup-field-dt input,
html body #supplierShell input#supDate,
html body #supplierShell input#supTime,
html body #supplierShell input#supDatetime,
html body #supplierShell input[type="date"],
html body #supplierShell input[type="time"],
html body #supplierShell input[type="datetime-local"]{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  font-size:16px!important;
  min-height:46px!important;
  -webkit-appearance:none!important;
  appearance:none!important;
}
html body #supplierShell input[type="date"]::-webkit-date-and-time-value,
html body #supplierShell input[type="time"]::-webkit-date-and-time-value,
html body #supplierShell input[type="datetime-local"]::-webkit-date-and-time-value{
  text-align:left!important;
  min-width:0!important;
}
@media (max-width:380px){
  html body #supplierShell .sup-dt-row{
    grid-template-columns:1fr!important;
  }
}
