/* =====================================================================
   webtools.co — Components
   ---------------------------------------------------------------------
   All classes are prefixed `wt-`. Every color/size comes from tokens.css.
   Naming: block, block__element, block--modifier, .is-state.
   Load AFTER tokens.css. Coexists with Bootstrap; never depends on it.
   ===================================================================== */

/* ---- Base ------------------------------------------------------------ */
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body.wt-body,
.wt-body {
  margin: 0;
  padding: 0;                             /* replaces the legacy 20px body pad */
  background: var(--wt-paper);
  color: var(--wt-ink-600);
  font-family: var(--wt-font-body);
  font-size: var(--wt-text-ui);
  line-height: var(--wt-leading-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
}
.wt-body ::selection { background: var(--wt-signal-soft); color: var(--wt-ink-950); }
.wt-body :focus-visible { outline: none; box-shadow: var(--wt-ring); border-radius: var(--wt-radius-sm); }
.wt-body a { color: var(--wt-ink-800); text-decoration: underline; text-decoration-color: var(--wt-ink-300); text-underline-offset: 0.15em; transition: text-decoration-color var(--wt-duration) var(--wt-ease); }
.wt-body a:hover { text-decoration-color: var(--wt-signal); color: var(--wt-ink-950); }
/* Bootstrap .btn links still used in Phases 0–6; don't inherit prose link color. */
.wt-body a.btn { text-decoration: none; }
.wt-body a.btn-primary, .wt-body a.btn-primary:hover { color: var(--wt-paper); }
.wt-body a.btn-outline-primary:hover { color: var(--wt-ink-950); }
.wt-body img, .wt-body svg, .wt-body canvas { max-width: 100%; height: auto; }

.wt-body h1, .wt-body h2, .wt-body h3, .wt-body h4,
.wt-h1, .wt-h2, .wt-h3, .wt-h4 {
  margin: 0;
  color: var(--wt-ink-950);
  font-family: var(--wt-font-display);
  font-weight: 600;
  letter-spacing: var(--wt-tracking-tight);
  line-height: var(--wt-leading-snug);
  text-wrap: balance;
  border: 0; padding: 0;                  /* kills legacy h2 border-bottom */
}
.wt-h1, .wt-body h1 { font-size: var(--wt-text-3xl); font-weight: 700; line-height: var(--wt-leading-tight); }
.wt-h2, .wt-body h2 { font-size: var(--wt-text-2xl); }
.wt-h3, .wt-body h3 { font-size: var(--wt-text-xl); }
.wt-h4, .wt-body h4 { font-size: var(--wt-text-lg); font-family: var(--wt-font-body); letter-spacing: 0; }
.wt-body p { margin: 0; }
.wt-body p + p { margin-top: var(--wt-space-4); }

/* Figures: mono + tabular, always. This is the identity's signature. */
.wt-num, .wt-mono, .num {
  font-family: var(--wt-font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
  font-feature-settings: "tnum", "zero";
  letter-spacing: -0.01em;
}
.wt-eyebrow {
  display: inline-block;
  font-family: var(--wt-font-mono);
  font-size: var(--wt-text-2xs);
  font-weight: 500;
  letter-spacing: var(--wt-tracking-caps);
  text-transform: uppercase;
  color: var(--wt-ink-500);
}
.wt-eyebrow--signal { color: var(--wt-signal-ink); }
.wt-muted { color: var(--wt-ink-500); }
.wt-lead { font-size: var(--wt-text-lg); line-height: var(--wt-leading-body); color: var(--wt-ink-600); max-width: var(--wt-measure); }
.wt-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Key number highlight inside prose or a hero sentence */
.wt-key {
  font-family: var(--wt-font-mono);
  font-weight: 600;
  color: var(--wt-ink-950);
  background: linear-gradient(transparent 60%, var(--wt-signal-soft) 60%);
  padding: 0 0.15em;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .wt-body *, .wt-body *::before, .wt-body *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---- Layout --------------------------------------------------------- */
.wt-container { width: 100%; max-width: var(--wt-container); margin-inline: auto; padding-inline: var(--wt-gutter); }
.wt-container--narrow { max-width: calc(var(--wt-measure) + 2 * var(--wt-gutter)); }
.wt-section { padding-block: var(--wt-space-8); }
.wt-section--tight { padding-block: var(--wt-space-6); }
.wt-band { background: var(--wt-paper-2); border-block: 1px solid var(--wt-ink-100); }
.wt-band--inverse { background: var(--wt-paper-inverse); color: var(--wt-paper); }
.wt-hairline { border: 0; border-top: 1px solid var(--wt-ink-200); margin: 0; }

.wt-section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--wt-space-3) var(--wt-space-6);
  margin-bottom: var(--wt-space-5);
}
.wt-section-head__title { display: grid; gap: var(--wt-space-2); }
.wt-section-head__dek { color: var(--wt-ink-500); max-width: 56ch; }
.wt-section-head__aside { font-size: var(--wt-text-sm); white-space: nowrap; }

.wt-grid { display: grid; gap: var(--wt-space-4); }
.wt-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.wt-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.wt-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.wt-split { display: grid; gap: var(--wt-space-6); grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
@media (max-width: 900px) { .wt-split { grid-template-columns: 1fr; } }

/* ---- Header --------------------------------------------------------- */
.wt-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--wt-paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--wt-ink-200);
}
.wt-header__inner { display: flex; align-items: center; gap: var(--wt-space-5); min-height: 60px; }
.wt-mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--wt-ink-950); }
.wt-mark__glyph { width: 26px; height: 26px; flex: none; }
.wt-mark__glyph .s1 { fill: var(--wt-ink-800); }
.wt-mark__glyph .s2 { fill: var(--wt-signal); }
.wt-mark__word { font-family: var(--wt-font-display); font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.03em; color: var(--wt-ink-950); }
.wt-mark__word b { font-weight: 700; color: var(--wt-ink-400); }
.wt-nav { display: flex; align-items: center; gap: var(--wt-space-1); margin-left: auto; }
.wt-nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--wt-radius-md);
  font-size: var(--wt-text-ui); font-weight: 500; color: var(--wt-ink-600);
  text-decoration: none !important;
  transition: background var(--wt-duration) var(--wt-ease), color var(--wt-duration) var(--wt-ease);
}
.wt-nav__link:hover { background: var(--wt-paper-3); color: var(--wt-ink-950); }
.wt-nav__link.is-active { color: var(--wt-ink-950); box-shadow: inset 0 -2px 0 var(--wt-signal); border-radius: 0; }
.wt-nav__link svg { width: 12px; height: 12px; opacity: .6; }
.wt-nav__cta { margin-left: var(--wt-space-2); }
.wt-header .wt-nav__toggle { display: none; margin-left: auto; }
.wt-nav .dropdown-toggle::after { display: none; }
.wt-nav--mobile {
  display: none;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: var(--wt-space-2) var(--wt-gutter) var(--wt-space-4);
  border-top: 1px solid var(--wt-ink-200);
  background: var(--wt-paper);
}
.wt-nav--mobile.collapse.show,
.wt-nav--mobile.collapsing { display: grid; }
.wt-nav--mobile .wt-nav__link { width: 100%; }
.wt-nav--mobile .wt-btn { width: 100%; margin-top: var(--wt-space-2); }
@media (max-width: 960px) {
  .wt-nav { display: none; }
  .wt-header .wt-nav__toggle { display: inline-flex; }
}

