/* ========================================================================
   Components — all `wv-*` classes live here for the design phase.
   When stable, these will split into per-component CSS files.
   ======================================================================== */

/* ---------- card ---------- */
.wv-card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  padding: var(--space-5);
  position: relative;
  transition: border-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.wv-card--hoverable:hover {
  border-color: var(--gold-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.wv-card--accent {
  border-top: 3px solid var(--gold-500);
}
.wv-card--ornate::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 84px; height: 84px;
  background: radial-gradient(circle at top right, rgba(212,168,90,0.25) 0%, transparent 65%);
  pointer-events: none;
  border-top-right-radius: var(--radius-md);
}
.wv-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.wv-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  color: var(--ink-900);
  margin: 0;
}
.wv-card__subtitle {
  color: var(--ink-500);
  font-size: var(--fs-body-sm);
  font-weight: 400;
  font-family: var(--font-body);
  margin: 4px 0 0 0;
}

/* ---------- KPI / stat card ---------- */
.wv-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}
.wv-stat__label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--fs-caption);
  color: var(--ink-500);
  font-weight: 600;
}
.wv-stat__value {
  font-family: var(--font-display);
  font-size: var(--fs-display-md);
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1;
}
.wv-stat__delta {
  font-size: var(--fs-body-sm);
  color: var(--leaf-600);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.wv-stat__delta--down { color: var(--henna-500); }
.wv-stat__icon {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--gold-50);
  color: var(--gold-700);
  font-size: 20px;
}

/* ---------- pill / badge ---------- */
.wv-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--ivory-200);
  color: var(--ink-700);
  border: 1px solid var(--border-default);
}
.wv-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.wv-pill--draft    { background: var(--ivory-200); color: var(--ink-600); }
.wv-pill--ready    { background: var(--teal-50);   color: var(--teal-700); }
.wv-pill--queued   { background: var(--teal-100);  color: var(--teal-700); }
.wv-pill--sending  { background: var(--gold-100);  color: var(--gold-700); }
.wv-pill--paused   { background: var(--gold-50);   color: var(--gold-700); border-style: dashed; }
.wv-pill--completed{ background: var(--leaf-100);  color: var(--leaf-700); }
.wv-pill--failed   { background: var(--henna-100); color: var(--henna-700); }
.wv-pill--cancelled{ background: var(--mist-200);  color: var(--ink-500); }
.wv-pill--success  { background: var(--leaf-100);  color: var(--leaf-700); }
.wv-pill--warn     { background: var(--saffron-100);color: var(--henna-700); }
.wv-pill--mute     { background: var(--mist-200);  color: var(--ink-500); }
.wv-pill--danger   { background: var(--henna-100); color: var(--henna-700); }
.wv-pill--gold     { background: var(--gold-100);  color: var(--gold-700); }
.wv-pill--sent     { background: var(--teal-50);   color: var(--teal-700); }

.wv-pill--dot {
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}
.wv-pill--dot::before { opacity: 1; }
.wv-pill--icon::before { display: none; }
.wv-pill--icon > i { font-size: 16px; line-height: 1; }
.wv-pill--delivered{ background: var(--leaf-100);  color: var(--leaf-600); }
.wv-pill--read     { background: var(--leaf-100);  color: var(--leaf-700); border-color: var(--leaf-700); }
.wv-pill--replied  { background: var(--gold-100);  color: var(--gold-700); }

/* ---------- chip ---------- */
.wv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--ivory-200);
  border: 1px solid var(--border-default);
  font-size: var(--fs-body-sm);
  color: var(--ink-700);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
}
.wv-chip:hover { border-color: var(--gold-400); color: var(--ink-900); }
.wv-chip--active { background: var(--teal-900); color: var(--ivory-100); border-color: var(--teal-900); }
.wv-chip i { font-size: 14px; }

/* ---------- table card ---------- */
.wv-table-card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.wv-table-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-default);
  background: var(--ivory-200);
}
.wv-table-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  color: var(--ink-900);
}
.wv-table-card .table { margin: 0; }
.wv-table-card .table thead th { background: transparent; }

/* ---------- avatar ---------- */
.wv-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-900));
  color: var(--ivory-100);
  border: 2px solid var(--ivory-100);
  box-shadow: var(--shadow-xs);
  flex: none;
}
.wv-avatar--lg { width: 56px; height: 56px; font-size: 20px; }
.wv-avatar--xl { width: 88px; height: 88px; font-size: 32px; border-width: 3px; }
.wv-avatar--gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-700)); }
.wv-avatar--leaf { background: linear-gradient(135deg, var(--leaf-600), var(--leaf-700)); }
.wv-avatar--henna { background: linear-gradient(135deg, var(--henna-500), var(--henna-700)); }

