/* ============================================================
   MEETINGS V3 — Liquid Glass + 4 view + Inspector v3
   ============================================================ */

/* ===== Screen header ===== */
.mv3-screen { padding-top: 4px; }
.mv3-header { margin-bottom: 22px; }
.mv3-h1 {
  font-size: 36px; font-weight: 600; letter-spacing: -0.022em;
  color: var(--text-primary); margin: 0;
}
.mv3-meta {
  margin-top: 8px;
  font-size: 13px; color: var(--text-secondary);
  display: flex; flex-wrap: wrap; gap: 6px 14px;
}
.mv3-meta b { color: var(--text-primary); font-weight: 600; }

/* ===== Topic insight bar ===== */
.mv3-insight {
  position: relative;
  margin: 14px 0 22px;
  padding: 16px 20px 16px 26px;
  background: var(--bg-glass);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--separator);
  border-radius: 14px;
  display: flex; align-items: center; gap: 16px;
}
.mv3-insight::before {
  content: ''; position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 3px; border-radius: 0 2px 2px 0;
  background: var(--kw-red);
}
.mv3-insight-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 10px;
  background: rgba(200,16,46,0.08); color: var(--kw-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.mv3-insight-text { flex: 1; font-size: 13.5px; line-height: 1.55; color: var(--text-primary); }
.mv3-insight-text b { font-weight: 600; }
.mv3-insight-actions { display: flex; gap: 8px; flex-shrink: 0; }
.mv3-insight-btn {
  padding: 7px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  background: var(--bg-tinted); color: var(--text-primary);
  border: 1px solid transparent;
  cursor: pointer; transition: all 180ms cubic-bezier(0.32, 0.72, 0, 1);
}
.mv3-insight-btn:hover { transform: translateY(-1px); border-color: var(--kw-red); color: var(--kw-red); }
.mv3-insight-btn.primary { background: var(--kw-red); color: white; border-color: var(--kw-red); }
.mv3-insight-btn.primary:hover { box-shadow: 0 4px 14px -4px rgba(200,16,46,0.45); color: white; }

/* ===== Controls bar ===== */
.mv3-controls {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  flex-wrap: wrap;
}
.mv3-switch {
  display: inline-flex;
  background: var(--bg-tinted);
  border-radius: 10px; padding: 3px;
  border: 1px solid var(--separator);
}
.mv3-switch-btn {
  padding: 7px 14px; border-radius: 8px;
  font-size: 12.5px; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: all 200ms cubic-bezier(0.32, 0.72, 0, 1);
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: none;
}
.mv3-switch-btn:hover { color: var(--text-primary); }
.mv3-switch-btn.active {
  background: var(--bg-elevated); color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 0 0 0.5px var(--separator-hi);
}
.mv3-spacer { flex: 1; }
.mv3-ctrl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 10px;
  background: var(--bg-tinted); border: 1px solid var(--separator);
  font-size: 12.5px; font-weight: 500; color: var(--text-primary);
  cursor: pointer; transition: all 180ms;
}
.mv3-ctrl-btn:hover { border-color: var(--separator-hi); transform: translateY(-1px); }
.mv3-ctrl-btn.primary {
  background: var(--kw-red); color: white; border-color: var(--kw-red);
  box-shadow: 0 0 12px -2px rgba(200,16,46,0.35);
}
.mv3-ctrl-btn.primary:hover { box-shadow: 0 4px 16px -4px rgba(200,16,46,0.5); }
.mv3-search {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 10px;
  background: var(--bg-tinted); border: 1px solid var(--separator);
  width: 220px;
}
.mv3-search input {
  background: transparent; border: none; outline: none;
  font-size: 12.5px; color: var(--text-primary);
  flex: 1; font-family: inherit;
}

