:root {
  --sidebar: #102033;
  --sidebar-link: #cbd5e1;
  --content-bg: #f4f7fb;
  --border: #d9e2ec;
  --primary: #2454d6;
  --sidebar-width: 250px;
  --sidebar-collapsed-width: 58px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--content-bg);
  color: #1f2937;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  transition: grid-template-columns 0.2s ease;
}

.sidebar-collapsed-pref .app-shell,
.app-shell.is-sidebar-collapsed {
  grid-template-columns: var(--sidebar-collapsed-width) minmax(0, 1fr);
}

.app-sidebar {
  background: var(--sidebar);
  color: white;
  padding: 20px 16px;
  min-width: 0;
  overflow: hidden;
}

.sidebar-head {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 28px;
}

.brand {
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: none;
  place-items: center;
  flex: 0 0 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
}

.brand-text,
.nav-label,
.nav-section {
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.sidebar-toggle {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid rgba(203, 213, 225, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  display: inline-grid;
  place-items: center;
  gap: 3px;
  padding: 8px;
}

.sidebar-toggle span {
  width: 16px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.app-sidebar .nav-link {
  color: var(--sidebar-link);
  border-radius: 6px;
  margin-bottom: 4px;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.app-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.nav-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-grid;
  place-items: center;
  color: currentColor;
}

.nav-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-section {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 18px 10px 8px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-collapsed-pref .app-sidebar,
.app-shell.is-sidebar-collapsed .app-sidebar {
  padding: 16px 8px;
}

.sidebar-collapsed-pref .sidebar-head,
.app-shell.is-sidebar-collapsed .sidebar-head {
  justify-content: center;
  margin-bottom: 14px;
}

.sidebar-collapsed-pref .brand-text,
.app-shell.is-sidebar-collapsed .brand-text,
.sidebar-collapsed-pref .nav-label,
.app-shell.is-sidebar-collapsed .nav-label,
.sidebar-collapsed-pref .nav-section,
.app-shell.is-sidebar-collapsed .nav-section {
  opacity: 0;
  transform: translateX(-6px);
  pointer-events: none;
}

.sidebar-collapsed-pref .brand-text,
.app-shell.is-sidebar-collapsed .brand-text,
.sidebar-collapsed-pref .nav-label,
.app-shell.is-sidebar-collapsed .nav-label {
  width: 0;
}

.sidebar-collapsed-pref .brand-mark,
.app-shell.is-sidebar-collapsed .brand-mark {
  display: grid;
}

.sidebar-collapsed-pref .brand,
.app-shell.is-sidebar-collapsed .brand {
  display: none;
}

.sidebar-collapsed-pref .app-sidebar .nav-link,
.app-shell.is-sidebar-collapsed .app-sidebar .nav-link {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
  min-height: 40px;
  margin-bottom: 2px;
}

.sidebar-collapsed-pref .nav-section,
.app-shell.is-sidebar-collapsed .nav-section {
  display: none;
}

.sidebar-collapsed-pref .sidebar-toggle,
.app-shell.is-sidebar-collapsed .sidebar-toggle {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  padding: 9px;
}

.sidebar-collapsed-pref .nav-icon,
.app-shell.is-sidebar-collapsed .nav-icon {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

.sidebar-collapsed-pref .nav-icon svg,
.app-shell.is-sidebar-collapsed .nav-icon svg {
  width: 21px;
  height: 21px;
}

.app-main {
  min-width: 0;
}

.app-topbar {
  height: 64px;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-topbar-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.mobile-menu-toggle {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: #102033;
  display: none;
  place-items: center;
  gap: 3px;
  padding: 9px;
}

.mobile-menu-toggle span {
  width: 16px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
}

.mobile-menu-toggle:hover {
  background: #f8fafc;
}

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

.app-content {
  padding: 24px;
}

.metric-card,
.panel,
.conversation-list,
.chat-panel,
.context-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.metric-card {
  padding: 18px;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 24px;
}

.settings-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: #f8fbff;
}

.settings-preview-logo,
.settings-preview-fallback {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  flex: 0 0 72px;
}

.settings-preview-logo,
.landing-brand-logo {
  object-fit: contain;
}

.settings-preview-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2454d6, #102033);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.settings-recommendation-list {
  display: grid;
  gap: 12px;
}

.settings-recommendation-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.qr-print-settings-preview {
  width: 100%;
  max-width: 330px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--qr-navy, #0b1f3a);
}

.qr-print-preview-brand {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.qr-print-preview-brand img,
.qr-print-preview-brand-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.qr-print-preview-brand-mark {
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-weight: 900;
}

.qr-print-preview-brand strong {
  letter-spacing: 1px;
}

.qr-print-preview-frame {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 16px auto 12px;
  padding: 16px;
  border: 1.5px solid var(--qr-navy, #0b1f3a);
  border-radius: 8px;
}

.qr-print-preview-scan {
  font-weight: 900;
  letter-spacing: 3px;
  transform: rotate(-4deg);
}

.qr-print-preview-code {
  width: 130px;
  height: 130px;
  background:
    linear-gradient(90deg, #111 10px, transparent 10px) 0 0 / 20px 20px,
    linear-gradient(#111 10px, transparent 10px) 0 0 / 20px 20px,
    #fff;
  border: 10px solid #111;
}

.qr-print-preview-frame span {
  color: #0f766e;
  font-weight: 900;
}

.qr-print-preview-wa {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.qr-print-preview-wa i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--qr-whatsapp, #16a34a);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.qr-print-preview-footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #cbd5e1;
  font-weight: 700;
}

.landing-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(36, 84, 214, 0.1);
  padding: 6px;
}

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

.role-access-list {
  display: grid;
  gap: 16px;
}

.role-access-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fbff;
  overflow: hidden;
}

.role-access-summary {
  list-style: none;
  cursor: pointer;
  padding: 16px;
}

.role-access-summary::-webkit-details-marker {
  display: none;
}

.role-access-form {
  padding: 0 16px 16px;
}

.role-access-form-inline {
  padding: 0;
}

.role-access-head,
.role-access-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.role-access-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.user-role-settings .accordion-item,
.user-role-settings .accordion-button,
.user-role-settings .accordion-button:not(.collapsed) {
  background: #fff;
}

.user-role-settings .accordion-button {
  font-weight: 700;
}

.user-role-settings .accordion-button:focus {
  box-shadow: none;
}

.role-access-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.role-access-group {
  min-width: 0;
  border: 1px solid #dbe6f2;
  border-radius: 8px;
  background: white;
  padding: 12px;
}

.role-access-group h4 {
  margin: 0 0 10px;
  color: #2454d6;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.role-access-menu {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #edf2f7;
}

.role-access-menu:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.role-access-menu + .role-access-menu {
  margin-top: 10px;
}

.role-access-menu strong {
  color: #173764;
  font-size: 14px;
}

.role-access-permissions {
  display: grid;
  gap: 7px;
}

.role-access-permissions label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
  margin: 0;
  color: #25364a;
}

.role-access-permissions input {
  margin-top: 4px;
}

.role-access-permissions span,
.role-access-permissions small {
  min-width: 0;
}

.role-access-permissions small {
  grid-column: 2;
  color: #64748b;
  overflow-wrap: anywhere;
}

.user-admin-page .panel h2 {
  margin-bottom: 10px;
}

.user-sync-banner {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.user-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.user-admin-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.user-admin-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: #eef4ff;
  color: #2454d6;
  flex: 0 0 38px;
}

.user-admin-icon-sync {
  background: #edfdf4;
  color: #1f8f54;
}

.user-admin-icon svg,
.label-icon svg,
.user-admin-icon-btn .icon svg,
.user-admin-icon-only .icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.user-admin-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.user-admin-stat-chip {
  min-width: 82px;
  padding: 10px 12px;
  border: 1px solid #dbe6f2;
  border-radius: 12px;
  background: #f8fbff;
}

.user-admin-stat-chip strong,
.user-admin-stat-chip span {
  display: block;
}

.user-admin-stat-chip strong {
  font-size: 18px;
  line-height: 1.1;
}

.user-admin-stat-chip span {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.user-admin-filterbar {
  padding: 16px;
  border: 1px solid #e4ebf3;
  border-radius: 16px;
  background: #f9fbfd;
}

.form-label-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.label-icon {
  width: 16px;
  height: 16px;
  color: #64748b;
}

.user-admin-filter-actions {
  padding-top: 4px;
}

.user-admin-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.user-admin-icon-btn .icon,
.user-admin-icon-only .icon {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
}

.user-admin-icon-only {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.user-admin-summary {
  padding: 6px 0 2px;
}

.user-admin-summary-text {
  color: #475569;
  font-weight: 600;
}

.user-admin-pager {
  color: #475569;
}

.user-admin-table-wrap {
  border: 1px solid #e4ebf3;
  border-radius: 16px;
  background: white;
  overflow: hidden;
}

.user-admin-table {
  margin-bottom: 0;
}

.user-admin-table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  white-space: nowrap;
}

.user-admin-table tbody td {
  vertical-align: middle;
}

.user-admin-row-actions form {
  margin: 0;
}

@media (max-width: 991.98px) {
  .user-admin-head {
    flex-direction: column;
  }

  .user-admin-head-actions {
    width: 100%;
  }

  .user-admin-head-actions .btn {
    margin-left: auto;
  }

  .user-admin-filterbar {
    padding: 14px;
  }
}

.metric-card span {
  color: #64748b;
  display: block;
  font-size: 14px;
}

.metric-card strong {
  display: block;
  font-size: 30px;
  margin-top: 8px;
}

.landing-body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(147, 197, 253, 0.55), transparent 32%),
    radial-gradient(circle at 85% 18%, rgba(250, 204, 21, 0.22), transparent 26%),
    linear-gradient(180deg, #f7fbff 0%, #edf4ff 44%, #f8fbff 100%);
  color: #16324f;
}

.landing-shell {
  min-height: 100vh;
  padding: 20px 28px 48px;
}

.landing-topbar {
  width: min(1320px, calc(100vw - 56px));
  margin: 0 auto 22px;
  padding: 14px 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.landing-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1d4ed8, #60a5fa);
  color: white;
  display: inline-grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.28);
}

.landing-brand strong,
.landing-brand small {
  display: block;
}

.landing-brand strong {
  font-size: 24px;
  line-height: 1;
}

.landing-brand small {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.landing-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1e3a5f;
  text-decoration: none;
  font-weight: 600;
}

.landing-nav-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-grid;
  place-items: center;
}

.landing-nav-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.landing-nav .landing-operator-login {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #2454d6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #2454d6;
}

.landing-nav .landing-operator-login:hover {
  background: #2454d6;
  color: #ffffff;
}

.landing-operator-login svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.landing-hero {
  width: min(1320px, calc(100vw - 56px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(520px, 0.95fr);
  gap: 28px;
  align-items: center;
}

.landing-kicker,
.landing-section-head span,
.landing-service-kicker,
.landing-module-eyebrow {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.landing-hero-copy h1,
.landing-section-head h2 {
  color: #153052;
  margin: 14px 0 0;
  font-size: clamp(36px, 4.8vw, 66px);
  line-height: 1.02;
}

.landing-section-head h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
}

.landing-hero-copy p,
.landing-section-head p,
.landing-module-card p,
.landing-service-card p,
.landing-chat-info p {
  color: #4b6583;
  font-size: 18px;
  line-height: 1.7;
}

.landing-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.landing-hero-actions .btn-primary {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border-color: #f59e0b;
}

.landing-hero-actions .btn-outline-light {
  color: #173764;
  border-color: rgba(23, 55, 100, 0.18);
  background: rgba(255, 255, 255, 0.84);
}

.landing-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.landing-stat-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.08);
}

.landing-stat-card strong,
.landing-stat-card span {
  display: block;
}

.landing-stat-card strong {
  color: #173764;
  font-size: 34px;
  line-height: 1;
}

.landing-stat-card span {
  margin-top: 8px;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.landing-hero-visual {
  position: relative;
  min-height: 720px;
  display: grid;
  place-items: center;
}

.landing-core-board {
  width: min(100%, 640px);
  border-radius: 32px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(232, 241, 255, 0.92));
  overflow: hidden;
  box-shadow: 0 34px 72px rgba(30, 64, 175, 0.18);
}

.landing-board-top {
  padding: 18px 24px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

.landing-board-main {
  padding: 24px;
}

.landing-board-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.landing-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #38bdf8, #1d4ed8);
  color: white;
  display: inline-grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
}

.landing-board-profile strong,
.landing-board-profile small {
  display: block;
}

.landing-board-profile strong {
  font-size: 28px;
  color: #173764;
}

.landing-board-profile small {
  margin-top: 4px;
  color: #64748b;
  font-size: 14px;
}

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

.landing-board-tile,
.landing-orbit-panel,
.landing-service-card,
.landing-chat-card,
.landing-chat-info,
.landing-module-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.1);
}

.landing-board-tile {
  padding: 18px;
}

.landing-board-tile strong,
.landing-board-tile span {
  display: block;
}

.landing-board-tile strong {
  font-size: 18px;
  color: #183252;
}

.landing-board-tile span {
  margin-top: 6px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

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

.landing-board-metrics div {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(191, 219, 254, 0.62), rgba(255, 255, 255, 0.86));
}

.landing-board-metrics strong,
.landing-board-metrics span {
  display: block;
}

.landing-board-metrics strong {
  color: #173764;
  font-size: 28px;
}

.landing-board-metrics span {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.landing-orbit {
  position: absolute;
  width: 220px;
  display: grid;
  gap: 12px;
}

.landing-orbit-left {
  left: -8px;
  top: 86px;
}

.landing-orbit-right {
  right: -8px;
  bottom: 98px;
}

.landing-orbit-label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #14532d, #22c55e);
  color: white;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(34, 197, 94, 0.18);
}

.landing-orbit-right .landing-orbit-label {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.18);
}

