:root {
  --bg: #f5f4f0;
  --paper: #faf9f7;
  --ink: #1a1916;
  --ink2: #4a4840;
  --ink3: #888580;
  --rule: #d8d5cf;
  --tag-bg: #eceae4;
  --highlight: #fff7d6;
  --new-bg: #eef4ff;
  --red: #c0392b;
  --green: #1a6b3c;
  --amber: #b35c00;
  --blue: #1a3a6b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--ink); font-family: 'IBM Plex Mono', monospace; font-size: 12px; min-height: 100vh; }

.topbar {
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 38px;
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
}
.topbar-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar-brand-wrap { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 22px; width: auto; display: block; }
.brand { font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.brand span { color: #fbbf24; }
.topbar-meta { font-size: 10px; color: #888; letter-spacing: 0.04em; }
.topbar-live { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #6ee7b7; letter-spacing: 0.1em; text-transform: uppercase; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #6ee7b7; animation: blink 1.2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

/* TICKER — match docs/cb_speaktracker.html */
.ticker-wrap {
  background: #222;
  overflow: hidden;
  height: 26px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #444;
}
.ticker-label {
  background: #fbbf24;
  color: #000;
  font-size: 10px;
  font-weight: 600;
  padding: 0 10px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
/* Same as speaktracker inline viewport: overflow hidden + flex row for marquee */
.ticker-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 100%;
}
.ticker-scroll {
  display: flex;
  animation: scroll-left 60s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  color: #ccc;
  font-size: 10px;
  padding: 0 24px;
  letter-spacing: 0.04em;
}
.ticker-item .cb {
  color: #fbbf24;
  font-weight: 600;
}
.ticker-item .h {
  color: #f87171;
}
.ticker-item .d {
  color: #6ee7b7;
}
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.tab-strip {
  display: flex;
  flex: 0 0 auto;
  gap: 0;
  background: #111;
  border-bottom: 1px solid #333;
  padding: 0 12px;
}
.tab-strip-btn {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: #888;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tab-strip-btn:hover { color: #ccc; }
.tab-strip-btn.active {
  color: #fbbf24;
  border-bottom-color: #fbbf24;
}
.tab-panel--main .layout {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.tab-panel {
  flex: 1 1 0%;
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--ink3) var(--tag-bg);
}
.tab-panel::-webkit-scrollbar {
  width: 10px;
}
.tab-panel::-webkit-scrollbar-track {
  background: var(--tag-bg);
  border-left: 1px solid var(--rule);
}
.tab-panel::-webkit-scrollbar-thumb {
  background: var(--ink3);
  border-radius: 5px;
  border: 2px solid var(--tag-bg);
}
.tab-panel::-webkit-scrollbar-thumb:hover {
  background: var(--ink2);
}
.tab-panel--main {
  display: flex;
  flex-direction: column;
}

.layout { display: grid; grid-template-columns: 220px 1fr 240px; min-height: 0; overflow: hidden; }

.sidebar-left { border-right: 1px solid var(--rule); background: var(--paper); min-height: 0; overflow-y: auto; scrollbar-gutter: stable; }
.sidebar-left h3 { font-family: 'IBM Plex Sans', sans-serif; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink3); padding: 10px 12px 6px; border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: var(--paper); z-index: 10; }
.cb-row { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-bottom: 1px solid var(--rule); cursor: pointer; transition: background 0.1s; }
.cb-row:hover, .cb-row.active { background: var(--tag-bg); }
.cb-row.has-new { background: var(--new-bg); }
.cb-flag { font-size: 14px; line-height: 1; flex-shrink: 0; }
.cb-info { flex: 1; min-width: 0; }
.cb-name { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-abbr { font-size: 9px; color: var(--ink3); letter-spacing: 0.06em; }
.cb-count { background: var(--ink); color: #fff; border-radius: 2px; font-size: 9px; padding: 1px 5px; font-weight: 600; flex-shrink: 0; }
.cb-count.new { background: #2563eb; }

.feed { min-height: 0; overflow-y: scroll; scrollbar-gutter: stable; background: var(--bg); }
#feedItems {
  /* Room so the last card is not clipped by the scrollport / subpixel rounding */
  padding-bottom: 48px;
}
.feed-controls { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.feed-title { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 600; color: var(--ink); flex: 1; }
.chip { background: var(--tag-bg); border: 1px solid var(--rule); color: var(--ink2); padding: 2px 8px; border-radius: 2px; font-size: 9px; cursor: pointer; letter-spacing: 0.06em; text-transform: uppercase; font-family: 'IBM Plex Mono', monospace; transition: all 0.1s; }
.chip:hover, .chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.hawkish.active { background: var(--red); border-color: var(--red); }
.chip.dovish.active { background: var(--green); border-color: var(--green); }
.feed-date-group { padding: 6px 12px 2px; font-size: 9px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink3); border-bottom: 1px solid var(--rule); background: var(--bg); position: sticky; top: 35px; z-index: 5; }

.feed-item { background: var(--paper); border-bottom: 1px solid var(--rule); padding: 10px 12px; display: grid; grid-template-columns: 64px 1fr; gap: 10px; transition: background 0.12s; }
.feed-item:hover { background: var(--highlight); }
.feed-item.is-new { border-left: 3px solid #2563eb; }
.item-time { font-size: 10px; color: var(--ink3); line-height: 1.4; text-align: right; padding-top: 1px; white-space: nowrap; }
.item-time .time { font-size: 11px; color: var(--ink); font-weight: 500; }
.item-time .tz { color: var(--ink3); }
.item-body { min-width: 0; }
.item-header { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.item-speaker { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 600; color: var(--ink); }
.item-role { font-size: 10px; color: var(--ink3); }
.signal-tag { font-size: 9px; padding: 1px 6px; border-radius: 2px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; flex-shrink: 0; }
.tag-hawkish { background: #fee2e2; color: var(--red); border: 1px solid #fca5a5; }
.tag-dovish { background: #d1fae5; color: var(--green); border: 1px solid #6ee7b7; }
.tag-hold { background: #dbeafe; color: var(--blue); border: 1px solid #93c5fd; }
.tag-neutral { background: #fef3c7; color: var(--amber); border: 1px solid #fcd34d; }
.item-venue { font-size: 10px; color: var(--ink2); margin-bottom: 5px; }
.item-quote { font-size: 11px; color: var(--ink2); line-height: 1.55; border-left: 2px solid var(--rule); padding-left: 7px; margin-bottom: 5px; font-style: italic; }
.item-note { font-size: 10px; color: var(--ink3); line-height: 1.45; }
.item-footer { display: flex; gap: 6px; margin-top: 5px; flex-wrap: wrap; align-items: center; }
.topic-tag { background: var(--tag-bg); color: var(--ink3); font-size: 9px; padding: 1px 5px; border-radius: 1px; }
.source-ref { font-size: 9px; color: var(--ink3); text-decoration: none; margin-left: auto; cursor: pointer; }
.source-ref:hover { color: var(--blue); text-decoration: underline; }
.empty-state { padding: 20px 12px; font-size: 10px; color: var(--ink3); text-align: center; }

.sidebar-right { border-left: 1px solid var(--rule); background: var(--paper); min-height: 0; overflow-y: auto; scrollbar-gutter: stable; }
.sr-section { border-bottom: 1px solid var(--rule); padding: 10px 12px; }
.sr-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.sr-section-head .sr-label {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}
.sr-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink3); margin-bottom: 8px; display: block; }
.sr-refresh {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink2);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.sr-refresh:hover:not(:disabled) {
  border-color: var(--amber);
  color: var(--amber);
  background: #fffdf8;
}
.sr-refresh:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
.sr-refresh:disabled {
  opacity: 0.45;
  cursor: wait;
}
.sr-refresh.is-spinning {
  animation: spin 0.75s linear infinite;
}
.sr-section-meta {
  font-size: 9px;
  color: var(--ink3);
  line-height: 1.35;
  margin: -4px 0 10px;
  letter-spacing: 0.03em;
}
.upcoming-item { display: grid; grid-template-columns: 44px 1fr; gap: 6px; margin-bottom: 8px; align-items: start; font-size: 10px; }
.up-time { text-align: right; color: var(--ink3); line-height: 1.4; }
.up-time .when { font-size: 11px; color: var(--amber); font-weight: 600; display: block; }
.up-who { font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; color: var(--ink); font-size: 10px; }
.up-where { color: var(--ink3); font-size: 9px; margin-top: 1px; }
.tally-row { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; font-size: 10px; }
.tally-label { flex: 1; color: var(--ink2); }
.tally-bar-wrap { flex: 2; background: var(--tag-bg); height: 5px; border-radius: 1px; overflow: hidden; }
.tally-bar { height: 100%; border-radius: 1px; }
.tally-bar.hawkish { background: var(--red); }
.tally-bar.hold { background: #93c5fd; }
.tally-bar.dovish { background: var(--green); }
.tally-n { color: var(--ink); font-weight: 600; width: 14px; text-align: right; }
.blackout-item { font-size: 10px; display: flex; justify-content: space-between; margin-bottom: 5px; }
.blackout-item .cb-n { color: var(--ink2); }
.bl-status { color: var(--red); font-weight: 600; }
.bl-open { color: var(--green); }
.theme-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.theme-tag { background: var(--tag-bg); color: var(--ink3); font-size: 10px; padding: 2px 6px; border-radius: 1px; }
footer { padding: 8px 12px; font-size: 9px; color: var(--ink3); border-top: 1px solid var(--rule); text-align: center; letter-spacing: 0.06em; }

.feed-banner {
  margin: 0 12px 8px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.4;
  border-radius: 4px;
  border: 1px solid var(--rule);
  background: #fff4e6;
  color: var(--ink2);
}
.feed-banner--error {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}

.transient-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 10050;
  max-width: min(440px, 92vw);
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
  text-align: center;
  font-family: 'IBM Plex Sans', sans-serif;
}

#appContent {
  display: none;
  height: calc(100vh - 38px);
  margin-top: 38px;
  min-height: 0;
  overflow: hidden;
  position: relative;
}
#appContent.visible {
  display: flex;
  flex-direction: column;
}

.initial-loading {
  position: absolute;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(245, 244, 240, 0.82);
  backdrop-filter: blur(2px);
}
.initial-loading.visible { display: flex; }
.loading-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(26, 25, 22, 0.12);
}
.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--tag-bg);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loading-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.loading-subtitle {
  margin-top: 2px;
  font-size: 10px;
  color: var(--ink3);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Sidebar inline loading (Research Agent caches) --- */
.sr-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink3);
}
.sr-loading-spinner {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 2px solid var(--tag-bg);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
.sr-loading-text {
  line-height: 1.35;
}

/* Feed + Audit pagination */
.pagination-bar {
  margin-top: 18px;
  padding: 0 12px 14px;
  flex-shrink: 0;
}

.tab-panel--audit .pagination-bar {
  margin-top: 20px;
  padding: 0 0 4px;
}

.pagination-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 14px 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(26, 25, 22, 0.07);
}

.pagination-btn {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 18px;
  min-width: 96px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink2);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--amber);
  color: var(--amber);
  background: #fffdf8;
}

.pagination-btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.pagination-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.pagination-status {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink2);
  line-height: 1.45;
  text-align: center;
  padding: 4px 12px;
  max-width: min(420px, 100%);
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .sidebar-left, .sidebar-right { display: none; }
}

/* --- Audit tab --- */
.tab-panel--audit {
  min-height: 0;
  background: var(--bg);
  color: var(--ink);
}
.audit-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}
.audit-header { margin-bottom: 12px; }
.audit-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.audit-sub {
  font-size: 12px;
  color: var(--ink3);
  line-height: 1.45;
  max-width: 720px;
}
.audit-meta-line {
  font-size: 11px;
  color: var(--ink3);
  margin-bottom: 8px;
  font-family: 'IBM Plex Mono', monospace;
}
.audit-explainer {
  font-size: 12px;
  color: var(--ink2);
  line-height: 1.55;
  max-width: 900px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #f59e0b;
  border-radius: 4px;
}
.audit-filters {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.audit-filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink3);
}
.audit-filters select {
  min-width: 150px;
  border: 1px solid var(--rule);
  background: var(--tag-bg);
  color: var(--ink2);
  padding: 4px 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
}
.audit-clear-filters {
  border: 1px solid var(--rule);
  background: var(--ink);
  color: #fff;
  padding: 5px 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  cursor: pointer;
}
.audit-clear-filters:hover { background: var(--ink2); }
.audit-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--paper);
}
.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
}
.audit-table thead th {
  text-align: left;
  padding: 10px 12px;
  background: var(--paper);
  color: var(--ink3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
.audit-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--ink2);
  line-height: 1.45;
}
.audit-table tbody tr:hover { background: var(--highlight); }
.audit-table a {
  color: var(--blue);
  text-decoration: none;
}
.audit-table a:hover { text-decoration: underline; }
.audit-col-headline { max-width: 420px; }