/* ---- Buttons -------------------------------------------------------- */
.wt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--wt-radius-md);
  border: 1px solid transparent;
  font: 500 var(--wt-text-ui)/1 var(--wt-font-body);
  text-decoration: none !important; cursor: pointer; white-space: nowrap;
  transition: background var(--wt-duration) var(--wt-ease), border-color var(--wt-duration) var(--wt-ease), color var(--wt-duration) var(--wt-ease), transform var(--wt-duration) var(--wt-ease);
}
.wt-btn:active { transform: translateY(1px); }
.wt-btn svg { width: 14px; height: 14px; }
.wt-btn--primary { background: var(--wt-ink-800); color: var(--wt-paper) !important; }
.wt-btn--primary:hover { background: var(--wt-ink-950); }
.wt-btn--secondary { background: transparent; color: var(--wt-ink-800) !important; border-color: var(--wt-ink-300); }
.wt-btn--secondary:hover { background: var(--wt-paper-3); border-color: var(--wt-ink-800); }
.wt-btn--ghost { background: transparent; color: var(--wt-ink-700) !important; padding-inline: 8px; }
.wt-btn--ghost:hover { background: var(--wt-paper-3); color: var(--wt-ink-950) !important; }
.wt-btn--inverse { background: var(--wt-paper); color: var(--wt-ink-950) !important; }
.wt-btn--sm { padding: 6px 10px; font-size: var(--wt-text-sm); }
.wt-btn--lg { padding: 13px 20px; font-size: 1rem; }
.wt-btn-row { display: flex; flex-wrap: wrap; gap: var(--wt-space-3); align-items: center; }

/* ---- Chips ---------------------------------------------------------- */
.wt-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: var(--wt-radius-pill);
  border: 1px solid var(--wt-ink-200); background: var(--wt-paper);
  font-size: var(--wt-text-xs); font-weight: 500; color: var(--wt-ink-600);
  line-height: 1.4; white-space: nowrap; text-decoration: none !important;
}
.wt-chip--signal { background: var(--wt-signal-soft); border-color: transparent; color: var(--wt-signal-ink); }
.wt-chip--good { background: var(--wt-good-soft); border-color: transparent; color: var(--wt-good-ink); }
.wt-chip--warn { background: var(--wt-warn-soft); border-color: transparent; color: var(--wt-warn-ink); }
.wt-chip--bad  { background: var(--wt-bad-soft);  border-color: transparent; color: var(--wt-bad-ink); }
.wt-chip--mono { font-family: var(--wt-font-mono); font-size: var(--wt-text-2xs); letter-spacing: 0.04em; text-transform: uppercase; }
.wt-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--wt-ink-400)); flex: none; }
.wt-chip-row { display: flex; flex-wrap: wrap; gap: var(--wt-space-2); }

/* Delta: a signed % difference. Direction = semantic color; label always spells it out. */
.wt-delta { display: inline-flex; align-items: baseline; gap: 5px; font-family: var(--wt-font-mono); font-size: var(--wt-text-sm); font-weight: 600; color: var(--wt-ink-700); }
.wt-delta--good { color: var(--wt-good-ink); }
.wt-delta--bad { color: var(--wt-bad-ink); }
.wt-delta small { font-family: var(--wt-font-body); font-weight: 500; color: var(--wt-ink-500); font-size: var(--wt-text-xs); }

