.d-none {
  display: none !important;
}


.error_input {
  border: 1px solid red !important;
}

.table {
  display: flex;
  flex-direction: column;
  min-width: auto;
}

.row {
  display: flex;
}

.cell {
  border: 1px solid var(--night-1);
  ;
  padding: 8px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  min-width: 180px;
  width: 180px;

}

/*
.data_row .cell{
  display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}*/

.over-text {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header {
  position: sticky;
  top: -1px;
  color: var(--moon-4);
  z-index: 2;
}

.header .cell {
  background-color: var(--moon-1);
  user-select: none;
  font-weight: bold;

}

.header .cell:nth-child(1) {
  border-top-left-radius: 12px;
}

.header .cell:hover {
  color: var(--night-7);
}

.resizer {
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
}

.resizer:hover {
  background-color: #000;
}

.cell .dropdown__more-icon {
  margin-left: auto;
}
  

.table-header-buttons {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 10px;

}

.table-header-buttons button {
  background: #f7f7f7;
}


.table .cell.editing {
  background-color: #fffbe6;
  border: 1px solid #ffd700;
  cursor: text;
}

.table .cell {
  padding: 10px;
  text-align: center;
  /* border: 1px solid #ddd; */
  cursor: pointer;
}

.w-100 {
  width: 100%;
}


.scrim-1 {
  z-index: 6;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  display: flex;
  position: fixed;
  inset: 0%;
}

.scrim-1.scrim--toolbar-1 {
  flex: 1;
  position: static;
}

.chart_box .chart__container {
  position: relative;
  left: 150px;
}




.relative {
  position: relative;
}

.tbl_data_rows .loading__container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}


.m-auto {
  margin: auto !important;
}

.m-0 {
  margin: 0 !important;
}

.p-0 {
  padding: 0 !important;
}


.h-0 {
  height: 0 !important;
}

.top-loading {
  position: fixed;
  z-index: 999999;
  left: 50%;
  bottom: 4.5%;
  transform: translate(-50%, -50%);
}

.d-block {
  display: block !important;
}

.label_input_box .button__small {
  position: absolute;
  left: 0;
  top: 0;
}


#chart_lable_drop.w--open .dropdown__page-icon {
  transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(-180deg) skew(0deg, 0deg) !important;
}

.sticky {
  position: sticky;
}

.top-0 {
  top: 0px;
}


.bottom-0 {
  bottom: 0px;
}

.chart_table {
  border-collapse: separate;
}

.chart_table_avr td,
.chart_table_total td {
  color: var(--night-7);
  font-weight: 700;
}


.table__header--modified {
  background-color: var(--desert-1) !important;
}

.table__header--modified button {
  background-color: var(--desert-1) !important;
}

.cell.col-0 {
  height: 43px;
  width: 48px;
  min-width: 48px;
}

.cell.col-0 label {
  justify-content: center !important;
  align-items: center;
}

.cell.col-0 .checkbox__icon {
  margin: 0 !important;
}

.no_data_class {
  color: #969696;
  background-color: #F7F7F7;
  border-radius: 12px;
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  direction: rtl;
  padding: 10px 20px;
  margin: auto;
}


.query_reuslt_box .table__container .no_data_class {
  top: 50% !important;
}

.grid-stack-item-content .table__container--height100 {
  position: relative !important;
}

.data-process .chart__container--height100 {
  position: relative !important;
}

.data-process .no_data_class {
  top: 47% !important;
}


.a-btn {
  text-decoration: none;
}

.page_dropdown {
  position: relative;
}


.page_drop_content {
  background: none;
  width: 190px;
  right: -21px;
  top: 0;
  z-index: 11111111;
}

.page_dropdown:hover .page_drop_content {
  display: block;
}


.dashboard_dropdown {
  position: relative;
}


.dashboard_drop_content {
  background: none;
  width: 190px;
  right: -35px;
  top: 0;
  z-index: 11111111;
}

.dashboard_dropdown:hover .dashboard_drop_content {
  display: block;
}

.dropdown__page-toggle.w--open .dropdown__page-icon.w-embed {
  transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(-180deg) skew(0deg, 0deg) !important;
  transform-style: preserve-3d !important;
}

.dropdown__page.w--open .dropdown__page-icon.w-embed {
  transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(-180deg) skew(0deg, 0deg) !important;
  transform-style: preserve-3d !important;
}

.mt-20x {
  margin-top: 20px;
}

.mt-20px {
  margin-top: 20px;
}

.mt-24px {
  margin-top: 24px;
}


.grid-stack.gs-12.gs-id-0.grid-stack-animate {
  width: 100% !important;
}



.content__block-v.content__block-v--nav {
  z-index: 3;
}

.dashboard_content {
  z-index: 1;
}

/* required file for gridstack to work */

/* Optional styles for demos */
.btn-primary {
  color: #fff;
  background-color: #007bff;
}

.btn {
  display: inline-block;
  padding: .375rem .75rem;
  line-height: 1.5;
  border-radius: .25rem;
}

a {
  text-decoration: none;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: .5rem;
}

.sidebar {
  background: rgb(215, 243, 215);
  padding: 25px 0;
  height: 100px;
  text-align: center;
}

.sidebar>.grid-stack-item,
.sidebar-item {
  width: 100px;
  height: 50px;
  border: 2px dashed green;
  text-align: center;
  line-height: 35px;
  background: rgb(192, 231, 192);
  cursor: default;
  display: inline-block;
}

/* .grid-stack {
  background: #FAFAD2;
}

.grid-stack.grid-stack-static {
  background: #eee;
} */

.sidebar>.grid-stack-item,
.grid-stack-item-content {
  text-align: center;
  /* background-color: #18bc9c; */
}

/* .ui-draggable-disabled.ui-resizable-disabled>.grid-stack-item-content {
  background-color: #777;
} */

.grid-stack-item-removing {
  opacity: 0.5;
}

.trash {
  height: 100px;
  background: rgba(255, 0, 0, 0.1) center center url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjY0cHgiIGhlaWdodD0iNjRweCIgdmlld0JveD0iMCAwIDQzOC41MjkgNDM4LjUyOSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDM4LjUyOSA0MzguNTI5OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnPgoJPGc+CgkJPHBhdGggZD0iTTQxNy42ODksNzUuNjU0Yy0xLjcxMS0xLjcwOS0zLjkwMS0yLjU2OC02LjU2My0yLjU2OGgtODguMjI0TDMwMi45MTcsMjUuNDFjLTIuODU0LTcuMDQ0LTcuOTk0LTEzLjA0LTE1LjQxMy0xNy45ODkgICAgQzI4MC4wNzgsMi40NzMsMjcyLjU1NiwwLDI2NC45NDUsMGgtOTEuMzYzYy03LjYxMSwwLTE1LjEzMSwyLjQ3My0yMi41NTQsNy40MjFjLTcuNDI0LDQuOTQ5LTEyLjU2MywxMC45NDQtMTUuNDE5LDE3Ljk4OSAgICBsLTE5Ljk4NSw0Ny42NzZoLTg4LjIyYy0yLjY2NywwLTQuODUzLDAuODU5LTYuNTY3LDIuNTY4Yy0xLjcwOSwxLjcxMy0yLjU2OCwzLjkwMy0yLjU2OCw2LjU2N3YxOC4yNzQgICAgYzAsMi42NjQsMC44NTUsNC44NTQsMi41NjgsNi41NjRjMS43MTQsMS43MTIsMy45MDQsMi41NjgsNi41NjcsMi41NjhoMjcuNDA2djI3MS44YzAsMTUuODAzLDQuNDczLDI5LjI2NiwxMy40MTgsNDAuMzk4ICAgIGM4Ljk0NywxMS4xMzksMTkuNzAxLDE2LjcwMywzMi4yNjQsMTYuNzAzaDIzNy41NDJjMTIuNTY2LDAsMjMuMzE5LTUuNzU2LDMyLjI2NS0xNy4yNjhjOC45NDUtMTEuNTIsMTMuNDE1LTI1LjE3NCwxMy40MTUtNDAuOTcxICAgIFYxMDkuNjI3aDI3LjQxMWMyLjY2MiwwLDQuODUzLTAuODU2LDYuNTYzLTIuNTY4YzEuNzA4LTEuNzA5LDIuNTctMy45LDIuNTctNi41NjRWODIuMjIxICAgIEM0MjAuMjYsNzkuNTU3LDQxOS4zOTcsNzcuMzY3LDQxNy42ODksNzUuNjU0eiBNMTY5LjMwMSwzOS42NzhjMS4zMzEtMS43MTIsMi45NS0yLjc2Miw0Ljg1My0zLjE0aDkwLjUwNCAgICBjMS45MDMsMC4zODEsMy41MjUsMS40Myw0Ljg1NCwzLjE0bDEzLjcwOSwzMy40MDRIMTU1LjMxMUwxNjkuMzAxLDM5LjY3OHogTTM0Ny4xNzMsMzgwLjI5MWMwLDQuMTg2LTAuNjY0LDguMDQyLTEuOTk5LDExLjU2MSAgICBjLTEuMzM0LDMuNTE4LTIuNzE3LDYuMDg4LTQuMTQxLDcuNzA2Yy0xLjQzMSwxLjYyMi0yLjQyMywyLjQyNy0yLjk5OCwyLjQyN0gxMDAuNDkzYy0wLjU3MSwwLTEuNTY1LTAuODA1LTIuOTk2LTIuNDI3ICAgIGMtMS40MjktMS42MTgtMi44MS00LjE4OC00LjE0My03LjcwNmMtMS4zMzEtMy41MTktMS45OTctNy4zNzktMS45OTctMTEuNTYxVjEwOS42MjdoMjU1LjgxNVYzODAuMjkxeiIgZmlsbD0iI2ZmOWNhZSIvPgoJCTxwYXRoIGQ9Ik0xMzcuMDQsMzQ3LjE3MmgxOC4yNzFjMi42NjcsMCw0Ljg1OC0wLjg1NSw2LjU2Ny0yLjU2N2MxLjcwOS0xLjcxOCwyLjU2OC0zLjkwMSwyLjU2OC02LjU3VjE3My41ODEgICAgYzAtMi42NjMtMC44NTktNC44NTMtMi41NjgtNi41NjdjLTEuNzE0LTEuNzA5LTMuODk5LTIuNTY1LTYuNTY3LTIuNTY1SDEzNy4wNGMtMi42NjcsMC00Ljg1NCwwLjg1NS02LjU2NywyLjU2NSAgICBjLTEuNzExLDEuNzE0LTIuNTY4LDMuOTA0LTIuNTY4LDYuNTY3djE2NC40NTRjMCwyLjY2OSwwLjg1NCw0Ljg1MywyLjU2OCw2LjU3QzEzMi4xODYsMzQ2LjMxNiwxMzQuMzczLDM0Ny4xNzIsMTM3LjA0LDM0Ny4xNzJ6IiBmaWxsPSIjZmY5Y2FlIi8+CgkJPHBhdGggZD0iTTIxMC4xMjksMzQ3LjE3MmgxOC4yNzFjMi42NjYsMCw0Ljg1Ni0wLjg1NSw2LjU2NC0yLjU2N2MxLjcxOC0xLjcxOCwyLjU2OS0zLjkwMSwyLjU2OS02LjU3VjE3My41ODEgICAgYzAtMi42NjMtMC44NTItNC44NTMtMi41NjktNi41NjdjLTEuNzA4LTEuNzA5LTMuODk4LTIuNTY1LTYuNTY0LTIuNTY1aC0xOC4yNzFjLTIuNjY0LDAtNC44NTQsMC44NTUtNi41NjcsMi41NjUgICAgYy0xLjcxNCwxLjcxNC0yLjU2OCwzLjkwNC0yLjU2OCw2LjU2N3YxNjQuNDU0YzAsMi42NjksMC44NTQsNC44NTMsMi41NjgsNi41N0MyMDUuMjc0LDM0Ni4zMTYsMjA3LjQ2NSwzNDcuMTcyLDIxMC4xMjksMzQ3LjE3MnogICAgIiBmaWxsPSIjZmY5Y2FlIi8+CgkJPHBhdGggZD0iTTI4My4yMiwzNDcuMTcyaDE4LjI2OGMyLjY2OSwwLDQuODU5LTAuODU1LDYuNTctMi41NjdjMS43MTEtMS43MTgsMi41NjItMy45MDEsMi41NjItNi41N1YxNzMuNTgxICAgIGMwLTIuNjYzLTAuODUyLTQuODUzLTIuNTYyLTYuNTY3Yy0xLjcxMS0xLjcwOS0zLjkwMS0yLjU2NS02LjU3LTIuNTY1SDI4My4yMmMtMi42NywwLTQuODUzLDAuODU1LTYuNTcxLDIuNTY1ICAgIGMtMS43MTEsMS43MTQtMi41NjYsMy45MDQtMi41NjYsNi41Njd2MTY0LjQ1NGMwLDIuNjY5LDAuODU1LDQuODUzLDIuNTY2LDYuNTdDMjc4LjM2NywzNDYuMzE2LDI4MC41NSwzNDcuMTcyLDI4My4yMiwzNDcuMTcyeiIgZmlsbD0iI2ZmOWNhZSIvPgoJPC9nPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+Cjwvc3ZnPgo=) no-repeat;
}

/* make nested grid have slightly darker bg take almost all space (need some to tell them apart) so items inside can have similar to external size+margin */
.grid-stack>.grid-stack-item.grid-stack-sub-grid>.grid-stack-item-content {
  background: rgba(0, 0, 0, 0.1);
  inset: 0 2px;
}

.grid-stack.grid-stack-nested {
  background: none;
  inset: 0;
}


.grid-stack-item-removing {
  opacity: 0.8;
  filter: blur(5px);
}

.sidepanel-item {
  background-color: #18bc9c;
  text-align: center;
  padding: 5px;
  margin-bottom: 15px;
}

#trash {
  background-color: rgba(255, 0, 0, 0.4);
}

ion-icon {
  font-size: 300%;
}


.mr-auto {
  margin-right: auto;
}


.mr-10px {
  margin-right: 10px;
}

.select__list-container1 {
  display: none;
  width: 96%;
  margin: auto;
  margin-top: 16px;
}

.select__list-container1.w--open {
  display: block;
}


.mt-20px {
  margin-top: 20px !important;
}


.mt-16px {
  margin-top: 16px !important;
}

.absolute {
  position: absolute;
}

#chart_bar_labels {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ticket__item-message {
  width: 420px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.max-z-index {
  z-index: 99999;
}

#dashboard_permission,
#page_permission {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gap-0 {
  gap: 0 !important;
}

.gap-24 {
  gap: 24px !important;
}

.p-0 {
  padding: 0 !important;
}

.table_components {
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  border: 1px solid var(--moon-2);
  background-color: var(--snow);
  border-radius: 24px;
  flex-flow: column;
  flex: 0 auto;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px;
  display: flex;
  min-height: 550px;
  height: auto !important;
}

.table_components .chart__container {
  border: inherit !important;
  padding: 0 !important;
}

.mb-24 {
  margin-bottom: 24px !important;
}

.mb-16 {
  margin-bottom: 16px !important;
}

.mb-12 {
  margin-bottom: 12px !important;
}

.mb-10 {
  margin-bottom: 10px !important;
}

.grid-stack-item-content .chart__head {
  text-align: right;
  margin: 8px 0px;
}

.grid-stack-item-content .chart__controls-container {
  display: block !important;
  margin-left: 15px;
  z-index: 3;
}

.dashboard_container .dropdown__more.w-dropdown:hover .w-dropdown-list {
  display: block;
}

.dashboard_container .w-dropdown-list {
  left: 88px;
  top: 10px;
  background: none;
}

.query_drop {
  background: none !important;
  position: absolute;
  z-index: 9999;
  top: 15px;
}

.query_drop .dropdown__list-container {
  width: 50%;
}

.query_dropdown__more-toggle {
  position: absolute;
  left: 0;
}

.query_dropdown__more-toggle:hover .query_drop {
  display: block !important;
}

.query_list_active {
  font-weight: bold;
  color: var(--night-7);
}

.ace_layer.ace_print-margin-layer {
  display: none !important;
}

.query_page_limit_box {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 15px;
}

.query_page_limit_box label {
  width: 140px;
  min-width: max-content;
}

.menu {
  z-index: 5;
}

.nav {
  z-index: 6;
}

/* ===== Hoosh Mart chrome: header + right nav ===== */
:root {
  --hm-bg: #f5f6f8;
  --hm-surface: #ffffff;
  --hm-border: #eef0f3;
  --hm-text: #1f2937;
  --hm-muted: #6b7280;
  --hm-active-bg: #e8f1ff;
  --hm-active: #2563eb;
  --hm-nav-width: 280px;
  --hm-header-height: 72px;
}

.layout:not(.layout--auth):not(.layout--alert) {
  background: var(--hm-bg) !important;
  background-image: none !important;
}

.page {
  padding-left: 24px;
  padding-right: calc(var(--hm-nav-width) + 24px);
  padding-top: var(--hm-header-height);
  box-sizing: border-box;
}

.menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 20;
}

.menu__container {
  height: var(--hm-header-height);
  background: var(--hm-surface);
  border-bottom: 1px solid var(--hm-border);
  padding: 0 24px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.menu__logo {
  width: auto;
  height: 40px;
  max-width: 160px;
  object-fit: contain;
}

.menu__item-container {
  gap: 8px;
}

.menu__dropdown-toggle {
  border: none !important;
  border-radius: 12px;
  height: auto;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--hm-text);
  transition: background-color 0.15s ease;
}

.menu__dropdown-toggle:hover,
.menu__dropdown-toggle.w--open {
  background-color: #f3f4f6 !important;
  border: none !important;
  color: var(--hm-text);
}

.menu__user {
  display: flex;
  align-items: center;
  gap: 10px;
  direction: rtl;
}

.menu__user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c5cff 0%, #5b8def 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex: none;
  position: relative;
}

.menu__user-avatar::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
}

.menu__user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.2;
}

.menu__user-phone {
  font-size: 14px;
  font-weight: 600;
  color: var(--hm-text);
}

.menu__user-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--hm-muted);
  font-weight: 500;
}

.menu__user-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

.menu__dropdown-list.w--open {
  border-radius: 12px;
  border: 1px solid var(--hm-border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  margin-top: 4px;
  overflow: hidden;
}

.nav {
  top: var(--hm-header-height);
  height: calc(100% - var(--hm-header-height));
  padding: 16px 16px 16px 8px;
  z-index: 15;
}

.nav__main-container {
  width: var(--hm-nav-width) !important;
  background: var(--hm-surface) !important;
  filter: none !important;
  border-radius: 16px;
  border: 1px solid var(--hm-border);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  padding: 16px 10px;
  overflow-y: auto;
  justify-content: flex-start !important;
}

.nav__item-list {
  grid-column-gap: 4px;
  grid-row-gap: 4px;
  align-items: stretch;
}

.nav__item {
  color: #5b6472 !important;
  border-radius: 12px;
  padding: 11px 12px;
  gap: 10px !important;
  transition: background-color 0.15s ease, color 0.15s ease;
  position: relative;
}

.nav__item:hover {
  color: var(--hm-text) !important;
  background-color: #f3f4f6;
}

.nav__item.nav__item--active,
.nav__dropdown-toggle.nav__dropdown-toggle--active > .nav__item {
  color: var(--hm-active) !important;
  background-color: var(--hm-active-bg);
  font-weight: 600;
}

.nav__item.nav__item--disabled {
  cursor: default;
  opacity: 0.9;
}

.nav__item.nav__item--disabled:hover {
  background-color: transparent;
  color: #5b6472 !important;
}

.nav__icon-container {
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: transparent !important;
  flex: none;
}

.nav__icon-container.nav__icon-container--active {
  background: transparent !important;
}

.nav__icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__icon svg {
  width: 100%;
  height: 100%;
}

.nav__item-text {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  text-align: right;
}

.nav__badge {
  margin-right: auto;
  margin-left: 0;
  background: #eef0f3;
  color: #8b93a1;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.nav__dropdown {
  width: 100%;
}

.nav__dropdown-toggle {
  color: inherit;
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.nav__dropdown-toggle:hover {
  color: var(--hm-text);
}

.nav__dropdown-toggle .nav__item {
  flex: 1;
  width: auto;
  min-width: 0;
}

.nav__dropdown-toggle:hover .nav__item {
  background-color: #f3f4f6;
  color: var(--hm-text) !important;
}

.nav__chevron {
  width: 16px;
  height: 16px;
  color: #9aa3af;
  flex: none;
  margin-left: 4px;
  transition: transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__chevron svg {
  width: 100%;
  height: 100%;
}

.nav__dropdown-toggle.w--open .nav__chevron,
.nav__dropdown.w--open > .nav__dropdown-toggle .nav__chevron {
  transform: rotate(180deg);
}

.nav__dropdown-list {
  position: relative !important;
  background: transparent !important;
}

.nav__dropdown-list.w--open {
  padding: 4px 0 6px;
  padding-right: 0;
  gap: 2px !important;
  display: flex;
  flex-direction: column;
  position: relative;
}

.nav__dropdown-list.w--open::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 8px;
  right: 23px;
  width: 1px;
  background: #e5e7eb;
}

.nav__dropdown-item {
  color: #6b7280 !important;
  border-radius: 10px;
  padding: 9px 12px 9px 10px !important;
  padding-right: 48px !important;
  font-size: 13.5px;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-decoration: none;
}

.nav__dropdown-item.nav__dropdown-item--icon {
  padding-right: 48px !important;
}

.nav__sub-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: inherit;
}

.nav__sub-icon svg {
  width: 100%;
  height: 100%;
}

.nav__dropdown-item:hover,
.nav__dropdown-item.nav__dropdown-item--active {
  color: var(--hm-active) !important;
  background-color: var(--hm-active-bg);
}

@media screen and (max-width: 991px) {
  :root {
    --hm-nav-width: 220px;
  }

  .page {
    padding-right: calc(var(--hm-nav-width) + 16px);
    padding-left: 16px;
  }
}

@media screen and (max-width: 767px) {
  .nav {
    display: none;
  }

  .page {
    padding-right: 16px;
    padding-left: 16px;
  }
}

.chart__container,
.banner__container,
.content__block-container {
  
 
   
}

.content__full-container {
  gap: 20px;
}

.menu__brand {
  display: flex;
  align-items: center;
}


.progress-container {
  position: relative;
  width: 48px;
  height: 48px;
}

.progress-svg {
  transform: rotate(-90deg);
  width: 48px;
  height: 48px;
}

.progress-circle {
  fill: none;
  stroke: #F7F7F7;
  stroke-width: 20;
}

.progress-bar {
  fill: none;
  stroke: #84D3FA;
  stroke-width: 20;
  stroke-linecap: round;
  stroke-dasharray: 440;

}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  line-height: 0px;
  font-weight: bold;
  color: #969696;
}

.error-top-icon path {
  stroke: #FC9272;
}

.h-70vh {
  height: 70vh;
}

.query__container {
  height: 100%;
}

.w-450px {
  width: 450px !important;
  ;
}

.chart_page_table .data_row div {
  min-width: 150px;
}

.chart_page_table .header .cell {
  min-width: 150px;
}

.chart__bottom {
  position: relative;
}

.fixed-chart-average {
  position: absolute;
  left: 0;
  display: flex;
  bottom: 50px;
  align-items: center;
  height: 42px;
  background-color: #f7f7f7;
}

.fixed-chart-total {
  position: absolute;
  left: 0;
  display: flex;
  bottom: 89px;
  align-items: center;
  height: 42px;
  background-color: #f7f7f7;

}

.fixed-chart-average div,
.fixed-chart-total div {
  width: 150px;
  border: 1px solid #e8edf9;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;

}

.d-none-fixed {
  display: none !important;
}

.dashboard_container {
  background-color: unset !important;
  border: none !important;
}

.grid-stack-item-content {
  background-color: #fff;
  margin: 10px;
  border: 1px solid var(--moon-2);
  padding: 16px;
  border-radius: 24px;
}

.hr-class {
  width: 100%;
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #D9D9D9;

  padding: 0;
}

.z-11 {
  z-index: 99999999;
}



.class_disable div {
  background-color: #F7F7F7 !important;
  border: 2px solid #D9D9D9 !important;
}


.class_disable {
  color: #313768 !important;
}

.class_disable:hover>div,
.class_disable:hover>input,
.class_disable:hover>span,
.class_disable:hover {
  cursor: unset !important;
}

.selected_disable div {
  background-color: #CFECFF !important;
  border: none !important;

}

.selected_disable {
  color: #969696 !important;
}


.selected_disable:hover>div,
.selected_disable:hover>input,
.selected_disable:hover>span,
.selected_disable:hover {
  cursor: unset !important;
}

.active_dashboard_link {
  color: var(--night-7)
}

.tbl_data_rows .cell.col-0 {
  height: 32px !important;
}

.tbl_data_rows .cell {
  padding: 5px 10px !important;
}

.table .cell {
  font-size: 12px !important;
}


.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.g-5 {
  gap: 15px;
}

.ml-auto {
  margin-left: auto;
}


.query_page_notificaton li {
  line-height: 20px;
  font-size: 14px;
}

.query_error_box {
  display: flex;
  align-items: center;
  background-color: #FEE5D9;
  padding: 8px 12px;
  border-radius: 12px;
  text-align: left;
  direction: ltr;
  gap: 8px;
  width: 100%;
}

#query_error_text {
  width: 100%;
}

.query_error_box button {
  flex: 1;
}

.dropdown__list_nav {
  display: none;
  position: absolute;
  left: -60px;
  width: 215px;
  z-index: 1;
  top: 33px;
}


.table__actions:hover .dropdown__list_nav {
  display: block;
}


.dropdown_list_item {
  display: none;
  position: absolute;
  left: 9px;
  width: auto;
  z-index: 1;
  top: 44px;
}


.btn_dropdown:hover .dropdown_list_item {
  display: block;
}

