:root {
  --wb-primary: #0284c7;
  --wb-primary-hover: #0369a1;
  --wb-bg-card: #ffffff;
  --wb-border: #e2e8f0;
  --wb-text-main: #0f172a;
  --wb-text-muted: #64748b;
  --wb-pill-bg: #f1f5f9;
  --wb-pill-hover: #e2e8f0;
  --wb-result-bg: #f8fafc;
  --wb-hl-bg: #fdf2f8;
  --wb-hl-border: #fbcfe8;
  --wb-hl-text: #9d174d;
}

.wb-tool-container {
  max-width: 900px;
  margin: 0 auto 3rem auto;
  font-family: inherit;
  color: var(--wb-text-main);
}

.wb-editor-card {
  background: var(--wb-bg-card);
  border: 1px solid var(--wb-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.wb-presets-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--wb-border);
}

.wb-presets-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--wb-text-muted);
}

.wb-pill-btn {
  background: var(--wb-pill-bg);
  border: 1px solid var(--wb-border);
  color: var(--wb-text-main);
  border-radius: 9999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.wb-pill-btn:hover {
  background: var(--wb-pill-hover);
  border-color: var(--wb-primary);
}

.wb-grid-3 {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .wb-grid-3 {
    grid-template-columns: 1fr;
  }
}

.wb-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--wb-text-main);
}

.wb-cur-sym {
  font-weight: inherit;
}

.wb-req {
  color: #dc2626;
}

.wb-field input,
.wb-field select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--wb-border);
  border-radius: 8px;
  background: var(--wb-bg-card);
  color: var(--wb-text-main);
  font-size: 0.95rem;
  box-sizing: border-box;
}

.wb-field input:focus,
.wb-field select:focus {
  outline: none;
  border-color: var(--wb-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.wb-action-row {
  display: flex;
  gap: 0.75rem;
}

.wb-primary-btn {
  flex: 2;
  background: var(--wb-primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.wb-primary-btn:hover {
  background: var(--wb-primary-hover);
}

.wb-secondary-btn {
  background: var(--wb-pill-bg);
  color: var(--wb-text-main);
  border: 1px solid var(--wb-border);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.wb-results-card {
  background: var(--wb-result-bg);
  border: 1px solid var(--wb-border);
  border-radius: 12px;
  padding: 1.75rem;
}

.wb-highlight-box {
  background: var(--wb-hl-bg);
  border: 1px solid var(--wb-hl-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.wb-hl-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--wb-hl-text);
  margin-bottom: 0.25rem;
  display: block;
}

.wb-hl-val {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--wb-hl-text);
  margin-bottom: 0.25rem;
}

.wb-hl-sub {
  font-size: 0.85rem;
  color: var(--wb-hl-text);
}

.wb-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .wb-specs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .wb-specs-grid {
    grid-template-columns: 1fr;
  }
}

.wb-spec-item {
  background: var(--wb-bg-card);
  border: 1px solid var(--wb-border);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.wb-spec-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--wb-text-muted);
}

.wb-spec-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--wb-text-main);
}

.wb-spec-sub {
  font-size: 0.75rem;
  color: var(--wb-text-muted);
}

.wb-table-card {
  background: var(--wb-bg-card);
  border: 1px solid var(--wb-border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.wb-sub-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.85rem 0;
  color: var(--wb-text-main);
}

.wb-table-desc {
  font-size: 0.85rem;
  color: var(--wb-text-muted);
  margin: 0 0 1rem 0;
}

.wb-table-wrap {
  overflow-x: auto;
}

.wb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.wb-table th,
.wb-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--wb-border);
}

.wb-table th {
  background: var(--wb-pill-bg);
  font-weight: 700;
  color: var(--wb-text-muted);
}

.wb-seat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .wb-seat-grid {
    grid-template-columns: 1fr;
  }
}

.wb-seat-card {
  background: var(--wb-pill-bg);
  border: 1px solid var(--wb-border);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.wb-seat-type {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--wb-text-muted);
  display: block;
  margin-bottom: 0.25rem;
}

.wb-seat-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--wb-primary);
  display: block;
  margin-bottom: 0.2rem;
}

.wb-seat-sub {
  font-size: 0.75rem;
  color: var(--wb-text-muted);
}

.wb-tip-box {
  background: var(--wb-bg-card);
  border: 1px solid var(--wb-border);
  border-radius: 8px;
  padding: 1.25rem;
}

.wb-tip-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: var(--wb-primary);
}

.wb-tip-box p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--wb-text-muted);
  line-height: 1.5;
}

.wb-ad {
  overflow: hidden;
  min-height: 280px;
  margin: 32px 0;
  text-align: center;
}
/* 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"] {
  --wb-primary: #81bcda;
  --wb-primary-hover: #69aed4;
  --wb-bg-card: var(--tf-surface);
  --wb-border: var(--tf-surface);
  --wb-text-main: var(--tf-ink);
  --wb-text-muted: var(--tf-ink-faint);
  --wb-pill-bg: var(--tf-surface);
  --wb-pill-hover: var(--tf-surface);
  --wb-result-bg: var(--tf-surface);
  --wb-hl-bg: var(--tf-surface);
  --wb-hl-border: var(--tf-surface);
  --wb-hl-text: #d7769d;
}
