/* Components: topbar, header/nav, buttons, cards, chips, forms, tables, chat, footer */

/* ---------------------------------------------------------------- topbar */
.qv-topbar {
  background: var(--qv-surface);
  border-bottom: 1px solid var(--qv-border);
  font-size: 13px;
}
.qv-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; flex-wrap: wrap; }
.qv-topbar__note { color: var(--qv-muted); }
.qv-topbar__actions { display: flex; align-items: center; gap: 6px; }

.qv-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--qv-border); background: transparent; color: var(--qv-muted);
  border-radius: var(--qv-pill); padding: 3px 10px; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; text-decoration: none; line-height: 1.6;
}
.qv-chip:hover { border-color: var(--qv-lilac); color: var(--qv-text); }
.qv-chip.is-on { background: var(--qv-primary); border-color: var(--qv-primary); color: var(--qv-on-primary); }
.qv-chip--suggest { text-align: left; white-space: normal; padding: 6px 12px; }
.qv-theme-toggle { min-width: 34px; justify-content: center; }

/* ---------------------------------------------------------------- header */
.qv-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--qv-bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--qv-border);
}
.qv-header__inner { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.qv-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--qv-text); margin-right: auto; }
.qv-brand__mark { color: var(--qv-lilac); display: flex; }
.qv-brand__text { font-size: 16px; letter-spacing: .01em; white-space: nowrap; }
.qv-brand__text strong { font-weight: 700; }
.qv-brand__text em { font-style: normal; color: var(--qv-lilac); font-weight: 500; }
.qv-brand__temp {
  font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
  border: 1px dashed var(--qv-border); color: var(--qv-muted);
  padding: 2px 6px; border-radius: 4px; display: none;
}
@media (min-width: 900px) { .qv-brand__temp { display: inline-block; } }

.qv-nav { display: none; align-items: center; gap: 4px; }
@media (min-width: 1000px) { .qv-nav { display: flex; } }
.qv-nav__link {
  color: var(--qv-muted); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 10px; border-radius: 8px; white-space: nowrap;
}
.qv-nav__link:hover { color: var(--qv-text); background: var(--qv-surface-2); }
.qv-nav__link.is-active { color: var(--qv-text); background: var(--qv-surface-2); box-shadow: inset 0 -2px 0 var(--qv-lilac); }
.qv-nav__more { position: relative; }
.qv-nav__summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.qv-nav__summary::-webkit-details-marker { display: none; }
.qv-nav__panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
  background: var(--qv-surface); border: 1px solid var(--qv-border);
  border-radius: var(--qv-radius); box-shadow: var(--qv-shadow); padding: 8px; z-index: 80;
  display: grid; gap: 2px;
}
.qv-nav__panel-link { color: var(--qv-muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.qv-nav__panel-link:hover, .qv-nav__panel-link.is-active { background: var(--qv-surface-2); color: var(--qv-text); }

.qv-header__actions { display: flex; align-items: center; gap: 8px; }
.qv-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 40px; height: 40px; padding: 0 9px; border-radius: 10px;
  background: transparent; border: 1px solid var(--qv-border); cursor: pointer;
}
.qv-burger span { display: block; height: 2px; background: var(--qv-text); border-radius: 2px; }
@media (min-width: 1000px) { .qv-burger { display: none; } }

.qv-mobile { border-bottom: 1px solid var(--qv-border); background: var(--qv-surface); }
.qv-mobile__inner { display: grid; gap: 2px; padding-block: 10px 16px; }
.qv-mobile__link { color: var(--qv-text); text-decoration: none; padding: 11px 8px; border-radius: 8px; font-size: 15px; }
.qv-mobile__link:hover, .qv-mobile__link.is-active { background: var(--qv-surface-2); }
.qv-mobile__auth { display: grid; gap: 8px; margin-top: 10px; }

/* --------------------------------------------------------------- buttons */
.qv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.qv-btn--sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.qv-btn--block { width: 100%; }
.qv-btn--primary { background: var(--qv-primary); color: var(--qv-on-primary); }
.qv-btn--primary:hover { background: var(--qv-primary-hover); }
.qv-btn--ghost { background: transparent; border-color: var(--qv-border); color: var(--qv-text); }
.qv-btn--ghost:hover { border-color: var(--qv-lilac); background: var(--qv-surface-2); }
.qv-btn--quiet { background: transparent; color: var(--qv-link); padding-inline: 4px; min-height: 36px; }
.qv-btn[disabled], .qv-btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.qv-btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ----------------------------------------------------------------- cards */
.qv-card {
  background: var(--qv-surface); border: 1px solid var(--qv-border);
  border-radius: var(--qv-radius); padding: clamp(16px, 2.4vw, 24px);
}
.qv-card--flat { background: transparent; }
.qv-card--accent { border-color: color-mix(in srgb, var(--qv-lilac) 40%, var(--qv-border)); }
.qv-card__label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--qv-muted); margin-bottom: 8px; font-weight: 600; }
.qv-card h3, .qv-card h2 { margin-bottom: .4em; }
/* A page has one h1 and then sections; a card heading is an h2 in the outline even when
   several cards sit side by side. Size is a visual decision, so it stays compact here. */