/* ===== Sub-filter chips ===== */
.mv3-subfilter {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 0 16px; padding: 12px 14px;
  background: var(--bg-tinted);
  border-radius: 12px; border: 1px solid var(--separator);
}
.mv3-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500;
  background: var(--bg-elevated); color: var(--text-secondary);
  border: 1px solid var(--separator);
  cursor: pointer; transition: all 180ms;
}
.mv3-chip:hover { color: var(--text-primary); border-color: var(--separator-hi); }
.mv3-chip.active {
  background: rgba(200,16,46,0.10); color: var(--kw-red);
  border-color: rgba(200,16,46,0.4);
}

/* ===== Meeting card (List view) ===== */
.mv3-card {
  position: relative;
  background: var(--bg-glass);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--separator);
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 240ms cubic-bezier(0.32, 0.72, 0, 1);
}
.mv3-card:hover {
  transform: translateY(-2px);
  border-color: var(--separator-hi);
  box-shadow: 0 12px 32px -12px rgba(0,0,0,0.10),
              inset 0 1px 0 rgba(255,255,255,0.6);
}
.mv3-card.pinned::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 3px; height: 60%;
  background: var(--kw-red); border-radius: 0 2px 2px 0;
}

.mv3-card-h {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px;
}
.mv3-card-title {
  flex: 1;
  font-size: 17px; font-weight: 600;
  letter-spacing: -0.018em; line-height: 1.35;
  color: var(--text-primary);
}
.mv3-iconbtn {
  width: 28px; height: 28px; border-radius: 8px;
  background: transparent; border: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-tertiary); cursor: pointer;
  transition: all 180ms;
}
.mv3-iconbtn:hover { background: var(--bg-tinted); color: var(--text-primary); }
.mv3-iconbtn.pin-active { background: rgba(200,16,46,0.10); color: var(--kw-red); }

.mv3-card-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-secondary);
  margin-bottom: 14px;
}
.mv3-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  background: var(--bg-tinted); font-weight: 500;
  font-size: 11.5px;
}
.mv3-pill.cluster { background: rgba(200,16,46,0.06); color: var(--kw-red); }
.mv3-pill.dot::before { content: '•'; margin-right: 4px; opacity: 0.4; }

.mv3-stack { display: flex; align-items: center; margin-bottom: 12px; }
.mv3-stack > .agent-bubble { margin-left: -8px; border: 2px solid var(--bg-elevated); width: 30px; height: 30px; border-radius: 9px; font-size: 10.5px; }
.mv3-stack > .agent-bubble:first-child { margin-left: 0; }
.mv3-stack-count {
  margin-left: 10px; font-size: 11.5px; color: var(--text-tertiary); font-weight: 500;
}

.mv3-tldr {
  font-size: 13.5px; line-height: 1.55;
  color: var(--text-secondary);
  background: rgba(200,16,46,0.04);
  border-left: 2px solid var(--kw-red);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 12px;
}
.mv3-tldr-icon { color: var(--kw-red); margin-right: 6px; font-weight: 600; }
.mv3-tldr-more {
  display: inline-block; margin-left: 6px;
  color: var(--kw-red); font-weight: 500; cursor: pointer;
}

.mv3-artifacts {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--text-tertiary);
  margin-bottom: 14px;
}
.mv3-artifacts span { display: inline-flex; align-items: center; gap: 4px; }

