/* Watchlist standalone pages — styles for JS-rendered DOM (Tailwind CDN does not reliably see injected class names). Theme tokens match alpha-dex-radar / lite base.css */

.wl-page {
  --wl-accent: hsl(var(--primary));
  --wl-accent-soft: hsl(var(--primary) / 0.12);
  --wl-accent-border: hsl(var(--primary) / 0.28);
  --wl-accent-muted: hsl(var(--primary) / 0.55);
}

.wl-page--ba {
  --wl-accent: #facc15;
  --wl-accent-soft: rgb(234 179 8 / 0.12);
  --wl-accent-border: rgb(250 204 21 / 0.35);
  --wl-accent-muted: rgb(250 204 21 / 0.62);
}

.wl-page--ba-pumped {
  --wl-accent: #fb923c;
  --wl-accent-soft: rgb(251 146 60 / 0.12);
  --wl-accent-border: rgb(251 146 60 / 0.35);
  --wl-accent-muted: rgb(251 146 60 / 0.62);
}

.wl-page--gate {
  --wl-accent: rgb(45 212 191);
  --wl-accent-soft: rgb(45 212 191 / 0.1);
  --wl-accent-border: rgb(45 212 191 / 0.32);
  --wl-accent-muted: rgb(45 212 191 / 0.55);
}

.wl-shell {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.wl-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.wl-headlines {
  flex: 1;
  min-width: 220px;
}

.wl-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.wl-logo {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wl-accent-soft);
  color: var(--wl-accent);
  border: 1px solid var(--wl-accent-border);
}

.wl-logo svg {
  width: 1.25rem;
  height: 1.25rem;
}

.wl-title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
  line-height: 1.2;
}

@media (min-width: 640px) {
  .wl-title {
    font-size: 1.5rem;
  }
}

.wl-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
  max-width: 40rem;
}

.wl-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  justify-content: flex-end;
}

.wl-btn {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
  padding: 0.4375rem 0.6875rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.45);
  color: hsl(var(--foreground));
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s;
}

.wl-btn:hover:not(:disabled) {
  background: hsl(var(--muted) / 0.85);
}

.wl-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.wl-btn-refresh {
  border-color: var(--wl-accent-border);
  color: var(--wl-accent);
  background: var(--wl-accent-soft);
}

.wl-btn-refresh:hover:not(:disabled) {
  background: hsl(var(--foreground) / 0.04);
}

.wl-btn-danger {
  color: hsl(348 71% 64%);
  border-color: hsl(348 71% 64% / 0.3);
  background: hsl(348 71% 64% / 0.08);
}

.wl-btn-danger:hover:not(:disabled) {
  background: hsl(348 71% 64% / 0.14);
}

.wl-btn-primary-solid {
  background: var(--wl-accent);
  color: hsl(220 16% 10%);
  border-color: transparent;
  font-weight: 600;
}

.wl-btn-primary-solid:hover {
  filter: brightness(1.05);
}

.wl-page--ba .wl-btn-primary-solid:hover,
.wl-page--gate .wl-btn-primary-solid:hover {
  filter: brightness(1.08);
}

.wl-banner-error {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: hsl(348 71% 64%);
  background: hsl(348 71% 64% / 0.09);
  border: 1px solid hsl(348 71% 64% / 0.28);
}

.wl-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .wl-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.wl-stat-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5625rem;
  padding: 0.8125rem 1rem;
  box-shadow: 0 1px 0 hsl(var(--foreground) / 0.03);
}

.wl-stat-label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
}

.wl-stat-value {
  margin: 0.2rem 0 0;
  font-size: 1.3125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.wl-num-up {
  color: rgb(74 222 128);
}

.wl-num-down {
  color: rgb(248 113 113);
}

.wl-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.wl-field {
  flex: 1 1 220px;
  max-width: 22rem;
  min-width: 160px;
}

.wl-input {
  box-sizing: border-box;
  width: 100%;
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
  font-family: inherit;
  color: hsl(var(--foreground));
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s;
}

.wl-input:focus {
  border-color: var(--wl-accent-border);
  box-shadow: 0 0 0 3px var(--wl-accent-soft);
}

.wl-chip-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.28rem;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
}

.wl-chip {
  padding: 0.25rem 0.5625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s, color 0.12s;
}

.wl-chip:hover:not(.wl-chip-active) {
  color: hsl(var(--foreground));
  background: hsl(var(--muted) / 0.55);
}

.wl-chip-active {
  background: var(--wl-accent);
  color: hsl(220 18% 8%);
  font-weight: 600;
}

.wl-chip-strip-neutral .wl-chip-active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.wl-page--dex .wl-chip-strip-neutral .wl-chip-active {
  background: hsl(var(--primary));
}

