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

:root {
  --ink: #111a36;
  --ink-soft: #536078;
  --muted: #7d879a;
  --canvas: #f2f5fb;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-solid: #ffffff;
  --line: rgba(29, 50, 101, 0.09);
  --line-strong: rgba(30, 57, 126, 0.16);
  --navy: #081431;
  --navy-2: #0e1f49;
  --blue: #345be9;
  --blue-2: #6c8bff;
  --cyan: #39d9e6;
  --teal: #10b8a6;
  --violet: #8558f4;
  --violet-soft: #eee8ff;
  --green: #24bf83;
  --amber: #ed9f32;
  --danger: #f1627a;
  --shadow-sm: 0 8px 26px rgba(26, 42, 84, 0.07);
  --shadow-md: 0 18px 48px rgba(26, 42, 84, 0.13);
  --shadow-lg: 0 34px 90px rgba(15, 29, 66, 0.2);
  --radius-sm: 9px;
  --radius: 15px;
  --radius-lg: 21px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 5%, rgba(89, 121, 255, 0.1), transparent 28rem),
    linear-gradient(135deg, #eef3fb 0%, #f8f9fc 54%, #eff2fb 100%);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  color: inherit;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(52, 91, 233, 0.22);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 99px;
  background: rgba(54, 74, 119, 0.18);
  background-clip: padding-box;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.19;
  pointer-events: none;
  animation: ambient-drift 18s var(--ease-out) infinite alternate;
}

.ambient-one {
  top: -22rem;
  right: 4rem;
  background: var(--blue-2);
}

.ambient-two {
  right: -20rem;
  bottom: -25rem;
  background: var(--violet);
  animation-delay: -7s;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

.sidebar {
  position: relative;
  display: flex;
  flex: 0 0 242px;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  padding: 20px 15px 16px;
  color: rgba(241, 246, 255, 0.8);
  background:
    radial-gradient(circle at 20% 0%, rgba(84, 119, 255, 0.26), transparent 24rem),
    radial-gradient(circle at 90% 72%, rgba(72, 217, 230, 0.09), transparent 20rem),
    linear-gradient(180deg, var(--navy-2), var(--navy) 54%);
  box-shadow: 20px 0 60px rgba(8, 20, 49, 0.16);
}

.sidebar::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  pointer-events: none;
}

.sidebar::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, rgba(114, 145, 255, 0.62), transparent);
  content: "";
  opacity: 0.45;
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  margin: 0 4px 26px;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(81, 117, 255, 0.26);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name,
h1,
h2,
h3,
.metric-card > strong,
.hero-metric strong {
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.brand-name {
  color: white;
  font-size:17px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.brand-product {
  color: rgba(190, 207, 240, 0.59);
  font-size:11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sidebar-label {
  position: relative;
  z-index: 1;
  margin: 0 12px 7px;
  color: rgba(187, 203, 235, 0.42);
  font-size:11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sidebar-label.secondary {
  margin-top: 20px;
}

.nav-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 29px 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 5px 10px;
  border: 0;
  border-radius: 12px;
  color: rgba(220, 231, 250, 0.63);
  background: transparent;
  font-size:15px;
  text-align: left;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms var(--ease-out);
}

.nav-item::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: -15px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
  content: "";
  opacity: 0;
  transform: scaleY(0.3);
  transition: 220ms var(--ease-out);
}

.nav-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.055);
  transform: translateX(2px);
}

.nav-item.active {
  color: white;
  background:
    linear-gradient(90deg, rgba(75, 111, 244, 0.24), rgba(82, 96, 177, 0.08)),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(121, 148, 255, 0.1), 0 9px 26px rgba(1, 7, 24, 0.14);
}

.nav-item.active::before {
  opacity: 1;
  transform: scaleY(1);
}

.nav-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  font-size:17px;
}

.nav-item.active .nav-icon {
  color: #dce5ff;
  background: rgba(113, 143, 255, 0.17);
}

.nav-count {
  min-width: 20px;
  padding: 3px 6px;
  border-radius: 99px;
  color: #dce5ff;
  background: rgba(105, 137, 255, 0.18);
  font-size:11px;
  font-weight: 700;
  text-align: center;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(36, 191, 131, 0.13), 0 0 12px rgba(36, 191, 131, 0.55);
  animation: pulse-dot 2.2s ease-out infinite;
}

.status-dot.mini {
  width: 6px;
  height: 6px;
  margin: 0 3px 0 1px;
  box-shadow: 0 0 8px rgba(36, 191, 131, 0.65);
}

.agent-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 38px 1fr 29px;
  align-items: center;
  gap: 9px;
  min-height: 64px;
  margin-top: auto;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(115, 144, 255, 0.17);
  border-radius: 15px;
  background:
    linear-gradient(110deg, rgba(100, 76, 219, 0.18), transparent 62%),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 18px 34px rgba(2, 7, 26, 0.18);
}

.agent-card::before {
  position: absolute;
  inset: -70%;
  background: conic-gradient(from 0deg, transparent, rgba(83, 221, 235, 0.14), transparent 18%);
  content: "";
  animation: orbit 9s linear infinite;
}

.agent-orbit {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(126, 158, 255, 0.27);
  border-radius: 11px;
  background: rgba(27, 36, 80, 0.76);
  box-shadow: 0 0 22px rgba(114, 90, 249, 0.2);
}

.agent-orbit::after {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(61, 213, 231, 0.22);
  border-radius: 14px;
  content: "";
  animation: ai-breathe 2.8s ease-in-out infinite;
}

.agent-orbit img {
  width: 20px;
  filter: brightness(0) invert(1);
}

.agent-card-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.agent-card-copy strong {
  color: white;
  font-size:14px;
}

.agent-card-copy span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(201, 216, 242, 0.58);
  font-size:11px;
}

.agent-card-copy span i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.sidebar-user {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 31px 1fr auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-top: 9px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease;
}

.sidebar-user:hover {
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-user > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.sidebar-user strong {
  font-size:13px;
}

.sidebar-user small {
  color: rgba(203, 217, 242, 0.45);
  font-size:11px;
}

.sidebar-user > i {
  color: rgba(223, 232, 248, 0.42);
}

.main-area {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.topbar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  min-height: 82px;
  padding: 12px 22px 11px 27px;
  border-bottom: 1px solid rgba(30, 57, 126, 0.07);
  background: rgba(248, 250, 254, 0.72);
  backdrop-filter: blur(24px) saturate(1.25);
}

.page-heading {
  min-width: 0;
}

.eyebrow {
  margin-bottom: 4px;
  color: var(--muted);
  font-size:11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.eyebrow span {
  margin: 0 5px;
  color: #b6bdcc;
}

.eyebrow b {
  color: var(--blue);
  font-weight: 700;
}

.page-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(18px, 1.45vw, 23px);
  font-weight: 750;
  letter-spacing: -0.035em;
}

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

.command-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 230px;
  height: 38px;
  padding: 0 9px 0 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.69);
  box-shadow: 0 5px 16px rgba(36, 51, 88, 0.035), inset 0 1px white;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    width 280ms var(--ease-out);
}

.command-search:focus-within {
  width: 270px;
  border-color: rgba(52, 91, 233, 0.26);
  box-shadow: 0 0 0 4px rgba(52, 91, 233, 0.07), 0 10px 26px rgba(36, 51, 88, 0.07);
}

.command-search > i {
  color: #69758d;
  font-size:16px;
}

.command-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size:13px;
}

.command-search input::placeholder {
  color: #9aa3b4;
}

.command-search kbd {
  padding: 3px 5px;
  border: 1px solid rgba(35, 54, 95, 0.1);
  border-radius: 5px;
  color: #8a94a7;
  background: rgba(240, 243, 249, 0.75);
  font-family: inherit;
  font-size:10px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(36, 191, 131, 0.12);
  border-radius: 11px;
  color: #61706f;
  background: rgba(235, 252, 247, 0.76);
  font-size:11px;
  white-space: nowrap;
}

.live-pill b {
  color: #178765;
  font-size:12px;
}

.live-pill > span:last-child {
  padding-left: 6px;
  border-left: 1px solid rgba(23, 135, 101, 0.12);
}

.live-pill.compact {
  height: 28px;
  padding: 0 9px;
  font-size:11px;
}

.live-pill.compact img {
  width: 14px;
}

.icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size:17px;
  cursor: pointer;
  transition:
    transform 150ms var(--ease-out),
    background 150ms ease,
    box-shadow 150ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
}

.icon-button:active {
  transform: scale(0.93);
}

.icon-button.soft {
  border: 1px solid var(--line);
  color: #5d6880;
  background: #f6f8fc;
}

.icon-button.soft:hover {
  color: var(--blue);
  background: white;
  box-shadow: var(--shadow-sm);
}

.icon-button.ghost {
  color: var(--muted);
}

.icon-button.dark {
  position: relative;
  width: 28px;
  height: 28px;
  color: rgba(236, 242, 255, 0.7);
  background: rgba(255, 255, 255, 0.07);
  font-size:14px;
}

.notification-button {
  position: relative;
  border: 1px solid var(--line);
  color: #58647b;
  background: rgba(255, 255, 255, 0.72);
}

.notification-button span {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 5px;
  height: 5px;
  border: 1.5px solid white;
  border-radius: 50%;
  background: var(--danger);
  box-sizing: content-box;
}

.mobile-menu {
  display: none;
  margin-right: 8px;
}

.workspace {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 16px 18px 18px;
}

.workspace::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(52, 91, 233, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(52, 91, 233, 0.025) 1px, transparent 1px);
  background-size: 38px 38px;
  content: "";
  mask-image: radial-gradient(circle at 60% 10%, black, transparent 72%);
  pointer-events: none;
}

.page {
  position: relative;
  display: none;
  width: 100%;
  height: 100%;
  overflow: auto;
}

.page.active {
  display: block;
  animation: page-in 480ms var(--ease-out) both;
}

.panel {
  position: relative;
  border: 1px solid rgba(32, 57, 114, 0.08);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm), inset 0 1px rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px) saturate(1.12);
}

.panel::after,
.metric-card::after,
.knowledge-card::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(
    300px circle at var(--mx, 50%) var(--my, 50%),
    rgba(86, 112, 242, 0.08),
    transparent 55%
  );
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.panel.spotlight::after,
.metric-card:hover::after,
.knowledge-card:hover::after {
  opacity: 1;
}

.panel > *,
.metric-card > *,
.knowledge-card > * {
  position: relative;
  z-index: 1;
}

.inbox-grid {
  display: grid;
  grid-template-columns: minmax(265px, 292px) minmax(470px, 1fr) minmax(255px, 282px);
  gap: 12px;
  height: 100%;
  min-height: 0;
}

.conversation-panel,
.profile-panel,
.chat-panel {
  min-height: 0;
  overflow: hidden;
}

.conversation-panel {
  display: flex;
  flex-direction: column;
}

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

.conversation-heading {
  padding: 17px 17px 7px;
}

.section-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size:10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-kicker.light {
  color: rgba(191, 209, 255, 0.7);
}

.panel-header h2,
.view-toolbar h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--ink);
  font-size:17px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.panel-header h2 .count-badge {
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 7px;
  color: var(--blue);
  background: #e9edff;
  font-family: "DM Sans", sans-serif;
  font-size:11px;
}

.filter-row {
  display: flex;
  gap: 5px;
  padding: 10px 16px 12px;
  overflow-x: auto;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #7b8598;
  background: transparent;
  font-size:12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: 180ms ease;
}

.filter-chip:hover {
  color: var(--ink);
  background: #f2f5fa;
}

.filter-chip.active {
  border-color: rgba(52, 91, 233, 0.11);
  color: var(--blue);
  background: #edf1ff;
  box-shadow: inset 0 1px white;
}

.filter-chip span {
  display: grid;
  min-width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 5px;
  background: rgba(52, 91, 233, 0.1);
  font-size:10px;
}

.conversation-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1px 9px 12px;
}

