/* Call record. wireframe #call, spec §11.4 */

#view-calls:has(.call-record) {
  max-width: none;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.call-panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.call-record {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  line-height: 1.55;
}

.call-record-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 28px 70px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.call-record-title-block {
  margin-bottom: 12px;
}

.call-record-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 4px 2px;
  border: none;
  background: transparent;
  color: var(--dew-text-secondary, #5c6570);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.call-record-back:hover {
  color: var(--dew-primary, #2e897b);
  background: rgba(46, 137, 123, 0.06);
}

.call-record-back:focus-visible {
  outline: 2px solid var(--dew-primary, #2e897b);
  outline-offset: 2px;
}

.call-record-back-chevron {
  font-size: 14px;
  line-height: 1;
  opacity: 0.85;
}

.call-record-title-block .call-record-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.call-record-title-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  flex: 1 1 280px;
  min-width: 0;
}

.call-record-title-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.call-record-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
}

.call-record-action--deal {
  color: var(--dew-primary, #2e897b);
  border-color: #cfe3de;
}

.call-record-hero--compact {
  gap: 8px 16px;
  margin-bottom: 10px;
}

.call-record-hero--compact .call-record-back {
  flex: 0 0 100%;
  margin-bottom: 0;
  padding: 0;
  min-height: 0;
  font-size: 12.5px;
}

.call-record-hero-main {
  flex: 1 1 280px;
  min-width: 0;
}

.call-record-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 5px;
}

.call-record-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--dew-text);
}

.call-record-meta-line {
  margin: 0;
  font-size: 13px;
}

.call-meta-link,
.call-deal-link {
  color: var(--dew-primary);
  font-weight: 700;
  text-decoration: none;
}

.call-meta-link:hover,
.call-deal-link:hover {
  text-decoration: underline;
}

.call-record-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.call-record .pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: none;
  white-space: nowrap;
  background: var(--dew-hairline);
  color: var(--dew-text-secondary);
}

.call-record .pill.blue {
  background: var(--dew-primary-tint);
  color: var(--dew-primary);
}

.call-record .pill.green {
  background: var(--green-bg);
  color: var(--green);
}

.call-record .pill.amber {
  background: var(--amber-bg);
  color: var(--amber);
}

.call-record .pill.red {
  background: var(--danger-bg);
  color: var(--danger);
}

.call-record .pill.high {
  background: var(--conf-high-bg);
  color: var(--conf-high-fg);
}

.call-record .pill.med {
  background: var(--conf-med-bg);
  color: var(--conf-med-fg);
}

.call-record .pill.low {
  background: var(--conf-low-bg);
  color: var(--conf-low-fg);
}

.call-record .pill.purple {
  background: var(--dew-purple-tint);
  color: var(--dew-brand);
}

.card-wire {
  background: var(--dew-surface);
  border: 1px solid var(--dew-border);
  border-radius: var(--dew-radius-lg);
  box-shadow: none;
}

.card-wire--tight {
  padding: 14px 16px;
}

.call-deal-context {
  padding: 12px 18px;
  margin-bottom: 12px;
  background: var(--dew-surface-faint);
}

.call-deal-context--line {
  padding: 10px 16px;
}

.call-deal-context-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 22px;
  font-size: 13px;
}

.call-deal-context-pair {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.call-deal-context-pair .prep-form-eyebrow {
  margin-bottom: 0;
}

.call-deal-context-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.call-deal-context-item .prep-form-eyebrow {
  margin-bottom: 0;
}

.call-deal-context-value {
  font-weight: 500;
}

.call-deal-context-retry {
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.4;
}

.call-deal-context-seq {
  margin-left: auto;
  font-size: 12px;
}

.call-verdict-card {
  padding: 0;
  overflow: hidden;
  margin-bottom: 16px;
}

.call-verdict-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.call-verdict-cell {
  padding: 16px 20px;
  border-right: 1px solid var(--dew-border);
  min-width: 0;
}

.call-verdict-cell:last-child {
  border-right: none;
}

.call-verdict-value-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
}

.call-verdict-big {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.call-verdict-mid {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}

.call-verdict-big--good,
.call-verdict-mid.call-verdict-big--good {
  color: var(--green);
}

.call-verdict-big--warn,
.call-verdict-mid.call-verdict-big--warn {
  color: var(--amber);
}

.call-verdict-big--bad,
.call-verdict-mid.call-verdict-big--bad {
  color: var(--danger);
}

.call-verdict-denom {
  font-size: 13px;
}

.call-verdict-mono {
  margin-top: 2px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--dew-text-muted);
}

.call-verdict-tension-band {
  background: var(--dew-surface-faint);
  border-top: 1px solid var(--dew-border);
  padding: 11px 20px;
  font-size: 13px;
  line-height: 1.55;
}

.call-verdict-tension-lead {
  color: var(--dew-text);
}

.call-postcall-summary-row,
.call-record .toprow {
  display: grid;
  /* Narrow KPI stack | hero evaluation signal | room panel (postcall-qip-redesign proportions) */
  grid-template-columns: minmax(200px, 232px) minmax(340px, 1fr) minmax(260px, 316px);
  gap: 16px;
  align-items: stretch;
  margin-top: 16px;
  margin-bottom: 16px;
}

/* ---------- QIP redesign tokens ---------- */
.call-record {
  --teal: #2e897b;
  --teal-bright: #6fb8ac;
  --green: #4a7a5c;
  --amber: #a5883f;
  --red: #b8544a;
  --eyebrow: var(--dew-text-muted);
  --line: var(--dew-border);
  --line2: var(--dew-hairline);
  --soft: var(--dew-surface-subtle);
  --shadow: 0 1px 2px rgba(43, 41, 38, 0.03);
  --conf-high-bg: #e7f0ea;
  --conf-high-fg: #4a7a5c;
  --conf-med-bg: #f3ecda;
  --conf-med-fg: #a5883f;
  --conf-low-bg: #f6e4de;
  --conf-low-fg: #b8544a;
}

.call-record .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

/* metrics column */
.call-record .metrics {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.call-record .mcard {
  background: var(--dew-surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  overflow: hidden;
}

.call-record .mcard::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent, transparent);
}

.call-record .mcard .lab {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

.call-record .mcard .big {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--val, var(--dew-text));
}

.call-record .mcard .big .u {
  font-size: 15px;
  font-weight: 600;
  color: var(--eyebrow);
  letter-spacing: 0;
}

.call-record .mcard .subline {
  font-size: 11.5px;
  color: var(--dew-text-secondary, var(--dew-text-secondary));
}

.call-record .mcard .sentiment {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.call-record .meter {
  height: 5px;
  border-radius: 20px;
  background: var(--dew-surface-faint);
  overflow: hidden;
  margin-top: 3px;
}

.call-record .meter > span {
  display: block;
  height: 100%;
  border-radius: 20px;
}

.call-record .pips8 {
  display: flex;
  gap: 4px;
  margin-top: 5px;
}

.call-record .pips8 i {
  width: 14px;
  height: 6px;
  border-radius: 20px;
  background: var(--surface-active);
}

.call-record .pips8 i.on {
  background: var(--amber);
}

.call-record .confdots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.call-record .confdots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-active);
}

.call-record .confdots i.on {
  background: var(--dew-text, var(--dew-text));
}

.call-record .confdots span {
  font-size: 11px;
  color: var(--dew-text-secondary, var(--dew-text-secondary));
  margin-left: 2px;
}

/* star card — SE labs evaluation radar */
.call-record .star-card,
.call-record .qip-star-card {
  position: relative;
  overflow: hidden;
  background: var(--dew-surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow:
    0 12px 34px -18px rgba(58, 38, 24, 0.32),
    0 1px 2px rgba(43, 41, 38, 0.04);
  padding: 26px 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  align-self: stretch;
}

.call-record .qip-star-card::before {
  display: none;
}

.call-record .star-card > *,
.call-record .qip-star-card > * {
  position: relative;
  z-index: 1;
}

.call-record .star-card--empty {
  min-height: 220px;
  justify-content: flex-start;
}

.call-record .star-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-self: stretch;
  margin-bottom: 4px;
}