/* --- How it Works tab --- */
.tab-panel--how {
  background: var(--bg);
  color: var(--ink);
}
.how-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}
.how-hero {
  text-align: center;
  margin: 0 auto 22px;
  max-width: 720px;
}
.how-kicker {
  margin-bottom: 7px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}
.how-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.how-sub {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink2);
}
.how-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.how-summary-card,
.how-step-card,
.how-feature-card {
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
}
.how-summary-card {
  padding: 16px;
  min-height: 132px;
}
.how-card-icon,
.how-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
}
.how-card-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 12px;
  font-size: 12px;
}
.how-summary-card h2,
.how-step-card h3,
.how-feature-card h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.how-summary-card h2 { margin-bottom: 8px; }
.how-summary-card p,
.how-step-card p,
.how-feature-card p {
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink2);
}
.how-section { margin-top: 18px; }
.how-section-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
  margin-bottom: 16px;
}
.how-section-lead {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink2);
  max-width: 720px;
  margin: 0 auto 12px;
  text-align: left;
}
.how-section-lead a {
  color: var(--blue);
  text-decoration: none;
}
.how-section-lead a:hover { text-decoration: underline; }
.how-section-lead--tight {
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--ink);
}
.how-query-list {
  max-width: 720px;
  margin: 0 auto 8px;
  padding-left: 1.25rem;
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink2);
}
.how-query-list li { margin-bottom: 6px; }
.how-timeline {
  display: grid;
  gap: 12px;
}
.how-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}
.how-step-number {
  width: 28px;
  height: 28px;
  margin-top: 12px;
  font-size: 12px;
  box-shadow: 0 0 0 4px var(--bg);
}
.how-step-card {
  padding: 14px 16px;
}
.how-step-card h3 { margin-bottom: 7px; }
.how-note {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 3px;
  font-size: 10px;
  line-height: 1.4;
}
.how-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.how-feature-grid--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}
.how-feature-card {
  padding: 14px;
}
.how-feature-card--queries {
  padding: 16px 18px;
  margin-top: 0;
}
.how-feature-card--queries .how-feature-card__queries-heading {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}
.how-feature-card__queries-sub {
  font-size: 10px;
  line-height: 1.45;
  color: var(--ink3);
  margin: 0 0 10px;
}
.how-feature-card--cache-note {
  margin-top: 14px;
  padding: 14px 16px;
}
.how-feature-card--cache-note h3 { margin-bottom: 7px; }
.how-query-list--in-card {
  max-width: none;
  margin: 0;
  padding-left: 1.1rem;
}
.how-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-bottom: 10px;
}
.how-feature-card h3 { margin-bottom: 7px; }
.how-feature-card a {
  color: var(--blue);
  text-decoration: none;
}
.how-feature-card a:hover { text-decoration: underline; }
.how-card-icon--blue,
.how-step-number--blue,
.how-dot--blue { background: #2563eb; }
.how-card-icon--green,
.how-step-number--green,
.how-dot--green { background: var(--green); }
.how-step-number--amber { background: #f59e0b; }
.how-step-number--red,
.how-dot--red { background: var(--red); }
.how-step-number--purple,
.how-dot--purple { background: #7c3aed; }
.how-step-number--gray { background: var(--ink3); }
.how-note--blue { background: #eef4ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.how-note--green { background: #ecfdf5; color: var(--green); border: 1px solid #a7f3d0; }
.how-note--amber { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.how-note--red { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.how-note--purple { background: #f5f3ff; color: #5b21b6; border: 1px solid #ddd6fe; }
.how-note--gray { background: var(--tag-bg); color: var(--ink2); border: 1px solid var(--rule); }

@media (max-width: 760px) {
  .how-summary-grid,
  .how-feature-grid,
  .how-feature-grid--pair {
    grid-template-columns: 1fr;
  }
  .how-step {
    grid-template-columns: 30px 1fr;
    gap: 10px;
  }
}
