:root {
  --dashboard-sidebar-width: 300px;
  --dashboard-sidebar-collapsed-width: 88px;
  --dashboard-topbar-height: 74px;
  --dashboard-footer-height: 72px;
  --dashboard-footer-safe-space: calc(
    var(--dashboard-footer-height) + var(--dashboard-content-gutter-bottom) + 16px
  );
  --dashboard-content-gutter-x: 28px;
  --dashboard-content-gutter-y: 24px;
  --dashboard-content-gutter-bottom: 20px;
  --dashboard-portal-accent-rgb: var(--bs-primary-rgb);
  --dashboard-shell-bg: #191e26;
  --dashboard-shell-start: #11151b;
  --dashboard-shell-end: #191e26;
  --dashboard-sidebar-bg:
    linear-gradient(180deg, rgba(9, 12, 16, 0.98), rgba(14, 18, 24, 0.98)),
    radial-gradient(circle at top left, rgba(var(--dashboard-portal-accent-rgb), 0.14), transparent 42%);
  --dashboard-topbar-bg:
    linear-gradient(180deg, rgba(13, 18, 24, 0.98), rgba(8, 12, 18, 0.96)),
    linear-gradient(90deg, rgba(var(--dashboard-portal-accent-rgb), 0.18), transparent 38%);
  --dashboard-panel-bg: rgba(24, 29, 36, 0.96);
  --dashboard-panel-bg-soft: rgba(255, 255, 255, 0.03);
  --dashboard-surface-gradient-start: rgba(29, 35, 43, 0.97);
  --dashboard-surface-gradient-end: rgba(22, 27, 34, 0.98);
  --dashboard-surface-elevated: #171c23;
  --dashboard-surface-deep: #10151b;
  --dashboard-page-wrapper-bg:
    radial-gradient(circle at top right, rgba(var(--dashboard-portal-accent-rgb), 0.14), transparent 24%),
    radial-gradient(circle at 18% 18%, rgba(73, 190, 255, 0.08), transparent 28%),
    linear-gradient(135deg, rgba(17, 22, 31, 0.99), rgba(23, 30, 41, 0.98) 48%, rgba(15, 20, 28, 0.99));
  --dashboard-body-pane-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008) 42%, rgba(255, 255, 255, 0));
  --dashboard-footer-bg:
    linear-gradient(180deg, rgba(9, 12, 17, 0.98), rgba(5, 8, 13, 1));
  --dashboard-footer-border: rgba(255, 255, 255, 0.16);
  --dashboard-border: rgba(255, 255, 255, 0.07);
  --dashboard-shell-muted-strong: #bbc3cf;
  --dashboard-shell-chip-bg: rgba(255, 255, 255, 0.025);
  --dashboard-shell-chip-border: rgba(255, 255, 255, 0.06);
  --dashboard-shell-accent-text: #9eb7ff;
  --dashboard-shadow: 0 18px 36px -28px rgba(0, 0, 0, 0.72);
  --dashboard-sidebar-shadow: 18px 0 40px -34px rgba(0, 0, 0, 0.9);
  --dashboard-topbar-shadow: 0 20px 38px -18px rgba(0, 0, 0, 0.82);
  --dashboard-scrollbar-size: 11px;
  --dashboard-scrollbar-track: rgba(10, 16, 24, 0.52);
  --dashboard-scrollbar-thumb-solid: rgba(101, 134, 188, 0.72);
  --dashboard-scrollbar-thumb:
    linear-gradient(180deg, rgba(124, 162, 230, 0.92), rgba(78, 114, 182, 0.92));
  --dashboard-scrollbar-thumb-hover:
    linear-gradient(180deg, rgba(154, 189, 247, 0.96), rgba(95, 132, 208, 0.96));
  --dashboard-scrollbar-corner: rgba(8, 12, 18, 0.28);
}

@media (min-width: 1200px) {
  html:has(body.page-dashboard),
  html:has(body.page-auth) {
    font-size: 12px;
  }

  :root {
    --dashboard-sidebar-width: 260px;
    --dashboard-sidebar-collapsed-width: 88px;
    --dashboard-topbar-height: 60px;
    --dashboard-footer-height: 64px;
    --dashboard-content-gutter-x: 18px;
    --dashboard-content-gutter-y: 16px;
    --dashboard-content-gutter-bottom: 14px;
  }
}

html[data-app-theme="light"] {
  --dashboard-shell-bg: #f6f9fc;
  --dashboard-panel-bg: rgba(255, 255, 255, 0.96);
  --dashboard-panel-bg-soft: rgba(42, 53, 71, 0.04);
  --dashboard-sidebar-bg:
    linear-gradient(180deg, rgba(252, 253, 255, 0.99), rgba(236, 243, 252, 0.99)),
    radial-gradient(circle at top left, rgba(var(--dashboard-portal-accent-rgb), 0.2), transparent 42%),
    radial-gradient(circle at bottom left, rgba(76, 195, 255, 0.12), transparent 32%);
  --dashboard-topbar-bg:
    linear-gradient(180deg, rgba(231, 240, 250, 0.99), rgba(214, 226, 239, 0.97)),
    linear-gradient(90deg, rgba(var(--dashboard-portal-accent-rgb), 0.24), rgba(107, 198, 255, 0.16) 42%, transparent 76%);
  --dashboard-page-wrapper-bg:
    radial-gradient(circle at 100% 0%, rgba(var(--dashboard-portal-accent-rgb), 0.2), transparent 26%),
    radial-gradient(circle at 0% 12%, rgba(107, 198, 255, 0.18), transparent 30%),
    radial-gradient(circle at 20% 100%, rgba(82, 157, 255, 0.14), transparent 28%),
    radial-gradient(circle at 100% 100%, rgba(19, 222, 185, 0.1), transparent 24%),
    linear-gradient(135deg, rgba(248, 251, 255, 0.99), rgba(236, 243, 252, 0.99) 48%, rgba(228, 237, 247, 0.99));
  --dashboard-body-pane-bg:
    radial-gradient(circle at top left, rgba(113, 177, 255, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(105, 226, 213, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.42) 44%, rgba(255, 255, 255, 0.12));
  --dashboard-footer-bg:
    linear-gradient(180deg, rgba(228, 238, 249, 0.99), rgba(214, 226, 238, 1));
  --dashboard-footer-border: rgba(42, 53, 71, 0.22);
  --dashboard-border: rgba(42, 53, 71, 0.12);
  --dashboard-shell-muted-strong: #6f809a;
  --dashboard-shell-chip-bg: rgba(42, 53, 71, 0.05);
  --dashboard-shell-chip-border: rgba(42, 53, 71, 0.08);
  --dashboard-shell-accent-text: #4164e3;
  --dashboard-shadow: 0 20px 40px -30px rgba(15, 23, 42, 0.18);
  --dashboard-sidebar-shadow: 12px 0 34px -28px rgba(15, 23, 42, 0.18);
  --dashboard-topbar-shadow: 0 20px 38px -18px rgba(15, 23, 42, 0.26);
  --dashboard-scrollbar-track: rgba(207, 220, 238, 0.88);
  --dashboard-scrollbar-thumb-solid: rgba(86, 122, 191, 0.72);
  --dashboard-scrollbar-thumb:
    linear-gradient(180deg, rgba(120, 164, 242, 0.96), rgba(77, 117, 198, 0.94));
  --dashboard-scrollbar-thumb-hover:
    linear-gradient(180deg, rgba(147, 186, 255, 0.98), rgba(88, 128, 214, 0.96));
  --dashboard-scrollbar-corner: rgba(219, 231, 246, 0.56);
}

body.theme-dark.page-dashboard {
  min-height: 100vh;
  color: var(--bs-body-color);
  background:
    radial-gradient(circle at top left, rgba(var(--dashboard-portal-accent-rgb), 0.18), transparent 26%),
    radial-gradient(circle at 85% 18%, rgba(73, 190, 255, 0.11), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(15, 23, 42, 0.42), transparent 34%),
    linear-gradient(135deg, #0d1218 0%, #141a23 46%, #0f141c 100%);
}

body.page-dashboard {
  overflow: hidden;
}

body.page-dashboard .dashboard-body-wrapper,
body.page-dashboard .dashboard-page-content,
body.page-dashboard .response-panel,
body.page-dashboard .dashboard-card .table-responsive,
body.page-dashboard .chat-center-conversation-list,
body.page-dashboard .chat-center-thread-body,
body.page-dashboard .chat-center-insights-scroll,
body.page-dashboard .chat-center-emoji-grid,
body.page-dashboard .chat-center-sticker-grid,
body.page-dashboard .chat-center-media-viewer-body,
body.page-dashboard .chat-center-compose-input {
  scrollbar-width: thin;
  scrollbar-color: var(--dashboard-scrollbar-thumb-solid) var(--dashboard-scrollbar-track);
}

body.page-dashboard .dashboard-body-wrapper::-webkit-scrollbar,
body.page-dashboard .dashboard-page-content::-webkit-scrollbar,
body.page-dashboard .response-panel::-webkit-scrollbar,
body.page-dashboard .dashboard-card .table-responsive::-webkit-scrollbar,
body.page-dashboard .chat-center-conversation-list::-webkit-scrollbar,
body.page-dashboard .chat-center-thread-body::-webkit-scrollbar,
body.page-dashboard .chat-center-insights-scroll::-webkit-scrollbar,
body.page-dashboard .chat-center-emoji-grid::-webkit-scrollbar,
body.page-dashboard .chat-center-sticker-grid::-webkit-scrollbar,
body.page-dashboard .chat-center-media-viewer-body::-webkit-scrollbar,
body.page-dashboard .chat-center-compose-input::-webkit-scrollbar {
  width: var(--dashboard-scrollbar-size);
  height: var(--dashboard-scrollbar-size);
}

body.page-dashboard .dashboard-body-wrapper::-webkit-scrollbar-track,
body.page-dashboard .dashboard-page-content::-webkit-scrollbar-track,
body.page-dashboard .response-panel::-webkit-scrollbar-track,
body.page-dashboard .dashboard-card .table-responsive::-webkit-scrollbar-track,
body.page-dashboard .chat-center-conversation-list::-webkit-scrollbar-track,
body.page-dashboard .chat-center-thread-body::-webkit-scrollbar-track,
body.page-dashboard .chat-center-insights-scroll::-webkit-scrollbar-track,
body.page-dashboard .chat-center-emoji-grid::-webkit-scrollbar-track,
body.page-dashboard .chat-center-sticker-grid::-webkit-scrollbar-track,
body.page-dashboard .chat-center-media-viewer-body::-webkit-scrollbar-track,
body.page-dashboard .chat-center-compose-input::-webkit-scrollbar-track {
  border-radius: 999px;
  background: var(--dashboard-scrollbar-track);
}

body.page-dashboard .dashboard-body-wrapper::-webkit-scrollbar-thumb,
body.page-dashboard .dashboard-page-content::-webkit-scrollbar-thumb,
body.page-dashboard .response-panel::-webkit-scrollbar-thumb,
body.page-dashboard .dashboard-card .table-responsive::-webkit-scrollbar-thumb,
body.page-dashboard .chat-center-conversation-list::-webkit-scrollbar-thumb,
body.page-dashboard .chat-center-thread-body::-webkit-scrollbar-thumb,
body.page-dashboard .chat-center-insights-scroll::-webkit-scrollbar-thumb,
body.page-dashboard .chat-center-emoji-grid::-webkit-scrollbar-thumb,
body.page-dashboard .chat-center-sticker-grid::-webkit-scrollbar-thumb,
body.page-dashboard .chat-center-media-viewer-body::-webkit-scrollbar-thumb,
body.page-dashboard .chat-center-compose-input::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--dashboard-scrollbar-thumb);
  background-clip: padding-box;
}

body.page-dashboard .dashboard-body-wrapper::-webkit-scrollbar-thumb:hover,
body.page-dashboard .dashboard-page-content::-webkit-scrollbar-thumb:hover,
body.page-dashboard .response-panel::-webkit-scrollbar-thumb:hover,
body.page-dashboard .dashboard-card .table-responsive::-webkit-scrollbar-thumb:hover,
body.page-dashboard .chat-center-conversation-list::-webkit-scrollbar-thumb:hover,
body.page-dashboard .chat-center-thread-body::-webkit-scrollbar-thumb:hover,
body.page-dashboard .chat-center-insights-scroll::-webkit-scrollbar-thumb:hover,
body.page-dashboard .chat-center-emoji-grid::-webkit-scrollbar-thumb:hover,
body.page-dashboard .chat-center-sticker-grid::-webkit-scrollbar-thumb:hover,
body.page-dashboard .chat-center-media-viewer-body::-webkit-scrollbar-thumb:hover,
body.page-dashboard .chat-center-compose-input::-webkit-scrollbar-thumb:hover {
  background: var(--dashboard-scrollbar-thumb-hover);
  background-clip: padding-box;
}

body.page-dashboard .dashboard-body-wrapper::-webkit-scrollbar-corner,
body.page-dashboard .dashboard-page-content::-webkit-scrollbar-corner,
body.page-dashboard .response-panel::-webkit-scrollbar-corner,
body.page-dashboard .dashboard-card .table-responsive::-webkit-scrollbar-corner,
body.page-dashboard .chat-center-conversation-list::-webkit-scrollbar-corner,
body.page-dashboard .chat-center-thread-body::-webkit-scrollbar-corner,
body.page-dashboard .chat-center-insights-scroll::-webkit-scrollbar-corner,
body.page-dashboard .chat-center-emoji-grid::-webkit-scrollbar-corner,
body.page-dashboard .chat-center-sticker-grid::-webkit-scrollbar-corner,
body.page-dashboard .chat-center-media-viewer-body::-webkit-scrollbar-corner,
body.page-dashboard .chat-center-compose-input::-webkit-scrollbar-corner {
  background: var(--dashboard-scrollbar-corner);
}

body.page-dashboard.page-admin {
  --dashboard-portal-accent-rgb: var(--bs-primary-rgb);
}

body.page-dashboard.page-customer {
  --dashboard-portal-accent-rgb: var(--bs-success-rgb);
}

body.theme-dark.page-dashboard .text-muted,
body.theme-dark.page-dashboard .text-secondary,
body.theme-dark.page-dashboard .form-text {
  color: var(--bs-body-color) !important;
}

body.theme-dark.page-dashboard a {
  text-decoration: none;
}

body.theme-dark.page-dashboard code {
  color: #9eb7ff;
  background: transparent;
  padding: 0;
}

#main-wrapper.dashboard-layout {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--dashboard-page-wrapper-bg);
}

#main-wrapper.dashboard-layout::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 0%, rgba(var(--dashboard-portal-accent-rgb), 0.08), transparent 26%),
    radial-gradient(circle at 100% 100%, rgba(73, 190, 255, 0.06), transparent 20%);
  pointer-events: none;
  z-index: 0;
}

html[data-layout="vertical"] body.page-dashboard .page-wrapper {
  margin-left: 0 !important;
  width: auto !important;
}

html[data-layout="vertical"] body.page-dashboard .topbar {
  width: auto !important;
}

.dashboard-sidebar {
  width: var(--dashboard-sidebar-width);
  min-height: 100vh;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: var(--dashboard-sidebar-bg);
  border-right: 1px solid var(--bs-border-color);
  padding: 0 16px 20px;
  z-index: 1045;
  box-shadow: var(--dashboard-sidebar-shadow);
  backdrop-filter: blur(14px);
  transition: width 0.22s ease, padding 0.22s ease;
}

.dashboard-sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(var(--dashboard-portal-accent-rgb), 0.34),
    rgba(255, 255, 255, 0.06) 28%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

.dashboard-sidebar .brand-logo {
  height: 76px;
  padding: 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0));
}