.mv3-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mv3-action {
  padding: 6px 12px; border-radius: 8px;
  font-size: 12px; font-weight: 500;
  background: var(--bg-tinted); color: var(--text-primary);
  border: 1px solid transparent;
  cursor: pointer; transition: all 180ms cubic-bezier(0.32, 0.72, 0, 1);
}
.mv3-action:hover { transform: translateY(-1px); border-color: var(--separator-hi); }
.mv3-action.primary {
  background: linear-gradient(135deg, var(--kw-red) 0%, #FF4D6D 100%);
  color: white;
  box-shadow: 0 0 12px -2px rgba(200,16,46,0.25);
}
.mv3-action.primary:hover { box-shadow: 0 4px 18px -2px rgba(200,16,46,0.45); }

/* ===== Date jump ===== */
.mv3-datejump {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg-glass);
  backdrop-filter: blur(60px) saturate(200%);
  -webkit-backdrop-filter: blur(60px) saturate(200%);
  border-bottom: 1px solid var(--separator);
  padding: 10px 0; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* ===== Timeline view ===== */
.mv3-day-h {
  position: sticky; top: 0; z-index: 4;
  background: var(--bg-glass);
  backdrop-filter: blur(60px) saturate(200%);
  -webkit-backdrop-filter: blur(60px) saturate(200%);
  border-bottom: 1px solid var(--separator);
  padding: 14px 0 10px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 600;
  color: var(--text-primary); letter-spacing: -0.012em;
}
.mv3-day-h .mv3-day-count {
  font-size: 11.5px; color: var(--text-tertiary); font-weight: 500;
}
.mv3-track { position: relative; padding-left: 96px; }
.mv3-track::before {
  content: ''; position: absolute; left: 90px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--separator), transparent);
}
.mv3-node {
  position: relative;
  padding: 14px 18px;
  margin-bottom: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--separator);
  border-radius: 14px;
  cursor: pointer;
  transition: all 220ms cubic-bezier(0.32, 0.72, 0, 1);
}
.mv3-node:hover {
  transform: translateX(4px);
  border-color: rgba(200,16,46,0.4);
  box-shadow: 0 8px 24px -8px rgba(200,16,46,0.12);
}
.mv3-time {
  position: absolute;
  left: -90px; top: 16px;
  width: 64px; text-align: right;
  font-size: 11.5px; font-weight: 600;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.mv3-dot {
  position: absolute;
  left: -20px; top: 22px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--kw-red) 0%, #FF4D6D 100%);
  box-shadow: 0 0 0 3px var(--bg-elevated), 0 0 12px rgba(200,16,46,0.4);
  transition: all 220ms cubic-bezier(0.32, 0.72, 0, 1);
}
.mv3-node:hover .mv3-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 3px var(--bg-elevated), 0 0 20px rgba(200,16,46,0.6);
}
.mv3-node-title {
  font-size: 15px; font-weight: 600;
  letter-spacing: -0.014em;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.mv3-node-meta {
  font-size: 11.5px; color: var(--text-tertiary);
  margin-bottom: 8px;
  display: flex; gap: 10px; align-items: center;
}
.mv3-node-tldr {
  font-size: 12.5px; line-height: 1.5;
  color: var(--text-secondary);
}
.mv3-node-tldr::before { content: '✦  '; color: var(--kw-red); }

/* ===== Topics / Cluster cards ===== */
.mv3-section-h {
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin: 6px 0 14px;
}
.mv3-cluster {
  position: relative;
  background: var(--bg-glass);
  backdrop-filter: blur(60px) saturate(200%);
  -webkit-backdrop-filter: blur(60px) saturate(200%);
  border: 1px solid var(--separator);
  border-radius: 20px;
  padding: 22px 26px;
  margin-bottom: 14px;
  cursor: pointer;
  overflow: hidden;
  transition: all 240ms cubic-bezier(0.32, 0.72, 0, 1);
}
.mv3-cluster::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(200,16,46,0.06), transparent 40%);
  pointer-events: none; opacity: 0.6;
  transition: opacity 280ms;
}
.mv3-cluster:hover {
  transform: translateY(-3px);
  border-color: rgba(200,16,46,0.4);
  box-shadow: 0 16px 40px -16px rgba(200,16,46,0.18);
}
.mv3-cluster:hover::before { opacity: 1; }

.mv3-cluster-h {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 8px; position: relative;
}
.mv3-cluster-emoji { font-size: 28px; }
.mv3-cluster-title {
  flex: 1;
  font-size: 21px; font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--text-primary);
}
.mv3-cluster-count {
  background: var(--bg-tinted);
  padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}
