
/* ============ TEAM v3 ============ */

.team-v3 { padding-top: 8px; }

.team-v3-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.team-v3-title {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  line-height: 1.05;
}
.team-v3-meta {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.team-v3-meta .green-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34C759;
  margin-right: 5px;
  vertical-align: 1px;
  box-shadow: 0 0 0 3px rgba(52,199,89,0.18);
  animation: tv3-breathe 3s ease-in-out infinite;
}
.dot-sep { color: var(--text-tertiary); }

.team-v3-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--kw-red) 0%, var(--kw-red-glow, #FF4D6D) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow:
    0 6px 18px -4px rgba(200,16,46,0.4),
    inset 0 1px 0 rgba(255,255,255,0.25);
  transition: all 220ms cubic-bezier(0.32, 0.72, 0, 1);
  flex-shrink: 0;
}
.team-v3-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 28px -6px rgba(200,16,46,0.55),
    inset 0 1px 0 rgba(255,255,255,0.3);
  filter: brightness(1.04);
}
.team-v3-cta:active { transform: scale(0.97); }
.team-v3-cta-icon { font-size: 16px; line-height: 1; }

.team-v3-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.team-v3-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border: 1px solid var(--separator);
  color: var(--text-secondary);
  letter-spacing: -0.005em;
  transition: all 180ms cubic-bezier(0.32, 0.72, 0, 1);
}
.team-v3-pill:hover {
  color: var(--text-primary);
  transform: translateY(-1px);
  border-color: var(--separator-strong);
}
.team-v3-pill.active {
  background: linear-gradient(135deg, var(--kw-red) 0%, var(--kw-red-soft) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px -2px rgba(200,16,46,0.35);
}
.team-v3-pill-count {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  color: inherit;
  min-width: 18px;
  text-align: center;
}
.team-v3-pill.active .team-v3-pill-count {
  background: rgba(255,255,255,0.22);
  color: #fff;
}
[data-theme="dark"] .team-v3-pill-count { background: rgba(255,255,255,0.06); }

/* Cards grid */
.team-v3-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
@media (max-width: 980px) { .team-v3-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .team-v3-grid { grid-template-columns: 1fr; } .team-v3-head { flex-direction: column; align-items: flex-start; } }

.team-v3-card {
  position: relative;
  display: flex; flex-direction: column;
  text-align: left;
  background: var(--bg-glass);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  padding: 22px 22px 18px;
  cursor: pointer;
  transition: all 280ms cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow:
    0 8px 24px -10px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.6);
  opacity: 0;
  animation: tv3-cardIn 420ms cubic-bezier(0.32, 0.72, 0, 1) forwards;
  overflow: hidden;
}
[data-theme="dark"] .team-v3-card {
  border-color: rgba(255,255,255,0.06);
  box-shadow:
    0 8px 24px -10px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.team-v3-card:hover {
  transform: translateY(-4px);
  border-color: var(--kw-red);
  box-shadow:
    0 24px 48px -14px rgba(0,0,0,0.14),
    0 0 0 1px var(--kw-red),
    inset 0 1px 0 rgba(255,255,255,0.7);
}
.team-v3-card:active { transform: translateY(-2px) scale(0.99); }

.team-v3-active {
  position: absolute;
  top: 16px; right: 16px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.team-v3-active .green-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34C759;
  box-shadow: 0 0 0 3px rgba(52,199,89,0.18);
  animation: tv3-breathe 3s ease-in-out infinite;
}

.team-v3-avatar {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  box-shadow:
    0 6px 16px -4px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.08);
}
.team-v3-avatar-spec {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(circle at 22% 18%, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 55%);
  pointer-events: none;
}