/* ---------- skeleton ---------- */
@keyframes wv-shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.wv-skel {
  display: inline-block;
  height: 14px;
  width: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--mist-200) 25%, var(--ivory-200) 50%, var(--mist-200) 75%);
  background-size: 800px 100%;
  animation: wv-shimmer 1.4s linear infinite;
}

/* ---------- toast — global stack rendered by `components/toast/toast.js` ---------- */
.wv-toast-stack {
  position: fixed;
  top: calc(var(--header-height) + var(--space-3));
  right: var(--space-4);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}
.wv-toast {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: var(--space-3);
  align-items: center;
  width: min(420px, calc(100vw - var(--space-5)));
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-3);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  color: var(--ink-900);
  font-size: var(--fs-body-sm);
  pointer-events: auto;
  overflow: hidden;
  animation: wv-toast-in var(--t-base) var(--ease-out);
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.wv-toast.is-leaving {
  opacity: 0;
  transform: translateX(12px);
}
.wv-toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 20px;
  border-radius: var(--radius-pill);
}
.wv-toast__icon i { line-height: 1; }
.wv-toast__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.wv-toast__title {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--ink-900);
}
.wv-toast__message {
  color: var(--ink-700);
  line-height: 1.45;
  word-wrap: break-word;
}
.wv-toast__action {
  padding: var(--space-1) var(--space-2);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
  opacity: 0.85;
  cursor: pointer;
  transition: opacity var(--t-fast) var(--ease-out);
}
.wv-toast__action:hover { opacity: 1; }
.wv-toast__close {
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--ink-500);
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.wv-toast__close:hover { color: var(--ink-900); background: var(--surface-sunken); }
.wv-toast__close i { font-size: 14px; }
.wv-toast__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: currentColor;
  opacity: 0.45;
  transform-origin: left center;
  animation: wv-toast-countdown linear forwards;
}
.wv-toast--success {
  background: linear-gradient(180deg, var(--leaf-100), var(--surface-card) 60%);
  border-color: var(--leaf-100);
  color: var(--leaf-700);
}
.wv-toast--success .wv-toast__icon { color: var(--leaf-700); background: rgba(78, 107, 58, 0.12); }
.wv-toast--success .wv-toast__progress { color: var(--leaf-600); }
.wv-toast--warn {
  background: linear-gradient(180deg, var(--saffron-100), var(--surface-card) 60%);
  border-color: var(--saffron-100);
  color: var(--gold-700);
}
.wv-toast--warn .wv-toast__icon { color: var(--saffron-500); background: rgba(216, 137, 39, 0.14); }
.wv-toast--warn .wv-toast__progress { color: var(--saffron-500); }
.wv-toast--error {
  background: linear-gradient(180deg, var(--henna-100), var(--surface-card) 60%);
  border-color: var(--henna-100);
  color: var(--henna-700);
}
.wv-toast--error .wv-toast__icon { color: var(--henna-700); background: rgba(110, 42, 18, 0.10); }
.wv-toast--error .wv-toast__progress { color: var(--henna-500); }
.wv-toast--info {
  background: linear-gradient(180deg, var(--teal-50), var(--surface-card) 60%);
  border-color: var(--teal-100);
  color: var(--teal-700);
}
.wv-toast--info .wv-toast__icon { color: var(--teal-700); background: rgba(30, 100, 131, 0.12); }
.wv-toast--info .wv-toast__progress { color: var(--teal-500); }