.wl-muted-count {
  font-size: 0.6875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin-left: auto;
}

.wl-chip-outline {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.28rem;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
}

.wl-chip-outline-teal-active {
  background: rgb(45 212 191 / 0.16) !important;
  color: rgb(45 212 191) !important;
  border-color: rgb(45 212 191 / 0.35) !important;
}

.wl-chip-outline-perp-active {
  background: rgb(251 191 36 / 0.14) !important;
  color: rgb(251 191 36) !important;
  border-color: rgb(251 191 36 / 0.42) !important;
}

.wl-chip-toggle {
  font-size: 0.6875rem;
}

.wl-bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  background: var(--wl-accent-soft);
  border: 1px solid var(--wl-accent-border);
}

.wl-bulk-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--wl-accent);
}

.wl-link-quiet {
  font-size: 0.6875rem;
  margin-left: auto;
  background: none;
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  font-family: inherit;
}

.wl-link-quiet:hover {
  color: hsl(var(--foreground));
}

.wl-panel-range {
  border-radius: 0.5625rem;
  padding: 0.875rem;
  border: 1px solid var(--wl-accent-border);
  background: hsl(var(--foreground) / 0.02);
}

.wl-panel-range .wl-range-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .wl-panel-range .wl-range-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .wl-panel-range .wl-range-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.wl-range-label {
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground));
  display: block;
  margin-bottom: 0.3rem;
}

.wl-reset-filters-inline {
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  background: none;
  border: 1px solid hsl(var(--border));
  padding: 0.25rem 0.55rem;
  border-radius: 0.4375rem;
  font-family: inherit;
}

.wl-reset-filters-inline:hover {
  border-color: hsl(var(--muted-foreground));
  color: hsl(var(--foreground));
}

.wl-reset-ranges.link {
  font-size: 0.6875rem;
  text-decoration: underline;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.35rem;
  font-family: inherit;
}

.wl-table-card {
  border-radius: 0.5625rem;
  border: 1px solid hsl(var(--border));
  overflow: hidden;
  box-shadow: 0 1px 3px hsl(0 0% 0% / 0.06);
}

.wl-page--ba .wl-table-card {
  border-color: rgb(234 179 8 / 0.22);
  box-shadow:
    0 0 0 1px rgb(250 204 21 / 0.06),
    0 1px 4px hsl(0 0% 0% / 0.05);
}

.wl-page--gate .wl-table-card {
  border-color: rgb(45 212 191 / 0.22);
  box-shadow:
    0 0 0 1px rgb(45 212 191 / 0.06),
    0 1px 4px hsl(0 0% 0% / 0.05);
}

.wl-table-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--muted-foreground) / 0.35) hsl(var(--secondary));
}

.wl-table-scroll::-webkit-scrollbar {
  height: 7px;
}
.wl-table-scroll::-webkit-scrollbar-thumb {
  background: hsl(var(--muted-foreground) / 0.28);
  border-radius: 4px;
}

.wl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.wl-table thead th {
  text-align: left;
  padding: 0.55rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
  background: hsl(var(--secondary) / 0.5);
  border-bottom: 1px solid hsl(var(--border));
  vertical-align: middle;
}

.wl-table thead th[data-wl-act] {
  cursor: pointer;
  user-select: none;
}

.wl-table thead th[data-wl-act]:hover {
  color: hsl(var(--foreground));
}

.wl-sort-ind {
  display: inline-block;
  opacity: 0.35;
  margin-left: 0.125rem;
  vertical-align: middle;
}

.wl-sort-ind-active {
  opacity: 1;
  color: var(--wl-accent);
}

.wl-table tbody tr {
  border-bottom: 1px solid hsl(var(--border));
  transition: background 0.12s ease;
}

.wl-table tbody tr:hover {
  background: hsl(var(--accent) / 0.42);
}

.wl-table td {
  padding: 0.65rem 0.625rem;
  vertical-align: middle;
  color: hsl(var(--foreground));
}

.wl-num {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 500;
}

.wl-muted {
  color: hsl(var(--muted-foreground));
  font-variant-numeric: tabular-nums;
}

.wl-muted-sm {
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground));
}

.wl-symbol {
  font-size: 0.8125rem;
  font-weight: 600;
}

.wl-thumb {
  flex-shrink: 0;
}

.wl-avatar-placeholder {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
}

.wl-page--dex .wl-avatar-placeholder {
  background: hsl(var(--primary) / 0.15);
  color: hsl(var(--primary));
}

.wl-thumb-img {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  object-fit: cover;
}

.wl-meta-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  min-width: 0;
}