.mv3-cluster-desc {
  font-size: 13.5px; line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 12px;
  position: relative;
}
.mv3-cluster-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--text-tertiary);
  margin-bottom: 12px;
  position: relative;
}
.mv3-cluster-stats {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px;
  margin-bottom: 14px;
  position: relative;
  color: var(--text-secondary);
}
.mv3-cluster-stats b { color: var(--text-primary); font-weight: 600; }
.mv3-cluster-actions { display: flex; gap: 8px; position: relative; }

/* ===== Cluster detail ===== */
.mv3-breadcrumb {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text-secondary);
  margin-bottom: 14px;
  cursor: pointer;
}
.mv3-breadcrumb:hover { color: var(--kw-red); }
.mv3-cluster-summary {
  position: relative;
  background: var(--bg-glass);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--separator);
  border-radius: 16px;
  padding: 18px 22px 18px 26px;
  margin: 14px 0 22px;
  font-size: 14px; line-height: 1.6;
  color: var(--text-primary);
}
.mv3-cluster-summary::before {
  content: ''; position: absolute; left: 0; top: 16px; bottom: 16px;
  width: 3px; border-radius: 0 2px 2px 0;
  background: var(--kw-red);
}
.mv3-cluster-summary b { font-weight: 600; }
.mv3-cluster-summary-actions { margin-top: 14px; display: flex; gap: 8px; }

.mv3-cluster-section { margin-top: 24px; }
.mv3-cluster-section h3 {
  font-size: 14px; font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--text-primary);
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.mv3-cluster-task, .mv3-cluster-decision, .mv3-cluster-question {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-tinted);
  border: 1px solid var(--separator);
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 13px; color: var(--text-primary);
}
.mv3-cluster-task .meta, .mv3-cluster-decision .meta {
  margin-left: auto;
  font-size: 11.5px; color: var(--text-tertiary);
}
.mv3-cluster-decision .check {
  color: #34C759; font-weight: 700;
}

