/* ─────────────────────────────────────────────────────────────
   Product simulation styles
   ───────────────────────────────────────────────────────────── */

/* ─── Shared chat visuals ─────────────────────────────────── */
.sim-chat {
  display: flex; flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.sim-chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--white);
  font-size: 12.5px;
  color: var(--ink-4);
}
.sim-chat-head .dots { display: inline-flex; gap: 5px; }
.sim-chat-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); display: inline-block; }
.sim-chat-head .model {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  display: inline-flex; align-items: center; gap: 6px;
}
.sim-chat-head .model i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 30%, transparent);
}

.sim-chat-body {
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 300px;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.sim-chat-body.is-fading { opacity: 0; transform: translateY(-6px); }

/* Hero chat-specific — constrain width for mobile */
.hero-chat {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.hero-chat .sim-chat-head .head-title {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.hero-chat .sim-chat-body { min-height: 240px; padding: 16px 14px; gap: 14px; }
@media (min-width: 700px) { .hero-chat .sim-chat-body { min-height: 280px; padding: 18px 16px; } }

/* Inline live input shown inside the chat body */
.chat-input.input-live {
  padding: 12px 12px;
  border-top: 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--white);
}
.field-live { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.chip[data-active="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Tighten chips on mobile */
.chips { gap: 6px; padding: 10px 12px 12px; }
@media (max-width: 520px) {
  .chip { font-size: 11.5px; padding: 6px 10px; flex: 1 1 auto; }
}

.msg { display: flex; gap: 10px; }
.msg .avatar {
  width: 26px; height: 26px; border-radius: 50%;
  flex: 0 0 26px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
}
.msg.user .avatar { background: var(--ink); color: var(--paper); }
.msg.ai .avatar { background: var(--accent); color: #0A1A05; }
.msg .bubble { flex: 1; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.msg.user .bubble { color: var(--ink); font-weight: 500; }
.msg .bubble .mini-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 4px;
}

/* Citation chip */
.cite {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 1px 6px 1px 5px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-3);
  vertical-align: 1px;
  margin: 0 2px;
  cursor: pointer;
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.cite:hover { border-color: var(--ink); color: var(--ink); }
.cite::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* Typing dots */
.typing { display: inline-flex; gap: 4px; align-items: center; height: 14px; }
.typing i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-5);
  animation: tdot 1s infinite var(--ease);
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes tdot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-3px); opacity: 1; } }

/* Caret */
.caret { display: inline-block; width: 2px; height: 1em; background: var(--ink); vertical-align: -0.15em; margin-left: 1px; animation: caret 0.9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Query chips */
.chips {
  padding: 12px 16px 14px;
  display: flex; flex-wrap: wrap; gap: 6px;
  border-top: 1px solid var(--rule);
  background: var(--white);
}
.chip {
  font-size: 12.5px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease);
  text-align: left;
}
.chip:hover { border-color: var(--ink); background: var(--white); }
.chip[disabled] { opacity: 0.4; cursor: default; }

/* Fake input */
.chat-input {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--rule);
  background: var(--white);
}
.chat-input .field {
  flex: 1;
  font-size: 14px; color: var(--ink-4);
  font-family: var(--font-sans);
}
.chat-input .send {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
}

/* ─── Sim 2: Alerts ───────────────────────────────────────── */
.sim-alerts {
  display: grid; gap: 14px;
  /* Stretch to fill the sim envelope so .alert-config's height:100% has
     something concrete to fill. */
  min-height: 100%;
  align-items: stretch;
}
@media (min-width: 820px) { .sim-alerts { grid-template-columns: 320px 1fr; gap: 18px; } }

.alert-config {
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 14px;
  padding: 16px;
  /* Fill the sim height so the brief field can grow into the remaining
     vertical space instead of leaving a big white gap below the save button. */
  height: 100%;
  display: flex; flex-direction: column; gap: 14px;
}
.alert-config h4 { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-4); font-weight: 500; margin: 0; }
.af-field { display: flex; flex-direction: column; gap: 6px; }
/* The brief field (first .af-field) takes all remaining vertical space so the
   textarea can fill the card. Other af-fields (geography) stay natural height. */