.min-w-200px {
  min-width: 200px;
}

.col-0 {
  position: sticky;
  z-index: 1;
  background: #fff;
  left: 0;
}

.handle-card-header {
  position: absolute;
  left: 50%;
  z-index: 11;
  top: 25px;
  -webkit-transform: translateX(-50%);
}

.handle-card-header:hover {
  cursor: pointer;
}

.grid-stack-item-content .chart__container.chart__container--height100 {
  border: 0;
  padding: 0;
}



.data-process .table_components {
  border: 0 !important;
  padding: 0 !important;
}

.grid-stack-item-content .chart__controls-container {
  margin-left: 0 !important;
}

.query_reuslt_box .table_components {
  border: 0 !important;
  padding: 0 !important;
}

.query_reuslt_box .chart__controls-container {
  margin-left: 0 !important;
}

.bage {
  color: var(--night-7);
  border-radius: 12px;
  text-align: center;
  padding: 4px 12px;
  font-weight: 500;
  font-size: 12px;
  line-height: 20px;

}


.bage.dedesert-1 {
  background-color: var(--desert-1);

}



.bage.moon-1 {
  background-color: var(--moon-1);

}

.data-analysis-table {
  height: 100vh !important;
}

.data-analysis-table .page__container {
  height: 100% !important;
}

.data-analysis-table .table_components {
  height: 100% !important;
}

.data-analysis-table .table_components .content__block {
  height: 100% !important;
}

.data-analysis-table .content__block-container.content__block-container--height100 {
  height: 100% !important;
}

.data-analysis-table .table_components .chart__container--height100 {
  height: 100% !important;
}

.row.data_row {
  min-height: 31.6px;
}

.chart__container_box .table__component.chart_table {
  width: 100%;
}

.chart__container_box .table__component.chart_table .table__row {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.chart__container_box .table__component.chart_table .table__cell {
  width: 100%;
}

.color--sky-5 {
  color: var(--sky-5);
}

.color-000{
  color: #000;
}

.tabs__toolbar-tab-container {
  overflow: scroll !important;
}

.dir-ltr {
  direction: ltr !important;
}


.query-page .chart__container--height100 {
  position: relative !important;
}

.h-auto {
  height: auto !important;
}

.xaxis_extract_box,
.xaxis_calendar_type_box,
.xaxis_key_path_box {
  margin-top: 11px;

}

.modal_subscriptions_name {
  color: #969696;
  font-size: 14px;
}

.modal_subscriptions_desc {
  color: #2C3761;
  font-size: 14px;
}

.d-grid {
  display: grid;
}

.gap-8 {
  gap: 8px;
}

.data-process #chart_box1 {
  padding: 0 !important;
  border: 0 !important;
  margin: 0 !important;
  min-height: 400px;
}

/* .chart__container.chart__container--column-table {
  height: auto;
} */
/* 
.block__container.block__container--funnel-settings {
  gap: 24px;
  padding-bottom: 24px;
  padding-top: 24px;
  padding-right: 16px;
  padding-left: 16px;
} */

.dropdown__page div.w-dropdown-toggle:hover a {
  color: var(--night-7);
}


.grid-stack-item[gs-type="big_number"] .grid-stack-item-content {
  display: grid;
}

.ace_scrollbar {
  z-index: 2 !important;
}

.minmax-18px {
  max-width: 18px !important;
  min-width: 18px !important;
}


.py-4 {
  padding-bottom: 1rem;
  padding-top: 1rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}


.layout.layout--auth {
  background-image: linear-gradient(to bottom right,
      #eff6ff 0%,
      #eef2ff 50%,
      #faf5ff 100%);
}

.auth__container {
  height: auto;
  margin-left: auto;
  margin-right: auto;
  margin-top: -10%;
}

.auth__container {
  background-color: unset;
}

.auth__logo {
  width: 180px;
  margin: auto;
}

.form__auth.w-form {
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px #00000040;

}

.hoosh-btn-primary {
  background: linear-gradient(90deg, rgba(118, 229, 179, 0.97) 0%, rgb(172, 232, 218) 100%);
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition-duration: .15s;
  transition-property: all;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  text-decoration: none;
}
.popup__actions-container .hoosh-btn-primary {
  width: 100%;
}

.hoosh-input {
  transition-duration: .15s;
  transition-property: all;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background-color: #fff;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  width: 100%;
}

.hoosh-input::placeholder {
  color: #bfbfbf;
  font-size: 14px!important;
}

.auth-otp {
  display: flex;
  direction: ltr;
  justify-content: space-between;
  align-self: stretch;
  gap: 8px;
  width: 100%;
}

.form__auth .form__item-container--max-none {
  align-self: stretch;
}

.auth-otp__digit {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  height: 52px;
  padding: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  caret-color: currentColor;
}

.auth-otp__digit:focus {
  outline: none;
  border-color: #76e5b3;
  box-shadow: 0 0 0 3px rgba(118, 229, 179, 0.28);
}


#back_to_mobile_btn{
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: start;
  transition-duration: .15s;
  transition-property: all;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
}

.hoosh-message-error{
  width: 100%;
  background-color: #ffe3e3;
  padding: 15px 20px;
  border: 1px solid #ffd2d2;
  border-radius: 12px;
}

.menu__dropdown-toggle{
 height: 68px!important;
}


.justify-content-space{
  justify-content: space-between;
}
.font-weight-bold{
  font-weight: 900!important;
}

.layout:not(.layout--auth):not(.layout--alert) {
  background: #efefef !important;
  background-image: none !important;
}

/* ===== Dashboard page ===== */
.page--dashboard .content {
  justify-content: flex-start;
  align-items: stretch;
}

.page--dashboard .content__full-container,
.dash {
  width: 97%;
  max-width: none;
  align-items: stretch;
  padding: 8px 8px 32px;
  gap: 20px !important;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  margin-right: auto;
  margin-left: auto;
  margin-top: 20px;
}

.dash__head,
.dash__stats,
.dash__modules,
.dash__trends,
.dash__lists,
.dash__section-title {
  width: 100%;
}

.dash__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dash__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
}

.dash__subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  color: #8b93a1;
  font-weight: 500;
}

.dash__refresh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e8eaee;
  border-radius: 12px;
  padding: 10px 14px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dash__refresh:hover {
  background: #f8fafc;
  color: #1f2937;
}

.dash__refresh-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
}

.dash__refresh-icon svg {
  width: 100%;
  height: 100%;
}

.dash__stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.dash__stat-card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.dash__stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.dash__stat-icon svg {
  width: 22px;
  height: 22px;
}

.dash__stat-icon--blue {
  background: #e8f1ff;
  color: #3b82f6;
}

.dash__stat-icon--green {
  background: #e7f8ef;
  color: #10b981;
}

.dash__stat-icon--purple {
  background: #f1e9ff;
  color: #8b5cf6;
}

.dash__stat-icon--amber {
  background: #fff4df;
  color: #f59e0b;
}

.dash__stat-icon--cyan {
  background: #e6f8fb;
  color: #0891b2;
}

.dash__stat-icon--violet {
  background: #f3e8ff;
  color: #7c3aed;
}

.dash__stat-icon--rose {
  background: #ffe8ee;
  color: #e11d48;
}

.dash__stat-label {
  font-size: 13px;
  color: #8b93a1;
  font-weight: 500;
}

.dash__stat-value {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
}

.dash__modules,
.dash__trends {
  display: grid;
  gap: 14px;
}

.dash__modules {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.dash__audience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  width: 100%;
}

.dash__trends {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.dash__lists {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 4px;
}

.dash__list-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash__list-card .sm__report-body {
  flex: 1;
  min-height: 0;
}

.dash__card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
}

.dash__card--trend {
  min-height: 280px;
}

.dash__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dash__card-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash__card-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.dash__card-icon svg {
  width: 18px;
  height: 18px;
}

.dash__card-icon--purple,
.dash__card-icon--violet {
  background: #f1e9ff;
  color: #8b5cf6;
}

.dash__card-icon--green {
  background: #e7f8ef;
  color: #10b981;
}

.dash__card-icon--blue {
  background: #e8f1ff;
  color: #3b82f6;
}

.dash__card-icon--orange {
  background: #fff1e8;
  color: #f97316;
}

.dash__card-icon--amber {
  background: #fff4df;
  color: #d97706;
}

.dash__card-icon--rose {
  background: #ffe8ee;
  color: #e11d48;
}

.dash__card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
}

.dash__status {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
}

.dash__status--off {
  background: #f3f4f6;
  color: #9ca3af;
}

.dash__status--on {
  background: #ecfdf5;
  color: #059669;
}

.dash__status--pending {
  background: #fffbeb;
  color: #d97706;
}

.dash__status--down {
  background: #fef2f2;
  color: #dc2626;
}

