form > label {
  display: block;
  margin-bottom: 8px;
  font-size: .875rem;
  font-weight: 700;
}
.input-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #3b4757;
  border-radius: 11px;
  background: var(--carbon);
}
.input-row:focus-within {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(201, 255, 61, .12);
}
.input-row > span { padding: 0 .6rem; color: var(--signal); font: 700 1.2rem var(--mono); }
.input-row input {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 8px;
  border: 0;
  outline: 0;
  color: var(--paper);
  background: none;
  font-family: var(--mono);
}
.input-row button {
  min-height: 48px;
  padding: 8px 16px;
  border: 0;
  border-radius: 11px;
  color: var(--signal-ink);
  background: var(--signal);
  font-weight: 850;
  letter-spacing: -.02em;
  box-shadow: 0 10px 24px rgba(184, 255, 92, .14);
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease;
}
.input-row button:hover:enabled { transform: translateY(-1px); filter: brightness(1.06); }
.input-row button:active:enabled { transform: translateY(0); }
.input-row button:disabled, .samples button:disabled { opacity: .55; cursor: default; }
.form-meta {
  margin-top: 8px;
  color: var(--fog);
  font-size: .875rem;
}
.form-status:empty { display: none; }
.form-error {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--danger);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
}
.form-error .eyebrow { margin: 0 0 8px; color: var(--danger); }
.form-error h2, .result .form-error h2 { margin: 0 0 8px; font-size: 1.125rem; line-height: 1.4; }
.form-error p { margin: 8px 0 0; }
.form-error a { color: var(--signal); }
.lookup-startup-note { margin: 16px 0 0; color: var(--fog); font-size: .875rem; }
.lookup-startup-note a { color: var(--signal); }
[data-lookup-startup][hidden], .form-status[hidden] { display: none; }
.lookup-correction .hero { min-height: auto; align-items: start; }
.samples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--fog);
  font-size: .875rem;
}
.samples button {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper);
  background: transparent;
  cursor: pointer;
}
.samples button:hover:enabled { border-color: var(--signal); }

