/* Офис Sempol: тёмный Higgsfield, без белых дыр, текст читается.
   Откат: data-site-skin="off". */
html:has(body[data-site-skin="on"]),
html body[data-site-skin="on"] {
  color-scheme: dark !important;
  --bg: #070b0e;
  --panel: #121a20;
  --ink: #ffffff;
  --muted: #e8f0f4;
  --line: #2a4a52;
  --accent: #9ee4dc;
  --accent-ink: #041416;
  --accent-soft: #1a3038;
  --gold: #f0e2c4;
  --gold-bright: #fff4dc;
  --gold-deep: #8d7348;
  --navy: #121a20;
  --navy-deep: #070b0e;
  --bubble: #1a3038;
  --bubble-me: #245560;
  --warn: #ffe0a0;
  --danger: #ffc0bc;
  --field: #0a1216;
  --glass: #121a20;
  --glass-strong: #121a20;
  --glass-soft: #1a3038;
  --glass-border: #2a4a52;
  --glass-edge: #3a6570;
  --glass-dim: #1a3038;
  --sheen: none;
  --wall: #070b0e;
  --font-ui: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-display: "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

html body[data-site-skin="on"] {
  color: #ffffff !important;
  background: #070b0e !important;
  background-image: none !important;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  -webkit-font-smoothing: antialiased;
}

html body[data-site-skin="on"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, #070b0e 0%, #070b0e 68%, rgba(7, 11, 14, 0.97) 86%, rgba(7, 11, 14, 0.82) 100%),
    linear-gradient(180deg, rgba(7, 11, 14, 0.4) 0%, rgba(7, 11, 14, 0.75) 100%),
    url("/app/s/office-bg.webp?v=4") right center / cover no-repeat;
}

/* Скин ставит body color/#fff fill — не даём водяному знаку стать ярким и поверх вкладок */
html body[data-site-skin="on"].art-guard::after {
  color: rgba(158, 228, 220, 0.035) !important;
  -webkit-text-fill-color: rgba(158, 228, 220, 0.035) !important;
  font-size: clamp(10px, 1.4vw, 15px) !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  transform: rotate(-18deg) !important;
  opacity: 1 !important;
  pointer-events: none !important;
  z-index: 0 !important;
}
html body[data-site-skin="on"].art-author::after {
  content: none !important;
  display: none !important;
}

/* Вкладки / навигация всегда выше фона и знака */
html body[data-site-skin="on"] :is(.shell, .mobile-nav, .sb-tabstrip, .topbar, nav.side, .main) {
  position: relative;
  z-index: 1;
}
html body[data-site-skin="on"] .mobile-nav {
  z-index: 99999 !important;
}

html body[data-site-skin="on"] .shell,
html body[data-site-skin="on"] .side,
html body[data-site-skin="on"] .main,
html body[data-site-skin="on"] header,
html body[data-site-skin="on"] .topbar,
html body[data-site-skin="on"] .drawer,
html body[data-site-skin="on"] .page,
html body[data-site-skin="on"] .login {
  position: relative;
  z-index: 1;
}

html body[data-site-skin="on"],
html body[data-site-skin="on"] * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Главная плоскость — сплошная, без «окон» в белый. */
html body[data-site-skin="on"] .shell,
html body[data-site-skin="on"] .main,
html body[data-site-skin="on"] .page,
html body[data-site-skin="on"] .drawer,
html body[data-site-skin="on"] .login {
  background: transparent !important;
  color: #ffffff !important;
}

html body[data-site-skin="on"] nav.side {
  background: #0b1217 !important;
  border-right: 1px solid #2a4a52 !important;
  box-shadow: none !important;
}

/* Все карточки / панели / модалки — один тёмный тон. */
html body[data-site-skin="on"] :is(
  .card, .topbar, header, .kpi, .login .card,
  .inb, .people, .thread, .thread header, .composer,
  .mobile-nav, .talk, .cc-panel, .sheet, .toast, .nudge,
  .home-clock, .home-weather, .opus-home-inner,
  table, .msg, .of-msg-row, .k-tabs, .ui-mode-bar,
  .app-search, .app-search-panel, .call-card,
  .pat-lock, #local-otp, .unlock, .modal, .dialog,
  .panel, .box, .tile, .block, .section-card,
  .k-collapse, .k-amo-head, details, summary,
  .people .p, .thread .body, .list, .row > div,
  pre, code, .code, .mono, .bubble, .msg.me, .msg.them
) {
  background: #121a20 !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: #2a4a52 !important;
  box-shadow: none !important;
}

html body[data-site-skin="on"] .msg.me,
html body[data-site-skin="on"] .bubble-me {
  background: #1a383f !important;
}

/* Текст везде светлый — и на панелях, и в таблицах. */
html body[data-site-skin="on"],
html body[data-site-skin="on"] :is(
  h1, h2, h3, h4, h5, p, li, td, th, dd, dt, span, label, small, a, b, strong,
  .muted, .lead, .where, .as-meta, .nav-label, .nav-group-btn,
  .art-mark, .brand, .brand-line, .chk, .err, .ok, .warn
) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}

