:root {
  --bg: #f5f5f3;
  --surface: #fff;
  --surface-2: #f1f2ef;
  --surface-3: #e9ebe6;
  --border: #e0e3dc;
  --border-strong: #c3c8bf;
  --text: #20251f;
  --muted: #697064;
  --muted-2: #858c80;
  --gold: #a07a1d;
  --gold-strong: #8c6916;
  --gold-soft: #a07a1d14;
  --on-accent: #fff;
  --danger: #b94038;
  --success: #24764d;
  --sidebar: 72px;
  --topbar: 72px;
  --chart-1: #ad892b;
  --chart-2: #6f8c79;
  --shadow: 0 8px 30px #20251f05;
  color-scheme: light;
  font-family:
    "Geist",
    "SF Pro Text",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
:root.dark {
  --bg: #111313;
  --surface: #181b1b;
  --surface-2: #202424;
  --surface-3: #282e2d;
  --border: #2d3432;
  --border-strong: #46504c;
  --text: #eff2ed;
  --muted: #9fa9a1;
  --muted-2: #78857d;
  --gold: #d5b363;
  --gold-strong: #e4c77d;
  --gold-soft: #d5b36315;
  --on-accent: #1c201b;
  --danger: #ee877e;
  --success: #73b593;
  --chart-1: #d5b363;
  --chart-2: #80a493;
  --shadow: 0 8px 30px #0000000d;
  color-scheme: dark;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: -0.012em;
}
button,
input,
select,
textarea {
  font-family: inherit;
}
button {
  cursor: pointer;
}
input,
select,
textarea {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  border-radius: 8px;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted-2);
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
::selection {
  background: var(--gold-soft);
  color: var(--gold);
}
.topbar {
  left: 72px;
  height: 72px;
  grid-template-columns: minmax(190px, 1fr) minmax(240px, 500px) 44px auto;
  gap: 22px;
  padding: 0 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}
.brand {
  padding: 0;
  border: 0;
  gap: 4px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}
.brand strong {
  font-size: 12px;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.brand span {
  position: static;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding: 0;
  background: none;
  border: 0;
}
.global-search {
  height: 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0 12px;
}
.global-search input {
  font-size: 12px;
}
.global-search kbd {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 4px;
}
.user-menu {
  height: 42px;
  border: 0;
  padding: 0 0 0 12px;
  gap: 10px;
}
.user-menu strong {
  font-size: 12px;
}
.user-menu small {
  font-size: 10px;
}
.user-popover {
  top: 63px;
  right: 25px;
  background: var(--surface);
  border-color: var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.sidebar {
  top: 0;
  height: 100dvh;
  width: 72px;
  padding: 0;
  z-index: 40;
  background: transparent;
  border: 0;
  overflow: visible;
}
.navigation-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.rail-brand {
  height: 72px;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 0 19px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.rail-brand > span {
  width: 34px;
  height: 34px;
  border: 1px solid var(--gold);
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.07em;
}
.rail-brand strong {
  font-size: 11px;
  letter-spacing: 0.1em;
}
.rail-brand small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.14em;
  margin-top: 3px;
}
.rail-links {
  display: flex !important;
  flex-direction: column;
  gap: 7px;
  padding: 22px 12px;
  flex: 1;
}
.rail-link {
  height: 44px !important;
  width: 100%;
  justify-content: flex-start !important;
  gap: 18px !important;
  padding: 0 14px !important;
  position: relative;
  overflow: visible;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px !important;
  border-radius: 9px !important;
}
.rail-link > svg {
  width: 19px !important;
  height: 19px !important;
  flex-shrink: 0;
}
.rail-link.selected {
  background: var(--gold-soft);
  color: var(--gold);
}
.rail-settings {
  margin-top: auto;
}
.active-indicator {
  position: absolute;
  left: -12px;
  width: 3px;
  height: 20px;
  top: 12px;
  background: var(--gold);
  border-radius: 0 3px 3px 0;
}
.rail-toggle {
  margin: 0 12px 18px;
  height: 42px !important;
  justify-content: flex-start !important;
  padding: 0 14px !important;
  gap: 18px !important;
  color: var(--muted);
  font-size: 12px !important;
  white-space: nowrap;
}
.workspace {
  margin-left: 72px;
  padding: 108px 36px 48px;
  max-width: 1800px;
  min-width: 0;
}
.page-heading {
  margin-bottom: 28px;
  align-items: center;
}
.page-eyebrow {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 10px;
}
.page-heading h1 {
  font-size: 30px;
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.2;
}
.page-heading p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.button {
  border-radius: 8px;
  min-height: 36px;
  font-size: 12px;
  font-weight: 550;
  box-shadow: none;
  transition:
    background-color 0.18s,
    color 0.18s,
    transform 0.18s;
}
.button:active {
  transform: translateY(1px);
}
.button-primary {
  background: var(--gold);
  color: var(--on-accent);
  border-color: transparent;
}
.button-primary:hover {
  background: var(--gold-strong);
}
.button-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.icon-button {
  color: var(--muted);
  border-radius: 7px;
}
.icon-button:hover {
  background: var(--surface-2);
  color: var(--text);
}
.metrics {
  gap: 16px;
  margin-bottom: 24px;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.metric span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.metric strong {
  font-size: 29px;
  letter-spacing: -0.045em;
  font-weight: 550;
  margin-top: 12px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.metric small {
  font-size: 10px;
  margin-top: 7px;
  color: var(--muted-2);
}
.overview-charts {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
.overview-charts > [data-slot="card"] {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  --card-spacing: 22px;
  --tw-ring-shadow: 0 0 #0000;
}
.chart-eyebrow {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 10px;
}
.chart-eyebrow span {
  letter-spacing: 0;
  font-size: 10px;
}
.chart-number {
  font-size: 26px;
  color: var(--text);
  font-weight: 550;
  letter-spacing: -0.03em;
  margin-right: 5px;
}
.chart-note {
  color: var(--muted-2);
  font-size: 10px;
  margin-top: 10px;
}
.chart-table {
  color: var(--muted);
  font-size: 10px;
  margin-top: 10px;
}
.chart-table summary {
  cursor: pointer;
}
.chart-table table {
  margin-top: 8px;
  font-size: 11px;
}
.chart-table td,
.chart-table th {
  padding: 5px 10px;
}
.overview-charts [data-slot="card-title"] {
  font-size: 16px;
  font-weight: 550;
}
.overview-charts [data-slot="card-description"] {
  font-size: 11px;
}
.work-section {
  margin-top: 28px;
}
.section-heading {
  margin-bottom: 14px;
}
.section-heading h2 {
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.015em;
}
.section-heading > span {
  font-size: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 5px;
  color: var(--muted);
}
.queue-group,
.table-wrap,
.kanban-column,
.quality-metric,
.report-card,
.settings-card {
  background: var(--surface);
  border-color: var(--border);
  border-radius: 11px;
  box-shadow: var(--shadow);
}
.queue-group-header,
.kanban-column-header {
  background: var(--surface-2);
  border-color: var(--border);
  padding: 14px;
  font-size: 11px;
}
.queue-card,
.kanban-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition:
    transform 0.18s,
    border-color 0.18s,
    background 0.18s;
}
.queue-card:hover,
.kanban-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.kanban {
  gap: 16px;
}
.kanban-column {
  background: var(--surface-2);
  padding-bottom: 8px;
}
.kanban-cards {
  padding: 9px;
}
.table-wrap {
  overflow: auto;
}
table {
  background: var(--surface);
}
th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
  font-weight: 550;
  text-transform: none;
  letter-spacing: 0;
}
td {
  border-color: var(--border);
  font-size: 12px;
}
tbody tr:hover {
  background: var(--surface-2);
}
.filters {
  background: var(--surface);
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
  margin-bottom: 20px;
}
.empty-state {
  color: var(--muted);
  background: var(--surface);
  border-color: var(--border);
  border-radius: 10px;
}
.badge,
.tag {
  border-radius: 5px;
}
.view.is-active {
  animation: page-enter 0.3s ease-out;
}
.drawer,
.modal,
.modal-card,
dialog {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  border-radius: 14px;
}
.drawer {
  border-radius: 14px 0 0 14px;
}
.drawer-header,
.drawer-footer,
.modal-header {
  background: var(--surface);
  border-color: var(--border);
}
dialog::backdrop {
  background: #060b0980;
  backdrop-filter: blur(5px);
}
.conversation-layout,
.conversation-list,
.conversation-detail,
.conversation-detail-header,
.conversation-toolbar,
.conversation-bubble,
.conversation-card,
.whatsapp-status-panel,
.integration-card {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.conversation-card:hover,
.conversation-card.is-active {
  background: var(--surface-2);
}
.conversation-bubble.is-outbound {
  background: var(--gold-soft);
}
.toast {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  border-radius: 10px;
}
.login-screen {
  background: var(--bg);
}
.login-frame {
  background: var(--surface);
  border-color: var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 42px;
}
.login-brand strong {
  color: var(--text);
}
.login-brand span {
  color: var(--gold);
}
.mobile-rail {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
}
.mobile-rail > button,
.mobile-rail > [data-slot="dropdown-menu-trigger"] {
  height: 54px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
}
.mobile-rail .selected {
  color: var(--gold);
  background: var(--gold-soft);
}
[data-slot="dropdown-menu-content"],
[data-slot="tooltip-content"] {
  z-index: 100;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
[data-slot="dropdown-menu-radio-item"],
[data-slot="dropdown-menu-item"] {
  min-height: 38px;
}
.boot {
  background: var(--bg);
  color: var(--muted);
}
@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1600px) {
  .workspace {
    padding-left: 52px;
    padding-right: 52px;
  }
}
@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr minmax(200px, 350px) 38px auto;
    gap: 12px;
    padding: 0 22px;
  }
  .workspace {
    padding: 100px 24px 40px;
  }
  .overview-charts {
    grid-template-columns: 1.2fr 1fr;
  }
  .metric {
    padding: 17px;
  }
}
@media (max-width: 760px) {
  :root {
    --topbar: 64px;
  }
  .sidebar {
    display: none;
  }
  .topbar {
    left: 0;
    height: 64px;
    grid-template-columns: 1fr 38px auto;
    gap: 8px;
    padding: 0 16px;
  }
  .brand strong {
    display: block;
    font-size: 10px;
  }
  .brand span {
    font-size: 9px;
  }
  .global-search {
    display: none;
  }
  .user-menu {
    grid-column: auto;
    padding: 0 0 0 6px;
  }
  .user-menu strong {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
  }
  .workspace {
    margin-left: 0;
    padding: 90px 18px 96px;
  }
  .page-heading {
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 220px;
    line-height: 1.5;
  }
  .page-heading .button-primary {
    font-size: 10px;
    padding: 0 10px;
    white-space: nowrap;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric strong {
    font-size: 25px;
  }
  .metric span {
    font-size: 10px;
  }
  .metric small {
    line-height: 1.5;
    font-size: 9px;
  }
  .overview-charts {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .overview-charts > [data-slot="card"] {
    --card-spacing: 18px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 8px 10px max(8px, env(safe-area-inset-bottom));
    z-index: 45;
  }
  .filters {
    padding: 12px;
    gap: 10px;
  }
  .greicy-queue {
    margin-left: 0;
    margin-right: 0;
    padding: 0 0 8px;
  }
  .login-frame {
    width: calc(100% - 32px);
    min-height: auto;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
  }
  .drawer {
    width: 100%;
    border-radius: 0;
  }
  .chart-eyebrow {
    font-size: 8px;
  }
  .chart-eyebrow span {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .queue-card:hover,
  .kanban-card:hover {
    transform: none;
  }
}
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-latin.woff2") format("woff2");
}
.conversation-thread {
  background: var(--bg);
}
.timeline-item p {
  color: var(--muted);
}
.queue-group > header {
  background: var(--surface-2);
  border-color: var(--border);
}
.queue-group > p {
  color: var(--muted);
}
.queue-group > div > button {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.topbar > .brand,
.topbar > .global-search,
.topbar > [data-theme-root],
.topbar > .user-menu {
  grid-row: 1;
}
.topbar > .user-menu {
  grid-column: 4;
}
.global-search {
  width: 100%;
  margin: 0;
}
.global-search input {
  background: transparent;
  border: 0;
  width: 100%;
}
.drawer:not([hidden]) {
  animation: drawer-enter 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal[open] {
  margin: auto;
  animation: page-enter 0.22s ease-out;
}
label > span,
legend {
  color: var(--muted);
}
@keyframes drawer-enter {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (max-width: 760px) {
  .topbar > .user-menu {
    grid-column: 3;
  }
}
:root[data-sidebar="expanded"] {
  --sidebar: 228px;
}
.workspace {
  margin-left: var(--sidebar);
  transition: margin-left 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.topbar {
  left: var(--sidebar);
  transition: left 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 760px) {
  .workspace {
    margin-left: 0;
  }
  .topbar {
    left: 0;
  }
  .metrics {
    display: grid;
    margin: 0 0 24px;
    padding: 0;
    overflow: visible;
  }
  .metric {
    min-width: 0;
    min-height: 110px;
    flex: auto;
  }
}
.overview-charts [data-slot=chart]{--color-total:var(--chart-1)}.overview-charts>[data-slot=card]:last-child [data-slot=chart]{--color-total:var(--chart-2)}