.call-record .star-head-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.call-record .star-head .star-title,
.call-record .star-head .eyebrow.star-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink, var(--dew-text));
  line-height: 1.2;
}

.call-record .star-head .hint {
  margin-top: 0;
  font-size: 12.5px;
  color: var(--muted2, var(--dew-text-secondary));
}

.call-record .star-overall-pill {
  display: flex;
  align-items: baseline;
  gap: 6px;
  background: var(--dew-surface-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  flex-shrink: 0;
}

.call-record .star-overall-pill b {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink, var(--dew-text));
}

.call-record .star-overall-pill span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted2, var(--dew-text-secondary));
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.call-record .qip-star-stage {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 4px;
  line-height: 0;
}

.call-record .qip-star-card .star-svg,
.call-record .qip-star-card .qip-star-svg {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  margin: 0;
}

.call-record .qip-star-card .qip-radar-svg {
  max-width: none;
  margin: 0;
}

/* labs radar entrance — series grow from center */
.call-record .qip-star-animated .ring {
  opacity: 0;
  animation: qip-star-fade 0.55s ease forwards;
}

.call-record .qip-star-animated .ring.r1 { animation-delay: 0.04s; }
.call-record .qip-star-animated .ring.r2 { animation-delay: 0.1s; }
.call-record .qip-star-animated .ring.r3 { animation-delay: 0.16s; }
.call-record .qip-star-animated .ring.r4 { animation-delay: 0.22s; }
.call-record .qip-star-animated .ring.r5 { animation-delay: 0.28s; }

.call-record .qip-star-animated .spoke {
  opacity: 0;
  animation: qip-star-fade 0.55s ease forwards;
  animation-delay: 0.2s;
}

.call-record .qip-star-animated .qip-star-data {
  opacity: 0;
  transform: scale(0.9);
  transform-box: view-box;
  transform-origin: 300px 250px;
  animation: qip-star-pop 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: 0.12s;
}

.call-record .qip-star-animated .gem {
  opacity: 0;
  transform-box: view-box;
  transform-origin: center;
  animation: qip-star-gem 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
}

.call-record .qip-star-animated .g0 { animation-delay: 0.55s; }
.call-record .qip-star-animated .g1 { animation-delay: 0.62s; }
.call-record .qip-star-animated .g2 { animation-delay: 0.69s; }
.call-record .qip-star-animated .g3 { animation-delay: 0.76s; }
.call-record .qip-star-animated .g4 { animation-delay: 0.83s; }

.call-record .qip-star-animated .lab {
  opacity: 0;
  animation: qip-star-fade 0.55s ease forwards 0.7s;
}

.call-record .qip-star-static .ring,
.call-record .qip-star-static .spoke,
.call-record .qip-star-static .lab,
.call-record .qip-star-static .gem {
  opacity: 1;
}

.call-record .qip-star-static .qip-star-data {
  opacity: 1;
  transform: none;
}

@keyframes qip-star-fade {
  to { opacity: 1; }
}

@keyframes qip-star-pop {
  to { opacity: 1; transform: scale(1); }
}

@keyframes qip-star-gem {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .call-record .qip-star-card * {
    animation: none !important;
  }

  .call-record .qip-star-card .qip-star-data {
    opacity: 1;
    transform: none;
  }

  .call-record .qip-star-card .ring,
  .call-record .qip-star-card .spoke,
  .call-record .qip-star-card .gem,
  .call-record .qip-star-card .lab {
    opacity: 1;
  }
}

.call-postcall-kpis {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.call-kpi-card {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.call-kpi-card .prep-form-eyebrow {
  margin-bottom: 0;
  font-size: 9.5px;
  letter-spacing: 0.05em;
}

.call-kpi-value-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.call-kpi-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

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

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

.call-kpi-value--bad {
  color: var(--danger);
}

.call-kpi-unit {
  font-size: 11px;
}

.call-kpi-sub {
  font-size: 10.5px;
  line-height: 1.35;
}

.call-postcall-radar {
  min-width: 0;
  display: flex;
}

.call-postcall-radar .qip-radar-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.call-postcall-radar .qip-radar-svg {
  flex: 1;
  margin-top: 4px;
}

.call-postcall-room {
  min-width: 0;
  width: 100%;
}

.call-section.call-notes-section {
  margin-bottom: 16px;
}

.call-notes-section .call-section-body--flat {
  padding: 14px 18px;
}

.call-notes-bullets {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.call-notes-bullets li {
  padding-left: 4px;
}

.call-notes-bullets li::marker {
  color: var(--dew-text-secondary);
}

.call-section-body {
  padding: 18px 20px;
}

.call-section-body--flat {
  padding: 18px 20px;
}

.card-wire--tight .call-section-body--flat {
  padding: 14px 16px;
}

.call-section-body--flat .prep-form-eyebrow {
  margin-bottom: 8px;
}

.call-notes-read {
  line-height: 1.7;
  font-size: 13px;
}

.call-section {
  margin: 0;
  font-size: 13px;
}

.call-notes-edit[hidden],
.call-notes-edit:not(.call-notes-edit--open) {
  display: none !important;
}

.call-notes-action--edit[hidden] {
  display: none !important;
}

.call-notes-editor {
  width: 100%;
  min-height: 140px;
  font: inherit;
  line-height: 1.7;
  padding: 12px;
  border: 1px solid var(--dew-border);
  border-radius: 10px;
  background: var(--dew-surface-faint);
  color: inherit;
  resize: vertical;
}

.call-notes-editor:focus {
  outline: 2px solid var(--dew-primary);
  outline-offset: 2px;
  border-radius: 8px;
}

.call-notes-hint,
.call-mom-hint {
  margin: 0 0 10px;
  font-size: 12px;
}

.call-notes-actions,
.call-mom-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.call-save-status {
  font-size: 12px;
}

.call-video-empty {
  text-align: center;
  padding: 16px 8px;
}

.call-video-empty fw-icon {
  color: var(--dew-text-muted);
  margin-bottom: 8px;
}

.call-video-empty h4 {
  margin: 0 0 6px;
  font-size: 14px;
}

.call-video-empty p {
  margin: 0;
  font-size: 13px;
  max-width: 36ch;
  margin-inline: auto;
}

.call-timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.call-timeline-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--dew-text);
}

.call-timeline-sub {
  font-size: 12px;
}

.call-timeline-sub--block {
  margin: -6px 0 14px;
}

.call-timeline-head .call-spine-legend--head {
  margin: 0;
  justify-content: flex-end;
  flex: 1 1 auto;
  max-width: min(100%, 520px);
}

.call-timeline-section {
  margin-bottom: 16px;
}

.call-record-tabs-section {
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.call-record-tablist.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--dew-border);
  margin-bottom: 18px;
}

.call-record-tab {
  all: unset;
  cursor: pointer;
  padding: 9px 15px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dew-text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
}

.call-record-tab:hover {
  color: var(--dew-text);
}

.call-record-tab.on {
  color: var(--dew-primary);
  border-bottom-color: var(--dew-primary);
}

.call-record-tab:focus-visible {
  outline: 2px solid var(--dew-primary);
  outline-offset: -2px;
}

.call-record-tabpane {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
}

