:root {
  color-scheme: light;
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #f6f7fa;
  --text: #172033;
  --muted: #687386;
  --line: #d8dde6;
  --blue: #2f67d8;
  --teal: #0f8a7a;
  --amber: #d4811c;
  --red: #c84242;
  --green: #158457;
  --violet: #7d4cc2;
  --shadow: 0 18px 48px rgba(26, 36, 54, 0.12);
}

:root[data-theme="dark"] {
  --bg: #101827;
  --surface: #162033;
  --surface-2: #1d2a42;
  --text: #eef4ff;
  --muted: #9fb0ca;
  --line: #2d3d5c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

#app {
  display: grid;
  grid-template-columns: 38px 1fr;
  min-height: 100vh;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(460px, 100%);
}

.login-brand {
  margin-bottom: 18px;
}

.link-button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
  text-align: left;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100vh;
  padding: 8px 3px;
  background: #30343a;
  color: #f8fafc;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff3d2e, #f28b2d);
  color: transparent;
  font-weight: 800;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #30343a;
}

.brand strong,
.brand span,
.presence strong,
.presence span {
  display: block;
}

.brand div:last-child {
  display: none;
}

.brand span,
.presence span {
  color: #aeb8c8;
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 14px;
  justify-items: center;
  margin-top: 12px;
}

.nav-button {
  display: grid;
  place-items: center;
  align-items: center;
  width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #aeb6c1;
}

.nav-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nav-button:hover,
.nav-button.active {
  background: #3d444e;
  color: #ffffff;
}

.presence {
  display: grid;
  place-items: center;
  align-items: center;
  margin-top: auto;
  padding: 0 0 8px;
  border: 0;
  background: transparent;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #35d399;
  box-shadow: 0 0 0 7px rgba(53, 211, 153, 0.16);
}

.presence div {
  display: none;
}

.shell {
  min-width: 0;
  padding: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 36px;
  margin-bottom: 0;
  padding: 0 16px;
  background: #2f3339;
  color: #eef2f7;
  border-bottom: 1px solid #1f2329;
}

.suite-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  overflow-x: auto;
}

.suite-nav button {
  min-height: 34px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #c6ccd5;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.suite-nav button:hover {
  color: #ffffff;
}

.suite-nav button.active {
  border-bottom-color: #d83a30;
  color: #ffffff;
}

.top-search {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 172px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e8ebef;
  color: #7a828d;
}

.top-search svg {
  width: 15px;
  height: 15px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.1;
}

h2 {
  margin-bottom: 4px;
  font-size: 17px;
}

h3 {
  margin-bottom: 8px;
  font-size: 14px;
}

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

.presence-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.presence-control select,
.presence-control button {
  min-height: 30px;
  border: 1px solid #4b5563;
  border-radius: 4px;
  background: #303741;
  color: #ffffff;
  font-size: 12px;
}

.presence-control select {
  max-width: 132px;
}

.presence-control button {
  width: 32px;
  padding: 0;
}

.icon-button,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
}

.icon-button {
  width: 30px;
  border-radius: 999px;
}

.primary-action {
  padding: 0 10px;
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
  font-weight: 700;
}

.topbar .primary-action {
  border-color: transparent;
  background: #3d444e;
  color: #ffffff;
}

.view-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 12px;
  background: #f3f5f8;
}

.kpi-grid,
.content-grid,
.workspace-grid {
  display: grid;
  gap: 16px;
  margin-right: 18px;
  margin-left: 18px;
}

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

.kpi,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.kpi {
  padding: 18px;
}

.kpi span,
.kpi small {
  display: block;
  color: var(--muted);
}

.kpi strong {
  display: block;
  margin: 8px 0;
  font-size: 30px;
}

.kpi.good small {
  color: var(--green);
}

.kpi.warn small {
  color: var(--amber);
}

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

.wide {
  grid-column: span 2;
}

