:root {
  --inapp-gray-50: #fafafa;
  --inapp-gray-100: #f5f5f5;
  --inapp-gray-200: #e5e5e5;
  --inapp-gray-300: #d4d4d4;
  --inapp-gray-500: #737373;
  --inapp-gray-600: #525252;
  --inapp-gray-700: #404040;
  --inapp-gray-800: #262626;
  --inapp-primary: #e66239;
  --inapp-success: #00c951;
  --inapp-info: #00b8db;
  --inapp-warning: #f0b100;
  --inapp-danger: #fb2c36;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.support-admin-app {
  margin: 0;
  background: var(--inapp-gray-100);
  color: var(--inapp-gray-800);
  font-family: "Poppins", sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0;
}

a {
  color: var(--inapp-gray-700);
}

a:hover {
  color: var(--inapp-primary);
}

#loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.94);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#loader.fadeOut {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.spinner {
  width: 42px;
  height: 42px;
  position: absolute;
  top: calc(50% - 21px);
  left: calc(50% - 21px);
  border-radius: 999px;
  background: var(--inapp-primary);
  animation: pulse 1s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(0);
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1030;
  display: none;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(1px);
}

.overlay.show {
  display: block;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.sidebar {
  width: 240px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1031;
  padding-top: 60px;
  background: #fff;
  border-right: 1px solid var(--inapp-gray-200);
  transition: width 0.3s, left 0.3s;
}

.sidebar .logo-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  background: #fff;
  border-bottom: 1px solid var(--inapp-gray-200);
}

.sidebar .logo-area a {
  width: 100%;
  justify-content: center;
}

.brand-logo {
  width: auto;
  height: 32px;
  object-fit: contain;
}

.brand-logo-sm {
  width: auto;
  height: 30px;
}

.brand-logo-login {
  height: 58px;
  max-width: 220px;
}

.sidebar-logo-image {
  width: auto;
  max-width: 190px;
  height: 48px;
  object-fit: contain;
}

.sidebar-collapse-logo {
  display: none;
  width: 50px;
  height: 44px;
  object-fit: contain;
}

.theme-logo-dark {
  display: none;
}

:root[data-bs-theme="dark"] .theme-logo-light {
  display: none;
}

:root[data-bs-theme="dark"] .theme-logo-dark {
  display: block;
}

.sidebar .nav-link {
  width: calc(100% - 24px);
  margin: 1px 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--inapp-gray-800);
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  white-space: nowrap;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  color: var(--inapp-primary);
  background: rgba(230, 98, 57, 0.095);
}

.sidebar .nav-link .ti {
  width: 18px;
  font-size: 18px;
}

.sidebar .nav-text {
  transition: opacity 0.2s;
}

.sidebar.collapsed {
  width: 60px;
}

.sidebar.collapsed .sidebar-logo-image {
  display: none;
}

.sidebar.collapsed .sidebar-collapse-logo {
  display: block;
}

.sidebar.collapsed .nav-link {
  margin: 0;
  padding: 8px 18px;
  background: transparent;
}

.sidebar.collapsed .nav-text,
.sidebar.collapsed .logo-text {
  display: none;
}

.topbar {
  height: 60px;
  margin-left: 240px;
}

.topbar.full {
  margin-left: 60px;
}

.content {
  margin-left: 240px;
  padding: 96px 24px 24px;
}

.content.full {
  margin-left: 60px;
}

.py-10 {
  padding-top: 96px !important;
  padding-bottom: 24px !important;
}

.mb-6 {
  margin-bottom: 2.5rem !important;
}

.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

.avatar {
  object-fit: cover;
}

.avatar-sm {
  width: 2rem;
  height: 2rem;
}

.avatar-md {
  width: 2.5rem;
  height: 2.5rem;
}

.avatar-xl {
  width: 5rem;
  height: 5rem;
}

.profile-photo {
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--inapp-gray-200);
}

.btn {
  font-weight: 500;
}

.btn-primary {
  --bs-btn-bg: var(--inapp-primary);
  --bs-btn-border-color: var(--inapp-primary);
  --bs-btn-hover-bg: #cf5733;
  --bs-btn-hover-border-color: #cf5733;
  --bs-btn-active-bg: #bd4f2f;
  --bs-btn-active-border-color: #bd4f2f;
}

.btn-icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.btn-xs {
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  line-height: 1.3;
}

.card {
  border-color: var(--inapp-gray-200);
  border-radius: 0.5rem;
}

.stat-card {
  min-height: 100%;
  border-radius: 0.5rem;
}

.stat-card .card-body,
.table-card .card-body,
.editor-card .card-body {
  padding: 1.5rem;
}

.stat-label,
.section-kicker {
  color: var(--inapp-gray-500);
  font-size: 0.75rem;
  font-weight: 500;
}

.stat-value {
  margin-top: 0.75rem;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
}

.stat-pending {
  background: rgba(240, 177, 0, 0.1);
  border-color: rgba(240, 177, 0, 0.25);
}

.stat-progress {
  background: rgba(0, 184, 219, 0.1);
  border-color: rgba(0, 184, 219, 0.25);
}

.stat-completed {
  background: rgba(0, 201, 81, 0.1);
  border-color: rgba(0, 201, 81, 0.25);
}

.stat-summary {
  background: #fff;
}

.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.summary-row + .summary-row {
  margin-top: 0.75rem;
}

.summary-label {
  color: var(--inapp-gray-500);
}

.summary-value,
.summary-date {
  font-weight: 700;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title {
  margin: 0.25rem 0 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.table {
  margin-bottom: 0;
  font-size: 0.82rem;
}

.table th {
  color: var(--inapp-gray-600);
  font-weight: 500;
  white-space: nowrap;
}

.table td {
  vertical-align: middle;
}

.table-responsive {
  border: 1px solid var(--inapp-gray-200);
  border-radius: 0.5rem;
}

.table-pill {
  min-width: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.table-pill.pending {
  color: #946d00;
  background: rgba(240, 177, 0, 0.15);
  border-color: rgba(240, 177, 0, 0.35);
}

.table-pill.in_progress {
  color: #08748a;
  background: rgba(0, 184, 219, 0.12);
  border-color: rgba(0, 184, 219, 0.28);
}

.table-pill.completed {
  color: #067b35;
  background: rgba(0, 201, 81, 0.12);
  border-color: rgba(0, 201, 81, 0.3);
}

.table-pill.language,
.table-pill.version {
  min-width: auto;
  color: var(--inapp-gray-700);
  background: var(--inapp-gray-100);
  border-color: var(--inapp-gray-200);
}

.cell-title {
  font-weight: 600;
  color: var(--inapp-gray-800);
}

.cell-subtitle,
.empty-inline {
  margin-top: 0.15rem;
  color: var(--inapp-gray-500);
  font-size: 0.75rem;
}

.mono-cell {
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 0.78rem;
}

.empty-state {
  padding: 1rem 0 0;
  color: var(--inapp-gray-500);
  text-align: center;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 140px;
  gap: 0.75rem;
}

.knowledge-filter-row {
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(125px, 160px));
}

.knowledge-filter-row > * {
  min-width: 0;
}

@media (max-width: 1100px) {
  .knowledge-filter-row {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

.knowledge-tags {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-filter-row {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items: center;
  margin-bottom: 1rem;
}

.ticket-filter-row > * {
  min-width: 0;
}

.ticket-filter-row #ticket-search-input {
  grid-column: span 2;
}

.ticket-filter-row #ticket-filter-reset {
  white-space: nowrap;
}

.crash-report-filter-row {
  grid-template-columns: minmax(260px, 1fr) 180px 130px;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.crash-report-page-buttons {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.crash-report-page-buttons .btn {
  min-width: 32px;
}

.knowledge-page-buttons {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.knowledge-page-buttons .btn {
  min-width: 32px;
}

.editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.editor-toolbar {
  flex-wrap: wrap;
}

.editor-surface {
  min-height: 260px;
  overflow: auto;
  line-height: 1.55;
  background: var(--inapp-gray-50);
}

.editor-surface img {
  max-width: 100%;
  height: auto;
  margin: 0.75rem 0;
  border-radius: 0.5rem;
}

#knowledge-editor-modal .modal-content,
.knowledge-editor-form {
  min-height: 0;
  overflow: hidden;
}

.knowledge-editor-form {
  width: 100%;
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
}

#knowledge-editor-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#knowledge-editor-body .jodit-container,
#release-note-editor-body .jodit-container {
  border-color: var(--bs-border-color);
  border-radius: 0.375rem;
  max-width: 100%;
}

#knowledge-editor-body .jodit-toolbar__box,
#release-note-editor-body .jodit-toolbar__box {
  border-radius: 0.375rem 0.375rem 0 0;
}

#knowledge-editor-body .jodit-wysiwyg,
#release-note-editor-body .jodit-wysiwyg {
  max-height: 52vh;
  overflow-y: auto;
  line-height: 1.55;
  background: var(--inapp-gray-50);
}

#knowledge-editor-body .jodit-wysiwyg img,
#release-note-editor-body .jodit-wysiwyg img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.75rem 0;
  border-radius: 0.5rem;
}

#knowledge-editor-body .jodit-wysiwyg ul,
#release-note-editor-body .jodit-wysiwyg ul,
#knowledge-editor-body .jodit-wysiwyg ol,
#release-note-editor-body .jodit-wysiwyg ol {
  margin: 0.35rem 0;
  padding-left: 1.5rem;
}

#knowledge-editor-body .jodit-wysiwyg li,
#release-note-editor-body .jodit-wysiwyg li {
  margin: 0.2rem 0;
}