.dashboard-sidebar .logo-img {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dashboard-sidebar .sidebar-brand-logo {
  height: 30px;
  width: auto;
  display: block;
}

.dashboard-sidebar .sidebar-brand-mark {
  display: none;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.dashboard-sidebar .sidebartoggler {
  color: var(--bs-body-color);
}

.dashboard-sidebar .hide-menu {
  display: inline-block;
  max-width: 180px;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.18s ease, max-width 0.18s ease;
}

.dashboard-sidebar .sidebar-nav {
  height: calc(100vh - 92px);
  padding: 18px 4px 16px;
}

.dashboard-sidebar .nav-small-cap {
  display: flex;
  align-items: center;
  margin: 10px 0 4px;
  padding: 6px 0 10px;
  color: var(--bs-body-color);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  position: relative;
}

.dashboard-sidebar .nav-small-cap:first-child {
  margin-top: 2px;
}

.dashboard-sidebar .nav-small-cap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-sidebar .nav-small-cap-icon {
  display: none;
}

.dashboard-sidebar .sidebar-item {
  margin-bottom: 4px;
}

.dashboard-sidebar .sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 0 !important;
  border: 1px solid transparent;
  color: var(--bs-body-color);
  background: rgba(255, 255, 255, 0.02);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.dashboard-sidebar .sidebar-link span:first-child {
  width: 18px;
  display: inline-flex;
  justify-content: center;
  color: inherit;
}

.dashboard-sidebar .sidebar-link:hover,
.dashboard-sidebar .sidebar-link.active,
.dashboard-sidebar .sidebar-nav ul .sidebar-item.selected > .sidebar-link,
.dashboard-sidebar .sidebar-nav ul .sidebar-item.selected > .sidebar-link.active,
.dashboard-sidebar .sidebar-nav ul .sidebar-item > .sidebar-link.active {
  color: var(--bs-emphasis-color);
}

.dashboard-sidebar .sidebar-link:hover,
.dashboard-sidebar .sidebar-nav ul .sidebar-item > .sidebar-link:hover {
  background: rgba(255, 255, 255, 0.015) !important;
  background-color: rgba(255, 255, 255, 0.015) !important;
  border-color: rgba(var(--dashboard-portal-accent-rgb), 0.04) !important;
  box-shadow: inset 2px 0 0 rgba(var(--dashboard-portal-accent-rgb), 0.54) !important;
}

.dashboard-sidebar .sidebar-link.active,
.dashboard-sidebar .sidebar-nav ul .sidebar-item.selected > .sidebar-link,
.dashboard-sidebar .sidebar-nav ul .sidebar-item.selected > .sidebar-link.active,
.dashboard-sidebar .sidebar-nav ul .sidebar-item > .sidebar-link.active {
  background: rgba(var(--dashboard-portal-accent-rgb), 0.018) !important;
  background-color: rgba(var(--dashboard-portal-accent-rgb), 0.018) !important;
  background-image: none !important;
  border-color: rgba(var(--dashboard-portal-accent-rgb), 0.05) !important;
  box-shadow: inset 2px 0 0 rgba(var(--dashboard-portal-accent-rgb), 0.68) !important;
  color: var(--bs-emphasis-color) !important;
}

.dashboard-sidebar-backdrop {
  display: none;
}

@media (min-width: 1200px) {
  #main-wrapper.sidebar-collapsed .dashboard-sidebar {
    width: 88px;
    padding-left: 10px;
    padding-right: 10px;
  }

  #main-wrapper.sidebar-collapsed .dashboard-sidebar .brand-logo {
    justify-content: center !important;
    padding-left: 0;
    padding-right: 0;
  }

  #main-wrapper.sidebar-collapsed .dashboard-sidebar .logo-img {
    width: 100%;
    justify-content: center;
  }

  #main-wrapper.sidebar-collapsed .dashboard-sidebar .sidebar-brand-logo {
    display: none;
  }

  #main-wrapper.sidebar-collapsed .dashboard-sidebar .sidebar-brand-mark {
    display: block;
  }

  #main-wrapper.sidebar-collapsed .dashboard-sidebar .sidebar-nav {
    padding-left: 0;
    padding-right: 0;
  }

  #main-wrapper.sidebar-collapsed .dashboard-sidebar .nav-small-cap {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  #main-wrapper.sidebar-collapsed .dashboard-sidebar .nav-small-cap .hide-menu {
    opacity: 0;
    max-width: 0;
  }

  #main-wrapper.sidebar-collapsed .dashboard-sidebar .nav-small-cap-icon {
    margin-right: 0;
  }

  #main-wrapper.sidebar-collapsed .dashboard-sidebar .sidebar-link {
    justify-content: center;
    gap: 0;
    padding-left: 0;
    padding-right: 0;
  }

  #main-wrapper.sidebar-collapsed .dashboard-sidebar .sidebar-link .hide-menu {
    opacity: 0;
    max-width: 0;
  }

  #main-wrapper.sidebar-collapsed .dashboard-sidebar .sidebar-link span:first-child {
    width: auto;
    font-size: 18px;
  }
}

.dashboard-page-wrapper {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  flex: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100vh;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden;
  scroll-padding-top: var(--dashboard-topbar-height);
  position: relative;
  z-index: 1;
  background: var(--dashboard-page-wrapper-bg);
}

.dashboard-body-wrapper {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-top: 0 !important;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--dashboard-body-pane-bg);
}

.dashboard-page-wrapper .dashboard-body-wrapper > .container-fluid {
  max-width: none;
  width: 100%;
  height: auto;
  min-height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 0 var(--dashboard-content-gutter-bottom)
    var(--dashboard-content-gutter-x) !important;
}

@media (min-width: 1400px) {
  .dashboard-page-wrapper .dashboard-body-wrapper > .container-fluid {
    max-width: 1540px;
    margin: 0 auto;
  }
}

.dashboard-page-content {
  flex: 1 0 auto;
  min-height: auto;
  min-width: 0;
  width: 100%;
  position: relative;
  overflow: visible;
  margin-top: 0;
  padding-top: var(--dashboard-content-gutter-y);
  padding-right: var(--dashboard-content-gutter-x);
  padding-bottom: var(--dashboard-content-gutter-bottom);
}

@media (min-width: 1200px) {
  .dashboard-page-content {
    padding-bottom: calc(var(--dashboard-content-gutter-bottom) + 8px);
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1035;
  isolation: isolate;
  border-bottom: 1px solid var(--dashboard-footer-border);
  background: var(--dashboard-topbar-bg);
  backdrop-filter: blur(18px) saturate(155%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  box-shadow:
    var(--dashboard-topbar-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 14px 28px -16px rgba(0, 0, 0, 0.5);
  overflow: visible;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 32%, rgba(255, 255, 255, 0)),
    radial-gradient(circle at top right, rgba(var(--dashboard-portal-accent-rgb), 0.18), transparent 34%);
  pointer-events: none;
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(var(--dashboard-portal-accent-rgb), 0),
    rgba(var(--dashboard-portal-accent-rgb), 0.5) 20%,
    rgba(var(--dashboard-portal-accent-rgb), 0.18) 80%,
    rgba(var(--dashboard-portal-accent-rgb), 0)
  );
  pointer-events: none;
}

.dashboard-topbar {
  min-height: var(--dashboard-topbar-height);
  gap: 16px;
  padding: 0 22px;
}

.dashboard-topbar .nav-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-body-color);
  border-radius: 999px;
}

.dashboard-topbar .nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--bs-emphasis-color);
}

.dashboard-topbar-copy {
  margin-left: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--dashboard-shell-chip-border);
  background: var(--dashboard-shell-chip-bg);
}

.dashboard-portal-badge,
.page-title-label,
.panel-chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.dashboard-portal-badge.is-primary,
.page-title-label.is-primary,
.panel-chip.is-primary,
.status-pill.is-primary {
  background: rgba(var(--bs-primary-rgb), 0.16);
  border-color: rgba(var(--bs-primary-rgb), 0.22);
  color: var(--dashboard-shell-accent-text);
}

.dashboard-portal-badge.is-success,
.page-title-label.is-success,
.panel-chip.is-success,
.status-pill.is-success,
.status-pill.is-connected {
  background: rgba(var(--bs-success-rgb), 0.14);
  border-color: rgba(var(--bs-success-rgb), 0.2);
  color: #7cebd7;
}

.dashboard-portal-badge.is-warning,
.page-title-label.is-warning,
.panel-chip.is-warning,
.status-pill.is-warning,
.status-pill.is-qr-ready {
  background: rgba(var(--bs-warning-rgb), 0.16);
  border-color: rgba(var(--bs-warning-rgb), 0.24);
  color: #ffcf72;
}

.dashboard-portal-badge.is-info,
.page-title-label.is-info,
.panel-chip.is-info,
.status-pill.is-info {
  background: rgba(var(--bs-info-rgb), 0.16);
  border-color: rgba(var(--bs-info-rgb), 0.22);
  color: #9fc5ff;
}

.dashboard-portal-badge.is-danger,
.page-title-label.is-danger,
.panel-chip.is-danger,
.status-pill.is-danger,
.status-pill.is-error {
  background: rgba(var(--bs-danger-rgb), 0.14);
  border-color: rgba(var(--bs-danger-rgb), 0.2);
  color: #ffb7a7;
}

.panel-chip,
.status-pill {
  min-height: 30px;
  padding: 0 11px;
}

.panel-chip,
.page-title-label {
  gap: 8px;
}

.status-pill.is-connecting,
.status-pill.is-disconnected {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--dashboard-border);
  color: #c7d2e5;
}

.dashboard-topbar-note {
  margin: 0;
  color: var(--bs-body-color);
  font-size: 13px;
  font-weight: 600;
}

.theme-toggle-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-toggle-button .ti {
  font-size: 16px;
}

.theme-toggle-button.is-icon-only {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  gap: 0;
  justify-content: center;
}

.theme-toggle-button.is-icon-only [data-theme-toggle-label] {
  display: none;
}

.theme-toggle-button:hover {
  transform: translateY(-1px);
}

.theme-toggle-button:focus-visible {
  outline: 2px solid rgba(var(--bs-primary-rgb), 0.38);
  outline-offset: 2px;
}

.theme-toggle-button.is-dashboard {
  background: transparent !important;
  color: var(--bs-body-color);
  border: 0 !important;
  border-width: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.theme-toggle-button.is-dashboard:hover,
.theme-toggle-button.is-dashboard:focus-visible {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--bs-emphasis-color);
  border: 0 !important;
  border-width: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.topbar-language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0 !important;
  border-width: 0 !important;
  border-color: transparent !important;
  background: transparent !important;
  color: var(--bs-body-color);
  font-size: 13px;
  font-weight: 700;
  box-shadow: none !important;
  outline: 0 !important;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.topbar-language-trigger:hover,
.topbar-language-trigger.show,
.topbar-language-trigger:focus-visible {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--bs-emphasis-color);
  transform: translateY(-1px);
  border: 0 !important;
  border-width: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.topbar-language-trigger::after {
  margin-left: 4px;
}

.topbar-language-code {
  min-width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.08em;
}

.language-flag {
  width: 18px;
  height: 13px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.language-flag.is-id {
  background-image: url("/modernize/assets/fonts/flag-icon-css/flags/id.svg");
}

.language-flag.is-en {
  background-image: url("/modernize/assets/fonts/flag-icon-css/flags/gb.svg");
}

.topbar-language-flag {
  margin-left: 2px;
}

.topbar-language-menu .dropdown-item.active,
.topbar-language-menu .dropdown-item:active {
  background: rgba(var(--bs-primary-rgb), 0.14);
  color: var(--bs-emphasis-color);
}

.topbar-user-dropdown .dropdown-toggle::after {
  display: none;
}

.topbar-profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 14px 7px 7px;
  border-radius: 999px;
  border: 0 !important;
  border-width: 0 !important;
  border-color: transparent !important;
  background: transparent !important;
  color: inherit;
  box-shadow: none !important;
  outline: 0 !important;
}

.topbar-profile-trigger:hover,
.topbar-profile-trigger.show {
  background: rgba(255, 255, 255, 0.06) !important;
  color: inherit;
  border: 0 !important;
  border-width: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.topbar-profile-trigger:focus,
.topbar-profile-trigger:active {
  color: inherit !important;
  border: 0 !important;
  border-width: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.topbar-avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #5d87ff, #7aa2ff);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  position: relative;
}

.topbar-profile-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--bs-body-color);
  opacity: 0.9;
  transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.topbar-profile-caret .ti {
  font-size: 16px;
  line-height: 1;
}

.topbar-profile-trigger:hover .topbar-profile-caret,
.topbar-profile-trigger.show .topbar-profile-caret {
  color: var(--bs-emphasis-color);
  opacity: 1;
}

.topbar-profile-trigger.show .topbar-profile-caret {
  transform: rotate(180deg);
}

.topbar-profile-copy {
  min-width: 0;
  text-align: right;
}

.topbar-profile-name {
  color: var(--bs-emphasis-color);
  font-size: 13px;
  font-weight: 700;
}

.topbar-profile-role {
  color: var(--bs-body-color);
  font-size: 11px;
  text-transform: capitalize;
}

.user-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(135deg, #5d87ff, #7aa2ff);
  color: #ffffff;
  font-weight: 700;
  flex-shrink: 0;
}

.user-avatar.is-topbar {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.user-avatar.is-profile-xl {
  width: 108px;
  height: 108px;
  font-size: 34px;
  box-shadow: 0 18px 34px -22px rgba(0, 0, 0, 0.42);
}

.user-avatar.is-profile-lg {
  width: 88px;
  height: 88px;
  font-size: 28px;
  box-shadow: 0 16px 30px -22px rgba(0, 0, 0, 0.36);
}

.user-avatar-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar-initials {
  position: relative;
  z-index: 1;
}

.user-avatar.has-image .user-avatar-initials {
  opacity: 0;
}

.topbar-dropdown-menu {
  min-width: 190px;
  margin-top: 12px !important;
  padding: 8px;
  z-index: 1045;
  border-radius: 16px;
  background: var(--dashboard-surface-elevated);
  border: 1px solid var(--bs-border-color) !important;
  box-shadow: 0 20px 40px -26px rgba(0, 0, 0, 0.78) !important;
}

.topbar-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--bs-emphasis-color);
  font-size: 13px;
  font-weight: 600;
}

.topbar-dropdown-item i {
  color: #9eb7ff;
  font-size: 16px;
}

.topbar-dropdown-item:hover,
.topbar-dropdown-item:focus {
  color: var(--bs-emphasis-color);
  background: rgba(var(--bs-primary-rgb), 0.14);
}

.topbar-dropdown-button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}

.page-title-wrap {
  margin-bottom: 24px;
}

.page-title-card {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px;
  background:
    linear-gradient(135deg, var(--dashboard-surface-gradient-start), var(--dashboard-surface-gradient-end)),
    url("/modernize/assets/images/backgrounds/line-bg.svg");
  background-repeat: no-repeat, no-repeat;
  background-position: center, right -80px bottom -84px;
  background-size: auto, 320px;
  box-shadow:
    0 0 0 1px rgba(136, 156, 194, 0.05),
    0 16px 34px rgba(0, 0, 0, 0.12);
}

.page-title-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.page-title-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.page-title-context {
  color: var(--dashboard-shell-muted-strong);
  font-size: 13px;
  font-weight: 600;
}

.page-title-heading {
  color: var(--bs-emphasis-color);
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 700;
}

.page-title-copy {
  max-width: 68ch;
  color: var(--bs-body-color);
  line-height: 1.7;
}

.page-title-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.page-title-actions .btn {
  min-height: 40px;
  padding-inline: 18px;
  border-radius: 10px;
  font-weight: 600;
}

.dashboard-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    var(--dashboard-panel-bg);
  box-shadow:
    0 0 0 1px rgba(136, 156, 194, 0.04),
    0 14px 30px rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.dashboard-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(var(--dashboard-portal-accent-rgb), 0.08), transparent 30%);
  pointer-events: none;
}

.dashboard-card > .card-body {
  position: relative;
  z-index: 1;
}

.metric-card {
  border: 1px solid rgba(141, 161, 198, 0.18) !important;
  border-radius: 8px;
  background: var(--dashboard-panel-bg);
  box-shadow:
    0 0 0 1px rgba(136, 156, 194, 0.08),
    0 12px 26px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.dashboard-card:hover,
.metric-card:hover,
.quick-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--bs-primary-rgb), 0.28) !important;
  box-shadow: var(--dashboard-shadow);
}

.workspace-card {
  background:
    linear-gradient(135deg, var(--dashboard-surface-gradient-start), var(--dashboard-surface-gradient-end)),
    url("/modernize/assets/images/backgrounds/welcome-bg.svg");
  background-repeat: no-repeat, no-repeat;
  background-position: center, right bottom;
  background-size: auto, 250px;
}

.workspace-title {
  color: var(--bs-emphasis-color);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  line-height: 1.14;
  max-width: 15ch;
}

.workspace-copy {
  max-width: 58ch;
  color: #d6dce5;
  font-size: 14px;
  line-height: 1.8;
}

.workspace-meta-list {
  display: grid;
  gap: 14px;
}

.workspace-meta-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--dashboard-border);
  background: rgba(255, 255, 255, 0.028);
}

.workspace-meta-label {
  color: #c3cad6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-meta-value {
  color: var(--bs-emphasis-color);
  font-size: 14px;
  line-height: 1.6;
}

.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.metric-card .card-body {
  height: 100%;
  padding: 22px 22px 20px !important;
}

.metric-card.tone-primary {
  background: linear-gradient(180deg, rgba(93, 135, 255, 0.14), rgba(24, 29, 36, 0.96));
}

.metric-card.tone-success {
  background: linear-gradient(180deg, rgba(19, 222, 185, 0.12), rgba(24, 29, 36, 0.96));
}

.metric-card.tone-warning {
  background: linear-gradient(180deg, rgba(255, 174, 31, 0.12), rgba(24, 29, 36, 0.96));
}

.metric-card.tone-info {
  background: linear-gradient(180deg, rgba(73, 190, 255, 0.12), rgba(24, 29, 36, 0.96));
}

.metric-card.tone-danger {
  background: linear-gradient(180deg, rgba(250, 137, 107, 0.12), rgba(24, 29, 36, 0.96));
}

.metric-label {
  color: #c3cad6;
  font-size: 13px;
  font-weight: 600;
}

.metric-note {
  color: var(--bs-body-color);
  font-size: 13px;
  line-height: 1.7;
}

.profile-preference-note {
  max-width: 48ch;
  color: var(--bs-secondary-color);
  font-size: 13px;
  line-height: 1.7;
}

.profile-summary-layout {
  display: grid;
  gap: 18px;
}

.profile-summary-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(var(--dashboard-portal-accent-rgb), 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    var(--dashboard-panel-bg-soft);
  box-shadow: 0 0 0 1px rgba(136, 156, 194, 0.04);
}

.profile-summary-avatar-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.profile-summary-avatar {
  cursor: pointer;
  border: 2px solid rgba(var(--dashboard-portal-accent-rgb), 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-summary-avatar-trigger:hover .profile-summary-avatar,
.profile-summary-avatar-trigger:focus-visible .profile-summary-avatar {
  transform: translateY(-1px);
  border-color: rgba(var(--dashboard-portal-accent-rgb), 0.42);
  box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.3);
}

.profile-summary-copy {
  min-width: 0;
  flex: 1;
}

.profile-summary-name {
  margin: 12px 0 8px;
  color: var(--bs-emphasis-color);
  font-size: clamp(1.85rem, 2vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.profile-summary-email {
  color: var(--bs-body-color);
  font-size: 15px;
}

.profile-summary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.profile-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-summary-item {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    var(--dashboard-panel-bg-soft);
  box-shadow: 0 0 0 1px rgba(136, 156, 194, 0.035);
}

.profile-summary-item.is-wide {
  grid-column: 1 / -1;
}

.profile-summary-label {
  display: block;
  margin-bottom: 8px;
  color: #9aacbf;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-summary-value {
  color: var(--bs-emphasis-color);
  font-size: 15px;
  line-height: 1.55;
}

.profile-summary-note,
.profile-avatar-note {
  color: var(--bs-body-color);
  font-size: 13px;
  line-height: 1.7;
}

.profile-avatar-panel {
  display: grid;
  gap: 18px;
}

.profile-avatar-compact,
.profile-avatar-preview-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0)),
    var(--dashboard-panel-bg-soft);
  box-shadow: 0 0 0 1px rgba(136, 156, 194, 0.035);
}