@keyframes wv-toast-in {
  from { opacity: 0; transform: translateX(16px) scale(0.98); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes wv-toast-countdown {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

@media (max-width: 480px) {
  .wv-toast-stack {
    top: var(--space-3);
    right: var(--space-3);
    left: var(--space-3);
  }
  .wv-toast { width: 100%; }
}

/* ---------- modal — generic centred dialog rendered by `components/modal/modal.js` ---------- */
.wv-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: wv-modal-fade-in var(--t-base) var(--ease-out);
}
.wv-modal.is-leaving {
  animation: wv-modal-fade-out var(--t-base) var(--ease-out) forwards;
}
.wv-modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--surface-overlay);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
body.wv-modal-open {
  overflow: hidden;
}
.wv-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: min(440px, 100%);
  max-height: calc(100vh - var(--space-7));
  padding: var(--space-5) var(--space-5) var(--space-4);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  outline: none;
  animation: wv-modal-zoom-in var(--t-slow) var(--ease-out);
  overflow: hidden;
}
.wv-modal.is-leaving .wv-modal__panel {
  animation: wv-modal-zoom-out var(--t-base) var(--ease-out) forwards;
}
.wv-modal__panel--md { width: min(640px, 100%); }
.wv-modal__panel--lg { width: min(880px, 100%); }
.wv-modal__panel--xl { width: min(1100px, 100%); }
.wv-modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--ink-500);
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
  cursor: pointer;
}
.wv-modal__close:hover {
  color: var(--ink-900);
  background: var(--surface-sunken);
}
.wv-modal__close i { font-size: 18px; }
.wv-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 28px;
  color: var(--teal-700);
  background: var(--teal-50);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 0 6px var(--teal-50);
}
.wv-modal__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-right: var(--space-5);
}
.wv-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink-900);
}
.wv-modal__body {
  margin: 0;
  font-size: var(--fs-body-sm);
  line-height: 1.55;
  color: var(--ink-600);
}
.wv-modal__body--rich {
  overflow-y: auto;
  max-height: calc(100vh - 280px);
}
.wv-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}
.wv-modal__actions .btn { min-width: 96px; }

.wv-modal--info     .wv-modal__icon { color: var(--teal-700);    background: var(--teal-50);     box-shadow: 0 0 0 6px var(--teal-50); }
.wv-modal--success  .wv-modal__icon { color: var(--leaf-700);    background: var(--leaf-100);    box-shadow: 0 0 0 6px var(--leaf-100); }
.wv-modal--warning  .wv-modal__icon { color: var(--saffron-500); background: var(--saffron-100); box-shadow: 0 0 0 6px var(--saffron-100); }
.wv-modal--danger   .wv-modal__icon { color: var(--henna-700);   background: var(--henna-100);   box-shadow: 0 0 0 6px var(--henna-100); }
.wv-modal--question .wv-modal__icon { color: var(--gold-700);    background: var(--gold-50);     box-shadow: 0 0 0 6px var(--gold-50); }
.wv-modal--default  .wv-modal__icon { color: var(--ink-700);     background: var(--surface-sunken); box-shadow: 0 0 0 6px var(--surface-sunken); }

@keyframes wv-modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes wv-modal-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes wv-modal-zoom-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
@keyframes wv-modal-zoom-out {
  from { opacity: 1; transform: scale(1)    translateY(0); }
  to   { opacity: 0; transform: scale(0.98) translateY(4px); }
}

@media (max-width: 480px) {
  .wv-modal { padding: var(--space-2); }
  .wv-modal__panel { padding: var(--space-4); }
  .wv-modal__actions { flex-direction: column-reverse; }
  .wv-modal__actions .btn { width: 100%; }
}

/* ---------- search box (icon + input pair) ---------- */
.wv-search-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  min-width: 280px;
  padding: 0 12px;
  background: var(--ivory-100);
  border: 1px solid var(--mist-300);
  border-radius: var(--radius-md);
  color: var(--ink-500);
  cursor: text;
  transition:
    border-color var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out);
}
.wv-search-box:focus-within {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal-500) 18%, transparent);
}
.wv-search-box i { font-size: 18px; }
.wv-search-box input {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink-900);
  font-size: var(--fs-body-sm);
}
.wv-search-box input::placeholder { color: var(--ink-500); }

@media (max-width: 640px) {
  .wv-search-box { min-width: 0; width: 100%; }
}

/* ---------- tabs (underline) ---------- */
.wv-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--mist-300);
}
.wv-tabs__tab {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--ink-700);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  cursor: pointer;
  transition:
    color var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out);
}
.wv-tabs__tab:hover {
  color: var(--ink-900);
  border-bottom-color: var(--gold-400);
}
.wv-tabs__tab.is-active {
  color: var(--teal-900);
  border-bottom-color: var(--teal-900);
}
.wv-tabs__tab i { font-size: 16px; }

@media (max-width: 640px) {
  .wv-tabs { overflow-x: auto; }
}