.alert-config .af-field:first-of-type { flex: 1; min-height: 160px; }
.alert-config .af-field:first-of-type .af-textarea { flex: 1; min-height: 140px; }
.af-field label { font-size: 11.5px; color: var(--ink-4); font-family: var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; }
.af-textarea {
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  resize: vertical;
  font-family: var(--font-sans);
  line-height: 1.55;
  color: var(--ink);
  transition: border-color .15s var(--ease);
}
.af-textarea:focus { border-color: var(--ink); }

.af-ai {
  margin-top: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 34px; padding: 0 12px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 12.5px; color: var(--ink);
  cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease);
  align-self: flex-start;
}
.af-ai:hover { border-color: var(--ink); }
.af-ai:disabled { opacity: 0.6; cursor: wait; }
.af-ai .spark { color: var(--accent-ink); }

.urgency-high { background: oklch(0.82 0.18 30) !important; color: #1a0a05 !important; }
.urgency-med  { background: var(--accent) !important; color: #0A1A05 !important; }
.urgency-low  { background: var(--paper-2) !important; color: var(--ink-3) !important; border: 1px solid var(--rule); }

.af-input, .af-select {
  height: 38px; padding: 0 12px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 13.5px;
  outline: none;
  transition: border-color .15s var(--ease);
}
.af-input:focus, .af-select:focus { border-color: var(--ink); }

.af-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.af-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px 5px 8px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s var(--ease);
}
.af-tag[data-on="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.af-tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-5);
}
.af-tag[data-on="true"] .dot { background: var(--accent); }

.af-save {
  height: 38px;
  background: var(--ink); color: var(--paper);
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer;
  transition: all .15s var(--ease);
}
.af-save[data-saved="true"] { background: var(--accent); color: #0A1A05; }

.alert-feed {
  border: 1px solid var(--rule);
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.feed-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--ink-4);
}
.feed-head strong { color: var(--ink); font-weight: 500; }
.feed-head .live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.feed-head .live .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s infinite var(--ease);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent);
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); }
  70% { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.feed-list { display: flex; flex-direction: column; }
.feed-item {
  padding: 14px 16px;
  border-top: 1px solid var(--rule-2);
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateY(6px);
  animation: fade-up .55s var(--ease) forwards;
}
.feed-item:first-child { border-top: 0; }
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }

.feed-item .fi-top {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--ink-4);
  font-family: var(--font-mono);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.feed-item .fi-top .pill {
  padding: 2px 6px;
  background: var(--accent);
  color: #0A1A05;
  border-radius: 4px;
  letter-spacing: 0.06em;
}
.feed-item .fi-title { font-size: 14.5px; color: var(--ink); font-weight: 500; }
.feed-item .fi-meta { font-size: 12.5px; color: var(--ink-4); }
.feed-item .fi-meta b { color: var(--ink-2); font-weight: 500; }

/* ─── Sim 3: Entity view ──────────────────────────────────── */
.entity-view {
  display: grid; gap: 16px;
}
@media (min-width: 900px) { .entity-view { grid-template-columns: 1fr 320px; gap: 20px; } }

.entity-head {
  padding: 16px 18px;
  border: 1px solid var(--rule);
  background: var(--white);
  border-radius: 14px;
  display: flex; flex-direction: column; gap: 12px;
  grid-column: 1 / -1;
}
.entity-head .crumb {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-4);
  display: flex; gap: 6px; align-items: center;
}
.entity-head h3 { font-size: clamp(20px, 2.5vw, 26px); letter-spacing: -0.02em; }
.entity-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.entity-chip {
  padding: 4px 9px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 12px; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 6px;
}
.entity-chip.live { border-color: color-mix(in oklab, var(--accent) 50%, var(--rule)); background: color-mix(in oklab, var(--accent) 20%, var(--white)); color: var(--ink); }
.entity-chip.live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-ink); }

.entity-main { display: flex; flex-direction: column; gap: 14px; }
.entity-panel {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 16px 18px;
}
.entity-panel h4 {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 500; margin: 0 0 12px;
  display: flex; align-items: center; gap: 10px;
}
.entity-panel h4 .count {
  font-family: var(--font-mono); color: var(--ink-3);
}