.panel {
  padding: 18px;
  min-width: 0;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.badge,
.priority {
  padding: 5px 8px;
  border-radius: 999px;
  background: #e8f0ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.queue-list,
.agent-list,
.shift-list,
.integration-list {
  display: grid;
  gap: 10px;
}

.queue-row,
.shift-row,
.integration-row,
.agent-row {
  display: grid;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.queue-row {
  grid-template-columns: 1.6fr 120px 1fr 48px;
}

.shift-row {
  grid-template-columns: 1.4fr 1fr 48px;
}

.agent-row {
  grid-template-columns: 40px 1fr auto;
}

.integration-row {
  grid-template-columns: 1fr auto auto auto;
}

.selected-row {
  border-color: #4fb0c6;
  background: #eef9fc;
}

.text-link {
  min-height: auto;
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
  text-align: left;
}

.row-actions {
  display: inline-flex;
  justify-content: flex-end;
  gap: 6px;
}

.row-actions button {
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.event-list,
.rule-cards {
  display: grid;
  gap: 10px;
}

.event-list div,
.rule-cards div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.event-list span,
.rule-cards span,
.muted {
  color: var(--muted);
  font-size: 13px;
}

.rule-cards b {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f0ff;
  color: var(--blue);
  font-size: 12px;
}

.queue-row span,
.shift-row span,
.agent-row span,
.integration-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.agent-profile-shell {
  display: grid;
  grid-template-columns: 70px 1fr;
  min-height: 760px;
  margin: 0 18px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f4f4;
  box-shadow: var(--shadow);
}

.agent-profile-empty {
  grid-column: 1 / -1;
  padding: 34px;
  color: var(--muted);
}

.agent-profile-rail {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 28px;
  padding: 22px 10px;
  background: #07516a;
}

.agent-profile-rail button,
.agent-profile-tools button {
  width: 38px;
  min-height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8fd0df;
}

.agent-profile-rail svg,
.agent-profile-tools svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.9;
}

.agent-profile-rail .rail-avatar {
  overflow: visible;
  border-radius: 999px;
}

.agent-profile-main {
  position: relative;
  min-width: 0;
}

.agent-profile-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 28px;
  background: #54aec4;
  color: #eaf8fb;
}

.agent-profile-nav nav {
  display: flex;
  gap: 34px;
}

.agent-profile-nav button {
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 16px;
  font-weight: 800;
}

.profile-search {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 200px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.profile-search svg {
  width: 20px;
  height: 20px;
}

.agent-profile-tools {
  position: absolute;
  top: 94px;
  right: 24px;
  display: flex;
  gap: 18px;
}

.agent-profile-tools button:last-child {
  color: #f0d000;
}

.agent-hero {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 24px 22px 0;
  background: #ffffff;
  text-align: center;
}

.agent-avatar-wrap {
  display: grid;
  place-items: center;
  width: 158px;
  height: 158px;
  margin-bottom: 14px;
  border: 4px solid #55de33;
  border-radius: 999px;
  background: #ffffff;
}

.agent-avatar-wrap.offline {
  border-color: #d63838;
}

.agent-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(135deg, #dcecf4, #ffffff);
  color: #07516a;
  font-weight: 900;
}

img.agent-avatar {
  object-fit: cover;
}

.agent-avatar.hero {
  width: 142px;
  height: 142px;
  font-size: 42px;
}

.agent-avatar.chain {
  width: 52px;
  height: 52px;
  border: 3px solid #5dde32;
  font-size: 15px;
}

.agent-avatar.mini {
  width: 34px;
  height: 34px;
  border: 3px solid #e51d2a;
  font-size: 11px;
}

.agent-status {
  color: #52bd2e;
  font-size: 14px;
}

.agent-status.offline {
  color: #d63838;
}

.agent-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #6c737c;
  font-size: 13px;
  font-weight: 700;
}

.agent-location svg {
  width: 15px;
  height: 15px;
}

.agent-hero h2 {
  margin: 12px 0 6px;
  color: #727982;
  font-size: 34px;
  font-weight: 300;
}

.agent-hero p {
  margin-bottom: 22px;
  color: #6d737b;
  font-weight: 800;
}

.agent-action-row {
  display: flex;
  gap: 38px;
  transform: translateY(38px);
}

.agent-action-row a,
.agent-action-row button {
  display: grid;
  place-items: center;
  width: 82px;
  min-height: 82px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #4faec5;
  color: #ffffff;
}

.agent-action-row svg {
  width: 34px;
  height: 34px;
  stroke-width: 2.4;
}

.agent-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 96px 104px 28px;
}

.profile-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid #eceff3;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.profile-card h3 {
  margin-bottom: 22px;
  color: #9aa0a7;
  font-size: 24px;
  font-weight: 300;
}

.profile-card h4 {
  margin: 16px 0 10px;
  color: #66707b;
  font-size: 15px;
}

.avatar-chain,
.avatar-cloud {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.avatar-chain span {
  color: #8c9299;
  font-size: 22px;
}

.avatar-cloud button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.profile-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: -4px 0 22px;
  border-bottom: 1px solid #dde4ea;
}