/* ---------- empty state ---------- */
.wv-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-7) var(--space-4);
}
.wv-empty__art {
  width: 120px; height: 120px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--gold-50) 0%, transparent 70%),
    radial-gradient(circle, var(--teal-50) 30%, transparent 60%);
  display: grid;
  place-items: center;
  font-size: 42px;
  color: var(--gold-700);
  margin-bottom: var(--space-4);
  border: 1px dashed var(--border-strong);
}
.wv-empty__title { font-family: var(--font-display); font-size: var(--fs-h1); margin-bottom: 4px; }
.wv-empty__body  { color: var(--ink-500); margin-bottom: var(--space-4); max-width: 360px; }

/* ---------- header ---------- */
.wv-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  padding: 0 var(--space-5);
  gap: var(--space-5);
}
.wv-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}
.wv-header__logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  display: grid;
  place-items: center;
  color: var(--gold-400);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}
.wv-header__brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: 0.01em;
}
.wv-header__brand-name span { color: var(--gold-700); }
.wv-header__search {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.wv-header__search input {
  width: 100%;
  border: 1px solid var(--border-default);
  background: var(--ivory-200);
  border-radius: var(--radius-pill);
  padding: 8px 14px 8px 40px;
  font-size: var(--fs-body-sm);
}
.wv-header__search input:focus {
  background: var(--surface-card);
  border-color: var(--teal-500);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30,100,131,0.12);
}
.wv-header__search i {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--ink-500);
  font-size: 16px;
}
.wv-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}
.wv-credits {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold-50), var(--gold-100));
  border: 1px solid var(--gold-200);
  color: var(--gold-700);
  font-weight: 600;
  font-size: var(--fs-body-sm);
}
.wv-credits--header {
  text-decoration: none;
  transition: background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.wv-credits--header:hover { background: linear-gradient(135deg, var(--gold-100), var(--gold-200)); }
.wv-credits__label { color: var(--ink-600); font-weight: 500; }
.wv-credits__value { font-variant-numeric: tabular-nums; }
.wv-credits--warn {
  color: var(--henna-700);
  background: linear-gradient(135deg, var(--henna-100), var(--henna-100));
  border-color: var(--henna-500);
}
.wv-icon-btn {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--ink-600);
  font-size: 20px;
  position: relative;
}
.wv-icon-btn:hover { background: var(--ivory-200); color: var(--ink-900); border-color: var(--border-default); }
.wv-icon-btn__dot {
  position: absolute;
  top: 8px; right: 9px;
  width: 8px; height: 8px;
  background: var(--henna-500);
  border-radius: 50%;
  border: 2px solid var(--surface-card);
}

.wv-user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: var(--surface-card);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out);
}
.wv-user-menu:hover { background: var(--ivory-200); }
.wv-user-menu[disabled] { cursor: default; opacity: 0.75; }
.wv-user-menu[disabled]:hover { background: var(--surface-card); }
.wv-user-menu__name { font-weight: 500; font-size: var(--fs-body-sm); color: var(--ink-900); }
.wv-user-menu__role { font-size: var(--fs-caption); color: var(--ink-500); }
.wv-user-menu__caret { font-size: 14px; color: var(--ink-500); transition: transform var(--t-fast) var(--ease-out); }
.wv-user-menu[aria-expanded="true"] .wv-user-menu__caret { transform: rotate(180deg); }

.wv-user-menu-wrap {
  position: relative;
}
.wv-user-menu-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: var(--z-dropdown);
  min-width: 220px;
  padding: 6px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.wv-user-menu-pop[hidden] { display: none; }
.wv-user-menu-pop__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--ink-700);
  font-size: var(--fs-body-sm);
  text-align: left;
  cursor: pointer;
}
.wv-user-menu-pop__item:hover,
.wv-user-menu-pop__item:focus {
  background: var(--ivory-200);
  color: var(--ink-900);
  outline: none;
}
.wv-user-menu-pop__item i { font-size: 16px; color: var(--ink-500); }
.wv-user-menu-pop__divider {
  height: 1px;
  margin: 6px 4px;
  background: var(--border-default);
}

/* Self-service password modal (Change password / Forgot password). Uses its
   own host instead of the shared Modal so the form can stay open while
   validation/API errors are surfaced inline, and so the forgot-password flow
   can swap between OTP-request and OTP-verify steps in place. */
