/* =====================================================================
   Product demos (shared): Missed Call Recovery, Workflow Automation,
   Analytics & Reporting. One product-frame family with the Command
   Centers demo (command-centers.css .ccd-*): same panel, header, sample
   badge, Pause/Play control, connected-systems row, KPI tiles that act
   as tabs, main view + live activity feed, and footer line.
   Calm palette: neutral glass, white/gray type, cyan for live data only.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. FRAME
   --------------------------------------------------------------------- */
.pd {
  --pd-line: rgba(255,255,255,.06);
  --pd-line-2: rgba(255,255,255,.09);
  --pd-tile: linear-gradient(180deg, rgba(18,24,38,.72), rgba(14,17,26,.72));
  --pd-cyan: #00D4FF;
  --pd-teal: #2DD4BF;
  --pd-warn: #FF8A5C;
  position: relative;
  max-width: 1180px;
  margin: 48px auto 0;
  font-family: var(--font-body);
  color: var(--light-gray);
  text-align: left;
}
.pd *, .pd *::before, .pd *::after { box-sizing: border-box; }
.pd-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(18,24,38,.62), rgba(14,17,26,.66));
  border: 1px solid var(--pd-line);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 24px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}
.pd-panel::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,106,61,.55), rgba(178,77,255,.55), transparent);
}

/* Top bar */
.pd-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.pd-id { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.pd-live-dot {
  flex: none; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%;
  background: var(--pd-teal); box-shadow: 0 0 10px rgba(45,212,191,.8);
  animation: pd-pulse 1.9s ease-in-out infinite;
}
.pd.is-paused .pd-live-dot { animation: none; background: var(--dark-gray); box-shadow: none; }
.pd-name {
  font-family: var(--font-accent); font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--pd-cyan);
}
.pd-status { font-size: 13px; color: var(--medium-gray); margin-top: 4px; }
.pd-top-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-sample {
  font-family: var(--font-accent); font-size: 11px; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--medium-gray);
  border: 1px solid rgba(255,255,255,.12); padding: 6px 12px; border-radius: 100px; white-space: nowrap;
}
.pd-toggle {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px;
  border-radius: 100px; border: 1px solid rgba(0,212,255,.28); background: rgba(0,212,255,.07);
  color: var(--pd-cyan); font-family: var(--font-accent); font-size: 12px; font-weight: 600;
  letter-spacing: .06em; cursor: pointer; transition: background var(--dur-fast) var(--ease-out);
}
.pd-toggle:hover { background: rgba(0,212,255,.14); }
.pd-toggle svg { width: 12px; height: 12px; }
.pd button:focus-visible, .pd [tabindex]:focus-visible { outline: 2px solid var(--pd-cyan); outline-offset: 2px; }

/* Connected systems row */
.pd-systems { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--pd-line); }
.pd-sys {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--light-gray);
  background: rgba(255,255,255,.03); border: 1px solid var(--pd-line-2); border-radius: 100px; padding: 5px 11px 5px 9px;
  transition: border-color .4s, box-shadow .4s;
}
.pd-sys::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--pd-teal); box-shadow: 0 0 6px rgba(45,212,191,.7); }
.pd-sys.is-ping { border-color: rgba(0,212,255,.55); box-shadow: 0 0 14px rgba(0,212,255,.25); }