.call-record-tabpane.on {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.call-tab-panel-inner {
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.call-tab-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 32px 20px;
  color: var(--dew-text-secondary);
  border: 1px dashed var(--dew-input-border);
  border-radius: 12px;
  background: var(--dew-surface-faint);
}

.call-tab-empty h4 {
  margin: 0;
  color: var(--dew-text);
  font-size: 15px;
}

.call-tab-empty p {
  margin: 0;
  max-width: 42ch;
  font-size: 13px;
}

.call-mom-editor {
  width: 100%;
  min-height: 280px;
  font: inherit;
  line-height: 1.65;
  white-space: pre-wrap;
  padding: 16px;
  border: 1px solid var(--dew-border);
  border-radius: 10px;
  background: var(--dew-surface-faint);
  color: inherit;
  resize: vertical;
}

.call-mom-editor:focus {
  outline: 2px solid var(--dew-primary);
  outline-offset: 1px;
  border-color: var(--dew-primary);
}

.call-record .call-tab-qip {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.call-record .call-tab-signal {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.call-record .call-tab-mom {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.call-record .call-tab-panel-inner:not(.call-tab-qip):not(.call-tab-signal):not(.call-tab-mom) {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

/* QIP scorecard — postcall-qip-redesign.html wireframe */
.call-record .qip-scorecard--wireframe.card.qip {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--dew-surface);
  box-shadow: var(--shadow);
}

/* Product signal — full-width card (matches QIP + timeline) */
.call-record {
  --ps-sub: var(--dew-surface-subtle);
  --ps-line: var(--dew-border);
  --ps-line-soft: var(--dew-hairline);
  --ps-ink: var(--dew-text);
  --ps-ink-2: var(--dew-text);
  --ps-muted: var(--dew-text-muted);
  --ps-muted-2: var(--dew-text-muted);
  --ps-teal: #2e897b;
  --ps-teal-bg: #e3efec;
  --ps-green: #4a7a5c;
  --ps-green-bg: #e7f0ea;
  --ps-amber: #a5883f;
  --ps-amber-bg: #f3ecda;
  --ps-clay: #c2603f;
  --ps-clay-bg: #f7ece4;
  --ps-taupe: #877b63;
  --ps-taupe-bg: #efeadf;
}

.call-record .ps-signal-card--wireframe.card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--dew-surface);
  box-shadow: var(--shadow, 0 1px 2px rgba(43, 41, 38, 0.03));
  width: 100%;
}

/* Minutes of meeting — full-width card (matches QIP + product signal) */
.call-record .mom-card--wireframe.card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--dew-surface);
  box-shadow: var(--shadow, 0 1px 2px rgba(43, 41, 38, 0.03));
  width: 100%;
}

.call-record .mom-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.call-record .mom-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ps-ink, var(--dew-text));
}

.call-record .mom-head .sub {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--dew-text-secondary, var(--dew-text-secondary));
  max-width: 52ch;
  line-height: 1.5;
}

.call-record .mom-status {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  background: var(--ps-taupe-bg, #efeadf);
  color: var(--ps-taupe, #877b63);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: -0.01em;
}

.call-record .mom-status--sent {
  background: var(--ps-green-bg, #e7f0ea);
  color: var(--ps-green, #4a7a5c);
}

.call-record .mom-title-row {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ps-ink-2, var(--dew-text));
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ps-line-soft, var(--dew-hairline));
}

.call-record .mom-section {
  margin-bottom: 20px;
}

.call-record .mom-section h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ps-muted, var(--dew-text-muted));
}

.call-record .mom-outcome-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ps-ink, var(--dew-text));
}

.call-record .mom-topics,
.call-record .mom-actions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.call-record .mom-topic {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.call-record .mom-topic-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ps-ink, var(--dew-text));
}

.call-record .mom-topic-detail {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ps-muted, var(--dew-text-muted));
}

.call-record .mom-action-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.call-record .mom-action-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ps-ink, var(--dew-text));
}

.call-record .mom-action-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.call-record .mom-owner {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}

.call-record .mom-owner--se {
  background: var(--ps-teal-bg, #e3efec);
  color: var(--ps-teal, #2e897b);
}

.call-record .mom-owner--ae {
  background: var(--ps-amber-bg, #f3ecda);
  color: var(--ps-amber, #a5883f);
}

.call-record .mom-owner--customer {
  background: var(--ps-clay-bg, #f7ece4);
  color: var(--ps-clay, #c2603f);
}

.call-record .mom-due {
  font-size: 12px;
  color: var(--ps-ink-2, var(--dew-text));
}

.call-record .mom-action-ts {
  font-size: 11px;
  color: var(--ps-muted-2, var(--dew-text-muted));
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.call-record .mom-card--wireframe .call-mom-edit-wrap {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.call-record .mom-email-edit {
  margin-top: 4px;
  border-top: 1px solid var(--ps-line-soft, var(--dew-hairline));
  padding-top: 14px;
}

.call-record .mom-edit-intro {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--dew-text-secondary, var(--dew-text-secondary));
  line-height: 1.5;
}

.call-record .mom-email-edit .call-mom-edit-wrap summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--ps-ink, var(--dew-text));
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  .call-record .mom-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .call-record .mom-action-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

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

.call-record .ps-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ps-ink);
}

.call-record .ps-head .sub {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--dew-text-secondary, var(--dew-text-secondary));
  max-width: 52ch;
  line-height: 1.5;
}

.call-record .ps-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  background: var(--ps-teal-bg);
  color: var(--ps-teal);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: -0.01em;
}

.call-record .ps-status--ready {
  background: var(--ps-green-bg);
  color: var(--ps-green);
}

.call-record .ps-status--ready .ps-dot {
  background: var(--ps-green);
  animation: none;
}

.call-record .ps-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ps-teal);
}

@media (prefers-reduced-motion: no-preference) {
  .call-record .ps-status:not(.ps-status--ready) .ps-dot {
    animation: ps-pulse 1.9s ease-in-out infinite;
  }
}

@keyframes ps-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.call-record .ps-compbar {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  background: var(--ps-sub);
  border: 1px solid var(--ps-line-soft);
  border-radius: 10px;
  padding: 11px 16px;
  margin-bottom: 18px;
}

.call-record .ps-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.call-record .ps-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid var(--ps-line-soft);
}

.call-record .ps-panel--asks,
.call-record .ps-panel--voice,
.call-record .ps-panel--bottom {
  background: var(--ps-sub);
  border: 1px solid var(--ps-line-soft);
  border-radius: 12px;
  padding: 16px 18px;
  min-width: 0;
}

.call-record .ps-panel-empty {
  font-size: 12.5px;
  margin: 0;
}

.call-record .ps-empty-inner {
  padding: 24px 16px;
  text-align: center;
  background: var(--ps-sub);
  border: 1px dashed var(--ps-line);
  border-radius: 10px;
}

.call-record .ps-asks-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.call-record .ps-sec-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.call-record .ps-sec-head h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ps-ink);
  margin: 0;
}

.call-record .ps-n {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--ps-muted);
  background: var(--dew-surface);
  border: 1px solid var(--ps-line);
  padding: 1px 7px;
  border-radius: 20px;
  line-height: 1.6;
}

.call-record .ps-sub {
  width: 100%;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ps-muted);
  line-height: 1.45;
}

.call-record .ps-clabel {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ps-muted);
  letter-spacing: 0.01em;
}

.call-record .ps-comp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dew-surface);
  border: 1px solid var(--ps-line);
  border-radius: 999px;
  padding: 5px 13px 5px 11px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ps-ink-2);
}

.call-record .ps-cdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ps-taupe);
  flex-shrink: 0;
}

.call-record .ps-lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.call-record .ps-lane.pos {
  padding-right: 14px;
}

.call-record .ps-lane.neg {
  padding-left: 14px;
  border-left: 1px solid var(--ps-line-soft);
}

.call-record .ps-lane-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.call-record .ps-lane-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border-radius: 7px;
}

.call-record .ps-lane-tag.pos {
  background: var(--ps-green-bg);
  color: var(--ps-green);
}

.call-record .ps-lane-tag.neg {
  background: var(--ps-clay-bg);
  color: var(--ps-clay);
}

.call-record .ps-lane-tag .ps-cdot {
  width: 5px;
  height: 5px;
  background: currentColor;
}

.call-record .ps-lc {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--ps-muted-2);
}

.call-record .ps-lane-empty {
  font-size: 12px;
  margin: 0;
}

.call-record .ps-q {
  border-left: 2px solid var(--ps-line);
  padding: 1px 0 1px 10px;
  margin-bottom: 10px;
}

.call-record .ps-lane.pos .ps-q {
  border-left-color: #b9d6c5;
}

.call-record .ps-lane.neg .ps-q {
  border-left-color: #e6bfa9;
}

.call-record .ps-q:last-child {
  margin-bottom: 0;
}

.call-record .ps-qtext {
  display: block;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ps-ink-2);
}

.call-record .ps-qtime {
  display: block;
  margin-top: 3px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--ps-muted-2);
}

.call-record .ps-wl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ps-line-soft);
}