.wv-pw-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.wv-pw-modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--surface-overlay);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.wv-pw-modal__panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: var(--space-5);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  outline: none;
}
.wv-pw-modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--ink-500);
  cursor: pointer;
}
.wv-pw-modal__close:hover { background: var(--ivory-200); color: var(--ink-900); }
.wv-pw-modal__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--ink-900);
}
.wv-pw-modal__sub {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-body-sm);
  color: var(--ink-600);
}
.wv-pw-modal__form { display: block; }
.wv-pw-modal__hint {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-body-sm);
  color: var(--ink-600);
}
.wv-pw-modal__otp-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.wv-pw-modal__otp-input {
  flex: 1;
  letter-spacing: 0.4em;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.wv-pw-modal__resend {
  flex: none;
  padding: 0 var(--space-2);
  font-size: var(--fs-body-sm);
}
.wv-pw-modal__error {
  margin-top: var(--space-3);
  padding: 10px var(--space-3);
  background: var(--henna-100);
  border: 1px solid var(--henna-100);
  border-radius: var(--radius-sm);
  color: var(--henna-700);
  font-size: var(--fs-body-sm);
}
.wv-pw-modal__error[hidden] { display: none; }
.wv-pw-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: var(--space-4);
}

/* ---------- sidebar ---------- */
.wv-sidebar {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  width: var(--sidebar-width);
  flex: none;
  border-right: 1px solid var(--border-default);
  background: linear-gradient(180deg, var(--ivory-100) 0%, var(--cream-50) 100%);
  padding: var(--space-4) var(--space-3);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.wv-sidebar__group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: var(--space-3);
}
.wv-sidebar__group-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-500);
  font-weight: 700;
  padding: var(--space-3) var(--space-3) var(--space-1);
}
.wv-sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-700);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  text-decoration: none;
  position: relative;
}
.wv-sidebar__link i { font-size: 18px; color: var(--ink-500); }
.wv-sidebar__link:hover { background: var(--ivory-200); color: var(--ink-900); text-decoration: none; }
.wv-sidebar__link.is-active {
  background: linear-gradient(90deg, var(--teal-900) 0%, var(--teal-700) 100%);
  color: var(--ivory-100);
}
.wv-sidebar__link.is-active i { color: var(--gold-400); }
.wv-sidebar__link.is-active::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  background: var(--gold-500);
  border-radius: 0 3px 3px 0;
}
.wv-sidebar__link-count {
  margin-left: auto;
  font-size: 11px;
  background: var(--ivory-200);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  color: var(--ink-600);
  font-weight: 600;
}
.wv-sidebar__link.is-active .wv-sidebar__link-count {
  background: rgba(255,255,255,0.18);
  color: var(--gold-100);
}

.wv-sidebar__hint {
  margin-top: auto;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold-50), var(--gold-100));
  border: 1px solid var(--gold-200);
  position: relative;
  overflow: hidden;
}
.wv-sidebar__hint h5 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  margin: 0 0 4px 0;
  color: var(--henna-700);
}
.wv-sidebar__hint p { color: var(--ink-700); font-size: var(--fs-body-sm); margin: 0 0 var(--space-3) 0; }

/* ---------- shell layout ---------- */
.wv-shell { display: flex; min-height: calc(100vh - var(--header-height)); }
.wv-main {
  flex: 1;
  padding: var(--space-6) var(--space-6);
  max-width: var(--content-max-width);
  width: 100%;
}
.wv-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}
.wv-page-header h1 { line-height: 1; }
.wv-page-header__sub { color: var(--ink-500); margin-top: 6px; font-size: var(--fs-body-sm); }
.wv-page-header__actions { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }

/* Page-head action buttons share the 40px height of the adjacent
   `.wv-search-box` / `.wv-filter-select` pills so the toolbar reads as one
   row. `.btn-sm` / `.btn-lg` opt out so explicit sizes still win. */
.wv-page-head__actions .btn:not(.btn-sm):not(.btn-lg) {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  height: 40px;
  padding-top: 0;
  padding-bottom: 0;
}
.wv-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-body-sm);
  color: var(--ink-500);
  margin-bottom: var(--space-2);
}
.wv-breadcrumb a { color: var(--ink-500); }
.wv-breadcrumb a:hover { color: var(--ink-900); }
.wv-breadcrumb i { font-size: 14px; }

/* ---------- group card ---------- */
.wv-group-card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--t-base) var(--ease-out);
  position: relative;
}
.wv-group-card:hover {
  border-color: var(--gold-400);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.wv-group-card__cover {
  height: 96px;
  background:
    linear-gradient(135deg, var(--teal-700) 0%, var(--teal-900) 100%);
  position: relative;
  overflow: hidden;
}
.wv-group-card__cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(212,168,90,0.25), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(212,168,90,0.18), transparent 35%);
}
.wv-group-card__cover-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.5) 0.8px, transparent 1px);
  background-size: 14px 14px;
}
.wv-group-card__body {
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.wv-group-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  margin: 0;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.wv-group-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-body-sm);
  color: var(--ink-500);
  flex-wrap: wrap;
}
.wv-group-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.wv-group-card__footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ivory-200);
}