.profile-tabs button {
  min-height: 46px;
  border: 1px solid transparent;
  border-bottom: 0;
  background: #ffffff;
  color: #66707b;
  font-weight: 800;
}

.profile-tabs button:first-child {
  border-color: #dde4ea;
  border-top-color: #4faec5;
  border-top-width: 2px;
}

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

.group-grid div {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 14px;
}

.group-grid span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 5px;
  background: #b8b9bc;
  color: #ffffff;
}

.group-grid svg {
  width: 30px;
  height: 30px;
}

.group-grid strong {
  color: #666d76;
  font-size: 15px;
}

.location-block {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  color: #626b75;
}

.location-block > span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #dfeef4;
  color: #3b98af;
}

.location-block small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

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

.profile-card-actions button {
  min-height: 36px;
  border-color: #86c5d5;
  color: #337f92;
  background: #ffffff;
}

.profile-card-actions svg {
  width: 16px;
  height: 16px;
}

.contact-list {
  display: grid;
  gap: 8px;
}

.contact-list dt {
  margin-top: 8px;
  color: #626b75;
  font-weight: 800;
}

.contact-list dd {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.contact-list a {
  color: #2b94b0;
  font-size: 22px;
  text-decoration: none;
}

.contact-list b {
  padding: 5px 7px;
  border-radius: 4px;
  background: #a8a9ad;
  color: #ffffff;
  font-size: 11px;
}

.spark svg {
  width: 100%;
  height: 32px;
}

.spark path {
  stroke: var(--blue);
  stroke-width: 3;
}

.meter,
.score i {
  display: block;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e9f2;
}

.meter span,
.score b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.donut {
  display: grid;
  width: min(210px, 100%);
  aspect-ratio: 1;
  place-items: center;
  margin: 8px auto 18px;
  border-radius: 50%;
}

.donut::before {
  content: "";
  position: absolute;
}

.donut span {
  display: grid;
  width: 56%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  font-size: 26px;
  font-weight: 800;
}

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

.legend span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #e6edf8;
  color: var(--blue);
  font-weight: 800;
}

.avatar.large {
  width: 54px;
  height: 54px;
}

.ready,
.ok {
  color: var(--green);
}

.pause,
.warn {
  color: var(--amber);
}

.busy {
  color: var(--blue);
}

.conversation-strip,
.interaction-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.conversation-card {
  display: grid;
  gap: 8px;
  min-height: 124px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
}

.conversation-card.selected {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.conversation-card span,
.conversation-card small {
  color: var(--muted);
}

.conversation-card b {
  justify-self: start;
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff3df;
  color: var(--amber);
  font-size: 12px;
}

.workspace-grid {
  grid-template-columns: 280px minmax(0, 1fr) 300px;
}

.interaction-list {
  grid-template-columns: 1fr;
  align-content: start;
}

.conversation-main {
  min-height: 620px;
}

.agent-chat-workspace {
  display: grid;
  grid-template-columns: 38px 286px minmax(420px, 1fr) 300px;
  min-height: calc(100vh - 126px);
  margin: 0 18px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.agent-chat-rail {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 24px;
  padding: 24px 0;
  background: #30343a;
}

.agent-chat-rail button {
  width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #aeb6c1;
}

.agent-chat-rail svg {
  width: 22px;
  height: 22px;
}

.agent-conversations {
  display: grid;
  grid-template-rows: auto 1fr;
  border-right: 1px solid #dce0e5;
  background: #f8f9fb;
}

.agent-conversations-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 12px;
  background: #ffffff;
}

.agent-conversations-head h2 {
  color: #424951;
  font-size: 16px;
}

.agent-conversations-head span {
  display: flex;
  gap: 12px;
  color: #56606c;
}

.agent-conversation-list {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px 8px;
  overflow-y: auto;
}

.agent-conversation-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 8px;
  min-height: 92px;
  padding: 12px 12px 12px 16px;
  border: 1px solid #cbd8ee;
  border-radius: 3px;
  background: #eef4ff;
  color: #222831;
  text-align: left;
}

.agent-conversation-card.selected {
  border-color: #6f98e8;
  box-shadow: inset 0 0 0 1px #6f98e8;
}

.agent-conversation-card span {
  display: flex;
  align-items: center;
  gap: 6px;
  grid-column: 1 / -1;
  color: #374151;
  font-size: 12px;
}

.agent-conversation-card p {
  margin: 0;
  overflow: hidden;
  color: #1f2937;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-conversation-card time {
  align-self: end;
  color: #111827;
  font-size: 11px;
}