.qv-card h2, .qv-empty h2 { font-size: clamp(18px, 2vw, 20px); }
.qv-card p:last-child { margin-bottom: 0; }

.qv-stat { display: grid; gap: 4px; }
.qv-stat__value { font-size: clamp(22px, 3vw, 28px); font-weight: 600; font-variant-numeric: tabular-nums; }
.qv-stat__meta { font-size: 12px; color: var(--qv-muted); }

/* hero */
.qv-hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); position: relative; }
.qv-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--qv-lilac); margin-bottom: 18px;
  border: 1px solid color-mix(in srgb, var(--qv-lilac) 35%, transparent); border-radius: var(--qv-pill);
  padding: 5px 12px;
}
.qv-hero h1 { max-width: 20ch; }
.qv-hero__lede { font-size: clamp(16px, 2vw, 19px); color: var(--qv-muted); max-width: 58ch; margin-bottom: 1.6rem; }
.qv-hero__panel { border: 1px solid var(--qv-border); border-radius: var(--qv-radius); background: var(--qv-surface); padding: 18px; }

/* badges */
.qv-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600;
  padding: 3px 9px; border-radius: var(--qv-pill); border: 1px solid var(--qv-border);
  color: var(--qv-muted); text-transform: uppercase; letter-spacing: .05em;
}
.qv-badge--live { color: var(--qv-badge-ink); background: var(--qv-success); border-color: transparent; }
.qv-badge--demo { color: var(--qv-badge-ink-warn); background: var(--qv-warn); border-color: transparent; }
.qv-badge--sim { color: var(--qv-badge-ink-warn); background: var(--qv-warn); border-color: transparent; }
/* A tinted fill cannot carry the solid-fill ink: the ink is the warn colour itself
   on a 15% wash of it, which reads 8.6:1 dark and 5.0:1 light. */
.qv-badge--stale { color: var(--qv-warn); background: color-mix(in srgb, var(--qv-warn) 15%, transparent); border-color: color-mix(in srgb, var(--qv-warn) 55%, transparent); }
.qv-badge--source { color: var(--qv-info); border-color: color-mix(in srgb, var(--qv-info) 45%, transparent); }
.qv-badge--restricted { color: var(--qv-danger); border-color: color-mix(in srgb, var(--qv-danger) 45%, transparent); }

/* notices / empty states */
.qv-note {
  border-left: 3px solid var(--qv-lilac); background: var(--qv-surface);
  padding: 14px 16px; border-radius: 0 var(--qv-radius-sm) var(--qv-radius-sm) 0; margin-bottom: 1.2rem;
}
.qv-note--warn { border-left-color: var(--qv-warn); }
.qv-note--info { border-left-color: var(--qv-info); }
.qv-note p:last-child { margin-bottom: 0; }
.qv-empty {
  border: 1px dashed var(--qv-border); border-radius: var(--qv-radius);
  padding: clamp(20px, 3vw, 32px); text-align: left; background: var(--qv-surface);
}
.qv-empty h3, .qv-empty h2 { margin-top: 0; }
.qv-empty__badge { margin-bottom: 12px; }

.qv-disclaimer {
  font-size: 12.5px; color: var(--qv-muted); border-top: 1px solid var(--qv-border);
  padding-top: 12px; margin-top: 2rem; max-width: 90ch;
}