/* ---------- campaign card ---------- */
.wv-campaign-card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-4);
  align-items: center;
  transition: all var(--t-base) var(--ease-out);
}
.wv-campaign-card:hover { border-color: var(--gold-400); box-shadow: var(--shadow-sm); }
.wv-campaign-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--teal-700), var(--teal-900));
  display: grid;
  place-items: center;
  color: var(--gold-400);
  font-size: 22px;
}
.wv-campaign-card__title { font-family: var(--font-display); font-size: var(--fs-h3); margin: 0 0 4px 0; }
.wv-campaign-card__meta { font-size: var(--fs-body-sm); color: var(--ink-500); display: flex; gap: var(--space-3); flex-wrap: wrap; }
.wv-campaign-card__meta i { font-size: 14px; vertical-align: -2px; }
.wv-campaign-card__progress { margin-top: var(--space-2); display: flex; align-items: center; gap: 10px; }
.wv-campaign-card__progress .progress { flex: 1; }
.wv-campaign-card__actions { display: flex; gap: 6px; align-items: center; }

/* ---------- wizard ---------- */
.wv-wizard {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-6);
  align-items: start;
}
.wv-stepper {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
}
.wv-stepper__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  margin: 0 0 var(--space-4) 0;
  color: var(--ink-900);
}
.wv-stepper__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.wv-stepper__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-body-sm);
  color: var(--ink-700);
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
}
.wv-stepper__item:hover { background: var(--ivory-200); }
.wv-stepper__num {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ivory-200);
  border: 1px solid var(--border-default);
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-500);
  flex: none;
}
.wv-stepper__item.is-done .wv-stepper__num {
  background: var(--leaf-600);
  border-color: var(--leaf-600);
  color: white;
}
.wv-stepper__item.is-done .wv-stepper__num::before { content: '\2713'; }
.wv-stepper__item.is-done .wv-stepper__num span { display: none; }
.wv-stepper__item.is-active {
  background: var(--teal-50);
  border-color: var(--teal-100);
  color: var(--teal-900);
  font-weight: 600;
}
.wv-stepper__item.is-active .wv-stepper__num { background: var(--teal-900); border-color: var(--teal-900); color: var(--gold-400); }
.wv-stepper__item small { display: block; font-weight: normal; color: var(--ink-500); font-size: 11px; }

.wv-wizard__panel {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}
.wv-wizard__panel::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 140px; height: 140px;
  background: radial-gradient(circle at top right, rgba(212,168,90,0.18), transparent 65%);
  pointer-events: none;
}
.wv-wizard__step-head { margin-bottom: var(--space-5); }
.wv-wizard__step-head .wv-eyebrow { color: var(--gold-700); }
.wv-wizard__step-head h2 { font-family: var(--font-display); font-size: var(--fs-display-sm); margin: 4px 0 6px 0; }
.wv-wizard__step-head p  { color: var(--ink-500); margin: 0; }
.wv-wizard__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-default);
}

/* ---------- option grid (used by PDF + channel + template select) ---------- */
.wv-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
}
.wv-option {
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  padding: var(--space-4);
  cursor: pointer;
  transition: all var(--t-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
  text-align: left;
}
.wv-option:hover { border-color: var(--gold-400); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.wv-option.is-selected {
  border-color: var(--teal-700);
  box-shadow: var(--shadow-gold-glow);
  background: var(--teal-50);
}
.wv-option.is-selected::after {
  content: '\2713';
  position: absolute;
  top: 12px; right: 12px;
  width: 22px; height: 22px;
  background: var(--teal-700);
  color: var(--ivory-100);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}
.wv-option__thumb {
  height: 130px;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, var(--gold-50), var(--ivory-200));
  border: 1px solid var(--border-default);
  display: grid;
  place-items: center;
  color: var(--gold-700);
  font-size: 28px;
  font-family: var(--font-display);
  position: relative;
  overflow: hidden;
}
.wv-option__thumb--upload {
  background: var(--ivory-200);
  border: 2px dashed var(--border-strong);
  color: var(--ink-500);
}
.wv-option__title { font-weight: 600; color: var(--ink-900); font-size: var(--fs-body); }
.wv-option__meta { font-size: var(--fs-caption); color: var(--ink-500); }
.wv-option__default {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--gold-100);
  color: var(--gold-700);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- channel picker (radio cards) ---------- */
.wv-radio-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: var(--space-4);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  cursor: pointer;
  transition: all var(--t-base) var(--ease-out);
}
.wv-radio-card:hover { border-color: var(--gold-400); }
.wv-radio-card.is-selected { border-color: var(--teal-700); background: var(--teal-50); }
.wv-radio-card.is-disabled { opacity: 0.5; cursor: not-allowed; }
.wv-radio-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gold-50);
  color: var(--gold-700);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex: none;
}
.wv-radio-card__title { font-weight: 600; color: var(--ink-900); font-size: var(--fs-body); }
.wv-radio-card__sub { font-size: var(--fs-caption); color: var(--ink-500); }
.wv-radio-card__radio {
  margin-left: auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: grid;
  place-items: center;
  flex: none;
}
.wv-radio-card.is-selected .wv-radio-card__radio { border-color: var(--teal-700); }
.wv-radio-card.is-selected .wv-radio-card__radio::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal-700);
}