.profile-avatar-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.profile-avatar-preview {
  cursor: pointer;
  border: 2px solid rgba(var(--dashboard-portal-accent-rgb), 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-avatar-trigger:hover .profile-avatar-preview,
.profile-avatar-trigger:focus-visible .profile-avatar-preview {
  transform: translateY(-1px);
  border-color: rgba(var(--dashboard-portal-accent-rgb), 0.42);
  box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.3);
}

.profile-avatar-trigger-badge {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(16, 20, 28, 0.92);
  color: #ffffff;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.5);
}

.profile-avatar-copy {
  min-width: 0;
  flex: 1;
}

.profile-avatar-remove-button {
  color: var(--bs-danger) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}

.profile-avatar-remove-button:hover,
.profile-avatar-remove-button:focus-visible {
  color: var(--bs-danger) !important;
  opacity: 0.88;
}

.profile-avatar-remove-button[disabled] {
  opacity: 0.42;
  pointer-events: none;
}

.billing-package-price {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--bs-emphasis-color);
  letter-spacing: -0.02em;
}

.billing-inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--dashboard-shell-muted-strong);
  font-size: 12px;
}

.billing-inline-meta strong {
  color: var(--bs-emphasis-color);
  font-weight: 700;
}

.billing-access-strip {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(119, 132, 180, 0.24);
  background:
    linear-gradient(135deg, rgba(43, 61, 106, 0.22), rgba(24, 31, 49, 0.08)),
    rgba(10, 16, 28, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-bs-theme='light'] .billing-access-strip {
  border-color: rgba(82, 112, 173, 0.18);
  background:
    linear-gradient(135deg, rgba(133, 173, 255, 0.14), rgba(255, 255, 255, 0.56)),
    rgba(255, 255, 255, 0.72);
}

.round-48 {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  flex-shrink: 0;
}

.metric-pill {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid transparent;
  border-radius: 12px;
}

.metric-pill.is-primary {
  background: rgba(var(--bs-primary-rgb), 0.16);
  border-color: rgba(var(--bs-primary-rgb), 0.24);
  color: #9eb7ff;
}

.metric-pill.is-success {
  background: rgba(var(--bs-success-rgb), 0.14);
  border-color: rgba(var(--bs-success-rgb), 0.22);
  color: #7cebd7;
}

.metric-pill.is-warning {
  background: rgba(var(--bs-warning-rgb), 0.16);
  border-color: rgba(var(--bs-warning-rgb), 0.24);
  color: #ffcf72;
}

.metric-pill.is-info {
  background: rgba(var(--bs-info-rgb), 0.16);
  border-color: rgba(var(--bs-info-rgb), 0.22);
  color: #9fc5ff;
}

.metric-pill.is-danger {
  background: rgba(var(--bs-danger-rgb), 0.14);
  border-color: rgba(var(--bs-danger-rgb), 0.2);
  color: #ffb7a7;
}

.quick-link-card {
  color: inherit;
  border: 1px solid rgba(141, 161, 198, 0.16) !important;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--dashboard-panel-bg);
  box-shadow:
    0 0 0 1px rgba(136, 156, 194, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.quick-link-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.quick-link-label {
  color: var(--bs-emphasis-color);
  font-size: 15px;
  font-weight: 700;
}

.quick-link-copy {
  color: var(--bs-body-color);
  font-size: 13px;
  line-height: 1.7;
}

.quick-link-card .card-body {
  height: 100%;
  padding: 22px 22px 20px !important;
}

.quick-link-card.tone-primary {
  background:
    linear-gradient(180deg, rgba(93, 135, 255, 0.08), rgba(255, 255, 255, 0)),
    var(--dashboard-panel-bg);
}

.quick-link-card.tone-success {
  background:
    linear-gradient(180deg, rgba(19, 222, 185, 0.07), rgba(255, 255, 255, 0)),
    var(--dashboard-panel-bg);
}

.quick-link-card.tone-warning {
  background:
    linear-gradient(180deg, rgba(255, 174, 31, 0.08), rgba(255, 255, 255, 0)),
    var(--dashboard-panel-bg);
}

.quick-link-card.tone-info {
  background:
    linear-gradient(180deg, rgba(73, 190, 255, 0.08), rgba(255, 255, 255, 0)),
    var(--dashboard-panel-bg);
}

.quick-link-card.tone-danger {
  background:
    linear-gradient(180deg, rgba(250, 137, 107, 0.08), rgba(255, 255, 255, 0)),
    var(--dashboard-panel-bg);
}

.dashboard-home-layout {
  display: block;
}

.dashboard-home-body {
  padding: 22px 22px 20px !important;
}

.dashboard-home-hero-body {
  padding: 24px 24px 22px !important;
}

.dashboard-home-hero {
  border-radius: 14px;
  border-color: rgba(var(--dashboard-portal-accent-rgb), 0.28) !important;
  background:
    radial-gradient(circle at top right, rgba(var(--dashboard-portal-accent-rgb), 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--dashboard-panel-bg);
  box-shadow:
    0 0 0 1px rgba(136, 156, 194, 0.08),
    0 18px 42px rgba(0, 0, 0, 0.16);
  position: relative;
}

.dashboard-home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.dashboard-home-title {
  color: var(--bs-emphasis-color);
  font-size: clamp(1.85rem, 2.7vw, 2.55rem);
  line-height: 1.1;
  max-width: 24ch;
}

.dashboard-home-copy {
  max-width: 68ch;
  color: var(--bs-body-color);
  font-size: 14px;
  line-height: 1.8;
}

.dashboard-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-home-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-home-summary-chip {
  min-height: 82px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(136, 156, 194, 0.06),
    0 8px 18px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.dashboard-home-summary-chip::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.16);
}

.dashboard-home-summary-chip.is-primary {
  border-color: rgba(var(--bs-primary-rgb), 0.22);
  background: rgba(var(--bs-primary-rgb), 0.08);
}

.dashboard-home-summary-chip.is-success {
  border-color: rgba(var(--bs-success-rgb), 0.22);
  background: rgba(var(--bs-success-rgb), 0.08);
}

.dashboard-home-summary-chip.is-warning {
  border-color: rgba(var(--bs-warning-rgb), 0.24);
  background: rgba(var(--bs-warning-rgb), 0.08);
}

.dashboard-home-summary-chip.is-danger {
  border-color: rgba(var(--bs-danger-rgb), 0.22);
  background: rgba(var(--bs-danger-rgb), 0.08);
}

.dashboard-home-summary-chip.is-info {
  border-color: rgba(var(--bs-info-rgb), 0.22);
  background: rgba(var(--bs-info-rgb), 0.08);
}

.dashboard-home-summary-chip.is-primary::before {
  background: rgb(var(--bs-primary-rgb));
}

.dashboard-home-summary-chip.is-success::before {
  background: rgb(var(--bs-success-rgb));
}

.dashboard-home-summary-chip.is-warning::before {
  background: rgb(var(--bs-warning-rgb));
}

.dashboard-home-summary-chip.is-danger::before {
  background: rgb(var(--bs-danger-rgb));
}

.dashboard-home-summary-chip.is-info::before {
  background: rgb(var(--bs-info-rgb));
}

.dashboard-home-summary-label {
  display: block;
  margin-bottom: 4px;
  color: var(--dashboard-shell-muted-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-home-summary-value {
  color: var(--bs-emphasis-color);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

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

.dashboard-home-focus-card {
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.16) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    var(--dashboard-panel-bg);
  box-shadow:
    0 0 0 1px rgba(136, 156, 194, 0.06),
    0 14px 32px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.dashboard-home-focus-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.16);
}

.dashboard-home-focus-card.tone-primary {
  background:
    linear-gradient(180deg, rgba(93, 135, 255, 0.11), rgba(255, 255, 255, 0)),
    var(--dashboard-panel-bg);
}

.dashboard-home-focus-card.tone-success {
  background:
    linear-gradient(180deg, rgba(19, 222, 185, 0.1), rgba(255, 255, 255, 0)),
    var(--dashboard-panel-bg);
}

.dashboard-home-focus-card.tone-warning {
  background:
    linear-gradient(180deg, rgba(255, 174, 31, 0.11), rgba(255, 255, 255, 0)),
    var(--dashboard-panel-bg);
}

.dashboard-home-focus-card.tone-info {
  background:
    linear-gradient(180deg, rgba(73, 190, 255, 0.11), rgba(255, 255, 255, 0)),
    var(--dashboard-panel-bg);
}

.dashboard-home-focus-card.tone-primary::before {
  background: rgb(var(--bs-primary-rgb));
}

.dashboard-home-focus-card.tone-success::before {
  background: rgb(var(--bs-success-rgb));
}

.dashboard-home-focus-card.tone-warning::before {
  background: rgb(var(--bs-warning-rgb));
}

.dashboard-home-focus-card.tone-info::before {
  background: rgb(var(--bs-info-rgb));
}

.dashboard-home-focus-label {
  color: var(--dashboard-shell-muted-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-home-focus-note,
.dashboard-home-panel-copy,
.dashboard-home-module-note {
  color: var(--bs-body-color);
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-home-focus-note,
.dashboard-home-module-note {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dashboard-home-panel,
.dashboard-home-module-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: var(--dashboard-panel-bg);
  box-shadow:
    0 0 0 1px rgba(136, 156, 194, 0.05),
    0 14px 32px rgba(0, 0, 0, 0.1);
}

.dashboard-home-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-home-panel h4,
.dashboard-home-module-card h4 {
  font-size: 1.12rem;
}

.dashboard-home-list,
.dashboard-home-checklist,
.dashboard-home-module-items {
  display: grid;
  gap: 10px;
}

.dashboard-home-list-item,
.dashboard-home-check-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--dashboard-panel-bg-soft);
  box-shadow: 0 0 0 1px rgba(136, 156, 194, 0.04);
}

.dashboard-home-list-item,
.dashboard-home-check-item,
.dashboard-home-module-item {
  position: relative;
  overflow: hidden;
}

.dashboard-home-list-item::before,
.dashboard-home-check-item::before,
.dashboard-home-module-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.16);
}

.dashboard-home-list-item.is-warning {
  border-color: rgba(var(--bs-warning-rgb), 0.22);
  background: rgba(var(--bs-warning-rgb), 0.06);
}

.dashboard-home-list-item.is-danger {
  border-color: rgba(var(--bs-danger-rgb), 0.22);
  background: rgba(var(--bs-danger-rgb), 0.06);
}

.dashboard-home-list-item.is-info {
  border-color: rgba(var(--bs-info-rgb), 0.22);
  background: rgba(var(--bs-info-rgb), 0.06);
}

.dashboard-home-list-item.is-success {
  border-color: rgba(var(--bs-success-rgb), 0.22);
  background: rgba(var(--bs-success-rgb), 0.06);
}

.dashboard-home-list-item.is-warning::before,
.dashboard-home-check-item.is-pending::before {
  background: rgb(var(--bs-warning-rgb));
}

.dashboard-home-list-item.is-danger::before {
  background: rgb(var(--bs-danger-rgb));
}

.dashboard-home-list-item.is-info::before {
  background: rgb(var(--bs-info-rgb));
}

.dashboard-home-list-item.is-success::before,
.dashboard-home-check-item.is-done::before,
.dashboard-home-module-item.is-success::before {
  background: rgb(var(--bs-success-rgb));
}

.dashboard-home-module-item.is-primary::before {
  background: rgb(var(--bs-primary-rgb));
}

.dashboard-home-module-item.is-warning::before {
  background: rgb(var(--bs-warning-rgb));
}

.dashboard-home-module-item.is-info::before {
  background: rgb(var(--bs-info-rgb));
}

.dashboard-home-module-item.is-danger::before {
  background: rgb(var(--bs-danger-rgb));
}

.dashboard-home-list-main,
.dashboard-home-check-main {
  min-width: 0;
  flex: 1;
}

.dashboard-home-check-item.is-done {
  border-color: rgba(var(--bs-success-rgb), 0.2);
  background: rgba(var(--bs-success-rgb), 0.05);
}

.dashboard-home-check-item.is-pending {
  border-color: rgba(var(--bs-warning-rgb), 0.18);
  background: rgba(var(--bs-warning-rgb), 0.05);
}

.dashboard-home-check-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--dashboard-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--bs-emphasis-color);
}

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

@media (min-width: 1400px) {
  .dashboard-home-focus-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

.dashboard-home-module-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--dashboard-panel-bg-soft);
  box-shadow: 0 0 0 1px rgba(136, 156, 194, 0.04);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-home-module-item:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--dashboard-portal-accent-rgb), 0.22);
  box-shadow: var(--dashboard-shadow);
  color: inherit;
}

.dashboard-home-module-item.is-primary {
  border-color: rgba(var(--bs-primary-rgb), 0.14);
}

.dashboard-home-module-item.is-success {
  border-color: rgba(var(--bs-success-rgb), 0.14);
}

.dashboard-home-module-item.is-warning {
  border-color: rgba(var(--bs-warning-rgb), 0.16);
}

.dashboard-home-module-item.is-info {
  border-color: rgba(var(--bs-info-rgb), 0.16);
}

.dashboard-home-module-item.is-danger {
  border-color: rgba(var(--bs-danger-rgb), 0.16);
}

.dashboard-home-module-label {
  color: var(--bs-emphasis-color);
  font-size: 14px;
  font-weight: 700;
}

.dashboard-home-module-value {
  color: var(--bs-emphasis-color);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--dashboard-border);
}

.panel-header.is-compact {
  margin-bottom: 14px;
  padding-bottom: 12px;
}

.panel-header-copy {
  min-width: 0;
}

.panel-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel-eyebrow.is-primary {
  color: #9eb7ff;
}

.panel-eyebrow.is-success {
  color: #7cebd7;
}

.panel-eyebrow.is-warning {
  color: #ffcf72;
}

.panel-eyebrow.is-info {
  color: #9fc5ff;
}

.panel-eyebrow.is-danger {
  color: #ffb7a7;
}

.panel-title {
  color: var(--bs-emphasis-color);
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  font-weight: 700;
}

.panel-description {
  color: var(--bs-body-color);
  font-size: 13px;
  line-height: 1.7;
}

.panel-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-list,
.endpoint-list,
.summary-list,
.qr-status-grid {
  display: grid;
  gap: 14px;
}

.stack-item,
.endpoint-item,
.summary-item,
.qr-status-item,
.qr-modal-meta-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    var(--dashboard-panel-bg-soft);
  box-shadow: 0 0 0 1px rgba(136, 156, 194, 0.035);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.stack-item:hover,
.endpoint-item:hover,
.summary-item:hover,
.qr-status-item:hover {
  border-color: rgba(var(--dashboard-portal-accent-rgb), 0.18);
  box-shadow:
    0 0 0 1px rgba(var(--dashboard-portal-accent-rgb), 0.05),
    0 10px 22px rgba(0, 0, 0, 0.08);
}

.stack-copy {
  color: var(--bs-body-color);
  font-size: 13px;
  line-height: 1.7;
}

.stats-mini-chart {
  display: grid;
  gap: 14px;
}

.stats-mini-chart-item {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    var(--dashboard-panel-bg-soft);
  box-shadow: 0 0 0 1px rgba(136, 156, 194, 0.035);
}

.stats-mini-chart-head,
.stats-mini-chart-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stats-mini-chart-head {
  margin-bottom: 10px;
  color: var(--bs-emphasis-color);
  font-size: 13px;
}

.stats-mini-chart-meta {
  margin-top: 10px;
  color: var(--bs-body-color);
  font-size: 12px;
  line-height: 1.6;
}

.stats-mini-chart-track {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-mini-chart-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 0.78), rgba(var(--bs-primary-rgb), 0.34));
}

.stats-mini-chart-fill.is-primary {
  background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 0.88), rgba(var(--bs-primary-rgb), 0.36));
}

.stats-mini-chart-fill.is-success {
  background: linear-gradient(90deg, rgba(var(--bs-success-rgb), 0.88), rgba(var(--bs-success-rgb), 0.32));
}

.stats-mini-chart-fill.is-warning {
  background: linear-gradient(90deg, rgba(var(--bs-warning-rgb), 0.88), rgba(var(--bs-warning-rgb), 0.3));
}

.stats-mini-chart-fill.is-info {
  background: linear-gradient(90deg, rgba(var(--bs-info-rgb), 0.88), rgba(var(--bs-info-rgb), 0.32));
}

.stats-mini-chart-fill.is-danger {
  background: linear-gradient(90deg, rgba(var(--bs-danger-rgb), 0.88), rgba(var(--bs-danger-rgb), 0.3));
}

.stack-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.cs-conversation-actions {
  width: min(320px, 100%);
  min-width: min(320px, 100%);
}

.cs-action-grid {
  display: grid;
  gap: 10px;
  width: 100%;
}

.cs-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.device-stack-item {
  align-items: flex-start;
  gap: 20px;
}

.device-stack-copy {
  flex: 1;
  min-width: 0;
}

.device-stack-actions {
  min-width: 180px;
}

.device-stack-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.device-stack-feedback {
  max-width: 220px;
  text-align: right;
}

.endpoint-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.empty-state {
  padding: 20px;
  border-radius: 14px;
  border: 1px dashed rgba(var(--bs-primary-rgb), 0.4);
  background:
    linear-gradient(180deg, rgba(var(--bs-primary-rgb), 0.09), rgba(var(--bs-primary-rgb), 0.04)),
    rgba(var(--bs-primary-rgb), 0.05);
  color: var(--bs-body-color);
  box-shadow: inset 0 0 0 1px rgba(var(--bs-primary-rgb), 0.04);
}

.response-status {
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--bs-emphasis-color);
  box-shadow: 0 0 0 1px rgba(136, 156, 194, 0.03);
}

.response-panel {
  min-height: 300px;
  margin: 0;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--dashboard-surface-deep);
  color: #d6dde7;
  box-shadow:
    0 0 0 1px rgba(136, 156, 194, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: auto;
  font-size: 13px;
  line-height: 1.7;
}

.dashboard-card .table-responsive {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--dashboard-panel-bg-soft);
  box-shadow: 0 0 0 1px rgba(136, 156, 194, 0.03);
  overflow: hidden;
}