/* KPI tiles (double as tabs) */
.pd-tabs { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-top: 20px; }
.pd-tab, .pd-kpi {
  position: relative; text-align: left; font: inherit; color: inherit;
  background: var(--pd-tile); border: 1px solid var(--pd-line-2); border-radius: 14px;
  padding: 16px 18px 15px; overflow: hidden; min-width: 0;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.pd-tab { cursor: pointer; }
.pd-tab::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gradient); opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.pd-tab:hover { border-color: rgba(0,212,255,.3); }
.pd-tab[aria-selected="true"] {
  border-color: rgba(0,212,255,.45);
  box-shadow: 0 0 0 1px rgba(0,212,255,.12), 0 0 26px rgba(0,212,255,.12);
  background: linear-gradient(180deg, rgba(0,212,255,.07), rgba(0,212,255,.015)), var(--pd-tile);
}
.pd-tab[aria-selected="true"]::before { opacity: 1; }
.pd-tab-head { display: flex; align-items: center; gap: 8px; }
.pd-tab-icon {
  flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(255,255,255,.04); border: 1px solid var(--pd-line-2); color: var(--medium-gray);
  transition: color .3s, border-color .3s, background .3s;
}
.pd-tab-icon svg { width: 14px; height: 14px; }
.pd-tab[aria-selected="true"] .pd-tab-icon { color: var(--pd-cyan); border-color: rgba(0,212,255,.35); background: rgba(0,212,255,.08); }
.pd-tab-label { font-family: var(--font-accent); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--medium-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-tab[aria-selected="true"] .pd-tab-label { color: var(--white); }
.pd-tab-dot {
  margin-left: auto; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--pd-cyan);
  box-shadow: 0 0 10px rgba(0,212,255,.8); opacity: 0; transform: scale(.4); transition: opacity .3s, transform .3s var(--ease-out);
}
.pd-tab.has-new .pd-tab-dot { opacity: 1; transform: scale(1); }
.pd-tab-num {
  display: block; margin-top: 12px; font-family: var(--font-head); font-weight: 800; font-size: 30px; line-height: 1;
  letter-spacing: -.02em; color: var(--white); font-variant-numeric: tabular-nums;
}
.pd-tab-num small { font-size: 16px; font-weight: 700; color: var(--medium-gray); margin-left: 2px; letter-spacing: 0; }
.pd-tab-num.is-bump { animation: pd-bump .6s var(--ease-out); }
.pd-tab-sub { display: block; margin-top: 7px; font-size: 12.5px; color: var(--dark-gray); }
.pd-tab-sub b { font-weight: 600; color: var(--pd-teal); }

/* Body: main view + live feed */
.pd-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; margin-top: 18px; }
.pd-view, .pd-feed, .pd-card {
  background: var(--pd-tile); border: 1px solid var(--pd-line-2); border-radius: 16px; padding: 22px 22px 18px; min-width: 0;
}
.pd-view { min-height: 432px; }
.pd-view-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.pd-view-title { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--white); letter-spacing: -.01em; margin: 0; line-height: 1.3; }
.pd-view-meta { font-size: 12.5px; color: var(--medium-gray); }
.pd-view-meta b { color: var(--pd-teal); font-weight: 600; }
.pd-pane[hidden] { display: none; }
.pd-pane { animation: pd-fade .35s var(--ease-out); }
.pd-list { list-style: none; margin: 0; padding: 0; }
.pd-row-sep > * + * { border-top: 1px solid var(--pd-line); }

/* Pills (calm: neutral by default, cyan/teal for live states) */
.pd-pill {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-family: var(--font-accent); font-size: 11.5px; font-weight: 600; letter-spacing: .03em;
  padding: 3px 9px; border-radius: 100px; border: 1px solid transparent;
}
.pd-pill--info { color: var(--pd-cyan); background: rgba(0,212,255,.08); border-color: rgba(0,212,255,.28); }
.pd-pill--ok { color: var(--pd-teal); background: rgba(45,212,191,.09); border-color: rgba(45,212,191,.3); }
.pd-pill--muted { color: var(--medium-gray); background: rgba(255,255,255,.04); border-color: var(--pd-line-2); }
.pd-pill--bright { color: var(--white); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
.pd-pill--warn { color: var(--pd-warn); background: rgba(255,106,61,.08); border-color: rgba(255,106,61,.32); }

.pd-avatar {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-accent); font-size: 12.5px; font-weight: 600; color: var(--white);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.pd-avatar svg { width: 15px; height: 15px; }
.pd-owner {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: var(--font-accent); font-size: 11px; font-weight: 600; color: var(--white);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
}
.is-new { animation: pd-arrive 1.6s var(--ease-out); border-radius: 10px; }

/* Live feed */
.pd-feed-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pd-feed-head h3 { margin: 0; font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--white); letter-spacing: -.01em; }
.pd-feed-head span { font-family: var(--font-accent); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--pd-teal); }
.pd-events { list-style: none; margin: 0; padding: 0; }
.pd-ev { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 11px; padding: 10px 0; border-top: 1px solid var(--pd-line); }
.pd-ev:first-child { border-top: 0; }
.pd-ev.is-new { animation: pd-slide .7s var(--ease-out); }
.pd-ev-icon {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  color: var(--light-gray); background: rgba(255,255,255,.04); border: 1px solid var(--pd-line-2);
}
.pd-ev:first-child .pd-ev-icon { color: var(--pd-cyan); background: rgba(0,212,255,.08); border-color: rgba(0,212,255,.28); }
.pd-ev-icon svg { width: 14px; height: 14px; }
.pd-ev p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--light-gray); }
.pd-ev small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--dark-gray); }

