/* qc-design.css — design tokens + components. Loaded after theme.css.
   Comments must never contain the two-char sequence star-slash. */

:root,
html[data-theme="light"] {
  --qc-surface-ground: #FBFAF9;
  --qc-surface-raise: #FFFFFF;
  --qc-surface-sunk: #F4F1EE;
  --qc-fg: #1A1613;
  --qc-fg-body: #413A34;
  --qc-fg-muted: #6E6660;
  --qc-hairline: rgba(26, 22, 19, 0.10);
  --qc-hairline-strong: rgba(26, 22, 19, 0.18);
  --qc-brand: #D97757;
  --qc-brand-on: #1D1D1F;
  --qc-brand-text: #A8461F;
  --qc-brand-tint: color-mix(in srgb, var(--qc-brand) 7%, var(--qc-surface-ground));
  --qc-brand-hover: #D0714F;
  --qc-focus: var(--qc-brand-text);
  --qc-hover: rgba(26, 22, 19, 0.04);
  --qc-active: rgba(26, 22, 19, 0.07);
  --qc-bg: var(--qc-surface-ground);
  --qc-bg-subtle: var(--qc-surface-sunk);
  --qc-fg-secondary: var(--qc-fg-muted);
  --qc-fg-tertiary: var(--qc-fg-muted);
  --qc-brand-text-on-tint: #A8461F;
  --qc-ok: #047857;
  --qc-ok-on: #ffffff;
  --qc-warn: #b45309;
  --qc-warn-on: #ffffff;
  --qc-err: #b91c1c;
  --qc-err-on: #ffffff;
  --qc-info: #1d4ed8;
  --qc-info-on: #ffffff;
  --qc-surface-0: var(--qc-surface-ground);
  --qc-surface-1: var(--qc-surface-raise);
  --qc-surface-2: var(--qc-surface-sunk);
}

html[data-theme="dark"] {
  --qc-surface-ground: #0F0D0C;
  --qc-surface-raise: #171412;
  --qc-surface-sunk: #0A0908;
  --qc-fg: #F5F1EE;
  --qc-fg-body: #CFC7C1;
  --qc-fg-muted: #948C85;
  --qc-hairline: rgba(255, 255, 255, 0.11);
  --qc-hairline-strong: rgba(255, 255, 255, 0.20);
  --qc-brand: #E39A82;
  --qc-brand-on: #0F0D0C;
  --qc-brand-text: #E39A82;
  --qc-brand-tint: color-mix(in srgb, var(--qc-brand) 10%, var(--qc-surface-ground));
  --qc-brand-hover: #EDAF9B;
  --qc-hover: rgba(255, 255, 255, 0.06);
  --qc-active: rgba(255, 255, 255, 0.10);
  --qc-bg: var(--qc-surface-ground);
  --qc-bg-subtle: var(--qc-surface-sunk);
  --qc-fg-secondary: var(--qc-fg-muted);
  --qc-fg-tertiary: var(--qc-fg-muted);
  --qc-brand-text-on-tint: #E39A82;
  --qc-ok: #6ee7b7;
  --qc-ok-on: #0F0D0C;
  --qc-warn: #fcd34d;
  --qc-warn-on: #0F0D0C;
  --qc-err: #fca5a5;
  --qc-err-on: #0F0D0C;
  --qc-info: #93c5fd;
  --qc-info-on: #0F0D0C;
  --qc-surface-0: var(--qc-surface-ground);
  --qc-surface-1: var(--qc-surface-raise);
  --qc-surface-2: var(--qc-surface-sunk);
}

html[data-theme="dark"]:has([data-qc-canvas="ink"]) {
  --qc-surface-ground: #0A0A0B;
  --qc-bg: #0A0A0B;
  --qc-surface-0: #0A0A0B;
}

html[data-theme="dark"]:has([data-qc-canvas="black"]) {
  --qc-surface-ground: #000000;
  --qc-bg: #000000;
  --qc-surface-0: #000000;
  --qc-brand-on: #000000;
}

:root {
  --qc-text-display: 56px;
  --qc-text-h1: 38px;
  --qc-text-h2: 24px;
  --qc-text-h3: 17px;
  --qc-text-body: 16px;
  --qc-text-sm: 14px;
  --qc-text-xs: 12px;
  --qc-text-label: 12px;
  --qc-text-base: var(--qc-text-body);
  --qc-text-md: var(--qc-text-h3);
  --qc-text-lg: var(--qc-text-h2);
  --qc-text-xl: var(--qc-text-h1);
  --qc-space-1: 4px;
  --qc-space-2: 8px;
  --qc-space-3: 12px;
  --qc-space-4: 16px;
  --qc-space-5: 24px;
  --qc-space-6: 32px;
  --qc-space-7: 48px;
  --qc-space-8: 64px;
  --qc-rhythm-lg: 96px;
  --qc-rhythm-md: 64px;
  --qc-rhythm-sm: 40px;
  --qc-radius-sm: 6px;
  --qc-radius-md: 12px;
  --qc-radius-full: 9999px;
  --qc-border: 1px solid var(--qc-hairline);
  --qc-shadow-overlay: 0 8px 32px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08);
  --qc-col-narrow: 680px;
  --qc-col-default: 1200px;
  --qc-col-wide: 1200px;
  --qc-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --qc-dur-color: 120ms;
  --qc-dur-size: 180ms;
  --qc-mono: "JetBrains Mono", ui-monospace, monospace;
  --qc-sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --qc-term-bg: #0B0A09;
  --qc-term-prompt: #7FD4AE;
  --qc-term-cmd: #F2EFEC;
  --qc-term-out: #8A8580;
  --qc-term-hl: #E39A82;
}

@media (max-width: 639px) {
  :root {
    --qc-rhythm-lg: 58px;
    --qc-rhythm-md: 38px;
    --qc-rhythm-sm: 24px;
  }
}

.qc-mono {
  font-family: var(--qc-mono);
  font-variant-numeric: tabular-nums;
}

.qc-label {
  font-size: var(--qc-text-label);
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--qc-fg-muted);
}

.qc-ico {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: block;
}

.qc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--qc-radius-full);
  font-size: var(--qc-text-body);
  font-weight: 500;
  line-height: 1.2;
  padding: 12px 1.4em;
  min-height: 44px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--qc-fg);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--qc-dur-color) var(--qc-ease),
    border-color var(--qc-dur-color) var(--qc-ease),
    color var(--qc-dur-color) var(--qc-ease);
}
.qc-btn:hover { background: var(--qc-hover); }
.qc-btn:active { background: var(--qc-active); }
.qc-btn:focus-visible {
  outline: 2px solid var(--qc-focus);
  outline-offset: 2px;
}
.qc-btn:disabled,
.qc-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}
.qc-btn--primary {
  background: var(--qc-brand);
  color: var(--qc-brand-on);
}
.qc-btn--primary:hover {
  background: var(--qc-brand-hover);
  color: var(--qc-brand-on);
}

/* Text on the brand-orange fill (Tailwind-written bg-qcode-primary elements): the same pair as
   .qc-btn--primary. White on rgb(217,119,87) is only 3.12:1, below the 4.5:1 body-text minimum at
   14px; --qc-brand-on is 5.39:1. Light theme #1D1D1F, dark theme #0F0D0C (see the theme blocks). */
.qc-on-brand { color: var(--qc-brand-on); }
/* Where the theme paints bg-qcode-primary with the darker --qc-brand-fill (#A35941) instead - inside .qc-ink /
   .qc-paper / .panel-dark (theme.css) and on .qc-keep (main.css) - white is the readable pair (5.17:1) and the dark
   text above would drop to about 3.3:1, so those elements keep white text. Selectors mirror the background rules. */
[data-theme] :where(.qc-ink, .qc-paper, .panel-dark) .bg-qcode-primary.qc-on-brand:not(.qc-keep):not(.qc-keep *),
[data-theme] :where(.qc-ink, .qc-paper, .panel-dark).bg-qcode-primary.qc-on-brand:not(.qc-keep),
.qc-keep.bg-qcode-primary.qc-on-brand,
.qc-keep .bg-qcode-primary.qc-on-brand { color: #ffffff; }
.qc-btn--secondary {
  background: transparent;
  color: var(--qc-fg);
  border-color: var(--qc-hairline);
}
.qc-btn--secondary:hover { border-color: var(--qc-hairline-strong); }
.qc-btn--ghost { border-color: transparent; }
.qc-btn--sm { font-size: var(--qc-text-sm); padding: 8px 1.4em; }
.qc-btn--lg { font-size: var(--qc-text-h3); padding: 12px 1.4em; }

.qc-card {
  background: var(--qc-surface-raise);
  border: var(--qc-border);
  border-radius: var(--qc-radius-md);
  padding: var(--qc-space-4);
  box-shadow: none;
  transition: background-color var(--qc-dur-color) var(--qc-ease),
    border-color var(--qc-dur-color) var(--qc-ease);
}
.qc-card:hover { border-color: var(--qc-hairline-strong); }
.qc-card--featured {
  background: var(--qc-brand-tint);
  border-color: var(--qc-brand);
  padding: 0;
  overflow: hidden;
}
.qc-card--featured:hover { border-color: var(--qc-brand); }
.qc-panel {
  background: var(--qc-surface-sunk);
  border-radius: var(--qc-radius-md);
  padding: var(--qc-space-4);
}
.qc-divider {
  height: 1px;
  background: var(--qc-hairline);
  border: 0;
}
.qc-list { list-style: none; margin: 0; padding: 0; }
.qc-list-item {
  padding: var(--qc-space-3) 0;
  border-bottom: 1px solid var(--qc-hairline);
}
.qc-list-item:last-child { border-bottom: 0; }
.qc-list-item:hover { background: var(--qc-hover); }

.qc-table { width: 100%; border-collapse: collapse; }
.qc-table th {
  font-size: var(--qc-text-sm);
  font-weight: 500;
  color: var(--qc-fg-muted);
  text-align: left;
  padding: var(--qc-space-2) var(--qc-space-3);
  border-bottom: 1px solid var(--qc-hairline);
  background: var(--qc-surface-sunk);
}
.qc-table td {
  font-size: var(--qc-text-body);
  padding: var(--qc-space-2) var(--qc-space-3);
  border-bottom: 1px solid var(--qc-hairline);
  color: var(--qc-fg-body);
}
.qc-table .qc-num,
.qc-table .qc-mono {
  font-family: var(--qc-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.qc-plans-custom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--qc-space-3);
  margin-top: var(--qc-space-5);
}
.qc-plans-custom-note {
  margin: 0;
  font-size: var(--qc-text-sm);
  color: var(--qc-fg-muted);
}

.qc-table .qc-savings {
  color: var(--qc-brand-text);
  font-weight: 600;
  white-space: nowrap;
}

.qc-field { display: flex; flex-direction: column; gap: var(--qc-space-1); }
.qc-input {
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-sm);
  background: var(--qc-surface-sunk);
  color: var(--qc-fg);
  font-size: var(--qc-text-body);
  padding: var(--qc-space-2) var(--qc-space-3);
}
.qc-input:focus-visible {
  outline: 2px solid var(--qc-focus);
  outline-offset: 2px;
}

.qc-tabs { display: flex; gap: var(--qc-space-4); border-bottom: 1px solid var(--qc-hairline); }
.qc-tab {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--qc-fg-muted);
  font-size: var(--qc-text-body);
  font-weight: 500;
  padding: var(--qc-space-2) 0;
  cursor: pointer;
}
.qc-tab[aria-selected="true"],
.qc-tab.is-active {
  color: var(--qc-fg);
  border-bottom-color: var(--qc-brand);
}
.qc-tab:focus-visible {
  outline: 2px solid var(--qc-focus);
  outline-offset: 2px;
}

.qc-badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--qc-text-xs);
  font-weight: 500;
  border-radius: var(--qc-radius-full);
  padding: 2px 8px;
  background: var(--qc-hover);
  color: var(--qc-fg-muted);
}
.qc-badge--ok { color: var(--qc-ok); background: var(--qc-hover); }
.qc-badge--warn { color: var(--qc-warn); background: var(--qc-hover); }
.qc-badge--err { color: var(--qc-err); background: var(--qc-hover); }
.qc-badge--ok,
.qc-badge--warn,
.qc-badge--err,
.qc-badge--brand {
  border-radius: var(--qc-radius-full);
}
.qc-badge--brand {
  background: var(--qc-brand);
  color: var(--qc-brand-on);
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: var(--qc-text-label);
}

.qc-kbd,
.qc-code {
  font-family: var(--qc-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--qc-text-sm);
  background: var(--qc-surface-sunk);
  border-radius: var(--qc-radius-sm);
  padding: 1px 6px;
}

.qc-stat { display: flex; flex-direction: column; gap: 2px; }
.qc-stat-value {
  font-family: var(--qc-mono);
  font-size: var(--qc-text-h1);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.028em;
  font-variant-numeric: tabular-nums;
  color: var(--qc-fg);
}
.qc-stat-label {
  font-size: var(--qc-text-xs);
  color: var(--qc-fg-muted);
}

.qc-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--qc-space-3);
  color: var(--qc-fg-muted);
  font-size: var(--qc-text-body);
}

.qc-skeleton-text,
.qc-skeleton-row,
.qc-skeleton-card,
.qc-skeleton-stat {
  background: var(--qc-hover);
  border-radius: var(--qc-radius-sm);
  position: relative;
  overflow: hidden;
}
.qc-skeleton-text { height: 12px; width: 100%; }
.qc-skeleton-text:last-child { width: 60%; }
.qc-skeleton-row { height: 36px; }
.qc-skeleton-card { height: 120px; border-radius: var(--qc-radius-md); }
.qc-skeleton-stat { height: 56px; width: 120px; }

.qc-wrap {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  min-width: 0;
}
.qc-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}
.qc-col { width: 100%; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; }
.qc-col--default { max-width: 1200px; }
.qc-col--narrow { max-width: var(--qc-col-narrow); }
.qc-col--wide { max-width: 1200px; }

.qc-section { margin-top: 0; }
.qc-section--lg { margin-top: var(--qc-rhythm-lg); }
.qc-section--md { margin-top: var(--qc-rhythm-md); }
.qc-section--sm { margin-top: var(--qc-rhythm-sm); }

.qc-section-title {
  font-size: var(--qc-text-h1);
  font-weight: 700;
  line-height: 1.10;
  letter-spacing: -0.028em;
  color: var(--qc-fg);
  margin: 0 0 var(--qc-space-5);
  text-wrap: balance;
}
.qc-lede {
  font-size: var(--qc-text-body);
  line-height: 1.60;
  color: var(--qc-fg-body);
  max-width: 70ch;
}

html:has(body.qc-page-home) {
  overflow-x: clip;
}
body.qc-page-home {
  background: var(--qc-surface-ground);
  color: var(--qc-fg-body);
  font-family: var(--qc-sans);
  font-size: var(--qc-text-body);
  font-weight: 400;
  line-height: 1.60;
  overflow-x: clip;
  max-width: 100%;
}
body.qc-page-home main {
  padding-bottom: var(--qc-rhythm-lg);
}
body.qc-page-home .text-xs { font-size: var(--qc-text-xs) !important; line-height: 1.45; }
body.qc-page-home .text-sm { font-size: var(--qc-text-sm) !important; line-height: 1.50; }
body.qc-page-home .text-base { font-size: var(--qc-text-body) !important; }
body.qc-page-home .text-lg { font-size: var(--qc-text-h3) !important; }
body.qc-page-home .text-xl { font-size: var(--qc-text-h2) !important; line-height: 1.25; }
body.qc-page-home .text-2xl,
body.qc-page-home .text-3xl { font-size: var(--qc-text-h1) !important; line-height: 1.10; letter-spacing: -0.028em; }
body.qc-page-home .text-4xl,
body.qc-page-home .text-5xl,
body.qc-page-home .text-6xl { font-size: var(--qc-text-display) !important; line-height: 1.05; letter-spacing: -0.032em; }
body.qc-page-home .rounded,
body.qc-page-home .rounded-md,
body.qc-page-home .rounded-lg { border-radius: var(--qc-radius-sm) !important; }
body.qc-page-home .rounded-xl,
body.qc-page-home .rounded-2xl,
body.qc-page-home .rounded-3xl { border-radius: var(--qc-radius-md) !important; }
body.qc-page-home .rounded-full { border-radius: var(--qc-radius-full) !important; }
body.qc-page-home .text-\[10px\],
body.qc-page-home .text-\[11px\] { font-size: var(--qc-text-xs) !important; }
body.qc-page-home .bg-gradient-to-r,
body.qc-page-home .bg-gradient-to-br,
body.qc-page-home .bg-gradient-to-l,
body.qc-page-home .bg-gradient-to-t,
body.qc-page-home .bg-gradient-to-b {
  background-image: none !important;
  background-color: var(--qc-surface-sunk);
}

body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .text-xs { font-size: var(--qc-text-xs) !important; line-height: 1.45; }
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .text-sm { font-size: var(--qc-text-sm) !important; line-height: 1.50; }
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .text-base { font-size: var(--qc-text-body) !important; }
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .text-lg { font-size: var(--qc-text-h3) !important; }
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .text-xl { font-size: var(--qc-text-h2) !important; line-height: 1.25; }
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .text-2xl,
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .text-3xl { font-size: var(--qc-text-h1) !important; line-height: 1.10; letter-spacing: -0.028em; }
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .text-4xl,
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .text-5xl,
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .text-6xl { font-size: var(--qc-text-display) !important; line-height: 1.05; letter-spacing: -0.032em; }
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .rounded,
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .rounded-md,
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .rounded-lg { border-radius: var(--qc-radius-sm) !important; }
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .rounded-xl,
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .rounded-2xl,
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .rounded-3xl { border-radius: var(--qc-radius-md) !important; }
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .rounded-full { border-radius: var(--qc-radius-full) !important; }
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .text-\[10px\],
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .text-\[11px\] { font-size: var(--qc-text-xs) !important; }
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .bg-gradient-to-r,
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .bg-gradient-to-br,
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .bg-gradient-to-l,
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .bg-gradient-to-t,
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .bg-gradient-to-b {
  background-image: none !important;
  background-color: var(--qc-surface-sunk);
}
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .text-qcode-primary,
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) a.text-qcode-primary { color: var(--qc-brand-text); }
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .text-gray-300 { color: var(--qc-fg-muted) !important; }
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .text-yellow-800,
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .text-yellow-900 { color: var(--qc-fg) !important; }
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .text-green-600,
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .text-green-400,
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .text-emerald-400,
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .text-blue-400 { color: var(--qc-ok); }
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .pv-calc-num { font-size: var(--qc-text-h1); }
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .pv-calc-val { font-size: var(--qc-text-body); }
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .pv-card-rate { font-size: var(--qc-text-sm); }
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .pv-card-quota { font-size: var(--qc-text-xs); }
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .pv-card-l2chip { font-size: var(--qc-text-xs); }
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .pv-wf-arrow-note { font-size: var(--qc-text-xs); }
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .pv-wf-num { font-size: var(--qc-text-h2); }
body:is(.qc-page-pricing, .qc-page-enterprise, .qc-page-partner) .pv-wf-final-num { font-size: var(--qc-text-h1); }

.qc-muted { color: var(--qc-fg-muted); }

.qc-hero {
  min-height: 0;
  padding-top: var(--qc-space-8);
  padding-bottom: var(--qc-space-8);
  display: flex;
  align-items: center;
}

.qc-hero--imaged {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0A0A0B;
  padding-top: calc(var(--qc-space-8) + var(--qc-space-6));
  padding-bottom: calc(var(--qc-space-8) + var(--qc-space-7));
  --qc-hero-fg: #F5F1EE;
  --qc-hero-fg-sub: #CFC7C1;
  --qc-hero-brand: #E39A82;
  --qc-hero-line: rgba(255, 255, 255, 0.22);
  --qc-focus: var(--qc-hero-brand);
}
.qc-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.qc-hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(10, 10, 11, 0.78) 0px,
      rgba(10, 10, 11, 0.46) 72px,
      rgba(10, 10, 11, 0) 140px),
    linear-gradient(180deg,
      rgba(10, 10, 11, 0) 74%,
      var(--qc-surface-ground) 100%),
    linear-gradient(90deg,
      rgba(10, 10, 11, 0.94) 0%,
      rgba(10, 10, 11, 0.86) 34%,
      rgba(10, 10, 11, 0.38) 64%,
      rgba(10, 10, 11, 0) 92%);
}
.qc-hero--imaged .qc-hero-center { align-items: flex-start; text-align: left; }
.qc-hero--imaged .qc-hero-title { color: var(--qc-hero-fg); }
.qc-hero--imaged .qc-hero-sub { color: var(--qc-hero-fg-sub); max-width: 600px; }
.qc-hero--imaged .qc-hero-kicker {
  color: var(--qc-hero-fg-sub);
  border-color: var(--qc-hero-line);
  background: rgba(10, 10, 11, 0.45);
}
.qc-hero--imaged .qc-hero-sell { justify-content: flex-start; }
.qc-hero--imaged .qc-hero-sell-item { color: var(--qc-hero-fg); }
.qc-hero--imaged .qc-hero-sell-item svg { color: var(--qc-hero-brand); }
.qc-hero--imaged .qc-btn--primary {
  background: var(--qc-hero-brand);
  color: #0A0A0B;
}
.qc-hero--imaged .qc-btn--primary:hover { background: #EDAF9B; }
.qc-hero--imaged .qc-btn--secondary {
  color: var(--qc-hero-fg);
  border-color: var(--qc-hero-line);
}
.qc-hero--imaged .qc-btn--secondary:hover { background: rgba(255, 255, 255, 0.10); }
.qc-hero--imaged .qc-hero-hook { color: var(--qc-hero-brand); }
.qc-hero--imaged .qc-hero-hook:hover { color: #EDAF9B; }
.qc-hero--imaged .qc-hero-kicker-dot { background: #22A06B; }

.qc-ink :is(.bg-green-500, .bg-emerald-500),
.qc-ink :is(.bg-green-500, .bg-emerald-500) :is(span, b, strong, div) {
  color: #0F0D0C !important;
}

.qc-ink .text-red-400 { color: var(--qc-err); }

.qc-ink .text-indigo-400\/70,
.qc-ink [class*="text-indigo-400/"] { color: var(--qc-info); }

html[data-theme="light"] .qc-ink .text-amber-300 { color: #7C3A08; }

.qc-nav-overlay { background: transparent; }
.qc-nav-overlay.is-scrolled {
  background: var(--qc-nav-scrolled-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--qc-nav-scrolled-line);
}
:root, [data-theme="light"] {
  --qc-nav-scrolled-bg: rgba(255, 255, 255, 0.72);
  --qc-nav-scrolled-line: rgba(26, 22, 19, 0.10);
}
[data-theme="dark"] {
  --qc-nav-scrolled-bg: rgba(15, 13, 12, 0.8);
  --qc-nav-scrolled-line: rgba(255, 255, 255, 0.11);
}
.qc-nav-overlay .qc-nav-link { color: var(--qc-fg-body); }
.qc-nav-overlay .qc-nav-link:hover { color: var(--qc-fg); }
.qc-nav-overlay .qc-nav-brand { color: var(--qc-fg); }
body:has(.qc-hero--imaged) .qc-nav-overlay:not(.is-scrolled) .qc-nav-link { color: rgba(255, 255, 255, 0.86); }
body:has(.qc-hero--imaged) .qc-nav-overlay:not(.is-scrolled) .qc-nav-link:hover { color: #ffffff; }
body:has(.qc-hero--imaged) .qc-nav-overlay:not(.is-scrolled) .qc-nav-brand { color: #ffffff; }
.qc-nav-overlay :is(#auth-status, #mobile-auth-status) a { color: var(--qc-fg-body); }
.qc-nav-overlay :is(#auth-status, #mobile-auth-status) a:hover { color: var(--qc-fg); }
body:has(.qc-hero--imaged) .qc-nav-overlay:not(.is-scrolled) :is(#auth-status, #mobile-auth-status) a:not([href*="sign-up"]) { color: rgba(255, 255, 255, 0.86); }
body:has(.qc-hero--imaged) .qc-nav-overlay:not(.is-scrolled) :is(#auth-status, #mobile-auth-status) a:not([href*="sign-up"]):hover { color: #ffffff; }
.qc-nav-overlay #auth-status a[href*="sign-up"] { background: var(--qc-brand); color: var(--qc-brand-on); }
.qc-nav-overlay #auth-status a[href*="sign-up"]:hover { background: var(--qc-brand-hover); color: var(--qc-brand-on); }
/* Over the imaged hero the header sits on the dark photo: keyboard rings there use the hero terracotta;
   the phone menu panel has its own surface and keeps the page ring colour. */
body:has(.qc-hero--imaged) .qc-nav-overlay:not(.is-scrolled) { --qc-focus: #E39A82; }
body:has(.qc-hero--imaged) .qc-nav-overlay:not(.is-scrolled) .qc-nav-mobile { --qc-focus: var(--qc-brand-text); }
body:has(.qc-hero--imaged) .qc-nav-overlay:not(.is-scrolled) .qc-theme-toggle {
  color: rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}
body:has(.qc-hero--imaged) .qc-nav-overlay:not(.is-scrolled) .skeleton { background: rgba(255, 255, 255, 0.14); }


.qc-hero--inner {
  padding-top: calc(64px + var(--qc-space-7));
  padding-bottom: calc(var(--qc-space-8) + var(--qc-space-4));
}
.qc-hero--inner .qc-hero-title { font-size: var(--qc-text-h1); }

.qc-hero-eyebrow {
  margin: 0 0 var(--qc-space-3);
  font-family: var(--qc-mono);
  font-size: var(--qc-text-xs);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--qc-hero-fg-sub, var(--qc-fg-muted));
}

.qc-seg {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  margin-bottom: var(--qc-space-5);
  border: 1px solid var(--qc-hero-line, rgba(255, 255, 255, 0.22));
  border-radius: var(--qc-radius-full);
  max-width: 100%;
}
.qc-seg-item {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 14px;
  border-radius: var(--qc-radius-full);
  font-size: var(--qc-text-xs);
  font-weight: 500;
  line-height: 1;
  color: var(--qc-hero-fg-sub, var(--qc-fg-body));
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--qc-dur-color) var(--qc-ease),
    color var(--qc-dur-color) var(--qc-ease);
}
a.qc-seg-item:hover {
  background: rgba(255, 255, 255, 0.10);
  color: var(--qc-hero-fg, #ffffff);
}
.qc-seg-item.is-current {
  background: var(--qc-hero-fg, #f5f1ee);
  color: #0a0a0b;
  cursor: default;
}

.qc-hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  min-width: 0;
}
.qc-hero-head {
  margin-bottom: var(--qc-space-6);
  min-width: 0;
  width: 100%;
}
.qc-hero-body {
  display: block;
  width: 100%;
  min-width: 0;
}
.qc-hero-title {
  font-size: var(--qc-text-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.032em;
  color: var(--qc-fg);
  margin: 0 0 var(--qc-space-4);
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}
.qc-hero-sub {
  font-size: var(--qc-text-body);
  line-height: 1.60;
  color: var(--qc-fg-muted);
  margin: 0;
  max-width: none;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}
.qc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--qc-space-3);
  margin-top: var(--qc-space-5);
  margin-bottom: var(--qc-space-5);
  justify-content: center;
}
.qc-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--qc-space-2);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-full);
  padding: 6px 12px;
  margin-bottom: var(--qc-space-4);
  font-family: var(--qc-mono);
  font-size: var(--qc-text-xs);
  font-variant-numeric: tabular-nums;
  color: var(--qc-fg-muted);
  max-width: 100%;
  flex-wrap: wrap;
}
.qc-hero-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--qc-radius-full);
  background: var(--qc-ok);
  flex: 0 0 8px;
}
.qc-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--qc-space-4);
  align-items: end;
  padding-top: var(--qc-space-4);
  border-top: 1px solid var(--qc-hairline);
  min-width: 0;
}
.qc-hero-copy .qc-hero-hook {
  display: inline-block;
  margin-bottom: var(--qc-space-5);
}
.qc-hero-hook,
.qc-text-link {
  font-size: var(--qc-text-xs);
  font-weight: 500;
  color: var(--qc-brand-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.qc-hero-hook { white-space: nowrap; }
.qc-hero-hook:hover,
.qc-text-link:hover {
  color: var(--qc-fg);
  border-bottom-color: currentColor;
}
.qc-hero-hook:focus-visible,
.qc-text-link:focus-visible {
  outline: 2px solid var(--qc-focus);
  outline-offset: 2px;
}
.qc-metric-hint {
  font-size: var(--qc-text-xs);
  color: var(--qc-fg-muted);
  margin: 4px 0 0;
  line-height: 1.45;
}
.qc-metric-unit {
  font-size: var(--qc-text-xs);
  font-weight: 500;
  color: var(--qc-fg-muted);
  margin-left: 4px;
}
.qc-metric-label {
  display: block;
  font-size: var(--qc-text-xs);
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--qc-fg-muted);
  margin-bottom: 4px;
}
.qc-metric-value {
  font-family: var(--qc-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--qc-text-h3);
  font-weight: 500;
  color: var(--qc-fg);
}
.qc-hero-metrics .qc-metric-value {
  font-size: var(--qc-text-h1);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.10;
}
.qc-hero-metrics .qc-metric-label {
  margin-bottom: 0;
  margin-top: 4px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.qc-hero-metrics .qc-metric-value--phrase {
  font-size: var(--qc-text-h3);
  font-weight: 600;
  letter-spacing: -0.010em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.qc-term {
  background: var(--qc-term-bg);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--qc-radius-md);
  overflow: hidden;
  color: var(--qc-term-out);
  min-width: 0;
}
.qc-term-bar {
  display: flex;
  align-items: center;
  gap: var(--qc-space-3);
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}
.qc-term-dots {
  display: flex;
  gap: 6px;
}
.qc-term-dots span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: var(--qc-radius-full);
  background: rgba(255, 255, 255, 0.20);
}
.qc-term-title {
  font-family: var(--qc-mono);
  font-size: var(--qc-text-xs);
  font-variant-numeric: tabular-nums;
  color: var(--qc-term-out);
}
pre.qc-term-body,
.qc-term-body {
  margin: 0;
  padding: var(--qc-space-4);
  font-family: var(--qc-mono);
  font-size: var(--qc-text-xs);
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  white-space: pre-wrap;
  overflow-x: auto;
  background: var(--qc-term-bg);
  color: var(--qc-term-out);
  border-radius: 0;
  border: 0;
}
.qc-term-prompt { color: var(--qc-term-prompt); }
.qc-term-cmd { color: var(--qc-term-cmd); }
.qc-term-out { color: var(--qc-term-out); }
.qc-term-hl { color: var(--qc-term-hl); }
.qc-term-ok { color: var(--qc-term-prompt); }
.qc-term-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--qc-term-cmd);
  vertical-align: -2px;
  animation: qc-blink 1s steps(1) infinite;
}
@keyframes qc-blink {
  50% { opacity: 0; }
}

.qc-plan-grid {
  display: flex;
  gap: 24px;
  align-items: stretch;
}
.qc-plan {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.qc-plan--featured {
  flex: 1.28 1 0;
}
.qc-plan-tint {
  background: color-mix(in srgb, var(--qc-brand) 12%, var(--qc-surface-raise));
  padding: var(--qc-space-3) var(--qc-space-4);
  border-bottom: 1px solid var(--qc-brand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--qc-space-2);
}
.qc-plan-body { padding: var(--qc-space-4); display: flex; flex-direction: column; flex: 1; }
.qc-plan--featured .qc-plan-body { padding: var(--qc-space-5); }
.qc-plan-name {
  font-size: var(--qc-text-h3);
  font-weight: 600;
  letter-spacing: -0.010em;
  color: var(--qc-fg);
  margin: 0 0 var(--qc-space-2);
}
.qc-plan-price {
  font-family: var(--qc-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--qc-text-h2);
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--qc-fg);
  margin: 0;
  line-height: 1.15;
}
.qc-plan--featured .qc-plan-price {
  font-size: var(--qc-text-h1);
  letter-spacing: -0.028em;
}
.qc-plan-note {
  font-family: var(--qc-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--qc-text-xs);
  color: var(--qc-fg-muted);
  margin: var(--qc-space-2) 0 var(--qc-space-4);
}
.qc-plan-feats {
  list-style: none;
  margin: 0 0 var(--qc-space-4);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--qc-space-2);
  flex: 1;
}
.qc-plan-feats li {
  display: flex;
  align-items: flex-start;
  gap: var(--qc-space-2);
  font-size: var(--qc-text-sm);
  color: var(--qc-fg-body);
}
.qc-plan-feats .qc-ico { color: var(--qc-fg-muted); margin-top: 2px; }
.qc-plan--featured .qc-plan-feats .qc-ico { color: var(--qc-brand-text); }

.qc-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
  min-width: 0;
}
.qc-split > * { min-width: 0; }
.qc-cli-list {
  display: flex;
  flex-direction: column;
  gap: var(--qc-space-3);
  min-width: 0;
}
.qc-cli-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--qc-space-2);
  padding: 8px 12px;
  background: var(--qc-surface-raise);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
  min-width: 0;
  max-width: 100%;
}
.qc-cli-row .qc-code {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
}
.qc-cli-name {
  font-family: var(--qc-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--qc-text-sm);
  color: var(--qc-fg);
  overflow-wrap: anywhere;
}
.qc-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.qc-step {
  background: var(--qc-surface-raise);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
  padding: var(--qc-space-5);
}
.qc-step-num {
  font-family: var(--qc-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--qc-text-xs);
  font-weight: 600;
  letter-spacing: 0.10em;
  color: var(--qc-fg-muted);
  margin-bottom: var(--qc-space-3);
}
.qc-step h3 {
  font-size: var(--qc-text-h3);
  font-weight: 600;
  letter-spacing: -0.010em;
  color: var(--qc-fg);
  margin: 0 0 var(--qc-space-2);
}
.qc-step p {
  margin: 0;
  font-size: var(--qc-text-sm);
  color: var(--qc-fg-body);
}
.qc-step-note {
  margin-top: var(--qc-space-3);
  font-size: var(--qc-text-xs);
  color: var(--qc-fg-muted);
}

.qc-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.qc-metric-card {
  background: var(--qc-surface-raise);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
  padding: var(--qc-space-4);
  min-height: 108px;
}
.qc-metric-card .qc-metric-value {
  font-size: var(--qc-text-h1);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.10;
}

.qc-quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.qc-quote {
  background: var(--qc-surface-raise);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
  padding: var(--qc-space-4);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.qc-quote-text {
  font-size: var(--qc-text-sm);
  line-height: 1.50;
  color: var(--qc-fg-body);
  margin: 0 0 var(--qc-space-4);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.qc-quote-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--qc-space-2);
  flex-wrap: wrap;
  min-width: 0;
}
.qc-quote-who {
  font-size: var(--qc-text-xs);
  color: var(--qc-fg);
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
}
.qc-quote-loc {
  color: var(--qc-fg-muted);
  font-weight: 400;
  overflow-wrap: anywhere;
}

.qc-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: var(--qc-space-3) 0;
  min-height: 0;
}
.qc-trust-item {
  display: flex;
  align-items: flex-start;
  gap: var(--qc-space-3);
  min-width: 0;
}
.qc-trust-item p {
  margin: 0;
  font-size: var(--qc-text-sm);
  color: var(--qc-fg-body);
  overflow-wrap: anywhere;
}
.qc-trust-item .qc-ico { color: var(--qc-brand-text); margin-top: 2px; }

.qc-mix { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.qc-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--qc-space-5);
  min-width: 0;
}
.qc-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--qc-space-2);
  min-width: 0;
  padding: var(--qc-space-4);
  text-decoration: none;
  color: inherit;
}
.qc-line .qc-ico { color: var(--qc-brand-text); }
.qc-line:hover { color: var(--qc-fg); }
.qc-line-name {
  font-size: var(--qc-text-h3);
  font-weight: 600;
  color: var(--qc-fg);
}
.qc-line-desc {
  font-size: var(--qc-text-sm);
  color: var(--qc-fg-muted);
  overflow-wrap: anywhere;
}
.qc-line .qc-text-link { margin-top: var(--qc-space-2); }

.qc-howto {
  margin-top: var(--qc-space-5);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.qc-howto-label {
  margin: 0;
  font-size: var(--qc-text-xs);
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--qc-fg-muted);
}
.qc-howto-cmd {
  display: block;
  font-family: var(--qc-mono);
  font-size: var(--qc-text-xs);
  color: var(--qc-fg);
  background: var(--qc-surface-sunk);
  border-radius: var(--qc-radius-sm);
  padding: 8px 12px;
  overflow-x: auto;
  white-space: nowrap;
  max-width: 100%;
  min-width: 0;
}
.qc-mix-row {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) 3.5rem;
  gap: var(--qc-space-3);
  align-items: center;
}
.qc-mix-name {
  font-family: var(--qc-mono);
  font-size: var(--qc-text-xs);
  color: var(--qc-fg);
  overflow-wrap: anywhere;
}
.qc-mix-track {
  height: 8px;
  background: var(--qc-surface-sunk);
  border-radius: var(--qc-radius-full);
  min-width: 0;
  overflow: hidden;
}
.qc-mix-fill {
  height: 100%;
  background: var(--qc-brand);
  border-radius: var(--qc-radius-full);
}
.qc-mix-pct {
  font-family: var(--qc-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--qc-text-xs);
  color: var(--qc-fg);
  text-align: right;
}

.qc-pay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--qc-space-5);
  padding: var(--qc-space-4) var(--qc-space-5);
  background: var(--qc-surface-raise);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
}
.qc-pay-icons {
  display: flex;
  align-items: center;
  gap: var(--qc-space-4);
  color: var(--qc-fg-muted);
}
.qc-pay-icons svg {
  width: 20px;
  height: 20px;
  display: block;
}
.qc-pay-note {
  margin: 0;
  font-size: var(--qc-text-sm);
  color: var(--qc-fg-body);
}

.qc-spark {
  margin-top: var(--qc-space-4);
  display: none;
}
.qc-spark.is-on { display: block; }
.qc-spark-svg {
  display: block;
  width: 100%;
  height: 40px;
}
.qc-spark-line {
  fill: none;
  stroke: var(--qc-brand);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.qc-spark-ends {
  display: flex;
  justify-content: space-between;
  font-family: var(--qc-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--qc-text-xs);
  color: var(--qc-fg);
  margin-top: 4px;
}

.qc-cta-panel {
  background: var(--qc-surface-raise);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
  padding: var(--qc-space-7) var(--qc-space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.qc-cta-panel .qc-lede { max-width: 52ch; }
.qc-cta-panel .qc-hero-actions { justify-content: center; }
.qc-cta-panel .qc-section-title { margin-bottom: var(--qc-space-3); }

.qc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
  background: var(--qc-surface-raise);
}
.qc-table-wrap .qc-table { margin: 0; }
.qc-table-wrap .qc-table th:first-child,
.qc-table-wrap .qc-table td:first-child { padding-left: var(--qc-space-4); }
.qc-table-wrap .qc-table th:last-child,
.qc-table-wrap .qc-table td:last-child { padding-right: var(--qc-space-4); }

.qc-debug-switcher {
  font-size: var(--qc-text-xs);
  color: var(--qc-fg-muted);
  padding: var(--qc-space-4) 32px;
  max-width: 1200px;
  margin: var(--qc-space-6) auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--qc-space-3);
}
.qc-debug-switcher a { color: var(--qc-fg-muted); }
.qc-debug-switcher a[aria-current="true"] { color: var(--qc-fg); font-weight: 500; }

body.qc-page-home .probe-ok { color: var(--qc-ok); }
body.qc-page-home .probe-rate { color: var(--qc-brand-text); }
body.qc-page-home .text-qcode-primary,
body.qc-page-home a.text-qcode-primary { color: var(--qc-brand-text); }
body.qc-page-home .text-gray-300 { color: var(--qc-fg-muted) !important; }
body.qc-page-home .text-yellow-800,
body.qc-page-home .text-yellow-900 { color: var(--qc-fg) !important; }
body.qc-page-home .text-green-600,
body.qc-page-home .text-green-400,
body.qc-page-home .text-emerald-400,
body.qc-page-home .text-blue-400 { color: var(--qc-ok); }
body.qc-page-home nav a[href*="#stability"] { display: none !important; }
.qc-nav-ico {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: block;
}
.qc-nav-chevron {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  display: block;
  transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1);
}
.qc-nav-chevron.is-open {
  transform: rotate(180deg);
}

.qc-hero-sell {
  list-style: none;
  margin: 0;
  padding: var(--qc-space-4) 0 0;
  border-top: 1px solid var(--qc-hairline);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--qc-space-2);
  width: 100%;
}
.qc-hero-sell-item {
  display: flex;
  align-items: center;
  gap: var(--qc-space-2);
  margin: 0;
  font-size: var(--qc-text-xs);
  line-height: 1.45;
  color: var(--qc-fg-muted);
  white-space: nowrap;
}
.qc-hero-sell-item + .qc-hero-sell-item::before {
  content: "·";
  margin-right: var(--qc-space-2);
  opacity: 0.45;
}
.qc-hero-sell-item .qc-ico {
  color: var(--qc-brand-text);
  margin-top: 0;
}
.qc-hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--qc-space-2);
  margin: var(--qc-space-5) 0 0;
  font-size: var(--qc-text-xs);
  color: var(--qc-fg-muted);
}
.qc-hero-trust-sep { color: var(--qc-fg-muted); }
.qc-hero-copy .qc-hero-hook { margin-bottom: 0; }

.qc-cap-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--qc-space-4);
}
.qc-cap-grid .qc-metric-value {
  font-size: var(--qc-text-h3);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.qc-cap-spark {
  margin-top: var(--qc-space-4);
  height: 72px;
  max-height: 120px;
}
.qc-cap-spark-svg {
  display: block;
  width: 100%;
  height: 72px;
}

.qc-why {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--qc-space-5);
}
.qc-why-item h3 {
  margin: 0 0 var(--qc-space-2);
  font-size: var(--qc-text-h3);
  font-weight: 600;
  color: var(--qc-fg);
}
.qc-why-item p {
  margin: 0;
  font-size: var(--qc-text-sm);
  line-height: 1.50;
  color: var(--qc-fg-muted);
}

.qc-docs #docs-resources {
  padding-top: var(--qc-space-2);
  padding-bottom: 0;
  background: transparent !important;
  border: 0 !important;
}
.qc-docs #docs-resources .max-w-7xl {
  max-width: 1200px;
  padding-left: 0;
  padding-right: 0;
}
.qc-docs #docs-resources .text-center.mb-10,
.qc-docs #docs-resources .text-center {
  text-align: left;
  margin-bottom: var(--qc-space-5);
}
.qc-docs #docs-resources .max-w-2xl {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.qc-docs-fold {
  display: block;
}
.qc-docs-sum {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
@media (min-width: 640px) {
  .qc-docs-inner { display: block !important; }
}
.qc-docs #docs-resources .mb-12,
.qc-docs #docs-resources .mb-8 {
  margin-bottom: var(--qc-space-5) !important;
}
.qc-docs #docs-resources .p-5 {
  padding: var(--qc-space-4);
}
.qc-docs #docs-resources .px-6.py-3 {
  padding: 8px 16px;
}
body.qc-page-home .qc-docs #docs-resources h2,
body.qc-page-home .qc-docs #docs-resources h3,
body.qc-page-home .qc-docs #docs-resources h4,
body.qc-page-home .qc-docs #docs-resources .text-gray-900,
body.qc-page-home .qc-docs #docs-resources .text-gray-800 {
  color: var(--qc-fg) !important;
}
body.qc-page-home .qc-docs #docs-resources p,
body.qc-page-home .qc-docs #docs-resources .text-gray-500,
body.qc-page-home .qc-docs #docs-resources .text-gray-600,
body.qc-page-home .qc-docs #docs-resources .text-white\/60,
body.qc-page-home .qc-docs #docs-resources .text-white\/50,
body.qc-page-home .qc-docs #docs-resources .text-white\/30,
body.qc-page-home .qc-docs #docs-resources .text-gray-300 {
  color: var(--qc-fg-muted) !important;
}
body.qc-page-home .qc-docs #docs-resources a.group {
  background: var(--qc-surface-raise) !important;
  border-color: var(--qc-hairline) !important;
  box-shadow: none !important;
}

@media (min-width: 768px) {
  html[lang^="ru"] .qc-nav-desktop > :not([hidden]) ~ :not([hidden]),
  html[lang^="ja"] .qc-nav-desktop > :not([hidden]) ~ :not([hidden]),
  html[lang^="en"] .qc-nav-desktop > :not([hidden]) ~ :not([hidden]),
  html[lang^="de"] .qc-nav-desktop > :not([hidden]) ~ :not([hidden]) {
    margin-left: var(--qc-space-4);
  }
}

/* Header per language (2026-10-19): between 1024 and 1279px the menu items drop their icons
   (the language globe stays), so zh/en/de/ja/ru all fit next to the logo without overflow. */
@media (max-width: 1279px) {
  .qc-nav-desktop .qc-nav-item-ico { display: none; }
}

/* Footer per language (2026-10-19): between 1024 and 1279px the en/ja/ru/de link columns
   (640-820px wide) do not fit beside the brand block. de pushed the page to 1041px at 1024 and
   en/ru ran 20px past the content edge with the brand text squeezed to ~150px. Stack them there;
   side by side from 1280px. zh fits and keeps its layout. */
@media (min-width: 1024px) and (max-width: 1279px) {
  html:not([lang^="zh"]) .qc-foot-row { flex-direction: column; }
  html:not([lang^="zh"]) .qc-foot-row > .qc-foot-links { width: 100%; }
}

/* ja/ru used to switch to the burger below 1152px; without the desktop Home item and with
   icon-less items below 1280px they fit from 1024px like the other languages (2026-10-19). */

/* Language menu once the new languages open (11 entries): two columns keep every language
   visible without scrolling and each column follows its longest label (Bahasa Indonesia),
   so items never wrap or spill out of the box. Seven languages keep the single w-32 column. */
.qc-lang-menu {
  display: grid;
  grid-template-columns: auto auto;
  width: max-content;
  max-width: calc(100vw - var(--qc-space-6));
}

/* Footer language list with 11 entries: wrap by whole items instead of squeezing the labels;
   centred while the bottom bar is stacked, aligned to the outer edge of the meta group from
   1024px. The separator closes its item group, so no line can start with it. */
.qc-foot-langs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  row-gap: var(--qc-space-1);
}
.qc-foot-lang {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
@media (min-width: 1024px) {
  .qc-foot-langs { width: auto; justify-content: flex-end; }
}

@media (max-width: 1023px) {
  .qc-split,
  .qc-cta-panel { grid-template-columns: 1fr; gap: var(--qc-space-6); }
  .qc-hero { min-height: 0; }
}

@media (max-width: 639px) {
  .qc-wrap,
  .qc-col { padding-left: 20px; padding-right: 20px; }
  .qc-hero-title,
  .qc-hero--inner .qc-hero-title { font-size: 34px; letter-spacing: -0.028em; }
  .qc-section-title { font-size: 28px; }
  .qc-plan-grid,
  .qc-steps,
  .qc-metric-grid,
  .qc-quotes,
  .qc-trust,
  .qc-lines,
  .qc-hero-metrics,
  .qc-cap-grid,
  .qc-why { grid-template-columns: 1fr; }
  .qc-grid { grid-template-columns: 1fr; }
  .qc-grid > * { grid-column: 1 / -1 !important; }
  .qc-pay { flex-direction: column; align-items: flex-start; }
  .qc-mix-row { grid-template-columns: minmax(0, 1fr) 3.5rem; }
  .qc-mix-name { grid-column: 1 / -1; }
  .qc-plan-grid { flex-direction: column; }
  .qc-term { overflow-x: auto; }
  .qc-term-body { min-width: 520px; }
  .qc-secondary { display: none; }
  .qc-line { padding: var(--qc-space-3); gap: 4px; }
  .qc-hero--imaged {
    padding-top: var(--qc-space-7);
    padding-bottom: var(--qc-space-7);
  }
  .qc-hero-bg { object-position: 72% center; }
  .qc-hero-veil {
    background:
      linear-gradient(180deg,
        rgba(10, 10, 11, 0.90) 0%,
        rgba(10, 10, 11, 0.84) 78%,
        var(--qc-surface-ground) 100%);
  }
  .qc-hero--imaged .qc-hero-sell { align-items: flex-start; }
  .qc-hero-sell { flex-direction: column; align-items: center; gap: var(--qc-space-2); }
  .qc-hero-sell-item { min-height: 44px; }
  .qc-docs-sum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    width: 100%;
    padding: 12px 0;
    font-size: var(--qc-text-h3);
    font-weight: 600;
    color: var(--qc-fg);
    border-bottom: 1px solid var(--qc-hairline);
  }
  .qc-docs-fold:not(.is-open) .qc-docs-inner { display: none; }
  .qc-docs-fold.is-open .qc-docs-inner { display: block; }
  .qc-docs #docs-resources .text-center.mb-10 { display: none; }
  .qc-term a,
  .qc-term button { min-height: 0; }
  .qc-text-link,
  .qc-hero-hook {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  footer a,
  footer button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  footer { overflow-wrap: anywhere; word-break: break-word; }
  .qc-hero-sell-item { white-space: normal; }
  .qc-hero { padding-top: var(--qc-space-6); padding-bottom: var(--qc-space-6); }
  .qc-hero--imaged,
  .qc-hero--inner {
    padding-top: calc(64px + var(--qc-space-6));
    padding-bottom: calc(var(--qc-space-8) + var(--qc-space-7));
  }
  .qc-seg { overflow-x: auto; scrollbar-width: none; }
  .qc-seg::-webkit-scrollbar { display: none; }
  .qc-hero-sell-item + .qc-hero-sell-item::before { content: none; }
  .qc-section-title { margin-bottom: var(--qc-space-3); }
}

@media (pointer: coarse), (max-width: 1023px) {
  a,
  button {
    min-height: 44px;
    box-sizing: border-box;
  }
  .qc-term a,
  .qc-term button { min-height: 0; }
  .qc-text-link,
  .qc-hero-hook {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  footer a,
  footer button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .qc-hero-sell-item { min-height: 44px; }
  .qc-docs-sum { min-height: 44px; }
  .qc-seg-item {
    height: 44px;
    min-height: 44px;
    box-sizing: border-box;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .qc-seg { overflow-x: auto; scrollbar-width: none; }
  .qc-seg::-webkit-scrollbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.qc-subnav {
  position: sticky;
  top: 65px;
  z-index: 40;
  background: transparent;
  border-bottom: 1px solid var(--qc-hairline);
}
.qc-subnav.is-stuck {
  background: var(--qc-nav-scrolled-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.qc-subnav-inner {
  display: flex;
  align-items: center;
  gap: var(--qc-space-5);
  height: 48px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.qc-subnav-inner::-webkit-scrollbar { display: none; }
.qc-subnav a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-size: var(--qc-text-sm);
  color: var(--qc-fg-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--qc-dur-color) var(--qc-ease);
}
.qc-subnav a:hover { color: var(--qc-fg); }
.qc-subnav a.is-active {
  color: var(--qc-fg);
  border-bottom-color: var(--qc-brand);
}
.qc-subnav .qc-subnav-ext {
  margin-left: auto;
  color: var(--qc-brand-text);
}
@media (max-width: 767px) {
  .qc-subnav { position: static; }
}

.qc-models-tabbar { top: 113px; }
@media (max-width: 767px) {
  .qc-models-tabbar { top: 65px; }
}

@media (max-width: 767px) {
  .qc-subnav.is-scrollable .qc-subnav-inner {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), rgba(0, 0, 0, 0.25));
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), rgba(0, 0, 0, 0.25));
  }
}

.qc-dash-hero-title {
  font-size: var(--qc-text-h1);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.qc-dash-hero-sub {
  font-size: var(--qc-text-body);
  margin-top: var(--qc-space-2);
}
.qc-dash-action { min-height: 44px; white-space: nowrap; }
/* Console hero (2026-10-19): title and subtitle as before the cloud launch, the product switch
   under them. The expiry banner may not widen the hero: it takes the width the other content
   sets and wraps inside it. */
.qc-dash-hero-copy { min-width: 0; }
.qc-dash-hero-copy .qc-cloud-switch-slot { margin-top: var(--qc-space-3); align-items: flex-start; }
.qc-dash-hero-copy .qc-cloud-banner { width: 0; min-width: 100%; }
/* The balance (i) link keeps its 44px tap target on phones; centre the icon in it (it sat 14px high). */
.qc-dash-userbar a[title] { display: inline-flex; align-items: center; justify-content: center; }
.qc-dash-balance { font-size: var(--qc-text-h3); }
@media (max-width: 639px) {
  .qc-dash-hero-title { font-size: 34px; letter-spacing: -0.028em; }
  .qc-dash-userbar { align-self: stretch; width: 100%; }
  .qc-dash-userbar > * { width: 100%; }
}

.qc-usage-num { font-variant-numeric: tabular-nums; }

.qc-anchor-offset { scroll-margin-top: 120px; }

.qc-nav-sticky { position: sticky; top: 0; z-index: 50; }
body.qc-has-sticky-nav { height: auto; min-height: 100%; }

.qc-float-cta {
  position: fixed;
  left: 0;
  right: 320px;
  bottom: 0;
  z-index: 40;
  height: 64px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: var(--qc-space-4);
  padding: 0 var(--qc-space-4) 0 max(var(--qc-space-5), calc((100vw - var(--qc-col-default)) / 2));
  background: var(--qc-surface-raise);
  border-top: var(--qc-border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.10), 0 -2px 8px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 200ms var(--qc-ease), transform 200ms var(--qc-ease), visibility 0s linear 200ms;
}
.qc-float-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 200ms var(--qc-ease), transform 200ms var(--qc-ease), visibility 0s;
}
.qc-float-cta[hidden] { display: none; }
.qc-float-cta__title {
  flex: 0 1 auto;
  min-width: 0;
  font-size: var(--qc-text-sm);
  font-weight: 600;
  line-height: 1.35;
  color: var(--qc-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qc-float-cta__sub {
  flex: 1 3 auto;
  min-width: 0;
  font-size: var(--qc-text-xs);
  line-height: 1.5;
  color: var(--qc-fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qc-float-cta__btn {
  flex: 0 0 auto;
  min-height: 40px;
  justify-content: center;
  font-size: var(--qc-text-sm);
  text-decoration: none;
  background: var(--qc-brand-fill);
  color: #ffffff;
}
.qc-float-cta__btn:hover { background: var(--qc-brand-fill-hover); color: #ffffff; }
.qc-float-cta__close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--qc-fg-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--qc-radius-sm);
}
.qc-float-cta__close:hover { color: var(--qc-fg); background: var(--qc-hover); }
body.qc-has-float-cta { padding-bottom: 64px; }
@media (max-width: 639px) {
  .qc-float-cta {
    right: 80px;
    gap: var(--qc-space-2);
    padding: 0 0 0 var(--qc-space-3);
  }
  .qc-float-cta__title { display: none; }
  .qc-float-cta__sub { display: block; flex: 1 1 auto; font-size: 12px; }
  .qc-float-cta__btn { padding-left: var(--qc-space-3); padding-right: var(--qc-space-3); font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .qc-float-cta { transition: none; }
}

@media (max-width: 639px) {
  .qc-seg.qc-seg--4 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 22rem;
    overflow: visible;
    border-radius: var(--qc-radius-md);
  }
  .qc-seg--4 .qc-seg-item {
    justify-content: center;
    text-align: center;
    white-space: normal;
    height: auto;
    min-height: 44px;
    padding: 6px 10px;
    line-height: 1.25;
    border-radius: calc(var(--qc-radius-md) - 2px);
  }
}

.qc-lines.qc-lines--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 640px) and (max-width: 1023px) {
  .qc-lines.qc-lines--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .qc-lines.qc-lines--4 { grid-template-columns: 1fr; }
}
.qc-line-price {
  font-size: var(--qc-text-sm);
  font-weight: 600;
  color: var(--qc-brand-text);
  overflow-wrap: anywhere;
}

.qc-pricing-split-exits {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--qc-space-1);
  margin-top: var(--qc-space-2);
}
.qc-pricing-split-team {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--qc-space-2);
}
@media (min-width: 640px) {
  .qc-pricing-split-exits { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: var(--qc-space-6); }
}
.qc-pricing-payg-rules {
  list-style: disc;
  padding-left: 1.25rem;
  margin: var(--qc-space-5) auto 0;
  max-width: 70ch;
  display: flex;
  flex-direction: column;
  gap: var(--qc-space-2);
  color: var(--qc-fg-body);
  font-size: var(--qc-text-sm);
  line-height: 1.6;
}
.qc-pricing-payg-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--qc-space-3);
  margin-top: var(--qc-space-5);
}
@media (max-width: 1023px) {
  .qc-pricing-payg-cta { justify-content: flex-start; max-width: calc(100% - 72px); }
  .qc-pricing-payg-cta .qc-btn { max-width: 100%; white-space: normal; text-wrap: balance; }
  .qc-pricing-split-exits { max-width: calc(100% - 48px); }
}
.qc-pricing-split-exits,
.qc-pricing-split-exits .qc-text-link { font-size: var(--qc-text-sm); }
@media (max-width: 639px) { .qc-pricing-split-dot { display: none; } }
.qc-pricing-split-text { text-wrap: balance; }
.qc-pricing-split-name { white-space: nowrap; }
@media (max-width: 639px) {
  .qc-pricing-split-team { flex-direction: column; align-items: flex-start; }
}

/* cloud (2026-10-19) */
.qc-cloud-root {
  min-width: 0;
  max-width: 100%;
}
.qc-cloud-soon { text-align: center; padding-top: var(--qc-space-7); padding-bottom: var(--qc-space-7); }
.qc-cloud-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: var(--qc-space-3) var(--qc-space-5);
  margin-top: var(--qc-space-4);
}
.qc-cloud-anchors a { color: var(--qc-brand-text); }
.qc-cloud-prose {
  color: var(--qc-fg-body);
  font-size: var(--qc-text-body);
  line-height: 1.65;
}
.qc-cloud-prose p { margin: 0 0 var(--qc-space-3); }
.qc-cloud-prose ul { margin: 0 0 var(--qc-space-4); padding-left: 1.25rem; }
.qc-cloud-prose li { margin: var(--qc-space-2) 0; }
.qc-cloud-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.qc-cloud-sr-order {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.qc-cloud-q { border: 0; margin: 0 0 var(--qc-space-5); padding: 0; min-width: 0; }
.qc-cloud-q legend {
  font-size: var(--qc-text-body);
  font-weight: 600;
  color: var(--qc-fg);
  margin-bottom: var(--qc-space-3);
  padding: 0;
}
.qc-cloud-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--qc-space-2);
  min-width: 0;
}
.qc-cloud-pill.is-selected {
  border-color: var(--qc-brand);
  background: var(--qc-brand-tint);
  color: var(--qc-fg);
}
.qc-cloud-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--qc-space-6);
  align-items: start;
  min-width: 0;
}
.qc-cloud-main { min-width: 0; display: flex; flex-direction: column; gap: var(--qc-space-5); }
.qc-cloud-main .qc-step h2 {
  font-size: var(--qc-text-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--qc-fg);
  margin: 0 0 var(--qc-space-4);
}
.qc-cloud-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--qc-space-3);
  min-width: 0;
}
.qc-cloud-choice-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.qc-cloud-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--qc-space-2);
  width: 100%;
  min-width: 0;
  text-align: left;
  font: inherit;
  color: var(--qc-fg);
  cursor: pointer;
}
.qc-cloud-choice.qc-card--featured {
  padding: var(--qc-space-4);
  overflow: visible;
}
.qc-cloud-choice.is-selected {
  border-color: var(--qc-brand);
  box-shadow: inset 0 0 0 1px var(--qc-brand);
}
.qc-cloud-choice.is-highlight {
  border-color: color-mix(in srgb, var(--qc-brand) 55%, var(--qc-hairline));
  background: color-mix(in srgb, var(--qc-brand) 6%, var(--qc-surface-raise));
}
.qc-cloud-choice.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.qc-cloud-flag { font-size: var(--qc-text-h2); line-height: 1; }
.qc-cloud-choice-name {
  font-weight: 600;
  color: var(--qc-fg);
  overflow-wrap: anywhere;
}
.qc-cloud-tags { display: flex; flex-wrap: wrap; gap: var(--qc-space-1); }
.qc-cloud-charge-hint { margin: var(--qc-space-3) 0; }
.qc-cloud-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--qc-fg-body);
  font-size: var(--qc-text-sm);
}
.qc-cloud-facts li { margin: 0; overflow-wrap: anywhere; }
.qc-cloud-secret-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--qc-space-2);
  align-items: center;
  margin: var(--qc-space-2) 0;
  min-width: 0;
}
.qc-cloud-secret-row .qc-input { flex: 1 1 12rem; min-width: 0; width: auto; }
.qc-cloud-rules {
  list-style: none;
  margin: var(--qc-space-2) 0 var(--qc-space-3);
  padding: 0;
  font-size: var(--qc-text-sm);
}
.qc-cloud-rules .is-ok { color: var(--qc-ok); }
.qc-cloud-rules .is-bad { color: var(--qc-warn); }
.qc-cloud-summary {
  position: sticky;
  top: 96px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--qc-space-3);
}
.qc-cloud-summary-config {
  margin: 0;
  color: var(--qc-fg-body);
  overflow-wrap: anywhere;
}
.qc-cloud-check {
  display: flex;
  align-items: flex-start;
  gap: var(--qc-space-2);
  font-size: var(--qc-text-sm);
  color: var(--qc-fg-body);
}
.qc-cloud-check input { margin-top: 0.2em; flex: 0 0 auto; }
.qc-cloud-actions { display: flex; flex-direction: column; gap: var(--qc-space-2); min-width: 0; }
.qc-cloud-action {
  width: 100%;
  height: auto;
  white-space: normal;
  text-wrap: wrap;
  text-align: center;
}
.qc-cloud-note, .qc-cloud-error {
  margin: 0;
  font-size: var(--qc-text-sm);
  overflow-wrap: anywhere;
}
.qc-cloud-note { color: var(--qc-fg-muted); }
.qc-cloud-error { color: var(--qc-err); }
.qc-cloud-dock, .qc-cloud-dock-spacer { display: none; }
.qc-cloud-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--qc-space-4);
  background: rgba(15, 13, 12, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body.qc-cloud-modal-open { overflow: hidden; }
.qc-cloud-modal-card {
  width: min(100%, 32rem);
  max-height: calc(100% - var(--qc-space-6));
  overflow: auto;
  background: var(--qc-surface-raise);
  color: var(--qc-fg);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
  padding: var(--qc-space-5);
  box-shadow: var(--qc-shadow-overlay);
}
.qc-cloud-modal-card h2 {
  margin: 0 0 var(--qc-space-3);
  font-size: var(--qc-text-h3);
  color: var(--qc-fg);
}
.qc-cloud-modal-card p { margin: 0 0 var(--qc-space-4); color: var(--qc-fg-body); }
.qc-cloud-after {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--qc-space-4);
}
.qc-cloud-after h3 {
  margin: 0 0 var(--qc-space-2);
  font-size: var(--qc-text-h3);
  color: var(--qc-fg);
}
.qc-cloud-after p { margin: 0 0 var(--qc-space-2); color: var(--qc-fg-body); font-size: var(--qc-text-sm); }
.qc-cloud-ssh {
  overflow-wrap: anywhere;
  color: var(--qc-fg);
  margin: var(--qc-space-2) 0;
}
.qc-cloud-faq details {
  border-bottom: 1px solid var(--qc-hairline);
  padding: var(--qc-space-3) 0;
}
.qc-cloud-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--qc-fg);
}
.qc-cloud-faq details div {
  margin-top: var(--qc-space-2);
  color: var(--qc-fg-body);
  line-height: 1.6;
}
@media (min-width: 640px) {
  .qc-cloud-modal { align-items: center; }
}
@media (max-width: 1023px) {
  .qc-cloud-layout { grid-template-columns: minmax(0, 1fr); }
  .qc-cloud-summary { position: static; }
  .qc-cloud-summary .qc-cloud-actions { display: none; }
  .qc-cloud-after { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qc-cloud-dock {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    align-items: center;
    gap: var(--qc-space-3);
    box-sizing: border-box;
    max-width: 100%;
    padding: var(--qc-space-3) var(--qc-space-4);
    background: var(--qc-surface-raise);
    border-top: 1px solid var(--qc-hairline);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.10);
  }
  .qc-cloud-dock-price {
    flex: 0 0 auto;
    margin: 0;
    font-weight: 700;
    color: var(--qc-fg);
  }
  .qc-cloud-dock .qc-cloud-actions { flex: 1 1 auto; min-width: 0; }
  .qc-cloud-dock-spacer { display: block; height: 96px; }
}
@media (max-width: 720px) {
  .qc-cloud-table-wrap { overflow-x: visible; }
  .qc-cloud-table thead { display: none; }
  .qc-cloud-table,
  .qc-cloud-table tbody,
  .qc-cloud-table tr,
  .qc-cloud-table td { display: block; width: 100%; }
  .qc-cloud-table tr {
    border-bottom: 1px solid var(--qc-hairline);
    padding: var(--qc-space-3) 0;
  }
  .qc-cloud-table td {
    border: 0;
    padding: var(--qc-space-1) var(--qc-space-4);
  }
  .qc-cloud-table td::before {
    content: attr(data-label);
    display: block;
    font-size: var(--qc-text-xs);
    color: var(--qc-fg-muted);
  }
}
@media (max-width: 639px) {
  .qc-cloud-choice-grid,
  .qc-cloud-choice-grid--4,
  .qc-cloud-after { grid-template-columns: 1fr; }
  .qc-cloud-dock {
    right: 72px;
    flex-direction: column;
    align-items: stretch;
  }
}

.qc-cloud-switch-slot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--qc-space-3);
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  margin-top: 0;
}
.qc-cloud-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  margin-left: 6px;
  padding: 0 4px;
  border-radius: var(--qc-radius-full);
  font-variant-numeric: tabular-nums;
}
.qc-cloud-newdot {
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-radius: var(--qc-radius-full);
  background: var(--qc-brand);
}
.qc-cloud-banner,
.qc-cloud-return {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--qc-space-3);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.qc-cloud-banner {
  margin-top: var(--qc-space-3);
  padding: var(--qc-space-3) var(--qc-space-4);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
  background: var(--qc-surface-raise);
  color: var(--qc-fg);
}
.qc-cloud-banner p,
.qc-cloud-return {
  margin: 0;
  overflow-wrap: anywhere;
}
.qc-cloud-return {
  padding: var(--qc-space-3) var(--qc-space-4);
  background: var(--qc-surface-raise);
  color: var(--qc-fg);
  border-bottom: 1px solid var(--qc-hairline);
}
.qc-cloud-return a,
.qc-cloud-banner a { overflow-wrap: anywhere; }
.qc-cloud-panel { min-width: 0; max-width: 100%; }
.qc-cloud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: var(--qc-space-4);
  min-width: 0;
}
.qc-cloud-card { min-width: 0; max-width: 100%; }
.qc-cloud-card h2,
.qc-cloud-card h3,
.qc-cloud-card p { overflow-wrap: anywhere; }
.qc-cloud-card h2 { margin: 0 0 var(--qc-space-3); font-size: var(--qc-text-h3); color: var(--qc-fg); }
.qc-cloud-card h3 { margin: var(--qc-space-4) 0 var(--qc-space-2); font-size: var(--qc-text-body); color: var(--qc-fg); }
.qc-cloud-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--qc-space-2);
  min-width: 0;
  max-width: 100%;
}
.qc-cloud-row .qc-input { flex: 1 1 8rem; min-width: 0; width: auto; }
.qc-cloud-expire-soon { color: var(--qc-err); font-weight: 600; }
.qc-cloud-menu { position: relative; max-width: 100%; }
.qc-cloud-menu summary { cursor: pointer; }
.qc-cloud-menu-panel {
  position: absolute;
  right: 0;
  z-index: 5;
  min-width: 8rem;
  max-width: min(16rem, calc(100vw - 2rem));
  background: var(--qc-surface-raise);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
  padding: var(--qc-space-2);
}
.qc-cloud-menu-panel a { display: block; padding: var(--qc-space-2); color: var(--qc-fg); }
.qc-cloud-tabs { flex-wrap: wrap; max-width: 100%; }
.qc-cloud-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--qc-space-3);
  margin: var(--qc-space-4) 0;
  padding: 0;
  list-style: none;
}
.qc-cloud-step.is-current { border-color: var(--qc-brand); }
.qc-cloud-step.is-done { border-color: var(--qc-ok); }
.qc-cloud-meter {
  height: 8px;
  width: 100%;
  max-width: 100%;
  background: var(--qc-hover);
  border-radius: var(--qc-radius-full);
  overflow: hidden;
}
.qc-cloud-meter > span { display: block; height: 100%; background: var(--qc-ok); }
.qc-cloud-meter.is-warn > span { background: var(--qc-warn); }
.qc-cloud-meter.is-err > span { background: var(--qc-err); }
.qc-cloud-danger {
  border: 1px solid var(--qc-err);
  border-radius: var(--qc-radius-md);
  padding: var(--qc-space-4);
  margin-top: var(--qc-space-5);
  min-width: 0;
  max-width: 100%;
}
.qc-cloud-secret {
  font-family: var(--qc-mono);
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .qc-cloud-steps { grid-template-columns: 1fr; }
}

/* Cloud configurator, console, and product switch (2026-10-19).
   Colors come from the theme tokens so light and dark both stay readable. */
.qc-cloud-switch {
  display: flex;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
  gap: 4px;
  padding: 4px;
  border-radius: var(--qc-radius-full);
  background: var(--qc-surface-raise);
  border: 1px solid var(--qc-hairline-strong);
  color: var(--qc-fg);
}
.qc-cloud-switch-item {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: max-content;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: var(--qc-radius-full);
  color: var(--qc-fg);
  text-decoration: none;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0.72;
}
.qc-cloud-switch-item:hover { opacity: 0.85; background: var(--qc-hover); }
.qc-cloud-switch-item.is-current {
  opacity: 1;
  background: var(--qc-brand);
  color: var(--qc-brand-on);
}
.qc-cloud-switch-item.is-current:hover { background: var(--qc-brand-hover); color: var(--qc-brand-on); }
.qc-cloud-switch-icon { flex: 0 0 auto; }
.qc-cloud-switch-label { white-space: nowrap; }
.qc-cloud-switch-item.is-current .qc-cloud-newdot { background: var(--qc-brand-on); }
.qc-cloud-check {
  min-height: 44px;
  align-items: center;
  cursor: pointer;
}
.qc-cloud-check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0;
  accent-color: var(--qc-brand);
}
.qc-cloud-choice { min-height: 44px; }
.qc-cloud-charge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--qc-space-3);
  min-width: 0;
}
.qc-cloud-charge { min-height: 7.5rem; }
.qc-cloud-os-group { min-width: 0; margin-top: var(--qc-space-3); }
.qc-cloud-os-family {
  margin: 0 0 var(--qc-space-2);
  font-size: var(--qc-text-body);
  font-weight: 650;
  color: var(--qc-fg);
}
.qc-cloud-os-note {
  font-size: var(--qc-text-xs);
  color: var(--qc-fg-muted);
  overflow-wrap: anywhere;
}
.qc-cloud-note-card { min-width: 0; }
.qc-cloud-note-card p { margin: 0; color: var(--qc-fg-body); }
.qc-cloud-mono { font-family: var(--qc-mono); letter-spacing: 0.02em; }
.qc-cloud-strength-label {
  margin: var(--qc-space-3) 0 var(--qc-space-2);
  font-size: var(--qc-text-sm);
  color: var(--qc-fg-body);
}
.qc-cloud-strength {
  height: 8px;
  width: 100%;
  max-width: 16rem;
  background: var(--qc-hover);
  border-radius: var(--qc-radius-full);
  overflow: hidden;
}
.qc-cloud-strength > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--qc-fg-muted);
}
.qc-cloud-strength.is-1 > span { width: 25%; background: var(--qc-err); }
.qc-cloud-strength.is-2 > span { width: 50%; background: var(--qc-warn); }
.qc-cloud-strength.is-3 > span { width: 75%; background: var(--qc-ok); }
.qc-cloud-strength.is-4 > span { width: 100%; background: var(--qc-ok); }
.qc-cloud-pay { display: flex; flex-direction: column; gap: var(--qc-space-2); min-width: 0; }
.qc-cloud-pay-opt {
  display: flex;
  align-items: center;
  gap: var(--qc-space-3);
  min-height: 44px;
  margin: 0;
  padding: var(--qc-space-2) var(--qc-space-3);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
  background: var(--qc-surface-raise);
  color: var(--qc-fg);
  cursor: pointer;
}
.qc-cloud-pay-opt.is-selected {
  border-color: var(--qc-brand);
  box-shadow: inset 0 0 0 1px var(--qc-brand);
  background: var(--qc-brand-tint);
}
.qc-cloud-pay-copy { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.qc-cloud-pay-copy strong { font-variant-numeric: tabular-nums; }
.qc-cloud-kv { width: 100%; border-collapse: collapse; }
.qc-cloud-kv th,
.qc-cloud-kv td {
  padding: var(--qc-space-2) 0;
  border-bottom: 1px solid var(--qc-hairline);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.qc-cloud-kv th {
  text-align: left;
  font-weight: 500;
  color: var(--qc-fg-muted);
  padding-right: var(--qc-space-3);
}
.qc-cloud-kv td { text-align: right; color: var(--qc-fg); }
.qc-cloud-due-label {
  margin: var(--qc-space-4) 0 var(--qc-space-1);
  color: var(--qc-fg-muted);
  font-size: var(--qc-text-sm);
}
.qc-cloud-due {
  margin: 0 0 var(--qc-space-2);
  font-size: var(--qc-text-h2);
  font-weight: 700;
  color: var(--qc-fg);
  font-variant-numeric: tabular-nums;
}
.qc-cloud-callout {
  margin: var(--qc-space-3) 0;
  padding: var(--qc-space-3) var(--qc-space-4);
  border-radius: var(--qc-radius-md);
  border: 1px solid var(--qc-warn);
  background: color-mix(in srgb, var(--qc-warn) 16%, var(--qc-surface-raise));
  color: var(--qc-fg);
  font-weight: 650;
}
.qc-cloud-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: var(--qc-space-2) var(--qc-space-4);
  margin: 0 0 var(--qc-space-5);
  color: var(--qc-fg);
  font-weight: 650;
}
.qc-cloud-orders {
  display: flex;
  flex-direction: column;
  gap: var(--qc-space-3);
  margin-bottom: var(--qc-space-6);
  min-width: 0;
}
.qc-cloud-orders h2 { margin: 0; font-size: var(--qc-text-h3); color: var(--qc-fg); }
.qc-cloud-order-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--qc-space-2);
  min-width: 0;
}
.qc-cloud-empty {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--qc-space-3);
  min-width: 0;
  width: 100%;
}
.qc-cloud-empty-art {
  width: 72px;
  height: 72px;
  color: var(--qc-brand);
}
.qc-cloud-empty-art svg { width: 72px; height: 72px; display: block; }
.qc-cloud-hot { margin-top: var(--qc-space-2); }
.qc-cloud-server .qc-btn { align-self: flex-start; }
.qc-cloud-stage {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.qc-cloud-progress {
  width: min(100%, 40rem);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--qc-space-3);
}
.qc-cloud-progress h2 { margin: 0; font-size: var(--qc-text-h3); color: var(--qc-fg); overflow-wrap: anywhere; }
.qc-cloud-elapsed { margin: 0; color: var(--qc-fg-body); font-variant-numeric: tabular-nums; }
.qc-cloud-step {
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
  padding: var(--qc-space-3);
  background: var(--qc-surface-sunk);
  min-width: 0;
}
.qc-cloud-step h3 { margin: var(--qc-space-2) 0 0; font-size: var(--qc-text-sm); color: var(--qc-fg); }
.qc-cloud-step.is-current {
  border-color: var(--qc-brand);
  background: var(--qc-brand-tint);
  box-shadow: inset 0 0 0 1px var(--qc-brand);
}
.qc-cloud-step.is-done { border-color: var(--qc-ok); }
.qc-cloud-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: var(--qc-space-3);
  min-width: 0;
  margin: var(--qc-space-4) 0;
}
.qc-cloud-stat { min-width: 0; }
.qc-cloud-stat p { margin: 0 0 var(--qc-space-2); overflow-wrap: anywhere; }
.qc-cloud-stat-label {
  margin: 0 0 var(--qc-space-2);
  font-size: var(--qc-text-xs);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--qc-fg-muted);
}
.qc-cloud-stat--wide { grid-column: 1 / -1; }
.qc-cloud-connect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--qc-space-5);
  min-width: 0;
}
.qc-cloud-ops { margin-bottom: var(--qc-space-4); }
.qc-cloud-danger {
  background: color-mix(in srgb, var(--qc-err) 8%, var(--qc-surface-raise));
}
.qc-cloud-root .qc-btn--sm { min-height: 44px; }
@media (max-width: 767px) {
  .qc-dash-hero-copy .qc-cloud-switch-slot { align-items: stretch; }
  .qc-dash-hero-copy .qc-cloud-switch { width: 100%; max-width: none; }
}
@media (max-width: 720px) {
  .qc-cloud-connect-grid { grid-template-columns: minmax(0, 1fr); }
  .qc-cloud-kv th,
  .qc-cloud-kv td { display: block; width: 100%; text-align: left; }
}
@media (max-width: 639px) {
  .qc-cloud-charge-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Console polish: spacing, equal cards, stepper, bill, switch. 2026-10-19. */
.qc-cloud-console { padding-top: 32px; }
.qc-cloud-root .qc-card {
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
  box-shadow: var(--qc-shadow-rest);
  background: var(--qc-surface-raise);
}
html[data-theme="dark"] .qc-cloud-root .qc-card {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.28);
}
/* The console card rules above outrank the plain selected state: restate it (2026-10-19). */
.qc-cloud-root .qc-cloud-choice.is-selected,
html[data-theme="dark"] .qc-cloud-root .qc-cloud-choice.is-selected {
  border-color: var(--qc-brand);
  box-shadow: inset 0 0 0 1px var(--qc-brand);
  background: var(--qc-brand-tint);
}
html[data-theme="dark"] .qc-cloud-root .qc-muted,
html[data-theme="dark"] .qc-cloud-root .qc-cloud-stat-label,
html[data-theme="dark"] .qc-cloud-root .qc-cloud-kpi-label,
html[data-theme="dark"] .qc-cloud-root .qc-cloud-server-id,
html[data-theme="dark"] .qc-cloud-root .qc-cloud-bill-k,
html[data-theme="dark"] .qc-cloud-root .qc-cloud-elapsed,
html[data-theme="dark"] .qc-cloud-root .qc-cloud-hint {
  color: #D5CCC6;
}

.qc-cloud-main > .qc-step {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.qc-cloud-main > .qc-step:hover { border-color: transparent; }
.qc-cloud-stephead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--qc-space-4);
}
.qc-cloud-stepbadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--qc-radius-full);
  border: 1px solid var(--qc-hairline-strong);
  background: var(--qc-surface-raise);
  color: var(--qc-fg);
  font-family: var(--qc-mono);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}
.qc-cloud-main .qc-cloud-stephead h2 {
  margin: 0;
  font-size: var(--qc-text-h3);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.qc-cloud-choice-grid.qc-cloud-plan-grid {
  grid-template-columns: repeat(auto-fill, 240px);
  justify-content: start;
}
.qc-cloud-billing-grid {
  display: grid;
  grid-template-columns: repeat(2, 240px);
  gap: 12px;
  justify-content: start;
  align-items: start;
}
.qc-cloud-billing-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
/* Terms: 1/3/6/12 months with the term discount (2026-10-19). */
.qc-cloud-term-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--qc-space-3);
  margin-top: var(--qc-space-3);
}
.qc-cloud-term { padding: var(--qc-space-3) var(--qc-space-4); }
.qc-cloud-term .qc-plan-price { font-size: var(--qc-text-body); font-weight: 600; }
.qc-cloud-term-grid--panel { margin: var(--qc-space-2) 0 var(--qc-space-4); }
@media (max-width: 639px) {
  .qc-cloud-term-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.qc-cloud-renew h2 { margin: 0 0 var(--qc-space-1); font-size: var(--qc-text-h3, 18px); }
.qc-cloud-renew-pay {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--qc-space-3);
  padding: var(--qc-space-3) 0;
  border-top: var(--qc-border);
}
.qc-cloud-renew-pay p { margin: 0; }
.qc-cloud-autorenew {
  display: flex;
  flex-direction: column;
  gap: var(--qc-space-1);
  margin: var(--qc-space-3) 0;
  padding: var(--qc-space-3);
  border: var(--qc-border);
  border-radius: var(--qc-radius-md, 8px);
  background: var(--qc-bg-subtle);
}
.qc-cloud-autorenew-hint {
  margin: 0;
  font-size: var(--qc-text-xs);
  color: var(--qc-fg-muted);
  line-height: 1.5;
}
.qc-cloud-billing-note {
  margin: 0;
  max-width: 36em;
  font-size: var(--qc-text-sm);
  line-height: 1.5;
  color: var(--qc-fg-muted);
}
.qc-cloud-trial-banner { margin: 0 0 16px; }
.qc-cloud-server.is-ended { opacity: 0.72; }
.qc-cloud-server-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.qc-cloud-countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.qc-cloud-choice { height: 100%; }

.qc-cloud-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 16px;
  justify-content: start;
  margin: 0 0 24px;
  color: var(--qc-fg);
  font-weight: 600;
}
.qc-cloud-kpi { min-height: 92px; }
.qc-cloud-kpi-label {
  margin: 0 0 8px;
  font-size: var(--qc-text-xs);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--qc-fg-muted);
}
.qc-cloud-kpi-value {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--qc-fg);
  font-variant-numeric: tabular-nums;
}
.qc-cloud-kpi-unit {
  margin-left: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--qc-fg-body);
}

.qc-cloud-servers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.qc-cloud-server {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}
.qc-cloud-server-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 0;
}
.qc-cloud-server-idwrap { min-width: 0; }
.qc-cloud-server-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: var(--qc-text-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--qc-fg);
  overflow-wrap: anywhere;
}
.qc-cloud-server-id {
  margin: 4px 0 0;
  font-family: var(--qc-mono);
  font-size: var(--qc-text-xs);
  color: var(--qc-fg-muted);
}
.qc-cloud-server-body { margin: 12px 0 0; padding: 0 16px; flex: 1 1 auto; }
.qc-cloud-kvline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--qc-hairline);
  font-size: var(--qc-text-sm);
}
.qc-cloud-kvline dt { margin: 0; color: var(--qc-fg-muted); font-weight: 500; }
.qc-cloud-kvline dd {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  color: var(--qc-fg);
  text-align: right;
}
.qc-cloud-server-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--qc-hairline);
}
.qc-cloud-server .qc-btn { align-self: auto; }
.qc-cloud-copied { font-size: var(--qc-text-xs); color: var(--qc-ok); }

.qc-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  cursor: pointer;
  color: var(--qc-fg);
  font-size: var(--qc-text-sm);
}
.qc-switch input {
  position: absolute;
  opacity: 0;
  width: 36px;
  height: 22px;
  margin: 0;
  cursor: pointer;
}
.qc-switch-ui {
  width: 36px;
  height: 22px;
  border-radius: var(--qc-radius-full);
  background: var(--qc-hairline-strong);
  position: relative;
  flex: 0 0 auto;
}
.qc-switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: var(--qc-radius-full);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 150ms ease;
}
.qc-switch input:checked + .qc-switch-ui { background: var(--qc-brand); }
.qc-switch input:checked + .qc-switch-ui::after { transform: translateX(14px); }
.qc-switch input:focus-visible + .qc-switch-ui {
  outline: 2px solid var(--qc-focus);
  outline-offset: 2px;
}
.qc-switch input:disabled + .qc-switch-ui { opacity: 0.45; }

.qc-cloud-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--qc-radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--qc-fg-muted);
  cursor: pointer;
  flex: 0 0 auto;
}
.qc-cloud-icon-btn:hover {
  background: var(--qc-hover);
  color: var(--qc-fg);
  border-color: var(--qc-hairline);
}
.qc-cloud-icon-btn:focus-visible {
  outline: 2px solid var(--qc-focus);
  outline-offset: 2px;
}

.qc-cloud-back { margin: 0 0 12px; }
.qc-cloud-headcard {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 20px;
}
.qc-cloud-headcard-main { min-width: 0; flex: 1 1 auto; }
.qc-cloud-alias-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.qc-cloud-alias-title {
  margin: 0;
  font-size: var(--qc-text-h1);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.15;
  color: var(--qc-fg);
  overflow-wrap: anywhere;
}
.qc-cloud-alias-edit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.qc-cloud-alias-edit .qc-input { width: min(100%, 280px); }
.qc-cloud-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  color: var(--qc-fg-body);
  font-size: var(--qc-text-sm);
}
.qc-cloud-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 1 auto;
}
.qc-cloud-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.qc-cloud-stat { display: flex; flex-direction: column; gap: 8px; min-height: 112px; }
.qc-cloud-stat-value { margin: 0; color: var(--qc-fg); overflow-wrap: anywhere; }
.qc-cloud-ip-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qc-cloud-stat--wide { grid-column: auto; }
.qc-cloud-connect { margin-top: 16px; }
.qc-cloud-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  padding: 10px 10px 10px 14px;
  background: var(--qc-surface-sunk);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-sm);
  color: var(--qc-fg);
}
.qc-cloud-code code {
  font-family: var(--qc-mono);
  font-size: var(--qc-text-sm);
  overflow-x: auto;
  white-space: nowrap;
}
.qc-cloud-hint { margin: 0; color: var(--qc-fg-body); font-size: var(--qc-text-sm); }
.qc-cloud-guide-list { list-style: none; margin: 0; padding: 0; }
.qc-cloud-guide-list li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--qc-hairline);
  font-size: var(--qc-text-sm);
}
.qc-cloud-guide-list strong { color: var(--qc-fg); font-weight: 650; }
.qc-cloud-guide-list span { color: var(--qc-fg-body); }
.qc-cloud-check-title {
  margin: 16px 0 4px;
  font-size: var(--qc-text-body);
  font-weight: 650;
  color: var(--qc-fg);
}
.qc-cloud-todo { list-style: none; margin: 0; padding: 0; }
.qc-cloud-todo li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  color: var(--qc-fg);
  font-size: var(--qc-text-sm);
}
.qc-cloud-todo svg { flex: 0 0 auto; margin-top: 1px; color: var(--qc-ok); }

.qc-cloud-progress { width: min(100%, 720px); margin-left: auto; margin-right: auto; }
.qc-cloud-progress-back { margin: 8px 0 0; }
ol.qc-steps.qc-cloud-stepper {
  display: flex;
  grid-template-columns: none;
  gap: 0;
  margin: 8px 0 4px;
  padding: 0;
  list-style: none;
}
.qc-cloud-stepper > .qc-cloud-step {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}
.qc-cloud-stepper > .qc-cloud-step:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 13px;
  right: 50%;
  left: -50%;
  height: 2px;
  background: var(--qc-hairline-strong);
  z-index: 0;
}
.qc-cloud-stepper > .qc-cloud-step.is-done::before,
.qc-cloud-stepper > .qc-cloud-step.is-current::before { background: var(--qc-ok); }
.qc-cloud-step-mark {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--qc-radius-full);
  border: 1px solid var(--qc-hairline-strong);
  background: var(--qc-surface-raise);
  color: var(--qc-fg-muted);
  font-family: var(--qc-mono);
  font-size: 12px;
  font-weight: 650;
}
.qc-cloud-stepper > .qc-cloud-step.is-done .qc-cloud-step-mark {
  background: var(--qc-ok);
  border-color: var(--qc-ok);
  color: var(--qc-ok-on);
}
.qc-cloud-stepper > .qc-cloud-step.is-current .qc-cloud-step-mark {
  border-color: var(--qc-brand);
  color: var(--qc-brand);
  box-shadow: 0 0 0 4px var(--qc-brand-tint);
}
.qc-cloud-step-label {
  font-size: var(--qc-text-xs);
  font-weight: 650;
  color: var(--qc-fg);
  overflow-wrap: anywhere;
}
.qc-cloud-elapsed { color: var(--qc-fg-muted); font-size: var(--qc-text-sm); }
.qc-cloud-spin {
  width: 14px;
  height: 14px;
  border-radius: var(--qc-radius-full);
  border: 2px solid var(--qc-brand);
  border-right-color: transparent;
  animation: qc-cloud-spin 0.8s linear infinite;
}
@keyframes qc-cloud-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .qc-cloud-spin { animation: none; border-right-color: var(--qc-brand); }
}

.qc-cloud-bill { margin: 0 0 8px; }
.qc-cloud-bill-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--qc-hairline);
}
.qc-cloud-bill-k {
  font-size: var(--qc-text-xs);
  font-weight: 500;
  color: var(--qc-fg-muted);
}
.qc-cloud-bill-v {
  text-align: right;
  color: var(--qc-fg);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.qc-cloud-due { font-size: 32px; letter-spacing: -0.03em; line-height: 1.1; }
.qc-cloud-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.qc-cloud-kv th { background: transparent; }

@media (min-width: 720px) {
  .qc-cloud-servers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .qc-cloud-servers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .qc-cloud-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .qc-cloud-choice-grid.qc-cloud-plan-grid { grid-template-columns: minmax(0, 1fr); }
  .qc-cloud-billing-grid { grid-template-columns: minmax(0, 1fr); }
  .qc-cloud-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qc-cloud-stat-grid { grid-template-columns: minmax(0, 1fr); }
  .qc-cloud-headcard { flex-direction: column; }
  .qc-cloud-head-actions { justify-content: flex-start; }
  .qc-cloud-guide-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .qc-cloud-modal { padding: 0; align-items: stretch; }
  .qc-cloud-modal-card {
    width: 100%;
    max-width: none;
    min-height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  .qc-cloud-modal-actions { flex-direction: column; align-items: stretch; }
  .qc-cloud-modal-actions .qc-btn { width: 100%; }
}

/* Cloud cross-sell: global cloud servers x frontier AI models (2026-10-19) */
.qc-cloud-promo {
  position: relative;
  padding: var(--qc-space-4) var(--qc-space-5);
  border: 1px solid color-mix(in srgb, var(--qc-brand) 35%, var(--qc-hairline));
  background: linear-gradient(135deg, color-mix(in srgb, var(--qc-brand) 10%, var(--qc-surface-raise)), var(--qc-surface-raise) 60%);
  min-width: 0;
}
.qc-cloud-promo-close {
  position: absolute;
  top: var(--qc-space-2);
  right: var(--qc-space-3);
  width: 28px;
  height: 28px;
  border-radius: var(--qc-radius-full);
  color: var(--qc-fg-muted);
  font-size: 18px;
  line-height: 1;
}
.qc-cloud-promo-close:hover { background: var(--qc-hover); color: var(--qc-fg); }
.qc-cloud-promo-eyebrow {
  margin: 0 0 var(--qc-space-2);
  font-size: var(--qc-text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--qc-brand-text);
}
.qc-cloud-promo-title {
  margin: 0 0 var(--qc-space-2);
  padding-right: var(--qc-space-5);
  font-size: var(--qc-text-h3);
  font-weight: 700;
  line-height: 1.3;
  color: var(--qc-fg);
}
.qc-cloud-promo-body {
  margin: 0 0 var(--qc-space-3);
  font-size: var(--qc-text-sm);
  line-height: 1.6;
  color: var(--qc-fg-body);
}
.qc-cloud-promo-actions { display: flex; flex-wrap: wrap; gap: var(--qc-space-2); }
.qc-cloud-promo--server { margin-top: var(--qc-space-4); }
.qc-cloud-promo-cmds { margin: 0 0 var(--qc-space-3); min-width: 0; }
.qc-cloud-promo-cmd-label {
  margin: var(--qc-space-2) 0 var(--qc-space-1);
  font-size: var(--qc-text-xs);
  font-weight: 650;
  color: var(--qc-fg-muted);
}
.qc-cloud-promo-cmd {
  display: flex;
  align-items: center;
  gap: var(--qc-space-2);
  padding: var(--qc-space-2) var(--qc-space-3);
  border-radius: var(--qc-radius-md);
  border: 1px solid var(--qc-hairline);
  background: var(--qc-surface-sunk);
  min-width: 0;
}
.qc-cloud-promo-cmd code {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  font-family: var(--qc-mono);
  font-size: var(--qc-text-sm);
  color: var(--qc-fg);
}
.qc-cloud-promo-cmd .qc-btn { flex: 0 0 auto; }

/* /cloud: "the perfect pair" section */
.qc-cloud-pair-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: var(--qc-space-4);
  margin: var(--qc-space-5) 0 var(--qc-space-4);
}
.qc-cloud-pair-card { padding: var(--qc-space-5); min-width: 0; }
.qc-cloud-pair-card h3 { margin: 0 0 var(--qc-space-3); font-size: var(--qc-text-h3); font-weight: 700; color: var(--qc-fg); }
.qc-cloud-pair-x {
  align-self: center;
  font-size: 32px;
  font-weight: 300;
  color: var(--qc-brand-text);
}
.qc-cloud-pair-list { margin: 0; padding: 0; list-style: none; }
.qc-cloud-pair-list li {
  position: relative;
  padding-left: 1.4em;
  margin: 0 0 var(--qc-space-2);
  color: var(--qc-fg-body);
  line-height: 1.6;
}
.qc-cloud-pair-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5em;
  height: 0.5em;
  border-radius: var(--qc-radius-full);
  background: var(--qc-brand);
}
.qc-cloud-pair-cmd { padding: var(--qc-space-4) var(--qc-space-5); min-width: 0; }
.qc-cloud-pair-actions { margin-top: var(--qc-space-4); }
@media (max-width: 767px) {
  .qc-cloud-pair-grid { grid-template-columns: minmax(0, 1fr); }
  .qc-cloud-pair-x { justify-self: center; }
}

/* navbar: NEW marker next to the cloud entry */
.qc-nav-new {
  margin-left: 4px;
  padding: 0 5px;
  border-radius: var(--qc-radius-full);
  background: var(--qc-brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
}
/* Desktop: inline raised tag next to the cloud label so it never overlaps adjacent nav items. */
.qc-nav-cloud-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.qc-nav-new--sup {
  position: static;
  display: inline-flex;
  align-items: center;
  transform: translateY(-4px);
  margin-left: 0;
  padding: 0 4px;
  font-size: 9px;
  line-height: 13px;
  letter-spacing: 0.02em;
  pointer-events: none;
}

/* Cloud panel phase 1 (2026-10-19): traffic note, monitor charts, firewall rules.
   Same tokens as the rest of the console; no new colors. */
.qc-cloud-meter-note { margin: var(--qc-space-1) 0 0; font-size: var(--qc-text-sm); color: var(--qc-fg-muted); }
.qc-cloud-mon-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--qc-space-2) var(--qc-space-4);
  margin: 0 0 var(--qc-space-4);
}
.qc-cloud-mon-note { margin: 0; font-size: var(--qc-text-sm); }
.qc-cloud-range { flex-wrap: nowrap; }
.qc-cloud-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: var(--qc-space-4);
}
.qc-cloud-chart { min-width: 0; }
.qc-cloud-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--qc-space-2);
  margin: 0 0 var(--qc-space-3);
}
.qc-cloud-chart-head h3 { margin: 0; font-size: var(--qc-text-body); color: var(--qc-fg); }
.qc-cloud-chart-unit { font-size: var(--qc-text-xs); color: var(--qc-fg-muted); }
.qc-cloud-chart-plot { position: relative; height: 140px; }
.qc-cloud-chart-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.qc-cloud-chart-ymax {
  position: absolute;
  top: -9px;
  left: 0;
  padding-right: 6px;
  font-size: var(--qc-text-xs);
  line-height: 16px;
  color: var(--qc-fg-muted);
  background: var(--qc-surface-raise);
  font-variant-numeric: tabular-nums;
}
.qc-cloud-chart-rule { stroke: var(--qc-hairline); stroke-width: 1; vector-effect: non-scaling-stroke; }
.qc-cloud-chart-line { fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.qc-cloud-chart-line.is-a { stroke: var(--qc-brand); }
.qc-cloud-chart-line.is-b { stroke: var(--qc-info); }
.qc-cloud-chart-x {
  display: flex;
  justify-content: space-between;
  margin-top: var(--qc-space-1);
  font-size: var(--qc-text-xs);
  color: var(--qc-fg-muted);
  font-variant-numeric: tabular-nums;
}
.qc-cloud-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--qc-space-1) var(--qc-space-4);
  margin: var(--qc-space-3) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--qc-text-sm);
  color: var(--qc-fg-body);
}
.qc-cloud-chart-legend li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.qc-cloud-chart-dot { width: 8px; height: 8px; border-radius: var(--qc-radius-full); flex: 0 0 auto; }
.qc-cloud-chart-dot.is-a { background: var(--qc-brand); }
.qc-cloud-chart-dot.is-b { background: var(--qc-info); }
.qc-cloud-chart-val { color: var(--qc-fg-muted); font-variant-numeric: tabular-nums; }
.qc-cloud-chart-cap { margin: var(--qc-space-2) 0 0; font-size: var(--qc-text-sm); }

.qc-cloud-fw-lead { margin: 0 0 var(--qc-space-3); }
.qc-cloud-fw-state { margin: 0 0 var(--qc-space-4); font-size: var(--qc-text-sm); color: var(--qc-ok); font-weight: 600; }
.qc-cloud-fw-state.is-busy { color: var(--qc-warn); }
.qc-cloud-fw-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--qc-space-2);
  margin: 0 0 var(--qc-space-2);
}
.qc-cloud-fw-presets-label { font-size: var(--qc-text-sm); color: var(--qc-fg-muted); margin-right: var(--qc-space-1); }
.qc-cloud-fw-myip { margin: 0 0 var(--qc-space-3); font-size: var(--qc-text-sm); }
.qc-cloud-fw-list {
  margin: var(--qc-space-3) 0 0;
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
  overflow: hidden;
}
.qc-cloud-fw-row {
  display: grid;
  grid-template-columns: 2rem 4.5rem 4rem minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 0.8fr) 3rem 8.5rem;
  align-items: center;
  gap: var(--qc-space-2);
  padding: var(--qc-space-2) var(--qc-space-3);
  border-bottom: 1px solid var(--qc-hairline);
  font-size: var(--qc-text-sm);
  color: var(--qc-fg-body);
  min-width: 0;
}
.qc-cloud-fw-row:last-of-type { border-bottom: 0; }
.qc-cloud-fw-row > span { min-width: 0; overflow-wrap: anywhere; }
.qc-cloud-fw-row--head {
  background: var(--qc-surface-sunk);
  color: var(--qc-fg-muted);
  font-weight: 500;
  font-size: var(--qc-text-xs);
}
.qc-cloud-fw-row.is-off .qc-cloud-fw-act,
.qc-cloud-fw-row.is-off .qc-cloud-fw-proto,
.qc-cloud-fw-row.is-off .qc-cloud-fw-ports,
.qc-cloud-fw-row.is-off .qc-cloud-fw-src,
.qc-cloud-fw-row.is-off .qc-cloud-fw-note { opacity: 0.5; }
.qc-cloud-fw-idx { color: var(--qc-fg-muted); font-variant-numeric: tabular-nums; }
.qc-cloud-fw-tools { display: inline-flex; justify-content: flex-end; gap: 2px; }
.qc-cloud-fw-tools .qc-cloud-icon-btn:disabled { opacity: 0.35; cursor: default; background: transparent; border-color: transparent; }
.qc-cloud-fw-empty { margin: 0; padding: var(--qc-space-4); text-align: center; }
.qc-cloud-fw-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--qc-space-3);
  margin: var(--qc-space-4) 0 0;
}
.qc-cloud-fw-foot-left,
.qc-cloud-fw-foot-right { display: flex; flex-wrap: wrap; align-items: center; gap: var(--qc-space-2); }
.qc-cloud-fw-count { font-size: var(--qc-text-sm); }
.qc-cloud-fw-dirty { font-size: var(--qc-text-sm); color: var(--qc-warn); font-weight: 600; }
.qc-cloud-fw-platform { margin: var(--qc-space-4) 0 0; font-size: var(--qc-text-sm); }
.qc-cloud-fw-form label { display: block; margin: var(--qc-space-3) 0 var(--qc-space-1); font-size: var(--qc-text-sm); color: var(--qc-fg); }
.qc-cloud-fw-form .qc-cloud-hint { margin-top: var(--qc-space-1); color: var(--qc-fg-muted); }
.qc-cloud-fw-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-auto-flow: column;
  grid-template-rows: auto auto;
  column-gap: var(--qc-space-3);
}
.qc-cloud-fw-form-grid label { margin-top: 0; }
.qc-cloud-fw-form .qc-switch.qc-cloud-fw-form-on { display: inline-flex; margin: var(--qc-space-3) 0; }
@media (max-width: 720px) {
  .qc-cloud-fw-row--head { display: none !important; }
  .qc-cloud-fw-row {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-areas:
      "idx act proto on"
      "ports ports ports ports"
      "src src src src"
      "note note tools tools";
    row-gap: var(--qc-space-1);
    padding: var(--qc-space-3);
  }
  .qc-cloud-fw-idx { grid-area: idx; }
  .qc-cloud-fw-act { grid-area: act; }
  .qc-cloud-fw-proto { grid-area: proto; }
  .qc-cloud-fw-on { grid-area: on; justify-self: end; }
  .qc-cloud-fw-ports { grid-area: ports; }
  .qc-cloud-fw-src { grid-area: src; }
  .qc-cloud-fw-note { grid-area: note; align-self: center; color: var(--qc-fg-muted); }
  .qc-cloud-fw-tools { grid-area: tools; }
  .qc-cloud-fw-ports::before,
  .qc-cloud-fw-src::before {
    content: attr(data-label);
    margin-right: 6px;
    font-family: var(--qc-sans);
    color: var(--qc-fg-muted);
  }
  .qc-cloud-fw-foot { flex-direction: column; align-items: stretch; }
  .qc-cloud-fw-foot-right { justify-content: flex-end; }
}
.qc-cloud-fw-form .qc-input { width: 100%; max-width: 100%; box-sizing: border-box; }
.qc-cloud-modal-card .qc-cloud-error { color: var(--qc-err); margin: 0 0 var(--qc-space-3); }
/* Five detail tabs since panel phase 1: keep them on one row on phones (en 390 wrapped by a few px). */
@media (max-width: 480px) {
  .qc-cloud-tabs { flex-wrap: nowrap; gap: var(--qc-space-3); overflow-x: auto; scrollbar-width: none; }
  .qc-cloud-tabs::-webkit-scrollbar { display: none; }
  .qc-cloud-tabs .qc-tab { white-space: nowrap; flex: 0 0 auto; }
}

/* /cloud line guide (redone 2026-10-19 night): questions left, scored lines right; stacked < 900px. */
#guide.qc-section { padding-bottom: 0; }
.qc-cloud-guide {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--qc-space-5) var(--qc-space-6);
  padding: var(--qc-space-5);
}
.qc-cloud-guide-title { margin: 0 0 var(--qc-space-2); font-size: var(--qc-text-h3); color: var(--qc-fg); }
.qc-cloud-guide-hint { margin: 0 0 var(--qc-space-4); font-size: var(--qc-text-sm); }
.qc-cloud-guide-q { margin: 0 0 var(--qc-space-4); }
.qc-cloud-guide-q:last-child { margin-bottom: 0; }
.qc-cloud-guide-label { margin: 0 0 var(--qc-space-2); font-size: var(--qc-text-sm); font-weight: 600; color: var(--qc-fg); }
.qc-cloud-guide-opts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
  background: var(--qc-surface-sunk);
}
.qc-cloud-guide-opt {
  min-height: 36px;
  padding: 6px 8px;
  border: 0;
  border-radius: calc(var(--qc-radius-md) - 3px);
  background: transparent;
  color: var(--qc-fg-body);
  font-size: var(--qc-text-sm);
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color var(--qc-dur-color) var(--qc-ease), color var(--qc-dur-color) var(--qc-ease);
}
.qc-cloud-guide-opt:hover { background: var(--qc-hover); color: var(--qc-fg); }
.qc-cloud-guide-opt.is-selected { background: var(--qc-brand); color: var(--qc-brand-on); }
.qc-cloud-guide-opt:focus-visible { outline: 2px solid var(--qc-focus); outline-offset: 2px; }
.qc-cloud-guide-out {
  min-width: 0;
  padding-left: var(--qc-space-6);
  border-left: 1px solid var(--qc-hairline);
}
.qc-cloud-guide-empty { margin: var(--qc-space-3) 0 0; font-size: var(--qc-text-sm); }
.qc-cloud-guide-note { margin: 0 0 var(--qc-space-2); font-size: var(--qc-text-sm); color: var(--qc-warn); }
.qc-cloud-guide-results { margin: 0; padding: 0; list-style: none; }
.qc-cloud-guide-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--qc-space-3);
  padding: var(--qc-space-3) 0;
  border-bottom: 1px solid var(--qc-hairline);
}
.qc-cloud-guide-item:last-child { border-bottom: 0; }
.qc-cloud-guide-main { flex: 1 1 auto; min-width: 0; }
.qc-cloud-guide-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--qc-space-1);
  color: var(--qc-fg);
  font-weight: 600;
}
.qc-cloud-guide-name .qc-cloud-flag { font-size: 1.25em; flex: 0 0 auto; }
.qc-cloud-guide-why { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.qc-cloud-guide-side { display: flex; align-items: center; gap: var(--qc-space-3); flex: 0 0 auto; }
.qc-cloud-guide-price { font-size: var(--qc-text-sm); color: var(--qc-fg-body); white-space: nowrap; font-variant-numeric: tabular-nums; }
.qc-cloud-guide-side .qc-btn { white-space: nowrap; }
#cloud-step-line { scroll-margin-top: 96px; }
@media (max-width: 899px) {
  .qc-cloud-guide { grid-template-columns: minmax(0, 1fr); padding: var(--qc-space-4); }
  .qc-cloud-guide-out { padding-left: 0; padding-top: var(--qc-space-4); border-left: 0; border-top: 1px solid var(--qc-hairline); }
}
@media (max-width: 480px) {
  .qc-cloud-guide-item { flex-direction: column; align-items: stretch; }
  .qc-cloud-guide-side { justify-content: space-between; }
}

/* Checkout summary (2026-10-20): price first, then how to pay; signed-out currency switch. */
.qc-cloud-summary-notes { display: flex; flex-direction: column; gap: var(--qc-space-1); }
.qc-cloud-summary-notes p { margin: 0; }
.qc-cloud-summary .qc-plan-price { margin: 0; }
.qc-cloud-pay-block { display: flex; flex-direction: column; gap: var(--qc-space-2); padding-top: var(--qc-space-3); border-top: 1px solid var(--qc-hairline); }
.qc-cloud-pay-block .qc-cloud-autorenew-hint { margin: 0; }
.qc-cloud-pay-label { margin: 0; font-size: var(--qc-text-sm); font-weight: 600; color: var(--qc-fg); }
.qc-cloud-cur {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
  background: var(--qc-surface-sunk);
}
.qc-cloud-cur-opt {
  min-height: 36px;
  border: 0;
  border-radius: calc(var(--qc-radius-md) - 3px);
  background: transparent;
  color: var(--qc-fg-body);
  font-size: var(--qc-text-sm);
  font-weight: 500;
  cursor: pointer;
}
.qc-cloud-cur-opt:hover { background: var(--qc-hover); color: var(--qc-fg); }
.qc-cloud-cur-opt.is-selected { background: var(--qc-brand); color: var(--qc-brand-on); }
.qc-cloud-cur-opt:focus-visible { outline: 2px solid var(--qc-focus); outline-offset: 2px; }
.qc-cloud-callout.qc-cloud-pw-later { font-weight: 500; border-color: var(--qc-hairline); background: var(--qc-surface-sunk); }

/* Panel phase 2 (2026-10-20): snapshots tab, login card, upgrades and extras, SSH key fields. */
.qc-cloud-snap h2, .qc-cloud-addons h2 { margin: 0 0 var(--qc-space-1); font-size: var(--qc-text-h3, 18px); }
.qc-cloud-snap-new { display: flex; gap: var(--qc-space-2); margin-top: var(--qc-space-3); }
.qc-cloud-snap-new .qc-input { flex: 1 1 auto; min-width: 0; }
.qc-cloud-snap-new .qc-btn { flex: 0 0 auto; white-space: nowrap; }
.qc-cloud-snap-count { margin: var(--qc-space-2) 0 0; font-size: var(--qc-text-sm); }
.qc-cloud-snap-list { margin-top: var(--qc-space-3); border-top: 1px solid var(--qc-hairline); }
.qc-cloud-snap-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--qc-space-3);
  padding: var(--qc-space-3) 0;
  border-bottom: 1px solid var(--qc-hairline);
}
.qc-cloud-snap-main { display: flex; flex-direction: column; min-width: 0; }
.qc-cloud-snap-name { color: var(--qc-fg); font-weight: 600; overflow-wrap: anywhere; }
.qc-cloud-snap-time { font-size: var(--qc-text-sm); font-variant-numeric: tabular-nums; }
.qc-cloud-snap-tools { display: flex; gap: var(--qc-space-2); }
.qc-cloud-snap-tools .qc-btn { white-space: nowrap; }
.qc-cloud-snap-list > p { margin: var(--qc-space-3) 0 0; }
.qc-cloud-snap-target { font-weight: 600; color: var(--qc-fg); overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .qc-cloud-snap-new { flex-direction: column; }
  .qc-cloud-snap-row { grid-template-columns: minmax(0, 1fr) auto; }
  .qc-cloud-snap-tools { grid-column: 1 / -1; }
}
.qc-cloud-fps { margin-top: var(--qc-space-1); font-size: var(--qc-text-xs, 12px); overflow-wrap: anywhere; }
.qc-cloud-addons { margin-top: var(--qc-space-4); }
.qc-cloud-addon-groups { display: flex; flex-direction: column; gap: var(--qc-space-4); margin-top: var(--qc-space-3); }
.qc-cloud-addon-group h3 { margin: 0 0 var(--qc-space-2); font-size: var(--qc-text-md, 15px); color: var(--qc-fg); }
.qc-cloud-addon-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--qc-space-3);
}
.qc-cloud-addon-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: var(--qc-space-3) var(--qc-space-4);
  text-align: left;
}
.qc-cloud-addon-sub { font-size: var(--qc-text-sm); }
.qc-cloud-addon-group .qc-cloud-hint { margin: var(--qc-space-2) 0 0; }
.qc-cloud-addon-item { font-weight: 600; color: var(--qc-fg); overflow-wrap: anywhere; }
.qc-cloud-keys-block { margin-top: var(--qc-space-4); padding-top: var(--qc-space-3); border-top: 1px solid var(--qc-hairline); }
.qc-cloud-keys { width: 100%; min-height: 4.5em; font-family: var(--qc-font-mono, ui-monospace, monospace); font-size: var(--qc-text-sm); resize: vertical; }
@media (max-width: 480px) {
  .qc-cloud-addon-options { grid-template-columns: minmax(0, 1fr); }
}
.qc-cloud-login { margin-top: var(--qc-space-3); padding-top: var(--qc-space-3); border-top: 1px solid var(--qc-hairline); }
.qc-cloud-login-line { margin: 0; font-size: var(--qc-text-sm); color: var(--qc-fg); }
.qc-cloud-login-label { color: var(--qc-fg-muted, var(--qc-fg-body)); margin-right: 4px; }
/* Line guide on the non-Chinese page: four world-region answers (2026-10-20). */
.qc-cloud-guide-opts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 560px) { .qc-cloud-guide-opts--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Console actions: one button family for the dashboard, top-up, plans and token pages.
   Row size for inline actions (copy, renew, import), a dense size for console card and dialog actions,
   a full-width block variant, a danger tone for destructive actions (secondary shape, error text),
   and a round icon-only button (close, copy, reveal). Labels never wrap; the row around them wraps.
   Defaults keep the 44px touch target; a fine pointer on a wide window gets the console density. */
.qc-btn--row { font-size: var(--qc-text-sm); padding: 0 8px; line-height: 20px; min-height: 44px; white-space: nowrap; }
.qc-btn--dense { white-space: nowrap; }
.qc-btn--block { display: flex; width: 100%; }
.qc-btn--danger,
.qc-btn--danger:hover { color: var(--qc-err); }
.qc-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--qc-radius-full);
  background: transparent;
  color: var(--qc-fg-muted);
  cursor: pointer;
  transition: background-color var(--qc-dur-color) var(--qc-ease), color var(--qc-dur-color) var(--qc-ease);
}
.qc-icon-btn:hover { background: var(--qc-hover); color: var(--qc-fg); }
.qc-icon-btn:active { background: var(--qc-active); }
.qc-icon-btn:focus-visible { outline: 2px solid var(--qc-focus); outline-offset: 2px; }
.qc-icon-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.qc-btn.hidden,
.qc-icon-btn.hidden { display: none; }
@media (pointer: fine) and (min-width: 1024px) {
  .qc-btn--row { min-height: 24px; }
  .qc-btn--dense { min-height: 36px; padding: 8px 1.15em; }
  .qc-icon-btn { width: auto; height: auto; min-width: 24px; min-height: 24px; padding: 4px; }
}
.qc-btn:disabled:hover,
.qc-btn:disabled:active,
.qc-btn[aria-disabled="true"]:hover,
.qc-btn[aria-disabled="true"]:active { background: transparent; }
.qc-btn--primary:disabled:hover,
.qc-btn--primary:disabled:active,
.qc-btn--primary[aria-disabled="true"]:hover,
.qc-btn--primary[aria-disabled="true"]:active { background: var(--qc-brand); color: var(--qc-brand-on); }
.qc-btn--secondary:disabled:hover,
.qc-btn--secondary[aria-disabled="true"]:hover { border-color: var(--qc-hairline); }

/* Console layers: dialogs, notices, toasts, form fields and status badges.
   Every dialog shares one stacking tier above the floating support button, a plain 50% black scrim
   (no blur) and a Card White panel that scrolls inside itself, so its actions stay reachable on a
   667px-tall phone, in landscape and with the on-screen keyboard open. While a dialog is open the root
   element carries .qc-dialog-open and the support button steps aside. Toasts sit above dialogs. */
:root {
  --qc-z-dialog: 2147483600;
  --qc-z-toast: 2147483640;
}
.qc-dialog-scrim {
  position: fixed;
  inset: 0;
  z-index: var(--qc-z-dialog);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
    max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(0, 0, 0, 0.5);
  overscroll-behavior: contain;
}
.qc-dialog-scrim.hidden,
.qc-dialog-scrim[hidden] { display: none; }
.qc-dialog {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: var(--qc-space-5);
  background: var(--qc-surface-raise);
  color: var(--qc-fg-body);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
  box-shadow: var(--qc-shadow-overlay);
}
.qc-dialog--wide { max-width: 640px; }
.qc-dialog:focus { outline: none; }
.qc-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--qc-space-3);
  margin-bottom: var(--qc-space-4);
}
.qc-dialog-head > .qc-icon-btn { width: 44px; height: 44px; margin: -10px -10px 0 0; }
.qc-dialog-title {
  min-width: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: var(--qc-fg);
}
.qc-dialog-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--qc-radius-full);
  background: var(--qc-surface-sunk);
  color: var(--qc-fg-muted);
}
.qc-dialog-icon--sm {
  width: 24px;
  height: 24px;
  font-family: var(--qc-mono);
  font-size: var(--qc-text-xs);
  font-weight: 600;
  color: var(--qc-fg-body);
}
.qc-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--qc-space-3);
  margin-top: var(--qc-space-5);
}
@media (max-width: 639px) {
  .qc-dialog { padding: var(--qc-space-4); }
  .qc-dialog-actions { flex-direction: column-reverse; align-items: stretch; }
  .qc-dialog-actions > .qc-btn { width: 100%; }
}

/* Notices are plain cards (Card White, 1px Hairline, 12px corners, 16px padding, Ink text, 14px / 20px):
   the same box as the existing console notices. The status lives in the icon colour only, so the
   --ok / --warn / --err / --info and --card modifiers no longer change the box. */
.qc-notice {
  box-sizing: border-box;
  padding: var(--qc-space-4);
  background: var(--qc-surface-raise);
  color: var(--qc-fg);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
  font-size: var(--qc-text-sm);
  line-height: 20px;
}
.qc-notice--card { background: var(--qc-surface-raise); }
.qc-notice-title { margin: 0 0 var(--qc-space-1); font-weight: 600; color: var(--qc-fg); }
.qc-notice-icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--qc-fg-muted); }
.qc-notice--ok .qc-notice-icon { color: var(--qc-ok); }
.qc-notice--warn .qc-notice-icon { color: var(--qc-warn); }
.qc-notice--err .qc-notice-icon { color: var(--qc-err); }
.qc-notice--info .qc-notice-icon { color: var(--qc-info); }
.qc-notice a:not(.qc-btn) { color: var(--qc-brand-text); text-decoration: underline; }
.qc-notice.hidden { display: none; }

.qc-toast {
  position: fixed;
  z-index: var(--qc-z-toast);
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: var(--qc-space-2);
  max-width: min(420px, calc(100vw - 32px));
  padding: var(--qc-space-3) var(--qc-space-4);
  background: var(--qc-surface-raise);
  color: var(--qc-fg);
  border: 1px solid var(--qc-hairline);
  border-left: 3px solid var(--qc-hairline-strong);
  border-radius: var(--qc-radius-md);
  box-shadow: var(--qc-shadow-overlay);
  font-size: var(--qc-text-sm);
  line-height: 1.5;
  transition: opacity 300ms var(--qc-ease), transform 300ms var(--qc-ease);
}
.qc-toast > svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--qc-fg-muted); }
.qc-toast--ok { border-left-color: var(--qc-ok); }
.qc-toast--warn { border-left-color: var(--qc-warn); }
.qc-toast--err { border-left-color: var(--qc-err); }
.qc-toast--info { border-left-color: var(--qc-info); }
.qc-toast--ok > svg { color: var(--qc-ok); }
.qc-toast--warn > svg { color: var(--qc-warn); }
.qc-toast--err > svg { color: var(--qc-err); }
.qc-toast--info > svg { color: var(--qc-info); }
@media (max-width: 639px) {
  .qc-toast { left: 16px; right: 16px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .qc-toast { transition: none; }
}

.qc-input { box-sizing: border-box; min-height: 44px; line-height: 1.4; }
.qc-input::placeholder { color: var(--qc-fg-muted); opacity: 1; }
.qc-input:disabled { opacity: 0.45; cursor: not-allowed; }
.qc-input[aria-invalid="true"] { border-color: var(--qc-err); }
html[data-theme] .qc-input:not([type=checkbox]):not([type=radio]):not([type=range]) {
  background-color: var(--qc-surface-sunk);
  border-color: var(--qc-hairline);
  color: var(--qc-fg);
}
.qc-input--mono { font-family: var(--qc-mono); letter-spacing: 0.12em; }
.qc-input--prefix { padding-left: 28px; }

.qc-badge--ok,
.qc-badge--warn,
.qc-badge--err { white-space: nowrap; }

/* Key status chips: the backend still sends palette classes (text-green-600 bg-green-50 and friends).
   Inside console panels they become neutral chips whose text carries the status colour, which keeps
   every status at or above 4.5:1 in both themes. */
[data-theme] .panel-dark .qc-status.qc-status,
.qc-status.qc-status { background-color: var(--qc-hover); }
[data-theme] .panel-dark .qc-status.text-green-600, .qc-status.qc-status.text-green-600 { color: var(--qc-ok); }
[data-theme] .panel-dark .qc-status.text-red-600, .qc-status.qc-status.text-red-600 { color: var(--qc-err); }
[data-theme] .panel-dark .qc-status.text-orange-600, .qc-status.qc-status.text-orange-600 { color: var(--qc-warn); }
[data-theme] .panel-dark .qc-status.text-blue-600, .qc-status.qc-status.text-blue-600 { color: var(--qc-info); }
html:not([data-theme="dark"]) .qc-status.qc-status.text-green-600,
html:not([data-theme="dark"]) .panel-dark .qc-status.text-green-600 { color: color-mix(in srgb, var(--qc-ok) 82%, #000); }
html:not([data-theme="dark"]) .qc-status.qc-status.text-orange-600,
html:not([data-theme="dark"]) .panel-dark .qc-status.text-orange-600 { color: color-mix(in srgb, var(--qc-warn) 85%, #000); }
/* Cloud console fields keep their own sizing; the shared field height and disabled tone apply to the main console. */
.qc-cloud-root .qc-input { min-height: 0; line-height: inherit; }
.qc-cloud-root .qc-input:disabled { opacity: 1; cursor: auto; }

/* Console batch, census alignment (2026-10-29): the new console styles reuse values the site already has.
   A text-glyph icon button (the key row's menu dots) matches the row buttons beside it: 8px side padding and
   a 20px line, so it is 24px tall with a fine pointer and stays a 44px square on touch.
   The service status badge keeps neutral badge text; the status colour sits on its dot.
   A badge inside a heading keeps the badge line height instead of the heading's.
   On a wide window a text-link button sits on the text line like the links beside it.
   Console fields use the field border of the site's other inputs; cloud fields keep the hairline. */
.qc-icon-btn--text { padding: 0 8px; line-height: 20px; }
.qc-dot--ok { color: var(--qc-ok); }
.qc-dot--warn { color: var(--qc-warn); }
:is(h1, h2, h3, h4) > .qc-badge { line-height: 1.5; }
@media (pointer: fine) and (min-width: 1024px) {
  button.qc-text-link { padding-bottom: 0; }
}
html[data-theme] .qc-input:not([type=checkbox]):not([type=radio]):not([type=range]) {
  border-color: color-mix(in srgb, var(--qc-fg) 15%, transparent);
}
html[data-theme="light"] .qc-input:not([type=checkbox]):not([type=radio]):not([type=range]) {
  border-color: rgba(0, 0, 0, 0.10);
}
html[data-theme] .qc-cloud-root .qc-input:not([type=checkbox]):not([type=radio]):not([type=range]) {
  border-color: var(--qc-hairline);
}
/* Plan and pricing pages: shared refinements (inset panels, action rows, line length, small screens). */
/* An inner group inside a card is a borderless Well panel; compact padding for dense value blocks. */
.qc-panel--inset {
  border: 0;
  padding: var(--qc-space-2) var(--qc-space-3);
}
.qc-panel--inset .pv-strike { opacity: 1; }
/* Full-width pill: the single action at the end of a card or summary. */
/* Seven plan columns share one table: the action row keeps every label on one line
   (small pill at 14px with the compact 8px side padding already used by dense buttons). */
.qc-table-wrap .qc-table .qc-cmp-actions td {
  padding-left: var(--qc-space-1);
  padding-right: var(--qc-space-1);
}
.qc-cmp-actions .qc-btn {
  white-space: nowrap;
  padding-left: var(--qc-space-2);
  padding-right: var(--qc-space-2);
}
/* Pack cards sit four to a row from 1024px; long de / ru labels stay on one line. */
.qc-payg-pack .qc-btn {
  white-space: nowrap;
  padding-left: 0.75em;
  padding-right: 0.75em;
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .qc-payg-pack .qc-btn { font-size: var(--qc-text-sm); }
}
/* A pack locked by payg-avail.js (sold out / limit reached) shows a long restock sentence instead of the label:
   let it wrap inside the pill rather than overflow it (de at 375px pushed the page sideways, 10-29 WebKit check). */
.qc-btn[data-payg-locked="1"] {
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  height: auto;
  padding-top: 10px;
  padding-bottom: 10px;
}
/* The locked label carries the restock time, so it is drawn in Muted Ink on the Well colour at full opacity
   (payg-avail.js also sets an inline opacity, hence the important flag). */
.qc-btn[data-payg-locked="1"],
.qc-btn[data-payg-locked="1"]:hover {
  opacity: 1 !important;
  background: var(--qc-surface-sunk);
  color: var(--qc-fg-muted);
}
/* Readable measure for prose and footnotes on wide layouts. */
.qc-measure { max-width: 65ch; }
/* Placeholders use Muted Ink, at least 4.5:1 on Bench, Card White and Well. */
.qc-ph-muted::placeholder { color: var(--qc-fg-muted); opacity: 1; }
/* The models filter bar is sticky only when the screen has room for it. */
@media (max-width: 639px), (max-height: 700px) {
  .qc-models-tabbar { position: static; }
}
/* Rate meter: the gap pill and the head line keep the twelve pixel floor on phones. */
@media (max-width: 640px) {
  .pv-meter-gap,
  .pv-meter-head { font-size: var(--qc-text-xs); }
}
/* The featured badge never wraps. */
.qc-badge--brand { white-space: nowrap; }
/* A secondary line inside a no-wrap table cell may wrap, so badges in the row keep one line. */
.qc-cell-note { white-space: normal; }
/* Shared layout: keyboard focus, current page, touch targets, safe areas and paragraph wrapping.
   Focus: one ring for every link, button and field, shown for keyboard focus only. The selector has
   the specificity of a single pseudo-class, so components that draw their own ring (and fields whose
   utilities draw one on focus) keep theirs, and elements marked .outline-none keep opting out. The ring
   uses --qc-focus (brand text: deep terracotta in the light theme, the lighter one in the dark theme).
   Current page: the header item for the page being viewed reads in Ink with a terracotta underline;
   items inside the drop-down and the phone sub-menu are set in Ink only.
   Touch: header, footer and support-widget controls reach 44px on touch screens and windows narrower
   than 1024px; footer icons keep their resting positions and spacing.
   Safe areas: layers fixed to the bottom keep clear of the home indicator when the page is laid out
   under it; env() is 0 everywhere else, so nothing moves on other screens.
   Paragraphs in articles and marketing sections avoid a lone last word. */
:where(a, button, [role="button"], input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):where(:not(.outline-none)):focus-visible {
  outline: 2px solid var(--qc-focus);
  outline-offset: 2px;
}

.qc-nav-desktop > a[aria-current="page"]:not(:hover) > span,
.qc-nav-desktop > div > .is-current:not(:hover) > span,
.qc-nav-desktop a[aria-current="page"] .font-medium,
#qc-nav-mobile-panel > div > a[aria-current="page"] > span:not(.qc-nav-new),
#qc-nav-mobile-panel .is-current > span > span,
#qc-nav-mobile-panel a[aria-current="page"] .font-medium { color: var(--qc-fg); }
.qc-nav-desktop > a[aria-current="page"] > span,
.qc-nav-desktop > div > .is-current > span,
#qc-nav-mobile-panel > div > a[aria-current="page"] > span:not(.qc-nav-new),
#qc-nav-mobile-panel .is-current > span > span {
  text-decoration-line: underline;
  text-decoration-color: var(--qc-brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
body:has(.qc-hero--imaged) .qc-nav-overlay:not(.is-scrolled) .qc-nav-desktop > a[aria-current="page"] > span,
body:has(.qc-hero--imaged) .qc-nav-overlay:not(.is-scrolled) .qc-nav-desktop > div > .is-current > span { color: #ffffff; }

@media (pointer: coarse), (max-width: 1023px) {
  .qc-nav-burger > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
  }
  [data-theme] .qc-nav-desktop .qc-theme-toggle { width: 44px; height: 44px; }
  .qc-foot-socials { margin-left: -6px; }
  .qc-foot-social { min-width: 44px; min-height: 44px; }
  .qc-foot-social:not([hidden]) ~ .qc-foot-social:not([hidden]) { margin-left: 4px; }
  .qc-foot-links a { min-width: 44px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .qc-foot-bar { flex-direction: column; }
  .qc-foot-meta {
    margin-top: var(--qc-space-4);
    flex-wrap: wrap;
    justify-content: center;
  }
}

.qc-float-cta {
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body.qc-has-float-cta { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

:where(.qc-paper main, .qc-wrap, .qc-col) p { text-wrap: pretty; }
/* Plan-fit chooser: the four offers with who each fits, who it does not, and one next step (2026-10-28).
   One card, hairline-separated rows (2x2 from 900px), no icons, no colour blocks; links are text links. */
.qc-plan-fit-label { margin-bottom: var(--qc-space-3); }
.qc-plan-fit-rows { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--qc-space-4); }
.qc-plan-fit-row { min-width: 0; padding-top: var(--qc-space-4); border-top: 1px solid var(--qc-hairline); }
.qc-plan-fit-name {
  margin: 0 0 var(--qc-space-1);
  font-size: var(--qc-text-h3);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.010em;
  color: var(--qc-fg);
}
.qc-plan-fit-line {
  margin: 0;
  font-size: var(--qc-text-sm);
  line-height: 1.5;
  color: var(--qc-fg-body);
  overflow-wrap: break-word;
}
.qc-plan-fit-line--not { color: var(--qc-fg-muted); }
.qc-plan-fit-k { font-weight: 500; }
.qc-plan-fit-next { margin: var(--qc-space-1) 0 0; }
.qc-plan-fit .qc-text-link,
.qc-plan-fit-links .qc-text-link { font-size: var(--qc-text-sm); }
.qc-plan-fit-here { font-size: var(--qc-text-sm); font-weight: 500; color: var(--qc-fg-muted); }
.qc-plan-fit--compact { display: flex; flex-direction: column; gap: var(--qc-space-1); }
.qc-plan-fit-not { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--qc-space-4); }
.qc-plan-fit-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: var(--qc-space-5);
  margin-top: var(--qc-space-4);
  font-size: var(--qc-text-sm);
}
.qc-plan-fit-links-lead { color: var(--qc-fg-muted); }
@media (min-width: 900px) {
  .qc-plan-fit { padding: var(--qc-space-5); }
  .qc-plan-fit-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--qc-space-6); }
}
/* Plan-fit links keep a 44px touch target even when the label is a single short word. */
.qc-plan-fit .qc-text-link,
.qc-plan-fit-links .qc-text-link { min-width: 44px; justify-content: center; }

/* Dashboard docs card (components/_docs_links_console.html, docs_links_section.html with docs_variant = 'console'):
   one card, tools | FAQ in two columns >= 900px and one column below, plain Terracotta-text links, a hairline above
   the docs search / ask / all-docs row. */
.qc-docs-console-title {
  margin: 0 0 var(--qc-space-4);
  font-size: var(--qc-text-h3);
  font-weight: 600;
  line-height: 1.35;
  color: var(--qc-fg);
}
.qc-docs-console-cols { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--qc-space-5); }
.qc-docs-console-col { min-width: 0; }
.qc-docs-console-col .qc-metric-label { margin: 0 0 var(--qc-space-2); }
.qc-docs-console-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--qc-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.qc-docs-console-list--tools { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--qc-space-4); }
.qc-docs-console-list li { min-width: 0; }
.qc-docs-console .qc-text-link { font-size: var(--qc-text-sm); }
.qc-docs-console-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--qc-space-5);
  row-gap: var(--qc-space-1);
  margin: var(--qc-space-4) 0 0;
  padding-top: var(--qc-space-3);
  border-top: 1px solid var(--qc-hairline);
}
@media (min-width: 900px) {
  .qc-docs-console { padding: var(--qc-space-5); }
  .qc-docs-console-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--qc-space-6); }
}
/* On touch / < 1024px the links already carry a 44px target; the list gap would only stretch the rows. */
@media (pointer: coarse), (max-width: 1023px) {
  .qc-docs-console-list { row-gap: 0; }
  /* one-word labels (e.g. "Cline") would be narrower than the 44px touch target */
  .qc-docs-console .qc-text-link { min-width: 44px; }
}
/* ── Home key area (2026-10-29) ─────────────────────────────────────────────
   #product-lines on the home page: definition → spec strip → plan cards, each layer lighter than the one above.
   Rules are scoped to .qc-keyarea or use the new .qc-plan-row / .qc-line-head / .qc-line-body / .qc-chunk classes,
   which only this area uses; the shared .qc-lines / .qc-line / .qc-geo-* rules (main.css) and .qc-secondary elsewhere
   are untouched. Markup and text are unchanged apart from the wrappers named below. */

/* "a · b · c" strings, split by the qc_dots() macro: one chunk per item, the separator rides at the end of the
   item before it, so a line only breaks after a separator and never starts with "·". A chunk longer than the
   whole line (de / ru at 360px) still wraps inside itself instead of overflowing. */
.qc-chunk { display: inline-block; max-width: 100%; }
.qc-chunk-sep { white-space: nowrap; color: var(--qc-hairline-strong); }

/* 1. definition: the H2 is a small label, the definition sentence is the visual title */
.qc-keyarea .qc-geo { margin-bottom: 40px; }
.qc-keyarea .qc-geo-kicker {
  display: block;
  margin: 0 0 var(--qc-space-3);
  font-size: var(--qc-text-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--qc-fg-muted);
}
.qc-keyarea .qc-geo-kicker::before { content: none; }
.qc-keyarea .qc-geo-lead {
  max-width: 36em;
  margin: 0;
  font-size: var(--qc-text-h2);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--qc-fg);
  text-wrap: balance;
}
@media (min-width: 900px) {
  .qc-keyarea .qc-geo-lead { font-size: 28px; line-height: 1.25; }
}

/* 2. spec strip: a spec table, not cards. ≥1152 four columns with vertical hairlines; 768–1151 2×2 with a
   hairline cross; <768 label-left / value-right rows. */
.qc-keyarea .qc-geo-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: var(--qc-space-5) 0 0;
  border-top: 1px solid var(--qc-hairline);
  border-bottom: 1px solid var(--qc-hairline);
}
.qc-keyarea .qc-geo-fact {
  min-width: 0;
  padding: 20px var(--qc-space-5);
  border-top: 0;
  border-left: 1px solid var(--qc-hairline);
  font-size: var(--qc-text-body);
}
.qc-keyarea .qc-geo-fact:first-child { padding-left: 0; border-left: 0; }
.qc-keyarea .qc-geo-fact:last-child { padding-right: 0; }
.qc-keyarea .qc-geo-fact dt {
  margin: 0 0 var(--qc-space-2);
  font-size: var(--qc-text-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--qc-fg-muted);
}
html[lang^="ru"] .qc-keyarea .qc-geo-fact dt { text-transform: none; letter-spacing: 0.04em; }
.qc-keyarea .qc-geo-fact dd {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.qc-keyarea .qc-geo-val {
  max-width: 100%;
  font-size: var(--qc-text-body);
  font-weight: 500;
  line-height: 1.45;
  color: var(--qc-fg);
  text-wrap: balance;
}
.qc-keyarea .qc-geo-desc {
  max-width: 100%;
  font-size: var(--qc-text-sm);
  line-height: 1.5;
  color: var(--qc-fg-body);
  text-wrap: pretty;
}
.qc-keyarea .qc-geo-link {
  display: inline-block;
  max-width: 100%;
  min-height: 0;
  font-size: var(--qc-text-sm);
  font-weight: 500;
  line-height: 1.5;
  color: var(--qc-brand-text);
  text-decoration: none;
  border-bottom: 0;
}
.qc-keyarea .qc-geo-link:hover { color: var(--qc-fg); }
@media (pointer: coarse), (max-width: 1023px) {
  /* 44px target without pushing the strip apart: the padding is taken back by a negative margin */
  .qc-keyarea .qc-geo-link { min-height: 44px; padding: 11px 0; margin: -7px 0; }
}
@media (max-width: 1151px) {
  .qc-keyarea .qc-geo-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qc-keyarea .qc-geo-fact { border-left: 0; padding: 20px var(--qc-space-5) 20px 0; }
  .qc-keyarea .qc-geo-fact:nth-child(2n) {
    border-left: 1px solid var(--qc-hairline);
    padding-left: var(--qc-space-5);
    padding-right: 0;
  }
  .qc-keyarea .qc-geo-fact:nth-child(n+3) { border-top: 1px solid var(--qc-hairline); }
}
@media (max-width: 767px) {
  .qc-keyarea .qc-geo-facts { grid-template-columns: minmax(0, 1fr); }
  .qc-keyarea .qc-geo-fact,
  .qc-keyarea .qc-geo-fact:nth-child(2n) {
    display: grid;
    grid-template-columns: 7.5em minmax(0, 1fr);
    column-gap: var(--qc-space-3);
    align-items: baseline;
    padding: var(--qc-space-4) 0;
    border-left: 0;
  }
  html[lang^="zh"] .qc-keyarea .qc-geo-fact { grid-template-columns: 4em minmax(0, 1fr); }
  .qc-keyarea .qc-geo-fact + .qc-geo-fact { border-top: 1px solid var(--qc-hairline); }
  .qc-keyarea .qc-geo-fact dt { margin: 0; }
}

/* 3. plan cards: a primary row (personal plans, pay-as-you-go packs) and a lighter secondary row
   (team, partner, cloud). The whole card stays one link; hover only darkens the hairline. */
.qc-keyarea .qc-lines {
  display: flex;
  flex-direction: column;
  gap: var(--qc-space-4);
}
.qc-plan-row { display: grid; gap: var(--qc-space-4); min-width: 0; }
.qc-plan-row--primary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qc-plan-row--primary > :only-child { grid-column: 1 / -1; }
.qc-plan-row--secondary { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.qc-keyarea .qc-line {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--qc-space-2);
  min-width: 0;
  padding: var(--qc-space-4);
  color: inherit;
  text-decoration: none;
}
.qc-keyarea .qc-line:hover { color: inherit; border-color: var(--qc-hairline-strong); }
.qc-line-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: var(--qc-space-3);
  row-gap: 2px;
  min-width: 0;
}
.qc-line-head .qc-line-price { margin-left: auto; }
.qc-line-body { display: flex; flex-direction: column; gap: var(--qc-space-1); min-width: 0; }
.qc-keyarea .qc-line-name { font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--qc-fg); }
.qc-keyarea .qc-line-price {
  font-family: var(--qc-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--qc-text-body);
  font-weight: 500;
  color: var(--qc-fg);
  white-space: nowrap;
}
.qc-keyarea .qc-line-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--qc-fg-body);
  overflow-wrap: anywhere;
}
.qc-keyarea .qc-line .qc-text-link {
  align-self: flex-start;
  margin-top: auto;
  font-size: var(--qc-text-sm);
}
@media (min-width: 900px) {
  .qc-plan-row--primary > .qc-line { padding: var(--qc-space-5); }
}
@media (max-width: 767px) {
  .qc-plan-row--primary { grid-template-columns: minmax(0, 1fr); }
}
.qc-plan-row--secondary .qc-line-name { font-size: var(--qc-text-body); }
.qc-plan-row--secondary .qc-line-desc { font-size: var(--qc-text-sm); line-height: 1.5; }
/* secondary-row prices ("Tier E · min. top-up $428", "Ab $240/Monat pro Einheit") are longer than the primary ones:
   on phones they wrap (after a "·" first, via qc_dots) instead of running into the "Learn more" column */
.qc-plan-row--secondary .qc-line-price { font-size: var(--qc-text-sm); white-space: normal; }
.qc-line-sub { font-size: var(--qc-text-sm); font-weight: 500; line-height: 1.5; color: var(--qc-fg); }
.qc-line-head .qc-badge { align-self: center; }
@media (max-width: 1023px) {
  /* secondary row becomes a hairline list: name + description left, the link on the right, whole row clickable */
  .qc-plan-row--secondary {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-top: 1px solid var(--qc-hairline);
  }
  .qc-plan-row--secondary > .qc-line {
    flex-direction: row;
    align-items: center;
    gap: var(--qc-space-4);
    min-height: 56px;
    padding: var(--qc-space-3) 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--qc-hairline);
    border-radius: 0;
  }
  .qc-plan-row--secondary .qc-line-body { flex: 1 1 auto; }
  .qc-plan-row--secondary .qc-line-price { margin-left: 0; }   /* list row: price follows the name, left-aligned when it wraps */
  .qc-plan-row--secondary .qc-line .qc-text-link {
    flex: 0 0 auto;
    align-self: center;
    margin-top: 0;
    white-space: nowrap;
  }
}

/* /pricing two-question chooser (#choose) and product-line comparison (#lines), added 2026-11-07.
   Existing tokens only. The option row is the same segmented control as the cloud guide (selected cell filled with the
   brand colour, 44px touch targets); result cards are plain qc-card with a full-width pill CTA. Below 768px the comparison
   table becomes one vertical card per product line from the same markup: the table turns into a single-column grid,
   rows into display:contents, cells are ordered by data-line and each value gets its row name from data-label. */
.qc-pchoose { max-width: 64rem; margin: 0 auto; min-width: 0; }
.qc-pchoose-q { margin: 0 0 var(--qc-space-4); min-width: 0; }
.qc-pchoose-q[hidden],
.qc-pchoose-result[hidden] { display: none; }
.qc-pchoose-qlabel { margin: 0 0 var(--qc-space-2); font-size: var(--qc-text-sm); font-weight: 600; color: var(--qc-fg); }
.qc-pchoose-opts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
  background: var(--qc-surface-sunk);
}
.qc-pchoose-opt {
  min-height: 44px;
  min-width: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: calc(var(--qc-radius-md) - 3px);
  background: transparent;
  color: var(--qc-fg-body);
  font-family: inherit;
  font-size: var(--qc-text-sm);
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background-color var(--qc-dur-color) var(--qc-ease), color var(--qc-dur-color) var(--qc-ease);
}
.qc-pchoose-opt:hover { background: var(--qc-hover); color: var(--qc-fg); }
.qc-pchoose-opt[aria-pressed="true"] { background: var(--qc-brand); color: var(--qc-brand-on); }
.qc-pchoose-opt:focus-visible { outline: 2px solid var(--qc-focus); outline-offset: 2px; }
@media (max-width: 639px) { .qc-pchoose-opts { grid-template-columns: minmax(0, 1fr); } }
.qc-pchoose-results { margin-top: var(--qc-space-5); }
.qc-pchoose-result { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--qc-space-4); }
@media (min-width: 768px) {
  .qc-pchoose-result { max-width: 36rem; margin-left: auto; margin-right: auto; }
  .qc-pchoose-result--pair { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.qc-pchoose-card { display: flex; flex-direction: column; gap: var(--qc-space-1); min-width: 0; padding: var(--qc-space-5); }
.qc-pchoose-kicker { margin: 0; }
.qc-pchoose-name { margin: 0; font-size: var(--qc-text-h3); font-weight: 600; color: var(--qc-fg); }
.qc-pchoose-price {
  margin: var(--qc-space-1) 0 0;
  font-family: var(--qc-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--qc-text-h2);
  font-weight: 700;
  line-height: 1.2;
  color: var(--qc-fg);
  overflow-wrap: anywhere;
}
.qc-pchoose-meta { margin: 0; font-size: var(--qc-text-sm); line-height: 1.5; color: var(--qc-fg-body); }
.qc-pchoose-why { margin: var(--qc-space-2) 0 0; font-size: var(--qc-text-sm); line-height: 1.6; color: var(--qc-fg-body); }
.qc-pchoose-note { margin: 0; font-size: var(--qc-text-xs); line-height: 1.6; color: var(--qc-fg-muted); }
.qc-pchoose-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--qc-space-3);
  margin-top: auto;
  padding-top: var(--qc-space-4);
}
.qc-pchoose-actions .qc-btn { white-space: normal; text-align: center; }
.qc-pchoose-actions .qc-text-link { font-size: var(--qc-text-sm); }

.qc-plines { table-layout: fixed; }
.qc-plines caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.qc-plines th,
.qc-plines td { vertical-align: top; font-size: var(--qc-text-sm); line-height: 1.55; overflow-wrap: anywhere; hyphens: auto; }
.qc-plines thead th { font-size: var(--qc-text-body); font-weight: 600; color: var(--qc-fg); }
.qc-plines .qc-plines-corner { width: 15%; }
.qc-plines thead .qc-plines-corner { background: var(--qc-surface-sunk); border-bottom: 1px solid var(--qc-hairline); }
.qc-plines tbody th[scope="row"] { font-weight: 500; color: var(--qc-fg-muted); background: transparent; }
.qc-plines tr[data-plines-row="from"] td { font-weight: 600; color: var(--qc-fg); }
.qc-plines td.qc-plines-span {
  background: var(--qc-surface-2);
  color: var(--qc-fg-body);
}
.qc-plines-sub { display: block; margin-top: 2px; font-size: var(--qc-text-xs); font-weight: 400; color: var(--qc-fg-muted); }
.qc-plines-cta td { border-bottom: 0; padding-top: var(--qc-space-3); }
.qc-plines-cta .qc-btn { white-space: normal; text-align: center; }
@media (max-width: 767px) {
  .qc-plines { display: grid; grid-template-columns: minmax(0, 1fr); }
  .qc-plines thead,
  .qc-plines tbody,
  .qc-plines tr { display: contents; }
  .qc-plines .qc-plines-corner,
  .qc-plines tbody th[scope="row"] { display: none; }
  .qc-plines [data-line] {
    display: block;
    min-width: 0;
    padding: var(--qc-space-2) var(--qc-space-4);
    border-left: 1px solid var(--qc-hairline);
    border-right: 1px solid var(--qc-hairline);
    background: var(--qc-surface-raise);
  }
  .qc-plines thead th[data-line] {
    padding-top: var(--qc-space-4);
    border-top: 1px solid var(--qc-hairline);
    border-radius: var(--qc-radius-md) var(--qc-radius-md) 0 0;
    font-size: var(--qc-text-h3);
  }
  .qc-plines tbody td[data-line]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: var(--qc-text-xs);
    font-weight: 500;
    color: var(--qc-fg-muted);
  }
  .qc-plines .qc-plines-cta td[data-line] {
    margin-bottom: var(--qc-space-4);
    padding-top: var(--qc-space-3);
    padding-bottom: var(--qc-space-4);
    border-bottom: 1px solid var(--qc-hairline);
    border-radius: 0 0 var(--qc-radius-md) var(--qc-radius-md);
  }
  .qc-plines .qc-plines-cta td[data-line]::before { content: none; }
  .qc-plines [data-line="personal"] { order: 1; }
  .qc-plines [data-line="payg"] { order: 2; }
  .qc-plines [data-line="team"] { order: 3; }
  .qc-plines [data-line="partner"] { order: 4; }
  .qc-plines [data-line="all"] {
    order: 5;
    padding: var(--qc-space-3) var(--qc-space-4);
    border-top: 1px solid var(--qc-hairline);
    border-bottom: 1px solid var(--qc-hairline);
    border-radius: var(--qc-radius-md);
    background: var(--qc-surface-raise);
  }
}

/* Let the mobile nav panel scroll inside the viewport so the sign-in / sign-up
   buttons at its bottom stay reachable. Scoped to .qc-nav-overlay (the fixed
   top-0 nav); pages that scroll with the document need no inner scroll box.
   The first vh line is the fallback for browsers without dvh; the rule has no
   direction-dependent property, so the RTL build keeps it verbatim. */
@media (max-width: 767.98px) {
  .qc-nav-mobile,
  .qc-nav-overlay #qc-nav-mobile-panel {
    max-height: calc(100vh - 4.5rem);
    max-height: calc(100dvh - 4.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}


/* Balance line breaks in content-area headings so the last line has no orphan.
   Zero specificity (:where), so any existing rule still wins; .qc-hero-title and
   .qc-section-title already carry the same declaration. */
:where(main) :where(h1, h2) { text-wrap: balance; }

/* Hide homepage hero uptime kicker at xl where navbar already shows the uptime badge. */
@media (min-width: 1280px) {
  .qc-hero-kicker--mobile-only { display: none; }
}

/* Models toolbar: clear search button and 1-click Copy Model ID button. */
.qc-models-search-input { padding-right: 2.25rem; }
.qc-models-search-clear {
  position: absolute;
  right: 0.375rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease;
}
.qc-models-search-clear:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
}
html[data-theme="light"] .qc-ink .qc-models-search-clear { color: var(--qc-fg-secondary); }
html[data-theme="light"] .qc-ink .qc-models-search-clear:hover {
  color: var(--qc-fg);
  background: rgba(0, 0, 0, 0.06);
}
.qc-model-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.25rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.65);
  vertical-align: middle;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}
.qc-model-copy-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}
.qc-model-copy-btn.is-copied {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.14);
}
html[data-theme="light"] .qc-ink .qc-model-copy-btn {
  color: var(--qc-fg-secondary);
  border-color: var(--qc-hairline);
  background: rgba(0, 0, 0, 0.03);
}
html[data-theme="light"] .qc-ink .qc-model-copy-btn:hover {
  color: var(--qc-fg);
  background: rgba(0, 0, 0, 0.07);
}
html[data-theme="light"] .qc-ink .qc-model-copy-btn.is-copied {
  color: #047857;
  border-color: rgba(4, 120, 87, 0.35);
  background: rgba(16, 185, 129, 0.12);
}

/* Pricing duration selector: spacing and compact discount badge without neighbour overlap. */
.qc-dur-grid {
  row-gap: 0.875rem;
  column-gap: 0.5rem;
  padding-top: 0.375rem;
}
.qc-dur-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.375rem 0.25rem;
}
.qc-dur-badge {
  position: absolute;
  top: -0.55rem;
  right: 0.2rem;
  max-width: calc(100% - 0.2rem);
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  line-height: 1.2;
  padding: 1px 5px;
  border-radius: 9999px;
  background: #ef4444;
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}

/* SEO skeleton section jump pills and structured prose formatting. */
.qc-seo-jumpbar {
  border-bottom: 1px solid var(--qc-hairline, rgba(26, 22, 19, 0.10));
  padding: 0.625rem 0;
}
.qc-seo-jumps {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  scrollbar-width: none;
}
.qc-seo-jumps::-webkit-scrollbar { display: none; }
@media (max-width: 767px) {
  .qc-seo-jumps { justify-content: flex-start; }
}
.qc-seo-jump {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--qc-fg-body, #374151);
  background: var(--qc-surface-2, #f3f4f6);
  border: 1px solid var(--qc-hairline, rgba(26, 22, 19, 0.10));
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}
.qc-seo-jump:hover {
  color: var(--qc-brand-text);
  border-color: var(--qc-brand);
}
.qc-seo-sec { scroll-margin-top: 84px; }
.qc-prose-steps {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.625rem;
}
.qc-prose-step {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}
.qc-prose-step-num {
  flex: 0 0 auto;
  min-width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.15rem;
  padding: 0 0.35rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--qc-brand, #d97757) 15%, transparent);
  color: var(--qc-brand-text, #a8461f);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
.qc-prose-code {
  font-family: var(--qc-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.875em;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  background: color-mix(in srgb, var(--qc-fg, #1A1613) 8%, transparent);
  color: inherit;
  overflow-wrap: anywhere;
}
.qc-prose-p + .qc-prose-p { margin-top: 0.875rem; }

/* Light-first console design layer (scoped to console pages via data-qc-console="1") */
html[data-theme="light"]:has([data-qc-console="1"]),
:root:not([data-theme="dark"]):has([data-qc-console="1"]) {
  --qc-surface-ground: #F6F4F0;
  --qc-surface-raise: #FFFFFF;
  --qc-surface-sunk: #F3F0EA;
  --qc-surface-0: #F6F4F0;
  --qc-surface-1: #FFFFFF;
  --qc-surface-2: #F3F0EA;
  --qc-bg: #F6F4F0;
  --qc-bg-subtle: #F3F0EA;
  --qc-fg: #1A1613;
  --qc-fg-body: #3F3832;
  --qc-fg-muted: #686059;
  --qc-fg-secondary: #686059;
  --qc-fg-tertiary: #686059;
  --qc-hairline: rgba(28, 24, 20, 0.09);
  --qc-hairline-strong: rgba(28, 24, 20, 0.17);
  --qc-brand: #B84B27;
  --qc-brand-hover: #A13E1E;
  --qc-brand-on: #FFFFFF;
  --qc-brand-fill: #B84B27;
  --qc-brand-fill-hover: #A13E1E;
  --qc-brand-text: #B24624;
  --qc-brand-text-hover: #96381A;
  --qc-brand-text-on-tint: #B24624;
  --qc-brand-tint: #FDF5F1;
  --qc-brand-border: rgba(184, 75, 39, 0.36);
  --qc-focus: #B24624;
  --qc-hover: rgba(26, 22, 19, 0.04);
  --qc-active: rgba(26, 22, 19, 0.08);
  --qc-ok: #046C4E;
  --qc-ok-bg: #ECFDF5;
  --qc-ok-border: rgba(4, 120, 87, 0.22);
  --qc-warn: #9A5207;
  --qc-warn-bg: #FFFBEB;
  --qc-warn-border: rgba(180, 83, 9, 0.28);
  --qc-err: #B91C1C;
  --qc-err-bg: #FEF2F2;
  --qc-err-border: rgba(185, 28, 28, 0.22);
  --qc-info: #1D4ED8;
  --qc-info-bg: #EFF6FF;
  --qc-info-border: rgba(29, 78, 216, 0.20);
  --qc-console-sunk-strong: #E9E4DB;
  --qc-console-nav-bg: rgba(255, 255, 255, 0.90);
  --qc-console-subnav-bg: rgba(255, 255, 255, 0.95);
  --qc-console-hero-bg: #FDFBF8;
  --qc-console-pill-bg: rgba(255, 255, 255, 0.94);
  --qc-console-pill-border: rgba(28, 24, 20, 0.11);
  --qc-console-pill-shadow: 0 1px 2px rgba(26, 22, 19, 0.05);
  --qc-console-card-shadow: 0 1px 2px rgba(26, 22, 19, 0.04), 0 4px 14px rgba(26, 22, 19, 0.03);
  --qc-console-card-hover-shadow: 0 2px 6px rgba(26, 22, 19, 0.06), 0 10px 24px rgba(26, 22, 19, 0.05);
  --qc-console-code-bg: #F3F0EA;
  --qc-console-code-border: rgba(28, 24, 20, 0.11);
  --qc-console-footer-bg: #EFECE6;
  --qc-nav-scrolled-bg: rgba(255, 255, 255, 0.92);
  --qc-nav-scrolled-line: rgba(28, 24, 20, 0.09);
}

html[data-theme="dark"]:has([data-qc-console="1"]) {
  --qc-brand-border: rgba(227, 154, 130, 0.42);
  --qc-ok-bg: rgba(110, 231, 183, 0.10);
  --qc-ok-border: rgba(110, 231, 183, 0.24);
  --qc-warn-bg: rgba(252, 211, 77, 0.10);
  --qc-warn-border: rgba(252, 211, 77, 0.28);
  --qc-err-bg: rgba(252, 165, 165, 0.10);
  --qc-err-border: rgba(252, 165, 165, 0.26);
  --qc-info-bg: rgba(147, 197, 253, 0.10);
  --qc-info-border: rgba(147, 197, 253, 0.24);
  --qc-console-sunk-strong: #26211E;
  --qc-console-nav-bg: rgba(15, 13, 12, 0.86);
  --qc-console-subnav-bg: rgba(15, 13, 12, 0.92);
  --qc-console-hero-bg: #0F0D0C;
  --qc-console-pill-bg: rgba(23, 20, 18, 0.82);
  --qc-console-pill-border: rgba(255, 255, 255, 0.12);
  --qc-console-pill-shadow: none;
  --qc-console-card-shadow: none;
  --qc-console-card-hover-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  --qc-console-code-bg: #0B0A09;
  --qc-console-code-border: rgba(255, 255, 255, 0.10);
  --qc-console-footer-bg: #0A0908;
}

/* Native light and dark chrome: navbar, subnav, hero, footer */
html:has([data-qc-console="1"]) .qc-nav-overlay {
  background: var(--qc-console-nav-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--qc-hairline);
}

html:has([data-qc-console="1"]) .qc-subnav {
  background: var(--qc-console-subnav-bg);
  border-bottom: 1px solid var(--qc-hairline);
}

html:has([data-qc-console="1"]) .qc-subnav a.is-active,
html:has([data-qc-console="1"]) .qc-subnav a[aria-current="true"] {
  color: var(--qc-fg);
  font-weight: 600;
}

html[data-theme]:has([data-qc-console="1"]) footer.qc-ink,
html[data-theme]:has([data-qc-console="1"]) footer.qc-ink.bg-ink-950 {
  background-color: var(--qc-console-footer-bg);
  border-top-color: var(--qc-hairline);
}

/* Sunlit ivory hero in light mode, seamless dark copper hero in dark mode */
[data-theme] .qc-ink [data-qc-console="1"] .qc-console-hero,
[data-theme] .qc-ink [data-qc-console="1"] .qc-console-hero.bg-ink-950 {
  background-color: var(--qc-console-hero-bg);
  border-bottom: 1px solid var(--qc-hairline);
}

html[data-theme="light"] [data-qc-console="1"] .qc-console-hero .qc-console-hero-glow,
:root:not([data-theme="dark"]) [data-qc-console="1"] .qc-console-hero .qc-console-hero-glow {
  display: none;
}

[data-qc-console="1"] .qc-console-hero .qc-console-hero-art {
  background-image: url("/static/img/hero-dashboard-light-1280.webp");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

html[data-theme="dark"] [data-qc-console="1"] .qc-console-hero .qc-console-hero-art {
  background-image: url("/static/img/hero-dashboard-1280.webp");
}

html[data-theme="dark"] [data-qc-console="1"] .qc-console-hero .qc-console-hero-art--subscribe {
  background-image: url("/static/img/hero-subscribe-1152.webp");
}

@media (max-width: 960px) {
  [data-qc-console="1"] .qc-console-hero .qc-console-hero-art {
    background-image: url("/static/img/hero-dashboard-light-960.webp");
  }

  html[data-theme="dark"] [data-qc-console="1"] .qc-console-hero .qc-console-hero-art {
    background-image: url("/static/img/hero-dashboard-960.webp");
  }

  html[data-theme="dark"] [data-qc-console="1"] .qc-console-hero .qc-console-hero-art--subscribe {
    background-image: url("/static/img/hero-subscribe-960.webp");
  }
}

@media (max-width: 640px) {
  [data-qc-console="1"] .qc-console-hero .qc-console-hero-art {
    background-image: url("/static/img/hero-dashboard-light-640.webp");
  }

  html[data-theme="dark"] [data-qc-console="1"] .qc-console-hero .qc-console-hero-art {
    background-image: url("/static/img/hero-dashboard-640.webp");
  }

  html[data-theme="dark"] [data-qc-console="1"] .qc-console-hero .qc-console-hero-art--subscribe {
    background-image: url("/static/img/hero-subscribe-640.webp");
  }
}

[data-qc-console="1"] .qc-console-hero .qc-console-hero-veil {
  background: linear-gradient(to right, #FDFBF8 0%, rgba(253, 251, 248, 0.92) 48%, rgba(253, 251, 248, 0.22) 100%);
}

html[data-theme="dark"] [data-qc-console="1"] .qc-console-hero .qc-console-hero-veil {
  background: linear-gradient(to right, #0F0D0C 0%, rgba(15, 13, 12, 0.84) 46%, rgba(15, 13, 12, 0.20) 100%);
}

html[data-theme] .qc-ink [data-qc-console="1"] .qc-console-hero .qc-dash-userbar > div:not(.qc-keep) {
  background-color: var(--qc-console-pill-bg);
  border: 1px solid var(--qc-console-pill-border);
  box-shadow: var(--qc-console-pill-shadow);
}

html[data-theme="light"] .qc-ink [data-qc-console="1"] .qc-console-hero .qc-dash-userbar > div:first-child > div:first-child:not(.qc-keep),
:root:not([data-theme="dark"]) .qc-ink [data-qc-console="1"] .qc-console-hero .qc-dash-userbar > div:first-child > div:first-child:not(.qc-keep) {
  background-color: var(--qc-brand-tint);
  border: 1px solid rgba(184, 75, 39, 0.20);
  color: var(--qc-brand-text);
}

html[data-theme="light"] .qc-ink [data-qc-console="1"] .qc-console-hero .qc-dash-userbar > div:first-child > div:first-child svg,
:root:not([data-theme="dark"]) .qc-ink [data-qc-console="1"] .qc-console-hero .qc-dash-userbar > div:first-child > div:first-child svg {
  color: var(--qc-brand-text);
}

html[data-theme] .qc-ink [data-qc-console="1"] .qc-console-hero .qc-dash-userbar .qc-btn--secondary {
  background-color: var(--qc-surface-1);
  border-color: var(--qc-hairline-strong);
  color: var(--qc-fg);
  box-shadow: var(--qc-console-pill-shadow);
}

html[data-theme] .qc-ink [data-qc-console="1"] .qc-console-hero .qc-dash-userbar .qc-btn--secondary:hover {
  background-color: var(--qc-surface-2);
  border-color: var(--qc-brand-border);
}

/* Connected pages (/subscribe, /recharge, /billing) keep golden hero_user_bar markup while matching Light-First pills */
html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] .qc-console-hero .qc-dash-userbar > a.qc-dash-action:not(.qc-btn):not(.bg-indigo-600) {
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  padding-block: 0;
  padding-inline: 18px;
  background-color: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline-strong);
  color: var(--qc-fg);
  font-weight: 600;
  box-shadow: var(--qc-console-pill-shadow);
}

html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] .qc-console-hero .qc-dash-userbar > a.qc-dash-action:not(.qc-btn):not(.bg-indigo-600):hover {
  background-color: var(--qc-surface-2);
  border-color: var(--qc-brand-border);
  color: var(--qc-fg);
}

/* Primary action contrast and elevated card hierarchy */
html[data-theme] .qc-ink [data-qc-console="1"] .qc-btn--primary {
  background-color: var(--qc-brand);
  color: var(--qc-brand-on);
  border-color: transparent;
}

html[data-theme] .qc-ink [data-qc-console="1"] .qc-btn--primary:hover {
  background-color: var(--qc-brand-hover);
  color: var(--qc-brand-on);
}

html[data-theme] .qc-ink [data-qc-console="1"] [data-v3-expired-plan="1"] .qc-onb .qc-btn--primary {
  background-color: transparent;
  border-color: var(--qc-hairline-strong);
  color: var(--qc-fg);
}

html[data-theme] .qc-ink [data-qc-console="1"] [data-v3-expired-plan="1"] .qc-onb .qc-btn--primary:hover {
  background-color: var(--qc-hover);
  color: var(--qc-fg);
}

html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] .bg-ink-900:not(.qc-keep):not(.qc-keep *),
html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] .qc-card:not(.qc-keep):not(.qc-keep *) {
  background-color: var(--qc-surface-1);
  border-color: var(--qc-hairline);
  box-shadow: var(--qc-console-card-shadow);
}

[data-qc-console="1"] #api-keys > div:first-child {
  padding-bottom: var(--qc-space-4);
  border-bottom: 1px solid var(--qc-hairline);
}

/* Plan cards sit as distinct raised cards with warm stone recessed wells */
html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] [data-kv2-card]:not(.qc-keep):not(.qc-keep *) {
  background-color: var(--qc-surface-1);
  border-color: var(--qc-hairline-strong);
  box-shadow: var(--qc-console-card-shadow);
  transition: border-color var(--qc-dur-color) var(--qc-ease), box-shadow var(--qc-dur-color) var(--qc-ease);
}

html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] [data-kv2-card]:not(.qc-keep):not(.qc-keep *):hover {
  border-color: var(--qc-brand-border);
  box-shadow: var(--qc-console-card-hover-shadow);
}

html[data-theme="dark"]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] [data-kv2-card]:not(.qc-keep):not(.qc-keep *) {
  background-color: #1B1715;
}

html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] .qc-kv2-stats > .qc-panel:not(.qc-keep):not(.qc-keep *),
html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] .qc-panel:not(.qc-keep):not(.qc-keep *) {
  background-color: var(--qc-surface-2);
  border: 1px solid var(--qc-hairline);
  box-shadow: none;
}

html[data-theme] .qc-ink [data-qc-console="1"] .qc-kv2-stats [role="progressbar"]:not(.qc-keep) {
  background-color: var(--qc-console-sunk-strong);
}

html[data-theme] .qc-ink [data-qc-console="1"] .qc-kv2-stats [role="progressbar"] > .bg-qcode-primary:not(.qc-keep) {
  background-color: var(--qc-brand);
}

/* Light-native code, key, and CLI wells (no dark patches on light theme; outranks theme.css light card override) */
html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] pre:not(.qc-keep):not(.qc-keep *),
html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] .qc-kv2-keyrow:not(.qc-keep):not(.qc-keep *),
html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] .qc-kv2-key:not(.qc-keep):not(.qc-keep *),
html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] [data-kv2-quick] code:not(.qc-keep):not(.qc-keep *),
html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] #api-access .bg-white\/5.rounded-lg:not(.qc-keep):not(.qc-keep *),
html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] .qc-v3-addr-row:not(.qc-keep):not(.qc-keep *),
html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] .qc-console-code:not(.qc-keep):not(.qc-keep *) {
  background-color: var(--qc-console-code-bg);
  border-color: var(--qc-console-code-border);
  box-shadow: none;
  color: var(--qc-fg);
}

[data-qc-console="1"] .qc-console-code {
  unicode-bidi: isolate;
}

html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] #api-access .qc-v3-addr-label:not(.qc-badge--brand) {
  background-color: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline);
  color: var(--qc-fg-muted);
}

html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] pre:not(.qc-keep):not(.qc-keep *) {
  border: 1px solid var(--qc-console-code-border);
}

html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] .qc-kv2-keyrow:not(.qc-keep):not(.qc-keep *) {
  padding: var(--qc-space-3);
  border-radius: 10px;
}

html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] .qc-kv2-key:not(.qc-keep):not(.qc-keep *) {
  background-color: var(--qc-surface-1);
  border-color: var(--qc-hairline);
  padding: 6px 10px;
  border-radius: 8px;
}

html[data-theme="dark"]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] .qc-kv2-key:not(.qc-keep):not(.qc-keep *) {
  background-color: var(--qc-console-code-bg);
}

/* Semantic banners, 95% daily limit inline bar, and payment retry line */
html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] .qc-notice--warn:not(.qc-keep):not(.qc-keep *),
html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] [data-v3-renew-expired]:not(.qc-keep):not(.qc-keep *),
html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] .qc-ph-payfail:not(.qc-keep):not(.qc-keep *) {
  background-color: var(--qc-warn-bg);
  border-color: var(--qc-warn-border);
  box-shadow: none;
}

html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] .qc-notice--ok:not(.qc-keep):not(.qc-keep *) {
  background-color: var(--qc-ok-bg);
  border-color: var(--qc-ok-border);
  box-shadow: none;
}

html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] .qc-notice--err:not(.qc-keep):not(.qc-keep *) {
  background-color: var(--qc-err-bg);
  border-color: var(--qc-err-border);
  box-shadow: none;
}

html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] .qc-notice--info:not(.qc-keep):not(.qc-keep *) {
  background-color: var(--qc-info-bg);
  border-color: var(--qc-info-border);
  box-shadow: none;
}

html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] .qc-ph-today:not(.qc-keep):not(.qc-keep *) {
  background-color: var(--qc-warn-bg);
  border: 1px solid var(--qc-warn-border);
  border-radius: 8px;
  padding: 8px 10px;
}

/* Keyless guided studio: featured starter card and 3-step indicator */
html[data-theme] .qc-ink [data-qc-console="1"] #choose-plan .qc-onb-card:not(.qc-keep) {
  background-color: var(--qc-surface-1);
  border-color: var(--qc-hairline-strong);
  box-shadow: var(--qc-console-card-shadow);
}

html[data-theme] .qc-ink [data-qc-console="1"] #choose-plan .qc-onb-card:has(.qc-onb-cta--primary):not(.qc-keep) {
  background-color: var(--qc-brand-tint);
  border: 1.5px solid var(--qc-brand-border);
}

[data-qc-console="1"] .qc-v3-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
}

[data-qc-console="1"] .qc-v3-step-num {
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  background-color: var(--qc-surface-2);
  color: var(--qc-fg-muted);
  border: 1px solid var(--qc-hairline-strong);
}

[data-qc-console="1"] .qc-v3-step--active .qc-v3-step-num {
  background-color: var(--qc-brand);
  color: var(--qc-brand-on);
  border-color: transparent;
}

[data-qc-console="1"] .qc-v3-step--active > span:last-child {
  color: var(--qc-fg);
  font-weight: 600;
}

/* Developer dock: quick access card aligned flush at top of sidebar */
[data-qc-console="1"] .qc-v3-dock-access > #api-access {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

[data-qc-console="1"] .qc-v3-dock-access #api-access .text-blue-600 {
  color: var(--qc-brand-text);
}

[data-qc-console="1"] .qc-v3-dock-access [data-kv2-quick] {
  margin-top: 0;
}

@media (max-width: 1023px) {
  [data-qc-console="1"] .qc-v3-grid > .qc-v3-main,
  [data-qc-console="1"] .qc-v3-grid > .qc-v3-dock {
    display: contents;
  }

  [data-qc-console="1"] .qc-v3-grid > .qc-v3-main > *,
  [data-qc-console="1"] .qc-v3-grid > .qc-v3-dock > * {
    margin-top: 0;
    min-width: 0;
  }

  [data-qc-console="1"] .qc-v3-lead { order: 10; }
  [data-qc-console="1"] .qc-v3-dock-access { order: 20; }
  [data-qc-console="1"] .qc-v3-body { order: 30; }
  [data-qc-console="1"] .qc-v3-dock-rest { order: 40; }
}

@media (min-width: 1024px) {
  [data-qc-console="1"] .qc-v3-dock .qc-v3-addr-row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 6px;
  }
  [data-qc-console="1"] .qc-v3-dock .qc-v3-addr-label {
    grid-column: 1 / -1;
    justify-self: start;
    min-inline-size: 0;
  }
  [data-qc-console="1"] .qc-v3-dock [data-kv2-quick] .flex.sm\:flex-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  [data-qc-console="1"] .qc-v3-dock [data-kv2-quick] .flex.sm\:flex-row > code {
    margin-inline-end: 0;
  }
  [data-qc-console="1"] .qc-v3-dock [data-kv2-quick] .flex.sm\:flex-row > .qc-btn {
    width: 100%;
  }
}

/* Clean neutral docs grid without an orange link wall */
[data-qc-console="1"] #docs-resources .qc-docs-console-list a.qc-text-link {
  color: var(--qc-fg-body);
}

[data-qc-console="1"] #docs-resources .qc-docs-console-list a.qc-text-link:hover {
  color: var(--qc-brand-text);
}

/* Status pills inside console */
[data-qc-console="1"] .qc-status.text-green-600 {
  background-color: var(--qc-ok-bg);
  border: 1px solid var(--qc-ok-border);
  color: var(--qc-ok);
}

[data-qc-console="1"] .qc-status.text-orange-600 {
  background-color: var(--qc-warn-bg);
  border: 1px solid var(--qc-warn-border);
  color: var(--qc-warn);
}

[data-qc-console="1"] .qc-status.text-red-600 {
  background-color: var(--qc-err-bg);
  border: 1px solid var(--qc-err-border);
  color: var(--qc-err);
}

[data-qc-console="1"] .qc-status.text-blue-600 {
  background-color: var(--qc-info-bg);
  border: 1px solid var(--qc-info-border);
  color: var(--qc-info);
}

/* Connected conversion, billing, and token pages inside Light-First console */
html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] .qc-sub-tabs:not(.qc-keep):not(.qc-keep *) {
  background-color: var(--qc-surface-2);
  border: 1px solid var(--qc-hairline);
  box-shadow: none;
}

[data-qc-console="1"] .bg-qcode-primary\/15 {
  background-color: var(--qc-brand-tint);
}

html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] .qc-sub-enterprise:not(.qc-keep):not(.qc-keep *) {
  background: var(--qc-surface-2);
  border-color: var(--qc-hairline-strong);
  box-shadow: var(--qc-console-card-shadow);
}

html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] .qc-sub-enterprise:not(.qc-keep):not(.qc-keep *):hover {
  border-color: var(--qc-brand-border);
  box-shadow: var(--qc-console-card-hover-shadow);
}

[data-qc-console="1"] .qc-sub-enterprise h3,
[data-qc-console="1"] .qc-sub-enterprise .qc-sub-enterprise-price {
  color: var(--qc-fg);
}

[data-qc-console="1"] .qc-sub-enterprise .qc-sub-enterprise-hint {
  color: var(--qc-fg-muted);
}

[data-qc-console="1"] .qc-sub-enterprise li {
  color: var(--qc-fg-body);
}

[data-qc-console="1"] .qc-sub-enterprise li svg,
[data-qc-console="1"] .qc-sub-enterprise .qc-sub-enterprise-cta {
  color: var(--qc-brand-text);
}

[data-qc-console="1"] .qc-payok-icon {
  background-color: var(--qc-ok-bg);
  border: 1px solid var(--qc-ok-border);
  color: var(--qc-ok);
}

[data-qc-console="1"] .qc-payok-icon svg {
  color: var(--qc-ok);
}

html[data-theme]:has([data-qc-console="1"]) body.h-full.qc-ink.bg-ink-950 [data-qc-console="1"] .qc-payok-bar:not(.qc-keep):not(.qc-keep *) {
  background-color: var(--qc-console-sunk-strong);
}

[data-qc-console="1"] .qc-payok-bar > div {
  background-color: var(--qc-brand);
}

[data-qc-console="1"] [data-billing-list] [data-order].bg-ink-800 {
  background-color: var(--qc-surface-2);
  border-color: var(--qc-hairline);
}

[data-qc-console="1"] .qc-token-meta-cell {
  background-color: var(--qc-surface-2);
  border: 1px solid var(--qc-hairline);
  border-radius: 10px;
  padding: 12px 14px;
}



/* Light-first marketing layer, scoped to pages carrying data-qc-mkt="1".
   Tokens mirror the console palette so the marketing pages and the console read as one system.
   No rule outside this block depends on it. */
html[data-theme="light"]:has([data-qc-mkt="1"]),
:root:not([data-theme="dark"]):has([data-qc-mkt="1"]) {
  --qc-surface-ground: #F6F4F0;
  --qc-surface-raise: #FFFFFF;
  --qc-surface-sunk: #F3F0EA;
  --qc-surface-0: #F6F4F0;
  --qc-surface-1: #FFFFFF;
  --qc-surface-2: #F3F0EA;
  --qc-bg: #F6F4F0;
  --qc-bg-subtle: #F3F0EA;
  --qc-fg: #1A1613;
  --qc-fg-body: #3F3832;
  --qc-fg-muted: #686059;
  --qc-fg-secondary: #686059;
  --qc-fg-tertiary: #686059;
  --qc-hairline: rgba(28, 24, 20, 0.09);
  --qc-hairline-strong: rgba(28, 24, 20, 0.17);
  --qc-brand: #B84B27;
  --qc-brand-hover: #A13E1E;
  --qc-brand-on: #FFFFFF;
  --qc-brand-fill: #B84B27;
  --qc-brand-fill-hover: #A13E1E;
  --qc-brand-text: #B24624;
  --qc-brand-text-hover: #96381A;
  --qc-brand-text-on-tint: #B24624;
  --qc-brand-tint: #FDF5F1;
  --qc-brand-border: rgba(184, 75, 39, 0.36);
  --qc-focus: #B24624;
  --qc-hover: rgba(26, 22, 19, 0.04);
  --qc-active: rgba(26, 22, 19, 0.08);
  --qc-ok: #046C4E;
  --qc-ok-bg: #ECFDF5;
  --qc-ok-border: rgba(4, 120, 87, 0.22);
  --qc-radius-lg: 16px;
  --qc-mkt-sunk-strong: #E9E4DB;
  --qc-mkt-nav-bg: rgba(255, 255, 255, 0.90);
  --qc-mkt-subnav-bg: rgba(255, 255, 255, 0.95);
  --qc-mkt-hero-bg: #FDFBF8;
  --qc-mkt-card-shadow: 0 1px 2px rgba(26, 22, 19, 0.04), 0 4px 14px rgba(26, 22, 19, 0.03);
  --qc-mkt-card-hover-shadow: 0 2px 6px rgba(26, 22, 19, 0.06), 0 10px 24px rgba(26, 22, 19, 0.06);
  --qc-mkt-featured-shadow: 0 0 0 1px rgba(184, 75, 39, 0.28), 0 8px 24px rgba(184, 75, 39, 0.10);
  --qc-mkt-footer-bg: #EFECE6;
  --qc-nav-scrolled-bg: rgba(255, 255, 255, 0.92);
  --qc-nav-scrolled-line: rgba(28, 24, 20, 0.09);
}

html[data-theme="dark"]:has([data-qc-mkt="1"]) {
  --qc-brand-text-hover: #EDAF9B;
  --qc-brand-border: rgba(227, 154, 130, 0.42);
  --qc-ok: #6EE7B7;
  --qc-ok-bg: rgba(110, 231, 183, 0.10);
  --qc-ok-border: rgba(110, 231, 183, 0.24);
  --qc-radius-lg: 16px;
  --qc-mkt-sunk-strong: #26211E;
  --qc-mkt-nav-bg: rgba(15, 13, 12, 0.86);
  --qc-mkt-subnav-bg: rgba(15, 13, 12, 0.92);
  --qc-mkt-hero-bg: #0F0D0C;
  --qc-mkt-card-shadow: none;
  --qc-mkt-card-hover-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  --qc-mkt-featured-shadow: 0 0 0 1px rgba(227, 154, 130, 0.45), 0 8px 24px rgba(0, 0, 0, 0.40);
  --qc-mkt-footer-bg: #0A0908;
}

/* Chrome: navbar, subnav, footer follow the theme instead of the dark overlay defaults. */
html:has([data-qc-mkt="1"]) .qc-nav-overlay {
  background: var(--qc-mkt-nav-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--qc-hairline);
}

html:has([data-qc-mkt="1"]) .qc-subnav {
  background: var(--qc-mkt-subnav-bg);
  border-bottom: 1px solid var(--qc-hairline);
}

html:has([data-qc-mkt="1"]) .qc-subnav a.is-active,
html:has([data-qc-mkt="1"]) .qc-subnav a[aria-current="true"] {
  color: var(--qc-fg);
  font-weight: 600;
}

html[data-theme]:has([data-qc-mkt="1"]) footer.qc-ink,
html[data-theme]:has([data-qc-mkt="1"]) footer.qc-ink.bg-ink-950 {
  background-color: var(--qc-mkt-footer-bg);
  border-top-color: var(--qc-hairline);
}

/* The light hero is a light surface, so the transparent header keeps ink links. */
body:has(.qc-mkt-hero) .qc-nav-overlay:not(.is-scrolled) { --qc-focus: #B24624; }
html[data-theme="dark"] body:has(.qc-mkt-hero) .qc-nav-overlay:not(.is-scrolled) {
  --qc-focus: #E39A82;
}
body:has(.qc-mkt-hero) .qc-nav-overlay:not(.is-scrolled) .qc-nav-link { color: var(--qc-fg-body); }
body:has(.qc-mkt-hero) .qc-nav-overlay:not(.is-scrolled) .qc-nav-link:hover { color: var(--qc-fg); }
body:has(.qc-mkt-hero) .qc-nav-overlay:not(.is-scrolled) .qc-nav-brand { color: var(--qc-fg); }
body:has(.qc-mkt-hero) .qc-nav-overlay:not(.is-scrolled) .qc-nav-desktop > a[aria-current="page"] > span,
body:has(.qc-mkt-hero) .qc-nav-overlay:not(.is-scrolled) .qc-nav-desktop > div > .is-current > span {
  color: var(--qc-fg);
}
body:has(.qc-mkt-hero) .qc-nav-overlay:not(.is-scrolled) :is(#auth-status, #mobile-auth-status) a:not([href*="sign-up"]) { color: var(--qc-fg-body); }
body:has(.qc-mkt-hero) .qc-nav-overlay:not(.is-scrolled) :is(#auth-status, #mobile-auth-status) a:not([href*="sign-up"]):hover { color: var(--qc-fg); }
body:has(.qc-mkt-hero) .qc-nav-overlay:not(.is-scrolled) .qc-theme-toggle {
  color: var(--qc-fg-body);
  border-color: var(--qc-hairline-strong);
  background: var(--qc-surface-1);
}
body:has(.qc-mkt-hero) .qc-nav-overlay:not(.is-scrolled) .skeleton { background: var(--qc-surface-2); }

/* Compact sunlit hero. */
.qc-mkt-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--qc-mkt-hero-bg);
  border-bottom: 1px solid var(--qc-hairline);
  padding-top: calc(64px + 32px);
  padding-bottom: 36px;
}

@media (max-width: 639px) {
  .qc-mkt-hero {
    padding-top: calc(64px + 20px);
    padding-bottom: 24px;
  }
  .qc-mkt-hero .qc-hero-sell {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 14px;
  }
  .qc-mkt-hero .qc-hero-sell-item {
    min-height: auto;
    font-size: var(--qc-text-xs);
  }
}

.qc-mkt-hero .qc-hero-center { align-items: flex-start; text-align: left; }
.qc-mkt-hero .qc-hero-head { margin-bottom: var(--qc-space-4); }
.qc-mkt-hero .qc-hero-title {
  font-size: var(--qc-text-h1);
  color: var(--qc-fg);
  margin-bottom: var(--qc-space-3);
}

@media (max-width: 639px) {
  .qc-mkt-hero .qc-hero-title { font-size: 32px; }
}

.qc-mkt-hero .qc-hero-sub { color: var(--qc-fg-body); max-width: 640px; }
.qc-mkt-hero .qc-hero-eyebrow {
  color: var(--qc-brand-text);
  font-weight: 600;
  margin-bottom: var(--qc-space-2);
}
.qc-mkt-hero .qc-hero-sell { justify-content: flex-start; margin-bottom: 0; }
.qc-mkt-hero .qc-hero-sell-item { color: var(--qc-fg-body); }
.qc-mkt-hero .qc-hero-sell-item svg { color: var(--qc-brand-text); }
.qc-mkt-hero .qc-hero-actions {
  justify-content: flex-start;
  margin-top: var(--qc-space-4);
  margin-bottom: var(--qc-space-3);
}

.qc-mkt-hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-size: cover;
  /* rtl:ignore */
  background-position: right center;
  background-repeat: no-repeat;
}
/* rtl:ignore */
html[dir="rtl"] .qc-mkt-hero-art {
  transform: scaleX(-1);
}
.qc-mkt-hero-art--pricing { background-image: url("/static/img/hero-pricing-light-1280.webp"); }
@media (max-width: 960px) {
  .qc-mkt-hero-art--pricing { background-image: url("/static/img/hero-pricing-light-960.webp"); }
}
@media (max-width: 640px) {
  .qc-mkt-hero-art--pricing { background-image: url("/static/img/hero-pricing-light-640.webp"); }
}
html[data-theme="dark"] .qc-mkt-hero-art--pricing { background-image: url("/static/img/hero-pricing-1920.webp"); }
@media (max-width: 960px) {
  html[data-theme="dark"] .qc-mkt-hero-art--pricing { background-image: url("/static/img/hero-pricing-1280.webp"); }
}

.qc-mkt-hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to right, #FDFBF8 0%, rgba(253, 251, 248, 0.94) 50%, rgba(253, 251, 248, 0.18) 100%);
}
html[data-theme="dark"] .qc-mkt-hero-veil {
  background: linear-gradient(to right, #0F0D0C 0%, rgba(15, 13, 12, 0.88) 48%, rgba(15, 13, 12, 0.24) 100%);
}

/* Segmented solution switcher on the stone track. */
.qc-mkt-hero .qc-seg {
  background: var(--qc-surface-2);
  border-color: var(--qc-hairline);
  margin-bottom: var(--qc-space-4);
  padding: 3px;
}
.qc-mkt-hero .qc-seg-item { height: 30px; color: var(--qc-fg-body); font-weight: 500; }
.qc-mkt-hero a.qc-seg-item:hover { background: var(--qc-hover); color: var(--qc-fg); }
.qc-mkt-hero .qc-seg-item.is-current {
  background: var(--qc-surface-1);
  color: var(--qc-fg);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(26, 22, 19, 0.08);
}
html[data-theme="dark"] .qc-mkt-hero .qc-seg-item.is-current {
  background: #F5F1EE;
  color: #0F0D0C;
  box-shadow: none;
}

/* Payment trust line. */
.qc-mkt-pay-strip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: var(--qc-text-xs);
  line-height: 1.5;
  color: var(--qc-fg-muted);
  flex-wrap: wrap;
}
.qc-mkt-pay-strip svg { width: 14px; height: 14px; color: var(--qc-ok); flex-shrink: 0; }

/* Two-question chooser as a contained decision workbench. */
[data-qc-mkt="1"] #choose { padding-block: 36px; }
@media (max-width: 767px) {
  [data-qc-mkt="1"] #choose { padding-block: 28px; }
}

[data-qc-mkt="1"] .qc-pchoose {
  max-width: 72rem;
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-lg);
  box-shadow: var(--qc-mkt-card-shadow);
  padding: var(--qc-space-5);
}

@media (min-width: 1024px) {
  [data-qc-mkt="1"] .qc-pchoose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    grid-template-rows: auto 1fr;
    column-gap: var(--qc-space-6);
    row-gap: var(--qc-space-4);
    align-items: start;
  }
  [data-qc-mkt="1"] .qc-pchoose-q { grid-column: 1; margin: 0; }
  [data-qc-mkt="1"] .qc-pchoose-results { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; min-width: 0; }
  [data-qc-mkt="1"] .qc-pchoose-result { max-width: none; margin: 0; }
}

[data-qc-mkt="1"] .qc-pchoose-card {
  background: var(--qc-surface-2);
  border: 1px solid var(--qc-brand-border);
  box-shadow: none;
}
html[data-theme="dark"] [data-qc-mkt="1"] .qc-pchoose-card {
  background: #1B1715;
  border-color: var(--qc-brand-border);
}
[data-qc-mkt="1"] .qc-pchoose-opt[aria-pressed="true"] {
  background: var(--qc-brand);
  color: var(--qc-brand-on);
  font-weight: 600;
}

/* Product-line comparison as an elevated table card. */
[data-qc-mkt="1"] #lines { padding-block: 32px; }

@media (min-width: 768px) {
  [data-qc-mkt="1"] .qc-plines {
    background: var(--qc-surface-1);
    border: 1px solid var(--qc-hairline);
    border-radius: var(--qc-radius-lg);
    overflow: hidden;
    box-shadow: var(--qc-mkt-card-shadow);
    border-collapse: separate;
    border-spacing: 0;
  }
  [data-qc-mkt="1"] .qc-plines thead th,
  [data-qc-mkt="1"] .qc-plines thead .qc-plines-corner {
    background: var(--qc-surface-2);
    padding: 12px 14px;
    border-bottom: 1px solid var(--qc-hairline);
  }
  [data-qc-mkt="1"] .qc-plines tbody th,
  [data-qc-mkt="1"] .qc-plines tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--qc-hairline);
  }
  [data-qc-mkt="1"] .qc-plines tr[data-plines-row="from"] :is(th, td) {
    background: var(--qc-brand-tint);
    color: var(--qc-fg);
  }
  [data-qc-mkt="1"] .qc-plines td.qc-plines-span {
    background: var(--qc-surface-2);
    color: var(--qc-fg-body);
  }
  html[data-theme="dark"] [data-qc-mkt="1"] .qc-plines tr[data-plines-row="from"] :is(th, td) {
    background: rgba(227, 154, 130, 0.08);
  }
  [data-qc-mkt="1"] .qc-plines .qc-plines-cta td {
    padding: 14px;
    border-bottom: 0;
    background: var(--qc-surface-1);
  }
}

@media (max-width: 767px) {
  [data-qc-mkt="1"] .qc-plines { box-shadow: var(--qc-mkt-card-shadow); }
  [data-qc-mkt="1"] .qc-plines [data-line="all"] {
    background: var(--qc-surface-1);
  }
}

/* Buttons and cards inside the marketing layer. */
[data-qc-mkt="1"] .qc-btn--primary {
  background-color: var(--qc-brand);
  color: var(--qc-brand-on);
  border-color: transparent;
}
[data-qc-mkt="1"] .qc-btn--primary:hover {
  background-color: var(--qc-brand-hover);
  color: var(--qc-brand-on);
}
[data-qc-mkt="1"] .qc-btn--secondary {
  background-color: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline-strong);
  color: var(--qc-fg);
}
[data-qc-mkt="1"] .qc-btn--secondary:hover {
  background-color: var(--qc-surface-2);
  border-color: var(--qc-brand-border);
}
[data-qc-mkt="1"] .qc-card {
  background-color: var(--qc-surface-1);
  border-color: var(--qc-hairline);
  box-shadow: var(--qc-mkt-card-shadow);
}

/* Tab switcher and presets control bar. */
[data-qc-mkt="1"] .qc-mkt-tabs {
  display: flex;
  gap: 2px;
  max-width: 28rem;
  margin: 0 auto var(--qc-space-5);
  padding: 4px;
  background: var(--qc-surface-2);
  border: 1px solid var(--qc-hairline);
  border-radius: 9999px;
}
[data-qc-mkt="1"] .qc-mkt-tab {
  position: relative;
  flex: 1 1 0;
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--qc-fg-body);
  font-family: inherit;
  font-size: var(--qc-text-sm);
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color var(--qc-dur-color) var(--qc-ease), color var(--qc-dur-color) var(--qc-ease);
}
[data-qc-mkt="1"] .qc-mkt-tab:hover { color: var(--qc-fg); }
[data-qc-mkt="1"] .qc-mkt-tab.is-active {
  background: var(--qc-brand);
  color: var(--qc-brand-on);
  font-weight: 600;
}
[data-qc-mkt="1"] .qc-mkt-tab-new {
  position: absolute;
  top: -6px;
  inset-inline-end: -4px;
  padding: 2px 6px;
  border-radius: 9999px;
  background: var(--qc-brand);
  color: var(--qc-brand-on);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
[data-qc-mkt="1"] .qc-mkt-tab.is-active .qc-mkt-tab-new {
  background: var(--qc-brand-on);
  color: var(--qc-brand);
}

[data-qc-mkt="1"] .qc-plans-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding: 10px 14px;
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
  box-shadow: var(--qc-mkt-card-shadow);
}
[data-qc-mkt="1"] .qc-plans-dur-bar,
[data-qc-mkt="1"] .qc-plans-cur-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
[data-qc-mkt="1"] .qc-plans-dur-pill,
[data-qc-mkt="1"] .qc-plans-cur-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--qc-hairline);
  border-radius: 9999px;
  background: var(--qc-surface-1);
  color: var(--qc-fg-body);
  font-family: inherit;
  font-size: var(--qc-text-sm);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--qc-dur-color) var(--qc-ease), border-color var(--qc-dur-color) var(--qc-ease), color var(--qc-dur-color) var(--qc-ease);
}
[data-qc-mkt="1"] .qc-plans-dur-pill:hover,
[data-qc-mkt="1"] .qc-plans-cur-pill:hover {
  background: var(--qc-surface-2);
  border-color: var(--qc-brand-border);
  color: var(--qc-fg);
}
[data-qc-mkt="1"] .qc-plans-dur-pill.is-active,
[data-qc-mkt="1"] .qc-plans-cur-pill.is-active {
  background: var(--qc-brand);
  border-color: transparent;
  color: var(--qc-brand-on);
  font-weight: 600;
}
[data-qc-mkt="1"] .qc-plans-dur-save {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.85;
  white-space: nowrap;
}
@media (pointer: fine) {
  [data-qc-mkt="1"] .qc-plans-dur-pill { min-height: 36px; }
}
@media (max-width: 639px) {
  [data-qc-mkt="1"] .qc-plans-dur-pill,
  [data-qc-mkt="1"] .qc-plans-cur-pill { min-height: 44px; }
}

/* Eight plan cards. */
[data-qc-mkt="1"] .qc-mkt-plan-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  border-radius: 14px;
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline);
  box-shadow: var(--qc-mkt-card-shadow);
  cursor: pointer;
  position: relative;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
[data-qc-mkt="1"] .qc-mkt-plan-card:hover {
  border-color: var(--qc-brand-border);
  box-shadow: var(--qc-mkt-card-hover-shadow);
}
[data-qc-mkt="1"] .qc-mkt-plan-card.is-featured {
  border-color: var(--qc-brand);
  box-shadow: var(--qc-mkt-featured-shadow);
}
[data-qc-mkt="1"] .qc-mkt-plan-card.is-selected {
  border-color: var(--qc-brand);
  box-shadow: 0 0 0 2px var(--qc-brand-border), var(--qc-mkt-card-hover-shadow);
  background: var(--qc-brand-tint);
}
html[data-theme="dark"] [data-qc-mkt="1"] .qc-mkt-plan-card.is-selected {
  background: rgba(227, 154, 130, 0.08);
}
[data-qc-mkt="1"] .qc-mkt-plan-price { font-variant-numeric: tabular-nums; }
[data-qc-mkt="1"] .qc-mkt-plan-eff {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--qc-space-2);
  font-size: var(--qc-text-xs);
  line-height: 1.4;
}
[data-qc-mkt="1"] .qc-mkt-plan-eff-price {
  font-family: var(--qc-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--qc-fg);
}
[data-qc-mkt="1"] .qc-mkt-plan-eff-badge {
  padding: 1px 6px;
  border-radius: 9999px;
  background: var(--qc-ok-bg);
  border: 1px solid var(--qc-ok-border);
  color: var(--qc-ok);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
[data-qc-mkt="1"] .qc-mkt-plan-check { color: var(--qc-ok); }
[data-qc-mkt="1"] .qc-mkt-plan-foot {
  margin-top: auto;
  padding-top: 12px;
}
[data-qc-mkt="1"] .qc-mkt-plan-foot .qc-btn { text-align: center; }

[data-qc-mkt="1"] .pv-card-value {
  background: var(--qc-surface-2);
  border: 1px solid var(--qc-hairline);
  border-radius: 10px;
  padding: 10px 12px;
}
[data-qc-mkt="1"] .pv-card-l2 { border-top: 1px dashed var(--qc-hairline-strong); }

[data-qc-mkt="1"] .qc-mkt-ent-card {
  background: var(--qc-surface-2);
  border: 1px solid var(--qc-hairline-strong);
  border-radius: 14px;
  padding: 20px;
  height: 100%;
}
[data-qc-mkt="1"] .qc-card.qc-mkt-ent-card {
  background-color: var(--qc-surface-2);
  border-color: var(--qc-hairline-strong);
}

/* Selected plan detail panel. */
[data-qc-mkt="1"] #preset-detail { scroll-margin-top: 128px; }
[data-qc-mkt="1"] #plans { scroll-margin-top: 128px; }
[data-qc-mkt="1"] .qc-dur-grid { row-gap: 14px; }
[data-qc-mkt="1"] .qc-mkt-detail {
  padding: var(--qc-space-5);
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-lg);
  box-shadow: var(--qc-mkt-card-shadow);
}
[data-qc-mkt="1"] .qc-mkt-breakdown {
  background: var(--qc-surface-2);
  border-radius: 12px;
  padding: 16px 20px;
  border: 1px solid var(--qc-hairline);
}

[data-qc-mkt="1"] .qc-mkt-cur-pill {
  border: 1px solid var(--qc-hairline);
  border-radius: 9999px;
  background: var(--qc-surface-1);
  color: var(--qc-fg-body);
  font-family: inherit;
  cursor: pointer;
}
[data-qc-mkt="1"] .qc-mkt-cur-pill:hover { background: var(--qc-surface-2); color: var(--qc-fg); }
[data-qc-mkt="1"] .qc-mkt-cur-pill.is-active {
  background: var(--qc-brand);
  border-color: transparent;
  color: var(--qc-brand-on);
  font-weight: 600;
}

[data-qc-mkt="1"] .qc-mkt-dur-btn {
  border: 1px solid var(--qc-hairline);
  border-radius: 10px;
  background: var(--qc-surface-1);
  color: var(--qc-fg-body);
  cursor: pointer;
  transition: background-color var(--qc-dur-color) var(--qc-ease), border-color var(--qc-dur-color) var(--qc-ease), color var(--qc-dur-color) var(--qc-ease);
}
[data-qc-mkt="1"] .qc-mkt-dur-btn:hover { border-color: var(--qc-brand-border); color: var(--qc-fg); }
[data-qc-mkt="1"] .qc-mkt-dur-btn.is-active {
  background: var(--qc-brand);
  border-color: transparent;
  color: var(--qc-brand-on);
  font-weight: 600;
}
[data-qc-mkt="1"] .qc-mkt-dur-btn .qc-dur-badge {
  background: var(--qc-brand-tint);
  border: 1px solid var(--qc-brand-border);
  color: var(--qc-brand-text);
}
[data-qc-mkt="1"] .qc-mkt-dur-btn.is-active .qc-dur-badge {
  background: var(--qc-brand-on);
  border-color: transparent;
  color: var(--qc-brand);
}

/* Custom configuration tab surfaces. */
[data-qc-mkt="1"] .qc-mkt-surface {
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
  box-shadow: var(--qc-mkt-card-shadow);
}
[data-qc-mkt="1"] .qc-mkt-summary { border-radius: var(--qc-radius-lg); }
[data-qc-mkt="1"] .qc-mkt-token-card {
  background: var(--qc-brand-tint);
  border: 1px solid var(--qc-brand-border);
  border-radius: var(--qc-radius-md);
}
[data-qc-mkt="1"] .qc-mkt-wf-final {
  background: var(--qc-brand-tint);
  border: 1px solid var(--qc-brand-border);
}
html[data-theme="dark"] [data-qc-mkt="1"] .qc-mkt-wf-final {
  background: rgba(227, 154, 130, 0.08);
}
[data-qc-mkt="1"] .pv-accent { color: var(--qc-brand-text); }
[data-qc-mkt="1"] .qc-mkt-brand-link { color: var(--qc-brand-text); }
[data-qc-mkt="1"] .qc-mkt-brand-link:hover { color: var(--qc-brand-text-hover); }
[data-qc-mkt="1"] .qc-mkt-divider { border-top: 1px solid var(--qc-hairline); }
[data-qc-mkt="1"] .qc-mkt-divider--strong { border-top-color: var(--qc-hairline-strong); }
[data-qc-mkt="1"] .qc-mkt-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--qc-hairline);
  border-radius: 10px;
  background: var(--qc-surface-1);
  color: var(--qc-fg-body);
  font-family: inherit;
  cursor: pointer;
  transition: background-color var(--qc-dur-color) var(--qc-ease), border-color var(--qc-dur-color) var(--qc-ease), color var(--qc-dur-color) var(--qc-ease);
}
[data-qc-mkt="1"] .qc-mkt-pill-btn:hover { background: var(--qc-surface-2); border-color: var(--qc-brand-border); color: var(--qc-fg); }
[data-qc-mkt="1"] .qc-btn--sm { min-height: 44px; }
[data-qc-mkt="1"] .qc-mkt-pill-btn.is-active {
  background: var(--qc-brand);
  border-color: transparent;
  color: var(--qc-brand-on);
  font-weight: 600;
}
[data-qc-mkt="1"] .qc-mkt-range {
  height: 6px;
  border-radius: 9999px;
  background: var(--qc-mkt-sunk-strong);
  accent-color: var(--qc-brand);
}
[data-qc-mkt="1"] .qc-mkt-range::-webkit-slider-thumb {
  background: var(--qc-brand);
  border: 2px solid var(--qc-surface-1);
}
[data-qc-mkt="1"] .qc-mkt-range::-moz-range-thumb {
  background: var(--qc-brand);
  border: 2px solid var(--qc-surface-1);
}

/* Comparison table card and featured column. */
[data-qc-mkt="1"] .qc-mkt-table-card {
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-lg);
  box-shadow: var(--qc-mkt-card-shadow);
  padding: 14px 4px 4px;
}
[data-qc-mkt="1"] .qc-cmp-table .qc-mkt-qcode-col,
[data-qc-mkt="1"] .qc-cmp-table tr > :last-child {
  background: var(--qc-brand-tint);
}
html[data-theme="dark"] [data-qc-mkt="1"] .qc-cmp-table .qc-mkt-qcode-col,
html[data-theme="dark"] [data-qc-mkt="1"] .qc-cmp-table tr > :last-child {
  background: rgba(227, 154, 130, 0.08);
}
[data-qc-mkt="1"] .qc-cmp-table tr > :last-child {
  color: var(--qc-brand-text);
}
[data-qc-mkt="1"] .qc-mkt-calc-input {
  background: var(--qc-surface-2);
}
@media (min-width: 1024px) {
  [data-qc-mkt="1"] .qc-mkt-calc-input { border-inline-end: 1px solid var(--qc-hairline); }
}
[data-qc-mkt="1"] .qc-mkt-calc-output {
  background: var(--qc-surface-1);
}
[data-qc-mkt="1"] #usage-time-guide .qc-table th,
[data-qc-mkt="1"] #usage-time-guide .qc-table td { border-bottom-color: var(--qc-hairline); }
[data-qc-mkt="1"] #usage-time-guide .is-featured-col {
  background: var(--qc-brand-tint);
}
[data-qc-mkt="1"] .qc-mkt-mob-plan.is-featured {
  border-color: var(--qc-brand);
  box-shadow: var(--qc-mkt-featured-shadow);
}

/* Pay-as-you-go packs and rules. */
[data-qc-mkt="1"] [data-pricing-payg] .qc-card {
  background-color: var(--qc-surface-1);
  border-color: var(--qc-hairline);
  box-shadow: var(--qc-mkt-card-shadow);
}
[data-qc-mkt="1"] [data-pricing-payg] .qc-plan-price {
  font-family: var(--qc-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--qc-fg);
}
[data-qc-mkt="1"] .qc-pricing-payg-rules {
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
  padding: 14px 20px 14px 36px;
}

/* Rate meter as an elevated card with warm accents. */
[data-qc-mkt="1"] .pv-meter {
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-lg);
  padding: 20px 24px 16px;
  box-shadow: var(--qc-mkt-card-shadow);
}
[data-qc-mkt="1"] .pv-meter-track { background: var(--qc-mkt-sunk-strong); }
[data-qc-mkt="1"] .pv-meter-fill { background: linear-gradient(90deg, var(--qc-brand), #D97757); }
[data-qc-mkt="1"] .pv-meter-dot { border-color: var(--qc-surface-1); }
[data-qc-mkt="1"] .pv-meter-dot--base { background: var(--qc-fg); }
[data-qc-mkt="1"] .pv-meter-dot--yours { background: var(--qc-brand); }
[data-qc-mkt="1"] .pv-meter-leader { background: var(--qc-hairline-strong); }
[data-qc-mkt="1"] .pv-meter-leader--yours { background: var(--qc-brand-border); }
[data-qc-mkt="1"] .pv-meter-gap {
  background: var(--qc-surface-1);
  border-color: var(--qc-brand-border);
  color: var(--qc-brand-text);
  box-shadow: 0 1px 3px rgba(26, 22, 19, 0.08);
}
[data-qc-mkt="1"] .pv-meter-head { color: var(--qc-fg-muted); }
[data-qc-mkt="1"] .pv-meter-tag--base { color: var(--qc-fg); }
html[data-theme="dark"] [data-qc-mkt="1"] .pv-meter-dot { border-color: var(--qc-surface-1); }
html[data-theme="dark"] [data-qc-mkt="1"] .pv-meter-dot--base { background: #F5F1EE; }
html[data-theme="dark"] [data-qc-mkt="1"] .pv-meter-gap {
  background: #141210;
  border-color: var(--qc-brand-border);
  color: #E39A82;
}

/* Calculator card and its recessed result column. */
[data-qc-mkt="1"] .qc-mkt-calc-card {
  background: var(--qc-surface-1);
  border-color: var(--qc-hairline);
  box-shadow: var(--qc-mkt-card-shadow);
}
[data-qc-mkt="1"] .qc-mkt-calc-result {
  background: var(--qc-surface-2);
  border: 1px solid var(--qc-hairline);
  border-radius: 12px;
  padding: 20px;
}
[data-qc-mkt="1"] #pv-calc .pv-quick-chip {
  border: 1px solid var(--qc-hairline);
  border-radius: 9999px;
  background: var(--qc-surface-1);
  color: var(--qc-fg-body);
  padding: 6px 12px;
  font-size: var(--qc-text-xs);
  font-weight: 600;
  cursor: pointer;
}
[data-qc-mkt="1"] #pv-calc .pv-quick-chip:hover {
  border-color: var(--qc-brand-border);
  color: var(--qc-fg);
  background: var(--qc-brand-tint);
}
[data-qc-mkt="1"] #pv-calc .pv-quick-chip.pv-active {
  background: var(--qc-brand);
  border-color: transparent;
  color: var(--qc-brand-on);
}
[data-qc-mkt="1"] #pv-calc .qc-mkt-divider { border-top-color: var(--qc-hairline); }

/* FAQ accordion and closing call to action. */
[data-qc-mkt="1"] .qc-mkt-faq-trigger {
  width: 100%;
  min-height: 44px;
  text-align: start;
  border: 0;
  border-radius: var(--qc-radius-md);
  background: transparent;
  color: var(--qc-fg);
  font-family: inherit;
  cursor: pointer;
  transition: background-color var(--qc-dur-color) var(--qc-ease);
}
[data-qc-mkt="1"] .qc-mkt-faq-trigger:hover { background: var(--qc-hover); }
[data-qc-mkt="1"] .qc-mkt-cta-card {
  padding: 36px 24px;
  background: var(--qc-mkt-hero-bg);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-lg);
}
html[data-theme="dark"] [data-qc-mkt="1"] .qc-mkt-cta-card { background: #171412; }

/* Enterprise and partner share the sunlit hero artwork; dark mode swaps back to the shipped dark art. */
.qc-mkt-hero-art--enterprise { background-image: url("/static/img/hero-enterprise-light-1280.webp"); }
@media (max-width: 960px) {
  .qc-mkt-hero-art--enterprise { background-image: url("/static/img/hero-enterprise-light-960.webp"); }
}
@media (max-width: 640px) {
  .qc-mkt-hero-art--enterprise { background-image: url("/static/img/hero-enterprise-light-640.webp"); }
}
html[data-theme="dark"] .qc-mkt-hero-art--enterprise { background-image: url("/static/img/hero-enterprise-1920.webp"); }
@media (max-width: 960px) {
  html[data-theme="dark"] .qc-mkt-hero-art--enterprise { background-image: url("/static/img/hero-enterprise-1280.webp"); }
}

.qc-mkt-hero-art--partner { background-image: url("/static/img/hero-partner-light-1280.webp"); }
@media (max-width: 960px) {
  .qc-mkt-hero-art--partner { background-image: url("/static/img/hero-partner-light-960.webp"); }
}
@media (max-width: 640px) {
  .qc-mkt-hero-art--partner { background-image: url("/static/img/hero-partner-light-640.webp"); }
}
html[data-theme="dark"] .qc-mkt-hero-art--partner { background-image: url("/static/img/hero-partner-1152.webp"); }
@media (max-width: 960px) {
  html[data-theme="dark"] .qc-mkt-hero-art--partner { background-image: url("/static/img/hero-partner-960.webp"); }
}

/* Hero trust line keeps ink contrast on the light artwork in both themes. */
.qc-mkt-hero .qc-hero-trust { color: var(--qc-fg-muted); }
.qc-mkt-hero .qc-hero-hook { color: var(--qc-brand-text); }
.qc-mkt-hero .qc-hero-hook:hover { color: var(--qc-brand-text-hover); }

/* Refined icon badges replace the loud translucent dark-mode circles. */
[data-qc-mkt="1"] .qc-mkt-ico-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--qc-surface-2);
  border: 1px solid var(--qc-hairline);
  color: var(--qc-fg-body);
  flex-shrink: 0;
}
[data-qc-mkt="1"] .qc-mkt-ico-badge svg { width: 24px; height: 24px; }
[data-qc-mkt="1"] .qc-mkt-ico-badge--brand {
  background: var(--qc-brand-tint);
  border-color: var(--qc-brand-border);
  color: var(--qc-brand-text);
}
[data-qc-mkt="1"] .qc-mkt-ico-badge--ok {
  background: var(--qc-ok-bg);
  border-color: var(--qc-ok-border);
  color: var(--qc-ok);
}
html[data-theme="dark"] [data-qc-mkt="1"] .qc-mkt-ico-badge--brand {
  background: rgba(227, 154, 130, 0.10);
}

/* Light-first console schematics: browser chrome, KPI tiles, chart and sub-key table. */
[data-qc-mkt="1"] .qc-mkt-preview {
  display: flex;
  flex-direction: column;
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-lg);
  box-shadow: var(--qc-mkt-card-shadow);
  overflow: hidden;
}
[data-qc-mkt="1"] .qc-mkt-preview-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--qc-surface-2);
  border-bottom: 1px solid var(--qc-hairline);
}
[data-qc-mkt="1"] .qc-mkt-preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--qc-hairline-strong);
  flex-shrink: 0;
}
[data-qc-mkt="1"] .qc-mkt-preview-pill {
  margin-inline-start: 4px;
  padding: 2px 10px;
  border-radius: 9999px;
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline);
  color: var(--qc-fg-muted);
  font-family: var(--qc-mono);
  font-size: 11px;
  line-height: 1.6;
}
[data-qc-mkt="1"] .qc-mkt-preview-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
[data-qc-mkt="1"] .qc-mkt-preview-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
[data-qc-mkt="1"] .qc-mkt-preview-kpi {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline);
  min-width: 0;
}
[data-qc-mkt="1"] .qc-mkt-preview-kpi-label {
  font-size: 10px;
  line-height: 1.4;
  color: var(--qc-fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-qc-mkt="1"] .qc-mkt-preview-kpi-value {
  font-family: var(--qc-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 700;
  color: var(--qc-fg);
  white-space: nowrap;
}
[data-qc-mkt="1"] .qc-mkt-preview-kpi-value--brand { color: var(--qc-brand-text); }
[data-qc-mkt="1"] .qc-mkt-preview-kpi-value--ok { color: var(--qc-ok); }
[data-qc-mkt="1"] .qc-mkt-preview-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  padding: 10px;
  border-radius: 10px;
  background: var(--qc-surface-2);
  border: 1px solid var(--qc-hairline);
}
[data-qc-mkt="1"] .qc-mkt-preview-bar {
  flex: 1 1 0;
  border-radius: 4px 4px 2px 2px;
  background: var(--qc-brand-tint);
  border: 1px solid var(--qc-brand-border);
  min-height: 8px;
}
[data-qc-mkt="1"] .qc-mkt-preview-bar.is-highlight {
  background: var(--qc-brand);
  border-color: var(--qc-brand);
}
html[data-theme="dark"] [data-qc-mkt="1"] .qc-mkt-preview-bar {
  background: rgba(227, 154, 130, 0.12);
}
html[data-theme="dark"] [data-qc-mkt="1"] .qc-mkt-preview-bar.is-highlight {
  background: #E39A82;
  border-color: #E39A82;
}
[data-qc-mkt="1"] .qc-mkt-preview-table {
  border-radius: 10px;
  border: 1px solid var(--qc-hairline);
  background: var(--qc-surface-1);
  overflow: hidden;
  font-family: var(--qc-mono);
  font-size: 11px;
}
[data-qc-mkt="1"] .qc-mkt-preview-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr 0.9fr;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--qc-hairline);
}
[data-qc-mkt="1"] .qc-mkt-preview-row:last-child { border-bottom: 0; }
[data-qc-mkt="1"] .qc-mkt-preview-row--head {
  background: var(--qc-surface-2);
  color: var(--qc-fg-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10px;
}
[data-qc-mkt="1"] .qc-mkt-preview-row > :not(:first-child) { text-align: end; }
[data-qc-mkt="1"] .qc-mkt-preview-row--head > * { text-align: start; }
[data-qc-mkt="1"] .qc-mkt-preview-bar-track {
  display: block;
  height: 5px;
  border-radius: 9999px;
  background: var(--qc-mkt-sunk-strong);
  overflow: hidden;
}
[data-qc-mkt="1"] .qc-mkt-preview-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--qc-brand);
}
[data-qc-mkt="1"] .qc-mkt-preview-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 7px;
  border-radius: 9999px;
  background: var(--qc-ok-bg);
  border: 1px solid var(--qc-ok-border);
  color: var(--qc-ok);
  font-family: var(--qc-sans, inherit);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
}
[data-qc-mkt="1"] .qc-mkt-preview-caption {
  margin-top: auto;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--qc-hairline);
}
[data-qc-mkt="1"] .qc-mkt-preview-caption h3 { color: var(--qc-fg); }
[data-qc-mkt="1"] .qc-mkt-preview-caption p { color: var(--qc-fg-body); }
[data-qc-mkt="1"] .qc-mkt-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline);
  color: var(--qc-fg-muted);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

/* Activation and onboarding medallions: one warm system, emerald only for completion. */
[data-qc-mkt="1"] .qc-mkt-step-node {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: var(--qc-brand-tint);
  border: 1px solid var(--qc-brand-border);
  color: var(--qc-brand-text);
  flex-shrink: 0;
}
[data-qc-mkt="1"] .qc-mkt-step-node svg { width: 24px; height: 24px; }
[data-qc-mkt="1"] .qc-mkt-step-node--done {
  background: var(--qc-ok-bg);
  border-color: var(--qc-ok-border);
  color: var(--qc-ok);
}
[data-qc-mkt="1"] .qc-mkt-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-brand-border);
  color: var(--qc-brand-text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
[data-qc-mkt="1"] .qc-mkt-step-index--done {
  border-color: var(--qc-ok-border);
  color: var(--qc-ok);
}
[data-qc-mkt="1"] .qc-mkt-step-line {
  position: absolute;
  top: 24px;
  inset-inline: 12.5%;
  height: 1px;
  background: var(--qc-hairline-strong);
  pointer-events: none;
}
[data-qc-mkt="1"] .qc-mkt-ok-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: var(--qc-ok-bg);
  border: 1px solid var(--qc-ok-border);
  color: var(--qc-ok);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* Form controls on the light-first marketing pages. */
[data-qc-mkt="1"] .qc-mkt-input,
[data-qc-mkt="1"] .qc-mkt-select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--qc-hairline-strong);
  background: var(--qc-surface-1);
  color: var(--qc-fg);
  font-family: inherit;
  font-size: var(--qc-text-sm);
  line-height: 1.4;
  outline: 2px solid transparent;
}
[data-qc-mkt="1"] .qc-mkt-input { font-variant-numeric: tabular-nums; }
[data-qc-mkt="1"] .qc-mkt-input:focus,
[data-qc-mkt="1"] .qc-mkt-select:focus {
  border-color: var(--qc-brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--qc-brand) 22%, transparent);
}
[data-qc-mkt="1"] .qc-mkt-select {
  appearance: none;
  color-scheme: light;
  /* rtl:ignore */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6560' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-size: 14px 14px;
  background-repeat: no-repeat;
  padding-inline-end: 36px;
}
html[data-theme="dark"] [data-qc-mkt="1"] .qc-mkt-select {
  color-scheme: dark;
  /* rtl:ignore */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A89D94' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* Email template body: readable copy source, never a dark code slab. */
[data-qc-mkt="1"] .qc-mkt-email-body {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--qc-fg-body);
  font-family: var(--qc-mono);
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Fallback toast, only shown when no live-chat global is present. */
.qc-mkt-toast {
  position: fixed;
  bottom: 5rem;
  inset-inline-end: 1.5rem;
  z-index: 60;
  max-width: 20rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-brand-border);
  border-inline-start: 3px solid var(--qc-brand);
  color: var(--qc-fg);
  box-shadow: 0 10px 30px rgba(26, 22, 19, 0.14);
  font-size: var(--qc-text-sm);
  line-height: 1.5;
}
.qc-mkt-toast svg { width: 20px; height: 20px; color: var(--qc-brand-text); flex-shrink: 0; margin-top: 1px; }
.qc-mkt-toast-title { font-weight: 600; display: block; }
.qc-mkt-toast-detail { color: var(--qc-fg-muted); font-size: var(--qc-text-xs); display: block; margin-top: 2px; }

/* Last-resort copy field on /enterprise: inserted only when both clipboard paths fail,
   so the user can select the quote and press Ctrl+C. */
.qc-quote-manual {
  position: fixed;
  z-index: 9999;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 460px);
  height: 9rem;
  padding: 12px;
  font: inherit;
  line-height: 1.4;
  color: var(--qc-fg);
  background: var(--qc-surface-raise);
  border: 1px solid var(--qc-hairline-strong);
  border-radius: 10px;
  box-shadow: var(--qc-shadow-overlay);
}

/* Partner quick-application and tier table surfaces. */
[data-qc-mkt="1"] .qc-mkt-thead {
  background: var(--qc-surface-2);
  color: var(--qc-fg-muted);
}
[data-qc-mkt="1"] .qc-mkt-tier-table th { text-align: start; }
[data-qc-mkt="1"] .qc-mkt-thead th { text-align: start; }
[data-qc-mkt="1"] .qc-mkt-tbody > tr { border-top: 1px solid var(--qc-hairline); }
[data-qc-mkt="1"] .qc-mkt-tbody > tr:first-child { border-top: 0; }
[data-qc-mkt="1"] .qc-mkt-tbody > tr.is-recommended {
  background: var(--qc-brand-tint);
  box-shadow: inset 3px 0 0 var(--qc-brand);
}
html[data-theme="dark"] [data-qc-mkt="1"] .qc-mkt-tbody > tr.is-recommended {
  background: rgba(227, 154, 130, 0.08);
}
[data-qc-mkt="1"] .qc-mkt-tbody > tr:hover { background: var(--qc-hover); }
[data-qc-mkt="1"] .qc-mkt-tbody > tr.is-recommended:hover { background: var(--qc-brand-tint); }
html[data-theme="dark"] [data-qc-mkt="1"] .qc-mkt-tbody > tr.is-recommended:hover {
  background: rgba(227, 154, 130, 0.12);
}
[data-qc-mkt="1"] .qc-mkt-page-title { color: var(--qc-fg); }
[data-qc-mkt="1"] .qc-mkt-page-sub { color: var(--qc-fg-body); }
[data-qc-mkt="1"] .qc-mkt-kicker { color: var(--qc-brand-text); }
[data-qc-mkt="1"] .qc-mkt-num { font-variant-numeric: tabular-nums; }

[data-qc-mkt="1"] :is(#features, #screenshots, #cost-calculator, #activation-process, #enterprise-faq, #tiers, #how-to-apply, #contact) {
  scroll-margin-top: 128px;
}

/* Homepage marketing layer: sunlit editorial hero, live quickstart card and the page rhythm.
   Everything is scoped to the marketing wrapper or to the home hero so other pages stay untouched. */

/* Hero artwork: warm-stone light WebP, dark mode swaps back to the shipped dark art. */
.qc-mkt-hero-art--home { background-image: url("/static/img/hero-home-light-1280.webp"); }
@media (max-width: 960px) {
  .qc-mkt-hero-art--home { background-image: url("/static/img/hero-home-light-960.webp"); }
}
@media (max-width: 640px) {
  .qc-mkt-hero-art--home { background-image: url("/static/img/hero-home-light-640.webp"); }
}
html[data-theme="dark"] .qc-mkt-hero-art--home { background-image: url("/static/img/hero-home-1920.webp"); }
@media (max-width: 960px) {
  html[data-theme="dark"] .qc-mkt-hero-art--home { background-image: url("/static/img/hero-home-1280.webp"); }
}
@media (max-width: 640px) {
  html[data-theme="dark"] .qc-mkt-hero-art--home { background-image: url("/static/img/hero-home-640.webp"); }
}

/* Mobile sells: the middle item is a 44px touch link, so center every row instead of top-aligning it. */
@media (max-width: 639px) {
  .qc-mkt-hero--home .qc-hero-sell {
    align-items: center;
    row-gap: 2px;
  }
}
@media (pointer: coarse), (max-width: 1023px) {
  .qc-mkt-hero--home .qc-hero-sell-item a {
    display: inline-flex;
    align-items: center;
  }
}

.qc-mkt-hero-veil--home {
  background: linear-gradient(to right, #FDFBF8 0%, rgba(253, 251, 248, 0.90) 46%, rgba(253, 251, 248, 0.32) 78%, rgba(253, 251, 248, 0.10) 100%);
}
html[data-theme="dark"] .qc-mkt-hero-veil--home {
  background: linear-gradient(to right, #0F0D0C 0%, rgba(15, 13, 12, 0.90) 46%, rgba(15, 13, 12, 0.44) 78%, rgba(15, 13, 12, 0.18) 100%);
}

/* Two columns on desktop, one compact column below it so the primary CTA stays above the fold. */
.qc-mkt-home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  min-width: 0;
}
@media (min-width: 1024px) {
  .qc-mkt-home-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

/* The imaged hero sets dark ink defaults; the light-first hero overrides them here. */
.qc-mkt-hero .qc-hero-kicker {
  background: var(--qc-surface-1);
  border-color: var(--qc-hairline-strong);
  color: var(--qc-fg-body);
}
html[data-theme="dark"] .qc-mkt-hero .qc-hero-kicker {
  background: rgba(23, 20, 18, 0.82);
  border-color: var(--qc-hairline);
  color: var(--qc-fg-body);
}
.qc-mkt-hero .qc-hero-hook { color: var(--qc-brand-text); }
.qc-mkt-hero .qc-hero-hook:hover { color: var(--qc-brand-text-hover); }
html[data-theme="dark"] .qc-mkt-hero .qc-hero-hook { color: #E39A82; }
html[data-theme="dark"] .qc-mkt-hero .qc-hero-hook:hover { color: #EDAF9B; }
.qc-mkt-pay-strip { margin-top: var(--qc-space-3); }

/* The referral card ships its own dark inline style; give the hero a higher-specificity light card. */
[data-qc-mkt="1"] .qc-mkt-hero--home .qc-refw-card {
  color: var(--qc-fg);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--qc-surface-1), var(--qc-surface-1)) padding-box,
    linear-gradient(140deg, var(--qc-brand-border), var(--qc-hairline-strong) 48%, var(--qc-brand-border)) border-box;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
[data-qc-mkt="1"] .qc-mkt-hero--home .qc-refw-badge {
  border-color: var(--qc-brand-border);
  background: var(--qc-brand-tint);
  color: var(--qc-brand-text);
}
[data-qc-mkt="1"] .qc-mkt-hero--home .qc-refw-title { color: var(--qc-fg); }
[data-qc-mkt="1"] .qc-mkt-hero--home .qc-refw-sub { color: var(--qc-fg-body); }
[data-qc-mkt="1"] .qc-mkt-hero--home .qc-refw-chip {
  border-color: var(--qc-hairline-strong);
  background: var(--qc-surface-2);
  color: var(--qc-fg-body);
}
[data-qc-mkt="1"] .qc-mkt-hero--home .qc-refw-note { color: var(--qc-fg-muted); }
html[data-theme="dark"] [data-qc-mkt="1"] .qc-mkt-hero--home .qc-refw-card {
  color: #F5F1EE;
  background:
    linear-gradient(rgba(23, 20, 18, 0.88), rgba(23, 20, 18, 0.88)) padding-box,
    linear-gradient(140deg, rgba(227, 154, 130, 0.85), rgba(255, 255, 255, 0.28) 48%, rgba(227, 154, 130, 0.55)) border-box;
}
html[data-theme="dark"] [data-qc-mkt="1"] .qc-mkt-hero--home .qc-refw-badge {
  border-color: rgba(227, 154, 130, 0.55);
  background: rgba(227, 154, 130, 0.16);
  color: #FFD9C9;
}
html[data-theme="dark"] [data-qc-mkt="1"] .qc-mkt-hero--home .qc-refw-title { color: #F5F1EE; }
html[data-theme="dark"] [data-qc-mkt="1"] .qc-mkt-hero--home .qc-refw-sub { color: #CFC7C1; }
html[data-theme="dark"] [data-qc-mkt="1"] .qc-mkt-hero--home .qc-refw-chip {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #F5F1EE;
}
html[data-theme="dark"] [data-qc-mkt="1"] .qc-mkt-hero--home .qc-refw-note { color: #CFC7C1; }

/* Live quickstart card: protocol toggle, copy button and a code pane that stays LTR. */
.qc-mkt-home-quick {
  display: none;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline);
  border-radius: 16px;
  box-shadow: var(--qc-mkt-card-shadow);
}
@media (min-width: 1024px) {
  .qc-mkt-home-quick { display: flex; }
}
.qc-mkt-quick-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--qc-hairline);
  background: var(--qc-surface-1);
}
.qc-mkt-quick-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--qc-hairline);
  border-radius: 9999px;
  background: var(--qc-surface-2);
}
.qc-mkt-quick-pill {
  min-height: 30px;
  padding: 4px 10px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--qc-fg-body);
  font-family: inherit;
  font-size: var(--qc-text-xs);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--qc-dur-color) var(--qc-ease), color var(--qc-dur-color) var(--qc-ease);
}
.qc-mkt-quick-pill:hover { color: var(--qc-fg); }
.qc-mkt-quick-pill.is-active {
  background: var(--qc-surface-1);
  color: var(--qc-fg);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(26, 22, 19, 0.08);
}
html[data-theme="dark"] .qc-mkt-quick-pill.is-active {
  background: #F5F1EE;
  color: #0F0D0C;
  box-shadow: none;
}
.qc-mkt-quick-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--qc-hairline);
  border-radius: 9999px;
  background: var(--qc-surface-1);
  color: var(--qc-fg-body);
  font-family: inherit;
  font-size: var(--qc-text-xs);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--qc-dur-color) var(--qc-ease), color var(--qc-dur-color) var(--qc-ease);
}
.qc-mkt-quick-copy:hover {
  border-color: var(--qc-brand-border);
  color: var(--qc-brand-text);
}
.qc-mkt-quick-pill:focus-visible,
.qc-mkt-quick-copy:focus-visible,
.qc-mkt-quick-foot a:focus-visible,
[data-qc-mkt="1"] .qc-mkt-table-fold-sum:focus-visible {
  outline: 2px solid var(--qc-focus);
  outline-offset: 2px;
}
.qc-mkt-quick-copy svg { width: 14px; height: 14px; flex-shrink: 0; }
.qc-mkt-quick-code {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  background: var(--qc-surface-2);
  color: var(--qc-fg);
  font-family: var(--qc-mono);
  font-size: 12px;
  line-height: 1.7;
  white-space: pre;
  border: 0;
}
.qc-mkt-quick-code code { display: block; font: inherit; color: inherit; }
html[data-theme="dark"] .qc-mkt-quick-code {
  background: #1A1715;
  color: #F5F1EE;
}
.qc-mkt-quick-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 10px 14px;
  border-top: 1px solid var(--qc-hairline);
}
.qc-mkt-quick-foot a {
  font-size: var(--qc-text-xs);
  font-weight: 500;
  color: var(--qc-brand-text);
  text-decoration: none;
}
.qc-mkt-quick-foot a:hover { color: var(--qc-brand-text-hover); }
html[data-theme="dark"] .qc-mkt-quick-foot a:hover { color: var(--qc-brand-text-hover, #EDAF9B); }

/* Seven-tier comparison: the fold trims scroll, the rows stay in the server-rendered HTML. */
[data-qc-mkt="1"] .qc-mkt-table-fold { margin-top: var(--qc-space-6); }
[data-qc-mkt="1"] .qc-mkt-table-fold-sum {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin-inline: auto;
  padding: 11px 20px;
  border: 1px solid var(--qc-hairline);
  border-radius: 9999px;
  background: var(--qc-surface-1);
  color: var(--qc-fg);
  font-size: var(--qc-text-sm);
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: border-color var(--qc-dur-color) var(--qc-ease), color var(--qc-dur-color) var(--qc-ease);
}
[data-qc-mkt="1"] .qc-mkt-table-fold-sum::-webkit-details-marker { display: none; }
[data-qc-mkt="1"] .qc-mkt-table-fold-sum:hover {
  border-color: var(--qc-brand-border);
  color: var(--qc-brand-text);
}
[data-qc-mkt="1"] .qc-mkt-table-fold-ico {
  flex-shrink: 0;
  transition: transform var(--qc-dur-color) var(--qc-ease);
}
[data-qc-mkt="1"] .qc-mkt-table-fold[open] .qc-mkt-table-fold-ico { transform: rotate(180deg); }
[data-qc-mkt="1"] .qc-mkt-table-fold .qc-table-wrap.qc-secondary {
  display: block;
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-lg);
  box-shadow: var(--qc-mkt-card-shadow);
}

/* Product lines: the definition and the four cards as elevated warm-white surfaces. */
[data-qc-mkt="1"] #product-lines .qc-geo {
  padding: clamp(20px, 3vw, 32px);
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-lg);
  box-shadow: var(--qc-mkt-card-shadow);
}
[data-qc-mkt="1"] #product-lines .qc-geo-kicker { color: var(--qc-brand-text); }
[data-qc-mkt="1"] #product-lines .qc-lines .qc-line {
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-lg);
  box-shadow: var(--qc-mkt-card-shadow);
  transition: border-color var(--qc-dur-color) var(--qc-ease), box-shadow var(--qc-dur-color) var(--qc-ease);
}
[data-qc-mkt="1"] #product-lines .qc-lines .qc-line:hover {
  border-color: var(--qc-brand-border);
  box-shadow: var(--qc-mkt-card-hover-shadow);
}
[data-qc-mkt="1"] #product-lines .qc-line-price {
  color: var(--qc-brand-text);
  font-variant-numeric: tabular-nums;
}

/* Featured plan cards follow /pricing: white surface, terracotta featured border, emerald checks. */
[data-qc-mkt="1"] .qc-plan-grid .qc-plan {
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-lg);
  box-shadow: var(--qc-mkt-card-shadow);
}
[data-qc-mkt="1"] .qc-plan-grid .qc-plan--featured {
  border-color: var(--qc-brand);
  box-shadow: var(--qc-mkt-featured-shadow);
}
[data-qc-mkt="1"] .qc-plan-grid .qc-plan-feats .qc-ico { color: var(--qc-ok); }
/* Non-zh cards now carry the billing period inline, so it reads as a quiet suffix to the price. */
[data-qc-mkt="1"] .qc-plan-period {
  font-family: var(--qc-sans);
  font-size: var(--qc-text-sm);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--qc-fg-muted);
  margin-inline-start: 2px;
}

/* Testimonials: elevated quote cards with a crisp attribution footer. */
[data-qc-mkt="1"] #testimonials .qc-quote {
  padding: var(--qc-space-5);
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-lg);
  box-shadow: var(--qc-mkt-card-shadow);
}
[data-qc-mkt="1"] #testimonials .qc-quote-text { color: var(--qc-fg-body); }
[data-qc-mkt="1"] #testimonials .qc-quote-foot {
  margin-top: auto;
  padding-top: var(--qc-space-3);
  border-top: 1px solid var(--qc-hairline);
}
[data-qc-mkt="1"] #testimonials .qc-quote-who { color: var(--qc-fg); }

/* Payments: one clean trust banner with the emerald lock accent. */
[data-qc-mkt="1"] #payments .qc-pay {
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-lg);
  box-shadow: var(--qc-mkt-card-shadow);
}
[data-qc-mkt="1"] #payments .qc-pay-icons { color: var(--qc-ok); }

/* Model mix and live capacity: crisp terracotta fills and tabular numbers. */
[data-qc-mkt="1"] #model-mix .qc-mix-track { background: var(--qc-mkt-sunk-strong); }
[data-qc-mkt="1"] #model-mix .qc-mix-fill { background: linear-gradient(90deg, var(--qc-brand), #D97757); }
[data-qc-mkt="1"] #model-mix .qc-mix-pct { font-variant-numeric: tabular-nums; }
[data-qc-mkt="1"] #capacity .qc-metric-card {
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-lg);
  box-shadow: var(--qc-mkt-card-shadow);
}
[data-qc-mkt="1"] #capacity .qc-metric-value {
  color: var(--qc-brand-text);
  font-variant-numeric: tabular-nums;
}

/* Why-choose grid and docs fold match the same surface language. */
[data-qc-mkt="1"] #why-me .qc-why-item {
  padding: var(--qc-space-5);
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-lg);
  box-shadow: var(--qc-mkt-card-shadow);
}
[data-qc-mkt="1"] #why-me .qc-why-item p { color: var(--qc-fg-body); }
[data-qc-mkt="1"] #docs .qc-docs-fold {
  padding: var(--qc-space-5);
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-lg);
  box-shadow: var(--qc-mkt-card-shadow);
}

/* Closing call to action: the same sunlit panel as the other marketing pages. */
[data-qc-mkt="1"] .qc-cta-panel {
  background: var(--qc-mkt-hero-bg);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-lg);
  box-shadow: var(--qc-mkt-card-shadow);
}
html[data-theme="dark"] [data-qc-mkt="1"] .qc-cta-panel { background: #171412; }
[data-qc-mkt="1"] .qc-cta-panel .qc-lede { margin-inline: auto; }

/* Anchor targets clear the fixed header. */
[data-qc-mkt="1"] :is(#product-lines, #testimonials, #payments, #model-mix, #howto, #capacity, #why-me, #docs) {
  scroll-margin-top: 96px;
}

/* marketing: pay-as-you-go & cloud landing */
/* Both pages reuse the pricing light artwork and the shared marketing surfaces; only the
   pieces that belong to these two pages are described here. */

/* Cloud hero: the same three light crops as /pricing, dark theme swaps back to the shipped dark art. */
.qc-mkt-hero-art--cloud { background-image: url("/static/img/hero-pricing-light-1280.webp"); }
@media (max-width: 960px) {
  .qc-mkt-hero-art--cloud { background-image: url("/static/img/hero-pricing-light-960.webp"); }
}
@media (max-width: 640px) {
  .qc-mkt-hero-art--cloud { background-image: url("/static/img/hero-pricing-light-640.webp"); }
}
html[data-theme="dark"] .qc-mkt-hero-art--cloud { background-image: url("/static/img/hero-pricing-1920.webp"); }
@media (max-width: 960px) {
  html[data-theme="dark"] .qc-mkt-hero-art--cloud { background-image: url("/static/img/hero-pricing-1280.webp"); }
}

/* Hero copy keeps light-first ink on both pages; the imaged hero ships dark ink defaults. */
.qc-mkt-hero--pricing .qc-hero-eyebrow,
.qc-mkt-hero--cloud .qc-hero-eyebrow {
  color: var(--qc-brand-text);
  font-weight: 600;
}
.qc-mkt-hero--pricing .qc-hero-actions,
.qc-mkt-hero--cloud .qc-hero-actions { row-gap: var(--qc-space-2); }

@media (max-width: 639px) {
  /* One dominant button above the fold: the secondary action keeps a 44px tap target but reads quieter. */
  .qc-mkt-hero--pricing .qc-hero-sell,
  .qc-mkt-hero--cloud .qc-hero-sell { margin-bottom: var(--qc-space-2); }
  .qc-mkt-hero--pricing .qc-hero-actions .qc-btn,
  .qc-mkt-hero--cloud .qc-hero-actions .qc-btn { min-height: 44px; }
}

/* Pay-as-you-go packs: elevated warm-white cards, the week pack carries the terracotta frame. */
[data-qc-mkt="1"] .qc-payg-pack {
  padding: var(--qc-space-5);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-lg);
  background: var(--qc-surface-1);
  box-shadow: var(--qc-mkt-card-shadow);
  transition: border-color var(--qc-dur-color) var(--qc-ease), box-shadow var(--qc-dur-color) var(--qc-ease);
}
[data-qc-mkt="1"] .qc-payg-pack:hover {
  border-color: var(--qc-brand-border);
  box-shadow: var(--qc-mkt-card-hover-shadow);
}
[data-qc-mkt="1"] .qc-payg-pack[data-payg-pack="week"] {
  border-color: var(--qc-brand);
  box-shadow: var(--qc-mkt-featured-shadow);
}
[data-qc-mkt="1"] .qc-payg-pack .qc-plan-name { color: var(--qc-fg); }
[data-qc-mkt="1"] .qc-payg-pack .qc-plan-price {
  font-family: var(--qc-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--qc-fg);
  margin-bottom: var(--qc-space-1);
}
[data-qc-mkt="1"] .qc-payg-pack .qc-plan-feats li { color: var(--qc-fg-body); }
[data-qc-mkt="1"] .qc-payg-pack .qc-btn { min-height: 44px; }

/* The honest top-up line is the availability signal: an emerald dot, no second brand accent. */
[data-qc-mkt="1"] [data-payg-recharge] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
  background: var(--qc-surface-1);
  box-shadow: var(--qc-mkt-card-shadow);
  color: var(--qc-fg-body);
}
[data-qc-mkt="1"] [data-payg-recharge]::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--qc-ok);
}
/* The maintenance script rewrites a CTA in place; the locked state stays legible on the light card. */
[data-qc-mkt="1"] .qc-payg-pack [data-payg-see-plans] { color: var(--qc-brand-text); }

/* Rules and worked example: two elevated cards, one icon-less heading each. */
[data-qc-mkt="1"] .qc-mkt-payg-rules-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--qc-space-5);
  align-items: start;
}
@media (min-width: 900px) {
  [data-qc-mkt="1"] .qc-mkt-payg-rules-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
}
[data-qc-mkt="1"] .qc-mkt-rules-card,
[data-qc-mkt="1"] .qc-payg-example {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-lg);
  background: var(--qc-surface-1);
  box-shadow: var(--qc-mkt-card-shadow);
}
[data-qc-mkt="1"] .qc-mkt-card-title {
  margin: 0 0 var(--qc-space-4);
  font-size: var(--qc-text-h3);
  font-weight: 600;
  color: var(--qc-fg);
}
[data-qc-mkt="1"] .qc-payg-rules > li { max-width: 64ch; }
[data-qc-mkt="1"] .qc-payg-rules > li::before {
  background: var(--qc-brand-tint);
  border-color: var(--qc-brand-border);
  color: var(--qc-brand-text);
}

/* Comparison: the desktop table sits in one elevated card, the stacked phone cards reuse the same surface. */
[data-qc-mkt="1"] .qc-payg-cmp-wide.qc-mkt-table-card { padding: 0; overflow-x: auto; }
[data-qc-mkt="1"] .qc-payg-cmp tbody tr:last-child :is(th, td) { border-bottom: 0; }
[data-qc-mkt="1"] .qc-payg-cmp-narrow .qc-card {
  padding: var(--qc-space-5);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-lg);
  background: var(--qc-surface-1);
  box-shadow: var(--qc-mkt-card-shadow);
}
[data-qc-mkt="1"] .qc-payg-banner {
  padding: var(--qc-space-5);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-lg);
  background: var(--qc-surface-1);
  box-shadow: var(--qc-mkt-card-shadow);
}

/* FAQ: the pricing disclosure surface, on native details so the answers stay in the HTML. */
[data-qc-mkt="1"] .qc-payg-faq details {
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
  background: var(--qc-surface-1);
  box-shadow: var(--qc-mkt-card-shadow);
  overflow: hidden;
}
[data-qc-mkt="1"] .qc-payg-faq details[open] { border-color: var(--qc-brand-border); }
[data-qc-mkt="1"] .qc-payg-faq summary {
  padding: 14px var(--qc-space-5);
  color: var(--qc-fg);
  font-weight: 600;
}
[data-qc-mkt="1"] .qc-payg-faq summary:hover { background: var(--qc-hover); }
[data-qc-mkt="1"] .qc-payg-faq details > div {
  padding: 0 var(--qc-space-5) var(--qc-space-4);
  color: var(--qc-fg-body);
}

/* Cloud line guide, configurator and after-purchase blocks keep the same elevated surfaces.
   The line-guide table reuses .qc-mkt-table-card, so only the cell details are tuned here. */
[data-qc-mkt="1"] .qc-cloud-table thead th { color: var(--qc-fg); }
[data-qc-mkt="1"] .qc-cloud-table tbody tr:last-child td { border-bottom: 0; }
[data-qc-mkt="1"] .qc-cloud-money { font-variant-numeric: tabular-nums; color: var(--qc-fg); }
[data-qc-mkt="1"] .qc-cloud-root .qc-card {
  background: var(--qc-surface-1);
  border-color: var(--qc-hairline);
  box-shadow: var(--qc-mkt-card-shadow);
}
[data-qc-mkt="1"] .qc-cloud-root .qc-cloud-choice.is-selected,
[data-qc-mkt="1"] .qc-cloud-root .qc-cloud-choice.is-highlight {
  border-color: var(--qc-brand);
  box-shadow: inset 0 0 0 1px var(--qc-brand);
}
[data-qc-mkt="1"] .qc-cloud-root .qc-cloud-choice.is-highlight { background: var(--qc-brand-tint); }
[data-qc-mkt="1"] .qc-cloud-summary.qc-card {
  border-color: var(--qc-hairline-strong);
  box-shadow: var(--qc-mkt-card-shadow);
}
[data-qc-mkt="1"] .qc-cloud-summary .qc-plan-price { font-variant-numeric: tabular-nums; }
[data-qc-mkt="1"] .qc-cloud-after .qc-card {
  padding: var(--qc-space-5);
  border-radius: var(--qc-radius-lg);
}
[data-qc-mkt="1"] .qc-cloud-after h3 { color: var(--qc-fg); }
[data-qc-mkt="1"] .qc-cloud-after p { color: var(--qc-fg-body); }
[data-qc-mkt="1"] .qc-cloud-ssh {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--qc-surface-2);
  border: 1px solid var(--qc-hairline);
  color: var(--qc-fg);
  font-size: var(--qc-text-sm);
}
[data-qc-mkt="1"] .qc-cloud-faq details {
  margin-bottom: var(--qc-space-3);
  padding: 0;
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
  background: var(--qc-surface-1);
  box-shadow: var(--qc-mkt-card-shadow);
  overflow: hidden;
}
[data-qc-mkt="1"] .qc-cloud-faq summary { padding: 14px var(--qc-space-5); color: var(--qc-fg); }
[data-qc-mkt="1"] .qc-cloud-faq summary:hover { background: var(--qc-hover); }
[data-qc-mkt="1"] .qc-cloud-faq details div {
  padding: 0 var(--qc-space-5) var(--qc-space-4);
  margin-top: 0;
  color: var(--qc-fg-body);
}
[data-qc-mkt="1"] .qc-cloud-anchors a { color: var(--qc-brand-text); }

/* Anchor targets clear the fixed header on both pages. */
[data-qc-mkt="1"] :is(#packs, #rules, #compare, #faq) { scroll-margin-top: 96px; }
[data-qc-mkt="1"] :is(#lines, #configure, #faq) { scroll-margin-top: 96px; }
/* marketing: models */
/* /models is the last public marketing page: the same warm-stone layer as /pricing and /partner-program,
   applied to a data-dense table. Every rule below is scoped to [data-qc-mkt="1"] or to a .qc-mkt-* hook
   this page emits, so the block stays self-contained next to the other pages' blocks.
   The page still ships Tailwind's dark utility classes; the remap below turns them into tokens, which
   flip with the theme on their own, so dark mode keeps ink-on-obsidian and light mode gets ink on stone. */

/* Hero artwork: the partner silk on warm stone. Dark mode swaps back to the shipped dark art. */
.qc-mkt-hero-art--models { background-image: url("/static/img/hero-partner-light-1280.webp"); }
@media (max-width: 960px) {
  .qc-mkt-hero-art--models { background-image: url("/static/img/hero-partner-light-960.webp"); }
}
@media (max-width: 640px) {
  .qc-mkt-hero-art--models { background-image: url("/static/img/hero-partner-light-640.webp"); }
}
html[data-theme="dark"] .qc-mkt-hero-art--models { background-image: url("/static/img/hero-partner-1152.webp"); }
@media (max-width: 960px) {
  html[data-theme="dark"] .qc-mkt-hero-art--models { background-image: url("/static/img/hero-partner-960.webp"); }
}
@media (max-width: 640px) {
  html[data-theme="dark"] .qc-mkt-hero-art--models { background-image: url("/static/img/hero-partner-640.webp"); }
}

/* Page ground: the body carries the dark-page ink utilities, so give it the light-first ground too. */
body.qc-page-models:has([data-qc-mkt="1"]) {
  background-color: var(--qc-surface-ground);
  color: var(--qc-fg);
}

/* Section bands: the sunken page ground for the explainers, the raised surface for card strips. */
[data-qc-mkt="1"] .qc-mkt-band {
  background: var(--qc-surface-ground);
  border-bottom: 1px solid var(--qc-hairline);
}
[data-qc-mkt="1"] .qc-mkt-family {
  background: var(--qc-surface-ground);
  border-top: 1px solid var(--qc-hairline);
}
[data-qc-mkt="1"] .qc-mkt-family:first-of-type { border-top: 0; }

/* Dark-page utilities → theme tokens. Scoped, so shared components (the upstream status bar) inherit
   the light-first surfaces on this page and keep their shipped look everywhere else. */
[data-qc-mkt="1"] .bg-ink-950 { background-color: var(--qc-surface-ground); }
[data-qc-mkt="1"] .bg-ink-900 { background-color: var(--qc-surface-1); }
[data-qc-mkt="1"] :is(.bg-white\/5, .bg-white\/10) { background-color: var(--qc-surface-2); }
[data-qc-mkt="1"] .bg-white\/20 { background-color: var(--qc-hairline-strong); }
[data-qc-mkt="1"] :is(.hover\:bg-white\/5:hover, .hover\:bg-white\/10:hover) { background-color: var(--qc-hover); }
[data-qc-mkt="1"] :is(.border-white\/10, .border-white\/15) { border-color: var(--qc-hairline); }
[data-qc-mkt="1"] .hover\:border-white\/20:hover { border-color: var(--qc-hairline-strong); }
[data-qc-mkt="1"] .divide-white\/5 > :not([hidden]) ~ :not([hidden]) { border-color: var(--qc-hairline); }
[data-qc-mkt="1"] .border-gray-300 { border-color: var(--qc-hairline-strong); }

[data-qc-mkt="1"] .text-white { color: var(--qc-fg); }
[data-qc-mkt="1"] :is(.text-white\/60, .text-white\/80) { color: var(--qc-fg-body); }
[data-qc-mkt="1"] .text-white\/50 { color: var(--qc-fg-muted); }
[data-qc-mkt="1"] .text-white\/20 { color: var(--qc-fg-muted); opacity: 0.65; }
[data-qc-mkt="1"] :is(.hover\:text-white:hover, .hover\:text-white\/70:hover) { color: var(--qc-fg); }

[data-qc-mkt="1"] .text-qcode-primary { color: var(--qc-brand-text); }
[data-qc-mkt="1"] .bg-qcode-primary\/15 { background-color: var(--qc-brand-tint); }
/* The blurred terracotta glows only read on the dark page; the light bands stay flat and sunlit. */
[data-qc-mkt="1"] .bg-qcode-primary\/10 { display: none; }
[data-qc-mkt="1"] :is(.bg-blue-500\/10, .bg-blue-500\/20) { background-color: var(--qc-surface-2); }
[data-qc-mkt="1"] .border-blue-500\/20 { border-color: var(--qc-hairline); }

/* Family accent text: Tailwind's 300/400 ramp is tuned for dark surfaces, so light mode steps it down
   to the same hues at text contrast. The values match the ones main.css already uses for this page. */
:root:not([data-theme="dark"]) [data-qc-mkt="1"] :is(.text-blue-300, .text-blue-400) { color: #1d4ed8; }
:root:not([data-theme="dark"]) [data-qc-mkt="1"] :is(.text-emerald-300, .text-emerald-400, .text-green-300) { color: #047857; }
:root:not([data-theme="dark"]) [data-qc-mkt="1"] :is(.text-violet-300, .text-violet-400) { color: #6d28d9; }
:root:not([data-theme="dark"]) [data-qc-mkt="1"] :is(.text-purple-400) { color: #7e22ce; }
:root:not([data-theme="dark"]) [data-qc-mkt="1"] :is(.text-rose-300, .text-rose-400) { color: #be123c; }
:root:not([data-theme="dark"]) [data-qc-mkt="1"] :is(.text-cyan-300, .text-cyan-400) { color: #0e7490; }
:root:not([data-theme="dark"]) [data-qc-mkt="1"] :is(.text-orange-300, .text-orange-400) { color: #c2410c; }
:root:not([data-theme="dark"]) [data-qc-mkt="1"] :is(.text-amber-300, .text-amber-300\/80, .text-amber-400) { color: #b45309; }
:root:not([data-theme="dark"]) [data-qc-mkt="1"] :is(.text-fuchsia-400) { color: #a21caf; }
:root:not([data-theme="dark"]) [data-qc-mkt="1"] :is(.text-red-300, .text-red-400) { color: #b91c1c; }
:root:not([data-theme="dark"]) [data-qc-mkt="1"] .text-gray-500 { color: var(--qc-fg-muted); }

/* Family tables: one elevated card per family. The card itself is the shared .qc-mkt-table-card used by
   /pricing and /enterprise, so this block only adds what the data-dense table needs: a quiet zebra,
   tabular prices and a readable minimum width inside the wrapper's own horizontal scroll container. */
[data-qc-mkt="1"] .qc-mkt-table { width: 100%; min-width: 720px; border-collapse: collapse; }
[data-qc-mkt="1"] .qc-mkt-table thead th {
  background: var(--qc-surface-2);
  color: var(--qc-fg-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--qc-hairline);
}
[data-qc-mkt="1"] .qc-mkt-table tbody td { color: var(--qc-fg-body); font-variant-numeric: tabular-nums; }
[data-qc-mkt="1"] .qc-mkt-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--qc-surface-2) 55%, transparent); }
[data-qc-mkt="1"] .qc-mkt-table tbody tr:hover { background: var(--qc-hover); }
[data-qc-mkt="1"] .qc-mkt-table code {
  font-family: var(--qc-mono);
  font-size: 0.8125rem;
  color: var(--qc-fg);
}
[data-qc-mkt="1"] .qc-mkt-table :is(.font-semibold, .font-medium) { font-variant-numeric: tabular-nums; }

/* Model cards: the curated strip and the mobile list share one elevated surface. */
[data-qc-mkt="1"] .qc-mkt-model-card {
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline);
  box-shadow: var(--qc-mkt-card-shadow);
  transition: border-color var(--qc-dur-color) var(--qc-ease),
    box-shadow var(--qc-dur-color) var(--qc-ease),
    background-color var(--qc-dur-color) var(--qc-ease);
}
[data-qc-mkt="1"] .qc-mkt-model-card:hover {
  border-color: var(--qc-brand-border);
  box-shadow: var(--qc-mkt-card-hover-shadow);
}
/* The hero model of the curated strip takes the terracotta border used for featured cards elsewhere. */
[data-qc-mkt="1"] .qc-mkt-model-card--hero {
  background: var(--qc-brand-tint);
  border-color: var(--qc-brand);
  box-shadow: var(--qc-mkt-featured-shadow);
}

/* Sticky family toolbar: opaque enough to hide the rows scrolling underneath, 44px touch targets. */
[data-qc-mkt="1"] .qc-models-tabbar {
  background: var(--qc-mkt-subnav-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--qc-hairline);
  box-shadow: none;
  padding-block: 10px;
}
[data-qc-mkt="1"] .qc-models-tabbar .qc-panel {
  background: var(--qc-surface-2);
  border: 1px solid var(--qc-hairline);
}
[data-qc-mkt="1"] .qc-models-tabbar button[type="button"] {
  min-height: 36px;
  border-radius: var(--qc-radius-sm);
  color: var(--qc-fg-body);
  transition: background-color var(--qc-dur-color) var(--qc-ease), color var(--qc-dur-color) var(--qc-ease);
}
[data-qc-mkt="1"] .qc-models-tabbar button[type="button"]:not(.qc-models-search-clear):hover {
  background: var(--qc-hover);
  color: var(--qc-fg);
}
/* The active family is the only filled pill in the bar, in ink instead of the loud per-family fills. */
html [data-qc-mkt="1"] .qc-models-tabbar button[type="button"][aria-pressed="true"],
html [data-qc-mkt="1"] .qc-models-tabbar button[type="button"][aria-pressed="true"] :is(span, b, strong, div) {
  background: var(--qc-fg) !important;
  color: var(--qc-surface-1) !important;
  font-weight: 600;
}
html [data-qc-mkt="1"] .qc-models-tabbar button[type="button"][aria-pressed="true"] :is(span, b, strong, div) { background: transparent !important; }
[data-qc-mkt="1"] .qc-models-tabbar button[type="button"]:focus-visible {
  outline: 2px solid var(--qc-focus);
  outline-offset: 2px;
}
[data-qc-mkt="1"] .qc-models-tabbar input[type="checkbox"] { accent-color: var(--qc-brand); }
[data-qc-mkt="1"] .qc-models-search-input {
  background-color: var(--qc-surface-1);
  border-color: var(--qc-hairline-strong);
  color: var(--qc-fg);
}
[data-qc-mkt="1"] .qc-models-search-input::placeholder { color: var(--qc-fg-muted); }
[data-qc-mkt="1"] .qc-models-search-input:focus-visible {
  border-color: var(--qc-brand);
  outline: 2px solid var(--qc-focus);
  outline-offset: 1px;
}
@media (max-width: 767px) {
  [data-qc-mkt="1"] .qc-models-tabbar button[type="button"]:not(.qc-models-search-clear) {
    min-height: 44px;
    padding-inline: 14px;
  }
}

/* No-results state and the empty catalog fallback. */
[data-qc-mkt="1"] .qc-mkt-empty { background: var(--qc-surface-1); border: 1px solid var(--qc-hairline); }

/* FAQ: the same disclosure card as /pricing (one hairline card per question). */
[data-qc-mkt="1"] .qc-mkt-faq-item {
  padding: 0;
  overflow: hidden;
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-lg);
  box-shadow: var(--qc-mkt-card-shadow);
}
[data-qc-mkt="1"] .qc-mkt-faq-item .qc-mkt-faq-trigger { border-radius: 0; color: var(--qc-fg); }
[data-qc-mkt="1"] .qc-mkt-faq-item .qc-mkt-faq-trigger:focus-visible {
  outline: 2px solid var(--qc-focus);
  outline-offset: -2px;
}

/* Closing band: the sunlit call-to-action panel keeps the page's block flow (the shared panel is a
   flex column, which would shrink the tile grid), one filled primary and outlined secondary actions. */
[data-qc-mkt="1"] .qc-mkt-cta-panel {
  display: block;
  padding: clamp(24px, 3vw, 40px);
}
[data-qc-mkt="1"] .qc-mkt-cta-tile {
  background: var(--qc-surface-1);
  border: 1px solid var(--qc-hairline);
  box-shadow: var(--qc-mkt-card-shadow);
  transition: border-color var(--qc-dur-color) var(--qc-ease),
    box-shadow var(--qc-dur-color) var(--qc-ease),
    transform var(--qc-dur-color) var(--qc-ease);
}
[data-qc-mkt="1"] .qc-mkt-cta-tile:hover {
  border-color: var(--qc-brand-border);
  box-shadow: var(--qc-mkt-card-hover-shadow);
}
[data-qc-mkt="1"] .qc-mkt-cta-tile--primary { border-color: var(--qc-brand); box-shadow: var(--qc-mkt-featured-shadow); }
[data-qc-mkt="1"] .qc-mkt-cta-tile > span:last-child {
  padding: 8px 14px;
  border: 1px solid var(--qc-hairline-strong);
  border-radius: 999px;
  color: var(--qc-fg);
}
[data-qc-mkt="1"] .qc-mkt-cta-tile--primary > span:last-child {
  background: var(--qc-brand);
  border-color: transparent;
  color: var(--qc-brand-on);
}
[data-qc-mkt="1"] .qc-mkt-cta-tile:focus-visible {
  outline: 2px solid var(--qc-focus);
  outline-offset: 2px;
}

/* Anchor targets clear the fixed header and the sticky family toolbar. */
[data-qc-mkt="1"] :is(#faq, .qc-mkt-family) { scroll-margin-top: 96px; }
/* On desktop a family anchor also has to clear the sticky toolbar above the rows. */
@media (min-width: 768px) {
  [data-qc-mkt="1"] .qc-mkt-family { scroll-margin-top: 190px; }
}

/* ── New-user journey bar (components/journey.html) ─────────────────────────────────────────────
   Five numbered nodes in an ol: vertical below 1024px (dot column on the inline-start side, connector going
   down), horizontal from 1024px (five columns, connector going across). Logical properties only, so the RTL
   mirror needs nothing extra. Nothing animates and the nodes have no hover state.
   Node states, told apart by shape and colour: is-neutral (no current step: outlined dot, full-ink icon),
   is-done (solid ok dot with a check), is-now (solid brand dot ringed in brand-text, plus the tinted
   "you are here" pill), is-todo (outlined dot, muted icon, dashed connector).
   Contrast: text is fg / fg-body / fg-muted (4.5:1 and up on raise, ground and sunk, both themes); rings,
   connectors and icons are fg-muted, ok or brand-text (3:1 and up). The connector after a done node is ok. */
.qc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.qc-journey {
  min-width: 0;
  text-align: start;
  color: var(--qc-fg-body);
}
.qc-journey--full {
  background: var(--qc-surface-raise);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
  padding: var(--qc-space-4);
}
.qc-journey-title {
  margin: 0;
  font-size: var(--qc-text-h2);
  font-weight: 600;
  line-height: 1.25;
  color: var(--qc-fg);
  text-wrap: balance;
}
.qc-journey--full .qc-journey-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.10;
  letter-spacing: -0.028em;
}
.qc-journey-sub {
  margin: 0;
  margin-block-start: var(--qc-space-2);
  max-width: 70ch;
  font-size: var(--qc-text-body);
  line-height: 1.60;
  color: var(--qc-fg-body);
}
.qc-journey-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.qc-journey > * + .qc-journey-steps { margin-block-start: var(--qc-space-5); }
.qc-journey--full > * + .qc-journey-steps { margin-block-start: var(--qc-space-6); }
.qc-journey-node {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: var(--qc-space-3);
  align-items: start;
  min-width: 0;
  padding-block-end: var(--qc-space-5);
}
.qc-journey-node:last-child { padding-block-end: 0; }
.qc-journey-line {
  position: absolute;
  inset-inline-start: 19px;
  inset-block-start: 48px;
  inset-block-end: 8px;
  width: 0;
  border: 0 dashed var(--qc-fg-muted);
  border-inline-start-width: 2px;
}
.qc-journey-node.is-neutral .qc-journey-line { border-style: solid; }
.qc-journey-node.is-done .qc-journey-line {
  border-style: solid;
  border-color: var(--qc-ok);
}
.qc-journey-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  border: 2px solid var(--qc-fg-muted);
  border-radius: var(--qc-radius-full);
  background: var(--qc-surface-raise);
  color: var(--qc-fg-body);
}
.qc-journey-ico {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
}
.qc-journey-node.is-todo .qc-journey-dot { color: var(--qc-fg-muted); }
.qc-journey-node.is-done .qc-journey-dot {
  background: var(--qc-ok);
  border-color: var(--qc-ok);
  color: var(--qc-ok-on);
}
.qc-journey-node.is-now .qc-journey-dot {
  background: var(--qc-brand);
  border-color: var(--qc-brand-text);
  color: var(--qc-brand-on);
}
.qc-journey-body {
  min-width: 0;
  padding-block-start: 2px;
}
.qc-journey-k {
  display: block;
  font-family: var(--qc-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--qc-text-xs);
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.10em;
  color: var(--qc-fg-muted);
}
.qc-journey-t {
  margin: 0;
  margin-block-start: 2px;
  font-size: var(--qc-text-body);
  font-weight: 600;
  line-height: 1.40;
  color: var(--qc-fg);
}
.qc-journey-node.is-todo .qc-journey-t { color: var(--qc-fg-body); }
.qc-journey-now {
  display: inline-flex;
  margin-block-start: var(--qc-space-1);
  padding: 2px 8px;
  border: 1px solid var(--qc-brand);
  border-radius: var(--qc-radius-full);
  background: var(--qc-brand-tint);
  color: var(--qc-brand-text-on-tint);
  font-size: var(--qc-text-xs);
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
}
.qc-journey-d {
  margin: 0;
  margin-block-start: var(--qc-space-1);
  font-size: var(--qc-text-sm);
  line-height: 1.50;
  color: var(--qc-fg-muted);
}
.qc-journey-hints {
  list-style: none;
  margin: 0;
  margin-block-start: var(--qc-space-3);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--qc-space-2);
}
.qc-journey-hint {
  display: flex;
  align-items: flex-start;
  gap: var(--qc-space-2);
  max-width: 100%;
  padding: var(--qc-space-2);
  border-radius: var(--qc-radius-sm);
  background: var(--qc-surface-sunk);
  font-size: var(--qc-text-xs);
  line-height: 1.50;
  color: var(--qc-fg-body);
}
.qc-journey-hint-ico {
  flex: none;
  width: 14px;
  height: 14px;
  margin-block-start: 2px;
  color: var(--qc-fg-muted);
}
.qc-journey-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--qc-space-4) var(--qc-space-5);
  margin-block-start: var(--qc-space-5);
  padding-block-start: var(--qc-space-5);
  border-block-start: 1px solid var(--qc-hairline);
}
.qc-journey-wallet {
  display: flex;
  align-items: flex-start;
  gap: var(--qc-space-2);
  flex: 1 1 320px;
  min-width: 0;
  margin: 0;
  font-size: var(--qc-text-sm);
  line-height: 1.50;
  color: var(--qc-fg-muted);
}
.qc-journey-wallet-ico {
  flex: none;
  width: 16px;
  height: 16px;
  margin-block-start: 2px;
}
.qc-journey-cta {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--qc-space-3);
  width: 100%;
}
.qc-journey-cta .qc-btn {
  width: 100%;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .qc-journey--full .qc-journey-title { font-size: var(--qc-text-h1); }
  .qc-journey-cta {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
  }
  .qc-journey-cta .qc-btn { width: auto; }
}
@media (min-width: 900px) {
  .qc-journey--full { padding: var(--qc-space-5); }
}
@media (min-width: 1024px) {
  .qc-journey-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: var(--qc-space-5);
  }
  .qc-journey-node {
    display: block;
    padding-block-end: 0;
  }
  .qc-journey-line {
    inset-block-start: 19px;
    inset-block-end: auto;
    inset-inline-start: 48px;
    inset-inline-end: -16px;
    width: auto;
    height: 0;
    border-inline-start-width: 0;
    border-block-start-width: 2px;
  }
  .qc-journey-body {
    margin-block-start: var(--qc-space-3);
    padding-block-start: 0;
  }
  .qc-journey-hints { align-items: stretch; }
}

/* Mirrored by the RTL build only (value directive): the horizontal arrow of the recharge mini flow points
   the other way on right-to-left pages. The downward arrow, the check and the icons never carry this class.
   Do not reuse the exact Heroicons arrow / chevron paths listed in rtl-extra.css for this arrow: that sheet
   flips those paths again inside the view-box and the two flips would cancel out. */
.qc-journey-flip {
  transform: none /*rtl:scaleX(-1)*/;
}

/* ── Recharge page "what happens after you pay" (components/journey_recharge.html) ───────────────
   Markup contract:
     section.qc-journey-rc[data-open="auto" | "1" | "0"]
       button.qc-journey-rc-toggle (optionally inside h2.qc-journey-rc-h)
         span.qc-journey-rc-title.qc-journey-rc-when-open    expanded title
         span.qc-journey-rc-title.qc-journey-rc-when-closed  one-line collapsed title
         span.qc-journey-rc-act.qc-journey-rc-when-closed    "expand" label
         span.qc-journey-rc-act.qc-journey-rc-when-open      "collapse" label
       div.qc-journey-rc-body
         ol.qc-journey-rc-steps > li.qc-journey-rc-step (k / t / d, icon .qc-journey-rc-ico)
           every step but the last ends with span.qc-journey-rc-sep[aria-hidden]
             > svg.qc-journey-rc-arrow-h.qc-journey-flip + svg.qc-journey-rc-arrow-v
           (inside the item, so the list still reads as three steps; it is drawn in the gap after the step)
         p.qc-journey-rc-note
         div.qc-journey-rc-eta > p.qc-journey-rc-eta-title + ul.qc-journey-rc-eta-list
           > li.qc-journey-rc-eta-row > svg.qc-journey-rc-ico + span.qc-journey-rc-eta-text
   data-open: "1" open, "0" closed, "auto" open from 640px and closed below (the same test as
   matchMedia('(min-width: 640px)'), so a script can work out the effective state). The when-open /
   when-closed labels follow the same rule. Mini flow: a row with horizontal arrows from 640px, a column with
   downward arrows below; each arrow is shown by its own media rule, never by a transform. */
.qc-journey-rc {
  min-width: 0;
  padding: var(--qc-space-4);
  border: 1px solid var(--qc-hairline);
  border-radius: var(--qc-radius-md);
  background: var(--qc-surface-raise);
  text-align: start;
  color: var(--qc-fg-body);
}
.qc-journey-rc-h {
  margin: 0;
  font: inherit;
}
.qc-journey-rc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--qc-space-3);
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--qc-radius-sm);
  background: transparent;
  color: var(--qc-fg);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.qc-journey-rc-toggle:focus-visible {
  outline: 2px solid var(--qc-focus);
  outline-offset: 2px;
}
.qc-journey-rc-title {
  min-width: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: var(--qc-fg);
}
.qc-journey-rc-act {
  flex: none;
  font-size: var(--qc-text-sm);
  font-weight: 500;
  line-height: 20px;
  color: var(--qc-brand-text);
  white-space: nowrap;
}
.qc-journey-rc-toggle:hover .qc-journey-rc-act { text-decoration: underline; }
.qc-journey-rc-body { margin-block-start: var(--qc-space-4); }
.qc-journey-rc-body > * { margin-block: 0; }
.qc-journey-rc-body > * + * { margin-block-start: var(--qc-space-4); }
.qc-journey-rc-steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--qc-space-6);
}
.qc-journey-rc-step {
  position: relative;
  min-width: 0;
  padding: var(--qc-space-4);
  border-radius: var(--qc-radius-md);
  background: var(--qc-surface-sunk);
}
.qc-journey-rc-k {
  display: block;
  font-family: var(--qc-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--qc-text-xs);
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.10em;
  color: var(--qc-fg-muted);
}
.qc-journey-rc-t {
  display: flex;
  align-items: center;
  gap: var(--qc-space-2);
  margin: 0;
  margin-block-start: var(--qc-space-1);
  font-size: var(--qc-text-body);
  font-weight: 600;
  line-height: 1.40;
  color: var(--qc-fg);
}
.qc-journey-rc-ico {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--qc-fg-muted);
}
.qc-journey-rc-d {
  margin: 0;
  margin-block-start: var(--qc-space-1);
  font-size: var(--qc-text-sm);
  line-height: 1.50;
  color: var(--qc-fg-muted);
}
.qc-journey-rc-sep {
  position: absolute;
  inset-block-start: 100%;
  inset-inline: 0;
  height: var(--qc-space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--qc-fg-muted);
  pointer-events: none;
}
.qc-journey-rc-arrow-h,
.qc-journey-rc-arrow-v {
  display: block;
  flex: none;
  align-self: center;
  width: 20px;
  height: 20px;
  color: var(--qc-fg-muted);
}
.qc-journey-rc-arrow-h { display: none; }
.qc-journey-rc-note {
  font-size: var(--qc-text-sm);
  line-height: 1.60;
  color: var(--qc-fg-body);
}
.qc-journey-rc-eta-title {
  margin: 0;
  font-size: var(--qc-text-sm);
  font-weight: 600;
  line-height: 1.50;
  color: var(--qc-fg);
}
.qc-journey-rc-eta-list {
  list-style: none;
  margin: 0;
  margin-block-start: var(--qc-space-2);
  padding: 0;
}
.qc-journey-rc-eta-row {
  display: flex;
  align-items: flex-start;
  gap: var(--qc-space-3);
  padding-block: var(--qc-space-2);
  border-block-end: 1px solid var(--qc-hairline);
  font-size: var(--qc-text-sm);
  line-height: 1.50;
  color: var(--qc-fg-body);
}
.qc-journey-rc-eta-row:last-child { border-block-end: 0; }
.qc-journey-rc-eta-text { min-width: 0; }
.qc-journey-rc[data-open="0"] .qc-journey-rc-body,
.qc-journey-rc[data-open="0"] .qc-journey-rc-when-open,
.qc-journey-rc[data-open="1"] .qc-journey-rc-when-closed { display: none; }
@media not all and (min-width: 640px) {
  .qc-journey-rc[data-open="auto"] .qc-journey-rc-body,
  .qc-journey-rc[data-open="auto"] .qc-journey-rc-when-open { display: none; }
}
@media (min-width: 640px) {
  .qc-journey-rc { padding: var(--qc-space-5); }
  .qc-journey-rc[data-open="auto"] .qc-journey-rc-when-closed { display: none; }
  .qc-journey-rc-steps { flex-direction: row; }
  .qc-journey-rc-step { flex: 1 1 0; }
  .qc-journey-rc-sep {
    inset-block: 0;
    inset-inline-start: 100%;
    inset-inline-end: auto;
    width: var(--qc-space-6);
    height: auto;
  }
  .qc-journey-rc-arrow-h { display: block; }
  .qc-journey-rc-arrow-v { display: none; }
}

/* SEO article layer (light-first) */
/* Reading-first article layout for the generated guide pages and the full-bleed closing band.
   Everything is scoped to [data-qc-seo="1"], which only the SEO article root and that closing band
   carry, so the console and marketing layers keep their own tokens. The layer is append-only and
   self-contained: spacing, type and colour are declared here, direction uses logical properties
   only, and the dark theme is a second token block plus a handful of surface swaps. */

/* Palette: the shared component tokens are re-pointed inside the scope so the buttons, text links
   and cards that the article reuses follow the article palette instead of the default one. */
[data-qc-seo="1"] {
  --qc-surface-ground: #F6F4F0;
  --qc-surface-raise: #FFFFFF;
  --qc-surface-sunk: #F3F0EA;
  --qc-fg: #1A1613;
  --qc-fg-body: #3F3832;
  --qc-fg-muted: #686059;
  --qc-fg-secondary: #686059;
  --qc-hairline: rgba(28, 24, 20, 0.09);
  --qc-hairline-strong: rgba(28, 24, 20, 0.17);
  --qc-brand: #B84B27;
  --qc-brand-hover: #A13E1E;
  --qc-brand-on: #FFFFFF;
  --qc-brand-text: #B24624;
  --qc-brand-text-on-tint: #B24624;
  --qc-brand-tint: #FDF5F1;
  --qc-brand-border: rgba(184, 75, 39, 0.36);
  --qc-focus: #B24624;
  /* Private aliases for this layer. */
  --qc-seo-shadow: 0 1px 2px rgba(26, 22, 19, 0.04), 0 4px 14px rgba(26, 22, 19, 0.03);
  --qc-seo-shadow-hover: 0 2px 6px rgba(26, 22, 19, 0.06), 0 10px 24px rgba(26, 22, 19, 0.06);
  --qc-seo-brand-line: rgba(184, 75, 39, 0.18);
  --qc-seo-brand-rule: rgba(184, 75, 39, 0.25);
  --qc-seo-brand-edge: rgba(184, 75, 39, 0.35);
  --qc-seo-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

html[data-theme="dark"] [data-qc-seo="1"] {
  --qc-surface-ground: #0F0D0C;
  --qc-surface-raise: #171412;
  --qc-surface-sunk: #0A0908;
  --qc-fg: #F3EEE9;
  --qc-fg-body: #D6CFC8;
  --qc-fg-muted: #A69C93;
  --qc-fg-secondary: #A69C93;
  --qc-hairline: rgba(255, 255, 255, 0.10);
  --qc-hairline-strong: rgba(255, 255, 255, 0.20);
  --qc-brand: #E39A82;
  --qc-brand-hover: color-mix(in srgb, #E39A82 84%, #FFFFFF);
  --qc-brand-on: #0F0D0C;
  --qc-brand-text: #E39A82;
  --qc-brand-text-on-tint: #E39A82;
  --qc-brand-tint: rgba(227, 154, 130, 0.10);
  --qc-brand-border: rgba(227, 154, 130, 0.42);
  --qc-focus: #E39A82;
  --qc-seo-shadow: none;
  --qc-seo-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.35);
  --qc-seo-brand-line: rgba(227, 154, 130, 0.22);
  --qc-seo-brand-rule: rgba(227, 154, 130, 0.32);
  --qc-seo-brand-edge: rgba(227, 154, 130, 0.45);
}

/* Ground and rhythm: the old blue gradient wash is replaced by a paper ground. */
[data-qc-seo="1"].qc-seo {
  background-color: var(--qc-surface-ground);
  color: var(--qc-fg-body);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

[data-qc-seo="1"] .qc-seo-wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 640px) {
  [data-qc-seo="1"] .qc-seo-wrap { padding-inline: 24px; }
}

@media (min-width: 1024px) {
  [data-qc-seo="1"] .qc-seo-wrap { padding-inline: 32px; }
}

/* Hero: typographic opening, left aligned, no card around the headline. */
[data-qc-seo="1"] .qc-seo-hero {
  padding-block: 0 24px;
  border-block-end: 1px solid var(--qc-hairline);
  text-align: start;
}

[data-qc-seo="1"] .qc-seo-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--qc-brand-tint);
  border: 1px solid var(--qc-seo-brand-line);
  color: var(--qc-brand-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

[data-qc-seo="1"] .qc-seo-h1 {
  margin-block: 16px 14px;
  max-width: 880px;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--qc-fg);
}

[data-qc-seo="1"] .qc-seo-lede {
  max-width: 860px;
  margin-block: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--qc-fg-body);
}

@media (min-width: 768px) {
  [data-qc-seo="1"] .qc-seo-h1 { font-size: 40px; line-height: 1.25; }
  [data-qc-seo="1"] .qc-seo-lede { font-size: 17px; }
}

[data-qc-seo="1"] .qc-seo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 16px 0;
}

[data-qc-seo="1"] .qc-seo-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--qc-surface-raise);
  border: 1px solid var(--qc-hairline);
  font-size: 13px;
  line-height: 1.5;
  color: var(--qc-fg-muted);
}

/* Article grid: one column on phones, a 720px reading column plus a 300px sticky rail from 1024px. */
[data-qc-seo="1"] .qc-seo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-block: 32px 24px;
}


@media (min-width: 1024px) {
  [data-qc-seo="1"] .qc-seo-grid {
    grid-template-columns: minmax(0, 720px) 300px;
    column-gap: 56px;
    justify-content: space-between;
    align-items: start;
    padding-block: 48px 32px;
  }
  [data-qc-seo="1"] .qc-seo-grid > * { grid-column: 1; }
  [data-qc-seo="1"] .qc-seo-grid > .qc-seo-rail {
    grid-column: 2;
    grid-row: 1 / span 30;
    align-self: start;
    position: sticky;
    inset-block-start: 88px;
  }
}

[data-qc-seo="1"] .qc-seo-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  margin-block: 8px 32px;
}

@media (min-width: 1024px) {
  [data-qc-seo="1"] .qc-seo-rail { margin-block: 0; }
}


/* Table of contents. */
[data-qc-seo="1"] .qc-seo-toc {
  background: var(--qc-surface-raise);
  border: 1px solid var(--qc-hairline);
  border-radius: 12px;
  box-shadow: var(--qc-seo-shadow);
  padding-block: 18px;
  padding-inline: 0;
}

[data-qc-seo="1"] .qc-seo-toc-title {
  margin-block: 0 8px;
  padding-inline: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--qc-fg-muted);
}

[data-qc-seo="1"] .qc-seo-toc-link {
  display: block;
  padding-block: 8px;
  padding-inline: 12px;
  border-inline-start: 3px solid transparent;
  font-size: 14px;
  line-height: 1.5;
  color: var(--qc-fg-muted);
  text-decoration: none;
  transition: color var(--qc-dur-color) var(--qc-ease), background-color var(--qc-dur-color) var(--qc-ease);
}

[data-qc-seo="1"] .qc-seo-toc-link:hover {
  background: var(--qc-surface-sunk);
  color: var(--qc-brand-text);
}

[data-qc-seo="1"] .qc-seo-toc-link:focus-visible {
  outline: 2px solid var(--qc-focus);
  outline-offset: -2px;
}

@media screen and (max-width: 1023px) {
  [data-qc-seo="1"] .qc-seo-toc {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-block: 10px;
    padding-inline: 12px;
    scrollbar-width: thin;
  }
  [data-qc-seo="1"] .qc-seo-toc-title {
    flex: none;
    margin-block: 0;
    padding-inline: 0;
  }
  [data-qc-seo="1"] .qc-seo-toc-link {
    flex: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-block: 0;
    padding-inline: 14px;
    border: 1px solid var(--qc-hairline);
    border-radius: 999px;
    white-space: nowrap;
    background: var(--qc-surface-raise);
    color: var(--qc-fg-body);
  }
}

/* Sections: one reading column, generous but even spacing, anchors clear the fixed header. */
[data-qc-seo="1"] .qc-seo-sec {
  margin-block: 0 48px;
  min-width: 0;
}

[data-qc-seo="1"] .qc-seo-sec:last-of-type { margin-block-end: 0; }

[data-qc-seo="1"] :is(#highlights, #overview, #timeline, #comparison, #setup, #faq, #try-small, .qc-seo-sec) {
  scroll-margin-block-start: 88px;
}

[data-qc-seo="1"] .qc-seo-h2 {
  margin-block: 0 16px;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--qc-fg);
  text-align: start;
  scroll-margin-block-start: 88px;
}

@media (min-width: 768px) {
  [data-qc-seo="1"] .qc-seo-h2 { font-size: 26px; }
}

[data-qc-seo="1"] .qc-seo-h3 {
  margin-block: 0 8px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--qc-fg);
  text-align: start;
}

[data-qc-seo="1"] .qc-seo-p {
  margin-block: 0 16px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--qc-fg-body);
}

[data-qc-seo="1"] .qc-seo-p:last-child { margin-block-end: 0; }

[data-qc-seo="1"] .qc-seo-sec > .qc-seo-p:last-child,
[data-qc-seo="1"] .qc-seo-card > .qc-seo-p:last-child { margin-block-end: 0; }

/* Key numbers: two cards per row from 640px, one per row on phones. */
[data-qc-seo="1"] .qc-seo-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

[data-qc-seo="1"] .qc-seo-stats > :is(.qc-seo-h2, h2) {
  grid-column: 1 / -1;
  margin-block-end: 4px;
}

/* A plain wrapper around the cards keeps the same rhythm as direct children. */
[data-qc-seo="1"] .qc-seo-stats > div:not(.qc-seo-stat) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  [data-qc-seo="1"] .qc-seo-stats,
  [data-qc-seo="1"] .qc-seo-stats > div:not(.qc-seo-stat) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

[data-qc-seo="1"] .qc-seo-stat {
  padding: 16px;
  background: var(--qc-surface-raise);
  border: 1px solid var(--qc-hairline);
  border-radius: 12px;
  box-shadow: var(--qc-seo-shadow);
  min-width: 0;
}

@media (min-width: 768px) {
  [data-qc-seo="1"] .qc-seo-stat { padding: 20px; }
}

[data-qc-seo="1"] .qc-seo-stat-n {
  margin-block: 0 8px;
  font-family: var(--qc-seo-mono);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--qc-brand-text);
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  [data-qc-seo="1"] .qc-seo-stat-n { font-size: 24px; }
}

[data-qc-seo="1"] .qc-seo-stat :is(h3, .qc-seo-h3) {
  margin-block: 0 6px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--qc-fg);
}

[data-qc-seo="1"] .qc-seo-stat p {
  margin-block: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--qc-fg-muted);
}

/* Surfaces. */
[data-qc-seo="1"] .qc-seo-card {
  min-width: 0;
  padding: 20px;
  background: var(--qc-surface-raise);
  border: 1px solid var(--qc-hairline);
  border-radius: 12px;
  box-shadow: var(--qc-seo-shadow);
}

@media (min-width: 768px) {
  [data-qc-seo="1"] .qc-seo-card { padding: 24px; }
}

[data-qc-seo="1"] .qc-seo-card > :last-child { margin-block-end: 0; }

/* Confirmed / not stated: a semantic edge, never a coloured fill. */
[data-qc-seo="1"] .qc-seo-ok { border-inline-start: 3px solid #047857; }
[data-qc-seo="1"] .qc-seo-warn { border-inline-start: 3px solid #9A5207; }

html[data-theme="dark"] [data-qc-seo="1"] .qc-seo-ok {
  border-inline-start-color: color-mix(in srgb, #047857 58%, #FFFFFF);
}
html[data-theme="dark"] [data-qc-seo="1"] .qc-seo-warn {
  border-inline-start-color: color-mix(in srgb, #9A5207 58%, #FFFFFF);
}

/* Timeline: a 2px rule on the inline start with brand dots. */
[data-qc-seo="1"] .qc-seo-timeline {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-block: 0;
  margin-inline: 6px 0;
  padding-block: 0;
  padding-inline: 26px 0;
  border-inline-start: 2px solid var(--qc-hairline-strong);
  list-style: none;
}

[data-qc-seo="1"] .qc-seo-timeline > * {
  margin-block: 0;
  list-style: none;
}

[data-qc-seo="1"] .qc-seo-tl { position: relative; min-width: 0; }

[data-qc-seo="1"] .qc-seo-tl::before {
  content: "";
  position: absolute;
  inset-block-start: 6px;
  inset-inline-start: -33px;
  inline-size: 12px;
  block-size: 12px;
  border-radius: 999px;
  background: var(--qc-brand);
  box-shadow: 0 0 0 4px var(--qc-surface-ground);
}

[data-qc-seo="1"] .qc-seo-tl-date {
  margin-block: 0 4px;
  font-family: var(--qc-seo-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--qc-brand-text);
}

[data-qc-seo="1"] .qc-seo-tl p {
  margin-block: 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--qc-fg-body);
}

/* Comparison: two neutral cards, neither marked as the recommendation. */
[data-qc-seo="1"] .qc-seo-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  [data-qc-seo="1"] .qc-seo-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The second setup card is the QCode route, so it carries a brand edge. */
[data-qc-seo="1"] .qc-seo-card--brand {
  border-inline-start: 3px solid var(--qc-brand);
}

/* FAQ: a divided list with a plus / minus marker. */
[data-qc-seo="1"] .qc-seo-faq {
  border-block-start: 1px solid var(--qc-hairline);
}

[data-qc-seo="1"] .qc-seo-qa {
  border-block-end: 1px solid var(--qc-hairline);
}

[data-qc-seo="1"] .qc-seo-qa > summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  margin-block: 0;
  padding-block: 18px;
  padding-inline: 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--qc-fg);
  text-align: start;
  list-style: none;
  cursor: pointer;
}

[data-qc-seo="1"] .qc-seo-qa > summary::-webkit-details-marker { display: none; }

[data-qc-seo="1"] .qc-seo-qa > summary::after {
  content: "+";
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 24px;
  block-size: 24px;
  margin-block-start: 2px;
  border: 1px solid var(--qc-hairline-strong);
  border-radius: 999px;
  color: var(--qc-fg-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

[data-qc-seo="1"] .qc-seo-qa[open] > summary::after {
  content: "\2212";
  background: var(--qc-brand-tint);
  border-color: var(--qc-seo-brand-rule);
  color: var(--qc-brand-text);
}

[data-qc-seo="1"] .qc-seo-qa > summary:focus-visible {
  outline: 2px solid var(--qc-focus);
  outline-offset: -2px;
}

[data-qc-seo="1"] .qc-seo-qa > :is(p, div) {
  margin-block: 0;
  padding-block: 0 18px;
  padding-inline: 4px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--qc-fg-body);
}

/* Sources: the quietest block on the page. */
[data-qc-seo="1"] .qc-seo-src :is(h2, h3, .qc-seo-h2) {
  margin-block: 0 8px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--qc-fg);
}

[data-qc-seo="1"] .qc-seo-src p {
  margin-block: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--qc-fg-muted);
}

/* Related reading sits after the grid, on the full container width. */
[data-qc-seo="1"] .qc-seo-related {
  padding-block: 16px 56px;
}

[data-qc-seo="1"] .qc-seo-related .qc-seo-h2 {
  margin-block: 0 16px;
  font-size: 22px;
}

[data-qc-seo="1"] .qc-seo-relgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  [data-qc-seo="1"] .qc-seo-relgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  [data-qc-seo="1"] .qc-seo-relgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

[data-qc-seo="1"] .qc-seo-rel {
  display: block;
  min-width: 0;
  padding: 20px;
  background: var(--qc-surface-raise);
  border: 1px solid var(--qc-hairline);
  border-radius: 12px;
  box-shadow: var(--qc-seo-shadow);
  text-decoration: none;
  transition: border-color var(--qc-dur-color) var(--qc-ease), box-shadow var(--qc-dur-color) var(--qc-ease);
}

[data-qc-seo="1"] .qc-seo-rel:hover {
  border-color: var(--qc-seo-brand-edge);
  box-shadow: var(--qc-seo-shadow-hover);
}

[data-qc-seo="1"] .qc-seo-rel:focus-visible {
  outline: 2px solid var(--qc-focus);
  outline-offset: 2px;
}

[data-qc-seo="1"] .qc-seo-rel :is(h3, .qc-seo-h3) {
  margin-block: 0 8px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--qc-fg);
}

[data-qc-seo="1"] .qc-seo-rel p {
  margin-block: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--qc-fg-muted);
}

[data-qc-seo="1"] .qc-seo-disclaimer {
  max-width: 860px;
  margin-block: 28px 0;
  font-size: 13px;
  line-height: 1.7;
  font-style: italic;
  color: var(--qc-fg-muted);
}

/* Closing band: full viewport width, directly above the footer. It carries the scope itself
   because it is rendered outside the article root. */
.qc-seo-end[data-qc-seo="1"] {
  inline-size: 100%;
  padding-block: 48px;
  background-image: radial-gradient(640px 360px at 0% 0%, rgba(184, 75, 39, 0.14), transparent 70%);
  background-color: #FDF5F1;
  border-block-start: 1px solid rgba(184, 75, 39, 0.15);
}

html[data-theme="dark"] .qc-seo-end[data-qc-seo="1"] {
  background-image: radial-gradient(640px 360px at 0% 0%, rgba(227, 154, 130, 0.12), transparent 70%);
  background-color: #171412;
  border-block-start-color: var(--qc-hairline);
}

@media (min-width: 768px) {
  .qc-seo-end[data-qc-seo="1"] { padding-block: 72px; }
}

.qc-seo-end[data-qc-seo="1"] .qc-seo-end-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

@media (min-width: 1024px) {
  .qc-seo-end[data-qc-seo="1"] .qc-seo-end-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
  }
  /* A band with a single column (logged-in visitors, or a page without offers) spans and centres. */
  .qc-seo-end[data-qc-seo="1"] .qc-seo-end-grid > :only-child {
    grid-column: 1 / -1;
    max-width: 960px;
    margin-inline: auto;
  }
}

.qc-seo-end[data-qc-seo="1"] .qc-seo-end-cta { min-width: 0; text-align: start; }

.qc-seo-end[data-qc-seo="1"] .qc-seo-end-cta :is(h2, .qc-seo-h2) {
  margin-block: 0 12px;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--qc-fg);
}

@media (min-width: 768px) {
  .qc-seo-end[data-qc-seo="1"] .qc-seo-end-cta :is(h2, .qc-seo-h2) { font-size: 34px; }
}

.qc-seo-end[data-qc-seo="1"] .qc-seo-end-cta > p {
  max-width: 560px;
  margin-block: 0 20px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--qc-fg-body);
}

.qc-seo-end[data-qc-seo="1"] .qc-seo-end-cta > p:last-child { margin-block-end: 0; }

/* The offers column reuses the shared card and button components as white option cards. */
.qc-seo-end[data-qc-seo="1"] .qc-seo-end-offers {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.qc-seo-end[data-qc-seo="1"] .qc-seo-end-offers .qc-card {
  background: var(--qc-surface-raise);
  border: 1px solid var(--qc-hairline);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--qc-seo-shadow);
}

.qc-seo-end[data-qc-seo="1"] .qc-seo-end-offers .qc-btn,
.qc-seo-end[data-qc-seo="1"] .qc-seo-end-cta .qc-btn { min-height: 44px; }

.qc-seo-end[data-qc-seo="1"] .qc-seo-end-cta .qc-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Conversion boxes reused inside the article: one card surface, stacked full-width actions in the
   rail, and a quiet brand edge for the mid-article card. */
[data-qc-seo="1"] .qc-seo-rail > [data-qc-conv="hero"] {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: none;
  margin-block: 0;
  padding: 20px;
  background: var(--qc-surface-raise);
  border: 1px solid var(--qc-hairline);
  border-radius: 12px;
  box-shadow: var(--qc-seo-shadow);
  text-align: start;
}

[data-qc-seo="1"] .qc-seo-rail > [data-qc-conv="hero"] > :is(p, ul, div) {
  margin-block: 0;
  justify-content: flex-start;
  text-align: start;
}

[data-qc-seo="1"] .qc-seo-rail > [data-qc-conv="hero"] > div {
  flex-direction: column;
  align-items: stretch;
}

[data-qc-seo="1"] .qc-seo-rail > [data-qc-conv="hero"] [data-qc-conv-btn] {
  inline-size: 100%;
  margin-inline: 0;
}

[data-qc-seo="1"] [data-qc-conv="mid"] {
  padding-block: 0;
  background: transparent;
}

[data-qc-seo="1"] [data-qc-conv="mid"] > div {
  max-width: none;
  padding-inline: 0;
}

[data-qc-seo="1"] [data-qc-conv="mid"] aside {
  padding: 20px;
  background: var(--qc-surface-raise);
  border: 1px solid var(--qc-hairline);
  border-inline-start: 3px solid var(--qc-brand);
  border-radius: 12px;
  box-shadow: var(--qc-seo-shadow);
}

@media (min-width: 768px) {
  [data-qc-seo="1"] [data-qc-conv="mid"] aside { padding: 24px; }
}

/* Content partials that keep their own utility classes (the shared table, page-specific extra
   sections, the expandable block and the conversion boxes) are pulled back to the paper palette
   here instead of being rewritten: accent washes become ground, accent edges become hairlines. */
[data-qc-seo="1"] .bg-gradient-to-br,
[data-qc-seo="1"] .bg-gradient-to-r,
[data-qc-seo="1"] .bg-gradient-to-b,
[data-qc-seo="1"] .bg-gradient-to-tr { background-image: none; }


[data-qc-seo="1"] :is(.bg-white, .bg-gray-50, .bg-gray-100) { background-color: var(--qc-surface-raise); }
[data-qc-seo="1"] .bg-gray-50 { background-color: var(--qc-surface-ground); }

[data-qc-seo="1"] :is(.text-gray-900, .text-gray-800) { color: var(--qc-fg); }
[data-qc-seo="1"] :is(.text-gray-700, .text-gray-600) { color: var(--qc-fg-body); }
[data-qc-seo="1"] :is(.text-gray-500, .text-gray-400) { color: var(--qc-fg-muted); }

[data-qc-seo="1"] :is(.border-gray-200, .border-gray-300) { border-color: var(--qc-hairline); }

/* Accent edges of the shared accent map: neutral hairline, or a brand rule where the old markup
   flagged a block with a thick inline-start border. */
[data-qc-seo="1"] :is(.border-emerald-200, .border-teal-200, .border-blue-200, .border-sky-200,
  .border-indigo-200, .border-purple-200, .border-amber-200, .border-orange-200, .border-green-200) {
  border-color: var(--qc-hairline);
}

[data-qc-seo="1"] :is(.border-emerald-400, .border-teal-400, .border-blue-400, .border-sky-400,
  .border-indigo-400, .border-purple-400, .border-amber-400, .border-orange-400, .border-green-400) {
  border-color: var(--qc-seo-brand-rule);
}

/* Accent text and pills. */
[data-qc-seo="1"] :is(.text-emerald-700, .text-teal-700, .text-blue-700, .text-sky-700,
  .text-indigo-700, .text-purple-700, .text-amber-700, .text-orange-700, .text-green-700,
  .text-emerald-800, .text-teal-800, .text-blue-800, .text-sky-800, .text-indigo-800,
  .text-purple-800, .text-amber-800, .text-orange-800, .text-green-800) {
  color: var(--qc-brand-text);
}

[data-qc-seo="1"] :is(.bg-emerald-100, .bg-teal-100, .bg-blue-100, .bg-sky-100,
  .bg-indigo-100, .bg-purple-100, .bg-amber-100, .bg-orange-100, .bg-green-100) {
  background-color: var(--qc-brand-tint);
  color: var(--qc-brand-text);
  border-color: var(--qc-seo-brand-line);
}

/* Old filled accents become the single brand fill, with readable text on it. */
[data-qc-seo="1"] :is(.bg-emerald-700, .bg-emerald-800, .bg-teal-700, .bg-teal-800,
  .bg-blue-700, .bg-blue-800, .bg-indigo-700, .bg-purple-700) {
  background-color: var(--qc-brand);
  color: var(--qc-brand-on);
}

[data-qc-seo="1"] :is(.text-emerald-100, .text-teal-100, .text-blue-100, .text-white) {
  color: var(--qc-brand-on);
}

[data-qc-seo="1"] .shadow-sm,
[data-qc-seo="1"] .shadow { box-shadow: var(--qc-seo-shadow); }

/* Old partials pick text alignment per language; the article always aligns to the inline start. */
[data-qc-seo="1"] :is(.text-left, .text-right) { text-align: start; }

/* Small screens: keep the closing band actions full width, so every touch target is at least 44px. */
@media (max-width: 639px) {
  .qc-seo-end[data-qc-seo="1"] .qc-seo-end-cta .qc-btn,
  .qc-seo-end[data-qc-seo="1"] .qc-seo-end-offers .qc-btn {
    display: flex;
    inline-size: 100%;
  }
}

/* Print and reduced-motion users get the static form. */
@media (prefers-reduced-motion: reduce) {
  [data-qc-seo="1"] .qc-seo-rel,
  [data-qc-seo="1"] .qc-seo-toc-link { transition: none; }
  html[data-theme] [data-qc-seo="1"] .qc-seo-rail { position: static; }
}

@media (min-width: 1024px) {
  [data-qc-seo="1"] .qc-seo-grid > .qc-seo-rail {
    max-block-size: calc(100vh - 104px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
  [data-qc-seo="1"] .qc-seo-toc-link { padding-block: 6px; }
}
@media screen and (max-width: 1023px) {
  [data-qc-seo="1"] .qc-seo-rail [data-qc-conv="hero"] a:not(.qc-btn) {
    display: inline-flex;
    align-items: center;
    min-block-size: 44px;
  }
}

/* SEO layer: legacy blue / indigo / sky link colours inside the article follow the brand text colour. */
[data-qc-seo="1"] :is(.text-blue-600, .text-blue-700, .text-blue-800, .text-indigo-600, .text-indigo-700, .text-sky-600, .text-sky-700) { color: var(--qc-brand-text); }
html[data-theme] .qc-paper [data-qc-seo="1"] :is(.text-blue-600, .text-blue-700, .text-blue-800, .text-blue-900):not(.qc-keep):not(.qc-keep *) { color: var(--qc-brand-text); }

/* SEO layer: rich-prose step numbers use the darker brand text on the tint (AA contrast in light). */
html:not([data-theme="dark"]) [data-qc-seo="1"] .qc-prose-step-num { color: #A13E1E; }

/* SEO layer: the rail never squeezes the table of contents; the rail itself is the only scroller. */
@media (min-width: 1024px) {
  [data-qc-seo="1"] .qc-seo-rail > * { flex-shrink: 0; }
}

/* SEO layer: surfaces that carry legacy bg-* utilities. theme.css paints .qc-paper .bg-white / .bg-gray-50
   at a higher specificity, so these overrides repeat its qualifiers plus the SEO scope. */
html[data-theme] .qc-paper [data-qc-seo="1"] :is(.bg-white, .bg-gray-100):not(.qc-keep):not(.qc-keep *) { background-color: var(--qc-surface-raise); }
html[data-theme] .qc-paper [data-qc-seo="1"] .bg-gray-50:not(.qc-keep):not(.qc-keep *) { background-color: var(--qc-surface-ground); }
html[data-theme] .qc-paper [data-qc-seo="1"] .qc-seo-rail > [data-qc-conv="hero"]:not(.qc-keep):not(.qc-keep *) { background-color: var(--qc-surface-raise); }
html[data-theme] .qc-paper [data-qc-seo="1"] [data-qc-conv="mid"]:not(.qc-keep):not(.qc-keep *) { background-color: transparent; }
html[data-theme] .qc-paper [data-qc-seo="1"] [data-qc-conv="mid"] aside:not(.qc-keep):not(.qc-keep *) { background-color: var(--qc-surface-raise); }



/* SEO layer: the mid "next step" card keeps the same gap to the next section as every other section. */
[data-qc-seo="1"] .qc-seo-grid > [data-qc-conv="mid"] { margin-block-end: 48px; }

/* SEO layer: the rail stays inside the viewport and clear of the floating sign-up bar (64px) once it shows. */
@media (min-width: 1024px) {
  body.qc-has-float-cta [data-qc-seo="1"] .qc-seo-grid > .qc-seo-rail { max-block-size: calc(100vh - 168px); }
}

/* SEO layer: full-width legacy partial sections in the article column (comparison table, merged
   sections) sit on the page ground instead of a borderless white slab. */
html[data-theme] .qc-paper [data-qc-seo="1"] .qc-seo-grid > section:not(.qc-seo-sec):is(.bg-white, .bg-gray-50):not(.qc-keep):not(.qc-keep *) { background-color: transparent; }


/* SEO layer: tables keep whole words. The article root uses overflow-wrap:anywhere for long tokens,
   which also shrinks a cell's min-content width and lets auto table layout squeeze a column mid-word. */
[data-qc-seo="1"] :is(table, th, td) { overflow-wrap: break-word; }
[data-qc-seo="1"] [data-qc-tbl] .qc-table :is(th, td) { overflow-wrap: break-word; }

/* SEO hand-written skin */
/* The hand-written SEO pages (the templates under app/templates/pages/seo that do not include
   seo_wave0814_body.html) still carry the old Tailwind palette: blue / indigo / emerald washes,
   coloured pills, black terminal slabs. This layer remaps those utility classes onto the light-first
   article palette of the skeleton pages without touching any markup, so no text, link or DOM node
   changes. Scope: [data-qc-seo-skin="1"], which those page templates put on their own page root. The
   shared conversion boxes ([data-qc-conv]), the skeleton layer ([data-qc-seo="1"] subtree) and the
   theme's deliberate .qc-keep islands are excluded on every rule.

   Specificity: theme.css paints .qc-paper utilities at (0,5,0) (and (0,5,1) in its dark block), so
   every rule below repeats those qualifiers plus the skin scope and the exclusions, which lands at
   (0,7,1). The dark variants follow the light ones in source order; they have the same specificity,
   so the later dark block wins in the dark theme. Direction is logical only, so the rtlcss mirror is
   a plain copy for this layer. The class lists are pruned to the classes the 101 hand-written
   templates use today; a new legacy class needs a new line here. */

/* Page ground: the old blue / emerald gradient wash becomes one warm paper ground. */
html[data-theme] .qc-paper [data-qc-seo-skin="1"]:not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #F6F4F0;
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"]:not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #0F0D0C;
}

/* No gradient survives: the washes, the coloured glows and the CTA gradients all fall back to a flat
   surface, so the single accent stays the only colour on the page. */
html[data-theme] .qc-paper [data-qc-seo-skin="1"]:is(.bg-gradient-to-r, .bg-gradient-to-br, .bg-gradient-to-b):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *), html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gradient-to-r, .bg-gradient-to-br, .bg-gradient-to-b):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-image: none;
}

/* The pale -50 washes (page roots and section bands) sit on the paper ground instead of a colour
   blend. */
html[data-theme] .qc-paper [data-qc-seo-skin="1"]:is(.from-blue-50, .from-indigo-50, .from-purple-50, .from-violet-50, .from-sky-50, .from-teal-50, .from-cyan-50, .from-emerald-50, .from-fuchsia-50, .from-green-50, .from-red-50, .from-amber-50, .from-yellow-50, .from-orange-50, .from-rose-50, .from-gray-50, .to-blue-50, .to-indigo-50, .to-purple-50, .to-violet-50, .to-sky-50, .to-teal-50, .to-cyan-50, .to-emerald-50, .to-fuchsia-50, .to-pink-50, .to-green-50, .to-red-50, .to-amber-50, .to-orange-50, .to-lime-50, .to-gray-50, .from-white):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *), html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.from-blue-50, .from-indigo-50, .from-purple-50, .from-violet-50, .from-sky-50, .from-teal-50, .from-cyan-50, .from-emerald-50, .from-fuchsia-50, .from-green-50, .from-red-50, .from-amber-50, .from-yellow-50, .from-orange-50, .from-rose-50, .from-gray-50, .to-blue-50, .to-indigo-50, .to-purple-50, .to-violet-50, .to-sky-50, .to-teal-50, .to-cyan-50, .to-emerald-50, .to-fuchsia-50, .to-pink-50, .to-green-50, .to-red-50, .to-amber-50, .to-orange-50, .to-lime-50, .to-gray-50, .from-white):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-image: none;
  background-color: #F6F4F0;
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"]:is(.from-blue-50, .from-indigo-50, .from-purple-50, .from-violet-50, .from-sky-50, .from-teal-50, .from-cyan-50, .from-emerald-50, .from-fuchsia-50, .from-green-50, .from-red-50, .from-amber-50, .from-yellow-50, .from-orange-50, .from-rose-50, .from-gray-50, .to-blue-50, .to-indigo-50, .to-purple-50, .to-violet-50, .to-sky-50, .to-teal-50, .to-cyan-50, .to-emerald-50, .to-fuchsia-50, .to-pink-50, .to-green-50, .to-red-50, .to-amber-50, .to-orange-50, .to-lime-50, .to-gray-50, .from-white):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *), html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.from-blue-50, .from-indigo-50, .from-purple-50, .from-violet-50, .from-sky-50, .from-teal-50, .from-cyan-50, .from-emerald-50, .from-fuchsia-50, .from-green-50, .from-red-50, .from-amber-50, .from-yellow-50, .from-orange-50, .from-rose-50, .from-gray-50, .to-blue-50, .to-indigo-50, .to-purple-50, .to-violet-50, .to-sky-50, .to-teal-50, .to-cyan-50, .to-emerald-50, .to-fuchsia-50, .to-pink-50, .to-green-50, .to-red-50, .to-amber-50, .to-orange-50, .to-lime-50, .to-gray-50, .from-white):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-image: none;
  background-color: #0F0D0C;
}

/* Light panels: the decorative families' pale fills become one terracotta tint, the neutral greys the
   sunk surface. bg-white is already the card token in theme.css, so it is left alone. */
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.bg-blue-50, .bg-blue-100, .bg-indigo-50, .bg-indigo-100, .bg-purple-50, .bg-purple-100, .bg-violet-50, .bg-violet-100, .bg-sky-100, .bg-teal-50, .bg-teal-100, .bg-cyan-50, .bg-cyan-100, .bg-emerald-50, .bg-emerald-100, .bg-fuchsia-50, .bg-fuchsia-100, .bg-pink-50, .bg-pink-100):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #FDF5F1;
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.bg-blue-50, .bg-blue-100, .bg-indigo-50, .bg-indigo-100, .bg-purple-50, .bg-purple-100, .bg-violet-50, .bg-violet-100, .bg-sky-100, .bg-teal-50, .bg-teal-100, .bg-cyan-50, .bg-cyan-100, .bg-emerald-50, .bg-emerald-100, .bg-fuchsia-50, .bg-fuchsia-100, .bg-pink-50, .bg-pink-100):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #1D1916;
}
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-50, .bg-gray-100, .bg-gray-200):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #F3F0EA;
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-50, .bg-gray-100, .bg-gray-200):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #0A0908;
}

/* Hairlines: the pale family borders and the grey card borders become the one 1px hairline. */
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.border-blue-100, .border-blue-200, .border-indigo-100, .border-indigo-200, .border-purple-100, .border-purple-200, .border-violet-200, .border-sky-200, .border-teal-200, .border-teal-300, .border-cyan-200, .border-emerald-100, .border-emerald-200, .border-emerald-300, .border-fuchsia-200, .border-fuchsia-300, .border-gray-100, .border-gray-200, .border-gray-300):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  border-color: rgba(28, 24, 20, 0.09);
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.border-blue-100, .border-blue-200, .border-indigo-100, .border-indigo-200, .border-purple-100, .border-purple-200, .border-violet-200, .border-sky-200, .border-teal-200, .border-teal-300, .border-cyan-200, .border-emerald-100, .border-emerald-200, .border-emerald-300, .border-fuchsia-200, .border-fuchsia-300, .border-gray-100, .border-gray-200, .border-gray-300):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  border-color: rgba(255, 255, 255, 0.10);
}

/* The palest grey labels (chevrons, dividers, the "—" cells of the comparison tables) do not reach
   4.5:1 on a light card either, so they step up to the muted token. */
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.text-gray-300, .text-gray-400):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #686059;
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.text-gray-300, .text-gray-400):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #A69C93;
}

/* Accent edges: the saturated family borders (step rules, left bars, outlined pills) become the one
   brand rule. */
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.border-blue-400, .border-blue-500, .border-indigo-400, .border-purple-400, .border-purple-500, .border-sky-400, .border-teal-400, .border-teal-600, .border-emerald-400, .border-emerald-600):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  border-color: #B84B27;
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.border-blue-400, .border-blue-500, .border-indigo-400, .border-purple-400, .border-purple-500, .border-sky-400, .border-teal-400, .border-teal-600, .border-emerald-400, .border-emerald-600):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  border-color: #E39A82;
}

/* Text of the decorative families: the deep steps and the pale steps (which only ever sit on a dark
   slab or a saturated fill) follow the one brand text colour. */
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.text-blue-500, .text-blue-600, .text-blue-700, .text-blue-800, .text-blue-900, .text-indigo-500, .text-indigo-600, .text-indigo-700, .text-indigo-800, .text-indigo-900, .text-purple-500, .text-purple-600, .text-purple-700, .text-purple-800, .text-purple-900, .text-violet-500, .text-violet-600, .text-violet-700, .text-violet-800, .text-sky-500, .text-sky-600, .text-sky-700, .text-sky-800, .text-teal-500, .text-teal-600, .text-teal-700, .text-teal-800, .text-cyan-600, .text-cyan-700, .text-cyan-800, .text-emerald-500, .text-emerald-600, .text-emerald-700, .text-emerald-800, .text-emerald-900, .text-fuchsia-600, .text-fuchsia-700, .text-fuchsia-800, .text-pink-600, .text-pink-700):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #B24624;
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.text-blue-500, .text-blue-600, .text-blue-700, .text-blue-800, .text-blue-900, .text-indigo-500, .text-indigo-600, .text-indigo-700, .text-indigo-800, .text-indigo-900, .text-purple-500, .text-purple-600, .text-purple-700, .text-purple-800, .text-purple-900, .text-violet-500, .text-violet-600, .text-violet-700, .text-violet-800, .text-sky-500, .text-sky-600, .text-sky-700, .text-sky-800, .text-teal-500, .text-teal-600, .text-teal-700, .text-teal-800, .text-cyan-600, .text-cyan-700, .text-cyan-800, .text-emerald-500, .text-emerald-600, .text-emerald-700, .text-emerald-800, .text-emerald-900, .text-fuchsia-600, .text-fuchsia-700, .text-fuchsia-800, .text-pink-600, .text-pink-700):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #E39A82;
}
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.text-blue-300, .text-purple-300, .text-purple-400, .text-violet-400, .text-sky-300, .text-teal-300, .text-cyan-300, .text-emerald-300, .text-emerald-400):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #B24624;
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.text-blue-300, .text-purple-300, .text-purple-400, .text-violet-400, .text-sky-300, .text-teal-300, .text-cyan-300, .text-emerald-300, .text-emerald-400):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #E39A82;
}

/* The semantic families keep their hue. Only the steps that cannot reach 4.5:1 on the light ground
   are lifted one step; the badge tokens already hold the right value for each theme, so one rule
   covers both. */
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.text-green-500, .text-green-600):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: var(--qc-badge-green);
}
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.text-amber-400, .text-amber-500, .text-amber-600, .text-yellow-500, .text-yellow-600):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: var(--qc-badge-amber);
}
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.text-orange-400, .text-orange-500, .text-orange-600):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: var(--qc-badge-orange);
}
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.text-red-300, .text-red-500):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: var(--qc-badge-red);
}
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.text-rose-500):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: var(--qc-badge-rose);
}

/* Saturated fills, light theme: the old coloured CTA bands, badges and dots become the one brand
   fill, and the gradient bands lose their gradient image. */
html[data-theme] .qc-paper [data-qc-seo-skin="1"]:is(.from-blue-500, .from-blue-600, .from-indigo-600, .from-purple-600, .from-violet-600, .from-sky-600, .from-teal-500, .from-teal-600, .from-cyan-600, .from-emerald-600, .from-fuchsia-600, .from-green-500, .from-green-600, .from-red-500, .from-amber-500, .from-orange-500, .from-orange-600, .from-rose-600, .to-blue-600, .to-blue-700, .to-indigo-600, .to-purple-600, .to-violet-600, .to-sky-600, .to-teal-600, .to-cyan-600, .to-emerald-500, .to-emerald-600, .to-pink-600, .to-green-600, .to-green-700, .to-amber-500, .to-amber-600, .to-yellow-500, .to-orange-500, .to-orange-600, .via-blue-600, .via-blue-700, .via-indigo-600, .via-purple-600, .via-cyan-600, .from-qcode-primary, .to-qcode-primary, .to-qcode-primary-hover):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *),
html[data-theme] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.from-blue-500, .from-blue-600, .from-indigo-600, .from-purple-600, .from-violet-600, .from-sky-600, .from-teal-500, .from-teal-600, .from-cyan-600, .from-emerald-600, .from-fuchsia-600, .from-green-500, .from-green-600, .from-red-500, .from-amber-500, .from-orange-500, .from-orange-600, .from-rose-600, .to-blue-600, .to-blue-700, .to-indigo-600, .to-purple-600, .to-violet-600, .to-sky-600, .to-teal-600, .to-cyan-600, .to-emerald-500, .to-emerald-600, .to-pink-600, .to-green-600, .to-green-700, .to-amber-500, .to-amber-600, .to-yellow-500, .to-orange-500, .to-orange-600, .via-blue-600, .via-blue-700, .via-indigo-600, .via-purple-600, .via-cyan-600, .from-qcode-primary, .to-qcode-primary, .to-qcode-primary-hover):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-image: none;
  background-color: #B84B27;
  color: #FFFFFF;
}

html[data-theme] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-indigo-500, .bg-indigo-600, .bg-indigo-700, .bg-purple-500, .bg-purple-600, .bg-purple-700, .bg-violet-500, .bg-violet-600, .bg-sky-500, .bg-sky-600, .bg-sky-700, .bg-teal-500, .bg-teal-600, .bg-teal-700, .bg-cyan-600, .bg-emerald-500, .bg-emerald-600, .bg-emerald-700, .bg-fuchsia-600, .bg-pink-600, .bg-qcode-primary):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #B84B27;
  color: #FFFFFF;
}

html[data-theme] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is([style*="linear-gradient(135deg, #"], [style*="linear-gradient(135deg, var(--color-qcode-primary"]):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-image: none !important;
  background-color: #B84B27 !important;
  color: #FFFFFF;
}

/* Dark theme: a full-bleed CTA band is not the light brand repeated as a solid light slab on the
   near-black page. It becomes the same tinted panel the cards use, with one hairline and the warm
   heading ink; only the small solid fills (icon tiles, dots, badges, primary buttons) keep the
   light brand as the dark theme's accent, with ink labels. */
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"]:is(.from-blue-500, .from-blue-600, .from-indigo-600, .from-purple-600, .from-violet-600, .from-sky-600, .from-teal-500, .from-teal-600, .from-cyan-600, .from-emerald-600, .from-fuchsia-600, .from-green-500, .from-green-600, .from-red-500, .from-amber-500, .from-orange-500, .from-orange-600, .from-rose-600, .to-blue-600, .to-blue-700, .to-indigo-600, .to-purple-600, .to-violet-600, .to-sky-600, .to-teal-600, .to-cyan-600, .to-emerald-500, .to-emerald-600, .to-pink-600, .to-green-600, .to-green-700, .to-amber-500, .to-amber-600, .to-yellow-500, .to-orange-500, .to-orange-600, .via-blue-600, .via-blue-700, .via-indigo-600, .via-purple-600, .via-cyan-600, .from-qcode-primary, .to-qcode-primary, .to-qcode-primary-hover):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *),
html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.from-blue-500, .from-blue-600, .from-indigo-600, .from-purple-600, .from-violet-600, .from-sky-600, .from-teal-500, .from-teal-600, .from-cyan-600, .from-emerald-600, .from-fuchsia-600, .from-green-500, .from-green-600, .from-red-500, .from-amber-500, .from-orange-500, .from-orange-600, .from-rose-600, .to-blue-600, .to-blue-700, .to-indigo-600, .to-purple-600, .to-violet-600, .to-sky-600, .to-teal-600, .to-cyan-600, .to-emerald-500, .to-emerald-600, .to-pink-600, .to-green-600, .to-green-700, .to-amber-500, .to-amber-600, .to-yellow-500, .to-orange-500, .to-orange-600, .via-blue-600, .via-blue-700, .via-indigo-600, .via-purple-600, .via-cyan-600, .from-qcode-primary, .to-qcode-primary, .to-qcode-primary-hover):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-image: none;
  background-color: #1D1916;
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #F3EEE9;
}

html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is([style*="linear-gradient(135deg, #"], [style*="linear-gradient(135deg, var(--color-qcode-primary"]):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-image: none !important;
  background-color: #1D1916 !important;
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #F3EEE9;
}

html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-indigo-500, .bg-indigo-600, .bg-indigo-700, .bg-purple-500, .bg-purple-600, .bg-purple-700, .bg-violet-500, .bg-violet-600, .bg-sky-500, .bg-sky-600, .bg-sky-700, .bg-teal-500, .bg-teal-600, .bg-teal-700, .bg-cyan-600, .bg-emerald-500, .bg-emerald-600, .bg-emerald-700, .bg-fuchsia-600, .bg-pink-600, .bg-qcode-primary):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #E39A82;
  color: #0F0D0C;
}

/* Text on a saturated fill: the pale children and the white labels follow the fill, so no white text
   is left on a light surface. In the dark theme a band is a tinted panel, so its labels take the warm
   ink pair (heading #F3EEE9, body #D6CFC8), while a small solid fill keeps its ink label. */
html[data-theme] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-cyan-600, .bg-emerald-500, .bg-emerald-600, .bg-emerald-700, .bg-fuchsia-600, .bg-indigo-500, .bg-indigo-600, .bg-indigo-700, .bg-pink-600, .bg-purple-500, .bg-purple-600, .bg-purple-700, .bg-qcode-primary, .bg-sky-500, .bg-sky-600, .bg-sky-700, .bg-teal-500, .bg-teal-600, .bg-teal-700, .bg-violet-500, .bg-violet-600, .from-amber-500, .from-blue-500, .from-blue-600, .from-cyan-600, .from-emerald-600, .from-fuchsia-600, .from-green-500, .from-green-600, .from-indigo-600, .from-orange-500, .from-orange-600, .from-purple-600, .from-qcode-primary, .from-red-500, .from-rose-600, .from-sky-600, .from-teal-500, .from-teal-600, .from-violet-600, .to-amber-500, .to-amber-600, .to-blue-600, .to-blue-700, .to-cyan-600, .to-emerald-500, .to-emerald-600, .to-green-600, .to-green-700, .to-indigo-600, .to-orange-500, .to-orange-600, .to-pink-600, .to-purple-600, .to-qcode-primary, .to-qcode-primary-hover, .to-sky-600, .to-teal-600, .to-violet-600, .to-yellow-500, .via-blue-600, .via-blue-700, .via-cyan-600, .via-indigo-600, .via-purple-600) :is(.text-white, .text-white\/80, .text-white\/90, .text-gray-100, .text-gray-200, .text-blue-100, .text-blue-200, .text-indigo-100, .text-purple-100, .text-sky-100, .text-teal-50, .text-teal-100, .text-cyan-100, .text-emerald-100, .text-green-100, .text-orange-100):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *),
html[data-theme] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is([style*="linear-gradient(135deg, #"], [style*="linear-gradient(135deg, var(--color-qcode-primary"]) :is(.text-white, .text-white\/80, .text-white\/90, .text-gray-100, .text-gray-200, .text-blue-100, .text-blue-200, .text-indigo-100, .text-purple-100, .text-sky-100, .text-teal-50, .text-teal-100, .text-cyan-100, .text-emerald-100, .text-green-100, .text-orange-100):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #FFFFFF;
}

html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.from-amber-500, .from-blue-500, .from-blue-600, .from-cyan-600, .from-emerald-600, .from-fuchsia-600, .from-green-500, .from-green-600, .from-indigo-600, .from-orange-500, .from-orange-600, .from-purple-600, .from-qcode-primary, .from-red-500, .from-rose-600, .from-sky-600, .from-teal-500, .from-teal-600, .from-violet-600, .to-amber-500, .to-amber-600, .to-blue-600, .to-blue-700, .to-cyan-600, .to-emerald-500, .to-emerald-600, .to-green-600, .to-green-700, .to-indigo-600, .to-orange-500, .to-orange-600, .to-pink-600, .to-purple-600, .to-qcode-primary, .to-qcode-primary-hover, .to-sky-600, .to-teal-600, .to-violet-600, .to-yellow-500, .via-blue-600, .via-blue-700, .via-cyan-600, .via-indigo-600, .via-purple-600) :is(.text-white):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *),
html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is([style*="linear-gradient(135deg, #"], [style*="linear-gradient(135deg, var(--color-qcode-primary"]) :is(.text-white):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #F3EEE9;
}

html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.from-amber-500, .from-blue-500, .from-blue-600, .from-cyan-600, .from-emerald-600, .from-fuchsia-600, .from-green-500, .from-green-600, .from-indigo-600, .from-orange-500, .from-orange-600, .from-purple-600, .from-qcode-primary, .from-red-500, .from-rose-600, .from-sky-600, .from-teal-500, .from-teal-600, .from-violet-600, .to-amber-500, .to-amber-600, .to-blue-600, .to-blue-700, .to-cyan-600, .to-emerald-500, .to-emerald-600, .to-green-600, .to-green-700, .to-indigo-600, .to-orange-500, .to-orange-600, .to-pink-600, .to-purple-600, .to-qcode-primary, .to-qcode-primary-hover, .to-sky-600, .to-teal-600, .to-violet-600, .to-yellow-500, .via-blue-600, .via-blue-700, .via-cyan-600, .via-indigo-600, .via-purple-600) :is(.text-white\/80, .text-white\/90, .text-gray-100, .text-gray-200, .text-blue-100, .text-blue-200, .text-indigo-100, .text-purple-100, .text-sky-100, .text-teal-50, .text-teal-100, .text-cyan-100, .text-emerald-100, .text-green-100, .text-orange-100):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *),
html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is([style*="linear-gradient(135deg, #"], [style*="linear-gradient(135deg, var(--color-qcode-primary"]) :is(.text-white\/80, .text-white\/90, .text-gray-100, .text-gray-200, .text-blue-100, .text-blue-200, .text-indigo-100, .text-purple-100, .text-sky-100, .text-teal-50, .text-teal-100, .text-cyan-100, .text-emerald-100, .text-green-100, .text-orange-100):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #D6CFC8;
}

html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-cyan-600, .bg-emerald-500, .bg-emerald-600, .bg-emerald-700, .bg-fuchsia-600, .bg-indigo-500, .bg-indigo-600, .bg-indigo-700, .bg-pink-600, .bg-purple-500, .bg-purple-600, .bg-purple-700, .bg-qcode-primary, .bg-sky-500, .bg-sky-600, .bg-sky-700, .bg-teal-500, .bg-teal-600, .bg-teal-700, .bg-violet-500, .bg-violet-600) :is(.text-white, .text-white\/80, .text-white\/90, .text-gray-100, .text-gray-200, .text-blue-100, .text-blue-200, .text-indigo-100, .text-purple-100, .text-sky-100, .text-teal-50, .text-teal-100, .text-cyan-100, .text-emerald-100, .text-green-100, .text-orange-100):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #0F0D0C;
}

/* White buttons, glass chips and outlined buttons inside a fill: white with brand text on the brand
   ground in the light theme; on the dark theme's tinted band the primary button is the brand fill
   with ink labels, the glass chip is a light glass and the outline a light hairline with warm ink. */
html[data-theme] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-cyan-600, .bg-emerald-500, .bg-emerald-600, .bg-emerald-700, .bg-fuchsia-600, .bg-indigo-500, .bg-indigo-600, .bg-indigo-700, .bg-pink-600, .bg-purple-500, .bg-purple-600, .bg-purple-700, .bg-qcode-primary, .bg-sky-500, .bg-sky-600, .bg-sky-700, .bg-teal-500, .bg-teal-600, .bg-teal-700, .bg-violet-500, .bg-violet-600, .from-amber-500, .from-blue-500, .from-blue-600, .from-cyan-600, .from-emerald-600, .from-fuchsia-600, .from-green-500, .from-green-600, .from-indigo-600, .from-orange-500, .from-orange-600, .from-purple-600, .from-qcode-primary, .from-red-500, .from-rose-600, .from-sky-600, .from-teal-500, .from-teal-600, .from-violet-600, .to-amber-500, .to-amber-600, .to-blue-600, .to-blue-700, .to-cyan-600, .to-emerald-500, .to-emerald-600, .to-green-600, .to-green-700, .to-indigo-600, .to-orange-500, .to-orange-600, .to-pink-600, .to-purple-600, .to-qcode-primary, .to-qcode-primary-hover, .to-sky-600, .to-teal-600, .to-violet-600, .to-yellow-500, .via-blue-600, .via-blue-700, .via-cyan-600, .via-indigo-600, .via-purple-600) :is(.bg-white):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #FFFFFF;
  color: #B24624;
}

html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.from-amber-500, .from-blue-500, .from-blue-600, .from-cyan-600, .from-emerald-600, .from-fuchsia-600, .from-green-500, .from-green-600, .from-indigo-600, .from-orange-500, .from-orange-600, .from-purple-600, .from-qcode-primary, .from-red-500, .from-rose-600, .from-sky-600, .from-teal-500, .from-teal-600, .from-violet-600, .to-amber-500, .to-amber-600, .to-blue-600, .to-blue-700, .to-cyan-600, .to-emerald-500, .to-emerald-600, .to-green-600, .to-green-700, .to-indigo-600, .to-orange-500, .to-orange-600, .to-pink-600, .to-purple-600, .to-qcode-primary, .to-qcode-primary-hover, .to-sky-600, .to-teal-600, .to-violet-600, .to-yellow-500, .via-blue-600, .via-blue-700, .via-cyan-600, .via-indigo-600, .via-purple-600) :is(.bg-white):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *),
html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is([style*="linear-gradient(135deg, #"], [style*="linear-gradient(135deg, var(--color-qcode-primary"]) :is(.bg-white):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #E39A82;
  color: #0F0D0C;
}

html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-cyan-600, .bg-emerald-500, .bg-emerald-600, .bg-emerald-700, .bg-fuchsia-600, .bg-indigo-500, .bg-indigo-600, .bg-indigo-700, .bg-pink-600, .bg-purple-500, .bg-purple-600, .bg-purple-700, .bg-qcode-primary, .bg-sky-500, .bg-sky-600, .bg-sky-700, .bg-teal-500, .bg-teal-600, .bg-teal-700, .bg-violet-500, .bg-violet-600) :is(.bg-white):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #0F0D0C;
  color: #E39A82;
}

html[data-theme] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-cyan-600, .bg-emerald-500, .bg-emerald-600, .bg-emerald-700, .bg-fuchsia-600, .bg-indigo-500, .bg-indigo-600, .bg-indigo-700, .bg-pink-600, .bg-purple-500, .bg-purple-600, .bg-purple-700, .bg-qcode-primary, .bg-sky-500, .bg-sky-600, .bg-sky-700, .bg-teal-500, .bg-teal-600, .bg-teal-700, .bg-violet-500, .bg-violet-600, .from-amber-500, .from-blue-500, .from-blue-600, .from-cyan-600, .from-emerald-600, .from-fuchsia-600, .from-green-500, .from-green-600, .from-indigo-600, .from-orange-500, .from-orange-600, .from-purple-600, .from-qcode-primary, .from-red-500, .from-rose-600, .from-sky-600, .from-teal-500, .from-teal-600, .from-violet-600, .to-amber-500, .to-amber-600, .to-blue-600, .to-blue-700, .to-cyan-600, .to-emerald-500, .to-emerald-600, .to-green-600, .to-green-700, .to-indigo-600, .to-orange-500, .to-orange-600, .to-pink-600, .to-purple-600, .to-qcode-primary, .to-qcode-primary-hover, .to-sky-600, .to-teal-600, .to-violet-600, .to-yellow-500, .via-blue-600, .via-blue-700, .via-cyan-600, .via-indigo-600, .via-purple-600) :is(.bg-white\/10, .bg-white\/15, .bg-white\/20):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: rgba(15, 13, 12, 0.22);
}

html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.from-amber-500, .from-blue-500, .from-blue-600, .from-cyan-600, .from-emerald-600, .from-fuchsia-600, .from-green-500, .from-green-600, .from-indigo-600, .from-orange-500, .from-orange-600, .from-purple-600, .from-qcode-primary, .from-red-500, .from-rose-600, .from-sky-600, .from-teal-500, .from-teal-600, .from-violet-600, .to-amber-500, .to-amber-600, .to-blue-600, .to-blue-700, .to-cyan-600, .to-emerald-500, .to-emerald-600, .to-green-600, .to-green-700, .to-indigo-600, .to-orange-500, .to-orange-600, .to-pink-600, .to-purple-600, .to-qcode-primary, .to-qcode-primary-hover, .to-sky-600, .to-teal-600, .to-violet-600, .to-yellow-500, .via-blue-600, .via-blue-700, .via-cyan-600, .via-indigo-600, .via-purple-600) :is(.bg-white\/10, .bg-white\/15, .bg-white\/20):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *),
html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is([style*="linear-gradient(135deg, #"], [style*="linear-gradient(135deg, var(--color-qcode-primary"]) :is(.bg-white\/10, .bg-white\/15, .bg-white\/20):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-cyan-600, .bg-emerald-500, .bg-emerald-600, .bg-emerald-700, .bg-fuchsia-600, .bg-indigo-500, .bg-indigo-600, .bg-indigo-700, .bg-pink-600, .bg-purple-500, .bg-purple-600, .bg-purple-700, .bg-qcode-primary, .bg-sky-500, .bg-sky-600, .bg-sky-700, .bg-teal-500, .bg-teal-600, .bg-teal-700, .bg-violet-500, .bg-violet-600) :is(.bg-white\/10, .bg-white\/15, .bg-white\/20):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: rgba(15, 13, 12, 0.10);
}

html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.from-amber-500, .from-blue-500, .from-blue-600, .from-cyan-600, .from-emerald-600, .from-fuchsia-600, .from-green-500, .from-green-600, .from-indigo-600, .from-orange-500, .from-orange-600, .from-purple-600, .from-qcode-primary, .from-red-500, .from-rose-600, .from-sky-600, .from-teal-500, .from-teal-600, .from-violet-600, .to-amber-500, .to-amber-600, .to-blue-600, .to-blue-700, .to-cyan-600, .to-emerald-500, .to-emerald-600, .to-green-600, .to-green-700, .to-indigo-600, .to-orange-500, .to-orange-600, .to-pink-600, .to-purple-600, .to-qcode-primary, .to-qcode-primary-hover, .to-sky-600, .to-teal-600, .to-violet-600, .to-yellow-500, .via-blue-600, .via-blue-700, .via-cyan-600, .via-indigo-600, .via-purple-600) :is(.border-white):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *),
html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is([style*="linear-gradient(135deg, #"], [style*="linear-gradient(135deg, var(--color-qcode-primary"]) :is(.border-white):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  border-color: rgba(255, 255, 255, 0.35);
  color: #F3EEE9;
}

html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-cyan-600, .bg-emerald-500, .bg-emerald-600, .bg-emerald-700, .bg-fuchsia-600, .bg-indigo-500, .bg-indigo-600, .bg-indigo-700, .bg-pink-600, .bg-purple-500, .bg-purple-600, .bg-purple-700, .bg-qcode-primary, .bg-sky-500, .bg-sky-600, .bg-sky-700, .bg-teal-500, .bg-teal-600, .bg-teal-700, .bg-violet-500, .bg-violet-600) :is(.border-white):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  border-color: rgba(15, 13, 12, 0.45);
}

/* The pale -200 chips ("Q3 2026", quarter tags) are the last light-theme panels outside the mapping:
   they sit on the same tint as the -50/-100 panels, with one brand hairline so the chip still reads as
   a label on the tint, and on the dark tint in the dark theme. Their label is a deep family step, i.e.
   the brand text colour, so it stays legible on both.
*/
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.bg-blue-200, .bg-indigo-200, .bg-purple-200, .bg-violet-200, .bg-sky-200, .bg-teal-200, .bg-cyan-200, .bg-emerald-200, .bg-fuchsia-200, .bg-pink-200):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #FDF5F1;
  border: 1px solid rgba(184, 75, 39, 0.18);
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.bg-blue-200, .bg-indigo-200, .bg-purple-200, .bg-violet-200, .bg-sky-200, .bg-teal-200, .bg-cyan-200, .bg-emerald-200, .bg-fuchsia-200, .bg-pink-200):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #1D1916;
  border-color: rgba(255, 255, 255, 0.10);
}

/* The opt-out islands keep their own palette, but a white button with a decorative-family label was
   the last off-accent element on those pages. Only that combination moves: the label takes the brand
   text colour in the light theme and, in the dark theme, the button becomes the brand fill with ink
   labels. This is the only rule of the layer that names .qc-keep itself; theme.css does not recolour
   .qc-keep, so the .qc-keep exclusion is deliberately absent and the specificity comes from the skin
   prefix instead. Every other island is untouched. */
html[data-theme] .qc-paper [data-qc-seo-skin="1"] .qc-keep:is(.bg-white):is(.text-blue-500, .text-blue-600, .text-blue-700, .text-blue-800, .text-indigo-500, .text-indigo-600, .text-indigo-700, .text-indigo-800, .text-purple-500, .text-purple-600, .text-purple-700, .text-purple-800, .text-violet-500, .text-violet-600, .text-violet-700, .text-violet-800, .text-sky-500, .text-sky-600, .text-sky-700, .text-sky-800, .text-teal-500, .text-teal-600, .text-teal-700, .text-teal-800, .text-cyan-500, .text-cyan-600, .text-cyan-700, .text-cyan-800, .text-emerald-500, .text-emerald-600, .text-emerald-700, .text-emerald-800, .text-fuchsia-500, .text-fuchsia-600, .text-fuchsia-700, .text-fuchsia-800, .text-pink-500, .text-pink-600, .text-pink-700, .text-pink-800):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #B24624;
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] .qc-keep:is(.bg-white):is(.text-blue-500, .text-blue-600, .text-blue-700, .text-blue-800, .text-indigo-500, .text-indigo-600, .text-indigo-700, .text-indigo-800, .text-purple-500, .text-purple-600, .text-purple-700, .text-purple-800, .text-violet-500, .text-violet-600, .text-violet-700, .text-violet-800, .text-sky-500, .text-sky-600, .text-sky-700, .text-sky-800, .text-teal-500, .text-teal-600, .text-teal-700, .text-teal-800, .text-cyan-500, .text-cyan-600, .text-cyan-700, .text-cyan-800, .text-emerald-500, .text-emerald-600, .text-emerald-700, .text-emerald-800, .text-fuchsia-500, .text-fuchsia-600, .text-fuchsia-700, .text-fuchsia-800, .text-pink-500, .text-pink-600, .text-pink-700, .text-pink-800):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #E39A82;
  color: #0F0D0C;
}

/* The semantic fills keep their hue but step down so a white label on them reaches 4.5:1: green and
   lime to the deep green, amber / yellow / orange to the deep amber. Both stay dark in either theme,
   so one rule serves both. */
html[data-theme] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.bg-green-500, .bg-green-600, .bg-lime-600):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #047857;
  color: #FFFFFF;
}
html[data-theme] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.bg-amber-500, .bg-amber-600, .bg-yellow-500, .bg-yellow-600, .bg-orange-300, .bg-orange-400, .bg-orange-500, .bg-orange-600, .bg-orange-700):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #9A5207;
  color: #FFFFFF;
}
html[data-theme] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.bg-green-500, .bg-green-600, .bg-lime-600, .bg-amber-500, .bg-amber-600, .bg-yellow-500, .bg-yellow-600, .bg-orange-300, .bg-orange-400, .bg-orange-500, .bg-orange-600, .bg-orange-700) :is(.text-white, .text-white\/80, .text-white\/90, .text-gray-100, .text-gray-200, .text-blue-100, .text-blue-200, .text-indigo-100, .text-purple-100, .text-sky-100, .text-teal-50, .text-teal-100, .text-cyan-100, .text-emerald-100, .text-green-100, .text-orange-100):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #FFFFFF;
}

/* Black slabs (terminals, code blocks, table headers) become a sunk panel with a hairline in the
   light theme; the dark theme keeps them dark. The pale labels inside them turn to ink / body /
   muted, so no white text is left on the light panel, and the two semantic accents step down. */
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #F3F0EA;
  border: 1px solid rgba(28, 24, 20, 0.09);
  color: #1A1613;
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #0A0908;
  border-color: rgba(255, 255, 255, 0.10);
}
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800):is(.text-white):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *), html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800) :is(.text-white):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #1A1613;
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800):is(.text-white):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *), html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800) :is(.text-white):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #F3EEE9;
}
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800):is(.text-gray-100, .text-gray-200, .text-gray-300):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *), html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800) :is(.text-gray-100, .text-gray-200, .text-gray-300):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #3F3832;
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800):is(.text-gray-100, .text-gray-200, .text-gray-300):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *), html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800) :is(.text-gray-100, .text-gray-200, .text-gray-300):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #D6CFC8;
}
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800):is(.text-gray-400):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *), html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800) :is(.text-gray-400):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #686059;
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800):is(.text-gray-400):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *), html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800) :is(.text-gray-400):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #A69C93;
}
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800):is(.text-green-300, .text-green-400):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *), html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800) :is(.text-green-300, .text-green-400):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #047857;
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800):is(.text-green-300, .text-green-400):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *), html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800) :is(.text-green-300, .text-green-400):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #ECFDF5;
}
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800):is(.text-yellow-300, .text-amber-400):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *), html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800) :is(.text-yellow-300, .text-amber-400):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #9A5207;
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800):is(.text-yellow-300, .text-amber-400):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *), html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800) :is(.text-yellow-300, .text-amber-400):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #FFFBEB;
}
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800):is(.text-blue-100, .text-blue-200, .text-indigo-100, .text-purple-100, .text-sky-100, .text-teal-50, .text-teal-100, .text-cyan-100, .text-emerald-100):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *), html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800) :is(.text-blue-100, .text-blue-200, .text-indigo-100, .text-purple-100, .text-sky-100, .text-teal-50, .text-teal-100, .text-cyan-100, .text-emerald-100):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #3F3832;
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800):is(.text-blue-100, .text-blue-200, .text-indigo-100, .text-purple-100, .text-sky-100, .text-teal-50, .text-teal-100, .text-cyan-100, .text-emerald-100):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *), html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800) :is(.text-blue-100, .text-blue-200, .text-indigo-100, .text-purple-100, .text-sky-100, .text-teal-50, .text-teal-100, .text-cyan-100, .text-emerald-100):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #D6CFC8;
}

/* Deep drop shadows are the last dark patch on a light card: they become the soft card shadow. */
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.shadow-lg, .shadow-xl):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  box-shadow: 0 1px 2px rgba(26, 22, 19, 0.04), 0 4px 14px rgba(26, 22, 19, 0.03);
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.shadow-lg, .shadow-xl):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  box-shadow: none;
}

/* The site-wide "more reading" block is rendered from base.html inside <main>, so it sits outside both
   the skeleton root and the skin root and carries data-qc-seo="1" itself. Only its section needs a
   rule: everything inside it matches the article layer's descendant rules. It continues the page
   ground, keeps a hairline above and left-aligns its heading. */
html[data-theme] .qc-paper section[data-qc-seo="1"].qc-seo-related:not(.qc-keep):not(.qc-keep *) {
  padding-block: 8px 64px;
  background-color: #F6F4F0;
  background-image: none;
  border-block-start: 1px solid rgba(28, 24, 20, 0.09);
}
html[data-theme="dark"] .qc-paper section[data-qc-seo="1"].qc-seo-related:not(.qc-keep):not(.qc-keep *) {
  background-color: #0F0D0C;
  border-color: rgba(255, 255, 255, 0.10);
}
html[data-theme] .qc-paper section[data-qc-seo="1"].qc-seo-related .qc-seo-h2 {
  text-align: start;
}

/* Phones: the same block keeps a tighter bottom rhythm. */
@media screen and (max-width: 639px) {
  html[data-theme] .qc-paper section[data-qc-seo="1"].qc-seo-related:not(.qc-keep):not(.qc-keep *) {
    padding-block: 8px 40px;
  }
}

/* ---------------------------------------------------------------------------------------------
   Round 3: the browser QA of the 103 skinned pages (brief/qa-s2). Five groups, all appended, all
   inside the same skin scope and the same logical-property rule.

   (A) main.css paints EVERY bare `pre` as a #1a202c terminal (not theme.css and not a template class:
       `pre { background-color: #1a202c; color: #e2e8f0 }` in main.css). The slabs around those pre
       elements were remapped to the sunk panel in round 1, so the pre itself stayed a dark block under
       the remapped dark ink (1.42:1). The pre now takes the sunk panel as well; a pre that is its own
       slab keeps the hairline, a pre inside a remapped slab drops it so the block has exactly one line.
   (B) The dark theme: a solid #E39A82 fill must carry #0F0D0C labels even when the label class sits on
       the fill element itself (the CTA's `a.bg-purple-700.text-white` is not a descendant of the fill),
       and the zebra rows of the comparison tables are `bg-gray-50/50`, an alpha utility no round-1 row
       names: over the near-black ground it computed to #848384, leaving the brand-text cells at 1.65:1.
   (C) and (G): the labels no round-1 row names - `text-qcode-primary`, the yellow badge label and the
       gradient text of the hero titles (`text-transparent bg-clip-text bg-gradient-to-r`). The wave-1
       gradient rule clears the gradient image, so with `color: transparent` the second line of a hero
       title was invisible; it now gets a solid ink (brand outside a fill, the fill's ink inside one).
       One inherited variable carries that ink, so the dark theme's band / solid-fill split stays one
       definition per surface.
   --------------------------------------------------------------------------------------------- */

/* The ink a label needs on a filled surface: white on the light brand fill, the warm ink on a dark
   tinted band, the dark ink on a dark solid fill. Set on the fill, inherited by its labels. */
html[data-theme] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-cyan-600, .bg-emerald-500, .bg-emerald-600, .bg-emerald-700, .bg-fuchsia-600, .bg-indigo-500, .bg-indigo-600, .bg-indigo-700, .bg-pink-600, .bg-purple-500, .bg-purple-600, .bg-purple-700, .bg-qcode-primary, .bg-sky-500, .bg-sky-600, .bg-sky-700, .bg-teal-500, .bg-teal-600, .bg-teal-700, .bg-violet-500, .bg-violet-600, .from-amber-500, .from-blue-500, .from-blue-600, .from-cyan-600, .from-emerald-600, .from-fuchsia-600, .from-green-500, .from-green-600, .from-indigo-600, .from-orange-500, .from-orange-600, .from-purple-600, .from-qcode-primary, .from-red-500, .from-rose-600, .from-sky-600, .from-teal-500, .from-teal-600, .from-violet-600, .to-amber-500, .to-amber-600, .to-blue-600, .to-blue-700, .to-cyan-600, .to-emerald-500, .to-emerald-600, .to-green-600, .to-green-700, .to-indigo-600, .to-orange-500, .to-orange-600, .to-pink-600, .to-purple-600, .to-qcode-primary, .to-qcode-primary-hover, .to-sky-600, .to-teal-600, .to-violet-600, .to-yellow-500, .via-blue-600, .via-blue-700, .via-cyan-600, .via-indigo-600, .via-purple-600, .bg-green-500, .bg-green-600, .bg-lime-600):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *):not(:is(.bg-clip-text, .text-transparent)),
html[data-theme] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is([style*="linear-gradient(135deg, #"], [style*="linear-gradient(135deg, var(--color-qcode-primary"]):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *):not(:is(.bg-clip-text, .text-transparent)) {
  --qc-seo-fill-ink: #FFFFFF;
}
html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.from-blue-500, .from-blue-600, .from-indigo-600, .from-purple-600, .from-violet-600, .from-sky-600, .from-teal-500, .from-teal-600, .from-cyan-600, .from-emerald-600, .from-fuchsia-600, .from-green-500, .from-green-600, .from-red-500, .from-amber-500, .from-orange-500, .from-orange-600, .from-rose-600, .to-blue-600, .to-blue-700, .to-indigo-600, .to-purple-600, .to-violet-600, .to-sky-600, .to-teal-600, .to-cyan-600, .to-emerald-500, .to-emerald-600, .to-pink-600, .to-green-600, .to-green-700, .to-amber-500, .to-amber-600, .to-yellow-500, .to-orange-500, .to-orange-600, .via-blue-600, .via-blue-700, .via-indigo-600, .via-purple-600, .via-cyan-600, .from-qcode-primary, .to-qcode-primary, .to-qcode-primary-hover):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *):not(:is(.bg-clip-text, .text-transparent)),
html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is([style*="linear-gradient(135deg, #"], [style*="linear-gradient(135deg, var(--color-qcode-primary"]):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *):not(:is(.bg-clip-text, .text-transparent)) {
  --qc-seo-fill-ink: #F3EEE9;
}
html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-indigo-500, .bg-indigo-600, .bg-indigo-700, .bg-purple-500, .bg-purple-600, .bg-purple-700, .bg-violet-500, .bg-violet-600, .bg-sky-500, .bg-sky-600, .bg-sky-700, .bg-teal-500, .bg-teal-600, .bg-teal-700, .bg-cyan-600, .bg-emerald-500, .bg-emerald-600, .bg-emerald-700, .bg-fuchsia-600, .bg-pink-600, .bg-qcode-primary, .bg-green-500, .bg-green-600, .bg-lime-600):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *):not(:is(.bg-clip-text, .text-transparent)) {
  --qc-seo-fill-ink: #0F0D0C;
}

/* Brand labels and badge labels inside a fill: the brand text span of a hero title and the yellow
   "editor's choice" badge sat at 1.65:1 / 1.68:1 on the terracotta fill in the light theme. */
html[data-theme] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-cyan-600, .bg-emerald-500, .bg-emerald-600, .bg-emerald-700, .bg-fuchsia-600, .bg-indigo-500, .bg-indigo-600, .bg-indigo-700, .bg-pink-600, .bg-purple-500, .bg-purple-600, .bg-purple-700, .bg-qcode-primary, .bg-sky-500, .bg-sky-600, .bg-sky-700, .bg-teal-500, .bg-teal-600, .bg-teal-700, .bg-violet-500, .bg-violet-600, .from-amber-500, .from-blue-500, .from-blue-600, .from-cyan-600, .from-emerald-600, .from-fuchsia-600, .from-green-500, .from-green-600, .from-indigo-600, .from-orange-500, .from-orange-600, .from-purple-600, .from-qcode-primary, .from-red-500, .from-rose-600, .from-sky-600, .from-teal-500, .from-teal-600, .from-violet-600, .to-amber-500, .to-amber-600, .to-blue-600, .to-blue-700, .to-cyan-600, .to-emerald-500, .to-emerald-600, .to-green-600, .to-green-700, .to-indigo-600, .to-orange-500, .to-orange-600, .to-pink-600, .to-purple-600, .to-qcode-primary, .to-qcode-primary-hover, .to-sky-600, .to-teal-600, .to-violet-600, .to-yellow-500, .via-blue-600, .via-blue-700, .via-cyan-600, .via-indigo-600, .via-purple-600, .bg-green-500, .bg-green-600, .bg-lime-600) :is(.text-qcode-primary, .text-yellow-900, .text-yellow-800):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *):not(.bg-yellow-50, .bg-yellow-100, .bg-yellow-200, .bg-amber-50, .bg-amber-100, .bg-orange-100, .bg-white),
html[data-theme] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is([style*="linear-gradient(135deg, #"], [style*="linear-gradient(135deg, var(--color-qcode-primary"]) :is(.text-qcode-primary, .text-yellow-900, .text-yellow-800):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *):not(.bg-yellow-50, .bg-yellow-100, .bg-yellow-200, .bg-amber-50, .bg-amber-100, .bg-orange-100, .bg-white) {
  color: var(--qc-seo-fill-ink, #FFFFFF);
}

/* (G) Gradient text: never transparent, always a solid ink. Outside a fill the hero's second line is
   the brand text colour, inside a fill it is the fill's ink; the clipped background is dropped so no
   terracotta box can appear behind the glyphs. */
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.bg-clip-text, .text-transparent):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: transparent;
  color: var(--qc-seo-fill-ink, #B24624);
  -webkit-text-fill-color: var(--qc-seo-fill-ink, #B24624);
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.bg-clip-text, .text-transparent):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: transparent;
  color: var(--qc-seo-fill-ink, #E39A82);
  -webkit-text-fill-color: var(--qc-seo-fill-ink, #E39A82);
}

/* (C) The brand text utility on an ordinary surface: #d97757 is 2.84:1 on the paper ground (the big
   stat numbers of the news digests). One step darker reaches 5.5:1. */
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.text-qcode-primary):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #B24624;
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.text-qcode-primary):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #E39A82;
}

/* (C) The deep semantic labels that stayed one step too light on the sunk panel: #dc2626 4.25:1,
   #b45309 4.41:1, #15803d 4.41:1. Each steps down one step in the light theme; the dark theme keeps
   the theme-aware badge token. */
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.text-red-600):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #B91C1C;
}
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.text-amber-700):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #9A5207;
}
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.text-green-700):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #047857;
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.text-red-600):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: var(--qc-badge-red);
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.text-amber-700):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: var(--qc-badge-amber);
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.text-green-700):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: var(--qc-badge-green);
}

/* (A) The code block itself: the bare `pre` from main.css becomes the sunk panel with one hairline,
   the dark theme keeps the terminal dark. A pre without a text-* utility would otherwise inherit the
   #e2e8f0 of that main.css rule, so it takes the body ink (light) / the warm body ink (dark).
   Round 4 (code block): a pre that sits inside an already-remapped dark slab drops its own background as well
   as its hairline, so the slab is the only surface behind the glyphs (main.css' #1a202c can no longer
   show through at the pre's edges or through any future rounded/overflow mismatch). */
html[data-theme] .qc-paper [data-qc-seo-skin="1"] pre:not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #F3F0EA;
  border: 1px solid rgba(28, 24, 20, 0.09);
}
html[data-theme] .qc-paper [data-qc-seo-skin="1"] pre:not([class*="text-"]):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #3F3832;
}
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-900, .bg-gray-800) pre:not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: transparent;
  border-width: 0;
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] pre:not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #0A0908;
  border-color: rgba(255, 255, 255, 0.10);
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] pre:not([class*="text-"]):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: #D6CFC8;
}

/* (D) The emerald solid circles (number badges, icon tiles) follow the one accent instead of staying
   the only green fill on the page: brand fill with a white label in the light theme, the dark theme's
   brand fill with the dark ink. */
html[data-theme] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.bg-green-500, .bg-green-600, .bg-lime-600):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #B84B27;
  color: #FFFFFF;
}
html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.bg-green-500, .bg-green-600, .bg-lime-600):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #E39A82;
  color: #0F0D0C;
}
html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.bg-green-500, .bg-green-600, .bg-lime-600) :is(.text-white, .text-white\/80, .text-white\/90, .text-gray-100, .text-gray-200, .text-blue-100, .text-blue-200, .text-indigo-100, .text-purple-100, .text-sky-100, .text-teal-50, .text-teal-100, .text-cyan-100, .text-emerald-100, .text-green-100, .text-orange-100):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: var(--qc-seo-fill-ink, #0F0D0C);
}

/* (B) The dark theme's solid fill with the label class on the element itself. The dark band-label rule
   outranks the fill's own ink because the band ancestor is one compound more; this rule restates the
   ink on the subject itself and is written last, so a `bg-purple-700 text-white` CTA button reads
   #0F0D0C on #E39A82 (8.5:1) instead of #F3EEE9 (1.98:1). */
html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-indigo-500, .bg-indigo-600, .bg-indigo-700, .bg-purple-500, .bg-purple-600, .bg-purple-700, .bg-violet-500, .bg-violet-600, .bg-sky-500, .bg-sky-600, .bg-sky-700, .bg-teal-500, .bg-teal-600, .bg-teal-700, .bg-cyan-600, .bg-emerald-500, .bg-emerald-600, .bg-emerald-700, .bg-fuchsia-600, .bg-pink-600, .bg-qcode-primary, .bg-green-500, .bg-green-600, .bg-lime-600):is(.text-white, .text-white\/80, .text-white\/90, .text-gray-100, .text-gray-200, .text-blue-100, .text-blue-200, .text-indigo-100, .text-purple-100, .text-sky-100, .text-teal-50, .text-teal-100, .text-cyan-100, .text-emerald-100, .text-green-100, .text-orange-100):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  color: var(--qc-seo-fill-ink, #0F0D0C);
}

/* (B) The zebra rows of the comparison tables are `bg-gray-50/50` (50 % of #f9fafb), a colour utility
   with an alpha suffix that no round-1 row names. Over the near-black ground it computed to #848384
   and left the brand-text cells at 1.65:1. Round 4 (zebra): a solid wash replaces the alpha utility in
   both themes - the warm paper tint in the light theme (the same result on a white card and on the
   paper ground, so the deep semantic labels stay above 4.5:1: 5.99 / 5.08 / 5.43 / 5.13) and the grey
   row token in the dark theme (8.04:1). */
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-50\/50):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #F8F6F2;
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.bg-gray-50\/50):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #171412;
}

/* (D) The saturated accent edges that round 1 left out (the 4px step bars and the left rules of the
   tutorial / radar cards) join the one brand rule. */
html[data-theme] .qc-paper [data-qc-seo-skin="1"] :is(.border-green-400, .border-green-500, .border-red-400, .border-red-500, .border-amber-400, .border-orange-400, .border-blue-600, .border-indigo-500, .border-purple-600, .border-violet-500):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  border-color: #B84B27;
}
html[data-theme="dark"] .qc-paper [data-qc-seo-skin="1"] :is(.border-green-400, .border-green-500, .border-red-400, .border-red-500, .border-amber-400, .border-orange-400, .border-blue-600, .border-indigo-500, .border-purple-600, .border-violet-500):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  border-color: #E39A82;
}
/* The one white element inside a fill is the "register" button of a CTA band; it is the only surface
   there that is lighter than the band, so it resets the inherited fill ink for its own subtree (its
   label is the brand text colour in the light theme, the dark ink on the dark theme's brand fill). */
html[data-theme] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-cyan-600, .bg-emerald-500, .bg-emerald-600, .bg-emerald-700, .bg-fuchsia-600, .bg-indigo-500, .bg-indigo-600, .bg-indigo-700, .bg-pink-600, .bg-purple-500, .bg-purple-600, .bg-purple-700, .bg-qcode-primary, .bg-sky-500, .bg-sky-600, .bg-sky-700, .bg-teal-500, .bg-teal-600, .bg-teal-700, .bg-violet-500, .bg-violet-600, .from-amber-500, .from-blue-500, .from-blue-600, .from-cyan-600, .from-emerald-600, .from-fuchsia-600, .from-green-500, .from-green-600, .from-indigo-600, .from-orange-500, .from-orange-600, .from-purple-600, .from-qcode-primary, .from-red-500, .from-rose-600, .from-sky-600, .from-teal-500, .from-teal-600, .from-violet-600, .to-amber-500, .to-amber-600, .to-blue-600, .to-blue-700, .to-cyan-600, .to-emerald-500, .to-emerald-600, .to-green-600, .to-green-700, .to-indigo-600, .to-orange-500, .to-orange-600, .to-pink-600, .to-purple-600, .to-qcode-primary, .to-qcode-primary-hover, .to-sky-600, .to-teal-600, .to-violet-600, .to-yellow-500, .via-blue-600, .via-blue-700, .via-cyan-600, .via-indigo-600, .via-purple-600, .bg-green-500, .bg-green-600, .bg-lime-600) :is(.bg-white):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *),
html[data-theme] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is([style*="linear-gradient(135deg, #"], [style*="linear-gradient(135deg, var(--color-qcode-primary"]) :is(.bg-white):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  --qc-seo-fill-ink: #B24624;
}
html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-cyan-600, .bg-emerald-500, .bg-emerald-600, .bg-emerald-700, .bg-fuchsia-600, .bg-indigo-500, .bg-indigo-600, .bg-indigo-700, .bg-pink-600, .bg-purple-500, .bg-purple-600, .bg-purple-700, .bg-qcode-primary, .bg-sky-500, .bg-sky-600, .bg-sky-700, .bg-teal-500, .bg-teal-600, .bg-teal-700, .bg-violet-500, .bg-violet-600, .from-amber-500, .from-blue-500, .from-blue-600, .from-cyan-600, .from-emerald-600, .from-fuchsia-600, .from-green-500, .from-green-600, .from-indigo-600, .from-orange-500, .from-orange-600, .from-purple-600, .from-qcode-primary, .from-red-500, .from-rose-600, .from-sky-600, .from-teal-500, .from-teal-600, .from-violet-600, .to-amber-500, .to-amber-600, .to-blue-600, .to-blue-700, .to-cyan-600, .to-emerald-500, .to-emerald-600, .to-green-600, .to-green-700, .to-indigo-600, .to-orange-500, .to-orange-600, .to-pink-600, .to-purple-600, .to-qcode-primary, .to-qcode-primary-hover, .to-sky-600, .to-teal-600, .to-violet-600, .to-yellow-500, .via-blue-600, .via-blue-700, .via-cyan-600, .via-indigo-600, .via-purple-600, .bg-green-500, .bg-green-600, .bg-lime-600) :is(.bg-white):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *),
html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is([style*="linear-gradient(135deg, #"], [style*="linear-gradient(135deg, var(--color-qcode-primary"]) :is(.bg-white):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  --qc-seo-fill-ink: #0F0D0C;
}

/* ---------------------------------------------------------------------------------------------
   Round 4: the independent rendered-contrast review (code block, band fill, hover, fill ink, zebra).
   All appended, same scope and same logical-property rule as above.
   (code block) A `pre` inside a remapped dark slab now drops its own background (see the pre block
        above), so the terminal colour of main.css can no longer show at the edges of the light
        reinterpretation.
   (band) In the light theme the band and its solid button both mapped to the brand fill, so the button
        lost its shape. A solid fill that sits inside a band now becomes a translucent ink well with
        white labels (7.1:1 on the composite) while the band keeps the brand fill; the dark theme's
        self-labelled-fill rule above already gives the dark ink on the light brand fill (8.5:1).
   (hover) The outlined band button is `border-white text-white hover:bg-white hover:text-qcode-primary`:
        the forced white label also applied on hover, i.e. white on white. The hover state is restated
        here (white surface with brand text in the light theme, brand fill with dark ink in the dark
        theme) and the `hover:bg-white/10` variant gets a dark glass instead of a 10 % white wash
        (white would fall to 4.3:1 on the lightened band).
   (fill ink) A family gradient label inside a fill (`text-qcode-primary`, `text-yellow-900/800`) already
        reads the inherited fill ink (`--qc-seo-fill-ink`), i.e. white on the light brand fill and the
        warm ink on a dark band; the "Editor's Choice" badge therefore reads 5.15:1, not 1.68:1.
   (zebra) The zebra row and the brand text are already covered by round 3; the row itself is now a
        solid wash of the warm paper tint in the light theme and of the grey row token in the dark
        theme (see above), so the measured label pairs are stable on every surface.
   --------------------------------------------------------------------------------------------- */

html[data-theme] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.from-blue-500, .from-blue-600, .from-indigo-600, .from-purple-600, .from-violet-600, .from-sky-600, .from-teal-500, .from-teal-600, .from-cyan-600, .from-emerald-600, .from-fuchsia-600, .from-green-500, .from-green-600, .from-red-500, .from-amber-500, .from-orange-500, .from-orange-600, .from-rose-600, .to-blue-600, .to-blue-700, .to-indigo-600, .to-purple-600, .to-violet-600, .to-sky-600, .to-teal-600, .to-cyan-600, .to-emerald-500, .to-emerald-600, .to-pink-600, .to-green-600, .to-green-700, .to-amber-500, .to-amber-600, .to-yellow-500, .to-orange-500, .to-orange-600, .via-blue-600, .via-blue-700, .via-indigo-600, .via-purple-600, .via-cyan-600, .from-qcode-primary, .to-qcode-primary, .to-qcode-primary-hover) :is(.bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-indigo-500, .bg-indigo-600, .bg-indigo-700, .bg-purple-500, .bg-purple-600, .bg-purple-700, .bg-violet-500, .bg-violet-600, .bg-sky-500, .bg-sky-600, .bg-sky-700, .bg-teal-500, .bg-teal-600, .bg-teal-700, .bg-cyan-600, .bg-emerald-500, .bg-emerald-600, .bg-emerald-700, .bg-fuchsia-600, .bg-pink-600, .bg-qcode-primary, .bg-green-500, .bg-green-600, .bg-lime-600):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *),
html[data-theme] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is([style*="linear-gradient(135deg, #"], [style*="linear-gradient(135deg, var(--color-qcode-primary"]) :is(.bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-indigo-500, .bg-indigo-600, .bg-indigo-700, .bg-purple-500, .bg-purple-600, .bg-purple-700, .bg-violet-500, .bg-violet-600, .bg-sky-500, .bg-sky-600, .bg-sky-700, .bg-teal-500, .bg-teal-600, .bg-teal-700, .bg-cyan-600, .bg-emerald-500, .bg-emerald-600, .bg-emerald-700, .bg-fuchsia-600, .bg-pink-600, .bg-qcode-primary, .bg-green-500, .bg-green-600, .bg-lime-600):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: rgba(15, 13, 12, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
}

html[data-theme] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.from-blue-500, .from-blue-600, .from-indigo-600, .from-purple-600, .from-violet-600, .from-sky-600, .from-teal-500, .from-teal-600, .from-cyan-600, .from-emerald-600, .from-fuchsia-600, .from-green-500, .from-green-600, .from-red-500, .from-amber-500, .from-orange-500, .from-orange-600, .from-rose-600, .to-blue-600, .to-blue-700, .to-indigo-600, .to-purple-600, .to-violet-600, .to-sky-600, .to-teal-600, .to-cyan-600, .to-emerald-500, .to-emerald-600, .to-pink-600, .to-green-600, .to-green-700, .to-amber-500, .to-amber-600, .to-yellow-500, .to-orange-500, .to-orange-600, .via-blue-600, .via-blue-700, .via-indigo-600, .via-purple-600, .via-cyan-600, .from-qcode-primary, .to-qcode-primary, .to-qcode-primary-hover) .hover\:bg-white:hover:not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *),
html[data-theme] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is([style*="linear-gradient(135deg, #"], [style*="linear-gradient(135deg, var(--color-qcode-primary"]) .hover\:bg-white:hover:not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #FFFFFF;
  color: #B24624;
}
html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.from-blue-500, .from-blue-600, .from-indigo-600, .from-purple-600, .from-violet-600, .from-sky-600, .from-teal-500, .from-teal-600, .from-cyan-600, .from-emerald-600, .from-fuchsia-600, .from-green-500, .from-green-600, .from-red-500, .from-amber-500, .from-orange-500, .from-orange-600, .from-rose-600, .to-blue-600, .to-blue-700, .to-indigo-600, .to-purple-600, .to-violet-600, .to-sky-600, .to-teal-600, .to-cyan-600, .to-emerald-500, .to-emerald-600, .to-pink-600, .to-green-600, .to-green-700, .to-amber-500, .to-amber-600, .to-yellow-500, .to-orange-500, .to-orange-600, .via-blue-600, .via-blue-700, .via-indigo-600, .via-purple-600, .via-cyan-600, .from-qcode-primary, .to-qcode-primary, .to-qcode-primary-hover) .hover\:bg-white:hover:not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *),
html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is([style*="linear-gradient(135deg, #"], [style*="linear-gradient(135deg, var(--color-qcode-primary"]) .hover\:bg-white:hover:not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #E39A82;
  color: #0F0D0C;
}

html[data-theme] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.from-blue-500, .from-blue-600, .from-indigo-600, .from-purple-600, .from-violet-600, .from-sky-600, .from-teal-500, .from-teal-600, .from-cyan-600, .from-emerald-600, .from-fuchsia-600, .from-green-500, .from-green-600, .from-red-500, .from-amber-500, .from-orange-500, .from-orange-600, .from-rose-600, .to-blue-600, .to-blue-700, .to-indigo-600, .to-purple-600, .to-violet-600, .to-sky-600, .to-teal-600, .to-cyan-600, .to-emerald-500, .to-emerald-600, .to-pink-600, .to-green-600, .to-green-700, .to-amber-500, .to-amber-600, .to-yellow-500, .to-orange-500, .to-orange-600, .via-blue-600, .via-blue-700, .via-indigo-600, .via-purple-600, .via-cyan-600, .from-qcode-primary, .to-qcode-primary, .to-qcode-primary-hover) .hover\:bg-white\/10:hover:not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *),
html[data-theme] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is([style*="linear-gradient(135deg, #"], [style*="linear-gradient(135deg, var(--color-qcode-primary"]) .hover\:bg-white\/10:hover:not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: rgba(15, 13, 12, 0.22);
  color: #FFFFFF;
}

/* The light band-fill rule above uses `html[data-theme]`, which also matches the dark theme; these two
   dark counterparts are written last so the dark theme keeps the round-2 treatment: a solid fill is
   the light brand with the dark ink (8.5:1), and the 10 % hover glass stays a light glass under the
   warm ink (11:1) instead of the light theme's dark ink well. */
html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.from-blue-500, .from-blue-600, .from-indigo-600, .from-purple-600, .from-violet-600, .from-sky-600, .from-teal-500, .from-teal-600, .from-cyan-600, .from-emerald-600, .from-fuchsia-600, .from-green-500, .from-green-600, .from-red-500, .from-amber-500, .from-orange-500, .from-orange-600, .from-rose-600, .to-blue-600, .to-blue-700, .to-indigo-600, .to-purple-600, .to-violet-600, .to-sky-600, .to-teal-600, .to-cyan-600, .to-emerald-500, .to-emerald-600, .to-pink-600, .to-green-600, .to-green-700, .to-amber-500, .to-amber-600, .to-yellow-500, .to-orange-500, .to-orange-600, .via-blue-600, .via-blue-700, .via-indigo-600, .via-purple-600, .via-cyan-600, .from-qcode-primary, .to-qcode-primary, .to-qcode-primary-hover) :is(.bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-indigo-500, .bg-indigo-600, .bg-indigo-700, .bg-purple-500, .bg-purple-600, .bg-purple-700, .bg-violet-500, .bg-violet-600, .bg-sky-500, .bg-sky-600, .bg-sky-700, .bg-teal-500, .bg-teal-600, .bg-teal-700, .bg-cyan-600, .bg-emerald-500, .bg-emerald-600, .bg-emerald-700, .bg-fuchsia-600, .bg-pink-600, .bg-qcode-primary, .bg-green-500, .bg-green-600, .bg-lime-600):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *),
html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is([style*="linear-gradient(135deg, #"], [style*="linear-gradient(135deg, var(--color-qcode-primary"]) :is(.bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-indigo-500, .bg-indigo-600, .bg-indigo-700, .bg-purple-500, .bg-purple-600, .bg-purple-700, .bg-violet-500, .bg-violet-600, .bg-sky-500, .bg-sky-600, .bg-sky-700, .bg-teal-500, .bg-teal-600, .bg-teal-700, .bg-cyan-600, .bg-emerald-500, .bg-emerald-600, .bg-emerald-700, .bg-fuchsia-600, .bg-pink-600, .bg-qcode-primary, .bg-green-500, .bg-green-600, .bg-lime-600):not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: #E39A82;
  border-color: #E39A82;
  color: #0F0D0C;
}

html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is(.from-blue-500, .from-blue-600, .from-indigo-600, .from-purple-600, .from-violet-600, .from-sky-600, .from-teal-500, .from-teal-600, .from-cyan-600, .from-emerald-600, .from-fuchsia-600, .from-green-500, .from-green-600, .from-red-500, .from-amber-500, .from-orange-500, .from-orange-600, .from-rose-600, .to-blue-600, .to-blue-700, .to-indigo-600, .to-purple-600, .to-violet-600, .to-sky-600, .to-teal-600, .to-cyan-600, .to-emerald-500, .to-emerald-600, .to-pink-600, .to-green-600, .to-green-700, .to-amber-500, .to-amber-600, .to-yellow-500, .to-orange-500, .to-orange-600, .via-blue-600, .via-blue-700, .via-indigo-600, .via-purple-600, .via-cyan-600, .from-qcode-primary, .to-qcode-primary, .to-qcode-primary-hover) .hover\:bg-white\/10:hover:not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *),
html[data-theme="dark"] .qc-paper :is([data-qc-seo-skin="1"], [data-qc-seo-skin="1"] *):is([style*="linear-gradient(135deg, #"], [style*="linear-gradient(135deg, var(--color-qcode-primary"]) .hover\:bg-white\/10:hover:not(.qc-keep):not(.qc-keep *):not([data-qc-conv], [data-qc-conv] *):not([data-qc-seo="1"], [data-qc-seo="1"] *) {
  background-color: rgba(255, 255, 255, 0.10);
  color: #F3EEE9;
}

/* Homepage intro video: "What is QCode" card, text left / video right; poster first, video only when allowed */
.qc-geo-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 32px; align-items: center; }
.qc-intro-watch { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; }
.qc-intro-watch svg { width: 12px; height: 12px; flex: none; }
.qc-intro-video { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #0a0a0f; cursor: pointer;
  border: 1px solid var(--qc-hairline); border-radius: var(--qc-radius-lg, 16px); box-shadow: var(--qc-shadow-rest); }
.qc-intro-poster, .qc-intro-loop { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.qc-intro-loop { opacity: 0; transition: opacity .3s ease; }
.qc-intro-video.is-playing .qc-intro-loop { opacity: 1; }
.qc-intro-badge { position: absolute; top: 12px; left: 12px; display: none; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; line-height: 1.3; color: #fff; background: rgba(10, 10, 12, .55); pointer-events: none; }
.qc-intro-video.is-playing .qc-intro-badge { display: block; }
.qc-intro-play { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin: -32px 0 0 -32px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  color: #fff; background: var(--qc-brand-fill); box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
  transition: transform .15s ease, background-color .15s ease; }
.qc-intro-play:hover { background: var(--qc-brand-fill-hover); transform: scale(1.05); }
/*rtl:ignore*/
.qc-intro-play svg { width: 20px; height: 20px; margin-left: 3px; }
.qc-intro-play:focus-visible, .qc-intro-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.qc-intro-video.is-playing .qc-intro-play { top: auto; left: auto; right: 12px; bottom: 12px; width: 44px; height: 44px; margin: 0; }
.qc-intro-video.is-playing .qc-intro-play svg { width: 16px; height: 16px; }
.qc-intro-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.qc-intro-modal { position: fixed; inset: 0; z-index: 2147483600; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(10, 9, 8, .82); }
.qc-intro-full { width: min(1100px, 100%); max-height: calc(100vh - 96px); aspect-ratio: 16 / 9; border-radius: 12px; background: #000; }
.qc-intro-close { position: absolute; top: 16px; right: 16px; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  font-size: 26px; line-height: 1; color: #fff; background: rgba(255, 255, 255, .14); }
/* lock scrolling on the root: the home page clips html's x overflow, so body overflow would not reach the viewport */
html:has(body.qc-intro-open) { overflow: hidden; }
@media (max-width: 900px) { .qc-geo-top { grid-template-columns: minmax(0, 1fr); gap: 20px; } .qc-intro-video { width: 100%; max-width: 560px; } }
@media (max-width: 767px) { .qc-intro-watch, .qc-intro-badge, .qc-intro-video.is-playing .qc-intro-badge { display: none; }
  .qc-intro-play, .qc-intro-video.is-playing .qc-intro-play { top: 12px; left: auto; right: 12px; bottom: auto; width: 48px; height: 48px; margin: 0; } }
@media (prefers-reduced-motion: reduce) { .qc-intro-loop, .qc-intro-play { transition: none; } }