.api-doc-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.api-doc-workspace {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.api-doc-nav-wrap {
  position: sticky;
  top: calc(var(--dashboard-topbar-height, 68px) + 20px);
}

.api-doc-nav {
  display: grid;
  gap: 10px;
}

.api-doc-nav-button {
  position: relative;
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 16px 18px 16px 20px;
  border: 1px solid var(--dashboard-border);
  border-radius: 0;
  background: var(--dashboard-panel-bg-soft);
  color: var(--bs-body-color);
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.api-doc-nav-button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 0;
  background: transparent;
  opacity: 0;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.api-doc-nav-button:hover,
.api-doc-nav-button:focus-visible {
  border-color: rgba(var(--bs-primary-rgb), 0.28);
  background: rgba(var(--bs-primary-rgb), 0.08);
  color: var(--bs-emphasis-color);
}

.api-doc-nav-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.15);
}

.api-doc-nav-button.is-active {
  border-color: rgba(var(--bs-primary-rgb), 0.28);
  background: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-emphasis-color);
}

.api-doc-nav-button.is-active::before {
  opacity: 1;
  background: rgba(var(--bs-primary-rgb), 0.86);
}

.api-doc-nav-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(var(--bs-primary-rgb), 0.88);
}

.api-doc-nav-title {
  font-size: 15px;
  font-weight: 700;
  color: inherit;
}

.api-doc-nav-copy {
  font-size: 12px;
  line-height: 1.65;
  color: var(--bs-secondary-color);
}

.api-doc-panel-wrap {
  min-width: 0;
}

.api-doc-panel {
  display: none;
}

.api-doc-panel.is-active {
  display: block;
}

.api-doc-panel-grid {
  display: grid;
  gap: 16px;
}

.api-doc-panel-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.api-doc-surface {
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--dashboard-border);
  background: var(--dashboard-panel-bg-soft);
}

.api-doc-section-head {
  margin-bottom: 18px;
}

.api-doc-section-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(var(--bs-primary-rgb), 0.88);
}

.api-doc-section-title {
  margin: 0;
  color: var(--bs-emphasis-color);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.api-doc-section-copy {
  margin: 10px 0 0;
  color: var(--bs-secondary-color);
  line-height: 1.7;
}

.api-doc-note {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(var(--bs-info-rgb), 0.18);
  background: rgba(var(--bs-info-rgb), 0.08);
  color: var(--bs-body-color);
  line-height: 1.7;
}

.api-doc-code {
  min-height: auto;
  margin: 16px 0 0;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--bs-border-color);
  background: rgba(10, 14, 20, 0.74);
  color: var(--bs-emphasis-color);
  font-size: 12px;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.api-doc-code code {
  color: inherit;
  white-space: inherit;
}

.api-doc-code.is-monaco {
  padding: 0;
  overflow: hidden;
  white-space: normal;
}

.api-doc-code.is-monaco .monaco-editor,
.api-doc-code.is-monaco .overflow-guard {
  border-radius: inherit;
}

.api-doc-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--bs-body-color);
  line-height: 1.7;
}

.api-doc-list li code {
  color: var(--bs-emphasis-color);
}

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

.message-intent-item {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--dashboard-border);
  background: var(--dashboard-panel-bg-soft);
}

.message-attachment-details {
  border: 1px dashed rgba(var(--bs-primary-rgb), 0.38);
  border-radius: 16px;
  padding: 16px 18px;
  background: rgba(var(--bs-primary-rgb), 0.06);
}

.message-attachment-details summary {
  cursor: pointer;
  color: var(--bs-emphasis-color);
  font-weight: 700;
}

.message-log-table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--bs-emphasis-color);
  --bs-table-border-color: var(--bs-border-color);
  margin-bottom: 0;
}

.message-log-table thead th {
  color: #c7ced9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.message-log-table td,
.message-log-table th {
  padding: 16px 14px;
  vertical-align: top;
}

.message-log-table tbody td {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.message-log-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

.history-table .status-pill,
.history-table .status-pill.is-connected,
.history-table .status-pill.is-connecting,
.history-table .status-pill.is-disconnected,
.history-table .status-pill.is-qr-ready,
.history-table .status-pill.is-error,
.history-table .status-pill.is-warning,
.history-table .status-pill.is-info,
.history-table .status-pill.is-danger,
.history-table .status-pill.is-primary,
.history-table .status-pill.is-success {
  border: 0 !important;
  border-color: transparent !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.message-log-preview {
  max-width: 420px;
  color: var(--bs-emphasis-color);
  line-height: 1.7;
}

.history-text-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-text-tag.is-inbound {
  color: #18e7c7;
}

.history-text-tag.is-outbound {
  color: #9eb7ff;
}

.history-text-tag.is-warning {
  color: #ffcf72;
}

.history-text-tag.is-error {
  color: #ffb7a7;
}

.history-text-tag.is-muted {
  color: #c7d2e5;
}

.qr-status-card {
  border: 1px solid var(--bs-border-color) !important;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(27, 32, 40, 0.98), rgba(19, 24, 30, 0.98));
}

.qr-preview-wrap {
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 20px;
  border-radius: 18px;
  border: 0;
  background: transparent;
}

.qr-status-label {
  display: block;
  margin-bottom: 8px;
  color: #c3cad6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qr-status-value {
  display: block;
  color: var(--bs-emphasis-color);
  font-size: 15px;
  line-height: 1.6;
}

.qr-image-card {
  width: min(100%, 340px);
  aspect-ratio: 1;
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 20px 40px -26px rgba(0, 0, 0, 0.7);
  display: grid;
  place-items: center;
}

.qr-image-card-expired {
  opacity: 0.55;
  filter: grayscale(0.18);
}

.qr-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.qr-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 240px;
  text-align: center;
}

.qr-loading-spinner {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 3px solid rgba(var(--bs-primary-rgb), 0.16);
  border-top-color: rgba(var(--bs-primary-rgb), 0.92);
  animation: qr-spin 0.8s linear infinite;
}

.qr-loading-text {
  color: #aab5c8;
  font-size: 13px;
  font-weight: 600;
}

@keyframes qr-spin {
  to {
    transform: rotate(360deg);
  }
}

.qr-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 24px;
}

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.qr-modal-dialog {
  position: relative;
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid var(--bs-border-color);
  background: var(--dashboard-surface-elevated);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.82);
}

.qr-modal-header,
.qr-modal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 24px 0;
}

.qr-modal-header {
  position: relative;
  text-align: center;
}

.qr-modal-header-copy {
  width: 100%;
}

.qr-modal-header .panel-eyebrow {
  justify-content: center;
}

.qr-modal-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

.qr-preview-wrap-modal {
  min-height: 340px;
  margin: 18px 20px 0;
}

.qr-modal-timing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 14px 20px 0;
  text-align: center;
}

.qr-modal-timing-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.qr-modal-timing-label {
  color: #aab5c8;
  font-size: 12px;
  font-weight: 600;
}

.qr-modal-timing-value {
  color: var(--bs-emphasis-color);
  font-size: 13px;
  font-weight: 700;
}

.qr-modal-footer {
  justify-content: center;
  padding: 18px 20px 20px;
}

.qr-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--bs-emphasis-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.modal-open {
  overflow: hidden;
}

.app-toast-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1600;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 28px));
}

.app-toast {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--bs-border-color);
  background: var(--dashboard-surface-elevated);
  color: var(--bs-emphasis-color);
  box-shadow: 0 24px 40px -28px rgba(0, 0, 0, 0.78);
  animation: app-toast-in 0.18s ease;
}

.app-toast.is-success {
  border-color: rgba(var(--bs-success-rgb), 0.34);
}

.app-toast.is-danger {
  border-color: rgba(var(--bs-danger-rgb), 0.34);
}

.app-toast.is-warning {
  border-color: rgba(var(--bs-warning-rgb), 0.34);
}

.app-toast.is-info {
  border-color: rgba(var(--bs-info-rgb), 0.34);
}

.app-toast-body {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.app-toast-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--bs-body-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-toast-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--bs-emphasis-color);
}

.app-toast.is-leaving {
  opacity: 0;
  transform: translateY(-4px);
}

@keyframes app-toast-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-confirm {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 18px;
}

.app-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.app-confirm-dialog {
  position: relative;
  width: min(420px, calc(100vw - 36px));
  border-radius: 16px;
  border: 1px solid var(--bs-border-color);
  background: var(--dashboard-surface-elevated);
  padding: 18px 18px 16px;
  box-shadow: 0 32px 70px -42px rgba(0, 0, 0, 0.82);
}

.app-confirm-title {
  margin: 0;
  color: var(--bs-emphasis-color);
  font-size: 1rem;
  font-weight: 700;
}

.app-confirm-message {
  margin-top: 10px;
  color: var(--bs-body-color);
  font-size: 13px;
  line-height: 1.6;
}

.app-confirm-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.qr-note {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(var(--bs-warning-rgb), 0.24);
  background: rgba(var(--bs-warning-rgb), 0.12);
  color: #ffcf72;
}

.mini-feedback {
  font-size: 13px;
  font-weight: 600;
}

.mini-feedback.is-empty {
  display: none;
}

.mini-feedback.text-success,
body.theme-dark.page-dashboard .text-success {
  color: #7cebd7 !important;
}

.mini-feedback.text-danger,
body.theme-dark.page-dashboard .text-danger {
  color: #ffb7a7 !important;
}

.mini-feedback.text-warning,
body.theme-dark.page-dashboard .text-warning {
  color: #ffcf72 !important;
}

.mini-feedback.text-info,
body.theme-dark.page-dashboard .text-info {
  color: #9fc5ff !important;
}

body.theme-dark.page-dashboard .form-control,
body.theme-dark.page-dashboard .form-select,
body.theme-dark.page-dashboard .form-check-input {
  color: var(--bs-emphasis-color);
  background-color: rgba(16, 21, 27, 0.72);
  border-color: var(--bs-border-color);
  border-radius: 10px;
}

body.theme-dark.page-dashboard .form-control::placeholder,
body.theme-dark.page-dashboard .form-select::placeholder {
  color: #8ea1c2;
}

body.theme-dark.page-dashboard .form-control:focus,
body.theme-dark.page-dashboard .form-select:focus,
body.theme-dark.page-dashboard .form-check-input:focus {
  color: var(--bs-emphasis-color);
  background-color: rgba(16, 21, 27, 0.82);
  border-color: rgba(var(--bs-primary-rgb), 0.5);
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.16);
}

body.theme-dark.page-dashboard .form-select option {
  background: var(--dashboard-surface-deep);
  color: var(--bs-emphasis-color);
}

body.theme-dark.page-dashboard textarea.form-control {
  resize: vertical;
}

body.theme-dark.page-dashboard .btn-primary {
  box-shadow: none;
}

body.theme-dark.page-dashboard .btn-outline-primary {
  color: #9eb7ff;
  border-color: rgba(var(--bs-primary-rgb), 0.4);
  background: transparent;
}

body.theme-dark.page-dashboard .btn-outline-primary:hover {
  color: #ffffff;
  background: rgba(var(--bs-primary-rgb), 0.16);
  border-color: rgba(var(--bs-primary-rgb), 0.54);
}

body.theme-dark.page-dashboard .btn-outline-light,
body.theme-dark.page-dashboard .btn-outline-info,
body.theme-dark.page-dashboard .btn-outline-danger {
  border-radius: 10px;
}

.dashboard-footer {
  flex-shrink: 0;
  min-width: 0;
  width: 100%;
  position: relative;
  margin-top: 0;
  margin-left: 0;
  margin-bottom: 0;
  padding: 0 var(--dashboard-content-gutter-x);
  border-top: 1px solid var(--dashboard-footer-border);
  background: var(--dashboard-footer-bg);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 -14px 30px -18px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.dashboard-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 42%, rgba(255, 255, 255, 0)),
    radial-gradient(circle at bottom left, rgba(var(--dashboard-portal-accent-rgb), 0.14), transparent 32%);
  pointer-events: none;
}

.dashboard-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(var(--dashboard-portal-accent-rgb), 0),
    rgba(var(--dashboard-portal-accent-rgb), 0.4) 18%,
    rgba(var(--dashboard-portal-accent-rgb), 0.14) 82%,
    rgba(var(--dashboard-portal-accent-rgb), 0)
  );
  pointer-events: none;
}

.dashboard-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  min-height: 56px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

@media (min-width: 1400px) {
  .dashboard-footer-inner {
    max-width: 1540px;
    margin: 0 auto;
  }
}

.dashboard-footer-copy-group {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.dashboard-footer-label,
.dashboard-footer-meta-label {
  color: var(--dashboard-shell-muted-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-footer-meta {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-copy {
  min-width: 0;
  max-width: 100%;
  color: var(--bs-body-color);
  font-size: 13px;
  line-height: 1.6;
}

.dashboard-footer code,
.footer-copy code {
  display: inline;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--bs-emphasis-color);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

html[data-app-theme="light"] body.page-dashboard {
  color: #2a3547;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--dashboard-portal-accent-rgb), 0.26), transparent 28%),
    radial-gradient(circle at 0% 16%, rgba(107, 198, 255, 0.2), transparent 32%),
    radial-gradient(circle at 18% 100%, rgba(83, 155, 255, 0.18), transparent 28%),
    radial-gradient(circle at 100% 100%, rgba(19, 222, 185, 0.12), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #eaf2fb 46%, #e1eaf4 100%);
}

html[data-app-theme="light"] #main-wrapper.dashboard-layout::before {
  background:
    radial-gradient(circle at 14% 0%, rgba(107, 198, 255, 0.18), transparent 30%),
    radial-gradient(circle at 100% 18%, rgba(var(--dashboard-portal-accent-rgb), 0.18), transparent 26%),
    radial-gradient(circle at 22% 100%, rgba(76, 161, 255, 0.12), transparent 26%);
}

html[data-app-theme="light"] body.page-dashboard .dashboard-page-wrapper {
  background: var(--dashboard-page-wrapper-bg);
}

html[data-app-theme="light"] body.page-dashboard .dashboard-body-wrapper {
  background: var(--dashboard-body-pane-bg);
}

html[data-app-theme="light"] body.page-dashboard .dashboard-page-wrapper .dashboard-body-wrapper > .container-fluid {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 18%);
}

html[data-app-theme="light"] body.page-dashboard .dashboard-page-content {
  background:
    radial-gradient(circle at top right, rgba(var(--dashboard-portal-accent-rgb), 0.18), transparent 26%),
    radial-gradient(circle at 0% 24%, rgba(107, 198, 255, 0.18), transparent 26%),
    radial-gradient(circle at 16% 100%, rgba(19, 222, 185, 0.12), transparent 24%);
}

html[data-app-theme="light"] body.page-dashboard .text-muted,
html[data-app-theme="light"] body.page-dashboard .text-secondary,
html[data-app-theme="light"] body.page-dashboard .form-text {
  color: #5a6a85 !important;
}

html[data-app-theme="light"] body.page-dashboard code {
  color: #4164e3;
}

html[data-app-theme="light"] body.page-dashboard .dashboard-sidebar {
  background:
    linear-gradient(180deg, rgba(9, 12, 16, 0.98), rgba(14, 18, 24, 0.98)),
    radial-gradient(circle at top left, rgba(var(--dashboard-portal-accent-rgb), 0.14), transparent 42%);
  border-right-color: rgba(255, 255, 255, 0.08);
  box-shadow: 18px 0 40px -34px rgba(0, 0, 0, 0.9);
}

html[data-app-theme="light"] body.page-dashboard .dashboard-sidebar .brand-logo {
  border-bottom-color: rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0));
}

html[data-app-theme="light"] body.page-dashboard .dashboard-sidebar .sidebartoggler {
  color: #c3cad6;
}

html[data-app-theme="light"] body.page-dashboard .dashboard-sidebar::after {
  background: linear-gradient(
    180deg,
    rgba(var(--dashboard-portal-accent-rgb), 0.34),
    rgba(255, 255, 255, 0.06) 28%,
    rgba(255, 255, 255, 0) 100%
  );
}

html[data-app-theme="light"] body.page-dashboard .dashboard-sidebar .nav-small-cap {
  color: #9aa5b5;
}

html[data-app-theme="light"] body.page-dashboard .dashboard-sidebar .nav-small-cap::after {
  background: rgba(255, 255, 255, 0.08);
}

html[data-app-theme="light"] body.page-dashboard .dashboard-sidebar .sidebar-link {
  color: #b4bfd0;
  background: rgba(255, 255, 255, 0.02);
}

html[data-app-theme="light"] body.page-dashboard .dashboard-sidebar .sidebar-link:hover,
html[data-app-theme="light"] body.page-dashboard .dashboard-sidebar .sidebar-link.active {
  color: #f4f7fb;
}

html[data-app-theme="light"] body.page-dashboard .dashboard-sidebar .sidebar-link:hover,
html[data-app-theme="light"] body.page-dashboard .dashboard-sidebar .sidebar-nav ul .sidebar-item > .sidebar-link:hover {
  background: rgba(255, 255, 255, 0.015) !important;
  background-color: rgba(255, 255, 255, 0.015) !important;
  border-color: rgba(var(--dashboard-portal-accent-rgb), 0.04) !important;
  box-shadow: inset 2px 0 0 rgba(var(--dashboard-portal-accent-rgb), 0.54) !important;
}

html[data-app-theme="light"] body.page-dashboard .dashboard-sidebar .sidebar-link.active,
html[data-app-theme="light"] body.page-dashboard .dashboard-sidebar .sidebar-nav ul .sidebar-item.selected > .sidebar-link,
html[data-app-theme="light"] body.page-dashboard .dashboard-sidebar .sidebar-nav ul .sidebar-item.selected > .sidebar-link.active,
html[data-app-theme="light"] body.page-dashboard .dashboard-sidebar .sidebar-nav ul .sidebar-item > .sidebar-link.active {
  background: rgba(var(--dashboard-portal-accent-rgb), 0.018) !important;
  background-color: rgba(var(--dashboard-portal-accent-rgb), 0.018) !important;
  background-image: none !important;
  border-color: rgba(var(--dashboard-portal-accent-rgb), 0.05) !important;
  box-shadow: inset 2px 0 0 rgba(var(--dashboard-portal-accent-rgb), 0.68) !important;
  color: #f4f7fb !important;
}

html[data-app-theme="light"] body.page-dashboard .topbar {
  background: var(--dashboard-topbar-bg);
  border-bottom-color: var(--dashboard-footer-border);
  box-shadow:
    var(--dashboard-topbar-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -1px 0 rgba(255, 255, 255, 0.32),
    0 14px 28px -16px rgba(15, 23, 42, 0.22);
}

html[data-app-theme="light"] body.page-dashboard .topbar::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08) 32%, rgba(255, 255, 255, 0)),
    radial-gradient(circle at top right, rgba(var(--dashboard-portal-accent-rgb), 0.28), transparent 36%),
    radial-gradient(circle at top left, rgba(107, 198, 255, 0.22), transparent 34%);
}