/* Footer strip */
.pd-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--pd-line); font-size: 12.5px; color: var(--dark-gray);
}
.pd-foot strong { color: var(--light-gray); font-weight: 500; }
.pd-foot-brand { display: inline-flex; align-items: center; gap: 9px; }
.pd-foot-brand i {
  width: 24px; height: 24px; border-radius: 7px; background: var(--gradient); display: grid; place-items: center;
  box-shadow: 0 0 14px rgba(178,77,255,.3);
}
.pd-foot-brand img { width: 16px; height: 16px; object-fit: contain; display: block; }

/* Small shared bits */
.pd-seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 100px; background: rgba(255,255,255,.03); border: 1px solid var(--pd-line-2); }
.pd-seg button {
  font-family: var(--font-accent); font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--medium-gray);
  background: transparent; border: 0; border-radius: 100px; padding: 5px 12px; cursor: pointer; transition: color .2s, background .2s;
}
.pd-seg button:hover { color: var(--white); }
.pd-seg button[aria-pressed="true"] { color: var(--white); background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.pd-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.05); overflow: hidden; }
.pd-bar span { display: block; height: 100%; border-radius: 6px; background: rgba(255,255,255,.42); transition: width .7s var(--ease-out); }
.pd-bar.is-live span { background: linear-gradient(90deg, rgba(0,212,255,.55), var(--pd-cyan)); }
.pd-note { font-size: 12px; color: var(--dark-gray); margin: 14px 0 0; }

@keyframes pd-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.78); } }
@keyframes pd-bump { 0% { transform: scale(1); } 35% { transform: scale(1.1); color: var(--pd-cyan); text-shadow: 0 0 18px rgba(0,212,255,.5); } 100% { transform: scale(1); } }
@keyframes pd-arrive { 0% { opacity: 0; transform: translateY(-6px); background: rgba(0,212,255,.12); } 25% { opacity: 1; transform: none; } 100% { background: transparent; } }
@keyframes pd-slide { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes pd-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes pd-check { 0% { transform: scale(.7); } 60% { transform: scale(1.18); box-shadow: 0 0 16px rgba(45,212,191,.6); } 100% { transform: scale(1); } }
@keyframes pd-spin { to { transform: rotate(360deg); } }
@keyframes pd-type { 0%,60%,100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-3px); opacity: 1; } }