.call-record .ps-wl > div:first-child {
  padding-right: 14px;
}

.call-record .ps-wl > div:last-child {
  padding-left: 14px;
  border-left: 1px solid var(--ps-line-soft);
}

.call-record .ps-wlh {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.call-record .ps-wlh.win {
  color: var(--ps-green);
}

.call-record .ps-wlh.loss {
  color: var(--ps-clay);
}

.call-record .ps-wlc {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  color: var(--ps-muted-2);
  text-transform: none;
  letter-spacing: 0;
}

.call-record .ps-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.call-record .ps-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 4px 10px 4px 8px;
  font-size: 11.5px;
  font-weight: 600;
}

.call-record .ps-pill.win {
  background: var(--ps-green-bg);
  color: var(--ps-green);
}

.call-record .ps-pill.loss {
  background: var(--ps-clay-bg);
  color: var(--ps-clay);
}

.call-record .ps-pill svg {
  flex-shrink: 0;
}

.call-record .ps-pill-empty {
  font-size: 11.5px;
}

.call-record .ps-ask {
  background: var(--dew-surface);
  border: 1px solid var(--ps-line);
  border-left-width: 3px;
  border-radius: 10px;
  padding: 13px 15px 14px;
}

.call-record .ps-ask.resolved {
  border-left-color: var(--ps-green);
}

.call-record .ps-ask.open {
  border-left-color: var(--ps-amber);
}

.call-record .ps-ask-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.call-record .ps-ask-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ps-ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.call-record .ps-ask-time {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--ps-muted-2);
  flex-shrink: 0;
}

.call-record .ps-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.call-record .ps-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 6px;
  padding: 3px 8px;
}

.call-record .ps-chip.resolved {
  background: var(--ps-green-bg);
  color: var(--ps-green);
}

.call-record .ps-chip.open {
  background: var(--ps-amber-bg);
  color: var(--ps-amber);
}

.call-record .ps-chip.tag {
  background: var(--ps-taupe-bg);
  color: var(--ps-taupe);
  font-weight: 600;
}

.call-record .ps-chip .ps-cdot {
  width: 5px;
  height: 5px;
  background: currentColor;
}

.call-record .ps-well {
  border-radius: 8px;
  padding: 8px 11px;
  margin-top: 10px;
}

.call-record .ps-well-lbl {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ps-muted-2);
  margin-bottom: 4px;
}

.call-record .ps-well p {
  font-size: 12px;
  line-height: 1.52;
  color: var(--ps-ink-2);
  margin: 0;
}

.call-record .ps-well.voice {
  background: var(--ps-clay-bg);
  border-left: 2px solid var(--ps-clay);
}

.call-record .ps-well.voice .ps-well-lbl {
  color: #b06a4a;
}

.call-record .ps-well.reply {
  background: var(--dew-surface);
  border-left: 2px solid var(--ps-line);
}

.call-record .ps-pains {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.call-record .ps-pain {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--dew-surface);
  border: 1px solid var(--ps-line-soft);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ps-ink);
  line-height: 1.35;
}

.call-record .ps-pdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ps-clay);
  flex-shrink: 0;
}

@media (max-width: 820px) {
  .call-record .ps-main-grid,
  .call-record .ps-bottom-grid {
    grid-template-columns: 1fr;
  }
  .call-record .ps-lanes {
    grid-template-columns: 1fr;
  }
  .call-record .ps-lane.pos {
    padding-right: 0;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--ps-line-soft);
  }
  .call-record .ps-lane.neg {
    padding-left: 0;
    border-left: none;
  }
  .call-record .ps-wl {
    grid-template-columns: 1fr;
  }
  .call-record .ps-wl > div:first-child {
    padding-right: 0;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--ps-line-soft);
  }
  .call-record .ps-wl > div:last-child {
    padding-left: 0;
    border-left: none;
  }
}

.call-record .qip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.call-record .qip-head-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.call-record .qip-weight-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--dew-text-secondary, var(--dew-text-secondary));
}

.call-record .qip-weight-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--eyebrow, var(--dew-text-muted));
}

.call-record .qip-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.call-record .qip-head .sub {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--dew-text-secondary, var(--dew-text-secondary));
}

.call-record .qip-total {
  font-size: 13px;
  font-weight: 800;
  color: var(--dew-text-secondary);
  background: var(--dew-surface-faint);
  border-radius: 9px;
  padding: 7px 12px;
  white-space: nowrap;
}

.call-record .qip-total b {
  color: var(--green);
}

.call-record .chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}

.call-record .chip.done {
  background: #e7f0ea;
  color: var(--green);
}

.call-record .chip.part {
  background: #f3ecda;
  color: var(--amber);
}

.call-record .chip.miss {
  background: var(--dew-surface-faint);
  color: var(--dew-text-muted);
}

.call-record .chip .frac {
  font-weight: 800;
  opacity: 0.85;
}

.call-record .wt {
  display: inline-flex;
  gap: 2px;
  align-items: flex-end;
  height: 12px;
}

.call-record .wt i {
  width: 3.5px;
  border-radius: 1.5px;
  background: var(--dew-border);
}

.call-record .wt i.on {
  background: var(--teal);
}

.call-record .wt i:nth-child(1) { height: 6px; }
.call-record .wt i:nth-child(2) { height: 9px; }
.call-record .wt i:nth-child(3) { height: 12px; }

.call-record .wd {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 16px;
  padding-top: 4px;
}

.call-record .wd .col .h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.call-record .wd .col.good .h { color: var(--green); }
.call-record .wd .col.bad .h { color: var(--red); }

.call-record .wd ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.call-record .wd li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.5;
}

.call-record .wd li .ic {
  flex-shrink: 0;
  margin-top: 1px;
}

