@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --iq-bg: #f4f6fb;
  --iq-card: #ffffff;
  --iq-border: #e2e8f0;
  --iq-text: #0f172a;
  --iq-muted: #64748b;
  --iq-primary: #4f46e5;
  --iq-primary-soft: #e0e7ff;
  --iq-success: #22c55e;
  --iq-danger: #ef4444;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: "DM Sans", "Segoe UI", sans-serif;
  background: var(--iq-bg);
  color: var(--iq-text);
}

.shell {
  background: var(--iq-bg) !important;
  grid-template-columns: 260px 1fr !important;
}

.shell.sidebar-collapsed {
  grid-template-columns: 80px 1fr !important;
}

.sidebar {
  background: var(--iq-card) !important;
  border-right: 1px solid var(--iq-border) !important;
  box-shadow: none !important;
}

.sidebar .brand {
  min-height: 72px !important;
  border-bottom: 1px solid var(--iq-border) !important;
}

.sidebar .brand-title {
  font-size: 40px !important;
  letter-spacing: -0.03em !important;
  color: #111827 !important;
  font-weight: 800 !important;
}

.sidebar-collapse {
  width: 32px !important;
  height: 32px !important;
  border: 1px solid var(--iq-border) !important;
  background: #fff !important;
  color: #475569 !important;
}

.nav-group-label {
  color: #94a3b8 !important;
  font-size: 10px !important;
  letter-spacing: 0.16em !important;
  font-weight: 700 !important;
}

.nav-link {
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  color: #475569 !important;
  margin: 0 8px 3px !important;
  min-height: 38px !important;
}

.nav-submenu {
  display: grid !important;
  gap: 0 !important;
  margin: 0 0 2px !important;
}

.nav-sub-link {
  text-decoration: none !important;
  color: #64748b !important;
  margin: 0 8px 2px !important;
  min-height: 30px !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  padding: 5px 14px 5px 54px !important;
  font-size: 13px !important;
  display: flex !important;
  align-items: center !important;
}

.nav-sub-link:hover {
  background: #f8fafc !important;
  border-color: var(--iq-border) !important;
  color: #0f172a !important;
}

.nav-sub-link.active {
  background: var(--iq-primary-soft) !important;
  border-color: #c7d2fe !important;
  color: #3730a3 !important;
}

.sidebar.collapsed .nav-submenu {
  display: none !important;
}

.nav-link:hover {
  background: #f8fafc !important;
  border-color: var(--iq-border) !important;
  color: #0f172a !important;
}

.nav-link.active {
  background: var(--iq-primary-soft) !important;
  border-color: #c7d2fe !important;
  color: #3730a3 !important;
  box-shadow: inset 3px 0 0 var(--iq-primary) !important;
}

.nav-link-icon {
  color: #64748b !important;
}

.nav-link:hover .nav-link-icon,
.nav-link.active .nav-link-icon {
  color: var(--iq-primary) !important;
}

.sidebar.collapsed .nav-link .nav-tooltip {
  border: 1px solid var(--iq-border) !important;
  background: #fff !important;
  color: #0f172a !important;
}

.topbar {
  min-height: 72px !important;
  padding: 12px 24px !important;
  background: #fff !important;
  border-bottom: 1px solid var(--iq-border) !important;
}

.subtitle {
  color: #64748b !important;
  font-size: 12px !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase;
}

.topbar-search {
  height: 40px !important;
  border-radius: 10px !important;
  border-color: var(--iq-border) !important;
  background: #f8fafc !important;
}

.topbar-search input {
  background: transparent !important;
  border: 0 !important;
}

.topbar-icon-btn,
.profile-trigger,
.menu-toggle,
.agency-switch-control {
  border-color: var(--iq-border) !important;
  background: #fff !important;
}

.content {
  padding: 20px !important;
  background: var(--iq-bg) !important;
}

.panel {
  border-radius: 14px !important;
  border: 1px solid var(--iq-border) !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

.setup-reminder {
  border: 1px solid #fde68a !important;
  background: #fef9c3 !important;
}

.btn-primary {
  background: var(--iq-primary) !important;
  border-color: var(--iq-primary) !important;
}

.btn-primary:hover {
  background: #4338ca !important;
}

.btn-inline.neutral {
  background: #334155 !important;
}

.twk-home {
  display: grid;
  gap: 16px;
}

.twk-overline {
  margin: 0 0 8px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
  font-weight: 700;
}

.twk-card {
  border: 1px solid var(--iq-border);
  border-radius: 14px;
  background: #fff;
  padding: 18px;
}

.twk-home-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.twk-home-hero h2 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -0.02em;
}

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

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