/* ----------------------------------------------------------------- forms */
.qv-form { display: grid; gap: 16px; max-width: 560px; }
.qv-field { display: grid; gap: 6px; }
.qv-field > label { font-size: 13.5px; font-weight: 600; }
.qv-field__hint { font-size: 12.5px; color: var(--qv-muted); }
.qv-field__error { font-size: 12.5px; color: var(--qv-danger); display: flex; gap: 6px; align-items: center; }
.qv-input, .qv-select, .qv-textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 15px;
  color: var(--qv-text); background: var(--qv-bg); border: 1px solid var(--qv-border);
  border-radius: var(--qv-radius-sm);
}
[data-theme="light"] .qv-input, [data-theme="light"] .qv-select, [data-theme="light"] .qv-textarea { background: var(--qv-surface); }
.qv-textarea { min-height: 130px; resize: vertical; }
.qv-input:focus, .qv-select:focus, .qv-textarea:focus { border-color: var(--qv-lilac); }
.qv-input[aria-invalid="true"], .qv-textarea[aria-invalid="true"], .qv-select[aria-invalid="true"] { border-color: var(--qv-danger); }
.qv-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.qv-check input { margin-top: 3px; inline-size: 18px; block-size: 18px; accent-color: var(--qv-primary); }
.qv-hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.qv-form__foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- tables */
.qv-table-wrap { overflow-x: auto; border: 1px solid var(--qv-border); border-radius: var(--qv-radius); }
.qv-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.qv-table caption { text-align: left; font-size: 12.5px; color: var(--qv-muted); padding: 10px 14px; }
.qv-table th, .qv-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--qv-border); vertical-align: top; }
.qv-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--qv-muted); font-weight: 600; }
.qv-table tbody tr:last-child td { border-bottom: 0; }
.qv-table td.qv-num, .qv-table th.qv-num { text-align: right; font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------------- flash */
.qv-flash-wrap { margin-top: 14px; display: grid; gap: 8px; }
.qv-flash {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
  border-radius: var(--qv-radius-sm); border: 1px solid var(--qv-border); background: var(--qv-surface);
  font-size: 14px;
}
.qv-flash--success { border-color: color-mix(in srgb, var(--qv-success) 45%, transparent); }
.qv-flash--success strong { color: var(--qv-success); }
.qv-flash--error { border-color: color-mix(in srgb, var(--qv-danger) 45%, transparent); }
.qv-flash--error strong { color: var(--qv-danger); }

/* ----------------------------------------------------------------- footer */
.qv-footer { border-top: 1px solid var(--qv-border); background: var(--qv-surface); margin-top: auto; }
.qv-footer__grid {
  display: grid; gap: 28px; padding-block: clamp(2rem, 4vw, 3rem) 1.5rem;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
@media (max-width: 860px) { .qv-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .qv-footer__grid { grid-template-columns: 1fr; } }
.qv-footer__logo { font-size: 18px; margin-bottom: 10px; }
.qv-footer__h { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--qv-muted); margin-bottom: 12px; }
.qv-footer__col { display: grid; gap: 7px; align-content: start; }
.qv-footer__col a { color: var(--qv-muted); text-decoration: none; font-size: 14px; }
.qv-footer__col a:hover { color: var(--qv-text); }
.qv-footer__disclaimer { border-top: 1px solid var(--qv-border); padding-block: 16px 22px; font-size: 12px; color: var(--qv-muted); }
.qv-footer__disclaimer p { margin: 0 0 6px; }

/* ------------------------------------------------------------------ chat */
.qv-chat { position: fixed; right: var(--qv-chat-offset); bottom: calc(var(--qv-chat-offset) + var(--qv-safe-bottom)); z-index: 90; }
.qv-chat__fab {
  position: relative; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--qv-primary); color: var(--qv-on-primary); display: grid; place-items: center;
  box-shadow: 0 8px 24px rgb(109 40 217 / .45);
}
.qv-chat__fab:hover { background: var(--qv-primary-hover); }
.qv-chat__ring {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--qv-lilac) 60%, transparent);
  animation: qv-pulse 2.8s ease-out infinite;
}
@keyframes qv-pulse {
  0% { transform: scale(.92); opacity: .85; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .qv-chat__ring { animation: none; opacity: .5; } }

.qv-chat__panel {
  position: absolute; right: 0; bottom: 68px; width: min(380px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column;
  background: var(--qv-surface); border: 1px solid var(--qv-border); border-radius: var(--qv-radius);
  box-shadow: var(--qv-shadow); overflow: hidden;
}
.qv-chat__panel[hidden] { display: none; }
.qv-chat__head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--qv-border); }
.qv-chat__title { font-size: 15px; margin: 0; }
.qv-chat__sub { font-size: 11.5px; color: var(--qv-muted); margin: 2px 0 0; }
.qv-chat__close { background: transparent; border: 0; color: var(--qv-muted); font-size: 16px; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.qv-chat__close:hover { color: var(--qv-text); background: var(--qv-surface-2); }
.qv-chat__log { padding: 14px 16px; overflow-y: auto; display: grid; gap: 12px; flex: 1; }
.qv-msg { font-size: 14px; }
.qv-msg p { margin: 0 0 6px; }
.qv-msg--bot { background: var(--qv-surface-2); border: 1px solid var(--qv-border); border-radius: 12px 12px 12px 4px; padding: 10px 12px; }
.qv-msg--user { background: color-mix(in srgb, var(--qv-primary) 22%, transparent); border-radius: 12px 12px 4px 12px; padding: 10px 12px; margin-left: 24px; }
.qv-msg__meta { font-size: 11px; color: var(--qv-muted); }
.qv-msg__link { display: inline-block; font-size: 13px; margin-top: 4px; }
.qv-chat__suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.qv-chat__form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--qv-border); }
.qv-chat__form .qv-input { min-height: 40px; }
.qv-chat__legal { font-size: 10.5px; color: var(--qv-muted); padding: 0 16px 12px; margin: 0; }
@media (max-width: 480px) {
  .qv-chat { --qv-chat-offset: 14px; }
  .qv-chat__panel { position: fixed; inset: auto 8px calc(84px + var(--qv-safe-bottom)) 8px; width: auto; }
}