/* Job families: one accent per family, never a provider color. */
.family-official { --family: var(--signal); }
.family-research { --family: #9a8cff; }
.family-compatibility { --family: #86f7b3; }
.family-deals { --family: #ffb86b; }
.family-market { --family: #63e6d6; }
.family-community { --family: #f5a3ff; }
.family-competitive { --family: #ff9ab0; }
.family-utility { --family: #96a2b4; }
.destination-family { color: var(--family, var(--fog)); font: 800 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }

.result-slot[hidden] { display: none; }
.result {
  margin: 0 1.5rem 5rem;
  padding: 2rem;
  scroll-margin-top: 16px;
  border: 1px solid var(--signal);
  background: var(--ink);
  box-shadow: 0 0 50px rgba(201, 255, 61, .08);
  outline: none;
}
.result-error { border-color: var(--danger); box-shadow: none; }
/* The heading is the page's headline: what the tools below are for. A signal bar on its
   leading edge and a panel that fades out from it set it apart, in the display weight and
   tracking the home page uses; a failure card's is in the danger colour. The fade runs from the
   bar, so it is mirrored where the page is right to left. */
.result-head {
  padding: .75rem 1.25rem;
  border-inline-start: 6px solid var(--signal);
  background: linear-gradient(90deg, rgba(184, 255, 92, .10), transparent 80%);
}
[dir="rtl"] .result-head { background: linear-gradient(270deg, rgba(184, 255, 92, .10), transparent 80%); }
.result-error .result-head { border-inline-start-color: var(--danger); background: linear-gradient(90deg, rgba(255, 110, 122, .10), transparent 80%); }
[dir="rtl"] .result-error .result-head { background: linear-gradient(270deg, rgba(255, 110, 122, .10), transparent 80%); }
.result-error .result-head .eyebrow i { background: var(--danger); box-shadow: 0 0 15px var(--danger); }
.result h1, .result h2 {
  margin: .4rem 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  overflow-wrap: anywhere;
}
.result-head h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.045em; }
.result-count { color: var(--fog); font-size: .875rem; white-space: nowrap; }

/* The next action on a failure card. Quieter than the explanation above it, because it is
   advice rather than the answer to what happened. */
.failure-next { margin: .6rem 0 0; color: var(--fog); }
.failure-next a { color: var(--paper); }
.identity { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; }
.identity span {
  padding: .4rem .55rem;
  border: 1px solid var(--line);
  color: var(--fog);
  font: 600 .875rem var(--mono);
  overflow-wrap: anywhere;
}
.original-badge { margin-inline-start: .35rem; color: var(--fog); font-size: .8rem; font-weight: 700; }
.market-name-search { margin: .5rem 0 1.5rem; padding: 1rem; border: 1px solid var(--line); background: var(--carbon); }
.market-name-search p { margin: 0 0 .75rem; color: var(--paper); }
.market-name-search label { display: block; margin-bottom: .5rem; font-weight: 700; }
.market-name-search form > div { display: flex; flex-wrap: wrap; gap: .5rem; }
.market-name-search input { flex: 1 1 14rem; min-width: 0; min-height: 44px; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 6px; background: var(--ink); color: var(--paper); font: inherit; }
.market-name-search input:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.result-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin: 20px 0 0; }
.match-definitions { display: grid; gap: 16px; margin: 8px 0 16px; }
.match-definitions > div { display: grid; grid-template-columns: minmax(120px, .4fr) minmax(0, 1fr); gap: 8px 16px; }
.match-definitions dt { color: var(--paper); font-weight: 700; }
.match-definitions dd { margin: 0; }
.match-relationship { margin: 0 0 16px; }
.family-filters, .scope-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.family-filters:empty { display: none; }
.family-filters button, .scope-filters button {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper);
  background: transparent;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 600;
}
.family-filters button span, .scope-filters button span { margin-left: .3rem; color: var(--fog); }
.family-filters button[aria-pressed="true"], .scope-filters button[aria-pressed="true"] { border-color: var(--signal); color: var(--signal); }
.family-filters button:hover, .scope-filters button:hover { border-color: var(--signal); }
/* Destinations: one compact, wholly clickable tile per link, grouped exact-first. */
.destinations, #destinations-exact, #destinations-more { display: grid; gap: 1.5rem; }
.destinations { margin-top: 24px; }
#destinations-more:empty { display: none; }
.result .destination-group-heading, .demo-content .destination-group-heading {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin: 0 0 .6rem;
  color: var(--fog);
  font: 800 .75rem var(--mono);
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.destination-group-heading span { color: var(--fog); font-weight: 600; letter-spacing: 0; }
.result .destination-group[data-group="exact"] .destination-group-heading, .demo-content .destination-group-heading { color: var(--signal); }
.destination-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.destination, .destination-official { position: relative; min-width: 0; }
.destination-link {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: start;
  gap: .75rem;
  height: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--paper);
  background: var(--carbon);
  text-decoration: none;
}
.destination-link:hover { border-color: var(--signal); }
.destination-link:hover .destination-arrow { color: var(--signal); }
.destination-link:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.destination-official .destination-link { border-color: rgba(184, 255, 92, .35); }
.provider-logo, .provider-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--signal);
  background: #10141b;
  font: 800 .75rem var(--mono);
}
.provider-logo { width: 32px; height: 32px; font-size: .7rem; }
/* A provider's own icon sits on a light tile, so a dark mark stays visible on the dark page and
   every icon reads at the same weight. */
.provider-logo-image { padding: 3px; border-color: transparent; background: #f4f5f7; object-fit: contain; }
.destination-mark { display: grid; place-items: center; }
.destination-copy { display: grid; gap: .2rem; min-width: 0; }
.destination-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; min-width: 0; line-height: 1.3; }
.destination-title strong { font-size: 1rem; overflow-wrap: anywhere; }
.destination-title code, .destination-about code { color: var(--fog); font: .75rem var(--mono); overflow-wrap: anywhere; }
.destination-about { display: grid; gap: .25rem; color: var(--fog); font-size: .875rem; line-height: 1.45; }
.destination-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.destination-caution { color: var(--signal); font-size: .8rem; }
.destination-arrow { color: var(--fog); font-size: .9rem; line-height: 1.3; }
.destination-report {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--fog);
  font-size: .8rem;
  text-decoration: none;
  opacity: .55;
}
.destination-report:hover, .destination-report:focus-visible { color: var(--signal); opacity: 1; }
.destination-report:focus-visible { outline: 2px solid var(--signal); outline-offset: 0; }
.destination-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  justify-self: start;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--signal);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  overflow-wrap: anywhere;
}
.destination-open:hover { color: #dcff7c; border-color: var(--signal); background: rgba(184, 255, 92, .05); }
.homepages-help {
  margin: 20px 0 8px;
  color: var(--fog);
  font-size: .875rem;
  line-height: 1.5;
}
.show-all {
  width: 100%;
  margin-top: 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--paper);
  background: transparent;
  cursor: pointer;
  min-height: 44px;
  font-size: .875rem;
  font-weight: 700;
}
.show-all:hover { border-color: var(--signal); color: var(--signal); }
.show-all[hidden] { display: none; }
.result > .identity { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.empty-destinations { color: var(--fog); }

/* Front page: the tool groups, each opening the directory filtered to it. */
.family-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; }
/* Group and site names in a long language (a German compound, the expansion pseudo-locale) must
   wrap inside a narrow card rather than widen the page. */