.team-v3-card-body { flex: 1; min-height: 0; }
.team-v3-role {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}
.team-v3-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 10px;
}
.team-v3-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.team-v3-card-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--separator);
  display: flex; align-items: center; justify-content: space-between;
}
.team-v3-foot-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.005em;
  transition: color 180ms;
}
.team-v3-foot-chev { color: var(--text-tertiary); transition: transform 220ms cubic-bezier(0.32, 0.72, 0, 1), color 180ms; }
.team-v3-card:hover .team-v3-foot-cta { color: var(--kw-red); }
.team-v3-card:hover .team-v3-foot-chev { color: var(--kw-red); transform: translateX(3px); }

@keyframes tv3-cardIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes tv3-breathe {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52,199,89,0.18); }
  50%      { box-shadow: 0 0 0 5px rgba(52,199,89,0.10); }
}

/* ============ AGENT INSPECTOR ============ */

.agent-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 90;
}
.agent-overlay.open { opacity: 1; pointer-events: auto; }

.agent-inspector {
  position: fixed;
  top: 16px; right: 16px; bottom: 16px;
  width: 420px; max-width: calc(100vw - 32px);
  background: var(--bg-glass-strong, var(--bg-glass));
  backdrop-filter: blur(60px) saturate(200%);
  -webkit-backdrop-filter: blur(60px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 24px;
  box-shadow:
    0 32px 80px -20px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.6);
  transform: translateX(calc(100% + 32px));
  transition: transform 360ms cubic-bezier(0.32, 0.72, 0, 1);
  display: flex; flex-direction: column;
  z-index: 100;
  overflow: hidden;
}
[data-theme="dark"] .agent-inspector {
  border-color: rgba(255,255,255,0.08);
  box-shadow:
    0 32px 80px -20px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.agent-inspector.open { transform: translateX(0); }

.agent-insp-head {
  padding: 22px 22px 0;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.agent-insp-id { display: flex; flex-direction: column; gap: 10px; }
.agent-insp-avatar {
  position: relative;
  width: 72px; height: 72px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  box-shadow:
    0 12px 28px -6px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.1);
}
.agent-insp-active {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 500;
}
.agent-insp-active .green-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34C759;
  box-shadow: 0 0 0 3px rgba(52,199,89,0.18);
  animation: tv3-breathe 3s ease-in-out infinite;
}
.agent-insp-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--bg-tinted);
  color: var(--text-secondary);
  transition: all 160ms;
}
.agent-insp-close:hover { background: var(--separator); color: var(--text-primary); }

.agent-insp-body { flex: 1; overflow-y: auto; padding: 20px 22px 16px; }
.agent-insp-stagger {
  opacity: 0;
  animation: insp-fadeUp 420ms cubic-bezier(0.32, 0.72, 0, 1) forwards;
}
@keyframes insp-fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.agent-insp-role {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-top: 18px;
  margin-bottom: 6px;
}
.agent-insp-name {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  line-height: 1.1;
}
.agent-insp-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.agent-insp-pitch {
  position: relative;
  margin: 22px 0 6px;
  padding: 14px 16px 14px 18px;
  font-size: 15px;
  font-style: italic;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg-tinted);
  border-radius: 12px;
  border-left: 3px solid var(--kw-red);
  letter-spacing: -0.005em;
}

.agent-insp-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin: 24px 0 12px;
}

.agent-insp-uses {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.agent-insp-uses li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-primary);
}
.agent-insp-check {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(52, 199, 89, 0.14);
  color: #34C759;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}

.agent-insp-examples { display: flex; flex-direction: column; gap: 8px; }
.agent-insp-example {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  text-align: left;
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--separator);
  border-radius: 12px;
  padding: 12px 14px;
  transition: all 200ms cubic-bezier(0.32, 0.72, 0, 1);
  letter-spacing: -0.005em;
  line-height: 1.4;
}
.agent-insp-example:hover {
  border-color: var(--kw-red);
  background: var(--bg-glass);
  transform: translateX(2px);
  box-shadow: 0 4px 12px -4px rgba(200,16,46,0.18);
}
.agent-insp-ex-arrow { color: var(--text-tertiary); transform: rotate(45deg); transition: all 200ms; }
.agent-insp-example:hover .agent-insp-ex-arrow { color: var(--kw-red); transform: rotate(45deg) translateX(2px); }