/* ------------------------------------------------------------- utilities */
.qv-tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.qv-kv { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 8px 16px; font-size: 14px; }
.qv-kv dt { color: var(--qv-muted); }
.qv-kv dd { margin: 0; }
.qv-list-check { list-style: none; padding: 0; display: grid; gap: 8px; }
.qv-list-check li { display: flex; gap: 10px; font-size: 14.5px; }
.qv-list-check li::before { content: "✓"; color: var(--qv-success); font-weight: 700; }
.qv-progress { height: 8px; border-radius: var(--qv-pill); background: var(--qv-surface-2); overflow: hidden; }
.qv-progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--qv-primary), var(--qv-lilac)); }
#adminBadge { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Phase 2 ---- */
/* Patch Center and user administration reuse the existing vocabulary; these are
   the few structural pieces those pages need. */
.qv-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.qv-timeline li { display: grid; gap: .15rem; padding-left: .9rem; border-left: 2px solid var(--qv-line); }
.qv-list-plain { list-style: none; padding-left: 0; }
.qv-timeline li strong { font-size: .92rem; }
.qv-mt-4 { margin-top: var(--qv-space-4, 1.5rem); }
.qv-btn-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.qv-btn-row .qv-input { width: auto; min-width: 12rem; padding: .4rem .6rem; font-size: .88rem; }
.qv-table select.qv-input { min-width: 11rem; }
.qv-field__label { display: block; font-size: .85rem; font-weight: 600; margin: 0 0 .35rem; }
.qv-field__hint { font-size: .82rem; color: var(--qv-muted); margin: .35rem 0 1rem; }

/* ---------------------------------------------------------------- Phase 3 ---- */
/* Market surfaces. Figures are tabular and right-aligned so a column of
   probabilities can be read down, not across. */
.qv-sourcebar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1.1rem; }
.qv-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.qv-rank li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
              padding-bottom: .5rem; border-bottom: 1px solid var(--qv-line); }
.qv-rank li:last-child { border-bottom: 0; padding-bottom: 0; }
.qv-rank a { color: var(--qv-text); text-decoration: none; }
.qv-rank a:hover { color: var(--qv-cyan); text-decoration: underline; }
.qv-rank__figures { display: flex; gap: .6rem; align-items: baseline; white-space: nowrap;
                    font-variant-numeric: tabular-nums; }