.doc-row {
  display: grid; grid-template-columns: 24px 1fr auto; gap: 10px;
  padding: 9px 0;
  align-items: center;
  border-top: 1px solid var(--rule-2);
  font-size: 13.5px;
}
.doc-row:first-of-type { border-top: 0; }
.doc-row .doc-ico {
  width: 24px; height: 30px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 3px;
  position: relative;
}
.doc-row .doc-ico::after {
  content: ""; position: absolute; inset: 4px 4px auto 4px; height: 2px;
  background: var(--ink-5); border-radius: 1px;
  box-shadow: 0 4px 0 var(--ink-5), 0 8px 0 var(--ink-5), 0 12px 0 var(--ink-5);
}
.doc-row .doc-title { color: var(--ink); font-size: 13.5px; }
.doc-row .doc-meta { color: var(--ink-4); font-family: var(--font-mono); font-size: 11.5px; }

.budget-bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; font-size: 13px; }
.bar-row .bar {
  grid-column: 1 / -1;
  height: 6px; border-radius: 4px;
  background: var(--paper-2);
  overflow: hidden;
}
.bar-row .bar i {
  display: block; height: 100%;
  background: var(--ink);
  border-radius: 4px;
  transform-origin: left;
  animation: grow 1.1s var(--ease) forwards;
  transform: scaleX(0);
}
.bar-row .bar.accent i { background: var(--accent); }
@keyframes grow { to { transform: scaleX(1); } }
.bar-row .bar-amt { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-4); }

.people-list { display: flex; flex-direction: column; gap: 10px; }
.person {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
}
.person .pa {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px;
}
.person .pn { flex: 1; color: var(--ink); }
.person .pr { font-size: 11.5px; color: var(--ink-4); }

/* ─── Sim 4: Doc interrogation ────────────────────────────── */
.doc-split { display: grid; gap: 14px; }
@media (min-width: 900px) { .doc-split { grid-template-columns: 1fr 1fr; gap: 18px; } }

.pdf-pane {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 460px;
}
.pdf-head {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--ink-4);
}
.pdf-head .name { color: var(--ink); font-weight: 500; }
.pdf-head .page { margin-left: auto; font-family: var(--font-mono); font-size: 11px; }

.pdf-page {
  flex: 1;
  padding: 22px 26px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-3);
  overflow-y: auto;
  max-height: 460px;
}
.pdf-page h5 {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 500; margin: 0 0 8px;
}
.pdf-page h6 {
  font-size: 14px; color: var(--ink); font-weight: 600; letter-spacing: -0.01em;
  margin: 14px 0 6px;
}
.pdf-page p { margin: 6px 0; }
.pdf-page .hl {
  background: var(--accent);
  padding: 0 2px;
  transition: background .3s var(--ease);
}
.pdf-page .hl.fade { background: color-mix(in oklab, var(--accent) 35%, transparent); }

/* ─── Tweaks-visible utilities ────────────────────────────── */
[data-density="compact"] section { padding: 40px 0; }
[data-density="compact"] .hero { padding-top: 36px; padding-bottom: 36px; }
@media (min-width: 1000px) {
  [data-density="compact"] section { padding: 72px 0; }
  [data-density="compact"] .hero { padding-top: 56px; padding-bottom: 72px; }
}


/* ═════════════════════════════════════════════════════════
   TAB PILL (on tab button itself)
   ═════════════════════════════════════════════════════════ */
.sim-tab-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font-weight: 500;
  vertical-align: middle;
}



/* ═════════════════════════════════════════════════════════
   TAB 05 — SEND SIGNALS WHERE YOU WORK
   Clean vertical flow: intro → signal card → lines → 3 destinations
   ═════════════════════════════════════════════════════════ */
/* ═════════════════════════════════════════════════════════
   ASK SIM — chat on left, feature cards stacked on right
   (first product sim tab: "Ask any question")
   ═════════════════════════════════════════════════════════ */
.ask-sim {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}
@media (min-width: 820px) {
  .ask-sim { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 22px; }
}
.ask-sim-chat { min-width: 0; }
.ask-sim-chat .sim-chat-card { width: 100%; max-width: none; }