.release-note-filter-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 150px 150px;
  gap: 0.65rem;
  max-width: 840px;
}

.release-note-language {
  color: var(--inapp-gray-500);
  font-size: 0.68rem;
  font-weight: 600;
  text-align: center;
  padding: 0.2rem 0.3rem;
  border: 1px solid var(--inapp-gray-200);
  border-radius: 0.25rem;
}

.release-note-languages {
  display: flex;
  gap: 0.25rem;
}

.release-note-language.available {
  color: var(--inapp-primary);
  background: var(--inapp-gray-50);
}

.release-note-language.missing {
  opacity: 0.5;
  border-style: dashed;
}

.release-note-translation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}

.release-note-translation-grid section {
  min-width: 0;
}

.release-note-translation-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.release-note-content img {
  max-width: 100%;
  height: auto;
}

.table-pill.release-note-status {
  min-width: 0;
  padding: 0.35rem 0.4rem;
  white-space: nowrap;
}

.release-note-list {
  border: 1px solid var(--inapp-gray-200);
  border-radius: 0.5rem;
  overflow: hidden;
}

.release-note-entry {
  background: #fff;
}

.release-note-entry + .release-note-entry {
  border-top: 1px solid var(--inapp-gray-200);
}

.release-note-row {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.7rem 0.45rem 0.8rem;
}

.release-note-toggle {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 18px 72px 62px 88px minmax(120px, 1fr) 92px;
  align-items: center;
  gap: 0.7rem;
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.release-note-toggle:hover .release-note-title-group strong,
.release-note-toggle:focus-visible .release-note-title-group strong {
  color: var(--inapp-primary);
}

.release-note-toggle:focus-visible {
  outline: 2px solid rgba(230, 98, 57, 0.25);
  outline-offset: 3px;
  border-radius: 4px;
}

.release-note-chevron {
  color: var(--inapp-gray-400);
  transition: transform 0.16s ease;
}

.release-note-entry.expanded .release-note-chevron {
  transform: rotate(90deg);
}

.release-note-title-group {
  min-width: 0;
  display: grid;
  gap: 0.16rem;
}

.release-note-title-group strong {
  overflow: hidden;
  color: var(--inapp-gray-800);
  font-size: 0.86rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-note-title-group small,
.release-note-toggle time {
  color: var(--inapp-gray-500);
  font-size: 0.7rem;
}

.release-note-toggle time {
  justify-self: end;
  white-space: nowrap;
}

.release-note-detail {
  padding: 0 1.25rem 1.1rem 14.8rem;
}

.release-note-detail::before {
  display: block;
  margin-bottom: 0.9rem;
  border-top: 1px solid var(--inapp-gray-100);
  content: "";
}

.release-note-content {
  max-width: 960px;
  color: var(--inapp-gray-700);
  font-size: 0.86rem;
  line-height: 1.6;
}

.release-note-content > :last-child {
  margin-bottom: 0;
}

.release-note-actions .btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.release-note-pagination {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--inapp-gray-500);
  font-size: 0.75rem;
}

.release-note-page-buttons {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.release-note-page-buttons .btn {
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.45rem;
}

#release-note-editor-modal .modal-content,
.release-note-editor-form {
  min-height: 0;
  overflow: hidden;
}

.release-note-editor-form {
  width: 100%;
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
}

#release-note-editor-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#release-note-editor-body .nav-tabs {
  --bs-nav-link-color: var(--inapp-primary);
  --bs-nav-tabs-link-active-color: var(--inapp-gray-800);
  --bs-nav-tabs-link-active-bg: var(--inapp-gray-50);
  --bs-nav-tabs-link-active-border-color: var(--inapp-gray-200) var(--inapp-gray-200) var(--inapp-gray-50);
}

.quick-guide-workspace {
  height: calc(100vh - 120px);
  height: calc(100dvh - 120px);
  min-height: 540px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--inapp-gray-200);
  border-radius: 6px;
  background: #fff;
}

.quick-guide-workspace-bar {
  min-height: 64px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--inapp-gray-200);
}

.quick-guide-workspace-actions,
.quick-guide-editor-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quick-guide-workspace-actions .btn,
.quick-guide-editor-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.quick-guide-language-select {
  position: relative;
  min-width: 145px;
  margin: 0;
}

.quick-guide-language-select > i {
  position: absolute;
  top: 50%;
  left: 0.55rem;
  z-index: 2;
  color: var(--inapp-gray-500);
  pointer-events: none;
  transform: translateY(-50%);
}

.quick-guide-language-select .form-select {
  height: 31px;
  padding-left: 1.8rem;
  font-size: 0.78rem;
}

.quick-guide-workspace-grid {
  position: relative;
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 280px minmax(480px, 1fr) minmax(360px, 0.72fr);
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

.quick-guide-workspace-grid.preview-hidden {
  grid-template-columns: 280px minmax(0, 1fr);
}

.quick-guide-workspace-grid.preview-hidden .quick-guide-preview-pane {
  display: none;
}

.quick-guide-tree-pane {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.75rem 0.55rem;
  border-right: 1px solid var(--inapp-gray-200);
  background: var(--inapp-gray-50);
}

.quick-guide-tree-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.quick-guide-tree-search {
  min-width: 0;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.55rem;
  border: 1px solid var(--inapp-gray-300);
  border-radius: 5px;
  background: #fff;
  color: var(--inapp-gray-500);
}

.quick-guide-tree-search:focus-within {
  border-color: var(--inapp-primary);
  box-shadow: 0 0 0 0.15rem rgba(230, 98, 57, 0.12);
}

.quick-guide-tree-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--inapp-gray-800);
  font-size: 0.78rem;
}

.quick-guide-icon-button {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--inapp-gray-300);
  border-radius: 5px;
  background: #fff;
  color: var(--inapp-gray-600);
}

.quick-guide-icon-button:hover,
.quick-guide-icon-button:focus {
  border-color: var(--inapp-primary);
  color: var(--inapp-primary);
}

.quick-guide-icon-button.danger:hover,
.quick-guide-icon-button.danger:focus {
  border-color: var(--inapp-danger);
  color: var(--inapp-danger);
}

.quick-guide-root-drop {
  height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  overflow: hidden;
  border: 0 dashed transparent;
  border-radius: 5px;
  color: var(--inapp-gray-500);
  font-size: 0.72rem;
  opacity: 0;
  transition: height 0.15s ease, opacity 0.15s ease, margin 0.15s ease;
}

.quick-guide-tree-pane:has(.dragging) .quick-guide-root-drop,
.quick-guide-root-drop.active {
  height: 36px;
  margin-bottom: 0.45rem;
  border-width: 1px;
  border-color: var(--inapp-primary);
  opacity: 1;
}

.quick-guide-root-drop.active {
  background: rgba(230, 98, 57, 0.08);
  color: var(--inapp-primary);
}

.quick-guide-admin-tree {
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.quick-guide-admin-tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-guide-admin-tree ul ul {
  margin-left: 12px;
  padding-left: 8px;
  border-left: 1px solid var(--inapp-gray-200);
}

.quick-guide-admin-tree-row {
  position: relative;
  min-width: 0;
  height: 34px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  margin: 1px 0;
  border: 1px solid transparent;
  border-radius: 5px;
}

.quick-guide-admin-tree-row:hover {
  background: #fff;
  border-color: var(--inapp-gray-200);
}

.quick-guide-admin-tree-row.active {
  border-color: rgba(230, 98, 57, 0.3);
  background: rgba(230, 98, 57, 0.09);
}

.quick-guide-admin-tree-row.dragging {
  opacity: 0.42;
}

.quick-guide-admin-tree-row.drop-inside {
  border-color: var(--inapp-primary);
  background: rgba(230, 98, 57, 0.08);
}

.quick-guide-admin-tree-row.drop-before::before,
.quick-guide-admin-tree-row.drop-after::after {
  position: absolute;
  right: 4px;
  left: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--inapp-primary);
  content: "";
}