.agent-chat-main {
  display: grid;
  grid-template-rows: 54px 38px minmax(420px, 1fr) auto;
  min-width: 0;
  border-right: 1px solid #dce0e5;
  background: #ffffff;
}

.agent-chat-header,
.agent-chat-toolbar {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #dce0e5;
}

.agent-chat-header {
  justify-content: space-between;
  padding: 0 14px;
}

.agent-chat-header div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-chat-header button,
.agent-chat-toolbar button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #58616d;
}

.agent-chat-header time {
  padding: 8px 10px;
  border: 1px solid #ccd2dc;
  background: #f7f7f8;
  color: #1f2937;
  font-weight: 800;
}

.agent-chat-toolbar {
  gap: 8px;
  padding: 0 12px;
}

.agent-chat-toolbar span {
  flex: 1;
}

.agent-chat-toolbar .active {
  border-radius: 3px;
  background: #2e62d1;
  color: #ffffff;
}

.agent-message-thread {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 28px 28px 20px;
  overflow-y: auto;
  background: #ffffff;
}

.agent-message {
  display: grid;
  grid-template-columns: 34px minmax(160px, 520px);
  gap: 10px;
  align-items: start;
}

.agent-message.agent {
  grid-template-columns: minmax(160px, 520px) 34px;
  justify-content: end;
}

.agent-message.agent .agent-message-avatar {
  grid-column: 2;
}

.agent-message.agent > div:last-child {
  grid-column: 1;
  grid-row: 1;
}

.agent-message-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #d6dbe2;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}

.agent-message p {
  position: relative;
  margin: 0;
  padding: 13px 16px;
  border-radius: 8px;
  background: #f4e9d4;
  color: #1f2937;
  line-height: 1.45;
}

.agent-message.agent p {
  background: #eef7fc;
}

.agent-message time {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 11px;
}

.new-message-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e36b54;
  font-size: 12px;
  font-weight: 800;
}

.new-message-line::before,
.new-message-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ef9b89;
}

.agent-composer {
  display: grid;
  grid-template-columns: 1fr 58px;
  gap: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid #dce0e5;
  background: #f8f9fb;
}

.agent-composer textarea {
  min-height: 48px;
  max-height: 120px;
  resize: vertical;
  border: 2px solid #8eb1ea;
  border-radius: 4px 0 0 4px;
  background: #ffffff;
  color: #111827;
  padding: 12px;
}

.agent-composer button {
  width: 58px;
  min-height: 48px;
  border-radius: 0 4px 4px 0;
}

.agent-copilot {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px 20px;
  background: #ffffff;
}

.copilot-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
}

.copilot-head h2 {
  color: #9ca3af;
  font-size: 19px;
  font-weight: 400;
}

.copilot-head span {
  padding: 4px 7px;
  border-radius: 4px;
  background: #eceff4;
  color: #2d3748;
  font-size: 12px;
  font-weight: 900;
}

.copilot-head button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: #eef2f6;
  color: #58616d;
}

.copilot-card,
.copilot-note {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dfe4eb;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.12);
}

.copilot-card em,
.copilot-note em {
  color: #6b7280;
  font-size: 13px;
}

.copilot-card a {
  color: #315aa8;
  font-weight: 800;
}

.copilot-card p,
.copilot-note p {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.55;
}

.copilot-card button {
  justify-self: start;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-color: #9db8e8;
  color: #315aa8;
  background: #ffffff;
}

.customer-mini .summary-box {
  border: 0;
  background: #f8f9fb;
}

.profile-open-prompt {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #d8dee9;
  background: #ecfdf5;
  color: #14532d;
  font-size: 13px;
}

.profile-open-prompt button {
  min-height: 32px;
  border: 1px solid #86efac;
  border-radius: 6px;
  background: #ffffff;
  color: #166534;
  font-weight: 800;
}

.agent-email-workspace {
  display: grid;
  grid-template-columns: 38px 214px minmax(390px, 1fr) 200px 210px 206px;
  min-height: calc(100vh - 126px);
  margin: 0 18px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f5f9;
  box-shadow: var(--shadow);
}

.email-rail {
  background: #262b33;
}

.email-conversations {
  background: #ffffff;
}

.agent-conversation-card.email-card {
  min-height: 74px;
  background: #eef4ff;
}

.agent-email-main,
.agent-email-journey,
.agent-email-responses,
.agent-email-wrapup {
  min-width: 0;
  border-right: 1px solid #d7dce4;
  background: #f7f8fb;
}

.agent-email-main {
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr);
}

.agent-email-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid #d7dce4;
  background: #ffffff;
}

