/* WhatsApp Campaigns page (#/wa-campaigns). Drip HUD styles moved here from pipeline.css. */

.drip-hud {
  --d-surface: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.90));
  --d-tile: rgba(255,255,255,.72);
  --d-col: rgba(241,245,249,.62);
  --d-card: #fff;
  --d-line: rgba(15,23,42,.07);
  --d-line-strong: rgba(15,23,42,.11);
  --d-hi: rgba(255,255,255,.95);
  --d-txt: #0F172A;
  --d-txt-2: #475569;
  --d-txt-3: #94A3B8;
  --d-teal: #0D9488;
  --d-teal-soft: rgba(13,148,136,.10);
  --d-shadow: 0 1px 2px rgba(15,23,42,.04), 0 18px 40px -24px rgba(15,23,42,.28);
  --d-ease: cubic-bezier(.2,.8,.2,1);
  position: relative;
  border-radius: 24px;
  background: var(--d-surface);
  border: 1px solid var(--d-line);
  box-shadow: inset 0 1px 0 var(--d-hi), var(--d-shadow);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  color: var(--d-txt);
  overflow: hidden;
}
.drip-hud::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(13,148,136,.55), rgba(37,211,102,.45), transparent);
  opacity: 0;
  transition: opacity .4s var(--d-ease);
}
.drip-hud--running::before { opacity: 1; }
.drip-hud.is-entering { animation: dripHudIn .5s var(--d-ease) both; }
@keyframes dripHudIn {
  from { opacity: 0; transform: translateY(8px) scale(.995); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* Bar: title, live timer, controls */
.drip-hud__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  padding: 26px 28px 22px;
}
.drip-hud__title { display: flex; align-items: center; gap: 16px; min-width: 0; }
.drip-hud__title > div { min-width: 0; }
.drip-hud__beacon {
  position: relative;
  flex: 0 0 48px; width: 48px; height: 48px;
  border-radius: 15px;
  background: linear-gradient(160deg, #2DD4BF, #0D9488 60%, #0F766E);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 18px -8px rgba(13,148,136,.7);
}
.drip-hud__beacon::before {
  content: "";
  position: absolute; inset: 0;
  background: center / 24px 24px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2a10 10 0 00-8.6 15.1L2 22l5-1.3A10 10 0 1012 2zm0 18.2a8.2 8.2 0 01-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1112 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 01-3.3-2.9c-.3-.4.3-.4.7-1.3a.5.5 0 000-.5l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 00-.7.3 3 3 0 00-.9 2.2 5.2 5.2 0 001.1 2.7 11.8 11.8 0 004.5 4c1.7.7 2.3.8 3.2.6a2.7 2.7 0 001.8-1.3 2.2 2.2 0 00.1-1.3c0-.1-.2-.2-.5-.3z'/%3E%3C/svg%3E");
}
.drip-hud--running .drip-hud__beacon::after {
  content: "";
  position: absolute; right: -3px; top: -3px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 2px var(--d-card), 0 0 0 0 rgba(34,197,94,.5);
  animation: dripPing 2.2s var(--d-ease) infinite;
}
@keyframes dripPing {
  0% { box-shadow: 0 0 0 2px var(--d-card), 0 0 0 0 rgba(34,197,94,.45); }
  70% { box-shadow: 0 0 0 2px var(--d-card), 0 0 0 9px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 2px var(--d-card), 0 0 0 0 rgba(34,197,94,0); }
}
.drip-hud__eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--d-txt-3);
}
.drip-hud__name {
  margin-top: 6px;
  font-size: 23px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.drip-hud__error {
  margin: 0 28px 18px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 12.5px;
  color: #B91C1C;
  background: rgba(239,68,68,.07);
  box-shadow: inset 0 0 0 1px rgba(239,68,68,.16);
}

.drip-hud__elsewhere {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0 28px 20px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 12.5px; line-height: 1.5;
  color: #334155;
  background: linear-gradient(180deg, rgba(13,148,136,.07), rgba(13,148,136,.035));
  box-shadow: inset 0 0 0 1px rgba(13,148,136,.16), inset 0 1px 0 rgba(255,255,255,.6);
}
.drip-hud.is-entering .drip-hud__elsewhere { animation: dripFadeUp .5s cubic-bezier(.2,.8,.2,1) both; }
.drip-hud__elsewhere strong { color: #0F172A; font-weight: 600; }
.drip-hud__elsewhere-dot {
  flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%;
  background: #10B981; box-shadow: 0 0 0 3px rgba(16,185,129,.18);
  animation: dripElsewherePulse 2.4s ease-in-out infinite;
}
@keyframes dripElsewherePulse { 50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); } }
@keyframes dripFadeUp { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  .drip-hud__elsewhere, .drip-hud__elsewhere-dot { animation: none; }
}

/* Pills */
.drip-pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 20px; padding: 0 8px;
  border-radius: 999px;
  font-size: 10.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  color: var(--d-txt-2);
  background: rgba(100,116,139,.10);
  box-shadow: inset 0 0 0 1px rgba(100,116,139,.14);
  white-space: nowrap;
}
.drip-pill--running, .drip-pill--green { color: #15803D; background: rgba(34,197,94,.10); box-shadow: inset 0 0 0 1px rgba(34,197,94,.22); }
.drip-pill--running::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 6px rgba(34,197,94,.7); }
.drip-pill--paused, .drip-pill--amber { color: #B45309; background: rgba(245,158,11,.10); box-shadow: inset 0 0 0 1px rgba(245,158,11,.24); }
.drip-pill--completed, .drip-pill--teal { color: #0F766E; background: var(--d-teal-soft); box-shadow: inset 0 0 0 1px rgba(13,148,136,.22); }
.drip-pill--blue { color: #1D4ED8; background: rgba(59,130,246,.09); box-shadow: inset 0 0 0 1px rgba(59,130,246,.2); }
.drip-list .drip-pill { text-transform: none; letter-spacing: 0; font-size: 11.5px; font-weight: 600; }

/* Live timer */
.drip-timer {
  min-width: 224px;
  padding: 14px 22px;
  border-radius: 18px;
  text-align: center;
  background: var(--d-tile);
  box-shadow: inset 0 0 0 1px var(--d-line), inset 0 1px 0 var(--d-hi);
}
.drip-timer__label { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--d-txt-2); }
.drip-timer__value {
  min-height: 36px; margin: 2px 0;
  font-size: 30px; font-weight: 650; line-height: 36px; letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  color: var(--d-txt);
}
.drip-timer__sub { font-size: 12px; color: var(--d-txt-3); }
.drip-timer--next .drip-timer__value { color: var(--d-teal); }
.drip-timer--cap .drip-timer__value { color: #B45309; }
.drip-timer--paused .drip-timer__value, .drip-timer--done .drip-timer__value { min-height: 0; line-height: 0; }
.drip-timer--paused .drip-timer__label, .drip-timer--done .drip-timer__label { font-size: 15px; font-weight: 650; letter-spacing: -.01em; color: var(--d-txt); }
.drip-dots { display: inline-flex; gap: 5px; align-items: center; height: 30px; }
.drip-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--d-teal); animation: dripDot 1.2s var(--d-ease) infinite; }
.drip-dots i:nth-child(2) { animation-delay: .15s; }
.drip-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dripDot { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }

/* Controls */
.drip-hud__actions { display: flex; align-items: center; gap: 10px; }
.drip-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 17px;
  border: 0; border-radius: 12px;
  font: inherit; font-size: 13.5px; font-weight: 600; letter-spacing: -.005em;
  color: var(--d-txt);
  background: var(--d-card);
  box-shadow: inset 0 0 0 1px var(--d-line-strong), 0 1px 2px rgba(15,23,42,.05);
  cursor: pointer;
  transition: transform .12s var(--d-ease), box-shadow .2s var(--d-ease), background .2s var(--d-ease);
}
.drip-btn svg { fill: currentColor; }
.drip-btn:hover { box-shadow: inset 0 0 0 1px rgba(13,148,136,.35), 0 6px 14px -8px rgba(15,23,42,.25); }
.drip-btn:active { transform: scale(.96); }
.drip-btn:focus-visible, .drip-icon-btn:focus-visible, .drip-seg button:focus-visible { outline: 2px solid rgba(13,148,136,.55); outline-offset: 2px; }
.drip-btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #14B8A6, #0D9488);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 16px -8px rgba(13,148,136,.8);
}
.drip-btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 22px -10px rgba(13,148,136,.9); }
.drip-btn--quiet { color: var(--d-txt-2); background: transparent; box-shadow: inset 0 0 0 1px var(--d-line); }
.drip-btn--quiet:hover { color: #B91C1C; box-shadow: inset 0 0 0 1px rgba(239,68,68,.3); background: rgba(239,68,68,.04); }
.drip-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 0; border-radius: 12px;
  color: var(--d-txt-2);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--d-line);
  cursor: pointer;
  transition: transform .12s var(--d-ease), background .2s var(--d-ease), color .2s var(--d-ease);
}
.drip-icon-btn:hover { background: rgba(15,23,42,.04); color: var(--d-txt); }
.drip-icon-btn:active { transform: scale(.94); }
.drip-icon-btn--chev svg { transition: transform .35s var(--d-ease); }
.drip-hud.is-collapsed .drip-icon-btn--chev svg { transform: rotate(-90deg); }