/* ===== Decisions view ===== */
.mv3-dec-card {
  background: var(--bg-glass);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--separator);
  border-left: 4px solid #34C759;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 10px;
  transition: all 220ms cubic-bezier(0.32, 0.72, 0, 1);
}
.mv3-dec-card.in-progress { border-left-color: #007AFF; }
.mv3-dec-card.pending     { border-left-color: var(--text-tertiary); }
.mv3-dec-card.reversed    { border-left-color: var(--kw-red); opacity: 0.78; }
.mv3-dec-card.reversed .mv3-dec-statement { text-decoration: line-through; }
.mv3-dec-card:hover { transform: translateY(-1px); border-color: var(--separator-hi); border-left-color: inherit; }

.mv3-dec-statement {
  font-size: 15px; font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.mv3-dec-rationale {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.55;
  font-style: italic;
  margin-bottom: 12px;
}
.mv3-dec-meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  font-size: 12px; color: var(--text-secondary);
  margin-bottom: 14px;
}
.mv3-dec-meta b { color: var(--text-primary); font-weight: 600; }
.mv3-dec-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500;
  margin-bottom: 12px;
}
.mv3-dec-status.done { background: rgba(52,199,89,0.10); color: #34C759; }
.mv3-dec-status.in-progress { background: rgba(0,122,255,0.10); color: #007AFF; }
.mv3-dec-status.pending { background: var(--bg-tinted); color: var(--text-secondary); }
.mv3-dec-status.reversed { background: rgba(200,16,46,0.10); color: var(--kw-red); }
.mv3-dec-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ===== Inspector v3 ===== */
.mv3-insp-overlay {
  position: fixed; inset: 0;
  background: rgba(28,28,30,0.32);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  opacity: 0; pointer-events: none;
  transition: opacity 280ms;
  z-index: 80;
}
.mv3-insp-overlay.open { opacity: 1; pointer-events: auto; }
.mv3-insp {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: 520px; max-width: 96vw;
  background: var(--bg-elevated);
  border-left: 1px solid var(--separator);
  box-shadow: -16px 0 48px -16px rgba(0,0,0,0.18);
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 81;
  display: flex; flex-direction: column;
}
.mv3-insp.open { transform: translateX(0); }

.mv3-insp-head {
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--separator);
}
.mv3-insp-head-row {
  display: flex; align-items: flex-start; gap: 8px;
  margin-bottom: 12px;
}
.mv3-insp-title {
  flex: 1;
  font-size: 19px; font-weight: 600;
  letter-spacing: -0.020em; line-height: 1.3;
  color: var(--text-primary);
}
.mv3-insp-meta {
  font-size: 12px; color: var(--text-tertiary);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.mv3-insp-stack { display: flex; align-items: center; }
.mv3-insp-stack .agent-bubble { width: 28px; height: 28px; border-radius: 8px; font-size: 10px; margin-left: -6px; border: 2px solid var(--bg-elevated); }
.mv3-insp-stack .agent-bubble:first-child { margin-left: 0; }

.mv3-insp-tabs {
  display: flex; gap: 2px;
  padding: 0 22px;
  border-bottom: 1px solid var(--separator);
  background: var(--bg-elevated);
}
.mv3-insp-tab {
  padding: 12px 14px;
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  background: transparent; border: none;
  cursor: pointer;
  position: relative;
  transition: color 180ms;
}
.mv3-insp-tab:hover { color: var(--text-primary); }
.mv3-insp-tab.active { color: var(--kw-red); }
.mv3-insp-tab.active::after {
  content: ''; position: absolute;
  left: 12px; right: 12px; bottom: -1px; height: 2px;
  background: var(--kw-red); border-radius: 2px 2px 0 0;
}

.mv3-insp-body {
  flex: 1; overflow-y: auto;
  padding: 18px 22px 24px;
}
.mv3-insp-section + .mv3-insp-section { margin-top: 22px; }
.mv3-insp-section-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.mv3-insp-synth {
  font-size: 14px; line-height: 1.62;
  color: var(--text-primary);
}
.mv3-insp-synth p { margin: 0 0 10px; }
.mv3-insp-synth strong { font-weight: 600; }
.mv3-insp-synth ol, .mv3-insp-synth ul { margin: 0 0 10px; padding-left: 22px; }
.mv3-insp-synth li { margin-bottom: 4px; }
.mv3-insp-cosnote {
  background: rgba(200,16,46,0.04);
  border-left: 2px solid var(--kw-red);
  padding: 12px 14px;
  border-radius: 0 10px 10px 0;
  font-size: 13px; line-height: 1.55;
  color: var(--text-secondary);
  font-style: italic;
}
.mv3-insp-decision {
  background: var(--bg-tinted);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 6px;
  font-size: 13px;
  display: flex; gap: 10px; align-items: flex-start;
}
.mv3-insp-decision .check {
  color: #34C759; font-weight: 700; font-size: 14px;
}
.mv3-insp-decision .text { flex: 1; }
.mv3-insp-decision .text b { display: block; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.mv3-insp-decision .text small { font-size: 12px; color: var(--text-secondary); font-style: italic; }
.mv3-insp-decision .open-link { font-size: 11.5px; color: var(--kw-red); cursor: pointer; }

.mv3-insp-cta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 22px;
}
.mv3-insp-cta-row .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mv3-insp-cta-primary {
  width: 100%;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--kw-red) 0%, #FF4D6D 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 14px -4px rgba(200,16,46,0.4);
  transition: all 220ms cubic-bezier(0.32, 0.72, 0, 1);
}
.mv3-insp-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -4px rgba(200,16,46,0.55); }
.mv3-insp-cta-secondary {
  padding: 12px 14px;
  background: var(--bg-tinted);
  color: var(--text-primary);
  border: 1px solid var(--separator);
  border-radius: 10px;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: all 180ms;
}
.mv3-insp-cta-secondary:hover { border-color: var(--separator-hi); transform: translateY(-1px); }

