/* wxrks Platform Design System, "Balanced" v1.3 — the same system as the
   platform (tokens.json in the design-system package). Graphite actions, cool
   gray neutrals, borders for hierarchy; the vivid green is an identity mark,
   never a fill. Only the light theme is implemented here, as before. */
@font-face {
  font-family: "Urbanist";
  src: url("/static/fonts/urbanist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Urbanist";
  src: url("/static/fonts/urbanist-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #FFFFFF;                 /* wx-surface */
  --bg-input: #FFFFFF;           /* wx-surface */
  --card: #FFFFFF;               /* wx-surface */
  --surface-subtle: #F7F8FA;     /* wx-surface-subtle */
  --surface-sidebar: #F3F5F7;    /* wx-surface-sidebar */
  --surface-summary: #F5F7F9;    /* wx-surface-summary */
  --border: #DFE3E8;             /* wx-border: decorative separators */
  --border-control: #757D88;     /* wx-border-control: inputs, outlined buttons */
  --border-strong: #252A31;
  --text: #252A31;               /* wx-text */
  --muted: #57616D;              /* wx-text-muted */
  /* The system has two text levels; the app's third, "faint", is kept for
     decoration only and never carries text a reader needs. */
  --faint: #8B96A3;
  --brand: #252A31;              /* wx-action: the primary action is graphite */
  --brand-hover: #181B1F;        /* wx-action-hover */
  --brand-tint: #E7EBEF;         /* wx-surface-selected */
  --accent: #00742C;             /* wx-accent: focus and small UI accents */
  --brand-green: #01FF33;        /* identity mark only — never text or a fill */
  --success-bg: #E7F5EC;
  --success-text: #176B45;
  --warn-bg: #FFF2D1;            /* wx-pending-surface */
  --warn-text: #785000;          /* wx-pending-text */
  --neutral-bg: #E7EBEF;
  --neutral-text: #57616D;
  --danger-bg: #FDEDEF;
  --danger-text: #A52B36;
  --info-bg: #EAF2F8;
  --info-text: #315B7C;
  --blocked-row-bg: #FFF8E6;
  --folder-bar: #E7EBEF;         /* wx-track */
  --shadow-menu: 0 16px 64px #11141814; /* wx-shadow: menus and dialogs only */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  /* The CJK and Arabic faces are fallbacks, not downloads: Urbanist has no
     glyphs for ja, ko, zh or ar, and every OS ships one that does. */
  --font-sans: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
               "Yu Gothic UI", "Malgun Gothic", "Microsoft YaHei", "Geeza Pro",
               "Noto Sans Arabic", sans-serif;
  /* Numbers and URLs used a monospace face; the system has one family, so
     they share it and line up with tabular figures instead. */
  --font-mono: var(--font-sans);
  --font-code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

/* `hidden` has to beat the sizing rules on form controls that set their own
   width/height — without this the attribute is silently ignored on them. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body { padding-bottom: 4rem; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: underline; }

input, select, button { font-family: inherit; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Keyboard focus: the UI accent, outside the control (wx-focus). */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::placeholder { color: var(--faint); }

.page-wrap { max-width: 920px; margin: 0 auto; padding: 56px 32px 64px; }
.report-wrap { max-width: 1060px; margin: 0 auto; }

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; }
a.logo { color: var(--text); }
a.logo:hover { color: var(--text); text-decoration: none; }
/* The wordmark is a ~4.4:1 lockup, so it sets its own width from a fixed
   height rather than sitting in the square the old "#" placeholder used. */
.logo-img { height: 28px; width: auto; display: block; flex-shrink: 0; }
.logo-img.lg { height: 45px; }
/* Divider between the company mark and the product name, so "wxrks" reads as
   the brand and "Word Counter" as the thing you're looking at. */
.logo-sep { width: 1px; height: 20px; background: var(--border); flex-shrink: 0; }
.logo-name { font-size: 17px; font-weight: 600; letter-spacing: -0.3px; }
.logo-name.lg { font-size: 28px; letter-spacing: -0.5px; }

/* ---------- Top bar (home page) ---------- */
header.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px 5px 5px;
  font-size: 13px;
}
.user-chip img, .user-chip .avatar {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-tint); color: var(--brand);
  font-size: 12px; font-weight: 600;
}
.user-chip .name { font-weight: 500; }
.user-chip .sep { width: 1px; height: 14px; background: var(--border); }

/* The chip is a button now, so it has to shed the global button styling. */
button.user-chip {
  height: auto;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  gap: 8px;
}
button.user-chip:hover { background: var(--card); border-color: #757D88; }
.user-chip .chev { color: var(--muted); font-size: 10px; margin-inline-start: 2px; }
.user-menu.is-open .chev { transform: rotate(180deg); }
/* On a phone the name pushed the chip past the edge of the screen: the avatar
   carries it there, and the name stays for screen readers. */
@media (max-width: 480px) {
  header.topbar { gap: 12px; padding: 12px 16px; }
  .user-chip .name {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .user-chip .chev { display: none; }
  button.user-chip { padding: 4px; }
}

.user-menu { position: relative; }
.user-menu-list {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 232px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-menu);
}
.user-menu-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
}
.user-menu-list a:hover { background: var(--bg); text-decoration: none; }
.user-menu-list a.upgrade-link { color: var(--brand); font-weight: 600; }
.user-menu-head { padding: 8px 10px 10px; }
.user-menu-name { font-size: 13px; font-weight: 600; }
.user-menu-email { font-size: 12px; color: var(--muted); word-break: break-all; }
.user-menu-sep { height: 1px; margin: 6px 4px; background: var(--border); }
.user-menu-label {
  padding: 8px 10px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.subtitle { font-size: 15px; color: var(--muted); margin: 0 0 14px; }

/* ---------- Toolbar-style crawl form ---------- */
form.crawl-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  box-shadow: none;
}

.field {
  border: 1px solid var(--border-control);
  border-radius: 6px;
  height: 42px;
  padding: 0 14px;
  font-size: 15px;
  background: var(--bg-input);
  box-sizing: border-box;
}

form.crawl-form input[type="url"] {
  flex: 1 1 260px;
  min-width: 200px;
  height: 42px;
  border: 1px solid var(--border-control);
  border-radius: 6px;
  padding: 0 14px;
  font-size: 15px;
  font-family: var(--font-mono);
  background: var(--bg-input);
}

select.domain-scope, select#recrawl-domain-scope {
  border: 1px solid var(--border-control);
  border-radius: 6px;
  height: 42px;
  padding: 0 10px;
  font-size: 13px;
  background: var(--bg-input);
  color: var(--text);
}

input.language-input {
  width: 190px;
  border: 1px solid var(--border-control);
  border-radius: 6px;
  height: 42px;
  padding: 0 12px;
  font-size: 14px;
  font-family: var(--font-mono);
  background: var(--bg-input);
  text-align: start;
}

/* ---------- Buttons ---------- */
button, .button {
  border: none;
  border-radius: 6px;
  height: 42px;
  padding: 0 26px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: var(--bg);
}
button:hover, .button:hover { background: var(--brand-hover); }
button:disabled { background: var(--neutral-bg); color: var(--muted); cursor: not-allowed; }

/* Both selectors: `.button` is also used on anchors (the landing CTAs, the
   sign-in link), and an element-only rule left those rendering as primaries. */
button.secondary, .button.secondary {
  background: var(--card);
  border: 1px solid var(--border-control);
  color: var(--text);
  height: 38px;
  padding: 0 18px;
  font-size: 13px;
}
button.secondary:hover, .button.secondary:hover {
  background: var(--surface-subtle); border-color: var(--text); color: var(--text); text-decoration: none;
}

button.danger-outline {
  background: var(--card);
  border: 1px solid var(--border-control);
  color: var(--danger-text);
  height: 38px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
}
button.danger-outline:hover { border-color: var(--danger-text); background: var(--card); }

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  padding: 0 4px;
}
.checkbox-label input { accent-color: var(--brand); width: 15px; height: 15px; cursor: pointer; }
.checkbox-label:hover { color: var(--text); }

.field-error { color: var(--danger-text); font-size: 0.9rem; margin-top: 0.5rem; }

/* Bar for the admin health page — reads as "how close to a limit" at a glance,
   which the number alone doesn't. */
.meter {
  margin-top: 8px;
  height: 6px;
  border-radius: 999px;
  background: var(--neutral-bg);
  overflow: hidden;
}
.meter-fill { display: block; height: 100%; background: var(--brand); }
.meter-fill.meter-warm { background: var(--warn-text); }
.meter-fill.meter-hot { background: var(--danger-text); }

/* ---------- Promos: the Ink treatment ----------
   Inverts against a page that is otherwise entirely light, which is what lets
   something this small still get read. The mint is the brand green lifted until
   it holds on near-black — the same hue, not a second one. Only ever one of
   these per page (see rank_page_promos in app/promos.py); a second inverted
   block and the contrast stops meaning anything. */
.promo {
  --promo-ink: #252A31;
  --promo-mint: #8FD3B4;
  --promo-paper: #F3F5F7;
  --promo-quiet: #8B96A3;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  position: relative;
  /* Bottom margin matters as much as the top one: this is the last thing
     before the report's own tables, and without it the offer looked attached
     to data it has nothing to do with. */
  margin: 20px 0 36px;
  padding: 15px 20px;
  border-radius: 10px;
  background: var(--promo-ink);
  color: var(--promo-paper);
}
.promo-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
/* The one number the line is about. */
.promo-title strong { color: var(--promo-mint); font-weight: 600; }
/* A light tile behind the mark. These are other companies' assets and arrive
   in whatever colours they ship — several are dark on transparent, which would
   vanish on the near-black behind them. The tile makes any of them legible
   without recolouring somebody's logo, which their brand guidelines usually
   forbid anyway. */