.landing-orbit-panel {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.landing-orbit-panel span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: #f8fbff;
  color: #264264;
  font-weight: 700;
}

.landing-intro-band,
.landing-modules,
.landing-service-grid,
.landing-contact-section,
.landing-chat-section,
.landing-chat-analytics {
  width: min(1320px, calc(100vw - 56px));
  margin: 34px auto 0;
}

.landing-chat-section-top {
  margin-top: 0;
}

.landing-intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-highlight-chip {
  min-height: 100%;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.72), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #29476a;
  font-weight: 600;
  line-height: 1.7;
}

.landing-section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 20px;
}

.landing-section-head p {
  max-width: 520px;
  margin: 0;
  font-size: 16px;
}

.landing-module-grid,
.landing-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.landing-service-grid {
  grid-template-columns: 1fr 1fr;
}

.landing-module-card,
.landing-service-card,
.landing-chat-info,
.landing-chat-card {
  padding: 24px;
}

.landing-module-card h3,
.landing-service-card h3,
.landing-chat-info h3 {
  margin: 12px 0 0;
  color: #173764;
  font-size: 28px;
}

.landing-module-card p,
.landing-service-card p {
  font-size: 16px;
  margin: 12px 0 0;
}

.landing-module-card a {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
}

.landing-service-card ul {
  padding-left: 18px;
  margin: 18px 0 22px;
  color: #4b6583;
  line-height: 1.9;
}

.landing-ticket-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.landing-ticket-copy,
.landing-ticket-form {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.08);
  padding: 24px;
}

.landing-ticket-copy h3 {
  margin: 0;
  color: #173764;
  font-size: 28px;
}

.landing-ticket-copy p {
  margin: 12px 0 0;
  color: #4b6583;
  font-size: 17px;
  line-height: 1.7;
}

.landing-ticket-form {
  display: grid;
  gap: 14px;
}

.landing-ticket-panel {
  min-height: 100%;
  display: block;
  overflow: auto;
}

.landing-assistant-tabs {
  margin-top: 18px;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
}

.landing-assistant-tab-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(191, 219, 254, 0.72);
  border-radius: 8px;
  background: rgba(239, 246, 255, 0.82);
}

.landing-assistant-tab-nav button {
  border: 0;
  border-radius: 6px;
  min-height: 42px;
  padding: 8px 10px;
  background: transparent;
  color: #31506f;
  font-weight: 800;
}

.landing-assistant-tab-nav button.is-active {
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.1);
}

.landing-assistant-tab-panel {
  min-height: 0;
  overflow: hidden;
}

.landing-assistant-tab-panel.is-active {
  display: block;
  height: 100%;
}

.landing-ticket-panel .landing-ticket-copy,
.landing-ticket-panel .landing-ticket-form {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.landing-ticket-panel .form-control,
.landing-ticket-panel .btn {
  min-height: 44px;
}

.landing-ticket-panel .btn {
  width: 100%;
  margin-top: 2px;
}

.landing-ticket-form label {
  display: block;
  margin-bottom: 8px;
  color: #173764;
  font-size: 13px;
  font-weight: 800;
}

.landing-ticket-error {
  margin: 0;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 700;
}

.landing-contact-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.76));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.07);
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(0, 1.4fr);
  gap: 16px;
}

.landing-contact-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #dbeafe;
  color: #1d4ed8;
}

.landing-contact-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.landing-contact-address-copy,
.landing-contact-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-contact-primary {
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  grid-template-rows: auto minmax(190px, 1fr);
  gap: 14px;
}

.landing-contact-map {
  min-height: 190px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  overflow: hidden;
  background: #e2e8f0;
}

.landing-contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 190px;
  display: block;
  border: 0;
}

.landing-contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.landing-contact-row {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.landing-contact-address-copy span,
.landing-contact-row span {
  display: block;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-contact-address-copy strong,
.landing-contact-address-copy a,
.landing-contact-row strong,
.landing-contact-row a {
  display: block;
  margin-top: 3px;
  color: #173764;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.landing-contact-address-copy strong {
  font-size: 16px;
}

.landing-contact-map-link {
  width: fit-content;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 13px;
}

.landing-contact-map-link:hover {
  background: #bfdbfe;
  color: #1e40af;
}

.landing-contact-row a:hover {
  color: #1d4ed8;
}

.landing-chat-shell {
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  height: 720px;
}

.landing-chat-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 800;
}

.landing-chat-prompts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.landing-chat-prompt-note {
  display: block;
  color: #64748b;
  line-height: 1.7;
}

.landing-chat-info,
.landing-chat-card {
  height: 100%;
  min-height: 0;
}

.landing-chat-info {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.landing-chat-info p {
  margin-bottom: 0;
}

.landing-chat-prompt-panel {
  border: 1px solid rgba(191, 219, 254, 0.72);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(239, 246, 255, 0.78));
  padding: 16px;
  height: 100%;
  min-height: 220px;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

.landing-chat-prompts button {
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  background: #eff6ff;
  color: #1d4ed8;
  min-height: 56px;
  padding: 12px 14px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.landing-chat-prompts button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
  border-color: #93c5fd;
  background: #dbeafe;
}

.landing-chat-card {
  padding: 18px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-height: 0;
  overflow: hidden;
}

.landing-chat-window {
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 12px;
  padding-right: 4px;
}

.landing-chat-message {
  width: fit-content;
  height: fit-content;
  max-width: min(78%, 540px);
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.7;
  justify-self: start;
}

.landing-chat-message strong {
  display: block;
  margin-bottom: 6px;
}

.landing-chat-message p {
  margin: 0;
  white-space: pre-wrap;
}

.landing-chat-message.is-bot {
  background: #eff6ff;
  color: #1e3a5f;
}

.landing-chat-message.is-loading {
  min-width: 124px;
}

.landing-chat-message.is-user {
  justify-self: end;
  margin-left: auto;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: white;
}

.landing-chat-loader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
}

.landing-chat-loader span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #60a5fa;
  animation: landingChatLoaderPulse 1s ease-in-out infinite;
}