.call-record .wd .good .ic { color: var(--green); }
.call-record .wd .bad .ic { color: #c56b52; }

.call-record .cats {
  margin-top: 16px;
  border-top: 1px solid var(--line2);
}

.call-record details.cat {
  border-bottom: 1px solid var(--line2);
}

.call-record details.cat summary {
  list-style: none;
  cursor: pointer;
}

.call-record details.cat summary::-webkit-details-marker {
  display: none;
}

.call-record .cat-sum {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto 16px;
  align-items: center;
  gap: 12px;
  padding: 15px 6px;
}

.call-record .cat-sum:hover {
  background: var(--soft);
}

.call-record .cat-star {
  display: flex;
  color: var(--green);
}

.call-record .cat-name {
  font-size: 14.5px;
  font-weight: 700;
}

.call-record .cat-score {
  font-size: 15px;
  white-space: nowrap;
  font-weight: 800;
}

.call-record .cat-score .d {
  color: var(--eyebrow);
  font-size: 12px;
  font-weight: 600;
}

.call-record details.cat .chev,
.call-record details.thm .chev {
  display: flex;
  color: var(--eyebrow);
  transition: transform 0.18s ease;
}

.call-record details[open] > summary .chev {
  transform: rotate(180deg);
}

.call-record .cat-body {
  padding: 2px 6px 12px;
}

.call-record details.thm {
  border-top: 1px solid var(--dew-hairline);
}

.call-record details.thm:first-child {
  border-top: none;
}

.call-record .thm-sum {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 78px auto 40px 14px;
  align-items: center;
  gap: 12px;
  padding: 12px 6px 12px 30px;
}

.call-record .thm-sum:hover {
  background: var(--dew-surface-subtle);
}

.call-record .thm-name {
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.call-record .thm-name .nm {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.call-record .spark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.call-record .spark i {
  width: 5px;
  border-radius: 2px;
}

.call-record .spark i.v2 {
  height: 16px;
  background: var(--green);
}

.call-record .spark i.v1 {
  height: 9px;
  background: var(--amber);
}

.call-record .spark i.v0 {
  height: 3px;
  background: var(--dew-border);
}

.call-record .thm-score {
  font-size: 14px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.call-record .thm-score .d {
  color: var(--eyebrow);
  font-size: 11px;
  font-weight: 600;
}

.call-record .thm-na {
  font-size: 13px;
  font-weight: 700;
  color: var(--dew-text-muted);
  text-align: right;
}

.call-record .thm-body {
  padding: 4px 6px 10px 30px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.call-record .sp {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
  padding: 11px 4px;
  border-top: 1px solid var(--dew-hairline);
}

.call-record .sp:first-child {
  border-top: none;
}

.call-record .sp .state {
  padding-top: 1px;
}

.call-record .sp .txt {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
}

.call-record .sp .ev {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 6px;
}

.call-record .sp .ev .t {
  font-size: 10.5px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  color: var(--teal);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}

.call-record .sp .ev .q {
  font-size: 12px;
  color: var(--dew-text-secondary);
  line-height: 1.5;
  font-style: italic;
}

.call-record .sp .coach {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 7px;
  background: var(--dew-surface-subtle);
  border-radius: 8px;
  padding: 7px 10px;
}

.call-record .sp .coach .k {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.call-record .sp .coach .c {
  font-size: 12px;
  line-height: 1.5;
  color: var(--dew-text);
}

.call-record .sp .nailed {
  font-size: 11.5px;
  color: var(--dew-text-secondary, var(--dew-text-muted));
  margin-top: 5px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.call-record .thm-note {
  padding: 8px 6px 2px 30px;
  font-size: 11.5px;
  color: var(--dew-text-secondary, var(--dew-text-muted));
  line-height: 1.5;
}

@media (max-width: 900px) {
  .call-record .thm-sum {
    grid-template-columns: minmax(0, 1fr) auto 70px auto 32px 14px;
    padding-left: 12px;
  }

  .call-record .thm-body,
  .call-record .thm-note {
    padding-left: 12px;
  }
}

@media (max-width: 640px) {
  .call-record .wd {
    grid-template-columns: 1fr;
  }
}

/* Legacy QIP scorecard layout (postcall result fallback) */
.call-record .qip-scorecard {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: none;
  padding: 0;
}

.call-record .qip-scorecard-card {
  background: var(--dew-surface);
  border: 1px solid var(--dew-border);
  border-radius: 14px;
  padding: 18px 20px;
}

.call-record .qip-overall-pill {
  background: var(--dew-hairline);
  color: var(--dew-text);
  font-weight: 700;
  white-space: nowrap;
}

.call-record .qip-insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}

.call-record .qip-insight-title {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.call-record .qip-insight-col--good .qip-insight-title { color: #4a7a5c; }
.call-record .qip-insight-col--bad .qip-insight-title { color: #b8544a; }

.call-record .qip-insight-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.5;
}

.call-record .qip-radar-card {
  border: 1px solid var(--dew-border);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--dew-surface);
}

.call-record .qip-radar-card--empty {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.call-record .qip-radar-card--empty .call-radar-empty {
  margin: 12px 0 0;
  font-size: 13px;
}

.call-record .qip-radar-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--dew-text-muted);
}

.call-record .qip-radar-svg {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 4px auto 0;
}

/* jewel star shares qip-radar-svg class — must not inherit legacy radar cap */
.call-record .qip-star-card .qip-radar-svg {
  max-width: none;
  margin: 0;
  height: auto;
}

.call-record .qip-radar-ring {
  fill: none;
  stroke: var(--dew-border);
  stroke-width: 1;
}

.call-record .qip-radar-ring-outer {
  fill: none;
  stroke: var(--dew-border);
  stroke-width: 1;
  stroke-dasharray: none;
}

.call-record .qip-radar-spoke {
  stroke: var(--dew-border);
  stroke-width: 1;
}

.call-record .qip-radar-scale {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px;
  font-weight: 500;
  fill: var(--dew-text-muted);
}

.call-record .qip-star-card .qip-radar-data {
  fill: none;
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.call-record .qip-star-card .qip-radar-dot {
  /* fill/stroke set per-axis on the SVG element */
  stroke-width: 2.5;
}

.call-record .qip-star-card .qip-radar-value {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 18px;
  font-weight: 600;
}

.call-record .qip-star-card .qip-radar-axis-label {
  font-size: 12.5px;
  font-weight: 600;
  fill: var(--dew-text-secondary);
}

.call-record .qip-radar-center {
  fill: var(--dew-text-muted);
}

.call-postcall-radar .qip-radar-center-label,
.call-record .qip-radar-center-label {
  font-weight: 800;
  letter-spacing: -0.04em;
}

.call-postcall-radar .qip-radar-center-label.call-kpi-value--good,
.call-record .qip-radar-center-label.call-kpi-value--good {
  fill: var(--green);
}

.call-postcall-radar .qip-radar-center-label.call-kpi-value--warn,
.call-record .qip-radar-center-label.call-kpi-value--warn {
  fill: var(--amber);
}

.call-postcall-radar .qip-radar-center-label.call-kpi-value--bad,
.call-record .qip-radar-center-label.call-kpi-value--bad {
  fill: var(--danger);
}

.qip-radar-sentiment-sub {
  margin: 6px 12px 0;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.call-record .qip-category-summary {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 4px;
  cursor: pointer;
  list-style: none;
}

.call-record .qip-category-summary::-webkit-details-marker { display: none; }

.call-record .qip-theme-summary.srow-hd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 120px 64px 20px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--dew-border);
}

.call-record .qip-category-row[open] .chev,
.call-record .qip-theme-row[open] .chev {
  transform: rotate(90deg);
}

.call-record .qip-scorecard-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.call-record .qip-scorecard-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--dew-text);
}

.call-record .qip-scorecard-sub {
  margin: 0;
  font-size: 13px;
  color: var(--dew-text-secondary);
}

.call-record .qip-total-pill {
  background: var(--dew-hairline);
  color: var(--dew-text-secondary);
  white-space: nowrap;
}

.call-record .qip-confidence {
  margin: 0 0 14px;
  font-size: 13px;
}

.call-record .qip-grid-header {
  display: grid;
  grid-template-columns: 1fr 78px 120px 74px 20px;
  gap: 12px;
  padding: 0 4px 8px;
  border-bottom: 1px solid var(--dew-border);
  margin-bottom: 0;
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--dew-text-muted);
  font-weight: 700;
}

.call-record .qip-section-lines {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.call-record .qip-line,
.call-record .qip-line.srow {
  border: none;
  border-bottom: 1px solid var(--dew-border);
  border-radius: 0;
  background: transparent;
  margin: 0;
}

.call-record .qip-line:last-child {
  border-bottom: none;
}

.call-record .qip-line-summary,
.call-record .qip-line-summary.srow-hd {
  display: grid;
  grid-template-columns: 1fr 78px 120px 74px 20px;
  gap: 12px;
  align-items: center;
  padding: 11px 4px;
  list-style: none;
  cursor: pointer;
}

.call-record .qip-line-summary::-webkit-details-marker {
  display: none;
}

.call-record .qip-line-summary:hover {
  background: var(--dew-surface-subtle);
}

.call-record .qip-line[open] .chev {
  transform: rotate(90deg);
}

.call-record .qip-line .chev {
  color: var(--dew-text-muted);
  font-size: 11px;
  transition: transform 0.15s;
}

.call-record .qip-theme-name {
  font-weight: 500;
  font-size: 13px;
}

.call-record .qip-theme-name--heavy {
  font-weight: 700;
}

.call-record .qip-weighted-cell .bar,
.call-record .qip-weighted-cell .qip-weight-bar {
  width: 100%;
  min-width: 72px;
  height: 5px;
  background: var(--dew-surface-faint);
  border-radius: 3px;
  overflow: hidden;
  margin: 0;
}

.call-record .qip-weighted-cell .bar span,
.call-record .qip-weighted-cell .qip-weight-bar span {
  display: block;
  height: 100%;
  border-radius: 3px;
}

.call-record .qip-line-body.srow-bd {
  padding: 2px 4px 15px;
  border-top: none;
  background: transparent;
}

.call-record .ev {
  border-left: 3px solid var(--dew-border);
  background: var(--dew-surface-subtle);
  padding: 9px 13px;
  border-radius: 0 8px 8px 0;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.6;
}

.call-record .ev.good {
  border-left-color: var(--green);
  background: var(--green-bg, #e3f5ee);
}

.call-record .ev.bad {
  border-left-color: var(--danger);
  background: var(--danger-bg, #fdecef);
}

.call-record .ev .ts {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--dew-text-muted);
  margin-bottom: 3px;
}

.call-record .qip-scorecard-actions,
.call-record .qip-wire-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.call-record .qip-sp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding: 10px 0;
  border-top: 1px solid var(--dew-hairline);
}

.call-record .qip-sp-label {
  grid-column: 1 / -1;
  font-size: 12.5px;
  font-weight: 600;
}

.call-record .qip-sp-credit {
  font-size: 10.5px;
  font-weight: 500;
}

.call-record .qip-sp-bar {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.call-record .qip-sp-bar-seg {
  width: 22px;
  height: 6px;
  border-radius: 999px;
  background: var(--dew-border);
}

.call-record .qip-sp-bar-seg.is-filled {
  background: var(--green, #2e897b);
}

.call-record .qip-sp-evidence-wrap {
  grid-column: 1 / -1;
}

.call-record .qip-sp-coach {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.call-record .btn-wire {
  all: unset;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--dew-border);
  color: var(--dew-text);
  background: var(--dew-surface);
  text-align: center;
}

.call-record .btn-wire:hover:not(:disabled) {
  background: var(--surface-hover);
}

.call-record .btn-wire:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.call-record .qip-line-max {
  color: var(--dew-text-muted);
  font-weight: 400;
}

.call-record .qip-line-na,
.call-record .qip-line-suppressed {
  opacity: 1;
}

/* TC / fitment / product signal wireframe tabs */
.call-tc-slot--wire {
  padding: 10px 0;
  border-bottom: 1px solid var(--dew-border);
}

.call-tc-slot--wire:last-child {
  border-bottom: none;
}

.call-fitment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}

.call-fitment-value {
  font-size: 20px;
  font-weight: 700;
  margin: 2px 0 5px;
}

.call-fitment-metric .bar {
  height: 5px;
  background: var(--dew-surface-faint);
  border-radius: 3px;
  overflow: hidden;
}

.call-fitment-metric .bar span {
  display: block;
  height: 100%;
  border-radius: 3px;
}

.call-product-signal-tab--wireframe h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.call-product-unified-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--dew-border);
}

.call-product-unified-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.call-product-unified-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.call-product-unified-meta {
  margin-top: 6px;
  font-size: 12px;
}

/* Legacy product-signal-tab wrapper (non call-record views) */
.call-product-signal-tab {
  max-width: none;
}


.call-ps-intro {
  margin-bottom: 20px;
}

.call-ps-intro h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.call-ps-section {
  margin-bottom: 24px;
}

.call-ps-section-head h4 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
}

.call-ps-section-head .sub {
  margin: 0 0 10px;
}

.call-ps-section-body {
  border: 1px solid var(--dew-border);
  border-radius: 10px;
  background: var(--dew-surface-subtle);
  padding: 4px 14px;
}

.call-ps-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--dew-border);
}