/* ---- Stat tile ------------------------------------------------------ */
.wt-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 0; border: 1px solid var(--wt-ink-200); border-radius: var(--wt-radius-lg); overflow: hidden; background: var(--wt-paper); }
.wt-stat { display: grid; gap: 6px; padding: var(--wt-space-5); border-right: 1px solid var(--wt-ink-200); }
.wt-stat:last-child { border-right: 0; }
@media (max-width: 700px) { .wt-stat { border-right: 0; border-bottom: 1px solid var(--wt-ink-200); } .wt-stat:last-child { border-bottom: 0; } }
.wt-stat__label { font-family: var(--wt-font-mono); font-size: var(--wt-text-2xs); letter-spacing: var(--wt-tracking-caps); text-transform: uppercase; color: var(--wt-ink-500); }
.wt-stat__value { font-family: var(--wt-font-mono); font-variant-numeric: tabular-nums slashed-zero; font-size: var(--wt-text-3xl); font-weight: 600; line-height: 1; color: var(--wt-ink-950); letter-spacing: -0.03em; }
.wt-stat__value sup, .wt-stat__unit { font-size: 0.45em; font-weight: 500; color: var(--wt-ink-500); vertical-align: top; margin-left: 4px; letter-spacing: 0; }
.wt-stat__basis { font-size: var(--wt-text-sm); color: var(--wt-ink-500); }
.wt-stat--hero .wt-stat__value { font-size: var(--wt-text-5xl); }
.wt-stat__value--text { font-family: var(--wt-font-display); font-size: var(--wt-text-xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; font-variant-numeric: normal; }
.wt-stat.is-focus { background: var(--wt-signal-soft); }
.wt-stat.is-focus .wt-stat__label { color: var(--wt-signal-ink); }

/* ---- Ledger (data table) ------------------------------------------- */
.wt-ledger-wrap { overflow-x: auto; border: 1px solid var(--wt-ink-200); border-radius: var(--wt-radius-lg); background: var(--wt-paper); }
.wt-ledger { width: 100%; border-collapse: collapse; font-size: var(--wt-text-sm); }
.wt-ledger caption { text-align: left; padding: var(--wt-space-3) var(--wt-space-4); color: var(--wt-ink-500); font-size: var(--wt-text-xs); caption-side: bottom; border-top: 1px solid var(--wt-ink-100); }
.wt-ledger th {
  text-align: left; padding: 10px var(--wt-space-4);
  background: var(--wt-paper-2); border-bottom: 1px solid var(--wt-ink-200);
  font-family: var(--wt-font-mono); font-size: var(--wt-text-2xs); font-weight: 500;
  letter-spacing: var(--wt-tracking-caps); text-transform: uppercase; color: var(--wt-ink-500);
  white-space: nowrap;
}
.wt-ledger th.is-sortable { cursor: pointer; user-select: none; }
.wt-ledger th.is-sortable::after { content: "↕"; margin-left: 6px; opacity: .5; }
.wt-ledger th.is-sorted-asc::after { content: "↑"; opacity: 1; color: var(--wt-ink-950); }
.wt-ledger th.is-sorted-desc::after { content: "↓"; opacity: 1; color: var(--wt-ink-950); }
.wt-ledger td { padding: 11px var(--wt-space-4); border-bottom: 1px solid var(--wt-ink-100); color: var(--wt-ink-600); vertical-align: middle; }
.wt-ledger tbody tr:last-child td { border-bottom: 0; }
.wt-ledger tbody tr:hover td { background: var(--wt-paper-2); }
.wt-ledger .num, .wt-ledger th.num { text-align: right; font-family: var(--wt-font-mono); font-variant-numeric: tabular-nums slashed-zero; color: var(--wt-ink-950); }
.wt-ledger .num .unit { color: var(--wt-ink-400); font-size: 0.85em; margin-left: 2px; }
.wt-ledger .name { font-weight: 600; color: var(--wt-ink-950); }
.wt-ledger .name a { text-decoration: none; }
.wt-ledger .name a:hover { text-decoration: underline; }
.wt-ledger .na { color: var(--wt-ink-300); }
.wt-ledger tr.is-focus td { background: var(--wt-signal-soft); }
.wt-ledger tr.is-focus td:first-child { box-shadow: inset 3px 0 0 var(--wt-signal); }
.wt-ledger--compact th, .wt-ledger--compact td { padding-block: 7px; }
.wt-ledger--borderless { border: 0; border-radius: 0; }

/* ---- Bars (horizontal magnitude) ----------------------------------- */
.wt-bars { display: grid; gap: 10px; }
.wt-bar { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr auto; align-items: center; gap: var(--wt-space-3); font-size: var(--wt-text-sm); }
.wt-bar__label { color: var(--wt-ink-700); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-bar__label a { text-decoration: none; color: inherit; }
.wt-bar__track { height: 14px; background: var(--wt-viz-grid); border-radius: var(--wt-radius-sm); overflow: hidden; }
.wt-bar__fill { height: 100%; width: var(--w, 0%); background: var(--wt-viz-base); border-radius: 0 var(--wt-radius-sm) var(--wt-radius-sm) 0; transition: width 400ms var(--wt-ease); }
.wt-bar__value { font-family: var(--wt-font-mono); font-variant-numeric: tabular-nums; color: var(--wt-ink-950); font-weight: 600; min-width: 4.5rem; text-align: right; }
.wt-bar.is-focus .wt-bar__fill { background: var(--wt-viz-focus); }
.wt-bar.is-focus .wt-bar__label { color: var(--wt-ink-950); font-weight: 600; }
.wt-bar--a .wt-bar__fill { background: var(--wt-viz-base); }
.wt-bar--b .wt-bar__fill { background: var(--wt-viz-focus); }
.wt-bars__axis { display: flex; justify-content: space-between; font-family: var(--wt-font-mono); font-size: var(--wt-text-2xs); color: var(--wt-ink-500); padding-left: calc(11rem + var(--wt-space-3)); }
@media (max-width: 600px) { .wt-bar { grid-template-columns: 1fr auto; } .wt-bar__label { grid-column: 1 / -1; } .wt-bars__axis { padding-left: 0; } }

/* Paired bars: two series per row (A vs B). */
.wt-pair { display: grid; gap: 6px; padding-block: 8px; border-bottom: 1px solid var(--wt-ink-100); }
.wt-pair:last-child { border-bottom: 0; }
.wt-pair__label { font-size: var(--wt-text-sm); font-weight: 600; color: var(--wt-ink-950); }
.wt-pair .wt-bar { gap: var(--wt-space-2); grid-template-columns: 4.5rem 1fr auto; }
.wt-pair .wt-bar__label { font-size: var(--wt-text-xs); color: var(--wt-ink-500); font-weight: 500; }
.wt-pair .wt-bar__track { height: 10px; }
.wt-legend { display: flex; gap: var(--wt-space-4); font-size: var(--wt-text-xs); color: var(--wt-ink-500); }
.wt-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--wt-viz-base); }
.wt-legend span.b::before { background: var(--wt-viz-focus); }