.wl-mini-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.5625rem;
  font-weight: 600;
  padding: 0.11rem 0.35rem;
  border-radius: 999px;
  border-width: 1px;
  border-style: solid;
  line-height: 1;
}

.wl-badge-dex-chain {
  font-size: 0.5625rem;
  font-weight: 600;
  padding: 0.15rem 0.42rem;
  border-radius: 999px;
  border-width: 1px;
  border-style: solid;
}

.bg-wl-purple {
  background: rgb(168 85 247 / 0.1);
  color: rgb(192 132 252);
  border-color: rgb(168 85 247 / 0.22);
}
.bg-wl-blue {
  background: rgb(96 165 250 / 0.1);
  color: rgb(147 197 253);
  border-color: rgb(96 165 250 / 0.22);
}
.bg-wl-yellow {
  background: rgb(234 179 8 / 0.11);
  color: rgb(250 204 21);
  border-color: rgb(234 179 8 / 0.22);
}
.bg-wl-sky {
  background: rgb(56 189 248 / 0.1);
  color: rgb(125 211 252);
  border-color: rgb(56 189 248 / 0.22);
}
.bg-wl-muted {
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
  border-color: hsl(var(--border));
}

.wl-dex-tag {
  font-size: 0.5625rem;
  font-weight: 600;
  padding: 0.12rem 0.35rem;
  border-radius: 0.3125rem;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
}

.wl-chip-gate-inline {
  font-size: 0.5625rem;
  font-weight: 600;
  padding: 0.12rem 0.32rem;
  border-radius: 0.3125rem;
  background: rgb(45 212 191 / 0.14);
  color: rgb(45 212 191);
  border: 1px solid rgb(45 212 191 / 0.24);
}

.wl-chip-perp-inline {
  font-size: 0.5625rem;
  font-weight: 600;
  padding: 0.12rem 0.32rem;
  border-radius: 0.3125rem;
  background: rgb(251 191 36 / 0.13);
  color: rgb(251 191 36);
  border: 1px solid rgb(251 191 36 / 0.32);
}

.wl-pct {
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.wl-actions-cell {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  opacity: 0.85;
}

.wl-actions-cell--wrap2 {
  flex-wrap: wrap;
  align-items: flex-start;
  max-width: 3.6rem;
}

/* Match alpha-dex-radar: row actions unobtrusive until hover (touch: always visible) */
.wl-actions-cell.wl-actions-cell-hidden {
  opacity: 0;
}

.wl-table tbody tr:hover .wl-actions-cell.wl-actions-cell-hidden {
  opacity: 1;
}

.wl-table tbody tr:focus-within .wl-actions-cell.wl-actions-cell-hidden {
  opacity: 1;
}

@media (hover: none), (pointer: coarse) {
  .wl-actions-cell.wl-actions-cell-hidden {
    opacity: 1;
  }
}

.wl-table tbody tr:hover .wl-actions-cell {
  opacity: 1;
}

.wl-icon-btn {
  padding: 0.35rem;
  border-radius: 0.4375rem;
  border: 1px solid transparent;
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wl-icon-btn:hover {
  color: var(--wl-accent);
  border-color: var(--wl-accent-border);
  background: var(--wl-accent-soft);
}

.wl-icon-btn.danger:hover {
  color: rgb(248 113 113);
  border-color: rgb(248 113 113 / 0.32);
  background: rgb(248 113 113 / 0.08);
}

.wl-ico {
  width: 0.9375rem;
  height: 0.9375rem;
}

.wl-spinner {
  width: 1rem;
  height: 1rem;
  animation: wl-spin 0.85s linear infinite;
}

@keyframes wl-spin {
  to {
    transform: rotate(360deg);
  }
}

.wl-check {
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 0.3125rem;
  color: hsl(var(--muted-foreground));
  outline: none;
}

.wl-check-box {
  width: 14px;
  height: 14px;
  border-radius: 0.215rem;
  border: 1.5px solid hsl(var(--muted-foreground) / 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.12s, background 0.12s;
}

.wl-check--on .wl-check-box {
  border-color: var(--wl-accent);
  background: var(--wl-accent-soft);
  color: var(--wl-accent);
}

.wl-ai-link {
  font-size: 0.6875rem;
  font-weight: 600;
  color: hsl(var(--primary));
  text-decoration: none;
}

.wl-ai-link:hover {
  text-decoration: underline;
}

.wl-score-bar {
  height: 0.3125rem;
  width: 2.85rem;
  border-radius: 999px;
  background: hsl(var(--secondary));
  overflow: hidden;
}

.wl-score-fill {
  height: 100%;
  border-radius: 999px;
  background: #facc15;
}

.wl-footnote {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}

/* Empty states */
.wl-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 4rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px dashed hsl(var(--border));
  background: hsl(var(--secondary) / 0.25);
}

.wl-empty-visual {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wl-accent-soft);
  color: var(--wl-accent);
  border: 1px solid var(--wl-accent-border);
}

.wl-empty-visual svg {
  width: 1.875rem;
  height: 1.875rem;
}

.wl-empty-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.wl-empty-desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
  max-width: 22rem;
}