/* ---------- file uploader ---------- */
.wv-uploader {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-7) var(--space-5);
  text-align: center;
  background: var(--ivory-200);
  cursor: pointer;
  transition: all var(--t-base) var(--ease-out);
}
.wv-uploader:hover { border-color: var(--gold-500); background: var(--gold-50); }
.wv-uploader__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--surface-card);
  color: var(--gold-700);
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-3);
  font-size: 28px;
  border: 1px solid var(--border-default);
}
.wv-uploader__title { font-family: var(--font-display); font-size: var(--fs-h2); margin: 0 0 6px 0; }
.wv-uploader__sub { color: var(--ink-500); font-size: var(--fs-body-sm); }

/* ---------- message preview phone ---------- */
.wv-phone {
  width: 320px;
  margin: 0 auto;
  border-radius: 36px;
  border: 10px solid var(--ink-900);
  background: #ECE5DD; /* whatsapp-ish */
  background-image:
    repeating-linear-gradient(45deg, rgba(212,168,90,0.05) 0 2px, transparent 2px 6px);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.wv-phone::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 18px;
  background: var(--ink-900);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}
.wv-phone__bubble {
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  max-width: 80%;
  position: relative;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  font-size: 13px;
  color: #303030;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.wv-phone__bubble::after {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  border-top: 8px solid white;
  border-left: 8px solid transparent;
}
.wv-phone__doc {
  background: #f4ebd9;
  border: 1px solid #d8c8a0;
  border-radius: 8px;
  padding: 8px;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-700);
  font-size: 12px;
}
.wv-phone__doc i { color: var(--henna-500); font-size: 22px; }
.wv-phone__time { font-size: 10px; color: #888; text-align: right; margin-top: 4px; }

/* ---------- placeholder pills ---------- */
.wv-placeholders { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wv-placeholder-chip {
  background: var(--gold-50);
  color: var(--gold-700);
  border: 1px solid var(--gold-200);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
}
.wv-placeholder-chip:hover { background: var(--gold-100); }

/* ---------- summary list (review step) ---------- */
.wv-summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.wv-summary__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--ivory-200);
  border: 1px solid var(--border-subtle);
}
.wv-summary__row:hover { border-color: var(--gold-200); background: var(--gold-50); }
.wv-summary__label { color: var(--ink-500); font-size: var(--fs-body-sm); flex: none; min-width: 130px; }
.wv-summary__value { color: var(--ink-900); font-weight: 500; flex: 1; }
.wv-summary__value small { display: block; color: var(--ink-500); font-weight: normal; }
.wv-summary__edit {
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--teal-700);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-caption);
  font-weight: 500;
}
.wv-summary__edit:hover { background: var(--surface-card); border-color: var(--gold-400); }

/* ---------- segmented control ---------- */
.wv-segmented {
  display: inline-flex;
  background: var(--ivory-200);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}
.wv-segmented button {
  padding: 6px 14px;
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  font-size: var(--fs-body-sm);
  color: var(--ink-600);
  font-weight: 500;
}
.wv-segmented button.is-active {
  background: var(--surface-card);
  color: var(--ink-900);
  box-shadow: var(--shadow-xs);
}

/* ---------- tabs row ---------- */
.wv-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: var(--space-5);
  overflow-x: auto;
}
.wv-tab {
  padding: 12px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--ink-500);
  font-weight: 500;
  font-size: var(--fs-body-sm);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.wv-tab:hover { color: var(--ink-900); }