.empty-search {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.empty-search > i {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 5px;
  place-items: center;
  border-radius: 11px;
  color: var(--blue);
  background: #edf1ff;
  font-size:18px;
}

.empty-search strong {
  color: var(--ink);
  font-size:12px;
}

.empty-search span {
  font-size:10px;
}

.conversation {
  position: relative;
  display: grid;
  grid-template-columns: 37px 1fr auto;
  gap: 9px;
  width: 100%;
  min-height: 75px;
  margin: 0 0 4px;
  padding: 11px 9px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 13px;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms var(--ease-out),
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
  animation: item-in 460ms var(--ease-out) both;
  animation-delay: calc(var(--i) * 55ms);
}

.conversation::before {
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--orbit-angle, 0deg),
    transparent 0 38%,
    rgba(74, 111, 245, 0.62) 46%,
    rgba(57, 217, 230, 0.58) 50%,
    transparent 57% 100%
  );
  content: "";
  opacity: 0;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.conversation:hover {
  background: rgba(246, 248, 253, 0.94);
  transform: translateX(2px);
}

.conversation.active {
  border-color: rgba(52, 91, 233, 0.1);
  background:
    radial-gradient(circle at 94% 0%, rgba(116, 89, 242, 0.1), transparent 58%),
    linear-gradient(120deg, rgba(235, 240, 255, 0.96), rgba(247, 249, 255, 0.92));
  box-shadow: 0 8px 22px rgba(52, 73, 146, 0.08), inset 3px 0 var(--blue);
}

.conversation.active::before {
  opacity: 1;
  animation: border-orbit 5.5s linear infinite;
}

.avatar {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 12px;
  color: white;
  box-shadow: 0 5px 12px rgba(24, 41, 84, 0.12);
  font-size:13px;
  font-weight: 700;
}

.avatar-diana {
  background: linear-gradient(145deg, #3f72f2, #735cef);
}

.avatar-claudia {
  background: linear-gradient(145deg, #12a69f, #2fcab8);
}

.avatar-milena {
  background: linear-gradient(145deg, #9d54da, #6d5ceb);
}

.avatar-fabiana {
  background: linear-gradient(145deg, #3453a8, #1b2e68);
}

.avatar-valentina {
  background: linear-gradient(145deg, #e7659b, #9d54da);
}

.avatar-sara {
  background: linear-gradient(145deg, #1dba80, #16959e);
}

.avatar-george {
  background: linear-gradient(145deg, #8054eb, #43317e);
}

.avatar-alejandra {
  background: linear-gradient(145deg, #e99741, #c95779);
}

.conversation-main {
  min-width: 0;
}

.conversation-top {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 1px 0 4px;
}

.conversation-top strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size:13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation.unread .conversation-top strong::after {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px rgba(52, 91, 233, 0.55);
  content: "";
  vertical-align: 1px;
}

.conversation-preview {
  display: block;
  overflow: hidden;
  margin-bottom: 7px;
  color: #7c8698;
  font-size:11.5px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #8992a3;
  font-size:10px;
}

.conversation-meta i {
  font-size:12px;
}

.conversation-meta .ai-mini {
  width: 12px;
  height: 12px;
  margin-left: 3px;
  opacity: 0.72;
}

.conversation-time {
  padding-top: 2px;
  color: #9ba4b4;
  font-size:10px;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 74% 17%, rgba(113, 86, 239, 0.07), transparent 21rem),
    radial-gradient(circle at 24% 72%, rgba(62, 190, 220, 0.055), transparent 24rem),
    rgba(255, 255, 255, 0.83);
}

.chat-panel::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(40, 61, 109, 0.08) 0.7px, transparent 0.7px);
  background-size: 17px 17px;
  content: "";
  opacity: 0.24;
  pointer-events: none;
}

.chat-panel > * {
  position: relative;
  z-index: 1;
}

.chat-header {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.46);
}

.candidate-identity {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.candidate-identity > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.candidate-identity strong {
  overflow: hidden;
  font-size:14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-identity small {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size:10.5px;
}

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

.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 27px;
  padding: 0 8px;
  border: 1px solid rgba(87, 76, 215, 0.1);
  border-radius: 8px;
  color: #6650bf;
  background: #f0edff;
  font-size:10px;
  font-weight: 700;
  white-space: nowrap;
}

.ai-brief {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  align-items: center;
  gap: 10px;
  min-height: 63px;
  margin: 10px 12px 2px;
  padding: 10px 11px;
  overflow: hidden;
  border: 1px solid rgba(113, 83, 218, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(118deg, rgba(242, 238, 255, 0.94), rgba(242, 248, 255, 0.84)),
    white;
  box-shadow: 0 8px 22px rgba(71, 61, 142, 0.06);
}

.ai-brief::before {
  position: absolute;
  inset: -120% 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.72) 50%, transparent 65%);
  content: "";
  transform: translateX(-100%);
  animation: scan 7s ease-in-out infinite;
  pointer-events: none;
}

.ai-spark {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #7561e9, #405cdd);
  box-shadow: 0 7px 18px rgba(83, 72, 197, 0.23);
}

.ai-spark::after {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(111, 88, 230, 0.2);
  border-radius: 13px;
  content: "";
  animation: ai-breathe 2.6s ease-in-out infinite;
}

.ai-spark img {
  width: 17px;
  filter: brightness(0) invert(1);
}

.ai-brief-copy {
  min-width: 0;
}

.ai-brief-copy span {
  display: block;
  margin-bottom: 3px;
  color: #705dc8;
  font-size:9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.ai-brief-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #4d5268;
  font-size:11px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.confidence {
  display: flex;
  min-width: 41px;
  flex-direction: column;
  align-items: center;
  padding-right: 9px;
  border-right: 1px solid rgba(73, 64, 132, 0.09);
}

.confidence span {
  color: var(--muted);
  font-size:9px;
}

.confidence strong {
  color: var(--violet);
  font-size:15px;
}

.control-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 31px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  color: white;
  background: linear-gradient(135deg, #374fbc, #263b92);
  box-shadow: 0 8px 15px rgba(45, 64, 152, 0.18);
  font-size:10px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: 180ms var(--ease-out);
}

.control-button:hover {
  box-shadow: 0 12px 22px rgba(45, 64, 152, 0.28);
  transform: translateY(-1px);
}

.control-button.controlled {
  color: #5d6380;
  background: #e9edf6;
  box-shadow: none;
}

.message-stream {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 11px;
  overflow-y: auto;
  padding: 14px 18px 12px;
  scroll-behavior: smooth;
}

.day-divider {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 1px 0;
  color: #a1a9b7;
  font-size:9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day-divider::before,
.day-divider::after {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(34, 59, 113, 0.08));
  content: "";
}

.day-divider::after {
  background: linear-gradient(90deg, rgba(34, 59, 113, 0.08), transparent);
}

.message {
  display: flex;
  max-width: 78%;
  flex-direction: column;
  animation: message-in 420ms var(--ease-out) both;
}

.message.candidate {
  align-self: flex-start;
}

.message.agent,
.message.human {
  align-self: flex-end;
}

.message-who {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 5px 4px;
  color: #8e97a7;
  font-size:9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.message.agent .message-who,
.message.human .message-who {
  align-self: flex-end;
}

.message-who img {
  width: 11px;
}

.bubble {
  position: relative;
  padding: 9px 11px;
  border: 1px solid rgba(30, 57, 126, 0.08);
  border-radius: 13px;
  color: #343b50;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 6px 15px rgba(36, 51, 88, 0.055);
  font-size:11.5px;
  line-height: 1.46;
}

.message.candidate .bubble {
  border-bottom-left-radius: 4px;
}

.message.agent .bubble {
  border-color: rgba(104, 79, 211, 0.11);
  border-bottom-right-radius: 4px;
  background:
    radial-gradient(circle at 100% 0%, rgba(122, 99, 238, 0.16), transparent 62%),
    linear-gradient(130deg, #f2efff, #edf2ff);
}

.message.human .bubble {
  border-color: rgba(52, 91, 233, 0.14);
  border-bottom-right-radius: 4px;
  color: #f6f8ff;
  background: linear-gradient(135deg, #3e5bc7, #30479e);
  box-shadow: 0 8px 20px rgba(45, 68, 157, 0.2);
}

.message-time {
  align-self: flex-start;
  margin: 4px 5px 0;
  color: #a5acba;
  font-size:9px;
}

.message.agent .message-time,
.message.human .message-time {
  align-self: flex-end;
}

.typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 51px;
}

.typing-bubble i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet);
  animation: dot-jump 1.1s ease-in-out infinite;
}

.typing-bubble i:nth-child(2) {
  animation-delay: 120ms;
}

.typing-bubble i:nth-child(3) {
  animation-delay: 240ms;
}

.composer-wrap {
  padding: 7px 12px 11px;
  border-top: 1px solid rgba(29, 50, 101, 0.07);
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(12px);
}

.composer {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  min-height: 43px;
  padding: 6px 6px 6px 8px;
  border: 1px solid rgba(34, 61, 122, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 21px rgba(31, 48, 88, 0.06), inset 0 1px white;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.composer:focus-within {
  border-color: rgba(52, 91, 233, 0.25);
  box-shadow: 0 0 0 4px rgba(52, 91, 233, 0.055), 0 10px 24px rgba(31, 48, 88, 0.08);
}

.composer textarea {
  min-height: 25px;
  max-height: 88px;
  flex: 1;
  resize: none;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size:11.5px;
  line-height: 1.45;
}

.composer textarea::placeholder {
  color: #9ba4b4;
}

.composer-action {
  display: grid;
  width: 27px;
  height: 27px;
  flex: none;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #8c95a5;
  background: transparent;
  font-size:15.5px;
  cursor: pointer;
}

.composer-action:hover {
  color: var(--blue);
  background: #f0f3fa;
}

.composer-tools {
  display: flex;
  gap: 2px;
}

.send-button {
  position: relative;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  color: white;
  background: linear-gradient(135deg, #4768e4, #2e49b3);
  box-shadow: 0 7px 16px rgba(47, 72, 172, 0.24);
  cursor: pointer;
  transition: 180ms var(--ease-out);
}

.send-button::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.38), transparent 70%);
  content: "";
  transform: translateX(-130%);
  transition: transform 450ms ease;
}

.send-button:hover {
  transform: translateY(-1px) scale(1.03);
}

.send-button:hover::before {
  transform: translateX(130%);
}

.composer-note {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 3px 0;
  color: #9aa3b3;
  font-size:9px;
}

.composer-note span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.composer-note img {
  width: 10px;
}

.profile-panel {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 0 14px 13px;
}

.profile-top {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 17px 0 14px;
  border-bottom: 1px solid var(--line);
}

.profile-more {
  position: absolute;
  top: 9px;
  right: -4px;
}

.profile-score {
  position: relative;
  margin-bottom: 10px;
}

.score-ring {
  --score-angle: calc(var(--score) * 3.6deg);
  position: relative;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, white 58%, transparent 60%),
    conic-gradient(var(--blue) 0 var(--score-angle), #e4e8f2 var(--score-angle) 360deg);
  box-shadow: 0 8px 22px rgba(38, 60, 118, 0.11);
}

.score-ring::after {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(61, 100, 231, 0.12);
  border-radius: 50%;
  content: "";
  animation: ai-breathe 3.4s ease-in-out infinite;
}

.score-ring .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size:16px;
}

.fit-badge {
  position: absolute;
  right: -26px;
  bottom: -2px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  border: 2px solid white;
  border-radius: 7px;
  color: #6147c8;
  background: #eeeaff;
  box-shadow: 0 5px 12px rgba(77, 63, 152, 0.12);
  font-size:9px;
  font-weight: 700;
  white-space: nowrap;
}

.profile-top h3 {
  margin: 0 0 3px;
  font-size:15.5px;
  letter-spacing: -0.025em;
}

.profile-top > p {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  color: var(--muted);
  font-size:10px;
}

.profile-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
  margin-top: 13px;
}

.profile-actions button {
  display: flex;
  min-height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #68738a;
  background: rgba(248, 250, 253, 0.86);
  font-size:9px;
  cursor: pointer;
  transition: 180ms var(--ease-out);
}

.profile-actions button i {
  color: var(--blue);
  font-size:15.5px;
}

.profile-actions button:hover {
  border-color: rgba(52, 91, 233, 0.17);
  background: white;
  box-shadow: 0 8px 18px rgba(31, 51, 98, 0.07);
  transform: translateY(-2px);
}

.profile-section {
  padding: 13px 1px 3px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.section-title > span {
  color: #8590a4;
  font-size:9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-title button,
.section-title small {
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size:9px;
}

.section-title button {
  cursor: pointer;
}

.profile-data {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.profile-data > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 25px;
}

.profile-data dt {
  color: var(--muted);
  font-size:10px;
}

.profile-data dd {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  color: #3b4356;
  font-size:10.5px;
  font-weight: 600;
  text-align: right;
}

.profile-data dd.accent-value {
  color: #6c54c9;
}

.journey-section {
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.journey {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-left: 1px;
}

.journey::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 1px;
  background: #dce2ef;
  content: "";
}

.journey-progress {
  position: absolute;
  top: 8px;
  left: 7px;
  width: 1px;
  height: var(--journey-height);
  background: linear-gradient(var(--blue), var(--cyan));
  box-shadow: 0 0 8px rgba(52, 91, 233, 0.45);
  transition: height 650ms var(--ease-out);
}

.journey-step {
  position: relative;
  display: grid;
  grid-template-columns: 15px 1fr auto;
  align-items: center;
  gap: 7px;
  min-height: 18px;
  animation: item-in 420ms var(--ease-out) both;
  animation-delay: calc(var(--i) * 65ms);
}

.journey-step i.step-dot {
  z-index: 1;
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 2px solid #cbd3e2;
  border-radius: 50%;
  color: transparent;
  background: white;
  font-size:9px;
}

.journey-step.done i.step-dot {
  border-color: var(--blue);
  color: white;
  background: var(--blue);
}

.journey-step.current i.step-dot {
  border: 4px solid #d9e1ff;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(52, 91, 233, 0.08), 0 0 12px rgba(52, 91, 233, 0.25);
}

.journey-step span {
  color: #8791a3;
  font-size:10px;
}

.journey-step.done span,
.journey-step.current span {
  color: #384053;
  font-weight: 600;
}

.journey-step em {
  color: #a0a8b7;
  font-size:9px;
  font-style: normal;
}

.smart-next {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 53px;
  margin-top: auto;
  padding: 8px;
  border: 1px solid rgba(52, 91, 233, 0.1);
  border-radius: 12px;
  color: inherit;
  background:
    radial-gradient(circle at 90% 0%, rgba(109, 81, 224, 0.12), transparent 62%),
    linear-gradient(135deg, #f1f4ff, #f8f9ff);
  text-align: left;
  cursor: pointer;
  transition: 180ms var(--ease-out);
}

.smart-next:hover {
  box-shadow: 0 10px 23px rgba(48, 65, 138, 0.11);
  transform: translateY(-2px);
}

.smart-next-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: linear-gradient(145deg, var(--violet), var(--blue));
  box-shadow: 0 7px 15px rgba(91, 69, 199, 0.2);
}

.smart-next > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.smart-next small {
  color: #7b6cbd;
  font-size:8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.smart-next strong {
  overflow: hidden;
  color: #394054;
  font-size:10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smart-next > i {
  color: var(--blue);
}

.view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.view-toolbar h2 {
  font-size: 20px;
}

.view-toolbar h2 span {
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
  font-size:13px;
  font-weight: 500;
}

.toolbar-actions {
  display: flex;
  gap: 7px;
}

.primary-button,
.secondary-button,
.period-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 35px;
  padding: 0 13px;
  border-radius: 10px;
  font-size:11px;
  font-weight: 700;
  cursor: pointer;
  transition: 180ms var(--ease-out);
}

.primary-button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, #4566e1, #2c46aa);
  box-shadow: 0 9px 18px rgba(45, 69, 166, 0.21);
}

.primary-button:hover {
  box-shadow: 0 13px 24px rgba(45, 69, 166, 0.29);
  transform: translateY(-1px);
}

.secondary-button,
.period-button {
  border: 1px solid var(--line);
  color: #647087;
  background: rgba(255, 255, 255, 0.76);
}

.secondary-button:hover,
.period-button:hover {
  color: var(--blue);
  background: white;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.secondary-button.full {
  width: 100%;
}

.pipeline-insight {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-bottom: 11px;
  padding: 8px 11px;
  border: 1px solid rgba(117, 87, 225, 0.1);
  border-radius: 13px;
  background:
    radial-gradient(circle at 0% 50%, rgba(116, 86, 230, 0.13), transparent 20rem),
    rgba(249, 248, 255, 0.77);
  box-shadow: 0 7px 22px rgba(48, 57, 105, 0.05);
}

.insight-icon {
  display: grid;
  width: 29px;
  height: 29px;
  flex: none;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: linear-gradient(145deg, var(--violet), var(--blue));
  box-shadow: 0 7px 14px rgba(99, 75, 210, 0.18);
}

.pipeline-insight p {
  flex: 1;
  margin: 0;
  color: #62697d;
  font-size:11px;
}

.pipeline-insight strong {
  color: #4e426f;
}

.pipeline-insight button {
  border: 0;
  color: #624dbe;
  background: transparent;
  font-size:10px;
  font-weight: 700;
  cursor: pointer;
}

.pipeline-shell {
  height: calc(100% - 116px);
  min-height: 430px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(78, 111, 236, 0.06), transparent 23rem),
    rgba(255, 255, 255, 0.67);
}

.pipeline-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: #687289;
  font-size:10px;
  font-weight: 600;
}

.pipeline-topline > div {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8790a1;
}

.pipeline-board {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  height: calc(100% - 42px);
  overflow: auto;
  padding: 13px;
}

.pipeline-column {
  --stage: var(--blue);
  width: 218px;
  min-height: 175px;
  flex: 0 0 218px;
  padding: 10px;
  border: 1px solid rgba(33, 57, 111, 0.075);
  border-radius: 15px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--stage) 5%, white), rgba(248, 250, 253, 0.78));
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
  animation: item-in 500ms var(--ease-out) both;
  animation-delay: calc(var(--i) * 60ms);
}

.pipeline-column.drag-over {
  border-color: color-mix(in srgb, var(--stage) 45%, transparent);
  background: color-mix(in srgb, var(--stage) 7%, white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--stage) 7%, transparent);
}