/* ---- VS header (comparison pages) ---------------------------------- */
.wt-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; border: 1px solid var(--wt-ink-200); border-radius: var(--wt-radius-lg); overflow: hidden; background: var(--wt-paper); }
.wt-vs__side { padding: var(--wt-space-5); display: grid; gap: var(--wt-space-3); align-content: start; }
.wt-vs__side--b { text-align: right; justify-items: end; }
.wt-vs__name { font-family: var(--wt-font-display); font-size: var(--wt-text-xl); font-weight: 700; color: var(--wt-ink-950); display: flex; align-items: center; gap: 10px; }
.wt-vs__side--b .wt-vs__name { flex-direction: row-reverse; }
.wt-vs__swatch { width: 12px; height: 12px; border-radius: 3px; background: var(--swatch, var(--wt-ink-400)); flex: none; }
.wt-vs__metrics { display: grid; gap: 6px; }
.wt-vs__metric { display: flex; gap: 10px; align-items: baseline; }
.wt-vs__side--b .wt-vs__metric { flex-direction: row-reverse; }
.wt-vs__metric .k { font-family: var(--wt-font-mono); font-size: var(--wt-text-2xs); text-transform: uppercase; letter-spacing: var(--wt-tracking-caps); color: var(--wt-ink-500); }
.wt-vs__metric .v { font-family: var(--wt-font-mono); font-size: var(--wt-text-xl); font-weight: 600; color: var(--wt-ink-950); }
.wt-vs__metric.is-win .v { background: linear-gradient(transparent 62%, var(--wt-signal-soft) 62%); }
.wt-vs__divider { display: grid; place-items: center; padding-inline: var(--wt-space-4); background: var(--wt-paper-2); border-inline: 1px solid var(--wt-ink-200); font-family: var(--wt-font-mono); font-size: var(--wt-text-xs); color: var(--wt-ink-500); text-transform: uppercase; letter-spacing: var(--wt-tracking-caps); }
@media (max-width: 700px) { .wt-vs { grid-template-columns: 1fr; } .wt-vs__divider { padding-block: 6px; border-inline: 0; border-block: 1px solid var(--wt-ink-200); } .wt-vs__side--b { text-align: left; justify-items: start; } .wt-vs__side--b .wt-vs__name, .wt-vs__side--b .wt-vs__metric { flex-direction: row; } }

/* ---- Sticky section nav (existing pattern, restyled) --------------- */
.wt-subnav { position: sticky; top: 60px; z-index: 90; background: var(--wt-paper); border-bottom: 1px solid var(--wt-ink-200); }
.wt-subnav__inner { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.wt-subnav__inner::-webkit-scrollbar { display: none; }
.wt-subnav__link { flex: none; padding: 12px 14px; font-size: var(--wt-text-sm); font-weight: 500; color: var(--wt-ink-500); text-decoration: none !important; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.wt-subnav__link:hover { color: var(--wt-ink-950); }
.wt-subnav__link.is-active { color: var(--wt-ink-950); border-bottom-color: var(--wt-signal); }

/* ---- Breadcrumb ----------------------------------------------------- */
.wt-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--wt-text-sm); color: var(--wt-ink-500); list-style: none; padding: 0; margin: 0; }
.wt-crumbs a { color: var(--wt-ink-500); text-decoration: none; }
.wt-crumbs a:hover { color: var(--wt-ink-950); }
.wt-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--wt-ink-300); font-family: var(--wt-font-mono); }
.wt-crumbs [aria-current] { color: var(--wt-ink-950); }

/* ---- Notes / callouts ---------------------------------------------- */
.wt-note { display: grid; gap: 6px; padding: var(--wt-space-4) var(--wt-space-5); border-left: 3px solid var(--wt-ink-300); background: var(--wt-paper-2); border-radius: 0 var(--wt-radius-md) var(--wt-radius-md) 0; font-size: var(--wt-text-sm); line-height: var(--wt-leading-body); color: var(--wt-ink-600); }
.wt-note__title { font-family: var(--wt-font-mono); font-size: var(--wt-text-2xs); letter-spacing: var(--wt-tracking-caps); text-transform: uppercase; color: var(--wt-ink-500); }
.wt-note--method { border-left-color: var(--wt-ink-800); }
.wt-note--editor { border-left-color: var(--wt-warn); background: var(--wt-warn-soft); color: var(--wt-warn-ink); }
.wt-note--editor .wt-note__title { color: var(--wt-warn-ink); }
.wt-note--signal { border-left-color: var(--wt-signal); background: var(--wt-signal-soft); color: var(--wt-signal-ink); }
.wt-note--signal .wt-note__title { color: var(--wt-signal-ink); }

/* ---- Calculator module --------------------------------------------- */
.wt-calc { border: 1px solid var(--wt-ink-200); border-radius: var(--wt-radius-lg); background: var(--wt-paper); overflow: hidden; }
.wt-calc__head { padding: var(--wt-space-4) var(--wt-space-5); border-bottom: 1px solid var(--wt-ink-200); display: flex; justify-content: space-between; align-items: center; gap: var(--wt-space-3); }
.wt-calc__body { padding: var(--wt-space-5); display: grid; gap: var(--wt-space-4); }
.wt-calc__results { background: var(--wt-paper-2); border-top: 1px solid var(--wt-ink-200); }
.wt-field { display: grid; gap: 6px; }
.wt-field__label { font-size: var(--wt-text-sm); font-weight: 500; color: var(--wt-ink-700); }
.wt-field__hint { font-size: var(--wt-text-xs); color: var(--wt-ink-500); }
.wt-input { display: flex; align-items: center; border: 1px solid var(--wt-ink-200); border-radius: var(--wt-radius-md); background: var(--wt-paper); transition: border-color var(--wt-duration) var(--wt-ease), box-shadow var(--wt-duration) var(--wt-ease); }
.wt-input:focus-within { border-color: var(--wt-ink-800); box-shadow: var(--wt-ring); }
.wt-input__affix { padding: 0 12px; font-family: var(--wt-font-mono); font-size: var(--wt-text-sm); color: var(--wt-ink-500); border-right: 1px solid var(--wt-ink-200); align-self: stretch; display: grid; place-items: center; background: var(--wt-paper-2); }
.wt-input__affix--end { border-right: 0; border-left: 1px solid var(--wt-ink-200); }
.wt-input input, .wt-input select { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 12px; font: 500 1rem/1 var(--wt-font-mono); font-variant-numeric: tabular-nums; color: var(--wt-ink-950); outline: none; }
.wt-input select { font-family: var(--wt-font-body); }
/* Sentence-style inline input ("With $[ 5,000 ] a month on Meta…") */
.wt-inline-input { display: inline-flex; align-items: baseline; border-bottom: 2px solid var(--wt-signal); padding: 0 4px; font-family: var(--wt-font-mono); font-weight: 600; color: var(--wt-ink-950); }
.wt-inline-input input { width: 6ch; border: 0; background: transparent; font: inherit; color: inherit; outline: none; text-align: right; padding: 0; }
.wt-inline-input:focus-within { background: var(--wt-signal-soft); border-radius: 3px 3px 0 0; }