html body[data-site-skin="on"] :is(
  .muted, .lead, #home-lead, label, th, .kpi span, .nav-label,
  .nav-group-btn, .art-mark, .as-meta, .where, .hc-date, .hw-meta, .hc-sec
) {
  color: #dce8ee !important;
  -webkit-text-fill-color: #dce8ee !important;
}

html body[data-site-skin="on"] :is(
  h1, h2, h3, h4, .page h1, .card h2, .card h3,
  #home-title, .opus-brand, .login h1, .brand, .brand-line, .kpi b
) {
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  background-image: none !important;
  text-shadow: none !important;
  animation: none !important;
}

html body[data-site-skin="on"] nav.side a {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
html body[data-site-skin="on"] nav.side a.on {
  background: #1f5560 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
html body[data-site-skin="on"] nav.side a:hover {
  background: #163038 !important;
  color: #ffffff !important;
}

/* Поля ввода — тёмные, без белого autofill. */
html body[data-site-skin="on"] :is(
  input, select, textarea, .nav-find, .app-search input,
  button, .btn, .k-tabs button, .ui-mode-bar button
) {
  background: #0a1216 !important;
  background-image: none !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1px solid #3a6570 !important;
  box-shadow: none !important;
  caret-color: #ffffff !important;
}

html body[data-site-skin="on"] :is(input, select, textarea, .nav-find)::placeholder {
  color: #b7c9d2 !important;
  -webkit-text-fill-color: #b7c9d2 !important;
  opacity: 1 !important;
}

html body[data-site-skin="on"] :is(input, select, textarea, .nav-find):-webkit-autofill,
html body[data-site-skin="on"] :is(input, select, textarea, .nav-find):-webkit-autofill:hover,
html body[data-site-skin="on"] :is(input, select, textarea, .nav-find):-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #0a1216 inset !important;
  box-shadow: 0 0 0 1000px #0a1216 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
  transition: background-color 99999s ease-out;
}

html body[data-site-skin="on"] option,
html body[data-site-skin="on"] optgroup {
  background: #0a1216 !important;
  color: #ffffff !important;
}

html body[data-site-skin="on"] :is(input, select, textarea, .nav-find):focus {
  border-color: #7ecfc8 !important;
  box-shadow: 0 0 0 2px rgba(126, 207, 200, 0.28) !important;
  outline: none !important;
}

html body[data-site-skin="on"] button.primary,
html body[data-site-skin="on"] .opus-cta-primary,
html body[data-site-skin="on"] .login button.primary,
html body[data-site-skin="on"] .k-tabs button.on,
html body[data-site-skin="on"] .ui-mode-bar button.on {
  background: #1f5560 !important;
  background-image: none !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1px solid #5a8d96 !important;
}

html body[data-site-skin="on"] button.primary:hover,
html body[data-site-skin="on"] .opus-cta-primary:hover {
  background: #276872 !important;
}

html body[data-site-skin="on"] button.ghost,
html body[data-site-skin="on"] a.btn.ghost,
html body[data-site-skin="on"] .opus-cta-ghost {
  background: #1a3038 !important;
  color: #ffffff !important;
  border: 1px solid #3a6570 !important;
}

html body[data-site-skin="on"] button.danger {
  background: #3a2020 !important;
  color: #ffc0bc !important;
  border: 1px solid #8a5050 !important;
}

html body[data-site-skin="on"] .badge {
  background: #1f5560 !important;
  color: #ffffff !important;
}

html body[data-site-skin="on"] .warn,
html body[data-site-skin="on"] .k-canva-badge.warn,
html body[data-site-skin="on"] .k-amo-badge.warn,
html body[data-site-skin="on"] [id$="-badge"].warn {
  background: #3a2c16 !important;
  border-color: #a88848 !important;
  color: #ffe0a0 !important;
  -webkit-text-fill-color: #ffe0a0 !important;
}

html body[data-site-skin="on"] .ok,
html body[data-site-skin="on"] .k-canva-badge.on,
html body[data-site-skin="on"] .k-amo-badge.on,
html body[data-site-skin="on"] [id$="-badge"].on {
  background: #1a4038 !important;
  border-color: #4d9088 !important;
  color: #d8fff8 !important;
  -webkit-text-fill-color: #d8fff8 !important;
}

html body[data-site-skin="on"] .err {
  color: #ffc0bc !important;
  -webkit-text-fill-color: #ffc0bc !important;
  background: transparent !important;
}

/* Пульт / opus — без золотого градиента и белых плашек. */
html body[data-site-skin="on"] .opus-home {
  min-height: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}
html body[data-site-skin="on"] .opus-home-plane,
html body[data-site-skin="on"] .opus-home-plane::before,
html body[data-site-skin="on"] .opus-home-plane::after {
  display: none !important;
  animation: none !important;
  content: none !important;
}
html body[data-site-skin="on"] .opus-home-inner {
  display: block !important;
  min-height: 0 !important;
  padding: 18px 20px !important;
}
html body[data-site-skin="on"] .opus-home-copy,
html body[data-site-skin="on"] #home-lead {
  max-width: 44em !important;
}