.stage-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.stage-header > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--stage);
  box-shadow: 0 0 8px color-mix(in srgb, var(--stage) 60%, transparent);
}

.stage-header strong {
  overflow: hidden;
  flex: 1;
  font-size:10px;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.stage-header span {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 7px;
  color: #69748a;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px rgba(33, 56, 110, 0.06);
  font-size:10px;
}

.stage-cards {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 92px;
}

.pipeline-card {
  position: relative;
  padding: 9px;
  overflow: hidden;
  border: 1px solid rgba(40, 63, 118, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 7px 17px rgba(28, 46, 90, 0.055), inset 0 1px white;
  cursor: grab;
  transition: 180ms var(--ease-out);
}

.pipeline-card::after {
  position: absolute;
  top: -28px;
  right: -24px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--stage);
  content: "";
  opacity: 0.045;
}

.pipeline-card:hover {
  border-color: color-mix(in srgb, var(--stage) 24%, transparent);
  box-shadow: 0 12px 25px rgba(28, 46, 90, 0.1);
  transform: translateY(-2px);
}

.pipeline-card.dragging {
  opacity: 0.42;
  transform: rotate(2deg) scale(0.98);
}

.pipeline-person {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pipeline-person .avatar {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size:11px;
}

.pipeline-person > div {
  min-width: 0;
}

.pipeline-person strong {
  display: block;
  overflow: hidden;
  font-size:11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pipeline-person small {
  color: var(--muted);
  font-size:9px;
}

.pipeline-card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  color: #8a94a5;
  font-size:9px;
}

.pipeline-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.pipeline-card-meta .match {
  margin-left: auto;
  padding: 3px 5px;
  border-radius: 5px;
  color: #5f4bbc;
  background: #eeeaff;
  font-weight: 700;
}

.card-next {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  color: #667187;
  font-size:9px;
}

.card-next i {
  color: var(--stage);
}

.metrics-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 180px;
  align-items: center;
  min-height: 144px;
  margin-bottom: 12px;
  padding: 23px 27px;
  overflow: hidden;
  border: 1px solid rgba(108, 137, 255, 0.16);
  border-radius: 22px;
  color: white;
  background:
    radial-gradient(circle at 84% 50%, rgba(79, 219, 230, 0.18), transparent 18rem),
    radial-gradient(circle at 18% -50%, rgba(114, 90, 248, 0.3), transparent 30rem),
    linear-gradient(120deg, #101d49, #14265d 58%, #0d183a);
  box-shadow: 0 22px 58px rgba(19, 37, 89, 0.22);
}

.metrics-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 29px 29px;
  content: "";
  mask-image: linear-gradient(90deg, black, transparent);
}

.metrics-hero::after {
  position: absolute;
  top: -140px;
  right: -15px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(120, 150, 255, 0.15);
  border-radius: 50%;
  box-shadow:
    0 0 0 25px rgba(110, 136, 255, 0.025),
    0 0 0 55px rgba(110, 136, 255, 0.018);
  content: "";
  animation: orbit-float 6s ease-in-out infinite;
}

.metrics-hero h2 {
  max-width: 620px;
  margin: 0 0 7px;
  font-size: clamp(20px, 2vw, 29px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.metrics-hero p {
  max-width: 610px;
  margin: 0;
  color: rgba(211, 222, 248, 0.65);
  font-size:12px;
  line-height: 1.5;
}

.hero-metric {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.hero-metric > span {
  color: rgba(211, 224, 250, 0.63);
  font-size:10px;
}

.hero-metric strong {
  margin: 1px 0;
  color: white;
  font-size: 41px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-metric small {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #6ee1bf;
  font-size:9px;
}

.hero-glow {
  position: absolute;
  right: 3rem;
  bottom: -7rem;
  width: 16rem;
  height: 12rem;
  border-radius: 50%;
  background: #356bef;
  filter: blur(80px);
  opacity: 0.25;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.metric-card {
  min-height: 122px;
  overflow: hidden;
  padding: 14px;
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms ease;
}

.metric-card:hover {
  box-shadow: var(--shadow-md), inset 0 1px white;
  transform: translateY(-3px);
}

.metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #778197;
  font-size:10px;
  font-weight: 600;
}

.metric-label i {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  background: #edf1ff;
  font-size:15px;
}

.metric-card > strong {
  display: block;
  margin: 3px 0 8px;
  font-size: 27px;
  letter-spacing: -0.045em;
}

.metric-footer {
  display: flex;
  align-items: center;
  gap: 6px;
}

.metric-footer small {
  color: #a0a8b6;
  font-size:9px;
}

.trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 5px;
  border-radius: 6px;
  font-size:9px;
  font-weight: 700;
}

.trend.up {
  color: #168f6c;
  background: #e7f9f3;
}

.trend.violet {
  color: #694bc9;
  background: #eee9ff;
}

.spark-bars {
  position: absolute;
  right: 13px;
  bottom: 14px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 72px;
  height: 27px;
  opacity: 0.56;
}

.spark-bars i {
  width: 7px;
  height: var(--h);
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(to top, rgba(52, 91, 233, 0.18), var(--blue));
  transform-origin: bottom;
  animation: bar-grow 750ms var(--ease-out) both;
}

.spark-bars.teal i {
  background: linear-gradient(to top, rgba(16, 184, 166, 0.18), var(--teal));
}

.progress-track {
  position: absolute;
  right: 14px;
  bottom: 19px;
  width: 70px;
  height: 5px;
  border-radius: 99px;
  background: #e7eaf2;
}

.progress-track i {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 10px rgba(52, 91, 233, 0.22);
}

.progress-track b {
  position: absolute;
  top: -3px;
  width: 1px;
  height: 11px;
  background: #7d8798;
}

.automation-row {
  position: absolute;
  right: 13px;
  bottom: 14px;
  padding: 5px 7px;
  border-radius: 8px;
  color: #6b58b7;
  background: #f0ecff;
  font-size:9px;
}

.automation-row span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.automation-row img {
  width: 11px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 10px;
  padding-bottom: 4px;
}

.analytics-card {
  min-height: 245px;
  padding: 16px;
  overflow: hidden;
}

.analytics-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.analytics-heading h3 {
  margin: 0;
  font-size:15.5px;
  letter-spacing: -0.03em;
}

.period-button {
  min-height: 28px;
  padding: 0 9px;
  font-size:10px;
}

.funnel-v2 {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 14px;
}

.funnel-v2 > div {
  display: grid;
  grid-template-columns: 92px 1fr 34px;
  align-items: center;
  gap: 9px;
}

.funnel-v2 span,
.funnel-v2 small {
  color: #6c768a;
  font-size:10px;
}

.funnel-v2 small {
  text-align: right;
}

.funnel-v2 b {
  position: relative;
  height: 18px;
  overflow: hidden;
  border-radius: 6px;
  background: #edf0f6;
}

.funnel-v2 b i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: inherit;
  background:
    linear-gradient(90deg, #314cac, #4b6ee5 66%, #6e8cff);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18), 0 0 14px rgba(52, 91, 233, 0.12);
  transform-origin: left;
  animation: funnel-grow 1s var(--ease-out) both;
}

.funnel-v2 b em {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 7px;
  color: white;
  font-size:9px;
  font-style: normal;
}

.chart-legend {
  display: flex;
  gap: 12px;
  margin: 12px 0 3px;
  color: #8790a1;
  font-size:9px;
}

.chart-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chart-legend i {
  display: block;
  width: 10px;
  height: 2px;
  border-radius: 2px;
}

.legend-current {
  background: var(--teal);
}

.legend-base {
  border-top: 1px dashed #aab2c0;
}

#attendance-chart {
  display: block;
  width: 100%;
  height: 145px;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  color: #a0a8b7;
  font-size:9px;
}

.queue-layout {
  display: grid;
  grid-template-columns: minmax(460px, 1.25fr) minmax(340px, 0.75fr);
  gap: 12px;
  max-width: 1120px;
  min-height: 560px;
  margin: 0 auto;
  padding: 5vh 0 0;
}

.celebration-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 42px;
  overflow: hidden;
  text-align: center;
}

.celebration-card::before {
  position: absolute;
  top: -180px;
  left: 50%;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 191, 131, 0.12), transparent 66%);
  content: "";
  transform: translateX(-50%);
}