.ask-sim-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.ask-feature {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.ask-feature-ico {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ask-feature-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ask-feature-title {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
}
.ask-feature-sub {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0;
}

/* ═════════════════════════════════════════════════════════
   DISTRIBUTE SIM
   ═════════════════════════════════════════════════════════ */
.dist-sim {
  padding: 24px 20px 24px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Row 1 — intro (left-aligned, compact) */
.dist-intro-block {
  text-align: left;
  max-width: 72ch;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dist-intro-line {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.dist-intro-line.dim {
  color: var(--ink-3);
  font-weight: 400;
}
.dist-pill {
  margin-top: 10px;
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  align-self: flex-start;
}

/* Stacked layout: signal card spans full width on top, destinations
   (CRM / Slack / Email) sit directly below as a 3-col row. Goal: user
   can digest the whole message — "one signal, three destinations" —
   without scrolling. */
.dist-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}
@media (min-width: 720px) {
  .dist-layout {
    gap: 20px;
  }
}

/* Top row — source signal, full width */
.dist-source {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}
.dist-signal-card {
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 12px;
  padding: 16px 20px;
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 24px -16px rgba(10, 10, 10, 0.3);
}
.dsc-row { display: block; }
.dsc-row.dsc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11.5px;
}
.dsc-source {
  color: var(--ink);
  font-weight: 500;
  font-size: 12.5px;
}
.dsc-time {
  color: var(--ink-4);
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
}
.dsc-title {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
}
.dsc-meta {
  font-size: 12.5px;
  color: var(--ink-4);
  line-height: 1.5;
}
.dist-source-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* Row 3 — flow lines (simple SVG, fanning outward) */
.dist-flow {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  height: 60px;
  display: none;
}
@media (min-width: 760px) { .dist-flow { display: block; height: 70px; } }
.dist-flow svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dl-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
  opacity: 0.45;
}

/* Destination cards — one per destination (CRM, Slack, Email).
   On desktop: 3-column grid directly under the signal card so the
   user sees the whole story at a glance — one signal, three outputs.
   On narrow viewports: stack. */
.dist-dests {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 760px) {
  .dist-dests {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
  }
}
.dist-dest {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dd-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}
.dd-logo {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 5px;
  flex-shrink: 0;
}
.dd-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.dd-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* ── CRM card (Salesforce-style) ── */
.crm-body { gap: 8px; }
.crm-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
  align-items: baseline;
  font-size: 12.5px;
  line-height: 1.4;
}
@media (min-width: 1080px) {
  .crm-row { grid-template-columns: 96px 1fr; }
}
.crm-k {
  color: var(--ink-4);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}
.crm-v {
  color: var(--ink);
}
.crm-stage-pill {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.crm-amount {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.crm-footer {
  margin-top: 6px;
  padding: 8px 10px;
  background: var(--accent-soft);
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}
.crm-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-ink);
  flex-shrink: 0;
}

/* ── Slack card ── */
.slack-body { background: var(--white); padding: 14px; }
.slack-msg { display: flex; gap: 10px; }
.slack-avatar {
  width: 30px;
  height: 30px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.slack-bubble {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.slack-meta {
  font-size: 11.5px;
  color: var(--ink-4);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.slack-meta strong { color: var(--ink); font-weight: 600; }
.slack-app {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  color: var(--ink-4);
}
.slack-time { color: var(--ink-4); }
.slack-line {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
}
.slack-line.dim { color: var(--ink-3); font-size: 12.5px; }
.slack-line strong { color: var(--ink); font-weight: 500; }
.slack-actions { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.slack-btn {
  font-size: 11.5px;
  color: var(--ink);
  font-family: var(--font-mono);
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 5px 10px;
  border-radius: 5px;
  cursor: default;
}

/* ── Email digest card ── */
.em-subject {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--rule);
}
.em-list { display: flex; flex-direction: column; gap: 8px; }
.em-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  background: var(--paper-2);
  border-radius: 6px;
}
.em-item.em-hl {
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
}
.em-emoji {
  font-size: 14px;
  line-height: 1.4;
  flex-shrink: 0;
}
.em-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.em-text strong {
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.35;
}
.em-text span {
  font-size: 11px;
  color: var(--ink-4);
  line-height: 1.4;
}

/* urgency pill already exists; ensure 🔥 renders inline */
.pill.urgency-high { display: inline-flex; align-items: center; gap: 4px; }
