/* Modern Karamad AI sidebar */
/* Ali: empty gap between the header and "داشبورد" (the first menu item) — the base theme's
   .main-sidebar has margin-block-start:4.25rem, meant to clear a *fixed/pinned* sidebar header
   that's been removed from normal flow. In this app the header sits in normal flow instead, so
   it already reserves its own space above the menu — that extra margin was double-counting it,
   pushing the menu down by the header's height a second time. */
body.km-modern-sidebar .app-sidebar .main-sidebar {
  margin-block-start: 0 !important;
}
.km-modern-sidebar .app-sidebar {
  background: radial-gradient(circle at 40% 18%, #073a9b 0, #052b79 28%, #031f5e 62%, #021746 100%) !important;
  border-inline-end: 0 !important;
  box-shadow: -10px 0 36px rgba(2, 23, 70, .22);
}
.km-modern-sidebar .app-sidebar .main-sidebar-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100% !important;
  max-width: 100% !important;
  height: 2.68rem;
  padding: .08rem .55rem 0;
  background: transparent !important;
  border-block-end: 0 !important;
  border-inline-end: 0 !important;
}
.km-brand { width: auto; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: flex-start; color: #fff !important; overflow: hidden; }
.km-brand-logo { display: block; width: 7.25rem; max-width: 100%; max-height: 2.18rem; height: auto; object-fit: contain; transition: width .24s ease, opacity .2s ease; }
.km-sidebar-toggle { position: static; z-index: 3; flex: 0 0 1.85rem; width: 1.85rem; height: 1.85rem; display: grid; place-items: center; padding: 0; transform: none; border: 1px solid rgba(163,198,255,.28); border-radius: .48rem; background: rgba(255,255,255,.08); color: #fff; box-shadow: 0 5px 14px rgba(0,40,115,.22); transition: transform .2s ease, background .2s ease; }
.km-sidebar-toggle i { font-size: 1.12rem; }
.km-sidebar-toggle:hover { background: #0879f9; transform: scale(1.06); }
.km-modern-sidebar #sidebar-scroll { height:calc(100vh - 2.68rem);padding: .08rem .62rem .45rem; background: transparent !important; }
.km-modern-sidebar #sidebar-scroll { overflow:hidden; scrollbar-width: thin; scrollbar-color: rgba(151,181,232,.3) transparent; }
.km-modern-sidebar #sidebar-scroll::-webkit-scrollbar { width: 3px; }
.km-modern-sidebar #sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(151,181,232,.3); border-radius: 5px; }
.km-sidebar-nav { height: 100%; min-height:0; display: flex; flex-direction: column; }
.km-sidebar-nav>ul { flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(151,181,232,.28) transparent;list-style: none; padding: 0 .08rem .3rem; margin: 0; }
.km-sidebar-nav>ul::-webkit-scrollbar{width:3px}.km-sidebar-nav>ul::-webkit-scrollbar-thumb{background:rgba(151,181,232,.28);border-radius:6px}
.km-nav-item { margin: .06rem 0; }
.km-nav-link {
  position: relative; min-height: 2.65rem; display: flex; align-items: center; gap: .85rem;
  padding: .54rem .82rem; color: #d8e6ff !important; border:1px solid transparent;border-radius: .52rem;
  font-size: .74rem; font-weight: 650; transition: background .18s ease, color .18s ease, transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.km-nav-link > i { width: 1.3rem; flex: 0 0 1.3rem; text-align: center; color: #bcd2ff; font-size: 1.08rem; }
.km-nav-link:hover { color: #fff !important; border-color:rgba(173,205,255,.1);background: rgba(255,255,255,.075); transform: translateX(-2px); }
.km-nav-link:focus-visible{outline:2px solid rgba(126,180,255,.7);outline-offset:2px}
.km-nav-link.active { color: #fff !important; background: linear-gradient(100deg, #0878ff, #0869ee); box-shadow: 0 7px 18px rgba(0, 102, 255, .28); }
.km-nav-link.active > i { color: #fff; }
.km-parent-link { width: 100%; border: 0; background: transparent; text-align: start; }
.km-parent-arrow { margin-inline-start: auto; font-size: .8rem !important; transition: transform .2s ease; }
.km-has-children.open .km-parent-arrow { transform: rotate(180deg); }
.km-child-menu { max-height: 0; overflow: hidden; margin: 0 !important; padding: 0 !important; transition: max-height .25s ease, padding .25s ease; }
.km-has-children.open .km-child-menu { max-height: 13rem; padding: .25rem 0 .4rem !important; }
.km-child-item { position: relative; margin: .08rem 0; padding-inline-start: 2.75rem; }
.km-child-item::before { content: ""; position: absolute; inset-inline-start: 1.55rem; inset-block-start: 50%; width: .34rem; height: .34rem; transform: translateY(-50%); border-radius: 50%; background: rgba(184,210,255,.55); }
.km-child-link { min-height: 2.1rem; display: flex; align-items: center; padding: .4rem .65rem; border-radius: .4rem; color: #bed2f5 !important; font-size: .7rem; font-weight: 550; transition: background .18s ease, color .18s ease; }
.km-child-link:hover, .km-child-link.active { background: rgba(255,255,255,.07); color: #fff !important; }
.km-child-parent { width: 100%; border: 0; text-align: start; }
.km-child-parent > .km-child-arrow { margin-inline-start: auto; font-size: .68rem; transition: transform .2s ease; }
.km-child-has-children.open > .km-child-parent > .km-child-arrow { transform: rotate(180deg); }
.km-grandchild-menu { max-height: 0; overflow: hidden; margin: 0 !important; padding: 0 !important; transition: max-height .22s ease, padding .22s ease; }
.km-child-has-children.open > .km-grandchild-menu { max-height: 8rem; padding: .18rem 0 .25rem !important; }
.km-grandchild-menu li { position: relative; padding-inline-start: .55rem; }
.km-grandchild-menu li::before { content: ""; position: absolute; inset-inline-start: .05rem; inset-block-start: 50%; width: .22rem; height: .22rem; transform: translateY(-50%); border-radius: 50%; background: rgba(184,210,255,.45); }
.km-grandchild-menu a { min-height: 1.85rem; display: flex; align-items: center; padding: .32rem .55rem; border-radius: .36rem; color: #afc6ed !important; font-size: .65rem; font-weight: 550; transition: background .16s ease, color .16s ease; }
.km-grandchild-menu a:hover, .km-grandchild-menu a.active { background: rgba(255,255,255,.075); color: #fff !important; }
.km-badge { margin-inline-start: auto; min-width: 1.25rem; height: 1.25rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #ff334f; color: #fff; font-size: .6rem; box-shadow: 0 4px 10px rgba(255,51,79,.35); }
.km-customer-unread-badge[hidden] { display: none !important; }
.km-online-dot { margin-inline-start: auto; width: .38rem; height: .38rem; border-radius: 50%; background: #fff; box-shadow: 0 0 9px #fff; }
.km-sub-item .km-nav-link { padding-inline-start: 1.45rem; font-size: .7rem; color: #bfd2f4 !important; }
.km-sidebar-footer { flex:0 0 auto;margin-top:.3rem; padding: .55rem .42rem .25rem;border-top:1px solid rgba(153,190,246,.13);background:linear-gradient(180deg,transparent,rgba(1,18,57,.22)); }
.km-sidebar-footer a { min-height:2.65rem;display: flex; align-items: center; justify-content: center; gap: .55rem; padding: .6rem; border: 1px solid rgba(255,105,120,.55); border-radius: .52rem; background:rgba(220,38,62,.18);color: #ffdce1; font-size: .7rem;font-weight:700;transition:.18s ease }
.km-sidebar-footer a i{font-size:1rem;color:#ff8695}.km-sidebar-footer a:hover { border-color:#ff7183;background: rgba(220,38,62,.35); color: #fff;transform:translateY(-1px);box-shadow:0 7px 16px rgba(90,0,18,.28) }
@media (min-width: 992px) {
  body.km-modern-sidebar .app-sidebar,
  body.km-modern-sidebar .app-sidebar:hover { width: 15rem !important; transform: none !important; transition: width .24s ease !important; }
  body.km-modern-sidebar .app-content { margin-inline-start: 15rem; transition: margin-inline-start .24s ease; }
  body.km-modern-sidebar .app-header { padding-inline-start: 15rem; transition: padding-inline-start .24s ease; }
  body.km-modern-sidebar .km-original-toggle { display: none !important; }

  body.km-modern-sidebar.km-sidebar-collapsed .app-sidebar,
  body.km-modern-sidebar.km-sidebar-collapsed .app-sidebar:hover { width: 4.75rem !important; }
  body.km-modern-sidebar.km-sidebar-collapsed .app-content { margin-inline-start: 4.75rem; }
  body.km-modern-sidebar.km-sidebar-collapsed .app-header { padding-inline-start: 4.75rem; }
  body.km-modern-sidebar.km-sidebar-collapsed .app-sidebar .main-sidebar-header { padding-inline: .35rem; justify-content: space-between; gap: .15rem; }
  body.km-modern-sidebar.km-sidebar-collapsed .km-brand { justify-content: flex-start; overflow: hidden; flex: 0 1 auto; }
  body.km-modern-sidebar.km-sidebar-collapsed .km-brand-logo { width: 1.75rem; max-width: 1.75rem; opacity: 1; pointer-events: auto; }
  body.km-modern-sidebar.km-sidebar-collapsed .km-nav-link > span,
  body.km-modern-sidebar.km-sidebar-collapsed .km-parent-arrow,
  body.km-modern-sidebar.km-sidebar-collapsed .km-badge,
  body.km-modern-sidebar.km-sidebar-collapsed .km-online-dot,
  body.km-modern-sidebar.km-sidebar-collapsed .km-sidebar-footer span,
  body.km-modern-sidebar.km-sidebar-collapsed .km-child-menu { display: none !important; }
  body.km-modern-sidebar.km-sidebar-collapsed .km-grandchild-menu { display: none !important; }
  body.km-modern-sidebar.km-sidebar-collapsed #sidebar-scroll { padding-inline: .55rem; }
  body.km-modern-sidebar.km-sidebar-collapsed .km-nav-link { justify-content: center; gap: 0; padding-inline: .45rem; }
  body.km-modern-sidebar.km-sidebar-collapsed .km-nav-link > i { width: 1.4rem; flex-basis: 1.4rem; font-size: 1.18rem; }
  body.km-modern-sidebar.km-sidebar-collapsed .km-sidebar-footer { padding-inline: .15rem; }
  body.km-modern-sidebar.km-sidebar-collapsed .km-sidebar-footer a { padding-inline: .4rem; }
  body.km-modern-sidebar.km-sidebar-collapsed .km-sidebar-toggle { position: static; flex-basis: 1.75rem; width: 1.75rem; height: 1.75rem; transform: none; }
  body.km-modern-sidebar.km-sidebar-collapsed .km-customer-unread-badge:not([hidden]) {
    position: absolute;
    inset-block-start: .18rem;
    inset-inline-end: .12rem;
    display: inline-grid !important;
    min-width: 1rem;
    height: 1rem;
    padding-inline: .18rem;
    place-items: center;
    font-size: .52rem;
  }
}

@media (max-width: 991.98px) {
  .km-modern-sidebar .app-sidebar { box-shadow: -12px 0 34px rgba(0,0,0,.24); }
}

/* Compact shared header */
body.km-modern-sidebar .app-header { height: 3.42rem !important; }
body.km-modern-sidebar .main-header-container .header-link {
  height: 2.85rem !important;
  margin-block: auto;
  padding: .75rem !important;
}
body.km-modern-sidebar .main-header-container .header-link-icon {
  width: 18px;
  height: 18px;
  font-size: .95rem;
}
body.km-modern-sidebar .header-profile-img {
  width: 1.8rem;
  height: 1.8rem;
}
body.km-modern-sidebar .header-icon-pulse {
  inset-block-start: .75rem;
  inset-inline-end: .7rem;
}
body.tickets-page.km-modern-sidebar .tk-table thead { inset-block-start: 3.42rem !important; }
.ticket-ai-page .ai-shell { height: calc(100vh - 3.85rem); }
@media (min-width: 992px) {
  body.km-modern-sidebar .main-content.app-content { margin-block-start: 3.42rem !important; padding-block-start: 0 !important; }
}
@media (max-width: 991.98px) {
  body.km-modern-sidebar .main-content.app-content { padding-block-start: 3.42rem !important; }
}

/* High-contrast typography */
html:not([data-theme-mode="dark"]) {
  --default-text-color: #080b12;
  --text-muted: #111827;
  --header-prime-color: #080b12;
}
html[data-theme-mode="dark"] {
  --default-text-color: #ffffff;
  --text-muted: #f8fafc;
  --header-prime-color: #ffffff;
}
html:not([data-theme-mode="dark"]) body.km-modern-sidebar :is(.text-muted, .text-secondary, .text-default) {
  color: #111827 !important;
  opacity: 1 !important;
}
html[data-theme-mode="dark"] body.km-modern-sidebar :is(.text-muted, .text-secondary, .text-default) {
  color: #f8fafc !important;
  opacity: 1 !important;
}
html:not([data-theme-mode="dark"]) body.km-modern-sidebar :is(
  .tk-title-row p, .tk-filters label > span, .tk-result-bar, .tk-list-heading > span,
  .tk-table, .tk-table td > small, .tk-customer small, .tk-thread-title small,
  .tk-message small, .kb-file-meta, .kb-list-meta, .ai-section-heading p,
  .ai-chat small, .ai-panel small
) { color: #111827 !important; }
html[data-theme-mode="dark"] body.km-modern-sidebar :is(
  .tk-title-row p, .tk-filters label > span, .tk-result-bar, .tk-list-heading > span,
  .tk-table, .tk-table td > small, .tk-customer small, .tk-thread-title small,
  .tk-message small, .kb-file-meta, .kb-list-meta, .ai-section-heading p,
  .ai-chat small, .ai-panel small
) { color: #f8fafc !important; }
body.km-modern-sidebar {
  font-size: .875rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.km-modern-sidebar :is(.fs-11, .fs-12) { font-size: .76rem !important; }
body.km-modern-sidebar .fs-13 { font-size: .84rem !important; }
body.km-modern-sidebar :is(input, select, textarea, button) { font-size: max(.72rem, 12px); }
body.km-modern-sidebar :is(.tk-table td > small, .tk-customer small, .tk-filters label > span, .tk-message small) {
  font-size: .6rem !important;
  line-height: 1.4 !important;
}
body.km-modern-sidebar .km-nav-link { font-size: .78rem; }
body.km-modern-sidebar .km-child-link { font-size: .73rem; }
body.km-modern-sidebar .main-header-container .header-search-bar { font-size: .78rem; }

/* Definitions navigation: clearer hierarchy and a calm active state */
.km-definitions-menu.open > .km-parent-link {
  border-color: rgba(76, 201, 240, .18);
  background: linear-gradient(90deg, rgba(76, 201, 240, .11), rgba(76, 201, 240, .025));
}

.km-definitions-menu .km-child-has-children {
  margin-block: .16rem;
}

.km-definitions-menu.open > .km-child-menu {
  max-height: 29rem;
  overflow: visible;
  padding-bottom: .55rem !important;
}

.km-definitions-menu .km-child-has-children.open > .km-grandchild-menu {
  max-height: 12.5rem;
}

.km-definitions-menu .km-child-section-icon {
  width: 1.2rem;
  flex: 0 0 1.2rem;
  margin-inline-end: .36rem;
  color: #73ddff;
  font-size: .86rem;
  text-align: center;
}

.km-definitions-menu .km-child-parent {
  border: 1px solid rgba(164, 188, 226, .1);
  background: rgba(13, 28, 49, .34);
  color: #e5efff !important;
}

.km-definitions-menu .km-grandchild-menu {
  margin: .18rem .58rem .3rem .12rem;
  padding-inline-start: .42rem;
  border-inline-start: 1px solid rgba(76, 201, 240, .18);
}

.km-definitions-menu .km-grandchild-menu a {
  position: relative;
  min-height: 2rem;
  border: 1px solid transparent;
  border-radius: .48rem;
  color: #c5d5ef !important;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.km-definitions-menu .km-grandchild-menu a:hover {
  border-color: rgba(76, 201, 240, .12);
  background: rgba(76, 201, 240, .07);
  color: #fff !important;
}

.km-definitions-menu .km-grandchild-menu a.active {
  border-color: rgba(76, 201, 240, .3);
  background: linear-gradient(90deg, rgba(76, 201, 240, .18), rgba(76, 201, 240, .065));
  color: #68dcff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .018);
  font-weight: 850;
}

.km-definitions-menu .km-grandchild-menu a.active::after {
  content: "";
  position: absolute;
  inset-inline-end: .42rem;
  width: .34rem;
  height: .34rem;
  border-radius: 50%;
  background: #55d8ff;
  box-shadow: 0 0 0 3px rgba(76, 201, 240, .12);
}

/* Settings children share the same clear hierarchy as definitions */
.km-settings-menu.open > .km-parent-link {
  border-color: rgba(76, 201, 240, .18);
  background: linear-gradient(90deg, rgba(76, 201, 240, .11), rgba(76, 201, 240, .025));
}

.km-settings-menu .km-child-menu {
  margin-top: .16rem;
  padding-inline-start: .42rem;
  border-inline-start: 1px solid rgba(76, 201, 240, .16);
}

.km-settings-menu .km-child-link {
  min-height: 2.08rem;
  border: 1px solid transparent;
  border-radius: .48rem;
  color: #c5d5ef !important;
}

.km-settings-menu .km-child-link:hover {
  border-color: rgba(76, 201, 240, .12);
  color: #fff !important;
  background: rgba(76, 201, 240, .07);
}

.km-settings-menu .km-child-link.active {
  border-color: rgba(76, 201, 240, .3);
  color: #68dcff !important;
  background: linear-gradient(90deg, rgba(76, 201, 240, .18), rgba(76, 201, 240, .065));
  font-weight: 850;
}

/* Keep the temporary conversion entry reachable when System expands near the viewport edge. */
.km-settings-menu.open > .km-child-menu { max-height: 18rem; }
.km-settings-menu .km-child-link { white-space: normal; line-height: 1.65; }

@media (max-width: 991.98px) {
  .km-modern-sidebar .app-sidebar { width: min(18rem, calc(100vw - 1rem)) !important; }
  html[data-toggled="close"] body.km-modern-sidebar .app-sidebar { transform: translateX(-100%) !important; }
  html[data-toggled="close"][dir="rtl"] body.km-modern-sidebar .app-sidebar { transform: translateX(100%) !important; }
  html[data-toggled="open"] body.km-modern-sidebar .app-sidebar { transform: translateX(0) !important; }
  .km-sidebar-nav > ul { scroll-padding-block: .5rem 11rem; }
  .km-settings-menu .km-child-item { padding-inline-start: 1.9rem; }
  .km-settings-menu .km-child-item::before { inset-inline-start: .8rem; }
}

/* Tablet off-canvas: reserve real space so forms reflow instead of hiding behind the menu. */
@media (min-width: 576px) and (max-width: 991.98px) {
  html[data-toggled="open"] body.km-modern-sidebar .main-content.app-content {
    margin-inline-start: min(18rem, calc(100vw - 1rem)) !important;
    width: calc(100% - min(18rem, calc(100vw - 1rem))) !important;
    transition: margin-inline-start 300ms ease !important;
  }
  html[data-toggled="close"] body.km-modern-sidebar .main-content.app-content {
    margin-inline-start: 0 !important;
    width: 100% !important;
    transition: margin-inline-start 300ms ease !important;
  }
}

html[data-theme-mode="dark"] body.km-modern-sidebar,
html[data-theme-mode="dark"] body.km-modern-sidebar .page,
html[data-theme-mode="dark"] body.km-modern-sidebar #app,
html[data-theme-mode="dark"] body.km-modern-sidebar .main-content.app-content,
html[data-theme-mode="dark"] body.km-modern-sidebar :is(.rs-page,.up-page,.cv-page) {
  background: #0b1220 !important;
  color: #f8fafc;
}

/* Dark surfaces for the locally-designed administration modules.
   Kept global because these pages are lazy-loaded and their component styles are scoped. */
html[data-theme-mode="dark"] body.km-modern-sidebar :is(.rs-hero,.up-hero,.cv-hero) {
  border-color: #29415f !important;
  background: linear-gradient(125deg, #13233a, #101827) !important;
  color: #f8fafc !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .24) !important;
}

html[data-theme-mode="dark"] body.km-modern-sidebar :is(.rs-connect,.rs-screen,.rs-sessions,.rs-chat,.rs-settings-grid > article,.rs-requirements,.up-hero > section,.up-upload,.up-progress,.up-history,.cv-env,.cv-stats article,.cv-panel,.cv-history,.cv-side > section,.cv-modal) {
  border-color: #26364b !important;
  background: #111c2d !important;
  color: #f8fafc !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2) !important;
}

html[data-theme-mode="dark"] body.km-modern-sidebar :is(.rs-hero h1,.up-hero h1,.cv-hero h1,.rs-connect h2,.rs-agent h2,.rs-requirements h2,.up-upload h2,.up-history h2,.cv-panel h2,.cv-history h2,.cv-env b,.cv-stats b,.cv-module-list strong,.cv-preserved b,.cv-modal h2) {
  color: #f8fafc !important;
}

html[data-theme-mode="dark"] body.km-modern-sidebar :is(.rs-hero p,.rs-connect header p,.rs-agent header p,.rs-requirements header p,.rs-sessions > p,.rs-sessions small,.rs-requirements p,.rs-form label span,.rs-policy ul,.up-hero p,.up-hero section small,.up-upload header p,.up-history header p,.up-drop small,.up-current small,.up-table th,.cv-hero p,.cv-env small,.cv-module-list p,.cv-panel header p,.cv-history header p,.cv-stats small,.cv-preserved > div,.cv-modal > p) {
  color: #cbd5e1 !important;
}

html[data-theme-mode="dark"] body.km-modern-sidebar :is(.rs-form input,.rs-chat input,.cv-modal input) {
  border-color: #3a4b63 !important;
  background: #0e1828 !important;
  color: #f8fafc !important;
}

html[data-theme-mode="dark"] body.km-modern-sidebar :is(.rs-flow,.up-current,.up-table th,.cv-history th) {
  background: #0d1726 !important;
  color: #cbd5e1 !important;
}

html[data-theme-mode="dark"] body.km-modern-sidebar :is(.rs-screen > header,.rs-sessions > div,.rs-agent dl > div,.up-history > header,.up-table th,.up-table td,.cv-panel > header,.cv-history > header,.cv-module-list article,.cv-history th,.cv-history td,.cv-preserved > div) {
  border-color: #26364b !important;
}

html[data-theme-mode="dark"] body.km-modern-sidebar .rs-screen > footer {
  background: #111c2d !important;
}

html[data-theme-mode="dark"] body.km-modern-sidebar :is(.rs-screen > footer button,.up-current > span,.up-history > header > button,.cv-refresh,.cv-modal .cancel) {
  border-color: #3a4b63 !important;
  background: #172438 !important;
  color: #e2e8f0 !important;
}

html[data-theme-mode="dark"] body.km-modern-sidebar .rs-requirements article {
  border-color: #2d3d53 !important;
  background: #142135 !important;
}

html[data-theme-mode="dark"] body.km-modern-sidebar .up-drop {
  border-color: #3b82b7 !important;
  background: #0d1c2e !important;
}

html[data-theme-mode="dark"] body.km-modern-sidebar .up-note {
  border-color: #7a5b24 !important;
  background: #2b2111 !important;
}

html[data-theme-mode="dark"] body.km-modern-sidebar .cv-warning {
  border-color: #235a82 !important;
  background: #0d2236 !important;
  color: #84caff !important;
}

html[data-theme-mode="dark"] body.km-modern-sidebar .cv-warning p {
  color: #b9dcf8 !important;
}

html[data-theme-mode="dark"] body.km-modern-sidebar .cv-module-list article > button {
  background: #17304d !important;
  color: #84caff !important;
}

html[data-theme-mode="dark"] body.km-modern-sidebar .cv-danger {
  border-color: #7a2924 !important;
  background: linear-gradient(160deg, #271617, #201315) !important;
}

html[data-theme-mode="dark"] body.km-modern-sidebar .cv-danger h2 { color: #fda29b !important; }
html[data-theme-mode="dark"] body.km-modern-sidebar :is(.cv-danger p,.cv-danger ul) { color: #fecaca !important; }