.radar-success {
  position: relative;
  display: grid;
  width: 78px;
  height: 78px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid rgba(36, 191, 131, 0.16);
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #30c993, #11947b);
  box-shadow: 0 17px 40px rgba(25, 164, 122, 0.25);
  font-size: 28px;
}

.radar-success span {
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(36, 191, 131, 0.15);
  border-radius: 50%;
  animation: radar 2.5s ease-out infinite;
}

.radar-success span:last-child {
  animation-delay: 1.25s;
}

.celebration-card h2 {
  max-width: 460px;
  margin: 2px 0 9px;
  font-size: 27px;
  letter-spacing: -0.045em;
}

.celebration-card > p {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
  font-size:13px;
  line-height: 1.6;
}

.queue-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: 520px;
  margin: 28px 0 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.queue-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 17px 10px;
  border-right: 1px solid var(--line);
}

.queue-stats > div:last-child {
  border-right: 0;
}

.queue-stats strong {
  font-family: "Manrope", sans-serif;
  font-size:18px;
}

.queue-stats span {
  color: var(--muted);
  font-size:10px;
}

.activity-panel {
  min-height: 500px;
  padding: 21px;
}

.activity-feed {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}

.activity-feed > div {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 75px;
  border-bottom: 1px solid var(--line);
}

.activity-feed > div:last-child {
  border-bottom: 0;
}

.activity-icon {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 10px;
}

.activity-icon.violet {
  color: #6c52d1;
  background: #f0ebff;
}

.activity-icon.teal {
  color: #168e7c;
  background: #e7f9f5;
}

.activity-icon.blue {
  color: var(--blue);
  background: #ebefff;
}

.activity-icon.amber {
  color: #ae6d16;
  background: #fff4e4;
}

.activity-feed p {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
}

.activity-feed strong {
  font-size:11px;
}

.activity-feed small,
.activity-feed time {
  color: var(--muted);
  font-size:9.5px;
}

.knowledge-layout {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) 285px;
  gap: 12px;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.knowledge-card {
  --tone: var(--blue);
  display: grid;
  grid-template-columns: 41px 1fr 28px;
  align-items: start;
  gap: 11px;
  min-height: 126px;
  padding: 15px;
  overflow: hidden;
  transition: 200ms var(--ease-out);
}

.knowledge-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.knowledge-card[data-tone="teal"] {
  --tone: var(--teal);
}

.knowledge-card[data-tone="violet"] {
  --tone: var(--violet);
}

.knowledge-card[data-tone="amber"] {
  --tone: var(--amber);
}

.knowledge-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 10%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 11%, transparent);
  font-size: 19px;
}

.knowledge-card small {
  color: var(--tone);
  font-size:9px;
  font-weight: 700;
}

.knowledge-card h3 {
  margin: 3px 0 5px;
  font-size:14px;
}

.knowledge-card p {
  margin: 0;
  color: var(--muted);
  font-size:10px;
  line-height: 1.5;
}

.knowledge-card button {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: white;
  cursor: pointer;
}

.knowledge-card button:hover {
  color: var(--tone);
}

.learned-card {
  margin-top: 10px;
  padding: 17px;
}

.learned-list {
  margin-top: 11px;
}

.learned-list > div {
  display: grid;
  grid-template-columns: 34px 1fr auto 28px;
  align-items: center;
  gap: 9px;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
}

.learned-list > div:last-child {
  border-bottom: 0;
}

.learned-list .avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size:11px;
}

.learned-list p {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  margin: 0;
}

.learned-list strong {
  overflow: hidden;
  font-size:10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.learned-list small {
  overflow: hidden;
  color: var(--muted);
  font-size:9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.confidence-tag {
  padding: 4px 6px;
  border-radius: 6px;
  color: #5e4bb0;
  background: #eeeaff;
  font-size:9px;
  font-weight: 700;
}

.learned-list button {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #168d6b;
  background: #e9f9f4;
  cursor: pointer;
}

.knowledge-health {
  position: sticky;
  top: 0;
  align-self: start;
  padding: 22px;
  text-align: center;
}

.health-orbit {
  position: relative;
  display: flex;
  width: 89px;
  height: 89px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 4px auto 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle, white 58%, transparent 59%),
    conic-gradient(var(--teal) 0 94%, #e7ebf2 94% 100%);
  box-shadow: 0 13px 30px rgba(23, 164, 143, 0.14);
}

.health-orbit::after {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(16, 184, 166, 0.12);
  border-radius: 50%;
  content: "";
  animation: ai-breathe 3s ease-in-out infinite;
}

.health-orbit strong {
  font-family: "Manrope", sans-serif;
  font-size: 23px;
  line-height: 1;
}

.health-orbit span {
  color: var(--muted);
  font-size:9px;
}

.knowledge-health h3 {
  margin: 0 0 8px;
  font-size:15.5px;
  line-height: 1.35;
}

.knowledge-health > p {
  margin: 0;
  color: var(--muted);
  font-size:10.5px;
  line-height: 1.55;
}

.coverage-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 22px 0;
  text-align: left;
}

.coverage-list > div {
  display: grid;
  grid-template-columns: 82px 1fr 28px;
  align-items: center;
  gap: 7px;
  color: #6f798c;
  font-size:9px;
}

.coverage-list b {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8ecf3;
}

.coverage-list b i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.coverage-list em {
  color: #5e687b;
  font-style: normal;
  text-align: right;
}

.settings-layout {
  display: grid;
  grid-template-columns: 225px minmax(560px, 720px);
  gap: 12px;
  max-width: 970px;
  margin: 0 auto;
}

.settings-nav {
  display: flex;
  height: fit-content;
  flex-direction: column;
  gap: 4px;
  padding: 18px 10px;
}

.settings-nav .section-kicker {
  margin: 0 10px 8px;
}

.settings-nav button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  color: #768096;
  background: transparent;
  font-size:11px;
  text-align: left;
  cursor: pointer;
}

.settings-nav button i {
  font-size:16px;
}

.settings-nav button.active {
  color: var(--blue);
  background: #edf1ff;
  font-weight: 700;
}

.settings-form {
  padding: 23px;
}

.settings-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
}

.settings-heading h2 {
  margin: 0 0 5px;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.settings-heading p {
  margin: 0;
  color: var(--muted);
  font-size:10.5px;
}

.settings-agent {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(99, 75, 202, 0.12);
  border-radius: 14px;
  background: linear-gradient(145deg, #eeeaff, #edf2ff);
}

.settings-agent img {
  width: 24px;
}

.settings-agent i {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 7px;
  height: 7px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--green);
  box-sizing: content-box;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 15px;
}

.field > span {
  color: #4d566a;
  font-size:10px;
  font-weight: 700;
}

.field select,
.field input {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: 0;
  color: #4e576a;
  background: rgba(249, 250, 253, 0.82);
  font-size:11px;
  transition: 180ms ease;
}

.field select:focus,
.field input:focus {
  border-color: rgba(52, 91, 233, 0.28);
  background: white;
  box-shadow: 0 0 0 4px rgba(52, 91, 233, 0.055);
}

.field small {
  color: #9aa3b3;
  font-size:9px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.input-prefix {
  display: flex;
}

.input-prefix b {
  display: grid;
  width: 47px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  color: #768095;
  background: #f0f3f8;
  font-size:10px;
}

.input-prefix input {
  border-radius: 0 10px 10px 0;
}

.setting-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 61px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.setting-toggle > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.setting-toggle strong {
  font-size:11px;
}

.setting-toggle small {
  color: var(--muted);
  font-size:9.5px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 19px;
}

.switch input {
  width: 0;
  height: 0;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: #d9dfea;
  cursor: pointer;
  transition: 200ms ease;
}

.switch span::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 7px rgba(33, 49, 90, 0.2);
  content: "";
  transition: 200ms var(--ease-out);
}

.switch input:checked + span {
  background: linear-gradient(90deg, var(--blue), #637ff0);
}

.switch input:checked + span::before {
  transform: translateX(15px);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.form-actions > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #779184;
  font-size:9px;
}

.form-actions > span i {
  color: var(--green);
}

.users-panel {
  overflow: hidden;
}

.table-header,
.user-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.5fr) minmax(120px, 0.7fr) minmax(130px, 0.7fr) 100px 32px;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
}

.table-header {
  min-height: 42px;
  color: #8e98a9;
  background: rgba(246, 248, 252, 0.75);
  font-size:9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.user-row {
  min-height: 70px;
  border-top: 1px solid var(--line);
  color: #6f798d;
  font-size:10.5px;
  transition: background 150ms ease;
}

.user-row:hover {
  background: rgba(247, 249, 253, 0.7);
}

.user-row > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-row .avatar {
  width: 35px;
  height: 35px;
  border-radius: 11px;
}

.user-row p {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
}

.user-row p strong {
  color: var(--ink);
  font-size:11.5px;
}

.user-row p small {
  color: var(--muted);
  font-size:9.5px;
}

.role-badge {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 6px;
  color: #59657c;
  background: #edf0f5;
  font-size:9px;
  font-weight: 700;
}

.role-badge.admin {
  color: #5b49b1;
  background: #eeeaff;
}

.role-badge.viewer {
  color: #527482;
  background: #e8f5f6;
}

.active-status,
.pending-status {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #4e6e63;
  font-size:10px;
}

.active-status i,
.pending-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 7px rgba(36, 191, 131, 0.4);
}

.pending-status {
  color: #8a724f;
}

.pending-status i {
  background: var(--amber);
  box-shadow: none;
}

.user-row > button {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.user-row > button:hover {
  color: var(--blue);
  background: #edf1ff;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 220px;
  max-width: 340px;
  padding: 11px 13px;
  border: 1px solid rgba(116, 144, 255, 0.15);
  border-radius: 12px;
  color: rgba(247, 249, 255, 0.9);
  background:
    radial-gradient(circle at 100% 0%, rgba(111, 88, 240, 0.2), transparent 60%),
    rgba(10, 22, 53, 0.94);
  box-shadow: 0 18px 44px rgba(9, 21, 51, 0.28);
  backdrop-filter: blur(18px);
  font-size:11px;
  animation: toast-in 400ms var(--ease-out) both;
}

.toast i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  color: #7cf0d1;
  background: rgba(38, 210, 165, 0.12);
  font-size:15px;
}