/* Телефон: Higgsfield + тёмный iOS — без белых листов, фон из office-bg-iphone. */
html body[data-site-skin="on"].phone-ios::before {
  background:
    linear-gradient(180deg, rgba(7, 11, 14, 0.55) 0%, rgba(7, 11, 14, 0.82) 42%, #070b0e 78%),
    url("/app/s/office-bg-iphone.webp?v=1") center top / cover no-repeat,
    #070b0e !important;
}
html body[data-site-skin="on"].phone-ios :is(
  .card, .sheet, .composer, .mobile-nav, .kpi, .easy-tile, .big-tile,
  .ios-more-group, .inb, .people, .thread, .login .card
) {
  background: rgba(20, 28, 34, 0.94) !important;
  color: #f5fbfd !important;
  border-color: #2a4a52 !important;
}
html body[data-site-skin="on"].phone-ios :is(.page, .main, nav.side, .shell) {
  background: transparent !important;
  color: #f5fbfd !important;
}
html body[data-site-skin="on"].phone-ios input,
html body[data-site-skin="on"].phone-ios select,
html body[data-site-skin="on"].phone-ios textarea {
  background: #0a1218 !important;
  color: #f5fbfd !important;
}
html body[data-site-skin="on"].phone-ios .mobile-nav {
  background: rgba(10, 16, 20, 0.96) !important;
}
html body[data-site-skin="on"].phone-ios .mobile-nav a.on {
  color: #9ee4dc !important;
}

html body[data-site-skin="on"] button,
html body[data-site-skin="on"] nav.side a,
html body[data-site-skin="on"] .page,
html body[data-site-skin="on"] .card,
html body[data-site-skin="on"] .opus-home,
html body[data-site-skin="on"] .opus-cta a,
html body[data-site-skin="on"] .kpi {
  animation: none !important;
  transition: none !important;
}

html body[data-site-skin="on"] :is(button, nav.side a, .card, .kpi, .opus-cta a):hover,
html body[data-site-skin="on"] :is(button, nav.side a, .card, .kpi, .opus-cta a):active {
  transform: none !important;
  filter: none !important;
}

@media (max-width: 900px) {
  html body[data-site-skin="on"]::before {
    background:
      linear-gradient(180deg, rgba(7, 11, 14, 0.78) 0%, #070b0e 24%),
      url("/app/s/office-bg.webp?v=4") center top / cover no-repeat;
  }
}


/* Higgsfield kill-white v7: никакого белого стекла, только teal-тёмные рамки */
html body[data-site-skin="on"] {
  --glass-border: #2a4a52 !important;
  --glass-edge: #3a6570 !important;
  --line: #2a4a52 !important;
}
html body[data-site-skin="on"] :is(
  .card, .sheet, .composer, .kpi, .easy-tile, .big-tile, .inb, .people, .thread,
  .login .card, .modal, .dialog, .panel, .box, .tile, input, select, textarea,
  button, .msg, .bubble, table, th, td, .ios-more-group, .mobile-nav, .app-search,
  .app-search-panel, details, summary, .k-tabs, .ui-mode-bar, pre, code
) {
  border-color: #2a4a52 !important;
  outline-color: #3a6570 !important;
}
html body[data-site-skin="on"] :is(input, select, textarea, .field, .composer) {
  background: #0a1216 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
html body[data-site-skin="on"] :is(p, li, td, th, label, span, small, .muted, .hint, .who, .t) {
  color: #eef6fa !important;
}
html body[data-site-skin="on"] .muted,
html body[data-site-skin="on"] .hint,
html body[data-site-skin="on"] small {
  color: #c5d8e0 !important;
}
html body[data-site-skin="on"] nav.side a,
html body[data-site-skin="on"] .mobile-nav a,
html body[data-site-skin="on"] .ios-more-a {
  color: #f2f8fb !important;
}
html body[data-site-skin="on"] nav.side a.on,
html body[data-site-skin="on"] .mobile-nav a.on {
  color: #9ee4dc !important;
  background: #1a3038 !important;
}
html body[data-site-skin="on"] :is(h1, h2, h3, h4, .brand, .page > h2, .card > h2) {
  color: #ffffff !important;
  text-shadow: none !important;
}
html body[data-site-skin="on"] img,
html body[data-site-skin="on"] .brand img,
html body[data-site-skin="on"] .av {
  border: 1px solid #3a6570 !important;
  background: #0a1216 !important;
  box-shadow: none !important;
}
html body[data-site-skin="on"] button.primary,
html body[data-site-skin="on"] .opus-cta a {
  background: #1f6f5c !important;
  color: #ffffff !important;
  border: 1px solid #3a9a86 !important;
}
html body[data-site-skin="on"] button.ghost {
  background: #121a20 !important;
  color: #9ee4dc !important;
  border: 1px solid #3a6570 !important;
}
/* убрать белые inset/sheen */
html body[data-site-skin="on"] * {
  box-shadow: none !important;
}
html body[data-site-skin="on"] :is(.card, .sheet, .composer, .mobile-nav, nav.side) {
  box-shadow: none !important;
}

/* Фирстиль КП: без белых вкладок — тёмный navy/gold, читаемый текст */
html body[data-site-skin="on"] .brand-studio {
  --bs-navy: #9ee4dc;
  --bs-navy-deep: #7fd4ca;
  --bs-gold: #f0e2c4;
  --bs-paper: #121a20;
  --bs-paper-2: #0a1216;
  --bs-ink: #f5fbfd;
  --bs-muted: #c5d8e0;
  --bs-line: #2a4a52;
  background: #121a20 !important;
  color: #f5fbfd !important;
  border-color: #2a4a52 !important;
}
html body[data-site-skin="on"] .brand-studio .bs-paper {
  background:
    linear-gradient(180deg, rgba(158, 228, 220, 0.06), transparent 42%),
    #121a20 !important;
}
html body[data-site-skin="on"] .brand-studio .bs-title,
html body[data-site-skin="on"] .brand-studio .bs-tab.on,
html body[data-site-skin="on"] .brand-studio .bs-kpi b,
html body[data-site-skin="on"] .brand-studio .bs-btn-ghost {
  color: #f5fbfd !important;
}
html body[data-site-skin="on"] .brand-studio .bs-lead,
html body[data-site-skin="on"] .brand-studio .bs-tab,
html body[data-site-skin="on"] .brand-studio .bs-kpi span,
html body[data-site-skin="on"] .brand-studio .bs-empty p {
  color: #c5d8e0 !important;
}
html body[data-site-skin="on"] .brand-studio .bs-kpi,
html body[data-site-skin="on"] .brand-studio .bs-stage,
html body[data-site-skin="on"] .brand-studio[data-ready="1"] .bs-stage,
html body[data-site-skin="on"] .brand-studio .bs-file {
  background: #0a1216 !important;
  border-color: #2a4a52 !important;
  color: #f5fbfd !important;
  box-shadow: none !important;
}
html body[data-site-skin="on"] .brand-studio .bs-tabs {
  border-bottom-color: #2a4a52 !important;
}
html body[data-site-skin="on"] .brand-studio .bs-tab.on {
  border-bottom-color: #f0e2c4 !important;
}
html body[data-site-skin="on"] .brand-studio .bs-btn-primary {
  background: #1f6f5c !important;
  color: #fff !important;
  border: 1px solid #3a9a86 !important;
}
html body[data-site-skin="on"] .brand-studio .bs-btn-ghost {
  border-color: #3a6570 !important;
  background: #121a20 !important;
}

/* Пульт: плитки тёмные, текст белый — без белых квадратов */
html body[data-site-skin="on"] .simple-home .big-tile,
html body[data-site-skin="on"] #v-home .big-tile,
html body[data-site-skin="on"] #v-home .easy-tile,
html body[data-site-skin="on"] #v-home .home-tile {
  background: #121a20 !important;
  color: #ffffff !important;
  border: 1px solid #2a4a52 !important;
  -webkit-text-fill-color: #ffffff !important;
}
html body[data-site-skin="on"] .simple-home .big-tile span {
  color: #9ee4dc !important;
  filter: none !important;
}

/* === unify v10: убить ВСЕ белые рамки / вкладки / вставки === */
html body[data-site-skin="on"] {
  --bg: #070b0e !important;
  --panel: #121a20 !important;
  --surface: #121a20 !important;
  --surface-2: #0a1216 !important;
  --field: #0a1216 !important;
  --bubble: #1a3038 !important;
  --bubble-me: #245560 !important;
  --accent-soft: #1a3038 !important;
  --line: #2a4a52 !important;
  --border: #2a4a52 !important;
  --glass: #121a20 !important;
  --glass-strong: #121a20 !important;
  --glass-soft: #1a3038 !important;
  --glass-border: #2a4a52 !important;
  --glass-edge: #3a6570 !important;
  --glass-dim: #1a3038 !important;
  --sheen: none !important;
  --hb-soft: #121a20 !important;
  --shadow: none !important;
}

/* Brand-studio: все «бумажные» белые блоки → тёмные */
html body[data-site-skin="on"] .brand-studio,
html body[data-site-skin="on"] .brand-studio .bs-paper,
html body[data-site-skin="on"] .brand-studio .bs-kpi,
html body[data-site-skin="on"] .brand-studio .bs-stage,
html body[data-site-skin="on"] .brand-studio[data-ready="1"] .bs-stage,
html body[data-site-skin="on"] .brand-studio .bs-frame,
html body[data-site-skin="on"] .brand-studio .bs-file,
html body[data-site-skin="on"] .brand-studio .bs-ideas li,
html body[data-site-skin="on"] .brand-studio .bs-file-ico,
html body[data-site-skin="on"] .brand-studio .bs-empty-mark {
  background: #0a1216 !important;
  background-image: none !important;
  color: #f5fbfd !important;
  border-color: #2a4a52 !important;
  box-shadow: none !important;
}
html body[data-site-skin="on"] .brand-studio {
  background: #121a20 !important;
}
html body[data-site-skin="on"] .brand-studio .bs-title,
html body[data-site-skin="on"] .brand-studio .bs-kpi b,
html body[data-site-skin="on"] .brand-studio .bs-tab.on,
html body[data-site-skin="on"] .brand-studio .bs-file b,
html body[data-site-skin="on"] .brand-studio .bs-status,
html body[data-site-skin="on"] body.ui-pro .brand-studio .bs-title {
  color: #f5fbfd !important;
  -webkit-text-fill-color: #f5fbfd !important;
}
html body[data-site-skin="on"] .brand-studio .bs-lead,
html body[data-site-skin="on"] .brand-studio .bs-tab,
html body[data-site-skin="on"] .brand-studio .bs-kpi span,
html body[data-site-skin="on"] .brand-studio .bs-empty,
html body[data-site-skin="on"] .brand-studio .bs-empty p,
html body[data-site-skin="on"] .brand-studio .bs-file small,
html body[data-site-skin="on"] .brand-studio .bs-frame figcaption {
  color: #c5d8e0 !important;
  -webkit-text-fill-color: #c5d8e0 !important;
}
html body[data-site-skin="on"] .brand-studio .bs-btn-ghost {
  background: #121a20 !important;
  color: #9ee4dc !important;
  border-color: #3a6570 !important;
}
html body[data-site-skin="on"] .brand-studio .bs-btn-ghost:hover {
  background: #1a3038 !important;
  border-color: #5a8d96 !important;
}
html body[data-site-skin="on"] .brand-studio .bs-stage {
  box-shadow: none !important;
}

/* Ещё / iOS sheet / плитки / чипы */
html body[data-site-skin="on"] :is(
  .ios-more, .ios-more-head, .ios-more-scroll, .ios-more-group, .ios-more-a,
  .easy-tile, .big-tile, .home-tile, .chip, .modes, .modes button,
  .otp-qr, .login-tabs, .login-tabs button, .k-tabs, .k-tabs button,
  .ui-mode-bar, .ui-mode-bar button, .segment, .seg, .tabs, .tab,
  .drawer, .sheet, .modal, .dialog, .popover, .dropdown, .menu,
  .list-row, .row-card, .mini-card, .subcard, .inset, .well, .callout,
  .fm-card, .fm-panel, .fm-st, .cal-day, .cal-leg, .learn-deck-card,
  .learn-md, .pat-lock, .unlock, .nudge, .toast, .app-search-panel
) {
  background: #121a20 !important;
  background-image: none !important;
  color: #f5fbfd !important;
  border-color: #2a4a52 !important;
  box-shadow: none !important;
}
html body[data-site-skin="on"] .ios-more-lab,
html body[data-site-skin="on"] .ios-more-a {
  color: #e8f0f4 !important;
}
html body[data-site-skin="on"] .easy-tile.primary,
html body[data-site-skin="on"] .big-tile.primary,
html body[data-site-skin="on"] .modes button.on,
html body[data-site-skin="on"] .k-tabs button.on,
html body[data-site-skin="on"] .tab.on,
html body[data-site-skin="on"] .seg.on {
  background: #1f5560 !important;
  color: #ffffff !important;
  border-color: #3a9a86 !important;
}

/* Таблицы / варны / светлые «вставки» из style.css */
html body[data-site-skin="on"] :is(
  .warn, .ok, .err, .hint-box, .note, .banner, .strip,
  tr.soon td, tr.bad td, .cal-leg.holiday, .k-canva-badge, .k-amo-badge
) {
  background: #1a3038 !important;
  color: #e8f0f4 !important;
  border-color: #2a4a52 !important;
}
html body[data-site-skin="on"] .warn,
html body[data-site-skin="on"] .cal-leg.holiday,
html body[data-site-skin="on"] tr.soon td {
  background: #2a2416 !important;
  color: #ffe0a0 !important;
  border-color: #8a7348 !important;
}
html body[data-site-skin="on"] tr.bad td {
  background: #2a1818 !important;
  color: #ffc0bc !important;
}
html body[data-site-skin="on"] .learn-deck-card {
  background: #121a20 !important;
}
html body[data-site-skin="on"] .learn-deck-card h3 {
  color: #f5fbfd !important;
}
html body[data-site-skin="on"] .learn-deck-card p {
  color: #c5d8e0 !important;
}

/* Glass sheen / белые inset — выключить (иконки/маркеры не трогаем) */
html body[data-site-skin="on"] :is(.card, .panel, .box, .tile, .kpi, button.primary)::before,
html body[data-site-skin="on"] :is(.card, .panel, .box, .tile, .kpi, button.primary)::after {
  background-image: none !important;
  box-shadow: none !important;
}

/* Inline white leftovers (QR и dashed boxes) */
html body[data-site-skin="on"] .otp-qr,
html body[data-site-skin="on"] [style*="background:#fff"],
html body[data-site-skin="on"] [style*="background: #fff"],
html body[data-site-skin="on"] [style*="background:#ffffff"],
html body[data-site-skin="on"] [style*="background: #ffffff"],
html body[data-site-skin="on"] [style*="background:white"],
html body[data-site-skin="on"] [style*="background: white"] {
  background: #0a1216 !important;
  background-color: #0a1216 !important;
  color: #f5fbfd !important;
  border-color: #2a4a52 !important;
}

/* Общая страховка: любые «белые» панели внутри офиса */
html body[data-site-skin="on"] .page :is(
  section, article, aside, fieldset, figure, figcaption,
  .grid > div, .cols > div, .stack > div
) {
  border-color: #2a4a52;
}
html body[data-site-skin="on"] fieldset {
  background: #121a20 !important;
  border: 1px solid #2a4a52 !important;
  color: #f5fbfd !important;
}
html body[data-site-skin="on"] hr {
  border: 0 !important;
  border-top: 1px solid #2a4a52 !important;
  background: transparent !important;
}
html body[data-site-skin="on"] ::selection {
  background: #1f5560 !important;
  color: #ffffff !important;
}

/* Мобильная шапка «Ещё» */
html body[data-site-skin="on"] .ios-more {
  background: #070b0e !important;
}
html body[data-site-skin="on"] .ios-more-head {
  background: #0b1217 !important;
  border-bottom: 1px solid #2a4a52 !important;
}
html body[data-site-skin="on"] .ios-more-group {
  background: #121a20 !important;
  border: 1px solid #2a4a52 !important;
  border-radius: 12px !important;
}
html body[data-site-skin="on"] .ios-more-a + .ios-more-a {
  border-top: 1px solid #2a4a52 !important;
}


/* === unify v11: пульт #v-home светлый hb-soft → тёмный везде === */
html body[data-site-skin="on"] #v-home,
html body[data-site-skin="on"] #v-watch,
html body[data-site-skin="on"] #v-setup,
html body[data-site-skin="on"] #v-keys,
html body[data-site-skin="on"] #v-ai,
html body[data-site-skin="on"] #v-calc,
html body[data-site-skin="on"] #v-leads,
html body[data-site-skin="on"] #v-browser,
html body[data-site-skin="on"] .page {
  --hb: #3a9a86 !important;
  --hb-soft: #121a20 !important;
  --hb-ink: #f5fbfd !important;
  --hb-muted: #c5d8e0 !important;
  --panel: #121a20 !important;
  --surface: #121a20 !important;
  --surface-2: #0a1216 !important;
  --bg: #070b0e !important;
  --ink: #f5fbfd !important;
  --muted: #c5d8e0 !important;
  --line: #2a4a52 !important;
  --field: #0a1216 !important;
  --bubble: #1a3038 !important;
  --accent-soft: #1a3038 !important;
}

/* Команда + баланс API + плитки пульта */
html body[data-site-skin="on"] :is(
  .team-card, .team-board, .wallet-row, .wallet-list, .wallet-body,
  #h-team-card, #h-wallet-card, #w-online, #w-online-list,
  .home-clock, .home-weather, .kpi, .easy-tile, .big-tile, .home-tile,
  .du-chip, .chip, .pill, .strict, .modes, .modes button
) {
  background: #121a20 !important;
  background-image: none !important;
  color: #f5fbfd !important;
  -webkit-text-fill-color: #f5fbfd !important;
  border-color: #2a4a52 !important;
  box-shadow: none !important;
}
html body[data-site-skin="on"] .wallet-row.wallet-pay,
html body[data-site-skin="on"] #v-home .kpi.warnk {
  background: #2a2416 !important;
  border-color: #8a7348 !important;
  color: #ffe0a0 !important;
}
html body[data-site-skin="on"] .team-card.on {
  background: #1a3038 !important;
  border-color: #3a9a86 !important;
}
html body[data-site-skin="on"] :is(
  .tc-role, .tc-acts, .wallet-status, .wallet-bal, .hc-date, .hw-meta, .hc-sec,
  #v-home .muted, #v-home .lead, #v-home .kpi span
) {
  color: #c5d8e0 !important;
  -webkit-text-fill-color: #c5d8e0 !important;
}
html body[data-site-skin="on"] :is(
  .hc-time, .hw-temp, .wallet-body b, #v-home .kpi b, #v-home h1, #v-home h2, #v-home h3
) {
  color: #f5fbfd !important;
  -webkit-text-fill-color: #f5fbfd !important;
}
html body[data-site-skin="on"] #v-home .easy-tile.primary,
html body[data-site-skin="on"] #v-home button.primary,
html body[data-site-skin="on"] #v-home .du-chip.main,
html body[data-site-skin="on"] #v-home a.btn {
  background: #1f5560 !important;
  color: #ffffff !important;
  border-color: #3a9a86 !important;
}