.twk-kpi-card {
  padding: 16px;
  background: linear-gradient(165deg, #fff, #f8fafc);
}

.twk-kpi-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.twk-kpi-card strong {
  display: block;
  margin: 6px 0 2px;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.twk-kpi-card span {
  color: #94a3b8;
  font-size: 12px;
}

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

.twk-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.twk-card-head h3 {
  margin: 0;
  font-size: 16px;
}

.twk-inline-link {
  font-size: 13px;
  font-weight: 600;
  color: #4f46e5;
  text-decoration: none;
}

.twk-inline-link:hover {
  text-decoration: underline;
}

.twk-stage-list {
  display: grid;
  gap: 12px;
}

.twk-stage-row {
  display: grid;
  gap: 8px;
}

.twk-stage-row-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.twk-stage-row-title strong {
  font-size: 14px;
}

.twk-stage-row-title span {
  color: #64748b;
  font-size: 13px;
}

.twk-stage-row-progress {
  height: 8px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  overflow: hidden;
}

.twk-stage-row-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #4f46e5);
}

.twk-health-grid {
  display: grid;
  gap: 10px;
}

.twk-health-grid > div {
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.twk-health-grid span {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.twk-health-grid strong {
  font-size: 18px;
}

.twk-table {
  display: grid;
  gap: 6px;
}

.twk-table-head,
.twk-table-row {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr 2fr 0.95fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}

.twk-table-head {
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--iq-border);
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.twk-table-row {
  border: 1px solid var(--iq-border);
  border-radius: 10px;
  font-size: 13px;
}

.twk-table-row span:nth-child(3) {
  color: #475569;
}

.twk-table-card:last-child .twk-table-head,
.twk-table-card:last-child .twk-table-row {
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

.twk-inbox-page .panel.twk-inbox-shell {
  padding: 12px;
}

@media (min-width: 1161px) {
  .twk-inbox-page {
    min-height: calc(100dvh - 112px);
  }

  .twk-inbox-page .panel.twk-inbox-shell {
    min-height: calc(100dvh - 112px);
    height: calc(100dvh - 112px);
    display: grid;
    grid-template-rows: auto 1fr;
  }

  .inbox-layout {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .inbox-leads-panel,
  .inbox-chat,
  .inbox-detail-panel {
    min-height: 0 !important;
    height: 100%;
  }

  .inbox-messages {
    min-height: 0 !important;
    max-height: none !important;
  }
}

.twk-inbox-shell-head {
  align-items: center;
  border-bottom: 1px solid var(--iq-border);
  padding: 4px 4px 12px;
  margin-bottom: 10px;
}

.twk-inbox-shell-head h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.inbox-layout {
  grid-template-columns: 300px minmax(0, 1fr) 270px !important;
  gap: 10px !important;
}

.inbox-panel {
  background: #fff !important;
  border: 1px solid var(--iq-border) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.inbox-leads-panel,
.inbox-chat,
.inbox-detail-panel {
  min-height: 650px;
}

.inbox-panel-head {
  border-bottom: 1px solid var(--iq-border);
}

.inbox-thread-search {
  background: #fff !important;
}

.inbox-lead {
  border: 1px solid var(--iq-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
}

.inbox-lead.active {
  border-color: #c7d2fe !important;
  background: #eef2ff !important;
}

.inbox-lead.unrouted {
  border-color: #facc15 !important;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.12) !important;
}

.inbox-unread-badge {
  background: var(--iq-danger) !important;
  color: #fff !important;
}

.inbox-chat-head {
  border-bottom: 1px solid var(--iq-border);
  background: #fff;
}

.inbox-chat-title {
  font-size: 22px !important;
}

.inbox-messages {
  background: #f1f5f9 !important;
  min-height: 420px;
  max-height: calc(100vh - 390px);
}

.inbox-msg {
  border-radius: 12px !important;
}

.inbox-msg.inbound {
  background: #fff !important;
  border: 1px solid var(--iq-border) !important;
}

.inbox-msg.outbound {
  background: #dcfce7 !important;
  border: 1px solid #bbf7d0 !important;
}

.inbox-compose {
  border-top: 1px solid var(--iq-border);
  background: #fff;
}

.inbox-compose textarea {
  min-height: 82px;
}

.inbox-head-action,
.inbox-open-card-btn {
  border: 1px solid var(--iq-border) !important;
  background: #fff !important;
}

.inbox-detail-section {
  border: 1px solid var(--iq-border);
  border-radius: 10px;
  background: #f8fafc;
}

.kanban-toolbar-metrics {
  display: none !important;
}

.kanban-board-surface {
  overflow-y: hidden !important;
  overflow-x: auto !important;
  background: transparent !important;
  border-color: transparent !important;
}

.kanban {
  min-width: max-content !important;
}

.kanban-col,
.kanban-col-enterprise {
  background: #f8fafc !important;
  border: 1px solid var(--iq-border) !important;
  min-height: 460px;
}

.twk-calendar-shell {
  background: #fff !important;
  border: 1px solid var(--iq-border) !important;
  border-radius: 14px !important;
  padding: 16px !important;
  overflow: hidden;
}

.twk-calendar-app {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.twk-calendar-side {
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #ffffff;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.twk-calendar-create {
  width: 100%;
  justify-content: center;
  gap: 8px;
}

.twk-calendar-side-section {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.twk-calendar-side-section h4 {
  margin: 0;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.twk-calendar-side-section label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
}

.twk-calendar-side-section label span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.twk-calendar-side-section input[type="checkbox"] {
  width: 15px;
  height: 15px;
}

.twk-calendar-main {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.twk-calendar-head {
  margin-bottom: 0 !important;
  align-items: flex-start !important;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.twk-calendar-title-wrap {
  display: grid;
  gap: 4px;
}

.twk-calendar-title-wrap .twk-overline {
  margin: 0;
}

.twk-calendar-title-wrap h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.twk-calendar-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.twk-calendar-nav {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap;
}

.twk-icon-btn {
  width: 38px;
  min-width: 38px;
  padding: 0 !important;
}

.twk-btn-today {
  gap: 6px;
}

.twk-calendar-month {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 190px;
  justify-content: center;
  text-transform: capitalize;
  color: #0f172a;
  font-size: 14px;
}

.twk-calendar-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex-wrap: wrap;
}

.twk-calendar-legend-item {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--iq-border);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #334155;
  background: #f8fafc;
}

.twk-calendar-legend-item.inbound {
  border-color: #bae6fd;
  color: #0369a1;
  background: #f0f9ff;
}

.twk-calendar-legend-item.outbound {
  border-color: #bbf7d0;
  color: #166534;
  background: #f0fdf4;
}

.twk-calendar-legend-item.created {
  border-color: #c7d2fe;
  color: #4338ca;
  background: #eef2ff;
}

.twk-calendar-board {
  overflow-x: auto !important;
  overflow-y: hidden;
  padding-bottom: 4px;
}

.twk-calendar-weekdays,
.twk-calendar-grid {
  width: max(100%, 980px);
  min-width: 980px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.twk-calendar-weekdays span {
  border: 1px solid var(--iq-border);
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 6px;
}

.twk-calendar-day {
  border: 1px solid var(--iq-border);
  border-radius: 12px;
  background: #fff;
  min-height: 175px;
  padding: 8px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 6px;
}

.twk-calendar-day.outside {
  background: #f8fafc;
  opacity: 0.75;
}

.twk-calendar-day.today {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.2);
}

.twk-calendar-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.twk-calendar-day-head strong {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.twk-calendar-day-head span {
  min-width: 22px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  padding: 4px 6px;
}

.twk-calendar-events {
  display: grid;
  gap: 6px;
  max-height: 132px;
  overflow-y: auto;
  padding-right: 2px;
}

.twk-calendar-event {
  text-align: left;
  border: 1px solid var(--iq-border);
  border-left: 3px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  padding: 6px 7px;
  display: grid;
  gap: 3px;
  color: #0f172a;
}

.twk-calendar-event strong {
  font-size: 11px;
  line-height: 1.15;
}

.twk-calendar-event p {
  margin: 0;
  font-size: 11px;
  line-height: 1.25;
  color: #475569;
}

.twk-calendar-event small {
  font-size: 10px;
  color: #64748b;
}

.twk-calendar-event.inbound {
  border-left-color: #0ea5e9;
  background: #f0f9ff;
}

.twk-calendar-event.outbound {
  border-left-color: #22c55e;
  background: #f0fdf4;
}

.twk-calendar-event.created {
  border-left-color: #6366f1;
  background: #eef2ff;
}

.twk-calendar-more {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

@media (max-width: 1400px) {
  .twk-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inbox-layout {
    grid-template-columns: 280px minmax(0, 1fr) 240px !important;
  }
}

@media (max-width: 1160px) {
  .twk-home-split {
    grid-template-columns: 1fr;
  }

  .twk-calendar-head {
    display: grid !important;
    gap: 10px;
  }

  .twk-calendar-nav {
    flex-wrap: wrap;
  }

  .inbox-layout {
    grid-template-columns: 1fr !important;
  }

  .inbox-leads-panel,
  .inbox-chat,
  .inbox-detail-panel {
    min-height: unset;
  }
}

@media (max-width: 860px) {
  .twk-home-hero {
    display: grid;
  }

  .twk-kpi-grid {
    grid-template-columns: 1fr;
  }

  .twk-table-head,
  .twk-table-row {
    grid-template-columns: 1fr !important;
    gap: 4px;
  }

  .twk-calendar-month {
    min-width: 140px;
  }

  .twk-calendar-legend {
    flex-wrap: wrap;
  }
}

/* Header + button normalization */
.subtitle {
  white-space: nowrap;
}

.topbar-search {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  width: auto !important;
  flex: 0 1 520px !important;
  min-width: 280px !important;
  max-width: 560px !important;
  padding: 0 12px 0 38px !important;
}

.topbar-search > svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.topbar-search input {
  width: 100% !important;
  min-width: 0;
  height: 100%;
  font-size: 14px !important;
  line-height: 1;
}

.agency-switch {
  min-width: 270px;
  gap: 0 !important;
}

.btn-primary,
.btn-inline,
.btn-secondary,
.inbox-filter-btn,
.inbox-head-action,
.inbox-open-card-btn,
.inbox-chat-back,
.kanban-view-tab,
.kanban-filter-tab,
.lead-modal-close,
.password-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  border: 1px solid var(--iq-border) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.btn-primary {
  background: var(--iq-primary) !important;
  border-color: var(--iq-primary) !important;
  color: #fff !important;
}

.btn-primary:hover {
  background: #4338ca !important;
  border-color: #4338ca !important;
}

.btn-inline,
.btn-inline.neutral,
.btn-secondary,
.inbox-head-action,
.inbox-open-card-btn,
.inbox-chat-back,
.kanban-view-tab,
.kanban-filter-tab,
.lead-modal-close,
.password-toggle {
  background: #fff !important;
  color: #334155 !important;
  border-color: var(--iq-border) !important;
}

.btn-inline:hover,
.btn-inline.neutral:hover,
.btn-secondary:hover,
.inbox-head-action:hover,
.inbox-open-card-btn:hover,
.inbox-chat-back:hover,
.kanban-view-tab:hover,
.kanban-filter-tab:hover,
.lead-modal-close:hover,
.password-toggle:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.btn-inline.danger {
  background: #fff1f2 !important;
  color: #b91c1c !important;
  border-color: #fecdd3 !important;
}

.btn-inline.danger:hover {
  background: #ffe4e6 !important;
  border-color: #fda4af !important;
}

.kanban-view-tab.active,
.kanban-filter-tab.active,
.inbox-filter-btn.active {
  background: var(--iq-primary) !important;
  border-color: var(--iq-primary) !important;
  color: #fff !important;
}

@media (max-width: 1200px) {
  .topbar-search {
    min-width: 220px !important;
    flex-basis: 340px !important;
  }
}

.topbar-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-right: 10px !important;
}

.topbar-icon-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 11px !important;
  color: #334155 !important;
  position: relative;
}

.topbar-icon-btn-notifications {
  overflow: visible !important;
}

.topbar-icon-btn svg {
  width: 16px !important;
  height: 16px !important;
}

.topbar-icon-btn:hover {
  background: #f8fafc !important;
}

.topbar-icon-badge {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 99px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

.topbar-icon-badge.is-zero {
  background: #cbd5e1;
  color: #475569;
  box-shadow: none;
}

.topbar-notifications-menu {
  width: 360px !important;
  max-height: 420px;
  overflow-y: auto;
}

.topbar-notifications-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.topbar-notifications-header strong {
  color: #334155;
  font-size: 12px;
}

.topbar-notifications-empty {
  padding: 12px;
  color: #64748b;
  font-size: 13px;
}

.topbar-notification-item {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 10px !important;
  white-space: normal !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.topbar-notification-item > div {
  flex: 1;
  min-width: 0;
}

.topbar-notification-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.topbar-notification-item p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.topbar-notification-item > span {
  color: #94a3b8;
  font-size: 11px;
  white-space: nowrap;
}

.topbar-notification-footer {
  justify-content: center !important;
  font-weight: 700 !important;
}

body.iq-theme-dark {
  --iq-bg: #0f172a;
  --iq-border: #334155;
  --iq-primary: #6366f1;
  color: #e2e8f0;
}

body.iq-theme-dark .shell,
body.iq-theme-dark .content {
  background: #0f172a !important;
}

body.iq-theme-dark .panel,
body.iq-theme-dark .topbar,
body.iq-theme-dark .sidebar,
body.iq-theme-dark .topbar-icon-btn,
body.iq-theme-dark .profile-trigger,
body.iq-theme-dark .menu-toggle,
body.iq-theme-dark .agency-switch-control {
  background: #111827 !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

body.iq-theme-dark .subtitle,
body.iq-theme-dark .status,
body.iq-theme-dark .hint {
  color: #94a3b8 !important;
}

body.iq-theme-dark .topbar-search {
  background: #0b1220 !important;
  border-color: #334155 !important;
}

body.iq-theme-dark .topbar-search input {
  color: #e2e8f0 !important;
}

/* ===== Dashboard analytics (Tailwick style) ===== */
.iq-analytics-page {
  display: grid;
  gap: 16px;
}

.iq-analytics-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
}

.iq-analytics-overline {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.iq-analytics-hero h1 {
  margin: 0 0 8px;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.iq-analytics-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.iq-analytics-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.iq-stat-card {
  padding: 18px;
  background: #ffffff;
}

.iq-stat-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.iq-stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.iq-stat-card span {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
  font-size: 12px;
}

.iq-stat-card.success {
  border-left: 3px solid #22c55e !important;
}

.iq-stat-card.warning {
  border-left: 3px solid #f59e0b !important;
}

.iq-stat-card.info {
  border-left: 3px solid #3b82f6 !important;
}

.iq-stat-card.danger {
  border-left: 3px solid #ef4444 !important;
}

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

.iq-analytics-card {
  padding: 16px;
}

.iq-analytics-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.iq-analytics-card-head h3 {
  margin: 0;
  font-size: 18px;
}

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

.iq-source-block {
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(
    165deg,
    rgba(79, 70, 229, calc(var(--iq-weight, 0.1) * 0.35 + 0.06)),
    rgba(255, 255, 255, 0.98)
  );
}

.iq-source-block strong {
  display: block;
  font-size: 13px;
}

.iq-source-block span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.iq-stage-list {
  display: grid;
  gap: 10px;
}

.iq-stage-row {
  display: grid;
  gap: 8px;
}

.iq-stage-row > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.iq-stage-row strong {
  font-size: 14px;
}

.iq-stage-row span {
  color: #64748b;
  font-size: 12px;
}

.iq-stage-progress {
  height: 8px;
  border-radius: 999px;
  border: 1px solid #dbe3ee;
  background: #f8fafc;
  overflow: hidden;
}

.iq-stage-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #6366f1);
}

.iq-line-chart {
  display: grid;
  gap: 10px;
}

.iq-line-chart svg {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  border: 1px solid #dbe3ee;
  background: #f8fafc;
}

.iq-line-fill {
  fill: rgba(79, 70, 229, 0.12);
}

.iq-line-stroke {
  fill: none;
  stroke: #4f46e5;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.iq-line-labels {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 6px;
  font-size: 11px;
  color: #64748b;
}

.iq-bar-chart {
  min-height: 220px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px 10px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
}

.iq-bar {
  height: 100%;
  display: grid;
  justify-items: center;
  align-content: end;
  gap: 4px;
}

.iq-bar-col {
  display: block;
  width: 100%;
  max-width: 26px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #6366f1, #4338ca);
  min-height: 6px;
}

.iq-bar small {
  font-size: 10px;
  color: #64748b;
}

.iq-bar strong {
  font-size: 10px;
  color: #334155;
}

.iq-inline-link {
  color: #4f46e5;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.iq-inline-link:hover {
  text-decoration: underline;
}

.iq-analytics-table {
  display: grid;
  gap: 6px;
}

.iq-analytics-table-head,
.iq-analytics-table-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 2fr 0.8fr;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}

.iq-analytics-table-head {
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 700;
}

.iq-analytics-table-row {
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #ffffff;
  font-size: 13px;
}

/* ===== Calendar app layout ===== */
.twk-calendar-app {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 12px;
}

.twk-calendar-side {
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #ffffff;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.twk-calendar-create {
  width: 100%;
  justify-content: center;
  gap: 8px;
}

.twk-calendar-side-section {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.twk-calendar-side-section h4 {
  margin: 0;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.twk-calendar-side-section label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
}

.twk-calendar-side-section label span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.twk-calendar-side-section input[type="checkbox"] {
  width: 15px;
  height: 15px;
}

.twk-calendar-main {
  min-width: 0;
}

.twk-calendar-legend-side {
  display: grid;
  gap: 8px;
}

.twk-calendar-legend-side .twk-calendar-legend-item {
  justify-content: center;
}

/* ===== Chat app layout ===== */
.inbox-layout.inbox-layout-tailwick {
  grid-template-columns: 290px 54px minmax(0, 1fr) 270px !important;
}

.inbox-app-rail {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px 8px;
}

.inbox-rail-btn {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #dbe3ee;
  background: #ffffff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.inbox-rail-btn:hover {
  background: #f8fafc;
  color: #1e293b;
}

.inbox-rail-btn.active {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

.inbox-head-action.icon {
  width: 34px;
  min-height: 34px !important;
  padding: 0 !important;
}

.inbox-chat-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inbox-open-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.inbox-messages {
  background: #edf2fb url("/assets/chat-DdXYAt3u.jpg") center/cover no-repeat;
  background-blend-mode: lighten;
}

.inbox-attach-btn {
  gap: 6px;
}

.inbox-send-btn {
  gap: 6px;
}

@media (max-width: 1400px) {
  .iq-analytics-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .iq-source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inbox-layout.inbox-layout-tailwick {
    grid-template-columns: 260px 52px minmax(0, 1fr) 250px !important;
  }
}

@media (max-width: 1160px) {
  .iq-analytics-grid {
    grid-template-columns: 1fr;
  }

  .iq-analytics-hero {
    display: grid;
  }

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

  .twk-calendar-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inbox-layout.inbox-layout-tailwick {
    grid-template-columns: 1fr !important;
  }

  .inbox-app-rail {
    display: none;
  }
}

@media (max-width: 860px) {
  .iq-analytics-stat-grid {
    grid-template-columns: 1fr;
  }

  .iq-source-grid {
    grid-template-columns: 1fr;
  }

  .iq-analytics-table-head,
  .iq-analytics-table-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .twk-calendar-side {
    grid-template-columns: 1fr;
  }

  .twk-calendar-weekdays,
  .twk-calendar-grid {
    min-width: 760px;
    width: max(100%, 760px);
  }

  .twk-calendar-month {
    min-width: 150px;
  }
}

/* ===== Final alignment fixes (Tailwick parity) ===== */
.topbar {
  gap: 16px !important;
}

.subtitle {
  flex: 0 0 auto;
  white-space: nowrap;
}

.topbar-search {
  flex: 0 1 560px !important;
  min-width: 320px !important;
  max-width: 560px !important;
}

.topbar-actions {
  margin-right: 0 !important;
  gap: 12px !important;
}

.topbar-icon-btn {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
}

.topbar-icon-btn svg {
  width: 15px !important;
  height: 15px !important;
}

.agency-switch {
  min-width: 300px !important;
}

.kanban-command-bar {
  align-items: center !important;
}

.kanban-command-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}

.kanban-toolbar,
.kanban-status-row {
  display: none !important;
}

.twk-inbox-page {
  min-height: calc(100dvh - 108px);
}

.twk-inbox-page .panel.twk-inbox-shell {
  min-height: calc(100dvh - 108px) !important;
  height: calc(100dvh - 108px) !important;
  display: grid !important;
  grid-template-rows: auto 1fr !important;
}

.inbox-layout.inbox-layout-tailwick {
  height: 100% !important;
  min-height: 0 !important;
}

.inbox-leads-panel,
.inbox-chat,
.inbox-detail-panel {
  min-height: 0 !important;
  height: 100% !important;
}

.inbox-chat {
  display: grid !important;
  grid-template-rows: auto 1fr auto !important;
}

.inbox-leads,
.inbox-detail-body,
.inbox-messages {
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
}

.inbox-compose {
  position: sticky;
  bottom: 0;
  z-index: 2;
}

@media (max-width: 1260px) {
  .topbar-search {
    min-width: 260px !important;
    flex-basis: 380px !important;
  }
}

@media (max-width: 1024px) {
  .topbar-search {
    display: none !important;
  }

  .agency-switch {
    min-width: 220px !important;
  }
}

@media (max-width: 1160px) {
  .twk-inbox-page .panel.twk-inbox-shell {
    min-height: auto !important;
    height: auto !important;
  }
}

/* ===== Dark mode consistency (all screens) ===== */
body.iq-theme-dark {
  --iq-bg: #0a1020;
  --iq-card: #0f172a;
  --iq-border: #25324a;
  --iq-text: #e2e8f0;
  --iq-muted: #94a3b8;
}

body.iq-theme-dark,
body.iq-theme-dark .status,
body.iq-theme-dark .hint,
body.iq-theme-dark .subtitle {
  color: var(--iq-muted) !important;
}

body.iq-theme-dark .panel,
body.iq-theme-dark .table,
body.iq-theme-dark .row,
body.iq-theme-dark .row.head,
body.iq-theme-dark .topbar,
body.iq-theme-dark .sidebar,
body.iq-theme-dark .inbox-panel,
body.iq-theme-dark .inbox-chat-head,
body.iq-theme-dark .inbox-compose,
body.iq-theme-dark .inbox-detail-section,
body.iq-theme-dark .kanban-col,
body.iq-theme-dark .kanban-col-enterprise,
body.iq-theme-dark .kanban-calendar.twk-calendar-shell,
body.iq-theme-dark .twk-calendar-day,
body.iq-theme-dark .twk-calendar-weekdays span,
body.iq-theme-dark .twk-calendar-event,
body.iq-theme-dark .twk-table-head,
body.iq-theme-dark .twk-table-row,
body.iq-theme-dark .topbar-icon-btn,
body.iq-theme-dark .profile-trigger,
body.iq-theme-dark .menu-toggle,
body.iq-theme-dark .agency-switch-control {
  background: #0f172a !important;
  border-color: var(--iq-border) !important;
  color: var(--iq-text) !important;
}

body.iq-theme-dark .crm-overline,
body.iq-theme-dark .twk-overline,
body.iq-theme-dark .inbox-panel-head,
body.iq-theme-dark .inbox-chat-sub,
body.iq-theme-dark .inbox-lead-meta,
body.iq-theme-dark .inbox-msg-time,
body.iq-theme-dark .twk-calendar-subtitle,
body.iq-theme-dark .twk-calendar-day-head span,
body.iq-theme-dark .twk-calendar-event p,
body.iq-theme-dark .twk-calendar-event small,
body.iq-theme-dark .kanban-col-summary,
body.iq-theme-dark .kanban-meta,
body.iq-theme-dark .kanban-meta-list span {
  color: var(--iq-muted) !important;
}

body.iq-theme-dark h1,
body.iq-theme-dark h2,
body.iq-theme-dark h3,
body.iq-theme-dark h4,
body.iq-theme-dark strong,
body.iq-theme-dark .inbox-lead-name,
body.iq-theme-dark .inbox-chat-title,
body.iq-theme-dark .kanban-title,
body.iq-theme-dark .kanban-col-title,
body.iq-theme-dark .twk-calendar-day-head strong,
body.iq-theme-dark .twk-calendar-month,
body.iq-theme-dark .twk-calendar-event strong {
  color: var(--iq-text) !important;
}

body.iq-theme-dark input,
body.iq-theme-dark select,
body.iq-theme-dark textarea,
body.iq-theme-dark .field input,
body.iq-theme-dark .field select,
body.iq-theme-dark .field textarea,
body.iq-theme-dark .inline-input,
body.iq-theme-dark .inbox-thread-search,
body.iq-theme-dark .inbox-compose textarea,
body.iq-theme-dark .inbox-detail-form input,
body.iq-theme-dark .topbar-search,
body.iq-theme-dark .kanban-search input {
  background: #0b1326 !important;
  border-color: #2b3b58 !important;
  color: var(--iq-text) !important;
}

body.iq-theme-dark input::placeholder,
body.iq-theme-dark textarea::placeholder {
  color: #7f8da4 !important;
}

body.iq-theme-dark .inbox-lead {
  background: #111b31 !important;
  border-color: #2b3b58 !important;
  color: var(--iq-text) !important;
}

body.iq-theme-dark .inbox-lead.active {
  background: #1b2742 !important;
  border-color: #455a86 !important;
}

body.iq-theme-dark .inbox-lead-preview {
  color: #c2d1e6 !important;
}

body.iq-theme-dark .inbox-messages {
  background: #0a1224 !important;
  background-image: none !important;
}

body.iq-theme-dark .inbox-msg.inbound {
  background: #111c33 !important;
  border-color: #2d3f5f !important;
  color: var(--iq-text) !important;
}

body.iq-theme-dark .inbox-msg.outbound {
  background: #15382b !important;
  border-color: #235843 !important;
  color: #d9fbe8 !important;
}

body.iq-theme-dark .inbox-msg-status.sent,
body.iq-theme-dark .inbox-msg-status.delivered {
  color: #93c5fd !important;
}

body.iq-theme-dark .inbox-msg-status.read {
  color: #67e8f9 !important;
}

body.iq-theme-dark .inbox-head-action,
body.iq-theme-dark .inbox-open-card-btn,
body.iq-theme-dark .inbox-chat-back,
body.iq-theme-dark .inbox-filter-btn,
body.iq-theme-dark .kanban-view-tab,
body.iq-theme-dark .kanban-filter-tab,
body.iq-theme-dark .btn-inline,
body.iq-theme-dark .btn-inline.neutral,
body.iq-theme-dark .btn-secondary,
body.iq-theme-dark .lead-modal-close,
body.iq-theme-dark .password-toggle {
  background: #131f38 !important;
  border-color: #2b3b58 !important;
  color: var(--iq-text) !important;
}

body.iq-theme-dark .inbox-head-action:hover,
body.iq-theme-dark .inbox-open-card-btn:hover,
body.iq-theme-dark .inbox-chat-back:hover,
body.iq-theme-dark .inbox-filter-btn:hover,
body.iq-theme-dark .kanban-view-tab:hover,
body.iq-theme-dark .kanban-filter-tab:hover,
body.iq-theme-dark .btn-inline:hover,
body.iq-theme-dark .btn-inline.neutral:hover,
body.iq-theme-dark .btn-secondary:hover,
body.iq-theme-dark .lead-modal-close:hover,
body.iq-theme-dark .password-toggle:hover {
  background: #1a2948 !important;
  border-color: #3a4d74 !important;
}

body.iq-theme-dark .btn-inline.danger {
  background: #3a1620 !important;
  border-color: #6b2232 !important;
  color: #fecdd3 !important;
}

body.iq-theme-dark .kanban-view-tab.active,
body.iq-theme-dark .kanban-filter-tab.active,
body.iq-theme-dark .inbox-filter-btn.active,
body.iq-theme-dark .btn-primary {
  background: #4f46e5 !important;
  border-color: #4f46e5 !important;
  color: #ffffff !important;
}

body.iq-theme-dark .kanban-board-surface,
body.iq-theme-dark .kanban-cards,
body.iq-theme-dark .kanban-card,
body.iq-theme-dark .kanban-shell,
body.iq-theme-dark .kanban-list-view,
body.iq-theme-dark .kanban-activities,
body.iq-theme-dark .kanban-calendar {
  background: transparent !important;
}

body.iq-theme-dark .kanban-card {
  background: #121d33 !important;
  border-color: #2b3b58 !important;
}

body.iq-theme-dark .kanban-empty {
  background: #0d172d !important;
  border-color: #2b3b58 !important;
  color: var(--iq-muted) !important;
}

body.iq-theme-dark .twk-calendar-day.outside {
  background: #0d172d !important;
  opacity: 1 !important;
}

body.iq-theme-dark .twk-calendar-legend-item {
  background: #111b31 !important;
  border-color: #2b3b58 !important;
  color: #c8d5e7 !important;
}

body.iq-theme-dark .twk-calendar-event.inbound {
  background: #10263a !important;
  border-left-color: #38bdf8 !important;
}

body.iq-theme-dark .twk-calendar-event.outbound {
  background: #173326 !important;
  border-left-color: #4ade80 !important;
}

body.iq-theme-dark .twk-calendar-event.created {
  background: #1b2542 !important;
  border-left-color: #818cf8 !important;
}

body.iq-theme-dark .topbar-notifications-menu,
body.iq-theme-dark .topbar-notification-item,
body.iq-theme-dark .topbar-notifications-empty {
  background: #0f172a !important;
  color: var(--iq-text) !important;
  border-color: #2b3b58 !important;
}

body.iq-theme-dark .topbar-notification-item strong {
  color: var(--iq-text) !important;
}

body.iq-theme-dark .topbar-notification-item p,
body.iq-theme-dark .topbar-notification-item > span {
  color: var(--iq-muted) !important;
}

body.iq-theme-dark .topbar-icon-badge {
  border-color: #0f172a !important;
}

body.iq-theme-dark .topbar-icon-badge.is-zero {
  background: #334155 !important;
  color: #cbd5e1 !important;
}

/* ===== Inbox icon button refinement ===== */
.inbox-app-rail {
  gap: 10px !important;
  padding: 12px 8px !important;
}

.inbox-rail-btn {
  width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 12px !important;
  border: 1px solid #cfd9e7 !important;
  background: #ffffff !important;
  color: #475569 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
  transition: all 0.15s ease !important;
}

.inbox-rail-btn svg {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 1.9 !important;
}

.inbox-rail-btn:hover {
  color: #1e293b !important;
  border-color: #b9c6d9 !important;
  background: #f8fafc !important;
}

.inbox-rail-btn.active {
  color: #4f46e5 !important;
  border-color: #c7d2fe !important;
  background: #eef2ff !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08) !important;
}

.inbox-chat-head-actions {
  gap: 8px !important;
}

.inbox-head-action.icon,
.inbox-chat-back {
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  border: 1px solid #cfd9e7 !important;
  background: #ffffff !important;
  color: #334155 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

.inbox-chat-back svg,
.inbox-head-action.icon svg {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 1.95 !important;
}

.inbox-head-action.icon:hover,
.inbox-chat-back:hover {
  color: #0f172a !important;
  border-color: #b9c6d9 !important;
  background: #f8fafc !important;
}

body.iq-theme-dark .inbox-rail-btn,
body.iq-theme-dark .inbox-head-action.icon,
body.iq-theme-dark .inbox-chat-back {
  background: #131f38 !important;
  border-color: #2b3b58 !important;
  color: #dbe5f4 !important;
  box-shadow: none !important;
}

body.iq-theme-dark .inbox-rail-btn.active {
  background: #1a2645 !important;
  border-color: #4f46e5 !important;
  color: #a5b4fc !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2) !important;
}

body.iq-theme-dark .inbox-rail-btn:hover,
body.iq-theme-dark .inbox-head-action.icon:hover,
body.iq-theme-dark .inbox-chat-back:hover {
  background: #1a2948 !important;
  border-color: #3a4d74 !important;
  color: #ffffff !important;
}

/* ===== HOTFIX: VPS deploy sync (logo + icon alignment) ===== */
.sidebar .brand-title {
  font-size: 25px !important;
  line-height: 1.02 !important;
}

.topbar-icon-btn,
.topbar-icon-btn-notifications {
  position: relative !important;
  overflow: visible !important;
}

.topbar-icon-badge {
  top: -6px !important;
  right: -6px !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 4px !important;
  line-height: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.inbox-head-action.icon,
.inbox-chat-back,
.inbox-rail-btn {
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.inbox-head-action.icon svg,
.inbox-chat-back svg,
.inbox-rail-btn svg {
  width: 17px !important;
  height: 17px !important;
}

.btn-inline {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  line-height: 1 !important;
}

.btn-inline svg {
  flex: 0 0 auto !important;
  width: 16px !important;
  height: 16px !important;
}

/* ===== HOTFIX: VPS deploy sync (logo + icon alignment) ===== */
.sidebar .brand-title {
  font-size: 25px !important;
  line-height: 1.02 !important;
}

.topbar-icon-btn,
.topbar-icon-btn-notifications {
  position: relative !important;
  overflow: visible !important;
}

.topbar-icon-badge {
  top: -6px !important;
  right: -6px !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 4px !important;
  line-height: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.inbox-head-action.icon,
.inbox-chat-back,
.inbox-rail-btn {
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.inbox-head-action.icon svg,
.inbox-chat-back svg,
.inbox-rail-btn svg {
  width: 17px !important;
  height: 17px !important;
}

.btn-inline {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  line-height: 1 !important;
}

.btn-inline svg {
  flex: 0 0 auto !important;
  width: 16px !important;
  height: 16px !important;
}