@media (max-width: 1080px) {
  .pd-body { grid-template-columns: 1fr; }
  .pd-view { min-height: 0; }
}
@media (max-width: 860px) {
  .pd-tabs { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
}
@media (max-width: 640px) {
  .pd { margin-top: 36px; }
  .pd-panel { padding: 18px 14px; border-radius: 18px; }
  .pd-view, .pd-feed, .pd-card { padding: 16px 14px 12px; border-radius: 14px; }
  .pd-tab, .pd-kpi { padding: 12px 12px 11px; border-radius: 12px; }
  .pd-tab-num { font-size: 24px; margin-top: 10px; }
  .pd-tab-num small { font-size: 13px; }
  .pd-tab-label { font-size: 11px; letter-spacing: .1em; }
  .pd-tab-sub { font-size: 11.5px; }
  .pd-systems { gap: 6px; }
  .pd-sys { font-size: 11.5px; padding: 4px 9px 4px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .pd *, .pd *::before, .pd *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------------
   2. MISSED CALL RECOVERY (.mc-*)
   --------------------------------------------------------------------- */
/* Calls inbox */
.mc-call { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 12px 6px; border-top: 1px solid var(--pd-line); }
.mc-call:first-child { border-top: 0; }
.mc-call .pd-avatar { color: var(--medium-gray); }
.mc-call.is-missed .pd-avatar { color: var(--pd-warn); border-color: rgba(255,106,61,.3); background: rgba(255,106,61,.06); }
.mc-call-main { min-width: 0; }
.mc-call-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mc-call-top b { font-size: 14px; font-weight: 500; color: var(--white); font-variant-numeric: tabular-nums; }
.mc-call-top span { font-size: 12.5px; color: var(--dark-gray); }
.mc-steps { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.mc-step { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--dark-gray); white-space: nowrap; }
.mc-step i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.12); flex: none; }
.mc-step.on { color: var(--light-gray); }
.mc-step.on i { background: var(--pd-teal); box-shadow: 0 0 6px rgba(45,212,191,.6); }
.mc-step + .mc-step::before { content: ''; width: 14px; height: 1px; background: var(--pd-line-2); margin-right: 0; }
.mc-step em { font-style: normal; color: var(--pd-cyan); font-variant-numeric: tabular-nums; }

/* Conversations */
.mc-convo { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 14px; }
.mc-threads { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mc-thread-btn {
  display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 9px 10px; min-width: 0;
  transition: background .2s, border-color .2s;
}
.mc-thread-btn:hover { background: rgba(255,255,255,.03); }
.mc-thread-btn[aria-pressed="true"] { background: rgba(255,255,255,.05); border-color: var(--pd-line-2); }
.mc-thread-btn b { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-thread-btn span { display: block; font-size: 12px; color: var(--dark-gray); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-thread-btn .mc-unread { width: 6px; height: 6px; border-radius: 50%; background: var(--pd-cyan); flex: none; }
.mc-thread { min-width: 0; background: rgba(255,255,255,.015); border: 1px solid var(--pd-line); border-radius: 12px; display: flex; flex-direction: column; }
.mc-thread-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--pd-line); flex-wrap: wrap; }
.mc-thread-who b { display: block; font-size: 14px; font-weight: 500; color: var(--white); }
.mc-thread-who span { display: block; font-size: 12px; color: var(--dark-gray); margin-top: 2px; }
.mc-msgs { display: flex; flex-direction: column; gap: 10px; padding: 14px; min-height: 250px; }
.mc-msg { max-width: 82%; display: flex; flex-direction: column; gap: 4px; }
.mc-msg p { margin: 0; padding: 10px 13px; font-size: 13.5px; line-height: 1.5; border-radius: 14px; }
.mc-msg small { font-size: 11px; color: var(--dark-gray); padding: 0 4px; }
.mc-msg.ai { align-self: flex-start; }
.mc-msg.ai p { color: var(--white); background: rgba(0,212,255,.07); border: 1px solid rgba(0,212,255,.2); border-bottom-left-radius: 4px; }
.mc-msg.cust { align-self: flex-end; align-items: flex-end; }
.mc-msg.cust p { color: var(--light-gray); background: rgba(255,255,255,.06); border: 1px solid var(--pd-line-2); border-bottom-right-radius: 4px; }
.mc-msg.sys { align-self: center; max-width: 100%; }
.mc-msg.sys p { padding: 4px 10px; font-size: 11.5px; color: var(--medium-gray); background: transparent; border: 1px dashed var(--pd-line-2); border-radius: 100px; font-family: var(--font-accent); letter-spacing: .03em; }
.mc-msg.is-new { animation: pd-fade .45s var(--ease-out); }
.mc-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 11px 13px; border-radius: 14px; border-bottom-left-radius: 4px; background: rgba(0,212,255,.05); border: 1px solid rgba(0,212,255,.15); }
.mc-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--medium-gray); animation: pd-type 1.2s infinite; }
.mc-typing i:nth-child(2) { animation-delay: .2s; }
.mc-typing i:nth-child(3) { animation-delay: .4s; }
.mc-voice { padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 250px; }
.mc-voice-tag { align-self: flex-start; font-family: var(--font-accent); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--medium-gray); border: 1px solid var(--pd-line-2); border-radius: 100px; padding: 4px 10px; }
.mc-line { display: grid; grid-template-columns: 74px minmax(0,1fr); gap: 10px; font-size: 13.5px; line-height: 1.5; }
.mc-line b { font-family: var(--font-accent); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dark-gray); padding-top: 2px; }
.mc-line.ai b { color: var(--pd-cyan); }
.mc-line span { color: var(--light-gray); }
.mc-line.ai span { color: var(--white); }

