/* --- ₿itLens — ₿itcoin Portfolio Calculator (updated) --- */
:root {
  --color-primary-bg: #0a0a0a;
  --color-secondary-bg: #151515;
  --color-card-bg: #1f1f1f;
  --color-surface: #262626;
  --color-surface-2: #2d2d2d;
  --color-text: #fff;
  --color-muted: #cfcfcf;
  --color-dim: #9a9a9a;
  --color-accent: #f7931a;
  --color-bear: #ef4444;
  --color-base: #3b82f6;
  --color-bull: #10b981;
  --color-custom: #f59e0b;
  --border: #333;
  --panel: var(--color-card-bg);
  --brand: var(--color-accent);
  --muted: var(--color-muted);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

:root[data-theme="light"] {
  --color-primary-bg: #fafafa;
  --color-secondary-bg: #f0f0f0;
  --color-card-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-2: #f7f7f7;
  --color-text: #0a0a0a;
  --color-muted: #333;
  --color-dim: #666;
  --border: #d0d0d0;
  --panel: var(--color-card-bg);
  --brand: var(--color-accent);
  --muted: var(--color-muted);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(
    135deg,
    var(--color-primary-bg),
    var(--color-secondary-bg)
  );
  color: var(--color-text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}
.app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.header {
  margin-bottom: 24px;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 0;
  border-bottom: 1px solid rgba(247, 147, 26, 0.3);
  position: relative;
}
.tab-nav {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.tab-button {
  background: var(--color-surface);
  border: 1px solid var(--border);
  color: var(--color-text);
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}
.tab-button.active {
  background: var(--color-accent);
  color: #121212;
}
.hidden {
  display: none;
}
.header-title {
  font-weight: 700;
  font-size: 28px;
  text-shadow: 0 0 8px rgba(247, 147, 26, 0.25);
  color: var(--color-accent);
}

.header-slogan {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
  color: inherit;
}

.section-subtitle {
  margin: 22px 0 8px;
  font-size: 16px;
  color: var(--color-muted);
  font-weight: 500;
  text-align: center;
}
.header-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}
.currency-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}
.currency-toggle.hidden {
  display: none;
}
.toggle-label {
  color: var(--color-dim);
  font-size: 13px;
}
.currency-switch {
  display: flex;
  background: var(--color-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
}
.currency-switch input {
  display: none;
}
.currency-option {
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  color: #c9c9c9;
  min-width: 52px;
  text-align: center;
  transition: 0.2s;
}
.currency-switch input:checked + .currency-option {
  background: var(--color-accent);
  color: #121212;
}

.theme-toggle {
  background: var(--color-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--color-text);
}
.glossary-toggle {
  background: var(--color-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--color-text);
}
.header-branding {
  color: var(--color-accent);
  font-weight: 600;
  border: 1px solid rgba(247, 147, 26, 0.3);
  border-radius: 10px;
  padding: 6px 10px;
  background: rgba(247, 147, 26, 0.08);
  text-decoration: none;
}

.price-card {
  background: linear-gradient(135deg, #ffb84d, #f7931a);
  color: #101010;
  border-radius: 20px;
  padding: 18px 18px 12px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.price-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.price-title {
  font-size: 20px;
  font-weight: 700;
}
.price-status {
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #101010;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.price-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 4px;
}
.price-item {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.price-item.active {
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.12);
}
.price-label {
  font-weight: 700;
}
.price-value {
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.2px;
  min-height: 24px;
}
.loading-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: #000;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.last-updated,
.price-note {
  font-size: 12px;
  color: #1e1e1e;
  opacity: 0.9;
}

.section-title-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 0;
}
.section-title {
  font-size: 22px;
  margin: 16px 0 10px;
}
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.scenario-card {
  background: var(--color-card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  transition: 0.18s;
  outline: none;
}
.scenario-card:hover {
  transform: translateY(-2px);
  background: var(--color-surface-2);
}
.scenario-card.active {
  box-shadow: 0 0 0 2px currentColor;
}
.scenario-card.bear {
  color: var(--color-bear);
}
.scenario-card.base {
  color: var(--color-base);
}
.scenario-card.bull {
  color: var(--color-bull);
}
.scenario-card.custom {
  color: var(--color-custom);
}
.scenario-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.scenario-title {
  font-weight: 700;
}
.scenario-rate {
  font-weight: 700;
  font-size: 13px;
}
.scenario-description {
  color: var(--color-muted);
  font-size: 13px;
}
.scenario-slider {
  width: 100%;
  margin-top: 8px;
  accent-color: currentColor;
}

.reset-button {
  margin-top: 12px;
  width: 100%;
  background: var(--color-card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 14px;
  color: var(--color-accent);
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s;
}
.reset-button:hover {
  background: var(--color-surface-2);
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.input-card {
  background: var(--color-card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}
.input-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.premium-input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #111;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: 0.15s;
}
.premium-input::placeholder {
  color: #b9b9b9;
}
[data-theme="light"] .premium-input {
  background: #f2f2f2;
  color: #111;
  border: 1px solid #ddd;
}
[data-theme="light"] .premium-input::placeholder {
  color: #666;
}
.premium-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.2);
}
.input-wrapper {
  position: relative;
}
.input-suffix {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #b9b9b9;
  pointer-events: none;
}
.input-help {
  margin-top: 8px;
  color: #b9b9b9;
  font-size: 12px;
}
.premium-toggle {
  display: inline-flex;
  align-items: center;
}
.premium-toggle input {
  display: none;
}
.toggle-slider {
  width: 40px;
  height: 22px;
  border-radius: 9999px;
  background: #3a3a3a;
  position: relative;
  transition: 0.2s;
  display: inline-block;
}
.toggle-slider::after {
  content: "";
  width: 18px;
  height: 18px;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 9999px;
  background: #fff;
  transition: 0.2s;
}
.premium-toggle input:checked + .toggle-slider {
  background: var(--color-accent);
}
.premium-toggle input:checked + .toggle-slider::after {
  left: 20px;
}
.dca-inputs {
  opacity: 0.6;
  transition: 0.2s;
}
.dca-inputs.enabled {
  opacity: 1;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 10px;
}
.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}
.summary-card {
  background: var(--color-card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}
.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.summary-value {
  font-size: 20px;
  font-weight: 700;
}
.summary-return {
  font-size: 13px;
  margin-top: 6px;
}
.summary-return.positive {
  color: #56d364;
}
.summary-return.negative {
  color: #ff6b6b;
}

.chart-card {
  background: var(--color-card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  margin-top: 16px;
}
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.chart-container {
  position: relative;
  height: 420px;
}
.chart-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--color-muted);
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  display: inline-block;
}

.footer {
  margin: 26px 0 8px;
}
.footer-content {
  color: #bdbdbd;
  font-size: 13px;
}
.footer-brand {
  color: var(--color-accent);
  text-decoration: none;
}

.inline-tip {
  display: inline-flex;
  align-items: center;
  position: relative;
}
.tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: #e0e0e0;
  border: 1px solid var(--border);
  font-size: 12px;
  color: #111;
  cursor: help;
}
[data-theme="light"] .tip-icon {
  background: #333;
  color: #fff;
}
.inline-tip:hover::after,
.inline-tip:focus-within::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 125%;
  background: #0f0f0f;
  border: 1px solid #333;
  padding: 8px 10px;
  border-radius: 10px;
  white-space: pre-line;
  min-width: 220px;
  max-width: 280px;
  box-shadow: var(--shadow);
  font-size: 12px;
  color: #eaeaea;
  z-index: 10;
}

.value-update {
  animation: bump 0.6s ease;
}
@keyframes bump {
  0% {
    transform: scale(0.98);
    opacity: 0.85;
  }
  60% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mobile first tweaks */
@media (max-width: 980px) {
  .input-grid {
    grid-template-columns: 1fr 1fr;
  }
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }
  .breakdown-grid {
    grid-template-columns: 1fr 1fr;
  }
  .chart-container {
    height: 360px;
  }
}
@media (max-width: 640px) {
  .header-content {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .branding {
    position: static;
    transform: none;
  }
  .header-controls {
    margin-left: 0;
    justify-content: center;
  }
  .price-display {
    grid-template-columns: 1fr;
  }
  .scenario-grid {
    grid-template-columns: 1fr;
  }
  .input-grid {
    grid-template-columns: 1fr;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .breakdown-grid {
    grid-template-columns: 1fr;
  }
  .chart-container {
    height: 300px;
  }
  .app {
    padding: 14px;
  }
  .currency-option {
    min-width: 64px;
  }
}

.card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin: 24px 0;
  background: linear-gradient(145deg, var(--color-surface), var(--color-surface-2));
  box-shadow: var(--shadow);
}

.onchain-grid .card {
  margin: 0;
}
.rt-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .rt-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rt-grid > .rt-item:first-child,
  .rt-grid > .rt-item:nth-child(2) {
    grid-column: 1 / -1;
  }
}
#tv-btc,
#tv-btcd,
#tv-mstr,
#tv-m2 {
  width: 100%;
  height: 380px;
}
.chart-explainer {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 4px 0 8px;
}
.muted {
  opacity: 0.7;
}

