/* Libermall ID — портал (/apps, /account), тёмная тема в стиле split-login.
   Активна только при html.lbm-portal-on (ставит /assets/lbm-portal.js по pathname). */

html.lbm-portal-on, html.lbm-portal-on body,
html.lbm-portal-on #root, html.lbm-portal-on .ant-layout,
html.lbm-portal-on .ant-layout-content {
  background: #0A0A0C !important;
  color: #F5F5F7 !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* ── скрыть штатный пустой sider, сдвиг под наш ── */
html.lbm-portal-on #root .ant-layout-sider { display: none !important; }
html.lbm-portal-on #root .ant-layout-has-sider > .ant-layout { margin-left: 256px !important; }

/* ── наш сайдбар ── */
html.lbm-portal-on .lbm-side {
  position: fixed; top: 0; left: 0; width: 256px; height: 100vh;
  background: #0D0D10; border-right: 1px solid #1F1F24;
  display: flex; flex-direction: column; padding: 18px 14px; box-sizing: border-box; z-index: 40;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}
html.lbm-portal-on .lbm-side .lbm-logo {
  display: flex; align-items: center; gap: 10px; padding: 6px 10px 22px;
  font-weight: 700; font-size: 15px; color: #F5F5F7;
}
html.lbm-portal-on .lbm-side .lbm-logo img { width: 30px; height: 30px; }
html.lbm-portal-on .lbm-side a.lbm-nav {
  display: flex; align-items: center; color: #8B8B93; text-decoration: none;
  padding: 11px 13px; border-radius: 10px; font-size: 14px; font-weight: 500; margin-bottom: 2px;
  transition: all .18s cubic-bezier(.2,.6,.2,1);
}
html.lbm-portal-on .lbm-side a.lbm-nav:hover { background: #16161B; color: #F5F5F7; }
html.lbm-portal-on .lbm-side a.lbm-nav.lbm-act { background: #16161B; color: #FFD60A; }
html.lbm-portal-on .lbm-side a.lbm-out { margin-top: auto; color: #E5484D; }
html.lbm-portal-on .lbm-side a.lbm-out:hover { background: rgba(229,72,77,.12); }
.lbm-side { display: none; } /* вне портала не показывать (страховка) */
html.lbm-portal-on .lbm-side { display: flex; }

/* ── шапка ── */
html.lbm-portal-on .ant-layout-header {
  background: #0A0A0C !important; border-bottom: 1px solid #1F1F24 !important;
  box-shadow: none !important; color: #8B8B93 !important;
}
html.lbm-portal-on .ant-layout-header * { color: #8B8B93; }
html.lbm-portal-on .ant-breadcrumb a, html.lbm-portal-on .ant-breadcrumb li:last-child,
html.lbm-portal-on .ant-breadcrumb li:last-child * { color: #F5F5F7 !important; }
html.lbm-portal-on .ant-breadcrumb-separator { color: #55555C !important; }
html.lbm-portal-on .ant-dropdown-trigger { color: #F5F5F7 !important; }

/* ── карточки (/apps и контент /account) ── */
html.lbm-portal-on .ant-card {
  background: #131317 !important; border: 1px solid #23232A !important;
  border-radius: 16px !important; box-shadow: none !important; color: #F5F5F7 !important;
  transition: border-color .18s, transform .18s;
}
html.lbm-portal-on .ant-card:hover { border-color: rgba(255,214,10,.55) !important; transform: translateY(-2px); }
html.lbm-portal-on .ant-card-head { border-bottom: 1px solid #23232A !important; color: #F5F5F7 !important; }
html.lbm-portal-on .ant-card-meta-title, html.lbm-portal-on .ant-card-head-title,
html.lbm-portal-on .ant-card .ant-typography { color: #F5F5F7 !important; }
html.lbm-portal-on .ant-card-meta-description { color: #8B8B93 !important; }

/* ── типографика/формы /account ── */
html.lbm-portal-on h1, html.lbm-portal-on h2, html.lbm-portal-on h3,
html.lbm-portal-on .ant-typography, html.lbm-portal-on label,
html.lbm-portal-on .ant-form-item-label > label,
html.lbm-portal-on .ant-descriptions-item-label,
html.lbm-portal-on .ant-descriptions-item-content { color: #F5F5F7 !important; }
html.lbm-portal-on .ant-form-item-extra, html.lbm-portal-on .ant-typography-secondary { color: #8B8B93 !important; }
/* подписи полей /account: голые span в .ant-col внутри control-input-content (antd красит #262626) */
html.lbm-portal-on .ant-form-item-control-input-content > .ant-row > .ant-col > span { color: #C9C9CF !important; }
html.lbm-portal-on .ant-row > .ant-col { color: #C9C9CF !important; }
html.lbm-portal-on .anticon-question-circle { color: #55555C !important; }

html.lbm-portal-on .ant-input, html.lbm-portal-on .ant-input-affix-wrapper,
html.lbm-portal-on .ant-input-password, html.lbm-portal-on .ant-input-number,
html.lbm-portal-on .ant-select .ant-select-selector, html.lbm-portal-on .ant-picker {
  background: #0D0D10 !important; color: #F5F5F7 !important;
  border-color: #2A2A33 !important; border-radius: 10px !important;
}
html.lbm-portal-on .ant-input::placeholder { color: #55555C !important; }
html.lbm-portal-on .ant-input:focus, html.lbm-portal-on .ant-input-affix-wrapper-focused,
html.lbm-portal-on .ant-select-focused .ant-select-selector {
  border-color: #FFD60A !important; box-shadow: 0 0 0 3px rgba(255,214,10,.15) !important;
}
html.lbm-portal-on .ant-input-suffix *, html.lbm-portal-on .ant-select-arrow { color: #8B8B93 !important; }
html.lbm-portal-on .ant-select-dropdown {
  background: #16161B !important; border: 1px solid #2A2A33 !important; color: #F5F5F7 !important;
}
html.lbm-portal-on .ant-select-item { color: #C9C9CF !important; }
html.lbm-portal-on .ant-select-item-option-active { background: #1F1F24 !important; color: #F5F5F7 !important; }
html.lbm-portal-on .ant-select-item-option-selected { background: rgba(255,214,10,.14) !important; color: #FFD60A !important; }

/* кнопки */
html.lbm-portal-on .ant-btn-primary {
  background: #FFD60A !important; border-color: #FFD60A !important; color: #141408 !important;
  border-radius: 10px !important; font-weight: 600 !important; box-shadow: none !important;
}
html.lbm-portal-on .ant-btn-primary:hover { background: #E8B800 !important; border-color: #E8B800 !important; }
html.lbm-portal-on .ant-btn-primary span { color: #141408 !important; }
html.lbm-portal-on .ant-btn-default, html.lbm-portal-on .ant-btn:not(.ant-btn-primary):not(.ant-btn-dangerous) {
  background: #16161B !important; border-color: #2A2A33 !important; color: #F5F5F7 !important; border-radius: 10px !important;
}
html.lbm-portal-on .ant-btn:not(.ant-btn-primary):hover { border-color: #FFD60A !important; color: #FFD60A !important; }
html.lbm-portal-on .ant-btn-dangerous { border-radius: 10px !important; }

/* таблицы/списки/прочее antd на /account */
html.lbm-portal-on .ant-table, html.lbm-portal-on .ant-table-container,
html.lbm-portal-on .ant-table-cell, html.lbm-portal-on .ant-list,
html.lbm-portal-on .ant-list-item {
  background: #131317 !important; color: #F5F5F7 !important; border-color: #23232A !important;
}
html.lbm-portal-on .ant-table-thead > tr > th { background: #16161B !important; color: #8B8B93 !important; border-color: #23232A !important; }
html.lbm-portal-on .ant-table-tbody > tr:hover > td { background: #1A1A1F !important; }
html.lbm-portal-on .ant-modal-content, html.lbm-portal-on .ant-modal-header {
  background: #16161B !important; color: #F5F5F7 !important; border-color: #23232A !important;
}
html.lbm-portal-on .ant-modal-title, html.lbm-portal-on .ant-modal-close { color: #F5F5F7 !important; }
html.lbm-portal-on .ant-tabs-tab { color: #8B8B93 !important; }
html.lbm-portal-on .ant-tabs-tab-active .ant-tabs-tab-btn { color: #FFD60A !important; }
html.lbm-portal-on .ant-tabs-ink-bar { background: #FFD60A !important; }
html.lbm-portal-on .ant-divider { border-color: #23232A !important; }
html.lbm-portal-on .ant-tag { background: #16161B !important; border-color: #2A2A33 !important; color: #C9C9CF !important; }
html.lbm-portal-on .ant-upload, html.lbm-portal-on .ant-upload-list-item { color: #C9C9CF !important; }
html.lbm-portal-on a:not(.lbm-nav):not(.lbm-out) { color: #FFD60A !important; }
html.lbm-portal-on .ant-switch-checked { background: #FFD60A !important; }

/* футер */
html.lbm-portal-on .ant-layout-footer { background: transparent !important; color: #55555C !important; border: none !important; }
html.lbm-portal-on .lbm-foot, html.lbm-portal-on .lbm-foot a { color: #6E6E78 !important; }

/* мобила */
@media (max-width: 600px) {
  html.lbm-portal-on .lbm-side { display: none !important; }
  html.lbm-portal-on #root .ant-layout-has-sider > .ant-layout { margin-left: 0 !important; }
}
