/*
 * Wera Leads UI kit
 * -----------------
 * Framework-agnostic CSS for the Wera Leads web app (login + leads dashboard)
 * and the Chrome extension panel that collects numbers on WhatsApp Web.
 *
 * Every class is prefixed `wl-` so it can sit next to any existing CSS
 * (Django/Flask templates, React, plain HTML) without collisions.
 * Colours follow the green WeraConnect workspace direction:
 * emerald #087F5B for actions, forest #12372A for text, cloud #F6FBF8 page.
 *
 * Font: Inter. Load it however your app prefers; the kit HTML uses Google Fonts.
 */

:root {
  --wl-emerald: #087f5b;
  --wl-emerald-hover: #066c4d;
  --wl-forest: #12372a;
  --wl-muted: #52675e;
  --wl-subtle: #7b8d85;
  --wl-cloud: #f6fbf8;
  --wl-mint: #e8f5ee;
  --wl-mint-strong: #d3ecdf;
  --wl-white: #ffffff;
  --wl-border: #dce9e1;
  --wl-input-border: #c9d8cf;
  --wl-focus: rgba(8, 127, 91, 0.22);

  /* Lead status colours */
  --wl-new-bg: #eef2ff;
  --wl-new-fg: #2449ed;
  --wl-contacted-bg: #fff4e0;
  --wl-contacted-fg: #8a5300;
  --wl-replied-bg: #e3f4ea;
  --wl-replied-fg: #087f5b;
  --wl-optout-bg: #f1f3f2;
  --wl-optout-fg: #5f6b66;
  --wl-danger: #b42318;

  --wl-radius-card: 16px;
  --wl-radius-control: 12px;
  --wl-radius-pill: 999px;
  --wl-shadow-card: 0 1px 2px rgba(18, 55, 42, 0.04), 0 4px 16px rgba(18, 55, 42, 0.05);
  --wl-shadow-pop: 0 12px 32px rgba(18, 55, 42, 0.14);
  --wl-font: "Inter", "InterVariable", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
.wl-app,
.wl-ext {
  font-family: var(--wl-font);
  color: var(--wl-forest);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.wl-app *,
.wl-ext * {
  box-sizing: border-box;
}
.wl-app {
  background: var(--wl-cloud);
  min-height: 100%;
}
.wl-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke-width: 2;
}
.wl-icon--lg {
  width: 22px;
  height: 22px;
}
.wl-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* W mark, tinted emerald with a mask so the original artwork stays intact. */
.wl-mark {
  display: inline-block;
  width: 30px;
  height: 21px;
  background: var(--wl-emerald);
  -webkit-mask: url("wera-mark.webp") center / contain no-repeat;
  mask: url("wera-mark.webp") center / contain no-repeat;
  flex-shrink: 0;
}
.wl-mark--lg {
  width: 46px;
  height: 32px;
}

/* ---------- Buttons ---------- */
.wl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--wl-radius-control);
  border: 1px solid transparent;
  font: 500 14px/1 var(--wl-font);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.wl-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--wl-focus);
}
.wl-btn--primary {
  background: var(--wl-emerald);
  color: var(--wl-white);
}
.wl-btn--primary:hover {
  background: var(--wl-emerald-hover);
}
.wl-btn--secondary {
  background: var(--wl-white);
  color: var(--wl-forest);
  border-color: var(--wl-input-border);
}
.wl-btn--secondary:hover {
  background: var(--wl-cloud);
}
.wl-btn--ghost {
  background: transparent;
  color: var(--wl-muted);
}
.wl-btn--ghost:hover {
  background: var(--wl-mint);
  color: var(--wl-forest);
}
.wl-btn--sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 10px;
}
.wl-btn--block {
  width: 100%;
}
.wl-btn--lg {
  height: 46px;
  font-size: 15px;
}
.wl-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--wl-muted);
  cursor: pointer;
}
.wl-icon-btn:hover {
  background: var(--wl-mint);
  color: var(--wl-forest);
}
.wl-icon-btn--outline {
  border-color: var(--wl-border);
  background: var(--wl-white);
}
.wl-link {
  color: var(--wl-emerald);
  font-weight: 500;
  text-decoration: none;
}
.wl-link:hover {
  text-decoration: underline;
}