.email-title,
.email-header-actions,
.email-section-head,
.email-side-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.email-title span {
  color: #5f6875;
  font-size: 12px;
  font-weight: 800;
}

.email-header-actions button,
.email-side-head button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: #f1f3f7;
  color: #4b5563;
}

.email-header-actions .danger {
  background: #d83a30;
  color: #ffffff;
}

.email-interaction {
  overflow-y: auto;
  background: #f6f7fb;
}

.email-section-head {
  justify-content: space-between;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid #d7dce4;
  background: #ffffff;
  color: #3e4650;
  font-size: 13px;
}

.email-interaction h2 {
  padding: 18px 28px 8px;
  color: #2f3742;
  font-size: 18px;
  font-weight: 500;
}

.email-message-card {
  margin: 0 0 18px;
  padding: 0 28px 20px;
  background: #f6f7fb;
}

.email-sender-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 18px 0 24px;
}

.email-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #707987;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}

.email-sender-row small,
.email-sender-row time {
  color: #6b7280;
  font-size: 12px;
}

.email-body {
  max-width: 720px;
  color: #1f2937;
  line-height: 1.65;
}

.email-body p {
  white-space: pre-wrap;
}

.email-signature {
  display: grid;
  gap: 4px;
  margin: 26px 0 16px;
  color: #4b5563;
}

.email-signature a {
  color: #2d66bd;
}

.external-warning {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 7px;
  border: 1px solid #c34136;
  background: #fff1f1;
  color: #b42318;
  font-size: 12px;
  font-weight: 900;
}

.email-actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.email-actions button,
.email-reply-form button {
  min-height: 34px;
  border: 1px solid #d7dce4;
  border-radius: 4px;
  background: #eceff5;
  color: #374151;
  font-weight: 800;
}

.email-reply-form {
  display: grid;
  gap: 8px;
  margin: 0 28px 18px;
  padding: 12px;
  border: 1px solid #d7dce4;
  border-radius: 4px;
  background: #ffffff;
}

.email-reply-form.compact {
  background: #fbfcfe;
}

.email-reply-form input,
.email-reply-form textarea,
.wrapup-form input,
.wrapup-form select,
.wrapup-form textarea,
.response-search {
  width: 100%;
  min-height: 34px;
  border: 1px solid #cfd6e1;
  border-radius: 3px;
  background: #ffffff;
  color: #1f2937;
  padding: 8px 10px;
}

.email-reply-form textarea,
.wrapup-form textarea {
  min-height: 84px;
  resize: vertical;
}

.agent-email-journey,
.agent-email-responses,
.agent-email-wrapup {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #ffffff;
}

.email-side-head {
  justify-content: space-between;
  min-height: 42px;
  padding: 0 10px;
  border-bottom: 1px solid #d7dce4;
  color: #374151;
  font-size: 13px;
}

.journey-list,
.response-list,
.wrapup-form {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  overflow-y: auto;
}

.journey-list div {
  display: grid;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid #edf0f4;
  color: #4b5563;
  font-size: 12px;
}

.journey-list time {
  color: #6b7280;
  font-size: 11px;
}

.agent-email-responses {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.response-search {
  width: calc(100% - 20px);
  margin: 10px;
}

.response-list button {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 3px;
  background: #f0f1f4;
  color: #384150;
  text-align: left;
}

.response-list b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #5d6570;
  color: #ffffff;
  font-size: 12px;
}

.wrapup-form {
  gap: 14px;
}

.wrapup-form label {
  display: grid;
  gap: 6px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
}

.recording-review-workspace {
  display: grid;
  grid-template-columns: 38px 210px minmax(540px, 1fr) 470px;
  min-height: calc(100vh - 126px);
  margin: 0 18px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f5f8;
  box-shadow: var(--shadow);
}

.recording-review-workspace.empty-recording {
  grid-template-columns: 1fr;
  min-height: 220px;
}

.recording-empty-state {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 36px;
  text-align: center;
}

.recording-empty-state p {
  color: var(--muted);
}

.recording-rail {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 24px;
  padding: 20px 0;
  background: #30343a;
}

.recording-rail button {
  width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #aeb6c1;
}

.recording-rail svg {
  width: 22px;
  height: 22px;
}

.recording-interactions {
  display: grid;
  grid-template-rows: auto 1fr;
  border-right: 1px solid #d9dee6;
  background: #ffffff;
}

.recording-pane-head,
.recording-header,
.scorecard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid #d9dee6;
  background: #ffffff;
}

.recording-pane-head button {
  width: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
}