/* Pipeline */
.mc-board { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.mc-col { background: rgba(255,255,255,.018); border: 1px solid var(--pd-line); border-radius: 12px; padding: 12px; min-width: 0; }
.mc-col-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.mc-col-head b { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--white); }
.mc-col-head span { font-family: var(--font-accent); font-size: 12px; font-weight: 600; color: var(--medium-gray); font-variant-numeric: tabular-nums; }
.mc-card {
  position: relative; border-radius: 10px; padding: 10px 11px 10px 13px; margin-top: 8px;
  background: rgba(14,17,26,.85); border: 1px solid var(--pd-line-2);
}
.mc-card::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: rgba(255,255,255,.18); }
.mc-card[data-s="qualified"]::before { background: rgba(255,255,255,.55); }
.mc-card[data-s="booked"]::before { background: var(--pd-teal); }
.mc-card.is-new { border-color: rgba(0,212,255,.35); }
.mc-card.is-new::before { background: var(--pd-cyan); box-shadow: 0 0 10px rgba(0,212,255,.7); }
.mc-card b { display: block; font-size: 13.5px; font-weight: 500; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-card span { display: block; font-size: 12px; color: var(--medium-gray); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-card small { display: block; font-size: 11.5px; color: var(--dark-gray); margin-top: 6px; }
.mc-card small em { font-style: normal; color: var(--pd-teal); }
.mc-more { font-size: 12px; color: var(--dark-gray); margin-top: 8px; padding-left: 4px; }

/* Response time */
.mc-resp-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.mc-rs { background: rgba(255,255,255,.02); border: 1px solid var(--pd-line); border-radius: 12px; padding: 12px 14px; }
.mc-rs span { display: block; font-family: var(--font-accent); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-gray); }
.mc-rs b { display: block; margin-top: 6px; font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; }
.mc-chart { display: flex; align-items: flex-end; gap: 8px; height: 190px; padding: 0 2px; border-bottom: 1px solid var(--pd-line-2); }
.mc-chart div { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.mc-chart em { font-style: normal; font-family: var(--font-accent); font-size: 11.5px; font-weight: 600; color: var(--medium-gray); font-variant-numeric: tabular-nums; }
.mc-chart span { display: block; width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: rgba(255,255,255,.16); transition: height .6s var(--ease-out); }
.mc-chart div:last-child span { background: linear-gradient(180deg, var(--pd-cyan), rgba(0,212,255,.35)); box-shadow: 0 0 16px rgba(0,212,255,.25); }
.mc-chart div:last-child em { color: var(--pd-cyan); }
.mc-chart-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11.5px; color: var(--dark-gray); font-family: var(--font-accent); }

@media (max-width: 860px) {
  .mc-board { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mc-call { grid-template-columns: 34px minmax(0,1fr) auto; gap: 2px 10px; padding: 11px 2px; }
  .mc-call-main { display: contents; }
  .mc-call .pd-avatar { grid-row: 1 / 3; align-self: start; }
  .mc-call-top { grid-column: 2; grid-row: 1; display: block; min-width: 0; }
  .mc-call-top b { display: block; }
  .mc-call-top span { display: block; font-size: 11.5px; margin-top: 1px; }
  .mc-call > .pd-pill { grid-column: 3; grid-row: 1; align-self: start; }
  .mc-steps { grid-column: 2 / 4; grid-row: 2; margin-top: 6px; gap: 4px 10px; }
  .mc-step + .mc-step::before { display: none; }
  .mc-call:nth-child(n+5) { display: none; }
  .mc-convo { grid-template-columns: 1fr; }
  .mc-threads { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 2px; scrollbar-width: none; }
  .mc-threads::-webkit-scrollbar { display: none; }
  .mc-thread-btn { flex: none; width: 150px; }
  .mc-msg { max-width: 90%; }
  .mc-line { grid-template-columns: 1fr; gap: 2px; }
  .mc-resp-stats { gap: 8px; }
  .mc-rs { padding: 10px; }
  .mc-rs span { font-size: 10px; letter-spacing: .08em; }
  .mc-rs b { font-size: 17px; }
  .mc-chart { gap: 5px; height: 160px; }
  .mc-chart em { font-size: 10.5px; }
}

/* ---------------------------------------------------------------------
   3. WORKFLOW AUTOMATION (.wa-*)
   One workflow at a time: the manual steps a person does today, next to
   the same job running as an automation. Slim totals strip, recent runs.
   --------------------------------------------------------------------- */
/* Totals strip */
.wa-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin: 20px 0 0; padding: 14px 0; border-top: 1px solid var(--pd-line); border-bottom: 1px solid var(--pd-line); }
.wa-stat { min-width: 0; padding: 0 18px; }
.wa-stat + .wa-stat { border-left: 1px solid var(--pd-line); }
.wa-stat:first-child { padding-left: 2px; }
.wa-stat dt { font-family: var(--font-accent); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-gray); }
.wa-stat dd { margin: 6px 0 0; font-family: var(--font-head); font-size: 22px; font-weight: 700; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; display: inline-block; }
.wa-stat dd.is-bump { animation: pd-bump .6s var(--ease-out); }