.family-links li, .provider-showcase li { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.family-link {
  display: grid;
  gap: .4rem;
  height: 100%;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--family, var(--line));
  border-radius: 10px;
  color: var(--paper);
  background: var(--carbon);
  text-decoration: none;
}
.family-link:hover { border-color: var(--family, var(--signal)); }
.family-link:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.family-link-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem .75rem; }
.family-link-count { color: var(--fog); font-size: .8rem; }
.family-link-about { color: var(--fog); font-size: .875rem; line-height: 1.45; }

/* Front page: a few well-known sites from the directory, each opening its provider page. */
.provider-showcase { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; }
.provider-showcase a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: .9rem;
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--paper);
  background: var(--carbon);
  text-decoration: none;
}
.provider-showcase a:hover { border-color: var(--signal); }
.provider-showcase a:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.provider-showcase-copy { display: grid; gap: .2rem; min-width: 0; }
.provider-showcase-copy > span { color: var(--fog); font-size: .875rem; }
.provider-showcase-copy small { margin-top: .3rem; color: var(--fog); font-size: .75rem; overflow-wrap: anywhere; }

.route-unavailable { color: var(--fog); font-size: .875rem; }
.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  padding: .8rem 1rem;
  color: #0b0e13;
  background: var(--signal);
  font-weight: 800;
  /* Closed, it is invisible as well as moved off screen, so a full-page capture or a tall
     viewport never shows an empty green box. */
  opacity: 0;
  pointer-events: none;
  transform: translateY(120px);
  transition: .2s;
}
.toast.open { opacity: 1; transform: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- v3 front page ------------------------------------------------------ */

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(52px, 7vw, 88px);
  line-height: .92;
  letter-spacing: -.068em;
  font-weight: 850;
}
.headline-lead { display: block; margin-bottom: .12em; }
.domain-swap {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.45vw, 18px);
  width: fit-content;
  white-space: nowrap;
}
.domain-from, .domain-to {
  display: inline-flex;
  align-items: center;
  padding: .12em .22em .16em;
  border: 1px solid;
  border-radius: .18em;
  font-family: var(--mono);
  font-size: .9em;
  letter-spacing: -.075em;
  line-height: .94;
}
.domain-from {
  border-color: rgba(154, 166, 175, .24);
  color: #c5ced4;
  background: rgba(255, 255, 255, .025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.domain-to {
  border-color: rgba(184, 255, 92, .5);
  color: var(--signal);
  background: linear-gradient(180deg, rgba(184, 255, 92, .105), rgba(184, 255, 92, .045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 36px rgba(184, 255, 92, .075);
}
.swap-arrow {
  display: inline-grid;
  place-items: center;
  width: .58em;
  height: .58em;
  flex: 0 0 auto;
  color: var(--dim);
}
.swap-arrow svg { display: block; width: 100%; height: 100%; overflow: visible; }

.input-row .input-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  color: var(--dim);
}

.demo-card {
  position: relative;
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(23, 30, 35, .96), rgba(13, 18, 22, .98));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.demo-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  top: -100px;
  border-radius: 50%;
  background: rgba(184, 255, 92, .08);
  filter: blur(20px);
  pointer-events: none;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .014);
}
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #3b454d; }
.address-bar {
  min-width: 0;
  flex: 1;
  padding: 9px 12px;
  border: 1px solid #263039;
  border-radius: 9px;
  color: #aeb8bf;
  background: #0d1216;
  font: 12px var(--mono);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.address-bar .domain { color: var(--paper); }
.address-bar .suffix { color: var(--signal); font-weight: 800; }
.demo-content { padding: 24px; }
.demo-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.25rem; }
.demo-head .eyebrow { margin: 0 0 .4rem; }
.demo-title { margin: 0; font-size: 1.75rem; font-weight: 820; line-height: 1.1; letter-spacing: -.035em; overflow-wrap: anywhere; }
.demo-list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
/* The same tile as a result card (.destination-link), drawn rather than linked. */
.demo-destination {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: start;
  gap: .75rem;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--carbon);
}
.demo-destination:first-child { border-color: rgba(184, 255, 92, .35); }
.demo-caption { margin: 1rem 0 0; color: var(--fog); font-size: .8rem; text-align: end; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.section-note { max-width: 440px; margin: 0; color: var(--fog); font-size: 15px; }
.steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(16, 21, 25, .72);
}
.step { padding: 24px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 24px;
  border: 1px solid #39444c;
  border-radius: 10px;
  color: var(--signal);
  font: 900 12px var(--mono);
}
.step h3 { margin: 0; font-size: 19px; letter-spacing: -.03em; }
.step p { margin: 10px 0 0; color: var(--fog); font-size: 14px; line-height: 1.65; }
.step code { color: var(--signal); font: .875rem var(--mono); }
.step .shortcut-example { display: grid; justify-items: start; gap: 4px; margin-top: 16px; }
.shortcut-example > span { padding-inline-start: .5rem; color: var(--fog); }