/* ---------- Form controls ---------- */
.wl-field {
  display: grid;
  gap: 6px;
}
.wl-label {
  font-size: 13px;
  font-weight: 600;
}
.wl-hint {
  font-size: 12px;
  color: var(--wl-subtle);
}
.wl-input,
.wl-select {
  height: 40px;
  width: 100%;
  border: 1px solid var(--wl-input-border);
  border-radius: var(--wl-radius-control);
  background: var(--wl-white);
  color: var(--wl-forest);
  font: 400 14px var(--wl-font);
  padding: 0 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.wl-input::placeholder {
  color: var(--wl-subtle);
}
.wl-input:focus,
.wl-select:focus {
  outline: none;
  border-color: var(--wl-emerald);
  box-shadow: 0 0 0 4px var(--wl-focus);
}
.wl-select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2352675e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
/* Input with a leading icon or prefix */
.wl-input-group {
  position: relative;
  display: flex;
  align-items: center;
}
.wl-input-group > .wl-icon {
  position: absolute;
  left: 12px;
  color: var(--wl-subtle);
  pointer-events: none;
}
.wl-input-group > .wl-input {
  padding-left: 38px;
}
.wl-input-group__suffix {
  position: absolute;
  right: 4px;
}
.wl-phone {
  display: flex;
  border: 1px solid var(--wl-input-border);
  border-radius: var(--wl-radius-control);
  background: var(--wl-white);
  overflow: hidden;
}
.wl-phone:focus-within {
  border-color: var(--wl-emerald);
  box-shadow: 0 0 0 4px var(--wl-focus);
}
.wl-phone__prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: var(--wl-cloud);
  border-right: 1px solid var(--wl-border);
  font-weight: 500;
  color: var(--wl-muted);
}
.wl-phone .wl-input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Toggle switch (checkbox underneath, accessible by default) */
.wl-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.wl-switch input {
  appearance: none;
  position: relative;
  width: 34px;
  height: 20px;
  margin: 0;
  border-radius: var(--wl-radius-pill);
  background: var(--wl-input-border);
  cursor: pointer;
  transition: background-color 0.15s;
  flex-shrink: 0;
}
.wl-switch input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--wl-white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s;
}
.wl-switch input:checked {
  background: var(--wl-emerald);
}
.wl-switch input:checked::after {
  transform: translateX(14px);
}
.wl-switch input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--wl-focus);
}
.wl-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--wl-emerald);
  cursor: pointer;
  margin: 0;
}

/* ---------- Badges ---------- */
.wl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--wl-radius-pill);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.wl-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.wl-badge--new {
  background: var(--wl-new-bg);
  color: var(--wl-new-fg);
}
.wl-badge--contacted {
  background: var(--wl-contacted-bg);
  color: var(--wl-contacted-fg);
}
.wl-badge--replied {
  background: var(--wl-replied-bg);
  color: var(--wl-replied-fg);
}
.wl-badge--optout {
  background: var(--wl-optout-bg);
  color: var(--wl-optout-fg);
}
.wl-tag {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--wl-mint);
  color: var(--wl-emerald);
  font-size: 11px;
  font-weight: 600;
}
.wl-tag--muted {
  background: var(--wl-optout-bg);
  color: var(--wl-muted);
}
.wl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wl-emerald);
  box-shadow: 0 0 0 3px var(--wl-mint-strong);
  flex-shrink: 0;
}
.wl-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--wl-mint);
  color: var(--wl-emerald);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.wl-avatar--sm {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
.wl-avatar--square {
  border-radius: 12px;
}

/* ---------- Cards ---------- */
.wl-card {
  background: var(--wl-white);
  border: 1px solid var(--wl-border);
  border-radius: var(--wl-radius-card);
  box-shadow: var(--wl-shadow-card);
}

/* =========================================================
   WEB APP: header
   ========================================================= */
.wl-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--wl-white);
  border-bottom: 1px solid var(--wl-border);
}
.wl-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.wl-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--wl-forest);
  text-decoration: none;
}
.wl-brand__product {
  color: var(--wl-emerald);
}
.wl-nav {
  display: flex;
  gap: 4px;
}
.wl-nav__link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--wl-muted);
  font-weight: 500;
  text-decoration: none;
}
.wl-nav__link:hover {
  color: var(--wl-forest);
  background: var(--wl-cloud);
}
.wl-nav__link--active {
  background: var(--wl-mint);
  color: var(--wl-emerald);
}
.wl-header__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wl-ext-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--wl-radius-pill);
  background: var(--wl-cloud);
  border: 1px solid var(--wl-border);
  font-size: 12px;
  font-weight: 500;
  color: var(--wl-muted);
}
.wl-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