.toast.out {
  animation: toast-out 280ms ease both;
}

@property --orbit-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.994);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes item-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(20px) scale(0.97);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateX(20px) scale(0.97);
  }
}

@keyframes border-orbit {
  to {
    --orbit-angle: 360deg;
  }
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-float {
  50% {
    transform: translateY(12px) rotate(4deg);
  }
}

@keyframes ambient-drift {
  to {
    transform: translate3d(-5rem, 3rem, 0) scale(1.08);
  }
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(36, 191, 131, 0.28), 0 0 11px rgba(36, 191, 131, 0.55);
  }
  65% {
    box-shadow: 0 0 0 6px rgba(36, 191, 131, 0), 0 0 11px rgba(36, 191, 131, 0.55);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(36, 191, 131, 0), 0 0 11px rgba(36, 191, 131, 0.55);
  }
}

@keyframes ai-breathe {
  50% {
    opacity: 0.35;
    transform: scale(1.08);
  }
}

@keyframes scan {
  0%,
  38% {
    transform: translateX(-120%);
  }
  60%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes dot-jump {
  0%,
  70%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

@keyframes bar-grow {
  from {
    transform: scaleY(0);
  }
}

@keyframes funnel-grow {
  from {
    transform: scaleX(0);
  }
}

@keyframes radar {
  from {
    opacity: 0.55;
    transform: scale(0.72);
  }
  to {
    opacity: 0;
    transform: scale(1.45);
  }
}

@media (max-width: 1220px) {
  .sidebar {
    flex-basis: 82px;
    align-items: center;
    padding-right: 10px;
    padding-left: 10px;
  }

  .brand {
    margin-right: 0;
    margin-left: 0;
  }

  .brand-copy,
  .sidebar-label,
  .nav-item > span:nth-child(2),
  .nav-item .nav-count,
  .nav-item .status-dot,
  .agent-card-copy,
  .agent-card .icon-button,
  .sidebar-user > span:nth-child(2),
  .sidebar-user > i {
    display: none;
  }

  .nav-item {
    display: grid;
    width: 45px;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
  }

  .nav-item::before {
    left: -18px;
  }

  .agent-card {
    display: grid;
    width: 48px;
    grid-template-columns: 1fr;
    padding: 6px;
  }

  .sidebar-user {
    display: grid;
    width: 48px;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 7px;
  }

  .inbox-grid {
    grid-template-columns: 270px minmax(440px, 1fr);
  }

  .profile-panel {
    display: none;
  }

  .knowledge-layout {
    grid-template-columns: 1fr 260px;
  }
}

@media (max-width: 960px) {
  .topbar {
    min-height: 72px;
    padding-left: 17px;
  }

  .command-search {
    width: 180px;
  }

  .command-search:focus-within {
    width: 210px;
  }

  .live-pill {
    display: none;
  }

  .workspace {
    overflow: auto;
  }

  .inbox-grid {
    grid-template-columns: 245px minmax(430px, 1fr);
    min-width: 720px;
  }

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

  .analytics-grid,
  .queue-layout,
  .knowledge-layout {
    grid-template-columns: 1fr;
  }

  .knowledge-health {
    position: relative;
  }

  .settings-layout {
    grid-template-columns: 190px minmax(500px, 1fr);
  }
}

@media (max-width: 720px) {
  body {
    overflow: auto;
  }

  .app-shell {
    min-height: 100dvh;
    overflow: visible;
  }

  .sidebar {
    position: fixed;
    z-index: 90;
    top: 0;
    bottom: 0;
    left: 0;
    width: 242px;
    align-items: stretch;
    padding: 20px 15px 16px;
    transform: translateX(-105%);
    transition: transform 280ms var(--ease-out);
  }

  body.menu-open .sidebar {
    transform: translateX(0);
  }

  .brand-copy,
  .sidebar-label,
  .nav-item > span:nth-child(2),
  .nav-item .nav-count,
  .nav-item .status-dot,
  .agent-card-copy,
  .agent-card .icon-button,
  .sidebar-user > span:nth-child(2),
  .sidebar-user > i {
    display: flex;
  }

  .nav-item {
    display: grid;
    width: 100%;
    grid-template-columns: 29px 1fr auto;
    justify-items: initial;
    padding: 5px 10px;
  }

  .agent-card {
    display: grid;
    width: auto;
    grid-template-columns: 38px 1fr 29px;
    padding: 10px;
  }

  .sidebar-user {
    display: grid;
    width: 100%;
    grid-template-columns: 31px 1fr auto;
    justify-items: initial;
    padding: 9px;
  }

  .main-area {
    width: 100%;
  }

  .mobile-menu {
    display: inline-grid;
  }

  .topbar {
    position: sticky;
    top: 0;
  }

  .command-search {
    width: 38px;
    justify-content: center;
    padding: 0;
  }

  .command-search input,
  .command-search kbd {
    display: none;
  }

  .command-search:focus-within {
    width: 38px;
  }

  .page-heading h1 {
    font-size:18px;
  }

  .workspace {
    min-height: calc(100dvh - 72px);
    padding: 10px;
  }

  .page {
    overflow: visible;
  }

  .inbox-grid {
    display: block;
    min-width: 0;
  }

  .conversation-panel {
    display: none;
  }

  .chat-panel {
    min-height: calc(100dvh - 93px);
  }

  .ai-brief {
    grid-template-columns: 32px 1fr auto;
  }

  .confidence {
    display: none;
  }

  .control-button {
    width: 34px;
    padding: 0;
    font-size: 0;
  }

  .control-button i {
    font-size:15px;
  }

  .view-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .metrics-hero {
    grid-template-columns: 1fr;
  }

  .hero-metric {
    margin-top: 19px;
    padding: 13px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    border-left: 0;
  }

  .metric-grid,
  .knowledge-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

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

  .queue-layout {
    min-height: auto;
    padding-top: 0;
  }

  .celebration-card {
    min-height: 470px;
    padding: 28px 18px;
  }

  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-nav {
    display: none;
  }

  .settings-form {
    padding: 18px;
  }

  .users-panel {
    overflow-x: auto;
  }

  .table-header,
  .user-row {
    min-width: 760px;
  }

  .composer-note span:last-child {
    display: none;
  }
}

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

/* -------------------------------------------------------------------------- */
/* Future Ops · nocturnal holographic skin                                    */
/* -------------------------------------------------------------------------- */

:root {
  color-scheme: dark;
  --ink: #f4f8ff;
  --ink-soft: #b1c1dc;
  --muted: #758bab;
  --canvas: #050a18;
  --panel: rgba(9, 24, 57, 0.72);
  --panel-solid: #0b1a3e;
  --line: rgba(82, 148, 255, 0.15);
  --line-strong: rgba(94, 165, 255, 0.27);
  --navy: #030817;
  --navy-2: #07183b;
  --blue: #249cff;
  --blue-2: #5ab4ff;
  --cyan: #27ecf2;
  --teal: #19d8bb;
  --violet: #8b63ff;
  --violet-soft: rgba(91, 70, 184, 0.28);
  --green: #28e3aa;
  --amber: #ffc463;
  --danger: #ff6c98;
  --shadow-sm: 0 12px 34px rgba(0, 4, 18, 0.28);
  --shadow-md: 0 22px 56px rgba(0, 3, 18, 0.44);
  --shadow-lg: 0 36px 100px rgba(0, 2, 15, 0.58);
}

body {
  background:
    radial-gradient(circle at 73% -12%, rgba(35, 120, 255, 0.24), transparent 31rem),
    radial-gradient(circle at 82% 92%, rgba(94, 60, 238, 0.18), transparent 34rem),
    radial-gradient(circle at 16% 76%, rgba(0, 210, 231, 0.1), transparent 28rem),
    linear-gradient(145deg, #020611 0%, #07132f 48%, #030817 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(83, 150, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 150, 255, 0.026) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  pointer-events: none;
}

.ambient {
  filter: blur(110px);
  opacity: 0.28;
}

.ambient-one {
  background: #166cff;
}

.ambient-two {
  background: #7139e7;
}

.sidebar {
  border-right: 1px solid rgba(58, 164, 255, 0.2);
  background:
    radial-gradient(circle at 42% -4%, rgba(36, 131, 255, 0.25), transparent 22rem),
    radial-gradient(circle at 92% 73%, rgba(30, 235, 239, 0.08), transparent 19rem),
    linear-gradient(180deg, rgba(6, 22, 55, 0.98), rgba(2, 8, 24, 0.99));
  box-shadow:
    18px 0 54px rgba(0, 3, 18, 0.46),
    inset -1px 0 rgba(87, 164, 255, 0.08);
}

.sidebar::before {
  background-image:
    linear-gradient(rgba(87, 168, 255, 0.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87, 168, 255, 0.034) 1px, transparent 1px);
}

.sidebar::after {
  background: linear-gradient(
    transparent,
    rgba(40, 227, 242, 0.18) 18%,
    rgba(70, 132, 255, 0.76) 48%,
    rgba(141, 88, 255, 0.32) 74%,
    transparent
  );
  box-shadow: 0 0 16px rgba(64, 147, 255, 0.2);
}

.brand img {
  border-color: rgba(86, 180, 255, 0.26);
  background: rgba(7, 25, 63, 0.84);
  box-shadow:
    0 0 0 4px rgba(38, 137, 255, 0.05),
    0 0 30px rgba(35, 146, 255, 0.36);
}

.brand-name {
  background: linear-gradient(90deg, #ffffff, #80ddff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 22px rgba(68, 181, 255, 0.24);
}

.brand-product,
.sidebar-label {
  color: rgba(137, 181, 231, 0.47);
}

.nav-item {
  color: rgba(178, 202, 235, 0.62);
}

.nav-item:hover {
  color: #f4f8ff;
  background: rgba(46, 119, 220, 0.1);
}

.nav-item.active {
  color: white;
  background:
    radial-gradient(circle at 0% 50%, rgba(35, 226, 240, 0.13), transparent 9rem),
    linear-gradient(90deg, rgba(31, 112, 245, 0.27), rgba(61, 82, 177, 0.08));
  box-shadow:
    inset 0 0 0 1px rgba(76, 156, 255, 0.2),
    inset 0 0 26px rgba(31, 119, 248, 0.07),
    0 12px 28px rgba(0, 5, 24, 0.24);
}

.nav-item.active .nav-icon {
  color: #8eeeff;
  background: rgba(45, 145, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(82, 174, 255, 0.1);
}

.nav-count {
  color: #aeeaff;
  background: rgba(39, 142, 255, 0.16);
}

.agent-card {
  border-color: rgba(67, 171, 255, 0.25);
  background:
    radial-gradient(circle at 0% 50%, rgba(58, 76, 223, 0.24), transparent 9rem),
    linear-gradient(120deg, rgba(25, 71, 159, 0.24), rgba(11, 30, 72, 0.66));
  box-shadow:
    inset 0 1px rgba(122, 194, 255, 0.1),
    0 20px 40px rgba(0, 3, 20, 0.34),
    0 0 26px rgba(42, 139, 255, 0.08);
}

.agent-orbit {
  border-color: rgba(84, 211, 255, 0.38);
  background:
    radial-gradient(circle at 35% 25%, rgba(146, 239, 255, 0.26), transparent 32%),
    linear-gradient(145deg, #183e8c, #281f68);
  box-shadow:
    inset 0 0 16px rgba(72, 221, 255, 0.14),
    0 0 22px rgba(47, 169, 255, 0.34);
}

.sidebar-user:hover {
  background: rgba(37, 101, 192, 0.1);
}

.topbar {
  border-bottom-color: rgba(71, 149, 255, 0.14);
  background:
    radial-gradient(circle at 66% 0%, rgba(56, 112, 255, 0.08), transparent 19rem),
    rgba(3, 11, 30, 0.78);
  box-shadow: 0 16px 42px rgba(0, 3, 18, 0.18);
  backdrop-filter: blur(28px) saturate(1.35);
}

.eyebrow {
  color: #6381a8;
}

.eyebrow span {
  color: #375071;
}

.eyebrow b {
  color: #5bd9ff;
  text-shadow: 0 0 12px rgba(40, 202, 255, 0.25);
}

.page-heading h1 {
  color: #f5f8ff;
  text-shadow: 0 0 26px rgba(73, 142, 255, 0.11);
}

.command-search {
  border-color: rgba(81, 151, 255, 0.17);
  background: rgba(7, 24, 59, 0.64);
  box-shadow:
    inset 0 1px rgba(130, 192, 255, 0.06),
    0 9px 24px rgba(0, 4, 20, 0.18);
}

.command-search:focus-within {
  border-color: rgba(49, 207, 255, 0.42);
  box-shadow:
    0 0 0 4px rgba(39, 188, 255, 0.06),
    0 0 28px rgba(44, 147, 255, 0.1);
}

.command-search > i {
  color: #6c91bc;
}

.command-search input {
  color: #e8f2ff;
}

.command-search input::placeholder {
  color: #567092;
}

.command-search kbd {
  border-color: rgba(86, 153, 255, 0.17);
  color: #7392b9;
  background: rgba(13, 42, 90, 0.62);
}

.topbar-core {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  margin: 0 3px;
}

.core-sphere {
  position: relative;
  z-index: 2;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(91, 226, 255, 0.48);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, #8df7ff 0, #2c9dff 23%, #2447ae 54%, #251759 100%);
  box-shadow:
    inset -5px -6px 10px rgba(11, 9, 69, 0.48),
    inset 4px 3px 9px rgba(185, 251, 255, 0.28),
    0 0 13px rgba(35, 206, 255, 0.62),
    0 0 28px rgba(56, 107, 255, 0.32);
  animation: core-float 3.6s ease-in-out infinite;
}

.core-sphere::before,
.core-sphere::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.core-sphere::before {
  inset: 4px 2px;
  border-top: 1px solid rgba(212, 253, 255, 0.78);
  border-bottom: 1px solid rgba(89, 147, 255, 0.32);
  transform: rotate(-18deg);
}

.core-sphere::after {
  inset: 2px 7px;
  border-right: 1px solid rgba(193, 248, 255, 0.56);
  border-left: 1px solid rgba(91, 143, 255, 0.36);
  transform: rotate(22deg);
}

.core-sphere img {
  width: 10px;
  opacity: 0.84;
  filter: brightness(0) invert(1) drop-shadow(0 0 4px white);
}

.core-orbit {
  position: absolute;
  border: 1px solid rgba(49, 209, 255, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 7px rgba(42, 163, 255, 0.2);
}

.core-orbit::after {
  position: absolute;
  top: 50%;
  left: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8df7ff;
  box-shadow: 0 0 8px #45dfff;
  content: "";
}

.orbit-a {
  width: 39px;
  height: 18px;
  transform: rotate(-17deg);
  animation: core-orbit-a 5s linear infinite;
}

.orbit-b {
  width: 33px;
  height: 12px;
  border-color: rgba(137, 92, 255, 0.44);
  transform: rotate(34deg);
  animation: core-orbit-b 4s linear infinite reverse;
}

.live-pill {
  border-color: rgba(39, 221, 174, 0.19);
  color: #7195a6;
  background: rgba(4, 48, 61, 0.52);
  box-shadow: inset 0 0 18px rgba(27, 226, 190, 0.035);
}

.live-pill b {
  color: #5af1c6;
}

.live-pill > span:last-child {
  border-left-color: rgba(85, 226, 198, 0.12);
}

.notification-button,
.icon-button.soft {
  border-color: rgba(76, 146, 244, 0.16);
  color: #7793b9;
  background: rgba(8, 28, 66, 0.66);
}

.icon-button.soft:hover,
.notification-button:hover {
  color: #8ceeff;
  background: rgba(17, 50, 105, 0.78);
  box-shadow:
    0 0 0 1px rgba(80, 198, 255, 0.12),
    0 0 22px rgba(42, 145, 255, 0.12);
}

.workspace {
  isolation: isolate;
  background:
    radial-gradient(circle at 68% 5%, rgba(40, 113, 255, 0.13), transparent 26rem),
    radial-gradient(circle at 53% 118%, rgba(98, 53, 228, 0.16), transparent 31rem);
}

.workspace::before {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(52, 135, 255, 0.036) 1px, transparent 1px),
    linear-gradient(rgba(52, 135, 255, 0.036) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 58% 35%, black, transparent 78%);
}

.workspace::after {
  position: absolute;
  right: -10%;
  bottom: -55%;
  left: 8%;
  z-index: -1;
  height: 72%;
  border: 1px solid rgba(59, 166, 255, 0.08);
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      ellipse at center,
      transparent 0 18px,
      rgba(50, 146, 255, 0.035) 19px 20px
    );
  content: "";
  filter: drop-shadow(0 0 30px rgba(43, 102, 255, 0.08));
  transform: perspective(600px) rotateX(68deg);
  transform-origin: bottom;
  pointer-events: none;
}

.panel {
  border-color: rgba(80, 153, 255, 0.17);
  background:
    radial-gradient(circle at 14% 0%, rgba(44, 112, 235, 0.08), transparent 18rem),
    linear-gradient(145deg, rgba(13, 35, 80, 0.82), rgba(5, 16, 40, 0.72));
  box-shadow:
    inset 0 1px rgba(129, 199, 255, 0.08),
    inset 0 0 32px rgba(43, 113, 228, 0.025),
    var(--shadow-sm);
  backdrop-filter: blur(26px) saturate(1.35);
}

.panel::after,
.metric-card::after,
.knowledge-card::after {
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(53, 181, 255, 0.12),
    transparent 58%
  );
}

.section-kicker {
  color: #4ddcff;
  text-shadow: 0 0 12px rgba(58, 210, 255, 0.26);
}

.panel-header h2,
.view-toolbar h2 {
  color: #f2f7ff;
}

.panel-header h2 .count-badge {
  color: #86e7ff;
  background: rgba(37, 123, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(58, 169, 255, 0.12);
}

.conversation-heading {
  border-bottom: 1px solid rgba(69, 147, 255, 0.09);
}

.filter-chip {
  color: #6982a4;
}

.filter-chip:hover {
  color: #dcecff;
  background: rgba(29, 79, 153, 0.18);
}

.filter-chip.active {
  border-color: rgba(50, 186, 255, 0.22);
  color: #75eaff;
  background:
    linear-gradient(135deg, rgba(31, 123, 240, 0.22), rgba(76, 59, 195, 0.12));
  box-shadow:
    inset 0 0 15px rgba(45, 154, 255, 0.07),
    0 0 15px rgba(28, 166, 255, 0.06);
}

.conversation:hover {
  background: rgba(22, 58, 119, 0.28);
}

.conversation.active {
  border-color: rgba(61, 199, 255, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(123, 75, 241, 0.18), transparent 62%),
    linear-gradient(120deg, rgba(19, 68, 151, 0.62), rgba(11, 31, 72, 0.68));
  box-shadow:
    0 11px 27px rgba(0, 5, 24, 0.28),
    inset 3px 0 #31d9ff,
    inset 0 0 24px rgba(39, 132, 255, 0.05);
}

.conversation::before {
  background: conic-gradient(
    from var(--orbit-angle, 0deg),
    transparent 0 38%,
    rgba(70, 167, 255, 0.84) 46%,
    rgba(52, 238, 244, 0.86) 50%,
    transparent 57% 100%
  );
}

.conversation-top strong {
  color: #eaf4ff;
}

.conversation-preview,
.conversation-meta,
.conversation-time {
  color: #6f87a9;
}

.avatar {
  border-color: rgba(137, 213, 255, 0.35);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.22),
    0 0 14px rgba(59, 150, 255, 0.23);
}

.chat-panel {
  background:
    radial-gradient(circle at 76% 15%, rgba(109, 70, 238, 0.14), transparent 20rem),
    radial-gradient(circle at 19% 76%, rgba(38, 205, 226, 0.08), transparent 23rem),
    linear-gradient(145deg, rgba(9, 29, 68, 0.88), rgba(3, 12, 31, 0.8));
}

.chat-panel::before {
  background-image: radial-gradient(rgba(71, 151, 255, 0.16) 0.7px, transparent 0.8px);
  opacity: 0.34;
}

.chat-header {
  border-bottom-color: rgba(70, 149, 255, 0.13);
  background: rgba(5, 20, 48, 0.5);
}

.candidate-identity strong {
  color: #f2f7ff;
}

.candidate-identity small {
  color: #7189aa;
}

.stage-pill {
  border-color: rgba(130, 90, 255, 0.24);
  color: #baabff;
  background: rgba(75, 46, 158, 0.31);
  box-shadow: inset 0 0 17px rgba(127, 87, 255, 0.08);
}

.ai-brief {
  border-color: rgba(78, 183, 255, 0.24);
  background:
    radial-gradient(circle at 0% 50%, rgba(90, 56, 214, 0.3), transparent 12rem),
    linear-gradient(118deg, rgba(25, 58, 132, 0.74), rgba(9, 29, 72, 0.78));
  box-shadow:
    inset 0 1px rgba(150, 211, 255, 0.1),
    0 12px 27px rgba(0, 5, 24, 0.25),
    0 0 24px rgba(62, 122, 255, 0.07);
}

.ai-spark {
  border: 1px solid rgba(117, 231, 255, 0.36);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 25%, #b8f9ff, #3dafff 25%, #4540bc 62%, #25145e);
  box-shadow:
    inset 0 0 13px rgba(116, 231, 255, 0.23),
    0 0 20px rgba(46, 181, 255, 0.5),
    0 0 35px rgba(105, 69, 226, 0.24);
}

.ai-brief-copy span {
  color: #6ee7ff;
}

.ai-brief-copy p {
  color: #b6c7e0;
}

.confidence {
  border-right-color: rgba(89, 159, 255, 0.15);
}

.confidence span {
  color: #6680a5;
}

.confidence strong {
  color: #a88cff;
  text-shadow: 0 0 11px rgba(138, 93, 255, 0.36);
}

.control-button,
.primary-button {
  color: white;
  background:
    linear-gradient(135deg, rgba(43, 151, 255, 0.95), rgba(56, 62, 188, 0.96));
  box-shadow:
    inset 0 1px rgba(197, 237, 255, 0.24),
    0 9px 19px rgba(0, 91, 255, 0.25),
    0 0 19px rgba(38, 164, 255, 0.13);
}

.control-button.controlled {
  color: #89a4c9;
  background: rgba(24, 51, 95, 0.74);
  box-shadow: inset 0 0 0 1px rgba(81, 152, 255, 0.14);
}

.day-divider {
  color: #587193;
}

.day-divider::before,
.day-divider::after {
  background: linear-gradient(90deg, transparent, rgba(58, 153, 255, 0.13));
}

.day-divider::after {
  background: linear-gradient(90deg, rgba(58, 153, 255, 0.13), transparent);
}

.message-who {
  color: #6883a6;
}

.bubble {
  border-color: rgba(82, 157, 255, 0.16);
  color: #c5d6eb;
  background:
    radial-gradient(circle at 0% 0%, rgba(63, 132, 237, 0.08), transparent 10rem),
    rgba(10, 29, 67, 0.83);
  box-shadow:
    inset 0 1px rgba(145, 204, 255, 0.05),
    0 8px 20px rgba(0, 4, 20, 0.22);
}

.message.agent .bubble {
  border-color: rgba(130, 92, 255, 0.22);
  color: #d9d2ff;
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 86, 255, 0.25), transparent 68%),
    linear-gradient(130deg, rgba(35, 31, 91, 0.9), rgba(16, 38, 84, 0.88));
  box-shadow:
    inset 0 1px rgba(184, 165, 255, 0.08),
    0 8px 24px rgba(12, 7, 44, 0.26),
    0 0 18px rgba(113, 74, 234, 0.05);
}

.message.human .bubble {
  border-color: rgba(65, 203, 255, 0.28);
  color: #f5fbff;
  background: linear-gradient(135deg, #126bc6, #283994);
  box-shadow:
    inset 0 1px rgba(188, 240, 255, 0.18),
    0 10px 25px rgba(0, 61, 174, 0.28),
    0 0 22px rgba(35, 166, 255, 0.09);
}

.message-time {
  color: #526a8e;
}

.composer-wrap {
  border-top-color: rgba(75, 153, 255, 0.12);
  background: rgba(4, 16, 40, 0.57);
}

.composer {
  border-color: rgba(75, 156, 255, 0.2);
  background: rgba(7, 25, 59, 0.83);
  box-shadow:
    inset 0 1px rgba(134, 202, 255, 0.06),
    0 10px 24px rgba(0, 3, 18, 0.28);
}

.composer:focus-within {
  border-color: rgba(51, 218, 255, 0.4);
  box-shadow:
    0 0 0 4px rgba(45, 197, 255, 0.05),
    0 0 27px rgba(43, 153, 255, 0.1);
}

.composer textarea {
  color: #e8f3ff;
}

.composer textarea::placeholder,
.composer-note {
  color: #587092;
}

.composer-action {
  color: #6c86aa;
}

.composer-action:hover {
  color: #77e8ff;
  background: rgba(30, 103, 188, 0.16);
}

.send-button {
  background: linear-gradient(135deg, #22b9ff, #3540bd);
  box-shadow:
    inset 0 1px rgba(203, 246, 255, 0.22),
    0 8px 18px rgba(0, 111, 255, 0.27),
    0 0 17px rgba(30, 189, 255, 0.13);
}

.profile-top,
.journey-section,
.profile-data,
.setting-toggle,
.form-actions {
  border-color: rgba(74, 150, 255, 0.11);
}

.score-ring {
  background:
    radial-gradient(circle, #091a3c 57%, transparent 60%),
    conic-gradient(#27dcf2 0 var(--score-angle), rgba(45, 79, 135, 0.34) var(--score-angle) 360deg);
  box-shadow:
    0 0 22px rgba(35, 182, 255, 0.24),
    inset 0 0 20px rgba(36, 116, 255, 0.08);
}

.fit-badge {
  border-color: #0b1b40;
  color: #c0b0ff;
  background: #33276e;
  box-shadow: 0 5px 16px rgba(28, 11, 95, 0.28);
}

.profile-top h3 {
  color: #f4f8ff;
}

.profile-top > p,
.profile-data dt {
  color: #6e86a7;
}

.profile-actions button {
  border-color: rgba(76, 155, 255, 0.15);
  color: #7d96b9;
  background: rgba(11, 34, 77, 0.63);
}

.profile-actions button i {
  color: #53d8ff;
}

.profile-actions button:hover {
  border-color: rgba(57, 211, 255, 0.3);
  color: #dff8ff;
  background: rgba(18, 55, 113, 0.74);
  box-shadow: 0 0 22px rgba(42, 158, 255, 0.09);
}

.section-title > span {
  color: #6882a6;
}

.section-title button,
.section-title small {
  color: #5bdcff;
}

.profile-data dd {
  color: #c1d2e9;
}

.profile-data dd.accent-value {
  color: #b69cff;
}

.journey::before {
  background: rgba(74, 124, 191, 0.3);
}

.journey-step i.step-dot {
  border-color: #365177;
  background: #0a1b3e;
}

.journey-step.done i.step-dot {
  border-color: #28c8ed;
  background: linear-gradient(145deg, #27cfe9, #3262dc);
  box-shadow: 0 0 10px rgba(39, 207, 233, 0.25);
}

.journey-step.current i.step-dot {
  border-color: rgba(81, 211, 255, 0.38);
  background: #42d8f4;
  box-shadow:
    0 0 0 3px rgba(45, 182, 255, 0.09),
    0 0 15px rgba(57, 211, 255, 0.4);
}

.journey-step span {
  color: #627a9d;
}

.journey-step.done span,
.journey-step.current span {
  color: #c8d9ee;
}

.journey-step em {
  color: #587092;
}

.smart-next {
  border-color: rgba(76, 174, 255, 0.2);
  background:
    radial-gradient(circle at 90% 0%, rgba(125, 73, 237, 0.25), transparent 66%),
    linear-gradient(135deg, rgba(16, 51, 111, 0.78), rgba(9, 27, 67, 0.86));
  box-shadow: inset 0 1px rgba(137, 207, 255, 0.08);
}

.smart-next-icon {
  border-radius: 50%;
  background: radial-gradient(circle at 33% 25%, #a8f5ff, #379dff 31%, #5735b7 76%);
  box-shadow:
    inset 0 0 12px rgba(153, 241, 255, 0.21),
    0 0 18px rgba(45, 177, 255, 0.42);
}

.smart-next small {
  color: #72dfff;
}

.smart-next strong {
  color: #d8e6f8;
}

.view-toolbar h2 span {
  color: #6c83a4;
}

.secondary-button,
.period-button {
  border-color: rgba(75, 151, 255, 0.17);
  color: #7e97ba;
  background: rgba(8, 29, 67, 0.68);
}

.secondary-button:hover,
.period-button:hover {
  border-color: rgba(48, 205, 255, 0.3);
  color: #8cedff;
  background: rgba(14, 45, 96, 0.82);
  box-shadow: 0 0 22px rgba(40, 157, 255, 0.1);
}

.pipeline-insight {
  border-color: rgba(101, 88, 255, 0.22);
  background:
    radial-gradient(circle at 0% 50%, rgba(111, 65, 236, 0.28), transparent 22rem),
    linear-gradient(90deg, rgba(14, 34, 81, 0.82), rgba(6, 20, 50, 0.74));
  box-shadow:
    inset 0 1px rgba(139, 200, 255, 0.06),
    0 10px 26px rgba(0, 4, 21, 0.24);
}

.pipeline-insight p {
  color: #9fb2cd;
}

.pipeline-insight strong {
  color: #d7d0ff;
}

.pipeline-insight button {
  color: #91eaff;
}

.pipeline-shell {
  background:
    radial-gradient(circle at 13% 0%, rgba(50, 122, 248, 0.1), transparent 24rem),
    rgba(5, 17, 43, 0.74);
}

.pipeline-topline {
  border-bottom-color: rgba(74, 150, 255, 0.12);
  color: #6f87a8;
}

.pipeline-column {
  border-color: color-mix(in srgb, var(--stage) 23%, transparent);
  background:
    radial-gradient(circle at 50% -35%, color-mix(in srgb, var(--stage) 18%, transparent), transparent 14rem),
    linear-gradient(180deg, rgba(11, 34, 78, 0.76), rgba(4, 16, 39, 0.68));
  box-shadow:
    inset 0 2px color-mix(in srgb, var(--stage) 74%, transparent),
    inset 0 0 23px color-mix(in srgb, var(--stage) 4%, transparent);
}

.pipeline-column.drag-over {
  border-color: color-mix(in srgb, var(--stage) 65%, transparent);
  background: color-mix(in srgb, var(--stage) 12%, #07162f);
  box-shadow:
    inset 0 0 28px color-mix(in srgb, var(--stage) 10%, transparent),
    0 0 24px color-mix(in srgb, var(--stage) 15%, transparent);
}

.stage-header strong {
  color: #d7e4f6;
}

.stage-header span {
  color: #8ca3c2;
  background: rgba(11, 35, 79, 0.8);
  box-shadow: inset 0 0 0 1px rgba(77, 149, 255, 0.12);
}

.pipeline-card {
  border-color: rgba(73, 147, 255, 0.16);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--stage) 9%, transparent), transparent 68%),
    linear-gradient(145deg, rgba(15, 42, 92, 0.9), rgba(7, 24, 58, 0.88));
  box-shadow:
    inset 0 1px rgba(143, 204, 255, 0.07),
    0 10px 22px rgba(0, 4, 22, 0.24);
}

.pipeline-card:hover {
  border-color: color-mix(in srgb, var(--stage) 52%, transparent);
  box-shadow:
    inset 0 1px rgba(165, 220, 255, 0.09),
    0 13px 29px rgba(0, 4, 22, 0.36),
    0 0 18px color-mix(in srgb, var(--stage) 10%, transparent);
}

.pipeline-person strong {
  color: #e8f2ff;
}

.pipeline-person small,
.pipeline-card-meta,
.card-next {
  color: #6680a2;
}

.pipeline-card-meta .match {
  color: #c2b3ff;
  background: rgba(93, 64, 185, 0.3);
}

.card-next {
  border-top-color: rgba(77, 151, 255, 0.1);
}

.metrics-hero {
  border-color: rgba(70, 180, 255, 0.3);
  background:
    radial-gradient(circle at 82% 50%, rgba(41, 227, 239, 0.22), transparent 17rem),
    radial-gradient(circle at 18% -50%, rgba(113, 67, 242, 0.36), transparent 29rem),
    linear-gradient(120deg, #081b49, #102b6b 55%, #07152f);
  box-shadow:
    inset 0 1px rgba(161, 220, 255, 0.12),
    0 22px 62px rgba(0, 2, 18, 0.46),
    0 0 35px rgba(33, 131, 255, 0.08);
}

.metric-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(42, 132, 255, 0.11), transparent 62%),
    linear-gradient(145deg, rgba(13, 38, 84, 0.86), rgba(5, 18, 45, 0.83));
}

.metric-card:hover {
  box-shadow:
    inset 0 1px rgba(154, 217, 255, 0.08),
    0 22px 55px rgba(0, 3, 20, 0.44),
    0 0 26px rgba(34, 146, 255, 0.08);
}

.metric-label {
  color: #7b91af;
}

.metric-label i {
  color: #62dfff;
  background: rgba(34, 104, 210, 0.17);
  box-shadow: inset 0 0 0 1px rgba(72, 175, 255, 0.11);
}

.spark-bars i {
  background: linear-gradient(to top, rgba(37, 99, 210, 0.25), #43baff);
  box-shadow: 0 0 7px rgba(50, 171, 255, 0.16);
}

.spark-bars.teal i {
  background: linear-gradient(to top, rgba(17, 119, 123, 0.25), #26e6cc);
}

.metric-footer small,
.funnel-v2 span,
.funnel-v2 small,
.chart-legend,
.chart-labels {
  color: #687f9e;
}

.progress-track,
.funnel-v2 b {
  background: rgba(40, 66, 111, 0.34);
}

.progress-track b {
  background: #7792b6;
}

.automation-row {
  color: #c1afff;
  background: rgba(91, 61, 188, 0.28);
}

.funnel-v2 b i {
  background: linear-gradient(90deg, #1c60bd, #2e96ef 62%, #45d8ef);
  box-shadow:
    inset 0 1px rgba(199, 241, 255, 0.16),
    0 0 14px rgba(45, 160, 255, 0.16);
}

.chart-legend .legend-base {
  border-color: #566d91;
}

.celebration-card::before {
  background: radial-gradient(circle, rgba(36, 227, 170, 0.15), transparent 66%);
}

.celebration-card > p,
.activity-feed small,
.activity-feed time {
  color: #758aa8;
}

.queue-stats {
  border-color: rgba(72, 151, 255, 0.12);
}

.queue-stats > div {
  border-right-color: rgba(72, 151, 255, 0.12);
}

.activity-feed > div,
.learned-list > div,
.user-row {
  border-bottom-color: rgba(72, 151, 255, 0.11);
}

.activity-icon.violet {
  color: #c2afff;
  background: rgba(94, 61, 190, 0.26);
}

.activity-icon.teal {
  color: #62f1d7;
  background: rgba(14, 126, 119, 0.24);
}

.activity-icon.blue {
  color: #66dfff;
  background: rgba(32, 102, 200, 0.23);
}

.activity-icon.amber {
  color: #ffd084;
  background: rgba(144, 91, 19, 0.24);
}

.knowledge-card {
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--tone) 10%, transparent), transparent 13rem),
    linear-gradient(145deg, rgba(13, 37, 83, 0.84), rgba(5, 18, 44, 0.82));
}

.knowledge-icon {
  color: color-mix(in srgb, var(--tone) 65%, #8cefff);
  background: color-mix(in srgb, var(--tone) 13%, rgba(6, 24, 55, 0.8));
}

.knowledge-card h3,
.knowledge-health h3,
.analytics-heading h3 {
  color: #ebf4ff;
}

.knowledge-card p,
.knowledge-health > p {
  color: #768bab;
}

.knowledge-card button,
.learned-list button {
  border-color: rgba(74, 153, 255, 0.15);
  color: #7590b4;
  background: rgba(9, 32, 72, 0.72);
}

.learned-list strong {
  color: #dce8f7;
}

.learned-list small {
  color: #7085a4;
}

.confidence-tag {
  color: #c1b2ff;
  background: rgba(92, 64, 184, 0.28);
}

.health-orbit {
  background:
    radial-gradient(circle, #091b3e 57%, transparent 59%),
    conic-gradient(#25e2c3 0 94%, rgba(47, 73, 118, 0.38) 94% 100%);
  box-shadow:
    0 0 26px rgba(37, 226, 195, 0.18),
    inset 0 0 21px rgba(37, 226, 195, 0.05);
}

.coverage-list {
  color: #7086a5;
}

.coverage-list b {
  background: rgba(47, 73, 118, 0.38);
}

.coverage-list > div {
  color: #7c91af;
}

.coverage-list em {
  color: #9eb1ca;
}

.settings-nav button {
  color: #748aa9;
}

.settings-nav button.active {
  color: #71e2ff;
  background: rgba(29, 96, 189, 0.22);
  box-shadow: inset 0 0 0 1px rgba(64, 168, 255, 0.13);
}

.settings-heading,
.form-actions {
  border-bottom-color: rgba(76, 151, 255, 0.11);
}

.settings-heading p,
.field small,
.setting-toggle small {
  color: #6d82a2;
}

.settings-agent {
  border-color: rgba(83, 188, 255, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 24%, rgba(150, 247, 255, 0.45), transparent 26%),
    linear-gradient(145deg, #1b62b7, #322576);
  box-shadow:
    inset 0 0 15px rgba(111, 226, 255, 0.14),
    0 0 23px rgba(45, 170, 255, 0.28);
}

.field > span,
.setting-toggle strong {
  color: #b8cae1;
}

.field select,
.field input {
  border-color: rgba(79, 153, 255, 0.2);
  color: #c9d8eb;
  background: rgba(7, 25, 59, 0.77);
}

.field select:focus,
.field input:focus {
  border-color: rgba(48, 213, 255, 0.4);
  background: rgba(10, 34, 75, 0.9);
  box-shadow:
    0 0 0 4px rgba(40, 192, 255, 0.05),
    0 0 22px rgba(37, 151, 255, 0.08);
}

.input-prefix b {
  border-color: rgba(79, 153, 255, 0.2);
  color: #7992b5;
  background: rgba(16, 41, 84, 0.8);
}

.switch span {
  background: #243a5f;
}

.switch input:checked + span {
  background: linear-gradient(90deg, #248cf5, #29d9e6);
  box-shadow: 0 0 12px rgba(39, 198, 232, 0.18);
}

.table-header {
  color: #6680a3;
  background: rgba(7, 27, 63, 0.72);
}

.user-row {
  color: #7c91ae;
}

.user-row:hover {
  background: rgba(19, 55, 111, 0.22);
}

.user-row p strong {
  color: #e7f1ff;
}

.user-row p small {
  color: #6e84a4;
}

.role-badge {
  color: #91a7c3;
  background: rgba(42, 68, 111, 0.43);
}

.role-badge.admin {
  color: #c6b7ff;
  background: rgba(96, 63, 190, 0.28);
}

.role-badge.viewer {
  color: #83e8ee;
  background: rgba(17, 109, 129, 0.26);
}

.active-status {
  color: #67deb9;
}

.pending-status {
  color: #efbd74;
}

.user-row > button:hover {
  color: #73e8ff;
  background: rgba(30, 103, 188, 0.2);
}

.empty-search {
  color: #7186a5;
}

.empty-search > i {
  color: #65deff;
  background: rgba(31, 104, 204, 0.2);
}

.empty-search strong {
  color: #dbe8f8;
}

.toast {
  border-color: rgba(77, 191, 255, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(104, 69, 232, 0.3), transparent 60%),
    rgba(3, 15, 40, 0.94);
  box-shadow:
    inset 0 1px rgba(137, 211, 255, 0.08),
    0 20px 48px rgba(0, 2, 16, 0.55),
    0 0 25px rgba(46, 155, 255, 0.08);
}

@keyframes core-float {
  50% {
    transform: translateY(-2px) scale(1.04);
  }
}

@keyframes core-orbit-a {
  to {
    transform: rotate(343deg);
  }
}

@keyframes core-orbit-b {
  to {
    transform: rotate(394deg);
  }
}

@media (max-width: 960px) {
  .topbar-core {
    display: none;
  }
}
/* ══════════════════════════════════════════════════════════════════════════
   Adaptación al CRM real (Nova) — complementa el CSS del prototipo Future Ops.
   Todo lo de arriba es el prototipo verbatim (docs/design-holo/styles.css).
   ══════════════════════════════════════════════════════════════════════ */
.hide{display:none!important}

/* Avatares genéricos por id (mismos gradientes del prototipo) */
.avatar.p1{background:linear-gradient(145deg,#3f72f2,#735cef)}
.avatar.p2{background:linear-gradient(145deg,#12a69f,#2fcab8)}
.avatar.p3{background:linear-gradient(145deg,#9d54da,#6d5ceb)}
.avatar.p4{background:linear-gradient(145deg,#3453a8,#1b2e68)}
.avatar.p5{background:linear-gradient(145deg,#e7659b,#9d54da)}
.avatar.p6{background:linear-gradient(145deg,#1dba80,#16959e)}
.avatar.p7{background:linear-gradient(145deg,#8054eb,#43317e)}
.avatar.p8{background:linear-gradient(145deg,#e99741,#c95779)}
.avatar.xl{width:64px;height:64px;font-size:20px;border-radius:18px;border-width:3px}
.avatar[style*="background-image"]{background-size:cover;background-position:center}

/* Chips: caben los 7 filtros reales */
.filter-row{flex-wrap:wrap}

/* Acciones admin sobre mensajes (kit de entrenamiento 📝/✕) */
.message{position:relative}
.message .macts{display:none;position:absolute;top:14px;gap:4px;z-index:3}
.message.candidate .macts{left:2px}
.message:not(.candidate) .macts{right:2px}
.message:hover .macts{display:flex}
.mact{border:1px solid var(--line-strong);background:var(--panel-solid);border-radius:8px;padding:2px 7px;font-size:13px;cursor:pointer;box-shadow:var(--shadow-sm)}
.mact:hover{border-color:var(--blue)}

/* Selector de etapa (perfil) */
.stage-select{appearance:none;-webkit-appearance:none;border:1px solid var(--line-strong);background:var(--panel-solid);color:var(--ink);font-size:14px;font-weight:600;padding:5px 26px 5px 10px;border-radius:10px;cursor:pointer;outline:none;background-image:linear-gradient(45deg,transparent 50%,var(--ink-soft) 50%),linear-gradient(135deg,var(--ink-soft) 50%,transparent 50%);background-position:calc(100% - 14px) 55%,calc(100% - 10px) 55%;background-size:4px 4px;background-repeat:no-repeat}
.stage-select:focus-visible{border-color:var(--blue)}

/* Cola de atención real */
.queue-real{display:grid;grid-template-columns:360px 1fr;gap:18px;height:100%;min-height:0}
.esc-list-panel{display:flex;flex-direction:column;gap:10px;overflow:auto;min-height:0}
.esc-item{display:flex;flex-direction:column;gap:8px;text-align:left;border:1px solid var(--line);background:var(--panel);border-radius:var(--radius);padding:13px 14px;cursor:pointer;transition:transform .18s var(--ease-out),box-shadow .2s,border-color .2s;box-shadow:var(--shadow-sm)}
.esc-item:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}
.esc-item.active{border-color:var(--blue);box-shadow:0 0 0 3px rgba(52,91,233,.12),var(--shadow-md)}
.esc-item .esc-top{display:flex;align-items:center;gap:9px}
.esc-item .esc-top strong{font-family:"Manrope",sans-serif;font-size:15px}
.wait{margin-left:auto;font-size:13px;font-weight:700;padding:3px 9px;border-radius:999px;background:rgba(241,98,122,.12);color:var(--danger);display:inline-flex;align-items:center;gap:4px;flex:none}
.wait.amber{background:rgba(237,159,50,.14);color:var(--amber)}
.esc-q{font-size:15px;background:rgba(29,50,101,.05);border-radius:11px;padding:9px 12px;line-height:1.45}
.esc-why{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:5px}
.esc-detail-col{display:flex;flex-direction:column;gap:16px;overflow:auto;min-height:0}
.answer-box{width:100%;min-height:96px;resize:vertical;border:1px solid var(--line-strong);border-radius:13px;padding:12px 14px;background:var(--panel-solid);color:var(--ink);line-height:1.5;outline:none}
.answer-box:focus-visible{border-color:var(--blue)}
.mini-thread{display:flex;flex-direction:column;gap:12px;margin-top:6px}

/* Usuarios: acciones y edición */
.btn-sm{font-size:14px;padding:7px 12px;border-radius:11px}
.btn-danger{color:var(--danger)!important}
.user-actions{display:flex;gap:6px;justify-content:flex-end}
.user-row .doc{color:var(--muted);font-size:14px}

/* Aprendido: borrar */
.learned-del{margin-left:auto;flex:none;width:28px;height:28px;border-radius:9px;border:1px solid var(--line);background:transparent;cursor:pointer;display:grid;place-items:center;color:var(--muted)}
.learned-del:hover{color:var(--danger);border-color:var(--danger)}

/* Conocimiento sin panel de salud (una columna) */
.knowledge-layout{grid-template-columns:1fr}

/* Tarjeta Nova AI apagada (interruptor maestro) */
.agent-card.off .agent-card-copy span{color:var(--danger)}
.agent-card.off .agent-card-copy span i{background:var(--danger);animation:none}
.agent-card{cursor:pointer}

/* Login */
.login-body{display:flex;align-items:center;justify-content:center;height:100vh}
.login-panel{width:min(380px,92vw);display:flex;flex-direction:column;gap:14px;border:1px solid var(--line);background:var(--panel);backdrop-filter:blur(14px);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);padding:34px 30px}
.login-panel .mark{width:92px;height:92px;border-radius:20px;margin:0 auto 4px;display:block}
.login-panel h1{font-family:"Manrope",sans-serif;font-size:22px;text-align:center;margin:0}
.login-panel .sub{text-align:center;color:var(--muted);font-size:15px;margin-bottom:6px}
.login-panel label{font-size:14px;font-weight:600;color:var(--ink-soft)}
.login-panel input{width:100%;margin-top:5px;border:1px solid var(--line-strong);border-radius:12px;padding:11px 13px;background:var(--panel-solid);color:var(--ink);outline:none}
.login-panel input:focus-visible{border-color:var(--blue)}
.login-panel .primary-button{width:100%;justify-content:center;margin-top:8px}
.login-err{color:var(--danger);font-size:14px;text-align:center;min-height:16px}

/* Detalles */
.conversation .ai-mini{margin-left:auto}
.composer textarea{max-height:88px}
.page{min-height:0}
.chart-wrap{position:relative}
.chart-wrap canvas{width:100%;height:200px;display:block}

/* ══ Legibilidad del chat (ajuste de producción sobre el prototipo) ══ */
.bubble{font-size:14px;padding:10px 13px;line-height:1.55}
.message-who{font-size:11px}
.message-time{font-size:11px}
.conversation-top strong{font-size:15px}
.conversation-preview{font-size:13px}
.conversation-meta{font-size:12px}
.conversation-time{font-size:11.5px}
.ai-brief-copy p{font-size:13.5px}
.composer textarea,.composer textarea::placeholder{font-size:14px}
.answer-box{font-size:14px}

/* Glifo IA: tamaño base en cualquier contexto (las reglas propias del
   prototipo — lista, redactor, pills — pesan más y se conservan) */
img.ai-mini{width:16px;height:auto;flex:none}
.pipeline-card{position:relative}
.pipeline-card .ai-corner{position:absolute;right:10px;bottom:10px;width:28px;height:auto;opacity:.9;pointer-events:none}