.onchain-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .onchain-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.bar {
  width: 100%;
  height: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}
.bar > span {
  display: block;
  height: 100%;
  background: var(--brand);
}
.bar-percent {
  margin-top: 4px;
  font-weight: 500;
}
.fee-pill {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-right: 8px;
}
.countdown {
  margin-top: 4px;
  font-weight: 500;
}

.oc-desc {
  margin-top: 8px;
  line-height: 1.4;
  font-size: 0.9rem;
}

.oc-facts-list {
  margin-top: 8px;
  padding-left: 20px;
  line-height: 1.4;
  font-size: 0.9rem;
}
.btn {
  background: var(--color-surface);
  border: 1px solid var(--border);
  color: var(--color-text);
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.export-buttons {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

#dca-frequency {
  margin-top: 8px;
}

.chart-card { border: 1px solid var(--border, #e5e5e5); border-radius: 12px; padding: 12px; }
@media (prefers-color-scheme: dark) {
  .chart-card { border-color: #333; }
}

/* Self-Custody Tab */
.sc-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.sc-step-icon {
  font-size: 32px;
}
.sc-hero {
  text-align: center;
  padding: 24px 16px;
  margin-bottom: 16px;
}
.sc-hero-icon {
  font-size: 48px;
  color: var(--brand);
}
.sc-hero-title {
  font-size: 32px;
  margin: 8px 0;
  color: var(--brand);
}
.sc-hero-sub {
  color: var(--muted);
}
.callout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  margin: 12px 0;
  font-weight: 500;
}
.callout::before {
  font-size: 20px;
}
.callout.danger {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
}
.callout.danger::before {
  content: "⚠️";
  color: var(--brand);
}
.callout.tip {
  background: rgba(255, 212, 59, 0.1);
  color: #ffd43b;
}
.callout.tip::before {
  content: "💡";
  color: #ffd43b;
}
.sc-step .callout {
  margin-top: 8px;
}
.sc-step .callout.tip {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 9999px;
  font-size: 0.875rem;
}
.sc-step .callout.danger {
  display: block;
}
.check {
  display: flex;
  align-items: center;
  margin-top: 6px;
}
.check-item {
  appearance: none;
  width: 0;
  height: 0;
  margin: 0;
}
.check-text {
  color: var(--color-text);
}
.check-text::before {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid var(--brand);
  border-radius: 4px;
  color: transparent;
  font-size: 14px;
}
.check-item:checked + .check-text::before {
  content: "✔";
  background: var(--color-bull);
  border-color: var(--color-bull);
  color: var(--color-text);
}
.sc-progress {
  margin-top: 12px;
  margin-bottom: 12px;
}
.sc-progress .progress-bar {
  width: 100%;
  height: 8px;
  border: 1px solid var(--border);
  background: var(--color-surface);
  border-radius: 4px;
  overflow: hidden;
}
.sc-progress .progress-bar div {
  height: 100%;
  width: 0;
  background: var(--brand);
  transition: width 0.3s;
}
.progress-text {
  margin-top: 8px;
  font-weight: 600;
  text-align: center;
  color: var(--color-dim);
}

/* Step cards */
.sc-step.card {
  background: var(--color-card-bg);
}
.sc-step h3 {
  color: var(--brand);
  font-weight: 700;
}
.sc-step p {
  color: var(--color-text);
}

/* Resources & FAQ */
.sc-resources h3 {
  color: var(--color-text);
}
.sc-resources p {
  color: var(--muted);
}
.sc-resources a {
  color: var(--brand);
}
.sc-resources details summary {
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}
.sc-resources details p {
  color: var(--muted);
}

/* Why Bitcoin guide */
.wb-hero {
  text-align: center;
  margin-bottom: 48px;
  padding: 60px 16px;
}
.wb-hero-icon {
  font-size: 5rem;
  margin: 0 0 8px;
  color: var(--brand);
}
.wb-hero-title {
  font-size: 2.5rem;
  margin: 0 0 16px;
  color: var(--brand);
}
.wb-hero-sub {
  margin: 0 0 24px;
  color: var(--color-text);
  font-size: 1.125rem;
}
.wb-tldr {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}
.wb-chip {
  background: var(--color-surface);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 14px;
}
.wb-hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.wb-hero-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.wb-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-family: inherit;
  font-size: 1rem;
}
.wb-btn.primary {
  background: var(--brand);
  color: var(--color-primary-bg);
  border: none;
}
.wb-btn.secondary {
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--brand);
}
.wb-modules-intro {
  max-width: 640px;
  margin: 0 auto 24px;
  text-align: center;
  color: var(--color-text);
}
.wb-progress-wrap {
  margin: 24px 0;
}
.wb-progress {
  height: 8px;
  background: var(--color-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.wb-progress-fill {
  height: 100%;
  width: 0;
  background: var(--brand);
  transition: width 0.3s;
}
@media (prefers-reduced-motion: reduce) {
  .wb-progress-fill {
    transition: none;
  }
}
.wb-progress-text {
  margin-top: 8px;
  text-align: center;
  font-weight: 600;
}
.wb-util {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.wb-search {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--color-card-bg);
  color: var(--color-text);
}
.wb-module {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--color-card-bg);
}
.wb-acc {
  width: 100%;
  text-align: left;
  background: none;
  color: var(--color-text);
  border: none;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.wb-acc:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.wb-status {
  margin-left: 8px;
  color: var(--brand);
}
.wb-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
@media (prefers-reduced-motion: reduce) {
  .wb-panel {
    transition: none;
  }
}
.wb-body {
  padding: 16px;
}
.wb-callout {
  background: var(--color-surface);
  border-left: 4px solid var(--brand);
  padding: 8px 12px;
  border-radius: 6px;
  margin: 8px 0;
}
.wb-mark {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}
.wb-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.wb-disclaimer {
  margin-top: 12px;
  font-size: 0.9em;
  color: var(--muted);
}
.wb-footnote {
  text-align: center;
  margin-top: 32px;
  font-size: 0.85em;
}
.wb-progress-micro {
  text-align: center;
  margin-top: 8px;
  font-size: 0.9em;
}
.wb-progress-micro a,
.wb-progress-micro a:visited {
  color: var(--brand);
}
.wb-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  padding: 40px 20px;
  backdrop-filter: blur(4px);
  z-index: 1000;
}
.wb-search-overlay.hidden {
  display: none;
}
.wb-search-box {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.wb-search-box input {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--color-card-bg);
  color: var(--color-text);
}
.wb-search-close {
  background: var(--color-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}
.wb-glossary {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 60vh;
  overflow: auto;
}
.wb-glossary-item {
  margin: 4px 0;
}
@media (max-width:600px) {
  .wb-util {
    flex-direction: column;
    align-items: stretch;
  }
  .wb-share {
    width: 100%;
  }
}