/* Workflow tabs */
.wa-tabs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; margin-top: 20px; padding: 5px; border-radius: 14px; background: rgba(255,255,255,.025); border: 1px solid var(--pd-line-2); }
.wa-tab {
  font: inherit; text-align: left; cursor: pointer; min-width: 0; color: inherit;
  background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 10px 14px;
  transition: background .2s, border-color .2s;
}
.wa-tab:hover { background: rgba(255,255,255,.03); }
.wa-tab b { display: block; font-family: var(--font-accent); font-size: 14px; font-weight: 600; color: var(--medium-gray); line-height: 1.3; }
.wa-tab span { display: block; margin-top: 2px; font-size: 12px; color: var(--dark-gray); }
.wa-tab[aria-selected="true"] { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); }
.wa-tab[aria-selected="true"] b { color: var(--white); }
.wa-tab[aria-selected="true"] span { color: var(--medium-gray); }

/* Two lanes */
.wa-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; margin-top: 16px; animation: pd-fade .35s var(--ease-out); }
.wa-lane { background: var(--pd-tile); border: 1px solid var(--pd-line-2); border-radius: 16px; padding: 18px 18px 16px; min-width: 0; display: flex; flex-direction: column; }
.wa-lane-head { display: flex; align-items: center; gap: 10px; }
.wa-lane-head h3 { margin: 0; font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--white); letter-spacing: -.01em; }
.wa-lane-icon { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--medium-gray); background: rgba(255,255,255,.04); border: 1px solid var(--pd-line-2); }
.wa-lane-icon svg { width: 15px; height: 15px; }
.wa-lane-icon.is-auto { color: var(--white); border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.07); }
.wa-lane-tag {
  margin-left: auto; white-space: nowrap; font-family: var(--font-accent); font-size: 11.5px; font-weight: 600; letter-spacing: .03em;
  padding: 3px 10px; border-radius: 100px; color: var(--medium-gray); background: rgba(255,255,255,.04); border: 1px solid var(--pd-line-2);
}
.wa-lane-tag.is-live { color: var(--pd-cyan); background: rgba(0,212,255,.08); border-color: rgba(0,212,255,.28); }
.wa-lane-tag.is-ok { color: var(--pd-teal); background: rgba(45,212,191,.08); border-color: rgba(45,212,191,.28); }
.wa-lane-sub { margin: 12px 0 6px; font-size: 13px; color: var(--medium-gray); }