html[data-app-theme="light"] body.page-dashboard .dashboard-topbar .nav-link:hover {
  background: rgba(42, 53, 71, 0.06);
}

html[data-app-theme="light"] body.page-dashboard .theme-toggle-button.is-dashboard {
  background: transparent !important;
  color: #5a6a85;
}

html[data-app-theme="light"] body.page-dashboard .topbar-language-trigger {
  background: transparent !important;
  color: #5a6a85;
}

html[data-app-theme="light"] body.page-dashboard .theme-toggle-button.is-dashboard:hover,
html[data-app-theme="light"] body.page-dashboard .theme-toggle-button.is-dashboard:focus-visible {
  background: rgba(42, 53, 71, 0.06) !important;
  color: #2a3547;
}

html[data-app-theme="light"] body.page-dashboard .topbar-language-trigger:hover,
html[data-app-theme="light"] body.page-dashboard .topbar-language-trigger.show,
html[data-app-theme="light"] body.page-dashboard .topbar-language-trigger:focus-visible {
  background: rgba(42, 53, 71, 0.06) !important;
  color: #2a3547;
}

html[data-app-theme="light"] body.page-dashboard .language-flag {
  border-color: rgba(89, 111, 161, 0.22);
}

html[data-app-theme="light"] body.page-dashboard .status-pill.is-connecting,
html[data-app-theme="light"] body.page-dashboard .status-pill.is-disconnected {
  background: rgba(42, 53, 71, 0.05);
  color: #5a6a85;
}

html[data-app-theme="light"] body.page-dashboard .topbar-profile-trigger {
  background: transparent !important;
}

html[data-app-theme="light"] body.page-dashboard .topbar-profile-trigger:hover,
html[data-app-theme="light"] body.page-dashboard .topbar-profile-trigger.show {
  background: rgba(42, 53, 71, 0.06) !important;
}

html[data-app-theme="light"] body.page-dashboard .topbar-dropdown-menu {
  background: #ffffff;
  border-color: var(--dashboard-border) !important;
  box-shadow: 0 20px 40px -30px rgba(15, 23, 42, 0.2) !important;
}

html[data-app-theme="light"] body.page-dashboard .topbar-dropdown-item:hover,
html[data-app-theme="light"] body.page-dashboard .topbar-dropdown-item:focus {
  background: rgba(var(--bs-primary-rgb), 0.1);
}

html[data-app-theme="light"] body.page-dashboard .page-title-card {
  border-color: rgba(76, 95, 124, 0.24) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.98)),
    url("/modernize/assets/images/backgrounds/line-bg.svg");
  background-repeat: no-repeat, no-repeat;
  background-position: center, right -80px bottom -84px;
  background-size: auto, 320px;
  box-shadow:
    0 0 0 1px rgba(76, 95, 124, 0.08),
    0 18px 36px rgba(15, 23, 42, 0.07),
    0 2px 8px rgba(15, 23, 42, 0.035);
}

html[data-app-theme="light"] body.page-dashboard .dashboard-card {
  border-color: rgba(76, 95, 124, 0.24) !important;
  background:
    radial-gradient(circle at top right, rgba(116, 176, 255, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(247, 250, 254, 0.98));
  box-shadow:
    0 0 0 1px rgba(76, 95, 124, 0.08),
    0 16px 32px rgba(15, 23, 42, 0.065),
    0 1px 3px rgba(15, 23, 42, 0.045);
}

html[data-app-theme="light"] body.page-dashboard .dashboard-card::before {
  background:
    radial-gradient(circle at top right, rgba(var(--dashboard-portal-accent-rgb), 0.12), transparent 30%);
}

html[data-app-theme="light"] body.page-dashboard .workspace-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 253, 0.98)),
    url("/modernize/assets/images/backgrounds/welcome-bg.svg");
  background-repeat: no-repeat, no-repeat;
  background-position: center, right bottom;
  background-size: auto, 250px;
}

html[data-app-theme="light"] body.page-dashboard .workspace-copy,
html[data-app-theme="light"] body.page-dashboard .workspace-meta-label,
html[data-app-theme="light"] body.page-dashboard .metric-label,
html[data-app-theme="light"] body.page-dashboard .message-log-table thead th,
html[data-app-theme="light"] body.page-dashboard .qr-status-label {
  color: #5a6a85;
}

html[data-app-theme="light"] body.page-dashboard .workspace-meta-item,
html[data-app-theme="light"] body.page-dashboard .stack-item,
html[data-app-theme="light"] body.page-dashboard .endpoint-item,
html[data-app-theme="light"] body.page-dashboard .summary-item,
html[data-app-theme="light"] body.page-dashboard .stats-mini-chart-item,
html[data-app-theme="light"] body.page-dashboard .message-intent-item,
html[data-app-theme="light"] body.page-dashboard .response-status {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.98)),
    linear-gradient(135deg, rgba(118, 176, 255, 0.05), rgba(255, 255, 255, 0));
  border-color: rgba(76, 95, 124, 0.2);
  box-shadow:
    0 0 0 1px rgba(76, 95, 124, 0.06),
    0 8px 20px rgba(15, 23, 42, 0.035),
    0 1px 2px rgba(15, 23, 42, 0.03);
}

html[data-app-theme="light"] body.page-dashboard .stats-mini-chart-track {
  background: rgba(42, 53, 71, 0.08);
  border-color: rgba(42, 53, 71, 0.06);
}

html[data-app-theme="light"] body.page-dashboard .metric-card.tone-primary {
  background:
    linear-gradient(180deg, rgba(93, 135, 255, 0.18), rgba(245, 248, 255, 0.98)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(239, 244, 255, 0.84));
}

html[data-app-theme="light"] body.page-dashboard .metric-card.tone-success {
  background:
    linear-gradient(180deg, rgba(19, 222, 185, 0.2), rgba(244, 255, 252, 0.98)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(237, 255, 249, 0.84));
}

html[data-app-theme="light"] body.page-dashboard .metric-card.tone-warning {
  background:
    linear-gradient(180deg, rgba(255, 174, 31, 0.2), rgba(255, 251, 242, 0.98)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 232, 0.84));
}

html[data-app-theme="light"] body.page-dashboard .metric-card.tone-info {
  background:
    linear-gradient(180deg, rgba(73, 190, 255, 0.18), rgba(243, 251, 255, 0.98)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(235, 247, 255, 0.84));
}

html[data-app-theme="light"] body.page-dashboard .metric-card.tone-danger {
  background:
    linear-gradient(180deg, rgba(250, 137, 107, 0.18), rgba(255, 246, 243, 0.98)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 239, 235, 0.84));
}

html[data-app-theme="light"] body.page-dashboard .metric-card {
  border-color: rgba(76, 95, 124, 0.28) !important;
  box-shadow:
    0 0 0 1px rgba(76, 95, 124, 0.1),
    0 18px 42px rgba(15, 23, 42, 0.09),
    0 2px 8px rgba(15, 23, 42, 0.04);
}

html[data-app-theme="light"] body.page-dashboard .panel-header {
  border-bottom-color: rgba(76, 95, 124, 0.12);
}

