/* D’ELITE CRM demo · official midnight blue + multicolor spectrum */
:root {
  --navy: #001337;
  --navy-2: #0f2e59;
  --navy-3: #007dc5;
  --accent: #d1127a;
  --accent-deep: #a00e5c;
  --accent-soft: #fff0f8;
  --brand-soft: #d7e4f4;
  --brand-pale: #f1f6fc;
  --rose: var(--accent);
  --rose-dark: var(--accent-deep);
  --rose-soft: var(--accent-soft);
  --paper: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --surface-3: #edf4fb;
  --ink: #1d1d1f;
  --ink-2: #2d3748;
  --muted: #706f6f;
  --line: #d7e4f4;
  --line-strong: #9db9d8;
  --green: #009640;
  --green-soft: #e7f7ed;
  --amber: #d98200;
  --amber-soft: #fff5d7;
  --red: #c44040;
  --red-soft: #fdeaea;
  --blue: #007dc5;
  --blue-soft: #e4f3fb;
  --sand: #f9a01b;
  --sand-soft: #fff4db;
  --ig: #d1127a;
  --spectrum: linear-gradient(90deg, #007dc5 0%, #d1127a 28%, #f9a01b 52%, #fff100 70%, #009640 100%);
  --shadow-xs: 0 1px 2px rgba(0, 19, 55, .05);
  --shadow-sm: 0 4px 16px rgba(0, 19, 55, .08);
  --shadow-md: 0 14px 40px rgba(0, 19, 55, .14);
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 10px;
  --sidebar: 248px;
  --demo-bar: 32px;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

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

html { height: 100%; }

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea { font: inherit; }

button { color: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 125, 197, .32);
  outline-offset: 2px;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 8px 12px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

.demo-banner {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  display: flex;
  min-height: var(--demo-bar);
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 16px;
  color: #d7e4f4;
  background: #001337;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .02em;
}

.demo-banner a {
  margin-left: 8px;
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
}

.demo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #50d5a8;
  box-shadow: 0 0 0 4px rgba(80, 213, 168, .12);
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  padding-top: var(--demo-bar);
}

.sidebar {
  position: fixed;
  z-index: 40;
  top: var(--demo-bar);
  bottom: 0;
  left: 0;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.12);
  color: #d7e4f4;
  background: linear-gradient(180deg, #001337, #0f2e59 78%);
}

.brand {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 14px;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #007dc5, #d1127a 40%, #f9a01b 68%, #009640);
  font-family: var(--sans);
  font-size: 20px;
}

.brand strong {
  display: block;
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.035em;
}

.brand small {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
  color: #d7e4f4;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .18em;
}

.delite-mini {
  color: #fff;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.delite-mini i { color: #31a9db; font-style: normal; }

.company-switcher {
  position: relative;
  margin: 0 12px 8px;
}

.company-button {
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 11px;
  color: inherit;
  background: rgba(255, 255, 255, .055);
  cursor: pointer;
  text-align: left;
}

.company-button:hover { background: rgba(255, 255, 255, .09); }
.company-button > span:nth-child(2) { min-width: 0; }
.company-button small,
.company-button strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-button small { color: #87a6af; font-size: 9px; }
.company-button strong { margin-top: 1px; color: #fff; font-size: 12px; }
.company-button > svg { width: 15px; height: 15px; color: #7fa0a9; }

.company-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--navy-3);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
}

.company-avatar--rose { background: linear-gradient(135deg, #007dc5, #d1127a); }
.company-avatar--sand { background: var(--sand); }
.company-avatar--elite { background: linear-gradient(135deg, #f9a01b, #009640); }

.company-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 7px);
  left: 0;
  width: 300px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.company-menu button {
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.company-menu button:hover,
.company-menu button[aria-selected="true"] { background: var(--surface-3); }
.company-menu strong,
.company-menu small { display: block; }
.company-menu strong { font-size: 12px; }
.company-menu small { color: var(--muted); font-size: 10px; }

.nav-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 10px 14px;
  scrollbar-width: thin;
  scrollbar-color: #345966 transparent;
}

.nav-label {
  margin: 15px 8px 6px;
  color: #668a94;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  margin: 2px 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  color: #a9c0c6;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}

.nav-item svg { width: 17px; height: 17px; flex: 0 0 auto; }
.nav-item > span:nth-child(2) { min-width: 0; flex: 1; }
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .055); }

.nav-item.is-active {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav-count {
  display: grid;
  min-width: 20px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  border-radius: 9px;
  color: #fff;
  background: var(--rose);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
}

.nav-count--muted { color: #bdd0d5; background: rgba(255,255,255,.1); }
.nav-count--warning { color: #ffdda5; background: rgba(184,116,21,.25); }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #7adbb9;
  font-size: 8px;
  font-weight: 800;
}

.live-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #56d6aa;
  box-shadow: 0 0 0 3px rgba(86,214,170,.12);
}

.sidebar-foot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 14px 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.user-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--brand-soft);
  font-size: 9px;
  font-weight: 800;
}

.sidebar-foot strong,
.sidebar-foot small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-foot strong { color: #fff; font-size: 11px; }
.sidebar-foot small { color: #7798a1; font-size: 9px; }
.sidebar-foot button { border: 0; color: #7e9da5; background: transparent; cursor: pointer; }
.sidebar-foot svg { width: 16px; height: 16px; }

.main-area {
  min-width: 0;
  grid-column: 2;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: var(--demo-bar);
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
}

.mobile-menu {
  display: none;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.global-search {
  display: flex;
  width: min(480px, 48vw);
  min-height: 38px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface-2);
  cursor: pointer;
  text-align: left;
}

.global-search:hover { border-color: var(--line-strong); background: #fff; }
.global-search svg { width: 17px; height: 17px; }
.global-search span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
kbd { padding: 2px 5px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: #fff; font-family: var(--mono); font-size: 8px; box-shadow: var(--shadow-xs); }

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.icon-button {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.icon-button svg { width: 17px; height: 17px; }
.notification-dot { position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border: 2px solid #fff; border-radius: 50%; background: var(--accent); }

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.primary-button {
  border: 1px solid var(--navy);
  color: #fff;
  background: var(--navy);
  box-shadow: 0 5px 15px rgba(6,44,56,.14);
}

.primary-button:hover { background: var(--navy-2); }
.primary-button svg,
.secondary-button svg,
.ghost-button svg { width: 15px; height: 15px; }

.secondary-button {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: #fff;
}

.secondary-button:hover { border-color: #9fb1b7; background: var(--surface-2); }

.ghost-button {
  border: 1px solid transparent;
  color: var(--ink-2);
  background: transparent;
}

.ghost-button:hover { background: var(--surface-3); }

.danger-button {
  border: 1px solid #efc7c7;
  color: var(--red);
  background: var(--red-soft);
}

.content {
  min-height: calc(100vh - var(--demo-bar) - 64px);
  padding: 24px;
}

.view-loading {
  display: flex;
  min-height: 360px;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.view-loading span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  animation: bounce .8s infinite alternate;
}

.view-loading span:nth-child(2) { animation-delay: .15s; }
.view-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { to { transform: translateY(-8px); opacity: .45; } }

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

.eyebrow {
  margin: 0 0 5px;
  color: var(--rose-dark);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.page-head p:not(.eyebrow) { max-width: 620px; margin: 7px 0 0; color: var(--muted); font-size: 11px; }

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

.date-chip,
.filter-chip {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-2);
  background: #fff;
  font-size: 10px;
}

.date-chip svg,
.filter-chip svg { width: 14px; height: 14px; }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.metric-card::after {
  content: "";
  position: absolute;
  right: -25px;
  bottom: -35px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--rose-soft);
  opacity: .6;
}

.metric-card--green::after { background: var(--green-soft); }
.metric-card--blue::after { background: var(--blue-soft); }
.metric-card--sand::after { background: var(--sand-soft); }

.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; }
.metric-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; color: var(--rose-dark); background: var(--rose-soft); }
.metric-card--green .metric-icon { color: var(--green); background: var(--green-soft); }
.metric-card--blue .metric-icon { color: var(--blue); background: var(--blue-soft); }
.metric-card--sand .metric-icon { color: var(--sand); background: var(--sand-soft); }
.metric-icon svg { width: 14px; height: 14px; }
.metric-value { position: relative; z-index: 1; margin: 14px 0 3px; font-size: 26px; font-weight: 650; letter-spacing: -.035em; line-height: 1; }
.metric-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.trend { color: var(--green); font-weight: 800; }
.trend--down { color: var(--red); }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr);
  gap: 14px;
}

.stack { display: grid; gap: 14px; }

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.panel-head {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2,
.panel-head h3 { margin: 0; font-size: 13px; font-weight: 700; }
.panel-head p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.panel-link { border: 0; color: var(--rose-dark); background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; }

.pipeline-mini { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1px; background: var(--line); }
.stage-mini { min-width: 0; padding: 14px; background: #fff; }
.stage-mini span { display: block; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.stage-mini strong { display: block; margin: 6px 0 2px; font-size: 18px; }
.stage-mini small { color: var(--ink-2); font-size: 8px; }
.stage-bar { height: 3px; margin-top: 10px; overflow: hidden; border-radius: 3px; background: var(--surface-3); }
.stage-bar i { display: block; height: 100%; border-radius: inherit; background: var(--rose); }

.activity-list { margin: 0; padding: 4px 16px 10px; list-style: none; }
.activity-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border-bottom: 0; }
.activity-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: var(--navy-3); background: var(--surface-3); }
.activity-icon svg { width: 13px; height: 13px; }
.activity-item strong { display: block; font-size: 10px; }
.activity-item p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.activity-item time { color: var(--muted); font-family: var(--mono); font-size: 8px; white-space: nowrap; }

.channel-bars { padding: 15px 16px; }
.channel-row { display: grid; grid-template-columns: 86px minmax(0,1fr) 34px; align-items: center; gap: 10px; margin-bottom: 13px; font-size: 9px; }
.channel-row:last-child { margin-bottom: 0; }
.channel-label { display: flex; align-items: center; gap: 7px; }
.channel-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--green); }
.channel-dot--ig { background: var(--ig); }
.channel-dot--fb { background: #3f76c5; }
.channel-dot--tt { background: #192e35; }
.channel-dot--web { background: var(--amber); }
.bar-track { height: 7px; overflow: hidden; border-radius: 5px; background: var(--surface-3); }
.bar-track i { display: block; height: 100%; border-radius: inherit; background: var(--navy-3); }
.channel-row strong { text-align: right; }

.agent-summary {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--radius);
  color: #dcebed;
  background: var(--navy);
  border-left: 3px solid var(--accent);
}

.agent-summary::after { content: "AI"; position: absolute; right: 14px; bottom: -20px; color: rgba(255,255,255,.04); font-size: 100px; font-weight: 800; }
.agent-status { display: flex; align-items: center; gap: 7px; color: #72ddba; font-family: var(--mono); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.agent-status i { width: 6px; height: 6px; border-radius: 50%; background: #58d5ab; }
.agent-summary h3 { position: relative; z-index: 1; margin: 14px 0 5px; color: #fff; font-size: 18px; }
.agent-summary p { position: relative; z-index: 1; margin: 0; color: #a8c1c7; font-size: 10px; }
.agent-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: rgba(255,255,255,.12); }
.agent-stats div { padding: 9px; background: rgba(255,255,255,.055); text-align: center; }
.agent-stats strong { display: block; color: #fff; font-size: 14px; }
.agent-stats small { color: #91afb7; font-size: 7px; }

.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.inline-search {
  display: flex;
  min-width: 220px;
  flex: 1;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.inline-search svg { width: 14px; height: 14px; color: var(--muted); }
.inline-search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 10px; }

.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 10px; }
.data-table th { padding: 10px 13px; border-bottom: 1px solid var(--line); color: var(--muted); background: var(--surface-2); font-family: var(--mono); font-size: 8px; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.data-table td { padding: 12px 13px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { cursor: pointer; }
.data-table tbody tr:hover { background: #fbfcfc; }
.contact-cell { display: flex; align-items: center; gap: 9px; }
.mini-avatar { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--navy); background: var(--rose-soft); font-size: 8px; font-weight: 800; }
.mini-avatar--blue { background: var(--blue-soft); }
.mini-avatar--green { background: var(--green-soft); }
.mini-avatar--sand { background: var(--sand-soft); }
.contact-cell strong,
.contact-cell small { display: block; }
.contact-cell strong { font-size: 10px; }
.contact-cell small { color: var(--muted); font-size: 8px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--ink-2);
  background: var(--surface-3);
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge--green { color: var(--green); background: var(--green-soft); }
.badge--rose { color: var(--accent-deep); background: var(--accent-soft); }
.badge--blue { color: var(--blue); background: var(--blue-soft); }
.badge--amber { color: var(--amber); background: var(--amber-soft); }
.badge--red { color: var(--red); background: var(--red-soft); }

.pagination { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.pagination-buttons { display: flex; gap: 5px; }
.pagination button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer; font-size: 9px; }
.pagination button.is-active { border-color: var(--navy); color: #fff; background: var(--navy); }

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.pipeline-column {
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #edf2f3;
}

.pipeline-column.is-dragover { border-color: var(--navy); background: var(--brand-soft); }
.column-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 2px 10px; }
.column-title { display: flex; align-items: center; gap: 7px; }
.column-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.column-dot--rose { background: var(--accent); }
.column-dot--blue { background: var(--blue); }
.column-dot--amber { background: var(--amber); }
.column-dot--green { background: var(--green); }
.column-head strong { font-size: 10px; }
.column-head span { color: var(--muted); font-family: var(--mono); font-size: 8px; }

.deal-card {
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-xs);
  cursor: grab;
}

.deal-card:active { cursor: grabbing; }
.deal-card.is-dragging { opacity: .45; transform: rotate(1deg); }
.deal-company { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.deal-company span { color: var(--muted); font-size: 8px; }
.deal-card h3 { margin: 0 0 4px; font-size: 11px; }
.deal-card > p { margin: 0; color: var(--muted); font-size: 8px; }
.deal-value { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.deal-value strong { font-size: 11px; }
.deal-value small { color: var(--muted); font-size: 8px; }
.deal-owner { display: flex; align-items: center; gap: 5px; }
.deal-owner .mini-avatar { width: 20px; height: 20px; font-size: 6px; }

.inbox-layout {
  display: grid;
  min-height: calc(100vh - 145px);
  grid-template-columns: 300px minmax(360px, 1fr) 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.conversation-list,
.conversation-detail,
.contact-sidebar { min-width: 0; }
.conversation-list { border-right: 1px solid var(--line); }
.contact-sidebar { border-left: 1px solid var(--line); background: var(--surface-2); }
.inbox-toolbar { padding: 12px; border-bottom: 1px solid var(--line); }
.inbox-toolbar .inline-search { min-width: 0; }
.inbox-filters { display: flex; gap: 5px; margin-top: 9px; overflow-x: auto; }
.inbox-filter { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: #fff; cursor: pointer; font-size: 8px; white-space: nowrap; }
.inbox-filter.is-active { border-color: var(--navy); color: #fff; background: var(--navy); }
.conversation-items { max-height: calc(100vh - 250px); overflow-y: auto; }
.conversation-item { display: grid; width: 100%; grid-template-columns: auto minmax(0,1fr) auto; gap: 9px; padding: 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; text-align: left; }
.conversation-item:hover { background: var(--surface-2); }
.conversation-item.is-active { background: var(--brand-pale); box-shadow: inset 3px 0 0 var(--navy); }
.conversation-item strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-item p { margin: 3px 0 0; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-meta { text-align: right; }
.conversation-meta time { display: block; color: var(--muted); font-family: var(--mono); font-size: 7px; }
.unread { display: grid; width: 17px; height: 17px; margin: 6px 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--navy); font-size: 7px; font-weight: 800; }
.channel-badge { position: relative; }
.channel-icon { position: absolute; right: -2px; bottom: -2px; display: grid; width: 14px; height: 14px; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: var(--green); font-family: var(--mono); font-size: 5px; font-weight: 800; }
.channel-icon--ig { background: var(--ig); }
.channel-icon--fb { background: #3e74be; }
.channel-icon--web { background: var(--amber); }

.chat-head { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.chat-person { display: flex; align-items: center; gap: 9px; }
.chat-person strong,
.chat-person small { display: block; }
.chat-person strong { font-size: 11px; }
.chat-person small { color: var(--muted); font-size: 8px; }
.chat-actions { display: flex; gap: 6px; }
.chat-actions button { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.chat-actions svg { width: 13px; height: 13px; }
.ai-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; color: var(--navy-2); background: #eef7f6; font-size: 8px; }
.ai-strip span { display: inline-flex; align-items: center; gap: 6px; }
.ai-strip i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.ai-strip button { border: 0; color: var(--navy); background: transparent; cursor: pointer; font-size: 8px; font-weight: 800; }
.messages { display: flex; height: calc(100vh - 340px); min-height: 330px; flex-direction: column; gap: 10px; overflow-y: auto; padding: 18px; background: #f8fafb; }
.message { display: grid; max-width: 78%; gap: 4px; }
.message--out { align-self: flex-end; }
.message-label { color: var(--muted); font-size: 7px; }
.message--out .message-label { text-align: right; }
.message-bubble { padding: 9px 11px; border: 1px solid var(--line); border-radius: 4px 12px 12px; background: #fff; font-size: 9px; }
.message--out .message-bubble { border-color: #b8d4d9; border-radius: 12px 4px 12px 12px; color: #fff; background: var(--navy-2); }
.message time { color: var(--muted); font-family: var(--mono); font-size: 7px; }
.message--out time { text-align: right; }
.system-message { align-self: center; padding: 5px 9px; border-radius: 9px; color: var(--muted); background: var(--surface-3); font-size: 7px; }
.composer { padding: 10px 12px; border-top: 1px solid var(--line); }
.composer-row { display: flex; align-items: flex-end; gap: 8px; }
.composer textarea { min-height: 38px; max-height: 100px; flex: 1; resize: vertical; padding: 10px; border: 1px solid var(--line); border-radius: 9px; outline: 0; font-size: 9px; }
.composer textarea:focus { border-color: var(--navy); }
.composer button { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 9px; color: #fff; background: var(--navy); cursor: pointer; }
.composer button svg { width: 15px; height: 15px; }
.contact-summary { padding: 16px; border-bottom: 1px solid var(--line); text-align: center; }
.contact-summary .mini-avatar { width: 48px; height: 48px; margin: 0 auto 9px; font-size: 12px; }
.contact-summary h3 { margin: 0; font-size: 12px; }
.contact-summary p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.info-section { padding: 14px; border-bottom: 1px solid var(--line); }
.info-section h4 { margin: 0 0 10px; font-family: var(--mono); font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.info-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin: 8px 0; font-size: 8px; }
.info-row span { color: var(--muted); }
.info-row strong { max-width: 58%; text-align: right; }
.ai-note { padding: 11px; border: 1px solid #cce3df; border-radius: 9px; color: var(--ink-2); background: #edf8f5; font-size: 8px; }
.ai-note strong { display: block; margin-bottom: 4px; color: var(--green); }

.task-list { padding: 0 14px 8px; }
.task-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.task-row:last-child { border-bottom: 0; }
.task-check { width: 17px; height: 17px; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; cursor: pointer; }
.task-check.is-done { border-color: var(--green); color: #fff; background: var(--green); }
.task-check.is-done::after { content: "✓"; display: block; font-size: 10px; line-height: 15px; text-align: center; }
.task-copy strong { display: block; font-size: 10px; }
.task-copy small { color: var(--muted); font-size: 8px; }
.task-date { color: var(--muted); font-family: var(--mono); font-size: 8px; }
.priority { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.priority--high { background: var(--red); }
.priority--low { background: var(--blue); }

.campaign-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.campaign-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-xs); }
.campaign-art { position: relative; min-height: 115px; padding: 16px; color: #fff; background: var(--navy); }
.campaign-art--rose { background: linear-gradient(135deg, #001337, #007dc5 48%, #d1127a); }
.campaign-art--sand { background: linear-gradient(135deg, #001337, #f9a01b 55%, #009640); }
.campaign-art::after { content: "D’ELITE"; position: absolute; right: 12px; bottom: 8px; color: rgba(255,255,255,.15); font-family: Georgia,serif; font-size: 22px; }
.campaign-art span { font-family: var(--mono); font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.campaign-art h3 { max-width: 210px; margin: 18px 0 0; font-family: Georgia,serif; font-size: 17px; font-weight: 400; line-height: 1.2; }
.campaign-body { padding: 14px; }
.campaign-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 13px; }
.campaign-meta span { color: var(--muted); font-size: 8px; }
.campaign-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.campaign-stats div { padding: 8px; border-radius: 8px; background: var(--surface-2); }
.campaign-stats strong { display: block; font-size: 12px; }
.campaign-stats small { color: var(--muted); font-size: 7px; }

.agent-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(280px,.7fr); gap: 14px; }
.agent-hero { position: relative; overflow: hidden; padding: 24px; border-radius: 14px; color: #d9e9ec; background: var(--navy); }
.agent-orbit { position: absolute; top: -70px; right: -60px; width: 240px; height: 240px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.agent-orbit::before,
.agent-orbit::after { content: ""; position: absolute; inset: 38px; border: 1px solid rgba(255,255,255,.09); border-radius: inherit; }
.agent-orbit::after { inset: 78px; background: rgba(255,255,255,.06); }
.agent-hero .agent-status { position: relative; z-index: 1; }
.agent-hero h2 { position: relative; z-index: 1; max-width: 520px; margin: 20px 0 8px; color: #fff; font-size: 28px; font-weight: 600; letter-spacing: -.04em; }
.agent-hero > p { position: relative; z-index: 1; max-width: 580px; margin: 0; color: #a8c1c8; font-size: 10px; }
.agent-capabilities { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 24px; }
.capability { padding: 11px; border: 1px solid rgba(255,255,255,.11); border-radius: 9px; background: rgba(255,255,255,.045); }
.capability svg { width: 16px; height: 16px; color: #9ec4d0; }
.capability strong { display: block; margin-top: 10px; color: #fff; font-size: 9px; }
.capability small { color: #8eabb2; font-size: 7px; }
.knowledge-list { padding: 7px 14px 12px; }
.knowledge-item { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.knowledge-item:last-child { border-bottom: 0; }
.file-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; color: var(--rose-dark); background: var(--rose-soft); }
.file-icon svg { width: 13px; height: 13px; }
.knowledge-item strong { display: block; font-size: 9px; }
.knowledge-item small { color: var(--muted); font-size: 7px; }
.knowledge-item time { color: var(--muted); font-family: var(--mono); font-size: 7px; }

.report-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.chart-area { padding: 18px; }
.line-chart { position: relative; height: 190px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 37px, var(--line) 38px); }
.line-chart svg { width: 100%; height: 100%; overflow: visible; }
.line-chart polyline { fill: none; stroke: var(--navy); stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.line-chart .line-2 { stroke: var(--navy-3); }
.line-chart circle { fill: #fff; stroke: var(--navy); stroke-width: 2; vector-effect: non-scaling-stroke; }
.donut-wrap { display: grid; grid-template-columns: 180px minmax(0,1fr); align-items: center; gap: 22px; padding: 18px; }
.donut { position: relative; width: 165px; height: 165px; border-radius: 50%; background: conic-gradient(var(--green) 0 42%, var(--navy) 42% 70%, var(--blue) 70% 86%, var(--amber) 86% 96%, var(--surface-3) 96%); }
.donut::after { content: ""; position: absolute; inset: 29px; border-radius: 50%; background: #fff; }
.donut-label { position: absolute; z-index: 1; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-label strong { font-size: 24px; }
.donut-label small { color: var(--muted); font-size: 8px; }
.legend { display: grid; gap: 10px; }
.legend-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px; font-size: 9px; }
.legend-row i { width: 8px; height: 8px; border-radius: 3px; background: var(--green); }
.legend-row:nth-child(2) i { background: var(--navy); }
.legend-row:nth-child(3) i { background: var(--blue); }
.legend-row:nth-child(4) i { background: var(--amber); }

.integration-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 14px; }
.summary-tile { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.summary-tile span { color: var(--muted); font-size: 8px; }
.summary-tile strong { display: block; margin-top: 5px; font-size: 18px; }
.integration-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.integration-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-xs); }
.integration-logo { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: #fff; background: var(--navy); font-family: var(--mono); font-size: 9px; font-weight: 800; }
.integration-logo--wa { background: #168b69; }
.integration-logo--ig { background: #b64d91; }
.integration-logo--fb { background: #3f73bd; }
.integration-logo--tt { background: #172b31; }
.integration-logo--web { background: var(--amber); }
.integration-logo--email { background: var(--navy-3); }
.integration-card h3 { margin: 0; font-size: 11px; }
.integration-card p { margin: 3px 0 9px; color: var(--muted); font-size: 8px; }
.integration-costs { display: flex; flex-wrap: wrap; gap: 5px 12px; color: var(--ink-2); font-size: 8px; }
.integration-costs strong { font-size: 8px; }
.integration-card > button { min-height: 30px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-size: 8px; font-weight: 800; }

.settings-grid { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 14px; }
.settings-nav { padding: 8px; }
.settings-nav button { display: block; width: 100%; padding: 9px; border: 0; border-radius: 8px; color: var(--ink-2); background: transparent; cursor: pointer; font-size: 9px; text-align: left; }
.settings-nav button.is-active { color: var(--navy); background: var(--surface-3); font-weight: 800; }
.settings-form { padding: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.form-field { display: grid; gap: 5px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { color: var(--ink-2); font-size: 8px; font-weight: 800; }
.form-field input,
.form-field select,
.form-field textarea { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; outline: 0; font-size: 9px; }
.form-field textarea { min-height: 84px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 32, 48, .1); }
.form-help { color: var(--muted); font-size: 7px; }

.command-palette,
.modal-root { position: fixed; z-index: 200; inset: 0; }
.command-backdrop,
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,25,33,.58); backdrop-filter: blur(4px); }
.command-dialog { position: relative; width: min(620px, calc(100% - 28px)); max-height: min(560px, calc(100vh - 80px)); margin: 70px auto; overflow: hidden; border: 1px solid rgba(255,255,255,.4); border-radius: 14px; background: #fff; box-shadow: 0 30px 80px rgba(3,25,33,.3); }
.command-input { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.command-input svg { width: 18px; height: 18px; color: var(--muted); }
.command-input input { width: 100%; border: 0; outline: 0; font-size: 12px; }
.command-results { max-height: 430px; overflow-y: auto; padding: 8px; }
.command-group-label { margin: 9px 9px 4px; color: var(--muted); font-family: var(--mono); font-size: 7px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.command-result { display: grid; width: 100%; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; }
.command-result:hover { background: var(--surface-3); }
.command-result svg { width: 15px; height: 15px; color: var(--navy); }
.command-result strong,
.command-result small { display: block; }
.command-result strong { font-size: 10px; }
.command-result small { color: var(--muted); font-size: 8px; }
.command-result kbd { align-self: center; }

.modal-dialog { position: relative; width: min(560px, calc(100% - 28px)); max-height: calc(100vh - 60px); margin: 30px auto; overflow-y: auto; border-radius: 14px; background: #fff; box-shadow: 0 30px 80px rgba(3,25,33,.32); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 17px; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.modal-close { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.modal-close svg { width: 14px; height: 14px; }
.modal-body { padding: 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }

.toast-region { position: fixed; z-index: 300; right: 18px; bottom: 18px; display: grid; gap: 8px; }
.toast { display: grid; min-width: 280px; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 10px; background: #fff; box-shadow: var(--shadow-md); animation: toast-in .25s ease both; }
.toast svg { width: 16px; height: 16px; color: var(--green); }
.toast strong { display: block; font-size: 10px; }
.toast p { margin: 2px 0 0; color: var(--muted); font-size: 8px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

.empty-state { display: grid; min-height: 260px; place-content: center; padding: 30px; text-align: center; }
.empty-icon { display: grid; width: 52px; height: 52px; margin: 0 auto 12px; place-items: center; border-radius: 15px; color: var(--rose-dark); background: var(--rose-soft); }
.empty-state h3 { margin: 0; font-size: 14px; }
.empty-state p { max-width: 340px; margin: 6px auto 14px; color: var(--muted); font-size: 9px; }

.mobile-overlay { position: fixed; z-index: 35; inset: var(--demo-bar) 0 0; background: rgba(3,25,33,.55); }

@media (max-width: 1180px) {
  .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .campaign-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .inbox-layout { grid-template-columns: 280px minmax(340px,1fr); }
  .contact-sidebar { display: none; }
  .agent-capabilities { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 940px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-md); }
  .sidebar.is-open { transform: translateX(0); }
  .main-area { grid-column: 1; }
  .mobile-menu { display: grid; }
  .dashboard-grid,
  .agent-grid,
  .report-grid,
  .settings-grid { grid-template-columns: 1fr; }
  .integration-summary { grid-template-columns: repeat(2,1fr); }
  .topbar { padding-inline: 16px; }
  .content { padding: 18px; }
}

@media (max-width: 720px) {
  :root { --demo-bar: 42px; }
  .demo-banner { justify-content: flex-start; overflow: hidden; white-space: nowrap; }
  .demo-banner a { margin-left: auto; }
  .topbar { min-height: 58px; gap: 8px; }
  .global-search { width: 38px; height: 38px; min-height: 38px; justify-content: center; padding: 0; }
  .global-search span,
  .global-search kbd { display: none; }
  .top-actions .icon-button { display: none; }
  .primary-button { min-width: 38px; padding: 8px; }
  .primary-button:not(.modal-foot .primary-button) { font-size: 0; }
  .primary-button svg { width: 17px; height: 17px; }
  .content { padding: 14px; }
  .page-head { display: grid; align-items: start; margin-bottom: 17px; }
  .head-actions { justify-content: flex-start; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-card { min-height: 118px; padding: 13px; }
  .metric-value { font-size: 21px; }
  .pipeline-mini { grid-template-columns: repeat(5, 170px); overflow-x: auto; }
  .campaign-grid,
  .integration-grid { grid-template-columns: 1fr; }
  .inbox-layout { min-height: auto; grid-template-columns: 1fr; }
  .conversation-list { border-right: 0; }
  .conversation-detail { display: none; }
  .inbox-layout.has-active .conversation-list { display: none; }
  .inbox-layout.has-active .conversation-detail { display: block; }
  .conversation-items { max-height: none; }
  .messages { height: calc(100vh - 354px); min-height: 280px; }
  .chat-back { display: grid !important; }
  .agent-capabilities { grid-template-columns: 1fr 1fr; }
  .integration-summary { grid-template-columns: 1fr 1fr; }
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field--full { grid-column: auto; }
  .toast-region { right: 10px; bottom: 10px; left: 10px; }
  .toast { min-width: 0; }
}

@media (max-width: 460px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 108px; }
  .integration-summary { grid-template-columns: 1fr; }
  .agent-capabilities { grid-template-columns: 1fr; }
  .date-chip { display: none; }
  .demo-banner { font-size: 8px; }
  .demo-banner a { padding-left: 10px; background: #041f29; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