.call-ps-row:last-child {
  border-bottom: none;
}

.call-ps-row-title {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 13.5px;
}

.call-ps-row-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--dew-muted);
}

.call-ps-handling {
  margin: 8px 0 0;
  font-size: 12.5px;
}

.call-ps-empty-state {
  padding: 20px;
  border-radius: 10px;
}

.call-ps-section--empty .call-ps-empty {
  margin: 0;
  font-size: 13px;
}

.call-mom-panel--wireframe .call-mom-wire-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.call-mom-panel--wireframe .call-mom-wire-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.call-mom-wire-sub {
  margin: 0 0 12px;
}

.call-mom-wire-body {
  background: var(--dew-surface-subtle);
  border: 1px solid var(--dew-border);
  border-radius: 10px;
  padding: 16px;
  font-size: 13.5px;
  line-height: 1.75;
}

.call-mom-wire-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.call-health-traction-card--red {
  border-color: var(--danger-bg, #f5cdd5);
}

.call-objection-wire-row--border {
  padding-bottom: 9px;
  margin-bottom: 9px;
  border-bottom: 1px solid var(--dew-border);
}

.call-record .pill.blue {
  background: #e8f0fe;
  color: #1d4fd8;
}

.call-record .pill.purple {
  background: #efebfd;
  color: var(--dew-brand);
}

.call-record .pill.green {
  background: var(--green-bg, #e3f5ee);
  color: var(--green, #127a56);
}

.call-record .pill.amber {
  background: var(--amber-bg, #fdf3e2);
  color: var(--amber, #b7791f);
}

.call-record .pill.red {
  background: var(--danger-bg, #fdecef);
  color: var(--danger, #d6455d);
}

.call-empty {
  padding: 48px 24px;
  text-align: center;
}

.call-empty h2 {
  margin: 12px 0 8px;
}

.call-record fw-button:focus-visible,
.call-record .call-notes-editor:focus-visible,
.call-record .call-mom-editor:focus-visible,
.call-record .qip-line-summary:focus-visible {
  outline: 2px solid var(--dew-primary);
  outline-offset: 1px;
}

@media (max-width: 960px) {
  .call-record-page {
    padding: 20px 16px 48px;
  }

  .call-postcall-summary-row,
  .call-record .toprow {
    grid-template-columns: 1fr;
  }

  .call-postcall-kpis,
  .call-record .metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .call-record .qip-line-summary.srow-hd {
    grid-template-columns: 1fr auto;
  }

  .call-record .qip-weighted-cell,
  .call-record .qip-conf-cell,
  .call-record .qip-grid-header > :nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 640px) {
  .call-postcall-kpis,
  .call-record .metrics {
    grid-template-columns: 1fr;
  }

  .call-record-hero {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .call-record .qip-line-summary:hover {
    transition: none;
  }
}

/* Activities list — SE Labs table layout (#calls / #activities) */

.call-list-view,
.call-list-view--labs,
.call-list-view--compact {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#view-calls .call-list-view--labs {
  gap: 20px;
}

#view-calls .act-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

#view-calls .act-header .call-list-heading {
  margin: 0;
  flex: 0 1 auto;
}

/* Filters */
#view-calls .act-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

#view-calls .act-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#view-calls .act-filter-label {
  font-size: 0.65625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dew-text-faint);
  white-space: nowrap;
  flex-shrink: 0;
}

#view-calls .act-filter fw-select {
  min-width: 148px;
  width: auto;
  margin: 0;
  --fw-label-font-size: 0;
  --fw-label-color: transparent;
  --fw-hint-color: transparent;
  --color-fill-surface: var(--dew-surface);
  --color-fill-container: var(--dew-surface);
  --color-boundary-border-mildest: var(--dew-border);
  --color-boundary-border-boldest: var(--dew-border);
  --shadow-xs: var(--dew-shadow-island);
  background: var(--dew-surface);
  border: 1px solid var(--dew-border);
  border-radius: 10px;
  box-shadow: var(--dew-shadow-island);
}

#view-calls .act-filter fw-select::part(label) {
  display: none;
}

#view-calls .call-list-heading {
  margin: 0;
  font-size: 1.8125rem;
  font-weight: 700;
  letter-spacing: -0.032em;
  color: var(--dew-text);
}

#view-calls .call-list-metrics-host {
  margin: 0;
}

/* KPI cards */
#view-calls .act-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

#view-calls .act-kpi {
  background: var(--dew-surface);
  border: 1px solid var(--dew-border);
  border-radius: var(--dew-radius-lg);
  padding: 16px 18px;
  box-shadow: var(--dew-shadow-island);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 104px;
}

#view-calls .act-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#view-calls .act-kpi-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dew-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#view-calls .act-kpi-tile {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#view-calls .act-kpi--mocha .act-kpi-tile {
  background: var(--dew-brand-tint);
  color: var(--dew-brand);
}

#view-calls .act-kpi--espresso .act-kpi-tile {
  background: var(--dew-surface-faint);
  color: var(--dew-brand-hover);
}

#view-calls .act-kpi--sand .act-kpi-tile {
  background: var(--dew-sand-tint);
  color: var(--dew-amber);
}

#view-calls .act-kpi--taupe .act-kpi-tile {
  background: var(--dew-hairline);
  color: var(--dew-text-muted);
}

#view-calls .act-kpi-bot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

#view-calls .act-kpi-val {
  font-size: 2.125rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--dew-text);
}