html[data-app-theme="light"] body.page-dashboard .dashboard-home-hero {
  border-color: rgba(76, 95, 124, 0.24) !important;
  background:
    radial-gradient(circle at top right, rgba(112, 188, 255, 0.26), transparent 30%),
    radial-gradient(circle at bottom left, rgba(110, 234, 219, 0.14), transparent 26%),
    radial-gradient(circle at top left, rgba(93, 135, 255, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(244, 248, 253, 0.98)),
    linear-gradient(135deg, rgba(236, 243, 251, 0.34), rgba(255, 255, 255, 0.16));
  box-shadow:
    0 0 0 1px rgba(76, 95, 124, 0.08),
    0 18px 36px rgba(15, 23, 42, 0.07),
    0 2px 8px rgba(15, 23, 42, 0.035);
}

html[data-app-theme="light"] body.page-dashboard .dashboard-home-summary-chip {
  border-color: rgba(76, 95, 124, 0.24);
  background:
    radial-gradient(circle at top right, rgba(119, 175, 255, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(246, 249, 253, 0.98));
  box-shadow:
    0 0 0 1px rgba(76, 95, 124, 0.08),
    0 10px 22px rgba(15, 23, 42, 0.05),
    0 1px 2px rgba(15, 23, 42, 0.04);
}

html[data-app-theme="light"] body.page-dashboard .dashboard-home-summary-chip.is-success {
  background:
    radial-gradient(circle at top right, rgba(19, 222, 185, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(244, 253, 250, 0.98));
}

html[data-app-theme="light"] body.page-dashboard .dashboard-home-summary-chip.is-warning {
  background:
    radial-gradient(circle at top right, rgba(255, 174, 31, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 249, 239, 0.98));
}

html[data-app-theme="light"] body.page-dashboard .dashboard-home-summary-chip.is-danger {
  background:
    radial-gradient(circle at top right, rgba(250, 137, 107, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 245, 241, 0.98));
}

html[data-app-theme="light"] body.page-dashboard .dashboard-home-summary-chip.is-info,
html[data-app-theme="light"] body.page-dashboard .dashboard-home-summary-chip.is-primary {
  background:
    radial-gradient(circle at top right, rgba(93, 135, 255, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(243, 248, 255, 0.98));
}

html[data-app-theme="light"] body.page-dashboard .dashboard-home-focus-card,
html[data-app-theme="light"] body.page-dashboard .dashboard-home-panel,
html[data-app-theme="light"] body.page-dashboard .dashboard-home-module-card {
  border-color: rgba(76, 95, 124, 0.24) !important;
  background:
    radial-gradient(circle at top right, rgba(116, 176, 255, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(247, 250, 254, 0.98));
  box-shadow:
    0 0 0 1px rgba(76, 95, 124, 0.08),
    0 16px 32px rgba(15, 23, 42, 0.065),
    0 1px 3px rgba(15, 23, 42, 0.045);
}

html[data-app-theme="light"] body.page-dashboard .dashboard-home-focus-card.tone-primary {
  background:
    radial-gradient(circle at top right, rgba(93, 135, 255, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(242, 247, 255, 0.98));
}

html[data-app-theme="light"] body.page-dashboard .dashboard-home-focus-card.tone-success {
  background:
    radial-gradient(circle at top right, rgba(19, 222, 185, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(241, 255, 250, 0.98));
}

html[data-app-theme="light"] body.page-dashboard .dashboard-home-focus-card.tone-warning {
  background:
    radial-gradient(circle at top right, rgba(255, 174, 31, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 248, 238, 0.98));
}

html[data-app-theme="light"] body.page-dashboard .dashboard-home-focus-card.tone-info {
  background:
    radial-gradient(circle at top right, rgba(73, 190, 255, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(240, 249, 255, 0.98));
}

html[data-app-theme="light"] body.page-dashboard .dashboard-home-list-item,
html[data-app-theme="light"] body.page-dashboard .dashboard-home-check-item,
html[data-app-theme="light"] body.page-dashboard .dashboard-home-module-item {
  border-color: rgba(76, 95, 124, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.98)),
    linear-gradient(135deg, rgba(118, 176, 255, 0.04), rgba(255, 255, 255, 0));
  box-shadow:
    0 0 0 1px rgba(76, 95, 124, 0.07),
    0 8px 20px rgba(15, 23, 42, 0.035),
    0 1px 2px rgba(15, 23, 42, 0.03);
}

html[data-app-theme="light"] body.page-dashboard .empty-state {
  background:
    linear-gradient(180deg, rgba(var(--bs-primary-rgb), 0.12), rgba(var(--bs-primary-rgb), 0.05)),
    rgba(var(--bs-primary-rgb), 0.04);
  border-color: rgba(var(--bs-primary-rgb), 0.26);
  box-shadow: inset 0 0 0 1px rgba(var(--bs-primary-rgb), 0.04);
}

html[data-app-theme="light"] body.page-dashboard .dashboard-home-list-item.is-warning {
  background: #fffaf0;
}

html[data-app-theme="light"] body.page-dashboard .dashboard-home-list-item.is-danger {
  background: #fff4f1;
}

html[data-app-theme="light"] body.page-dashboard .dashboard-home-list-item.is-info {
  background: #f3f9ff;
}

html[data-app-theme="light"] body.page-dashboard .dashboard-home-list-item.is-success,
html[data-app-theme="light"] body.page-dashboard .dashboard-home-check-item.is-done {
  background: #f2fcf8;
}

html[data-app-theme="light"] body.page-dashboard .dashboard-home-check-item.is-pending {
  background: #fff8ec;
}

html[data-app-theme="light"] body.page-dashboard .dashboard-home-check-icon {
  border-color: rgba(76, 95, 124, 0.2);
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(76, 95, 124, 0.07),
    0 6px 14px rgba(15, 23, 42, 0.04),
    0 1px 2px rgba(15, 23, 42, 0.03);
}

html[data-app-theme="light"] body.page-dashboard .quick-link-card {
  border-color: rgba(76, 95, 124, 0.24) !important;
  box-shadow:
    0 0 0 1px rgba(76, 95, 124, 0.08),
    0 16px 34px rgba(15, 23, 42, 0.07),
    0 2px 8px rgba(15, 23, 42, 0.035);
}

html[data-app-theme="light"] body.page-dashboard .dashboard-home-copy,
html[data-app-theme="light"] body.page-dashboard .dashboard-home-focus-note,
html[data-app-theme="light"] body.page-dashboard .dashboard-home-panel-copy,
html[data-app-theme="light"] body.page-dashboard .dashboard-home-module-note {
  color: #5a6a85;
}

html[data-app-theme="light"] body.page-dashboard .dashboard-home-focus-label,
html[data-app-theme="light"] body.page-dashboard .dashboard-home-summary-label {
  color: #647691;
}

html[data-app-theme="light"] body.page-dashboard .quick-link-card {
  border-color: rgba(76, 95, 124, 0.24) !important;
  box-shadow:
    0 0 0 1px rgba(76, 95, 124, 0.08),
    0 16px 34px rgba(15, 23, 42, 0.07),
    0 2px 8px rgba(15, 23, 42, 0.035);
}

html[data-app-theme="light"] body.page-dashboard .quick-link-card.tone-primary {
  background:
    radial-gradient(circle at top right, rgba(93, 135, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(93, 135, 255, 0.16), rgba(248, 251, 255, 0.98)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 246, 255, 0.88));
}

html[data-app-theme="light"] body.page-dashboard .quick-link-card.tone-success {
  background:
    radial-gradient(circle at top right, rgba(19, 222, 185, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(19, 222, 185, 0.16), rgba(246, 255, 252, 0.98)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 255, 249, 0.88));
}

html[data-app-theme="light"] body.page-dashboard .quick-link-card.tone-warning {
  background:
    radial-gradient(circle at top right, rgba(255, 174, 31, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(255, 174, 31, 0.16), rgba(255, 252, 245, 0.98)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 236, 0.9));
}

html[data-app-theme="light"] body.page-dashboard .quick-link-card.tone-info {
  background:
    radial-gradient(circle at top right, rgba(73, 190, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(73, 190, 255, 0.16), rgba(245, 252, 255, 0.98)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(237, 248, 255, 0.9));
}

html[data-app-theme="light"] body.page-dashboard .quick-link-card.tone-danger {
  background:
    radial-gradient(circle at top right, rgba(250, 137, 107, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(250, 137, 107, 0.16), rgba(255, 248, 245, 0.98)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 242, 238, 0.9));
}

html[data-app-theme="light"] body.page-dashboard .quick-link-copy {
  color: #5a6a85;
}

html[data-app-theme="light"] body.page-dashboard .metric-label {
  color: #52627a;
}

html[data-app-theme="light"] body.page-dashboard .metric-note,
html[data-app-theme="light"] body.page-dashboard .profile-preference-note {
  color: #5a6a85;
}

html[data-app-theme="light"] body.page-dashboard .profile-summary-hero,
html[data-app-theme="light"] body.page-dashboard .profile-summary-item,
html[data-app-theme="light"] body.page-dashboard .profile-avatar-preview-wrap,
html[data-app-theme="light"] body.page-dashboard .profile-avatar-compact {
  border-color: rgba(76, 95, 124, 0.22);
  background:
    radial-gradient(circle at top right, rgba(112, 188, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(246, 249, 253, 0.98));
  box-shadow:
    0 0 0 1px rgba(76, 95, 124, 0.07),
    0 12px 26px rgba(15, 23, 42, 0.045),
    0 1px 3px rgba(15, 23, 42, 0.03);
}

html[data-app-theme="light"] body.page-dashboard .profile-summary-label {
  color: #647691;
}

html[data-app-theme="light"] body.page-dashboard .profile-summary-email,
html[data-app-theme="light"] body.page-dashboard .profile-summary-note,
html[data-app-theme="light"] body.page-dashboard .profile-avatar-note {
  color: #5a6a85;
}

html[data-app-theme="light"] body.page-dashboard .profile-avatar-trigger-badge {
  background: rgba(42, 53, 71, 0.88);
}

html[data-app-theme="light"] body.page-dashboard .metric-pill {
  background: rgba(255, 255, 255, 0.72);
}

html[data-app-theme="light"] body.page-dashboard .response-panel {
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(243, 248, 255, 0.98));
  color: #2a3547;
  border-color: rgba(76, 95, 124, 0.2);
  box-shadow:
    0 0 0 1px rgba(76, 95, 124, 0.06),
    0 10px 24px rgba(15, 23, 42, 0.04);
}

html[data-app-theme="light"] body.page-dashboard .api-doc-note {
  background: rgba(var(--bs-info-rgb), 0.08);
  border-color: rgba(var(--bs-info-rgb), 0.18);
}

html[data-app-theme="light"] body.page-dashboard .api-doc-nav-button {
  background: rgba(255, 255, 255, 0.8);
}

html[data-app-theme="light"] body.page-dashboard .api-doc-nav-button:hover,
html[data-app-theme="light"] body.page-dashboard .api-doc-nav-button:focus-visible,
html[data-app-theme="light"] body.page-dashboard .api-doc-nav-button.is-active {
  background: rgba(var(--bs-primary-rgb), 0.08);
}

html[data-app-theme="light"] body.page-dashboard .api-doc-surface {
  background: rgba(255, 255, 255, 0.78);
}

html[data-app-theme="light"] body.page-dashboard .api-doc-code {
  background: rgba(42, 53, 71, 0.035);
  color: #2a3547;
}

html[data-app-theme="light"] body.page-dashboard .message-log-table tbody tr:hover {
  background: rgba(var(--bs-primary-rgb), 0.05);
}

html[data-app-theme="light"] body.page-dashboard .dashboard-card .table-responsive {
  border-color: rgba(76, 95, 124, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.98));
  box-shadow:
    0 0 0 1px rgba(76, 95, 124, 0.06),
    0 8px 20px rgba(15, 23, 42, 0.03);
}

html[data-app-theme="light"] body.page-dashboard .qr-status-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.98));
}

html[data-app-theme="light"] body.page-dashboard .qr-preview-wrap {
  background: transparent;
}

html[data-app-theme="light"] body.page-dashboard .qr-modal-dialog {
  background: #ffffff;
  box-shadow: 0 40px 80px -44px rgba(15, 23, 42, 0.24);
}

html[data-app-theme="light"] body.page-dashboard .qr-modal-timing-label {
  color: #5a6a85;
}

html[data-app-theme="light"] body.page-dashboard .qr-loading-text {
  color: #5a6a85;
}

html[data-app-theme="light"] body.page-dashboard .qr-modal-backdrop {
  background: rgba(15, 23, 42, 0.46);
}

html[data-app-theme="light"] body.page-dashboard .qr-modal-close {
  background: rgba(42, 53, 71, 0.06);
}

html[data-app-theme="light"] body.page-dashboard .app-toast {
  background: #ffffff;
  box-shadow: 0 24px 40px -28px rgba(15, 23, 42, 0.26);
}

html[data-app-theme="light"] body.page-dashboard .app-toast-close {
  background: rgba(42, 53, 71, 0.06);
}

html[data-app-theme="light"] body.page-dashboard .app-confirm-backdrop {
  background: rgba(15, 23, 42, 0.42);
}

html[data-app-theme="light"] body.page-dashboard .app-confirm-dialog {
  background: #ffffff;
  box-shadow: 0 32px 70px -40px rgba(15, 23, 42, 0.26);
}

html[data-app-theme="light"] body.page-dashboard .form-control,
html[data-app-theme="light"] body.page-dashboard .form-select,
html[data-app-theme="light"] body.page-dashboard .form-check-input {
  background-color: #ffffff;
  border-color: var(--dashboard-border);
}

html[data-app-theme="light"] body.page-dashboard .form-control::placeholder,
html[data-app-theme="light"] body.page-dashboard .form-select::placeholder {
  color: #8aa0ba;
}

html[data-app-theme="light"] body.page-dashboard .form-select option {
  background: #ffffff;
  color: #2a3547;
}

html[data-app-theme="light"] body.page-dashboard .btn-outline-primary {
  background: transparent;
}

html[data-app-theme="light"] body.page-dashboard .dashboard-footer {
  background: var(--dashboard-footer-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(255, 255, 255, 0.22),
    0 -14px 30px -18px rgba(15, 23, 42, 0.2);
}

@media (max-width: 1199.98px) {
  :root {
    --dashboard-content-gutter-x: 18px;
    --dashboard-content-gutter-y: 20px;
    --dashboard-content-gutter-bottom: 18px;
  }

  body.page-dashboard {
    overflow: auto;
  }

  #main-wrapper.dashboard-layout,
  .dashboard-page-wrapper,
  .dashboard-body-wrapper,
  .dashboard-page-wrapper .dashboard-body-wrapper > .container-fluid {
    height: auto;
    overflow: visible;
  }

  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(292px, 85vw);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.72);
  }

  #main-wrapper.sidebar-open .dashboard-sidebar {
    transform: translateX(0);
  }

  .dashboard-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 25, 0.58);
    border: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1040;
  }

  #main-wrapper.sidebar-open .dashboard-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .dashboard-topbar {
    padding: 0 14px;
  }

  .dashboard-page-content {
    overflow: visible;
    padding-bottom: 0;
  }

  .workspace-title {
    max-width: none;
  }

  .dashboard-footer {
    position: relative;
    width: 100%;
  }

  .dashboard-home-hero-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(250px, 0.82fr);
  }

  .dashboard-home-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .dashboard-home-hero-grid,
  .dashboard-home-module-grid,
  .dashboard-home-focus-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .dashboard-topbar-copy {
    display: none !important;
  }

  .page-title-grid,
  .panel-header,
  .workspace-meta-item,
  .stack-item,
  .endpoint-item,
  .summary-item,
  .qr-status-item {
    flex-direction: column;
  }

  .page-title-actions,
  .panel-tools,
  .stack-item-actions {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .stack-item-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cs-conversation-actions {
    width: 100%;
    min-width: 0;
  }

  .cs-action-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .device-stack-actions,
  .device-stack-buttons,
  .device-stack-feedback {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .message-intent-card,
  .qr-modal-meta {
    grid-template-columns: 1fr;
  }

  .api-doc-steps {
    grid-template-columns: 1fr;
  }

  .api-doc-workspace {
    grid-template-columns: 1fr;
  }

  .api-doc-nav-wrap {
    position: static;
  }

  .api-doc-nav {
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .api-doc-panel-grid-3 {
    grid-template-columns: 1fr;
  }

  .dashboard-card,
  .page-title-card,
  .quick-link-card,
  .qr-modal-dialog {
    border-radius: 12px;
  }

  .metric-card {
    border-radius: 8px;
  }

  .qr-modal {
    padding: 16px;
  }

  .qr-modal-header,
  .qr-modal-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .qr-modal-footer .d-flex {
    width: auto;
    flex-direction: row;
  }

  .qr-modal-footer .btn {
    width: auto;
  }

  .qr-preview-wrap {
    min-height: 240px;
  }

  .qr-preview-wrap-modal {
    min-height: 280px;
  }

  .topbar-profile-trigger {
    max-width: 100%;
  }

  .workspace-actions .btn,
  .page-title-actions .btn {
    width: 100%;
  }

  .dashboard-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 12px 0;
  }

  .dashboard-footer-meta {
    justify-content: flex-start;
  }

  .dashboard-home-actions,
  .dashboard-home-panel-head,
  .dashboard-home-list-item,
  .dashboard-home-check-item,
  .dashboard-home-module-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-summary-hero,
  .profile-avatar-preview-wrap,
  .profile-avatar-compact {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-summary-grid {
    grid-template-columns: 1fr;
  }

.dashboard-home-summary-grid {
    grid-template-columns: 1fr;
  }
}

.chat-center-card .card-body {
  overflow: hidden;
}

body.page-chat .chat-center-card {
  height: 100%;
  min-height: 0;
}

body.page-chat .chat-center-card .card-body {
  height: 100%;
}

.chat-center-layout {
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr) minmax(280px, 320px);
  grid-template-areas: "sidebar thread insights";
  min-height: 72vh;
  height: clamp(640px, calc(100vh - 220px), 880px);
  max-height: calc(100vh - 190px);
}

.chat-center-layout.is-status-view {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  grid-template-areas: "sidebar thread";
}

.chat-center-layout.is-status-view .chat-center-insights {
  display: none;
}

.chat-center-layout.is-status-view .chat-center-thread-actions {
  display: none;
}

@media (min-width: 992px) {
  .chat-center-layout {
    min-height: 640px;
    height: calc(
      100vh - var(--dashboard-topbar-height) - var(--dashboard-footer-height) -
        var(--dashboard-content-gutter-y) - var(--dashboard-content-gutter-bottom) - 8px
    );
    max-height: calc(
      100vh - var(--dashboard-topbar-height) - var(--dashboard-footer-height) -
        var(--dashboard-content-gutter-y) - var(--dashboard-content-gutter-bottom) - 8px
    );
  }

  body.page-chat .dashboard-body-wrapper {
    overflow: hidden;
  }

  body.page-chat .dashboard-page-wrapper .dashboard-body-wrapper > .container-fluid {
    padding-bottom: 0 !important;
  }

  body.page-chat .dashboard-page-content {
    display: flex;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    padding-top: 12px;
    padding-right: 12px;
    padding-bottom: 12px;
  }

  body.page-chat .chat-center-layout {
    min-height: 0;
    height: 100%;
    max-height: none;
  }
}

.chat-center-sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid rgba(111, 139, 187, 0.24);
  background:
    linear-gradient(180deg, rgba(34, 48, 72, 0.48) 0%, rgba(16, 24, 38, 0.18) 100%);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-sidebar {
  background:
    linear-gradient(180deg, rgba(236, 244, 255, 0.92) 0%, rgba(244, 248, 255, 0.88) 100%);
  border-right-color: rgba(126, 156, 205, 0.26);
}

.chat-center-sidebar-head {
  flex-shrink: 0;
  padding: 1.25rem;
  border-bottom: 1px solid rgba(111, 139, 187, 0.2);
}

.chat-center-sidebar-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.chat-center-status-lane-head {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin-top: 0.15rem;
  padding: 0.95rem 1rem 1rem;
  border-top: 1px solid rgba(111, 139, 187, 0.16);
  border-bottom: 1px solid rgba(111, 139, 187, 0.16);
  background:
    linear-gradient(180deg, rgba(16, 25, 38, 0.72) 0%, rgba(11, 19, 31, 0.32) 100%);
}

.chat-center-layout.is-status-view .chat-center-status-lane-head {
  margin-top: 0.25rem;
  padding: 0.9rem 0 0.75rem;
  border-top: 0;
  border-bottom: 1px solid rgba(111, 139, 187, 0.14);
  background: transparent;
}

.chat-center-status-lane-eyebrow,
.chat-center-thread-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(126, 198, 255, 0.9);
}

.chat-center-status-lane-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.chat-center-status-lane-title {
  color: rgba(246, 250, 255, 0.96);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
}

.chat-center-status-lane-count {
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: rgba(36, 211, 161, 0.18);
  color: rgba(215, 255, 243, 0.94);
  font-size: 0.78rem;
  font-weight: 800;
}

.chat-center-status-lane-head p {
  margin: 0;
  color: rgba(185, 202, 231, 0.76);
  font-size: 0.88rem;
  line-height: 1.45;
}