/* Brief accordion */
.mv3-brief-row {
  background: var(--bg-tinted);
  border: 1px solid var(--separator);
  border-radius: 10px;
  margin-bottom: 6px;
  overflow: hidden;
  transition: border-color 180ms;
}
.mv3-brief-row:hover { border-color: var(--separator-hi); }
.mv3-brief-h {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
}
.mv3-brief-h .agent-bubble { width: 24px; height: 24px; border-radius: 7px; font-size: 9.5px; }
.mv3-brief-name { flex: 1; font-weight: 500; color: var(--text-primary); }
.mv3-brief-time { font-size: 11.5px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.mv3-brief-chev { color: var(--text-tertiary); transition: transform 200ms; }
.mv3-brief-row.open .mv3-brief-chev { transform: rotate(90deg); }
.mv3-brief-body {
  padding: 0 14px 14px 50px;
  font-size: 13px; line-height: 1.6;
  color: var(--text-secondary);
}
.mv3-brief-body strong { color: var(--text-primary); font-weight: 600; }

/* Tasks tab */
.mv3-insp-task {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-tinted);
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 13px;
}
.mv3-insp-task.done { opacity: 0.6; }
.mv3-insp-task.done .title { text-decoration: line-through; }
.mv3-insp-task .title { flex: 1; color: var(--text-primary); }
.mv3-insp-task .owner { font-size: 11.5px; color: var(--text-tertiary); }
.mv3-insp-task .due { font-size: 11.5px; color: var(--text-secondary); padding: 2px 8px; background: var(--bg-elevated); border-radius: 999px; }

/* Related tab */
.mv3-related-group { margin-bottom: 18px; }
.mv3-related-group h4 {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin: 0 0 8px;
}
.mv3-related-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-tinted);
  border: 1px solid var(--separator);
  border-radius: 10px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 180ms;
  font-size: 13px;
}
.mv3-related-card:hover { transform: translateX(4px); border-color: var(--kw-red); }
.mv3-related-card .when { font-size: 11px; color: var(--text-tertiary); margin-left: auto; white-space: nowrap; }
.mv3-related-compare {
  font-size: 11px; padding: 3px 9px;
  background: var(--kw-red); color: white;
  border-radius: 999px; cursor: pointer;
}

/* ===== Compare modal ===== */
.mv3-compare-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(28,28,30,0.55);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  opacity: 0; pointer-events: none;
  transition: opacity 220ms;
}
.mv3-compare-overlay.open { opacity: 1; pointer-events: auto; }
.mv3-compare-modal {
  width: min(1200px, 96vw);
  max-height: 90vh; overflow-y: auto;
  background: var(--bg-elevated);
  border-radius: 20px;
  border: 1px solid var(--separator);
  box-shadow: 0 32px 80px -32px rgba(0,0,0,0.4);
  transform: scale(0.96);
  transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1);
}
.mv3-compare-overlay.open .mv3-compare-modal { transform: scale(1); }
.mv3-compare-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--separator);
}
.mv3-compare-head h3 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: -0.014em; }
.mv3-compare-pane {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--separator);
}
.mv3-compare-side {
  padding: 22px;
}
.mv3-compare-side + .mv3-compare-side {
  border-left: 1px solid var(--separator);
  background: rgba(0,0,0,0.015);
}
.mv3-compare-side .when { font-size: 11.5px; color: var(--text-tertiary); margin-bottom: 4px; }
.mv3-compare-side h4 { font-size: 16px; font-weight: 600; letter-spacing: -0.018em; margin: 0 0 8px; line-height: 1.3; }
.mv3-compare-side .agents-line { font-size: 11.5px; color: var(--text-secondary); margin-bottom: 14px; }
.mv3-compare-section-h {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin: 14px 0 8px;
}
.mv3-compare-section-h:first-child { margin-top: 0; }
.mv3-compare-side p { font-size: 13px; line-height: 1.55; color: var(--text-secondary); margin: 0 0 8px; }
.mv3-compare-side ul { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--text-secondary); }
.mv3-compare-cos {
  margin: 0; padding: 18px 24px;
  background: rgba(200,16,46,0.04);
  border-left: 3px solid var(--kw-red);
  font-size: 13.5px; line-height: 1.6;
  color: var(--text-primary);
}
.mv3-compare-cos b { color: var(--kw-red); font-weight: 600; }