.promo-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-inline-end: 9px;
  vertical-align: -6px;
  background: var(--promo-paper);
  border-radius: 6px;
  flex-shrink: 0;
}
.promo-logo img { display: block; width: 16px; height: 16px; object-fit: contain; }
.promo-body {
  margin: 0;
  flex: 1 1 15rem;
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--promo-quiet);
}
.promo .button,
.promo a.button {
  flex-shrink: 0;
  height: 34px;
  padding: 0 15px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--promo-mint);
  color: var(--promo-ink);
}
.promo .button:hover, .promo a.button:hover { background: #A8DEC4; color: var(--promo-ink); }
.promo .button.secondary {
  background: transparent;
  border: 1px solid var(--promo-quiet);
  color: var(--promo-paper);
}
.promo .button.secondary:hover { background: transparent; border-color: var(--promo-paper); }

/* Mint would read as another accent here; sand says "not the real thing". */
.promo-preview {
  display: inline-block;
  vertical-align: middle;
  margin-inline-start: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--warn-bg);
  color: var(--warn-text);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Plan ---------- */
.plan-pill {
  background: var(--brand);
  color: var(--bg);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.user-chip a.upgrade-link { color: var(--brand); font-weight: 600; }

/* The line under the estimate's headline duration — the one screen where
   somebody is actively deciding how long they'll wait. */
.estimate-pro-note {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.estimate-pro-note strong { color: var(--brand); }

.pricing-title {
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.pricing-lede { max-width: 40rem; }
.pricing-fineprint { margin-top: 32px; font-size: 13px; max-width: 42rem; }

.plan-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-top: 36px;
}
.plan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}
.plan-card-pro { border-color: var(--brand); }
.plan-price {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 10px 0 18px;
}
.plan-features { margin: 0 0 20px; padding-inline-start: 18px; font-size: 14px; line-height: 1.9; color: var(--muted); }
.plan-features strong { color: var(--text); }
.plan-current { font-size: 13px; margin: 0 0 12px; }

/* Folded away by default: the exclusions field is for the crawl that needs it,
   not the common one, so it shouldn't compete with the URL box for attention. */
.crawl-advanced { margin-top: 10px; font-size: 13px; }
.crawl-advanced > summary {
  cursor: pointer;
  color: var(--muted);
  padding: 4px 2px;
  list-style-position: outside;
}
.crawl-advanced > summary:hover { color: var(--text); }
.crawl-advanced .advanced-field {
  display: block;
  margin: 8px 2px 6px;
  color: var(--muted);
}
input.exclusions-input {
  width: 100%;
  max-width: 460px;
  border: 1px solid var(--border-control);
  border-radius: 6px;
  height: 42px;
  padding: 0 12px;
  font-size: 14px;
  font-family: var(--font-mono);
  background: var(--bg-input);
  box-sizing: border-box;
}
/* Chips rather than a comma-separated box: an entry you can see and delete,
   labelled with whether it will be treated as a folder or a subdomain. */
.tag-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 460px;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid var(--border-control);
  border-radius: 6px;
  background: var(--bg-input);
  cursor: text;
  box-sizing: border-box;
}
.tag-input:focus-within { outline: 2px solid var(--brand); outline-offset: -1px; }
.tag-input > input {
  flex: 1 1 120px;
  min-width: 100px;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 4px 2px;
  color: var(--text);
}
.tag-input [data-tag-list] { display: contents; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-tint);
  color: var(--brand);
  border-radius: 6px;
  padding: 4px 4px 4px 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}
/* The half that says how the crawler will read this entry. */
.tag em {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 11px;
  opacity: 0.7;
}
button.tag-remove {
  background: none;
  border: none;
  color: inherit;
  font-size: 15px;
  line-height: 1;
  height: auto;
  padding: 0 4px;
  cursor: pointer;
  opacity: 0.6;
}
button.tag-remove:hover { background: none; opacity: 1; }

.crawl-advanced .advanced-hint { margin: 8px 2px 2px; font-size: 12px; max-width: 560px; }
.crawl-advanced .advanced-hint code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 4px;
}

.google-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  box-shadow: none;
}
.google-btn:hover { border-color: var(--text); text-decoration: none; }

/* ---------- Landing (public front door) ---------- */
.landing { padding-top: 40px; }

/* ---------- Login screen ---------- */
.login-screen {
  min-height: 100vh;
  display: flex;
  /* Column, because the language menu sits under the card — as a row they
     rendered side by side, the menu floating oddly next to the sign-in box. */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background-color: var(--bg);
  background-image: radial-gradient(#DFE3E8 1px, transparent 1px);
  background-size: 24px 24px;
}
.login-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 48px;
  text-align: center;
}
.login-card .subtitle { max-width: 340px; line-height: 1.5; font-size: 16px; margin: 0; }

/* ---------- Run lists (home page, all runs, admin) ---------- */
.list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.list-head a { font-size: 13px; font-weight: 600; white-space: nowrap; }
.back-link { font-size: 13px; color: var(--muted); }
.back-link:hover { color: var(--text); }

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 24px;
}
.filter-row input[type="search"] {
  flex: 1;
  min-width: 0;
  max-width: 420px;
  height: 38px;
  border: 1px solid var(--border-control);
  border-radius: 6px;
  padding: 0 14px;
  font-size: 14px;
  background: var(--bg-input);
  color: var(--text);
}
.filter-row a { font-size: 13px; color: var(--muted); }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
  font-size: 13px;
  font-weight: 600;
}
.pagination .muted { font-weight: 400; }
.pagination .disabled { color: var(--faint); }

.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}
ul.recent-runs { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
ul.recent-runs li { border-bottom: 1px solid var(--border); }
ul.recent-runs a.run-row {
  display: grid;
  /* Fixed tracks rather than auto: every row is its own grid, so auto columns
     size to that row's own content and the numbers wouldn't line up down the
     list. minmax(0, …) lets a long URL ellipsize instead of widening the row. */
  grid-template-columns: minmax(0, 1fr) 132px 84px 100px 172px;
  gap: 20px;
  align-items: center;
  padding: 14px 4px;
  color: var(--text);
  text-decoration: none;
}
ul.recent-runs .run-words, ul.recent-runs .run-pages, ul.recent-runs .run-date { text-align: end; }

@media (max-width: 720px) {
  ul.recent-runs a.run-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
  }
  ul.recent-runs .run-url { flex: 1 0 100%; }
  ul.recent-runs .run-words, ul.recent-runs .run-pages, ul.recent-runs .run-date { text-align: start; }
}
ul.recent-runs a.run-row:hover { background: #F7F8FA; text-decoration: none; }
.run-url { font-family: var(--font-mono); font-size: 13px; color: var(--brand); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sample-tag {
  margin-inline-start: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--neutral-bg);
  color: var(--neutral-text);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.run-words { font-family: var(--font-mono); font-size: 13px; font-weight: 600; white-space: nowrap; }
.run-pages { font-size: 13px; color: var(--muted); white-space: nowrap; }
.run-date { font-size: 12px; color: var(--faint); white-space: nowrap; }
.muted { color: var(--muted); font-size: 0.85rem; }

/* ---------- Status pills ---------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  width: fit-content;
}
.status-crawling { background: var(--warn-bg); color: var(--warn-text); }
.status-completed { background: var(--success-bg); color: var(--success-text); }
.status-cancelled { background: var(--neutral-bg); color: var(--neutral-text); }
.status-failed { background: var(--danger-bg); color: var(--danger-text); }
.status-paused { background: var(--brand-tint); color: var(--brand); }
.status-queued { background: var(--neutral-bg); color: var(--neutral-text); }

.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--warn-text);
  animation: wcPulse 1.2s ease-in-out infinite;
}
@keyframes wcPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- Report header ---------- */
.report-header { padding: 28px 32px 8px; }
.report-header a { font-size: 13px; color: var(--muted); }
.report-header a:hover { color: var(--text); }
.report-header h1 {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 10px 0 6px;
  word-break: break-all;
}
.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.title-row h1 { flex: 1; }
.title-block { display: flex; flex: 1; align-items: center; gap: 4px; min-width: 0; }
.title-block h1 { flex: 0 1 auto; }

/* An icon on its own, quiet until pointed at: the pencil beside the address. */
.icon-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--muted);
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
}
.icon-button:hover { color: var(--text); background: var(--surface-subtle); border-color: var(--border); }

.edit-url { flex: 1 1 100%; max-width: 46rem; margin: 10px 0 8px; }
.edit-url label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.edit-url-row { display: flex; gap: 8px; }
.edit-url-row input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--border-control);
  border-radius: 6px;
}
.edit-url-row input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.edit-url-row button { height: 40px; padding: 0 18px; font-size: 13px; }
.edit-url-hint { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.crawled-from { margin-top: 2px; font-size: 12.5px; }
.header-actions {
  display: flex;
  align-items: center;
  /* Wraps: the Markdown download makes a fourth button here, which is more
     than fits beside a long URL on a narrow screen. */
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  /* Deliberately shrinkable: with flex-shrink:0 the row kept its full natural
     width, so flex-wrap above could never take effect and the buttons ran off
     the side of narrow screens instead. */
  min-width: 0;
  margin-top: 8px;
}
.header-actions #share-btn { gap: 9px; height: 38px; padding: 0 20px; font-size: 13px; }
.header-actions #share-btn svg { width: 15px; height: 15px; }

/* The Export and ⋯ menus — same panel the header's other menus use, because
   they are the same kind of thing. */
.action-menu { position: relative; }
.action-menu > button svg { width: 14px; height: 14px; margin-inline-end: 7px; }
.action-menu > button.action-dots { padding: 0 13px; font-size: 16px; letter-spacing: 1px; }
.action-menu-list {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 208px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-menu);
}
.action-menu-list button[role="menuitem"] {
  display: block;
  width: 100%;
  height: auto;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  text-align: start;
  cursor: pointer;
}
.action-menu-list button[role="menuitem"]:hover { background: var(--bg); }
.action-menu-list button.menu-danger { color: var(--danger-text); }
.action-menu-list button.menu-danger:hover { background: var(--danger-bg); }

/* A details whose summary lives elsewhere: the ⋯ menu drives .open, so the
   summary is hidden and only the panel ever shows. */
.run-disclosure-headless > summary { display: none; }
.run-disclosure-headless { flex: 1 1 100%; }
.run-date-line { font-size: 13px; color: var(--muted); margin: 0; }

.settings-applied {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.settings-applied .section-label { margin: 0; }
.pill {
  display: inline-block;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
}
.pill strong { font-family: var(--font-mono); }

/* ---------- Sticky stats bar ---------- */
.totals-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: center;
  padding: 14px 32px;
}
/* Flex rather than fixed grid columns: the Markdown card only appears on some
   runs, and a 5-column grid dropped it onto a row of its own. The wrap is a
   genuine fallback for narrow screens, not the desktop layout — the tightened
   gap and padding below are what keep six cards on one row at the 1060px the
   report is capped to. */
.totals-bar .stat-card { flex: 1 1 0; min-width: 0; }
.totals-bar .stat-card:first-child { flex: 0 0 auto; }
.totals-bar .stat-card { padding-inline-start: 18px; }
.totals-bar .stat-card .big { font-size: 21px; letter-spacing: -0.5px; }

@media (max-width: 760px) {
  /* Below this the six cards genuinely can't share a row — wrap them two-up
     rather than letting the unbreakable numbers push the page sideways. */
  .totals-bar { padding: 14px 20px; }
  .totals-bar .stat-card { flex: 1 1 40%; }
  .totals-bar .stat-card:first-child { flex: 1 1 40%; }
  .totals-bar .stat-card:nth-child(odd) { border-inline-start: none; padding-inline-start: 0; }
}
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-inline-start: 1px solid var(--border);
  padding-inline-start: 24px;
}
.stat-card:first-child { border-inline-start: none; padding-inline-start: 0; gap: 6px; }
.stat-card .muted {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.stat-card .big { font-family: var(--font-mono); font-size: 24px; font-weight: 600; line-height: 1; }
.stat-card-muted .big.zero { color: var(--faint); }

/* ---------- Report body ---------- */
.report-body { padding: 24px 32px 80px; }

.note {
  background: var(--warn-bg);
  border: 1px solid #F1D9A0;
  color: var(--warn-text);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 20px;
}
.error-box {
  background: var(--danger-bg);
  border: 1px solid #F2C4C9;
  color: var(--danger-text);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 20px;
}

/* The blocked/failed count is a chip in the run bar, not a banner across the
   page. It's one fact about the run, and it sits with the control that acts on
   the run rather than interrupting the way to it. */
ul.issues-list { margin: 0 20px 16px; }

ul.issues-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
}
ul.issues-list li {
  padding: 8px 12px;
  border-bottom: 1px solid #F3F5F7;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
ul.issues-list li:last-child { border-bottom: none; }
ul.issues-list .issue-url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  word-break: break-all;
}
ul.issues-list .issue-reason {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Run bar ----------
   One row: what went wrong with this run, and what to do about it. Replaces two
   full-width fills and a set of controls sitting bare on the page background —
   the only unhoused controls anywhere in the app. */
.run-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}
.run-bar-gap { flex: 1 1 0; min-width: 0; }

