.conversation-workspace {
  height:calc(100vh - 228px);
  min-height:600px;
  display:grid;
  grid-template-columns:320px minmax(420px,1fr) 280px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--shadow-soft);
}
.conversation-list-panel,.lead-context-panel {
  padding:18px;
  background:#fbfcfb;
}
.conversation-list-panel {
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  min-height:0;
}
.lead-context-panel {
  border-left:1px solid var(--line);
  overflow:auto;
}
.conversation-list-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
}
.conversation-list-head h2 {
  margin:3px 0 0;
  font-size:17px;
}
.conversation-filter-chips {
  display:flex;
  gap:5px;
  overflow:auto;
  padding:10px 0;
  flex-shrink:0;
}
.chip {
  height:29px;
  border:1px solid #e9ece8;
  background:#fff;
  border-radius:16px;
  padding:0 10px;
  font-size:9px;
  white-space:nowrap;
}
.chip.is-active {
  background:var(--lime);
  border-color:var(--lime);
  font-weight:800;
}
.conversation-list {
  display:grid;
  align-content:start;
  gap:4px;
  overflow:auto;
  padding-right:3px;
  flex:1;
  min-height:0;
}
.conversation-list-item {
  border:0;
  background:transparent;
  border-radius:15px;
  padding:9px;
  display:grid;
  grid-template-columns:38px 1fr;
  gap:9px;
  text-align:left;
}
.conversation-list-item:hover {
  background:#f2f5f1;
}
.conversation-list-item.is-active {
  background:var(--lime-soft);
  box-shadow:inset 3px 0 var(--lime-deep);
}
.conversation-list-item>div {
  min-width:0;
}
.conversation-item-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.conversation-item-top strong {
  font-size:10px;
}
.conversation-item-top time {
  font-size:8px;
  color:var(--muted);
}
.conversation-list-item span {
  font-size:8px;
  color:#6b746c;
}
.conversation-list-item p {
  font-size:9px;
  color:#5d655d;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  margin:4px 0;
}
.conversation-tags {
  display:flex;
  align-items:center;
  gap:5px;
}
.conversation-tags b {
  width:18px;
  height:18px;
  border-radius:50%;
  background:var(--green);
  color:#fff;
  font-size:8px;
  display:grid;
  place-items:center;
}
.chat-panel {
  display:grid;
  /* minmax(0,1fr): sem isso a linha da timeline cresce com o conteúdo e o painel corta as mensagens recentes. */
  grid-template-rows:auto minmax(0,1fr) auto;
  min-width:0;
  min-height:0;
  background:linear-gradient(#fff,#fcfdfc);
}
.chat-header {
  height:78px;
  padding:14px 18px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.chat-person {
  display:flex;
  align-items:center;
  gap:10px;
}
.chat-person h3 {
  margin:0 0 2px;
  font-size:14px;
}
.chat-person span {
  font-size:9px;
  color:var(--muted);
}
.chat-header-actions {
  display:flex;
  align-items:center;
  gap:7px;
}
.chat-timeline {
  padding:18px 22px;
  overflow:auto;
  background-image:radial-gradient(#eef3eb 1px,transparent 1px);
  background-size:22px 22px;
}
.date-divider {
  text-align:center;
  margin-bottom:16px;
}
.date-divider span {
  background:#fff;
  border:1px solid #edf0ed;
  border-radius:14px;
  padding:5px 10px;
  font-size:8px;
  color:var(--muted);
}
.message-row {
  max-width:72%;
  margin:12px 0;
}
.message-row--lead {
  margin-left:auto;
}
.message-meta {
  display:flex;
  gap:8px;
  align-items:center;
  margin:0 5px 4px;
  font-size:8px;
  color:#768078;
}
.message-bubble {
  border-radius:16px;
  padding:11px 13px;
  font-size:10px;
  line-height:1.55;
  border:1px solid #edf0ed;
  background:#fff;
  box-shadow:0 3px 10px rgba(27,38,22,.025);
}
.message-row--lead .message-bubble {
  background:#d9fbe3;
  border-color:#cef4d8;
}
.message-row--lead .message-meta {
  justify-content:flex-end;
}
.typing-status {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:8px;
  color:var(--muted);
  margin-top:16px;
}
.ai-pulse {
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--lime-deep);
  box-shadow:0 0 0 0 rgba(174,243,46,.6);
  animation:pulse 1.8s infinite;
}
@keyframes pulse {
  70% {
    box-shadow:0 0 0 8px rgba(174,243,46,0);
  }
  100% {
    box-shadow:0 0 0 0 rgba(174,243,46,0);
  }
}
.ai-status-bar {
  min-height:74px;
  border-top:1px solid var(--line);
  padding:12px 16px;
  display:grid;
  grid-template-columns:16px 1fr auto;
  gap:10px;
  align-items:center;
  background:#fff;
}
.ai-status-bar>div {
  display:grid;
  gap:2px;
}
.ai-status-bar strong {
  font-size:10px;
}
.ai-status-bar small {
  font-size:8px;
  color:var(--muted);
}
.context-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.context-company {
  display:flex;
  align-items:center;
  gap:10px;
  padding:18px 0 14px;
}
.context-company>div {
  display:grid;
  gap:2px;
}
.context-company strong {
  font-size:12px;
}
.context-company span {
  font-size:9px;
  color:var(--muted);
}
.context-info {
  display:grid;
  gap:10px;
  padding:14px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.context-info span {
  display:flex;
  gap:8px;
  align-items:center;
  font-size:9px;
  color:#586159;
}
.context-info svg {
  width:13px;
}
.context-section {
  padding:16px 0;
}
.context-section h4 {
  font-size:10px;
  margin:0 0 9px;
}
.fact-row {
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:7px 0;
  font-size:8px;
  border-bottom:1px dashed #edf0ed;
}
.fact-row span {
  color:var(--muted);
}
.next-step-card {
  background:#f4f0ff;
  border-radius:15px;
  padding:13px;
  display:grid;
  gap:4px;
}
.next-step-card strong {
  font-size:10px;
}
.next-step-card small {
  font-size:8px;
  color:#736c84;
}
.agenda-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 310px;
  gap:20px;
}
.agenda-day-panel {
  min-height:620px;
}
.agenda-timeline {
  display:grid;
}
.agenda-item {
  display:grid;
  grid-template-columns:54px 18px 1fr;
  gap:8px;
  align-items:start;
  min-height:104px;
}
.agenda-item time {
  font-size:11px;
  font-weight:800;
  padding-top:15px;
}
.agenda-marker {
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--lime);
  margin-top:18px;
  position:relative;
}
.agenda-marker::after {
  content:"";
  position:absolute;
  top:12px;
  left:4px;
  width:1px;
  height:83px;
  background:#e8ebe7;
}
.agenda-item:last-child .agenda-marker::after {
  display:none;
}
.agenda-card {
  min-height:80px;
  border:1px solid #e9ece8;
  border-radius:16px;
  padding:13px;
  display:grid;
  grid-template-columns:1fr auto 36px;
  align-items:center;
  gap:10px;
}
.agenda-card>div:first-child {
  display:grid;
  gap:3px;
}
.agenda-card strong {
  font-size:11px;
}
.agenda-card span {
  font-size:9px;
  color:var(--muted);
}
.agenda-card-meta {
  display:grid;
  gap:5px;
  justify-items:end;
}
.agenda-kpis {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}
.agenda-kpis article {
  background:var(--soft);
  border-radius:15px;
  padding:12px;
}
.agenda-kpis span {
  font-size:8px;
  color:var(--muted);
  display:block;
}
.agenda-kpis strong {
  font-size:20px;
}
.next-focus {
  margin-top:18px;
  padding:18px;
  border-radius:18px;
  background:linear-gradient(140deg,#d9ffc7,var(--lime));
  display:grid;
  gap:6px;
}
.next-focus strong {
  font-size:18px;
}
.next-focus p {
  font-size:10px;
  color:#45643a;
  margin:0 0 10px;
}
.calendar-grid {
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:6px;
}
.calendar-weekday {
  font-size:9px;
  font-weight:800;
  color:var(--muted);
  text-align:center;
  padding:4px 0;
}
.calendar-cell {
  min-height:96px;
  border:1px solid var(--line);
  border-radius:13px;
  padding:6px;
  background:#fff;
  display:grid;
  grid-template-rows:auto 1fr;
  gap:4px;
}
.calendar-cell--muted {
  background:var(--soft);
  opacity:.55;
}
.calendar-cell--today {
  border-color:var(--lime);
}
.calendar-cell-num {
  font-size:10px;
  font-weight:800;
}
.calendar-cell-events {
  display:grid;
  gap:3px;
  overflow:hidden;
}
.calendar-event {
  border:0;
  background:var(--lime-soft);
  border-radius:8px;
  padding:3px 6px;
  text-align:left;
  display:grid;
  gap:0;
  overflow:hidden;
}
.calendar-event strong {
  font-size:9px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.calendar-event span {
  font-size:8px;
  color:var(--muted-dark);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.calendar-more {
  font-size:8px;
  font-weight:800;
  color:#3f6a25;
  text-align:left;
  cursor:pointer;
  padding:2px 6px;
}
.agenda-card--button {
  width:100%;
  border:1px solid #e9ece8;
  background:#fff;
  text-align:left;
  cursor:pointer;
}
.knowledge-layout,.settings-layout {
  display:grid;
  grid-template-columns:210px minmax(0,1fr);
  gap:16px;
}
.knowledge-tabs,.settings-tabs {
  display:grid;
  gap:6px;
  align-content:start;
}
.knowledge-tab,.settings-tab {
  height:48px;
  border:1px solid transparent;
  background:transparent;
  border-radius:15px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 14px;
  text-align:left;
  font-size:10px;
}
.knowledge-tab svg,.settings-tab svg {
  width:16px;
}
.knowledge-tab.is-active,.settings-tab.is-active {
  background:#fff;
  border-color:var(--line);
  box-shadow:var(--shadow-soft);
  font-weight:800;
}
.knowledge-content,.settings-content {
  min-height:580px;
}
.knowledge-hero-card {
  background:linear-gradient(140deg,#eefbe8,#fff);
  border:1px solid #e3eee0;
  border-radius:17px;
  padding:20px;
  margin-bottom:14px;
}
.knowledge-hero-card strong {
  font-size:13px;
}
.knowledge-hero-card p {
  font-size:11px;
  color:#59615a;
  line-height:1.7;
  margin:7px 0 0;
}
.knowledge-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