/* Metrics */
.drip-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 28px 26px;
}
.drip-metric {
  padding: 18px 20px 18px;
  border-radius: 18px;
  background: var(--d-tile);
  box-shadow: inset 0 0 0 1px var(--d-line), inset 0 1px 0 var(--d-hi);
  min-width: 0;
}
.drip-metric__label { font-size: 12.5px; font-weight: 600; color: var(--d-txt-2); }
.drip-metric__value {
  margin-top: 8px;
  font-size: 30px; font-weight: 650; line-height: 1.05; letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
.drip-metric__value small { font-size: 14px; font-weight: 550; letter-spacing: 0; color: var(--d-txt-3); }
.drip-metric__hint { margin-top: 10px; font-size: 12.5px; color: var(--d-txt-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drip-meter { margin-top: 14px; height: 5px; border-radius: 999px; background: rgba(15,23,42,.06); overflow: hidden; }
.drip-meter span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #F59E0B, #F97316);
  transition: width .6s var(--d-ease);
}
.drip-metric--cap .drip-meter span { background: linear-gradient(90deg, #2DD4BF, #0D9488); }
.drip-meter--teal span { background: linear-gradient(90deg, #4ADE80, #16A34A); }

/* Drawer */
.drip-hud__drawer { border-top: 1px solid var(--d-line); padding: 24px 28px 28px; }
.drip-hud__drawer[hidden] { display: none; }
.drip-hud.is-collapsed .drip-metrics { padding-bottom: 26px; }
.drip-hud__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.drip-seg {
  display: inline-flex; padding: 4px; gap: 2px;
  border-radius: 13px;
  background: rgba(15,23,42,.05);
  box-shadow: inset 0 0 0 1px var(--d-line);
}
.drip-seg button {
  height: 32px; padding: 0 20px;
  border: 0; border-radius: 9px;
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--d-txt-2);
  background: transparent;
  cursor: pointer;
  transition: background .25s var(--d-ease), color .2s var(--d-ease), box-shadow .25s var(--d-ease), transform .12s var(--d-ease);
}
.drip-seg button:active { transform: scale(.96); }
.drip-seg button.is-on { color: var(--d-txt); background: var(--d-card); box-shadow: 0 1px 2px rgba(15,23,42,.08), inset 0 0 0 1px var(--d-line); }
.drip-lock { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--d-txt-3); min-width: 0; }
.drip-lock svg { flex: 0 0 auto; fill: currentColor; color: var(--d-txt-3); }
.drip-lock span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drip-hud__foot { margin-top: 20px; font-size: 12px; line-height: 1.5; color: var(--d-txt-3); }

/* Locked board. Columns hold a real width and the board scrolls sideways
   rather than squashing; empty columns fold into slim rails. */
.drip-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scroll-padding-inline: 2px;
}
.drip-col {
  --tone: #64748B;
  display: flex; flex-direction: column;
  flex: 1 1 0;
  min-width: 296px;
  border-radius: 20px;
  background: var(--d-col);
  box-shadow: inset 0 0 0 1px var(--d-line), inset 0 1px 0 var(--d-hi);
  cursor: default;
  user-select: none;
  transition: flex-basis .45s var(--d-ease), min-width .45s var(--d-ease);
}
.drip-col--teal { --tone: #0D9488; }
.drip-col--blue { --tone: #3B82F6; }
.drip-col--green { --tone: #16A34A; }
.drip-col--amber { --tone: #D97706; }
.drip-col__head {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px 14px;
  font-size: 14px; font-weight: 650; letter-spacing: -.01em;
}
.drip-col__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 15%, transparent); }
.drip-col__label { flex: 1; white-space: nowrap; }
.drip-col__count {
  min-width: 26px; height: 24px; padding: 0 9px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 11%, transparent);
}
.drip-col__body {
  display: flex; flex-direction: column; gap: 12px;
  max-height: max(460px, calc(100vh - 420px));
  padding: 2px 12px 12px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.drip-col__empty {
  padding: 28px 12px;
  border-radius: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--d-txt-3);
  border: 1px dashed var(--d-line-strong);
}
/* Empty column rail */
.drip-col--none { flex: 0 0 64px; min-width: 64px; }
.drip-col--none .drip-col__head { flex-direction: column; gap: 14px; padding: 20px 0; }
.drip-col--none .drip-col__label { flex: none; writing-mode: vertical-rl; transform: rotate(180deg); color: var(--d-txt-3); font-weight: 600; }
.drip-col--none .drip-col__count { order: -1; }
.drip-col--none .drip-col__body { display: none; }

.drip-card {
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: var(--d-card);
  box-shadow: inset 0 0 0 1px var(--d-line), inset 0 1px 0 var(--d-hi), 0 1px 2px rgba(15,23,42,.04), 0 10px 24px -20px rgba(15,23,42,.35);
  transition: box-shadow .3s var(--d-ease), transform .3s var(--d-ease);
}
.drip-card:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--d-line-strong), inset 0 1px 0 var(--d-hi), 0 16px 32px -20px rgba(15,23,42,.4); }
.drip-card__top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.drip-card__avatar {
  flex: 0 0 40px; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 13px;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: var(--tone, #0D9488);
  background: color-mix(in srgb, var(--tone, #0D9488) 11%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone, #0D9488) 14%, transparent);
}
.drip-card__who { flex: 1; min-width: 0; }
.drip-card__name { font-size: 15px; font-weight: 650; letter-spacing: -.015em; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drip-card__phone { margin-top: 2px; font-size: 12.5px; color: var(--d-txt-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.drip-card__msg {
  margin-top: 14px;
  font-size: 13px; line-height: 1.55;
  color: var(--d-txt-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.drip-card--queued .drip-card__msg, .drip-card--stopped .drip-card__msg { display: none; }
.drip-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--d-line);
}
.drip-card__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.drip-card__acts { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.drip-card__when { font-size: 12.5px; font-weight: 600; color: var(--d-txt); font-variant-numeric: tabular-nums; white-space: nowrap; }
.drip-card__meta { font-size: 12px; line-height: 1.4; color: var(--d-txt-3); }
.drip-card--stopped .drip-card__meta { color: #B45309; }
.drip-ticks svg { fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; stroke: var(--d-txt-3); }
.drip-ticks--one .drip-ticks__b { display: none; }
.drip-ticks--blue svg { stroke: #3B82F6; }

/* List view */
.drip-list {
  max-height: max(460px, calc(100vh - 420px));
  overflow: auto;
  border-radius: 18px;
  background: var(--d-card);
  box-shadow: inset 0 0 0 1px var(--d-line);
}
.drip-list__head, .drip-list__row {
  display: grid;
  grid-template-columns: minmax(200px, 1.6fr) minmax(120px, 1fr) repeat(3, minmax(110px, .9fr)) 132px;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  min-width: 960px;
}
.drip-list__head {
  position: sticky; top: 0; z-index: 1;
  height: 44px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--d-txt-3);
  background: var(--d-card);
  box-shadow: 0 1px 0 var(--d-line);
}
.drip-list__row { min-height: 64px; font-size: 13px; color: var(--d-txt-2); font-variant-numeric: tabular-nums; border-top: 1px solid var(--d-line); }
.drip-list__row:first-of-type { border-top: 0; }
.drip-list__row:hover { background: rgba(15,23,42,.02); }
.drip-list__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.drip-list__who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.drip-list__who b { font-weight: 600; color: var(--d-txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drip-list__who small { font-size: 12px; color: var(--d-txt-3); }

/* Night */
html.theme-night .drip-hud {
  --d-surface: linear-gradient(180deg, rgba(17,27,46,.86), rgba(11,19,34,.86));
  --d-tile: rgba(255,255,255,.035);
  --d-col: rgba(255,255,255,.025);
  --d-card: rgba(22,33,54,.95);
  --d-line: rgba(255,255,255,.07);
  --d-line-strong: rgba(255,255,255,.12);
  --d-hi: rgba(255,255,255,.04);
  --d-txt: #F1F5F9;
  --d-txt-2: rgba(203,213,225,.82);
  --d-txt-3: rgba(148,163,184,.72);
  --d-teal: #5EEAD4;
  --d-teal-soft: rgba(94,234,212,.10);
  --d-shadow: 0 24px 50px -28px rgba(0,0,0,.7), 0 0 0 1px rgba(94,234,212,.04);
}
html.theme-night .drip-meter { background: rgba(255,255,255,.07); }
html.theme-night .drip-seg { background: rgba(255,255,255,.04); }
html.theme-night .drip-icon-btn:hover { background: rgba(255,255,255,.06); }
html.theme-night .drip-list__row:hover { background: rgba(255,255,255,.025); }
html.theme-night .drip-pill--running, html.theme-night .drip-pill--green { color: #86EFAC; }
html.theme-night .drip-pill--paused, html.theme-night .drip-pill--amber { color: #FCD34D; }
html.theme-night .drip-pill--completed, html.theme-night .drip-pill--teal { color: #5EEAD4; }
html.theme-night .drip-pill--blue { color: #93C5FD; }
html.theme-night .drip-timer--cap .drip-timer__value, html.theme-night .drip-card--stopped .drip-card__meta { color: #FCD34D; }
/* theme-night.css paints every [class*="-card"] / [class*="-panel"] as a card; keep the drip's own surfaces */
html.theme-night .drip-hud [class*="drip-card__"] { background-color: transparent; border-color: transparent; box-shadow: none; }
html.theme-night .drip-hud .drip-card { background: var(--d-card); border-color: transparent; box-shadow: inset 0 0 0 1px var(--d-line), inset 0 1px 0 var(--d-hi), 0 1px 2px rgba(0,0,0,.25), 0 12px 26px -20px rgba(0,0,0,.8); }
html.theme-night .drip-hud .drip-card__foot { border-top-color: var(--d-line); }
html.theme-night .drip-hud .drip-card:hover { box-shadow: inset 0 0 0 1px var(--d-line-strong), 0 10px 22px -14px rgba(0,0,0,.7); }
html.theme-night .drip-hud .drip-card__avatar { background: color-mix(in srgb, var(--tone, #0D9488) 18%, transparent); }
html.theme-night .drip-col--teal { --tone: #2DD4BF; }
html.theme-night .drip-col--blue { --tone: #60A5FA; }
html.theme-night .drip-col--green { --tone: #4ADE80; }
html.theme-night .drip-col--amber { --tone: #FBBF24; }
html.theme-night .drip-col--slate { --tone: #94A3B8; }
html.theme-night .drip-hud__error { color: #FCA5A5; background: rgba(239,68,68,.1); }
html.theme-night .drip-hud__elsewhere { color: rgba(226,232,240,.78); background: linear-gradient(180deg, rgba(45,212,191,.09), rgba(45,212,191,.04)); box-shadow: inset 0 0 0 1px rgba(45,212,191,.18), inset 0 1px 0 rgba(255,255,255,.04); }
html.theme-night .drip-hud__elsewhere strong { color: #F1F5F9; }

/* Narrow screens */
@media (max-width: 1100px) {
  .drip-hud__bar { grid-template-columns: minmax(0, 1fr) auto; }
  .drip-timer { grid-column: 1 / -1; grid-row: 2; text-align: left; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .drip-timer__value { min-height: 0; line-height: 1.1; font-size: 24px; }
  .drip-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drip-col { min-width: 280px; }
}
@media (max-width: 640px) {
  .drip-hud { border-radius: 16px; }
  .drip-hud__eyebrow { white-space: nowrap; font-size: 10px; letter-spacing: .06em; gap: 6px; }
  .drip-hud__bar { padding: 18px 16px 14px; gap: 14px; }
  .drip-hud__name { font-size: 19px; }
  .drip-btn span { display: none; }
  .drip-btn { width: 40px; padding: 0; justify-content: center; }
  .drip-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 16px 18px; gap: 10px; }
  .drip-metric { padding: 14px 16px; }
  .drip-metric__value { font-size: 24px; }
  .drip-hud__error, .drip-hud__elsewhere { margin-left: 16px; margin-right: 16px; }
  .drip-metric--cap { grid-column: 1 / -1; }
  .drip-hud__drawer { padding: 16px 16px 18px; }
  .drip-lock { display: none; }
  .drip-board { gap: 12px; scroll-snap-type: x mandatory; }
  .drip-col { flex: 0 0 86%; min-width: 0; scroll-snap-align: start; }
  .drip-col--none { flex: 0 0 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .drip-hud.is-entering, .drip-hud--running .drip-hud__beacon::after, .drip-dots i { animation: none; }
  .drip-card:hover { transform: none; }
  .drip-col { transition: none; }
}


/* Quick reply WhatsApp button (cards + list rows) */
.drip-wa {
  --wa: #1FA855;
  flex: 0 0 34px; width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: 11px; cursor: pointer;
  color: var(--wa);
  background: linear-gradient(180deg, rgba(37,211,102,.14), rgba(37,211,102,.08));
  box-shadow: inset 0 0 0 1px rgba(31,168,85,.18), inset 0 1px 0 rgba(255,255,255,.55);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .25s cubic-bezier(.2,.8,.2,1), background .25s cubic-bezier(.2,.8,.2,1);
}
.drip-wa svg { fill: currentColor; display: block; }
.drip-wa:hover {
  background: linear-gradient(180deg, rgba(37,211,102,.22), rgba(37,211,102,.13));
  box-shadow: inset 0 0 0 1px rgba(31,168,85,.3), inset 0 1px 0 rgba(255,255,255,.6), 0 6px 14px -8px rgba(31,168,85,.55);
  transform: translateY(-1px);
}
.drip-wa:active { transform: scale(.93); transition-duration: .08s; }
.drip-wa:focus-visible { outline: 2px solid rgba(37,211,102,.55); outline-offset: 2px; }
.drip-list__act { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
html.theme-night .drip-hud .drip-wa {
  --wa: #4ADE80;
  background: linear-gradient(180deg, rgba(37,211,102,.16), rgba(37,211,102,.08));
  box-shadow: inset 0 0 0 1px rgba(74,222,128,.2), inset 0 1px 0 rgba(255,255,255,.05);
}
html.theme-night .drip-hud .drip-wa:hover {
  background: linear-gradient(180deg, rgba(37,211,102,.24), rgba(37,211,102,.12));
  box-shadow: inset 0 0 0 1px rgba(74,222,128,.34), inset 0 1px 0 rgba(255,255,255,.07), 0 8px 18px -10px rgba(37,211,102,.6);
}
@media (prefers-reduced-motion: reduce) { .drip-wa, .drip-wa:hover, .drip-wa:active { transform: none; } }

/* Remove a person who has not been messaged (queued + stopped cards, list rows) */
.drip-remove {
  flex: 0 0 28px; width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: 9px; cursor: pointer;
  color: rgba(15,23,42,.42);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(241,245,249,.8));
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.7);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), color .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s cubic-bezier(.2,.8,.2,1), background .25s cubic-bezier(.2,.8,.2,1);
}
.drip-remove svg { display: block; }
.drip-remove:hover {
  color: #DC2626;
  background: linear-gradient(180deg, rgba(254,242,242,.95), rgba(254,226,226,.7));
  box-shadow: inset 0 0 0 1px rgba(220,38,38,.2), inset 0 1px 0 rgba(255,255,255,.7), 0 6px 14px -9px rgba(220,38,38,.5);
  transform: translateY(-1px);
}
.drip-remove:active { transform: scale(.92); transition-duration: .08s; }
.drip-remove:focus-visible { outline: 2px solid rgba(220,38,38,.45); outline-offset: 2px; }
html.theme-night .drip-hud .drip-remove {
  color: rgba(226,232,240,.5);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 1px 0 rgba(255,255,255,.05);
}
html.theme-night .drip-hud .drip-remove:hover {
  color: #F87171;
  background: linear-gradient(180deg, rgba(248,113,113,.16), rgba(248,113,113,.08));
  box-shadow: inset 0 0 0 1px rgba(248,113,113,.28), inset 0 1px 0 rgba(255,255,255,.06), 0 8px 18px -10px rgba(248,113,113,.55);
}
@media (prefers-reduced-motion: reduce) { .drip-remove, .drip-remove:hover, .drip-remove:active { transform: none; } }

/* ---------- Campaigns page shell ----------
   Class names avoid "-card", "-panel" and "-tile": theme-night.css paints any of those as a card. */
.wac {
  --d-surface: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.90));
  --d-card: #fff;
  --d-line: rgba(15,23,42,.07);
  --d-line-strong: rgba(15,23,42,.11);
  --d-hi: rgba(255,255,255,.95);
  --d-txt: #0F172A;
  --d-txt-2: #475569;
  --d-txt-3: #94A3B8;
  --d-teal: #0D9488;
  --d-teal-soft: rgba(13,148,136,.10);
  --d-shadow: 0 1px 2px rgba(15,23,42,.04), 0 18px 40px -24px rgba(15,23,42,.28);
  --d-ease: cubic-bezier(.2,.8,.2,1);
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 32px 56px;
  color: var(--d-txt);
}
html.theme-night .wac {
  --d-surface: linear-gradient(180deg, rgba(17,27,46,.86), rgba(11,19,34,.86));
  --d-card: rgba(22,33,54,.95);
  --d-line: rgba(255,255,255,.07);
  --d-line-strong: rgba(255,255,255,.12);
  --d-hi: rgba(255,255,255,.04);
  --d-txt: #F1F5F9;
  --d-txt-2: rgba(203,213,225,.82);
  --d-txt-3: rgba(148,163,184,.72);
  --d-teal: #5EEAD4;
  --d-teal-soft: rgba(94,234,212,.10);
  --d-shadow: 0 24px 50px -28px rgba(0,0,0,.7), 0 0 0 1px rgba(94,234,212,.04);
}

.wac-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.wac-head__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--d-teal); }
.wac-head__eyebrow svg { width: 15px; height: 15px; fill: currentColor; }
.wac-head__title { margin: 6px 0 4px; font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -.025em; color: var(--d-txt); }
.wac-head__sub { margin: 0; max-width: 620px; font-size: 14px; line-height: 1.55; color: var(--d-txt-2); }
.wac-head__actions { display: flex; align-items: center; gap: 10px; }

.wac-back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px;
  height: 30px; padding: 0 10px 0 6px; border: 0; border-radius: 9px;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--d-txt-2);
  background: transparent; cursor: pointer;
  transition: background .2s var(--d-ease), color .2s var(--d-ease), transform .12s var(--d-ease);
}
.wac-back:hover { color: var(--d-txt); background: var(--d-line); }
.wac-back:active { transform: scale(.96); }
.wac-back svg { width: 15px; height: 15px; }

/* Shared 24h allowance strip */
.wac-allow {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: 16px 20px; margin-bottom: 22px; border-radius: 18px;
  background: var(--d-surface);
  box-shadow: inset 0 0 0 1px var(--d-line), inset 0 1px 0 var(--d-hi), var(--d-shadow);
  backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%);
}
.wac-allow__num { font-size: 26px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.wac-allow__num small { font-size: 14px; font-weight: 500; color: var(--d-txt-3); letter-spacing: 0; }
.wac-allow__label { font-size: 12px; font-weight: 600; color: var(--d-txt-3); letter-spacing: .02em; }
.wac-allow__meter { height: 6px; border-radius: 99px; background: rgba(15,23,42,.06); overflow: hidden; }
.wac-allow__meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #14B8A6, #0D9488); transition: width .6s var(--d-ease); }
.wac-allow__note { font-size: 13px; line-height: 1.45; color: var(--d-txt-2); text-align: right; max-width: 320px; }
html.theme-night .wac-allow__meter { background: rgba(255,255,255,.07); }

.wac-connect {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 18px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.5; color: #92400E;
  background: linear-gradient(180deg, rgba(245,158,11,.10), rgba(245,158,11,.05));
  box-shadow: inset 0 0 0 1px rgba(245,158,11,.22);
}
.wac-connect strong { color: #78350F; }
html.theme-night .wac-connect { color: rgba(253,230,138,.85); }
html.theme-night .wac-connect strong { color: #FDE68A; }

/* Campaign grid */
.wac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.wac-camp {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 18px 18px 16px; border: 0; border-radius: 18px; text-align: left;
  font: inherit; color: var(--d-txt);
  background: var(--d-surface);
  box-shadow: inset 0 0 0 1px var(--d-line), inset 0 1px 0 var(--d-hi), var(--d-shadow);
  cursor: pointer;
  transition: transform .35s var(--d-ease), box-shadow .35s var(--d-ease);
  animation: wac-rise .5s var(--d-ease) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
.wac-camp:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--d-line-strong), inset 0 1px 0 var(--d-hi), 0 26px 50px -26px rgba(15,23,42,.38); }
.wac-camp:active { transform: scale(.985); transition-duration: .1s; }
.wac-camp:focus-visible { outline: 2px solid rgba(13,148,136,.55); outline-offset: 3px; }
.wac-camp--running { box-shadow: inset 0 0 0 1px rgba(13,148,136,.28), inset 0 1px 0 var(--d-hi), 0 22px 44px -26px rgba(13,148,136,.55); }
.wac-camp__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wac-camp__name { font-size: 16px; font-weight: 650; letter-spacing: -.015em; line-height: 1.3; }
.wac-camp__tpl { margin-top: 3px; font-size: 12.5px; color: var(--d-txt-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px; }
.wac-camp__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wac-stat__v { font-size: 20px; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.wac-stat__v small { font-size: 12px; font-weight: 500; color: var(--d-txt-3); }
.wac-stat__l { margin-top: 1px; font-size: 11.5px; font-weight: 600; color: var(--d-txt-3); letter-spacing: .02em; }
.wac-camp__bar { height: 5px; border-radius: 99px; background: rgba(15,23,42,.06); overflow: hidden; display: flex; }
.wac-camp__bar i { display: block; height: 100%; transition: width .6s var(--d-ease); }
.wac-camp__bar .s { background: #14B8A6; }
.wac-camp__bar .p { background: #22C55E; }
html.theme-night .wac-camp__bar { background: rgba(255,255,255,.07); }
.wac-camp__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--d-txt-3); }
.wac-camp__foot b { color: var(--d-txt-2); font-weight: 600; }
.drip-pill--draft, .drip-pill--archived, .drip-pill--slate { color: #475569; background: rgba(100,116,139,.09); box-shadow: inset 0 0 0 1px rgba(100,116,139,.2); }
.drip-pill--stopped { color: #B91C1C; background: rgba(239,68,68,.08); box-shadow: inset 0 0 0 1px rgba(239,68,68,.2); }
html.theme-night .drip-pill--draft, html.theme-night .drip-pill--archived, html.theme-night .drip-pill--slate { color: #CBD5E1; }
html.theme-night .drip-pill--stopped { color: #FCA5A5; }

/* Empty states */
.wac-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 56px 24px; border-radius: 20px;
  background: var(--d-surface);
  box-shadow: inset 0 0 0 1px var(--d-line), inset 0 1px 0 var(--d-hi), var(--d-shadow);
}
.wac-empty__icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; border-radius: 18px;
  color: #16A34A; background: linear-gradient(180deg, rgba(34,197,94,.14), rgba(34,197,94,.06));
  box-shadow: inset 0 0 0 1px rgba(34,197,94,.22), inset 0 1px 0 rgba(255,255,255,.6);
}
.wac-empty__icon svg { width: 26px; height: 26px; fill: currentColor; }
html.theme-night .wac-empty__icon { color: #4ADE80; box-shadow: inset 0 0 0 1px rgba(74,222,128,.22); }
.wac-empty__title { font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.wac-empty__text { max-width: 440px; font-size: 14px; line-height: 1.55; color: var(--d-txt-2); }
.wac-empty .drip-btn { margin-top: 8px; }

/* Detail extras */
.wac--detail { max-width: 1760px; }
.wac-hud-wrap { margin-top: 4px; }
.wac-hud-wrap .drip-hud { margin: 0; }
.wac-detail-empty { margin-top: 16px; }
.drip-hud__name { cursor: text; border-radius: 6px; transition: background .2s var(--d-ease); }
.drip-hud__name:hover { background: var(--d-line); }
.drip-hud__name[contenteditable="true"] { outline: 2px solid rgba(13,148,136,.45); outline-offset: 2px; background: var(--d-card); }
.drip-btn--danger:hover { color: #B91C1C; box-shadow: inset 0 0 0 1px rgba(239,68,68,.3); background: rgba(239,68,68,.04); }
.drip-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* Move to pipeline, on Replied cards */
.drip-move {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0;
  height: 34px; padding: 0 14px; border: 0; border-radius: 11px;
  font: inherit; font-size: 13px; font-weight: 650; letter-spacing: -.005em;
  color: #15803D; background: rgba(34,197,94,.10);
  box-shadow: inset 0 0 0 1px rgba(34,197,94,.24);
  cursor: pointer;
  transition: transform .12s var(--d-ease), background .2s var(--d-ease), box-shadow .2s var(--d-ease);
}
.drip-move:hover { background: rgba(34,197,94,.16); box-shadow: inset 0 0 0 1px rgba(34,197,94,.4), 0 6px 14px -8px rgba(22,163,74,.6); }
.drip-move:active { transform: scale(.95); }
.drip-move:focus-visible { outline: 2px solid rgba(34,197,94,.55); outline-offset: 2px; }
.drip-move svg { width: 14px; height: 14px; }
.drip-move.is-done { color: var(--d-txt-3); background: transparent; box-shadow: inset 0 0 0 1px var(--d-line); cursor: default; }
html.theme-night .drip-hud .drip-move { color: #86EFAC; background: rgba(74,222,128,.10); box-shadow: inset 0 0 0 1px rgba(74,222,128,.24); }
html.theme-night .drip-hud .drip-move.is-done { color: var(--d-txt-3); background: transparent; box-shadow: inset 0 0 0 1px var(--d-line); }

/* Modals (sit on the app's .modal shell) */
.wac-form { display: flex; flex-direction: column; gap: 16px; }
.wac-field { display: flex; flex-direction: column; gap: 6px; }
.wac-field > span { font-size: 12.5px; font-weight: 600; color: var(--d-txt-2, #475569); }
.wac-field input, .wac-field select, .wac-field textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 11px;
  font: inherit; font-size: 14px; line-height: 1.5; color: inherit;
  background: var(--d-card, #fff); border: 1px solid var(--d-line-strong, rgba(15,23,42,.11));
  transition: border-color .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s cubic-bezier(.2,.8,.2,1);
}
.wac-field textarea { min-height: 128px; resize: vertical; }
.wac-field input:focus, .wac-field select:focus, .wac-field textarea:focus { outline: 0; border-color: rgba(13,148,136,.55); box-shadow: 0 0 0 4px rgba(13,148,136,.12); }
.wac-hint { font-size: 12px; line-height: 1.5; color: var(--d-txt-3, #94A3B8); }
/* Message composer: placeholder picker + live preview */
.wac-compose { display: flex; flex-direction: column; gap: 8px; }
.wac-compose__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wac-compose__label { font-size: 12.5px; font-weight: 600; color: var(--d-txt-2, #475569); }
.wac-insert {
  appearance: none; -webkit-appearance: none; height: 28px; max-width: 60%; padding: 0 28px 0 11px; border: 0; border-radius: 9px;
  font: inherit; font-size: 12px; font-weight: 600; color: #0F766E; cursor: pointer;
  background: rgba(13,148,136,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230F766E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  box-shadow: inset 0 0 0 1px rgba(13,148,136,.2);
  transition: transform .12s cubic-bezier(.2,.8,.2,1), background-color .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s cubic-bezier(.2,.8,.2,1);
}
.wac-insert:hover { background-color: rgba(13,148,136,.14); }
.wac-insert:active { transform: scale(.97); }
.wac-insert:focus-visible { outline: 0; box-shadow: inset 0 0 0 1px rgba(13,148,136,.55), 0 0 0 4px rgba(13,148,136,.12); }
.wac-compose textarea {
  width: 100%; box-sizing: border-box; min-height: 128px; resize: vertical; padding: 10px 12px; border-radius: 11px;
  font: inherit; font-size: 14px; line-height: 1.5; color: inherit;
  background: var(--d-card, #fff); border: 1px solid var(--d-line-strong, rgba(15,23,42,.11));
  transition: border-color .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s cubic-bezier(.2,.8,.2,1);
}
.wac-compose textarea:focus { outline: 0; border-color: rgba(13,148,136,.55); box-shadow: 0 0 0 4px rgba(13,148,136,.12); }

.wac-preview { margin-top: 6px; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--d-line-strong, rgba(15,23,42,.11)); }
.wac-preview__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 14px;
  background: rgba(248,250,252,.9); box-shadow: inset 0 -1px 0 rgba(15,23,42,.06);
}
.wac-preview__label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--d-txt-3, #94A3B8); }
.wac-preview__who { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: var(--d-txt-3, #94A3B8); }
.wac-preview__who select {
  appearance: none; -webkit-appearance: none; min-width: 0; max-width: 220px; height: 26px; padding: 0 26px 0 10px; border: 0; border-radius: 8px;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--d-txt, #0F172A); cursor: pointer; text-overflow: ellipsis;
  background: var(--d-card, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 9px center;
  box-shadow: inset 0 0 0 1px var(--d-line-strong, rgba(15,23,42,.11)), 0 1px 2px rgba(15,23,42,.04);
  transition: transform .12s cubic-bezier(.2,.8,.2,1);
}
.wac-preview__who select:active { transform: scale(.97); }
.wac-preview__who select:focus-visible { outline: 0; box-shadow: inset 0 0 0 1px rgba(13,148,136,.55), 0 0 0 4px rgba(13,148,136,.12); }
.wac-preview__stage { padding: 14px 14px 16px; background: #EFEAE2; max-height: 240px; overflow-y: auto; }
.wac-bubble {
  position: relative; width: fit-content; max-width: 88%; margin-left: auto; padding: 7px 10px 6px; border-radius: 10px 2px 10px 10px;
  font-size: 13.5px; line-height: 1.45; color: #111B21; background: #D9FDD3;
  box-shadow: 0 1px .5px rgba(11,20,26,.13); white-space: pre-wrap; overflow-wrap: anywhere;
  transition: opacity .2s cubic-bezier(.2,.8,.2,1);
}
.wac-bubble.is-loading { opacity: .5; }
.wac-bubble__empty { color: rgba(17,27,33,.45); font-style: italic; }
.wac-bubble__meta { display: inline-flex; align-items: center; gap: 3px; float: right; margin: 6px 0 -2px 10px; font-size: 10.5px; color: rgba(17,27,33,.45); white-space: nowrap; }
.wac-bubble__meta svg { width: 15px; height: 10px; color: #53BDEB; }
.wac-fill { color: inherit; background: rgba(13,148,136,.16); border-radius: 4px; padding: 0 2px; box-shadow: inset 0 -1px 0 rgba(13,148,136,.45); }
.wac-fill--empty { color: #B45309; background: rgba(245,158,11,.16); box-shadow: inset 0 0 0 1px rgba(245,158,11,.4); font-size: .92em; }
.wac-fill--bad { color: #B91C1C; background: rgba(239,68,68,.12); box-shadow: inset 0 0 0 1px rgba(239,68,68,.35); font-size: .92em; }
.wac-preview__note { display: flex; flex-direction: column; gap: 4px; padding: 9px 14px; font-size: 12px; line-height: 1.45; background: rgba(248,250,252,.9); box-shadow: inset 0 1px 0 rgba(15,23,42,.06); }
.wac-preview__note:empty { display: none; }
.wac-note { display: flex; align-items: baseline; gap: 7px; }
.wac-note::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; transform: translateY(-1px); background: currentColor; }
.wac-note--ok { color: #0F766E; }
.wac-note--warn { color: #B45309; }
.wac-note--bad { color: #B91C1C; }

/* theme-night.css forces `select { background: #0c1922 !important }`, so restate the full shorthand */
html.theme-night .wac-insert { color: #5EEAD4 !important; border: 0 !important; box-shadow: inset 0 0 0 1px rgba(94,234,212,.2) !important;
  background: rgba(94,234,212,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235EEAD4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center !important; }
html.theme-night .wac-insert:hover { background-color: rgba(94,234,212,.14) !important; }
html.theme-night .wac-insert option, html.theme-night .wac-insert optgroup, html.theme-night .wac-field select option, html.theme-night .wac-field select optgroup, html.theme-night .wac-preview__who option { color: #0F172A; background: #fff; }
html.theme-night .wac-preview__head, html.theme-night .wac-preview__note { background: rgba(255,255,255,.03); box-shadow: inset 0 -1px 0 rgba(255,255,255,.06); }
html.theme-night .wac-preview__note { box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
html.theme-night .wac-preview__who select { color: #E2E8F0 !important; border: 0 !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12) !important;
  background: rgba(255,255,255,.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 9px center !important; }
html.theme-night .wac-preview__stage { background: #0B141A; }
html.theme-night .wac-bubble { color: #E9EDEF; background: #005C4B; box-shadow: 0 1px .5px rgba(0,0,0,.3); }
html.theme-night .wac-bubble__empty, html.theme-night .wac-bubble__meta { color: rgba(233,237,239,.55); }
html.theme-night .wac-fill { background: rgba(94,234,212,.18); box-shadow: inset 0 -1px 0 rgba(94,234,212,.5); }
html.theme-night .wac-fill--empty { color: #FCD34D; background: rgba(245,158,11,.18); box-shadow: inset 0 0 0 1px rgba(252,211,77,.4); }
html.theme-night .wac-fill--bad { color: #FCA5A5; background: rgba(239,68,68,.18); box-shadow: inset 0 0 0 1px rgba(252,165,165,.4); }
html.theme-night .wac-note--ok { color: #5EEAD4; }
html.theme-night .wac-note--warn { color: #FCD34D; }
html.theme-night .wac-note--bad { color: #FCA5A5; }
@media (prefers-reduced-motion: reduce) { .wac-insert, .wac-preview__who select, .wac-bubble { transition: none; } }

.wac-pick { display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow-y: auto; margin: 0 -4px; padding: 2px 4px; }
.wac-pick__opt {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: 13px; text-align: left;
  font: inherit; color: inherit; background: var(--d-card, #fff);
  box-shadow: inset 0 0 0 1px var(--d-line-strong, rgba(15,23,42,.11));
  cursor: pointer; transition: box-shadow .2s cubic-bezier(.2,.8,.2,1), transform .12s cubic-bezier(.2,.8,.2,1);
}
.wac-pick__opt:hover { box-shadow: inset 0 0 0 1px rgba(13,148,136,.35); }
.wac-pick__opt:active { transform: scale(.985); }
.wac-pick__opt.is-on { box-shadow: inset 0 0 0 1.5px #0D9488, 0 8px 20px -14px rgba(13,148,136,.8); }
.wac-pick__opt[disabled] { opacity: .5; cursor: not-allowed; }
.wac-pick__radio { flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--d-line-strong, rgba(15,23,42,.2)); transition: box-shadow .2s cubic-bezier(.2,.8,.2,1); }
.wac-pick__opt.is-on .wac-pick__radio { box-shadow: inset 0 0 0 5px #0D9488; }
.wac-pick__main { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; }
.wac-pick__name { display: block; font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.wac-pick__meta { display: block; margin-top: 2px; font-size: 12px; color: var(--d-txt-3, #94A3B8); }
.wac-pick__new .wac-pick__name { color: #0D9488; }
html.theme-night .wac-pick__new .wac-pick__name { color: #5EEAD4; }
.wac-summary {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
  font-size: 13px; line-height: 1.5; color: var(--d-txt-2, #475569);
  background: rgba(13,148,136,.06); box-shadow: inset 0 0 0 1px rgba(13,148,136,.14);
}
.wac-summary b { color: var(--d-txt, #0F172A); }
.wac-modal .modal { --d-card: #fff; --d-line-strong: rgba(15,23,42,.11); --d-txt: #0F172A; --d-txt-2: #475569; --d-txt-3: #94A3B8; max-width: 560px; width: 100%; }
html.theme-night .wac-modal .modal { --d-card: rgba(255,255,255,.04); --d-line-strong: rgba(255,255,255,.12); --d-txt: #F1F5F9; --d-txt-2: rgba(203,213,225,.82); --d-txt-3: rgba(148,163,184,.72); }

/* Validation lives inside the modal, beside the thing to fix */
.wac-field input.is-invalid, .wac-field select.is-invalid, .wac-compose textarea.is-invalid {
  border-color: rgba(220,38,38,.55); box-shadow: 0 0 0 4px rgba(220,38,38,.12);
  animation: wac-nudge .36s cubic-bezier(.2,.8,.2,1);
}
.wac-field-err, .wac-modal-err {
  display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; font-weight: 500; line-height: 1.45; color: #B91C1C;
  animation: wac-rise .28s cubic-bezier(.2,.8,.2,1);
}
.wac-field-err::before, .wac-modal-err::before {
  content: "!"; flex: none; width: 15px; height: 15px; margin-top: 1px; border-radius: 50%;
  display: grid; place-items: center; font-size: 10px; font-weight: 800; line-height: 1; color: #fff; background: #DC2626;
}
.wac-modal .modal-footer { flex-wrap: wrap; }
.wac-modal-err {
  flex: 1 0 100%; order: -1; box-sizing: border-box; padding: 10px 12px; border-radius: 11px;
  background: rgba(220,38,38,.06); box-shadow: inset 0 0 0 1px rgba(220,38,38,.18);
}
.wac-modal-err[hidden] { display: none; }
html.theme-night .wac-field input.is-invalid, html.theme-night .wac-field select.is-invalid, html.theme-night .wac-compose textarea.is-invalid {
  border-color: rgba(248,113,113,.6) !important; box-shadow: 0 0 0 4px rgba(248,113,113,.14) !important;
}
html.theme-night .wac-field-err, html.theme-night .wac-modal-err { color: #FCA5A5; }
html.theme-night .wac-field-err::before, html.theme-night .wac-modal-err::before { background: #EF4444; color: #1a0b0b; }
html.theme-night .wac-modal-err { background: rgba(248,113,113,.08); box-shadow: inset 0 0 0 1px rgba(248,113,113,.22); }
@keyframes wac-nudge { 0%, 100% { transform: none; } 30% { transform: translateX(-4px); } 60% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) {
  .wac-field input.is-invalid, .wac-field select.is-invalid, .wac-compose textarea.is-invalid, .wac-field-err, .wac-modal-err { animation: none; }
}

@keyframes wac-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .wac { padding: 18px 16px 40px; }
  .wac-head__title { font-size: 24px; }
  .wac-allow { grid-template-columns: 1fr; gap: 10px; }
  .wac-allow__note { text-align: left; max-width: none; }
  .wac-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .wac-camp, .wac-camp:hover, .wac-camp:active { animation: none; transform: none; }
}

/* Night hierarchy: keep secondary card text quiet */
html.theme-night .drip-hud .drip-card .drip-card__phone,
html.theme-night .drip-hud .drip-card .drip-card__meta { color: var(--d-txt-3); }

/* Vault "Add to campaign" modal: composer spacing + success state */
.wac-new { display: flex; flex-direction: column; gap: 14px; }
.wac-done-modal { max-width: 460px !important; }
.wac-done {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 40px 32px 28px;
  animation: wac-rise .42s cubic-bezier(.2,.8,.2,1) both;
}
.wac-done__mark {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: radial-gradient(120% 120% at 30% 20%, #2DD4BF 0%, #0D9488 70%);
  box-shadow: 0 14px 30px -12px rgba(13,148,136,.55), inset 0 1px 0 rgba(255,255,255,.35), 0 0 0 8px rgba(13,148,136,.08);
  animation: wac-pop .5s cubic-bezier(.2,.8,.2,1) .06s both;
}
.wac-done__mark svg { width: 30px; height: 30px; }
.wac-done__mark path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: wac-tick .38s cubic-bezier(.2,.8,.2,1) .28s forwards; }
.wac-done__title { margin: 22px 0 0; font-size: 20px; font-weight: 650; letter-spacing: -.015em; line-height: 1.25; color: var(--d-txt, #0F172A); }
.wac-done__sub { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--d-txt-2, #475569); max-width: 360px; }
.wac-done__sub b { font-weight: 600; color: var(--d-txt, #0F172A); }
.wac-done__hint { margin: 14px 0 0; padding: 9px 14px; border-radius: 12px; font-size: 12.5px; line-height: 1.45; color: var(--d-txt-3, #64748B); background: rgba(15,23,42,.035); box-shadow: inset 0 0 0 1px rgba(15,23,42,.06); }
.wac-done__actions { display: flex; gap: 10px; justify-content: center; margin-top: 26px; width: 100%; }
.wac-done__actions .btn { min-width: 150px; justify-content: center; transition: transform .12s cubic-bezier(.2,.8,.2,1); }
.wac-done__actions .btn:active { transform: scale(.97); }
@keyframes wac-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes wac-tick { to { stroke-dashoffset: 0; } }
html.theme-night .wac-done__title, html.theme-night .wac-done__sub b { color: #F1F5F9; }
html.theme-night .wac-done__sub { color: rgba(203,213,225,.82); }
html.theme-night .wac-done__hint { color: rgba(148,163,184,.8); background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
html.theme-night .wac-done__mark { box-shadow: 0 14px 30px -12px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 8px rgba(94,234,212,.08); }
@media (max-width: 520px) { .wac-done__actions { flex-direction: column-reverse; } .wac-done__actions .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .wac-done, .wac-done__mark { animation: none; }
  .wac-done__mark path { animation: none; stroke-dashoffset: 0; }
}

/* Embedded in the Inbox: channel chips replace the page title */
.wac-head--embed { align-items: center; margin-bottom: 20px; }
.wac-head__lead { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wac-chans { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wac-chan {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: -.005em; color: var(--d-txt-3);
  background: transparent; box-shadow: inset 0 0 0 1px var(--d-line-strong); user-select: none;
}
.wac-chan svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.wac-chan.is-active {
  color: var(--d-txt); background: linear-gradient(180deg, rgba(37,211,102,.12), rgba(37,211,102,.06));
  box-shadow: inset 0 0 0 1px rgba(37,211,102,.30), inset 0 1px 0 rgba(255,255,255,.6);
}
.wac-chan.is-active svg { color: #25D366; }
.wac-chan.is-soon { cursor: default; }
a.wac-chan--ig { text-decoration: none; cursor: pointer; transition: color .2s, background .2s, transform .14s cubic-bezier(.2,.8,.2,1); }
a.wac-chan--ig svg { fill: none; }
a.wac-chan--ig:hover { color: var(--d-txt); background: rgba(225,48,108,.08); }
a.wac-chan--ig:active { transform: scale(.96); }
.wac-chan em {
  font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 5px; color: var(--d-txt-3); background: rgba(148,163,184,.14);
}
html.theme-night .wac-chan.is-active {
  background: linear-gradient(180deg, rgba(37,211,102,.16), rgba(37,211,102,.07));
  box-shadow: inset 0 0 0 1px rgba(37,211,102,.32), inset 0 1px 0 rgba(255,255,255,.06);
}
html.theme-night .wac-chan em { background: rgba(255,255,255,.06); }
/* theme-night forces span colour; restate the chip hierarchy at night specificity */
html.theme-night .wac-chan { color: var(--d-txt-3); }
html.theme-night .wac-chan.is-active { color: var(--d-txt); }

/* ================= Detail: LinkedIn style tabs (People, Sequence, Progress, Automations) ================= */
/* Board, people and chat buttons now live outside the HUD; restate the night surfaces for the tabbed panels */
html.theme-night .wac--wa.wac--detail .lic-tabpanel [class*="drip-card__"] { background-color: transparent; border-color: transparent; box-shadow: none; }
html.theme-night .wac--wa.wac--detail .lic-tabpanel .drip-card .drip-card__phone,
html.theme-night .wac--wa.wac--detail .lic-tabpanel .drip-card .drip-card__meta { color: var(--d-txt-3); }
html.theme-night .wac--wa.wac--detail .drip-wa {
  --wa: #4ADE80;
  background: linear-gradient(180deg, rgba(37,211,102,.16), rgba(37,211,102,.08));
  box-shadow: inset 0 0 0 1px rgba(74,222,128,.2), inset 0 1px 0 rgba(255,255,255,.05);
}
html.theme-night .wac--wa.wac--detail .drip-wa:hover {
  background: linear-gradient(180deg, rgba(37,211,102,.24), rgba(37,211,102,.12));
  box-shadow: inset 0 0 0 1px rgba(74,222,128,.34), inset 0 1px 0 rgba(255,255,255,.07), 0 8px 18px -10px rgba(37,211,102,.6);
}
html.theme-night .wac--wa.wac--detail .drip-move { color: #86EFAC; background: rgba(74,222,128,.10); box-shadow: inset 0 0 0 1px rgba(74,222,128,.24); }
html.theme-night .wac--wa.wac--detail .drip-move.is-done { color: var(--d-txt-3); background: transparent; box-shadow: inset 0 0 0 1px var(--d-line); }

/* Eyebrow mark in WhatsApp green instead of LinkedIn blue */
.wac--wa.wac--detail .lic-eyebrow-ic { color: #25D366; }
.wac--wa.wac--detail .lic-eyebrow-ic svg { fill: currentColor; }

/* People rows: chat, pipeline and remove sit side by side */
.wac--wa.wac--detail .lic-person { grid-template-columns: 34px minmax(170px, 1.6fr) 112px minmax(110px, .8fr) minmax(118px, .9fr) minmax(118px, .9fr) 64px minmax(84px, auto); }
.wac--wa.wac--detail .lic-person__acts { display: flex; justify-content: flex-end; gap: 6px; grid-template-columns: none; }
.wac--wa.wac--detail .lic-person__acts .drip-wa,
.wac--wa.wac--detail .lic-person__acts .drip-move { opacity: .7; transition: opacity .2s cubic-bezier(.2,.8,.2,1); }
.wac--wa.wac--detail .lic-person:hover .lic-person__acts > *,
.wac--wa.wac--detail .lic-person__acts > *:focus-visible { opacity: 1; }
@media (hover: none) { .wac--wa.wac--detail .lic-person__acts > * { opacity: 1; } }
@media (max-width: 1180px) {
  .wac--wa.wac--detail .lic-person { grid-template-columns: 34px minmax(160px, 1.5fr) 112px minmax(110px, .9fr) minmax(112px, .9fr) minmax(112px, .9fr) minmax(84px, auto); }
}
@media (max-width: 980px) {
  .wac--wa.wac--detail .lic-person { grid-template-columns: 34px minmax(150px, 1.4fr) 112px minmax(112px, 1fr) minmax(112px, 1fr) minmax(84px, auto); }
}
@media (max-width: 820px) {
  .wac--wa.wac--detail .lic-person { grid-template-columns: 34px minmax(0, 1fr) 112px minmax(108px, auto) minmax(84px, auto); }
}
@media (max-width: 640px) {
  .wac--wa.wac--detail .lic-person { grid-template-columns: 34px minmax(0, 1fr) auto; }
}

/* Sequence: the one WhatsApp message, shown as it will read */
.wac-seqcard {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px;
  margin-top: 14px; animation: dripFadeUp .45s cubic-bezier(.2,.8,.2,1) both;
}
.wac-seqcard__rail::after { display: none; }
.wac-seqcard__rail > span {
  color: #fff; background: linear-gradient(160deg, #3BE07F, #128C4A);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 6px 14px -8px rgba(18,140,74,.75);
}
.wac-seqcard__rail svg { width: 15px; height: 15px; fill: currentColor; }
.wac-seqcard__body {
  min-width: 0; padding: 16px 18px 14px; border-radius: 16px;
  background: var(--d-card, #fff);
  box-shadow: inset 0 0 0 1px var(--d-line), inset 0 1px 0 var(--d-hi), 0 1px 2px rgba(15,23,42,.04), 0 14px 30px -24px rgba(15,23,42,.35);
}
.wac-seqcard__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wac-seqcard__reach { font-size: 12px; color: var(--d-txt-3); font-variant-numeric: tabular-nums; }
.wac-seqcard__msg {
  position: relative; margin: 12px 0 0; padding: 12px 14px; max-width: 560px;
  border-radius: 4px 14px 14px 14px;
  font-size: 13.5px; line-height: 1.55; color: var(--d-txt); white-space: pre-wrap; overflow-wrap: anywhere;
  background: linear-gradient(180deg, rgba(37,211,102,.10), rgba(37,211,102,.06));
  box-shadow: inset 0 0 0 1px rgba(37,211,102,.22), inset 0 1px 0 rgba(255,255,255,.55);
}
.wac-seqcard__msg.is-empty { color: var(--d-txt-3); font-style: italic; background: var(--d-tile); box-shadow: inset 0 0 0 1px var(--d-line); }
.wac-seqcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.wac-seqcard__foot .drip-lock { margin: 0; }
html.theme-night .wac-seqcard__body { background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-line), inset 0 1px 0 var(--d-hi), 0 14px 30px -24px rgba(0,0,0,.8); }
html.theme-night .wac-seqcard__msg {
  background: linear-gradient(180deg, rgba(37,211,102,.14), rgba(37,211,102,.07));
  box-shadow: inset 0 0 0 1px rgba(74,222,128,.22), inset 0 1px 0 rgba(255,255,255,.05);
}
@media (max-width: 640px) {
  .wac-seqcard { grid-template-columns: minmax(0, 1fr); }
  .wac-seqcard__rail { display: none; }
  .wac-seqcard__body { padding: 14px; }
}

/* Paste numbers modal */
.wac-paste {
  min-height: 168px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; line-height: 1.6; font-variant-numeric: tabular-nums;
}

/* Safety panel: a counter without a cap shows a calm empty track */
.wac-allow__meter--none { background: transparent; box-shadow: inset 0 0 0 1px var(--d-line); }
.lic-safe__m.is-count .wac-allow__meter--none { opacity: .6; }

@media (prefers-reduced-motion: reduce) { .wac-seqcard { animation: none; } }

/* ==========================================================================
   WhatsApp accent on the shared LinkedIn layout
   The detail page, safety panel and People tab reuse LinkedIn's markup; these
   rules swap LinkedIn blue for WhatsApp teal, Day and Night. Instagram also
   carries .wac, so every rule excludes .igc.
   ========================================================================== */
.wac--wa.lic {
  --li-blue: #0D9488;
  --li-blue-deep: #0F766E;
  --li-soft: rgba(13,148,136,.10);
  --li-ring: rgba(13,148,136,.30);
}
html.theme-night .wac--wa.lic {
  --li-blue: #2DD4BF;
  --li-blue-deep: #0D9488;
  --li-soft: rgba(45,212,191,.13);
  --li-ring: rgba(45,212,191,.34);
}
.wac--wa.lic .lic-hud .drip-hud__beacon { background: linear-gradient(160deg, #2DD4BF, #0D9488 60%, #0F766E); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 22px -12px rgba(13,148,136,.75); }
.wac--wa.lic .lic-hud .drip-hud__beacon::before {
  background: center / 24px 24px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2a10 10 0 00-8.6 15.1L2 22l5-1.3A10 10 0 1012 2zm0 18.2a8.2 8.2 0 01-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1112 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 01-3.3-2.9c-.3-.4.3-.4.7-1.3a.5.5 0 000-.5l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 00-.7.3 3 3 0 00-.9 2.2 5.2 5.2 0 001.1 2.7 11.8 11.8 0 004.5 4c1.7.7 2.3.8 3.2.6a2.7 2.7 0 001.8-1.3 2.2 2.2 0 00.1-1.3c0-.1-.2-.2-.5-.3z'/%3E%3C/svg%3E");
}
.wac--wa.lic .lic-eyebrow-ic { box-shadow: 0 2px 6px -2px rgba(13,148,136,.6); }
.wac--wa.lic .lic-source:hover { box-shadow: inset 0 0 0 1px var(--li-ring), inset 0 1px 0 var(--d-hi), 0 8px 20px -14px rgba(13,148,136,.55); }
.wac--wa.lic .lic-seg__thumb,
.wac--wa.lic .lic-addpill--primary,
.wac--wa.lic .lic-cap .drip-seg button.is-on { background: linear-gradient(180deg, #14B8A6, var(--li-blue-deep)); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 10px -4px rgba(13,148,136,.7); }
.wac--wa.lic .lic-safe__badge { background: linear-gradient(160deg, #2DD4BF, #0D9488 60%, #0F766E); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 6px 14px -6px rgba(13,148,136,.55); }
.wac--wa.lic .lic-spin { border-color: rgba(13,148,136,.18); border-top-color: var(--li-blue); }
.wac--wa.lic .lic-auto-in:focus, .wac--wa.lic .lic-auto-in:focus-visible { box-shadow: 0 0 0 3px rgba(13,148,136,.14) !important; }
html.theme-night .wac--wa.lic .lic-tab[aria-selected="true"] .lic-tab__ic,
html.theme-night .wac--wa.lic .lic-strip__it i,
html.theme-night .wac--wa.lic .lic-addpill svg,
html.theme-night .wac--wa.lic .lic-recipe__cta,
html.theme-night .wac--wa.lic .lic-recipe__ic,
html.theme-night .wac--wa.lic .lic-chip svg,
html.theme-night .wac--wa.lic .lic-auto-act.is-on .lic-auto-act__ic,
html.theme-night .wac--wa.lic .lic-auto-link { color: #5EEAD4; }
html.theme-night .wac--wa.lic .lic-addpill--primary svg { color: #fff; }
.wac--wa.lic .lic-source--hero {
  background: linear-gradient(180deg, #14B8A6, #0D9488 60%, #0F766E);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 0 0 1px rgba(255,255,255,.06), 0 10px 24px -14px rgba(13,148,136,.85);
}
.wac--wa.lic .lic-source--hero:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 0 1px rgba(255,255,255,.1), 0 14px 28px -14px rgba(13,148,136,.95); }
.wac--wa.lic .lic-rule__tile { background: linear-gradient(180deg, #14B8A6, var(--li-blue-deep)); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 14px -8px rgba(13,148,136,.75); }
.wac--wa.lic .lic-step__rail > span { background: linear-gradient(160deg, #2DD4BF, var(--li-blue-deep)); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 6px 14px -8px rgba(13,148,136,.7); }

/* ---------- People held by another campaign (move them here) ---------- */
.wac-held {
  display: flex; align-items: center; gap: 14px;
  margin: 0 28px 20px;
  padding: 14px 16px 14px 14px;
  border-radius: 14px;
  color: #334155;
  background: linear-gradient(180deg, rgba(245,158,11,.075), rgba(245,158,11,.035));
  box-shadow: inset 0 0 0 1px rgba(245,158,11,.22), inset 0 1px 0 rgba(255,255,255,.65);
  -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
}
.drip-hud.is-entering .wac-held { animation: dripFadeUp .5s cubic-bezier(.2,.8,.2,1) both; }
.wac-held__ic {
  flex: none; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 10px;
  color: #B45309;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.55));
  box-shadow: inset 0 0 0 1px rgba(245,158,11,.25), 0 1px 2px rgba(15,23,42,.06);
}
.wac-held__ic svg { width: 15px; height: 15px; fill: currentColor; }
.wac-held__body { flex: 1; min-width: 0; }
.wac-held__title { font-size: 13px; line-height: 1.4; letter-spacing: -.005em; }
.wac-held__title strong { color: #0F172A; font-weight: 600; }
.wac-held__sub { margin-top: 2px; font-size: 12.5px; line-height: 1.5; color: #64748B; }
.wac-held__srcs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wac-held__src {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 4px 9px; border-radius: 999px;
  font-size: 11.5px; color: #475569;
  background: rgba(255,255,255,.7);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.08);
}
.wac-held__src b { font-weight: 600; color: #0F172A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.wac-held__src i { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; color: #B45309; }
.wac-held__src em { font-style: normal; color: #94A3B8; }
.wac-held__src.is-locked { opacity: .72; }
.wac-held__go { flex: none; white-space: nowrap; }
.wac-held--locked { background: linear-gradient(180deg, rgba(100,116,139,.07), rgba(100,116,139,.03)); box-shadow: inset 0 0 0 1px rgba(100,116,139,.18), inset 0 1px 0 rgba(255,255,255,.6); }
.wac-held--locked .wac-held__ic { color: #64748B; box-shadow: inset 0 0 0 1px rgba(100,116,139,.22), 0 1px 2px rgba(15,23,42,.06); }

html.theme-night .wac-held { color: rgba(226,232,240,.8); background: linear-gradient(180deg, rgba(251,191,36,.09), rgba(251,191,36,.04)); box-shadow: inset 0 0 0 1px rgba(251,191,36,.2), inset 0 1px 0 rgba(255,255,255,.04); }
html.theme-night .wac-held__title strong { color: #F1F5F9; }
html.theme-night .wac-held__sub { color: #94A3B8; }
html.theme-night .wac-held__ic { color: #FCD34D; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(251,191,36,.25); }
html.theme-night .wac-held__src { color: #CBD5E1; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
html.theme-night .wac-held__src b { color: #F1F5F9; }
html.theme-night .wac-held__src i { color: #FCD34D; }
html.theme-night .wac-held__src em { color: #64748B; }
html.theme-night .wac-held--locked { background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
html.theme-night .wac-held--locked .wac-held__ic { color: #94A3B8; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }

/* Finished without sending: the timer label reads as a warning, not a win */
.drip-hud--completed .drip-timer--done.wac-timer--none .drip-timer__label { color: #B45309; }
html.theme-night .drip-hud--completed .drip-timer--done.wac-timer--none .drip-timer__label { color: #FCD34D; }

@media (max-width: 720px) {
  .wac-held { flex-wrap: wrap; margin-left: 16px; margin-right: 16px; }
  .wac-held { align-items: flex-start; }
  .wac-held .wac-held__go { width: 100%; height: 40px; padding: 0 16px; justify-content: center; gap: 8px; }
  .wac-held .wac-held__go span { display: inline; }
  .wac-held .wac-held__go svg { width: 15px; height: 15px; flex: none; }
}
@media (prefers-reduced-motion: reduce) { .wac-held { animation: none !important; } }
@media (prefers-reduced-transparency: reduce) { .wac-held { -webkit-backdrop-filter: none; backdrop-filter: none; } }