/* ---- Tool index (dense list of links) ------------------------------ */
.wt-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 0; border: 1px solid var(--wt-ink-200); border-radius: var(--wt-radius-lg); overflow: hidden; background: var(--wt-paper); }
.wt-index__item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--wt-space-3); padding: 14px var(--wt-space-4); text-decoration: none !important; color: inherit; border-bottom: 1px solid var(--wt-ink-100); border-right: 1px solid var(--wt-ink-100); transition: background var(--wt-duration) var(--wt-ease); position: relative; }
.wt-index__item:hover { background: var(--wt-paper-2); }
.wt-index__item:hover .wt-index__arrow { color: var(--wt-ink-950); transform: translateX(2px); }
.wt-index__glyph { font-family: var(--wt-font-mono); font-size: var(--wt-text-xs); font-weight: 600; color: var(--wt-ink-800); background: var(--wt-paper-3); border-radius: var(--wt-radius-sm); padding: 6px 7px; min-width: 2.6rem; text-align: center; letter-spacing: 0.02em; }
.wt-index__name { display:block; font-weight: 600; color: var(--wt-ink-950); font-size: var(--wt-text-ui); line-height: 1.3; }
.wt-index__sub { display:block; font-size: var(--wt-text-xs); color: var(--wt-ink-500); margin-top: 2px; }
.wt-index__arrow { color: var(--wt-ink-300); transition: transform var(--wt-duration) var(--wt-ease), color var(--wt-duration) var(--wt-ease); }

/* ---- Feed (articles list) ------------------------------------------ */
.wt-feed { display: grid; gap: 0; }
.wt-feed__item { display: grid; grid-template-columns: 9rem 1fr; gap: var(--wt-space-5); padding: var(--wt-space-5) 0; border-top: 1px solid var(--wt-ink-200); align-items: start; }
.wt-feed__item:last-child { border-bottom: 1px solid var(--wt-ink-200); }
.wt-feed__meta { display: grid; gap: 6px; font-family: var(--wt-font-mono); font-size: var(--wt-text-xs); color: var(--wt-ink-500); }
.wt-feed__title { font-family: var(--wt-font-display); font-size: var(--wt-text-xl); font-weight: 600; letter-spacing: var(--wt-tracking-tight); line-height: 1.25; color: var(--wt-ink-950); text-wrap: balance; }
.wt-feed__title a { text-decoration: none; color: inherit; }
.wt-feed__title a:hover { text-decoration: underline; text-decoration-color: var(--wt-signal); }
.wt-feed__dek { margin-top: 8px; color: var(--wt-ink-600); max-width: 62ch; }
@media (max-width: 700px) { .wt-feed__item { grid-template-columns: 1fr; gap: var(--wt-space-2); } .wt-feed__meta { grid-auto-flow: column; justify-content: start; gap: var(--wt-space-3); } }

/* Compact link cards used for cross-links (compare A vs X, industry tiles) */
.wt-tile { display: grid; gap: 8px; padding: var(--wt-space-4); border: 1px solid var(--wt-ink-200); border-radius: var(--wt-radius-md); background: var(--wt-paper); text-decoration: none !important; color: inherit; transition: border-color var(--wt-duration) var(--wt-ease), background var(--wt-duration) var(--wt-ease); }
.wt-tile:hover { border-color: var(--wt-ink-800); background: var(--wt-paper-2); }
.wt-tile__title { font-weight: 600; color: var(--wt-ink-950); font-size: var(--wt-text-ui); }
.wt-tile__meta { display: flex; justify-content: space-between; gap: var(--wt-space-3); font-size: var(--wt-text-sm); color: var(--wt-ink-500); }
.wt-tile__meta .wt-num { color: var(--wt-ink-950); font-weight: 600; }

/* ---- Sources strip (About the data) -------------------------------- */
.wt-sources { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--wt-space-6); align-items: start; }
.wt-sources__list { columns: 2; column-gap: var(--wt-space-6); font-family: var(--wt-font-mono); font-size: var(--wt-text-xs); color: var(--wt-ink-600); line-height: 1.7; list-style: none; padding: 0; margin: 0; }
.wt-sources__list li { break-inside: avoid; padding-left: 14px; position: relative; }
.wt-sources__list li::before { content: "—"; position: absolute; left: 0; color: var(--wt-ink-300); }
.wt-cadence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wt-space-4); }
.wt-cadence__item { display: grid; gap: 4px; }
.wt-cadence__item .v { font-family: var(--wt-font-mono); font-weight: 600; color: var(--wt-ink-950); font-size: var(--wt-text-lg); }
@media (max-width: 800px) { .wt-sources { grid-template-columns: 1fr; } .wt-sources__list { columns: 1; } }

/* ---- Home hero ------------------------------------------------------ */
.wt-hero { padding-block: var(--wt-space-8) var(--wt-space-7); }
.wt-hero__title { font-size: clamp(2.25rem, 5vw, var(--wt-text-4xl)); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; color: var(--wt-ink-950); text-wrap: balance; }
.wt-hero__dek { margin-top: var(--wt-space-4); font-size: var(--wt-text-lg); line-height: var(--wt-leading-body); color: var(--wt-ink-600); max-width: 34rem; }
.wt-hero__actions { margin-top: var(--wt-space-5); }
.wt-hero__proof { margin-top: var(--wt-space-5); display: flex; flex-wrap: wrap; gap: var(--wt-space-2) var(--wt-space-4); font-size: var(--wt-text-sm); color: var(--wt-ink-500); }
.wt-hero__proof b { font-family: var(--wt-font-mono); font-weight: 600; color: var(--wt-ink-950); }
.wt-board { border: 1px solid var(--wt-ink-200); border-radius: var(--wt-radius-lg); overflow: hidden; background: var(--wt-paper); box-shadow: var(--wt-shadow-2); }
.wt-board__head { display: flex; justify-content: space-between; align-items: center; padding: 10px var(--wt-space-4); background: var(--wt-paper-2); border-bottom: 1px solid var(--wt-ink-200); }
.wt-board__foot { padding: 10px var(--wt-space-4); border-top: 1px solid var(--wt-ink-200); font-size: var(--wt-text-xs); color: var(--wt-ink-500); display: flex; justify-content: space-between; }
.wt-live { display: inline-flex; align-items: center; gap: 6px; }
.wt-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wt-signal); box-shadow: 0 0 0 3px var(--wt-signal-soft); }