.chat-center-sidebar-tab {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.9rem;
  border: 1px solid rgba(111, 139, 187, 0.22);
  border-radius: 999px;
  background: rgba(16, 24, 38, 0.4);
  color: rgba(190, 205, 232, 0.8);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.chat-center-sidebar-tab:hover,
.chat-center-sidebar-tab:focus-visible {
  color: rgba(244, 248, 255, 0.96);
  border-color: rgba(132, 166, 227, 0.3);
  background: rgba(26, 39, 59, 0.72);
}

.chat-center-sidebar-tab.is-active {
  color: rgba(247, 250, 255, 0.98);
  border-color: rgba(103, 149, 243, 0.42);
  background:
    linear-gradient(180deg, rgba(59, 89, 145, 0.66) 0%, rgba(37, 60, 100, 0.9) 100%);
  box-shadow: 0 10px 20px rgba(13, 21, 38, 0.28);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-sidebar-tab {
  border-color: rgba(126, 156, 205, 0.24);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(71, 95, 139, 0.86);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-sidebar-tab:hover,
html[data-app-theme="light"] body.page-dashboard .chat-center-sidebar-tab:focus-visible {
  color: rgba(29, 45, 79, 0.94);
  background: rgba(232, 241, 255, 0.94);
  border-color: rgba(126, 156, 205, 0.28);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-sidebar-tab.is-active {
  color: rgba(24, 40, 74, 0.96);
  border-color: rgba(98, 137, 214, 0.34);
  background:
    linear-gradient(180deg, rgba(214, 229, 255, 0.98) 0%, rgba(188, 214, 255, 0.94) 100%);
  box-shadow: 0 10px 22px rgba(69, 95, 142, 0.14);
}

.chat-center-search {
  position: relative;
  margin-bottom: 1rem;
}

.chat-center-search i {
  position: absolute;
  top: 50%;
  left: 0.95rem;
  transform: translateY(-50%);
  color: rgba(183, 201, 234, 0.72);
}

.chat-center-search .form-control {
  padding-left: 2.8rem;
}

.chat-center-conversation-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
  overflow: auto;
  min-height: 0;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.chat-center-status-list {
  gap: 0.8rem;
  padding: 0.9rem 0.8rem 1.1rem;
  background:
    linear-gradient(180deg, rgba(13, 21, 33, 0.28) 0%, rgba(9, 16, 27, 0.14) 100%);
}

.chat-center-conversation-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  width: 100%;
  padding: 0.95rem 1.15rem;
  border: 0;
  border-bottom: 1px solid rgba(111, 139, 187, 0.14);
  background: transparent;
  color: inherit;
  text-align: left;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.chat-center-conversation-item:hover,
.chat-center-conversation-item:focus-visible {
  background: rgba(23, 35, 53, 0.6);
  box-shadow: inset 3px 0 0 rgba(102, 151, 255, 0.34);
}

.chat-center-conversation-item.is-active {
  background: rgba(78, 105, 156, 0.2);
  box-shadow: inset 3px 0 0 rgba(107, 154, 255, 0.9);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-conversation-item {
  background: transparent;
  border-bottom-color: rgba(128, 156, 198, 0.18);
  box-shadow: none;
}

html[data-app-theme="light"] body.page-dashboard .chat-center-conversation-item:hover,
html[data-app-theme="light"] body.page-dashboard .chat-center-conversation-item:focus-visible {
  background: rgba(225, 237, 255, 0.62);
  box-shadow: inset 3px 0 0 rgba(105, 145, 219, 0.34);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-conversation-item.is-active {
  background: rgba(214, 229, 255, 0.72);
  box-shadow: inset 3px 0 0 rgba(98, 137, 214, 0.92);
}

.chat-center-conversation-avatar,
.chat-center-thread-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(92, 132, 255, 0.95) 0%, rgba(61, 216, 176, 0.82) 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 20px rgba(24, 42, 72, 0.18);
  overflow: hidden;
}

.chat-center-conversation-avatar.has-image,
.chat-center-thread-avatar.has-image {
  color: transparent;
  background: rgba(255, 255, 255, 0.08);
}

.chat-center-thread-avatar {
  width: 60px;
  height: 60px;
  font-size: 1.05rem;
}

.chat-center-status-avatar {
  position: relative;
  box-shadow:
    0 0 0 2px rgba(14, 21, 33, 0.96),
    0 0 0 4px rgba(35, 211, 162, 0.78),
    0 10px 20px rgba(24, 42, 72, 0.18);
}

.chat-center-layout.is-status-view .chat-center-status-avatar {
  box-shadow:
    0 0 0 2px rgba(14, 21, 33, 0.96),
    0 0 0 4px rgba(35, 211, 162, 0.86),
    0 0 0 8px rgba(103, 145, 231, 0.12);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-avatar {
  box-shadow:
    0 0 0 2px rgba(244, 248, 255, 0.98),
    0 0 0 4px rgba(35, 211, 162, 0.74),
    0 10px 22px rgba(69, 95, 142, 0.14);
}

.chat-center-status-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  width: 100%;
  padding: 1rem 1rem 1rem 0.95rem;
  border: 1px solid rgba(111, 139, 187, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(17, 28, 43, 0.96) 0%, rgba(11, 19, 30, 0.94) 100%);
  color: inherit;
  text-align: left;
  box-shadow:
    0 14px 26px rgba(6, 12, 22, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.01);
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.chat-center-layout.is-status-view .chat-center-status-card {
  grid-template-columns: 56px minmax(0, 1fr) 62px;
  padding: 0.95rem;
}

.chat-center-status-card:hover,
.chat-center-status-card:focus-visible {
  border-color: rgba(63, 221, 172, 0.34);
  background:
    linear-gradient(180deg, rgba(18, 34, 48, 0.98) 0%, rgba(12, 24, 36, 0.96) 100%);
  box-shadow:
    0 18px 30px rgba(5, 12, 22, 0.24),
    inset 0 0 0 1px rgba(72, 222, 176, 0.08);
  transform: translateY(-1px);
}

.chat-center-layout.is-status-view .chat-center-status-card:hover,
.chat-center-layout.is-status-view .chat-center-status-card:focus-visible {
  border-color: rgba(63, 221, 172, 0.38);
  background:
    linear-gradient(180deg, rgba(18, 34, 48, 0.94) 0%, rgba(11, 21, 34, 0.92) 100%);
}

.chat-center-status-card.is-active {
  background:
    linear-gradient(180deg, rgba(16, 44, 47, 0.98) 0%, rgba(11, 29, 33, 0.94) 100%);
  border-color: rgba(68, 220, 175, 0.4);
  box-shadow:
    0 18px 34px rgba(5, 14, 22, 0.28),
    inset 0 0 0 1px rgba(67, 220, 175, 0.16);
}

.chat-center-layout.is-status-view .chat-center-status-card.is-active {
  background:
    linear-gradient(180deg, rgba(16, 44, 47, 0.96) 0%, rgba(11, 29, 33, 0.92) 100%);
  box-shadow:
    0 18px 34px rgba(5, 14, 22, 0.26),
    inset 0 0 0 1px rgba(67, 220, 175, 0.16);
}

.chat-center-status-card-avatar-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-center-status-card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.chat-center-status-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.chat-center-status-card-name {
  display: block;
  min-width: 0;
  color: rgba(247, 250, 255, 0.97);
  font-size: 0.99rem;
  font-weight: 700;
  line-height: 1.24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-center-status-card-time {
  flex-shrink: 0;
  color: rgba(165, 188, 223, 0.72);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
}

.chat-center-status-card-preview {
  display: block;
  color: rgba(192, 210, 237, 0.82);
  font-size: 0.88rem;
  line-height: 1.38;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-center-status-card-meta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 24px;
  padding: 0 0.58rem;
  border-radius: 999px;
  background: rgba(40, 211, 163, 0.16);
  color: rgba(214, 255, 244, 0.94);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-center-status-card-thumb,
.chat-center-status-card-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-center-layout.is-status-view .chat-center-status-card-thumb,
.chat-center-layout.is-status-view .chat-center-status-card-icon {
  width: 62px;
  height: 74px;
}

.chat-center-status-card-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(111, 139, 187, 0.18);
  background: rgba(17, 24, 37, 0.74);
  box-shadow: 0 12px 20px rgba(4, 10, 20, 0.22);
}

.chat-center-status-card-thumb-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.chat-center-status-card-thumb.is-sticker .chat-center-status-card-thumb-image {
  object-fit: contain;
  padding: 0.25rem;
}

.chat-center-status-card-thumb-badge {
  position: absolute;
  right: 0.4rem;
  bottom: 0.4rem;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(7, 14, 26, 0.78);
  color: rgba(246, 250, 255, 0.96);
  font-size: 0.8rem;
}

.chat-center-status-card-icon {
  border-radius: 16px;
  border: 1px solid rgba(111, 139, 187, 0.16);
  background: rgba(16, 24, 38, 0.54);
  color: rgba(121, 199, 255, 0.84);
  font-size: 1.1rem;
}

.chat-center-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.chat-center-conversation-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.chat-center-conversation-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: rgba(247, 250, 255, 0.96);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-center-conversation-preview,
.chat-center-conversation-time,
.chat-center-thread-copy p,
.chat-center-compose-help {
  color: rgba(183, 201, 234, 0.76);
}

.chat-center-conversation-preview {
  display: block;
  font-size: 0.9rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-app-theme="light"] body.page-dashboard .chat-center-conversation-preview,
html[data-app-theme="light"] body.page-dashboard .chat-center-thread-copy p,
html[data-app-theme="light"] body.page-dashboard .chat-center-compose-help {
  color: rgba(71, 95, 139, 0.84);
}

.chat-center-conversation-time {
  align-self: start;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  color: rgba(170, 188, 221, 0.72);
  padding-top: 0.08rem;
}

html[data-app-theme="light"] body.page-dashboard .chat-center-conversation-name {
  color: rgba(28, 44, 76, 0.92);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-conversation-time {
  color: rgba(91, 116, 160, 0.82);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-lane-head {
  border-top-color: rgba(126, 156, 205, 0.18);
  border-bottom-color: rgba(126, 156, 205, 0.18);
  background:
    linear-gradient(180deg, rgba(235, 244, 255, 0.9) 0%, rgba(244, 248, 255, 0.76) 100%);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-layout.is-status-view .chat-center-status-lane-head {
  background: transparent;
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-list {
  background:
    linear-gradient(180deg, rgba(232, 241, 255, 0.72) 0%, rgba(246, 250, 255, 0.22) 100%);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-lane-title {
  color: rgba(25, 42, 77, 0.96);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-lane-count {
  background: rgba(32, 203, 154, 0.14);
  color: rgba(28, 119, 94, 0.96);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-lane-head p {
  color: rgba(77, 101, 146, 0.86);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-card {
  border-color: rgba(126, 156, 205, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 248, 255, 0.94) 100%);
  box-shadow: 0 14px 28px rgba(69, 95, 142, 0.08);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-layout.is-status-view .chat-center-status-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 247, 255, 0.96) 100%);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-card:hover,
html[data-app-theme="light"] body.page-dashboard .chat-center-status-card:focus-visible {
  border-color: rgba(45, 191, 148, 0.28);
  background:
    linear-gradient(180deg, rgba(244, 250, 255, 0.98) 0%, rgba(231, 243, 255, 0.94) 100%);
  box-shadow: 0 18px 30px rgba(69, 95, 142, 0.12);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-card.is-active {
  background:
    linear-gradient(180deg, rgba(231, 255, 246, 0.98) 0%, rgba(217, 248, 237, 0.94) 100%);
  border-color: rgba(45, 191, 148, 0.32);
  box-shadow:
    0 18px 32px rgba(69, 95, 142, 0.12),
    inset 0 0 0 1px rgba(37, 191, 142, 0.08);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-card-name {
  color: rgba(28, 44, 76, 0.94);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-card-time {
  color: rgba(88, 111, 154, 0.82);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-card-preview {
  color: rgba(79, 101, 144, 0.84);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-card-meta {
  background: rgba(45, 191, 148, 0.12);
  color: rgba(25, 142, 108, 0.88);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-card-thumb {
  border-color: rgba(126, 156, 205, 0.18);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 20px rgba(69, 95, 142, 0.12);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-card-thumb-badge {
  background: rgba(29, 45, 79, 0.78);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-card-icon {
  border-color: rgba(126, 156, 205, 0.18);
  background: rgba(237, 244, 255, 0.92);
  color: rgba(71, 123, 201, 0.88);
}

.chat-center-empty-list,
.chat-center-thread-placeholder {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  min-height: 100%;
  text-align: center;
  padding: 2rem;
  color: rgba(183, 201, 234, 0.82);
}

.chat-center-thread-placeholder-mark {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(33, 48, 77, 0.82);
  color: rgba(217, 229, 255, 0.88);
  font-size: 1.8rem;
  box-shadow: inset 0 0 0 1px rgba(111, 139, 187, 0.28);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-thread-placeholder-mark {
  background: linear-gradient(135deg, rgba(231, 239, 255, 0.94) 0%, rgba(240, 247, 255, 0.98) 100%);
  color: rgba(57, 91, 153, 0.9);
}

.chat-center-thread {
  grid-area: thread;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(45, 96, 188, 0.08), transparent 26%),
    radial-gradient(circle at bottom left, rgba(44, 199, 163, 0.08), transparent 24%);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-thread {
  background:
    radial-gradient(circle at top right, rgba(93, 140, 227, 0.12), transparent 24%),
    radial-gradient(circle at bottom left, rgba(54, 204, 164, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(249, 252, 255, 0.96) 0%, rgba(243, 248, 255, 0.9) 100%);
}

.chat-center-insights {
  grid-area: insights;
  min-height: 0;
  overflow: hidden;
  border-left: 1px solid rgba(111, 139, 187, 0.22);
  background:
    linear-gradient(180deg, rgba(31, 43, 64, 0.58) 0%, rgba(18, 26, 40, 0.34) 100%);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-insights {
  border-left-color: rgba(126, 156, 205, 0.24);
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.94) 0%, rgba(246, 249, 255, 0.92) 100%);
}

.chat-center-insights-scroll {
  height: 100%;
  overflow: auto;
  padding: 1.1rem 1rem 1.2rem;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.chat-center-insight-section {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.chat-center-insight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.chat-center-insight-title {
  font-size: 1.04rem;
  font-weight: 700;
  color: rgba(246, 250, 255, 0.96);
}

.chat-center-insight-title span {
  color: rgba(167, 188, 227, 0.8);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-insight-title {
  color: rgba(22, 39, 74, 0.94);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-insight-title span {
  color: rgba(88, 111, 154, 0.82);
}

.chat-center-insight-empty {
  padding: 0.95rem 1rem;
  border: 1px dashed rgba(111, 139, 187, 0.2);
  color: rgba(176, 194, 225, 0.74);
  font-size: 0.9rem;
  background: rgba(17, 25, 39, 0.22);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-insight-empty {
  border-color: rgba(126, 156, 205, 0.24);
  color: rgba(88, 111, 154, 0.82);
  background: rgba(248, 251, 255, 0.86);
}

.chat-center-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.chat-center-media-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(111, 139, 187, 0.18);
  background: rgba(16, 24, 37, 0.44);
}

.chat-center-media-open,
.chat-center-message-media-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.chat-center-message-media-trigger {
  width: auto;
  height: auto;
  border-radius: 10px;
}

.chat-center-media-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.chat-center-media-item.is-sticker .chat-center-media-thumb {
  object-fit: contain;
  background: rgba(14, 21, 33, 0.18);
}

.chat-center-media-overlay {
  position: absolute;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: rgba(8, 14, 24, 0.72);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
}

.chat-center-media-overlay.is-video {
  inset: auto auto 0.5rem 0.5rem;
  width: 36px;
  height: 36px;
}

.chat-center-media-actions {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.chat-center-media-save,
.chat-center-media-delete,
.chat-center-file-save,
.chat-center-file-delete {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  color: #fff;
  text-decoration: none;
}

.chat-center-media-save,
.chat-center-file-save,
.chat-center-file-delete {
  background: rgba(8, 14, 24, 0.72);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
}

.chat-center-media-delete {
  background: rgba(194, 58, 75, 0.86);
  box-shadow: 0 10px 18px rgba(69, 12, 17, 0.28);
}

.chat-center-file-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.chat-center-file-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem;
  border: 1px solid rgba(111, 139, 187, 0.18);
  background: rgba(18, 27, 40, 0.32);
}

.chat-center-file-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.chat-center-file-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(41, 59, 89, 0.76);
  color: rgba(238, 244, 255, 0.92);
  font-size: 1.2rem;
}

.chat-center-file-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.chat-center-file-name {
  display: block;
  color: rgba(246, 250, 255, 0.96);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-center-file-meta {
  color: rgba(176, 194, 225, 0.74);
  font-size: 0.78rem;
}

html[data-app-theme="light"] body.page-dashboard .chat-center-media-item,
html[data-app-theme="light"] body.page-dashboard .chat-center-file-item {
  border-color: rgba(126, 156, 205, 0.22);
  background: rgba(255, 255, 255, 0.78);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-file-icon {
  background: rgba(224, 235, 255, 0.88);
  color: rgba(47, 79, 140, 0.92);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-file-name {
  color: rgba(29, 45, 79, 0.94);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-file-meta {
  color: rgba(88, 111, 154, 0.82);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-media-save,
html[data-app-theme="light"] body.page-dashboard .chat-center-file-save,
html[data-app-theme="light"] body.page-dashboard .chat-center-file-delete {
  background: rgba(25, 43, 77, 0.78);
}

.chat-center-thread-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100%;
  height: 100%;
}

.chat-center-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.4rem;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(111, 139, 187, 0.22);
  background: rgba(14, 20, 31, 0.52);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-thread-head {
  background: rgba(255, 255, 255, 0.74);
  border-bottom-color: rgba(126, 156, 205, 0.24);
}

.chat-center-thread-head.is-status-view {
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 0;
  background: transparent;
}

html[data-app-theme="light"] body.page-dashboard .chat-center-thread-head.is-status-view {
  background: transparent;
}

.chat-center-thread-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.chat-center-thread-copy h2 {
  font-size: 1.22rem;
  line-height: 1.2;
}

.chat-center-thread-copy {
  min-width: 0;
}

.chat-center-thread-copy p {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-center-thread-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chat-center-status-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chat-center-status-nav .btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border-radius: 999px;
  padding-inline: 0.9rem;
}

.chat-center-thread-body {
  --chat-thread-surface: #0b141a;
  --chat-thread-surface-alt: #111b21;
  --chat-bubble-inbound: #202c33;
  --chat-bubble-outbound: #005c4b;
  --chat-bubble-meta: rgba(230, 237, 245, 0.56);
  --chat-bubble-meta-outbound: rgba(219, 250, 234, 0.62);
  min-height: 0;
  overflow: auto;
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background:
    radial-gradient(circle at top left, rgba(44, 70, 104, 0.08), transparent 36%),
    linear-gradient(180deg, var(--chat-thread-surface-alt) 0%, var(--chat-thread-surface) 100%);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-thread-body {
  --chat-thread-surface: #efeae2;
  --chat-thread-surface-alt: #f6f1eb;
  --chat-bubble-inbound: #ffffff;
  --chat-bubble-outbound: #d9fdd3;
  --chat-bubble-meta: rgba(84, 100, 120, 0.72);
  --chat-bubble-meta-outbound: rgba(69, 84, 104, 0.72);
  background:
    radial-gradient(circle at top left, rgba(106, 152, 226, 0.08), transparent 34%),
    linear-gradient(180deg, var(--chat-thread-surface-alt) 0%, var(--chat-thread-surface) 100%);
}

.chat-center-thread-body.is-status-view {
  display: block;
  padding: 0.45rem clamp(1.1rem, 2vw, 1.9rem) 1.7rem;
  background:
    radial-gradient(circle at top right, rgba(35, 211, 162, 0.08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(78, 123, 230, 0.08), transparent 30%),
    linear-gradient(180deg, #111a28 0%, #0b141a 100%);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-thread-body.is-status-view {
  background:
    radial-gradient(circle at top right, rgba(35, 211, 162, 0.1), transparent 28%),
    radial-gradient(circle at bottom left, rgba(93, 140, 227, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(242, 247, 255, 0.98) 0%, rgba(236, 243, 255, 0.94) 100%);
}

.chat-center-day-divider {
  display: flex;
  justify-content: center;
  margin: 0.45rem 0 0.3rem;
}

.chat-center-day-divider.is-status-view {
  margin: 0.15rem 0 0.2rem;
}

.chat-center-day-divider span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 0.9rem;
  background: rgba(27, 39, 60, 0.78);
  color: rgba(183, 201, 234, 0.86);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-app-theme="light"] body.page-dashboard .chat-center-day-divider span {
  background: rgba(227, 237, 255, 0.88);
  color: rgba(77, 101, 146, 0.9);
}

.chat-center-message-row {
  display: flex;
}

.chat-center-message-row.is-outbound {
  justify-content: flex-end;
}

.chat-center-message-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.22rem;
  max-width: min(720px, 76%);
}

.chat-center-message-stack.is-outbound {
  align-items: flex-end;
}

.chat-center-message-bubble {
  position: relative;
  max-width: 100%;
  width: fit-content;
  min-width: 0;
  display: inline-flex;
  flex-direction: column;
  gap: 0.14rem;
  padding: 0.56rem 0.72rem 0.38rem;
  border: 1px solid rgba(111, 139, 187, 0.16);
  border-radius: 1rem 1rem 1rem 0.42rem;
  background: var(--chat-bubble-inbound);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
  color: rgba(233, 237, 243, 0.96);
  line-height: 1.4;
}

.chat-center-message-bubble p {
  margin-bottom: 0 !important;
  color: inherit;
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.42;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-center-message-bubble::before {
  display: none;
}

.chat-center-message-bubble::after {
  display: none;
}

.chat-center-status-viewer-shell {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.chat-center-status-viewer-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-center-status-story {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.chat-center-status-story-frame {
  position: relative;
  min-height: clamp(360px, 68vh, 620px);
  overflow: hidden;
  border: 1px solid rgba(111, 139, 187, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(19, 31, 49, 0.98) 0%, rgba(10, 18, 29, 0.94) 100%);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.chat-center-status-story-frame::before {
  content: "";
  position: absolute;
  top: 0.95rem;
  left: 1rem;
  right: 1rem;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 2;
}

.chat-center-status-story-frame::after {
  content: "";
  position: absolute;
  top: 0.95rem;
  left: 1rem;
  width: min(42%, calc(100% - 2rem));
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(78, 220, 177, 0.98) 0%, rgba(112, 176, 255, 0.94) 100%);
  z-index: 3;
}

.chat-center-status-story-frame.is-text-only {
  display: flex;
  align-items: stretch;
}

.chat-center-status-story-topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1.55rem 1rem 0;
}

.chat-center-status-story-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.72rem;
  border-radius: 999px;
  background: rgba(8, 16, 28, 0.72);
  color: rgba(244, 249, 255, 0.94);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-center-status-story-time {
  color: rgba(225, 233, 245, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
}

.chat-center-status-story-stage {
  position: relative;
  min-height: inherit;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.chat-center-status-story-stage.is-text-only {
  min-height: inherit;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.25rem 1.5rem;
}

.chat-center-status-story-media-shell {
  position: relative;
  width: 100%;
  min-height: inherit;
  max-height: none;
  overflow: hidden;
  border-radius: 0;
  background: rgba(7, 14, 24, 0.56);
  border: 0;
}

.chat-center-status-story-media-shell.is-image,
.chat-center-status-story-media-shell.is-video {
  aspect-ratio: 9 / 14;
}

.chat-center-status-story-media-shell.is-sticker {
  aspect-ratio: 1 / 1;
}

.chat-center-status-story-media {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.chat-center-status-story-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

.chat-center-status-story-media-preview {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.chat-center-status-story-media-shell.is-sticker .chat-center-status-story-media-preview {
  object-fit: contain;
  padding: 1rem;
}

.chat-center-status-story-media-action {
  position: absolute;
  right: 0.95rem;
  bottom: 0.95rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 14, 24, 0.78);
  color: rgba(246, 250, 255, 0.98);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
}

.chat-center-status-story-media-badge {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(8, 14, 24, 0.74);
  color: rgba(246, 250, 255, 0.98);
  font-size: 1rem;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
}

.chat-center-status-story-copy {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2.8rem 1rem 1rem;
  background: linear-gradient(180deg, rgba(8, 13, 22, 0) 0%, rgba(8, 13, 22, 0.82) 34%, rgba(8, 13, 22, 0.96) 100%);
}

.chat-center-status-story-copy.is-text-only {
  position: static;
  inset: auto;
  width: min(100%, 82%);
  display: flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  padding: 1.5rem 1.35rem;
  border: 1px solid rgba(133, 170, 229, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(70, 108, 168, 0.28) 0%, rgba(17, 27, 41, 0.9) 72%),
    linear-gradient(180deg, rgba(22, 35, 55, 0.4) 0%, rgba(11, 19, 31, 0.96) 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.chat-center-status-story-text {
  margin: 0;
  color: rgba(239, 244, 255, 0.96);
  font-size: 1rem;
  line-height: 1.58;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-center-status-story-copy.is-text-only .chat-center-status-story-text {
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.7;
  text-align: center;
}

.chat-center-status-story-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0 0.25rem;
  color: rgba(183, 201, 234, 0.74);
  font-size: 0.82rem;
  line-height: 1.2;
}

.chat-center-status-story-file {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  width: auto;
  background: rgba(8, 16, 29, 0.82);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-story {
  background: transparent;
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-story-frame {
  border-color: rgba(126, 156, 205, 0.22);
  background:
    linear-gradient(180deg, rgba(245, 249, 255, 0.98) 0%, rgba(232, 241, 255, 0.94) 100%);
  box-shadow: 0 20px 38px rgba(71, 109, 173, 0.14);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-story-frame::before {
  background: rgba(86, 113, 161, 0.16);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-story-badge {
  background: rgba(39, 67, 118, 0.82);
  color: rgba(255, 255, 255, 0.94);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-story-time {
  color: rgba(70, 96, 144, 0.92);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-story-media-shell {
  background: rgba(236, 244, 255, 0.9);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-story-media-badge {
  background: rgba(29, 45, 79, 0.78);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-story-media-action {
  background: rgba(29, 45, 79, 0.78);
  color: rgba(255, 255, 255, 0.98);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-story-text {
  color: rgba(28, 44, 76, 0.96);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-story-copy {
  background: linear-gradient(180deg, rgba(243, 248, 255, 0) 0%, rgba(243, 248, 255, 0.76) 32%, rgba(240, 246, 255, 0.98) 100%);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-story-copy.is-text-only {
  border-color: rgba(126, 156, 205, 0.2);
  background:
    radial-gradient(circle at top, rgba(202, 221, 255, 0.72) 0%, rgba(236, 243, 255, 0.98) 72%),
    linear-gradient(180deg, rgba(244, 248, 255, 0.42) 0%, rgba(236, 243, 255, 0.98) 100%);
  box-shadow: 0 18px 36px rgba(71, 109, 173, 0.12);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-story-copy.is-text-only .chat-center-status-story-text {
  color: rgba(31, 50, 88, 0.96);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-status-story-footer {
  color: rgba(88, 111, 154, 0.84);
}

.chat-center-message-media-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: min(360px, 100%);
}

.chat-center-message-file-card {
  width: min(100%, 360px);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.72rem 0.78rem;
  border: 1px solid rgba(111, 139, 187, 0.2);
  background: rgba(14, 21, 33, 0.88);
  color: rgba(236, 244, 255, 0.95);
  text-decoration: none;
}

.chat-center-message-file-card.is-outbound {
  background: rgba(25, 54, 42, 0.88);
}

.chat-center-message-file-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(41, 59, 89, 0.76);
  color: rgba(238, 244, 255, 0.92);
  font-size: 1.25rem;
}

.chat-center-message-file-card.is-outbound .chat-center-message-file-icon {
  background: rgba(45, 94, 74, 0.9);
}

.chat-center-message-file-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.chat-center-message-file-name {
  display: block;
  color: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-center-message-file-meta {
  font-size: 0.8rem;
  color: rgba(176, 194, 225, 0.78);
}

.chat-center-message-media-card.is-outbound {
  align-items: flex-end;
}

.chat-center-message-media {
  position: relative;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
}

.chat-center-message-media-preview {
  display: block;
  width: min(320px, 100%);
  max-width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(111, 139, 187, 0.22);
  background: rgba(11, 17, 27, 0.3);
}

.chat-center-message-media.is-sticker .chat-center-message-media-preview {
  width: min(180px, 100%);
  max-height: 180px;
  object-fit: contain;
  background: transparent;
}

.chat-center-message-meta.is-media {
  width: 100%;
  padding: 0 0.2rem;
}

.chat-center-message-media-badge {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(8, 14, 24, 0.7);
  color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.chat-center-media-viewer {
  position: fixed;
  inset: 0;
  z-index: 2005;
}

.chat-center-media-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 17, 0.78);
  backdrop-filter: blur(6px);
}

.chat-center-media-viewer-dialog {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid rgba(111, 139, 187, 0.24);
  background: rgba(13, 19, 29, 0.96);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

.chat-center-media-viewer-head,
.chat-center-media-viewer-foot {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(111, 139, 187, 0.18);
}

.chat-center-media-viewer-foot {
  border-bottom: 0;
  border-top: 1px solid rgba(111, 139, 187, 0.18);
}

.chat-center-media-viewer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.chat-center-media-viewer-copy {
  min-width: 0;
}

.chat-center-media-viewer-kicker {
  color: rgba(142, 176, 248, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-center-media-viewer-head h3 {
  color: rgba(246, 250, 255, 0.96);
  font-size: 1.15rem;
  line-height: 1.25;
}

.chat-center-media-viewer-head p,
.chat-center-media-viewer-foot p {
  color: rgba(176, 194, 225, 0.8);
}

.chat-center-media-viewer-close {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(246, 250, 255, 0.92);
}

.chat-center-media-viewer-body {
  min-height: 0;
  overflow: auto;
  padding: 1.25rem;
  display: grid;
  place-items: center;
  background: rgba(6, 11, 18, 0.56);
}

.chat-center-media-viewer-image,
.chat-center-media-viewer-video {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 240px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.chat-center-media-viewer-image.is-sticker {
  width: min(360px, 100%);
}

.chat-center-message-bubble.is-inbound {
  margin-left: 0;
  border-radius: 1rem 1rem 1rem 0.42rem;
}

.chat-center-message-bubble.is-outbound {
  margin-right: 0;
  border-color: rgba(57, 133, 98, 0.2);
  border-radius: 1rem 1rem 0.42rem 1rem;
  background: var(--chat-bubble-outbound);
}

.chat-center-message-bubble.is-status-failed {
  background: #6a252f;
}

html[data-app-theme="light"] body.page-dashboard .chat-center-message-bubble {
  color: rgba(35, 50, 76, 0.96);
  border-color: rgba(126, 156, 205, 0.18);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-message-media-preview {
  border-color: rgba(126, 156, 205, 0.24);
  background: rgba(239, 246, 255, 0.88);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-message-file-card {
  border-color: rgba(126, 156, 205, 0.24);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(35, 50, 76, 0.95);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-message-file-card.is-outbound {
  background: rgba(223, 247, 228, 0.96);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-message-file-icon {
  background: rgba(224, 235, 255, 0.88);
  color: rgba(47, 79, 140, 0.92);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-message-file-card.is-outbound .chat-center-message-file-icon {
  background: rgba(187, 236, 200, 0.98);
  color: rgba(32, 108, 67, 0.96);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-message-file-meta {
  color: rgba(88, 111, 154, 0.82);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-message-media.is-sticker .chat-center-message-media-preview {
  background: transparent;
}

html[data-app-theme="light"] body.page-dashboard .chat-center-message-media-badge {
  background: rgba(25, 43, 77, 0.74);
  color: rgba(255, 255, 255, 0.94);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-media-viewer-dialog {
  border-color: rgba(126, 156, 205, 0.24);
  background: rgba(248, 251, 255, 0.98);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-media-viewer-head,
html[data-app-theme="light"] body.page-dashboard .chat-center-media-viewer-foot {
  border-color: rgba(126, 156, 205, 0.2);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-media-viewer-head h3 {
  color: rgba(29, 45, 79, 0.96);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-media-viewer-head p,
html[data-app-theme="light"] body.page-dashboard .chat-center-media-viewer-foot p {
  color: rgba(88, 111, 154, 0.82);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-media-viewer-close {
  background: rgba(223, 234, 250, 0.9);
  color: rgba(29, 45, 79, 0.92);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-media-viewer-body {
  background: rgba(236, 244, 255, 0.8);
}

.chat-center-message-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: var(--chat-bubble-meta);
  line-height: 1.2;
  white-space: nowrap;
}

.chat-center-message-bubble.is-outbound .chat-center-message-meta {
  color: var(--chat-bubble-meta-outbound);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-message-meta {
  color: var(--chat-bubble-meta);
}

.chat-center-compose {
  border-top: 1px solid rgba(111, 139, 187, 0.22);
  background:
    linear-gradient(180deg, rgba(16, 24, 37, 0.96) 0%, rgba(12, 19, 29, 0.92) 100%);
  padding: 0.72rem 0.96rem 0.78rem;
  flex-shrink: 0;
}

html[data-app-theme="light"] body.page-dashboard .chat-center-compose {
  background:
    linear-gradient(180deg, rgba(251, 253, 255, 0.98) 0%, rgba(242, 247, 255, 0.96) 100%);
  border-top-color: rgba(126, 156, 205, 0.24);
}

.chat-center-compose-form {
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
}

.chat-center-compose-bar {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.chat-center-compose-input {
  flex: 1;
  min-height: 40px;
  max-height: 140px;
  resize: none;
  overflow-y: auto;
  border: 0;
  background: transparent;
  color: rgba(233, 240, 252, 0.96);
  font-size: 0.92rem;
  line-height: 1.45;
  padding: 0.46rem 0.3rem 0.38rem;
  box-shadow: none;
}

.chat-center-compose-input:focus {
  background: transparent;
  box-shadow: none;
}

.chat-center-compose-input::placeholder {
  color: rgba(150, 171, 209, 0.7);
  font-size: 0.92rem;
}

.chat-center-compose-tool {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: rgba(179, 197, 229, 0.9);
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.chat-center-compose-tool:hover,
.chat-center-compose-tool:focus-visible,
.chat-center-compose-tool.is-active {
  background: rgba(39, 56, 86, 0.4);
  color: rgba(238, 244, 255, 0.96);
  transform: none;
}

.chat-center-compose-tool:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.chat-center-compose-tool i,
.chat-center-compose-send i {
  font-size: 1rem;
}

.chat-center-compose-pickers {
  display: grid;
  gap: 0.55rem;
}

.chat-center-compose-picker {
  padding: 0.76rem 0.82rem;
  border-radius: 16px;
  border: 1px solid rgba(111, 139, 187, 0.2);
  background: rgba(14, 21, 33, 0.82);
}

.chat-center-compose-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.chat-center-compose-picker-head h3 {
  font-size: 0.96rem;
  font-weight: 700;
  color: rgba(237, 244, 255, 0.94);
}

.chat-center-compose-picker-head .form-control {
  max-width: 210px;
  min-height: 34px;
}

.chat-center-emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  gap: 0.45rem;
  max-height: 180px;
  overflow: auto;
}

.chat-center-sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 0.6rem;
  max-height: 220px;
  overflow: auto;
}

.chat-center-emoji-item,
.chat-center-sticker-item {
  border: 1px solid rgba(111, 139, 187, 0.18);
  background: rgba(21, 31, 47, 0.9);
  color: rgba(238, 244, 255, 0.94);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background-color 0.16s ease;
}

.chat-center-emoji-item {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.chat-center-sticker-item {
  display: grid;
  gap: 0.4rem;
  padding: 0.45rem;
}

.chat-center-emoji-item:hover,
.chat-center-emoji-item:focus-visible,
.chat-center-sticker-item:hover,
.chat-center-sticker-item:focus-visible {
  border-color: rgba(124, 160, 224, 0.34);
  background: rgba(35, 55, 87, 0.94);
  transform: translateY(-1px);
}

.chat-center-sticker-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
}

.chat-center-sticker-label {
  display: block;
  font-size: 0.72rem;
  line-height: 1.2;
  color: rgba(191, 206, 234, 0.8);
  text-align: center;
}

.chat-center-compose-attachment {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.82rem 0.92rem;
  border-radius: 16px;
  border: 1px solid rgba(111, 139, 187, 0.2);
  background: rgba(15, 24, 37, 0.84);
}

.chat-center-compose-attachment-figure {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(30, 47, 75, 0.86);
  color: rgba(238, 244, 255, 0.94);
  font-size: 1.4rem;
}

.chat-center-compose-attachment-figure img,
.chat-center-compose-attachment-figure video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-center-compose-attachment-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.chat-center-compose-attachment-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(136, 167, 222, 0.82);
}

.chat-center-compose-attachment-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(238, 244, 255, 0.96);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-center-compose-attachment-meta {
  font-size: 0.76rem;
  color: rgba(176, 194, 225, 0.78);
}

.chat-center-compose-attachment-remove {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(206, 98, 112, 0.26);
  background: rgba(88, 24, 33, 0.72);
  color: rgba(255, 232, 236, 0.95);
}

.chat-center-compose-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.08rem;
  flex-shrink: 0;
}

.chat-center-compose-send {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(150, 171, 209, 0.76);
  box-shadow: none;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease;
}

.chat-center-compose-send:hover,
.chat-center-compose-send:focus-visible {
  transform: none;
  background: rgba(39, 56, 86, 0.4);
  color: rgba(238, 244, 255, 0.96);
}

.chat-center-compose-send:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  background: transparent;
}

.chat-center-compose-send.is-busy i {
  animation: chat-compose-send-spin 0.9s linear infinite;
}

.chat-center-compose-send.is-ready {
  color: rgba(126, 157, 255, 0.98);
}

.chat-center-compose-send.is-ready:hover,
.chat-center-compose-send.is-ready:focus-visible {
  color: rgba(155, 181, 255, 1);
}

@keyframes chat-compose-send-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

html[data-app-theme="light"] body.page-dashboard .chat-center-compose-tool {
  background: transparent;
  color: rgba(84, 111, 160, 0.9);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-compose-tool:hover,
html[data-app-theme="light"] body.page-dashboard .chat-center-compose-tool:focus-visible,
html[data-app-theme="light"] body.page-dashboard .chat-center-compose-tool.is-active {
  background: rgba(226, 236, 252, 0.62);
  color: rgba(33, 60, 108, 0.95);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-compose-bar {
  border: 0;
  background: transparent;
  box-shadow: none;
}

html[data-app-theme="light"] body.page-dashboard .chat-center-compose-picker {
  border-color: rgba(126, 156, 205, 0.22);
  background: rgba(255, 255, 255, 0.9);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-compose-input {
  background: transparent;
  color: rgba(33, 48, 77, 0.96);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-compose-input::placeholder {
  color: rgba(122, 145, 184, 0.78);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-compose-picker-head h3 {
  color: rgba(27, 45, 76, 0.94);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-emoji-item,
html[data-app-theme="light"] body.page-dashboard .chat-center-sticker-item {
  border-color: rgba(126, 156, 205, 0.2);
  background: rgba(246, 249, 255, 0.94);
  color: rgba(28, 47, 79, 0.94);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-emoji-item:hover,
html[data-app-theme="light"] body.page-dashboard .chat-center-emoji-item:focus-visible,
html[data-app-theme="light"] body.page-dashboard .chat-center-sticker-item:hover,
html[data-app-theme="light"] body.page-dashboard .chat-center-sticker-item:focus-visible {
  background: rgba(231, 239, 255, 0.98);
  border-color: rgba(110, 144, 206, 0.3);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-sticker-label {
  color: rgba(87, 111, 154, 0.82);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-compose-attachment {
  border-color: rgba(126, 156, 205, 0.22);
  background: rgba(255, 255, 255, 0.94);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-compose-attachment-figure {
  background: rgba(228, 237, 255, 0.94);
  color: rgba(47, 79, 140, 0.94);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-compose-attachment-name {
  color: rgba(27, 45, 76, 0.94);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-compose-attachment-meta {
  color: rgba(88, 111, 154, 0.8);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-compose-attachment-remove {
  border-color: rgba(214, 118, 118, 0.22);
  background: rgba(255, 234, 234, 0.92);
  color: rgba(166, 52, 52, 0.94);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-compose-send {
  color: rgba(122, 145, 184, 0.78);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-compose-send:hover,
html[data-app-theme="light"] body.page-dashboard .chat-center-compose-send:focus-visible {
  background: rgba(226, 236, 252, 0.62);
  color: rgba(33, 60, 108, 0.95);
}

html[data-app-theme="light"] body.page-dashboard .chat-center-compose-send.is-ready {
  color: rgba(88, 119, 217, 0.98);
}

@media (max-width: 1599.98px) {
  .chat-center-layout {
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    grid-template-areas:
      "sidebar thread"
      "sidebar insights";
  }

  .chat-center-insights {
    border-left: 0;
    border-top: 1px solid rgba(111, 139, 187, 0.22);
  }

  html[data-app-theme="light"] body.page-dashboard .chat-center-insights {
    border-top-color: rgba(126, 156, 205, 0.24);
  }

  .chat-center-layout.is-status-view {
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    grid-template-areas: "sidebar thread";
  }
}

@media (max-width: 1399.98px) {
  .chat-center-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sidebar"
      "thread"
      "insights";
    min-height: auto;
    height: auto;
    max-height: none;
  }

  .chat-center-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(111, 139, 187, 0.24);
  }

  .chat-center-conversation-list {
    max-height: 340px;
  }

  .chat-center-thread {
    min-height: 70vh;
  }

  .chat-center-insights {
    max-height: 420px;
  }

  .chat-center-layout.is-status-view {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sidebar"
      "thread";
  }
}

@media (max-width: 767.98px) {
  .chat-center-message-stack {
    max-width: 92%;
  }

  .chat-center-message-media-card {
    max-width: min(100%, 320px);
  }
}

@media (max-width: 767.98px) {
  .chat-center-thread-head,
  .chat-center-thread-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .chat-center-thread-actions {
    justify-content: flex-start;
  }

  .chat-center-compose-bar {
    align-items: center;
    padding-right: 0;
  }

  .chat-center-compose-input {
    min-height: 44px;
    font-size: 0.92rem;
    padding-top: 0.5rem;
    padding-bottom: 0.42rem;
  }

  .chat-center-compose-send {
    width: 34px;
    height: 34px;
  }

  .chat-center-compose-picker-head {
    align-items: stretch;
    flex-direction: column;
  }

  .chat-center-compose-picker-head .form-control {
    max-width: none;
  }

  .chat-center-message-bubble {
    max-width: 100%;
  }

  .chat-center-status-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .chat-center-status-card-thumb,
  .chat-center-status-card-icon {
    display: none;
  }

  .chat-center-status-story {
    width: 100%;
    padding: 0.8rem;
    border-radius: 18px;
  }
}