.recording-list {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  overflow-y: auto;
}

.recording-list-item {
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid #d6dbe4;
  border-radius: 3px;
  background: #edf1f7;
  color: #1f2937;
  text-align: left;
}

.recording-list-item.selected {
  border-color: #7aa2ec;
  background: #e6eefc;
}

.recording-list-item span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4b5563;
  font-size: 12px;
}

.recording-list-item em {
  color: #6b7280;
  font-size: 11px;
  font-style: normal;
}

.recording-main {
  display: grid;
  grid-template-rows: 42px auto auto minmax(0, 1fr);
  min-width: 0;
  border-right: 1px solid #d9dee6;
  background: #ffffff;
}

.recording-header div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recording-header span,
.recording-header time {
  color: #5f6875;
  font-size: 12px;
}

.recording-player-panel {
  display: grid;
  grid-template-columns: 132px minmax(280px, 1fr) 106px;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid #d9dee6;
  background: #ffffff;
}

.recording-party {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 12px;
  border-radius: 3px;
  background: #e9edf3;
  color: #384150;
  font-size: 12px;
}

.recording-party.external {
  grid-column: 1;
  background: #eef2f7;
}

.recording-party b {
  font-size: 11px;
}

.recording-party span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.recording-party em {
  justify-self: start;
  padding: 3px 6px;
  border-radius: 999px;
  background: #dff7ea;
  color: #027a48;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.recording-wave {
  grid-row: span 2;
  min-width: 0;
}

.recording-times {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
  color: #1f2937;
  font-size: 11px;
  text-align: center;
}

.recording-times b {
  display: block;
  color: #374151;
  font-size: 11px;
}

.waveform {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 84px;
  overflow: hidden;
  border-bottom: 2px solid #dbe2ea;
}

.waveform i {
  flex: 1;
  min-width: 2px;
  background: linear-gradient(#cbd2dc, #f0f2f5);
}

.waveform b {
  position: absolute;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #6b3f80;
  color: #ffffff;
  font-size: 10px;
}

.progress-track {
  height: 6px;
  margin: 14px 0;
  border-radius: 999px;
  background: #d9e0e8;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #87a7c8;
}

.annotation-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px;
}

.annotation-row input {
  min-height: 30px;
  border: 1px solid #d9dee6;
  padding: 0 8px;
}

.annotation-row button {
  min-height: 30px;
  border-color: #d9dee6;
}

.recording-controls {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
}

.play-button {
  display: grid;
  place-items: center;
  width: 54px;
  min-height: 54px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #2f67d8;
  color: #ffffff;
}

.recording-controls input {
  width: 72px;
}

.recording-tabs {
  display: flex;
  gap: 18px;
  padding: 0 14px;
  border-bottom: 1px solid #d9dee6;
  background: #ffffff;
}

.recording-tabs button {
  min-height: 42px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #4b5563;
  font-weight: 800;
}

.recording-tabs .active {
  border-color: #2f67d8;
  color: #1f2937;
}

.recording-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  min-height: 0;
}

.transcript-panel,
.recording-insights {
  overflow-y: auto;
  padding: 12px;
}

.transcript-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.transcript-tools input {
  width: 220px;
  min-height: 32px;
  border: 1px solid #cfd6e1;
  border-radius: 3px;
  padding: 0 8px;
}

.transcript-tools span {
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
}

.transcript-line {
  display: grid;
  grid-template-columns: 42px 30px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f4;
}

.transcript-line time {
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
}

.speaker-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #d5dbe5;
  color: #374151;
  font-size: 10px;
  font-weight: 900;
}

.transcript-line p {
  margin: 0;
  color: #26313f;
  line-height: 1.55;
}

.recording-insights {
  border-left: 1px solid #d9dee6;
  background: #f8fafc;
}

.insight-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.insight-tabs button {
  min-height: 30px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
}

.insight-tabs .active {
  border-color: #2f67d8;
}

.ai-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 6px;
  border-radius: 3px;
  background: #e9f1ff;
  color: #2458d3;
  font-size: 11px;
  font-weight: 900;
}

.recording-insights h3,
.recording-insights strong {
  display: block;
  margin-bottom: 8px;
}

.recording-insights p {
  margin-bottom: 14px;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.5;
}

.recording-scorecard {
  overflow-y: auto;
  background: #ffffff;
}

.scorecard-head span {
  padding: 4px 8px;
  border-radius: 4px;
  background: #f3f5f9;
  color: #1f2937;
  font-weight: 900;
}