.dash__period-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dash__period {
  background: #f8fafc;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}

.dash__period-label {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 6px;
}

.dash__period-value {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

.dash__metric-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash__metric-list--spaced {
  gap: 14px;
  margin-top: 4px;
}

.dash__metric {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash__metric-label {
  flex: 1;
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.dash__metric-value {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
}

.dash__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.dash__dot--green { background: #22c55e; }
.dash__dot--orange { background: #f97316; }
.dash__dot--blue { background: #3b82f6; }
.dash__dot--cyan { background: #06b6d4; }
.dash__dot--amber { background: #f59e0b; }
.dash__dot--purple { background: #8b5cf6; }

.dash__cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.dash__cta--purple {
  background: #f3eaff;
  color: #7c3aed;
}

.dash__cta--purple:hover {
  background: #ebe0ff;
}

.dash__cta--violet {
  background: #f3eaff;
  color: #7c3aed;
}
.dash__cta--violet:hover { background: #ebe0ff; }

.dash__cta--green {
  background: #e7f8ef;
  color: #047857;
}
.dash__cta--green:hover { background: #d6f3e4; }

.dash__cta--blue {
  background: #e8f1ff;
  color: #1d4ed8;
}
.dash__cta--blue:hover { background: #dbe7ff; }

.dash__cta--amber {
  background: #fff4df;
  color: #b45309;
}
.dash__cta--amber:hover { background: #ffe9c2; }

.dash__cta--rose {
  background: #ffe8ee;
  color: #be123c;
}
.dash__cta--rose:hover { background: #ffd6e0; }

.dash__warn {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 8px 10px;
}

.dash__health {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash__health-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #eef0f3;
}

.dash__health-name {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.dash__cta svg {
  width: 16px;
  height: 16px;
}

.dash__section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-top: 4px;
}

.dash__select {
  background: #f8fafc;
  border: 1px solid #e8eaee;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  white-space: nowrap;
}

.dash__trend-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dash__trend-stats--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dash__trend-stat {
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid transparent;
  min-width: 0;
}

.dash__trend-stat--blue {
  background: #eff6ff;
  border-color: #dbeafe;
}
.dash__trend-stat--blue .dash__trend-label { color: #3b82f6; }
.dash__trend-stat--blue .dash__trend-value { color: #1d4ed8; }

.dash__trend-stat--violet {
  background: #f5f3ff;
  border-color: #ede9fe;
}
.dash__trend-stat--violet .dash__trend-label { color: #8b5cf6; }
.dash__trend-stat--violet .dash__trend-value { color: #6d28d9; }

.dash__trend-stat--amber {
  background: #fffbeb;
  border-color: #fde68a;
}
.dash__trend-stat--amber .dash__trend-label { color: #d97706; }
.dash__trend-stat--amber .dash__trend-value { color: #b45309; }

.dash__trend-stat--green {
  background: #ecfdf5;
  border-color: #d1fae5;
}
.dash__trend-stat--green .dash__trend-label { color: #10b981; }
.dash__trend-stat--green .dash__trend-value { color: #047857; }

.dash__trend-stat--teal {
  background: #f0fdfa;
  border-color: #ccfbf1;
}
.dash__trend-stat--teal .dash__trend-label { color: #14b8a6; }
.dash__trend-stat--teal .dash__trend-value { color: #0f766e; }

.dash__trend-label {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 6px;
  font-weight: 600;
}

.dash__trend-value {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
}

.dash__card--search-trend {
  min-height: 360px;
}

.dash__card.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.dash__chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 4px 0 8px;
}

.dash__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.dash__legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: none;
}

.dash__multi-chart {
  width: 100%;
  min-height: 240px;
  flex: 1;
}

.dash__multi-chart-svg {
  overflow: visible;
}

.dash__card--search-trend .sm__report-range-wrap {
  align-items: flex-end;
}

.dash__card--search-trend .sm__report-custom {
  margin-top: 6px;
}

.dash__empty {
  flex: 1;
  min-height: 120px;
  border: 1px dashed #e5e7eb;
  border-radius: 14px;
  background: #fafbfc;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
}

.dash__empty--sm {
  min-height: 72px;
}

.dash__chip {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 4px 10px;
}

.dash__people,
.dash__rank {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash__rank--muted {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
}

.dash__person {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #eef0f3;
  text-decoration: none;
  color: inherit;
}

.dash__person:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.dash__person-name {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash__person-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.dash__rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #eef0f3;
}

.dash__rank-label {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash__rank-count {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

.dash__query-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 120px;
}

.dash__query-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #eef0f3;
}

.dash__query-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash__query-count {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 2px 8px;
}

.dash__footer-link {
  margin-top: auto;
  text-align: center;
  color: #7c3aed;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding-top: 4px;
}

.dash__footer-link:hover {
  text-decoration: underline;
}

@media screen and (max-width: 1200px) {
  .dash__stats {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .dash__modules {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media screen and (max-width: 900px) {
  .dash__trends {
    grid-template-columns: 1fr;
  }

  .dash__lists {
    grid-template-columns: 1fr;
  }

  .dash__head {
    flex-direction: column;
  }
}

@media screen and (max-width: 600px) {
  .dash__stats {
    grid-template-columns: 1fr;
  }

  .dash__trend-stats--3 {
    grid-template-columns: 1fr;
  }

  .dash__card--search-trend .dash__card-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}
/* ===== DB / Knowledge bases page ===== */
.page--db .content {
  justify-content: flex-start;
  align-items: stretch;
}

.page--db .content__full-container,
.db {
  width: 97%;
  max-width: none;
  align-items: stretch;
  padding: 8px 8px 32px;
  gap: 20px !important;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  margin-right: auto;
  margin-left: auto;
  margin-top: 20px;
}

.db__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.db__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
}

.db__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.db__filter-select {
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%239ca3af' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat left 12px center;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 11px 14px 11px 34px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  font-family: inherit;
  min-width: 140px;
  cursor: pointer;
}

.db__btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.db__btn-primary:hover {
  background: #1d4ed8;
}

.db__btn-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
}

.db__btn-icon svg {
  width: 100%;
  height: 100%;
}

.db__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.db__card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.db__card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.db__card-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.db__card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f3f4f6;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.db__card-icon svg {
  width: 22px;
  height: 22px;
}

.db__card-name {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}

.db__card-desc {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 500;
}

.db__badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.db__badge {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.db__badge--ready {
  background: #e7f8ef;
  color: #059669;
}

.db__badge--queued {
  background: #eff6ff;
  color: #2563eb;
}

.db__badge--indexing {
  background: #fff7ed;
  color: #ea580c;
}

.db__badge--failed {
  background: #fef2f2;
  color: #dc2626;
}

.db__badge--type {
  background: #f1e9ff;
  color: #7c3aed;
}

.db__card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px solid #f3f4f6;
}

.db__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

.db__meta-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  color: #9ca3af;
}

.db__meta-icon svg {
  width: 100%;
  height: 100%;
}

.db__empty {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px dashed #e5e7eb;
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 500;
}

.db-modal {
  max-width: 480px;
  width: calc(100% - 32px);
}

.db-modal__fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.db-modal__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.db-modal__label {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.db-modal__input,
.db-modal__textarea,
select.db-modal__input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #1f2937;
  background: #fff;
  box-sizing: border-box;
}

select.db-modal__input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%239ca3af' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  padding-left: 34px;
}

.db-modal__textarea {
  resize: vertical;
  min-height: 110px;
}

.db-modal__input:focus,
.db-modal__textarea:focus,
select.db-modal__input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

@media screen and (max-width: 700px) {
  .db__head {
    flex-direction: column;
    align-items: stretch;
  }

  .db__actions {
    width: 100%;
    justify-content: stretch;
  }

  .db__filter-select,
  .db__btn-primary {
    flex: 1;
    justify-content: center;
  }
}

.scrim{
  z-index: 999999;
}

.space__perm-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

#modal_edit_permission.scrim {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#modal_edit_permission.scrim.d-none {
  display: none !important;
}

#modal_edit_permission .popup__container {
  position: relative;
  margin: 0;
  max-width: 440px;
  width: 100%;
}

/* Persian datepicker must sit above scrim/modals */
.datepicker-container {
  z-index: 10000000 !important;
}
body > .datepicker-container {
  z-index: 10000000 !important;
}
/* ===== DB detail page ===== */
.db__card--link {
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.db__card--link:hover {
  border-color: #c7d7fe;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.page--db-detail .content {
  justify-content: flex-start;
  align-items: stretch;
}
.page--db-detail .content__full-container,
.dbd {
  width: 97%;
  max-width: none;
  align-items: stretch;
  padding: 8px 8px 32px;
  gap: 16px !important;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.dbd__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
}
.dbd__back-icon { width: 14px; height: 14px; display: inline-flex; }
.dbd__back-icon svg { width: 100%; height: 100%; }

.dbd__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dbd__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #111827;
}
.dbd__badges { display: flex; gap: 8px; flex-wrap: wrap; }

.dbd__tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  padding: 8px;
}
.dbd__tab {
  border: none;
  background: transparent;
  color: #6b7280;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.dbd__tab.is-active {
  background: #e8f1ff;
  color: #2563eb;
}

.dbd__panel { display: none; flex-direction: column; gap: 16px; width: 100%; }
.dbd__panel.is-active { display: flex; }

.dbd__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.dbd__stat {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}
.dbd__stat-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.dbd__stat-icon svg { width: 20px; height: 20px; }
.dbd__stat-icon--teal { background: #e6fbf4; color: #0d9488; }
.dbd__stat-icon--blue { background: #e8f1ff; color: #2563eb; }
.dbd__stat-icon--purple { background: #f1e9ff; color: #7c3aed; }
.dbd__stat-icon--orange { background: #fff4e8; color: #f59e0b; }
.dbd__stat-label { font-size: 12px; color: #9ca3af; font-weight: 500; }
.dbd__stat-value { margin-top: 4px; font-size: 20px; font-weight: 700; color: #111827;    direction: ltr; }
.dbd__stat-value--green,
.dbd__stat-value--ready { color: #059669; }
.dbd__stat-value--indexing { color: #d97706; }
.dbd__stat-value--queued { color: #6b7280; }
.dbd__stat-value--failed { color: #dc2626; }

.dbd__retry-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 16px 18px;
}
.dbd__quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.dbd__quick-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}
.dbd__quick-link:hover {
  border-color: #c7d7fe;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}
.dbd__quick-title { font-size: 14px; font-weight: 700; color: #111827; }
.dbd__quick-sub { font-size: 12px; color: #9ca3af; line-height: 1.5; }
.db__card-retry {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f3f4f6;
}
.db__card-retry .dbd__btn-outline {
  width: 100%;
}

.dbd__section-card,
.dbd__upload-card,
.dbd__api-cred,
.dbd__api-card,
.dbd__settings-card,
.dbd__side-card,
.dbd__doc-card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}
.dbd__section-title { font-size: 16px; font-weight: 700; color: #111827; }
.dbd__section-sub { margin-top: 4px; font-size: 12px; color: #9ca3af; }
.dbd__placeholder {
  margin-top: 14px;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
  background: #fafbfc;
}

.dbd__upload-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.dbd__upload-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dbd__export-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px) {
  .dbd__export-grid { grid-template-columns: 1fr; }
}

.dbd__docs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  align-items: start;
}
.dbd__docs-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dbd__docs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.dbd__docs-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 28px;
}
.dbd__docs-count {
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
}
.dbd__docs-meta .dbd__toggles {
  margin: 0;
}
.dbd__search-banners {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 12px;
}
.dbd__search-banners.d-none { display: none !important; }
.dbd__search-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-decoration: none;
  color: #111827;
  background: #eff6ff;
  min-height: 72px;
  overflow: hidden;
}
.dbd__search-banner.is-full-image {
  display: block;
  padding: 0;
  min-height: 0;
  border: none;
  background: transparent;
  border-radius: 14px;
}
.dbd__search-banner.is-full-image .dbd__search-banner-img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  border-radius: 14px;
  border: none;
  display: block;
}
.dbd__search-banner-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  flex: none;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.dbd__search-banner-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.dbd__search-banner-content strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.dbd__search-banner-content span {
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.92;
}
.dbd__search {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 12px;
}
.dbd__search-icon { width: 16px; height: 16px; color: #9ca3af; display: inline-flex; }
.dbd__search-icon svg { width: 100%; height: 100%; }
.dbd__search-input {
  border: none; outline: none; width: 100%;
  padding: 11px 0; font-family: inherit; font-size: 13px; background: transparent;
}
.dbd__search-input.is-searching { opacity: 0.72; }
.dbd__search-status {
  flex-shrink: 0;
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
}
.dbd__search-mode {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 3px;
  flex-shrink: 0;
}
.dbd__search-mode button {
  border: 0;
  background: transparent;
  color: #6b7280;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 9px;
  cursor: pointer;
}
.dbd__search-mode button.is-on {
  background: #111827;
  color: #fff;
}
.dbd__btn-pink {
  border: none;
  background: #ec4899;
  color: #fff;
  border-radius: 12px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.dbd__btn-pink:hover { background: #db2777; }
.dbd__btn-outline {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  border-radius: 10px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.dbd__toggles { display: flex; gap: 14px; flex-wrap: wrap; }
.dbd__toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: #6b7280; font-weight: 500; cursor: pointer;
}
.dbd__toggle input { display: none; }
.dbd__toggle span {
  width: 36px; height: 20px; border-radius: 999px; background: #e5e7eb; position: relative;
}
.dbd__toggle span::after {
  content: ""; position: absolute; top: 2px; right: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transition: transform 0.15s ease;
}
.dbd__toggle input:checked + span { background: #2563eb; }
.dbd__toggle input:checked + span::after { transform: translateX(-16px); }
.dbd__toggle.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.dbd__toggle.is-disabled input { pointer-events: none; }

.dbd__doc-list { display: flex; flex-direction: column; gap: 10px; }
.dbd__doc-card {
  display: flex;
  gap: 12px;
  align-items: stretch;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  padding: 12px 14px;
}
.dbd__doc-card.is-expanded {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
.dbd__doc-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 8px;
  border-left: 1px solid #f3f4f6;
}
.dbd__icon-btn {
  width: 28px; height: 28px; border: none; background: #f8fafc; border-radius: 8px;
  color: #6b7280; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.dbd__icon-btn:hover { background: #eff6ff; color: #2563eb; }
.dbd__icon-btn--danger:hover { background: #fef2f2; color: #dc2626; }
.dbd__icon-btn svg { width: 14px; height: 14px; }
.dbd__doc-body { flex: 1; min-width: 0; }
.dbd__doc-id {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 8px;
}
.dbd__doc-id code {
  direction: ltr;
  color: #6b7280;
  font-size: 12px;
}
.dbd__doc-field {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}
.dbd__doc-field span { color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbd__doc-field strong { color: #111827; font-weight: 600; word-break: break-word; }
.dbd__doc-score {
  display: none;
  margin-right: auto;
  font-size: 11px; font-weight: 800; color: #1d4ed8;
  background: #dbeafe; border-radius: 999px; padding: 3px 8px;
  font-variant-numeric: tabular-nums;
}
.dbd__doc-score-details {
  display: none;
  margin: 8px 0 10px;
  border: 1px solid #e5e7eb; border-radius: 10px;
  background: #f8fafc; padding: 8px 10px;
}
.dbd__score-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr);
  gap: 8px; align-items: center;
  font-size: 11px; padding: 4px 0;
  border-bottom: 1px dashed #e5e7eb;
}
.dbd__score-row:last-child { border-bottom: none; }
.dbd__score-row code { color: #374151; background: transparent; font-weight: 700; }
.dbd__score-row strong { color: #1d4ed8; font-weight: 800; }
.dbd__score-row span { color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbd__score-empty { font-size: 12px; color: #9ca3af; text-align: center; padding: 6px 0; }
.dbd__doc-json {
  display: none;
  margin: 10px 0 0;
  max-height: 280px; overflow: auto;
  background: #0f172a; color: #e2e8f0;
  border-radius: 12px; padding: 12px 14px;
  font-size: 12px; line-height: 1.55; white-space: pre-wrap; word-break: break-word;
}
.dbd__doc-list.is-show-json .dbd__doc-json { display: block; }
.dbd__doc-list.is-show-json .dbd__doc-fields-preview,
.dbd__doc-list.is-show-json .dbd__doc-fields-all,
.dbd__doc-list.is-show-json .dbd__more,
.dbd__doc-list.is-show-json .dbd__doc-tpl { display: none !important; }
.dbd__doc-tpl { display: none; margin: 8px 0 0; }
.dbd__doc-list.is-show-template .dbd__doc-tpl { display: block; }
.dbd__doc-list.is-show-template .dbd__doc-fields-preview,
.dbd__doc-list.is-show-template .dbd__doc-fields-all,
.dbd__doc-list.is-show-template .dbd__more { display: none !important; }
.dbd__doc-tpl .hm-tpl-card { text-align: right; max-width: 100%; }
.dbd__doc-tpl-empty {
  font-size: 12px;
  color: #9ca3af;
  background: #f8fafc;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
}
.dbd__doc-list.is-show-score .dbd__doc-score { display: inline-flex; }
.dbd__doc-list.is-show-score-details .dbd__doc-score-details { display: block; }
.dbd__more {
  border: none;
  background: none;
  padding: 0;
  color: #ec4899;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-top: 4px;
}
.dbd__more:hover { text-decoration: underline; }
.dbd__empty-docs {
  padding: 28px;
  text-align: center;
  color: #9ca3af;
  background: #fff;
  border: 1px dashed #e5e7eb;
  border-radius: 14px;
}
.db-modal--wide { max-width: 720px; width: 92%; }
.dbd__json-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.db-modal__textarea--code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  min-height: 280px;
  direction: ltr;
  text-align: left;
}
#edit_doc_json_error.is-error {
  color: #dc2626;
  font-weight: 600;
}
.dbd__pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #6b7280;
}
.dbd__pagination-controls { display: flex; gap: 6px; flex-wrap: wrap; }
.dbd__pagination-controls button {
  border: 1px solid #e5e7eb; background: #fff; border-radius: 8px;
  padding: 6px 10px; font-family: inherit; font-size: 12px; cursor: pointer;
}
.dbd__pagination-controls button.is-active { background: #e8f1ff; color: #2563eb; border-color: #bfdbfe; }
.dbd__pagination-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.dbd__per-page { display: inline-flex; align-items: center; gap: 8px; }
.dbd__per-page select, .dbd__select {
  border: 1px solid #e5e7eb; border-radius: 10px; padding: 8px 10px;
  font-family: inherit; font-size: 12px; background: #fff; color: #374151;
}

.dbd__docs-side { display: flex; flex-direction: column; gap: 10px; }
.dbd__side-title { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 10px; }
.dbd__radio-row { display: flex; gap: 12px; margin: 10px 0; font-size: 12px; color: #6b7280; flex-wrap: wrap; }
.dbd__slider-label { font-size: 12px; color: #6b7280; display: block; margin-bottom: 6px; }
.dbd__slider { width: 100%; }
.dbd__side-link { display: inline-block; margin-top: 10px; color: #2563eb; font-size: 12px; font-weight: 600; text-decoration: none; }
.dbd__sort-active,
.dbd__filters-active { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.dbd__sort-chip {
  display: flex; align-items: center; gap: 8px;
  background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 8px 10px; font-size: 12px;
}
.dbd__sort-chip code { flex: 1; font-weight: 700; color: #111827; background: transparent; }
.dbd__sort-chip button {
  border: none; background: transparent; color: #9ca3af; cursor: pointer; font-size: 14px;
}
.dbd__docs-side .dbd__btn-outline { width: 100%; margin-top: 4px; }
.dbd__docs-side .dbd__select { width: 100%; }

.dbd__facet {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.dbd__facet.is-collapsed .dbd__facet-body { display: none; }
.dbd__facet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border-bottom: 1px solid #f1f5f9;
}
.dbd__facet-head strong {
  font-size: 13px; color: #111827; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.dbd__facet-head-actions { display: inline-flex; gap: 4px; }
.dbd__facet-head-actions button {
  border: none; background: transparent; color: #9ca3af; cursor: pointer;
  width: 24px; height: 24px; border-radius: 6px; font-size: 14px; line-height: 1;
}
.dbd__facet-head-actions button:hover { background: #f3f4f6; color: #374151; }
.dbd__facet-body { padding: 10px 12px 12px; }
.dbd__facet-mode {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 10px; font-size: 12px; color: #6b7280;
}
.dbd__facet-mode-radios { display: inline-flex; align-items: center; gap: 10px; }
.dbd__facet-mode-radios label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.dbd__facet-search {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid #e5e7eb; border-radius: 999px; padding: 0 12px; background: #fff;
  margin-bottom: 10px;
}
.dbd__facet-search input {
  border: none; outline: none; width: 100%; padding: 9px 0;
  font-family: inherit; font-size: 12px; background: transparent;
}
.dbd__facet-search span { color: #9ca3af; font-size: 13px; }
.dbd__facet-list {
  max-height: 220px; overflow: auto; display: flex; flex-direction: column; gap: 6px;
  padding-left: 2px;
}
.dbd__facet-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #374151;
}
.dbd__facet-item input { width: 15px; height: 15px; accent-color: #2563eb; }
.dbd__facet-item .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbd__facet-count {
  min-width: 22px; height: 22px; border-radius: 999px;
  background: #fce7f3; color: #be185d;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; padding: 0 6px;
}
.dbd__facet-empty { font-size: 12px; color: #9ca3af; text-align: center; padding: 12px 0; }
.dbd__btn-outline--accent {
  border-color: #ddd6fe;
  color: #6d28d9;
  background: #f5f3ff;
}
.dbd__btn-outline--accent:hover { background: #ede9fe; }
.dbd__manual-active { margin-top: 10px; }
.dbd__manual-card {
  border: 1px solid #e9d5ff;
  border-radius: 12px;
  background: #faf5ff;
  padding: 10px;
}
.dbd__manual-card-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.dbd__manual-card-head strong { font-size: 12px; color: #6d28d9; }
.dbd__manual-op {
  font-size: 11px; font-weight: 700; color: #7c3aed;
  background: #ede9fe; border-radius: 999px; padding: 2px 8px;
}
.dbd__manual-card-actions { margin-right: auto; display: inline-flex; gap: 2px; }
.dbd__manual-card-actions button {
  border: none; background: transparent; color: #a78bfa; cursor: pointer;
  width: 24px; height: 24px; border-radius: 6px; font-size: 13px;
}
.dbd__manual-card-actions button:hover { background: #ede9fe; color: #6d28d9; }
.dbd__manual-card-body {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 11px;
}
.dbd__manual-card-body code {
  background: #fff; border: 1px solid #e9d5ff; border-radius: 8px;
  padding: 4px 8px; color: #4c1d95; font-weight: 600;
}
.dbd__manual-sep { color: #a78bfa; font-weight: 700; font-size: 10px; }

.db-modal--filter { max-width: 560px; width: 94%; }
.dbmf { display: flex; flex-direction: column; gap: 18px; width: 100%; }
.dbmf__section { display: flex; flex-direction: column; gap: 10px; }
.dbmf__label { font-size: 13px; font-weight: 700; color: #374151; }
.dbmf__ops { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.dbmf__op {
  min-width: 64px; padding: 8px 14px; border-radius: 10px;
  border: 1px solid #e5e7eb; background: #fff; color: #6b7280;
  font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.dbmf__op.is-active {
  border-color: #c4b5fd; background: #f5f3ff; color: #6d28d9;
}
.dbmf__hint {
  display: flex; align-items: flex-start; gap: 8px;
  background: #f5f3ff; border-radius: 12px; padding: 10px 12px;
  font-size: 12px; color: #5b21b6; line-height: 1.6;
}
.dbmf__hint a { color: #6d28d9; font-weight: 700; text-decoration: underline; }
.dbmf__hint-icon {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: #7c3aed; color: #fff; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.dbmf__row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(160px, 0.9fr) minmax(0, 1.3fr);
  gap: 8px;
}
.dbmf__select,
.dbmf__input {
  width: 100%; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 10px 12px; font-family: inherit; font-size: 13px;
  background: #fff; color: #111827;
}
.dbmf__select:focus,
.dbmf__input:focus {
  outline: none; border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.dbmf__input:disabled { background: #f9fafb; color: #9ca3af; }
.dbmf__add-btn {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #e5e7eb; background: #fff; color: #374151;
  border-radius: 10px; padding: 9px 14px;
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.dbmf__add-btn:hover { background: #f9fafb; }
.dbmf__list-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.dbmf__trash {
  border: none; background: transparent; color: #9ca3af; cursor: pointer;
  width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}
.dbmf__trash:hover { background: #fef2f2; color: #e11d48; }
.dbmf__list {
  min-height: 120px; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 12px; display: flex; flex-direction: column; gap: 8px;
  background: #fff;
}
.dbmf__empty {
  flex: 1; display: flex; align-items: center; justify-content: center;
  color: #9ca3af; font-size: 13px; min-height: 96px;
}
.dbmf__chip {
  display: flex; align-items: center; gap: 8px;
  background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 8px 10px;
}
.dbmf__chip code { flex: 1; font-size: 12px; font-weight: 700; color: #111827; background: transparent; }
.dbmf__chip button {
  border: none; background: transparent; color: #9ca3af; cursor: pointer; font-size: 16px;
}
.dbmf__apply { background: #7c3aed !important; }
.dbmf__apply:hover { background: #6d28d9 !important; }

@media (max-width: 640px) {
  .dbmf__row { grid-template-columns: 1fr; }
}


.dbd__cred-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.dbd__cred-field label { display: block; font-size: 12px; color: #6b7280; margin-bottom: 6px; font-weight: 600; }
.dbd__cred-box {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px 12px; background: #f8fafc;
}
.dbd__cred-box code { font-size: 12px; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbd__cred-box button {
  border: none; background: #e8f1ff; color: #2563eb; border-radius: 8px;
  padding: 6px 10px; font-family: inherit; font-size: 11px; font-weight: 700; cursor: pointer; flex: none;
}
.dbd__api-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dbd__method {
  font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 8px; color: #fff;
}
.dbd__method--post { background: #2563eb; }
.dbd__method--get { background: #059669; }
.dbd__method--put { background: #d97706; }
.dbd__method--delete { background: #e11d48; }
.dbd__api-desc { font-size: 12px; color: #6b7280; margin: 0 0 10px; }
.dbd__params {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 14px;
  font-size: 12px;
}
.dbd__params td {
  border: 1px solid #eef0f3;
  padding: 8px 10px;
  vertical-align: top;
}
.dbd__params td:first-child {
  width: 170px;
  background: #f8fafc;
  color: #111827;
  font-weight: 600;
}
.dbd__params code {
  background: transparent;
  color: #111827;
  font-size: 12px;
}
.dbd__code-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
.dbd__code-tabs button {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.dbd__code-tabs button.is-active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.dbd__code-wrap { position: relative; margin: 0 0 10px; }
.dbd__code {
  background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 14px;
  font-size: 12px; overflow: auto; direction: ltr; text-align: left; margin: 0;
  white-space: pre-wrap; word-break: break-word; max-height: 420px;
}
.dbd__code[hidden] { display: none !important; }
.dbd__code-copy {
  margin-top: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  border-radius: 8px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.dbd__code-copy:hover { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.dbd__endpoint {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #64748b; direction: ltr; text-align: left;
  background: #f8fafc; border-radius: 8px; padding: 8px 10px;
}
.dbd__endpoint code {
  flex: 1; overflow: auto; white-space: nowrap; color: #111827; background: transparent;
}
.dbd__endpoint-copy {
  border: 1px solid #e5e7eb; background: #fff; color: #374151;
  border-radius: 8px; padding: 6px 10px;
  font-family: inherit; font-size: 11px; font-weight: 700; cursor: pointer; flex: none;
}
.dbd__endpoint-copy:hover { background: #eff6ff; color: #2563eb; }

.dbd__settings-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.dbd__settings-nav {
  background: #fff; border: 1px solid #eef0f3; border-radius: 16px; padding: 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.dbd__settings-nav-item {
  width: 100%;
  border: none; background: transparent; text-align: right;
  padding: 10px 12px; border-radius: 10px; font-family: inherit;
  font-size: 13px; font-weight: 600; color: #6b7280; cursor: pointer;
}
.dbd__settings-nav-item.is-active { background: #f3e8ff; color: #7c3aed; }
.dbd__settings-nav-sub {
  margin-top: 8px; padding-top: 8px; border-top: 1px solid #f3f4f6;
  display: flex; flex-direction: column; gap: 8px;
}
.dbd__settings-nav-sub a { font-size: 12px; color: #6b7280; text-decoration: none; padding: 0 12px; }
.dbd__settings-nav-sub a.is-danger { color: #e11d48; }
.dbd__settings-main { display: flex; flex-direction: column; gap: 12px; }
.dbd__settings-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px;
}
.dbd__settings-add { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.dbd__settings-add .dbd__select { flex: 1; min-width: 160px; }
.dbd__info-box {
  background: #eff6ff; color: #1d4ed8; border-radius: 10px; padding: 10px 12px;
  font-size: 12px; margin-bottom: 10px;
}
.dbd__info-box a { color: #1d4ed8; font-weight: 700; }
.dbd__security-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}
.dbd__security-block:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 4px;
}
.dbd__list-edit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.dbd__list-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dbd__list-row .db-modal__input {
  flex: 1;
  margin: 0;
}
.dbd__list-trash {
  border: none;
  background: transparent;
  color: #ef4444;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dbd__list-trash svg {
  width: 16px;
  height: 16px;
}
.dbd__list-trash:hover { background: #fef2f2; }
.dbd__link-btn {
  border: none;
  background: transparent;
  color: #2563eb;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  width: fit-content;
}
.dbd__link-btn:hover { text-decoration: underline; }
.dbd__warn-box {
  margin-top: 14px;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fdba74;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dbd__warn-box strong { font-size: 13px; font-weight: 700; }
.dbd__warn-box span { font-size: 12px; color: #9a3412; }
.dbd__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dbd__chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f3f4f6; color: #374151; border-radius: 999px;
  padding: 6px 10px; font-size: 12px; font-weight: 600;
}
.dbd__chip button {
  border: none; background: transparent; color: #9ca3af; cursor: pointer; font-size: 14px; line-height: 1;
}
.dbd__attr-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.dbd__attr-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fafbfc;
  cursor: grab;
  user-select: none;
}
.dbd__attr-item.is-dragging {
  opacity: 0.55;
  border-color: #c4b5fd;
  background: #f5f3ff;
}
.dbd__attr-item.is-drag-over {
  border-color: #7c3aed;
  box-shadow: inset 0 0 0 1px #7c3aed;
}
.dbd__attr-list--readonly .dbd__attr-item { cursor: default; }
.dbd__attr-handle {
  color: #9ca3af;
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1;
}
.dbd__attr-order {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dbd__attr-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  background: transparent;
}
.dbd__attr-actions {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.dbd__attr-actions button {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}
.dbd__attr-actions button:hover { background: #f3f4f6; }
.dbd__attr-actions button:disabled { opacity: 0.35; cursor: default; }
.dbd__attr-actions .dbd__attr-remove { color: #e11d48; }
.dbd__price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dbd__mini-label { display: block; font-size: 12px; color: #6b7280; margin-bottom: 6px; font-weight: 600; }

@media screen and (max-width: 1100px) {
  .dbd__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dbd__quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dbd__docs-layout,
  .dbd__settings-layout,
  .dbd__cred-grid,
  .dbd__price-grid { grid-template-columns: 1fr; }
}
@media screen and (max-width: 700px) {
  .dbd__stats { grid-template-columns: 1fr; }
  .dbd__quick-grid { grid-template-columns: 1fr; }
}

/* ===== DB settings panels ===== */
.dbd__nav-group { margin-bottom: 10px; }
.dbd__nav-group-title {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
  padding: 6px 12px 4px;
}
.dbd__settings-nav-item.is-danger { color: #e11d48; }
.dbd__settings-nav-item.is-danger.is-active {
  background: #ffe4e6;
  color: #be123c;
}

.dbd__settings-view { display: none; flex-direction: column; gap: 12px; width: 100%; }
.dbd__settings-view.is-active { display: flex; }

.dbd__view-title { font-size: 20px; font-weight: 700; color: #111827; }
.dbd__view-sub { font-size: 13px; color: #9ca3af; margin-top: 4px; }
.dbd__view-head { margin-bottom: 12px; }
.dbd__help { font-size: 12px; color: #9ca3af; margin-top: 6px; }
.dbd__warn { color: #ea580c; font-size: 12px; font-weight: 600; margin: 8px 0 12px; }
.dbd__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  font-weight: 600;
}

.dbd__rule-list { display: flex; flex-direction: column; gap: 8px; }
.dbd__rule-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fafbfc;
}
.dbd__rule-handle { color: #9ca3af; cursor: grab; letter-spacing: -2px; }
.dbd__rule-index {
  width: 24px; height: 24px; border-radius: 8px; background: #eef2ff;
  color: #4f46e5; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex: none;
}
.dbd__rule-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dbd__rule-text strong { font-size: 13px; color: #111827; }
.dbd__rule-text span { font-size: 12px; color: #9ca3af; }
.dbd__rule-actions { display: flex; gap: 4px; }

.dbd__choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.dbd__choice {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: #fff;
}
.dbd__choice.is-selected {
  border-color: #93c5fd;
  background: #eff6ff;
}
.dbd__choice input { align-self: flex-start; margin-top: 4px; }
.dbd__choice strong { font-size: 14px; color: #111827; }
.dbd__choice span { font-size: 12px; color: #6b7280; }

.dbd__inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}
.dbd__inline-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.dbd__business-page {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}
.dbd__business-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.dbd__business-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dbd__business-card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.dbd__business-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}
.dbd__business-card-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}
.dbd__business-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.db-modal--business {
  max-width: 820px;
  width: 94%;
}
.db-modal--business .popup__body-container {
  max-height: 70vh;
  overflow: auto;
}
.dbd__br-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.dbd__br-tabs {
  display: flex;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 16px;
}
.dbd__br-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: #6b7280;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.dbd__br-tab.is-active {
  background: #fff;
  color: #2563eb;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}
.dbd__br-pane { display: none; }
.dbd__br-pane.is-active { display: block; }
.dbd__br-section {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.dbd__br-sort-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}
.dbd__br-sort-row .db-modal__field { margin: 0; }
.dbd__br-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.dbd__br-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dbd__br-item {
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 12px;
  background: #fafbfc;
}
.dbd__br-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.dbd__br-item-head .dbd__select {
  flex: 1;
}
.dbd__br-item-body .db-modal__label {
  margin-top: 0;
}
.dbd__br-docpick-search {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.dbd__br-docpick-search .db-modal__input {
  flex: 1;
}
.dbd__br-action-hint {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.dbd__br-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dbd__br-color-swatch {
  width: 42px;
  height: 38px;
  padding: 2px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  flex: none;
}
.dbd__br-banner-preview {
  margin-top: 14px;
}
.dbd__br-banner-preview-label {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 8px;
}
.dbd__br-banner-preview-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-decoration: none;
  color: #111827;
  background: #eff6ff;
  min-height: 72px;
  transition: background 0.15s ease, color 0.15s ease;
  overflow: hidden;
}
.dbd__br-banner-preview-box.is-full-image {
  display: block;
  padding: 0;
  min-height: 0;
  border: none;
  background: transparent;
}
.dbd__br-banner-preview-box.is-full-image .dbd__br-banner-preview-img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  border-radius: 14px;
  border: none;
  display: block;
}
.dbd__br-banner-preview-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  flex: none;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.dbd__br-banner-preview-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.dbd__br-banner-preview-content.d-none,
.dbd__br-banner-preview-content[hidden] {
  display: none !important;
}
.dbd__br-banner-preview-img.d-none,
.dbd__br-banner-preview-img[hidden] {
  display: none !important;
}
[data-br-banner-content-fields].d-none {
  display: none !important;
}
.dbd__br-banner-preview-content strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.dbd__br-banner-preview-content span {
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.92;
}
.dbd__br-banner-preview-content .is-placeholder {
  opacity: 0.55;
  font-weight: 500;
}
.dbd__br-docpick-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* ~5 compact result rows before scroll */
  max-height: 280px;
  overflow: auto;
  margin-bottom: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 8px;
  background: #fff;
}
.dbd__br-doc-result {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  border: 1px solid #e5e7eb;
  background: #fafbfc;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-family: inherit;
}
.dbd__br-doc-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dbd__br-doc-result strong {
  font-size: 13px;
  color: #111827;
}
.dbd__br-doc-result em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  white-space: nowrap;
}
.dbd__br-doc-result-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 10px;
  max-height: 72px;
  overflow: auto;
}
.dbd__br-doc-field {
  display: flex;
  gap: 6px;
  min-width: 0;
  font-size: 11px;
}
.dbd__br-doc-field span {
  color: #9ca3af;
  flex-shrink: 0;
}
.dbd__br-doc-field strong {
  color: #374151;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dbd__br-doc-result.is-selected {
  border-color: #93c5fd;
  background: #eff6ff;
}
.dbd__br-doc-result.is-selected em {
  color: #059669;
}
.dbd__br-docpick-selected {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.dbd__br-docpick-selected-label {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
}
.dbd__br-doc-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
}
.dbd__br-doc-chip-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.dbd__br-doc-chip-text strong {
  font-size: 13px;
  color: #111827;
}
.dbd__br-doc-chip-text span {
  font-size: 11px;
  color: #6b7280;
}
.dbd__br-docpick-empty {
  font-size: 12px;
  color: #9ca3af;
  padding: 8px 2px;
}

@media screen and (max-width: 700px) {
  .dbd__br-grid { grid-template-columns: 1fr; }
  .dbd__br-sort-row { grid-template-columns: 1fr; }
}

.dbd__feed-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.dbd__feed-status div {
  background: #f8fafc;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dbd__feed-status span { font-size: 12px; color: #9ca3af; }
.dbd__feed-status strong { font-size: 13px; color: #111827; }
.dbd__feed-notes {
  margin: 10px 0 0;
  padding-right: 18px;
  color: #2563eb;
  font-size: 12px;
  line-height: 1.8;
}
.dbd__feed-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef6ff 100%);
  border: 1px solid #e5eaf2;
}
.dbd__feed-hero-main { min-width: 0; }
.dbd__feed-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  margin-top: 4px;
}
.dbd__feed-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.dbd__feed-switch-ui {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  transition: background .2s ease;
}
.dbd__feed-switch-ui::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
  transition: transform .2s ease;
}
.dbd__feed-switch input:checked + .dbd__feed-switch-ui { background: #2563eb; }
.dbd__feed-switch input:checked + .dbd__feed-switch-ui::after { transform: translateX(-18px); }
.dbd__feed-switch-label { font-size: 13px; font-weight: 600; color: #111827; }
.dbd__feed-card { margin-bottom: 12px; }
.dbd__feed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.dbd__feed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 14px;
}
.dbd__feed-cron {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
}
.dbd__feed-cron code {
  flex: 1;
  font-size: 12px;
  overflow: auto;
  white-space: nowrap;
  color: #e2e8f0;
  background: transparent;
  border: 0;
  padding: 0;
}
.dbd__feed-cron .dbd__btn-outline {
  flex-shrink: 0;
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.2);
}
.dbd__feed-metrics-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin: 4px 0 8px;
}
.dbd__feed-metrics-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin: 4px 0 8px;
}
.dbd__feed-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}
.dbd__feed-metrics div {
  background: #f9fafb;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.dbd__feed-metrics span { display: block; font-size: 11px; color: #9ca3af; margin-bottom: 4px; }
.dbd__feed-metrics strong { font-size: 18px; color: #111827; font-variant-numeric: tabular-nums; }
.dbd__feed-runs-wrap { overflow: auto; }
.dbd__feed-runs {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.dbd__feed-runs th,
.dbd__feed-runs td {
  padding: 10px 8px;
  border-bottom: 1px solid #eef0f3;
  text-align: right;
  vertical-align: top;
}
.dbd__feed-runs th { color: #6b7280; font-weight: 600; background: #fafbfc; }
.dbd__feed-run-num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #111827;
  font-weight: 600;
}
.dbd__feed-run-num.is-failed { color: #b91c1c; }
.dbd__feed-run-err {
  max-width: 360px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #b91c1c;
  font-size: 12px;
  line-height: 1.55;
}
.dbd__feed-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #f3f4f6;
  color: #374151;
}
.dbd__feed-pill.is-success { background: #ecfdf5; color: #047857; }
.dbd__feed-pill.is-failed { background: #fef2f2; color: #b91c1c; }
.dbd__feed-pill.is-running { background: #eff6ff; color: #1d4ed8; }
.dbd__feed-pill.is-cancelled,
.dbd__feed-pill.is-stopping { background: #fff7ed; color: #c2410c; }
.dbd__feed-pill.is-skipped { background: #f3f4f6; color: #6b7280; }
.dbd__feed-last-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}
#feed_run_btn.is-busy { opacity: .7; }
.dbd__feed-stop,
.dbd__feed-stop-row {
  color: #b91c1c;
  border-color: #fecaca;
}
.dbd__feed-stop-row {
  padding: 4px 10px;
  font-size: 11px;
}

@media screen and (max-width: 700px) {
  .dbd__feed-status,
  .dbd__feed-metrics,
  .dbd__feed-grid { grid-template-columns: 1fr; }
  .dbd__feed-hero { flex-direction: column; }
}

.dbd__danger-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 18px;
  flex-wrap: wrap;
}
.dbd__danger-title {
  color: #dc2626;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.dbd__btn-danger {
  border: none;
  background: #dc2626;
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.dbd__btn-danger:hover { background: #b91c1c; }
.dbd__btn-danger:disabled,
.dbd__btn-outline:disabled {
  opacity: 0.55;
  cursor: default;
}
.popup__actions-container--split {
  display: flex;
  gap: 8px;
}
.popup__actions-container--split .dbd__btn-outline,
.popup__actions-container--split .dbd__btn-danger {
  flex: 1;
  min-height: 44px;
}

@media screen and (max-width: 900px) {
  .dbd__choice-grid,
  .dbd__inline-form,
  .dbd__feed-status { grid-template-columns: 1fr; }
}

/* ===== Search Module ===== */
.page--search .content {
  justify-content: flex-start;
  align-items: stretch;
}

.page--search .content__full-container,
.sm--kb-search {
  gap: 18px !important;
}
.sm--kb-search .dbd__docs-layout {
  width: 100%;
}
.sm--kb-search .dbd__docs-main {
  min-width: 0;
}

.sm__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  flex-wrap: wrap;
}

.sm__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
}

.sm__subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  color: #8b93a1;
  font-weight: 500;
}

.sm__db-select {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
}

.sm__db-select label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}

.sm__db-select select,
.sm__select,
.sm__searchbar input,
.sm__list-row input,
.sm__pager select {
  width: 100%;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  color: #111827;
  outline: none;
  box-sizing: border-box;
}

.sm__db-select select:focus,
.sm__select:focus,
.sm__searchbar input:focus,
.sm__list-row input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.sm__layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  align-items: start;
}

.sm__side,
.sm__main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.sm__card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.sm__card-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
}

.sm__card-sub {
  font-size: 12px;
  color: #9ca3af;
  margin: -4px 0 12px;
  line-height: 1.7;
}

.sm__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #4b5563;
  cursor: pointer;
  user-select: none;
}

.sm__toggle input {
  display: none;
}

.sm__toggle span {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  flex-shrink: 0;
  transition: 0.2s ease;
}

.sm__toggle span::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}

.sm__toggle input:checked + span {
  background: #ec4899;
}

.sm__toggle input:checked + span::after {
  right: 18px;
}

.sm__slider-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 0 8px;
  font-size: 12px;
  color: #6b7280;
}

.sm__slider-head strong {
  color: #111827;
  font-weight: 600;
}

.sm__slider {
  width: 100%;
  accent-color: #ec4899;
}

.sm__slider-ends {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
}

.sm__radios {
  display: flex;
  gap: 16px;
  margin: 10px 0 12px;
  font-size: 13px;
  color: #374151;
}

.sm__radios input {
  accent-color: #ec4899;
  margin-left: 6px;
}

.sm__btn-pink {
  width: 100%;
  border: none;
  background: #ec4899;
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.sm__btn-pink:hover { background: #db2777; }

.sm__btn-dashed {
  width: 100%;
  border: 1px dashed #d1d5db;
  background: #fff;
  color: #6b7280;
  border-radius: 12px;
  padding: 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.sm__btn-dashed:hover {
  border-color: #93c5fd;
  color: #2563eb;
  background: #f8fbff;
}

.sm__help-link,
.sm__link-btn {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: #2563eb;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.sm__help-link:hover,
.sm__link-btn:hover { text-decoration: underline; }

.sm__searchbar {
  position: relative;
  width: 100%;
}

.sm__search-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #9ca3af;
  pointer-events: none;
}

.sm__search-icon svg {
  width: 100%;
  height: 100%;
}

.sm__searchbar input {
  padding-right: 42px;
  height: 48px;
  font-size: 14px;
}

.sm__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sm__count {
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
}

.sm__toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.sm__toggles .sm__toggle input:checked + span {
  background: #3b82f6;
}

.sm__results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sm__result {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.sm__result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sm__result-id {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.sm__result-id strong {
  font-size: 18px;
  color: #111827;
}

.sm__result-id span {
  font-size: 11px;
  color: #9ca3af;
}

.sm__result-actions {
  display: flex;
  gap: 6px;
}

.sm__result-actions button {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 14px;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.sm__result-actions button svg {
  width: 15px;
  height: 15px;
}

.sm__field {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  padding: 4px 0;
  font-size: 13px;
}

.sm__field span {
  color: #9ca3af;
}

.sm__field strong {
  color: #111827;
  font-weight: 600;
  word-break: break-word;
}

.sm__more {
  display: inline-block;
  margin-top: 8px;
  color: #ec4899;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.sm__more:hover { text-decoration: underline; }

.sm__pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #6b7280;
  padding: 8px 0 0;
}

.sm__pager-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sm__pager-controls label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sm__pager-controls select {
  width: auto;
  min-width: 70px;
  padding: 6px 10px;
}

.sm__pager-controls button {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
  color: #374151;
  cursor: pointer;
}

.sm__pager-controls button.is-active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
  font-weight: 700;
}

.sm__report-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.sm__range {
  font-size: 13px;
  color: #6b7280;
}

.sm__report-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sm__btn-outline {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  border-radius: 10px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.sm__btn-outline:hover {
  border-color: #93c5fd;
  color: #2563eb;
}

.sm__stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.sm__stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.sm__stat {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.sm__stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sm__stat-icon svg {
  width: 18px;
  height: 18px;
}

.sm__stat-icon--blue { background: #eff6ff; color: #2563eb; }
.sm__stat-icon--orange { background: #fff7ed; color: #ea580c; }
.sm__stat-icon--green { background: #ecfdf5; color: #059669; }
.sm__stat-icon--purple { background: #f5f3ff; color: #7c3aed; }
.sm__stat-icon--teal { background: #f0fdfa; color: #0d9488; }
.sm__stat-icon--rose { background: #fff1f2; color: #e11d48; }

.sm__stat-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.sm__stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.sm__stat-sub {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
}

.sm--report .sm__lists {
  grid-template-columns: 1fr;
  width: 100%;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sm--report .sm__charts {
  display: grid;
  gap: 16px;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sm__chart {
  min-height: 280px;
  overflow: visible;
}
.sm--report .sm__chart .an__card-title { margin-bottom: 8px; }
.sm--report .sm__chart .an__legend { margin-top: 0; }

.sm__report-range-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 140px;
}
.sm__report-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  width: 100%;
}
.sm__report-custom[hidden] { display: none !important; }
.sm__report-from,
.sm__report-to {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
  width: 118px;
  color: #374151;
}
.sm__report-apply {
  border: none;
  background: #2563eb;
  color: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.sm__report-apply:hover { background: #1d4ed8; }

.sm__linechart {
  width: 100%;
  min-height: 240px;
}
.sm__linechart-svg {
  display: block;
  width: 100%;
  overflow: visible;
}
.sm__linechart-grid {
  stroke: #eef2f7;
  stroke-width: 1;
}
.sm__linechart-area {
  fill: rgba(37, 99, 235, 0.12);
}
.sm__linechart-line {
  stroke: #2563eb;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.sm__linechart-dot {
  stroke: #fff;
  stroke-width: 1.5;
  pointer-events: none;
  transition: r 0.12s ease, stroke-width 0.12s ease;
}
.sm__linechart-dot.is-on {
  stroke-width: 2;
}
.sm__linechart-band {
  fill: transparent;
  pointer-events: all;
  cursor: crosshair;
}
.sm__linechart-guide,
.sm__linechart-vline {
  pointer-events: none;
}
.sm__linechart-vline {
  stroke: #64748b;
  stroke-width: 1.25;
  stroke-dasharray: 3 4;
}

.sm__linechart-hit {
  cursor: pointer;
}

.sm__linechart-hitarea {
  fill: transparent;
  pointer-events: all;
}

.sm__linechart-hit.is-active .sm__linechart-dot,
.sm__linechart-hit:hover .sm__linechart-dot {
  stroke-width: 2;
  transform: scale(1.45);
  transform-box: fill-box;
  transform-origin: center;
}

.sm__linechart-xlabel,
.sm__linechart-ylabel {
  fill: #9ca3af;
  font-size: 10px;
  font-family: inherit;
}

/* Floating chart tooltip (dashboard + search report) */
.chart-tip {
  position: fixed;
  z-index: 9999;
  min-width: 148px;
  max-width: 280px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.96);
  color: #f9fafb;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.32);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  direction: rtl;
  text-align: right;
  font-family: inherit;
  backdrop-filter: blur(8px);
}

.chart-tip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.chart-tip__date {
  font-size: 12px;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 8px;
  line-height: 1.45;
  word-break: break-word;
}

.chart-tip__row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-tip__row + .chart-tip__row {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-tip__swatch {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: none;
}

.chart-tip__label {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  color: #e5e7eb;
}

.chart-tip__value {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}

.chart-tip__value--solo {
  font-size: 16px;
  line-height: 1.2;
}

.sm__rt {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sm__rt-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.sm__rt-count {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  color: #475569;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}
.sm__rt-excel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.sm__rt-excel:hover {
  border-color: #93c5fd;
  color: #2563eb;
}
.sm__rt-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #eef0f3;
  border-radius: 12px;
}
.sm__rt-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.sm__rt-table th,
.sm__rt-table td {
  padding: 10px 12px;
  font-size: 12px;
  text-align: right;
  border-top: 1px solid #f1f5f9;
  white-space: nowrap;
}
.sm__rt-table thead th {
  background: #f8fafc;
  color: #6b7280;
  font-weight: 700;
  border-top: none;
  position: sticky;
  top: 0;
}
.sm__rt-th {
  cursor: pointer;
  user-select: none;
}
.sm__rt-th span:first-child {
  margin-left: 4px;
}
.sm__rt-sort {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  vertical-align: middle;
}
.sm__rt-sort i {
  display: block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.sm__rt-sort i:first-child {
  border-bottom: 5px solid #cbd5e1;
}
.sm__rt-sort i:last-child {
  border-top: 5px solid #cbd5e1;
}
.sm__rt-th.is-active.is-desc .sm__rt-sort i:last-child {
  border-top-color: #2563eb;
}
.sm__rt-th.is-active.is-asc .sm__rt-sort i:first-child {
  border-bottom-color: #2563eb;
}
.sm__rt-q {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sm__rt-ctr {
  display: inline-flex;
  align-items: center;
  background: #ecfdf5;
  color: #059669;
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
  font-size: 11px;
}
.sm__rt-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.sm__rt-meta {
  font-size: 12px;
  color: #6b7280;
}
.sm__rt-pager {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.sm__rt-page {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  border-radius: 10px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.sm__rt-page:hover:not(:disabled) {
  border-color: #93c5fd;
  color: #2563eb;
}
.sm__rt-page:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sm__report-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.sm__report-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.sm__report-card-head .sm__card-title {
  margin-bottom: 4px;
}
.sm__report-card-head .sm__card-sub {
  margin: 0;
}
.sm__report-card-head--stats {
  margin-bottom: 0;
  padding: 0 2px;
}
.sm__report-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}
.sm__report-range {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
  color: #374151;
  min-width: 140px;
}
.sm__report-body {
  min-height: 80px;
}
.sm__report-card.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.sm__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
}

.sm__list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.sm__config-card {
  width: 100%;
}

.sm__config-block {
  padding: 8px 0 18px;
}

.sm__config-block + .sm__config-block {
  border-top: 1px solid #f1f5f9;
  padding-top: 18px;
}

.sm__list-edit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.sm__list-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sm__list-row input {
  flex: 1;
}

.sm__trash {
  border: none;
  background: transparent;
  color: #ef4444;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sm__trash svg {
  width: 16px;
  height: 16px;
}

.sm__trash:hover { background: #fef2f2; }

.sm__config-save {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.sm__btn-primary {
  border: none;
  background: #2563eb;
  color: #fff;
  border-radius: 12px;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.sm__btn-primary:hover { background: #1d4ed8; }

.sm__section-title {
  width: 100%;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 8px 0 0;
}

.sm__cred {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sm__cred-row label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
  font-weight: 600;
}

.sm__cred-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
  padding: 8px 10px;
}

.sm__cred-box code,
.sm__endpoint code {
  flex: 1;
  font-size: 12px;
  color: #111827;
  overflow: auto;
  white-space: nowrap;
}

.sm__cred-box button,
.sm__endpoint button {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #374151;
  flex-shrink: 0;
}

.sm__api-card { width: 100%; }

.sm__api-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.sm__api-head strong {
  font-size: 15px;
  color: #111827;
}

.dbd__api-docs,
.sm__api-docs {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dbd__api-docs .sm__section-title,
.sm__api-docs .sm__section-title { margin: 0; }
.dbd__api-docs .sm__card,
.sm__api-docs .sm__card { width: 100%; box-sizing: border-box; }
.dbd__api-docs .sm__api-card,
.sm__api-docs .sm__api-card { padding: 0; overflow: hidden; }
.dbd__api-docs .sm__api-head,
.sm__api-docs .sm__api-head { margin-bottom: 0; }
.sm__api-docs .sm__card--cred {
  width: 100%;
  max-width: none;
  align-self: stretch;
}
.sm__publish-tabs { margin: 0; }
.sm__widget-card { padding: 18px 18px 20px; }
.sm__widget-form { gap: 10px; }
.sm__widget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sm__widget-grid .is-full { grid-column: 1 / -1; }
.sm__widget-grid label { display: block; font-size: 12px; color: #6b7280; font-weight: 600; margin-bottom: 6px; }
.sm__widget-alert {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
}
.sm__rec-toolbar { margin: 0 0 14px; }
.rec-slot-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.rec-slot-fields__full { grid-column: 1 / -1; }
.rec-slot-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
@media (max-width: 720px) {
  .rec-slot-fields { grid-template-columns: 1fr; }
  .rec-slot-fields__full { grid-column: auto; }
}
.rec-slot-kicker {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.rec-slot-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
}
.rec-slot-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #334155;
}
.rec-slot-preview {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e8edf2;
}
.rec-slot-preview__row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin-top: 10px;
}
.rec-slot-preview__hint {
  min-height: 20px;
  margin-top: 8px;
  font-size: 13px;
  color: #64748b;
}
.rec-slot-preview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.rec-slot-preview__card {
  border: 1px solid #e8edf2;
  border-radius: 14px;
  padding: 8px;
  background: #fff;
  min-width: 0;
}
.rec-slot-preview__id {
  font-size: 12px;
  color: #64748b;
  direction: ltr;
}
.rec-lookup {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}
.rec-lookup__item {
  text-align: right;
  border: 1px solid #e8edf2;
  background: #f8fafc;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
  color: #0f172a;
}
.rec-lookup__item:hover { background: #eef2ff; }
@media (max-width: 720px) {
  .rec-slot-preview__row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .sm__widget-grid { grid-template-columns: 1fr; }
}

.sm__api-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: none;
  background: transparent;
  padding: 16px;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: right;
  color: inherit;
}
.sm__api-toggle:hover { background: #fafbfc; }
.sm__api-toggle .sm__api-head {
  flex: 1;
  min-width: 0;
}

.sm__api-chevron {
  width: 20px;
  height: 20px;
  color: #9ca3af;
  flex: none;
  display: inline-flex;
  transition: transform 0.18s ease;
}
.sm__api-chevron svg { width: 100%; height: 100%; }
.sm__api-card:not(.is-collapsed) .sm__api-chevron { transform: rotate(180deg); color: #2563eb; }

.sm__api-body {
  padding: 0 16px 16px;
  border-top: 1px solid #eef0f3;
}
.sm__api-body[hidden] { display: none !important; }
.sm__api-body .sm__card-sub { margin-top: 12px; }

.sm__method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sm__method--get { background: #ecfdf5; color: #059669; }
.sm__method--post { background: #eff6ff; color: #2563eb; }
.sm__method--put { background: #fffbeb; color: #d97706; }
.sm__method--patch { background: #f5f3ff; color: #7c3aed; }
.sm__method--delete { background: #fef2f2; color: #e11d48; }
.sm__code[hidden] { display: none !important; }

.sm__params {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 14px;
  font-size: 12px;
}

.sm__params td {
  border: 1px solid #eef0f3;
  padding: 8px 10px;
  vertical-align: top;
}

.sm__params td:first-child {
  width: 160px;
  background: #f8fafc;
  color: #111827;
  font-weight: 600;
}

.sm__params td:last-child { color: #6b7280; }

.sm__mode-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #eef0f3;
  border-radius: 12px;
}
.sm__mode-switch-label {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}
.sm__mode-switch-btns {
  display: flex;
  gap: 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 3px;
}
.sm__mode-switch-btns button {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.sm__mode-switch-btns button.is-active {
  background: #2563eb;
  color: #fff;
}

.sm__code-tabs button {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
  color: #6b7280;
  cursor: pointer;
}

.sm__code-tabs button.is-active {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.sm__code {
  margin: 0;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  font-size: 12px;
  line-height: 1.7;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 420px;
}

.sm__code-wrap { margin: 0 0 10px; }
.sm__code-copy {
  margin-top: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  border-radius: 8px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.sm__code-copy:hover { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }

.sm__endpoint {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 10px;
}

@media screen and (max-width: 1100px) {
  .sm__layout { grid-template-columns: 1fr; }
  .sm__stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 700px) {
  .sm__stats-grid,
  .sm__charts,
  .sm__lists { grid-template-columns: 1fr; }
  .sm__field { grid-template-columns: 1fr; gap: 2px; }
  .sm__title { font-size: 22px; }
  .sm--report .sm__charts { grid-template-columns: 1fr; }
}
/* ===== Bots Module ===== */
.page--bots .content {
  justify-content: flex-start;
  align-items: stretch;
}

.page--bots .content__full-container,
.bt {
  width: 97%;
  max-width: none;
  align-items: stretch;
  padding: 8px 8px 32px;
  gap: 16px !important;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  margin: 20px auto 0;
}

.bt__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}

.bt__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
}

.bt__subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  color: #8b93a1;
}

.bt__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bt__btn-primary,
.bt__btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.bt__btn-primary {
  border: none;
  background: #2563eb;
  color: #fff;
}

.bt__btn-primary:hover { background: #1d4ed8; }

.bt__btn-outline {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
}

.bt__btn-outline:hover {
  border-color: #93c5fd;
  color: #2563eb;
}

.bt__btn-primary svg,
.bt__btn-outline svg {
  width: 16px;
  height: 16px;
}

.bt__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.bt__card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
  text-decoration: none;
  color: inherit;
}

.bt__list .bt__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.bt__list .bt__card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.bt__card-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.bt__card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bt__card-icon svg {
  width: 22px;
  height: 22px;
}

.bt__card-name {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.bt__card-id {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
  direction: ltr;
  text-align: right;
}

.bt__card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  color: #6b7280;
}

.bt__card-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.bt__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.bt__badge--active {
  background: #ecfdf5;
  color: #059669;
}

.bt__trash {
  border: none;
  background: transparent;
  color: #ef4444;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bt__trash svg {
  width: 16px;
  height: 16px;
}

.bt__trash:hover { background: #fef2f2; }

.bt__empty-card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 48px 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.bt__empty-card--in {
  margin-top: 8px;
  min-height: 160px;
  justify-content: center;
}

.bt__empty-icon {
  width: 42px;
  height: 42px;
  color: #cbd5e1;
}

.bt__empty-icon svg {
  width: 100%;
  height: 100%;
}

.bt__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2563eb;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
}

.bt__back svg {
  width: 16px;
  height: 16px;
}

.bt__detail-head {
  width: 100%;
}

.bt__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.bt__tab {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.bt__tab.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.bt__panel {
  display: none;
  width: 100%;
}

.bt__panel.is-active {
  display: block;
}

.bt__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.bt__field label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.bt__field input,
.bt__field select,
.bt__field textarea,
.bt__list-row input,
.bt__kb-toolbar select,
.bt__search input,
.bt__collect input[type="text"] {
  width: 100%;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  color: #111827;
  outline: none;
  box-sizing: border-box;
}

.bt__field input:focus,
.bt__field select:focus,
.bt__field textarea:focus,
.bt__list-row input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.bt__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bt__form-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bt__form-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
}

.bt__settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.bt__settings-forms {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bt__acc {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  overflow: hidden;
}

.bt__acc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: none;
  background: #fff;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
  text-align: right;
}

.bt__acc-toggle--static {
  cursor: default;
  padding: 0 0 4px;
}

.bt__acc-body {
  display: none;
  padding: 0 16px 16px;
}

.bt__acc.is-open .bt__acc-body {
  display: block;
}

.bt__acc.is-open .bt__acc-toggle span {
  transform: rotate(180deg);
  display: inline-block;
}

.bt__check {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  margin-bottom: 10px;
  text-align: right;
  direction: rtl;
}

.bt__check input {
  accent-color: #2563eb;
  width: auto;
  margin: 0;
  flex-shrink: 0;
}

.bt__cap-group {
  margin-bottom: 14px;
}

.bt__cap-title {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 8px;
}

.bt__cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bt__cap {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: #fff;
}

.bt__cap.is-on {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.bt__cap input {
  accent-color: #2563eb;
}

.bt__link-btn {
  border: none;
  background: none;
  color: #2563eb;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin: 4px 0 10px;
}

.bt__link-btn:hover { text-decoration: underline; }

.bt__list-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.bt__list-row input { flex: 1; }

.bt__collect {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.bt__collect .bt__check {
  margin-bottom: 0;
  width: 100%;
}

.bt__modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.bt__modal.is-open { display: flex; }
.bt__modal[hidden] { display: none !important; }
.bt__modal-scrim { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.45); }
.bt__modal-box {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: min(80vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
}
.bt__modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.bt__modal-x {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}
.bt__modal-hint {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.7;
  margin: 0 0 10px;
}
.bt__modal-search {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  margin-bottom: 8px;
  box-sizing: border-box;
}
.bt__var-list { display: flex; flex-direction: column; gap: 6px; }
.bt__var-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: right;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 12px;
  padding: 9px 12px;
  font-family: inherit;
  cursor: pointer;
}
.bt__var-row:hover { border-color: #93c5fd; background: #eff6ff; }
.bt__var-row strong { font-size: 13px; color: #111827; }
.bt__var-row code { font-size: 12px; color: #6b7280; }

.bt__preview {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 16px;
  position: sticky;
  top: 16px;
}

.bt__preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.bt__color {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bt__color input[type="color"] {
  width: 42px;
  height: 36px;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.bt__color input[type="text"] {
  flex: 1;
}
.bt__upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.bt__upload label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
}
.bt__upload-box {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bt__upload-thumb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #f8fafc center/cover no-repeat;
  flex-shrink: 0;
}

.bt__preview-dev {
  display: flex;
  gap: 4px;
}
.bt__preview-dev button {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
}
.bt__preview-dev button.is-on {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.bt__preview-browser.is-mobile {
  max-width: 300px;
  margin: 0 auto;
  min-height: 620px;
}

.bt__pw {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  direction: ltr;
}
.bt__pw--left { align-items: flex-start; }
.bt__pw--left.is-open {
  flex-direction: row-reverse;
  align-items: flex-end;
}
.bt__pw--left.is-open .bt__pw-dock {
  width: auto;
  justify-content: flex-start;
}
.bt__pw-dock {
  display: flex;
  flex-direction: row;
  direction: ltr;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}
.bt__pw--left .bt__pw-dock {
  flex-direction: row-reverse;
  justify-content: flex-start;
}
.bt__pw-teasers {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  max-width: 220px;
}
.bt__pw--left .bt__pw-teasers {
  align-items: flex-start;
}
.bt__pw.is-open .bt__pw-teasers { display: none; }
.bt__pw-teaser {
  background: #fff;
  color: #111827;
  border-radius: 18px;
  padding: 8px 14px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  width: fit-content;
  max-width: 100%;
  direction: rtl;
  text-align: right;
}
.bt__pw-panel {
  display: none;
  width: 300px;
  max-width: calc(100% - 8px);
  height: 520px;
  background: #eef2f6;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  flex-direction: column;
  text-align: start;
}
.bt__pw.is-open .bt__pw-panel { display: flex; }
.bt__pw-hd {
  color: #fff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}
.bt__pw-hd-text { min-width: 0; flex: 1; text-align: start; }
.bt__pw-hd strong { display: block; font-size: 13px; }
.bt__pw-on {
  display: inline-block;
  font-size: 11px;
  opacity: 0.9;
  font-style: normal;
}
.bt__pw-on::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #86efac;
  margin-left: 5px;
  vertical-align: middle;
}
.bt__pw-hd em {
  display: block;
  font-style: normal;
  font-size: 11px;
  opacity: 0.8;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bt__pw-x {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.bt__pw-ava {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.bt__pw-ava--ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.bt__pw-ava--ph svg { width: 16px; height: 16px; }
.bt__pw-hd .bt__pw-ava { width: 36px; height: 36px; }
.bt__pw-body {
  flex: 1;
  overflow: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.bt__pw-msgs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bt__pw-row {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  direction: ltr;
}
.bt__pw-row.v { justify-content: flex-end; }
.bt__pw-b {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 16px 16px 16px 4px;
  font-size: 12px;
  line-height: 1.65;
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  text-align: start;
}
.bt__pw-panel[dir="rtl"] .bt__pw-b { direction: rtl; text-align: right; }
.bt__pw-panel[dir="ltr"] .bt__pw-b { direction: ltr; text-align: left; }
.bt__pw-b--me {
  background: #2563eb;
  color: #fff;
  border-radius: 16px 16px 4px 16px;
}
.bt__pw-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px;
}
.bt__pw-quick button {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  color: #374151;
}
.bt__pw-form {
  background: #fff;
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  text-align: start;
}
.bt__pw-form-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}
.bt__pw-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  font-size: 12px;
  color: #374151;
  margin-bottom: 10px;
}
.bt__pw-req { color: #ef4444; }
.bt__pw-in {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #f0f2f5;
  border-top: 1px solid #e4e6eb;
  flex-shrink: 0;
}
.bt__pw-in-box {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  background: #fff;
  border: 1px solid #d5d8de;
  border-radius: 22px;
  min-height: 44px;
  padding: 2px 6px;
}
.bt__pw-form input {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 12px;
  width: 100%;
  box-sizing: border-box;
  text-align: inherit;
}
.bt__pw-in input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 10px 8px;
  font-size: 13px;
  color: #111827;
}
.bt__pw-in input::placeholder { color: #8b9aa8; opacity: 1; }
.bt__pw-send {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: 0;
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
}
.bt__pw-send svg { width: 20px; height: 20px; fill: #fff; }
.bt__pw-send:disabled { opacity: 1; cursor: default; }
.bt__pw-panel[dir="rtl"] .bt__pw-send svg { transform: scaleX(-1); }
.bt__pw-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #54656f;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.bt__pw-ico svg { width: 20px; height: 20px; }
.bt__pw-form-go {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
.bt__pw-op {
  margin: 0;
  border: 0;
  background: #f0f2f5;
  padding: 8px;
  font-size: 11px;
  border-top: 1px solid #e4e6eb;
  flex-shrink: 0;
  color: #2563eb;
}
.bt__pw.is-mobile.is-open,
.bt__preview-browser.is-mobile .bt__pw.is-open {
  top: 0;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.bt__pw.is-mobile.is-open .bt__pw-dock,
.bt__preview-browser.is-mobile .bt__pw.is-open .bt__pw-dock {
  display: none;
}
.bt__pw.is-mobile.is-open .bt__pw-panel,
.bt__preview-browser.is-mobile .bt__pw.is-open .bt__pw-panel {
  width: 100%;
  max-width: none;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
}
.bt__pw-fab {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
}
.bt__pw-fab svg { width: 24px; height: 24px; pointer-events: none; }
.bt__pw-fab img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; pointer-events: none; }
.bt__pw-note {
  position: absolute;
  top: 42px;
  left: 10px;
  right: 10px;
  z-index: 4;
  text-align: center;
  font-size: 11px;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 6px 8px;
  pointer-events: none;
}

.bt__preview-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.bt__preview-sub {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
  line-height: 1.6;
}

.bt__preview-frame {
  background: #dbeafe;
  border-radius: 14px;
  padding: 14px;
  min-height: 680px;
}

.bt__preview-browser {
  background: #fff;
  border-radius: 12px;
  min-height: 640px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.bt__preview-url {
  padding: 10px 12px;
  border-bottom: 1px solid #eef0f3;
  font-size: 12px;
  color: #6b7280;
  text-align: left;
}

.bt__preview-chat {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.bt__bubble {
  background: #f3f4f6;
  border-radius: 14px 14px 14px 4px;
  padding: 10px 12px;
  font-size: 13px;
  color: #111827;
  max-width: 80%;
  align-self: flex-end;
}

.bt__fab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #111827;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  align-self: flex-start;
}

.bt__fab svg {
  width: 20px;
  height: 20px;
}

.bt__section-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.bt__section-sub {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.7;
  margin-bottom: 12px;
}

.bt__alert {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.bt__kb-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.bt__kb-toolbar select {
  min-width: 140px;
  width: auto;
}

.bt__search {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.bt__search svg {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #9ca3af;
}

.bt__search input {
  padding-right: 36px;
}

.bt__kb-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto minmax(140px, 200px);
  gap: 12px;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.bt__kb-check {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  min-width: 0;
}
.bt__kb-tpl {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
  background: #fff;
}
@media (max-width: 700px) {
  .bt__kb-item {
    grid-template-columns: 1fr;
  }
}

.bt__kb-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bt__kb-main strong {
  color: #111827;
  font-size: 14px;
}

.bt__kb-main span,
.bt__kb-count {
  font-size: 12px;
  color: #6b7280;
}

.bt__publish-block {
  margin-bottom: 12px;
}

.bt__publish-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.bt__publish-card {
  position: relative;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 140px;
}

.bt__publish-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bt__publish-icon svg {
  width: 20px;
  height: 20px;
}

.bt__publish-card strong {
  font-size: 14px;
  color: #111827;
}

.bt__publish-card span:not(.bt__soon) {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.6;
}

.bt__soon {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fef3c7;
  color: #b45309;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}

@media screen and (max-width: 1100px) {
  .bt__settings-layout {
    grid-template-columns: 1fr;
  }
  .bt__preview {
    position: static;
  }
  .bt__publish-grid,
  .bt__cap-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 700px) {
  .bt__form-grid,
  .bt__form-grid--3,
  .bt__publish-grid,
  .bt__cap-grid,
  .bt__collect {
    grid-template-columns: 1fr;
  }
  .bt__list .bt__card {
    flex-direction: column;
    align-items: stretch;
  }
  .bt__card-side {
    justify-content: space-between;
  }
  .bt__title { font-size: 22px; }
}
/* ===== Support Page ===== */
.page--support .content {
  justify-content: flex-start;
  align-items: stretch;
}

.page--support .content__full-container,
.sp {
  width: 97%;
  max-width: none;
  align-items: stretch;
  padding: 8px 8px 32px;
  gap: 10px !important;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  margin: 20px auto 0;
}

.sp__head {
  width: 100%;
  margin-bottom: 8px;
}

.sp__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
}

.sp__subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  color: #8b93a1;
}

.sp__section-title {
  width: 100%;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-top: 8px;
}

.sp__section-sub {
  width: 100%;
  margin: 0 0 8px;
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.7;
}

.sp__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.sp__card {
  position: relative;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 22px 18px 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.sp__card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.sp__ext {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #9ca3af;
}

.sp__ext svg {
  width: 100%;
  height: 100%;
}

.sp__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.sp__icon svg {
  width: 24px;
  height: 24px;
}

.sp__icon--telegram {
  background: #e8f4ff;
  color: #2aabee;
}

.sp__icon--whatsapp {
  background: #e9f8ef;
  color: #25d366;
}

.sp__icon--bale {
  background: #eef6ff;
  color: #3b82f6;
}

.sp__card-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.sp__card-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.7;
  flex: 1;
}

.sp__card-handle {
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  margin-top: 4px;
  direction: ltr;
  text-align: right;
}

.sp__card--whatsapp .sp__card-handle {
  color: #059669;
}

@media screen and (max-width: 900px) {
  .sp__grid {
    grid-template-columns: 1fr;
  }
  .sp__title {
    font-size: 22px;
  }
}
/* ===== Finance Module ===== */
.page--finance .content {
  justify-content: flex-start;
  align-items: stretch;
}

.page--finance .content__full-container,
.fn {
  width: 97%;
  max-width: none;
  align-items: stretch;
  padding: 8px 8px 32px;
  gap: 16px !important;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  margin: 20px auto 0;
}

.fn__head { width: 100%; }

.fn__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
}

.fn__subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  color: #8b93a1;
}

.fn__section-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 4px 0 10px;
}

.fn__card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
  width: 100%;
}

.fn__current {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.fn__current-card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fn__current-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.fn__mod-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fn__mod-icon svg { width: 20px; height: 20px; }

.fn__current-name {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.fn__current-status {
  font-size: 12px;
  color: #059669;
  margin-top: 4px;
}

.fn__current-status.is-off { color: #9ca3af; }

.fn__btn-primary,
.fn__btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.fn__btn-primary {
  border: none;
  background: #2563eb;
  color: #fff;
}

.fn__btn-primary:hover { background: #1d4ed8; }

.fn__btn-outline {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
}

.fn__btn-outline:hover {
  border-color: #93c5fd;
  color: #2563eb;
}

.fn__btn-outline svg,
.fn__btn-primary svg {
  width: 15px;
  height: 15px;
}

.fn__btn-block { width: 100%; margin-top: 8px; }

.fn__checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 14px;
  width: 100%;
  align-items: start;
}

.fn__select-col,
.fn__invoice {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 16px;
}

.fn__module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.fn__module-card {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  background: #fff;
}

.fn__module-card input {
  position: absolute;
  top: 12px;
  left: 12px;
  accent-color: #2563eb;
}

.fn__module-card.is-selected {
  border-color: #2563eb;
  background: #f8fbff;
  box-shadow: 0 0 0 1px #2563eb inset;
}

.fn__module-card strong {
  font-size: 15px;
  color: #111827;
}

.fn__module-card span {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
}

.fn__module-card em {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  margin-top: 4px;
}

.fn__duration-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.fn__duration {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  background: #fff;
}

.fn__duration input { display: none; }

.fn__duration.is-selected {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 1px #2563eb inset;
}

.fn__duration strong {
  font-size: 13px;
  color: #111827;
}

.fn__badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #f59e0b;
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.fn__discount {
  display: flex;
  gap: 8px;
  align-items: center;
}

.fn__discount input {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

.fn__discount input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.fn__invoice-empty {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  color: #9ca3af;
  padding: 20px;
}

.fn__invoice-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.fn__invoice-icon svg { width: 28px; height: 28px; }

.fn__invoice-empty strong {
  color: #374151;
  font-size: 14px;
}

.fn__invoice-empty span {
  font-size: 12px;
  line-height: 1.7;
  max-width: 220px;
}

.fn__empty {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
}

.fn__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.fn__stat {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.fn__stat--pending {
  background: #fffbeb;
  border-color: #fde68a;
}

.fn__stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fn__stat--pending .fn__stat-icon {
  background: #fef3c7;
  color: #d97706;
}

.fn__stat--income .fn__stat-icon {
  background: #ecfdf5;
  color: #059669;
}

.fn__stat--refs .fn__stat-icon {
  background: #f5f3ff;
  color: #7c3aed;
}

.fn__stat-icon svg { width: 18px; height: 18px; }

.fn__stat-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.fn__stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.fn__ref-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fn__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.fn__field label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.fn__field input,
.fn__field select {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
  background: #fff;
}

.fn__field input:focus,
.fn__field select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.fn__copy-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
  padding: 6px 8px 6px 6px;
}

.fn__copy-box code {
  flex: 1;
  font-size: 12px;
  color: #111827;
  overflow: auto;
  white-space: nowrap;
  padding: 0 6px;
}

.fn__copy-box .fn__btn-primary {
  flex-shrink: 0;
  padding: 8px 12px;
}

.fn__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 14px;
  width: 100%;
  align-items: start;
}

.fn__balance {
  color: #059669;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

@media screen and (max-width: 1100px) {
  .fn__checkout,
  .fn__bottom,
  .fn__stats {
    grid-template-columns: 1fr 1fr;
  }
  .fn__duration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 700px) {
  .fn__current,
  .fn__checkout,
  .fn__module-grid,
  .fn__ref-grid,
  .fn__bottom,
  .fn__stats,
  .fn__duration-grid {
    grid-template-columns: 1fr;
  }
  .fn__title { font-size: 22px; }
}

/* ===== KB JSON Upload ===== */
.dbd__upload-setting {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dbd__upload-setting .db-modal__input {
  flex: 1;
}
.dbd__import-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #eff6ff;
  flex-wrap: wrap;
}
.dbd__import-banner.d-none { display: none; }
.dbd__import-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 180px;
  flex: 1;
}
.dbd__import-banner-copy strong {
  font-size: 13px;
  color: #1e3a8a;
}
.dbd__import-banner-copy span {
  font-size: 12px;
  color: #64748b;
}
.dbd__progress-bar--banner {
  flex: 1;
  min-width: 140px;
  height: 8px;
}
.dbd__import-banner > strong {
  color: #2563eb;
  font-size: 13px;
  flex: none;
}
.dbd__dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 148px;
  padding: 20px 16px;
  border: 1.5px dashed #d1d5db;
  border-radius: 16px;
  background: #f8fafc;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s ease, background .15s ease;
}
.dbd__dropzone:hover,
.dbd__dropzone.is-drag {
  border-color: #2563eb;
  background: #eff6ff;
}
.dbd__dropzone.has-file {
  min-height: 0;
  padding: 12px;
  align-items: stretch;
}
.dbd__dropzone-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.dbd__dropzone-icon {
  width: 40px;
  height: 40px;
  color: #2563eb;
  display: inline-flex;
}
.dbd__dropzone-icon svg { width: 100%; height: 100%; }
.dbd__dropzone-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}
.dbd__dropzone-sub {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.6;
}
.dbd__dropzone.has-file .dbd__dropzone-icon,
.dbd__dropzone.has-file .dbd__dropzone-title,
.dbd__dropzone.has-file .dbd__dropzone-sub {
  display: none;
}
.dbd__dropzone-file {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  text-align: right;
}
.dbd__dropzone-file.d-none { display: none; }
.dbd__dropzone-file-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.dbd__dropzone-file-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dbd__dropzone-file-meta strong {
  font-size: 13px;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dbd__dropzone-file-meta em {
  font-style: normal;
  font-size: 12px;
  color: #9ca3af;
}
.dbd__dropzone-clear {
  flex: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.dbd__dropzone-clear:hover { background: #fee2e2; color: #dc2626; }
.db-modal--upload .popup__body-container {
  max-height: 70vh;
  overflow: auto;
}
.dbd__embed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dbd__embed-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.dbd__embed-link {
  border: 0;
  background: none;
  padding: 0;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.dbd__embed-link:hover {
  text-decoration: underline;
}
.dbd__embed-fields {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 240px;
  overflow: auto;
  padding: 8px 10px;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  background: #f8fafc;
}
.dbd__embed-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  border-radius: 8px;
}
.dbd__embed-item:hover {
  background: #eef2ff;
}
.dbd__embed-item input {
  margin: 0;
}
.dbd__embed-item code {
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #111827;
}
.dbd__upload-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.6;
}
.dbd__progress {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  background: #f8fafc;
}
.dbd__progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #374151;
}
.dbd__progress-head strong {
  color: #2563eb;
  font-weight: 700;
}
.dbd__progress-bar {
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}
.dbd__progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  border-radius: 999px;
  transition: width .2s ease;
}
.content__full-container{
  width: 97%!important;
  margin: auto;
}

/* Settings accordion cards */
.dbd__settings-card.dbd__settings-acc {
  padding: 0;
  overflow: hidden;
}
.dbd__settings-acc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: right;
  font: inherit;
  color: inherit;
}
.dbd__settings-acc-toggle:hover {
  background: #fafbfc;
}
.dbd__settings-acc .dbd__settings-card-head {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
  pointer-events: none;
}
.dbd__settings-acc-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}
.dbd__settings-acc-title strong {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}
.dbd__settings-acc-title span {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 400;
}
.dbd__settings-acc-chevron {
  width: 20px;
  height: 20px;
  flex: none;
  color: #9ca3af;
  display: inline-flex;
  transition: transform 0.18s ease, color 0.18s ease;
}
.dbd__settings-acc-chevron svg { width: 100%; height: 100%; }
.dbd__settings-acc:not(.is-collapsed) .dbd__settings-acc-chevron {
  transform: rotate(180deg);
  color: #7c3aed;
}
.dbd__settings-acc-body {
  padding: 0 18px 18px;
  border-top: 1px solid #eef0f3;
}
.dbd__settings-acc-body[hidden] { display: none !important; }
.dbd__settings-acc-body > .dbd__settings-card {
  margin-top: 12px;
  box-shadow: none;
}
.dbd__settings-acc-body > .dbd__settings-card:first-child {
  margin-top: 14px;
}

/* ===== Analytics Module ===== */
.page--analytics .content {
  justify-content: flex-start;
  align-items: stretch;
}

.page--analytics .content__full-container,
.an {
  width: 97%;
  max-width: none;
  align-items: stretch;
  padding: 8px 8px 32px;
  gap: 18px !important;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  margin: 20px auto 0;
}

.an__head,
.an__tabs,
.an__stats,
.an__grid,
.an__card,
.an__search,
.an__hint,
.an__form {
  width: 100%;
}

.an__head { display: flex; justify-content: space-between; gap: 16px; }
.an__title { margin: 0; font-size: 26px; font-weight: 700; color: #111827; }
.an__subtitle { margin: 6px 0 0; color: #8b93a1; font-size: 14px; }
.an__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.an__tab {
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e8eaee;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.an__tab.is-active { background: #111827; color: #fff; border-color: #111827; }
button.an__tab { cursor: pointer; font-family: inherit; background: #fff; }
.spc-tabs { margin: 0 0 16px; }
.spc-panel { width: 100%; display: flex;
  flex-direction: column;
  gap: 16px;}
.spc-check { margin: 10px 0 14px; }
[data-spc-panel="channels"] .block__container,
[data-spc-panel="keys"] .block__container {
  align-items: stretch;
}
[data-spc-panel="channels"] .block__head-title {
  width: 100%;
  text-align: right;
  direction: rtl;
}
[data-spc-panel="channels"] .spc-check {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  direction: rtl;
  text-align: right;
}
.spc-key { margin: 16px 0; width: 100%; }
.spc-key label { display: block; font-weight: 700; color: #111827; margin-bottom: 8px; }
.spc-key__row { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; width: 100%; }
.spc-key__row .hoosh-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  direction: ltr;
  text-align: left;
}
.spc-key__row .button__small { flex: none; }
.an__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.an__stat {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}
.an__stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: #f3f4f6;
  color: #64748b;
}
.an__stat-icon svg { width: 22px; height: 22px; }
.an__stat-icon--blue { background: #e8f1ff; color: #3b82f6; }
.an__stat-icon--purple { background: #f1e9ff; color: #8b5cf6; }
.an__stat-icon--green { background: #e7f8ef; color: #10b981; }
.an__stat-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.an__stat span { color: #8b93a1; font-size: 13px; font-weight: 500; }
.an__stat strong { font-size: 22px; color: #111827; font-weight: 700; }
.an__card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 16px 18px;
}
.an__card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111827;
}
.an__card-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.an__card-icon svg { width: 18px; height: 18px; }
.an__card-icon--blue { background: #e8f1ff; color: #3b82f6; }
.an__card-icon--purple { background: #f1e9ff; color: #8b5cf6; }
.an__card-icon--green { background: #e7f8ef; color: #10b981; }
.an__card-icon--orange { background: #fff7ed; color: #f59e0b; }
.an__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.an__grid--kpi { grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr); align-items: stretch; }
.an__kpi { display: flex; flex-direction: column; justify-content: center; min-height: 200px; }
.an__kpi-value { font-size: 36px; font-weight: 800; color: #111827; margin-top: 4px; }
.an__pie {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  min-height: 180px;
}
.an__pie-chart { width: 180px; height: 180px; flex: none; overflow: visible; }
.an__pie-slice { cursor: pointer; transition: opacity 0.15s ease, filter 0.15s ease; }
.an__pie-slice.is-active { filter: brightness(1.08); }
.an__pie-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 160px;
}
.an__pie-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #374151;
  cursor: pointer;
  border-radius: 8px;
  padding: 5px 6px;
  margin-inline: -6px;
}
.an__pie-legend li:hover,
.an__pie-legend li.is-active {
  background: #f8fafc;
}
.an__pie-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: none;
}
.an__pie-legend em {
  font-style: normal;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.an__pie-legend strong { flex: none; color: #111827; }
.an__pie-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: 1;
  min-width: 0;
  direction: rtl;
  text-align: right;
}
.an__pie-title {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}
.an__pie-copy .an__pages-path {
  max-width: 100%;
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}
.an__pie--rtl .an__pie-legend,
.an__pie--rtl .an__pie-legend li,
.an__pie--rtl .an__pie-legend em {
  direction: rtl;
  text-align: right;
}
.an__pie--ltr .an__pie-legend,
.an__pie--ltr .an__pie-legend li,
.an__pie--ltr .an__pie-legend em,
.an__pie--ltr .an__pie-legend strong {
  direction: ltr;
  text-align: left;
}
.an__pie--ltr .an__pie-legend li {
  flex-direction: row;
  justify-content: flex-start;
}
.an__pie--ltr .an__pie-copy,
.an__pie--ltr .an__pie-title {
  direction: rtl;
  text-align: right;
}
.an__pie--ltr .an__pie-copy .an__pages-path {
  direction: ltr;
  text-align: left;
}
.an__pie--lg {
  align-items: center;
  gap: 28px;
}
.an__pie--lg .an__pie-chart {
  width: 300px;
  height: 300px;
}
.an__pie--lg .an__pie-legend {
  flex: 0 1 340px;
  max-width: 340px;
  min-width: 0;
}
.an__pie--lg .an__pie-legend li {
  font-size: 11px;
  padding: 3px 4px;
}
.an__pie--lg .an__pie-title {
  font-size: 12px;
}
.an__pie--lg .an__pie-copy .an__pages-path {
  font-size: 10px;
}
.an__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.an__table th, .an__table td { text-align: right; padding: 8px 6px; border-bottom: 1px solid #f1f5f9; }
.an__th-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.an__th-sort {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  white-space: nowrap;
}
.an__th-sort::after {
  content: '';
  width: 0;
  height: 0;
  border-inline-start: 4px solid transparent;
  border-inline-end: 4px solid transparent;
  border-top: 5px solid #d1d5db;
  opacity: .7;
}
.an__th-sort.is-desc::after {
  border-top-color: #111827;
  opacity: 1;
}
.an__th-sort.is-asc::after {
  border-top: 0;
  border-bottom: 5px solid #111827;
  opacity: 1;
}
.an__th-sort:hover { color: #2563eb; }
.an__th-help {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 999px;
}
.an__th-help svg { width: 14px; height: 14px; display: block; }
.an__th-help:hover,
.an__th-help:focus {
  color: #2563eb;
  outline: none;
  background: #e8f1ff;
}
.an__col-float {
  position: fixed;
  z-index: 9999;
  max-width: 240px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.96);
  color: #f9fafb;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.32);
  pointer-events: none;
  direction: rtl;
  text-align: right;
  backdrop-filter: blur(8px);
}
.an__col-float[hidden] { display: none !important; }
.an__table code, .an code { font-size: 12px; }
.an__empty { color: #9ca3af; font-size: 13px; margin: 0; }
.an__chart { min-height: 220px; }
.an__list, .an__stream { list-style: none; margin: 0; padding: 0; }
.an__list li, .an__stream li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.an__form { display: flex; flex-direction: column; gap: 8px; }
.an__form input, .an__form textarea, .an__form select {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
}
.an__check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #374151; }
.an__btn-ghost {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  color: #374151;
  cursor: pointer;
}
.an__btn-ghost--danger { color: #b91c1c; border-color: #fecaca; }
.an__ops { display: flex; flex-wrap: wrap; gap: 6px; }
.an__event-name { display: flex; flex-direction: column; gap: 2px; }
.an__event-name strong { font-size: 13px; color: #111827; }
.an__kind {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}
.an__kind--system { background: #e8f1ff; color: #1d4ed8; }
.an__kind--custom { background: #fef3c7; color: #b45309; }
.an__kind--known { background: #e7f8ef; color: #15803d; }
.an__kind--anonymous { background: #f3f4f6; color: #6b7280; }
.an__user {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.an__user strong {
  font-size: 13px;
  color: #111827;
  word-break: break-word;
}
.an__user strong[dir="ltr"] { text-align: right; }
.an__user:hover strong { color: #2563eb; }
.an__user-id {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
  direction: ltr;
  text-align: right;
  word-break: break-all;
}
.an__user-channels { margin: 0 0 14px; }
.an__ch { display: inline-flex; align-items: center; gap: 6px; }
.an__card .an__ch .an__ctx-icon { width: 40px; height: 40px; }
.an__card .an__ch .an__ctx-icon svg { width: 20px; height: 20px; }
.an__ch-legend {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.an__ch-legend li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: #6b7280;
}
.an__ch-legend li.is-on strong { color: #15803d; }
.an__ch-legend li.is-off strong { color: #9ca3af; }
.an__ch-icon.is-off {
  background: #f3f4f6;
  color: #d1d5db;
}
.an__ch-icon--sms.is-on { background: #e7f8ef; color: #15803d; }
.an__ch-icon--email.is-on { background: #e8f1ff; color: #2563eb; }
.an__ch-icon--push.is-on { background: #f1e9ff; color: #7c3aed; }
.an__ch-icon--whatsapp.is-on { background: #e7f8ef; color: #128c7e; }
.an__stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.an__stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.an__stats--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.an__stat-icon--amber { background: #fff4df; color: #f59e0b; }
.an__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}
.an__toolbar input[type="search"],
.an__toolbar select {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  color: #374151;
}
.an__toolbar input[type="search"] { flex: 1; min-width: 200px; }
.an__grid--charts { grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr); align-items: stretch; }
.an__spark { display: inline-block; width: 84px; height: 28px; vertical-align: middle; }
.an__spark svg { display: block; }
.an__reach { font-weight: 700; color: #1d4ed8; }
.an__last {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.35;
}
.an__last-date,
.an__last-time { display: block; }
.an__last-time { color: #9ca3af; font-size: 11px; }
.an__section { margin-top: 8px; }
.an__section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  margin: 4px 0 8px;
}
.an__filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.an__custom-range {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
}
.an__custom-range.is-active { border-color: #111827; }
.an__custom-range label { font-size: 12px; color: #6b7280; }
.an__custom-range input[type="date"] {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  font-family: inherit;
}
.an__range-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}
.an__back { margin: 0 0 12px; }
.an__back a {
  color: #6b7280;
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
}
.an__back a:hover { color: #111827; }
.an__hits { display: flex; flex-direction: column; gap: 12px; }
.an__hit {
  margin-bottom: 0;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fafbfc;
}
.an__hit-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 13px;
}
.an__hit-head strong {
  font-variant-numeric: tabular-nums;
}
.an__ctx {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.an__ctx-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: default;
}
.an__ctx-icon svg { width: 16px; height: 16px; }
.an__ctx-icon--web { background: #e8f1ff; color: #2563eb; }
.an__ctx-icon--desktop { background: #eef2ff; color: #4338ca; }
.an__ctx-icon--mobile { background: #ecfeff; color: #0e7490; }
.an__ctx-icon--tablet { background: #f5f3ff; color: #6d28d9; }
.an__ctx-icon--firefox { background: #fff1e8; color: #ea580c; }
.an__ctx-icon--chrome { background: #e7f8ef; color: #059669; }
.an__ctx-icon--safari { background: #e8f1ff; color: #2563eb; }
.an__ctx-icon--edge { background: #e8f1ff; color: #1d4ed8; }
.an__ctx-icon--ie { background: #eef2ff; color: #4338ca; }
.an__ctx-icon--windows { background: #e8f1ff; color: #2563eb; }
.an__ctx-icon--macos { background: #f3f4f6; color: #111827; }
.an__ctx-icon--linux { background: #fff7ed; color: #c2410c; }
.an__ctx-icon--android { background: #e7f8ef; color: #15803d; }
.an__ctx-icon--ios { background: #f3f4f6; color: #111827; }
.an__ctx-icon[data-tip]:hover::after,
.an__ctx-icon[data-tip]:focus::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  padding: 5px 8px;
  border-radius: 8px;
  white-space: nowrap;
  z-index: 8;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}
.an__ctx-icon[data-tip]:hover::before,
.an__ctx-icon[data-tip]:focus::before {
  content: '';
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #111827;
  z-index: 8;
}
.an__kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 6px 12px;
  margin: 0 0 12px;
  font-size: 13px;
}
.an__kv dt { color: #6b7280; }
.an__kv dd { margin: 0; min-width: 0; word-break: break-word; }
.an__kv dd .an__url {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.an__kv + .an__card-title {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid #f3f4f6;
}
.an__pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 16px 0 8px;
}
.an__catalog-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}
.an__catalog-count {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}
.an__catalog-limit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}
.an__catalog-limit select {
  min-width: 72px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  font-weight: 700;
}
.an__catalog-foot .an__pager { margin: 0; }
.an__card-head .sm__rt-excel { flex: none; }
.an__pager a, .an__pager span {
  min-width: 36px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  text-align: center;
  text-decoration: none;
  color: #374151;
  font-size: 13px;
  background: #fff;
}
.an__pager span.is-active { background: #111827; color: #fff; border-color: #111827; }
.an__modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.an__modal[hidden] { display: none !important; }
.an__modal-scrim { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.4); }
.an__modal-box {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}
.an__pre {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  overflow: auto;
  font-size: 12px;
  white-space: pre-wrap;
}
.an__json-acc {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.an__json-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: none;
  background: transparent;
  padding: 10px 12px;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  text-align: right;
}
.an__json-toggle:hover { background: #f8fafc; }
.an__json-chevron {
  width: 18px;
  height: 18px;
  color: #9ca3af;
  flex: none;
  display: inline-flex;
  transition: transform 0.18s ease;
}
.an__json-chevron svg { width: 100%; height: 100%; }
.an__json-acc:not(.is-collapsed) .an__json-chevron {
  transform: rotate(180deg);
  color: #2563eb;
}
.an__json-body {
  border-top: 1px solid #eef0f3;
  padding: 10px;
}
.an__json-body[hidden] { display: none !important; }
.an__json-body .an__pre { margin: 0; }
.an__hint { font-size: 12px; color: #9ca3af; }
.an__cred { display: flex; flex-direction: column; gap: 10px; }
.an__cred label { display: block; font-size: 12px; color: #6b7280; margin-bottom: 4px; }
.page--analytics .sm__card,
.page--analytics .sm__section-title { width: 100%; box-sizing: border-box; }
.page--analytics .sm__code-tabs { flex-wrap: wrap; }
.page--analytics .sm__code[hidden] { display: none !important; }
.an__search { display: flex; gap: 8px; }
.an__search input { flex: 1; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; }
.an__funnel { list-style: none; margin: 0; padding: 0; }
.an__funnel li { position: relative; margin-bottom: 10px; padding: 10px 12px; }
.an__funnel-bar {
  position: absolute; inset: 0;
  background: rgba(37, 99, 235, 0.12);
  border-radius: 10px;
  max-width: 100%;
}
.an__funnel strong, .an__funnel span { position: relative; }
.an__funnel-select { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.an__funnel-select a {
  padding: 6px 10px; border-radius: 8px; border: 1px solid #e5e7eb; text-decoration: none; color: #374151; font-size: 12px;
}
.an__funnel-select a.is-active { background: #111827; color: #fff; }
.an-fn__head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}
.an-fn__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.an-fn__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.an-fn__chip span { color: #94a3b8; font-size: 12px; font-weight: 500; }
.an-fn__chip.is-on { background: #111827; color: #fff; border-color: #111827; }
.an-fn__chip.is-on span { color: #cbd5e1; }
.an-fn__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.an-fn__meta strong { font-size: 16px; color: #111827; margin-left: 8px; }
.an-fn__meta span { color: #64748b; font-size: 13px; margin-left: 10px; }
.an-fn__meta-actions { display: flex; gap: 8px; }
.an-fn__legend { display: flex; gap: 14px; font-size: 12px; font-weight: 600; color: #2563eb; }
.an-fn__legend .is-drop { color: #ef4444; }
.an-fn__viz { width: 100%; min-height: 120px; }
.an-fn__svg { display: block; width: 100%; height: auto; }
.an-fn__svg-track { fill: #f1f5f9; }
.an-fn__svg-bar { fill: #60a5fa; }
.an-fn__svg-label { font-size: 12px; fill: #0f172a; font-weight: 700; }
.an-fn__svg-meta { font-size: 11px; fill: #64748b; }
.an-fn__svg-drop { font-size: 11px; fill: #ef4444; font-weight: 700; }
.an-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.an-modal[hidden] { display: none !important; }
.an-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .48);
}
.an-modal__box {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
}
.an-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.an-modal__head h2 { margin: 0; font-size: 18px; }
.an-modal__x {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}
.an-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.an__muted { color: #94a3b8; }
.an-ua__actions { display: flex; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.an-fn-form { display: flex; flex-direction: column; gap: 10px; }
.an-fn-form input[type="text"],
.an-fn-form input[type="number"],
.an-fn-form select {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13px;
  width: 100%;
  background: #fff;
}
.an-fn-form__label { font-size: 13px; font-weight: 700; color: #111827; }
.an-fn-form__label-row { display: flex; flex-direction: column; gap: 2px; }
.an-fn-form__label-row small { color: #94a3b8; font-size: 12px; }
.an-fn-form__hint { margin: 6px 0 0; font-size: 12px; color: #94a3b8; }
.an-fn-form__grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 12px;
}
.an-fn-form__inline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.an-fn-form__inline span { font-size: 13px; color: #64748b; white-space: nowrap; }
.an-fn-form__inline input { width: 88px; }
.an-fn-steps { display: flex; flex-direction: column; gap: 8px; }
.an-fn-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 32px 32px 32px;
  gap: 6px;
  align-items: center;
}
.an-fn-step__n {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.an-fn-step__up,
.an-fn-step__down,
.an-fn-step__del {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  height: 32px;
  cursor: pointer;
  color: #64748b;
}
.an-fn-step__del { color: #dc2626; }
.an-fn-add {
  border: 1px dashed #c7d2fe;
  background: #eef2ff;
  color: #4338ca;
  border-radius: 10px;
  padding: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 720px) {
  .an-fn-form__grid { grid-template-columns: 1fr; }
  .an-fn__head-actions { width: 100%; }
}
.an__range { align-items: flex-end; }
.an__card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.an__card-head .an__card-title { margin-bottom: 0; }
.an__legend { display: flex; gap: 14px; font-size: 12px; color: #6b7280; font-weight: 600; }
.an__legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}
.an__card--chart { overflow: visible; }
.an__chart { min-height: 240px; }
.an__table-wrap { overflow-x: auto; }
.an__table-wrap--clip { overflow-x: hidden; }
.an__pages {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 20px;
  padding: 16px 18px 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.an__pages-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.an__pages-head .sm__rt-excel { flex: none; margin-top: 2px; }
.an__pages .an__catalog-foot { margin-top: auto; padding-top: 12px; }
.an__pages-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #111827;
  font-size: 16px;
}
.an__pages-pin {
  width: 22px;
  height: 22px;
  color: #2563eb;
  display: inline-flex;
}
.an__pages-pin svg { width: 22px; height: 22px; }
.an__pages-meta { font-size: 12px; color: #9ca3af; }
.an__pages-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.an__pages-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  min-width: 0;
}
.an__pages-list li.is-top { background: #e8f1ff; }
.an__pages-path {
  display: inline-block;
  background: #e8f1ff;
  color: #1e3a8a;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
  max-width: 100%;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}
a.an__pages-path:hover { color: #1d4ed8; }
.an__pages-list li.is-top .an__pages-path { background: #dbeafe; }
.an__table .an__pages-path {
  max-width: 100%;
  background: transparent;
  padding: 0;
  color: #64748b;
  font-weight: 600;
  font-size: 12px;
}
.an__table--pages { table-layout: fixed; }
.an__table--pages th:first-child,
.an__table--pages td:first-child { width: 32%; }
.an__table--pages td:first-child { overflow: hidden; }
.an__table--pages .an__page-name strong,
.an__table--pages .an__pages-path {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.an__table--attrs,
.an__table--seen { table-layout: fixed; }
.an__table--attrs th:first-child,
.an__table--attrs td:first-child { width: 38%; }
.an__table--attrs td { overflow: hidden; }
.an__attr-val {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.an__table--seen th:first-child,
.an__table--seen td:first-child { width: 62%; overflow: hidden; }
.an__table--seen .an__page-name strong,
.an__table--seen .an__pages-path {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.an__table--sessions {
  table-layout: fixed;
  width: 100%;
}
.an__table--sessions th:nth-child(2),
.an__table--sessions td.an__land {
  width: 220px;
  max-width: 220px;
  overflow: hidden;
}
.an__table--sessions .an__page-name,
.an__table--sessions .an__page-name strong,
.an__table--sessions .an__pages-path {
  display: block;
  width: 100%;
  max-width: 220px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.an__page-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.an__page-name strong {
  font-size: 13px;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.an__pages-list .an__page-name { flex: 1 1 auto; max-width: 100%; }
.an__pages-list .an__page-name strong {
  display: block;
  max-width: 100%;
}
.an__pages-list--named li {
  align-items: flex-start;
}
.an__pages-list--named .an__page-name {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  min-width: 0;
}
.an__pages-list--named .an__page-title {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: #111827;
}
.an__pages-list--named .an__pages-count {
  margin-top: 2px;
}
.an__pages-list .an__page-name .an__pages-path,
.an__pages-list li.is-top .an__page-name .an__pages-path {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}
.an__pages-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #111827;
  font-size: 13px;
  white-space: nowrap;
  flex: none;
}
.an__pages-list li.is-top .an__pages-count {
  background: #c7d7fe;
  border-radius: 10px;
  padding: 4px 10px;
  font-weight: 700;
}
.an__pages-chevron { color: #64748b; font-size: 16px; }
@media (max-width: 1100px) {
  .an__stats--4, .an__grid--charts { grid-template-columns: 1fr 1fr; }
  .an__stats--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .an__stats, .an__grid, .an__grid--kpi, .an__stats--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .an__stats, .an__grid, .an__grid--kpi, .an__grid--charts, .an__stats--4, .an__stats--6 { grid-template-columns: 1fr; }
}

/* ===== Marketing segments ===== */
.page--marketing .content {
  justify-content: flex-start;
  align-items: stretch;
}
.page--marketing .content__full-container,
.mk {
  width: 97%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-sizing: border-box;
  margin: 20px auto 0;
  padding: 8px 8px 32px;
  align-items: stretch;
}
.mk__head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.mk__title { margin: 0; font-size: 26px; font-weight: 700; color: #111827; }
.mk__subtitle { margin: 6px 0 0; color: #8b93a1; font-size: 14px; }
.mk__back { margin: 0; }
.mk__back a { color: #2563eb; font-weight: 600; text-decoration: none; }
.mk__list, .mk__card, .mk__empty-card, .mk__grid, .mk__foot { width: 100%; }
.mk__card, .mk__empty-card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}
.mk__list { display: flex; flex-direction: column; gap: 10px; }
.mk__list .mk__card {
  display: flex;
  align-items: center;
  gap: 16px;
}
.mk__card-main { flex: 1; min-width: 0; }
.mk__card-name {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
}
.mk__card-name:hover { color: #2563eb; }
.mk__card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
}
.mk__pill {
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
}
.mk__pill--live { background: #ecfdf5; color: #059669; }
.mk__pill--snapshot { background: #eff6ff; color: #2563eb; }
.mk__pill--paused { background: #fff7ed; color: #c2410c; }
.mk__card-count { text-align: center; min-width: 72px; }
.mk__card-count strong { display: block; font-size: 22px; color: #111827; }
.mk__card-count span { font-size: 12px; color: #6b7280; }
.mk__card-actions { display: flex; gap: 8px; }
.mk__link, .mk__danger, .mk__add {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: #374151;
}
.mk__danger { color: #dc2626; }
.mk__empty { margin: 0; color: #9ca3af; }
.mk__live-count {
  background: #111827;
  color: #fff;
  border-radius: 16px;
  padding: 12px 18px;
  min-width: 180px;
  text-align: center;
}
.mk__live-count strong { display: block; font-size: 28px; }
.mk__live-count span { font-size: 12px; opacity: 0.8; }
.mk__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 16px;
}
.mk__label {
  display: block;
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}
.mk__card-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.mk__modes { display: flex; flex-direction: column; gap: 8px; }
.mk__mode {
  display: flex;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
.mk__mode:has(input:checked) {
  border-color: #93c5fd;
  background: #eff6ff;
}
.mk__mode strong { display: block; }
.mk__mode em { display: block; font-style: normal; font-size: 12px; color: #6b7280; line-height: 1.6; margin-top: 4px; }
.mk__rules { display: flex; flex-direction: column; gap: 10px; }
.mk__rule {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px;
}
.mk__rule select,
.mk__rule input {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
  background: #fff;
  min-width: 120px;
}
.mk__rule-n { font-size: 12px; color: #2563eb; font-weight: 700; }
.mk__rule-del {
  margin-right: auto;
  border: none;
  background: #fff;
  color: #ef4444;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
}
.mk__dates {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.mk__dates input[type="text"] {
  min-width: 118px;
  width: 124px;
}
.mk__add {
  margin-top: 12px;
  color: #2563eb;
  border-color: #bfdbfe;
}
.mk__foot { display: flex; justify-content: flex-start; }
.mk__sample-card { margin-top: 4px; }
.mk__sample-meta {
  margin: -6px 0 10px;
  font-size: 12px;
  color: #9ca3af;
}
.mk__sample-meta:empty { display: none; }
.mk__sample {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mk__sample li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 12px;
}
.mk__sample-user {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mk__sample-user strong {
  font-size: 14px;
  color: #111827;
}
.mk__sample-user:hover strong { color: #2563eb; }
.mk__sample-sub { font-size: 12px; color: #6b7280; }
.mk__sample-kind {
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}
.mk__sample-kind--known { background: #ecfdf5; color: #059669; }
.mk__sample-kind--anonymous { background: #f3f4f6; color: #6b7280; }
.mk__sample-seen { font-size: 12px; color: #9ca3af; white-space: nowrap; }
@media (max-width: 900px) {
  .mk__grid { grid-template-columns: 1fr; }
  .mk__list .mk__card { flex-wrap: wrap; }
  .mk__sample li { flex-wrap: wrap; }
}

.mk__pill--ch { background: #eef2ff; color: #4338ca; }
.mk__pill--draft { background: #f3f4f6; color: #4b5563; }
.mk__pill--scheduled { background: #eff6ff; color: #1d4ed8; }
.mk__pill--running { background: #ecfdf5; color: #047857; }
.mk__pill--paused { background: #fff7ed; color: #c2410c; }
.mk__pill--done { background: #f5f3ff; color: #6d28d9; }
.mk__pill--stopped { background: #fef2f2; color: #b91c1c; }
.mk__foot { gap: 10px; flex-wrap: wrap; align-items: center; }

.cmp__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, .9fr);
  gap: 16px;
  width: 100%;
  align-items: start;
}
.cmp__main, .cmp__side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cmp__channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cmp__ch {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  background: #fff;
}
.cmp__ch input { position: absolute; opacity: 0; pointer-events: none; }
.cmp__ch strong { font-size: 14px; color: #111827; }
.cmp__ch em { font-style: normal; font-size: 12px; color: #6b7280; line-height: 1.55; }
.cmp__ch.is-on, .cmp__ch:has(input:checked) {
  border-color: #93c5fd;
  background: #f8fbff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}
.cmp__row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.cmp__row-head .mk__label { margin: 0; }
.cmp__mini {
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}
.cmp__hint { margin: 0 0 10px; font-size: 13px; color: #64748b; }
.cmp__hint a { color: #2563eb; font-weight: 700; }
.cmp__quiet { margin: 12px 0 0; font-size: 12px; color: #64748b; }
.cmp__quiet a { color: #2563eb; font-weight: 600; }
.cmp__tpl-preview { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.cmp__msg {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 10px 12px;
}
.cmp__msg-k { font-size: 11px; font-weight: 700; color: #64748b; margin-bottom: 4px; }
.cmp__msg p { margin: 0; font-size: 13px; color: #0f172a; line-height: 1.7; }
.cmp__range { width: 100%; accent-color: #2563eb; }
.cmp__when { margin-top: 12px; }
.cmp__check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cmp__check li { font-size: 13px; color: #94a3b8; }
.cmp__check li.is-ok { color: #047857; font-weight: 600; }
.cmp__status { display: inline-flex; align-self: flex-start; }
.cmp__reach { margin: 0 0 10px; font-size: 13px; color: #334155; }
.cmp__kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cmp__kpis strong { display: block; font-size: 20px; color: #111827; }
.cmp__kpis span { font-size: 12px; color: #6b7280; }
.cmp__table-wrap { overflow-x: auto; }
.cmp__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmp__table th, .cmp__table td { text-align: right; padding: 8px 6px; border-bottom: 1px solid #f1f5f9; }
.cmp__table th { color: #64748b; font-weight: 700; }
@media (max-width: 960px) {
  .cmp__layout, .cmp__channels { grid-template-columns: 1fr; }
}

.tpl__toolbar {
  display: flex;
  gap: 8px;
  width: 100%;
  flex-wrap: wrap;
}
.tpl__toolbar input[type="search"] {
  flex: 1;
  min-width: 200px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 9px 12px;
  font-family: inherit;
}
.tpl__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tpl__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.tpl__chip span { color: #9ca3af; font-size: 12px; }
.tpl__chip.is-on { background: #111827; color: #fff; border-color: #111827; }
.tpl__chip.is-on span { color: #d1d5db; }
.tpl__badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}
.tpl__badge--sms { background: #ecfdf5; color: #059669; }
.tpl__badge--email { background: #eff6ff; color: #2563eb; }
.tpl__badge--push { background: #f5f3ff; color: #7c3aed; }
.tpl__pick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}
.tpl__pick-card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 20px 16px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}
.tpl__pick-card:hover { border-color: #93c5fd; }
.tpl__pick-card strong { font-size: 18px; }
.tpl__pick-card em { font-style: normal; font-size: 13px; color: #6b7280; line-height: 1.6; }
.tpl__bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tpl__bar .mk__back { margin: 0; }
.tpl__name {
  flex: 1;
  min-width: 180px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
}
.tpl__work {
  width: 100%;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 260px;
  gap: 14px;
  align-items: start;
}
.tpl__preview-col, .tpl__canvas-col, .tpl__side {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 14px;
  min-height: 360px;
}
.tpl__preview-head { font-weight: 700; font-size: 14px; }
.tpl__preview-note { margin: 4px 0 12px; font-size: 12px; color: #9ca3af; }
.tpl__label {
  display: block;
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}
.tpl__label:first-child { margin-top: 0; }
.tpl__input, .tpl__area {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}
.tpl__area { min-height: 140px; resize: vertical; }
.tpl__canvas-tools {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}
.tpl__vars-btn {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  border-radius: 10px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.tpl__vars-btn:hover { border-color: #93c5fd; background: #eff6ff; }
.tpl__modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.tpl__modal[hidden] { display: none !important; }
.tpl__modal-scrim { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.4); }
.tpl__modal-box {
  position: relative;
  width: min(440px, 100%);
  max-height: min(72vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}
.tpl__modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.tpl__modal-head strong { font-size: 16px; }
.tpl__modal-x {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}
.tpl__modal-search {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13px;
  box-sizing: border-box;
  margin: 8px 0 12px;
}
.tpl__var-list { display: flex; flex-direction: column; gap: 6px; }
.tpl__var-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: right;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 12px;
  padding: 9px 12px;
  font-family: inherit;
  cursor: pointer;
}
.tpl__var-row:hover { border-color: #93c5fd; background: #eff6ff; }
.tpl__var-row strong { font-size: 13px; color: #111827; }
.tpl__var-row code { font-size: 12px; color: #6b7280; }
.tpl__var-group {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin: 10px 0 2px;
}
.tpl__side { display: flex; flex-direction: column; gap: 12px; }
.tpl__side-title { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.tpl__side-hint { margin: 0 0 8px; font-size: 12px; color: #9ca3af; }
.tpl__vars, .tpl__blocks { display: flex; flex-wrap: wrap; gap: 6px; }
.tpl__var, .tpl__block-add {
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 999px;
  padding: 5px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.tpl__var:hover, .tpl__block-add:hover { border-color: #93c5fd; background: #eff6ff; }
.tpl__ready {
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.tpl__ready.is-ok { background: #ecfdf5; border-color: #a7f3d0; }
.tpl__ready strong { display: block; margin-bottom: 6px; }
.tpl__ready ul { margin: 0; padding: 0; list-style: none; }
.tpl__ready li { color: #b45309; }
.tpl__ready.is-ok li, .tpl__ready li.is-ok { color: #047857; }
.tpl__phone {
  width: 220px;
  margin: 0 auto;
  background: #111827;
  border-radius: 28px;
  padding: 18px 12px 22px;
  min-height: 320px;
}
.tpl__sms {
  background: #fff;
  border-radius: 16px 16px 4px 16px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: #111827;
  min-height: 80px;
}
.tpl__sms-count { text-align: center; font-size: 12px; color: #ea580c; margin: 10px 0 0; }
.tpl__notify {
  background: #0f172a;
  border-radius: 20px;
  padding: 16px 12px;
}
.tpl__notify-top { color: #94a3b8; font-size: 11px; margin-bottom: 8px; }
.tpl__notify-card {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  gap: 10px;
  color: #111827;
}
.tpl__notify-dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  flex: none;
}
.tpl__notify-card strong { display: block; font-size: 13px; }
.tpl__notify-card p { margin: 4px 0 0; font-size: 12px; color: #4b5563; }
.tpl-mail {
  border: 1px solid #eef0f3;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.tpl-mail__sub { padding: 10px 12px; font-weight: 700; font-size: 13px; border-bottom: 1px solid #f3f4f6; }
.tpl-mail__pre { padding: 0 12px 8px; font-size: 11px; color: #9ca3af; }
.tpl-mail__body { padding: 14px 12px; font-size: 13px; line-height: 1.7; }
.tpl-mail__header { font-weight: 800; font-size: 16px; margin-bottom: 10px; }
.tpl-mail__btn-wrap { text-align: center; margin: 12px 0; }
.tpl-mail__btn {
  display: inline-block;
  background: #2563eb;
  color: #fff !important;
  text-decoration: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-weight: 700;
}
.tpl-mail__img img, .tpl-mail__product img { max-width: 100%; border-radius: 8px; }
.tpl-mail__img-ph {
  background: #f3f4f6;
  color: #9ca3af;
  text-align: center;
  padding: 24px;
  border-radius: 8px;
}
.tpl-mail__hr { border: 0; border-top: 1px solid #e5e7eb; margin: 12px 0; }
.tpl-mail__coupon {
  text-align: center;
  letter-spacing: 2px;
  font-weight: 800;
  border: 1px dashed #93c5fd;
  border-radius: 10px;
  padding: 10px;
  background: #eff6ff;
}
.tpl-mail__product { display: flex; gap: 10px; align-items: center; margin: 8px 0; }
.tpl-mail__product span { display: block; color: #059669; font-weight: 700; }
.tpl__block {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px;
  margin-top: 10px;
  background: #f8fafc;
}
.tpl__block header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
}
.tpl__block header button {
  border: none;
  background: #fff;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
}
.tpl__block textarea, .tpl__block input {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  box-sizing: border-box;
}
.tpl__tiny { font-size: 12px; color: #6b7280; }
.tpl__tiny input { width: 80px; margin-right: 6px; }
@media (max-width: 1100px) {
  .tpl__work { grid-template-columns: 1fr; }
  .tpl__pick { grid-template-columns: 1fr; }
}

.pop__pick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.pop__chooser {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 24px;
}
.pop__chooser-title {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 800;
  color: #111827;
}
.pop__pick-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  min-height: 180px;
  text-align: right;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
}
.pop__pick-card:hover { border-color: #93c5fd; }
.pop__pick-card strong { font-size: 15px; }
.pop__pick-card em { font-style: normal; font-size: 12px; color: #6b7280; }
.pop__wire {
  position: relative;
  flex: 1;
  min-height: 88px;
  background: #f8fafc;
  border-radius: 10px;
  overflow: hidden;
}
.pop__wire span {
  position: absolute;
  background: #e5e7eb;
  border-radius: 6px;
}
.pop__wire--header span:nth-child(1) { top: 8px; right: 8px; left: 8px; height: 28px; }
.pop__wire--header span:nth-child(2) { top: 14px; right: 16px; width: 18px; height: 16px; }
.pop__wire--header span:nth-child(3) { top: 16px; left: 16px; width: 10px; height: 10px; border-radius: 99px; }
.pop__wire--modal span:nth-child(1) { top: 22px; right: 22%; left: 22%; height: 54px; box-shadow: 0 8px 18px rgba(15,23,42,.08); background: #fff; border: 1px solid #e5e7eb; }
.pop__wire--modal span:nth-child(2) { top: 32px; right: 30%; left: 30%; height: 8px; }
.pop__wire--modal span:nth-child(3) { top: 46px; right: 38%; width: 28px; height: 10px; }
.pop__wire--footer span:nth-child(1) { bottom: 8px; right: 8px; left: 8px; height: 28px; }
.pop__wire--footer span:nth-child(2) { bottom: 14px; right: 16px; width: 18px; height: 16px; }
.pop__wire--footer span:nth-child(3) { bottom: 16px; left: 16px; width: 10px; height: 10px; border-radius: 99px; }
.pop__wire--callout span:nth-child(1) { top: 18px; right: 18px; width: 58%; height: 52px; background: #fff; border: 1px solid #e5e7eb; }
.pop__wire--callout span:nth-child(2) { top: 12px; right: 36px; width: 12px; height: 12px; transform: rotate(45deg); background: #fff; border-right: 1px solid #e5e7eb; border-top: 1px solid #e5e7eb; }
.pop__wire--callout span:nth-child(3) { display: none; }
.pop__wire--box span:nth-child(1) { bottom: 10px; left: 10px; width: 42%; height: 48px; background: #fff; border: 1px solid #e5e7eb; }
.pop__wire--box span:nth-child(2),
.pop__wire--box span:nth-child(3) { display: none; }

.pop__work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}
.pop__stage-wrap, .pop__side {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  min-height: 520px;
}
.pop__stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  background: #eff6ff;
  border-radius: 16px 16px 0 0;
}
.pop__drop-hint { font-size: 12px; color: #64748b; }
.pop__device { display: flex; gap: 4px; }
.pop__device button, .pop__tabs button, .pop__align button {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}
.pop__device button.is-on, .pop__tabs button.is-on, .pop__align button.is-on {
  background: #111827;
  color: #fff;
  border-color: #111827;
}
.pop__stage { padding: 16px; background: #f8fafc; border-radius: 0 0 16px 16px; }
.pop__page {
  min-height: 420px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pop__page--mobile { max-width: 380px; margin: 0 auto; }
.pop__page-fill { flex: 1; background: repeating-linear-gradient(-45deg, #f8fafc, #f8fafc 8px, #f1f5f9 8px, #f1f5f9 16px); }
.pop__overlay {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.35);
}
.pop__overlay.is-clear { background: transparent; }
.pop__chrome {
  position: relative;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.pop__chrome--header, .pop__chrome--footer { width: 100%; padding: 10px 14px; }
.pop__chrome--modal { width: 100%; border-radius: 14px; padding: 18px; }
.pop__chrome--callout {
  margin: 24px 24px 0 auto;
  border-radius: 14px;
  padding: 16px;
}
.pop__chrome--callout:before {
  content: '';
  position: absolute;
  top: -7px;
  right: 28px;
  width: 14px;
  height: 14px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: -1px -1px 0 #e5e7eb;
}
.pop__chrome--box {
  margin: auto 16px 16px auto;
  border-radius: 14px;
  padding: 14px;
}
.pop__x {
  position: absolute;
  top: 8px;
  left: 10px;
  color: #9ca3af;
  font-size: 18px;
  line-height: 1;
}
.pop__row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; position: relative; padding-top: 6px; }
.pop__row-del {
  position: absolute;
  top: -4px;
  left: -4px;
  z-index: 3;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 99px;
  background: #111827;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 22px;
  opacity: .55;
  font-family: inherit;
}
.pop__row:hover .pop__row-del, .pop__row-del:focus { opacity: 1; }
.pop__col {
  min-height: 56px;
  border: 1px dashed transparent;
  border-radius: 10px;
  box-sizing: border-box;
}
.pop__col.is-drop, .pop__col:hover { border-color: #93c5fd; background: #f8fbff; }
.pop__col--3 { flex: 0 0 calc(25% - 6px); }
.pop__col--4 { flex: 0 0 calc(33.333% - 6px); }
.pop__col--6 { flex: 0 0 calc(50% - 4px); }
.pop__col--8 { flex: 0 0 calc(66.666% - 6px); }
.pop__col--9 { flex: 0 0 calc(75% - 6px); }
.pop__col--12 { flex: 1 1 100%; }
.pop__col-empty, .pop__empty-row {
  padding: 18px 10px;
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
}
.pop__block {
  position: relative;
  padding: 4px;
  border-radius: 8px;
  cursor: pointer;
}
.pop__block.is-on { outline: 2px solid #2563eb; }
.pop__block.is-hidden { opacity: .35; }
.pop__block-tools {
  display: none;
  position: absolute;
  top: -10px;
  left: 6px;
  background: #111827;
  color: #fff;
  border-radius: 8px;
  font-size: 11px;
  padding: 2px 6px;
  gap: 6px;
  align-items: center;
  z-index: 2;
}
.pop__block:hover .pop__block-tools, .pop__block.is-on .pop__block-tools { display: inline-flex; }
.pop__block-tools button {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}
.pop__block h1, .pop__block h2, .pop__block h3, .pop__block h4, .pop__block p, .pop__block ul, .pop__block ol {
  margin: 0;
}
.pop__ph {
  background: #e5e7eb;
  min-height: 72px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 12px;
}
.pop__block img { max-width: 100%; display: block; border-radius: 8px; }
.pop__btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}
.pop__table { width: 100%; border-collapse: collapse; font-size: 12px; }
.pop__table td { border: 1px solid #e5e7eb; padding: 6px; }
.pop__social { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: #2563eb; }
.pop__form { display: flex; flex-direction: column; gap: 8px; }
.pop__form label { font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.pop__form input { border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 8px; }
.pop__form button { border: 0; background: #2563eb; color: #fff; border-radius: 8px; padding: 8px; }

.pop__side { padding: 12px; }
.pop__tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.pop__tabs button { flex: 1; font-size: 11px; padding: 6px 4px; }
.pop__palette {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.pop__tile {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 12px;
  padding: 16px 8px;
  min-height: 72px;
  font-family: inherit;
  cursor: grab;
}
.pop__tile:hover { border-color: #93c5fd; background: #eff6ff; }
.pop__tile strong { font-size: 12px; }
.pop__hint { margin: 0 0 10px; font-size: 12px; color: #9ca3af; }
.pop__pages { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.pop__pages-add { display: flex; gap: 6px; width: 100%; }
.pop__pages-add input { flex: 1; min-width: 0; }
.pop__pages-list { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 6px; }
.pop__pages-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px 8px;
}
.pop__pages-list code { flex: 1; min-width: 0; direction: ltr; text-align: left; font-size: 12px; }
.pop__pages-list button {
  border: 0;
  background: transparent;
  color: #b91c1c;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
}
.pop__row-presets { display: flex; flex-direction: column; gap: 8px; }
.pop__preset {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  text-align: right;
  font-family: inherit;
  cursor: pointer;
}
.pop__preset:hover { border-color: #93c5fd; }
.pop__preset-bars { display: flex; gap: 6px; height: 18px; margin-bottom: 6px; direction: ltr; }
.pop__preset-bars i { display: block; background: #9ca3af; border-radius: 4px; }
.pop__preset em { font-style: normal; font-size: 12px; color: #6b7280; }
.pop__props-title { font-size: 11px; font-weight: 800; color: #6b7280; margin: 12px 0 8px; }
.pop__props-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.pop__props-head button {
  border: 0;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  font-family: inherit;
}
.pop__field { display: block; margin-bottom: 10px; font-size: 12px; color: #6b7280; font-weight: 600; }
.pop__field > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.pop__field input, .pop__field select, .pop__field textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 7px 9px;
  font-family: inherit;
  font-size: 13px;
  box-sizing: border-box;
}
.pop__check { display: flex; align-items: center; gap: 6px; font-weight: 500; color: #111827; }
.pop__check input {
  width: 18px !important;
  min-width: 18px;
  height: 18px;
  padding: 0;
  accent-color: #2563eb;
  cursor: pointer;
}
.pop__color { display: flex; align-items: center; gap: 8px; }
.pop__color input[type="color"] {
  width: 56px !important;
  min-width: 56px;
  height: 40px;
  padding: 2px;
  cursor: pointer;
  flex: none;
}
.pop__color input[type="text"] { flex: 1; min-width: 0; }
.pop__vars-btn, .pop__vars-mini {
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}
.pop__vars-btn { padding: 6px 12px; font-size: 12px; }
.pop__vars-mini { padding: 2px 8px; font-size: 11px; }
.pop__align { display: flex; gap: 4px; }
.pop__modal {
  position: fixed;
  inset: 0;
  z-index: 500000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pop__modal.is-open,
.pop__modal:not([hidden]) { display: flex; }
.pop__modal[hidden] { display: none !important; }
.pop__modal-scrim { position: absolute; inset: 0; z-index: 0; background: rgba(15, 23, 42, 0.45); }
.pop__modal-box {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(80vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}
.pop__modal-box--wide { width: min(860px, 100%); }
.pop__modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.pop__modal-head strong { font-size: 16px; }
.pop__modal-x {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}
.pop__modal-search {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13px;
  box-sizing: border-box;
  margin: 8px 0 12px;
}
.pop__var-list { display: flex; flex-direction: column; gap: 6px; }
.pop__var-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: right;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 12px;
  padding: 9px 12px;
  font-family: inherit;
  cursor: pointer;
}
.pop__var-row:hover { border-color: #93c5fd; background: #eff6ff; }
.pop__var-row strong { font-size: 13px; color: #111827; }
.pop__var-row code { font-size: 12px; color: #6b7280; }
.pop__status {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: #6b7280;
}
.pop__status.is-on { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
.pop__row-handle {
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 3;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 8px;
  background: #e5e7eb;
  color: #374151;
  cursor: grab;
  font-size: 11px;
  line-height: 22px;
  font-family: inherit;
}
.pop__row.is-row-drop { outline: 2px dashed #2563eb; }
.pop__img-field { display: flex; flex-direction: column; gap: 8px; }
.pop__img-preview {
  width: 100%;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  background: #f3f4f6;
  border: 1px dashed #e5e7eb;
}
.pop__img-preview.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 500;
}
.pop__img-actions { display: flex; gap: 6px; }
.pop__img-upload, .pop__img-pick {
  flex: 1;
  text-align: center;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  padding: 7px 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.pop__img-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.pop__img-thumb {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}
.pop__img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pop__img-thumb:hover { border-color: #93c5fd; }
.pop__rules-sum {
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: #374151;
  line-height: 1.7;
}
.pop__pick--starters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pop__pick--starters .pop__pick-card { min-height: 180px; justify-content: flex-start; }
.pop__starter-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 88px;
  width: 100%;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #e5e7eb;
  padding: 12px;
}
.pop__starter-preview b { font-size: 13px; color: #111827; }
.pop__starter-preview span {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #2563eb;
}
.pop__starter-preview i {
  font-style: normal;
  font-size: 11px;
  background: #2563eb;
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
}
.pop__starter-preview--blank { background: repeating-linear-gradient(-45deg, #f8fafc, #f8fafc 8px, #eef2f7 8px, #eef2f7 16px); }
.pop__starter-blank { display: block; width: 46%; height: 10px; border-radius: 99px; background: #e5e7eb; }
.pop__starter-line { display: block; width: 70%; height: 8px; border-radius: 99px; background: #e5e7eb !important; letter-spacing: 0 !important; }
@media (max-width: 1100px) {
  .pop__work, .pop__pick, .pop__pick--starters { grid-template-columns: 1fr; }
}

.page--journey .content__full-container,
.page--journey .jn { width: 100%; max-width: none; margin: 0; padding: 0; gap: 0; }
.page--journey {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.page--journey .page__container {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  align-items: stretch;
  overflow: hidden;
}
.page--journey .content {
  flex: 1;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
}
.jn {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #f3f5f8;
  overflow: hidden;
}
.jn__top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  flex: none;
}
.jn__back { color: #2563eb; text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; }
.jn__name {
  flex: 0 1 280px;
  border: 0;
  border-bottom: 1px dashed #cbd5e1;
  padding: 6px 4px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  background: transparent;
}
.jn__tools { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.jn__tool, .jn__draft, .jn__publish, .jn__zoom button {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.jn__draft { color: #2563eb; border-color: #bfdbfe; }
.jn__publish { background: #2563eb; color: #fff; border-color: #2563eb; }
.jn__body {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.jn__body > * { min-height: 0; }
body:has(.page--journey) { overflow: hidden; }
.jn__inspect[hidden] { display: none !important; }
.jn__palette {
  background: #1e293b;
  color: #e2e8f0;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  height: 100%;
  padding: 12px 10px 24px;
}
.jn__search {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
  font-family: inherit;
}
.jn__group { border-bottom: 1px solid rgba(255,255,255,.08); padding: 8px 0 12px; }
.jn__group summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .4px;
  color: #94a3b8;
  list-style: none;
}
.jn__group summary::-webkit-details-marker { display: none; }
.jn__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.jn__chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  cursor: grab;
  font-family: inherit;
  padding: 8px 4px;
}
.jn__chip em { font-style: normal; font-size: 11px; text-align: center; line-height: 1.4; }
.jn__ico, .jn-node__badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex: none;
}
.jn__chip--blue .jn__ico, .jn-node--blue .jn-node__badge { background: #3b82f6; }
.jn__chip--green .jn__ico, .jn-node--green .jn-node__badge { background: #22c55e; }
.jn__chip--orange .jn__ico, .jn-node--orange .jn-node__badge { background: #f59e0b; }
.jn__chip--red .jn__ico, .jn-node--red .jn-node__badge { background: #ef4444; }
.jn__ico:before, .jn-node__badge:before { content: '★'; }
.jn__ico[data-ico="target"]:before, .jn-node__badge[data-ico="target"]:before { content: '◎'; }
.jn__ico[data-ico="user"]:before, .jn-node__badge[data-ico="user"]:before { content: '☺'; }
.jn__ico[data-ico="users"]:before, .jn-node__badge[data-ico="users"]:before { content: '👥'; font-size: 13px; }
.jn__ico[data-ico="pin"]:before, .jn-node__badge[data-ico="pin"]:before { content: '📍'; font-size: 13px; }
.jn__ico[data-ico="mail"]:before, .jn-node__badge[data-ico="mail"]:before { content: '✉'; }
.jn__ico[data-ico="sms"]:before, .jn-node__badge[data-ico="sms"]:before { content: '💬'; font-size: 13px; }
.jn__ico[data-ico="bell"]:before, .jn-node__badge[data-ico="bell"]:before { content: '🔔'; font-size: 13px; }
.jn__ico[data-ico="monitor"]:before, .jn-node__badge[data-ico="monitor"]:before { content: '🖥'; font-size: 13px; }
.jn__ico[data-ico="clock"]:before, .jn-node__badge[data-ico="clock"]:before { content: '⏱'; font-size: 13px; }
.jn__ico[data-ico="split"]:before, .jn-node__badge[data-ico="split"]:before { content: '⑂'; }
.jn__ico[data-ico="power"]:before, .jn-node__badge[data-ico="power"]:before { content: '⏻'; }
.jn__stage {
  position: relative;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  background: #f1f5f9;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 18px 18px;
  cursor: grab;
}
.jn__world { position: absolute; inset: 0; transform-origin: 0 0; pointer-events: none; }
.jn-node { pointer-events: auto; }
.jn__wires { position: absolute; left: 0; top: 0; width: 4200px; height: 4200px; overflow: visible; pointer-events: none; transform-origin: 0 0; }
.jn-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 286px;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  cursor: move;
  box-sizing: border-box;
}
.jn-node__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 83px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 16px 10px 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
  box-sizing: border-box;
}
.jn-node.is-on .jn-node__card { box-shadow: 0 0 0 2px #3b82f6; }
.jn-node--blue .jn-node__card { border-color: #93c5fd; }
.jn-node--green .jn-node__card { border-color: #86efac; }
.jn-node--orange .jn-node__card { border-color: #fcd34d; }
.jn-node--red .jn-node__card { border-color: #fca5a5; }
.jn-node__badge {
  width: 46px;
  height: 46px;
  font-size: 20px;
}
.jn-node__txt { min-width: 0; cursor: move; }
.jn-node__txt small { display: block; font-size: 11px; color: #94a3b8; }
.jn-node__txt strong { display: block; font-size: 17px; color: #0f172a; line-height: 1.4; }
.jn-node__count { display: block; margin-top: 4px; font-size: 11px; font-style: normal; color: #2563eb; font-weight: 700; }
.jn__tool { text-decoration: none; color: #334155; display: inline-flex; align-items: center; }
.jn__tool.is-on { background: #eef2ff; color: #3730a3; box-shadow: inset 0 0 0 1px #c7d2fe; }
.jn-node__in, .jn-node__out {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #94a3b8;
  cursor: crosshair;
}
.jn-node__in { left: -9px; top: 50%; margin-top: -8px; }
.jn-node__out { right: -9px; top: 50%; margin-top: -8px; }
.jn-node__acts {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  height: 40px;
  opacity: 0;
  z-index: 6;
}
.jn-node:hover .jn-node__acts { opacity: 1; }
.jn-node.is-drag .jn-node__acts { opacity: 0; }
.jn-node__act {
  width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .12);
  padding: 0;
}
.jn-node__act--edit:hover { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.jn-node__act--del { color: #b91c1c; }
.jn-node__act--del:hover { background: #fef2f2; border-color: #fecaca; }
.jn__zoom {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 5;
}
.jn-wire-hit { pointer-events: stroke; }
.jn-wire-lab {
  fill: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
  pointer-events: none;
}
.jn-node--fork .jn-node__card { min-height: 114px; }
.jn-node__out--top { top: 24px; margin-top: 0; }
.jn-node__out--bot { top: auto; bottom: 24px; margin-top: 0; }
.jn-node__out.is-yes { border-color: #22c55e; background: #dcfce7; }
.jn-node__out.is-no { border-color: #ef4444; background: #fee2e2; }
.jn-node__plus {
  position: absolute;
  right: -36px;
  top: 50%;
  margin-top: -14px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.jn-addmenu {
  position: absolute;
  z-index: 8;
  width: 240px;
  max-height: 360px;
  overflow: auto;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .28);
}
.jn-addmenu[hidden] { display: none !important; }
.jn-addmenu__g { margin-bottom: 8px; }
.jn-addmenu__g b { display: block; font-size: 11px; color: #94a3b8; margin: 6px 8px; }
.jn-addmenu__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  text-align: right;
}
.jn-addmenu__item:hover { background: rgba(255,255,255,.08); }
.jn-addmenu__item .jn__ico { width: 28px; height: 28px; font-size: 13px; }
.jn-warn { background: #fef3c7; color: #92400e; padding: 8px 10px; border-radius: 8px; font-size: 12px; margin: 0 0 12px; }
.jn-hint { font-size: 11px; color: #64748b; margin: -4px 0 12px; line-height: 1.6; }
.jn-hint--err { color: #b91c1c; }
.jn-field textarea { border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 10px; font-family: inherit; }
.jn__inspect {
  background: #fff;
  padding: 14px;
  overflow: auto;
}
.jn-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.jn-modal[hidden] { display: none !important; }
.jn-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .48);
}
.jn-modal__box {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(82vh, 680px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
}
.jn-confirm {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.jn-confirm[hidden] { display: none !important; }
.jn-confirm__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .52);
}
.jn-confirm__box {
  position: relative;
  z-index: 1;
  width: min(380px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 24px 22px 18px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .3);
}
.jn-confirm__ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #fef2f2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jn-confirm__box h3 { margin: 0 0 8px; font-size: 17px; color: #0f172a; }
.jn-confirm__box p { margin: 0 0 18px; font-size: 13px; color: #64748b; line-height: 1.7; }
.jn-confirm__acts { display: flex; gap: 8px; }
.jn-confirm__acts button {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  cursor: pointer;
  font-weight: 700;
}
.jn-confirm__acts [data-jny-confirm-no] { background: #f1f5f9; color: #334155; }
.jn-confirm__acts [data-jny-confirm-yes] { background: #dc2626; color: #fff; }
.jn-insp-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; }
.jn-insp-h__acts { display: flex; gap: 6px; }
.jn-insp-h button { border: 0; background: #fee2e2; color: #b91c1c; border-radius: 8px; padding: 4px 8px; cursor: pointer; font-family: inherit; }
.jn-insp-h [data-jny-close-insp] { background: #e2e8f0; color: #0f172a; font-size: 16px; line-height: 1; padding: 4px 8px; }
.jn-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 12px; color: #475569; }
.jn-field input, .jn-field select {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
}
.jn-api-url { display: flex; gap: 8px; align-items: stretch; margin-bottom: 12px; }
.jn-api-url select { width: 118px; flex: none; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 10px; font-family: inherit; }
.jn-api-url input { flex: 1; min-width: 0; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 10px; font-family: inherit; }
.jn-api-box { border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; margin-bottom: 12px; background: #f8fafc; }
.jn-api-box__h { font-size: 12px; font-weight: 700; color: #334155; margin-bottom: 10px; }
.jn-api-box--switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: #334155; }
.jn-hdr-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.jn-hdr-row input { flex: 1; min-width: 0; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 10px; font-family: inherit; background: #fff; }
.jn-hdr-add, .jn-hdr-del, .jn-split-add {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: #475569;
  font-family: inherit;
  flex: none;
}
.jn-hdr-add:hover { color: #2563eb; border-color: #bfdbfe; }
.jn-hdr-del { color: #b91c1c; }
.jn-split-add { width: auto; padding: 6px 12px; margin-bottom: 8px; }
.jn-switch { position: relative; width: 44px; height: 24px; flex: none; }
.jn-switch input { opacity: 0; width: 0; height: 0; }
.jn-switch i { position: absolute; inset: 0; background: #cbd5e1; border-radius: 99px; cursor: pointer; transition: .15s; }
.jn-switch i:before { content: ''; position: absolute; width: 18px; height: 18px; background: #fff; border-radius: 50%; top: 3px; right: 3px; transition: .15s; }
.jn-switch input:checked + i { background: #22c55e; }
.jn-switch input:checked + i:before { right: 23px; }
.jn-split-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; color: #475569; }
.jn-split-row label { width: 72px; flex: none; }
.jn-split-row input { width: 88px; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 10px; font-family: inherit; }
.jn-split-row .jn-hdr-del { width: auto; padding: 0 10px; }
.jn-check { flex-direction: row; align-items: center; gap: 8px; }
.jn-event-row { display: flex; gap: 8px; align-items: stretch; }
.jn-event-row select { flex: 1; min-width: 0; }
.jn-filter-btn {
  width: 40px;
  flex: none;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.jn-filter-btn:hover, .jn-filter-btn:not([disabled]) { color: #2563eb; }
.jn-filter-btn[disabled] { opacity: .4; cursor: not-allowed; }
.jn-filter-btn em {
  position: absolute;
  top: -6px;
  left: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: #2563eb;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  line-height: 16px;
  text-align: center;
}
.jn-efilters {
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}
.jn-efilters[hidden] { display: none !important; }
.jn-ef-h { font-size: 12px; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.jn-ef-join { display: flex; gap: 6px; margin-bottom: 10px; }
.jn-ef-join button {
  border: 1px solid #dbeafe;
  background: #fff;
  color: #2563eb;
  border-radius: 999px;
  padding: 4px 10px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.jn-ef-join button.is-on { background: #2563eb; color: #fff; border-color: #2563eb; }
.jn-ef-row { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.jn-ef-row select, .jn-ef-row input {
  flex: 1;
  min-width: 90px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 7px 8px;
  font-family: inherit;
}
.jn-ef-jdate { cursor: pointer; background: #fff; min-width: 148px; font-size: 12px; }
.jn-attr-cond { margin: 4px 0 12px; padding: 10px; background: #f8fafc; border: 1px dashed #e2e8f0; border-radius: 12px; }
.jn-attr-row { align-items: stretch; }
.jn-ef-del {
  width: 28px;
  height: 28px;
  flex: none;
  border: 1px solid #fecaca;
  background: #fff;
  color: #b91c1c;
  border-radius: 8px;
  cursor: pointer;
}
.jn-ef-add {
  border: 1px solid #bfdbfe;
  background: #fff;
  color: #2563eb;
  border-radius: 999px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 1100px) {
  .jn__body { grid-template-columns: 1fr; }
  .jn__palette { max-height: 36vh; }
}

.jst__hints {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 12px 16px;
  color: #9a3412;
  font-size: 13px;
}
.jst__hints p { margin: 0 0 6px; }
.jst__hints p:last-child { margin: 0; }
.jst__submeta { margin: 8px 0 18px; color: #64748b; font-size: 13px; }
.jst__grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 16px; }
.jst__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.jst__table th, .jst__table td { border-bottom: 1px solid #e2e8f0; padding: 8px 6px; text-align: right; vertical-align: top; }
.jst__table th { color: #64748b; font-weight: 700; }
.jst__props, .jst__out { max-width: 320px; white-space: pre-wrap; word-break: break-word; color: #334155; }
.jst__list { margin: 0; padding: 0; list-style: none; }
.jst__list li { padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.jst__log { margin: 0; padding: 0; list-style: none; }
.jst__log li { padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.jst__log strong { color: #64748b; margin-left: 8px; }
.jst__log span { background: #eff6ff; color: #1d4ed8; border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 700; }
.jst__log em { font-style: normal; margin: 0 8px; color: #0f172a; }
.jst__log p { margin: 4px 0 0; color: #475569; }
.jst__funnel { display: flex; flex-direction: column; gap: 12px; }
.jst__funnel-row { display: flex; flex-direction: column; gap: 6px; }
.jst__funnel-meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 13px; }
.jst__funnel-meta strong { color: #0f172a; }
.jst__funnel-meta span { color: #64748b; white-space: nowrap; }
.jst__funnel-track {
  height: 10px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}
.jst__funnel-fill {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
}
.jst__st {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  background: #f3f4f6;
  color: #4b5563;
}
.jst__st--active { background: #eef2ff; color: #4338ca; }
.jst__st--waiting { background: #fff7ed; color: #c2410c; }
.jst__st--done { background: #ecfdf5; color: #047857; }
.jst__st--exited { background: #fef2f2; color: #b91c1c; }
.jst__st--converted { background: #ecfdf5; color: #047857; }
.jst .an__card { width: 100%; }
.jst .an__stats { margin: 0; }
@media (max-width: 900px) {
  .jst__grid { grid-template-columns: 1fr; }
  .jst__funnel-meta { flex-wrap: wrap; }
}

/* Shamsi time picker: hour beside calendar, stay in viewport */
body > .datepicker-container:not(.pwt-mobile-view) .datepicker-plot-area:has(> .datepicker-time-view) {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 360px;
  overflow: visible;
}
body > .datepicker-container:not(.pwt-mobile-view) .datepicker-plot-area:has(> .datepicker-time-view) .datepicker-navigator,
body > .datepicker-container:not(.pwt-mobile-view) .datepicker-plot-area:has(> .datepicker-time-view) .toolbox {
  flex: 0 0 100%;
  width: 100%;
  float: none;
}
body > .datepicker-container:not(.pwt-mobile-view) .datepicker-plot-area:has(> .datepicker-time-view) .datepicker-grid-view {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  float: none;
}
body > .datepicker-container:not(.pwt-mobile-view) .datepicker-plot-area:has(> .datepicker-time-view) .datepicker-day-view,
body > .datepicker-container:not(.pwt-mobile-view) .datepicker-plot-area:has(> .datepicker-time-view) .datepicker-month-view,
body > .datepicker-container:not(.pwt-mobile-view) .datepicker-plot-area:has(> .datepicker-time-view) .datepicker-year-view {
  min-height: 0;
  float: none;
}
body > .datepicker-container:not(.pwt-mobile-view) .datepicker-plot-area:has(> .datepicker-time-view) .datepicker-day-view .table-days {
  min-height: 0;
}
body > .datepicker-container:not(.pwt-mobile-view) .datepicker-plot-area:has(> .datepicker-time-view) .datepicker-time-view {
  flex: 0 0 92px;
  width: 92px;
  float: none;
  border-top: 0;
  border-right: 1px solid #eee;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f8fafc;
}
body > .datepicker-container:not(.pwt-mobile-view) .datepicker-plot-area:has(> .datepicker-time-view) .datepicker-time-view > .time-segment {
  width: 100%;
  float: none;
}
body > .datepicker-container:not(.pwt-mobile-view) .datepicker-plot-area:has(> .datepicker-time-view) .datepicker-time-view .divider {
  width: 100%;
  height: 16px;
  line-height: 16px;
  float: none;
}
body > .datepicker-container:not(.pwt-mobile-view) .datepicker-plot-area:has(> .datepicker-time-view) .datepicker-time-view .divider span {
  height: 16px;
  line-height: 16px;
}

.jn-recipe {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  text-align: right;
  margin: 0 0 8px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  font: inherit;
}
.jn-recipe:hover { background: #eef2ff; }
.jn-recipe strong { color: #0f172a; }
.jn-recipe span { color: #64748b; font-size: 12px; }
.jn-wdays { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 8px 0 12px; }
.jn-simout { margin-top: 12px; }
.jn-simlist { margin: 0; padding: 0 18px 0 0; }
.mk__dash-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0 28px;
}
.mk__dash-links .mk__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border: 0;
  font: inherit;
}
.mk__dash-links .mk__card span { color: #64748b; font-size: 12px; }
.mk__warns { margin: 0 0 18px; }
.mk__warn {
  margin: 0 0 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
}
.mk__ready { margin: 0 0 24px; }
button.mk__card { width: 100%; }

.bt__logs { display: flex; flex-direction: column; gap: 10px; }
.bt__log-row {
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fafc;
}
.bt__log-row strong { display: inline-block; margin-left: 8px; }
.bt__log-row span { color: #6b7280; font-size: 12px; }
.bt__log-row p { margin: 6px 0 0; font-size: 13px; color: #111827; }
.bt__log-row time { display: block; margin-top: 4px; font-size: 11px; color: #9ca3af; }

.page.page--conversations .content {
  justify-content: flex-start;
  align-items: stretch;
  min-height: 0;
}
.page.page--conversations .content__full-container,
.page--conversations .cv {
  width: 97%;
  max-width: none;
  margin: 12px auto 0;
  padding: 0 !important;
  gap: 0 !important;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: calc(100vh - var(--hm-header-height) - 28px);
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.cv__toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef1f5;
  flex-shrink: 0;
  background: #fff;
}
.cv__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e6ebf1;
  border-radius: 12px;
  padding: 8px 12px;
  background: #f7f9fc;
}
.cv__search svg { width: 16px; height: 16px; color: #9aa3af; flex-shrink: 0; }
.cv__search input { border: 0; background: transparent; width: 100%; font: inherit; outline: none; color: #374151; }
.cv__toolbar-acts { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cv__filter-wrap { position: relative; }
.cv__tool-btn,
.cv__tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #e6ebf1;
  background: #fff;
  color: #374151;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.cv__tool-btn { padding: 8px 12px; }
.cv__tool-btn svg,
.cv__tool-icon svg { width: 16px; height: 16px; }
.cv__tool-icon { width: 40px; height: 40px; padding: 0; }
.cv__tool-btn.is-on,
.cv__tool-btn.is-filtered,
.cv__tool-btn:hover,
.cv__tool-icon:hover { background: #f8fafc; }
.cv__tool-btn.is-filtered {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}
.cv__filter-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}
.cv__filter-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid #e6ebf1;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  padding: 6px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cv__filter-pop[hidden] { display: none; }
.cv__filter-pop button {
  border: 0;
  background: transparent;
  text-align: right;
  padding: 8px 10px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  color: #374151;
}
.cv__filter-pop button.is-on,
.cv__filter-pop button:hover { background: #eef6ff; color: #1d4ed8; }
.cv__layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 280px;
  flex: 1;
  min-height: 0;
  direction: rtl;
  background: #fff;
}
.cv__list, .cv__thread, .cv__side {
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.cv__list { border-left: 1px solid #eef1f5; }
.cv__side { border-right: 1px solid #eef1f5; }
.cv__list-head,
.cv__side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 10px;
  flex-shrink: 0;
}
.cv__list-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2563eb;
}
.cv__list-title svg { width: 20px; height: 20px; }
.cv__list-title h1,
.cv__list-title h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}
.cv__list-count { font-size: 12px; color: #9ca3af; direction: ltr; unicode-bidi: isolate; }
.cv__item-top time,
.cv__msg-meta time { direction: ltr; unicode-bidi: isolate; }
.cv__items { overflow: auto; flex: 1; padding: 4px 8px 12px; }
.cv__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  text-align: right;
  border: 0;
  background: transparent;
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
  color: inherit;
}
.cv__item:hover { background: #f7f9fc; }
.cv__item.is-active { background: #eaf3ff; }
.cv__ava {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.cv__item-main { flex: 1; min-width: 0; }
.cv__item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}
.cv__item-top strong {
  font-weight: 700;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cv__item-top time { font-size: 11px; color: #9ca3af; flex-shrink: 0; }
.cv__item-msg {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cv__item-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.cv__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f3f5f8;
  color: #4b5563;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  line-height: 1.4;
}
.cv__chip--ico { padding: 3px 6px; }
.cv__chip--ico svg { width: 13px; height: 13px; }
.cv__chip--pr-low { background: #f3f4f6; color: #4b5563; }
.cv__chip--pr-med { background: #fff7ed; color: #c2410c; }
.cv__chip--pr-high { background: #ffedd5; color: #9a3412; }
.cv__chip--pr-urgent { background: #fef2f2; color: #b91c1c; }
.cv__chip--tag { background: #eef2ff; color: #4338ca; }
.cv__unread {
  margin-right: auto;
  background: #2563eb;
  color: #fff;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  padding: 0 5px;
}
.cv__empty, .cv__thread-empty, .cv__side-empty {
  padding: 32px 16px;
  color: #9ca3af;
  text-align: center;
  font-size: 13px;
}
.cv__thread-main { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.cv__thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #eef1f5;
  flex-shrink: 0;
}
.cv__thread-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cv__thread-name {
  font-weight: 800;
  font-size: 14px;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cv__thread-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cv__online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #10b981;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.cv__online svg { width: 18px; height: 18px; }
.cv__msgs {
  flex: 1;
  overflow: auto;
  padding: 18px 16px 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  direction: ltr;
}
.cv__msg { max-width: 72%; direction: rtl; }
.cv__msg-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 6px;
}
.cv__msg-body {
  background: #f3f5f7;
  color: #111827;
  border-radius: 16px 16px 16px 6px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.cv__msg-body--img { padding: 4px; overflow: hidden; background: #f4f6f8; }
.cv__msg-body--img img { display: block; max-width: 260px; max-height: 220px; border-radius: 12px; cursor: zoom-in; }
.cv__msg-body--audio { padding: 8px 10px; background: transparent; }
.cv__msg-body--audio audio { width: 220px; max-width: 100%; }
.cv__file { color: inherit; text-decoration: none; }
.cv__icon.is-on { color: #dc2626; background: #fef2f2; }
.cv__zoom {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(15, 23, 42, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.cv__zoom.is-on { display: flex; }
.cv__zoom img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.cv__msg--visitor { align-self: flex-start; }
.cv__msg--bot, .cv__msg--operator { align-self: flex-end; }
.cv__msg--bot .cv__msg-body,
.cv__msg--operator .cv__msg-body { border-radius: 16px 16px 6px 16px; }
.cv__msg--operator .cv__msg-body { background: #2563eb; color: #fff; }
.cv__msg--system { align-self: center; max-width: 90%; }
.cv__msg--system .cv__msg-body { background: transparent; color: #64748b; padding: 0; }
.cv__cards { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.cv__card-p {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 16px;
  padding: 8px 10px;
  text-decoration: none;
  color: #111827;
  font-size: 12px;
}
.cv__card-p img { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #f8fafc; flex-shrink: 0; }
.cv__card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; text-align: right; }
.cv__card-p strong { font-size: 12px; font-weight: 600; line-height: 1.45; }
.cv__card-p span { color: #64748b; font-size: 11px; }
.cv__card-p em { font-style: normal; font-size: 12px; font-weight: 700; color: #0f172a; margin-top: 2px; }
.cv__card-go { width: 22px; height: 22px; border-radius: 50%; background: #f1f5f9; flex-shrink: 0; position: relative; }
.cv__card-go:after {
  content: "";
  position: absolute;
  top: 8px;
  right: 9px;
  width: 6px;
  height: 6px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(135deg);
}
.cv__brief {
  margin: 0;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.7;
  color: #334155;
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 12px;
}
.cv__composer {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 8px 12px 12px;
  padding: 6px 8px;
  border: 1px solid #e6ebf1;
  border-radius: 999px;
  background: #fff;
  flex-shrink: 0;
}
.cv__composer input[type="text"] {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 8px 6px;
  font: inherit;
  font-size: 13px;
  outline: none;
  min-width: 0;
}
.cv__icon {
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cv__icon svg { width: 18px; height: 18px; }
.cv__icon:hover { background: #f3f4f6; color: #111827; }
.cv__side { overflow: auto; }
.cv__side-acts {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 0 14px 12px;
}
.cv__pill {
  border: 1px solid #e6ebf1;
  background: #fff;
  border-radius: 999px;
  padding: 7px 8px;
  font: inherit;
  font-size: 11px;
  color: #374151;
  cursor: pointer;
  flex: 1;
  text-align: center;
  white-space: nowrap;
}
.cv__pill:hover { background: #f8fafc; }
.cv__pill--block { width: calc(100% - 32px); margin: 0 16px 14px; text-align: center; flex: none; }
.cv__pill--blue { background: #2563eb; color: #fff; border-color: #2563eb; }
.cv__pill--blue:hover { background: #1d4ed8; }
.cv__acc {
  border-top: 1px solid #eef1f5;
}
.cv__acc summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}
.cv__acc summary::-webkit-details-marker { display: none; }
.cv__acc summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.8px solid #9ca3af;
  border-bottom: 1.8px solid #9ca3af;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.cv__acc[open] summary::after { transform: rotate(-135deg); }
.cv__visitor,
.cv__assign,
.cv__acc .cv__tags,
.cv__acc textarea { margin: 0 16px 14px; }
.cv__assign .cv__field { margin-bottom: 12px; }
.cv__assign select,
.cv__filter-form select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e6ebf1;
  border-radius: 10px;
  padding: 10px 12px 10px 36px;
  font: inherit;
  font-size: 13px;
  color: #111827;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%239ca3af' stroke-width='1.7' stroke-linecap='round' d='M1.5 1.5L6 6l4.5-4.5'/></svg>");
  background-repeat: no-repeat;
  background-position: left 12px center;
  cursor: pointer;
}
.cv__assign select:focus,
.cv__filter-form select:focus,
.cv__tag-search input:focus,
.cv__tag-add input:focus {
  outline: none;
  border-color: #c7d2fe;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.cv__tag-search { position: relative; }
.cv__tag-suggest {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 8;
  background: #fff;
  border: 1px solid #e6ebf1;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  padding: 4px;
  max-height: 180px;
  overflow: auto;
}
.cv__tag-suggest button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: right;
  padding: 8px 10px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  color: #111827;
  cursor: pointer;
}
.cv__tag-suggest button:hover { background: #f3f4f6; }
.cv__tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.cv__tag-pills:empty { display: none; }
.cv__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f3f4f6;
  color: #374151;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.5;
}
.cv__tag button {
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 0 0 2px;
}
.cv__tag button:hover { color: #111827; }
.cv__tag-add {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.cv__tag-add input { flex: 1; min-width: 0; }
.cv__tag-add button {
  flex: 0 0 auto;
  border: 1px solid #e6ebf1;
  background: #fff;
  color: #374151;
  border-radius: 10px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.cv__tag-add button:hover { background: #f8fafc; }
.cv__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 10px;
}
.cv__field input {
  border: 1px solid #e6ebf1;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  color: #111827;
  width: 100%;
  box-sizing: border-box;
}
.cv__field input.is-ltr { direction: ltr; text-align: left; }
.cv__visitor-acts { display: flex; gap: 6px; margin: 4px 0 12px; }
.cv__visitor-acts .cv__pill { flex: 1; margin: 0; }
.cv__err { color: #dc2626; font-size: 12px; margin: 0 0 8px; }
.cv__dl { display: grid; grid-template-columns: 70px 1fr; gap: 8px 10px; font-size: 13px; }
.cv__dl dt { color: #6b7280; }
.cv__dl dd { margin: 0; color: #111827; overflow-wrap: anywhere; }
.cv__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cv__muted { color: #9ca3af; font-size: 12px; }
.cv__side textarea {
  width: calc(100% - 32px);
  border: 1px solid #e6ebf1;
  border-radius: 10px;
  padding: 8px;
  font: inherit;
  resize: vertical;
  display: block;
}
.cv__modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cv__modal[hidden] { display: none !important; }
.cv__modal--filter { z-index: 95; }
.cv__modal--filter .cv__modal-box {
  width: min(440px, 100%);
  height: auto;
  max-height: min(88vh, 720px);
}
.cv__modal--filter .cv__modal-head { align-items: center; }
.cv__fgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cv__filter-acts {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.cv__filter-acts .cv__pill { flex: 1; text-align: center; }
.page--conversations .datepicker-container { z-index: 120 !important; }
.cv__modal-scrim { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.5); }
.cv__modal-box {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  height: min(88vh, 860px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}
.cv__modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  flex-shrink: 0;
}
.cv__modal-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cv__modal-who .cv__ava { width: 48px; height: 48px; font-size: 16px; }
.cv__modal-head h3 { margin: 0; font-size: 17px; }
.cv__modal-sub { margin: 4px 0 0; font-size: 12px; color: #6b7280; }
.cv__modal-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cv__chip--ok { background: #ecfdf5; color: #047857; }
.cv__modal-x {
  border: 0;
  background: #f3f4f6;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
  flex-shrink: 0;
}
.cv__ptabs {
  display: flex;
  gap: 4px;
  padding: 0 14px 10px;
  overflow-x: auto;
  flex-shrink: 0;
  border-bottom: 1px solid #eef1f5;
}
.cv__ptab {
  border: 0;
  background: transparent;
  color: #6b7280;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.cv__ptab:hover { background: #f3f4f6; color: #111827; }
.cv__ptab.is-on { background: #2563eb; color: #fff; }
.cv__modal-body { padding: 16px 18px 20px; overflow: auto; flex: 1; min-height: 0; }
.cv__pane { display: none; }
.cv__pane.is-on { display: block; }
.cv__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.cv__stats--4 { grid-template-columns: repeat(4, 1fr); }
.cv__stats div {
  background: #f7f9fc;
  border-radius: 14px;
  padding: 12px 14px;
}
.cv__stats .is-blue { background: #eff6ff; }
.cv__stats .is-violet { background: #f5f3ff; }
.cv__stats .is-green { background: #ecfdf5; }
.cv__stats .is-amber { background: #fffbeb; }
.cv__stats span { display: block; font-size: 11px; color: #6b7280; }
.cv__stats strong { display: block; margin-top: 4px; font-size: 20px; color: #111827; }
.cv__ch { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.cv__ch-item {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #9ca3af;
}
.cv__ch-item.is-on { background: #ecfdf5; color: #047857; }
.cv__hint { font-size: 12px; color: #6b7280; background: #f8fafc; border-radius: 10px; padding: 8px 10px; }
.cv__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; margin: 12px 0; }
.cv__card {
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 14px;
  padding: 12px;
}
.cv__card-h { font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.cv__spark { width: 100%; height: 140px; display: block; }
.cv__legend { display: flex; gap: 12px; font-size: 11px; color: #6b7280; margin-top: 6px; }
.cv__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 4px; vertical-align: -1px; }
.cv__donut { display: flex; align-items: center; gap: 14px; }
.cv__donut svg { width: 140px; height: 140px; flex-shrink: 0; }
.cv__donut-leg { list-style: none; margin: 0; padding: 0; flex: 1; }
.cv__donut-leg li { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 4px 0; }
.cv__donut-leg i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cv__donut-leg span { flex: 1; min-width: 0; }
.cv__donut-leg strong { color: #6b7280; font-weight: 600; }
.cv__kvs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cv__kv {
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px 12px;
}
.cv__kv span { display: block; font-size: 11px; color: #6b7280; }
.cv__kv strong { display: block; margin-top: 4px; font-size: 13px; overflow-wrap: anywhere; }
.cv__bars { display: flex; flex-direction: column; gap: 10px; }
.cv__bar-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; margin-bottom: 4px; }
.cv__bar-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: left; }
.cv__bar-meta em { color: #6b7280; font-style: normal; flex-shrink: 0; }
.cv__bar-track { height: 8px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.cv__bar-track i { display: block; height: 100%; border-radius: 999px; }
.cv__empty-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 28px 12px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}
.cv__plist, .cv__elist { list-style: none; margin: 12px 0 0; padding: 0; }
.cv__plist li, .cv__elist li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
}
.cv__plist li { flex-direction: row; justify-content: space-between; gap: 10px; align-items: baseline; }
.cv__plist em, .cv__elist time { color: #9ca3af; font-style: normal; flex-shrink: 0; }
.cv__elist li div { display: flex; align-items: center; gap: 6px; }
@media (max-width: 760px) {
  .cv__stats--4, .cv__grid, .cv__kvs { grid-template-columns: 1fr; }
  .cv__donut { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 1180px) {
  .cv__layout { grid-template-columns: 280px minmax(0, 1fr); }
  .cv__side { display: none; }
}
@media (max-width: 760px) {
  .page.page--conversations .content__full-container,
  .page--conversations .cv { height: auto; min-height: calc(100vh - var(--hm-header-height) - 20px); }
  .cv__layout { grid-template-columns: 1fr; }
  .cv__list { max-height: 42vh; border-left: 0; border-bottom: 1px solid #eef1f5; }
  .cv__toolbar { flex-wrap: wrap; }
}

.tplb {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 250px;
  gap: 12px;
  align-items: start;
}
.tplb__list {
  grid-column: 1 / -1;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
}
.tplb__list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.tplb__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.tplb__tab {
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #334155;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.tplb__tab.is-on {
  background: #111827;
  color: #fff;
  border-color: #111827;
}
.tplb__rename {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.tplb__rename .db-modal__input {
  flex: 1;
  min-width: 160px;
}
.tplb__col {
  border: 1px solid #eef0f3;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  min-height: 420px;
}
.tplb__col-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}
.tplb__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tplb__chip,
.tplb__key {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border: 1px dashed #dbe1ea;
  background: #f8fafc;
  border-radius: 10px;
  padding: 7px 8px;
  font-size: 12px;
  color: #334155;
  cursor: grab;
  width: 100%;
  text-align: right;
}
.tplb__chip { width: auto; }
.tplb__chip:hover,
.tplb__key:hover { border-color: #93c5fd; background: #eff6ff; }
.tplb__chip.is-dragging,
.tplb__key.is-dragging,
.tplb__node.is-dragging { opacity: 0.5; }
.tplb__key code { font-size: 11px; color: #0f172a; direction: ltr; }
.tplb__key span { font-size: 10px; color: #94a3b8; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tplb__keys { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow: auto; }
.tplb__canvas {
  min-height: 280px;
  background: #f8fafc;
  border: 1px dashed #dbe1ea;
  border-radius: 14px;
  padding: 10px;
}
.tplb__node {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  margin: 4px 0;
}
.tplb__node.is-selected { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,.15); }
.tplb__node.is-drop { outline: 2px dashed #2563eb; }
.tplb__node-bar { font-size: 11px; color: #64748b; margin-bottom: 4px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tplb__node--float { border-style: dashed; }
.tplb__float-tag {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: #6d28d9;
  background: #f5f3ff;
  border-radius: 999px;
  padding: 1px 6px;
  flex-shrink: 0;
}
.hm-tpl-anchor { position: relative; display: inline-block; flex-shrink: 0; line-height: 0; }
.hm-tpl-float { pointer-events: none; max-width: 100%; }
.hm-tpl-card { position: relative; }
.tplb__node-kids--row { display: flex; gap: 6px; flex-wrap: wrap; }
.tplb__node-kids--stack { display: flex; flex-direction: column; gap: 4px; }
.tplb__drop-hint { font-size: 11px; color: #94a3b8; padding: 12px; text-align: center; }
.tplb__preview {
  margin-top: 12px;
  background: #eef2f7;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  justify-content: center;
}
.tplb__inspector { display: flex; flex-direction: column; gap: 10px; }
.tplb__insp-sec { display: flex; flex-direction: column; gap: 6px; }
.tplb__insp-sec strong { font-size: 13px; }
.tplb__insp-actions { display: flex; gap: 6px; margin: 6px 0; }
.tplb__check { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #374151; font-weight: 600; }
.tplb__toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tplb__empty { font-size: 12px; color: #94a3b8; padding: 8px; }
.tplb__color {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}
.tplb__color input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  box-sizing: border-box;
  overflow: hidden;
  flex-shrink: 0;
}
.tplb__color input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.tplb__color input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}
.tplb__color input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 6px;
}
.tplb__none-hint,
.tplb__text-preview {
  font-size: 13px;
  line-height: 1.7;
  color: #475569;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 16px;
}
.tplb__text-preview { width: 100%; max-width: 360px; text-align: right; }
.tplb__text-preview div { margin-bottom: 6px; }
.tplb.is-text-only .tplb__chips,
.tplb.is-text-only .tplb__keys { opacity: 0.45; pointer-events: none; }
.hm-tpl-chevron,
.cv__card-p .hm-tpl-chevron {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1f5f9;
  flex-shrink: 0;
  position: relative;
  display: inline-block;
}
.hm-tpl-chevron:after {
  content: "";
  position: absolute;
  top: 8px;
  right: 9px;
  width: 6px;
  height: 6px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(135deg);
}
#hm-chat-host .hm-chat-card--tpl {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  width: 100%;
}
#hm-chat-host .hm-tpl-card { text-align: right; }
.cv__card-p--tpl { display: block; padding: 0; border: 0; background: transparent; }
@media (max-width: 1100px) {
  .tplb { grid-template-columns: 1fr; }
}

.hm-page-tabs { margin: 4px 0 16px; }
.an__tab:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #111827;
}
.an__tab.is-active:hover {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.rec-report__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.sm--recommend .rec-report__range {
  min-width: 160px;
}
.sm--recommend .an__tabs { margin: 4px 0 8px; }
.sm--recommend .sm__rt-table { min-width: 420px; }
.rec-report__empty {
  width: 100%;
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px dashed #dbe3ef;
  background: #f8fafc;
  text-align: center;
}
.rec-report__empty strong {
  display: block;
  font-size: 16px;
  color: #111827;
  margin-bottom: 6px;
}
.rec-report__empty p {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 13px;
}
.rec-report__empty-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rec-report__slot a,
.rec-report__slot strong {
  display: block;
  color: #111827;
  font-weight: 700;
  text-decoration: none;
}
.rec-report__slot a:hover { color: #2563eb; }
.rec-report__slot code {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #94a3b8;
}
.rec-report__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 92px;
}
.rec-report__bar i {
  display: block;
  height: 6px;
  width: 56px;
  border-radius: 99px;
  background: #e5e7eb;
  position: relative;
  overflow: hidden;
  flex: none;
}
.rec-report__bar i::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: var(--w, 0%);
  background: #10b981;
  border-radius: 99px;
}
.rec-report__bar em {
  font-style: normal;
  font-weight: 700;
  color: #111827;
}
.rec-report__share {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rec-report__share-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: #334155;
}
.rec-report__share-top strong { color: #111827; }
.rec-report__track {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: #eef2f7;
  overflow: hidden;
  margin-top: 6px;
}
.rec-report__track i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: #2563eb;
}
.rec-report__sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
}
.rec-report__sources span {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 4px 10px;
}
.sm--recommend .sm__card--wide { grid-column: 1 / -1; }
.sm--recommend [data-report-card="list_docs"] .sm__rt-table { min-width: 560px; }
.rec-report__keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.rec-report__keys span {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 3px 8px;
}
.rec-report__doc {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
}
.rec-report__doc:hover strong { color: #2563eb; }
.rec-report__modal-box { width: min(480px, 100%); }
.rec-report__modal-box--doc { width: min(560px, 100%); }
.rec-report__field-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow: auto;
  margin: 10px 0 12px;
}
.rec-report__field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
}
.rec-report__field.is-on {
  background: #f8fafc;
  border-color: #dbeafe;
}
.rec-report__field code {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  background: none;
}
.rec-report__add {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.rec-report__add input {
  flex: 1;
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
}
.rec-report__modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rec-report__modal-foot span {
  font-size: 12px;
  color: #64748b;
}
.rec-report__doc-id {
  margin: 0 0 12px;
  font-size: 12px;
  color: #94a3b8;
  word-break: break-all;
}
.rec-report__kv-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rec-report__kv {
  display: grid;
  grid-template-columns: minmax(90px, 140px) 1fr;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  background: #fff;
}
.rec-report__kv.is-on {
  background: #f8fafc;
  border-color: #dbeafe;
}
.rec-report__kv dt {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  word-break: break-all;
}
.rec-report__kv dd {
  margin: 0;
  font-size: 13px;
  color: #111827;
  word-break: break-word;
  white-space: pre-wrap;
}
@media (max-width: 700px) {
  .rec-report__tools { width: 100%; }
  .sm--recommend .sm__db-select,
  .sm--recommend .rec-report__range { width: 100%; }
  .rec-report__kv { grid-template-columns: 1fr; }
}