/* ---- Prose (articles) ---------------------------------------------- */
.wt-prose { font-size: var(--wt-text-md); line-height: var(--wt-leading-body); color: var(--wt-ink-600); max-width: var(--wt-measure); }
.wt-prose > * + * { margin-top: 1.25em; }
.wt-prose h2 { font-size: var(--wt-text-2xl); margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--wt-ink-200); }
.wt-prose h3 { font-size: var(--wt-text-xl); margin-top: 1.8em; }
.wt-prose h2 + *, .wt-prose h3 + * { margin-top: 0.75em; }
.wt-prose h2 a.anchor, .wt-prose h3 a.anchor { color: var(--wt-ink-300); text-decoration: none; margin-left: 8px; font-family: var(--wt-font-mono); font-weight: 400; opacity: 0; }
.wt-prose h2:hover a.anchor, .wt-prose h3:hover a.anchor { opacity: 1; }
.wt-prose strong { color: var(--wt-ink-950); font-weight: 600; }
.wt-prose ul, .wt-prose ol { padding-left: 1.4em; }
.wt-prose li + li { margin-top: 0.4em; }
.wt-prose li::marker { color: var(--wt-ink-400); font-family: var(--wt-font-mono); }
.wt-prose blockquote { margin: 1.5em 0; padding: 0 0 0 1.25em; border-left: 3px solid var(--wt-signal); font-family: var(--wt-font-display); font-size: var(--wt-text-lg); color: var(--wt-ink-950); }
.wt-prose code { font-family: var(--wt-font-mono); font-size: 0.875em; background: var(--wt-paper-2); border: 1px solid var(--wt-ink-100); padding: 0.1em 0.35em; border-radius: var(--wt-radius-sm); color: var(--wt-ink-950); }
.wt-prose pre { background: var(--wt-paper-inverse); color: var(--wt-paper); padding: var(--wt-space-4) var(--wt-space-5); border-radius: var(--wt-radius-md); overflow-x: auto; font-size: var(--wt-text-sm); line-height: 1.6; }
.wt-prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.wt-prose figure { margin: 2em 0; }
.wt-prose figure img { border-radius: var(--wt-radius-md); border: 1px solid var(--wt-ink-200); }
.wt-prose figcaption { margin-top: 8px; font-size: var(--wt-text-sm); color: var(--wt-ink-500); font-family: var(--wt-font-mono); }
.wt-prose table { width: 100%; border-collapse: collapse; font-size: var(--wt-text-sm); }
.wt-prose th { text-align: left; font-family: var(--wt-font-mono); font-size: var(--wt-text-2xs); text-transform: uppercase; letter-spacing: var(--wt-tracking-caps); color: var(--wt-ink-500); padding: 8px 10px; border-bottom: 1px solid var(--wt-ink-200); }
.wt-prose td { padding: 9px 10px; border-bottom: 1px solid var(--wt-ink-100); }
.wt-prose td.num, .wt-prose th.num { text-align: right; font-family: var(--wt-font-mono); font-variant-numeric: tabular-nums; color: var(--wt-ink-950); }
.wt-prose .formula { font-family: var(--wt-font-mono); font-size: var(--wt-text-ui); background: var(--wt-paper-2); border: 1px solid var(--wt-ink-200); border-radius: var(--wt-radius-md); padding: var(--wt-space-3) var(--wt-space-4); color: var(--wt-ink-950); }
.wt-prose--wide { max-width: none; }

/* Article header */
.wt-article-head { display: grid; gap: var(--wt-space-4); max-width: var(--wt-measure); padding-block: var(--wt-space-7) var(--wt-space-6); }
.wt-article-head__meta { display: flex; flex-wrap: wrap; gap: var(--wt-space-2) var(--wt-space-4); align-items: center; font-family: var(--wt-font-mono); font-size: var(--wt-text-xs); color: var(--wt-ink-500); }
.wt-article-head__title { font-size: clamp(2rem, 4.5vw, 2.75rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.wt-article-head__dek { font-size: var(--wt-text-lg); line-height: var(--wt-leading-body); color: var(--wt-ink-600); }
.wt-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: var(--wt-space-8); align-items: start; }
.wt-toc { position: sticky; top: 76px; display: grid; gap: 2px; font-size: var(--wt-text-sm); }
.wt-toc__title { font-family: var(--wt-font-mono); font-size: var(--wt-text-2xs); text-transform: uppercase; letter-spacing: var(--wt-tracking-caps); color: var(--wt-ink-500); margin-bottom: 8px; }
.wt-toc a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--wt-ink-100); color: var(--wt-ink-500); text-decoration: none; }
.wt-toc a:hover { color: var(--wt-ink-950); }
.wt-toc a.is-active { color: var(--wt-ink-950); border-left-color: var(--wt-signal); }
@media (max-width: 960px) { .wt-article-layout { grid-template-columns: 1fr; } .wt-toc { display: none; } }

/* ---- Footer --------------------------------------------------------- */
.wt-footer { background: var(--wt-paper-inverse); color: var(--wt-ink-300); padding-block: var(--wt-space-7) var(--wt-space-5); margin-top: var(--wt-space-9); }
:root[data-theme="dark"] .wt-footer, .wt-footer.wt-footer--flat { background: var(--wt-paper-2); border-top: 1px solid var(--wt-ink-200); color: var(--wt-ink-500); }
.wt-footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--wt-space-6); }
.wt-footer h4 { color: inherit; font-family: var(--wt-font-mono); font-size: var(--wt-text-2xs); text-transform: uppercase; letter-spacing: var(--wt-tracking-caps); font-weight: 500; margin-bottom: var(--wt-space-3); opacity: .8; }
.wt-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: var(--wt-text-sm); }
.wt-footer a { color: inherit; text-decoration: none; }
.wt-footer a:hover { color: var(--wt-paper); text-decoration: underline; text-decoration-color: var(--wt-signal); }
:root[data-theme="dark"] .wt-footer a:hover, .wt-footer--flat a:hover { color: var(--wt-ink-950); }
.wt-footer .wt-mark__word { color: var(--wt-paper); }
:root[data-theme="dark"] .wt-footer .wt-mark__word, .wt-footer--flat .wt-mark__word { color: var(--wt-ink-950); }
.wt-footer .wt-mark__glyph .s1 { fill: var(--wt-paper); }
:root[data-theme="dark"] .wt-footer .wt-mark__glyph .s1, .wt-footer--flat .wt-mark__glyph .s1 { fill: var(--wt-ink-800); }
.wt-footer__about { font-size: var(--wt-text-sm); line-height: var(--wt-leading-body); max-width: 34ch; margin-top: var(--wt-space-3); }
.wt-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--wt-space-3); margin-top: var(--wt-space-7); padding-top: var(--wt-space-4); border-top: 1px solid rgba(255,255,255,0.12); font-size: var(--wt-text-xs); font-family: var(--wt-font-mono); }
:root[data-theme="dark"] .wt-footer__bottom, .wt-footer--flat .wt-footer__bottom { border-top-color: var(--wt-ink-200); }
@media (max-width: 800px) { .wt-footer__grid { grid-template-columns: 1fr 1fr; } }