.scorecard-question {
  display: grid;
  gap: 9px;
  padding: 12px;
  border-bottom: 1px solid #e5e9ef;
}

.scorecard-question h3 {
  color: #1f2937;
  font-size: 13px;
}

.scorecard-question label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #374151;
  font-size: 12px;
}

.scorecard-question label span {
  margin-left: auto;
  color: #6b7280;
  font-size: 11px;
}

.scorecard-question label b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: #344052;
  color: #ffffff;
  font-size: 11px;
}

.reason-box {
  margin-left: 22px;
  padding: 12px;
  border-radius: 3px;
  background: #f4f6f9;
}

.reason-box p {
  margin: 6px 0 0;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.45;
}

.conversation-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.conversation-header p {
  margin-bottom: 0;
  color: var(--muted);
}

.conversation-header .priority {
  margin-left: auto;
}

.summary-box,
.timeline,
.composer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.summary-box {
  padding: 16px;
}

.summary-box p {
  margin-bottom: 0;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 16px;
}

.timeline div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline svg {
  color: var(--green);
}

.timeline .next-step svg {
  color: var(--blue);
}

.composer {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.composer textarea {
  min-height: 116px;
  resize: vertical;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
}

.composer button {
  justify-self: end;
}

.form {
  display: grid;
  gap: 10px;
}

.form.horizontal {
  grid-template-columns: 140px minmax(0, 1fr) minmax(0, 2fr) auto;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.form textarea {
  min-height: 120px;
  padding-top: 10px;
  resize: vertical;
}

.form input[type="file"] {
  padding: 9px 12px;
}

.config-fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.config-fieldset legend {
  padding: 0 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

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

.form-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.form-grid label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.media-grid label {
  display: grid;
  gap: 6px;
}

.media-grid label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.media-grid button {
  grid-column: 1 / -1;
  justify-self: end;
}

.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
}

.check-row input {
  width: auto;
  min-height: auto;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 88, 211, 0.12);
}

.result-box {
  overflow: auto;
  min-height: 76px;
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
  color: #e5edf7;
  font-size: 12px;
}

.softphone-frame {
  width: 100%;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.wide-dl {
  grid-template-columns: 150px minmax(0, 1fr);
}

dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

dt {
  color: var(--muted);
  font-size: 12px;
}

dd {
  margin: 0;
  font-weight: 800;
}

.knowledge,
.action-list,
.role-list,
.toggle-list,
.rule-list {
  display: grid;
  gap: 10px;
}

.knowledge button,
.action-list button,
.role-list button,
.export-actions a {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
}

.export-actions a {
  display: flex;
  align-items: center;
  padding: 0 12px;
  text-decoration: none;
}

.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: var(--surface-2);
}

.segmented button {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
}

.segmented .active {
  background: var(--surface);
  color: var(--blue);
  box-shadow: 0 2px 10px rgba(26, 36, 54, 0.12);
}

.matrix {
  display: grid;
  gap: 10px;
}

.matrix div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.matrix span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.matrix em {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.matrix em.on {
  background: #dff7ea;
  color: #027a48;
}

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

.flow-node {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 110px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.flow-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -13px;
  width: 13px;
  height: 2px;
  background: var(--line);
}

.flow-node span,
.rule-list label,
.toggle-list label {
  color: var(--muted);
  font-size: 13px;
}

.rule-list label,
.toggle-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

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

.bar-chart {
  display: grid;
  grid-template-columns: repeat(8, minmax(32px, 1fr));
  align-items: end;
  gap: 12px;
  height: 280px;
  padding-top: 20px;
}

.bar-chart span {
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 32px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--blue), var(--teal));
}

.bar-chart b {
  margin-bottom: -24px;
  color: var(--muted);
  font-size: 12px;
}

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

.score div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.intent-list {
  display: grid;
  gap: 12px;
  padding-left: 20px;
}

.intent-list li {
  color: var(--text);
}

.intent-list span {
  float: right;
  color: var(--muted);
}

