* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #2f2b2b;
  overflow: hidden;
}

/* Top tabs */
.top-tabs {
  display: none;
}

.drag-region {
  width: 70px;
  -webkit-app-region: drag;
}

.top-tab {
  -webkit-app-region: no-drag;
  padding: 8px 20px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #a09a94;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  position: relative;
}

.top-tab:hover { color: #e8e0d8; }

.top-tab.active {
  color: #f5efe8;
  border-bottom-color: #f5efe8;
}

.tab-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #c4704b;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-badge.hidden { display: none; }

/* Views */
.view { flex: 1; overflow: hidden; display: none; }
.view.active { display: flex; }

/* Claude Desktop Layout */
.aisuite-layout { display: flex; width: 100%; height: 100%; }

.aisuite-sidebar {
  width: 60px;
  background: #f4f2ea;
  border-right: 1px solid #e4e0d5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0;
}

.rail-top { padding-bottom: 14px; }

.rail-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.rail-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.rail-icon {
  width: 38px;
  height: 38px;
  border: none;
  background: none;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b6560;
  cursor: pointer;
}

.rail-icon:hover { background: #e7e3d8; color: #2f2b2b; }

.rail-avatar {
  position: relative;
  overflow: hidden;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #9c3b6b;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rail-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-session {
  /* Vestigial from the old wide-panel layout; never shown in the icon rail. */
  display: none !important;
  padding: 9px 12px;
  margin: 0 8px 4px;
  border-radius: 8px;
  background: #3d3838;
}

.session-title {
  font-size: 13px;
  font-weight: 400;
  color: #f5efe8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-history { flex: 1; padding: 0 8px; overflow-y: auto; }

.history-section-label {
  font-size: 11px;
  font-weight: 500;
  color: #6b6560;
  padding: 12px 10px 4px;
}

.history-item {
  padding: 8px 10px;
  font-size: 13px;
  color: #a09a94;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-item:hover { background: #3d3838; color: #e8e0d8; }

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid #3d3838;
  font-size: 13px;
  color: #e8e0d8;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #5a5554;
  color: #e8e0d8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

/* Main content area - Claude's warm beige */
.aisuite-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #faf9f5;
  position: relative;
}

.aisuite-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.aisuite-empty h1 {
  font-family: 'Newsreader', 'Georgia', serif;
  font-size: 42px;
  font-weight: 400;
  color: #3d3530;
  margin-bottom: 36px;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.greeting-spark { flex-shrink: 0; }

.aisuite-input-area {
  width: 100%;
  max-width: 720px;
}

.chat-input-bottom {
  padding: 16px 24px 24px;
  max-width: 740px;
  margin: 0 auto;
  width: 100%;
}

.aisuite-input-wrapper {
  background: #fff;
  border: 1px solid #e4e0d5;
  border-radius: 20px;
  padding: 18px 22px 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.aisuite-input-wrapper input {
  width: 100%;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  color: #2f2b2b;
  margin-bottom: 14px;
}

.aisuite-input-wrapper input::placeholder { color: #a09a94; }

.input-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
}

.toolbar-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a837c;
  cursor: pointer;
  font-size: 16px;
}

.toolbar-btn:hover { background: #f5f2ec; }
.toolbar-btn.active-tool { color: #c4704b; background: #fdf4ef; }

.input-spacer { flex: 1; }

.toolbar-btn.icon-btn { width: 30px; height: 30px; color: #6b6560; }
.toolbar-btn.icon-btn:last-of-type { border: 1px solid #e4e0d5; border-radius: 8px; }

.model-selector {
  font-size: 13px;
  color: #8a837c;
  cursor: pointer;
  margin-right: 6px;
  white-space: nowrap;
}
.model-selector strong { color: #2f2b2b; font-weight: 600; }

.suggestion-pills {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid #e4e0d5;
  background: #fff;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #3d3530;
  cursor: pointer;
}
.pill svg { color: #6b6560; }
.pill:hover { background: #f4f2ea; border-color: #d9d5cc; }

.send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #e8e0d8;
  color: #6b6560;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.send-btn:hover { background: #c4704b; color: #fff; }

.notebook-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 0;
  font-size: 13px;
  color: #8a837c;
  border-top: 1px solid #e8e0d8;
}

.nb-icon { font-size: 16px; }
.nb-desc { color: #a09a94; }

/* Chat */
.aisuite-chat { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.aisuite-chat.hidden { display: none; }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px 40px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  background: #faf9f5;
}

.chat-breadcrumb {
  flex-shrink: 0;
  padding: 14px 24px;
  font-size: 14px;
  color: #6b6560;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #faf9f5;
}

.breadcrumb-title { color: #3d3530; font-weight: 500; }
.breadcrumb-chevron { color: #8a837c; }

.share-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid #e4e0d5;
  background: #faf9f5;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #3d3530;
  cursor: pointer;
  transition: all 0.15s;
}

.share-btn:hover { background: #f0eee6; border-color: #d9d5cc; }

.chat-input-bottom {
  flex-shrink: 0;
  background: #faf9f5;
  padding: 8px 40px 12px;
}

.chat-input-bottom::after {
  content: 'Claude is AI and can make mistakes. Please double-check responses.';
  display: block;
  text-align: center;
  font-size: 12px;
  color: #a09a94;
  margin-top: 10px;
}

/* Messages */
.message {
  max-width: 680px;
  width: 100%;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.message-user {
  align-self: flex-end;
  background: #f0eee6;
  border: none;
  border-radius: 16px;
  padding: 12px 18px;
  font-size: 15px;
  line-height: 1.5;
  color: #2f2b2b;
  max-width: 540px;
}

.message-assistant {
  font-size: 15px;
  line-height: 1.6;
  color: #2f2b2b;
}

/* Prose only — serif like real Claude; cards/buttons/code stay sans */
.message-assistant > p,
.message-assistant > ul,
.message-assistant > ol,
.message-assistant > h1,
.message-assistant > h2,
.message-assistant > h3 {
  font-family: 'Newsreader', 'Georgia', serif;
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: -0.1px;
}

.message-assistant p { margin-bottom: 14px; }
.message-assistant strong { font-weight: 600; }
.message-assistant ul { margin: 10px 0 14px 22px; }
.message-assistant li { margin-bottom: 8px; }
.message-assistant > ul > li, .message-assistant > ol > li {
  font-family: 'Newsreader', 'Georgia', serif;
  font-size: 18px;
}

/* Spawned tasks (thinking state) */
.spawned-tasks {
  margin: 16px 0;
}

.spawned-task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  color: #6b6560;
  animation: fadeIn 0.4s ease;
}

.spawned-task .arrow { color: #c4704b; }
.spawned-task .spawned-label { color: #c4704b; font-weight: 500; }
.spawned-task .spawned-desc { color: #3d3838; }
.spawned-task .spawned-type { color: #8a837c; }

.spawned-task.done .spawned-desc { color: #5a8a5e; }

/* Thinking dots */
.thinking-dots {
  display: inline-flex;
  gap: 3px;
  margin-left: 4px;
}

.thinking-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c4704b;
  animation: pulse 1.2s infinite;
}

.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
  0%, 60%, 100% { opacity: 0.3; }
  30% { opacity: 1; }
}

/* Attention items */
.attention-item {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #d9d5cc;
}

.attention-item:last-of-type {
  border-bottom: none;
  margin-bottom: 24px;
  padding-bottom: 0;
}

.attention-header {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.attention-header.attention-red { color: #b93a2a; }
.attention-header.attention-yellow { color: #9a6b2e; }
.attention-header.attention-green { color: #4a7c4e; }

/* Signal collapsible */
.signal-collapse {
  margin: 8px 0 12px;
  border: 1px solid #d9d5cc;
  border-radius: 8px;
  overflow: hidden;
}

.signal-collapse summary {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #6b6560;
  cursor: pointer;
  background: #f5f2ec;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.signal-collapse summary::before {
  content: '▶';
  font-size: 9px;
  color: #a09a94;
  transition: transform 0.15s;
}

.signal-collapse[open] summary::before {
  transform: rotate(90deg);
}

.signal-collapse summary:hover {
  background: #edeae2;
}

.signal-body {
  padding: 12px 14px;
  font-size: 13px;
  color: #3d3838;
  line-height: 1.5;
  border-top: 1px solid #d9d5cc;
  background: #fff;
}

.signal-desc {
  margin-bottom: 8px;
  font-style: italic;
}

.signal-when {
  font-size: 12px;
  font-weight: 500;
  color: #6b6560;
  margin-bottom: 4px;
}

.signal-body ul {
  margin: 4px 0 0 16px;
  font-size: 13px;
}

.signal-body li {
  margin-bottom: 3px;
}

/* Signal open (non-collapsible, used in email) */
.signal-open {
  margin: 12px 0 20px;
  border: 1px solid #d9d5cc;
  border-radius: 8px;
  padding: 14px 16px;
  background: #f5f2ec;
  font-size: 13px;
  color: #3d3838;
  line-height: 1.5;
}

.signal-open-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8a837c;
  margin-bottom: 8px;
}

.signal-open .signal-desc {
  margin-bottom: 8px;
  font-style: italic;
}

.signal-open .signal-when {
  font-size: 12px;
  font-weight: 500;
  color: #6b6560;
  margin-bottom: 4px;
}

.signal-open ul {
  margin: 4px 0 0 16px;
  font-size: 13px;
}

.signal-open li {
  margin-bottom: 3px;
}

.attention-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8a837c;
  margin-top: 16px;
  margin-bottom: 6px;
}

.followup-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.followup-label {
  font-size: 11px;
  font-weight: 600;
  color: #8a837c;
  white-space: nowrap;
}

.followup-btn {
  background: #fff;
  border: 1px solid #d9d5cc;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 13px;
  color: #3d3838;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.followup-btn:hover {
  background: #f5f2ec;
  border-color: #c4bfb5;
}

/* Signals considered */
.signals-considered {
  margin-top: 24px;
  padding-top: 0;
}

.signals-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8a837c;
  margin-bottom: 10px;
}

.signals-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.signal-chip {
  font-size: 11px;
  color: #6b6560;
  background: #f5f2ec;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid #d9d5cc;
}

/* Deal cards */
.deal-card {
  background: #fff;
  border: 1px solid #d9d5cc;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.deal-card .deal-name { font-weight: 600; color: #2f2b2b; font-size: 14px; }
.deal-card .deal-amount { font-weight: 600; color: #c4704b; font-size: 14px; }
.deal-card .deal-detail { font-size: 12px; color: #6b6560; }

/* Chart */
.chart-container {
  margin: 16px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d9d5cc;
}

.chart-container img { width: 100%; display: block; }

/* Alert action */
.alert-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #c4704b;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.15s;
}

.alert-action-btn:hover { background: #a85d3e; }
.alert-action-btn.created { background: #5a8a5e; cursor: default; }

/* Alert created confirmation */
.alert-created {
  background: #f2f8f2;
  border: 1px solid #c3dfc5;
  border-radius: 10px;
  padding: 16px;
  margin-top: 12px;
  animation: fadeIn 0.3s ease;
}

.alert-created h4 {
  font-size: 14px;
  font-weight: 600;
  color: #2d5e30;
  margin-bottom: 4px;
}

.alert-created p {
  font-size: 13px;
  color: #3d7040;
  margin: 0;
}

/* Suggested prompts */
.suggested-prompts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.suggested-prompts button {
  background: #fff;
  border: 1px solid #d9d5cc;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  color: #3d3838;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.suggested-prompts button:hover {
  background: #f5f2ec;
  border-color: #c4bfb5;
}

/* Gmail Layout */
.gmail-layout { display: flex; width: 100%; height: 100%; }

.gmail-sidebar {
  width: 200px;
  background: #f6f8fc;
  padding: 16px 12px;
  border-right: 1px solid #e0e0e0;
}

.gmail-compose-btn {
  background: #c2e7ff;
  border-radius: 16px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  margin-bottom: 16px;
  text-align: center;
}

.gmail-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: #333;
  border-radius: 20px;
  cursor: pointer;
}

.gmail-nav-item:hover { background: #e8e8e8; }
.gmail-nav-item.active { background: #d3e3fd; font-weight: 600; }
.gmail-count { margin-left: auto; font-size: 12px; font-weight: 600; }

/* Gmail Main */
.gmail-main { flex: 1; background: #fff; overflow-y: auto; }

.gmail-toolbar {
  padding: 12px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.gmail-toolbar-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a73e8;
}

.gmail-row {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  gap: 12px;
  font-size: 13px;
}

.gmail-row:hover { background: #f8f9fa; }

.gmail-row.new {
  background: #fff;
  font-weight: 500;
}

.gmail-row.new .gmail-row-sender { font-weight: 700; }

.gmail-row-check { color: #bbb; }
.gmail-row-star { color: #bbb; font-size: 16px; }
.gmail-row-sender { width: 160px; flex-shrink: 0; color: #1a1a1a; font-size: 13px; }
.gmail-row-subject { flex: 1; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gmail-row-subject strong { color: #1a1a1a; }
.gmail-row-date { font-size: 12px; color: #666; flex-shrink: 0; }

/* Gmail detail */
.gmail-detail { padding: 20px 32px; }
.gmail-detail.hidden { display: none; }

.gmail-back {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 13px;
  color: #1a73e8;
  cursor: pointer;
  margin-bottom: 20px;
  padding: 0;
}

.gmail-subject {
  font-size: 22px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.gmail-email-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.gmail-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.gmail-sender-name { font-size: 14px; font-weight: 500; color: #1a1a1a; }
.gmail-sender-email { font-weight: 400; color: #666; font-size: 12px; }
.gmail-to { font-size: 12px; color: #666; }
.gmail-email-date { margin-left: auto; font-size: 12px; color: #666; }

.gmail-email-body {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.email-metric-card {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}

.email-metric-value { font-size: 42px; font-weight: 700; color: #dc2626; }
.email-metric-label { font-size: 14px; font-weight: 600; color: #374151; margin-top: 4px; }
.email-metric-threshold { font-size: 13px; color: #6b7280; margin-top: 2px; }

.email-section { margin-bottom: 20px; }
.email-section h3 { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 8px; }
.email-section ul { margin-left: 20px; }
.email-section li { margin-bottom: 4px; }

.email-why {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 16px;
}

.email-why h3 { color: #92400e; }
.email-why ul { color: #78350f; }

.email-copy-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.copy-explainer {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 12px;
}

.copy-insights-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #c4704b;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.copy-insights-btn:hover { background: #a85d3e; }
.copy-insights-btn.copied { background: #5a8a5e; }

/* Revenue table */
.revenue-table {
  margin: 8px 0 12px;
  border: 1px solid #d9d5cc;
  border-radius: 10px;
  overflow: hidden;
}

.revenue-table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #edeae2;
}

.revenue-table-row:last-child { border-bottom: none; }

.revenue-table-product { font-size: 13px; color: #3d3838; }
.revenue-table-amount { font-size: 13px; font-weight: 600; color: #3d3838; }

.revenue-table-total {
  background: #f5f2ec;
  border-top: 1px solid #d9d5cc;
}

.revenue-table-total .revenue-table-product { font-weight: 700; color: #2f2b2b; }
.revenue-table-total .revenue-table-amount { font-weight: 700; color: #b93a2a; font-size: 14px; }

/* Brief section headers */
.brief-section-header {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  margin: 16px 0 8px;
}

.brief-section-header.risk {
  background: #fdf4f0;
  color: #b93a2a;
  border: 1px solid #f0ccc4;
}

.brief-section-header.action {
  background: #f2f8f2;
  color: #2d5e30;
  border: 1px solid #c3dfc5;
}

.brief-footer {
  font-size: 12px;
  color: #8a837c;
  margin-top: 16px;
  font-style: italic;
}

/* Insights-specific: header row with feedback */
.attention-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.attention-header-row .attention-header {
  flex: 1;
}

/* Severity badges */
.severity-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.severity-high { background: #fdf4f0; color: #b93a2a; border: 1px solid #f0ccc4; }
.severity-medium { background: #fdf8ed; color: #9a6b2e; border: 1px solid #f0deb0; }
.severity-low { background: #f2f8f2; color: #4a7c4e; border: 1px solid #c3dfc5; }

/* Feedback buttons */
.insight-feedback {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.feedback-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #d9d5cc;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a837c;
  transition: all 0.15s;
}

.feedback-btn:hover { background: #f5f2ec; }
.feedback-dismiss:hover { color: #b93a2a; border-color: #f0ccc4; }
.feedback-affirm:hover { color: #4a7c4e; border-color: #c3dfc5; }
.feedback-affirm.affirmed { background: #f2f8f2; color: #4a7c4e; border-color: #c3dfc5; }
.feedback-share:hover { color: #5b5fc7; border-color: #d4d4f0; }
.feedback-share.shared { background: #f0f0fa; color: #5b5fc7; border-color: #d4d4f0; }

/* Feedback card (dismiss flow) */
.feedback-card {
  background: #fff;
  border: 1px solid #d9d5cc;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 12px 0;
  animation: fadeIn 0.2s ease;
}

.feedback-question {
  font-size: 13px;
  font-weight: 500;
  color: #3d3838;
  margin-bottom: 8px;
}

.feedback-input {
  width: 100%;
  border: 1px solid #d9d5cc;
  border-radius: 8px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13px;
  color: #3d3838;
  outline: none;
  margin-bottom: 10px;
}

.feedback-input:focus { border-color: #c4704b; }
.feedback-input::placeholder { color: #a09a94; }

.feedback-card-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.feedback-skip-btn, .feedback-submit-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: none;
}

.feedback-skip-btn {
  background: none;
  color: #8a837c;
}

.feedback-skip-btn:hover { color: #3d3838; }

.feedback-submit-btn {
  background: #c4704b;
  color: #fff;
}

.feedback-submit-btn:hover { background: #a85d3e; }

/* Feedback confirmation */
.feedback-confirmation {
  border-radius: 10px;
  padding: 14px 16px;
  margin: 12px 0;
  animation: fadeIn 0.3s ease;
  font-size: 13px;
  line-height: 1.5;
}

.feedback-confirmation.dismiss {
  background: #f9f7f4;
  border: 1px solid #d9d5cc;
}

.feedback-confirmation.affirm {
  background: #f2f8f2;
  border: 1px solid #c3dfc5;
}

.feedback-confirm-header {
  font-weight: 600;
  color: #3d3838;
  margin-bottom: 8px;
}

.feedback-effects {
  margin: 0 0 10px 16px;
  color: #3d3838;
}

.feedback-effects li {
  margin-bottom: 4px;
}

.feedback-how {
  font-size: 12px;
  color: #8a837c;
  font-style: italic;
  margin: 0;
}


/* Date picker in top nav */
.top-tabs-spacer { flex: 1; }

.date-picker-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  -webkit-app-region: no-drag;
  margin-right: 16px;
}

.date-nav-arrow {
  width: 24px;
  height: 24px;
  border: 1px solid #4a4544;
  background: none;
  border-radius: 4px;
  font-size: 14px;
  color: #a09a94;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
}

.date-nav-arrow:hover { background: #3d3838; color: #e8e0d8; }
.date-nav-arrow:disabled { opacity: 0.3; cursor: default; }
.date-nav-arrow:disabled:hover { background: none; color: #a09a94; }

.date-nav-label {
  font-size: 12px;
  font-weight: 500;
  color: #e8e0d8;
  min-width: 90px;
  text-align: center;
}

/* Clarification options (chat flow) */
.clarification-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.clarification-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #d9d5cc;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all 0.12s;
}

.clarification-btn:hover {
  background: #f5f2ec;
  border-color: #c4bfb5;
}

.clarification-btn-label {
  font-size: 14px;
  font-weight: 500;
  color: #2f2b2b;
}

.clarification-btn-desc {
  font-size: 12px;
  color: #8a837c;
  margin-top: 2px;
}

/* Belief challenge card */
.belief-challenge {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 12px 0;
  animation: fadeIn 0.3s ease;
}

.belief-challenge-header {
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 8px;
}

.belief-challenge-body {
  font-size: 13px;
  color: #78350f;
  line-height: 1.5;
  margin-bottom: 10px;
}

.belief-challenge-actions {
  display: flex;
  gap: 8px;
}

.belief-challenge-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #fde68a;
  background: #fff;
  color: #92400e;
  transition: all 0.15s;
}

.belief-challenge-btn:hover { background: #fef3c7; }
.belief-challenge-btn.primary { background: #f59e0b; color: #fff; border-color: #f59e0b; }
.belief-challenge-btn.primary:hover { background: #d97706; }

/* Previously surfaced badge */
.previously-surfaced {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #6b6560;
  background: #f5f2ec;
  border: 1px solid #d9d5cc;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.previously-surfaced-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c4704b;
}

/* Add belief card */
.add-belief-section {
  margin-top: 24px;
  padding-top: 0;
}

.add-belief-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 1px dashed #d9d5cc;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  color: #6b6560;
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
}

.add-belief-btn:hover { background: #f5f2ec; border-color: #c4bfb5; }

.add-belief-form {
  background: #fff;
  border: 1px solid #d9d5cc;
  border-radius: 10px;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.add-belief-form textarea {
  width: 100%;
  border: 1px solid #d9d5cc;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  color: #3d3838;
  outline: none;
  resize: none;
  height: 70px;
  margin-bottom: 10px;
}

.add-belief-form textarea:focus { border-color: #c4704b; }
.add-belief-form textarea::placeholder { color: #a09a94; }

.add-belief-form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.add-belief-cancel {
  padding: 6px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  color: #8a837c;
}

.add-belief-save {
  padding: 6px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: #c4704b;
  color: #fff;
}

.add-belief-save:hover { background: #a85d3e; }

.add-belief-confirmation {
  background: #f2f8f2;
  border: 1px solid #c3dfc5;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: #2d5e30;
  animation: fadeIn 0.3s ease;
}

/* Week transition overlay */
.week-transition {
  position: fixed;
  inset: 0;
  background: rgba(47, 43, 43, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.4s ease;
}

.week-transition-content {
  text-align: center;
  color: #f5efe8;
}

.week-transition-content h2 {
  font-family: 'Newsreader', 'Georgia', serif;
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 8px;
}

.week-transition-content p {
  font-size: 14px;
  color: #a09a94;
}

/* Share to Teams modal */
.share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.share-modal {
  background: #fff;
  border-radius: 12px;
  width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.share-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e8e5de;
}

.share-modal-header svg {
  flex-shrink: 0;
}

.share-modal-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #2f2b2b;
}

.share-modal-body {
  padding: 20px 24px;
}

.share-field-label {
  font-size: 12px;
  font-weight: 500;
  color: #6b6560;
  margin-bottom: 6px;
}

.share-channel-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.share-channel-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #d9d5cc;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.12s;
}

.share-channel-option:hover {
  background: #f5f2ec;
  border-color: #c4bfb5;
}

.share-channel-option.selected {
  background: #fdf4ef;
  border-color: #c4704b;
}

.share-channel-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #5b5fc7;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.share-channel-icon.person {
  background: #4a90a4;
  border-radius: 50%;
}

.share-channel-name {
  font-size: 13px;
  font-weight: 500;
  color: #2f2b2b;
}

.share-channel-desc {
  font-size: 11px;
  color: #8a837c;
}

.share-message-input {
  width: 100%;
  border: 1px solid #d9d5cc;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  color: #3d3838;
  outline: none;
  resize: none;
  height: 60px;
}

.share-message-input:focus { border-color: #c4704b; }
.share-message-input::placeholder { color: #a09a94; }

.share-preview {
  margin-top: 12px;
  padding: 12px;
  background: #f5f2ec;
  border-radius: 8px;
  border: 1px solid #e8e5de;
}

.share-preview-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8a837c;
  margin-bottom: 8px;
}

.share-preview-card {
  background: #fff;
  border-left: 3px solid #5b5fc7;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 12px;
}

.share-preview-card-title {
  font-weight: 600;
  color: #2f2b2b;
  margin-bottom: 2px;
}

.share-preview-card-desc {
  color: #6b6560;
  margin-bottom: 6px;
}

.share-preview-card-link {
  color: #5b5fc7;
  font-weight: 500;
  font-size: 11px;
}

.share-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid #e8e5de;
}

.share-cancel-btn {
  padding: 8px 16px;
  border: 1px solid #d9d5cc;
  background: #fff;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #6b6560;
  cursor: pointer;
}

.share-cancel-btn:hover { background: #f5f2ec; }

.share-send-btn {
  padding: 8px 20px;
  border: none;
  background: #5b5fc7;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
}

.share-send-btn:hover { background: #4a4eb5; }
.share-send-btn:disabled { opacity: 0.5; cursor: default; }

/* Share confirmation inline */
.share-confirmation {
  background: #f0f0fa;
  border: 1px solid #d4d4f0;
  border-radius: 10px;
  padding: 16px;
  margin-top: 12px;
  animation: fadeIn 0.3s ease;
}

.share-confirmation-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.share-confirmation-header svg {
  flex-shrink: 0;
}

.share-confirmation-header span {
  font-size: 14px;
  font-weight: 600;
  color: #3d3d8f;
}

.share-confirmation-preview {
  background: #fff;
  border-left: 3px solid #5b5fc7;
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.share-confirmation-preview-title {
  font-size: 13px;
  font-weight: 600;
  color: #2f2b2b;
  margin-bottom: 2px;
}

.share-confirmation-preview-desc {
  font-size: 12px;
  color: #6b6560;
  margin-bottom: 8px;
}

.share-confirmation-preview-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #5b5fc7;
  background: #f0f0fa;
  padding: 4px 10px;
  border-radius: 4px;
}

.share-confirmation-note {
  font-size: 12px;
  color: #6b6560;
  font-style: italic;
}

/* Share button style (Teams purple variant) */
.proposal-action-share {
  background: #5b5fc7;
}

.proposal-action-share:hover {
  background: #4a4eb5;
}

.hidden { display: none !important; }

/* Word-by-word streaming reveal */
.stream-hidden { display: none !important; }
.stream-word { display: inline; }
.stream-reveal { animation: streamFade 0.18s ease forwards; }
@keyframes streamFade { from { opacity: 0; } to { opacity: 1; } }

.stream-spark {
  display: block;
  width: 22px;
  height: 22px;
  margin-top: 6px;
  animation: sparkSpin 1.1s linear infinite;
}
@keyframes sparkSpin { to { transform: rotate(360deg); } }

/* ============================================================
   AMBIENT ALERT FLOW — Gmail toast + Claude artifact panel
   ============================================================ */

/* macOS-style Gmail notification toast */
.gmail-toast {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 372px;
  background: rgba(250, 249, 247, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(30, 22, 16, 0.28), 0 2px 6px rgba(30, 22, 16, 0.12);
  padding: 13px 15px;
  display: flex;
  gap: 12px;
  cursor: pointer;
  z-index: 9000;
  transform: translateX(420px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.gmail-toast.visible { transform: translateX(0); opacity: 1; }
.gmail-toast.dismissing { transform: translateX(420px); opacity: 0; }
.gmail-toast:hover { box-shadow: 0 16px 48px rgba(30, 22, 16, 0.34), 0 2px 6px rgba(30, 22, 16, 0.14); }
.gmail-toast:focus-visible { outline: 2px solid #c4704b; outline-offset: 3px; }

.gmail-toast-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gmail-toast-body { min-width: 0; flex: 1; }

.gmail-toast-app {
  font-size: 11px;
  font-weight: 500;
  color: #8a837c;
  letter-spacing: 0.2px;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.gmail-toast-sender { font-size: 13.5px; font-weight: 700; color: #201c1a; margin-bottom: 2px; }

.gmail-toast-subject {
  font-size: 13px;
  font-weight: 600;
  color: #2f2b2b;
  line-height: 1.35;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gmail-toast-preview {
  font-size: 12px;
  color: #6b6560;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hint chip that says "press ⌘I" — helps a presenter */
.alert-hint {
  position: fixed;
  bottom: 16px;
  right: 18px;
  z-index: 8000;
  font-size: 11.5px;
  color: #8a837c;
  background: rgba(255,255,255,0.9);
  border: 1px solid #e4e0d5;
  border-radius: 8px;
  padding: 6px 11px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  animation: fadeIn 0.4s ease;
}
.alert-hint kbd {
  font-family: inherit;
  font-weight: 600;
  color: #3d3530;
  background: #f4f2ea;
  border: 1px solid #d9d5cc;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 11px;
}

/* Source pill — shows where the ingested context came from (no Gmail mockup) */
.alert-source {
  width: 100%;
  max-width: 680px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: #fff;
  border: 1px solid #e4e0d5;
  border-left: 3px solid #c4704b;
  border-radius: 12px;
  animation: fadeIn 0.35s ease;
}
.alert-source-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: #faf9f5;
  border: 1px solid #eee7dc;
  display: flex; align-items: center; justify-content: center;
}
.alert-source-title { font-size: 13px; font-weight: 600; color: #2f2b2b; }
.alert-source-sub { font-size: 12px; color: #6b6560; margin-top: 1px; }
.alert-source-tag {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #c4704b;
  background: #fdf4ef;
  border: 1px solid #f0d9cc;
  border-radius: 20px;
  padding: 3px 9px;
  white-space: nowrap;
}

/* ---- Split layout: chat on the left, artifact on the right ---- */
.artifact-panel { display: none; }

.aisuite-layout.artifact-open .aisuite-main {
  flex: 1 1 0;
  min-width: 360px;
  border-right: 1px solid #e4e0d5;
}

.aisuite-layout.artifact-open .chat-body { align-items: stretch; padding: 26px 30px 16px; }
.aisuite-layout.artifact-open .message { margin: 0; }
.aisuite-layout.artifact-open .message-user { align-self: flex-end; }

.aisuite-layout.artifact-open .artifact-panel {
  display: flex;
  flex-direction: column;
  flex: 0 0 46%;
  max-width: 620px;
  min-width: 400px;
  background: #f4f2ea;
  animation: artifactSlide 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes artifactSlide {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.artifact-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #e4e0d5;
  background: #f4f2ea;
}
.artifact-topbar-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #c4704b;
}
.artifact-topbar-title {
  font-size: 13px;
  font-weight: 500;
  color: #6b6560;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.artifact-topbar-actions { display: flex; gap: 4px; }
.artifact-icon-btn {
  width: 30px; height: 30px;
  border: none; background: none;
  border-radius: 7px;
  color: #8a837c;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.artifact-icon-btn:hover { background: #e7e3d8; color: #2f2b2b; }

.artifact-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 26px 26px 40px;
}

/* The artifact "document" itself — warm paper card */
.artifact-doc {
  background: #fffdf9;
  border: 1px solid #e8e1d4;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(30,22,16,0.05), 0 8px 28px rgba(30,22,16,0.06);
  padding: 30px 30px 34px;
  margin-bottom: 20px;
}

.artifact-section { opacity: 0; animation: artifactSection 0.5s ease forwards; }
@keyframes artifactSection {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Artifact accent = Tableau brand blue (deep ink #14507d, mark #1c6fb0).
   This is the ONE place the Claude terracotta gives way to Tableau's palette:
   the insight was authored through the Tableau MCP, so it wears Tableau's
   visual language (grey-first bars, blue highlight) per the MCP color-strategy
   best-practices. The Claude Desktop shell around it stays clay. */
.artifact-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #14507d;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.artifact-eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #1c6fb0;
  box-shadow: 0 0 0 3px #e8f1fa;
}

.artifact-title {
  font-family: 'Newsreader', 'Georgia', serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.4px;
  color: #2b2622;
  margin-bottom: 10px;
}

.artifact-meta {
  font-size: 12.5px;
  color: #8a837c;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid #ece5d8;
}
.artifact-meta strong { color: #6b6560; font-weight: 600; }

/* Hero metric */
.artifact-hero {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}
.artifact-hero-figure {
  font-family: 'Newsreader', 'Georgia', serif;
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
  color: #14507d;
  letter-spacing: -1px;
}
.artifact-hero-flow {
  font-size: 14px;
  color: #3d3530;
  font-weight: 600;
}
.artifact-hero-flow .arrow { color: #1c6fb0; margin: 0 4px; }
.artifact-hero-sub { font-size: 12.5px; color: #8a837c; margin-bottom: 26px; }

.artifact-h {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b6560;
  margin: 26px 0 14px;
}

/* Peer adoption bars */
.artifact-bar-row { margin-bottom: 15px; }
.artifact-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.artifact-bar-name { font-size: 13.5px; font-weight: 600; color: #2f2b2b; }
.artifact-bar-name .lead-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #fff;
  background: #1c6fb0;
  border-radius: 20px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}
/* Grey first, colour second (Tableau MCP color-strategy): peer bars stay
   neutral grey so the one recommended agent — the LEAD row — is the only
   coloured mark and the eye lands on it instantly. */
.artifact-bar-pct { font-size: 13px; font-weight: 700; color: #77808a; }
.artifact-bar-track {
  height: 9px;
  background: #eceef1;
  border-radius: 20px;
  overflow: hidden;
}
.artifact-bar-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, #ccd2d9, #b4bcc6);
  width: 0;
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.artifact-bar-fill.muted { background: linear-gradient(90deg, #e2e5ea, #d0d5dc); }
/* The recommended agent — the single highlighted mark */
.artifact-bar-row.lead .artifact-bar-fill { background: linear-gradient(90deg, #3f92d2, #1c6fb0); }
.artifact-bar-row.lead .artifact-bar-pct { color: #1c6fb0; }
.artifact-bar-note { font-size: 12px; color: #8a837c; margin-top: 3px; }

/* Deal rows inside artifact */
.artifact-deal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0eadd;
}
.artifact-deal:last-of-type { border-bottom: none; }
.artifact-deal-name { font-size: 13.5px; font-weight: 600; color: #2f2b2b; }
.artifact-deal-detail { font-size: 12px; color: #8a837c; margin-top: 2px; }
.artifact-deal-amount { font-size: 14px; font-weight: 700; color: #14507d; white-space: nowrap; padding-left: 14px; }

.artifact-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 12px 16px;
  background: #eff5fb;
  border: 1px dashed #cfe0f0;
  border-radius: 10px;
  font-size: 13px;
  color: #6b6560;
}
.artifact-total strong { font-size: 15px; color: #14507d; }

/* Recommended play callout */
.artifact-callout {
  margin-top: 26px;
  background: linear-gradient(180deg, #eef5fb, #e4eef8);
  border: 1px solid #d1e1f1;
  border-radius: 14px;
  padding: 20px 22px;
}
.artifact-callout-head {
  font-family: 'Newsreader', 'Georgia', serif;
  font-size: 19px;
  color: #14507d;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.artifact-callout-head .arrow { font-family: 'Inter', sans-serif; }
.artifact-callout ul { margin: 0; padding-left: 18px; }
.artifact-callout li { font-size: 13px; color: #3a4048; line-height: 1.5; margin-bottom: 7px; }
.artifact-callout li::marker { color: #1c6fb0; }

.artifact-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #ece5d8;
  font-size: 11.5px;
  color: #a09a94;
  line-height: 1.5;
}
/* Provenance line — signals the artifact was styled through the Tableau MCP */
.artifact-provenance {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #14507d;
}
.artifact-provenance::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #1c6fb0;
  box-shadow: 0 0 0 3px #e8f1fa;
}

/* Draft-email artifact (second artifact appended on "Draft outreach") */
.artifact-draft-head {
  font-family: 'Newsreader', 'Georgia', serif;
  font-size: 22px;
  color: #2b2622;
  margin-bottom: 4px;
}
.artifact-draft-field {
  font-size: 12.5px;
  color: #6b6560;
  padding: 7px 0;
  border-bottom: 1px solid #f0eadd;
}
.artifact-draft-field strong { color: #3d3530; font-weight: 600; margin-right: 6px; }
.artifact-draft-body {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #3d3530;
  white-space: pre-wrap;
}
.artifact-draft-actions { display: flex; gap: 8px; margin-top: 20px; }
.artifact-draft-btn {
  border: 1px solid #d9d5cc;
  background: #fff;
  border-radius: 20px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #3d3530;
  cursor: pointer;
}
.artifact-draft-btn.primary { background: #1c6fb0; border-color: #1c6fb0; color: #fff; }
.artifact-draft-btn.primary:hover { background: #14507d; }
.artifact-draft-btn:hover { background: #f4f2ea; }

/* Contact cards (Who should I contact) */
.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e4e0d5;
  border-radius: 12px;
  padding: 12px 15px;
  margin: 8px 0;
}
.contact-avatar {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.contact-name { font-size: 14px; font-weight: 600; color: #2f2b2b; }
.contact-role { font-size: 12px; color: #6b6560; margin-top: 1px; }