.quick-guide-admin-tree-row.drop-before::before {
  top: -2px;
}

.quick-guide-admin-tree-row.drop-after::after {
  bottom: -2px;
}

.quick-guide-tree-toggle,
.quick-guide-tree-page,
.quick-guide-tree-actions button {
  border: 0;
  background: transparent;
  color: var(--inapp-gray-700);
}

.quick-guide-tree-toggle {
  width: 22px;
  height: 30px;
  padding: 0;
  color: var(--inapp-gray-500);
}

.quick-guide-tree-toggle.empty {
  visibility: hidden;
}

.quick-guide-admin-tree-node:has(> ul) > .quick-guide-admin-tree-row .quick-guide-tree-toggle i {
  transform: rotate(90deg);
}

.quick-guide-tree-page {
  min-width: 0;
  height: 31px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.2rem;
  text-align: left;
}

.quick-guide-tree-page > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
}

.quick-guide-tree-page > .ti-file-text {
  flex: 0 0 auto;
  color: var(--inapp-gray-500);
}

.quick-guide-draft-mark {
  margin-left: auto;
  color: var(--inapp-warning);
  font-size: 0.75rem;
}

.quick-guide-tree-actions {
  display: none;
  align-items: center;
  padding-right: 0.15rem;
}

.quick-guide-admin-tree-row:hover .quick-guide-tree-actions,
.quick-guide-admin-tree-row.active .quick-guide-tree-actions {
  display: flex;
}

.quick-guide-tree-actions button {
  width: 24px;
  height: 26px;
  padding: 0;
  color: var(--inapp-gray-500);
}

.quick-guide-tree-actions button:hover {
  color: var(--inapp-primary);
}

.quick-guide-tree-actions .quick-guide-tree-delete:hover {
  color: var(--inapp-danger);
}

.quick-guide-add-root {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
  padding: 0 0.65rem;
  border: 1px dashed var(--inapp-gray-300);
  border-radius: 5px;
  background: transparent;
  color: var(--inapp-gray-600);
  font-size: 0.78rem;
  text-align: left;
}

.quick-guide-add-root:hover {
  border-color: var(--inapp-primary);
  color: var(--inapp-primary);
  background: rgba(230, 98, 57, 0.05);
}

.quick-guide-tree-empty,
.quick-guide-editor-empty {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.5rem;
  color: var(--inapp-gray-500);
  text-align: center;
}

.quick-guide-tree-empty i,
.quick-guide-editor-empty > i {
  font-size: 2rem;
}

.quick-guide-tree-empty strong,
.quick-guide-editor-empty h3 {
  margin: 0;
  color: var(--inapp-gray-700);
  font-size: 0.9rem;
  font-weight: 600;
}

.quick-guide-tree-empty span,
.quick-guide-editor-empty p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
}

.quick-guide-tree-empty.compact {
  min-height: 150px;
}

.quick-guide-editor-pane {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.quick-guide-document-editor {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.quick-guide-editor-topbar {
  min-height: 56px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--inapp-gray-200);
}

.quick-guide-editor-breadcrumb {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow: hidden;
  color: var(--inapp-gray-500);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-guide-editor-breadcrumb i {
  flex: 0 0 auto;
  font-size: 0.65rem;
}

.quick-guide-editor-properties {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, max-content);
  align-items: end;
  justify-content: end;
  column-gap: 1.25rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--inapp-gray-200);
  background: var(--inapp-gray-50);
}

.quick-guide-editor-properties > label,
.quick-guide-editor-language {
  display: grid;
  gap: 0.25rem;
  margin: 0;
}

.quick-guide-editor-properties > label > span:first-child,
.quick-guide-editor-language > span:first-child {
  color: var(--inapp-gray-500);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.quick-guide-editor-language strong {
  min-height: 31px;
  display: flex;
  align-items: center;
  font-size: 0.76rem;
  white-space: nowrap;
}

.quick-guide-publish-switch .form-check {
  min-height: 31px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding-left: 2.2rem;
  white-space: nowrap;
}

.quick-guide-editor-canvas {
  width: 100%;
  min-height: 0;
  flex: 1;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem clamp(1.25rem, 2.5vw, 2.5rem) 1.5rem;
  scrollbar-gutter: stable;
}

.quick-guide-title-input {
  width: 100%;
  flex: 0 0 auto;
  margin-bottom: 1.25rem;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--inapp-gray-800);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.quick-guide-title-input::placeholder {
  color: var(--inapp-gray-300);
}

.quick-guide-rich-toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 1rem;
  padding: 0.3rem;
  border: 1px solid var(--inapp-gray-200);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 3px 10px rgba(36, 42, 56, 0.05);
}

.quick-guide-rich-toolbar > span {
  width: 1px;
  height: 22px;
  margin: 0 0.2rem;
  background: var(--inapp-gray-200);
}

.quick-guide-rich-toolbar button {
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0 0.4rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--inapp-gray-700);
}

.quick-guide-rich-toolbar button:hover,
.quick-guide-rich-toolbar button:focus {
  background: var(--inapp-gray-100);
  color: var(--inapp-primary);
}

.quick-guide-rich-toolbar .quick-guide-toolbar-text {
  padding: 0 0.55rem;
  font-size: 0.72rem;
}

.quick-guide-content-editor {
  min-height: 420px;
  padding: 0 0.65rem 2rem 0;
  outline: 0;
  color: var(--inapp-gray-700);
  font-size: 0.9rem;
  line-height: 1.75;
}

.quick-guide-content-editor:empty::before {
  color: var(--inapp-gray-300);
  content: attr(data-placeholder);
}

.quick-guide-content-editor h2,
.quick-guide-content-editor h3,
.quick-guide-preview-document h2,
.quick-guide-preview-document h3 {
  margin: 1.5rem 0 0.65rem;
  color: var(--inapp-gray-800);
  font-weight: 600;
}

.quick-guide-content-editor h2,
.quick-guide-preview-document h2 {
  font-size: 1.25rem;
}

.quick-guide-content-editor h3,
.quick-guide-preview-document h3 {
  font-size: 1.05rem;
}

.quick-guide-content-editor img,
.quick-guide-preview-document img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
  border: 1px solid var(--inapp-gray-200);
  border-radius: 5px;
}

.quick-guide-content-editor a,
.quick-guide-preview-document a {
  color: #0969da;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.quick-guide-content-editor a:hover,
.quick-guide-preview-document a:hover {
  color: #0755b2;
}

.quick-guide-content-editor iframe,
.quick-guide-preview-document iframe {
  width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
  border: 0;
  border-radius: 5px;
  aspect-ratio: 16 / 9;
  background: #111;
}

.quick-guide-content-editor details,
.quick-guide-preview-document details {
  margin: 0.75rem 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--inapp-gray-200);
  border-radius: 5px;
  background: var(--inapp-gray-50);
}

.quick-guide-content-editor summary,
.quick-guide-preview-document summary {
  color: var(--inapp-gray-800);
  font-weight: 600;
  cursor: pointer;
}

.quick-guide-content-editor details > :last-child,
.quick-guide-preview-document details > :last-child {
  margin-bottom: 0;
}

.quick-guide-editor-footer {
  min-height: 42px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1rem;
  border-top: 1px solid var(--inapp-gray-200);
  color: var(--inapp-gray-500);
  font-size: 0.68rem;
}

#quick-guide-save-state.dirty {
  color: #a15c00;
  font-weight: 600;
}

.quick-guide-preview-pane {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid var(--inapp-gray-200);
  background: var(--inapp-gray-100);
}

.quick-guide-preview-head {
  min-height: 56px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--inapp-gray-200);
  background: #fff;
}

.quick-guide-preview-head > div {
  display: grid;
}

.quick-guide-preview-head span {
  color: var(--inapp-gray-500);
  font-size: 0.6rem;
  font-weight: 600;
}

.quick-guide-preview-head strong {
  font-size: 0.8rem;
}

.quick-guide-browser-bar {
  height: 36px;
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 0.65rem;
  border-bottom: 1px solid var(--inapp-gray-200);
  background: #fff;
}

.quick-guide-browser-bar > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--inapp-gray-300);
}

.quick-guide-browser-bar > div {
  min-width: 0;
  flex: 1;
  margin-left: 0.3rem;
  padding: 0.25rem 0.5rem;
  overflow: hidden;
  border-radius: 4px;
  background: var(--inapp-gray-100);
  color: var(--inapp-gray-500);
  font-size: 0.6rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-guide-preview-browser {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(110px, 34%) minmax(0, 1fr);
  margin: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--inapp-gray-200);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(36, 42, 56, 0.07);
}