.wv-tab.is-active {
  color: var(--teal-900);
  border-bottom-color: var(--gold-500);
  font-weight: 600;
}
.wv-tab__count {
  background: var(--ivory-200);
  border-radius: var(--radius-pill);
  padding: 1px 8px;
  font-size: 11px;
  color: var(--ink-600);
}
.wv-tab.is-active .wv-tab__count { background: var(--gold-100); color: var(--gold-700); }

/* ---------- search input ---------- */
.wv-search {
  position: relative;
  display: inline-block;
}
.wv-search input {
  border: 1px solid var(--border-default);
  background: var(--surface-card);
  border-radius: var(--radius-pill);
  padding: 8px 14px 8px 36px;
  font-size: var(--fs-body-sm);
  width: 280px;
  transition: all var(--t-fast) var(--ease-out);
}
.wv-search input:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(30,100,131,0.12);
}
.wv-search i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: var(--ink-500);
  font-size: 16px;
}

/* ---------- campaign row (shared across group detail + dashboard) ---------- */
.wv-campaign-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.wv-campaign-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--space-4);
  background: var(--ivory-100);
  border: 1px solid var(--mist-300);
  border-radius: var(--radius-md);
}
.wv-campaign-row__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: flex-start;
  justify-content: space-between;
}
.wv-campaign-row__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-900);
}
.wv-campaign-row__sub {
  margin: 4px 0 0;
  font-size: var(--fs-caption);
  color: var(--ink-500);
}
.wv-campaign-row__progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wv-progress {
  position: relative;
  height: 8px;
  background: var(--ivory-200);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.wv-progress__bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-700));
  transition: width 0.4s ease;
}
.wv-campaign-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

/* ---------- country-select (compact phone-code picker) ---------- */
/* Mirrored in components/country-select/country-select.css — keep in sync. */
.wv-country-select {
  position: relative;
  display: inline-block;
  width: 100%;
}
.wv-country-select__value { display: none; }
.wv-country-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  height: 40px;
  padding: 0 10px;
  font-size: 13px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--ink-900);
  cursor: pointer;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}
.wv-country-select__trigger:hover { border-color: var(--border-strong); }
.wv-country-select__trigger:focus-visible,
.wv-country-select__trigger[aria-expanded="true"] {
  outline: 0;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px var(--teal-100);
}
.wv-country-select__trigger-label {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.wv-country-select__dial { font-weight: 500; color: var(--ink-600); }
.wv-country-select__caret {
  color: var(--ink-500);
  transition: transform 160ms ease-out;
}
.wv-country-select__trigger[aria-expanded="true"] .wv-country-select__caret {
  transform: rotate(180deg);
}
.wv-country-select__popover {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 60;
  width: 200px;
  max-width: calc(100vw - var(--space-5));
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.wv-country-select__search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--ink-500);
}
.wv-country-select__search i { font-size: 14px; }
.wv-country-select__search-input {
  flex: 1;
  min-width: 0;
  height: 24px;
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink-900);
  font-size: 13px;
}
.wv-country-select__search-input::placeholder { color: var(--ink-300); }
.wv-country-select__list {
  max-height: 240px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  overflow-y: auto;
}
.wv-country-select__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 6px var(--space-3);
  font-size: 13px;
  color: var(--ink-900);
  cursor: pointer;
}
.wv-country-select__option:hover,
.wv-country-select__option.is-active {
  background: var(--teal-50);
}
.wv-country-select__option.is-selected {
  background: var(--teal-100);
  color: var(--teal-900);
  font-weight: 600;
}
.wv-country-select__opt-iso {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-700);
}
.wv-country-select__option.is-selected .wv-country-select__opt-iso { color: var(--teal-900); }
.wv-country-select__opt-dial {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-500);
}
.wv-country-select__option.is-selected .wv-country-select__opt-dial { color: var(--teal-700); }
.wv-country-select__empty {
  padding: var(--space-3);
  color: var(--ink-500);
  font-size: 12px;
  text-align: center;
}
.wv-country-select__fallback { width: 100%; }

/* ---------- responsive ---------- */
@media (max-width: 992px) {
  .wv-wizard { grid-template-columns: 1fr; }
  .wv-stepper { position: static; }
}
@media (max-width: 768px) {
  .wv-sidebar { display: none; }
  .wv-main { padding: var(--space-4); }
  .wv-header__search { display: none; }
  .wv-page-header { flex-direction: column; align-items: stretch; }
}