/* ---- FAQ ------------------------------------------------------------ */
.wt-faq { border-top: 1px solid var(--wt-ink-200); }
.wt-faq details { border-bottom: 1px solid var(--wt-ink-200); }
.wt-faq summary { cursor: pointer; list-style: none; padding: var(--wt-space-4) 0; font-weight: 600; color: var(--wt-ink-950); display: flex; justify-content: space-between; gap: var(--wt-space-4); }
.wt-faq summary::-webkit-details-marker { display: none; }
.wt-faq summary::after { content: "+"; font-family: var(--wt-font-mono); color: var(--wt-ink-400); }
.wt-faq details[open] summary::after { content: "−"; }
.wt-faq details > div { padding: 0 0 var(--wt-space-4); color: var(--wt-ink-600); line-height: var(--wt-leading-body); max-width: var(--wt-measure); }

/* ---- Comparison pages (Phase 4) ------------------------------------ */
.wt-compare-rec { padding: var(--wt-space-5) var(--wt-space-6); display: grid; gap: 8px; }
.wt-compare-rec:empty { display: none; }
.wt-compare-rec__headline {
  font-family: var(--wt-font-display);
  font-size: var(--wt-text-lg);
  color: var(--wt-ink-950);
  font-weight: 600;
  line-height: var(--wt-leading-snug);
}
.wt-compare-rec__scores { display: flex; flex-wrap: wrap; gap: var(--wt-space-3); margin-top: 4px; }
.wt-compare-rec__score {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-size: var(--wt-text-sm); color: var(--wt-ink-600);
}
.wt-compare-rec__score .wt-num { font-size: var(--wt-text-ui); color: var(--wt-ink-950); }
.wt-compare-rec__score.is-win .wt-num {
  background: linear-gradient(transparent 62%, var(--wt-signal-soft) 62%);
}
.wt-compare-rec__why { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; font-size: var(--wt-text-sm); color: var(--wt-ink-600); }
.wt-compare-depth { margin-top: var(--wt-space-4); display: grid; gap: 12px; }
.wt-compare-depth dt { margin: 0; }
.wt-compare-depth dd { margin: 4px 0 0; color: var(--wt-ink-600); font-size: var(--wt-text-sm); line-height: var(--wt-leading-body); }
.wt-compare-list { margin: 8px 0 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: var(--wt-text-sm); color: var(--wt-ink-600); }
.wt-compare-deltas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--wt-space-4); }
.wt-vs__metric .v.na { color: var(--wt-ink-300); }
@media (max-width: 700px) {
  .wt-compare-fields { grid-template-columns: 1fr !important; }
}