.quick-guide-preview-tree {
  overflow: auto;
  padding: 0.75rem 0.45rem;
  border-right: 1px solid var(--inapp-gray-200);
  background: var(--inapp-gray-50);
}

.quick-guide-preview-tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-guide-preview-tree ul ul {
  margin-left: 0.55rem;
  padding-left: 0.35rem;
  border-left: 1px solid var(--inapp-gray-200);
}

.quick-guide-preview-tree details > summary {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: center;
  list-style: none;
}

.quick-guide-preview-tree summary::-webkit-details-marker {
  display: none;
}

.quick-guide-preview-tree summary > i {
  color: var(--inapp-gray-500);
  font-size: 0.65rem;
  transition: transform 0.15s ease;
}

.quick-guide-preview-tree details[open] > summary > i {
  transform: rotate(90deg);
}

.quick-guide-preview-tree button {
  width: 100%;
  min-width: 0;
  padding: 0.25rem 0.35rem;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--inapp-gray-700);
  font-size: 0.58rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-guide-preview-tree button:hover,
.quick-guide-preview-tree button.active {
  background: rgba(230, 98, 57, 0.1);
  color: #bd421d;
}

.quick-guide-preview-content {
  min-width: 0;
  overflow: auto;
  padding: 1rem;
  color: var(--inapp-gray-700);
  font-size: 0.65rem;
  line-height: 1.65;
}

.quick-guide-preview-breadcrumb {
  margin-bottom: 1rem;
  color: var(--inapp-gray-500);
  font-size: 0.55rem;
}

.quick-guide-preview-content > h1 {
  margin: 0 0 1rem;
  color: var(--inapp-gray-800);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
}

.quick-guide-preview-document p,
.quick-guide-preview-document ul,
.quick-guide-preview-document ol {
  margin-bottom: 0.65rem;
}

.quick-guide-preview-empty {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--inapp-gray-500);
  text-align: center;
}

.quick-guide-preview-empty i {
  font-size: 1.5rem;
}

.video-link {
  color: var(--inapp-primary);
  font-weight: 500;
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.detail-ticket-id {
  color: var(--inapp-gray-500);
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-weight: 600;
}

.detail-subject {
  margin-top: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.4rem 0.75rem;
  margin-top: 0.75rem;
}

.detail-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--inapp-gray-200);
  border-radius: 0.35rem;
  background: var(--inapp-gray-50);
}

.detail-item span {
  flex: 0 0 auto;
  color: var(--inapp-gray-500);
  font-size: 0.75rem;
}

.detail-item strong {
  min-width: 0;
  text-align: right;
  word-break: break-word;
  font-size: 0.85rem;
}

.detail-block {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--inapp-gray-200);
  border-radius: 0.5rem;
}

.detail-block-title {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.detail-description,
.transcript-body {
  line-height: 1.55;
}

.ticket-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.ticket-attachment {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem;
  border: 1px solid var(--inapp-gray-200);
  border-radius: 0.5rem;
  background: var(--inapp-gray-50);
  color: var(--inapp-gray-800);
  text-decoration: none;
}

.ticket-attachment:hover {
  border-color: var(--inapp-primary);
  color: var(--inapp-gray-800);
}

.ticket-attachment img {
  width: 56px;
  height: 56px;
  border-radius: 0.375rem;
  object-fit: cover;
  background: #fff;
}

.ticket-attachment-meta {
  min-width: 0;
}

.ticket-attachment-meta strong,
.ticket-attachment-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-attachment-meta span {
  margin-top: 0.2rem;
  color: var(--inapp-gray-500);
  font-size: 0.75rem;
}

.transcript-list {
  display: grid;
  gap: 0.75rem;
  max-height: 520px;
  overflow: auto;
}

.transcript-item {
  padding: 0.75rem;
  border: 1px solid var(--inapp-gray-200);
  border-radius: 0.5rem;
  background: var(--inapp-gray-50);
}

.transcript-head {
  color: var(--inapp-gray-500);
  font-size: 0.75rem;
  font-weight: 600;
}

.transcript-body {
  margin-top: 0.4rem;
}

.compact-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--inapp-gray-200);
  border-radius: 0.5rem;
  background: var(--inapp-gray-50);
  color: var(--inapp-gray-500);
}

.compact-note strong {
  color: var(--inapp-gray-800);
}

.report-insight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--inapp-gray-200);
  color: var(--inapp-gray-500);
}

.report-insight:last-child {
  border-bottom: 0;
}

.report-insight strong {
  color: var(--inapp-gray-800);
  text-align: right;
}

.report-bar-row {
  color: var(--inapp-gray-600);
  font-size: 0.82rem;
}

.report-bar,
.report-share-bar {
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--inapp-gray-100);
}

.report-bar span,
.report-share-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--inapp-primary);
}

.report-share {
  min-width: 120px;
  display: grid;
  grid-template-columns: minmax(72px, 1fr) 44px;
  align-items: center;
  gap: 0.5rem;
}

.report-share strong {
  font-size: 0.75rem;
  text-align: right;
}

.stat-value-sm {
  font-size: 1.2rem;
}

.compact-check {
  min-height: 36px;
  display: flex;
  align-items: center;
  margin-top: 1.75rem;
}

.live-connection-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--inapp-gray-400);
  display: inline-block;
}

.live-connection-dot.connected {
  background: #16a34a;
}

.live-availability-select {
  width: 130px;
}

.live-session-list {
  display: grid;
  gap: 0.5rem;
  max-height: 560px;
  overflow-y: auto;
}

.live-session-search {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.35rem;
  margin: -0.1rem 0 0.25rem;
  padding-bottom: 0.35rem;
  background: var(--inapp-gray-50);
  color: var(--inapp-gray-500);
}

.live-session-search .form-control {
  min-width: 0;
}

.live-session-button {
  width: 100%;
  border: 1px solid var(--inapp-gray-200);
  border-radius: 6px;
  background: #fff;
  padding: 0.7rem 0.75rem;
  text-align: left;
}

.live-session-button:hover,
.live-session-button.active {
  border-color: var(--inapp-primary);
  background: rgba(230, 98, 57, 0.06);
}

.live-session-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.5rem;
}

.live-session-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-session-status {
  color: var(--inapp-gray-700);
  font-size: 0.82rem;
}

.live-unread-badge {
  min-width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--inapp-primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(230, 98, 57, 0.25);
  font-size: 0.72rem;
  font-weight: 600;
}

#live-chat-dock {
  position: fixed;
  right: 5.25rem;
  bottom: 1.25rem;
  z-index: 1050;
}

.live-dock-launcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-dock-button {
  height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 999px;
  padding: 0 1rem;
  background: var(--inapp-primary);
  color: #fff;
  box-shadow: 0 14px 34px rgba(38, 38, 38, 0.24);
}

.live-dock-button strong {
  min-width: 1.3rem;
  height: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: var(--inapp-primary);
  font-size: 0.72rem;
}

.live-availability-pulse {
  width: 0.65rem;
  height: 0.65rem;
  position: relative;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--inapp-gray-400);
}

.live-availability-pulse::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 1px solid currentColor;
  color: var(--inapp-gray-400);
  opacity: 0.45;
  animation: livePulse 1.7s ease-out infinite;
}

.live-availability-pulse.available {
  background: #16a34a;
}

.live-availability-pulse.available::after {
  color: #16a34a;
}

.live-availability-pulse.busy {
  background: #dc2626;
}

.live-availability-pulse.busy::after {
  color: #dc2626;
}

.live-availability-pulse.away {
  background: #f59e0b;
}

.live-availability-pulse.away::after {
  color: #f59e0b;
}

.live-availability-pulse.offline {
  background: var(--inapp-gray-400);
}

.live-status-chip {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--inapp-gray-200);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  background: #fff;
  color: var(--inapp-gray-700);
  font-size: 0.78rem;
  font-weight: 600;
}

.live-status-chip.available {
  border-color: rgba(22, 163, 74, 0.25);
  color: #15803d;
}

.live-status-chip.busy {
  border-color: rgba(220, 38, 38, 0.25);
  color: #b91c1c;
}

.live-status-chip.away {
  border-color: rgba(245, 158, 11, 0.28);
  color: #b45309;
}

.live-dock-panel {
  width: min(900px, calc(100vw - 2rem));
  height: min(610px, calc(100vh - 5rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--inapp-gray-200);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 46px rgba(38, 38, 38, 0.24);
}

.live-dock-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--inapp-gray-200);
}

.live-dock-body {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
}

.live-dock-sessions {
  overflow-y: auto;
  padding: 0.75rem;
  border-right: 1px solid var(--inapp-gray-200);
  background: var(--inapp-gray-50);
}