#view-calls .act-kpi-val u {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dew-text-faint);
  letter-spacing: 0;
  font-style: normal;
  text-decoration: none;
  margin-left: 2px;
}

#view-calls .act-kpi-delta {
  font-size: 0.78125rem;
  font-weight: 600;
  color: var(--dew-text-secondary);
  white-space: nowrap;
  text-align: right;
}

/* Feed card + table */
#view-calls .act-feed-card {
  background: var(--dew-surface);
  border: 1px solid var(--dew-border);
  border-radius: var(--dew-radius-lg);
  box-shadow: var(--dew-shadow-island);
  overflow: hidden;
}

#view-calls .act-feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 14px;
}

#view-calls .act-feed-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dew-text);
}

#view-calls .act-feed-sub {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dew-text-muted);
}

#view-calls .act-table-wrap {
  overflow-x: auto;
}

#view-calls .act-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

#view-calls .act-table thead th {
  text-align: left;
  font-size: 0.65625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dew-text-faint);
  padding: 10px 22px;
  border-bottom: 1px solid var(--dew-border);
  white-space: nowrap;
}

#view-calls .act-table tbody td {
  padding: 13px 22px;
  border-bottom: 1px solid var(--dew-hairline);
  vertical-align: middle;
}

#view-calls .act-table tbody tr:last-child td {
  border-bottom: none;
}

#view-calls .act-feed-row {
  cursor: pointer;
  transition: background 0.12s ease;
}

#view-calls .act-feed-row:hover {
  background: var(--dew-surface-subtle);
}

#view-calls .act-feed-row:focus-visible {
  outline: 2px solid var(--dew-brand);
  outline-offset: -2px;
}

#view-calls .act-feed-empty {
  padding: 20px 22px;
  text-align: center;
}

#view-calls .act-row-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

#view-calls .act-row-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#view-calls .act-row-icon--call {
  background: var(--dew-brand-tint);
  color: var(--dew-brand);
}

#view-calls .act-row-icon--brief {
  background: var(--dew-sand-tint);
  color: var(--dew-amber);
}

#view-calls .act-row-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

#view-calls .act-row-name {
  font-size: 0.84375rem;
  font-weight: 600;
  color: var(--dew-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#view-calls .act-name-hint {
  color: var(--dew-text-faint);
  font-weight: 500;
}

#view-calls .act-badge {
  display: inline-block;
  font-size: 0.59375rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 5px;
  padding: 2px 6px;
  width: fit-content;
}

#view-calls .act-badge--call {
  background: var(--dew-brand-tint);
  color: var(--dew-brand);
}

#view-calls .act-badge--brief {
  background: var(--dew-surface-faint);
  border: 1px solid var(--dew-border);
  color: var(--dew-text-muted);
}

#view-calls .act-cell-type {
  font-size: 0.8125rem;
  color: var(--dew-text-secondary);
}

#view-calls .act-cell-strong {
  font-size: 0.84375rem;
  font-weight: 600;
  color: var(--dew-text);
}

#view-calls .act-cell-date {
  font-size: 0.8125rem;
  color: var(--dew-text-secondary);
}

#view-calls .act-cell-mono {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.78125rem;
  color: var(--dew-text);
  white-space: nowrap;
}

#view-calls .act-dash {
  color: var(--dew-text-faint);
}

#view-calls .act-quality {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 140px;
}

#view-calls .act-quality-num {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.78125rem;
  font-weight: 600;
  color: var(--dew-brand);
  white-space: nowrap;
}

#view-calls .act-quality-num s {
  color: var(--dew-text-faint);
  text-decoration: none;
}

#view-calls .act-quality-bar {
  flex: 1;
  min-width: 56px;
  height: 8px;
  border-radius: 5px;
  background: var(--dew-hairline);
  overflow: hidden;
}

#view-calls .act-quality-fill {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--dew-brand-hover), var(--dew-brand) 55%, var(--dew-primary));
}

#view-calls .act-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 240px;
}

#view-calls .act-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--dew-text-secondary);
  background: var(--dew-surface-faint);
  border: 1px solid var(--dew-border);
  border-radius: 20px;
  padding: 3px 9px;
  white-space: nowrap;
}

#view-calls .act-tag--risk {
  color: var(--dew-red);
  background: var(--dew-clay-tint);
  border-color: color-mix(in srgb, var(--dew-red) 25%, var(--dew-border));
}

@media (max-width: 1080px) {
  #view-calls .act-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  #view-calls .act-kpis {
    grid-template-columns: 1fr;
  }

  #view-calls .act-feed-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #view-calls .act-feed-row {
    transition: none;
  }
}

/* stakeholder + timeline from call record */
.call-stakeholder-list,
.call-timeline-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.call-stakeholder-item,
.call-timeline-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.call-timeline-time {
  min-width: 5.5rem;
  color: var(--dew-text-muted);
  font-variant-numeric: tabular-nums;
}

/* Markers hang off the phase they occurred in, indented under the spine row. */
.call-timeline-markers {
  list-style: none;
  margin: 6px 0 2px;
  padding: 0 0 0 5.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 2px solid var(--dew-border);
}
.call-timeline-marker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}
.call-timeline-marker-label {
  color: var(--dew-text-muted);
}
.pill--gap,
.pill--weak_cta {
  background: #fdecea;
  color: #a4262c;
}
.pill--objection {
  background: #fff4e5;
  color: #8a5300;
}
.pill--win {
  background: #e8f5e9;
  color: #1b6b30;
}
.call-timeline-note {
  margin: 12px 0 0;
  font-size: 12.5px;
}

/* Technical commit + deal health tabs */
.call-tc-head,
.call-mom-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.call-tc-head h3,
.call-health-section h3,
.call-mom-outcome h3,
.call-mom-keypoints h3,
.call-mom-actions-section h3,
.call-tc-deltas h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
}
.call-tc-justification {
  margin: 0 0 14px;
  line-height: 1.55;
  font-size: 13.5px;
}
.call-tc-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px 18px;
  margin-bottom: 16px;
}
.call-tc-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}
.call-delta-list,
.call-objection-list,
.call-traction-list,
.call-mom-action-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.call-delta-item,
.call-objection-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}
.call-delta-evidence {
  width: 100%;
  font-size: 12.5px;
}
.call-health-section,
.call-tc-deltas {
  margin-top: 18px;
}
.call-objection-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}

/* Kaia-style minutes */
.call-mom-panel--kaia .call-mom-outcome-text {
  margin: 0;
  line-height: 1.7;
  font-size: 13.5px;
  color: var(--dew-text);
}
.call-mom-keypoints,
.call-mom-actions-section,
.call-mom-outcome {
  margin-bottom: 18px;
}
.call-mom-keypoint {
  border: 1px solid var(--dew-border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--dew-surface-subtle);
}
.call-mom-keypoint summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
}
.call-mom-keypoint p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--dew-text-muted);
}
.call-mom-action-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
}
.call-mom-action-time {
  flex: 0 0 auto;
  min-width: 3.2rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--dew-surface-faint);
  color: var(--dew-text-muted);
  font-size: 12px;
  text-align: center;
}
.call-mom-action-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.call-mom-action-meta,
.call-mom-action-source {
  font-size: 12px;
}
.call-mom-edit-wrap {
  margin-top: 8px;
  border-top: 1px solid var(--dew-border);
  padding-top: 12px;
}
.call-mom-edit-wrap summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--dew-text-muted);
  margin-bottom: 8px;
}
.call-stakeholder-note {
  margin: 10px 0 0;
  font-size: 12.5px;
}

/* Visual timeline spine. wireframe #call */
.call-spine.spine {
  position: relative;
  height: 56px;
  border-radius: 10px;
  overflow: visible;
  margin-bottom: 0;
}

.call-spine-wrap {
  overflow-x: hidden;
  overflow-y: visible;
  margin-bottom: 0;
  min-height: 56px;
  padding-bottom: 2px;
  width: 100%;
  max-width: 100%;
}

.call-spine-wrap--marked {
  padding-bottom: 4px;
}

.call-spine-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--dew-text-secondary);
}