/* ---- Articles + calculators (Phases 5–6) --------------------------- */
.wt-calc__results { padding: var(--wt-space-5); }
.wt-calc__results:empty { display: none; padding: 0; border: 0; }
.wt-calc__results .wt-stat-row { border: 0; border-radius: 0; background: transparent; }
.wt-calc .wt-btn-row { margin-top: var(--wt-space-2); }
.wt-note--bad { border-left-color: var(--wt-bad); }
.wt-article-related { margin-top: var(--wt-space-8); }
.wt-article-related .wt-index,
.wt-article-related .wt-feed { margin-top: var(--wt-space-3); max-width: var(--wt-measure); }
h2.wt-eyebrow { font-size: var(--wt-text-2xs); font-family: var(--wt-font-mono); font-weight: 500; letter-spacing: var(--wt-tracking-caps); text-transform: uppercase; color: var(--wt-ink-500); margin-bottom: var(--wt-space-3); }
.wt-feed--compact .wt-feed__item { grid-template-columns: 6rem 1fr; padding-block: 16px; }
.wt-feed--compact .wt-feed__title { font-size: var(--wt-text-lg); }
.wt-feed__year { display: block; margin-top: var(--wt-space-6); }
.wt-feed-count { font-family: var(--wt-font-mono); font-size: var(--wt-text-xs); color: var(--wt-ink-500); margin-bottom: var(--wt-space-4); }
.wt-chip .wt-num { margin-left: 6px; }
.wt-toc__live { margin-top: var(--wt-space-6); padding-top: var(--wt-space-4); border-top: 1px solid var(--wt-ink-200); display: grid; gap: 8px; }
.wt-toc__live-row { display: flex; justify-content: space-between; font-size: var(--wt-text-sm); }
.wt-toc__live-row .wt-num { color: var(--wt-ink-950); font-weight: 600; }
.wt-toc__asof { font-size: var(--wt-text-2xs); color: var(--wt-ink-400); }
.wt-subnav--article { display: none; }
@media (max-width: 960px) { .wt-subnav--article { display: block; } }
.wt-pager { display: flex; flex-wrap: wrap; gap: var(--wt-space-2); align-items: center; margin-top: var(--wt-space-6); }
.wt-pager a { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid var(--wt-ink-200); border-radius: var(--wt-radius-md); text-decoration: none; font-size: var(--wt-text-sm); color: var(--wt-ink-700); }
.wt-pager a:hover { background: var(--wt-paper-2); color: var(--wt-ink-950); }
.wt-pager a.is-active { background: var(--wt-paper-3); border-color: var(--wt-ink-800); color: var(--wt-ink-950); }
.wt-pager a[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.wt-pager__gap { color: var(--wt-ink-400); font-family: var(--wt-font-mono); }
.wt-prose .wt-note { margin-top: 1.25em; }
.wt-body .content-section { background: transparent; box-shadow: none; border-radius: 0; padding: var(--wt-space-7) 0; margin: 0; }
.wt-body .content-section h2 { color: inherit; }
.wt-utm-anatomy .anatomy-visualization { display: flex; flex-wrap: wrap; align-items: center; font-family: var(--wt-font-mono); font-size: var(--wt-text-sm); line-height: 1.8; }
.wt-utm-part { margin: 2px; padding: 2px 4px; border-radius: var(--wt-radius-sm); }
.wt-utm-part--base { background: var(--wt-paper-3); color: var(--wt-ink-700); }
.wt-utm-part--sep { font-weight: 600; color: var(--wt-ink-500); }
.wt-utm-part--name { background: color-mix(in srgb, var(--wt-viz-1) 18%, transparent); color: var(--wt-ink-950); }
.wt-utm-part--value { background: color-mix(in srgb, var(--wt-viz-3) 18%, transparent); color: var(--wt-ink-950); }
.wt-utm-part--name[data-slot="2"] { background: color-mix(in srgb, var(--wt-viz-5) 18%, transparent); }
.wt-calc-page { padding-block: var(--wt-space-6) var(--wt-space-8); }
.wt-calc-page > .wt-crumbs { margin-bottom: var(--wt-space-4); }
.wt-calc-page > .wt-h1 { margin-bottom: var(--wt-space-3); }
.wt-calc-page > .wt-lead { margin-bottom: var(--wt-space-6); }
.wt-calc-page > .wt-prose { margin-top: var(--wt-space-8); }
.wt-prose .wt-calc { max-width: none; }
.wt-platform-pick { display: flex; flex-wrap: wrap; gap: var(--wt-space-2); }
.wt-platform-pick label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--wt-ink-200); border-radius: var(--wt-radius-md); font-size: var(--wt-text-sm); cursor: pointer; }
.wt-platform-pick input { margin: 0; }
.wt-calc__results.d-none { display: none !important; padding: 0; }
@media (max-width: 768px) {
  .fc .fc-toolbar { display: flex; flex-direction: column; gap: var(--wt-space-2); }
  .fc .fc-toolbar-chunk { display: flex; justify-content: center; width: 100%; }
  .fc .fc-button { font-size: var(--wt-text-sm); padding: 0.25rem 0.5rem; }
  .fc .fc-toolbar-title { font-size: var(--wt-text-lg); }
  .fc-daygrid-event { font-size: var(--wt-text-xs); padding: 2px; }
  .fc-col-header-cell-cushion { font-size: var(--wt-text-xs); }
}
@media (max-width: 576px) {
  .fc .fc-toolbar-title { font-size: var(--wt-text-md); }
  .fc .fc-button { font-size: var(--wt-text-xs); padding: 0.2rem 0.4rem; }
}

/* Favicon generator pickers + preview */
.wt-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--wt-space-2);
}
.wt-emoji-btn {
  font-size: var(--wt-text-lg);
  padding: var(--wt-space-2);
  border: 1px solid var(--wt-ink-200);
  background: var(--wt-paper);
  border-radius: var(--wt-radius-sm);
  cursor: pointer;
}
.wt-emoji-btn:hover { background: var(--wt-paper-2); }
.wt-icon-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--wt-space-2);
  max-height: 18.75rem;
  overflow-y: auto;
  border: 1px solid var(--wt-ink-200);
  border-radius: var(--wt-radius-sm);
  padding: var(--wt-space-2);
}
.wt-icon-btn {
  font-size: var(--wt-text-xs);
  font-family: var(--wt-font-mono);
  padding: var(--wt-space-3);
  border: 1px solid var(--wt-ink-200);
  background: var(--wt-paper);
  border-radius: var(--wt-radius-sm);
  cursor: pointer;
  color: var(--wt-ink-700);
}
.wt-icon-btn:hover { background: var(--wt-paper-2); }
.wt-icon-btn.is-selected {
  background: var(--wt-paper-3);
  color: var(--wt-ink-950);
  border-color: var(--wt-ink-800);
}
.wt-browser-preview {
  background: var(--wt-paper-2);
  padding: var(--wt-space-2);
  border-radius: var(--wt-radius-md) var(--wt-radius-md) 0 0;
}
.wt-browser-tab {
  background: var(--wt-paper);
  display: flex;
  align-items: center;
  gap: var(--wt-space-2);
  padding: var(--wt-space-2) var(--wt-space-3);
  border-radius: var(--wt-radius-md) var(--wt-radius-md) 0 0;
  border: 1px solid var(--wt-ink-200);
  border-bottom: none;
  max-width: 16rem;
  box-shadow: var(--wt-shadow-1);
}
.wt-browser-tab canvas { flex-shrink: 0; }
.wt-browser-tab__title {
  flex: 1;
  font-size: var(--wt-text-sm);
  color: var(--wt-ink-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wt-browser-tab__close {
  background: none;
  border: none;
  color: var(--wt-ink-500);
  font-size: var(--wt-text-lg);
  cursor: pointer;
  padding: 0;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--wt-radius-pill);
  flex-shrink: 0;
}
.wt-browser-tab__close:hover { background: var(--wt-paper-3); }
.wt-favicon-preview { max-width: 20rem; margin: 0 auto; }
.wt-favicon-preview__canvas {
  border-radius: var(--wt-radius-md);
  box-shadow: var(--wt-shadow-1);
}
.wt-favicon-pixel { image-rendering: pixelated; }
.wt-emoji-field { font-size: var(--wt-text-xl); text-align: center; }
.wt-note.wt-toast {
  position: fixed;
  bottom: var(--wt-space-4);
  right: var(--wt-space-4);
  z-index: 9999;
  margin: 0;
}
@media (max-width: 768px) {
  .wt-emoji-grid { grid-template-columns: repeat(6, 1fr); }
  .wt-icon-grid { grid-template-columns: repeat(4, 1fr); }
  .wt-emoji-btn, .wt-icon-btn { padding: var(--wt-space-3); font-size: var(--wt-text-lg); }
}