.qv-up { color: var(--qv-up); }
.qv-down { color: var(--qv-down); }
.qv-num { font-variant-numeric: tabular-nums; }
.qv-table td.qv-num, .qv-table th.qv-num { text-align: right; }
.qv-filterbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; margin: 1.25rem 0; }
.qv-filterbar .qv-field { margin: 0; min-width: 12rem; }
.qv-pager { display: flex; gap: .4rem; align-items: center; margin-top: 1.25rem; flex-wrap: wrap; }
.qv-pager a, .qv-pager span { padding: .35rem .7rem; border-radius: 8px; border: 1px solid var(--qv-line);
                              text-decoration: none; color: var(--qv-text); font-size: .88rem; }
.qv-pager .is-current { background: var(--qv-primary); border-color: var(--qv-primary); color: var(--qv-on-primary); }
.qv-chart { width: 100%; height: auto; display: block; }
.qv-chart__line { fill: none; stroke: var(--qv-cyan); stroke-width: 2; }
.qv-chart__area { fill: rgba(103,232,249,.10); stroke: none; }
.qv-chart__grid { stroke: var(--qv-line); stroke-width: 1; }
.qv-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.qv-cat { display: block; padding: 1.1rem; border-radius: 12px; border: 1px solid var(--qv-line);
          background: var(--qv-surface); text-decoration: none; color: var(--qv-text); }
.qv-cat:hover { border-color: var(--qv-cyan); }
.qv-cat strong { display: block; font-size: 1.05rem; margin-bottom: .25rem; }
.qv-cat span { font-size: .82rem; color: var(--qv-muted); }

/* Watchlist star: a form control that must look like an affordance, not a button. */
.qv-watch-form { display: inline; }
.qv-star { background: none; border: 0; padding: 0 .35rem 0 0; cursor: pointer;
           font-size: 1rem; line-height: 1; color: var(--qv-muted); vertical-align: baseline; }
.qv-star:hover, .qv-star:focus-visible { color: var(--qv-cyan); }
.qv-star.is-on { color: var(--qv-star); }

/* Phase 4: inline forms and small inputs for research tools. */
.qv-inline-form { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.qv-input--sm { padding: .35rem .5rem; font-size: .85rem; min-width: 8rem; }
.qv-max-70 { max-width: 70ch; }
.qv-list-check { list-style: none; padding-left: 0; display: grid; gap: .4rem; }
.qv-list-check li { position: relative; padding-left: 1.4rem; font-size: .92rem; }
.qv-list-check li::before { content: "✓"; position: absolute; left: 0; color: var(--qv-cyan); }

/* Phase 6: billing, checkout and the admin surface. Small additions only — the
   palette and the type scale are untouched, because a payment page is the last
   place to introduce a new visual idea. */
.qv-narrow { max-width: 46rem; }
.qv-note--ok { border-color: var(--qv-success); }
.qv-badge--ok { color: var(--qv-badge-ink); background: var(--qv-success); border-color: transparent; }
.qv-badge--warn { color: var(--qv-badge-ink-warn); background: var(--qv-warn); border-color: transparent; }
.qv-badge--bad { color: var(--qv-on-primary); background: var(--qv-danger-fill); border-color: transparent; }
.qv-kv { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: .45rem 1rem; margin: 0; }
.qv-kv dt { color: var(--qv-muted); font-size: .84rem; }
.qv-kv dd { margin: 0; }
@media (max-width: 520px) { .qv-kv { grid-template-columns: 1fr; gap: .15rem; } .qv-kv dd { margin-bottom: .6rem; } }

/* Tabular money: column arithmetic must be scannable down the page. */
.qv-num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.qv-table--compact td, .qv-table--compact th { padding: .4rem .55rem; font-size: .86rem; }
.qv-filters { display: flex; gap: .4rem; flex-wrap: wrap; margin: 1rem 0 0; }
.qv-filters a { font-size: .82rem; padding: .3rem .6rem; border: 1px solid var(--qv-line);
                border-radius: 999px; text-decoration: none; color: var(--qv-text); }
.qv-filters a[aria-current="page"] { border-color: var(--qv-cyan); color: var(--qv-cyan); }
.qv-admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.qv-stat--sm .qv-stat__value { font-size: 1.35rem; }
.qv-stage { display: inline-block; min-width: 6.5rem; }
.qv-timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.qv-timeline li { border-left: 2px solid var(--qv-line); padding-left: .75rem; }
.qv-timeline time { display: block; font-size: .76rem; color: var(--qv-muted); }
.qv-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
                      overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