/* =========================================================
   WEB APP: dashboard
   ========================================================= */
.wl-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  display: grid;
  gap: 20px;
}
.wl-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.wl-page-head h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.wl-page-head p {
  margin: 4px 0 0;
  color: var(--wl-muted);
}
.wl-page-head__actions {
  display: flex;
  gap: 8px;
}

/* Stats */
.wl-stats {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 12px;
}
.wl-stat {
  padding: 18px 20px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.wl-stat--hero {
  background: var(--wl-forest);
  border-color: var(--wl-forest);
  color: var(--wl-white);
}
.wl-stat__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--wl-muted);
}
.wl-stat--hero .wl-stat__label {
  color: rgba(255, 255, 255, 0.72);
}
.wl-stat__value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.wl-stat__meta {
  font-size: 12px;
  color: var(--wl-subtle);
}
.wl-stat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.wl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--wl-radius-pill);
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 500;
}
.wl-chip strong {
  font-weight: 700;
}

/* Leads panel */
.wl-panel {
  overflow: hidden;
}
.wl-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 12px 0;
  border-bottom: 1px solid var(--wl-border);
  overflow-x: auto;
}
.wl-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--wl-muted);
  font: 500 14px var(--wl-font);
  cursor: pointer;
  white-space: nowrap;
}
.wl-tab:hover {
  color: var(--wl-forest);
}
.wl-tab__count {
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--wl-radius-pill);
  background: var(--wl-cloud);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wl-tab--active {
  color: var(--wl-emerald);
  border-bottom-color: var(--wl-emerald);
}
.wl-tab--active .wl-tab__count {
  background: var(--wl-mint);
}
.wl-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  flex-wrap: wrap;
}
.wl-toolbar__search {
  flex: 1 1 260px;
}
.wl-toolbar .wl-select {
  width: auto;
  min-width: 150px;
}
.wl-toolbar__end {
  margin-left: auto;
  padding-left: 8px;
}
.wl-bulkbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 12px;
  padding: 8px 8px 8px 14px;
  border-radius: var(--wl-radius-control);
  background: var(--wl-forest);
  color: var(--wl-white);
  font-weight: 500;
}
.wl-bulkbar__spacer {
  flex: 1;
}
.wl-bulkbar .wl-btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--wl-white);
}
.wl-bulkbar .wl-btn--ghost {
  color: rgba(255, 255, 255, 0.75);
}
.wl-bulkbar .wl-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--wl-white);
}

/* Table */
.wl-table {
  width: 100%;
  border-collapse: collapse;
}
.wl-table th {
  text-align: left;
  padding: 10px 16px;
  background: var(--wl-cloud);
  border-top: 1px solid var(--wl-border);
  border-bottom: 1px solid var(--wl-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--wl-muted);
  white-space: nowrap;
}
.wl-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--wl-border);
  vertical-align: middle;
}
.wl-table tbody tr:hover {
  background: #fbfdfc;
}
.wl-table tr.is-selected {
  background: var(--wl-mint);
}
.wl-table__check {
  width: 44px;
  padding-right: 0 !important;
}
.wl-table__actions {
  text-align: right;
  white-space: nowrap;
}
.wl-table__actions > * + * {
  margin-left: 4px;
}
.wl-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.wl-person__name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.wl-person__sub {
  font-size: 12px;
  color: var(--wl-subtle);
}
.wl-number {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  white-space: nowrap;
}
.wl-number .wl-icon-btn {
  width: 26px;
  height: 26px;
  opacity: 0.6;
}
.wl-muted {
  color: var(--wl-muted);
}
.wl-small {
  font-size: 12px;
  color: var(--wl-subtle);
  white-space: nowrap;
}
/* Per-row WhatsApp action: text-weight button so a long list stays calm. */
.wl-wa-btn {
  background: transparent;
  border-color: transparent;
  color: var(--wl-emerald);
  font-weight: 600;
}
.wl-wa-btn:hover {
  background: var(--wl-mint);
}
.wl-table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: var(--wl-muted);
  font-size: 13px;
}
.wl-pager {
  display: flex;
  gap: 4px;
}