/* A disclosure that takes the whole row once open, so the panel it reveals is
   laid out in flow instead of floating over the report beneath it. */
.run-disclosure { min-width: 0; }
.run-disclosure[open] { flex: 1 1 100%; }

.run-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  list-style: none;
}
.run-chip::-webkit-details-marker { display: none; }
.run-chip::after {
  content: "▸";
  font-size: 10px;
  color: var(--faint);
  transition: transform 0.15s ease;
}
.run-disclosure[open] > .run-chip::after { transform: rotate(90deg); }
.run-chip:hover { border-color: #757D88; }

/* Sand, because it carries the same meaning the banner did — just at the size
   of one fact rather than the width of the page. */
.run-chip-warn {
  background: var(--warn-bg);
  border-color: #F1D9A0;
  color: var(--warn-text);
  font-weight: 600;
}
.run-chip-warn::after { color: var(--warn-text); }
.run-chip-warn:hover { border-color: var(--warn-text); }

.run-chip-action { font-weight: 600; }

/* The panel each disclosure opens. */
.run-disclosure[open] > form,
.run-disclosure[open] > ul.issues-list {
  margin-top: 10px;
}
#recrawl-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
#recrawl-form .field,
#recrawl-form input,
#recrawl-form select { height: 34px; font-size: 13px; }
#recrawl-form input.language-input { width: 150px; }
#recrawl-form input.recrawl-exclusions { width: 210px; }
#recrawl-form select { font-size: 12.5px; }
#recrawl-form button[type="submit"] { height: 34px; padding: 0 16px; font-size: 13px; }

/* ---------- Share modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(17, 20, 24, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
/* display:flex above wins over the hidden attribute unless it's spelled out. */
.modal-overlay[hidden] { display: none; }

.modal-card {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border-radius: 16px;
  /* Keeps the footer's fill inside the rounded corners. */
  overflow: hidden;
  box-shadow: var(--shadow-menu);
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 0;
}
.modal-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.modal-close {
  background: none;
  border: none;
  color: var(--faint);
  font-size: 22px;
  line-height: 1;
  height: auto;
  padding: 2px 4px;
  margin: -2px -4px 0 0;
}
.modal-close:hover { background: none; color: var(--text); }
.modal-body { padding: 18px 24px 20px; }
.modal-foot {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 18px 24px 20px;
}

.share-invite-row { display: flex; align-items: center; gap: 10px; }
#share-email-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  background: var(--bg-input);
  color: var(--text);
}
.share-invite-row button[type="submit"] {
  flex-shrink: 0;
  height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 14px;
}
#share-email-status { margin: 10px 0 0; }
#share-email-status:empty { display: none; }

.modal-body .section-label { margin: 22px 0 10px; }
.people-list { list-style: none; margin: 0; padding: 0; }
.person-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.person-row .avatar, .icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
  object-fit: cover;
}
.icon-circle svg { width: 19px; height: 19px; }
.person-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.person-name { font-size: 15px; font-weight: 600; }
.person-email {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.person-role { font-size: 13px; color: var(--muted); flex-shrink: 0; }
.person-remove {
  background: none;
  border: none;
  color: var(--faint);
  height: auto;
  padding: 4px 6px;
  font-size: 17px;
  line-height: 1;
  flex-shrink: 0;
}
.person-remove:hover { background: none; color: var(--danger-text); }

.public-link-row { display: flex; align-items: center; gap: 12px; }
.switch {
  flex-shrink: 0;
  justify-content: flex-start;
  width: 46px;
  height: 26px;
  padding: 3px;
  border: none;
  border-radius: 999px;
  background: #C9D0D8;
  transition: background 0.18s ease;
}
.switch:hover { background: #A9B2BD; }
.switch[aria-checked="true"], .switch[aria-checked="true"]:hover { background: var(--brand); }
.switch:disabled { background: var(--border); cursor: not-allowed; }
.switch-knob {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(17, 20, 24, 0.25);
  transition: transform 0.18s ease;
}
.switch[aria-checked="true"] .switch-knob { transform: translateX(20px); }

.share-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
#share-link-input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--card);
  color: var(--muted);
}
.share-link-row button { height: 42px; border-radius: 10px; flex-shrink: 0; }

/* ---------- Pre-crawl estimate panel ---------- */
.estimate-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 44px;
  box-shadow: none;
}
.estimate-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 4px;
}
.confidence-badge.confidence-high { background: var(--success-bg); color: var(--success-text); border-color: transparent; }
.confidence-badge.confidence-medium { background: var(--warn-bg); color: var(--warn-text); border-color: transparent; }
.confidence-badge.confidence-low { background: var(--neutral-bg); color: var(--neutral-text); border-color: transparent; }
.estimate-duration {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0 10px;
}
.estimate-duration .big { font-family: var(--font-mono); font-size: 30px; font-weight: 600; }
.estimate-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 14px 0;
}
@media (max-width: 640px) {
  .estimate-stats { grid-template-columns: repeat(2, 1fr); }
}
.estimate-stat .muted {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.estimate-stat .big { font-family: var(--font-mono); font-size: 22px; font-weight: 600; margin-top: 4px; }
#estimate-message { margin: 8px 0 16px; }

/* ---------- Report grid: folders + top pages ---------- */
.report-grid {
  display: grid;
  /* minmax(0, …), not a bare fr: a grid track's default minimum is its
     content's, so one long unbroken URL in the top-pages list would widen
     its column past the page instead of letting .path ellipsize. */
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 720px) {
  .report-grid { grid-template-columns: minmax(0, 1fr); }
}

table.folder-table { width: 100%; border-collapse: collapse; }
table.folder-table thead th {
  text-align: end;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0 4px 8px;
  border-bottom: 1px solid var(--border-strong);
}
table.folder-table thead th:first-child { text-align: start; }
table.folder-table td {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--border);
  text-align: end;
  position: relative;
}
table.folder-table td:first-child { text-align: start; }
table.folder-table td.folder-words { font-weight: 600; }
table.folder-table td.folder-pages { color: var(--muted); }
.folder-bar {
  position: absolute;
  inset-inline-start: 0; top: 4px; bottom: 4px;
  background: var(--folder-bar);
  border-radius: 3px;
  z-index: 0;
}
table.folder-table td > span { position: relative; z-index: 1; }

td.show-all-row, li.show-all-row {
  text-align: center;
  padding-top: 12px;
}
td.show-all-row a, li.show-all-row a {
  font-size: 13px;
  font-weight: 600;
}
li.show-all-row { justify-content: center; }

ol#top-pages-list { list-style: none; padding: 0; margin: 0; }
ol#top-pages-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
ol#top-pages-list .rank { font-family: var(--font-mono); font-size: 12px; color: var(--faint); width: 16px; flex-shrink: 0; }
ol#top-pages-list .path {
  font-family: var(--font-mono); font-size: 12px; flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--brand);
}
ol#top-pages-list .words { font-family: var(--font-mono); font-size: 13px; font-weight: 600; white-space: nowrap; }

/* ---------- Pages table ---------- */
.table-scroll {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  max-height: 480px;
  overflow: auto;
  box-shadow: none;
}
/* Paginated tables page rather than scroll — an inner scrollbar on top of
   page links makes it unclear which one moves you through the list. */
.table-scroll.table-paged { max-height: none; }

.page-more {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}
.page-more .muted { font-size: 13px; }
table { width: 100%; border-collapse: collapse; margin: 0; font-size: 13px; }
th, td { text-align: start; padding: 10px 16px; border-bottom: 1px solid #F3F5F7; }
th {
  position: sticky;
  top: 0;
  background: var(--bg-input);
  text-align: start;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  z-index: 2;
}
td.url-cell { font-family: var(--font-mono); font-size: 12px; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td.words-cell { font-family: var(--font-mono); font-weight: 600; text-align: end; white-space: nowrap; }
th:nth-child(3) { text-align: end; }
/* Opt out of / into that positional rule where the column order differs. */
th.col-left { text-align: start; }
th.col-num { text-align: end; }
tr.page-failed { color: var(--danger-text); }
tr.page-failed td.url-cell { color: var(--danger-text); }
tr.page-blocked-host { color: var(--warn-text); background: var(--blocked-row-bg); }
tr.page-blocked-host td.url-cell { color: var(--warn-text); }
td.open-cell { text-align: end; }
td.open-cell a { font-size: 12px; white-space: nowrap; }

/* ---------- Language menu ----------
   Its own control beside the account chip rather than a row inside it, so the
   current language is legible without opening anything. Same panel treatment
   as the user menu — it is a peer, not a variant. */
.topbar-right { display: flex; align-items: center; gap: 10px; }

.lang-menu { position: relative; }
button.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
}
button.lang-btn:hover { background: var(--card); border-color: #757D88; }
.lang-menu.is-open button.lang-btn { border-color: var(--border-strong); }
.lang-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.lang-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.lang-menu.is-open .chev { transform: rotate(180deg); }

.lang-menu-list {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 236px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-menu);
}
/* Two columns because eleven stacked rows is taller than some windows, and the
   names are short enough to pair. */
.lang-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
a.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
}
a.lang-option:hover { background: var(--bg); text-decoration: none; }
.lang-option-code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--faint);
}
a.lang-option.is-current {
  background: var(--brand-tint);
  color: var(--brand);
  font-weight: 600;
}
a.lang-option.is-current .lang-option-code { color: var(--brand); }

/* On the signed-out pages the control sits beside a Sign in button rather than
   an account chip; it needs no other treatment. */
.landing .lang-menu, .login-screen .lang-menu { flex-shrink: 0; }
.login-screen .lang-menu-list { inset-inline-end: auto; inset-inline-start: 50%; transform: translateX(-50%); }
[dir="rtl"] .login-screen .lang-menu-list { transform: translateX(50%); }

/* Someone else's site's credentials — the browser pop-up kind (HTTP Basic
   Auth). Two plain fields; the hint under them carries the promise. */