/* Work Portal / iframe / любые ещё светлые островки */
html body[data-site-skin="on"] :is(
  #v-browser, .ob-chrome, .ob-tile, .ob-frame, .ob-panel, iframe, .sb-frame, .sb-pane
) {
  background: #0a1216 !important;
  color: #f5fbfd !important;
  border-color: #2a4a52 !important;
}

/* Жёсткий кап: любые inline/var белые панели внутри офиса */
html body[data-site-skin="on"] .card,
html body[data-site-skin="on"] .card * {
  border-color: #2a4a52;
}
html body[data-site-skin="on"] .card {
  background: #121a20 !important;
  color: #f5fbfd !important;
}
html body[data-site-skin="on"] .card .muted,
html body[data-site-skin="on"] .card p.muted,
html body[data-site-skin="on"] .card span.muted {
  color: #c5d8e0 !important;
  -webkit-text-fill-color: #c5d8e0 !important;
}

/* Светлые hardcoded в style.css (#f2f5fa, #e8eef8, #fff4e0…) */
html body[data-site-skin="on"] [style*="background:#fff"],
html body[data-site-skin="on"] [style*="background: #fff"],
html body[data-site-skin="on"] [style*="background:#ffffff"],
html body[data-site-skin="on"] [style*="background: #ffffff"],
html body[data-site-skin="on"] [style*="background:#f"],
html body[data-site-skin="on"] [style*="background: #f"] {
  background-color: #121a20 !important;
  color: #f5fbfd !important;
}

/* Финал: знак только за UI, тусклый, клики не ловит (после всех fill:!important) */
html body[data-site-skin="on"].art-guard::after {
  content: "© СЭМПОЛ" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0.14em !important;
  color: rgba(158, 228, 220, 0.028) !important;
  -webkit-text-fill-color: rgba(158, 228, 220, 0.028) !important;
  text-shadow: none !important;
  opacity: 1 !important;
  transform: rotate(-18deg) !important;
  mix-blend-mode: normal !important;
}
html body[data-site-skin="on"].art-author::after {
  content: none !important;
  display: none !important;
}
html body[data-site-skin="on"] :is(
  .shell, .side, nav.side, .main, .topbar, header, .mobile-nav,
  .sb-tabstrip, .drawer, .page, .app-search, .ios-more, .sheet, .modal
) {
  position: relative !important;
  z-index: 2 !important;
}
html body[data-site-skin="on"] .mobile-nav {
  z-index: 99999 !important;
}