/* ===== Re-run modal ===== */
.mv3-rerun-modal {
  width: min(540px, 92vw);
  background: var(--bg-elevated);
  border-radius: 20px;
  border: 1px solid var(--separator);
  box-shadow: 0 32px 80px -32px rgba(0,0,0,0.4);
  padding: 24px 26px 22px;
  transform: scale(0.96);
  transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1);
}
.mv3-compare-overlay.open .mv3-rerun-modal { transform: scale(1); }
.mv3-rerun-modal h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.mv3-rerun-modal .sub { font-size: 13px; color: var(--text-secondary); line-height: 1.55; margin-bottom: 16px; }
.mv3-rerun-modal textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  background: var(--bg-tinted);
  border: 1px solid var(--separator);
  border-radius: 12px;
  font-size: 13.5px; color: var(--text-primary);
  font-family: inherit; resize: vertical;
  outline: none;
  transition: border-color 180ms, box-shadow 180ms;
}
.mv3-rerun-modal textarea:focus {
  border-color: var(--kw-red);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.12);
}
.mv3-rerun-modal .actions {
  display: flex; gap: 8px; justify-content: flex-end;
  margin-top: 16px;
}

/* ===== Agent stats panel ===== */
.mv3-stats-panel {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: 380px; max-width: 96vw;
  background: var(--bg-elevated);
  border-left: 1px solid var(--separator);
  box-shadow: -16px 0 48px -16px rgba(0,0,0,0.18);
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 81;
  display: flex; flex-direction: column;
}
.mv3-stats-panel.open { transform: translateX(0); }
.mv3-stats-head {
  padding: 18px 22px 12px;
  border-bottom: 1px solid var(--separator);
}
.mv3-stats-head h3 { font-size: 17px; font-weight: 600; margin: 0 0 4px; letter-spacing: -0.018em; }
.mv3-stats-head .sub { font-size: 12px; color: var(--text-tertiary); }
.mv3-stats-body { flex: 1; overflow-y: auto; padding: 16px 22px 22px; }
.mv3-stats-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--separator);
}
.mv3-stats-row:last-child { border-bottom: none; }
.mv3-stats-row-h {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px;
}
.mv3-stats-row-h .agent-bubble { width: 28px; height: 28px; border-radius: 8px; font-size: 10px; }
.mv3-stats-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--text-primary); }
.mv3-stats-pct { font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; font-weight: 500; }
.mv3-stats-sub { font-size: 11.5px; color: var(--text-tertiary); margin-bottom: 8px; }
.mv3-stats-bar {
  height: 6px; border-radius: 3px;
  background: var(--bg-tinted);
  overflow: hidden;
  position: relative;
}
.mv3-stats-bar-fill {
  position: absolute; inset: 0;
  width: var(--pct, 0%);
  background: linear-gradient(90deg, var(--kw-red) 0%, #FF4D6D 100%);
  border-radius: 3px;
  transition: width 600ms cubic-bezier(0.32, 0.72, 0, 1);
}

/* ===== Empty / Loading ===== */
.mv3-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-secondary);
}
.mv3-empty .icon { font-size: 48px; margin-bottom: 12px; opacity: 0.6; }
.mv3-empty .title { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.mv3-empty .sub { font-size: 13px; line-height: 1.5; }

/* fade-in */
.mv3-fade { animation: mv3FadeIn 280ms cubic-bezier(0.32, 0.72, 0, 1); }
@keyframes mv3FadeIn {
  from { opacity: 0; transform: scale(0.99); }
  to   { opacity: 1; transform: scale(1); }
}