.landing-chat-loader span:nth-child(2) {
  animation-delay: 0.15s;
}

.landing-chat-loader span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes landingChatLoaderPulse {
  0%, 80%, 100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.landing-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 14px;
}

.landing-chat-form.is-busy .form-control,
.landing-chat-form.is-busy .btn,
.landing-chat-prompts.is-busy button {
  cursor: not-allowed;
}

.landing-chat-form .form-control:disabled,
.landing-chat-form .btn:disabled,
.landing-chat-prompts button:disabled {
  opacity: 0.7;
}

.landing-chat-footer {
  margin-top: 14px;
}

.landing-chat-footer a {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
}

.landing-analytics-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.landing-analytics-panel {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.08);
  padding: 24px;
}

.landing-analytics-panel h3 {
  margin: 0 0 14px;
  color: #173764;
  font-size: 22px;
}

.api-guide-shell {
  padding-bottom: 48px;
}

.api-guide-topbar {
  margin-bottom: 34px;
}

.api-guide-nav {
  gap: 14px;
}

.api-guide-hero {
  align-items: stretch;
}

.api-guide-hero-visual {
  min-height: auto;
}

.api-guide-board {
  min-height: 100%;
}

.api-guide-note {
  margin-top: 18px;
  border: 1px solid rgba(147, 197, 253, 0.8);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.84), rgba(255, 255, 255, 0.94));
  color: #1d4c84;
  padding: 16px 18px;
  line-height: 1.7;
}

.api-guide-public-list {
  margin-top: 18px;
}

.api-guide-public-list strong {
  display: block;
  color: #173764;
  font-size: 15px;
}

.api-guide-public-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.api-guide-public-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.96);
  border: 1px solid rgba(191, 219, 254, 0.92);
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 700;
}

.api-guide-summary {
  margin-top: 24px;
}

.api-guide-auth-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.api-guide-table-wrap {
  overflow-x: auto;
}

.api-guide-table {
  width: 100%;
  border-collapse: collapse;
}

.api-guide-table th,
.api-guide-table td {
  padding: 12px 14px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.api-guide-table th {
  background: #eff6ff;
  color: #173764;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.api-guide-note-list {
  margin: 0;
  padding-left: 18px;
  color: #54657d;
  line-height: 1.9;
}

.api-guide-layout {
  width: min(1320px, calc(100vw - 56px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.api-guide-sidebar {
  position: relative;
}

.api-guide-sidebar-inner {
  position: sticky;
  top: 24px;
}

.api-guide-sidebar-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.08);
  padding: 22px;
}

.api-guide-sidebar-card h3 {
  margin: 12px 0 0;
  color: #173764;
  font-size: 24px;
}

.api-guide-sidebar-nav {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.api-guide-sidebar-nav a {
  color: #48607f;
  text-decoration: none;
  border-radius: 14px;
  padding: 10px 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.api-guide-sidebar-nav a:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.api-guide-content {
  display: grid;
  gap: 18px;
}

.api-guide-endpoint-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.api-guide-endpoint h2 {
  margin: 12px 0 0;
  color: #173764;
  font-size: 30px;
}

.api-guide-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
  align-items: center;
}

.api-guide-method {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.api-guide-meta code {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f8fbff;
  color: #1e3a5f;
  border: 1px solid rgba(191, 219, 254, 0.9);
}

.api-guide-description,
.api-guide-detail {
  margin: 14px 0 0;
  color: #4f647f;
  line-height: 1.8;
}

.api-guide-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  margin-top: 20px;
}

.api-guide-panel {
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 18px;
  background: #fbfdff;
  padding: 18px;
}

.api-guide-panel h3 {
  margin: 0 0 14px;
  color: #173764;
  font-size: 18px;
}

.api-guide-footnote {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 13px;
}

.api-guide-code {
  margin: 0;
  border-radius: 16px;
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
}

.api-guide-panel .api-guide-code + .api-guide-code {
  margin-top: 12px;
}

.landing-tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.landing-tab-header h3 {
  margin-bottom: 0;
}

.landing-tab-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #edf4ff;
  border: 1px solid rgba(191, 219, 254, 0.9);
}

.landing-tab-button {
  border: 0;
  background: transparent;
  color: #4b6380;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.landing-tab-button.is-active {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.landing-tab-panel[hidden] {
  display: none !important;
}

.landing-analytics-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.landing-analytics-card {
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.78), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(191, 219, 254, 0.9);
  padding: 16px;
}

.landing-analytics-card strong,
.landing-analytics-card span {
  display: block;
}

.landing-analytics-card strong {
  color: #173764;
  font-size: 32px;
  line-height: 1;
}

.landing-analytics-card span {
  margin-top: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

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

.landing-visit-item {
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 18px;
  background: #f8fbff;
  padding: 14px 16px;
}

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

.landing-visit-item-head strong,
.landing-visit-item-head span {
  color: #173764;
  font-weight: 700;
}

.landing-visit-item small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  line-height: 1.5;
}

.landing-daily-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 220px;
  margin-top: 18px;
}

.landing-daily-bar {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.landing-daily-bar-track {
  width: 100%;
  min-height: 140px;
  border-radius: 14px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
  display: flex;
  align-items: end;
  overflow: hidden;
}

.landing-daily-bar-fill {
  width: 100%;
  min-height: 6px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.landing-daily-bar strong {
  color: #173764;
  font-size: 13px;
}

.landing-daily-bar span {
  color: #64748b;
  font-size: 11px;
}

.landing-category-list,
.landing-recent-question-list {
  display: grid;
  gap: 12px;
}

.landing-recent-question-list {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
}

.landing-category-item {
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 18px;
  background: #f8fbff;
  padding: 14px 16px;
}

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

.landing-category-head strong {
  color: #173764;
}

.landing-category-head span,
.landing-category-item small {
  color: #64748b;
}

.landing-category-track {
  height: 12px;
  border-radius: 999px;
  background: #dbeafe;
  overflow: hidden;
}

.landing-category-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.landing-recent-question-item {
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 18px;
  background: #f8fbff;
  padding: 14px 16px;
}

.landing-recent-question-item strong,
.landing-recent-question-item span {
  display: block;
}

.landing-recent-question-item strong {
  color: #173764;
  line-height: 1.6;
}

.landing-recent-question-item span {
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
}

.landing-recent-question-list::-webkit-scrollbar {
  width: 8px;
}

.landing-recent-question-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 999px;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 16px;
}

.dashboard-sidepanel {
  background: #eef3fb;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 12px;
  align-self: start;
}

.dashboard-side-label {
  color: #4361ee;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin: 4px 10px 14px;
  text-transform: uppercase;
}

.dashboard-side-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #334155;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 6px;
  font-weight: 600;
}

.dashboard-side-link:hover,
.dashboard-side-link.is-active {
  background: #cfd8ff;
  color: #3f5ae0;
}

.dashboard-badge,
.dashboard-beta,
.dashboard-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
}

.dashboard-badge {
  background: #ef4444;
  color: white;
}

.dashboard-beta {
  background: #3b82f6;
  color: white;
  vertical-align: middle;
}

.dashboard-live {
  background: #10b981;
  color: white;
  vertical-align: middle;
}

.dashboard-main {
  min-width: 0;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.dashboard-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-filter-row .form-select,
.dashboard-filter-row .btn {
  min-width: 170px;
}

.dashboard-panel {
  padding: 22px;
  margin-bottom: 16px;
}

.dashboard-note {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  color: #64748b;
  margin-bottom: 16px;
}

.dashboard-panel h2 {
  font-size: 22px;
  margin: 0 0 14px;
  color: #475a84;
}

.dashboard-service-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
  border-left: 5px solid #0f766e;
}

.dashboard-print-brand,
.dashboard-print-whatsapp,
.dashboard-print-footer {
  display: none;
}

.dashboard-service-info span {
  display: block;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-service-info h2 {
  margin: 6px 0 10px;
  color: #1f2937;
  font-size: 22px;
}

.dashboard-service-code {
  display: inline-flex;
  align-items: center;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  background: #f0fdfa;
  color: #115e59;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  padding: 10px 14px;
}

.dashboard-service-info p {
  color: #475569;
  margin: 12px 0 8px;
}

.dashboard-service-message {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #334155;
  padding: 10px 12px;
}

.dashboard-service-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.dashboard-service-qr {
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}

.dashboard-scan-arc {
  width: 170px;
  height: 36px;
}

.dashboard-scan-arc text {
  fill: #0b1f3a;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
}

.dashboard-service-qr img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.dashboard-service-qr strong {
  color: #1f2937;
  font-size: 15px;
}

.dashboard-service-qr span {
  color: #0f766e;
  font-weight: 800;
}

.dashboard-service-qr-empty {
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  color: #64748b;
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px;
}

.dashboard-growth-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-stat-stack,
.dashboard-kpi-pair {
  display: grid;
  gap: 12px;
}

.dashboard-kpi-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.dashboard-stat-card,
.dashboard-chart-card,
.dashboard-segment-card,
.dashboard-summary-card,
.dashboard-empty-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
}