.wl-row-flex {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wl-shrink-0 {
  flex-shrink: 0;
}

.wl-grow-min {
  min-width: 0;
}

.wl-hot {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.08rem 0.28rem;
  border-radius: 0.25rem;
  background: rgb(251 146 60 / 0.14);
  color: rgb(251 146 60);
  border: 1px solid rgb(251 146 60 / 0.32);
}

.wl-page--ba .wl-avatar-placeholder {
  background: rgb(250 204 21 / 0.14);
  color: rgb(253 224 71);
  border: 1px solid rgb(234 179 8 / 0.22);
}

.wl-page--gate .wl-avatar-placeholder {
  background: rgb(45 212 191 / 0.12);
  color: rgb(45 212 191);
  border: 1px solid rgb(45 212 191 / 0.24);
}

.wl-page--gate .wl-score-fill {
  background: var(--wl-accent);
}

/* ============================================================
   Mobile select / sort controls (shared across all modes)
   ============================================================ */

.wl-select {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.375rem 0.625rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.wl-select:focus {
  border-color: var(--wl-accent-border);
  box-shadow: 0 0 0 3px var(--wl-accent-soft);
}

.wl-mobile-sort {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.wl-mobile-sort-label {
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
}

.wl-sort-dir-btn {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.375rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary));
  color: var(--wl-accent);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wl-sort-dir-btn:hover {
  background: hsl(var(--muted) / 0.7);
}

/* ============================================================
   Mobile card list — shown below 767.98px
   ============================================================ */

/* Desktop table wrapper — hidden on mobile */
.wl-desktop-table {
  display: block;
}

/* Mobile list wrapper — hidden on desktop */
.wl-mobile-list {
  display: none;
}

@media (max-width: 767.98px) {
  /* Hide desktop table, show mobile cards */
  .wl-desktop-table {
    display: none;
  }

  .wl-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Mobile sort controls visible on mobile */
  .wl-mobile-sort {
    display: flex;
  }

  /* Card base */
  .wl-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 1px 3px hsl(0 0% 0% / 0.06);
  }

  .wl-page--ba .wl-card {
    border-color: rgb(234 179 8 / 0.2);
  }

  .wl-page--ba-pumped .wl-card {
    border-color: rgb(251 146 60 / 0.2);
  }

  .wl-page--gate .wl-card {
    border-color: rgb(45 212 191 / 0.18);
  }

  /* Card header: checkbox + avatar + title + badge */
  .wl-card-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
  }

  .wl-card-title {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }

  /* Card metrics grid */
  .wl-card-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 0.75rem;
  }

  .wl-card-metric {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }

  .wl-card-metric-label {
    font-size: 0.5625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: hsl(var(--muted-foreground));
  }

  /* Card actions — always visible on mobile, min 44px hit target */
  .wl-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.25rem;
    border-top: 1px solid hsl(var(--border));
  }

  .wl-card-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--secondary) / 0.6);
    color: hsl(var(--foreground));
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.12s, border-color 0.12s;
  }

  .wl-card-action-btn:hover {
    background: hsl(var(--muted) / 0.8);
    border-color: var(--wl-accent-border);
    color: var(--wl-accent);
  }

  .wl-card-action-btn .wl-ico {
    width: 1rem;
    height: 1rem;
  }

  .wl-card-action-danger {
    color: hsl(348 71% 64%);
    border-color: hsl(348 71% 64% / 0.3);
    background: hsl(348 71% 64% / 0.08);
  }

  .wl-card-action-danger:hover {
    background: hsl(348 71% 64% / 0.14) !important;
    border-color: hsl(348 71% 64% / 0.45) !important;
    color: hsl(348 71% 64%) !important;
  }

  /* Checkbox hit target on mobile */
  .wl-check {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  /* Mobile empty state */
  .wl-mobile-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
  }

  /* Toolbar adjustments on mobile */
  .wl-toolbar {
    gap: 0.5rem;
  }

  .wl-field {
    flex: 1 1 100%;
    max-width: 100%;
  }

  /* Stat cards on mobile */
  .wl-stat-value {
    font-size: 1.125rem;
  }

  /* Header actions wrap on mobile */
  .wl-actions {
    justify-content: flex-start;
  }
}