.site-auth { display: flex; gap: 8px; flex-wrap: wrap; max-width: 460px; }
.crawl-advanced .site-auth input {
  flex: 1 1 180px;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  font-size: 14px;
  border: 1px solid var(--border-control);
  border-radius: 6px;
  background: var(--bg-input);
  box-sizing: border-box;
}
#recrawl-form .site-auth input { width: 150px; }
/* A site with a sign-in page: its address across, then email and password. */
.crawl-advanced .site-login .site-login-url { flex-basis: 100%; }
.site-session { margin-top: 10px; max-width: 560px; }
.site-session > summary { cursor: pointer; color: var(--muted); font-size: 12.5px; padding: 2px; }
.site-session > summary:hover { color: var(--text); }
.site-session textarea {
  display: block; width: 100%; max-width: 460px; margin-top: 8px; padding: 10px 12px;
  font: 13px/1.4 var(--font-sans); border: 1px solid var(--border-control); border-radius: 6px;
  background: var(--bg-input); box-sizing: border-box; resize: vertical;
}
#recrawl-error { margin-top: 8px; }

.platform-form { display: flex; gap: 6px; align-items: center; }
.platform-form select { height: 30px; font-size: 12.5px; }
.platform-form button { height: 30px; padding: 0 10px; font-size: 12.5px; }


.examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}
.examples-label { font-size: 13px; color: var(--muted); margin-inline-end: 4px; }
.example-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
}
.example-chip:hover { border-color: #757D88; text-decoration: none; }
.example-host { font-family: var(--font-mono); }
.example-words { color: var(--muted); font-variant-numeric: tabular-nums; }
.home-intro { margin-top: 8px; }

/* ---------- Guests: crawling before signing in ---------- */
.guest-note { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.guest-gate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.guest-gate p { margin: 0; max-width: 34rem; font-size: 14px; line-height: 1.55; color: var(--muted); }
.guest-gate strong { color: var(--text); }
.guest-gate .google-btn { padding: 10px 20px; font-size: 14px; }

.home-intro { margin-top: 8px; }


/* ---------- Front page ---------- */
.home { --home-max: 1140px; overflow-x: clip; }
.home-hero, .home-section, .home-final {
  max-width: var(--home-max);
  margin: 0 auto;
  padding-inline: 32px;
}
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  padding-block: 64px 80px;
}
/* The WebGL scene: full-bleed behind the hero, its subject on the right on
   desktop and below the copy on a phone (the scene places itself; see
   webgl/src/hero.js). */
.home-hero { position: relative; isolation: isolate; min-height: 620px; }
.home-hero-copy { position: relative; z-index: 1; }
.home-webgl {
  position: absolute;
  inset-block: 0;
  /* Edge to edge of the viewport from a centred column, in either direction. */
  inset-inline-start: calc(50% - 50vw);
  z-index: -1;
  width: 100vw;
  pointer-events: none;
}
.home-webgl::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 73% 49%, #C9CED750, transparent 47%);
}
.home-webgl canvas { position: relative; display: block; width: 100%; height: 100%; }
.home-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 1.5rem + 3.2vw, 3.9rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.home-sub { margin: 20px 0 0; max-width: 34rem; font-size: 18px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.home-form { margin-top: 28px; }
.home-form-row { display: flex; flex-wrap: wrap; gap: 8px; }
.home-form-row input {
  flex: 1 1 240px;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  font-size: 16px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border-control);
  border-radius: 6px;
}
.home-form-row button { height: 48px; padding: 0 20px; font-size: 15px; }
.home-md { margin-top: 12px; font-size: 14px; color: var(--muted); }
.home-fine { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.home-fine svg { flex-shrink: 0; width: 16px; height: 16px; }

/* Sections. The subtle bands run edge to edge while their content keeps the
   column: a spread shadow paints the band, clip-path keeps it horizontal. */
.home-section { padding-block: 96px; }
.home-subtle { background: var(--surface-subtle); box-shadow: 0 0 0 100vmax var(--surface-subtle); clip-path: inset(0 -100vmax); }
.home-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.home-split + .home-split { margin-top: 96px; }
.home-split-flip > .vis { order: -1; }
.home-copy p { margin: 16px 0 0; max-width: 32rem; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.home-h2 {
  margin: 0;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.home-h2-center { max-width: 34rem; margin: 0 auto 48px; text-align: center; }
.home-h3 { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.home-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: var(--accent);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.home-note { font-size: 14px !important; color: var(--muted); }

.home-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.home-card { padding: 20px 22px 24px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.home-card .home-icon { margin-bottom: 14px; }
.home-card p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

.home-proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px; max-width: 60rem; margin: 0 auto; }
.home-proof p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

.home-facts { display: grid; gap: 12px; max-width: 46rem; margin-top: 64px; }
.home-facts p { display: flex; gap: 12px; margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.home-facts svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }

.home-limits ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.home-limits li { padding: 18px 20px; font-size: 15px; line-height: 1.55; color: var(--muted); background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.home-limits strong { display: block; margin-bottom: 4px; font-weight: 600; color: var(--text); }

/* The closing band is the page's one dark surface (the system's dark theme
   values), with the brand green as a small mark rather than a fill. */
.home-final {
  padding-block: 96px;
  text-align: center;
  color: #F1F4F7;
  background: #181B1F;
  box-shadow: 0 0 0 100vmax #181B1F;
  clip-path: inset(0 -100vmax);
}
.home-final h2 {
  max-width: 30rem;
  margin: 0 auto;
  font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.home-final h2::before { content: ""; display: block; width: 28px; height: 4px; margin: 0 auto 24px; background: var(--brand-green); border-radius: 2px; }
.home-final .home-final-button { gap: 8px; height: 48px; margin-top: 32px; padding: 0 22px; color: #181B1F; background: #F1F4F7; }
.home-final .home-final-button:hover { color: #181B1F; background: #DDE3E9; text-decoration: none; }
.home-final p { margin: 16px 0 0; font-size: 14px; color: #B0BBC7; }

/* ---------- Front page illustrations ---------- */
.vis { position: relative; min-width: 0; }
.vis-report, .vis-wire, .vis-folders, .vis-md, .vis-estimate, .vis-share {
  padding: 28px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.home-subtle .vis-estimate { background: var(--card); }
.mock-card { padding: 20px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.mock-label { font-size: 12px; color: var(--muted); }
.mock-section { margin: 0 0 8px; font-weight: 500; }

.mock-window { overflow: hidden; background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-menu); }
.mock-window-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--surface-subtle); border-bottom: 1px solid var(--border); }
.mock-window-bar span { width: 9px; height: 9px; background: var(--border); border-radius: 50%; }
.mock-report { padding: 20px 22px 22px; }
.mock-report-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mock-host { font-size: 18px; font-weight: 600; }
.status-dot-pill { padding: 3px 8px; font-size: 12px; color: var(--success-text); background: var(--success-bg); border-radius: 4px; }
.mock-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; padding: 16px 18px; background: var(--surface-summary); border-radius: 7px; }
.mock-stats strong { display: block; margin-top: 4px; font-size: 30px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.mock-bars, .mock-toplist { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mock-toplist { margin-top: 12px; }
.mock-bars li, .mock-toplist li {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.mock-bar { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); background: var(--folder-bar); border-radius: 4px; transform-origin: left center; }
[dir="rtl"] .mock-bar { transform-origin: right center; }
.mock-bars li:first-child .mock-bar, .mock-toplist li:first-child .mock-bar { box-shadow: inset 3px 0 0 var(--brand-green); }
.mock-bar-name, .mock-bar-value { position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-bar-value { flex-shrink: 0; font-weight: 600; }
.mock-csv { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; font-size: 13px; font-weight: 500; border-top: 1px solid var(--border); }
.mock-csv span { margin-inline-start: auto; font-size: 12px; font-weight: 400; color: var(--muted); }


.vis-wire { display: grid; place-items: center; padding: 36px 28px 48px; }
.wire-page { position: relative; width: min(100%, 380px); padding: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.wire-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  font-size: 12px;
  color: var(--muted);
  background: repeating-linear-gradient(135deg, var(--surface-subtle) 0 6px, var(--card) 6px 12px);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.wire-body { display: grid; gap: 9px; padding: 18px 12px; }
.wire-h { width: 55%; height: 12px; background: var(--text); border-radius: 3px; }
.wire-line { position: relative; width: var(--w); height: 7px; overflow: hidden; background: var(--folder-bar); border-radius: 3px; }
.wire-line::after { content: ""; position: absolute; inset: 0; background: var(--text); opacity: 0.72; transform-origin: left center; }
.wire-count {
  position: absolute;
  inset-inline-end: -18px;
  top: 42%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  color: #F1F4F7;
  background: #181B1F;
  border-radius: 6px;
  box-shadow: var(--shadow-menu);
}
.wire-count svg { color: var(--brand-green); }
.wire-count strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.wire-dup {
  position: absolute;
  inset-inline-start: 20px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.vis-md { display: grid; justify-items: center; gap: 20px; padding-top: 44px; }
.md-stack { position: relative; width: min(100%, 400px); }
.md-file {
  position: absolute;
  inset: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transform: translate(calc(var(--i) * 14px), calc(var(--i) * -12px));
  opacity: calc(1 - var(--i) * 0.3);
}
/* The front file is in the flow and sets the stack's height; the two behind it fill that. */
.md-front { position: relative; z-index: 1; padding: 12px 16px 16px; }
.md-name { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; padding-bottom: 8px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); }
.md-front pre { margin: 0; overflow: hidden; font-family: var(--font-code); font-size: 12.5px; line-height: 1.6; color: var(--text); white-space: pre-wrap; }
.md-zip { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 13px; font-weight: 500; background: var(--card); border: 1px solid var(--border); border-radius: 6px; }
.md-zip-count { font-weight: 400; color: var(--muted); }

/* One height for all three, so the icons and headings below line up across the cards. */
.mini { display: grid; place-content: center; height: 156px; margin-bottom: 20px; padding: 16px; overflow: hidden; background: var(--surface-subtle); border-radius: 7px; }
.mini-seg { display: inline-flex; overflow: hidden; font-size: 12px; border: 1px solid var(--border-control); border-radius: 6px; }
.mini-seg span { padding: 6px 9px; white-space: nowrap; background: var(--card); }
.mini-seg span + span { border-inline-start: 1px solid var(--border); }
.mini-seg .on { color: var(--card); background: var(--text); }
.mini-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mini-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; font-size: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 4px; }
.mini-chip svg { color: var(--muted); }
.mini-paths { display: grid; gap: 6px; width: 200px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.mini-paths li { display: flex; align-items: center; justify-content: space-between; padding: 5px 10px; color: var(--muted); text-decoration: line-through; background: var(--card); border: 1px solid var(--border); border-radius: 6px; }
.mini-paths li.kept { color: var(--text); text-decoration: none; }
.mini-paths li.kept svg { color: var(--accent); }
.mini-auth { width: 210px; padding: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-menu); }
.mini-auth-host { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.mini-field { display: block; height: 30px; margin-top: 8px; padding: 6px 10px; font-size: 13px; border: 1px solid var(--border-control); border-radius: 6px; }

.est-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px; margin: 16px 0 18px; }
.est-stats strong { display: block; margin-top: 4px; font-size: 23px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.est-track { position: relative; height: 6px; background: var(--folder-bar); border-radius: 999px; }
.est-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 38%; background: var(--text); border-radius: 999px; transform-origin: left center; }
.est-mark { position: absolute; inset-inline-start: 38%; top: -5px; width: 2px; height: 16px; background: var(--accent); }
.est-note { margin-top: 8px; font-size: 12px; color: var(--muted); }
.est-google { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 16px; font-size: 13px; font-weight: 500; background: var(--card); border: 1px solid var(--border-control); border-radius: 999px; }

.share-link { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 13px; border: 1px solid var(--border-control); border-radius: 6px; }
.share-link span { flex: 1; min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.share-link b { padding: 4px 8px; font-size: 12px; font-weight: 600; color: var(--card); background: var(--text); border-radius: 4px; }
.share-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.share-actions span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; font-size: 12px; color: var(--muted); background: var(--card); border: 1px solid var(--border); border-radius: 7px; }
.share-actions svg { color: var(--text); }

/* Motion: a start state that only exists while .js-motion is set (see
   initHomeMotion), released when the illustration scrolls into view. */
.js-motion .vis .mock-bar { transition: transform 700ms var(--ease) calc(var(--i, 0) * 90ms); }
.js-motion .vis:not(.is-visible) .mock-bar { transform: scaleX(0); }
.js-motion .vis-wire .wire-line::after { transition: transform 520ms var(--ease) calc(200ms + var(--i) * 110ms); }
.js-motion .vis-wire:not(.is-visible) .wire-line::after { transform: scaleX(0); }
.js-motion .vis-wire .wire-count, .js-motion .vis-wire .wire-dup { transition: opacity 400ms var(--ease) 900ms, transform 400ms var(--ease) 900ms; }
.js-motion .vis-wire:not(.is-visible) .wire-count, .js-motion .vis-wire:not(.is-visible) .wire-dup { opacity: 0; transform: translateY(8px); }
.js-motion .vis-md .md-file { transition: opacity 500ms var(--ease) calc(var(--i) * 140ms), transform 500ms var(--ease) calc(var(--i) * 140ms); }
.js-motion .vis-md:not(.is-visible) .md-file { opacity: 0; transform: translateY(28px); }
.js-motion .vis-estimate .est-fill { transition: transform 1100ms var(--ease) 200ms; }
.js-motion .vis-estimate:not(.is-visible) .est-fill { transform: scaleX(0); }

/* ---------- Home: questions and platforms ---------- */
.home-faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 60rem; margin: 0 auto; }
.home-faq .home-card { padding: 28px 28px 30px; }
.home-faq .home-card p { font-size: 16px; }

.home-platforms-lede { max-width: 44rem; margin: -28px auto 40px; font-size: 17px; line-height: 1.6; text-align: center; color: var(--muted); text-wrap: pretty; }
.platform-group + .platform-group { margin-top: 28px; }
.platform-group h3 { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.platform-group ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.platform-group li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 16px 0 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.platform-group li .brand-logo { flex-shrink: 0; color: var(--text); }
.platform-group li.platform-more { font-weight: 400; color: var(--muted); background: transparent; border-style: dashed; }

/* ---------- Admin: translation check ---------- */
.tc-wrap { max-width: 1040px; }
.tc-title { font-size: 26px; font-weight: 600; letter-spacing: -0.4px; margin: 0 0 8px; overflow-wrap: anywhere; }
.tc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.tc-schedule { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.tc-start input[type="url"] { flex: 1 1 260px; min-width: 0; }
.tc-gap { margin-top: 28px; }
.tc-running, .tc-progress {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin-top: 18px; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-subtle);
  font-size: 13px; color: var(--text); text-decoration: none;
}
.tc-progress form { margin-inline-start: auto; }
.tc-meter { flex: 1 1 160px; max-width: 280px; }
.tc-notice { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; font-size: 13px; background: var(--warn-bg); color: var(--warn-text); }
.tc-notice.tc-danger { background: var(--danger-bg); color: var(--danger-text); }
.tc-notice.tc-good { background: var(--success-bg); color: var(--success-text); }
.tc-langs tr.tc-selected td { background: var(--surface-subtle); font-weight: 600; }
.tc-code { margin-inline-start: 6px; font-size: 11px; color: var(--faint); }
.tc-warn-mark { color: var(--warn-text); }
.tc-back { margin: 28px 0 0; font-size: 13px; }
.tc-section { margin-top: 36px; }
.tc-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tc-section-head h2 { font-size: 18px; font-weight: 600; margin: 0; }
.tc-section-head a { font-size: 13px; white-space: nowrap; }
.tc-count { font-size: 13px; font-weight: 500; color: var(--muted); margin-inline-start: 4px; }
.tc-lead { font-size: 13px; color: var(--muted); margin: 4px 0 12px; max-width: 70ch; }
.tc-table td { vertical-align: top; }
.tc-text { min-width: 0; overflow-wrap: anywhere; }
.tc-string {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
  color: var(--text); font-size: 14px; line-height: 1.45;
}
.tc-where { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.tc-where a { color: var(--muted); }
.tc-chips { white-space: normal; min-width: 90px; }
.tc-chip {
  display: inline-block; margin: 0 4px 4px 0; padding: 1px 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--brand); background: var(--brand-tint); border-radius: 4px;
}
.tc-new {
  display: inline-block; margin-inline-start: 6px; padding: 1px 6px; vertical-align: 1px;
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--warn-text); background: var(--warn-bg); border-radius: 4px;
}
.tc-actions { text-align: end; white-space: nowrap; }
.tc-keep { display: inline; margin: 0; }
.tc-small { padding: 4px 10px; font-size: 12px; }
.tc-folders { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.tc-folder { padding: 3px 8px; font-size: 12px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); }
.tc-folder strong { color: var(--text); font-weight: 600; }
.tc-subnav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.tc-kind { font-size: 12px; color: var(--muted); white-space: nowrap; }
.tc-chip-link { text-decoration: none; }
.tc-chip-link:hover { background: var(--border); }
/* The key-page grid: a page per row, a language per column. */
.tc-grid th, .tc-grid td { padding: 8px 10px; text-align: center; }
.tc-grid th:first-child, .tc-grid td:first-child { text-align: start; }
.tc-grid-page { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.tc-cell { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tc-cell a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 3px; }
.tc-cell a:hover { text-decoration: underline; }
td.tc-good, span.tc-good, .tc-tab.tc-good { background: var(--success-bg); color: var(--success-text); }
td.tc-warn, span.tc-warn, .tc-tab.tc-warn { background: var(--warn-bg); color: var(--warn-text); }
td.tc-bad, span.tc-bad, .tc-tab.tc-bad { background: var(--danger-bg); color: var(--danger-text); }
td.tc-missing, span.tc-missing, .tc-tab.tc-missing { background: var(--surface-subtle); color: var(--faint); font-weight: 500; }
.tc-shot-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.7; }
.tc-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.tc-legend .tc-cell { padding: 2px 6px; border-radius: 4px; }
.tc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.tc-tab { padding: 4px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.tc-tab span { font-weight: 500; opacity: 0.8; }
.tc-tab-on { border-color: currentColor; box-shadow: 0 0 0 1px currentColor; }
.tc-shot { margin: 0 0 18px; }
.tc-shot figcaption { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.tc-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 10px; }
/* On a phone a finding is a card: the text across the full width, then its
   languages, numbers and button — a table there squeezes the text into a
   column a word wide. */
@media (max-width: 640px) {
  .tc-table thead { display: none; }
  .tc-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .tc-table td { display: block; padding: 0; border: 0; }
  .tc-table td.tc-text { flex: 1 1 100%; }
  .tc-table td.tc-chips { flex: 1 1 auto; min-width: 0; }
  .tc-table td.words-cell[data-label]::before { content: attr(data-label) " "; font-family: var(--font-sans); font-weight: 400; color: var(--muted); }
  .tc-table td.tc-actions, .tc-table td.open-cell { margin-inline-start: auto; }
}

/* ---------- Projects ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.project-field { display: flex; flex-wrap: wrap; gap: 8px; max-width: 460px; }
.project-field select, .project-field input {
  flex: 1 1 200px; min-width: 0; height: 42px; padding: 0 12px; font-size: 14px;
  border: 1px solid var(--border-control); border-radius: 6px; background: var(--bg-input); color: var(--text); box-sizing: border-box;
}
.project-field input[hidden] { display: none; }
.project-chip {
  display: inline-block; margin-inline-start: 6px; padding: 1px 7px; vertical-align: 1px;
  font-family: var(--font-sans); font-size: 11px; font-weight: 600; color: var(--brand);
  background: var(--brand-tint); border-radius: 4px;
}
.run-projects { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.run-projects svg { color: var(--muted); }

.project-form { display: flex; flex-direction: column; gap: 12px; }
.project-form-lead { margin: 0; }
.project-options { display: flex; flex-direction: column; gap: 2px; max-height: 280px; overflow-y: auto; }
.project-option { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.project-option:hover { background: var(--surface-subtle); }
.project-option[hidden] { display: none; }
.project-option-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.project-option-meta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.project-new-name {
  width: 100%; height: 42px; padding: 0 12px; font-size: 14px; box-sizing: border-box;
  border: 1px solid var(--border-control); border-radius: 6px; background: var(--bg-input); color: var(--text);
}
.project-form-actions { display: flex; justify-content: flex-end; gap: 8px; }

.projects-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.projects-title { margin: 0 0 6px; font-size: 30px; font-weight: 600; letter-spacing: -0.5px; }
.projects-head .subtitle { margin: 0; }
.projects-create { display: flex; gap: 8px; flex: 0 1 420px; }
.projects-create input {
  flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 12px; font-size: 14px;
  border: 1px solid var(--border-control); border-radius: 6px; background: var(--bg-input); color: var(--text);
}
.projects-create button { height: 42px; }
.project-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; }
.project-card {
  display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; color: var(--text); text-decoration: none;
  border: 1px solid var(--border); border-radius: 10px; background: var(--card);
}
.project-card:hover { border-color: var(--text); text-decoration: none; }
.project-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.project-card-name { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.project-card-number { margin-top: 4px; font-size: 30px; font-weight: 700; letter-spacing: -0.9px; line-height: 1; font-variant-numeric: tabular-nums; }
.project-card-sub { font-size: 13px; color: var(--muted); }
.project-card-sites { display: flex; flex-wrap: wrap; gap: 4px; }
.project-site { padding: 2px 8px; font-size: 12px; color: var(--muted); background: var(--surface-subtle); border: 1px solid var(--border); border-radius: 4px; }
.project-card-foot { font-size: 12px; color: var(--faint); }
.projects-empty { margin-top: 28px; }
.projects-loose-head { margin-top: 48px; }
.loose-run {
  display: grid; grid-template-columns: minmax(0, 1fr) 140px 172px auto; gap: 16px; align-items: center;
  padding: 10px 4px; border-bottom: 1px solid var(--border); font-size: 13px;
}
.loose-run-url { font-family: var(--font-mono); color: var(--brand); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loose-run .run-words { text-align: end; font-weight: 600; }
.loose-run .run-date { text-align: end; color: var(--muted); }
.loose-run-add { height: 30px; padding: 0 10px; font-size: 12px; }

.project-empty { padding: 40px 0; }
.project-notice { margin: 18px 0 0; padding: 12px 16px; max-width: 760px; font-size: 13px; line-height: 1.5; color: var(--warn-text); background: var(--warn-bg); border-radius: 10px; }

/* Consolidating a project: the button, its progress, and how the added-up
   words come down to the new ones. */
.consolidate-box { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 220px; }
.consolidate-when { margin: 0; font-size: 12px; color: var(--muted); }
.consolidate-progress { width: 240px; max-width: 100%; }
.consolidate-track { height: 6px; overflow: hidden; background: var(--border); border-radius: 999px; }
.consolidate-track span { display: block; height: 100%; background: var(--text); transition: width .4s ease; }
.consolidate-step { margin: 6px 0 0; font-size: 12px; color: var(--muted); text-align: end; }
.consolidate-box .field-error { max-width: 320px; text-align: end; }
.hero-number-pending { color: var(--faint); }
.waterfall { list-style: none; margin: 24px 0 0; padding: 0; max-width: 560px; font-variant-numeric: tabular-nums; }
.waterfall li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.waterfall li strong { font-weight: 600; white-space: nowrap; }
.waterfall-minus span { padding-inline-start: 16px; color: var(--muted); }
.waterfall-minus strong { color: var(--muted); }
.waterfall-total { border-bottom: 0 !important; border-top: 2px solid var(--text); font-weight: 700; }
.waterfall-total strong { font-weight: 700; }
.wf-new { background: var(--text); }
.wf-within { background: var(--faint); }
.wf-across { background: #B5BEC8; }
.project-crawls .words-new { font-weight: 700; }
/* Five numbers a row: headers wrap, notes under the numbers wrap, and the
   crawl's own name keeps room, so the new words never fall off the edge. */
table.project-crawls th { white-space: normal; vertical-align: bottom; padding-inline: 10px; }
table.project-crawls td { padding-inline: 10px; }
table.project-crawls td:first-child { min-width: 200px; }
@media (min-width: 641px) {
  table.project-crawls td.words-cell .cell-sub { white-space: normal; min-width: 7em; max-width: 13em; margin-inline-start: auto; }
}
.project-crawls tfoot td { font-weight: 700; border-top: 2px solid var(--border); }
.overlap-tabs { display: flex; gap: 4px; margin: 8px 0 18px; border-bottom: 1px solid var(--border); }
.overlap-tabs button[role=tab] {
  height: auto; padding: 10px 14px; margin-bottom: -1px; background: none; color: var(--muted);
  border: 0; border-bottom: 2px solid transparent; border-radius: 0; font-weight: 600;
}
.overlap-tabs button[role=tab]:hover { background: none; color: var(--text); }
.overlap-tabs button[role=tab][aria-selected=true] { color: var(--text); border-bottom-color: var(--text); }
.overlap-tabs button[role=tab]:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
.overlap-panel + .overlap-panel { margin-top: 28px; }
.overlap-panel h3 { font-size: 15px; }
.overlap-pages .cell-sub a, .overlap-sentences .cell-sub a { color: inherit; }
.overlap-sentences td:first-child { max-width: 560px; }
.overlap-downloads { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0 0; font-size: 13px; }
@media (max-width: 720px) {
  .consolidate-box { align-items: flex-start; }
  .consolidate-step, .consolidate-box .field-error { text-align: start; }
}
/* .report-header greys its links; buttons that are links keep their own colours. */
.report-header a.button { color: #fff; }
.report-header a.button.secondary { color: var(--text); }
.project-shares span { white-space: nowrap; }
.client-doc .table-scroll { border: 0; border-radius: 0; background: none; }
.project-empty h2 { margin: 0 0 6px; font-size: 20px; }
.project-empty-actions { display: flex; gap: 8px; margin-top: 16px; }
table.project-sites td { vertical-align: top; }
.project-site-name { font-weight: 600; font-size: 14px; }
.project-site-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.project-site-note { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.project-site-note .link-button { font-size: 12px; margin-inline-start: 4px; }
.project-site-row.state-superseded td, .project-site-row.state-excluded td { color: var(--faint); }
.project-site-row.state-in_progress { background: var(--warn-bg); }
/* Struck through: this crawl's own total isn't in the project's. What it
   would add, if counted, stays readable next to it. */
.project-site-row s.not-in-total { text-decoration-thickness: 1px; }
.project-site-row.state-excluded td .adds-if, .project-site-row.state-in_progress td .adds-if { color: var(--text); font-weight: 600; }
.cell-sub { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--muted); font-family: var(--font-sans); }
.project-shares { font-size: 12px; color: var(--muted); }
.project-shares span { display: block; overflow: hidden; text-overflow: ellipsis; }
.project-subhead { margin-top: 28px !important; }
.table-note { margin: 10px 2px 0; }
.project-left-out { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--border); max-width: 640px; }
.project-left-out li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 2px; border-bottom: 1px solid var(--border); font-size: 14px; }

/* The client view: a document, not an app screen. */
.client-doc { max-width: 820px; margin: 0 auto; padding: 48px 32px 80px; display: flex; flex-direction: column; gap: 44px; }
.client-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; }
.client-head h1 { margin: 8px 0 8px; font-size: 40px; font-weight: 700; letter-spacing: -1px; line-height: 1.1; }
.client-sites { margin: 0; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.client-total { display: flex; flex-direction: column; gap: 14px; }
.client-number { font-size: 88px; font-weight: 700; letter-spacing: -3px; line-height: 1; font-variant-numeric: tabular-nums; }
.client-lead { margin: 0; font-size: 18px; max-width: 46ch; }
.client-bar { display: flex; height: 18px; border-radius: 4px; overflow: hidden; background: var(--surface-subtle); margin-top: 8px; }
.client-bar span { display: block; height: 100%; }
.client-bar-counted { background: var(--text); }
.client-bar-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.client-bar-legend strong { color: var(--text); }
.client-note { margin: 0; font-size: 14px; color: var(--muted); max-width: 70ch; }
.client-section h2 { margin: 0 0 12px; font-size: 20px; font-weight: 600; }
.client-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.client-table th { position: static; background: none; border-bottom: 1px solid var(--text); padding: 10px 8px 10px 0; }
.client-table td { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--border); }
.client-together td { font-weight: 600; }
.client-pct { color: var(--muted); font-weight: 400 !important; }
.client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.client-out { padding-top: 24px; border-top: 1px solid var(--border); }
.client-out p { margin: 0 0 8px; font-size: 14px; color: var(--muted); max-width: 72ch; }
.client-credit { font-size: 13px !important; color: var(--faint) !important; }
@media (max-width: 640px) {
  /* A site per card: the table would hide "Adds" off to the side. */
  table.project-sites thead { display: none; }
  table.project-sites tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 14px; border-bottom: 1px solid var(--border); }
  table.project-sites td { display: block; padding: 0; border: 0; }
  table.project-sites td:first-child, table.project-sites td.project-shares { flex: 1 1 100%; }
  table.project-sites td.words-cell[data-label]::before { content: attr(data-label) " "; font-family: var(--font-sans); font-weight: 400; color: var(--muted); }
  table.project-sites td.open-cell { margin-inline-start: auto; }
  .client-number { font-size: 56px; letter-spacing: -1.5px; }
  .client-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .loose-run { grid-template-columns: minmax(0, 1fr) auto; }
  .loose-run .run-date { display: none; }
  .loose-run .run-words { text-align: start; grid-row: 2; }
}

@media (max-width: 900px) {
  .home-hero, .home-section, .home-final { padding-inline: 20px; }
  .home-hero { grid-template-columns: 1fr; gap: 40px; padding-block: 40px 56px; }
  /* Room below the copy for the scene, which moves under it on a phone. */
  .home-hero.has-webgl { padding-bottom: 460px; }
  .home-webgl { inset-block: auto 0; height: 440px; }
  .home-webgl::before { background: radial-gradient(ellipse at 50% 55%, #C9CED750, transparent 60%); }
  .home-section, .home-final { padding-block: 64px; }
  .home-split { grid-template-columns: 1fr; gap: 32px; }
  .home-split + .home-split { margin-top: 64px; }
  .home-split-flip > .vis { order: 0; }
  .home-cards, .home-proof, .home-limits ul, .home-faq-grid { grid-template-columns: 1fr; }
  .home-platforms-lede { margin-top: -20px; }
  .wire-count { inset-inline-end: -6px; }
}

/* ---------- Report: subdomains and what was left out ---------- */
.section-note { margin: -4px 0 12px; max-width: 46rem; font-size: 14px; line-height: 1.5; color: var(--muted); }
.left-out { margin-top: 20px; }
.left-out h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.left-out ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.left-out li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 4px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--border);
}

/* ---------- Report: repetition estimate ---------- */
.rep-bar { display: flex; height: 12px; overflow: hidden; background: var(--folder-bar); border-radius: 999px; }
.rep-bar span { display: block; height: 100%; }
.rep-new { background: var(--text); }
.rep-repeated { background: var(--faint); }
.rep-near { background: #C9D0D8; }
.rep-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 20px 0 16px; }
.rep-figures > div { display: flex; flex-direction: column; gap: 4px; }
.rep-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.rep-pct { margin-top: 2px; font-size: 24px; font-weight: 600; letter-spacing: -0.5px; line-height: 1; font-variant-numeric: tabular-nums; }
.rep-words { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
#rep-top-block { margin-top: 32px; }

/* The most repeated text: the sentence, how often, how long, what it adds. */
.rep-table { table-layout: fixed; }
.rep-table thead th {
  position: static;
  padding: 0 4px 8px;
  background: none;
  border-bottom: 1px solid var(--border-strong);
}
.rep-table th:nth-child(2) { width: 72px; }
.rep-table th:nth-child(3) { width: 104px; }
.rep-table th:nth-child(4) { width: 136px; }
.rep-table td { padding: 12px 4px; font-size: 14px; vertical-align: top; border-bottom: 1px solid var(--border); }
.rep-table td.rep-snippet { padding-inline-end: 24px; line-height: 1.45; }
.rep-table td.muted { font-size: 14px; }
.rep-table td.strong { font-weight: 600; }
.col-num, th.col-num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Report: summary band ---------- */
.report-hero { margin-top: 20px; background: var(--surface-subtle); border-top: 1px solid var(--border); }
.report-hero-inner { padding: 26px 32px 24px; }
.hero-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 32px; }
.hero-label { display: flex; align-items: center; gap: 10px; }
.stat-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hero-number { margin-top: 10px; font-size: 56px; font-weight: 600; letter-spacing: -1.8px; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-sub { margin: 10px 0 0; min-height: 1.4em; font-size: 14px; color: var(--muted); }
.hero-stats { display: flex; align-items: stretch; }
.hero-stat { display: flex; flex-direction: column; gap: 5px; padding: 0 24px; border-inline-start: 1px solid var(--border); }
.hero-stat:last-child { padding-inline-end: 0; }
.hero-stat-value { font-size: 26px; font-weight: 600; letter-spacing: -0.6px; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-stat-value.zero { color: var(--faint); }
.hero-stat-sub { font-size: 12px; color: var(--muted); }

/* While the crawl runs: status, a line on what to expect, and Cancel. */
.live-strip { border-bottom: 1px solid var(--border); }
.live-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 12px 32px;
  font-size: 13px;
  color: var(--muted);
}
.live-strip .why-slow { order: 2; margin: 0; }
.live-strip #cancel-btn { order: 3; height: 34px; margin-inline-start: auto; padding: 0 14px; }
/* Opened, the explanation takes a line of its own under the strip. */
.live-strip .why-slow[open] { order: 4; flex-basis: 100%; }
.section-aside { font-size: 13px; color: var(--muted); }

.coverage { margin-top: 24px; }
.coverage-bar { display: flex; height: 16px; overflow: hidden; background: var(--folder-bar); border-radius: 999px; }
.coverage-bar span { display: block; height: 100%; }
.cov-unchecked { background: repeating-linear-gradient(135deg, #DFE3E8 0 5px, #F3F5F7 5px 10px); }
.coverage-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.coverage-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.coverage-legend strong { font-weight: 600; color: var(--text); }
.coverage-legend i, .rep-label i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.coverage-legend i.cov-unchecked {
  background: repeating-linear-gradient(135deg, #B7C0CA 0 2px, #F3F5F7 2px 4px);
  border: 1px solid #B7C0CA;
}
.coverage-rerun { margin-inline-start: auto; }

/* A button that reads as a link: actions inside a sentence or a card. */
.link-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  height: auto;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-button:hover { color: var(--brand-hover); background: none; }

/* ---------- Report: section links ----------
   Every section stays on the page; these jump to one, and the bar sticks to
   the top of the window once the summary band has scrolled away. */
.report-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.report-nav-inner { display: flex; align-items: center; gap: 24px; padding: 0 32px; }
.report-nav-links { display: flex; gap: 28px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.report-nav-links::-webkit-scrollbar { display: none; }
.report-nav-links a {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 7px;
  height: 48px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.report-nav-links a:hover { color: var(--text); }
.report-nav-links a[aria-current="location"] { color: var(--text); border-bottom-color: var(--text); }
.nav-count, .count-chip {
  padding: 1px 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--neutral-bg);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
/* The run's total, once the band that shows it has scrolled out of sight. */
.report-nav-total {
  flex-shrink: 0;
  margin-inline-start: auto;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transition: opacity 160ms var(--ease);
}
.report-nav.is-stuck .report-nav-total { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  html:has(.report-nav) { scroll-behavior: smooth; }
}

/* ---------- Report: sections ---------- */
.report-section, .report-hero { scroll-margin-top: 64px; }
.report-section { margin-bottom: 56px; }
.report-section h2 { margin: 0 0 14px; font-size: 20px; font-weight: 600; letter-spacing: -0.3px; }
.report-section h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.report-section .folder-table thead th { position: static; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 14px; }
.section-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; }
.section-lead { margin: -6px 0 18px; font-size: 14px; color: var(--muted); }
#summary > .promo { margin: 0 0 56px; }
#pages-csv-btn { gap: 7px; }
.coverage-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--warn-text);
  background: var(--warn-bg);
  border-radius: 999px;
}

.left-out-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 18px; }
.left-out-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.left-out-count { font-size: 26px; font-weight: 600; letter-spacing: -0.6px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.left-out-card p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.left-out-card .link-button { margin-top: 6px; font-size: 13px; }
#page-issues-details { margin-top: 16px; }

@media (max-width: 720px) {
  .report-hero-inner { padding: 22px 20px; }
  .live-strip-inner { padding: 10px 20px; }
  .hero-number { font-size: 40px; letter-spacing: -1px; }
  .hero-stats { flex-wrap: wrap; gap: 16px 24px; width: 100%; }
  .hero-stat { padding: 0; border: none; }
  .report-nav-inner { padding: 0 20px; }
  .report-nav-total { display: none; }
  .rep-figures { gap: 12px; }
  .rep-pct { font-size: 20px; }
  .rep-table th:nth-child(3), .rep-table td:nth-child(3) { display: none; }
  .coverage-rerun { margin-inline-start: 0; }
}
/* The printed report's own lines; print.css shows them. */
.print-only { display: none; }

/* ---------- "Why does it take this long?" ---------- */
.why-slow { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.why-slow > summary { width: fit-content; cursor: pointer; text-decoration: underline; text-decoration-color: var(--border-control); text-underline-offset: 3px; }
.why-slow > summary:hover { color: var(--text); }
.why-slow p { max-width: 46rem; margin: 6px 0 0; line-height: 1.55; }
.estimate-wait-note { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }

/* ---------- Long-form public pages: the MCP guide and the articles ---------- */
.doc-page { max-width: 1040px; margin: 0 auto; padding: 48px 32px 80px; display: flex; flex-direction: column; gap: 64px; }
.doc-page h1 { font-size: 44px; line-height: 1.08; letter-spacing: -0.02em; margin: 10px 0 0; text-wrap: balance; }
.doc-page h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 16px; text-wrap: balance; }
.doc-page h3 { font-size: 17px; margin: 0 0 6px; }
.doc-page p, .doc-page li { font-size: 16px; line-height: 1.6; }
.doc-lede { font-size: 19px !important; color: var(--muted); max-width: 640px; margin: 16px 0 0; }
.doc-fine { font-size: 13px !important; color: var(--muted); margin: 14px 0 0; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.doc-actions .button { display: inline-flex; align-items: center; gap: 8px; }
.doc-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.doc-section > p { max-width: 680px; color: var(--muted); }
.doc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.doc-cards .home-card p { margin: 0; color: var(--muted); font-size: 15px; }
.doc-steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.doc-steps li { counter-increment: step; border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.doc-steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--text); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.doc-steps p { margin: 0 0 8px; color: var(--muted); font-size: 15px !important; }
.doc-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.doc-tabs button[role=tab] {
  height: auto; padding: 10px 14px; margin-bottom: -1px; background: none; color: var(--muted);
  border: 0; border-bottom: 2px solid transparent; border-radius: 0; font-weight: 600;
}
.doc-tabs button[role=tab]:hover { background: none; color: var(--text); }
.doc-tabs button[role=tab][aria-selected=true] { color: var(--text); border-bottom-color: var(--text); }
.doc-tabs button[role=tab]:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
.doc-panel { max-width: 760px; }
.doc-panel + .doc-panel { margin-top: 28px; }
.doc-panel h3 { font-size: 20px; margin-bottom: 10px; }
.doc-list { padding-inline-start: 22px; margin: 0 0 12px; }
.doc-code { position: relative; margin: 12px 0 16px; }
.doc-code pre {
  margin: 0; padding: 16px 18px; padding-inline-end: 100px; overflow-x: auto; background: #181B1F; color: #E8ECF0;
  border-radius: 10px; font-family: var(--font-code); font-size: 13.5px; line-height: 1.6; white-space: pre;
}
.doc-code code { font-family: inherit; }
button.doc-copy { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; height: 30px; padding: 0 12px; font-size: 12px; background: #2A2F36; color: #fff; border: 1px solid #3A4048; }
button.doc-copy:hover { background: #343A42; color: #fff; }
.doc-prompts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.doc-prompts li { padding: 14px 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-subtle); }
.doc-prompts li::before { content: "“"; color: var(--faint); margin-inline-end: 2px; }
.doc-prompts li::after { content: "”"; color: var(--faint); }
.doc-tools code, .doc-page p code { font-family: var(--font-code); font-size: 13.5px; }
.doc-tools td { vertical-align: top; font-size: 15px; line-height: 1.5; }
.doc-tools td:first-child { white-space: nowrap; }
.doc-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.doc-faq p { margin: 0; color: var(--muted); font-size: 15px !important; }
.doc-faq .doc-code { margin-top: 10px; }
.doc-cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 48px 24px; border-radius: 16px; background: var(--surface-subtle); }
.doc-cta h2 { margin: 0; }
.doc-cta .button { display: inline-flex; align-items: center; gap: 8px; }
.doc-cta p { margin: 0; }

/* The assistant, mid-answer: a mock of a chat using the tool. */
.chat-mock { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-subtle); box-shadow: 0 18px 40px -24px rgba(37, 42, 49, .35); }
.chat-bubble { padding: 12px 16px; border-radius: 14px; font-size: 15px; line-height: 1.5; }
.chat-bubble p { margin: 0 0 6px; font-size: 15px !important; }
.chat-bubble p:last-child { margin-bottom: 0; }
.chat-user { align-self: flex-end; background: var(--text); color: #fff; border-end-end-radius: 4px; max-width: 85%; }
.chat-assistant { background: #fff; border: 1px solid var(--border); border-end-start-radius: 4px; }
.chat-tool { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-code); font-size: 12px; color: var(--muted); padding: 6px 10px; border: 1px dashed var(--border-control); border-radius: 999px; background: #fff; }
.chat-tool-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }
.chat-number { font-size: 22px !important; font-weight: 700; letter-spacing: -0.01em; }
.chat-link { color: var(--accent); font-weight: 600; }

/* Connections: make one, copy it once, revoke old ones. */
.connect-page { max-width: 820px; gap: 36px; }
.connect-page h1 { font-size: 34px; }
.back-link { font-size: 14px; color: var(--muted); }
.connect-form label { display: block; font-weight: 600; margin-bottom: 8px; }
.connect-form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.connect-form-row input { flex: 1 1 280px; height: 42px; padding: 0 12px; border: 1px solid var(--border-control); border-radius: 6px; font: inherit; }
.connect-new { padding: 24px; border: 1px solid var(--success-border, #B7E1C4); border-radius: 12px; background: var(--success-bg, #E7F5EC); }
.connect-new h2 { margin-bottom: 4px; }
.connect-new h3 { font-size: 14px; margin: 18px 0 0; }
.connect-warning { font-weight: 600; color: var(--success-text, #176B45); margin: 0; }
.connect-keys { list-style: none; padding: 0; margin: 0; }
.connect-keys li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.connect-key-name { font-weight: 600; }
.connect-key-meta { color: var(--muted); font-size: 13px; flex: 1 1 auto; }

/* The public pages' footer. */
.landing-footer { border-top: 1px solid var(--border); }
.landing-footer .page-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: 28px; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-credit { flex-basis: 100%; margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.footer-credit a { color: inherit; }

@media (max-width: 900px) {
  .doc-hero, .doc-cards, .doc-steps, .doc-faq, .doc-prompts { grid-template-columns: minmax(0, 1fr); }
  .doc-page { padding: 32px 16px 64px; gap: 48px; }
  .doc-page h1 { font-size: 34px; }
}
.home-mcp-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.home-mcp .chat-mock { max-width: 460px; justify-self: center; width: 100%; }
.home-copy .home-mcp-apps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; font-size: 14px; }
.home-mcp-app { padding: 3px 10px; font-size: 13px; font-weight: 600; color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: 999px; }
.home-mcp-steps { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: mcp-step; }
.home-mcp-steps li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; counter-increment: mcp-step; }
.home-mcp-steps li::before {
  content: counter(mcp-step);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 28px; height: 28px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: var(--card); border: 1px solid var(--border-control); border-radius: 999px;
}
.home-mcp .home-mcp-links { margin-top: 28px; }

/* ---------- Home: why not just ask an assistant ---------- */
/* Two cards, row against row: subgrid keeps each card's rows level with the
   other's, so "Subdomains" sits beside "Subdomains" whatever the wording. */
.home-vs-head { max-width: 46rem; margin: 0 auto 48px; text-align: center; }
.home-vs-head p { margin: 16px auto 0; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.vis-vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(7, auto); column-gap: 32px; max-width: 1000px; margin: 0 auto; }
.vs-card { grid-row: 1 / span 7; display: grid; grid-template-rows: subgrid; row-gap: 0; padding: 24px 26px 20px; border-radius: 14px; }
.vs-alone { background: var(--surface-subtle); border: 1px solid var(--border); }
.vs-ours { background: var(--card); border: 1px solid var(--border-strong); box-shadow: 0 24px 48px -28px rgba(37, 42, 49, 0.45); }
.vs-who { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; }
.vs-who strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.vs-who small { display: block; font-size: 13px; color: var(--muted); }
.vs-mark { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; color: var(--muted); background: var(--card); border: 1px solid var(--border); border-radius: 8px; }
.vs-ours .vs-mark { color: #fff; background: var(--text); border-color: var(--text); }
.vs-metric { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.vs-number { font-size: clamp(2.1rem, 1.5rem + 1.6vw, 2.9rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.vs-alone .vs-number { color: var(--muted); }
.vs-flag { padding: 4px 10px; font-size: 13px; font-weight: 600; line-height: 1.4; border-radius: 8px; }
.vs-flag.is-warn { color: var(--warn-text); background: var(--warn-bg); }
.vs-flag.is-ok { color: var(--success-text); background: var(--success-bg); }
.vs-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; padding: 14px 0; font-size: 15px; line-height: 1.5; color: var(--muted); border-bottom: 1px solid var(--border); }
.vs-row b { display: block; font-weight: 600; color: var(--text); }
.vs-state { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 999px; }
.vs-state.is-check { color: var(--success-text); background: var(--success-bg); }
.vs-state.is-x { color: var(--danger-text); background: var(--danger-bg); }
.vs-state.is-minus { color: var(--warn-text); background: var(--warn-bg); }
.vs-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-top: 16px; font-size: 14px; color: var(--muted); }
.vs-foot strong { font-size: 16px; color: var(--text); font-variant-numeric: tabular-nums; }
.vs-versus {
  position: absolute; inset-inline: 0; top: 32px; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-inline: auto;
  font-size: 13px; font-weight: 700; color: #fff; background: var(--text); border-radius: 999px;
  box-shadow: 0 0 0 6px var(--bg);
}
.home-vs-reasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; margin-top: 72px; }
.home-vs-reasons .home-h3 { font-size: 18px; }
.home-vs-reasons p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.home-vs-more { margin: 48px 0 0; text-align: center; }
.home-vs-more a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); }
.js-motion .vis-vs .vs-card { transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js-motion .vis-vs .vs-ours { transition-delay: 160ms; }
.js-motion .vis-vs:not(.is-visible) .vs-card { opacity: 0; transform: translateY(24px); }
.js-motion .vis-vs .vs-versus { transition: opacity 300ms var(--ease) 450ms, transform 500ms var(--ease) 450ms; }
.js-motion .vis-vs:not(.is-visible) .vs-versus { opacity: 0; transform: scale(0.6); }
.js-motion .vis-vs .vs-row, .js-motion .vis-vs .vs-flag { transition: opacity 420ms var(--ease) calc(700ms + var(--i, 0) * 110ms), transform 420ms var(--ease) calc(700ms + var(--i, 0) * 110ms); }
.js-motion .vis-vs:not(.is-visible) .vs-row, .js-motion .vis-vs:not(.is-visible) .vs-flag { opacity: 0; transform: translateY(6px); }
.js-motion .vis-chat > * { transition: opacity 420ms var(--ease) calc(var(--i, 0) * 450ms), transform 420ms var(--ease) calc(var(--i, 0) * 450ms); }
.js-motion .vis-chat:not(.is-visible) > * { opacity: 0; transform: translateY(10px); }
@media (max-width: 900px) {
  .vis-vs { column-gap: 20px; }
  .vs-card { padding: 20px 18px 18px; }
  .home-vs-reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 56px; }
}
@media (max-width: 720px) {
  .vis-vs { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 14px; }
  .vs-card { grid-row: auto; grid-template-rows: none; }
  .vs-versus { position: static; box-shadow: none; }
}
@media (max-width: 600px) {
  .home-vs-reasons { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Articles ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 40px 24px 80px; display: flex; flex-direction: column; gap: 28px; }
.article-head h1 { font-size: 42px; line-height: 1.1; letter-spacing: -0.02em; margin: 14px 0 0; text-wrap: balance; }
.article-dek { font-size: 20px; line-height: 1.5; color: var(--muted); margin: 16px 0 0; }
.article-meta { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.article h2 { font-size: 27px; line-height: 1.25; letter-spacing: -0.01em; margin: 24px 0 8px; text-wrap: balance; }
.article h3 { font-size: 19px; margin: 18px 0 4px; }
.article p, .article li { font-size: 17.5px; line-height: 1.7; }
.article p { margin: 0 0 14px; }
.article ul, .article ol { padding-inline-start: 22px; margin: 0 0 14px; }
.article li { margin-bottom: 6px; }
.article a { color: var(--accent); }
.article a.button { color: #fff; }
.article a.button.secondary { color: var(--text); }
.article-cta a.button { color: var(--text); background: #fff; border-color: #fff; }
.article-cta a.button.secondary { color: #fff; background: transparent; border-color: #5A626C; }
.article code { font-family: var(--font-code); font-size: 0.88em; background: var(--surface-subtle); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }
.article blockquote { margin: 0 0 14px; padding: 4px 0; padding-inline-start: 18px; border-inline-start: 3px solid var(--border-control); color: var(--muted); font-style: italic; }
.article-figure { margin: 8px 0 12px; }
.article-figure img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-subtle); }
.article-figure figcaption { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 8px; }
.article-figure-wide { margin-inline: calc(50% - min(48vw, 560px)); }
.article-cover img { border: 0; }
.article-verdict { padding: 22px 26px; border-radius: 12px; background: var(--surface-subtle); border: 1px solid var(--border); }
.article-verdict h2 { margin-top: 0; font-size: 20px; }
.article-verdict ul { margin: 0; }
.article-table-wrap { overflow-x: auto; }
.article-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.article-table th, .article-table td { font-size: 15px; line-height: 1.45; padding: 10px 12px; vertical-align: top; border-bottom: 1px solid var(--border); }
.article-table thead th { position: static; font-size: 12px; }
.article-table tbody th { font-weight: 600; color: var(--muted); text-align: start; width: 26%; }
.article-table td:last-child { background: #F3FAF5; }
.article-callout { padding: 16px 20px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-text); font-size: 16px; line-height: 1.6; }
.article-bars { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 18px; font-variant-numeric: tabular-nums; }
.article-bar { display: grid; grid-template-columns: minmax(150px, 34%) 1fr minmax(96px, auto); align-items: center; gap: 12px; font-size: 15px; }
.article-bar-label { color: var(--muted); }
.article-bar-track { height: 16px; background: var(--surface-subtle); border-radius: 999px; overflow: hidden; }
.article-bar-fill { display: block; height: 100%; background: var(--faint); border-radius: 999px; }
.article-bar-fill.ours { background: var(--text); }
.article-bar-value { font-weight: 600; text-align: end; }
.article-bar-note { font-size: 14px; color: var(--muted); margin: 0; }
/* The three ways to count, side by side: wider than the text column, and one
   card per feature on a phone, each answer labelled with its column. */
.article-compare-wrap { margin-inline: calc(50% - min(48vw, 560px)); margin-block: 6px 14px; overflow-x: auto; }
.article-compare { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.article-compare th, .article-compare td { position: static; z-index: auto; text-align: start; text-transform: none; letter-spacing: normal; font-size: 15px; font-weight: 400; line-height: 1.45; color: var(--text); background: transparent; padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--border); }
.article-compare thead td { width: 19%; border-bottom: 2px solid var(--border-strong); }
.article-compare thead th { border-bottom: 2px solid var(--border-strong); padding-top: 16px; }
.article-compare .ours { background: #F3FAF5; }
.compare-col-name { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }
.compare-col-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.article-compare tbody th[scope="row"] { font-weight: 600; }
.article-compare .compare-group th { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: var(--bg); padding: 26px 14px 8px; border-bottom: 1px solid var(--border-control); }
.article-compare tbody:first-of-type .compare-group th { padding-top: 16px; }
.compare-state { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 6px; padding: 2px 9px 2px 6px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.compare-state.is-yes { background: var(--success-bg); color: var(--success-text); }
.compare-state.is-partly { background: var(--warn-bg); color: var(--warn-text); }
.compare-state.is-no { background: var(--danger-bg); color: var(--danger-text); }
.compare-text { display: block; }
.compare-text.is-figure { font-weight: 600; }
@media (max-width: 900px) {
  .article-compare-wrap { margin-inline: 0; overflow: visible; }
  .article-compare, .article-compare tbody, .article-compare tr, .article-compare th, .article-compare td { display: block; width: auto; min-width: 0; }
  .article-compare thead { display: none; }
  .article-compare tbody tr:not(.compare-group) { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
  .article-compare .compare-group th { padding-inline: 2px; border-bottom: 0; }
  .article-compare tbody th[scope="row"] { background: var(--surface-subtle); font-size: 16px; }
  .article-compare td:last-child { border-bottom: 0; }
  .article-compare td { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding-block: 10px; }
  .article-compare td::before { content: attr(data-col); grid-column: 1; font-size: 12px; font-weight: 700; color: var(--muted); }
  .article-compare .compare-state { grid-column: 2; grid-row: 1; margin-bottom: 0; }
  .article-compare .compare-text { grid-column: 1 / -1; margin-top: 4px; }
}
.article-cta { margin-top: 24px; padding: 32px; border-radius: 16px; background: #181B1F; color: #fff; }
.article-cta h2 { margin-top: 0; color: #fff; }
.article-cta p { color: #C7CED6; }
.article-cta .button.secondary { background: transparent; color: #fff; border-color: #5A626C; }
.article-index .article-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.article-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; align-items: center; padding: 16px; border: 1px solid var(--border); border-radius: 14px; color: inherit; text-decoration: none; }
.article-card:hover { border-color: var(--border-control); }
.article-card img { width: 100%; height: auto; border-radius: 10px; }
.article-card-body { display: flex; flex-direction: column; gap: 8px; }
.article-card-body strong { font-size: 21px; line-height: 1.3; }
.article-card-body span { color: var(--muted); line-height: 1.5; }
.article-card-date { font-size: 13px; }
@media (max-width: 720px) {
  .article-head h1 { font-size: 32px; }
  .article p, .article li { font-size: 16.5px; }
  .article-figure-wide { margin-inline: 0; }
  .article-card { grid-template-columns: minmax(0, 1fr); }
  .article-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .article-bar-track { grid-column: 1 / -1; grid-row: 2; }
}