.dashboard-stat-card.center {
  text-align: center;
}

.dashboard-stat-number {
  font-size: 50px;
  line-height: 1;
  font-weight: 700;
  color: #4b5a82;
  margin-bottom: 8px;
}

.dashboard-stat-label {
  color: #4b5a82;
  font-size: 16px;
  font-weight: 600;
}

.dashboard-chart-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: #4b5a82;
  font-weight: 600;
  margin-bottom: 12px;
}

.dashboard-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.legend-dot.total {
  background: #a78bca;
}

.legend-dot.new {
  background: #8dd3e8;
}

.legend-dot.inactive {
  background: #f4a261;
}

.legend-dot.response {
  background: #3b82f6;
}

.dashboard-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
  min-height: 360px;
}

.dashboard-bar-group,
.dashboard-lifecycle-col {
  display: grid;
  gap: 8px;
  align-items: end;
  justify-items: center;
}

.dashboard-bar-track,
.dashboard-lifecycle-plot {
  position: relative;
  width: 100%;
  min-height: 280px;
  display: flex;
  align-items: end;
  justify-content: center;
  border-bottom: 1px solid #dbe3ef;
}

.dashboard-bar {
  width: 82%;
  border-radius: 12px 12px 0 0;
}

.dashboard-bar.total {
  background: #a78bca;
}

.dashboard-bar.lifecycle {
  background: #f4b183;
}

.dashboard-line {
  position: absolute;
  left: 50%;
  width: 78%;
  height: 0;
  border-top: 3px solid;
  transform: translateX(-50%);
}

.dashboard-line::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
}

.dashboard-line.new-line {
  color: #8dd3e8;
}

.dashboard-line.inactive-line {
  color: #f4a261;
}

.dashboard-line.response-line {
  color: #3b82f6;
}

.dashboard-bar-label,
.dashboard-bar-label-top {
  color: #475569;
  font-size: 13px;
  text-align: center;
}

.dashboard-bar-label-top {
  font-weight: 700;
}

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

.dashboard-segment-card h3,
.dashboard-empty-card h3,
.dashboard-table-title {
  font-size: 16px;
  font-weight: 700;
  color: #475a84;
  margin: 0 0 14px;
}

.dashboard-hbar-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 48px;
  gap: 12px;
  align-items: center;
}

.dashboard-hbar-row + .dashboard-hbar-row {
  margin-top: 12px;
}

.dashboard-hbar-track {
  height: 18px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}

.dashboard-hbar-fill {
  height: 100%;
  border-radius: inherit;
}

.dashboard-hbar-fill.violet {
  background: #a78bca;
}

.dashboard-hbar-fill.indigo {
  background: #7c7bb8;
}

.dashboard-lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  color: #94a3b8;
  text-align: center;
}

.dashboard-empty-icon {
  font-size: 58px;
  line-height: 1;
  opacity: 0.55;
}

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

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

.dashboard-summary-card span {
  display: block;
  color: #737373;
  font-size: 16px;
  margin-bottom: 8px;
}

.dashboard-summary-card strong {
  display: block;
  color: #1f2937;
  font-size: 42px;
  line-height: 1;
}

.dashboard-table-section {
  margin-top: 26px;
}

.dashboard-table {
  margin: 0;
}

.dashboard-table thead th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  border-bottom-color: var(--border);
}

.dashboard-no-data {
  padding: 0 !important;
}

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

.dashboard-sla-pill.good {
  background: #dcfce7;
  color: #166534;
}

.dashboard-sla-pill.warn {
  background: #fff7ed;
  color: #c2410c;
}

.dashboard-sla-pill.bad {
  background: #fee2e2;
  color: #b91c1c;
}

.panel {
  padding: 20px;
}

.panel h2,
.context-panel h2 {
  font-size: 18px;
  margin: 0 0 12px;
}

.inbox-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 320px;
  gap: 16px;
  height: calc(100vh - 112px);
  min-height: 0;
}

.inbox-grid.is-context-hidden {
  grid-template-columns: 320px minmax(0, 1fr);
}

.inbox-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.inbox-filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.conversation-list,
.context-panel {
  padding: 16px;
  overflow: auto;
  min-height: 0;
}

.context-panel[hidden] {
  display: none !important;
}

.context-action-card {
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff, #eff6ff);
  padding: 14px;
}

.context-action-card strong {
  display: block;
  color: #173764;
  margin-bottom: 6px;
}

.context-action-card p {
  margin-bottom: 10px;
}

.context-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.conversation-list {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.conversation-list-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: white;
  padding-bottom: 12px;
}

.inspector-sync-monitor {
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(241, 245, 249, 0.94) 100%);
  box-shadow: 0 10px 26px -22px rgba(15, 23, 42, 0.5);
  padding: 14px 15px 13px;
}

.inspector-sync-monitor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.inspector-sync-monitor-copy {
  min-width: 0;
}

.inspector-sync-monitor-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inspector-sync-monitor-copy strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.inspector-sync-monitor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.inspector-sync-toggle {
  min-width: 32px;
  min-height: 32px;
  padding: 0;
}

.inspector-sync-toggle svg {
  width: 16px;
  height: 16px;
}

.inspector-sync-toggle.is-expanded svg {
  opacity: 0.85;
}