@media (max-width: 1080px) {
  #app {
    grid-template-columns: 38px 1fr;
  }

  .sidebar {
    align-items: center;
  }

  .nav-button {
    justify-content: center;
    width: 46px;
    padding: 0;
  }

  .top-search {
    display: none;
  }

  .suite-nav {
    gap: 16px;
  }

  .kpi-grid,
  .content-grid,
  .workspace-grid,
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-chat-workspace {
    grid-template-columns: 38px 260px minmax(360px, 1fr);
  }

  .agent-email-workspace {
    grid-template-columns: 38px 240px minmax(420px, 1fr);
  }

  .recording-review-workspace {
    grid-template-columns: 38px 220px minmax(460px, 1fr);
  }

  .recording-scorecard {
    grid-column: 2 / -1;
    border-top: 1px solid #d9dee6;
  }

  .agent-email-journey,
  .agent-email-responses,
  .agent-email-wrapup {
    grid-column: 2 / -1;
    border-top: 1px solid #d7dce4;
  }

  .agent-copilot {
    grid-column: 2 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #dce0e5;
  }

  .workspace-grid .conversation-main,
  .agent-profile-grid,
  .wide {
    grid-column: 1 / -1;
  }

  .agent-profile-grid {
    padding: 90px 28px 28px;
  }

  .customer-card {
    grid-column: span 2;
  }
}

@media (max-width: 740px) {
  #app {
    display: block;
  }

  .sidebar {
    position: static;
    flex-direction: row;
    width: 100%;
    height: auto;
    padding: 12px;
    overflow-x: auto;
  }

  .brand,
  .presence {
    display: none;
  }

  .nav {
    display: flex;
    width: 100%;
  }

  .shell {
    padding: 0;
  }

  .topbar,
  .top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    padding: 8px 12px;
  }

  .suite-nav {
    width: 100%;
  }

  .view-title {
    padding: 14px 12px;
  }

  .icon-button,
  .primary-action {
    width: 100%;
  }

  .kpi-grid,
  .content-grid,
  .workspace-grid,
  .agent-chat-workspace,
  .agent-email-workspace,
  .recording-review-workspace,
  .conversation-strip,
  .interaction-list,
  .simulation,
  .flow,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form.horizontal {
    grid-template-columns: 1fr;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .wide,
  .customer-card {
    grid-column: auto;
  }

  .queue-row,
  .shift-row,
  .integration-row {
    grid-template-columns: 1fr;
  }

  .agent-chat-workspace {
    min-height: auto;
  }

  .agent-email-workspace {
    min-height: auto;
  }

  .recording-review-workspace {
    min-height: auto;
  }

  .agent-chat-rail,
  .recording-rail {
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 8px;
  }

  .agent-conversations,
  .agent-chat-main,
  .agent-email-main,
  .agent-email-journey,
  .agent-email-responses,
  .agent-email-wrapup,
  .recording-interactions,
  .recording-main,
  .recording-scorecard {
    border-right: 0;
    border-bottom: 1px solid #dce0e5;
  }

  .recording-player-panel,
  .recording-lower,
  .recording-times {
    grid-template-columns: 1fr;
  }

  .recording-wave {
    grid-row: auto;
  }

  .recording-party.external {
    grid-column: auto;
  }

  .recording-tabs {
    overflow-x: auto;
  }

  .transcript-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .transcript-tools input {
    width: 100%;
  }

  .agent-email-header,
  .email-sender-row {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }

  .email-message-card,
  .email-reply-form,
  .email-interaction h2 {
    margin-left: 12px;
    margin-right: 12px;
    padding-left: 0;
    padding-right: 0;
  }

  .agent-chat-main {
    grid-template-rows: auto auto minmax(300px, 1fr) auto;
  }

  .agent-chat-header {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }

  .agent-message-thread {
    padding: 18px 12px;
  }

  .agent-message,
  .agent-message.agent {
    grid-template-columns: 30px 1fr;
    justify-content: stretch;
  }

  .agent-message.agent .agent-message-avatar,
  .agent-message.agent > div:last-child {
    grid-column: auto;
    grid-row: auto;
  }

  .agent-copilot {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

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

  .agent-profile-rail {
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 12px;
  }

  .agent-profile-nav {
    align-items: stretch;
    flex-direction: column;
    height: auto;
    gap: 12px;
    padding: 14px;
  }

  .agent-profile-nav nav {
    gap: 16px;
    overflow-x: auto;
  }

  .profile-search {
    width: 100%;
  }

  .agent-profile-tools {
    position: static;
    justify-content: flex-end;
    padding: 14px 14px 0;
  }

  .agent-hero h2 {
    font-size: 28px;
  }

  .agent-action-row {
    gap: 12px;
  }

  .agent-action-row a,
  .agent-action-row button {
    width: 62px;
    min-height: 62px;
  }

  .agent-profile-grid,
  .group-grid {
    grid-template-columns: 1fr;
  }

  .agent-profile-grid {
    padding: 78px 14px 18px;
  }

  .contact-list a {
    overflow-wrap: anywhere;
    font-size: 18px;
  }

  .flow-node:not(:last-child)::after {
    display: none;
  }
}