/* Manual steps */
.wa-m-list, .wa-a-list { list-style: none; margin: 0; padding: 0; }
.wa-m { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 10px 8px; border-top: 1px solid var(--pd-line); border-radius: 8px; transition: background .3s, opacity .3s; }
.wa-m:first-child { border-top-color: transparent; }
.wa-m-num { position: relative; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); color: var(--medium-gray); font-family: var(--font-accent); font-size: 11.5px; font-weight: 600; }
.wa-m-num i { font-style: normal; }
.wa-m-num svg { position: absolute; width: 12px; height: 12px; opacity: 0; }
.wa-m-text { font-size: 13.5px; line-height: 1.4; color: var(--light-gray); min-width: 0; }
.wa-m-time { font-family: var(--font-accent); font-size: 12px; font-weight: 600; color: var(--medium-gray); white-space: nowrap; font-variant-numeric: tabular-nums; padding: 2px 8px; border-radius: 100px; background: rgba(255,255,255,.04); }
.wa-m.is-now { background: rgba(0,212,255,.05); }
.wa-m.is-now .wa-m-num { border-color: rgba(0,212,255,.5); color: var(--pd-cyan); }
.wa-m.is-covered .wa-m-text { color: var(--medium-gray); }
.wa-m.is-covered .wa-m-time { color: var(--dark-gray); }
.wa-m.is-covered .wa-m-num { border-color: rgba(45,212,191,.35); color: var(--pd-teal); }
.wa-m.is-covered .wa-m-num i { opacity: 0; }
.wa-m.is-covered .wa-m-num svg { opacity: 1; }
.wa-m-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--pd-line-2); }
.wa-m-list + .wa-m-total { margin-top: 8px; }
.wa-m-total span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--medium-gray); }
.wa-m-total svg { width: 14px; height: 14px; }
.wa-m-total b { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; }