.inspector-sync-status-badge {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.inspector-sync-now-button {
  min-height: 30px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #0f3b66;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 0 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.inspector-sync-now-button:hover,
.inspector-sync-now-button:focus {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.inspector-sync-now-button:disabled {
  background: #f8fafc;
  color: #94a3b8;
  border-color: #e2e8f0;
  box-shadow: none;
}

.inspector-sync-summary {
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.inspector-sync-detail {
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.inspector-sync-monitor-body[hidden] {
  display: none !important;
}

.conversation-list-scroll {
  min-height: 0;
  overflow: auto;
}

.conversation-list-loader {
  padding: 12px 0 8px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}

.conversation-item {
  width: 100%;
  position: relative;
  padding: 0;
}

.conversation-card + .conversation-card {
  border-top: 1px solid var(--border);
}

.conversation-button {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 14px 12px 12px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.conversation-card:hover .conversation-button {
  background: #f8fafc;
}

.conversation-card.is-active .conversation-button {
  background: #eef2ff;
}

.conversation-card.is-selected .conversation-button {
  background: #e0e7ff;
}

.conversation-selection-toolbar {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.conversation-selection-summary,
.conversation-selection-actions,
.selection-toggle {
  display: flex;
  align-items: center;
}

.conversation-selection-summary,
.conversation-selection-actions {
  justify-content: space-between;
}

.conversation-selection-actions {
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.conversation-bulk-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.conversation-bulk-status .form-select {
  width: 160px;
}

.selection-toggle {
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.conversation-selector {
  position: relative;
  width: 22px;
  height: 22px;
  display: inline-grid;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 22px;
  align-self: start;
  margin-top: 4px;
}

.conversation-checkbox {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.conversation-checkbox-ui {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid #cbd5e1;
  background: white;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  z-index: 2;
}

.conversation-card:hover .conversation-checkbox-ui,
.conversation-card.is-selected .conversation-checkbox-ui {
  opacity: 1;
  transform: scale(1);
}

.conversation-checkbox:checked + .conversation-checkbox-ui {
  background: var(--primary);
  border-color: var(--primary);
  position: relative;
}

.conversation-checkbox:checked + .conversation-checkbox-ui::after {
  content: "";
  position: absolute;
  inset: 4px 7px 6px 7px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
}

.conversation-row-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.conversation-title-block {
  min-width: 0;
  display: grid;
  align-self: start;
}

.conversation-title-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.conversation-channel-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.conversation-meta {
  min-width: 72px;
  display: grid;
  justify-items: end;
  gap: 4px;
  align-self: start;
}

.conversation-title-block strong,
.conversation-title-block span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-preview {
  color: #64748b;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  padding-left: 0;
  margin-top: 8px;
}

.conversation-responder-label {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
}

.conversation-status-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.conversation-status-label::before,
.conversation-assignment-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
}

.conversation-status-label.status-open {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.conversation-status-label.status-assigned {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #047857;
}

.conversation-status-label.status-pending {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.conversation-status-label.status-resolved {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.conversation-status-label.status-closed {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.conversation-assignment-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  max-width: 100%;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-assignment-label.is-assigned {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #3730a3;
}

.conversation-assignment-label.is-unassigned {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #64748b;
}

.conversation-footer > .badge {
  margin-left: auto;
}

.conversation-ticket-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 11px;
  font-weight: 700;
  max-width: 100%;
}

.conversation-tag-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.conversation-tag {
  --tag-color: #334155;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--tag-color);
  border: 1px solid var(--tag-color);
  font-size: 11px;
  font-weight: 800;
  max-width: 100%;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.chat-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 20px 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  background: #fff;
}

.chat-mobile-back {
  display: none;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.chat-header > div:first-child {
  min-width: 0;
  flex: 1 1 280px;
  display: grid;
  gap: 6px;
}

#chat-title {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

#chat-subtitle {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 0 auto;
  margin-left: auto;
  padding-top: 2px;
}

.source-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: white;
}

.source-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.source-icon-sm {
  width: 20px;
  height: 20px;
  font-size: 9px;
  vertical-align: middle;
}

.source-icon-sm svg {
  width: 12px;
  height: 12px;
}

.conversation-channel-icon {
  width: 22px;
  height: 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.conversation-channel-icon svg {
  width: 13px;
  height: 13px;
}

.source-whatsapp {
  background: #16a34a;
}

.source-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.source-unknown {
  background: #64748b;
}

.channel-badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  font-size: 12px;
  font-weight: 600;
  background: #f8fafc;
}

.chat-icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.inbox-sound-toggle.is-muted {
  color: #64748b;
  border-color: #cbd5e1;
  background: #f8fafc;
}

.chat-body {
  padding: 18px 20px 20px;
  overflow: auto;
  min-height: 0;
  background: #fff;
}

.chat-history-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 34px;
  margin-bottom: 12px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.message-row {
  display: flex;
  margin-bottom: 12px;
}

.message-date-separator {
  display: flex;
  justify-content: center;
  margin: 18px 0 14px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.message-date-separator {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e2e8f0;
}

.message-unread-loaded {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0 18px;
  color: #4338ca;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.message-unread-loaded::before,
.message-unread-loaded::after {
  content: "";
  flex: 1 1 auto;
  border-top: 1px solid #a5b4fc;
}

.message-unread-loaded::before {
  margin-right: 12px;
}

.message-unread-loaded::after {
  margin-left: 12px;
}

.message-incoming {
  justify-content: flex-start;
}

.message-outgoing,
.message-internal {
  justify-content: flex-end;
}

.message-bubble {
  max-width: min(680px, 82%);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  white-space: pre-wrap;
}

.message-bubble.is-reply-selected {
  box-shadow: 0 0 0 2px rgba(36, 84, 214, 0.18);
}

.message-outgoing .message-bubble {
  background: #eaf0ff;
  border-color: #c7d2fe;
}

.message-internal .message-bubble {
  background: #fff7ed;
  border-color: #fed7aa;
}

.message-meta,
.message-source {
  color: #64748b;
  font-size: 12px;
  margin-bottom: 4px;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.message-sender-label {
  margin-bottom: 6px;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 700;
}

.message-reply-action {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 17px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}

.message-reply-action:hover {
  color: var(--primary);
}

.message-reply-quote {
  border-left: 3px solid #94a3b8;
  background: rgba(226, 232, 240, 0.55);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
  color: #334155;
  font-size: 12px;
}

.message-reply-quote strong {
  display: block;
  margin-bottom: 3px;
  color: #1e3a8a;
}

.message-source {
  margin: 6px 0 0;
}

.context-list {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px 10px;
  font-size: 13px;
}

.context-list dt {
  color: #64748b;
  font-weight: 600;
}

.context-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  color: #64748b;
}

.composer {
  border-top: 1px solid var(--border);
  padding: 12px;
  display: grid;
  gap: 12px;
}

.composer-reply-preview {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  border-radius: 8px;
  padding: 10px 12px;
}

.composer-attachment-preview {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 8px;
  padding: 10px 12px;
}

.composer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.composer-input-shell {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.composer-tools {
  display: flex;
  align-items: center;
}

.composer-attach-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.composer-attach-button:hover {
  color: #1d4ed8;
}

.composer-attach-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.composer-send-button {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: #eff6ff;
  color: #2454d6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  box-shadow: none;
}

.composer-send-button:hover,
.composer-send-button:focus {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.composer-send-button:disabled {
  background: #f8fafc;
  color: #94a3b8;
  border-color: #e2e8f0;
  opacity: 1;
}

.composer-send-button svg {
  width: 18px;
  height: 18px;
  margin-left: 1px;
}

.composer textarea {
  min-height: 64px;
}

.composer-reply-copy {
  min-width: 0;
}

.composer-reply-copy strong {
  display: block;
  margin-bottom: 3px;
  color: #1e3a8a;
  font-size: 13px;
}

.composer-reply-copy div {
  color: #475569;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .inbox-grid {
    grid-template-columns: 1fr;
    height: calc(100vh - 104px);
    overflow: hidden;
  }

  .conversation-list,
  .chat-panel {
    min-height: 0;
  }

  .inbox-grid.is-mobile-chat-active .conversation-list {
    display: none;
  }

  .inbox-grid:not(.is-mobile-chat-active) .chat-panel {
    display: none;
  }

  .chat-mobile-back {
    display: inline-flex;
  }

  .chat-header {
    padding: 14px 16px 12px;
  }

  .chat-header-actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .chat-body {
    padding: 14px 16px 16px;
  }

  .context-panel {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: #fff;
    padding: 16px;
  }

  .conversation-selection-toolbar {
    padding: 10px;
  }

  .conversation-selection-summary,
  .conversation-selection-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .conversation-bulk-status {
    width: 100%;
  }

  .conversation-bulk-status .form-select {
    width: 100%;
  }

  .context-action-row {
    grid-template-columns: 1fr;
  }

  .conversation-row-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .conversation-meta {
    grid-column: 2;
    justify-items: start;
    min-width: 0;
  }

  .conversation-title-block strong,
  .conversation-title-block span,
  .conversation-status-label,
  .conversation-assignment-label,
  .conversation-ticket-badge,
  .conversation-tag {
    white-space: normal;
  }

  .conversation-preview {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .message-bubble {
    max-width: min(100%, 92%);
  }

  .composer {
    padding: 10px 12px 12px;
    gap: 10px;
  }

  .composer-reply-preview,
  .composer-attachment-preview {
    flex-direction: column;
  }

  .composer-reply-copy div {
    white-space: normal;
  }

  .composer-attach-button {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .composer-main {
    grid-template-columns: 1fr;
  }

  .composer-send-button {
    width: 100%;
    min-width: 0;
  }
}

.ai-suggestion-card + .ai-suggestion-card {
  margin-top: 12px;
}

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

.ai-suggestion-meta {
  margin-top: 10px;
}

.ai-suggestion-response {
  white-space: pre-wrap;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.6;
}

.ai-suggestion-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.message-attachment {
  margin-bottom: 8px;
  display: grid;
  gap: 8px;
}

.message-attachment img {
  display: block;
  max-width: min(420px, 100%);
  max-height: 260px;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
}

.message-attachment-preview-button {
  border: 0;
  padding: 0;
  background: transparent;
  width: fit-content;
  max-width: min(420px, 100%);
  position: relative;
}

.message-attachment-preview-button video {
  display: block;
  width: min(420px, 100%);
  max-height: 260px;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: #0f172a;
}

.message-video-player {
  display: grid;
  gap: 8px;
  width: min(420px, 100%);
}

.message-video-element {
  display: block;
  width: 100%;
  max-height: 320px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0f172a;
}

.message-video-expand-button {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.message-video-expand-button:hover {
  background: #f8fafc;
}

.message-attachment a {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.message-attachment-unavailable {
  display: grid;
  gap: 4px;
  max-width: min(420px, 100%);
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
}

.message-attachment-unavailable strong {
  color: #334155;
  font-size: 13px;
}

.message-attachment-unavailable span {
  font-size: 12px;
  line-height: 1.4;
}

.inbox-media-modal .modal-body {
  padding: 16px;
}

.inbox-media-preview-stage {
  display: grid;
  place-items: center;
  min-height: min(70vh, 720px);
  background: #0f172a;
  border-radius: 8px;
  overflow: hidden;
}

.inbox-media-preview-stage img,
.inbox-media-preview-stage video {
  display: block;
  max-width: 100%;
  max-height: min(70vh, 720px);
}

.contacts-page {
  padding: 22px 24px;
}

.contacts-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.contacts-filters {
  width: 100%;
}

.contacts-filters form {
  align-items: center;
}

.contacts-filters .form-select,
.contacts-filters .form-control {
  max-width: 280px;
}

.contacts-table thead th {
  color: #334155;
  font-weight: 700;
  background: #f8fafc;
  border-bottom-color: var(--border);
}

.contacts-check-col {
  width: 36px;
}

.contacts-name-link {
  color: #4361ee;
  text-decoration: none;
  font-weight: 500;
}

.contacts-name-link:hover {
  text-decoration: underline;
}

.contacts-channel-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.contacts-channel-pill {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: white;
  font-size: 9px;
  font-weight: 700;
}

.contacts-channel-pill svg {
  width: 12px;
  height: 12px;
  display: block;
}

.contacts-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: #64748b;
}

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

.contacts-page-badge {
  min-width: 40px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: #1f2937;
  background: white;
}

.contacts-detail-page {
  display: grid;
  gap: 16px;
}

.contacts-detail-header {
  background: #eef2f8;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 24px;
}

.contacts-detail-title {
  margin: 0;
  font-size: 20px;
}

.contacts-detail-grid {
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  gap: 16px;
}

.contacts-detail-sidebar {
  padding: 0;
  overflow: hidden;
}

.contacts-back-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 0;
  color: #4361ee;
}

.contacts-back-row a {
  text-decoration: none;
}

.contacts-identity-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 18px 16px;
  border-bottom: 1px solid var(--border);
}

.contacts-avatar {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: white;
  font-size: 26px;
}

.contacts-identity-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 2px;
}

.contacts-detail-section {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.contacts-detail-section h3,
.contacts-detail-block-head {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: #334155;
}

.contacts-handle-list,
.contacts-associated-list {
  display: grid;
  gap: 12px;
}

.contacts-handle-item,
.contacts-associated-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contacts-edit-form .form-label {
  font-weight: 600;
  color: #334155;
}

.contacts-detail-main {
  display: grid;
  gap: 16px;
}

.contacts-detail-block {
  padding: 0;
}

.contacts-detail-block-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  margin: 0;
}

.contacts-conversation-list,
.contacts-associated-list {
  padding: 16px;
}

.contacts-conversation-item {
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
}

.contacts-conversation-item + .contacts-conversation-item {
  margin-top: 12px;
}

.contacts-conversation-item:hover {
  background: #f8fafc;
}

.contacts-conversation-top,
.contacts-conversation-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.contacts-conversation-bottom {
  margin-top: 10px;
  color: #64748b;
}

.contacts-channel-inline {
  display: inline-block;
  margin-right: 8px;
  color: #16a34a;
  font-size: 13px;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #eef3f9;
}

.login-card {
  width: min(420px, calc(100vw - 32px));
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
}

.login-card h1 {
  font-size: 26px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #64748b;
  font-size: 13px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e2e8f0;
}

.integration-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
}

.status-check {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  line-height: 1;
}

.status-check.is-ready {
  background: #16a34a;
  color: white;
}

.status-check.is-muted {
  background: #e2e8f0;
  color: #64748b;
}

.config-snippet {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  overflow: auto;
}

.source-bucket-result {
  margin-bottom: 16px;
}

.source-bucket-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  background: #f8fafc;
}

.source-bucket-card h3 {
  font-size: 16px;
  margin: 0 0 12px;
}

.report-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
}

.report-sidebar {
  padding: 10px 0;
}

.report-sidebar-label {
  color: #4f46e5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.report-sidebar-link,
.report-sidebar-subitem {
  display: block;
  border-radius: 10px;
  color: #334155;
  padding: 10px 12px;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.report-sidebar-link:hover,
.report-sidebar-subitem:hover,
.report-sidebar-link.is-active,
.report-sidebar-subitem.is-active {
  background: #c7d2fe;
  color: #4338ca;
  font-weight: 700;
}

.report-sidebar-submenu {
  padding-left: 8px;
  margin-bottom: 8px;
}

.report-sidebar-subitem {
  padding-left: 16px;
}

.report-badge-new {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  margin-left: 8px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.report-sidebar-link.is-muted,
.report-sidebar-subitem.is-muted {
  color: #64748b;
  cursor: default;
}

.report-sidebar-link.is-muted:hover,
.report-sidebar-subitem.is-muted:hover {
  background: transparent;
  color: #64748b;
}

.report-main {
  min-width: 0;
}

.report-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.report-header h1 {
  margin: 0;
  font-size: 22px;
}

.report-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.report-filter-row .form-select,
.report-filter-row .form-control,
.report-filter-row .btn {
  min-width: 170px;
}

.report-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.report-grid-general-top {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-grid-general-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-grid-general-charts {
  grid-template-columns: 1fr 1fr;
}

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

.report-grid-quality-overview {
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  padding: 0 18px 18px;
}

.report-grid-quality-parameters,
.report-grid-bot-overview,
.report-grid-bot-trend {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 18px 18px;
}

.report-card {
  padding: 0;
  overflow: hidden;
}

.report-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 10px;
}

.report-card-head h2 {
  margin: 0;
  font-size: 17px;
}

.report-card-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.report-card-head-tight {
  padding-bottom: 12px;
}

.report-callout-card {
  padding: 16px;
}

.report-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 8px;
  background: #e9e8fb;
  color: #374151;
  padding: 16px 18px;
  font-size: 15px;
}

.report-callout-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.report-chip-row {
  padding: 0 18px 8px;
}

.report-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 2px solid #60a5fa;
  border-radius: 12px;
  color: #475569;
  font-weight: 600;
}

.report-date-chip strong {
  color: #60a5fa;
}

.report-donut-block {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 8px 18px 22px;
}

.report-donut {
  width: 220px;
  height: 220px;
  border-radius: 999px;
  position: relative;
}

.report-donut-hole {
  position: absolute;
  inset: 56px;
  border-radius: inherit;
  background: white;
  border: 1px solid #e2e8f0;
}

.report-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.report-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.dot-amber {
  background: #f59e0b;
}

.dot-blue {
  background: #2563eb;
}

.dot-green {
  background: #22c55e;
}

.dot-gray {
  background: #71717a;
}

.dot-purple {
  background: #a78bfa;
}

.dot-cyan {
  background: #99f6e4;
}

.report-status-list {
  padding: 4px 18px 18px;
}

.report-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
}

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

.report-status-row strong {
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  display: inline-grid;
  place-items: center;
}

.report-kpi-card,
.report-metric-card {
  display: grid;
  place-items: center;
  min-height: 146px;
  padding: 18px;
  text-align: center;
}

.report-kpi-number,
.report-metric-number {
  color: #334155;
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 800;
  line-height: 1;
}

.report-kpi-label,
.report-metric-label {
  margin-top: 10px;
  color: #475569;
  font-size: 16px;
  font-weight: 600;
}

.report-kpi-number-small {
  font-size: clamp(24px, 3vw, 36px);
}

.report-column-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  min-height: 280px;
  padding: 18px;
}

.report-column-group {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.report-column-track {
  height: 180px;
  width: 100%;
  max-width: 76px;
  background: linear-gradient(to top, #f8fafc, #ffffff);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  display: flex;
  align-items: end;
  overflow: hidden;
}

.report-column-fill {
  width: 100%;
  border-radius: 12px 12px 0 0;
  min-height: 4px;
}

.report-column-fill.is-violet {
  background: linear-gradient(180deg, #8b5cf6, #a78bfa);
}

.report-column-value {
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.report-column-label {
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

.report-tag-bars {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.report-tag-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.report-tag-track {
  height: 14px;
  border-radius: 999px;
  background: #eef2ff;
  overflow: hidden;
}

.report-tag-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.report-empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  color: #94a3b8;
  text-align: center;
  padding: 24px;
}

.report-line-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(26px, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 260px;
  padding: 18px;
}

.report-line-group {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.report-line-track {
  width: 100%;
  min-height: 170px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  display: flex;
  align-items: end;
  overflow: hidden;
}

.report-line-fill {
  width: 100%;
  min-height: 4px;
}

.report-line-fill.is-violet {
  background: linear-gradient(180deg, #818cf8, #4f46e5);
}

.report-line-fill.is-purple {
  background: linear-gradient(180deg, #c4b5fd, #8b5cf6);
}

.report-line-fill.is-cyan {
  background: linear-gradient(180deg, #ccfbf1, #67e8f9);
}

.report-line-group span {
  color: #64748b;
  font-size: 11px;
  text-align: center;
}

.report-table-card {
  padding-bottom: 6px;
}

.report-table {
  margin: 0;
}

.report-table thead th {
  background: #e0f2fe;
  color: #1e293b;
  font-weight: 700;
  white-space: nowrap;
}

.report-table tbody td {
  vertical-align: middle;
}

.report-table-empty {
  color: #64748b;
  text-align: center;
  padding: 28px 16px !important;
}

.report-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.report-mini-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 240px;
  padding: 18px;
}

.report-mini-chart-days {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.report-mini-group {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.report-mini-track {
  width: 100%;
  min-height: 150px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  display: flex;
  align-items: end;
  overflow: hidden;
}

.report-mini-fill {
  width: 100%;
  min-height: 4px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.report-mini-fill.is-indigo {
  background: linear-gradient(180deg, #818cf8, #4f46e5);
}

.report-mini-label {
  color: #64748b;
  font-size: 11px;
  text-align: center;
}

.report-chart-footnote {
  color: #475569;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 0 18px 18px;
}

.report-overview-split {
  padding: 18px;
  display: grid;
  gap: 8px;
}

.report-overview-split + .report-overview-split {
  border-left: 1px solid #e2e8f0;
}

.report-overview-split strong {
  color: #334155;
  font-size: 26px;
  line-height: 1.1;
}

.report-overview-split span {
  color: #475569;
  font-size: 16px;
  font-weight: 600;
}

.report-parameter-list {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.report-parameter-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #e5e7eb;
}

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

.report-parameter-row strong,
.report-parameter-row small {
  display: block;
}

.report-parameter-row strong {
  color: #334155;
  font-size: 15px;
}

.report-parameter-row small {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.report-parameter-score,
.report-score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 700;
}

.report-score-pill {
  min-width: 64px;
}

.report-online-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.report-online-state i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.report-online-state.is-online {
  color: #15803d;
}

.report-online-state.is-online i {
  background: #22c55e;
}

.report-online-state.is-offline {
  color: #64748b;
}

.report-online-state.is-offline i {
  background: #cbd5e1;
}

.report-legend-left {
  justify-content: flex-start;
  padding: 0 18px 8px;
}

.bucket-sync-progress {
  border: 1px solid var(--border);
  border-radius: 6px;
  display: inline-flex;
  max-width: 100%;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.bucket-sync-progress[data-status="queued"],
.bucket-sync-progress[data-status="running"] {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.bucket-sync-progress[data-status="completed"] {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.bucket-sync-progress[data-status="failed"] {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.webhook-buckets-panel {
  overflow: hidden;
}

.webhook-buckets-table-wrap {
  width: 100%;
}

.webhook-buckets-table {
  width: 100%;
  table-layout: fixed;
}

.webhook-buckets-table th,
.webhook-buckets-table td {
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.webhook-buckets-table thead th,
.webhook-buckets-table code,
.bucket-sync-detail,
.bucket-inbox-detail {
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .webhook-buckets-header {
    flex-direction: column;
  }

  .webhook-buckets-header .btn {
    width: 100%;
  }

  .webhook-buckets-table {
    table-layout: auto;
  }

  .landing-hero,
  .landing-intro-band,
  .landing-module-grid,
  .landing-service-grid,
  .landing-ticket-shell,
  .landing-contact-panel,
  .landing-contact-list,
  .landing-chat-shell,
  .landing-analytics-grid,
  .landing-analytics-cards,
  .landing-visit-breakdown,
  .landing-stat-grid,
  .landing-board-grid,
  .landing-board-metrics {
    grid-template-columns: 1fr;
  }

  .role-access-groups {
    grid-template-columns: 1fr;
  }

  .landing-topbar,
  .landing-section-head,
  .landing-hero {
    width: min(100%, calc(100vw - 32px));
  }

  .landing-shell {
    padding: 16px 16px 36px;
  }

  .landing-topbar,
  .landing-section-head,
  .landing-nav,
  .landing-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-nav {
    width: 100%;
  }

  .landing-hero {
    gap: 20px;
  }

  .landing-hero-visual {
    min-height: auto;
  }

  .landing-orbit {
    position: static;
    width: 100%;
  }

  .landing-intro-band,
  .landing-modules,
  .landing-service-grid,
  .landing-contact-section,
  .landing-chat-section,
  .landing-chat-analytics {
    width: min(100%, calc(100vw - 32px));
  }

  .landing-contact-panel {
    padding: 14px;
  }

  .landing-contact-address-copy,
  .landing-contact-row {
    align-items: flex-start;
  }

  .landing-chat-message {
    max-width: 100%;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    display: block;
    width: min(82vw, var(--sidebar-width));
    max-width: 320px;
    padding: 18px 14px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 18px 0 40px rgba(15, 23, 42, 0.22);
  }

  .app-shell.is-mobile-sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  .mobile-menu-toggle {
    display: inline-grid;
  }

  .mobile-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1030;
    display: block;
    border: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .app-shell.is-mobile-sidebar-open .mobile-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-collapsed-pref .app-sidebar,
  .app-shell.is-sidebar-collapsed .app-sidebar {
    padding: 18px 14px;
  }

  .sidebar-collapsed-pref .sidebar-head,
  .app-shell.is-sidebar-collapsed .sidebar-head {
    justify-content: space-between;
    margin-bottom: 28px;
  }

  .sidebar-collapsed-pref .brand,
  .app-shell.is-sidebar-collapsed .brand {
    display: flex;
  }

  .sidebar-collapsed-pref .brand-text,
  .app-shell.is-sidebar-collapsed .brand-text,
  .sidebar-collapsed-pref .nav-label,
  .app-shell.is-sidebar-collapsed .nav-label,
  .sidebar-collapsed-pref .nav-section,
  .app-shell.is-sidebar-collapsed .nav-section {
    width: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .sidebar-collapsed-pref .brand-mark,
  .app-shell.is-sidebar-collapsed .brand-mark {
    display: none;
  }

  .sidebar-collapsed-pref .app-sidebar .nav-link,
  .app-shell.is-sidebar-collapsed .app-sidebar .nav-link {
    justify-content: flex-start;
    padding-left: var(--bs-nav-link-padding-x);
    padding-right: var(--bs-nav-link-padding-x);
    min-height: 42px;
    margin-bottom: 4px;
  }

  .sidebar-collapsed-pref .nav-section,
  .app-shell.is-sidebar-collapsed .nav-section {
    display: block;
  }

  .app-topbar {
    height: auto;
    min-height: 64px;
    align-items: flex-start;
    padding: 12px 16px;
    flex-direction: column;
  }

  .app-topbar-title {
    width: 100%;
  }

  .app-topbar-title .text-muted {
    display: block;
    margin-left: 0 !important;
  }

  .app-content {
    padding: 16px;
  }

  .inbox-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .conversation-button {
    padding-right: 8px;
  }

  .contacts-detail-grid {
    grid-template-columns: 1fr;
  }

  .contacts-filters .form-select,
  .contacts-filters .form-control {
    max-width: 100%;
  }

  .contacts-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .report-shell,
  .dashboard-shell,
  .dashboard-service-card,
  .dashboard-growth-grid,
  .dashboard-segment-grid,
  .dashboard-summary-grid,
  .dashboard-kpi-pair,
  .dashboard-detail-grid,
  .dashboard-lifecycle-grid {
    grid-template-columns: 1fr;
  }

  .report-header,
  .dashboard-header,
  .dashboard-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .report-filter-row,
  .dashboard-filter-row {
    width: 100%;
  }

  .report-filter-row .form-select,
  .report-filter-row .form-control,
  .report-filter-row .btn,
  .dashboard-filter-row .form-select,
  .dashboard-filter-row .btn {
    width: 100%;
    min-width: 0;
  }

  .report-grid-general-top,
  .report-grid-general-metrics,
  .report-grid-general-charts,
  .report-grid-operator-overview,
  .report-grid-quality-overview,
  .report-grid-quality-parameters,
  .report-grid-bot-overview,
  .report-grid-bot-trend {
    grid-template-columns: 1fr;
  }

  .report-column-chart,
  .report-line-chart {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media print {
  @page {
    size: A5 portrait;
    margin: 0;
  }

  html,
  body {
    width: 148mm;
    min-height: 210mm;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  body * {
    visibility: hidden !important;
  }

  .app-shell,
  .app-main,
  .dashboard-shell,
  .dashboard-main {
    display: block !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    visibility: visible !important;
  }

  .app-sidebar,
  .app-topbar,
  .dashboard-sidepanel,
  .dashboard-header,
  .dashboard-main > .dashboard-panel:not(#operator-service-qr),
  .dashboard-main > .panel:not(#operator-service-qr) {
    display: none !important;
  }

  #operator-service-qr,
  #operator-service-qr * {
    visibility: visible !important;
  }

  #operator-service-qr {
    position: fixed !important;
    inset: 0 !important;
    display: grid !important;
    grid-template-rows: auto 1fr auto auto;
    row-gap: 5mm;
    box-sizing: border-box;
    width: 148mm !important;
    height: 210mm !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: var(--qr-print-margin, 10mm) 12mm 10mm !important;
    transform: none !important;
    background: #ffffff !important;
    border: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--qr-navy, #0b1f3a) !important;
    overflow: hidden;
    page-break-inside: avoid;
  }

  #operator-service-qr .dashboard-service-info {
    display: none !important;
  }

  #operator-service-qr .dashboard-print-brand,
  #operator-service-qr .dashboard-print-whatsapp,
  #operator-service-qr .dashboard-print-footer {
    display: flex !important;
  }

  #operator-service-qr .dashboard-print-brand {
    grid-row: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 3mm;
    margin: 0;
    text-align: center;
  }

  #operator-service-qr .dashboard-print-brand img {
    width: var(--qr-logo-size, 20mm);
    height: var(--qr-logo-size, 20mm);
    object-fit: contain;
  }

  #operator-service-qr .dashboard-print-brand-mark {
    display: grid;
    place-items: center;
    width: var(--qr-logo-size, 20mm);
    height: var(--qr-logo-size, 20mm);
    border: 2px solid var(--qr-navy, #0b1f3a);
    border-radius: 8px;
    color: var(--qr-navy, #0b1f3a);
    font-size: 20pt;
    font-weight: 900;
  }

  #operator-service-qr .dashboard-print-brand h1 {
    margin: 0;
    color: var(--qr-navy, #0b1f3a);
    font-size: 18pt;
    font-weight: 900;
    letter-spacing: 1.2px;
  }

  #operator-service-qr .dashboard-service-qr {
    grid-row: 2;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    align-self: center;
    width: var(--qr-frame-width, 94mm);
    min-height: 102mm;
    margin: 0 auto;
    padding: 6mm 8mm 7mm;
    border: 1.5px solid var(--qr-navy, #0b1f3a);
    border-radius: 8px;
    background: #ffffff !important;
  }

  #operator-service-qr .dashboard-scan-arc {
    flex: 0 0 auto;
    width: calc(var(--qr-code-size, 66mm) + 8mm);
    height: 15mm;
    margin: 0 0 1mm;
  }

  #operator-service-qr .dashboard-scan-arc text {
    fill: var(--qr-navy, #0b1f3a);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 2px;
  }

  #operator-service-qr .dashboard-service-actions,
  #operator-service-qr .dashboard-service-message,
  #operator-service-qr .dashboard-service-info p {
    display: none !important;
  }

  #operator-service-qr .dashboard-service-qr img {
    flex: 0 0 auto;
    width: var(--qr-code-size, 66mm);
    height: var(--qr-code-size, 66mm);
    object-fit: contain;
  }

  #operator-service-qr .dashboard-service-qr strong {
    display: block;
    max-width: 100%;
    margin-top: 3mm;
    color: var(--qr-navy, #0b1f3a);
    font-size: 13pt;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
  }

  #operator-service-qr .dashboard-service-qr span {
    display: block;
    margin-top: 1mm;
    color: var(--qr-whatsapp, #0f766e);
    font-size: 17pt;
    font-weight: 900;
    line-height: 1.1;
  }

  #operator-service-qr .dashboard-print-whatsapp {
    grid-row: 3;
    align-items: center;
    justify-content: center;
    gap: 4mm;
    margin: 0 auto;
    color: var(--qr-navy, #0b1f3a);
  }

  #operator-service-qr .dashboard-print-wa-icon {
    display: grid;
    place-items: center;
    width: 12mm;
    height: 12mm;
    border-radius: 50%;
    background: var(--qr-whatsapp, #16a34a);
    color: #ffffff;
    font-size: 9pt;
    font-weight: 900;
  }

  #operator-service-qr .dashboard-print-whatsapp strong {
    font-size: 16pt;
    font-weight: 900;
  }

  #operator-service-qr .dashboard-print-footer {
    grid-row: 4;
    flex-direction: column;
    gap: 2mm;
    margin: 0;
    padding-top: 5mm;
    border-top: 1px solid #cbd5e1;
    color: var(--qr-navy, #0b1f3a);
    font-size: 12pt;
    font-weight: 700;
  }
}

.tickets-shell,
.ticket-detail-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tickets-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.tickets-title {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
}

.tickets-subtitle {
  margin: 8px 0 0;
  color: #64748b;
}

.tickets-head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tickets-panel {
  padding: 16px;
  border-radius: 18px;
  overflow: visible;
}

.tickets-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tickets-filter-block,
.tickets-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tickets-filter-block .form-select {
  min-width: 220px;
}

.tickets-filter-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #64748b;
}

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

.tickets-search {
  min-width: 240px;
}

.tickets-table thead th {
  color: #5b6777;
  font-weight: 700;
  white-space: nowrap;
}

.tickets-panel .table-responsive {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 120px;
  margin-bottom: -120px;
}

.tickets-table td:last-child,
.tickets-table th:last-child {
  width: 1%;
  white-space: nowrap;
}

.tickets-table .dropdown-menu {
  z-index: 1080;
}

.tickets-table tbody td {
  vertical-align: middle;
}

.ticket-name-link {
  color: #2454d6;
  font-weight: 600;
  text-decoration: none;
}

.ticket-name-link:hover {
  text-decoration: underline;
}

.ticket-stage-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2454d6;
  font-size: 13px;
  font-weight: 700;
}

.ticket-priority-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 999px;
  margin-right: 8px;
}

.priority-low {
  background: #22c55e;
}

.priority-normal {
  background: #eab308;
}

.priority-high,
.priority-urgent {
  background: #ef4444;
}

.tickets-modal {
  border-radius: 24px;
  overflow: hidden;
}

.tickets-modal .modal-header,
.tickets-modal .modal-footer {
  border: 0;
  padding: 20px 24px;
}

.tickets-modal-eyebrow {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tickets-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr);
  gap: 24px;
  padding: 0 24px 8px;
}

.tickets-modal-main,
.tickets-modal-side,
.ticket-detail-main,
.ticket-detail-side {
  min-width: 0;
}

.tickets-modal-side,
.ticket-detail-side {
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.tickets-modal-side h4,
.ticket-side-heading {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tickets-description-area,
.ticket-description-card {
  min-height: 140px;
}

.ticket-detail-frame {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
  gap: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}

.ticket-detail-main,
.ticket-detail-side {
  padding: 22px 24px;
}

.ticket-detail-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.ticket-detail-number {
  font-size: 24px;
  font-weight: 700;
  color: #5b6777;
}

.ticket-detail-title {
  margin: 0 0 24px;
  font-size: 38px;
  line-height: 1;
}

.ticket-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.ticket-meta-label {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ticket-description-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: #fbfcfe;
}

.ticket-tabs-head {
  display: flex;
  gap: 28px;
  margin: 28px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: #64748b;
}

.ticket-tab-active {
  color: #2454d6;
  font-weight: 700;
}

.ticket-section-block {
  margin-bottom: 24px;
}

.ticket-note-form {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: #fbfcfe;
}

.ticket-stream,
.ticket-activity-list,
.ticket-attachment-stack,
.ticket-related-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ticket-stream-card,
.ticket-activity-item,
.ticket-attachment-tile,
.ticket-related-item,
.ticket-side-section {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
}

.ticket-stream-card,
.ticket-activity-item,
.ticket-side-section {
  padding: 16px;
}

.ticket-stream-card-operator_note {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.ticket-stream-card-customer_reply {
  background: linear-gradient(180deg, #fffef7, #fff8e6);
  border-color: #ead9a7;
}

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

.ticket-stream-body {
  white-space: pre-wrap;
}

.ticket-stream-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.ticket-stream-badge-operator_note {
  background: #dbeafe;
  color: #1d4ed8;
}

.ticket-stream-badge-customer_reply {
  background: #fef3c7;
  color: #92400e;
}

.ticket-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.ticket-attachment-chip,
.ticket-attachment-tile,
.ticket-related-item {
  text-decoration: none;
  color: inherit;
}

.ticket-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f8fafc;
}

.ticket-attachment-chip span,
.ticket-attachment-tile span,
.ticket-related-item span {
  color: #64748b;
}

.ticket-attachment-tile,
.ticket-related-item {
  display: block;
  padding: 14px 16px;
}

.ticket-empty-state {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, #fbfdff, #f5f8fd);
  text-align: center;
}

.ticket-empty-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: #eef4ff;
  color: #2454d6;
  font-size: 32px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .tickets-modal-body,
  .ticket-detail-frame {
    grid-template-columns: 1fr;
  }

  .tickets-modal-side,
  .ticket-detail-side {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 20px;
  }
}

@media (max-width: 768px) {
  .api-guide-layout,
  .api-guide-auth-grid,
  .api-guide-detail-grid,
  .landing-chat-prompts {
    grid-template-columns: 1fr;
  }

  .api-guide-layout {
    width: min(1320px, calc(100vw - 32px));
  }

  .api-guide-sidebar-inner {
    position: static;
  }

  .api-guide-topbar,
  .api-guide-endpoint-head {
    flex-direction: column;
    align-items: stretch;
  }

  .api-guide-meta {
    justify-content: start;
  }

  .api-guide-endpoint h2 {
    font-size: 24px;
  }

  .landing-chat-shell {
    height: auto;
  }

  .landing-topbar {
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
  }

  .landing-brand {
    gap: 10px;
  }

  .landing-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 20px;
  }

  .landing-brand strong {
    font-size: 16px;
  }

  .landing-brand small {
    font-size: 10px;
  }

  .landing-nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  .landing-nav a,
  .landing-nav .landing-operator-login,
  .landing-nav .landing-nav-dashboard {
    justify-content: center;
    min-height: 48px;
    padding: 0;
    border: 1px solid rgba(37, 84, 214, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
  }

  .landing-nav .landing-operator-login,
  .landing-nav .landing-nav-dashboard {
    width: auto;
    height: auto;
  }

  .landing-nav .landing-nav-label {
    display: none;
  }

  .landing-nav a:hover,
  .landing-nav .landing-operator-login:hover,
  .landing-nav .landing-nav-dashboard:hover {
    background: #2454d6;
    color: #ffffff;
  }

  .landing-chat-shell > .landing-chat-card {
    order: -1;
  }

  .landing-chat-card,
  .landing-chat-info,
  .landing-module-card,
  .landing-service-card,
  .landing-analytics-panel {
    padding: 16px;
  }

  .landing-chat-info {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    gap: 10px;
    height: auto;
  }

  .landing-chat-card {
    display: grid;
    grid-template-rows: minmax(220px, 320px) auto auto;
    gap: 12px;
    height: auto;
    min-height: 0;
  }

  .landing-chat-prompt-panel {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    height: auto;
    min-height: 0;
    padding: 14px;
  }

  .landing-chat-window {
    height: auto;
    min-height: 220px;
    max-height: 320px;
    padding-right: 0;
  }

  .landing-chat-form {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 0;
  }

  .landing-chat-form .btn {
    width: 100%;
    min-height: 46px;
  }

  .landing-chat-message {
    max-width: 92%;
    padding: 12px 14px;
    font-size: 15px;
  }

  .landing-section-head {
    margin-bottom: 16px;
  }

  .landing-kicker,
  .landing-section-head span,
  .landing-service-kicker,
  .landing-module-eyebrow {
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .landing-section-head h2 {
    font-size: clamp(18px, 6.4vw, 24px);
    line-height: 1.2;
  }

  .landing-hero-copy h1 {
    font-size: clamp(22px, 7vw, 30px);
    line-height: 1.18;
  }

  .landing-hero-actions .btn {
    width: 100%;
  }

  .landing-hero-copy p,
  .landing-section-head p,
  .landing-module-card p,
  .landing-service-card p,
  .landing-chat-info p {
    font-size: 15px;
    line-height: 1.65;
  }

  .landing-module-card h3,
  .landing-service-card h3,
  .landing-chat-info h3 {
    font-size: 22px;
  }

  .landing-chat-badge {
    min-height: 30px;
    padding: 0 10px;
    font-size: 13px;
  }

  .landing-stat-card {
    border-radius: 12px;
    padding: 14px;
  }

  .landing-stat-card strong {
    font-size: 26px;
  }

  .landing-stat-card span {
    font-size: 13px;
  }

  .landing-ticket-form label {
    font-size: 12px;
  }

  .landing-chat-footer {
    margin-top: 0;
  }

  .tickets-toolbar,
  .tickets-toolbar-right,
  .tickets-filter-block {
    flex-direction: column;
    align-items: stretch;
  }

  .tickets-search,
  .tickets-filter-block .form-select {
    min-width: 0;
  }

  .ticket-meta-grid {
    grid-template-columns: 1fr;
  }

  .ticket-detail-title,
  .tickets-title {
    font-size: 28px;
  }
}

@media (max-width: 991.98px) {
  .webhook-buckets-table thead {
    display: none;
  }

  .webhook-buckets-table,
  .webhook-buckets-table tbody,
  .webhook-buckets-table tr,
  .webhook-buckets-table td {
    display: block;
    width: 100%;
  }

  .webhook-buckets-table tbody tr {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: #fff;
  }

  .webhook-buckets-table tbody td {
    border: 0;
    padding: 8px 0;
  }

  .webhook-buckets-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .webhook-buckets-table tbody td[colspan] {
    text-align: left;
  }

  .webhook-buckets-table tbody td[colspan]::before {
    content: none;
  }

  .webhook-buckets-table tbody td[data-label="Aksi"] .btn {
    width: 100%;
  }
}