.agent-insp-foot {
  padding: 16px 22px 22px;
  border-top: 1px solid var(--separator);
}
.agent-insp-primary {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--kw-red) 0%, var(--kw-red-soft) 100%);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow:
    0 8px 22px -6px rgba(200,16,46,0.5),
    inset 0 1px 0 rgba(255,255,255,0.25);
  transition: all 220ms cubic-bezier(0.32, 0.72, 0, 1);
}
.agent-insp-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 32px -8px rgba(200,16,46,0.6),
    inset 0 1px 0 rgba(255,255,255,0.3);
  filter: brightness(1.04);
}
.agent-insp-primary:active { transform: scale(0.98); }

/* ============ MEETING MODAL ============ */

.mm-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  overflow-y: auto;
  z-index: 110;
  animation: mm-overlay-in 220ms cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes mm-overlay-in { from { opacity: 0; } to { opacity: 1; } }

.mm-card {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: auto;
  background: var(--bg-glass-strong, rgba(255,255,255,0.85));
  backdrop-filter: blur(60px) saturate(200%);
  -webkit-backdrop-filter: blur(60px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 28px;
  box-shadow:
    0 40px 80px -24px rgba(0,0,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.7);
  padding: 36px 40px 32px;
  animation: mm-card-in 360ms cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
}
[data-theme="dark"] .mm-card {
  border-color: rgba(255,255,255,0.06);
  box-shadow:
    0 40px 80px -24px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
@keyframes mm-card-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.mm-card-spec {
  position: absolute;
  top: 0; right: 0;
  width: 260px; height: 260px;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.5), transparent 60%);
  border-radius: 28px;
  pointer-events: none;
}
.mm-card > * { position: relative; z-index: 1; }

.mm-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--bg-tinted);
  color: var(--text-secondary);
  transition: all 160ms;
  z-index: 2;
}
.mm-close:hover { background: var(--separator); color: var(--text-primary); }

.mm-head { margin-bottom: 8px; }
.mm-emoji { font-size: 30px; line-height: 1; display: block; margin-bottom: 14px; }
.mm-title {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 10px;
  text-wrap: pretty;
}
.mm-sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 540px;
}

.mm-divider {
  height: 1px;
  background: var(--separator);
  margin: 24px 0;
}

.mm-section { margin-bottom: 18px; }
.mm-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}
.mm-label-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.mm-label-row .mm-label { margin-bottom: 0; }
.mm-count {
  font-size: 11.5px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.mm-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.mm-cat {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--bg-tinted);
  border: 1px solid transparent;
  color: var(--text-secondary);
  transition: all 160ms cubic-bezier(0.32, 0.72, 0, 1);
}
.mm-cat:hover:not(:disabled) { color: var(--text-primary); border-color: var(--separator); }
.mm-cat.active {
  background: linear-gradient(135deg, var(--kw-red) 0%, var(--kw-red-soft) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 10px -2px rgba(200,16,46,0.35);
  transform: scale(0.98);
  animation: mm-pop 220ms cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes mm-pop {
  0% { transform: scale(0.94); }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
.mm-cat:disabled { opacity: 0.4; cursor: not-allowed; }
.mm-cat-icon { font-size: 14px; line-height: 1; }

.mm-templates {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
  transition: opacity 220ms;
}
.mm-templates.dimmed { opacity: 0.35; pointer-events: none; }
.mm-templates::-webkit-scrollbar { width: 6px; }
.mm-templates::-webkit-scrollbar-thumb { background: var(--separator); border-radius: 999px; }

.mm-tpl {
  display: flex; align-items: flex-start; gap: 14px;
  text-align: left;
  background: var(--bg-elevated);
  border: 1.5px solid var(--separator);
  border-radius: 14px;
  padding: 14px 16px;
  transition: all 220ms cubic-bezier(0.32, 0.72, 0, 1);
  position: relative;
}
.mm-tpl:hover:not(:disabled) {
  border-color: var(--separator-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -8px rgba(0,0,0,0.12);
}
.mm-tpl.selected {
  border-color: var(--kw-red);
  background: var(--bg-elevated);
  box-shadow:
    0 0 0 1px var(--kw-red),
    0 8px 24px -10px rgba(200,16,46,0.3);
}
.mm-tpl:disabled { opacity: 0.5; cursor: not-allowed; }
.mm-tpl-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-tinted);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.mm-tpl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mm-tpl-title { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-primary); }
.mm-tpl-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.45; }
.mm-tpl-meta {
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin-top: 4px;
  display: inline-flex; align-items: center; gap: 6px;
}
.mm-tpl-check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--kw-red);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  align-self: center;
}