/* Automated: trigger, steps, result */
.wa-trigger { margin: 12px 0 8px; padding: 10px 12px; border-radius: 10px; border: 1px dashed rgba(255,255,255,.14); transition: border-color .35s, background .35s; }
.wa-trigger small { display: block; font-family: var(--font-accent); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-gray); }
.wa-trigger b { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 500; color: var(--light-gray); }
.wa-trigger.is-fired { border-style: solid; border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.03); }
.wa-trigger.is-fired b { color: var(--white); }
.wa-a { position: relative; display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 8px; transition: background .3s; }
.wa-a + .wa-a::before { content: ''; position: absolute; left: 19.5px; top: -9px; height: 18px; width: 1px; background: var(--pd-line-2); }
.wa-a-mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); color: transparent; background: rgba(14,17,26,.9); position: relative; z-index: 1; font-family: var(--font-accent); font-size: 12px; font-weight: 700; }
.wa-a-mark svg { width: 12px; height: 12px; }
.wa-a-text { font-size: 13.5px; line-height: 1.4; color: var(--dark-gray); min-width: 0; transition: color .3s; }
.wa-a-sys { font-family: var(--font-accent); font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--dark-gray); white-space: nowrap; padding: 2px 8px; border-radius: 100px; border: 1px solid var(--pd-line-2); }
.wa-a.active { background: rgba(0,212,255,.05); }
.wa-a.active .wa-a-mark { border-color: rgba(0,212,255,.65); border-top-color: transparent; animation: pd-spin .9s linear infinite; }
.wa-a.active .wa-a-text { color: var(--white); }
.wa-a.active .wa-a-sys { color: var(--pd-cyan); border-color: rgba(0,212,255,.3); }
.wa-a.done .wa-a-mark { background: var(--pd-teal); border-color: var(--pd-teal); color: #04201c; }
.wa-a.done .wa-a-text, .wa-a.caught .wa-a-text { color: var(--light-gray); }
.wa-a.done .wa-a-sys, .wa-a.caught .wa-a-sys { color: var(--medium-gray); }
.wa-a.caught .wa-a-mark { border-color: rgba(255,138,92,.55); color: var(--pd-warn); background: rgba(40,20,14,.9); }
.wa-a.done + .wa-a::before, .wa-a.caught + .wa-a::before { background: rgba(45,212,191,.4); }
.wa-a.just .wa-a-mark { animation: pd-check .5s var(--ease-out); }
.wa-result { margin-top: auto; min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--pd-line-2); background: rgba(255,255,255,.02); }
.wa-a-list + .wa-result { margin-top: 10px; }
.wa-result-wait { font-size: 13px; color: var(--dark-gray); }
.wa-result-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--pd-teal); background: rgba(45,212,191,.1); border: 1px solid rgba(45,212,191,.35); }
.wa-result-icon svg { width: 15px; height: 15px; }
.wa-result b { display: block; font-size: 14.5px; font-weight: 600; color: var(--white); }
.wa-result small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--medium-gray); }
.wa-result.is-done { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.04); animation: pd-fade .4s var(--ease-out); }

/* Recent runs */
.wa-recent { margin-top: 16px; }
.wa-recent-head { margin: 0 0 4px; font-family: var(--font-accent); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-gray); }
.wa-recent-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 24px; }
.wa-rr { display: grid; grid-template-columns: 20px minmax(0,1fr) auto auto; align-items: center; gap: 10px; padding: 9px 2px; border-top: 1px solid var(--pd-line); }
.wa-rr-mark { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: var(--pd-teal); border: 1px solid rgba(45,212,191,.3); font-family: var(--font-accent); font-size: 11px; font-weight: 700; }
.wa-rr-mark svg { width: 11px; height: 11px; }
.wa-rr-mark.is-issue { color: var(--pd-warn); border-color: rgba(255,138,92,.4); }
.wa-rr-name { min-width: 0; }
.wa-rr-name b { display: block; font-size: 13px; font-weight: 500; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-rr-name span { display: block; font-size: 12px; color: var(--dark-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-rr-dur { font-family: var(--font-accent); font-size: 12px; font-weight: 600; color: var(--light-gray); font-variant-numeric: tabular-nums; }
.wa-rr-ago { font-size: 12px; color: var(--dark-gray); white-space: nowrap; min-width: 64px; text-align: right; }

@media (max-width: 900px) {
  .wa-panel { grid-template-columns: 1fr; }
  .wa-recent-list { grid-template-columns: 1fr; }
  .wa-rr:nth-child(n+4) { display: none; }
}
@media (max-width: 640px) {
  .wa-strip { padding: 12px 0; }
  .wa-stat { padding: 0 10px; }
  .wa-stat dt { font-size: 10px; letter-spacing: .08em; line-height: 1.35; }
  .wa-stat dd { font-size: 18px; }
  .wa-tabs { gap: 4px; padding: 4px; }
  .wa-tab { padding: 8px 9px; }
  .wa-tab b { font-size: 12.5px; }
  .wa-tab span { display: none; }
  .wa-lane { padding: 14px 12px 12px; border-radius: 14px; }
  .wa-m, .wa-a { gap: 10px; padding: 9px 4px; }
  .wa-a + .wa-a::before { left: 15.5px; }
  .wa-m-text, .wa-a-text { font-size: 13px; }
  .wa-a-sys { display: none; }
  .wa-rr-ago { display: none; }
}