.filter-reset {
  align-self: end;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fog);
  background: var(--ink);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
}
/* Three separate states: hovering, holding focus, and having something to clear. */
.filter-reset:hover { color: var(--paper); border-color: var(--fog); }
.filter-reset:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.provider-filters[data-filters-active="true"] .filter-reset {
  border-color: var(--signal);
  color: var(--signal);
}

/* --- Account --------------------------------------------------------------------------- */
/* Sign in through Steam, or the signed-in visitor's avatar and name. The slot is empty
   until the Worker answers, so a site without sign-in shows nothing at all. */
/* Two auto margins keep the navigation centred and the account beside the focus key. */
.topbar nav, .account { margin-inline-start: auto; }
.account { display: flex; align-items: center; gap: 8px; min-width: 0; }
.account .key { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
/* Sign in through Steam, drawn as text beside the Steam mark so it stays sharp at any display
   scaling and reads in the visitor's language. A bitmap button blurs on 125% and 150% screens. */
.account .steam-signin { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; flex: none; border: 1px solid var(--line); border-radius: 7px; color: var(--paper); background: #171a21; font-size: .875rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.account .steam-signin:hover { border-color: var(--fog); background: #1f2633; }
.account .steam-signin img { display: block; width: 20px; height: 20px; flex: none; }
.account [hidden] { display: none; }
.account-profile { display: inline-flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; color: var(--paper); font-size: .875rem; text-decoration: none; }
.account-profile img { width: 28px; height: 28px; flex: none; border-radius: 50%; }
.account-profile span { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-profile:hover span { text-decoration: underline; }

/* --- Live details ---------------------------------------------------------------------- */
/* What the Worker read about the page a link names. Quieter than the result heading and
   louder than the identity chips under it. */
.live-card-slot { margin: 1.5rem 0 0; }
/* The page's own figures (src/metrics-render.js), under the live card or alone: one flow of tiles,
   any lead first, the rest as compact rows behind a native disclosure, freshness at the head and
   one source line at the foot.
   Digits are set in the mono face (.num); words, units, dates and names keep the text face, so a
   sentence never wraps as a block of code and CJK keeps its own type. */
.metrics-slot { margin: 1rem 0 0; }
.metrics { container-type: inline-size; padding: 1rem; border: 1px solid var(--line); background: var(--carbon); }
.metrics-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin: 0 0 .75rem; }
.result .metrics-head h2 { margin: 0; font-size: .75rem; line-height: 1.4; }
.metrics-fresh { margin: 0; color: var(--fog); font-size: .75rem; }
.metrics-note { margin: 0 0 .75rem; color: var(--fog); font-size: .875rem; }
.metrics-flow { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.metric { flex: 1 1 13rem; min-width: 0; padding: .5rem .65rem; border: 1px solid var(--line); background: var(--ink); }
.metric dt { color: var(--fog); font-size: .75rem; font-weight: 700; overflow-wrap: break-word; hyphens: auto; }
.metric dd { margin: .2rem 0 0; color: var(--fog); font-size: .9375rem; line-height: 1.45; overflow-wrap: anywhere; }
.metric-value bdi { color: var(--paper); font-weight: 600; }
.metrics .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.metric-qual { display: block; margin-block-start: .15rem; color: var(--fog); font-size: .75rem; }
.metric-pair { display: inline-block; }
/* The page's lead figure is wider, and every figure's key value is sized by its role: large on the
   lead, a step up when shown, body size in the fold. A number keeps the mono face; a time, name or
   state stays in the text face. */
.metric-lead { flex: 2 1 26rem; }
.metric-wide { flex-basis: 100%; }
.metric-key { font-weight: 600; }
.metrics-flow .metric-key-num { font-size: 1.25rem; line-height: 1.2; }
.metrics-flow .metric-lead .metric-key-num { font-size: clamp(1.75rem, 1.25rem + 2cqi, 2.25rem); line-height: 1.1; }
.metrics-flow .metric-lead .metric-key:not(.metric-key-num) { font-size: 1.375rem; line-height: 1.25; }
/* A meter under the value it measures; SVG attributes size it, so it needs no style attribute. */
.metric-meter { display: block; inline-size: 100%; block-size: 4px; margin-block-start: .4rem; }
.metric-lead .metric-meter { block-size: 6px; }
.metric-meter-track { fill: var(--line); }
.metric-meter-fill { fill: var(--fog); }
.metric-lead .metric-meter-fill { fill: var(--paper); }
[dir="rtl"] .metric-meter { transform: scaleX(-1); }
@media (forced-colors: active) {
  .metric-meter-track { fill: Canvas; stroke: CanvasText; vector-effect: non-scaling-stroke; }
  .metric-meter-fill { fill: CanvasText; }
}
/* A list figure: label-value rows, the value wrapping under its label when narrow. */
.metric-rows { display: grid; margin: 0; }
.metric-rows > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; padding-block: .15rem; border-block-end: 1px solid var(--line-soft); }
.metric-rows > div:last-child { border-block-end: 0; }
.metric .metric-rows dt { min-width: 0; font-size: .875rem; font-weight: 400; }
.metric .metric-rows dt bdi { font-weight: 400; }
.metric .metric-rows dd { min-width: 0; margin: 0; }
/* The fold: compact label-value rows rather than tiles. */
.metrics-fold { display: grid; margin: .5rem 0 0; }
.metrics-fold .metric { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .15rem 1rem; padding: .4rem 0; border: 0; border-block-end: 1px solid var(--line-soft); background: none; }
.metrics-fold .metric:last-child { border-block-end: 0; }
.metrics-fold .metric dt { flex: 1 1 12rem; min-width: 0; }
.metrics-fold .metric dd { flex: 1 1 14rem; min-width: 0; margin: 0; }
.metrics-more { margin: .75rem 0 0; }
.metrics-more > summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--signal); font-weight: 600; cursor: pointer; }
.metrics-foot { margin: .75rem 0 0; }
.metrics-foot p { margin: 0; color: var(--fog); font-size: .75rem; }
.metrics-foot p + p { margin-block-start: .25rem; }
.live-card-loading { margin: 0; color: var(--fog); font-size: .875rem; }
/* A custom-URL profile: asking Steam for the account behind it, or saying it could not. */
.result > .live-card-loading { margin: 1.5rem 0 1rem; }
.profile-note { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 1.5rem 0 0; }
.profile-note .live-card-note { margin: 0; }
.live-card { padding: 1rem; border: 1px solid var(--line); background: var(--carbon); }
.live-card-eyebrow { margin: 0 0 .75rem; color: var(--fog); font: 700 .75rem var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.live-card-main { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 1rem; }
.live-card-main > .live-card-body:only-child { grid-column: 1 / -1; }
.live-card-body { min-width: 0; }
.result .live-card h2 { margin: 0 0 .35rem; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.02em; }
.live-card-meta { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0 0 .5rem; color: var(--fog); font-size: .875rem; }
.live-card-meta span + span::before { content: "·"; margin-inline-end: .5rem; color: var(--dim); }
.live-card-description { max-width: 70ch; margin: 0 0 .75rem; color: #b5becc; overflow-wrap: anywhere; }
.live-stats { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 0; }
.live-stats > div { min-width: 7.5rem; padding: .5rem .65rem; border: 1px solid var(--line); background: var(--ink); }
.live-stats dt { color: var(--fog); font-size: .75rem; font-weight: 700; }
.live-stats dd { margin: .15rem 0 0; color: var(--paper); font: 600 1rem var(--mono); overflow-wrap: anywhere; }
.live-stats dd small { color: var(--fog); font: 400 .75rem var(--sans); }
.live-card-note { margin: .75rem 0 0; color: var(--fog); font-size: .875rem; }
.live-flag { display: inline-block; padding: 0 .4rem; border: 1px solid var(--danger); color: var(--danger); font: 600 .75rem var(--sans); }
.live-discount { padding: 0 .3rem; color: var(--signal-ink); background: var(--signal); font-size: .8rem; }
.live-card-image { display: block; flex: none; border: 1px solid var(--line); background: var(--ink); object-fit: cover; }
.live-avatar { width: 96px; height: 96px; }
.live-header { width: 230px; height: auto; aspect-ratio: 460 / 215; }
.live-item { width: 96px; height: 96px; object-fit: contain; }
.live-preview { width: 120px; height: 120px; }
.live-provider { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.live-provider-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 .5rem; }
.live-provider-head .live-provider-avatar { width: 32px; height: 32px; border-radius: 50%; }
.live-provider .destination-open { margin-top: .75rem; }
.live-card-news { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line-soft); overflow-wrap: anywhere; }
.live-card-news span { display: block; color: var(--fog); font: 700 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.live-card-news time { color: var(--fog); font-size: .875rem; }
.live-card-news time::before { content: "· "; }
.live-result { display: inline-grid; place-items: center; min-width: 1.5rem; margin-inline-end: .25rem; padding: 0 .25rem; border: 1px solid currentColor; font: 700 .75rem var(--mono); }
.live-result.win { color: var(--success); }
.live-result.loss { color: var(--danger); }
/* A linked service's mark and name, one link to the player's page there (the attribution
   CSRep's API terms require, used for every service alike). */
.live-provider-brand { display: inline-flex; align-items: center; gap: .45rem; color: var(--paper); text-decoration: none; }
.live-provider-brand:hover strong { text-decoration: underline; }
.live-provider-logo { width: 20px; height: 20px; flex: none; border-radius: 4px; }
