/* ZaloDesk adaptation of user-provided Metronic Demo 1.
   Core CSS and KeenIcons are served unchanged/extracted under vendor/metronic. */
:root {
  --app-bg: #f9fafb;
  --surface: #fff;
  --surface-soft: #f9f9f9;
  --surface-hover: #f4f7fc;
  --chat-bg: #f4f6f9;
  --text: #071437;
  --text-secondary: #78829d;
  --border: #f1f1f4;
  --brand: #1b84ff;
  --brand-soft: #eff6ff;
  --outgoing: #e8f2ff;
  --warning: #b57400;
  --warning-bg: #fff8dd;
  --success: #17a075;
  --success-bg: #dfffea;
  --nav-bg: #fff;
  --shadow: 0 3px 4px 0 #00000003;
  --radius: 0.5rem;
  --background: var(--surface);
  --foreground: var(--text);
  --card: var(--surface);
  --card-foreground: var(--text);
  --primary: #1b84ff;
  --primary-foreground: #fff;
  --muted-foreground: var(--text-secondary);
  --input: #dbdfe9;
  --ring: #a4caff;
}
:root[data-theme="dark"] {
  --app-bg: #0f1014;
  --surface: #15171c;
  --surface-soft: #1b1c22;
  --surface-hover: #20232d;
  --chat-bg: #101217;
  --text: #f5f5f5;
  --text-secondary: #9a9cae;
  --border: #26272f;
  --brand: #6ca7ff;
  --brand-soft: #182943;
  --outgoing: #1c3455;
  --warning: #efbd5c;
  --warning-bg: #362c18;
  --success: #62d6a6;
  --success-bg: #17352b;
  --nav-bg: #15171c;
  --input: #363843;
  --primary: #1b84ff;
  --muted: #1b1c22;
  --accent: #20232d;
  --popover: #15171c;
  --popover-foreground: #f5f5f5;
  --shadow: none;
}
:root {
  --sidebar-size: 250px;
  --topbar-size: 58px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  font-size: 14px;
}
body {
  line-height: 1.5;
}
.shell {
  grid-template-columns: var(--sidebar-size) minmax(0, 1fr);
  min-height: calc(100dvh - var(--topbar-size));
}
.shell > aside {
  width: var(--sidebar-size);
  background: var(--nav-bg);
  padding: 0 18px 16px;
  border-right: 1px solid var(--border);
  gap: 0;
  align-items: stretch;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  height: var(--topbar-size);
  flex-shrink: 0;
  padding: 0 9px;
  color: var(--text);
  font-size: 21px;
  letter-spacing: -0.8px;
  font-weight: 700;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #1b84ff;
  color: #fff;
  border-radius: 9px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.sidebar-brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2px;
  line-height: 1.3;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 1px;
}
.sidebar-workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 2px 24px;
  padding: 13px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  min-width: 0;
}
.workspace-emblem {
  height: 33px;
  width: 33px;
  border-radius: 7px;
  border: 1px dashed #b9c6df;
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 650;
  flex-shrink: 0;
}
.sidebar-workspace strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.sidebar-workspace span:not(.workspace-emblem) {
  display: block;
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.sidebar-label {
  font-size: 9px !important;
  letter-spacing: 0.7px;
  color: var(--text-secondary);
  font-weight: 650;
  padding: 0 13px;
  margin: 0 0 9px;
}
.shell nav {
  gap: 4px;
}
.shell nav button {
  height: 40px;
  padding: 0 13px;
  font-size: 12px;
  gap: 10px;
  color: var(--text-secondary);
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.15s ease;
}
.shell nav button .ki-outline {
  font-size: 19px;
  line-height: 1;
  color: var(--text-secondary);
}
.shell nav button span {
  line-height: 1.4;
}
.shell nav button.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
.shell nav button.active .ki-outline {
  color: var(--brand);
}
.shell nav button:hover {
  color: var(--text);
  background: var(--surface-hover);
}
.nav-section-label {
  margin: 26px 0 7px;
}
.sidebar-profile {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 17px 5px 0;
  margin-top: auto;
}
.sidebar-profile .rail-avatar {
  margin: 0;
  width: 33px;
  height: 33px;
  font-size: 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--text-secondary);
  flex-shrink: 0;
}
.sidebar-profile > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.sidebar-profile strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sidebar-profile span {
  display: block;
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.sidebar-profile > .ki-outline {
  font-size: 18px;
  color: var(--text-secondary);
}
.workspace-header {
  height: var(--topbar-size);
  padding: 0 20px 0 calc(var(--sidebar-size) + 20px);
  border-bottom: 1px solid var(--border);
  gap: 16px;
  background: var(--surface);
}
.header-context {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 12px;
}
.header-workspace {
  color: var(--text-secondary);
  white-space: nowrap;
}
.breadcrumb-divider {
  color: #c4cada;
}
#page-context {
  font-weight: 550;
  white-space: nowrap;
}
header .actions {
  gap: 14px;
  flex-wrap: nowrap;
}
.workspace-tag {
  display: none;
}
#header-quota {
  font-size: 10px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-secondary);
}
#user-name {
  font-size: 11px;
  font-weight: 550;
}
header #logout {
  font-size: 10px;
  padding: 6px 9px;
  border-radius: 5px;
  min-height: 30px;
  background: var(--surface-soft);
}
.theme-control {
  font-size: 10px;
  gap: 6px;
}
.theme-control select {
  font-size: 10px;
  padding: 6px 7px;
  min-height: 30px;
  width: 123px;
  border-radius: 5px;
  background: var(--surface);
  border-color: var(--border);
}
.shell main {
  padding: 24px;
  max-width: none;
}
.shell main > section:not([data-page="inbox"]) {
  max-width: 1460px;
  margin: auto;
}
.page-heading {
  margin-bottom: 18px;
  align-items: center;
}
.page-heading h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.7px;
  margin: 3px 0 4px;
  line-height: 1.35;
}
.page-heading .eyebrow {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text-secondary);
  font-weight: 600;
  margin: 0;
}
.page-heading p.muted {
  font-size: 12px;
}
.page-heading .primary {
  font-size: 11px;
  min-height: 36px;
  padding: 9px 14px;
  border-radius: 6px;
  box-shadow: 0 2px 3px #1b84ff15;
}
button.primary,
.send-button {
  background: #1b84ff;
  border-color: #1b84ff;
}
button.primary:hover,
.send-button:hover {
  background: #0571ef;
}
.kt-btn {
  gap: 6px;
  font-size: 12px;
  border-radius: 6px;
}
.kt-input,
.kt-select,
.kt-textarea {
  font-size: 12px;
  border-radius: 6px;
  border-color: var(--input);
}
.kt-input:focus,
.kt-select:focus,
.kt-textarea:focus {
  border-color: var(--brand);
  outline: 2px solid color-mix(in srgb, var(--brand) 15%, transparent);
  outline-offset: 0;
}
.card.kt-card,
.task-card.kt-card,
.metric-card.kt-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
}
.crm-metrics {
  gap: 22px;
}
.metric-card {
  padding: 22px 24px;
  gap: 8px;
  min-height: 150px;
  position: relative;
}
.metric-icon {
  position: absolute;
  right: 22px;
  top: 23px;
  color: var(--text-secondary);
  font-size: 24px;
  opacity: 0.8;
}
.metric-card > span:first-of-type {
  font-size: 11px;
  font-weight: 500;
  padding-right: 32px;
  color: var(--text-secondary);
}
.metric-value {
  font-size: 31px;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 5px 0 0;
  line-height: 1.2;
}
.metric-card > span:last-child {
  font-size: 10px;
  color: var(--text-secondary);
}
.dashboard-columns {
  gap: 22px;
  grid-template-columns: 1.3fr 1fr;
}
.dashboard-columns > .card {
  padding: 0 18px 16px;
  margin: 18px 0 0;
}
.dashboard-columns > .card > .section-heading {
  padding: 8px 0;
  min-height: 52px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.kt-card-title,
.card h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.15px;
}
.dashboard-columns > .card > h2 {
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.dashboard-columns > .card > p {
  font-size: 10px;
  margin-bottom: 8px;
}
.text-button {
  font-size: 10px;
  color: var(--brand);
  padding: 5px 0;
}
.crm-list-row {
  padding: 18px 0;
  gap: 18px;
}
.crm-list-row strong {
  font-size: 12px;
  font-weight: 550;
}
.crm-list-row p.small {
  font-size: 10px;
  margin-top: 5px;
}
.crm-list-row select {
  width: 130px;
  min-height: 31px;
  font-size: 10px;
  padding: 6px 8px;
  background: var(--surface);
}
.pipeline-row {
  margin-top: 17px;
}
.pipeline-row progress {
  height: 5px;
  border: 0;
  display: block;
  appearance: none;
  border-radius: 5px;
  overflow: hidden;
  width: 100%;
  background: var(--surface-soft);
}
.pipeline-row progress::-webkit-progress-bar {
  background: var(--surface-soft);
  border-radius: 5px;
}
.pipeline-row progress::-webkit-progress-value {
  background: var(--brand);
  border-radius: 5px;
}
.pipeline-row progress::-moz-progress-bar {
  background: var(--brand);
  border-radius: 5px;
}
.pipeline-row .section-heading strong {
  font-size: 11px;
  font-weight: 550;
}
.crm-badge.kt-badge {
  height: auto;
  min-height: 20px;
  padding: 3px 7px;
  border: 1px solid transparent;
  font-size: 9px;
  font-weight: 500;
  border-radius: 4px;
}
.soft-badge.kt-badge,
.tag.kt-badge {
  height: auto;
  font-size: 10px;
  padding: 4px 8px;
}
.stage-new,
.segment-unclassified {
  border-color: var(--border) !important;
  background: var(--surface-soft);
}
.stage-contacting,
.segment-potential {
  border-color: #1b84ff1a !important;
}
.stage-waiting,
.segment-vip {
  border-color: #e9b30020 !important;
}
.stage-resolved,
.segment-customer {
  border-color: #17c65320 !important;
}
.crm-toolbar {
  margin: 22px 0 20px;
  gap: 10px;
}
.crm-toolbar > input {
  min-height: 36px;
  font-size: 12px;
  max-width: 330px;
  background: var(--surface);
}
.crm-toolbar > select {
  font-size: 11px;
  min-height: 36px;
  padding: 7px 10px;
  background: var(--surface);
}
.crm-toolbar .check {
  font-size: 11px;
  margin-left: auto;
  color: var(--text-secondary);
}
.customer-table-wrap.kt-card {
  padding: 0 24px;
  margin-top: 16px;
  display: block;
}
.customer-table {
  font-size: 11px;
}
.customer-table th {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 18px 10px;
  border-color: var(--border);
}
.customer-table td {
  padding: 16px 10px;
  border-color: var(--border);
  color: var(--text-secondary);
}
.customer-table .crm-identity strong {
  font-size: 12px;
  color: var(--text);
  font-weight: 550;
}
.customer-table .crm-identity .small {
  font-size: 10px;
  margin-top: 3px;
}
.customer-table select {
  font-size: 10px;
  padding: 6px 9px;
  min-height: 31px;
  min-width: 125px;
  max-width: 180px;
  background: var(--surface);
  border-color: var(--border);
}
.task-board {
  gap: 22px;
}
.task-column {
  background: var(--surface-soft);
  border: 1px dashed var(--border);
  padding: 18px 16px;
  border-radius: 10px;
  min-height: 340px;
}
.task-column > .section-heading {
  margin: 0 0 10px;
}
.task-column h2 {
  font-size: 12px;
  font-weight: 600;
}
.count-badge.kt-badge {
  min-height: 20px;
  height: auto;
  font-size: 10px;
  padding: 1px 6px;
  background: var(--surface);
  border-color: var(--border);
}
.task-card {
  padding: 18px;
  margin-bottom: 14px;
}
.task-card h3 {
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: -0.15px;
  margin: 11px 0;
}
.task-card p {
  font-size: 10px;
  line-height: 1.7;
}
.task-card .task-priority {
  font-size: 9px;
}
.task-card .text-button {
  font-size: 10px;
}
.task-card > select {
  font-size: 10px;
  padding: 7px;
  min-height: 32px;
  background: var(--surface);
  border-color: var(--border);
}
.task-customer-link {
  font-size: 10px;
  border: 1px solid transparent;
  padding: 4px 7px;
  border-radius: 4px;
  white-space: normal;
  height: auto;
}
.task-empty {
  font-size: 11px;
  line-height: 1.8;
}
.overdue {
  color: var(--warning);
  font-weight: 550;
}
#task-form {
  max-width: 1000px;
  padding: 24px;
}
#task-form label {
  font-size: 11px;
}
#task-form input,
#task-form textarea,
#task-form select {
  font-size: 12px;
  padding: 9px;
}
.inbox-mode .shell {
  height: calc(var(--app-height, 100dvh) - var(--topbar-size));
  min-height: 0;
}
.inbox-mode .shell main {
  padding: 0;
  max-width: none;
}
.inbox {
  grid-template-columns: 320px minmax(0, 1fr);
}
.list-heading {
  padding: 22px 20px 14px;
}
.list-heading h1 {
  font-size: 19px;
  font-weight: 600;
}
.list-heading .small {
  font-size: 10px;
}
.thread {
  padding: 14px 16px;
  gap: 10px;
  min-height: 80px;
}
.thread-top strong {
  font-size: 12px;
  font-weight: 550;
}
.thread-preview {
  font-size: 11px;
}
.thread-top time {
  font-size: 9px;
}
.thread .crm-badge {
  font-size: 8px;
  padding: 1px 5px;
  min-height: 16px;
}
.thread .avatar {
  width: 40px;
  height: 40px;
}
.chat-header {
  height: 72px;
  padding: 12px 22px;
}
.chat-identity h2 {
  font-size: 15px;
}
.chat-identity p {
  font-size: 10px;
}
.bubble {
  font-size: 13px;
  line-height: 1.65;
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: var(--shadow);
}
.sticker-bubble,
.sticker-bubble.out {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.chat-body #conversation-details {
  width: 290px;
  min-width: 290px;
  padding: 22px 20px;
}
.composer-toolbar {
  min-height: 40px;
  padding: 5px 15px;
}
#send-form {
  padding: 13px 20px;
}
#send-form textarea {
  font-size: 13px;
  outline: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.auth {
  background: var(--app-bg);
}
.intro {
  background: #071437;
  color: #fff;
}
.intro .logo {
  font-weight: 600;
  letter-spacing: -0.7px;
}
.intro h1 {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.25;
}
.intro-note {
  border-color: #ffffff25;
  background: #ffffff06;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.8;
}
.intro .eyebrow {
  color: #93a8cf;
  font-size: 10px;
}
.auth-panel h2 {
  font-size: 22px;
  font-weight: 600;
}
.auth-panel input {
  min-height: 40px;
  font-size: 13px;
}
.auth-panel .primary {
  min-height: 40px;
  font-size: 12px;
}
.auth-panel .muted {
  font-size: 12px;
}
.avatar {
  background: var(--brand-soft);
  color: var(--brand);
}
.crm-identity .avatar {
  border-radius: 7px;
}
.empty,
.task-empty {
  color: var(--text-secondary);
}
.inbox-crm-filter select {
  min-height: 28px;
  font-size: 10px;
}
.card details {
  font-size: 12px;
}
.theme-control select:focus {
  outline-color: var(--brand);
}
@media (max-width: 1400px) {
  :root {
    --sidebar-size: 225px;
  }
  .shell main {
    padding: 28px;
  }
  .workspace-header {
    padding-right: 24px;
    padding-left: calc(var(--sidebar-size) + 28px);
  }
  .crm-metrics {
    gap: 16px;
  }
  .metric-card {
    padding: 20px;
    min-height: 145px;
  }
  .dashboard-columns {
    gap: 18px;
  }
  .header-workspace {
    display: none;
  }
  .metric-icon {
    right: 18px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
}
@media (max-width: 1150px) {
  :root {
    --sidebar-size: 205px;
  }
  .sidebar-brand {
    font-size: 19px;
  }
  .sidebar-workspace {
    padding: 11px 7px;
  }
  .sidebar-workspace strong {
    font-size: 10px;
  }
  .sidebar-workspace span:not(.workspace-emblem) {
    font-size: 9px;
  }
  .shell nav button {
    font-size: 11px;
  }
  .shell main {
    padding: 24px;
  }
  .workspace-header {
    padding-left: calc(var(--sidebar-size) + 24px);
    gap: 12px;
  }
  header .actions {
    gap: 9px;
  }
  .theme-control > span,
  #header-quota {
    display: none;
  }
  .inbox {
    grid-template-columns: 285px minmax(0, 1fr);
  }
  .dashboard-columns {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-columns > .card {
    padding: 0 18px 18px;
  }
  .crm-list-row {
    gap: 8px;
    flex-wrap: wrap;
  }
  .crm-list-row > select {
    max-width: 115px;
  }
  .metric-card {
    padding: 18px;
  }
  .metric-icon {
    font-size: 21px;
    right: 16px;
    top: 20px;
  }
}
@media (max-width: 950px) {
  .crm-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
  .workspace-header #user-name {
    display: none;
  }
  .page-heading {
    gap: 14px;
  }
  .task-board {
    grid-template-columns: 1fr;
  }
  .customer-table-wrap {
    overflow: auto;
  }
}
@media (max-width: 700px) {
  :root {
    --sidebar-size: 0px;
    --topbar-size: 52px;
  }
  .workspace-header {
    padding: 0 12px;
    height: 52px;
  }
  .header-context {
    font-size: 12px;
    gap: 7px;
  }
  .breadcrumb-divider,
  .header-workspace {
    display: none;
  }
  #page-context {
    font-size: 12px;
  }
  .theme-control select {
    width: 101px;
    min-height: 30px;
    font-size: 10px;
  }
  .workspace-header .actions {
    gap: 7px;
  }
  .workspace-header #logout {
    font-size: 9px;
    padding: 5px 7px;
  }
  .shell {
    display: block;
    min-height: calc(var(--app-height, 100dvh) - 52px);
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  }
  .shell > aside {
    top: auto;
    bottom: 0;
    width: 100%;
    height: calc(62px + env(safe-area-inset-bottom, 0px));
    padding: 4px 5px env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--border);
    border-right: 0;
    overflow-x: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    scrollbar-width: none;
  }
  .shell > aside::-webkit-scrollbar {
    display: none;
  }
  .sidebar-brand,
  .sidebar-workspace,
  .sidebar-label,
  .sidebar-profile {
    display: none !important;
  }
  .shell nav {
    width: max-content;
    min-width: 100%;
    flex-direction: row;
    gap: 2px;
    overflow: visible;
    flex-shrink: 0;
  }
  .shell nav button {
    width: 67px;
    min-width: 67px;
    height: 49px;
    padding: 3px 0;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
  }
  .shell nav button .ki-outline {
    font-size: 20px;
  }
  .shell nav button span {
    display: block;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.3;
  }
  .shell nav button.active {
    background: var(--brand-soft);
  }
  .shell main {
    padding: 22px 16px !important;
  }
  .shell main > section {
    max-width: none;
  }
  .page-heading {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 10px;
  }
  .page-heading h1 {
    font-size: 21px;
    margin: 3px 0 4px;
    line-height: 1.3;
  }
  .page-heading p.muted {
    font-size: 12px;
    line-height: 1.7;
  }
  .page-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  .page-heading .primary {
    min-height: 36px;
    font-size: 11px;
  }
  .crm-metrics {
    gap: 10px;
  }
  .metric-card {
    padding: 16px 15px;
    min-height: 142px;
    gap: 7px;
  }
  .metric-icon {
    right: 13px;
    top: 15px;
    font-size: 20px;
  }
  .metric-card > span:first-of-type {
    font-size: 10px;
    max-width: 100px;
    padding-right: 18px;
  }
  .metric-card > span:last-child {
    font-size: 9px;
    line-height: 1.6;
  }
  .metric-value {
    font-size: 28px;
  }
  .dashboard-columns {
    gap: 0;
  }
  .dashboard-columns > .card {
    margin-top: 18px;
    padding: 0 18px 18px;
  }
  .crm-list-row {
    padding: 15px 0;
    gap: 10px;
  }
  .crm-list-row strong {
    font-size: 12px;
  }
  .crm-list-row .small {
    font-size: 10px;
  }
  .crm-list-row > select {
    font-size: 11px;
    min-height: 34px;
  }
  .crm-toolbar {
    gap: 10px;
    margin: 18px 0;
  }
  .crm-toolbar > input {
    max-width: none;
    font-size: 16px;
    min-height: 40px;
  }
  .crm-toolbar > select {
    font-size: 12px;
    min-height: 36px;
  }
  .crm-toolbar > .check {
    font-size: 11px;
    margin-left: 0;
    min-height: 30px;
    flex-basis: 100%;
  }
  .customer-table-wrap.kt-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    display: block;
  }
  .customer-table {
    display: block;
    width: 100%;
  }
  .customer-table tbody {
    display: block;
  }
  .customer-table tr {
    padding: 16px;
    margin-bottom: 12px;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
  }
  .customer-table td {
    padding: 0;
    font-size: 11px;
  }
  .customer-table td:first-child {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }
  .customer-table .crm-identity strong {
    font-size: 13px;
  }
  .customer-table select {
    max-width: none;
    min-width: 0;
    width: 100%;
    font-size: 12px;
    min-height: 36px;
    padding: 8px;
  }
  .customer-table .crm-identity .avatar {
    width: 38px;
    height: 38px;
  }
  .customer-table td:last-child .text-button {
    font-size: 11px;
    min-height: 36px;
  }
  .task-board {
    gap: 16px;
    grid-template-columns: 1fr;
  }
  .task-column {
    padding: 16px 14px;
    min-height: 160px;
  }
  .task-column h2 {
    font-size: 13px;
  }
  .task-card {
    padding: 16px;
  }
  .task-card h3 {
    font-size: 13px;
  }
  .task-card p {
    font-size: 11px;
  }
  .task-card > select {
    min-height: 38px;
    font-size: 12px;
  }
  .task-customer-link {
    font-size: 11px;
    white-space: normal;
  }
  .task-column > .section-heading {
    background: var(--surface-soft);
  }
  #task-form {
    padding: 18px;
  }
  #task-form input,
  #task-form textarea,
  #task-form select {
    font-size: 16px;
    min-height: 40px;
  }
  .inbox-mode .shell {
    height: calc(var(--app-height, 100dvh) - 52px);
    min-height: 0;
  }
  .inbox-mode .shell main {
    padding: 0 !important;
    max-width: none;
  }
  .inbox {
    grid-template-columns: 1fr;
  }
  .list-heading {
    padding: 16px 17px 12px;
  }
  .list-heading h1 {
    font-size: 21px;
  }
  .list-account select {
    min-height: 34px;
    font-size: 12px;
  }
  .search-wrap input {
    font-size: 16px;
  }
  .list-filters button {
    font-size: 12px;
  }
  .inbox-crm-filter select {
    min-height: 30px;
    font-size: 10px;
  }
  .thread {
    min-height: 81px;
    padding: 13px 16px;
  }
  .thread-top strong {
    font-size: 14px;
  }
  .thread-preview {
    font-size: 12px;
  }
  .thread .avatar {
    width: 43px;
    height: 43px;
  }
  .thread-top time {
    font-size: 10px;
  }
  .thread .crm-badge {
    font-size: 8px;
    min-height: 16px;
  }
  .chat-header {
    height: 66px;
    padding: 10px;
    gap: 8px;
  }
  .chat-identity h2 {
    font-size: 14px;
  }
  .chat-identity p {
    font-size: 9px;
  }
  .bubble {
    font-size: 14px;
    padding: 11px 12px;
    max-width: 90%;
  }
  .sticker-bubble {
    padding: 0;
  }
  .chat-body #conversation-details {
    width: 100%;
    min-width: 0;
    padding: 20px;
  }
  .composer-toolbar {
    min-height: 42px;
    padding: 4px 9px;
  }
  #send-form {
    min-height: 72px;
    padding: 10px 12px;
  }
  #send-form textarea {
    font-size: 16px;
    min-height: 40px;
  }
  #new-message-indicator {
    font-size: 11px;
    bottom: 130px;
  }
  .theme-control {
    margin: 0;
  }
  .keyboard-open .shell > aside {
    display: none;
  }
  .keyboard-open .shell {
    padding-bottom: 0;
  }
  .intro h1 {
    font-size: 32px;
  }
  .auth-panel .kt-input {
    font-size: 16px;
  }
  .auth-panel {
    padding: 26px;
  }
  .card.kt-card {
    border-radius: 9px;
  }
  .crm-identity .avatar {
    border-radius: 7px;
  }
}