/* Empty state */
.wl-empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 56px 24px 64px;
  border-top: 1px solid var(--wl-border);
}
.wl-empty__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--wl-mint);
  color: var(--wl-emerald);
  margin-bottom: 6px;
}
.wl-empty h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}
.wl-empty p {
  margin: 0;
  max-width: 420px;
  color: var(--wl-muted);
}
.wl-empty__actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Responsive: table becomes stacked cards on narrow screens */
@media (max-width: 1024px) {
  .wl-stats {
    grid-template-columns: 1fr 1fr;
  }
  .wl-nav {
    display: none;
  }
}
@media (max-width: 760px) {
  .wl-header__inner {
    padding: 0 16px;
    gap: 12px;
  }
  .wl-ext-status > span:last-child,
  .wl-user__name {
    display: none;
  }
  .wl-ext-status {
    padding: 0 10px;
  }
  .wl-main {
    padding: 20px 16px 40px;
  }
  .wl-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .wl-stat__meta {
    display: none;
  }
  .wl-stat__label .wl-icon {
    display: none;
  }
  .wl-bulkbar {
    flex-wrap: wrap;
  }
  .wl-bulkbar__spacer {
    flex-basis: 100%;
    height: 0;
  }
  .wl-stat--hero {
    grid-column: 1 / -1;
  }
  .wl-stat {
    padding: 14px 16px;
  }
  .wl-stat__value {
    font-size: 24px;
  }
  .wl-page-head__actions {
    width: 100%;
  }
  .wl-page-head__actions .wl-btn {
    flex: 1;
  }
  .wl-toolbar .wl-select {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }
  .wl-toolbar__end {
    margin-left: 0;
    padding-left: 0;
  }
  .wl-table thead {
    display: none;
  }
  .wl-table,
  .wl-table tbody {
    display: block;
  }
  .wl-table tr {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 6px 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--wl-border);
  }
  .wl-table td {
    padding: 0;
    border: 0;
  }
  .wl-table td[data-label] {
    grid-column: 2 / -1;
    font-size: 13px;
  }
  .wl-table__check {
    grid-row: span 2;
  }
  .wl-table td.wl-col-name {
    grid-column: 2;
  }
  .wl-table td.wl-col-status {
    grid-column: 3;
    grid-row: 1;
  }
  .wl-table td.wl-col-group,
  .wl-table td.wl-col-id,
  .wl-table td.wl-col-added {
    display: none;
  }
  .wl-table__actions {
    grid-column: 1 / -1;
    text-align: left;
    padding-top: 6px !important;
  }
  .wl-table-foot {
    flex-direction: column;
  }
}

/* =========================================================
   WEB APP: login
   ========================================================= */
.wl-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--wl-mint) 0%, rgba(232, 245, 238, 0) 100%),
    var(--wl-cloud);
}
.wl-login__card {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px 28px;
}
.wl-login__head {
  display: grid;
  gap: 6px;
  margin-bottom: 28px;
}
.wl-login__head .wl-mark {
  margin-bottom: 14px;
}
.wl-login__head h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.wl-login__head p {
  margin: 0;
  color: var(--wl-muted);
}
.wl-login__form {
  display: grid;
  gap: 18px;
}
.wl-login__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.wl-login__row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wl-muted);
  cursor: pointer;
}
.wl-login__error {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--wl-radius-control);
  background: #fef3f2;
  color: var(--wl-danger);
  font-size: 13px;
}
.wl-login__foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--wl-border);
  font-size: 13px;
  color: var(--wl-muted);
  text-align: center;
}
.wl-login__below {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--wl-subtle);
}

