:root {
  --bwg-surface: #ffffff;
  --bwg-surface-subtle: #f8fafc;
  --bwg-border: #e2e8f0;
  --bwg-border-strong: #cbd5e1;
  --bwg-text: #0f172a;
  --bwg-text-muted: #64748b;
  --bwg-brand: var(--tf-accent);
  --bwg-brand-hover: var(--tf-accent-hover);
  --bwg-badge-bg: var(--tf-accent-wash);
  --bwg-badge-text: #1d6a5f;
  --bwg-whatsapp: #16a34a;
  --bwg-whatsapp-hover: #15803d;
  --bwg-success: #15803d;
  --shadow: none;
}

.bwg-main {
  box-sizing: border-box;
  max-width: 46rem;
  margin-inline: auto;
  padding: 1.5rem 1rem 3rem;
}

.bwg-wrap {
  box-sizing: border-box;
  padding-inline: 1.5rem;
  margin-inline: auto;
  max-width: 46rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bwg-panel {
  background: var(--bwg-surface);
  border: 1px solid var(--bwg-border);
  border-radius: 2px;
  padding: 1.5rem;
  box-shadow: none;
}

.bwg-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.bwg-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bwg-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bwg-text);
}

.bwg-field select, .bwg-field input {
  border: 1px solid var(--bwg-border-strong);
  border-radius: 2px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: var(--bwg-text);
  background: var(--bwg-surface);
  outline: none;
}

.bwg-action-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.bwg-btn {
  background: var(--bwg-brand);
  color: #ffffff;
  border: none;
  border-radius: 2px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  flex: 2;
  transition: background 0.15s ease;
}

.bwg-btn:hover {
  background: var(--bwg-brand-hover);
}

.bwg-secondary-btn {
  background: var(--bwg-surface);
  border: 1px solid var(--bwg-border-strong);
  border-radius: 2px;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bwg-text);
  cursor: pointer;
  flex: 1;
  transition: background 0.15s;
}

.bwg-secondary-btn:hover {
  background: var(--bwg-surface-subtle);
}

.bwg-results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bwg-featured-card {
  background: var(--bwg-surface);
  border: 1px solid var(--bwg-border);
  border-left: 4px solid var(--bwg-brand);
  border-radius: 2px;
  padding: 1.75rem;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bwg-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bwg-badge {
  background: var(--bwg-badge-bg);
  color: var(--bwg-badge-text);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bwg-copied-notice {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bwg-success);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bwg-copied-notice.visible {
  opacity: 1;
}

.bwg-message-text {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--bwg-text);
  font-weight: 500;
  margin: 0;
}

.bwg-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.bwg-copy-btn, .bwg-card-btn {
  background: var(--bwg-surface-subtle);
  border: 1px solid var(--bwg-border-strong);
  border-radius: 2px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bwg-text);
  cursor: pointer;
  transition: background 0.15s;
}

.bwg-copy-btn:hover, .bwg-card-btn:hover {
  background: var(--bwg-border);
}

.bwg-share-btn {
  background: var(--bwg-whatsapp);
  color: #ffffff;
  border: none;
  border-radius: 2px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.bwg-share-btn:hover {
  background: var(--bwg-whatsapp-hover);
}

.bwg-variations-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bwg-variations-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bwg-text-muted);
  margin: 0;
}

.bwg-variations-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bwg-var-card {
  background: var(--bwg-surface);
  border: 1px solid var(--bwg-border);
  border-radius: 2px;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.bwg-var-text {
  font-size: 0.95rem;
  color: var(--bwg-text);
  line-height: 1.45;
  margin: 0;
  flex: 1;
}

.bwg-var-copy-btn {
  background: var(--bwg-surface-subtle);
  border: 1px solid var(--bwg-border);
  border-radius: 2px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bwg-text);
  cursor: pointer;
  white-space: nowrap;
}

.bwg-var-copy-btn:hover {
  background: var(--bwg-border);
}

.bwg-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.bwg-stat-card {
  background: var(--bwg-surface);
  border: 1px solid var(--bwg-border);
  border-radius: 2px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: none;
}

.bwg-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bwg-text-muted);
}

.bwg-stat-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bwg-text);
}
/* tf:dark-palette — generated by migrate_chrome.py */
/* Neutrals inherit the shared chrome tokens so all tools share one
   ground; brand hues are kept and lightened, never inverted. */
[data-theme="dark"] {
  --bwg-surface: var(--tf-surface);
  --bwg-surface-subtle: var(--tf-surface);
  --bwg-border: var(--tf-surface);
  --bwg-border-strong: #98abc3;
  --bwg-text: var(--tf-ink);
  --bwg-text-muted: var(--tf-ink-faint);
  --bwg-badge-text: #59cfbe;
  --bwg-whatsapp: #7ad89d;
  --bwg-whatsapp-hover: #5ed089;
  --bwg-success: #5ed089;
}