.call-spine-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.call-spine-legend-swatch {
  width: 14px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.call-spine .seg {
  position: absolute;
  top: 16px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 4px;
}

.call-spine .mk {
  position: absolute;
  top: 0;
  width: 2px;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 1px;
  background: var(--dew-text-muted);
  z-index: 2;
}

.call-spine .mk--gap {
  background: #d6455d;
}

.call-spine .mk--objection {
  background: #b7791f;
}

.call-spine .mk--win {
  background: #127a56;
}

.call-spine .mk--weak_cta {
  background: #a4262c;
}

.call-spine .mkl {
  position: absolute;
  font-size: 11px;
  font-weight: 500;
  color: var(--dew-text-muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  transform: translateX(-50%);
  white-space: nowrap;
  max-width: min(180px, 32vw);
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  pointer-events: auto;
  z-index: 1;
}

.call-spine .mkl--anchor-end {
  transform: translateX(-100%);
  text-align: right;
}

.call-spine .mkl--anchor-start {
  transform: translateX(0);
  text-align: left;
}

.call-spine .mkl--row-0 {
  top: 44px;
}

.call-spine .mkl--row-1 {
  top: 59px;
}

.call-spine .mkl--row-2 {
  top: 74px;
}

.call-spine .mkl-more {
  margin-left: 4px;
  font-size: 10.5px;
  font-weight: 600;
  opacity: 0.88;
}

.call-spine .mkl--gap {
  color: #c42d44;
}

.call-spine .mkl--objection {
  color: #9a6410;
}

.call-spine .mkl--win {
  color: #0f6b4a;
}

.call-spine .mkl--weak_cta {
  color: #922028;
}

.call-spine-marker-overflow {
  list-style: none;
  margin: 10px 0 0;
  padding: 8px 0 0;
  border-top: 1px dashed var(--dew-border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.call-spine-marker-overflow-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.3;
  max-width: 100%;
  min-width: 0;
}

.call-spine-marker-overflow-time {
  flex-shrink: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--dew-text-muted);
}

.call-spine-marker-overflow-label {
  color: var(--dew-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.call-spine-marker-legend {
  margin-top: 6px;
}

.call-spine-marker-swatch {
  width: 2px;
  height: 12px;
  border-radius: 1px;
  flex-shrink: 0;
}

.call-spine-axis {
  display: flex;
  justify-content: space-between;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--dew-text-muted);
  margin-top: 8px;
  border-top: 1px solid var(--dew-border);
  padding-top: 6px;
}

.call-spine-wrap--marked + .call-spine-axis {
  margin-top: 4px;
}
.call-stakeholder-cards {
  display: flex;
  flex-direction: column;
}

.call-stakeholder-card {
  display: flex;
  gap: 10px;
  padding: 9px 0;
}

.call-stakeholder-card--border {
  border-bottom: 1px solid var(--dew-border);
}

.call-stakeholder-avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 11px;
  background: var(--dew-hairline);
  color: var(--dew-text-secondary);
}

.call-stakeholder-avatar--brand {
  background: var(--dew-purple-tint);
  color: var(--dew-brand);
}

.call-stakeholder-avatar--blue {
  background: var(--dew-primary-tint);
  color: var(--dew-primary);
}

.call-stakeholder-name,
.call-stakeholder-link {
  font-weight: 700;
  font-size: 13px;
  color: var(--dew-text);
}

.call-stakeholder-link {
  text-decoration: none;
}

.call-stakeholder-link:hover {
  color: var(--dew-primary);
  text-decoration: underline;
}

.call-stakeholder-role,
.call-stakeholder-meta {
  font-size: 12px;
}

.call-stakeholder-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.call-stakeholder-pill {
  font-size: 10.5px;
}

/* Call record data animations — subtle count-up / reveal */
.call-record .call-count-up {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.call-record .call-count-up--active {
  opacity: 0.92;
}

.call-record .call-meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: none;
}

.call-record:not(.call-record-anim-ready) .qip-category-pentagon,
.call-record:not(.call-record-anim-ready) .cat-pentagon {
  opacity: 0;
  transform: scale(0.82);
  transform-origin: center;
}

.call-record.call-record-anim-ready .qip-category-pentagon,
.call-record.call-record-anim-ready .cat-pentagon {
  animation: call-pentagon-reveal 0.55s cubic-bezier(0.2, 0.85, 0.25, 1.08) forwards;
}

.call-record.call-record-anim-ready .qip-category-row:nth-child(1) .qip-category-pentagon,
.call-record.call-record-anim-ready details.cat:nth-child(1) .cat-pentagon { animation-delay: 0.04s; }
.call-record.call-record-anim-ready .qip-category-row:nth-child(2) .qip-category-pentagon,
.call-record.call-record-anim-ready details.cat:nth-child(2) .cat-pentagon { animation-delay: 0.1s; }
.call-record.call-record-anim-ready .qip-category-row:nth-child(3) .qip-category-pentagon,
.call-record.call-record-anim-ready details.cat:nth-child(3) .cat-pentagon { animation-delay: 0.16s; }
.call-record.call-record-anim-ready .qip-category-row:nth-child(4) .qip-category-pentagon,
.call-record.call-record-anim-ready details.cat:nth-child(4) .cat-pentagon { animation-delay: 0.22s; }
.call-record.call-record-anim-ready .qip-category-row:nth-child(5) .qip-category-pentagon,
.call-record.call-record-anim-ready details.cat:nth-child(5) .cat-pentagon { animation-delay: 0.28s; }

.call-stakeholder-pill--cam {
  animation: call-cam-soft 3.2s ease-in-out infinite;
}

@keyframes call-pentagon-reveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes call-cam-soft {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.88; transform: translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
  .call-record .call-count-up--active,
  .call-record .call-meter-fill {
    transition: none !important;
  }

  .call-record .qip-category-pentagon,
  .call-record .cat-pentagon,
  .call-stakeholder-pill--cam {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.call-health-tab,
.call-health-tab .ev,
.call-health-side-card {
  font-family: inherit;
}

.call-health-side-card .ev:first-child {
  margin-top: 0;
}

.call-tc-tab-grid,
.call-health-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 14px;
  align-items: start;
}

.call-tc-aside,
.call-health-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.call-tc-slots {
  display: grid;
  gap: 0;
  font-size: 13px;
}

.call-tc-slot {
  padding: 10px 0;
  border-bottom: 1px solid var(--dew-border);
}

.call-tc-slot:last-child {
  border-bottom: none;
}

.call-tc-intro {
  margin-bottom: 14px;
}

.call-tc-pending-row {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  font-size: 13px;
  padding: 4px 0;
}

.call-medp-row {
  display: flex;
  gap: 9px;
  padding: 7px 0;
}

.call-medp-row--border {
  border-bottom: 1px solid var(--dew-border);
}

.call-medp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
  background: var(--dew-border);
}

.call-medp-dot--on {
  background: var(--green);
}

.call-medp-label {
  font-weight: 600;
  font-size: 12.5px;
}

.call-medp-value {
  font-size: 12px;
}

.call-objection-wire-row {
  padding: 9px 0;
  border-bottom: 1px solid var(--dew-border);
}

.call-objection-wire-row:last-child {
  border-bottom: none;
}

.call-objection-wire-text {
  font-weight: 600;
  font-size: 13px;
}

.call-objection-qa .call-qa-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 6px;
}

.call-objection-qa .call-qa-row:first-of-type {
  margin-top: 0;
}

.call-qa-label {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dew-text-muted);
  margin-top: 2px;
  width: 14px;
}

.call-qa-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.call-qa-row--answer .call-qa-text {
  font-size: 12.5px;
  color: var(--dew-text-secondary);
}

.call-qa-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.call-health-tab .sub {
  font-size: 12.5px;
  color: var(--dew-text-secondary);
}

.call-landed {
  color: var(--green);
}

.call-open {
  color: var(--danger);
}

.call-traction-bullets {
  font-size: 13px;
  line-height: 1.75;
}

.call-health-traction-card {
  border-color: var(--danger-bg);
}

@media (max-width: 960px) {
  .call-tc-tab-grid,
  .call-health-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .call-spine-legend {
    gap: 8px 12px;
  }
}