.mm-textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1.5px solid var(--separator);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  letter-spacing: -0.005em;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: all 200ms cubic-bezier(0.32, 0.72, 0, 1);
  box-sizing: border-box;
}
.mm-textarea::placeholder { color: var(--text-tertiary); }
.mm-textarea:focus, .mm-textarea.active {
  border-color: var(--kw-red);
  box-shadow: 0 0 0 4px rgba(200,16,46,0.1);
}
.mm-helper {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-tertiary);
  font-style: italic;
  line-height: 1.45;
}

.mm-preview {
  margin: 18px 0 22px;
  padding: 16px 18px;
  background: var(--bg-tinted);
  border-radius: 16px;
  border: 1px solid var(--separator);
}
.mm-preview-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.mm-preview-icon { font-size: 18px; }
.mm-preview-topic {
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.mm-preview-loading {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}
.mm-pulse {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--kw-red);
  animation: mm-pulse 0.9s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(200,16,46,0.5);
}
@keyframes mm-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(200,16,46,0.5); }
  50%      { transform: scale(1.25); box-shadow: 0 0 0 8px rgba(200,16,46,0); }
}
.mm-preview-agents { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-secondary); }
.mm-preview-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-tertiary); }
.mm-preview-stack { display: inline-flex; }
.mm-preview-avatar {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  margin-right: -6px;
  border: 2px solid var(--bg-tinted);
  box-shadow: 0 2px 6px -2px rgba(0,0,0,0.18);
  opacity: 0;
  animation: mm-avatar-in 360ms cubic-bezier(0.32, 0.72, 0, 1) forwards;
}
@keyframes mm-avatar-in {
  from { opacity: 0; transform: translateY(4px) scale(0.8); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.mm-preview-names { font-size: 12.5px; color: var(--text-secondary); }
.mm-preview-dur { margin-top: 6px; font-size: 11.5px; color: var(--text-tertiary); }

.mm-primary {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--kw-red) 0%, var(--kw-red-soft) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 15px 18px;
  border-radius: 14px;
  box-shadow:
    0 10px 24px -6px rgba(200,16,46,0.5),
    inset 0 1px 0 rgba(255,255,255,0.25);
  transition: all 220ms cubic-bezier(0.32, 0.72, 0, 1);
}
.mm-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px -8px rgba(200,16,46,0.6),
    inset 0 1px 0 rgba(255,255,255,0.3);
  filter: brightness(1.04);
}
.mm-primary:active:not(:disabled) { transform: scale(0.98); }
.mm-primary:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.mm-spinner {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  animation: mm-spin 0.7s linear infinite;
}
@keyframes mm-spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .mm-card { padding: 28px 24px 24px; border-radius: 22px; }
  .mm-title { font-size: 24px; }
}
@media (max-height: 820px) {
  .mm-card { padding: 28px 32px; }
  .mm-title { font-size: 26px; }
  .mm-divider { margin: 18px 0; }
  .mm-templates { max-height: 220px; }
}