/* =========================================================
   CHROME EXTENSION: side panel / popup (380px wide)
   ========================================================= */
.wl-ext {
  width: 380px;
  max-width: 100%;
  background: var(--wl-cloud);
  display: flex;
  flex-direction: column;
  min-height: 600px;
}
.wl-ext__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--wl-white);
  border-bottom: 1px solid var(--wl-border);
}
.wl-ext__header .wl-brand {
  font-size: 15px;
}
.wl-ext__header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.wl-ext__conn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--wl-white);
  border-bottom: 1px solid var(--wl-border);
  font-size: 12px;
  color: var(--wl-muted);
}
.wl-ext__conn--off .wl-dot {
  background: #c4ccc8;
  box-shadow: 0 0 0 3px #eef1ef;
}
.wl-ext__body {
  flex: 1;
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.wl-ext__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  background: var(--wl-white);
  border-top: 1px solid var(--wl-border);
  font-size: 12px;
  color: var(--wl-muted);
}
.wl-ext__footer strong {
  color: var(--wl-forest);
}
.wl-ext-card {
  background: var(--wl-white);
  border: 1px solid var(--wl-border);
  border-radius: 14px;
  padding: 14px;
}
.wl-ext-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--wl-muted);
  margin: 4px 2px -4px;
}
.wl-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wl-group__name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}
.wl-group__meta {
  font-size: 12px;
  color: var(--wl-subtle);
}
.wl-found {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
  border-top: 1px solid var(--wl-border);
  padding-top: 12px;
}
.wl-found__item {
  display: grid;
  gap: 2px;
}
.wl-found__item + .wl-found__item {
  padding-left: 12px;
  border-left: 1px solid var(--wl-border);
}
.wl-found__value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.wl-found__value--accent {
  color: var(--wl-emerald);
}
.wl-found__label {
  font-size: 11px;
  color: var(--wl-subtle);
}
.wl-options {
  display: grid;
}
.wl-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
}
.wl-option + .wl-option {
  border-top: 1px solid var(--wl-border);
}
.wl-option__text {
  display: grid;
}
.wl-option__title {
  font-weight: 500;
}
.wl-option__sub {
  font-size: 12px;
  color: var(--wl-subtle);
}
.wl-progress {
  height: 8px;
  border-radius: var(--wl-radius-pill);
  background: var(--wl-mint);
  overflow: hidden;
}
.wl-progress__bar {
  height: 100%;
  border-radius: inherit;
  background: var(--wl-emerald);
}
.wl-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--wl-muted);
  margin-top: 8px;
}
.wl-live-list {
  display: grid;
  gap: 2px;
  margin-top: 4px;
}
.wl-live-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  font-size: 13px;
}
.wl-live-list__item + .wl-live-list__item {
  border-top: 1px solid var(--wl-border);
}
.wl-live-list__item .wl-number {
  margin-left: auto;
  color: var(--wl-muted);
  font-weight: 400;
}
.wl-result {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 22px 14px 18px;
}
.wl-result__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wl-emerald);
  color: var(--wl-white);
  margin-bottom: 6px;
}
.wl-result h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.wl-result p {
  margin: 0;
  color: var(--wl-muted);
  font-size: 13px;
}
.wl-summary {
  display: grid;
}
.wl-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 13px;
}
.wl-summary__row + .wl-summary__row {
  border-top: 1px solid var(--wl-border);
}
.wl-summary__row span:first-child {
  color: var(--wl-muted);
}
.wl-summary__row strong {
  font-weight: 600;
}
.wl-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wl-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.wl-steps__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--wl-mint);
  color: var(--wl-emerald);
  flex-shrink: 0;
}
.wl-steps__title {
  font-weight: 600;
}
.wl-steps__sub {
  font-size: 12px;
  color: var(--wl-subtle);
}
.wl-notice {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--wl-white);
  border: 1px dashed var(--wl-input-border);
  font-size: 12px;
  color: var(--wl-muted);
}
.wl-notice .wl-icon {
  margin-top: 1px;
  color: var(--wl-emerald);
}
.wl-ext__actions {
  display: grid;
  gap: 8px;
}