.live-session-items {
  display: grid;
  gap: 0.5rem;
}

.live-dock-chat {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.85rem;
}

.live-dock-chat .live-chat-card {
  min-height: 0;
}

.live-customer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.75rem;
  margin-top: 0.35rem;
  color: var(--inapp-gray-700);
  font-size: 0.78rem;
}

.live-customer-meta span {
  display: inline;
}

.live-customer-meta small {
  color: var(--inapp-gray-600);
  font-size: inherit;
  font-weight: 600;
}

.live-chat-card {
  min-height: 620px;
  display: flex;
  flex-direction: column;
}

.live-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  border-bottom: 1px solid var(--inapp-gray-200);
  padding-bottom: 0.75rem;
}

.live-chat-head-actions {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.live-chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  padding: 1rem 0;
}

.report-trend-grid {
  min-height: 118px;
  display: grid;
  grid-template-columns: repeat(30, minmax(10px, 1fr));
  align-items: end;
  gap: 0.25rem;
}

.report-trend-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.report-trend-bar {
  width: 100%;
  max-width: 18px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #f05a28, #2f3a56);
}

.report-trend-item span {
  color: var(--inapp-gray-600);
  font-size: 0.68rem;
}

.report-page { display: grid; width: 100%; min-width: 0; gap: 1.25rem; }
.report-page > * { min-width: 0; }
.report-header { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; }
.report-header h2 { margin: .3rem 0; font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 700; letter-spacing: -.04em; }
.report-header p { margin: 0; color: var(--inapp-gray-500); }
.report-eyebrow, .report-panel-kicker { color: var(--inapp-primary); font-size: .7rem; font-weight: 700; letter-spacing: .11em; }
.report-eyebrow { margin: 0 0 .4rem; }
.report-eyebrow i { font-size: 1.1rem; vertical-align: middle; }
.report-header-stamp { color: var(--inapp-gray-500); font-size: .75rem; white-space: nowrap; }
.report-toolbar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: .8rem; border: 1px solid var(--inapp-gray-200); border-radius: 1rem; background: white; }
.report-filter-group { display: flex; flex-wrap: wrap; gap: .35rem; }
.report-filter-button { border: 0; border-radius: .65rem; padding: .55rem .85rem; background: transparent; color: var(--inapp-gray-600); font: inherit; font-size: .78rem; font-weight: 600; transition: background .15s, color .15s; }
.report-filter-button:hover { background: var(--inapp-gray-100); color: var(--inapp-gray-800); }
.report-filter-button.active { background: var(--inapp-gray-800); color: white; box-shadow: 0 4px 12px #26262624; }
.report-filter-button:focus-visible { outline: 3px solid var(--inapp-primary); outline-offset: 2px; }
.report-context { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: var(--inapp-gray-500); font-size: .74rem; }
.report-context i { font-size: 1rem; color: var(--inapp-primary); }
.report-context span { color: var(--inapp-gray-300); }
.report-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.report-kpi { min-width: 0; padding: 1.15rem 1.25rem; border: 1px solid var(--inapp-gray-200); border-radius: 1rem; background: white; box-shadow: 0 8px 24px #20202008; }
.report-kpi-icon { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; margin-bottom: 1rem; border-radius: .7rem; font-size: 1.25rem; }
.report-kpi.orange .report-kpi-icon { color: #cf592b; background: #fff0e8; }
.report-kpi.green .report-kpi-icon { color: #17875d; background: #e7f8ef; }
.report-kpi.blue .report-kpi-icon { color: #326bb5; background: #eaf2ff; }
.report-kpi.purple .report-kpi-icon { color: #7657a5; background: #f3edfa; }
.report-kpi-label { color: var(--inapp-gray-500); font-size: .76rem; }
.report-kpi-value { margin: .2rem 0; font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.2; font-weight: 700; letter-spacing: -.04em; }
.report-kpi-detail { min-height: 1.2rem; color: var(--inapp-gray-500); font-size: .7rem; }
.report-grid-primary { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(270px, 1fr); gap: 1rem; }
.report-grid-secondary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.report-panel { min-width: 0; padding: 1.35rem; border: 1px solid var(--inapp-gray-200); border-radius: 1rem; background: white; box-shadow: 0 8px 24px #20202008; }
.report-panel-head { display: flex; justify-content: space-between; align-items: start; gap: .8rem; margin-bottom: 1rem; }
.report-panel h3 { margin: .22rem 0 0; font-size: 1rem; font-weight: 700; }
.report-panel-caption, .report-panel-footnote { color: var(--inapp-gray-500); font-size: .7rem; }
.report-panel-footnote { margin: 1rem 0 0; }
.report-legend { display: flex; gap: 1rem; font-size: .72rem; color: var(--inapp-gray-600); white-space: nowrap; }
.report-legend span { display: flex; align-items: center; gap: .35rem; }
.report-legend-dot { display: inline-block; width: .55rem; height: .55rem; flex: 0 0 auto; border-radius: 50%; }
.report-legend-dot.created, .report-legend-dot.pending { background: #e66239; }
.report-legend-dot.completed, .report-legend-dot.progress { background: #356d9e; }
.report-chart-scroll { overflow-x: auto; }
.report-data-details { margin-top: .35rem; color: var(--inapp-gray-500); font-size: .72rem; }
.report-data-details summary { width: max-content; cursor: pointer; }
.report-data-table { max-height: 240px; margin-top: .5rem; overflow: auto; }
.report-data-table table { font-size: .72rem; }
.report-line-chart { display: block; width: 100%; min-width: 500px; height: auto; }
.report-chart-grid { stroke: #e9eaed; stroke-width: 1; }
.report-chart-tick { fill: #8a8d96; font-size: 10px; }
.report-chart-area { fill: #e6623914; }
.report-chart-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.report-chart-line.created { stroke: #e66239; }
.report-chart-line.completed { stroke: #356d9e; }
.report-chart-dot { stroke: white; stroke-width: 2; opacity: .78; }
.report-chart-dot:hover { opacity: 1; r: 7; }
.report-chart-dot.created { fill: #e66239; }
.report-chart-dot.completed { fill: #356d9e; }
.report-donut-wrap { display: flex; align-items: center; justify-content: center; gap: 1.25rem; padding: .75rem 0 1rem; }
.report-donut { display: grid; place-items: center; width: 150px; height: 150px; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(#e66239 0 var(--pending), #356d9e var(--pending) 100%); }
.report-donut.empty { background: #e9eaed; }
.report-donut > div { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 112px; height: 112px; border-radius: 50%; background: white; }
.report-donut strong { font-size: 1.8rem; line-height: 1.2; }
.report-donut span { color: var(--inapp-gray-500); font-size: .68rem; }
.report-donut-legend { display: grid; gap: .7rem; flex: 1; }
.report-donut-legend > div { display: flex; align-items: center; gap: .45rem; font-size: .74rem; }
.report-donut-legend strong { margin-left: auto; }
.report-status-note { display: flex; gap: .55rem; align-items: start; padding: .7rem .8rem; border-radius: .7rem; color: #845719; background: #fff6e6; font-size: .72rem; }
.report-status-note i { font-size: 1rem; }
.report-app-list, .report-mini-list { display: grid; gap: 1rem; }
.report-app-title, .report-mini-row > div:first-child { display: flex; justify-content: space-between; gap: .75rem; font-size: .74rem; }
.report-app-title span, .report-app-sub { color: var(--inapp-gray-500); font-size: .69rem; }
.report-app-track, .report-mini-track, .report-staff-workload { height: .55rem; margin-top: .45rem; overflow: hidden; border-radius: 99px; background: #f0f1f3; }
.report-app-track span, .report-mini-track span, .report-staff-workload span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e66239, #f7a37f); }
.report-app-sub { margin-top: .4rem; }
.report-app-sub span { margin: 0 .3rem; }
.report-mini-row > div:first-child span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-mini-row > div:first-child strong { flex: 0 0 auto; }
.report-mini-track span { background: #537ca5; }
.report-small-empty { padding: 2rem .5rem; color: var(--inapp-gray-500); text-align: center; font-size: .76rem; }
.report-empty { display: grid; place-items: center; gap: .3rem; min-height: 220px; color: var(--inapp-gray-500); text-align: center; font-size: .76rem; }
.report-empty i { font-size: 2rem; color: #d5d6da; }
.report-empty strong { color: var(--inapp-gray-700); }
.report-fact { display: flex; align-items: center; gap: .8rem; padding: .65rem 0; border-bottom: 1px solid var(--inapp-gray-100); }
.report-fact i { display: grid; place-items: center; width: 2rem; height: 2rem; flex: 0 0 auto; border-radius: .55rem; color: #d65f37; background: #fff0e8; font-size: 1rem; }
.report-fact > div { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex: 1; min-width: 0; }
.report-fact span { color: var(--inapp-gray-600); font-size: .73rem; }
.report-fact strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .83rem; }
.report-staff-table { margin-bottom: 0; font-size: .76rem; }
.report-staff-table th { color: var(--inapp-gray-500); font-size: .68rem; font-weight: 600; white-space: nowrap; }
.report-staff-table td { min-width: 80px; }
.report-staff-table td:first-child { min-width: 160px; }
.report-staff-name { font-weight: 600; }
.report-staff-table small { color: var(--inapp-gray-500); }
.report-staff-workload { width: 100px; margin: 0; }
.report-loading { display: flex; align-items: center; justify-content: center; gap: .8rem; min-height: 280px; color: var(--inapp-gray-500); }

@media (max-width: 1200px) {
  .report-grid-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-grid-primary { grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1fr); }
}

@media (max-width: 850px) {
  .report-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-grid-primary, .report-grid-secondary { grid-template-columns: 1fr; }
  .report-header { align-items: start; flex-direction: column; gap: .5rem; }
}

@media (max-width: 520px) {
  .report-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); padding: .5rem; }
  .report-filter-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; min-width: 0; }
  .report-period-group { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .report-filter-button { min-width: 0; padding: .5rem .35rem; }
  .report-kpis { gap: .6rem; }
  .report-kpi { padding: .9rem; }
  .report-panel { padding: 1rem; }
  .report-donut-wrap { gap: .6rem; }
  .report-donut { width: 124px; height: 124px; }
  .report-donut > div { width: 90px; height: 90px; }
  .report-legend { gap: .5rem; font-size: .65rem; }
}

.live-message {
  max-width: 78%;
  border: 1px solid var(--inapp-gray-200);
  border-radius: 8px;
  background: #fff;
  padding: 0.75rem;
}

.live-message.own {
  align-self: flex-end;
  background: rgba(230, 98, 57, 0.08);
  border-color: rgba(230, 98, 57, 0.25);
}

.live-message.system {
  max-width: 100%;
  align-self: center;
  background: var(--inapp-gray-100);
}

.live-message-meta {
  color: var(--inapp-gray-600);
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

.live-message-receipt {
  color: var(--inapp-gray-500);
  font-size: 0.78rem;
  line-height: 1;
  margin-top: 0.35rem;
  text-align: right;
}

.live-message-receipt.seen {
  color: #2563eb;
}

.live-typing-indicator {
  align-self: flex-start;
  color: var(--inapp-gray-600);
  font-size: 0.78rem;
  font-style: italic;
  padding: 0 0.25rem;
}

.live-message-body {
  white-space: normal;
}

.live-attachments {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.live-attachment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--inapp-gray-200);
  border-radius: 6px;
  padding: 0.45rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.live-attachment:hover {
  border-color: var(--inapp-primary);
  color: inherit;
}

.live-attachment img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 5px;
  background: var(--inapp-gray-100);
}

.live-attachment i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--inapp-gray-100);
  color: var(--inapp-gray-700);
}

.live-attachment span {
  min-width: 0;
  display: grid;
}

.live-attachment strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}

.live-attachment small {
  color: var(--inapp-gray-600);
  font-size: 0.72rem;
}

.live-chat-actions {
  display: grid;
  gap: 0.75rem;
  border-top: 1px solid var(--inapp-gray-200);
  padding-top: 1rem;
}

.confirm-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(230, 98, 57, 0.28);
  border-radius: 999px;
  color: var(--inapp-primary);
  font-size: 2rem;
}

@keyframes livePulse {
  from {
    transform: scale(0.85);
    opacity: 0.5;
  }

  to {
    transform: scale(1.65);
    opacity: 0;
  }
}

.form-label {
  font-weight: 500;
}

.form-control,
.form-select {
  border-color: var(--inapp-gray-300);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--inapp-primary);
  box-shadow: 0 0 0 0.2rem rgba(230, 98, 57, 0.15);
}

.expertise-multiselect.dropdown {
  width: 100%;
}

.expertise-multiselect > .expertise-multiselect-toggle {
  width: 100% !important;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--inapp-gray-300);
  border-radius: 5px;
  background: #fff;
  color: var(--inapp-gray-800);
  font-weight: 400;
  text-align: left;
}

.expertise-multiselect-toggle:hover,
.expertise-multiselect-toggle:focus,
.expertise-multiselect-toggle.show {
  border-color: var(--inapp-primary);
  background: #fff;
  color: var(--inapp-gray-800);
  box-shadow: 0 0 0 0.2rem rgba(230, 98, 57, 0.15);
}

.expertise-multiselect-toggle-sm {
  min-height: 31px;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.expertise-multiselect-value {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expertise-selection-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.15rem 0.5rem;
  border: 1px solid rgba(230, 98, 57, 0.22);
  border-radius: 4px;
  background: rgba(230, 98, 57, 0.08);
  color: var(--inapp-gray-800);
  font-size: 0.8rem;
  font-weight: 500;
}

.expertise-multiselect > .expertise-multiselect-menu {
  width: 100% !important;
  min-width: 100%;
  max-height: 220px;
  overflow-y: auto;
  padding: 0.4rem;
  border-color: var(--inapp-gray-200);
  box-shadow: 0 8px 24px rgba(36, 42, 56, 0.12);
}

.expertise-multiselect-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 5px;
  cursor: pointer;
}

.expertise-multiselect-option:hover {
  background: var(--inapp-gray-100);
}

.expertise-multiselect-option .form-check-input {
  flex: 0 0 auto;
  margin: 0;
}

@media (max-width: 1599.98px) {
  .quick-guide-workspace-grid {
    grid-template-columns: 250px minmax(430px, 1fr) 330px;
  }
}

@media (max-width: 1349.98px) {
  .quick-guide-workspace-grid,
  .quick-guide-workspace-grid.preview-hidden {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .quick-guide-preview-pane {
    position: absolute;
    inset: 0 0 0 250px;
    z-index: 5;
    border-left: 1px solid var(--inapp-gray-200);
    box-shadow: -8px 0 24px rgba(36, 42, 56, 0.12);
  }

  .quick-guide-preview-browser {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 992px) {
  .sidebar {
    left: -240px;
  }

  .sidebar.mobile-show {
    left: 0;
  }

  .topbar {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .content {
    margin-left: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .quick-guide-workspace {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-head,
  .editor-head {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-row,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .release-note-filter-row {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .ticket-filter-row #ticket-search-input {
    grid-column: auto;
  }

  .compact-check {
    margin-top: 0.5rem;
  }

  .release-note-row {
    align-items: start;
    gap: 0.4rem;
    padding: 0.6rem;
  }

  .release-note-toggle {
    grid-template-columns: 16px 62px minmax(0, 1fr);
    gap: 0.45rem;
  }

  .release-note-toggle time {
    grid-column: 3;
    justify-self: start;
  }

  .release-note-toggle .release-note-title-group {
    grid-column: 2 / -1;
  }

  .release-note-toggle .release-note-status {
    grid-column: 2;
  }

  .release-note-detail {
    padding: 0 1rem 1rem;
  }

  .release-note-actions {
    align-self: start;
  }

  .release-note-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .release-note-page-buttons {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .table-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .crash-report-page-buttons,
  .knowledge-page-buttons {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .live-dock-panel {
    width: calc(100vw - 1rem);
    height: calc(100vh - 2rem);
  }

  .live-dock-body {
    grid-template-columns: 1fr;
  }

  .live-dock-sessions {
    max-height: 190px;
    border-right: 0;
    border-bottom: 1px solid var(--inapp-gray-200);
  }

  .live-chat-head {
    flex-direction: column;
  }

  .quick-guide-workspace-bar,
  .quick-guide-editor-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-guide-workspace-actions,
  .quick-guide-editor-actions {
    flex-wrap: wrap;
  }

  .quick-guide-workspace-grid,
  .quick-guide-workspace-grid.preview-hidden {
    display: block;
    overflow: visible;
  }

  .quick-guide-tree-pane {
    max-height: 340px;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--inapp-gray-200);
  }

  .quick-guide-admin-tree {
    max-height: 240px;
  }

  .quick-guide-editor-properties {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    column-gap: 0.75rem;
  }

  .quick-guide-editor-canvas {
    display: block;
    overflow: visible;
    padding: 1.25rem 1rem 2rem;
  }

  .quick-guide-editor-pane,
  .quick-guide-document-editor {
    height: auto;
    overflow: visible;
  }

  .quick-guide-content-editor {
    height: min(520px, 60dvh);
    min-height: 320px;
    overflow-y: auto;
  }

  .quick-guide-title-input {
    font-size: 1.45rem;
  }

  .quick-guide-preview-browser {
    height: 520px;
    flex: none;
    grid-template-columns: minmax(120px, 32%) minmax(0, 1fr);
  }

  .quick-guide-preview-pane {
    position: static;
    border-top: 1px solid var(--inapp-gray-200);
    border-left: 0;
    box-shadow: none;
  }
}

.live-session-scope {
  display: flex;
  margin: 0.5rem 0.75rem 0.75rem;
}

.live-session-scope .btn {
  flex: 1;
}

#internal-chat-dock {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1051;
}

.internal-dock-button {
  position: relative;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--inapp-primary);
  color: #fff;
  box-shadow: 0 14px 34px rgba(38, 38, 38, 0.24);
  font-size: 1.45rem;
}

.internal-dock-button strong {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #dc2626;
  padding: 0 0.28rem;
  color: #fff;
  font-size: 0.68rem;
}

.internal-dock-panel {
  width: min(860px, calc(100vw - 2rem));
  height: min(650px, calc(100vh - 5rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--inapp-gray-200);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 46px rgba(38, 38, 38, 0.24);
}

.internal-dock-head {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--bs-border-color);
  background: #f7f9fa;
}

.internal-dock-head > div:first-child {
  display: flex;
  flex-direction: column;
}

.internal-dock-head small {
  color: var(--bs-secondary-color);
  font-size: 0.72rem;
}

.internal-chat-shell {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: minmax(290px, 320px) minmax(0, 1fr);
}

.internal-chat-sidebar,
.internal-chat-thread {
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
}

.internal-chat-sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--bs-border-color);
  background: #fff;
}

.internal-chat-list-head,
.internal-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 62px;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--bs-border-color);
  background: #f0f2f5;
}

.internal-chat-list-head.new-chat {
  justify-content: flex-start;
  gap: 0.55rem;
}

.internal-thread-head div,
.internal-user-button span:last-child,
.internal-conversation-copy,
.internal-conversation-meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.internal-chat-sidebar small,
.internal-thread-head small,
.internal-message small {
  color: var(--bs-secondary-color);
  font-size: 0.75rem;
}

.internal-chat-search {
  position: relative;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #edf0f2;
}

.internal-chat-search i {
  position: absolute;
  top: 1.18rem;
  left: 1.35rem;
  color: var(--bs-secondary-color);
}

.internal-chat-search input {
  border: 0;
  border-radius: 9px;
  padding-left: 2rem;
  background: #f0f2f5;
  box-shadow: none;
}

.internal-chat-conversations {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.internal-chat-list-empty {
  padding: 2rem 1.25rem;
  color: var(--bs-secondary-color);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

.internal-user-button,
.internal-conversation-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.75rem;
  border: 0;
  border-bottom: 1px solid #edf0f2;
  border-radius: 0;
  background: transparent;
  padding: 0.7rem 0.8rem;
  color: inherit;
  text-align: left;
}

.internal-user-button:hover,
.internal-conversation-button:hover,
.internal-conversation-button.active {
  background: #f0f2f5;
}

.internal-conversation-button {
  min-height: 68px;
}

.internal-conversation-copy {
  flex: 1;
}

.internal-conversation-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.internal-conversation-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.internal-conversation-meta {
  flex: 0 0 auto;
  align-items: flex-end;
  gap: 0.35rem;
}

.internal-conversation-meta time {
  color: #667781;
  font-size: 0.68rem;
}

.internal-conversation-button b {
  min-width: 1.35rem;
  border-radius: 999px;
  background: #25d366;
  padding: 0.15rem 0.4rem;
  color: white;
  font-size: 0.7rem;
  text-align: center;
}

.internal-user-avatar {
  position: relative;
  flex: 0 0 2.65rem;
}

.internal-user-avatar img {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  object-fit: cover;
}

.internal-presence-dot {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 0.9rem;
  border: 3px solid white;
  border-radius: 50%;
  background: #64748b;
  box-shadow: 0 0 0 1px rgb(15 23 42 / 18%);
}

.internal-user-avatar .internal-presence-dot {
  position: absolute;
  right: -0.1rem;
  bottom: -0.05rem;
}

.internal-presence-dot.online {
  background: #00c853;
  box-shadow: 0 0 0 2px rgb(0 200 83 / 28%);
}

.internal-chat-thread {
  display: flex;
  flex-direction: column;
}

.internal-thread-head {
  justify-content: flex-start;
  min-height: 62px;
}

.internal-thread-delete {
  margin-left: auto;
  color: #667781;
}

.internal-thread-delete:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.internal-chat-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.45rem;
  overflow-y: auto;
  padding: 1rem;
  background-color: #efeae2;
  background-image: radial-gradient(rgba(90, 92, 94, 0.055) 0.7px, transparent 0.7px);
  background-size: 10px 10px;
}

.internal-message {
  align-self: flex-start;
  max-width: min(78%, 680px);
  border-radius: 8px 8px 8px 2px;
  background: white;
  padding: 0.65rem 0.8rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 8%);
}

.internal-message.own {
  align-self: flex-end;
  border-radius: 8px 8px 2px 8px;
  background: #d9fdd3;
}

.internal-message small {
  display: block;
  margin-top: 0.25rem;
}

.internal-typing {
  color: var(--bs-secondary-color);
  font-size: 0.8rem;
  font-style: italic;
}

.internal-message-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-top: 1px solid var(--bs-border-color);
  background: #f0f2f5;
}

.internal-message-form .form-control {
  border: 0;
  border-radius: 9px;
  box-shadow: none;
}

.internal-message-form .btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.internal-attachment-button {
  border: 0;
  background: transparent;
  color: #54656f;
  font-size: 1.2rem;
}

.internal-attachments {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.internal-attachment-image {
  display: flex;
  max-width: 280px;
  flex-direction: column;
  gap: 0.3rem;
  color: inherit;
  font-size: 0.75rem;
  text-decoration: none;
}

.internal-attachment-image img {
  width: 100%;
  max-height: 220px;
  border-radius: 6px;
  object-fit: cover;
}

.internal-attachment-file {
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.58);
  padding: 0.65rem;
  color: inherit;
  text-decoration: none;
}

.internal-attachment-file > i {
  color: #00a884;
  font-size: 1.55rem;
}

.internal-attachment-file > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.internal-attachment-file strong {
  overflow: hidden;
  max-width: 220px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 650px) {
  #internal-chat-dock {
    right: 0.5rem;
    bottom: 0.5rem;
  }

  .internal-dock-panel {
    width: calc(100vw - 1rem);
    height: calc(100vh - 4.5rem);
  }

  .internal-chat-shell {
    grid-template-columns: minmax(160px, 42%) minmax(0, 58%);
  }

  .internal-chat-list-head,
  .internal-thread-head {
    padding: 0.65rem;
  }

  .internal-message-form {
    padding: 0.55rem;
  }
}

/* Portal theme */
:root[data-bs-theme="dark"] {
  --inapp-gray-50: #202936;
  --inapp-gray-100: #18212d;
  --inapp-gray-200: #364252;
  --inapp-gray-300: #516075;
  --inapp-gray-400: #7e8da0;
  --inapp-gray-500: #a5b2c2;
  --inapp-gray-600: #bfccd9;
  --inapp-gray-700: #d9e1ea;
  --inapp-gray-800: #f0f4f8;
  --inapp-gray-900: #101722;
  --inapp-primary: #f0835c;
  --bs-light-rgb: 38, 48, 62;
  --bs-white-rgb: 32, 41, 54;
}

[data-bs-theme="dark"] #loader {
  background: rgba(16, 23, 34, 0.96);
}

[data-bs-theme="dark"] .sidebar,
[data-bs-theme="dark"] .sidebar .logo-area,
[data-bs-theme="dark"] .stat-summary,
[data-bs-theme="dark"] .release-note-entry,
[data-bs-theme="dark"] .quick-guide-workspace,
[data-bs-theme="dark"] .quick-guide-editor-pane,
[data-bs-theme="dark"] .quick-guide-preview-head,
[data-bs-theme="dark"] .quick-guide-browser-bar,
[data-bs-theme="dark"] .quick-guide-preview-browser,
[data-bs-theme="dark"] .live-session-button,
[data-bs-theme="dark"] .live-status-chip,
[data-bs-theme="dark"] .live-dock-panel,
[data-bs-theme="dark"] .live-message,
[data-bs-theme="dark"] .report-toolbar,
[data-bs-theme="dark"] .report-kpi,
[data-bs-theme="dark"] .report-panel,
[data-bs-theme="dark"] .report-donut > div,
[data-bs-theme="dark"] .internal-dock-panel,
[data-bs-theme="dark"] .internal-chat-sidebar,
[data-bs-theme="dark"] .internal-message,
[data-bs-theme="dark"] .expertise-multiselect-toggle,
[data-bs-theme="dark"] .expertise-multiselect-toggle:hover,
[data-bs-theme="dark"] .expertise-multiselect-toggle:focus,
[data-bs-theme="dark"] .expertise-multiselect-toggle.show {
  background: #202936;
}

[data-bs-theme="dark"] .quick-guide-rich-toolbar,
[data-bs-theme="dark"] .quick-guide-admin-tree-row:hover,
[data-bs-theme="dark"] .internal-dock-head,
[data-bs-theme="dark"] .internal-chat-list-head,
[data-bs-theme="dark"] .internal-thread-head,
[data-bs-theme="dark"] .internal-message-form {
  background: #26303e;
}

[data-bs-theme="dark"] .quick-guide-tree-search,
[data-bs-theme="dark"] .quick-guide-icon-button,
[data-bs-theme="dark"] .live-attachment,
[data-bs-theme="dark"] .quick-guide-preview-tree .quick-guide-tree-search {
  background: var(--inapp-gray-50);
}

[data-bs-theme="dark"] .internal-chat-search input,
[data-bs-theme="dark"] .internal-user-button:hover,
[data-bs-theme="dark"] .internal-conversation-button:hover,
[data-bs-theme="dark"] .internal-conversation-button.active {
  background: #303b49;
}

[data-bs-theme="dark"] .internal-chat-messages {
  background-color: #17212a;
  background-image: radial-gradient(rgba(202, 216, 229, 0.055) 0.7px, transparent 0.7px);
}

[data-bs-theme="dark"] .internal-message.own {
  background: #254b42;
}

[data-bs-theme="dark"] .internal-attachment-file {
  background: rgba(255, 255, 255, 0.07);
}

[data-bs-theme="dark"] .internal-conversation-meta time,
[data-bs-theme="dark"] .internal-thread-delete,
[data-bs-theme="dark"] .internal-attachment-button {
  color: var(--inapp-gray-500);
}

[data-bs-theme="dark"] .internal-chat-search,
[data-bs-theme="dark"] .internal-user-button,
[data-bs-theme="dark"] .internal-conversation-button {
  border-color: var(--inapp-gray-200);
}

[data-bs-theme="dark"] .table-pill.pending,
[data-bs-theme="dark"] .report-status-note {
  color: #f5cd75;
  background: rgba(240, 177, 0, 0.13);
}

[data-bs-theme="dark"] .table-pill.in_progress {
  color: #74d8ea;
}

[data-bs-theme="dark"] .table-pill.completed,
[data-bs-theme="dark"] .live-status-chip.available {
  color: #74d9a0;
}

[data-bs-theme="dark"] .live-status-chip.busy {
  color: #ff8e91;
}

[data-bs-theme="dark"] .live-status-chip.away {
  color: #ffd275;
}

[data-bs-theme="dark"] .report-filter-button.active {
  color: #18212d;
}

[data-bs-theme="dark"] .report-app-track,
[data-bs-theme="dark"] .report-mini-track,
[data-bs-theme="dark"] .report-staff-workload,
[data-bs-theme="dark"] .report-donut.empty {
  background: var(--inapp-gray-200);
}

[data-bs-theme="dark"] .report-kpi-icon,
[data-bs-theme="dark"] .report-fact i {
  filter: brightness(0.8);
}

[data-bs-theme="dark"] .quick-guide-content-editor a,
[data-bs-theme="dark"] .quick-guide-preview-document a,
[data-bs-theme="dark"] .live-message a {
  color: #86b7ff;
}

[data-bs-theme="dark"] .quick-guide-content-editor a:hover,
[data-bs-theme="dark"] .quick-guide-preview-document a:hover {
  color: #b4d1ff;
}

[data-bs-theme="dark"] .btn-light {
  --bs-btn-color: #e5edf5;
  --bs-btn-bg: #303b49;
  --bs-btn-border-color: #3b4858;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #3d4b5d;
  --bs-btn-hover-border-color: #526379;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #46566a;
  --bs-btn-active-border-color: #526379;
}

[data-bs-theme="dark"] .btn-primary {
  --bs-btn-color: #171d27;
  --bs-btn-hover-color: #171d27;
  --bs-btn-active-color: #171d27;
}

[data-bs-theme="dark"] .live-dock-button,
[data-bs-theme="dark"] .internal-dock-button {
  color: #171d27;
}

[data-bs-theme="dark"] #knowledge-editor-body .jodit-container,
[data-bs-theme="dark"] #release-note-editor-body .jodit-container,
[data-bs-theme="dark"] #knowledge-editor-body .jodit-toolbar__box,
[data-bs-theme="dark"] #release-note-editor-body .jodit-toolbar__box,
[data-bs-theme="dark"] #knowledge-editor-body .jodit-workplace,
[data-bs-theme="dark"] #release-note-editor-body .jodit-workplace,
[data-bs-theme="dark"] #knowledge-editor-body .jodit-status-bar,
[data-bs-theme="dark"] #release-note-editor-body .jodit-status-bar {
  background: #202936;
  color: var(--inapp-gray-800);
  border-color: var(--inapp-gray-200);
}

[data-bs-theme="dark"] #knowledge-editor-body .jodit-wysiwyg,
[data-bs-theme="dark"] #release-note-editor-body .jodit-wysiwyg {
  color: var(--inapp-gray-800);
}

[data-bs-theme="dark"] #knowledge-editor-body .jodit-toolbar-button__button,
[data-bs-theme="dark"] #release-note-editor-body .jodit-toolbar-button__button,
[data-bs-theme="dark"] #knowledge-editor-body .jodit-toolbar-button__trigger,
[data-bs-theme="dark"] #release-note-editor-body .jodit-toolbar-button__trigger {
  color: var(--inapp-gray-800);
}

[data-bs-theme="dark"] #knowledge-editor-body .jodit-toolbar-button__button svg,
[data-bs-theme="dark"] #release-note-editor-body .jodit-toolbar-button__button svg,
[data-bs-theme="dark"] #knowledge-editor-body .jodit-toolbar-button__trigger svg,
[data-bs-theme="dark"] #release-note-editor-body .jodit-toolbar-button__trigger svg {
  fill: currentColor;
}

[data-bs-theme="dark"] :is(.jodit-dialog, .jodit-popup, .jodit-toolbar-button__dropdown) {
  background: var(--inapp-gray-50);
  color: var(--inapp-gray-800);
  border-color: var(--inapp-gray-200);
}

[data-bs-theme="dark"] :is(.jodit-dialog, .jodit-popup, .jodit-toolbar-button__dropdown) {
  --jd-color-white: var(--inapp-gray-100);
  --jd-color-dark: var(--inapp-gray-700);
  --jd-color-default: var(--inapp-gray-800);
  --jd-color-text: var(--inapp-gray-800);
  --jd-color-label: var(--inapp-gray-700);
  --jd-color-placeholder: var(--inapp-gray-500);
  --jd-color-border: var(--inapp-gray-200);
  --jd-color-border-selected: var(--inapp-primary);
  --jd-color-background-default: var(--inapp-gray-50);
  --jd-color-background-light-gray: var(--inapp-gray-100);
  --jd-color-background-button-hover: var(--inapp-gray-200);
  --jd-color-button-background-hover: var(--inapp-gray-200);
  --jd-color-text-icons: var(--inapp-gray-800);
  --jd-color-icon: var(--inapp-gray-700);
  --jd-color-text-selection: var(--inapp-gray-800);
}

[data-bs-theme="dark"] .jodit-dialog__panel,
[data-bs-theme="dark"] .jodit-popup__content {
  background: var(--inapp-gray-50);
  color: var(--inapp-gray-800);
}

[data-bs-theme="dark"] :is(.jodit-dialog, .jodit-popup, .jodit-toolbar-button__dropdown) :is(.jodit-ui-input__input, .jodit-ui-select__input, .jodit-input, .jodit-select, .jodit-textarea) {
  background-color: var(--inapp-gray-100);
  color: var(--inapp-gray-800);
  color-scheme: dark;
}

[data-bs-theme="dark"] :is(.jodit-dialog, .jodit-popup, .jodit-toolbar-button__dropdown) .jodit-ui-checkbox__input {
  color-scheme: dark;
}

[data-bs-theme="dark"] .jodit-dialog .jodit-dialog__header-button,
[data-bs-theme="dark"] :is(.jodit-dialog, .jodit-popup, .jodit-toolbar-button__dropdown) .jodit-ui-button:not(.jodit-ui-button_variant_primary) {
  color: var(--inapp-gray-800);
}
