/* FARPY design system ds-1 (site-redesign-1).
   Shipped as a static stylesheet because the app's global CSS chunks are pinned. Loaded on every
   route right before mobile-fix-1.css. Everything is namespaced under .ds / .ds-* so the legacy
   layers keep working on pages that have not moved yet. Presentation only: no copy lives here. */

:root {
  --ds-bg: #0b0b0d;
  --ds-surface: #131216;
  --ds-surface-2: #1a191e;
  --ds-surface-3: #222127;
  --ds-line: rgba(255, 255, 255, 0.09);
  --ds-line-2: rgba(255, 255, 255, 0.16);
  --ds-ink: #f6f3ec;
  --ds-muted: #c9c2b8;
  --ds-faint: #a39d94;
  --ds-accent: #f0a05a;
  --ds-accent-2: #f7b77a;
  --ds-accent-ink: #1b1207;
  --ds-ok: #7bd8a1;
  --ds-ok-bg: rgba(123, 216, 161, 0.1);
  --ds-info: #8ab4ff;
  --ds-warn: #f3c969;
  --ds-r-sm: 2px;
  --ds-r: 2px;
  --ds-r-lg: 2px;
  --ds-s1: 4px; --ds-s2: 8px; --ds-s3: 12px; --ds-s4: 16px; --ds-s5: 24px; --ds-s6: 32px; --ds-s7: 48px; --ds-s8: 64px; --ds-s9: 96px;
  --ds-t-xs: 0.6875rem; --ds-t-sm: 0.8125rem; --ds-t-md: 1rem; --ds-t-lg: 1.0625rem; --ds-t-xl: 1.25rem;
  --ds-t-2xl: clamp(1.25rem, 1.1rem + 0.55vw, 1.5rem);
  --ds-t-3xl: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
  --ds-t-4xl: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  --ds-t-5xl: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
  --ds-mono: var(--font-geist-mono, ui-monospace), ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ds-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ds-dur: 160ms;
  --ds-shadow: none;
  --ds-max: 72rem;
}

/* ---------- base inside a ds page ---------- */
html body .ds { color: var(--ds-ink); font-size: var(--ds-t-md); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html body .ds :where(h1, h2, h3, h4) { color: var(--ds-ink); font-weight: 550; letter-spacing: -0.036em; line-height: 1.12; margin: 0; text-wrap: balance; }
html body .ds :where(p) { margin: 0; }
html body .ds :where(p, li, dd) { text-wrap: pretty; }
html body .ds :where(a) { color: inherit; }
html body .ds :where(img) { max-width: 100%; height: auto; display: block; }
html body .ds :where(ul, ol) { margin: 0; padding: 0; }
html body .ds :focus-visible { outline: 2px solid var(--ds-accent); outline-offset: 3px; border-radius: 6px; }
html body .ds-container { width: min(100% - 2rem, var(--ds-max)); margin-inline: auto; }
html body .ds-narrow { width: min(100% - 2rem, 46rem); margin-inline: auto; }
html body .ds-section { padding-block: var(--ds-s8); }
html body .ds-section + .ds-section { border-top: 1px solid var(--ds-line); }
html body .ds-section--tight { padding-block: var(--ds-s7); }
html body .ds-section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--ds-s3) var(--ds-s5); margin-bottom: var(--ds-s5); }
html body .ds-section-head > div { max-width: 44rem; }

/* ---------- type ---------- */
html body .ds .ds-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 var(--ds-s3); color: var(--ds-accent) !important; font-size: var(--ds-t-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
html body .ds .ds-h1 { font-size: var(--ds-t-5xl); letter-spacing: -0.042em; line-height: 0.98; font-weight: 550; }
html body .ds .ds-h2 { font-size: var(--ds-t-4xl); letter-spacing: -0.03em; line-height: 1.08; }
html body .ds .ds-h3 { font-size: var(--ds-t-3xl); }
html body .ds .ds-h4 { font-size: var(--ds-t-xl); letter-spacing: -0.01em; }
html body .ds .ds-h5 { font-size: var(--ds-t-lg); letter-spacing: -0.01em; }
html body .ds .ds-lede { color: var(--ds-muted) !important; font-size: var(--ds-t-lg); line-height: 1.6; max-width: 38rem; margin-top: var(--ds-s4); }
html body .ds .ds-body { color: var(--ds-muted) !important; font-size: var(--ds-t-md); line-height: 1.65; }
html body .ds .ds-small { color: var(--ds-faint) !important; font-size: var(--ds-t-sm); line-height: 1.55; }
html body .ds .ds-muted { color: var(--ds-muted) !important; }
html body .ds .ds-mono { font-family: var(--ds-mono); font-size: 0.92em; }
html body .ds .ds-num { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
html body .ds .ds-link { color: var(--ds-ink) !important; text-decoration: underline; text-decoration-color: rgba(240, 160, 90, 0.55); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color var(--ds-dur) var(--ds-ease), color var(--ds-dur); }
html body .ds .ds-link:hover { color: #fff !important; text-decoration-color: var(--ds-accent); }
html body .ds .ds-arrow-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ds-ink) !important; font-size: var(--ds-t-sm); font-weight: 500; text-decoration: none; }
html body .ds .ds-arrow-link::after { content: "→"; color: var(--ds-accent); transition: transform var(--ds-dur) var(--ds-ease); }
html body .ds .ds-arrow-link:hover::after { transform: translateX(3px); }
html body .ds .ds-prose { color: var(--ds-muted); font-size: var(--ds-t-md); line-height: 1.75; max-width: 44rem; }
html body .ds .ds-prose :where(p, ul, ol, pre, table, blockquote) + :where(p, ul, ol, pre, table, blockquote) { margin-top: 1em; }
html body .ds .ds-prose :where(h2) { font-size: var(--ds-t-2xl); margin: 2.2em 0 0.6em; scroll-margin-top: 88px; }
html body .ds .ds-prose :where(h3) { font-size: var(--ds-t-xl); margin: 1.8em 0 0.5em; scroll-margin-top: 88px; }
html body .ds .ds-prose :where(ul, ol) { padding-left: 1.25em; }
html body .ds .ds-prose :where(li) + li { margin-top: 0.35em; }
html body .ds .ds-prose :where(a) { color: var(--ds-ink); text-decoration: underline; text-decoration-color: rgba(240, 160, 90, 0.55); text-underline-offset: 3px; }
html body .ds .ds-prose :where(strong) { color: var(--ds-ink); font-weight: 600; }
html body .ds .ds-prose :where(code) { font-family: var(--ds-mono); font-size: 0.88em; background: var(--ds-surface-2); border: 1px solid var(--ds-line); border-radius: 6px; padding: 0.1em 0.35em; color: var(--ds-ink); }

/* ---------- buttons ---------- */
html body .ds .ds-btn, html body .ds-btn { --b-bg: var(--ds-surface-2); --b-ink: var(--ds-ink); --b-line: var(--ds-line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 2px;
  border: 1px solid var(--b-line); background: var(--b-bg); color: var(--b-ink) !important; font-size: var(--ds-t-sm); font-weight: 600; line-height: 1;
  text-decoration: none !important; white-space: nowrap; cursor: pointer;
  transition: background-color var(--ds-dur) var(--ds-ease), border-color var(--ds-dur) var(--ds-ease), transform var(--ds-dur) var(--ds-ease), box-shadow var(--ds-dur) var(--ds-ease); }
html body .ds .ds-btn:hover, html body .ds-btn:hover { --b-bg: var(--ds-surface-3); --b-line: rgba(255, 255, 255, 0.28); }
html body .ds .ds-btn:active, html body .ds-btn:active { }
html body .ds .ds-btn--primary, html body .ds-btn--primary { --b-bg: var(--ds-ink); --b-ink: #141216; --b-line: transparent; box-shadow: none; }
html body .ds .ds-btn--primary:hover, html body .ds-btn--primary:hover { --b-bg: #fff; --b-line: transparent; }
html body .ds .ds-btn--light, html body .ds-btn--light { --b-bg: var(--ds-ink); --b-ink: #111; --b-line: transparent; }
html body .ds .ds-btn--light:hover, html body .ds-btn--light:hover { --b-bg: #fff; --b-line: transparent; }
html body .ds .ds-btn--ghost { --b-bg: transparent; --b-line: transparent; padding: 0 10px; }
html body .ds .ds-btn--ghost:hover { --b-bg: var(--ds-surface-2); --b-line: transparent; }
html body .ds .ds-btn--lg { min-height: 52px; padding: 0 24px; font-size: var(--ds-t-md); }
html body .ds .ds-btn--sm { min-height: 36px; padding: 0 14px; font-size: var(--ds-t-xs); }
html body .ds .ds-btn--block { width: 100%; }
html body .ds .ds-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-s3); }

/* ---------- badges & chips ---------- */
html body .ds .ds-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 10px; border-radius: 2px; border: 1px solid var(--ds-line-2); background: var(--ds-surface-2); color: var(--ds-muted) !important; font-size: var(--ds-t-xs); font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
html body .ds .ds-badge--ok { color: var(--ds-ok) !important; background: var(--ds-ok-bg); border-color: rgba(123, 216, 161, 0.3); }
html body .ds .ds-badge--accent { color: var(--ds-accent) !important; background: rgba(240, 160, 90, 0.1); border-color: rgba(240, 160, 90, 0.32); }
html body .ds .ds-badge--info { color: var(--ds-info) !important; background: rgba(138, 180, 255, 0.1); border-color: rgba(138, 180, 255, 0.3); }
html body .ds .ds-badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- cards & grids ---------- */
html body .ds .ds-card { position: relative; display: flex; flex-direction: column; gap: var(--ds-s2); padding: var(--ds-s5); border: 1px solid var(--ds-line); border-radius: var(--ds-r-lg); background: var(--ds-surface); box-shadow: none; }
html body .ds .ds-card--flat { background: var(--ds-surface); box-shadow: none; }
html body .ds .ds-card--accent { border-color: var(--ds-line-2); background: var(--ds-surface); }
html body .ds a.ds-card { text-decoration: none; transition: border-color var(--ds-dur) var(--ds-ease), transform var(--ds-dur) var(--ds-ease), background-color var(--ds-dur); }
html body .ds a.ds-card:hover { border-color: var(--ds-line-2); }
html body .ds .ds-card :where(h3, h4) { color: var(--ds-ink) !important; }
html body .ds .ds-card :where(p) { color: var(--ds-muted) !important; font-size: var(--ds-t-sm); line-height: 1.6; }
html body .ds .ds-card .ds-card-k { color: var(--ds-faint) !important; font-size: var(--ds-t-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
html body .ds .ds-card .ds-card-foot { margin-top: auto; padding-top: var(--ds-s3); }
html body .ds .ds-grid { display: grid; gap: var(--ds-s4); }
html body .ds .ds-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html body .ds .ds-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html body .ds .ds-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { html body .ds .ds-grid--3, html body .ds .ds-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { html body .ds .ds-grid--2, html body .ds .ds-grid--3 { grid-template-columns: 1fr; } }
html body .ds .ds-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 2px; border: 1px solid var(--ds-line-2); background: var(--ds-surface-2); color: var(--ds-accent); flex: none; }
html body .ds .ds-icon svg { width: 18px; height: 18px; }

/* ---------- promise list (hero) ---------- */
html body .ds .ds-promises { list-style: none; display: grid; gap: 10px; margin: var(--ds-s5) 0 0; }
html body .ds .ds-promises li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; color: var(--ds-muted) !important; font-size: var(--ds-t-md); line-height: 1.5; }
html body .ds .ds-promises li strong { color: var(--ds-ink) !important; font-weight: 600; }
html body .ds .ds-promises .ds-tick { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--ds-ok-bg); color: var(--ds-ok); border: 1px solid rgba(123,216,161,0.3); }
html body .ds .ds-promises .ds-tick svg { width: 13px; height: 13px; }

/* ---------- steps ---------- */
html body .ds .ds-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ds-s4); counter-reset: dsstep; }
html body .ds .ds-steps > li { position: relative; padding: var(--ds-s5); border: 1px solid var(--ds-line); border-radius: var(--ds-r-lg); background: var(--ds-surface); counter-increment: dsstep; }
html body .ds .ds-steps > li::before { content: counter(dsstep, decimal-leading-zero); display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 8px; margin-bottom: var(--ds-s4); border-radius: 999px; border: 1px solid rgba(240,160,90,0.35); color: var(--ds-accent); font: 600 12px/1 var(--ds-mono); }
html body .ds .ds-steps > li:not(:last-child)::after { content: ""; position: absolute; top: 37px; right: -17px; width: 18px; height: 1px; background: var(--ds-line-2); }
html body .ds .ds-steps h3 { font-size: var(--ds-t-lg) !important; margin-bottom: 6px !important; }
html body .ds .ds-steps p { color: var(--ds-muted) !important; font-size: var(--ds-t-sm); line-height: 1.6; }
html body .ds .ds-steps .ds-step-art { margin-top: var(--ds-s4); padding: 12px; border-radius: var(--ds-r); background: var(--ds-bg); border: 1px solid var(--ds-line); font: 500 12px/1.6 var(--ds-mono); color: var(--ds-muted); }
html body .ds .ds-steps .ds-step-art b { color: var(--ds-ink); font-weight: 600; }
html body .ds .ds-steps .ds-step-art .ok { color: var(--ds-ok); }
@media (max-width: 960px) { html body .ds .ds-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } html body .ds .ds-steps > li::after { display: none; } }
@media (max-width: 560px) { html body .ds .ds-steps { grid-template-columns: 1fr; gap: var(--ds-s3); } html body .ds .ds-steps > li { padding: var(--ds-s4); } }

/* ---------- stat strip ---------- */
html body .ds .ds-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--ds-line); border-radius: var(--ds-r-lg); background: var(--ds-surface); overflow: hidden; }
html body .ds .ds-stats > div { padding: var(--ds-s4) var(--ds-s5); border-right: 1px solid var(--ds-line); }
html body .ds .ds-stats > div:last-child { border-right: 0; }
html body .ds .ds-stats dt { color: var(--ds-faint) !important; font-size: var(--ds-t-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
html body .ds .ds-stats dd { margin: 6px 0 0; color: var(--ds-ink) !important; font-size: var(--ds-t-xl); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
html body .ds .ds-stats dd small { display: block; margin-top: 2px; color: var(--ds-faint) !important; font-size: var(--ds-t-xs); font-weight: 500; letter-spacing: 0; }
@media (max-width: 640px) { html body .ds .ds-stats { grid-template-columns: 1fr 1fr; } html body .ds .ds-stats > div { border-bottom: 1px solid var(--ds-line); } }

/* ---------- key/value + table ---------- */
html body .ds .ds-kv { display: grid; border: 1px solid var(--ds-line); border-radius: var(--ds-r); overflow: hidden; background: var(--ds-surface); font-size: var(--ds-t-sm); }
html body .ds .ds-kv > div { display: grid; grid-template-columns: minmax(8rem, 0.8fr) 1.2fr; gap: var(--ds-s4); padding: 11px var(--ds-s4); border-top: 1px solid var(--ds-line); }
html body .ds .ds-kv > div:first-child { border-top: 0; }
html body .ds .ds-kv dt, html body .ds .ds-kv .k { color: var(--ds-faint) !important; font-family: var(--ds-mono); font-size: 0.85em; }
html body .ds .ds-kv dd, html body .ds .ds-kv .v { margin: 0; color: var(--ds-ink) !important; overflow-wrap: anywhere; }
html body .ds .ds-table-wrap { overflow-x: auto; border: 1px solid var(--ds-line); border-radius: var(--ds-r); background: var(--ds-surface); }
html body .ds table.ds-table, html body .ds .ds-prose table, html body .ds .ds-table-wrap table { width: 100%; border-collapse: collapse; font-size: var(--ds-t-sm); }
html body .ds .ds-table th, html body .ds .ds-table-wrap th { padding: 10px 14px; text-align: left; color: var(--ds-faint) !important; font-size: var(--ds-t-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid var(--ds-line-2); background: var(--ds-surface-2); }
html body .ds .ds-table td, html body .ds .ds-table-wrap td { padding: 11px 14px; color: var(--ds-muted) !important; border-bottom: 1px solid var(--ds-line); vertical-align: top; }
html body .ds .ds-table tr:last-child td, html body .ds .ds-table-wrap tr:last-child td { border-bottom: 0; }

/* ---------- code ---------- */
html body .ds pre, html body .ds .ds-code { position: relative; margin: 0; padding: 16px 18px; overflow-x: auto; border: 1px solid var(--ds-line); border-radius: var(--ds-r); background: #08080a; color: #e8e4dc; font: 13px/1.65 var(--ds-mono); tab-size: 2; }
html body .ds pre code { background: none !important; border: 0 !important; padding: 0 !important; font-size: inherit !important; color: inherit !important; }
html body .ds-copy-btn { position: absolute; top: 8px; right: 8px; min-height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--ds-line-2); background: var(--ds-surface-2); color: var(--ds-muted); font: 600 12px/1 system-ui, sans-serif; cursor: pointer; opacity: 0; transition: opacity var(--ds-dur) var(--ds-ease), color var(--ds-dur); }
html body .ds-copy-host:hover > .ds-copy-btn, html body .ds-copy-btn:focus-visible, html body .ds-copy-btn[data-state="copied"] { opacity: 1; }
html body .ds-copy-btn[data-state="copied"] { color: var(--ds-ok); }
@media (hover: none) { html body .ds-copy-btn { opacity: 1; } }

/* ---------- accordion ---------- */
html body .ds .ds-acc { border: 1px solid var(--ds-line); border-radius: var(--ds-r-lg); background: var(--ds-surface); overflow: hidden; }
html body .ds .ds-acc > details { border-top: 1px solid var(--ds-line); }
html body .ds .ds-acc > details:first-child { border-top: 0; }
html body .ds .ds-acc summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--ds-s4); padding: 16px 52px 16px var(--ds-s5); color: var(--ds-ink) !important; font-size: var(--ds-t-md); font-weight: 500; cursor: pointer; list-style: none; transition: background-color var(--ds-dur); }
html body .ds .ds-acc summary::-webkit-details-marker { display: none; }
html body .ds .ds-acc summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -6px; border-right: 1.5px solid var(--ds-faint); border-bottom: 1.5px solid var(--ds-faint); transform: rotate(45deg); transition: transform var(--ds-dur) var(--ds-ease); }
html body .ds .ds-acc details[open] > summary::after { transform: rotate(225deg); margin-top: -2px; }
html body .ds .ds-acc summary:hover { background: var(--ds-surface-2); }
html body .ds .ds-acc .ds-acc-body { padding: 0 var(--ds-s5) var(--ds-s5); color: var(--ds-muted) !important; font-size: var(--ds-t-sm); line-height: 1.7; }
html body .ds .ds-acc .ds-acc-body > * + * { margin-top: 0.8em; }
html body .ds .ds-acc .ds-acc-body :where(p, li, span, div) { color: var(--ds-muted); }
html body .ds .ds-acc summary .ds-acc-meta { color: var(--ds-faint); font-size: var(--ds-t-xs); font-weight: 500; white-space: nowrap; }
html body .ds .ds-fold { margin-top: var(--ds-s5); }
html body .ds .ds-fold > summary { font-size: var(--ds-t-lg); }

/* ---------- pack grid (pricing / topup) ---------- */
html body .ds .ds-packs { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ds-s3); }
html body .ds .ds-pack { display: flex; flex-direction: column; gap: 4px; padding: var(--ds-s5) var(--ds-s5) var(--ds-s4); border: 1px solid var(--ds-line); border-radius: var(--ds-r-lg); background: var(--ds-surface); color: var(--ds-ink) !important; text-decoration: none !important; transition: border-color var(--ds-dur) var(--ds-ease), transform var(--ds-dur) var(--ds-ease), background-color var(--ds-dur); }
html body .ds a.ds-pack:hover, html body .ds button.ds-pack:hover { border-color: var(--ds-line-2); background: var(--ds-surface-2); }
html body .ds .ds-pack .ds-pack-amt { font-size: var(--ds-t-3xl); font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ds-ink) !important; }
html body .ds .ds-pack .ds-pack-sub { color: var(--ds-faint) !important; font-size: var(--ds-t-sm); }
html body .ds .ds-pack .ds-pack-cta { margin-top: var(--ds-s3); color: var(--ds-accent) !important; font-size: var(--ds-t-sm); font-weight: 600; }
@media (max-width: 760px) { html body .ds .ds-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- hero ---------- */
html body .ds .ds-hero { position: relative; padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(2.5rem, 2rem + 2vw, 3.5rem); overflow: clip; }
html body .ds .ds-hero::before { content: none; }
html body .ds .ds-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
html body .ds .ds-hero .ds-actions { margin-top: var(--ds-s5); }
html body .ds .ds-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--ds-s4); }
@media (max-width: 960px) { html body .ds .ds-hero-grid { grid-template-columns: 1fr; } }

/* page header (non-home) */
html body .ds .ds-pagehead { padding-block: clamp(2.25rem, 1.8rem + 2.4vw, 4rem) clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); border-bottom: 1px solid var(--ds-line); background: var(--ds-bg); }
html body .ds .ds-pagehead .ds-lede { margin-top: var(--ds-s3); }
html body .ds .ds-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--ds-s3); color: var(--ds-faint) !important; font-size: var(--ds-t-xs); }
html body .ds .ds-crumbs a { color: var(--ds-faint) !important; text-decoration: none; }
html body .ds .ds-crumbs a:hover { color: var(--ds-ink) !important; }

/* ---------- delivery preview (illustration of the job tracker) ---------- */
html body .ds .ds-preview { position: relative; border: 1px solid var(--ds-line-2); border-radius: 2px; background: var(--ds-surface); box-shadow: none; padding: 18px; min-height: 380px; }
html body .ds .ds-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--ds-line); }
html body .ds .ds-preview-file { display: flex; align-items: center; gap: 10px; min-width: 0; }
html body .ds .ds-preview-file b { color: var(--ds-ink); font: 600 14px/1.2 var(--ds-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .ds .ds-preview-file span { color: var(--ds-faint); font-size: 12px; }
html body .ds .ds-preview-quote { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 14px 0; padding: 12px 14px; border-radius: 2px; background: var(--ds-bg); border: 1px solid var(--ds-line); }
html body .ds .ds-preview-quote .k { color: var(--ds-faint); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
html body .ds .ds-preview-quote .v { color: var(--ds-ink); font-size: 14px; font-weight: 600; }
html body .ds .ds-preview-stage { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 4px; }
html body .ds .ds-preview-stage b { color: var(--ds-ink); font-size: 15px; font-weight: 600; }
html body .ds .ds-preview-stage span { color: var(--ds-muted); font: 500 13px/1 var(--ds-mono); font-variant-numeric: tabular-nums; }
html body .ds .ds-preview-track { position: relative; height: 8px; margin: 12px 0 16px; border-radius: 999px; background: #2a292f; overflow: hidden; }
html body .ds .ds-preview-fill { position: absolute; inset: 0 auto 0 0; width: var(--p, 40%); border-radius: inherit; background: linear-gradient(90deg, #e98f45, var(--ds-accent-2)); transition: width 900ms var(--ds-ease); }
html body .ds .ds-preview-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent); transform: translateX(-100%); animation: ds-shimmer 1.8s ease-in-out infinite; }
html body .ds .ds-preview-steps { list-style: none; display: grid; gap: 8px; }
html body .ds .ds-preview-steps li { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; color: var(--ds-faint); font-size: 13.5px; }
html body .ds .ds-preview-steps li i { width: 10px; height: 10px; margin-left: 4px; border-radius: 50%; border: 1.5px solid #5d5a62; }
html body .ds .ds-preview-steps li[data-s="done"] { color: var(--ds-muted); }
html body .ds .ds-preview-steps li[data-s="done"] i { border-color: var(--ds-ok); background: var(--ds-ok); }
html body .ds .ds-preview-steps li[data-s="now"] { color: var(--ds-ink); font-weight: 600; }
html body .ds .ds-preview-steps li[data-s="now"] i { border-color: var(--ds-accent); background: var(--ds-accent); box-shadow: 0 0 0 4px rgba(240,160,90,0.18); animation: ds-pulse 1.6s ease-in-out infinite; }
html body .ds .ds-preview-receipt { margin-top: 16px; padding: 12px 14px; border-radius: 2px; border: 1px dashed var(--ds-line-2); color: var(--ds-faint); font: 500 12px/1.6 var(--ds-mono); transition: border-color 400ms, color 400ms, background-color 400ms; }
html body .ds .ds-preview-receipt[data-ready="1"] { border-style: solid; border-color: rgba(123,216,161,0.35); background: var(--ds-ok-bg); color: var(--ds-ok); }
html body .ds .ds-preview-note { margin-top: 12px; color: var(--ds-faint) !important; font-size: 12px; text-align: center; }

/* ---------- forms / auth card ---------- */
html body .ds .ds-auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: var(--ds-s7) var(--ds-s4); background: var(--ds-bg); }
html body .ds .ds-auth-card { width: min(100%, 26rem); padding: var(--ds-s6); border: 1px solid var(--ds-line-2); border-radius: 2px; background: var(--ds-surface); box-shadow: none; }
html body .ds .ds-auth-card .ds-h3 { font-size: var(--ds-t-2xl); }
html body .ds .ds-divider { height: 1px; background: var(--ds-line); margin: var(--ds-s5) 0; border: 0; }

/* ---------- app shell (workspace / status / account / receipt) ---------- */
html body .ds-app-head { border-bottom: 1px solid var(--ds-line); }
html body .ds-app-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
html body .ds-app-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--ds-faint) !important; font-size: var(--ds-t-sm); font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
html body .ds-app-nav a:hover { color: var(--ds-ink) !important; }
html body .ds-app-nav a[aria-current="page"] { color: var(--ds-ink) !important; border-bottom-color: var(--ds-accent); }

/* ---------- docs layout ---------- */
html body .ds-docs { display: grid; grid-template-columns: 15rem minmax(0, 1fr) 13rem; gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: start; padding-block: var(--ds-s6) var(--ds-s8); }
html body .ds-docs-side, html body .ds-docs-toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; font-size: var(--ds-t-sm); scrollbar-width: thin; }
html body .ds-docs-side p, html body .ds-docs-toc p { margin: 0 0 8px; color: var(--ds-faint) !important; font-size: var(--ds-t-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
html body .ds-docs-side ul, html body .ds-docs-toc ul { list-style: none; margin: 0 0 var(--ds-s5); padding: 0; }
html body .ds-docs-side a, html body .ds-docs-toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ds-muted) !important; text-decoration: none; line-height: 1.35; transition: background-color var(--ds-dur), color var(--ds-dur); }
html body .ds-docs-side a:hover, html body .ds-docs-toc a:hover { color: var(--ds-ink) !important; background: var(--ds-surface-2); }
html body .ds-docs-side a[aria-current="page"] { color: var(--ds-ink) !important; background: var(--ds-surface-2); box-shadow: inset 2px 0 0 var(--ds-accent); }
html body .ds-docs-toc a { padding: 4px 10px; border-left: 1px solid var(--ds-line); border-radius: 0; font-size: 13px; }
html body .ds-docs-toc a.is-active { color: var(--ds-ink) !important; border-left-color: var(--ds-accent); background: transparent; }
html body .ds-docs-toc a[data-depth="3"] { padding-left: 22px; }
html body .ds-docs-main { min-width: 0; }
html body .ds-docs-main > * { max-width: 48rem; }
html body .ds-docs-mobile { display: none; }
@media (max-width: 1180px) { html body .ds-docs { grid-template-columns: 14rem minmax(0, 1fr); } html body .ds-docs-toc { display: none; } }
@media (max-width: 860px) { html body .ds-docs { grid-template-columns: 1fr; padding-top: var(--ds-s4); } html body .ds-docs-side { display: none; } html body .ds-docs-mobile { display: block; margin-bottom: var(--ds-s4); } }

/* ---------- article (guides) / paper (labs) / legal ---------- */
html body .ds .ds-answer { padding: var(--ds-s5); border: 1px solid var(--ds-line-2); border-radius: var(--ds-r-lg); background: var(--ds-surface); }
html body .ds .ds-answer .ds-card-k { color: var(--ds-accent) !important; }
html body .ds .ds-answer p { color: var(--ds-ink) !important; font-size: var(--ds-t-lg); line-height: 1.6; margin-top: 6px; }
html body .ds .ds-summary { padding: var(--ds-s5); border: 1px solid var(--ds-line-2); border-radius: var(--ds-r-lg); background: var(--ds-surface); }
html body .ds .ds-summary ul { list-style: none; display: grid; gap: 8px; margin-top: 10px; }
html body .ds .ds-summary li { position: relative; padding-left: 20px; color: var(--ds-muted) !important; font-size: var(--ds-t-sm); line-height: 1.55; }
html body .ds .ds-summary li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--ds-accent); }
html body .ds .ds-withtoc { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 2vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { html body .ds .ds-withtoc { grid-template-columns: 1fr; } html body .ds .ds-withtoc > .ds-docs-toc { display: none; } }
html body .ds .ds-withtoc > .ds-docs-toc { display: block; }

/* ---------- search ---------- */
html body .ds .ds-search { position: relative; }
html body .ds .ds-search input { width: 100%; min-height: 52px; padding: 0 16px 0 46px; border-radius: 2px; border: 1px solid var(--ds-line-2); background: var(--ds-surface); color: var(--ds-ink); font-size: var(--ds-t-md); outline: none; transition: border-color var(--ds-dur), box-shadow var(--ds-dur); }
html body .ds .ds-search input::placeholder { color: var(--ds-faint); }
html body .ds .ds-search input:focus { border-color: var(--ds-line-2); box-shadow: none; }
html body .ds .ds-search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--ds-faint); pointer-events: none; }
html body .ds .ds-empty { padding: var(--ds-s6) var(--ds-s5); border: 1px dashed var(--ds-line-2); border-radius: var(--ds-r-lg); color: var(--ds-faint) !important; text-align: center; font-size: var(--ds-t-sm); }

/* ---------- skeleton ---------- */
html body .ds-skel { display: block; border-radius: 8px; background: linear-gradient(90deg, #1a191e 0%, #26252b 45%, #1a191e 90%); background-size: 200% 100%; animation: ds-skel 1.4s ease-in-out infinite; }

/* ---------- reveal motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html body .ds .ds-rise { animation: ds-rise 520ms var(--ds-ease) both; }
  html body .ds .ds-rise-2 { animation: ds-rise 520ms 80ms var(--ds-ease) both; }
  html body .ds .ds-rise-3 { animation: ds-rise 520ms 160ms var(--ds-ease) both; }
}
@keyframes ds-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ds-shimmer { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes ds-pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(240,160,90,0.22); } 50% { box-shadow: 0 0 0 6px rgba(240,160,90,0.06); } }
@keyframes ds-skel { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) {
  html body .ds *, html body .ds *::before, html body .ds *::after, html body .ds-skel { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- utilities ---------- */
html body .ds .ds-mt-2 { margin-top: var(--ds-s2); } html body .ds .ds-mt-3 { margin-top: var(--ds-s3); } html body .ds .ds-mt-4 { margin-top: var(--ds-s4); }
html body .ds .ds-mt-5 { margin-top: var(--ds-s5); } html body .ds .ds-mt-6 { margin-top: var(--ds-s6); } html body .ds .ds-mt-7 { margin-top: var(--ds-s7); }
html body .ds .ds-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--ds-s6); align-items: start; }
@media (max-width: 860px) { html body .ds .ds-split { grid-template-columns: 1fr; gap: var(--ds-s5); } }
html body .ds .ds-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-s3); }
html body .ds .ds-between { justify-content: space-between; }
html body .ds .ds-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html body .ds [hidden] { display: none !important; }

/* ---------- mobile rhythm ---------- */
@media (max-width: 640px) {
  html body .ds .ds-section { padding-block: var(--ds-s7); }
  html body .ds .ds-section--tight { padding-block: var(--ds-s6); }
  html body .ds .ds-card { padding: var(--ds-s4); border-radius: var(--ds-r); }
  html body .ds .ds-lede { font-size: var(--ds-t-md); }
  html body .ds .ds-acc summary { padding: 14px 46px 14px var(--ds-s4); font-size: 15px; }
  html body .ds .ds-acc .ds-acc-body { padding: 0 var(--ds-s4) var(--ds-s4); }
  html body .ds .ds-preview { min-height: 0; padding: 14px; border-radius: 2px; }
  html body .ds .ds-section-head { margin-bottom: var(--ds-s4); }
}

/* ======================= site chrome: header, footer, CTA band ======================= */
html body header.ds-hdr { position: sticky; top: 0; z-index: 40; max-width: none; border-bottom: 1px solid var(--ds-line); background: var(--ds-bg) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
html body header.ds-hdr .ds-hdr-in { display: flex; align-items: center; gap: 20px; height: 64px; width: min(100% - 2rem, var(--ds-max)); margin-inline: auto; position: relative; }
html body .ds .ds-hdr-logo, html body .ds-hdr-logo { display: inline-flex !important; align-items: center; gap: 10px; flex: none; text-decoration: none; }
html body .ds-hdr-logo img:first-child { width: 28px; height: 28px; border-radius: 50%; }
html body header.ds-hdr .ds-hdr-nav { display: flex; align-items: center; gap: 2px; }
html body header.ds-hdr .ds-hdr-menus { display: flex; align-items: center; gap: 2px; }
html body header.ds-hdr .ds-hdr-group { position: relative; }
html body header.ds-hdr .ds-hdr-group > summary, html body header.ds-hdr .ds-hdr-plain { display: inline-flex !important; align-items: center; gap: 6px; min-height: 36px !important; min-width: 0 !important; padding: 0 12px; border-radius: 999px; color: var(--ds-muted) !important; font-size: var(--ds-t-sm); font-weight: 500; text-decoration: none !important; cursor: pointer; list-style: none; transition: color var(--ds-dur), background-color var(--ds-dur); }
html body header.ds-hdr .ds-hdr-group > summary::-webkit-details-marker { display: none; }
html body header.ds-hdr .ds-hdr-group > summary::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.7; transition: transform var(--ds-dur) var(--ds-ease); }
html body header.ds-hdr .ds-hdr-group[open] > summary::after { transform: rotate(225deg); margin-top: 3px; }
html body header.ds-hdr .ds-hdr-group > summary:hover, html body header.ds-hdr .ds-hdr-plain:hover, html body header.ds-hdr .ds-hdr-group[open] > summary { color: var(--ds-ink) !important; background: rgba(255, 255, 255, 0.06); }
html body header.ds-hdr .ds-hdr-pop { position: absolute; top: calc(100% + 10px); left: -8px; min-width: 20rem; padding: 8px; border: 1px solid var(--ds-line-2); border-radius: 2px; background: rgba(19, 18, 22, 0.98); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.7); }
@media (prefers-reduced-motion: no-preference) { html body header.ds-hdr .ds-hdr-group[open] .ds-hdr-pop { animation: ds-pop 160ms var(--ds-ease) both; } }
@keyframes ds-pop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }
html body header.ds-hdr .ds-hdr-pop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
html body header.ds-hdr .ds-hdr-pop a { display: grid !important; gap: 2px; padding: 9px 12px; border-radius: 2px; text-decoration: none !important; min-height: 0 !important; }
html body header.ds-hdr .ds-hdr-pop a:hover, html body header.ds-hdr .ds-hdr-pop a:focus-visible { background: var(--ds-surface-3); }
html body header.ds-hdr .ds-hdr-pop b { color: var(--ds-ink) !important; font-size: var(--ds-t-sm); font-weight: 600; }
html body header.ds-hdr .ds-hdr-pop span { color: var(--ds-faint) !important; font-size: 12.5px; }
html body header.ds-hdr .ds-hdr-end { display: flex; align-items: center; gap: 4px; margin-left: auto; }
html body header.ds-hdr .ds-hdr-cta { margin-left: 8px; min-height: 38px !important; padding: 0 16px; font-size: var(--ds-t-sm); }
html body header.ds-hdr details.menu { display: none; }
html body header.ds-hdr details.menu > summary { border-color: var(--ds-line-2) !important; }
html body header.ds-hdr .ds-mnav { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; max-height: calc(100vh - 64px); overflow: auto; padding: 16px 1rem 28px; border-bottom: 1px solid var(--ds-line); background: var(--ds-bg); display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
html body header.ds-hdr .ds-mnav > a { grid-column: 1 / -1; }
html body header.ds-hdr .ds-mnav p { margin: 0 0 4px; color: var(--ds-faint) !important; font-size: var(--ds-t-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
html body header.ds-hdr .ds-mnav ul { list-style: none; margin: 0; padding: 0; }
html body header.ds-hdr .ds-mnav li a { display: flex !important; align-items: center; min-height: 40px !important; color: var(--ds-ink) !important; font-size: 15px; text-decoration: none !important; }
@media (max-width: 1023px) {
  html body header.ds-hdr .ds-hdr-nav, html body header.ds-hdr .ds-hdr-end .ds-hdr-plain { display: none !important; }
  html body header.ds-hdr details.menu { display: block; margin-left: 8px; }
  html body header.ds-hdr .ds-hdr-end { margin-left: auto; }
  html body header.ds-hdr .ds-hdr-in { gap: 8px; }
}
@media (max-width: 380px) { html body header.ds-hdr .ds-hdr-cta { padding: 0 12px; } }

html body .ds-cta { border-top: 1px solid var(--ds-line); background: var(--ds-bg); }
html body .ds-cta .ds-cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-block: clamp(2.25rem, 1.8rem + 2vw, 3.5rem); }
html body .ds-cta .ds-cta-in > div { max-width: 40rem; }

html body footer.ds-ftr { border-top: 1px solid var(--ds-line); background: var(--ds-bg); color: var(--ds-muted); }
html body footer.ds-ftr .ds-ftr-grid { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 32px 24px; padding-block: 48px 36px; }
html body footer.ds-ftr.ds-ftr--cut .ds-ftr-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding: 22px 0 16px; }
html body footer.ds-ftr.ds-ftr--cut .ds-ftr-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; }
html body footer.ds-ftr.ds-ftr--cut .ds-ftr-brand .ds-hdr-logo { margin-right: 6px; }
html body footer.ds-ftr.ds-ftr--cut .ds-ftr-brand .fx-tagline { margin: 0; color: var(--ds-muted) !important; }
html body footer.ds-ftr.ds-ftr--cut .ds-ftr-brand .ds-small { margin: 0; }
html body footer.ds-ftr.ds-ftr--cut .ds-ftr-account ul { display: flex; flex-wrap: wrap; gap: 0 4px; }
html body footer.ds-ftr.ds-ftr--cut .ds-ftr-links { display: flex; flex-wrap: wrap; gap: 14px 28px; padding: 0 0 16px; border-top: 1px solid var(--ds-line); padding-top: 14px; }
html body footer.ds-ftr.ds-ftr--cut .ds-ftr-links nav { min-width: 0; flex: 1 1 140px; }
html body footer.ds-ftr.ds-ftr--cut .ds-ftr-links ul { display: flex; flex-wrap: wrap; gap: 0 2px; }
html body footer.ds-ftr .ds-ftr-h { margin: 0 0 4px; color: var(--ds-faint) !important; font-size: var(--ds-t-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
html body footer.ds-ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
html body footer.ds-ftr nav a, html body footer.ds-ftr .ds-ftr-bar a, html body footer.ds-ftr a.ds-link { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 8px; color: var(--ds-muted) !important; font-size: var(--ds-t-sm); text-decoration: none !important; transition: color var(--ds-dur); }
html body footer.ds-ftr nav a:hover, html body footer.ds-ftr .ds-ftr-bar a:hover { color: var(--ds-ink) !important; }
html body footer.ds-ftr nav[hidden] { display: block !important; }
html body footer.ds-ftr .ds-ftr-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 8px 22px; border-top: 1px solid var(--ds-line); color: var(--ds-faint); font-size: var(--ds-t-sm); }
html body footer.ds-ftr .ds-ftr-bar a { color: var(--ds-faint) !important; text-decoration: none !important; }
@media (max-width: 900px) { html body footer.ds-ftr .ds-ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } html body footer.ds-ftr .ds-ftr-brand { grid-column: 1 / -1; } }
html:root:root:root body footer.ds-ftr.ds-ftr--cut nav a,
html:root:root:root body footer.ds-ftr.ds-ftr--cut .ds-ftr-bar a,
html:root:root:root body footer.ds-ftr.ds-ftr--cut a.ds-link {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 44px !important;
  min-width: 44px !important;
  padding: 0 10px !important;
  box-sizing: border-box;
}
@media (max-width: 640px) {
  html body footer.ds-ftr .ds-ftr-grid { padding-block: 24px 16px; gap: 16px; }
  html body footer.ds-ftr.ds-ftr--cut .ds-ftr-top { padding: 16px 0 10px; }
  html body footer.ds-ftr.ds-ftr--cut .ds-ftr-links { gap: 4px 8px; padding: 8px 0 10px; }
  html body footer.ds-ftr.ds-ftr--cut .ds-ftr-links nav { flex: 1 1 calc(50% - 8px); min-width: 0; }
  html body footer.ds-ftr.ds-ftr--cut .ds-ftr-links ul { display: flex; flex-wrap: wrap; gap: 0; }
  html body footer.ds-ftr.ds-ftr--cut .ds-ftr-bar { padding-block: 4px 16px; }
}

/* ======================= page pieces ======================= */
html body .ds .r10-cta-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: var(--ds-s5); }
html body .ds #home-primary, html body .ds .ds-primary-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 2px; background: var(--ds-ink) !important; color: #141216 !important; font-size: var(--ds-t-md); font-weight: 650; text-decoration: none !important; box-shadow: none; border: 0; transition: background-color var(--ds-dur) var(--ds-ease); }
html body .ds #home-primary:hover { background: #fff !important; }
html body .ds #home-primary:active { }
html body .ds #home-returns { display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border-radius: 2px; border: 1px solid var(--ds-line-2); background: var(--ds-surface-2); color: var(--ds-ink) !important; font-size: var(--ds-t-md); font-weight: 600; text-decoration: none !important; transition: background-color var(--ds-dur), border-color var(--ds-dur); }
html body .ds #home-returns:hover { background: var(--ds-surface-3); border-color: rgba(255,255,255,0.28); }
html body .ds .r10-cta-wrap + p { margin-top: 10px; color: var(--ds-faint) !important; font-size: var(--ds-t-sm); }
html body .ds .r10-cta-wrap + p a { color: var(--ds-ink); }
html body .ds .ds-proofband { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ds-s5); padding: var(--ds-s6); }
html body .ds .ds-proofband > div { max-width: 42rem; }
html body .ds .ds-packs--mini { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
html body .ds .ds-packs--mini .ds-pack { padding: 12px 10px; gap: 0; border-radius: 2px; text-align: center; }
html body .ds .ds-packs--mini .ds-pack-amt { font-size: var(--ds-t-xl); }
html body .ds .ds-packs--mini .ds-pack-sub { font-size: 11px; }
html body .ds .ds-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--ds-r); border: 1px solid var(--ds-line); background: var(--ds-surface-2); }
html body .ds dl.r14-stats[hidden] { display: none !important; }
html body .ds dl.r14-stats:not([hidden]) { display: flex; gap: 24px; margin: 0 0 var(--ds-s5); padding: 12px 16px; border: 1px solid var(--ds-line); border-radius: var(--ds-r); background: var(--ds-surface); }
html body .ds dl.r14-stats dt { color: var(--ds-faint) !important; font-size: var(--ds-t-xs); text-transform: uppercase; letter-spacing: 0.1em; }
html body .ds dl.r14-stats dd { margin: 0; color: var(--ds-ink) !important; font-weight: 600; }
/* ordering status block inside ds pages */
html body .ds .r14-status { padding: var(--ds-s4) var(--ds-s5); border: 1px solid var(--ds-line); border-radius: var(--ds-r-lg); background: var(--ds-surface); }
html body .ds .r14-status .r14-mono { display: flex; align-items: center; gap: 8px; color: var(--ds-faint) !important; font: 500 13px/1.4 var(--ds-mono); }
html body .ds .r14-status .r14-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ds-ok); box-shadow: 0 0 0 4px var(--ds-ok-bg); }
html body .ds .r14-status .r14-state { color: var(--ds-ink) !important; }
html body .ds .r14-status .r14-state[data-r14-state="closed"], html body .ds .r14-status .r14-state[data-r14-state="unknown"] { color: var(--ds-warn) !important; }
html body .ds .r14-status .r14-status-line { margin-top: 6px; color: var(--ds-muted) !important; font-size: var(--ds-t-sm); }
html body .ds .r14-status .r14-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }
html body .ds .r14-status .r14-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 2px; background: var(--ds-ink); color: #141216 !important; font-size: var(--ds-t-sm); font-weight: 650; text-decoration: none !important; }
html body .ds .r14-status .r14-btn[hidden] { display: none !important; }
html body .ds .r14-status .r14-link { color: var(--ds-ink) !important; font-size: var(--ds-t-sm); font-weight: 500; text-decoration: none; }
html body .ds .r14-status .r14-link:hover { text-decoration: underline; }

/* neutralise legacy per-section widths on ds pages (run7-polish targets home section ids) */
html body main.ds > section, html body main.ds > div.ds-page > section { width: auto !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; border-radius: 0 !important; }
html body main.ds > section:not(.ds-section + .ds-section) { border-top: 0; }
html:root:root:root:root body header.ds-hdr.ds-hdr .ds-hdr-end a.ds-hdr-plain.ds-hdr-plain { background: transparent !important; border: 0 !important; box-shadow: none !important; color: var(--ds-muted) !important; }
html:root:root:root:root body header.ds-hdr.ds-hdr .ds-hdr-end a.ds-hdr-plain.ds-hdr-plain:hover { color: var(--ds-ink) !important; background: rgba(255,255,255,0.06) !important; }
/* home rhythm */
html body main.ds[data-ds-page="home"] .ds-section { padding-block: 52px; }
html body main.ds[data-ds-page="home"] .ds-hero { padding-block: 44px 40px; }
html body main.ds[data-ds-page="home"] .ds-hero .ds-h1 { font-size: var(--ds-t-5xl); }
html body main.ds[data-ds-page="home"] #home-quote-entry .r10-cta-wrap + p { min-block-size: 0; }
@media (max-width: 640px) {
  html body main.ds[data-ds-page="home"] .ds-section { padding-block: 36px; }
  html body main.ds[data-ds-page="home"] .ds-hero { padding-block: 24px 28px; }
  html body main.ds[data-ds-page="home"] .ds-promises li { font-size: 15px; }
  html body main.ds[data-ds-page="home"] .ds-preview-steps { grid-template-columns: 1fr 1fr; }
  html body main.ds[data-ds-page="home"] .ds-preview-note { display: none; }
}
/* footer density */
html body footer.ds-ftr nav a { min-height: 26px; }
html body footer.ds-ftr .ds-ftr-grid { padding-block: 40px 28px; }
@media (max-width: 640px) { html body footer.ds-ftr .ds-ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } html body footer.ds-ftr nav a { min-height: 32px; font-size: 14px; } }

/* ---------- P1: how-it-works visual steps ---------- */
html body .ds .ds-steps--visual > li { display: flex; flex-direction: column; }
html body .ds .ds-steps--visual > li > .ds-icon { position: absolute; top: var(--ds-s5); right: var(--ds-s5); }
html body .ds .ds-steps--visual > li > h3.ds-mt-3 { margin-top: 0 !important; }
html body .ds .ds-steps--visual .ds-step-art { margin-top: auto; }
html body .ds .ds-steps--visual > li > p { margin-bottom: var(--ds-s4); }
html body .ds .ds-step-art > div { display: flex; gap: 8px; }
html body .ds .ds-step-art > div > b { min-width: 5.5em; color: var(--ds-accent) !important; }

/* ---------- P1: pricing planner (BenchmarkPlanner keeps its own markup) ---------- */
html body .ds .ds-planner > * { margin-top: 0 !important; }
html body .ds .ds-planner section, html body .ds .ds-planner > div { border-radius: var(--ds-r-lg) !important; }
html body .ds .ds-planner input, html body .ds .ds-planner select { background: var(--ds-bg) !important; border: 1px solid var(--ds-line-2) !important; border-radius: 2px !important; color: var(--ds-ink) !important; min-height: 44px; }
html body .ds .ds-planner input:focus-visible, html body .ds .ds-planner select:focus-visible { outline: 2px solid var(--ds-accent) !important; outline-offset: 2px; }

/* ---------- P1: auth card ---------- */
html body .ds .ds-auth-mark { border-radius: 2px; display: block; }
html body .ds .ds-auth-google { position: relative; }
html body .ds .ds-auth-google > svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); z-index: 1; pointer-events: none; }
html body .ds .ds-auth-google > a { padding-left: 44px !important; }
html body .ds .ds-auth-alt { color: var(--ds-muted) !important; }
html body .ds .ds-auth .ds-divider { margin: var(--ds-s5) 0 var(--ds-s4); }
@media (max-width: 560px) { html body .ds .ds-auth { min-height: 0; padding: var(--ds-s6) var(--ds-s3) var(--ds-s7); place-items: start center; } html body .ds .ds-auth-card { padding: var(--ds-s5); } }

/* ---------- P1: shared app shell ---------- */
html body .ds.ds-app-head { background: rgba(11,11,13,.86); position: relative; z-index: 30; }
html body .ds .ds-app-head-in { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-s4); }
html body .ds-app-nav a { border-bottom: 2px solid transparent; }
html body .ds .ds-app-new { flex: none; }
@media (max-width: 640px) { html body .ds .ds-app-head-in { gap: 8px; } html body .ds .ds-app-new { display: inline-flex; flex: none; white-space: nowrap; } html body .ds-app-nav { margin: 0; padding: 0; min-width: 0; flex: 1 1 auto; overflow-x: auto; -webkit-overflow-scrolling: touch; } html body .ds-app-nav a { padding: 0 10px; flex: none; white-space: nowrap; } }
/* App page rhythm: one container width, one title scale, one card look. */
html body :is(.fp-customer, main.topup, main.ds-receipt-main) :is(.render-flow-head, .fy-shell > header, header.max-w-3xl) h1 { font-family: var(--ds-font, inherit) !important; font-size: clamp(30px, 3.2vw, 44px) !important; line-height: 1.08 !important; letter-spacing: -0.025em !important; font-weight: 600 !important; }
html body :is(.fp-customer, main.topup, main.ds-receipt-main) .render-job-card,
html body :is(.fp-customer, main.topup, main.ds-receipt-main) .acct-card,
html body main.ds-receipt-main section.rounded-3xl { border: 1px solid var(--ds-line-2) !important; border-radius: var(--ds-r-lg) !important; background: var(--ds-surface) !important; box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 48px -32px rgba(0,0,0,.7) !important; }
html body main.ds-receipt-main > div { padding-top: var(--ds-s7) !important; padding-bottom: var(--ds-s7) !important; }
html body main.ds-receipt-main code, html body main.ds-receipt-main .font-mono { font-family: var(--ds-mono) !important; word-break: break-all; }

/* ---------- P1: topup ---------- */
html body main.topup .topup-amounts { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px !important; }
html body main.topup .topup-amount { display: flex !important; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 12px 14px !important; border: 1px solid var(--ds-line-2) !important; border-radius: 2px !important; background: var(--ds-bg) !important; color: var(--ds-ink) !important; text-decoration: none !important; transition: border-color var(--ds-dur) var(--ds-ease), transform var(--ds-dur) var(--ds-ease); }
html body main.topup .topup-amount b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--ds-ink) !important; }
html body main.topup .topup-amount small { font-size: 12px; color: var(--ds-faint) !important; }
html body main.topup .topup-amount:hover { border-color: var(--ds-line-2) !important; }
html body main.topup .topup-amount.is-on { border-color: var(--ds-accent) !important; background: var(--ds-surface-2) !important; }
html body main.topup .topup-amount.is-on small { color: var(--ds-accent) !important; }
html body .ds-receipt-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 12px 0 4px !important; padding: 10px 12px; border: 1px dashed var(--ds-line-2); border-radius: 2px; font: 500 12px/1.5 var(--ds-mono) !important; color: var(--ds-muted) !important; }
html body .ds-receipt-line > span + span::before { content: "·"; margin: 0 8px; color: var(--ds-faint); }
html body .ds-receipt-line > span:first-child { color: var(--ds-ink) !important; }
@media (max-width: 480px) { html body main.topup .topup-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
html body .ds.ds-topup-more { padding: var(--ds-s7) 0; border-top: 1px solid var(--ds-line); background: transparent; }
html body .ds .ds-mini-steps { list-style: none; margin: var(--ds-s4) 0 0; padding: 0; display: grid; gap: 10px; counter-reset: dsmini; }
html body .ds .ds-mini-steps li { counter-increment: dsmini; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; row-gap: 2px; }
html body .ds .ds-mini-steps li::before { content: counter(dsmini); grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; border: 1px solid var(--ds-line-2); font: 600 12px/1 var(--ds-mono); color: var(--ds-accent); }
html body .ds .ds-mini-steps b { color: var(--ds-ink) !important; font-weight: 600; font-size: var(--ds-t-sm); }
html body .ds .ds-mini-steps span { color: var(--ds-muted) !important; font-size: var(--ds-t-sm); line-height: 1.55; }

/* ---------- density pass 2 ---------- */
html:root:root:root:root body footer.ds-ftr nav a { min-height: 28px !important; padding-block: 0 !important; }
html:root:root:root:root body footer.ds-ftr a[href^="mailto:"] { min-height: 28px !important; }
@media (max-width: 640px) { html:root:root:root:root body footer.ds-ftr nav a { min-height: 32px !important; } }
html body footer.ds-ftr .ds-ftr-grid { padding-block: 36px 24px; }
html body footer.ds-ftr .ds-ftr-bar { padding-block: 14px 20px; }
html body .ds-cta .ds-cta-in { padding-block: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
html body main.ds #home-proof { width: auto !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
html body main.ds[data-ds-page="home"] .ds-h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); }
html body main.ds[data-ds-page="home"] .ds-section-head { margin-bottom: var(--ds-s4); }
html body main.ds[data-ds-page="home"] .ds-section-head > div { max-width: 52rem; }
html body .ds .ds-packs > li { display: flex; min-width: 0; }
html body .ds .ds-packs > li > .ds-pack, html body .ds .ds-packs > .ds-pack { display: flex !important; flex: 1 1 auto; width: 100%; }
html body .ds .ds-h2 { font-size: clamp(1.875rem, 1.25rem + 1.9vw, 2.75rem); }
html body .ds-section-head > div { max-width: 52rem; }
html body .ds .ds-steps--visual > li::before { align-self: flex-start; }
html body .ds .ds-step-art > div { flex-direction: column; gap: 0; }
html body .ds .ds-step-art > div + div { margin-top: 6px; }
html body .ds .ds-step-art > div > b { min-width: 0; }

/* ---------- ds blocks inside legacy app wrappers (their theme forces ink with !important) ---------- */
html:root:root:root:root body :is(.ws,.acct,.topup,.fy-shell) .ds :is(h1,h2,h3,h4,h5,strong,b,summary,label,dt) { color: var(--ds-ink) !important; }
html:root:root:root:root body :is(.ws,.acct,.topup,.fy-shell) .ds :is(p,span,small,li,dd) { color: var(--ds-muted) !important; }
html:root:root:root:root body :is(.ws,.acct,.topup,.fy-shell) .ds .ds-eyebrow { color: var(--ds-accent) !important; }
html:root:root:root:root body :is(.ws,.acct,.topup,.fy-shell) .ds a.ds-link { color: var(--ds-accent) !important; }
html:root:root:root:root body :is(.ws,.acct,.topup,.fy-shell) .ds a.ds-btn { color: var(--b-ink) !important; }
html:root:root:root:root body :is(.ws,.acct,.topup,.fy-shell) .ds .ds-mini-steps li::before { color: var(--ds-accent) !important; }
/* topup: the legacy CLS reservation waits for site-v2 pack tiles that now live inside the fold */
html:root:root:root:root .topup-page-head::after { display: none !important; content: none !important; }

/* ---------- auth pages: neutralise the run7 signin/signup wrapper ---------- */
html:root:root:root body:is([data-r7-page="signup"],[data-r7-page="signin"]) #main-content.ds { padding: 0 !important; margin: 0 !important; max-width: none !important; }
html:root:root:root body:is([data-r7-page="signup"],[data-r7-page="signin"]) #main-content.ds > .ds-auth { max-width: none !important; width: auto !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
html body .ds .ds-auth-card { width: min(100%, 28rem); }
html body .ds .ds-auth-card .ds-h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); line-height: 1.15; }
html body .ds .ds-auth { min-height: min(calc(100vh - 64px), 760px); }
html:root:root:root body:is([data-r7-page="signup"],[data-r7-page="signin"]) #main-content.ds > .ds-auth { padding: var(--ds-s7) var(--ds-s4) !important; background: var(--ds-bg), var(--ds-bg) !important; }
@media (max-width: 560px) { html:root:root:root body:is([data-r7-page="signup"],[data-r7-page="signin"]) #main-content.ds > .ds-auth { padding: var(--ds-s6) var(--ds-s3) var(--ds-s7) !important; } }
html body footer.ds-ftr .ds-ftr-account { margin-top: var(--ds-s4); }
html body footer.ds-ftr .ds-ftr-account ul { display: flex; flex-wrap: wrap; gap: 0 14px; }
/* run7 targets the home ids with an id selector; match it. */
html body main.ds[data-ds-page="home"] #home-quote-entry.ds-hero { padding-block: 44px 36px !important; gap: 0 !important; }
html body main.ds[data-ds-page="home"] :is(#home-render-path, #home-price, #home-more).ds-section { padding-block: 48px !important; }
html body main.ds[data-ds-page="home"] #home-render-path ol { gap: var(--ds-s4) !important; }
html body main.ds[data-ds-page="home"] #home-proof { border-radius: var(--ds-r-lg) !important; border-color: var(--ds-line-2) !important; }
html body .ds .ds-proofband--compact { display: flex; flex-direction: column; align-items: flex-start; gap: var(--ds-s3); padding: var(--ds-s5) !important; }
html body .ds .ds-proofband--compact .ds-body { font-size: var(--ds-t-sm); }
@media (max-width: 640px) {
  html body main.ds[data-ds-page="home"] #home-quote-entry.ds-hero { padding-block: 24px 28px !important; }
  html body main.ds[data-ds-page="home"] :is(#home-render-path, #home-price, #home-more).ds-section { padding-block: 36px !important; }
}
html body .ds .ds-proofband--compact .ds-eyebrow { margin-bottom: 6px; }
html body .ds .ds-proofband--compact { justify-content: space-between; }
html body .ds-cta .ds-cta-in > div { max-width: 52rem; }
@media (min-width: 1100px) { html body .ds .ds-grid--4 .ds-packs--mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { html body .ds .ds-grid--4.ds-grid--stack { grid-template-columns: 1fr; } }

/* ---------- type guard: run7-polish styles page headings through #main-content (id specificity).
   Re-assert the ds scale at id level; pages tune it with the --ds-hN variables. ---------- */
html body :is(#main-content.ds, #main-content .ds) .ds-h1 { font-size: var(--ds-h1, var(--ds-t-5xl)); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 0; max-width: none; }
html body :is(#main-content.ds, #main-content .ds) .ds-h2 { font-size: var(--ds-h2, clamp(1.875rem, 1.25rem + 1.9vw, 2.75rem)); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 0; max-width: none; }
html body :is(#main-content.ds, #main-content .ds) .ds-h3 { font-size: var(--ds-h3, var(--ds-t-3xl)); line-height: 1.15; margin-bottom: 0; max-width: none; }
html body :is(#main-content.ds, #main-content .ds) .ds-h4 { font-size: var(--ds-t-xl); line-height: 1.25; margin-bottom: 0; }
html body :is(#main-content.ds, #main-content .ds) .ds-h5 { font-size: var(--ds-t-lg); line-height: 1.3; margin-bottom: 0; }
html body :is(#main-content.ds, #main-content .ds) .ds-lede { font-size: var(--ds-t-lg); line-height: 1.6; max-width: 38rem; margin-top: var(--ds-s4); }
html body :is(#main-content.ds, #main-content .ds) .ds-body { font-size: var(--ds-t-md); line-height: 1.65; }
html body :is(#main-content.ds, #main-content .ds) .ds-small { font-size: var(--ds-t-sm); line-height: 1.55; }
html body #main-content.ds[data-ds-page="home"] { --ds-h1: clamp(2.375rem, 1.4rem + 3.2vw, 3.75rem); --ds-h2: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); }
html body #main-content.ds[data-ds-page="auth"] { --ds-h3: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); }
html body #main-content.ds .ds-steps h3 { font-size: var(--ds-t-lg) !important; }
html:root:root:root:root body main.topup .ds-receipt-line span { color: var(--ds-muted) !important; }
html:root:root:root:root body main.topup .ds-receipt-line span:first-child { color: var(--ds-ink) !important; }
html body #main-content.ds :is(.ds-h1,.ds-h2,.ds-h3,.ds-h4,.ds-h5):not([class*="ds-mt-"]) { margin-top: 0; }

/* ---------- P2: evidence template ---------- */
html body .ds.ds-evidence-kit { margin-top: var(--ds-s6); }
html body .ds .ds-stat-note { margin-top: 2px; color: var(--ds-faint) !important; font-size: var(--ds-t-xs); line-height: 1.4; }
html body .ds .ds-sample .ds-mono-t { font-family: var(--ds-mono); font-size: 15px !important; word-break: break-all; letter-spacing: 0; }
html body .ds .ds-sample p { color: var(--ds-muted) !important; font-size: var(--ds-t-sm); line-height: 1.6; margin-top: 8px; }
html body .ds .ds-hash { display: grid; gap: 10px; margin-top: 12px; }
html body .ds .ds-hash-drop { display: grid; gap: 4px; place-items: center; text-align: center; padding: 18px 14px; border: 1px dashed var(--ds-line-2); border-radius: 2px; background: var(--ds-bg); cursor: pointer; transition: border-color var(--ds-dur) var(--ds-ease), background var(--ds-dur) var(--ds-ease); }
html body .ds .ds-hash-drop:hover, html body .ds .ds-hash-drop.is-over { border-color: var(--ds-accent); background: rgba(240,160,90,.06); }
html body .ds .ds-hash-drop:focus-within { outline: 2px solid var(--ds-accent); outline-offset: 2px; }
html body .ds .ds-hash-drop-t { color: var(--ds-ink) !important; font-weight: 600; font-size: var(--ds-t-sm); }
html body .ds .ds-hash-drop-s { color: var(--ds-faint) !important; font-size: var(--ds-t-xs); }
html body .ds .ds-hash-label { color: var(--ds-faint) !important; font-size: var(--ds-t-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
html body .ds .ds-hash-input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--ds-line-2) !important; border-radius: 2px; background: var(--ds-bg) !important; color: var(--ds-ink) !important; font: 500 13px/1 var(--ds-mono); }
html body .ds .ds-hash-input:focus-visible { outline: 2px solid var(--ds-accent); outline-offset: 2px; }
html body .ds .ds-hash-out { min-height: 44px; }
html body .ds .ds-hash-empty, html body .ds .ds-hash-file { color: var(--ds-faint) !important; font-size: var(--ds-t-xs); }
html body .ds .ds-hash-hex { display: block; margin-top: 4px; padding: 10px 12px; border-radius: 2px; background: var(--ds-surface-2); color: var(--ds-ink) !important; font: 500 12px/1.5 var(--ds-mono); word-break: break-all; }
html body .ds .ds-hash-v { margin-top: 8px; font-size: var(--ds-t-sm); font-weight: 600; color: var(--ds-muted) !important; }
html body .ds .ds-hash-v.is-ok { color: var(--ds-ok) !important; }
html body .ds .ds-hash-v.is-bad, html body .ds .ds-hash-err { color: #ff9b8a !important; font-size: var(--ds-t-sm); }
html body main.ds-evidence > div > header h1 { letter-spacing: -0.035em; }
html body main.ds-evidence article.rounded-2xl, html body main.ds-evidence a.rounded-2xl { border-radius: var(--ds-r-lg) !important; }

/* ---------- P2: status board (markup kept: scf2 rewrites the badges in place) ---------- */
html body main.ds-status-page .ds-status-board { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 12px; border: 0 !important; }
html body main.ds-status-page .ds-status-board > .ds-status-row { display: grid !important; grid-template-columns: 1fr auto !important; grid-template-rows: auto 1fr; gap: 8px 12px !important; align-items: start; padding: 18px 18px 16px !important; border: 1px solid var(--ds-line) !important; border-radius: var(--ds-r-lg); background: var(--ds-surface); }
html body main.ds-status-page .ds-status-row > h2 { grid-column: 1; font-size: var(--ds-t-md) !important; font-weight: 600; color: var(--ds-ink) !important; }
html body main.ds-status-page .ds-status-row > p:nth-of-type(1) { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--ds-line-2); border-radius: 999px; font-size: 12px !important; line-height: 1.4; white-space: nowrap; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; }
html body main.ds-status-page .ds-status-row > p:nth-of-type(1)::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; flex: none; }
html body main.ds-status-page .ds-status-row > p:nth-of-type(2) { grid-column: 1 / -1; }
html body main.ds-status-page .ds-status-notes { max-width: none !important; padding: 18px; border: 1px solid var(--ds-line); border-radius: var(--ds-r-lg); background: var(--ds-surface); }
html body main.ds-status-page .ds-status-notes code { font-family: var(--ds-mono); background: var(--ds-surface-2); padding: 1px 6px; border-radius: 6px; }
/* ---------- P2: showcase ---------- */
html body .ds-showcase-shell { max-width: none !important; padding: 0 !important; margin: 0 !important; background: transparent !important; border: 0 !important; }
html body .ds.ds-showcase { padding-block: var(--ds-s7); }
html body .ds .ds-showcase-grid { align-items: start; }
html body .ds .ds-showcase-form input, html body .ds .ds-showcase-form select, html body .ds .ds-showcase-form textarea { background: var(--ds-bg) !important; border: 1px solid var(--ds-line-2) !important; border-radius: 2px !important; color: var(--ds-ink) !important; }
html body .ds .ds-showcase .showcase-legal-note { margin-top: var(--ds-s4); color: var(--ds-faint) !important; font-size: var(--ds-t-sm); }

/* ---------- P3: docs ---------- */
html body main.ds-docs-page { background: var(--ds-bg); }
html body main.ds-docs-page .ds-docs-side nav > div > p { margin-top: 2px; }
html body main.ds-docs-page .ds-docs-main { color: var(--ds-muted); }
html body main.ds-docs-page .ds-docs-main :is(h1) { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem) !important; letter-spacing: -0.03em; line-height: 1.08; margin-top: 0 !important; }
html body main.ds-docs-page .ds-docs-main :is(h2) { scroll-margin-top: 88px; }
html body main.ds-docs-page .ds-docs-main :is(h3) { scroll-margin-top: 88px; }
html body main.ds-docs-page pre { position: relative; border: 1px solid var(--ds-line-2) !important; border-radius: 2px !important; background: #0f0f12 !important; padding: 16px 18px !important; overflow: auto; font-size: 13px; line-height: 1.6; }
html body main.ds-docs-page pre code { font-family: var(--ds-mono) !important; background: transparent !important; border: 0 !important; padding: 0 !important; }
html body main.ds-docs-page pre.ds-copy-host { padding-right: 76px !important; }
html body .ds-docs-mnav { border: 1px solid var(--ds-line-2); border-radius: 2px; background: var(--ds-surface); }
html body .ds-docs-mnav > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 14px; cursor: pointer; list-style: none; color: var(--ds-faint); font-size: var(--ds-t-sm); }
html body .ds-docs-mnav > summary::-webkit-details-marker { display: none; }
html body .ds-docs-mnav > summary b { color: var(--ds-ink); font-weight: 600; }
html body .ds-docs-mnav > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-left: auto; }
html body .ds-docs-mnav[open] > summary::after { transform: rotate(-135deg); }
html body .ds-docs-mnav > nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding: 4px 8px 12px; border-top: 1px solid var(--ds-line); }
html body .ds-docs-mnav p { margin: 10px 10px 4px; color: var(--ds-faint) !important; font-size: var(--ds-t-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
html body .ds-docs-mnav ul { list-style: none; margin: 0; padding: 0; }
html body .ds-docs-mnav a { display: flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 8px; color: var(--ds-muted) !important; text-decoration: none !important; font-size: var(--ds-t-sm); }
html body .ds-docs-mnav a[aria-current="page"] { color: var(--ds-ink) !important; background: var(--ds-surface-2); }
html body main.ds-docs-page .ds-docs-index > header { max-width: 44rem; }
html body main.ds-docs-page .ds-docs-r14 { margin-top: var(--ds-s7); padding: 0 !important; background: transparent !important; border: 0 !important; }
html body main.ds-docs-page .ds-docs-r14 .r14-wrap { max-width: none !important; padding: 0 !important; margin: 0 !important; }
@media (max-width: 860px) { html body main.ds-docs-page .ds-docs { gap: var(--ds-s4); } }
@media (hover: none) { html body main.ds-docs-page pre.ds-copy-host { padding-top: 44px !important; padding-right: 18px !important; } }

/* ---------- P4: download cards ---------- */
html body .ds-dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
html body .ds-dl-grid--one { grid-template-columns: minmax(0, 44rem); }
html body .ds-dl-grid > .ds-dl-warn, html body .ds-dl-grid > .ds-row { grid-column: 1 / -1; }
@media (max-width: 860px) { html body .ds-dl-grid { grid-template-columns: 1fr; } }
html body .ds.ds-dl { display: grid; gap: 14px; padding: var(--ds-s5); border: 1px solid var(--ds-line-2); border-radius: var(--ds-r-lg); background: var(--ds-surface); box-shadow: 0 24px 48px -36px rgba(0,0,0,.8); }
html body .ds .ds-dl-head { display: flex; align-items: center; gap: 12px; }
html body .ds .ds-dl-head .ds-h5 { margin: 0 !important; flex: 1; min-width: 0; overflow-wrap: anywhere; }
html body .ds .ds-dl-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }
html body .ds .ds-dl-meta dt, html body .ds .ds-dl-k { color: var(--ds-faint) !important; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 4px; }
html body .ds .ds-dl-meta dd { margin: 0; color: var(--ds-ink) !important; font-size: var(--ds-t-sm); font-weight: 500; }
html body .ds .ds-dl-note, html body .ds .ds-dl-row > p:not(.ds-dl-k) { color: var(--ds-muted) !important; font-size: var(--ds-t-sm); line-height: 1.6; margin: 0; }
html body .ds .ds-dl pre { position: relative; margin: 0; padding: 10px 12px; border: 1px solid var(--ds-line); border-radius: 2px; background: var(--ds-bg); font: 500 12px/1.55 var(--ds-mono); color: var(--ds-ink); white-space: pre-wrap; word-break: break-all; }
html body .ds .ds-dl pre.ds-copy-host { padding-right: 72px; }
html body .ds .ds-dl pre code { font: inherit; background: none; border: 0; padding: 0; color: inherit; }
html body .ds .ds-dl-actions { margin: 4px 0 0; }
html body .ds-dl-warn { margin: 0; padding: 12px 14px; border: 1px solid var(--ds-line-2); border-radius: 2px; background: var(--ds-surface); color: var(--ds-muted); font-size: var(--ds-t-sm); line-height: 1.55; }
html body .ds-dl-grid > * { min-width: 0; }
html body .ds .ds-dl pre { white-space: pre-wrap !important; word-break: break-all !important; overflow-wrap: anywhere !important; max-width: 100%; overflow: hidden; }
html body .ds .ds-dl-head .ds-badge { flex: none; }

/* ---------- P5: guides / labs / legal / help hub ---------- */
html body .ds-docs.ds-legal { grid-template-columns: 15rem minmax(0, 1fr); }
@media (max-width: 860px) { html body .ds-docs.ds-legal { grid-template-columns: 1fr; } }
html body .ds-legal-toc { margin-top: var(--ds-s5); padding-top: var(--ds-s4); border-top: 1px solid var(--ds-line); }
html body .ds-legal-toc[data-ds-toc-built="empty"] { display: none; }
html body .ds-legal-toc a { padding: 4px 10px !important; border-left: 1px solid var(--ds-line); border-radius: 0 !important; font-size: 13px; }
html body .ds-legal-toc a.is-active { color: var(--ds-ink) !important; border-left-color: var(--ds-accent); background: transparent !important; }
html body .ds-legal-toc a[data-depth="3"] { padding-left: 22px !important; }
html body .ds-docs-toc[data-ds-toc-built="empty"] { visibility: hidden; }
html body .ds-docs-toc ul ul, html body .ds-legal-toc ul ul { margin: 0; }
html body main.ds-docs-page .ds.ds-summary, html body main.ds-docs-page .ds.ds-answer, html body main.ds-docs-page .ds.ds-abstract { margin: var(--ds-s4) 0 var(--ds-s5); padding: var(--ds-s4) var(--ds-s5); border: 1px solid var(--ds-line-2); border-left: 3px solid var(--ds-accent); border-radius: 2px; background: var(--ds-surface); }
html body main.ds-docs-page .ds .ds-answer-k { margin: 0 0 6px !important; color: var(--ds-accent) !important; font-size: 11px !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
html body main.ds-docs-page .ds :is(.ds-answer-k + p, .ds-legal-updated + p) { margin: 0 !important; color: var(--ds-ink) !important; font-size: var(--ds-t-md); line-height: 1.65; }
html body main.ds-docs-page .ds .ds-legal-updated { margin: 0 0 6px !important; color: var(--ds-faint) !important; font-size: var(--ds-t-xs) !important; }
html body main.ds-docs-page .ds.ds-abstract { border-left-color: var(--ds-info, #8fb7ff); }
html body main.ds-docs-page .ds.ds-abstract .ds-answer-k { color: var(--ds-info, #8fb7ff) !important; }
html body main.ds-docs-page .ds-paper-fold { margin: var(--ds-s4) 0; border: 1px solid var(--ds-line-2); border-radius: 2px; background: var(--ds-surface); }
html body main.ds-docs-page .ds-paper-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 var(--ds-s5); cursor: pointer; list-style: none; color: var(--ds-ink); font-weight: 600; }
html body main.ds-docs-page .ds-paper-fold > summary::-webkit-details-marker { display: none; }
html body main.ds-docs-page .ds-paper-fold > summary::after { content: "+"; color: var(--ds-faint); font-weight: 400; font-size: 20px; transition: transform var(--ds-dur) var(--ds-ease); }
html body main.ds-docs-page .ds-paper-fold[open] > summary::after { transform: rotate(45deg); }
html body main.ds-docs-page .ds-paper-fold > :not(summary) { margin: 0 var(--ds-s5) var(--ds-s4); }
html body main.ds-docs-page .ds-paper table, html body main.ds-docs-page .ds-legal-main table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--ds-line-2); border-radius: 2px; overflow: hidden; font-size: var(--ds-t-sm); }
html body main.ds-docs-page .ds-paper :is(th, td) { padding: 10px 12px !important; border-bottom: 1px solid var(--ds-line); text-align: left; font-variant-numeric: tabular-nums; }
html body main.ds-docs-page .ds-paper th { background: var(--ds-surface-2); color: var(--ds-ink); font-weight: 600; }
html body main.ds-docs-page .ds-paper tr:last-child td { border-bottom: 0; }
html body main.ds-docs-page .ds.ds-guide-cta { margin-top: var(--ds-s7); padding: var(--ds-s6); border: 1px solid var(--ds-line-2); border-radius: var(--ds-r-lg); background: var(--ds-surface); }
html body main.ds-docs-page .ds.ds-guide-cta h2 { margin-top: 0 !important; }
html body main.ds-docs-page .ds.ds-guide-cta p { color: var(--ds-muted) !important; }
html body main.ds-docs-page .ds .ds-guide-cta-actions { margin: var(--ds-s4) 0 0 !important; }
html body main.ds-docs-page .ds .ds-guide-cta-actions a { text-decoration: none !important; color: var(--ds-accent-ink) !important; }
html body main.ds-docs-page .ds-guide-related a { color: var(--ds-accent) !important; }
/* help hub */
html body .ds.ds-hub-nav { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: var(--ds-s6); border: 1px solid var(--ds-line-2); border-radius: 2px; background: var(--ds-surface); }
html body .ds.ds-hub-nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 2px; color: var(--ds-muted) !important; font-size: var(--ds-t-sm); font-weight: 500; text-decoration: none !important; }
html body .ds.ds-hub-nav a:hover { color: var(--ds-ink) !important; }
html body .ds.ds-hub-nav a[aria-current="page"] { background: var(--ds-ink); color: #111 !important; }
html body .ds.ds-hub-search { position: relative; display: flex; align-items: center; max-width: 40rem; margin: var(--ds-s6) 0 var(--ds-s4); }
html body .ds.ds-hub-search input { width: 100%; min-height: 52px; padding: 0 110px 0 46px; border: 1px solid var(--ds-line-2) !important; border-radius: 2px; background: var(--ds-surface) !important; color: var(--ds-ink) !important; font-size: var(--ds-t-md); }
html body .ds.ds-hub-search input:focus-visible { outline: 2px solid var(--ds-accent); outline-offset: 2px; }
html body .ds.ds-hub-search .ds-hub-search-icon { position: absolute; left: 16px; display: inline-flex; color: var(--ds-faint); pointer-events: none; }
html body .ds.ds-hub-search .ds-hub-count { position: absolute; right: 16px; color: var(--ds-faint); font-size: var(--ds-t-xs); }
html body .ds-hub-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 12px; }
html body .ds-hub-card { position: relative; padding: 18px 18px 16px; border: 1px solid var(--ds-line); border-radius: var(--ds-r-lg); background: var(--ds-surface); transition: border-color var(--ds-dur) var(--ds-ease), transform var(--ds-dur) var(--ds-ease); }
html body .ds-hub-card:hover { border-color: var(--ds-line-2); }
html body .ds-hub-card > a { font-weight: 600; text-decoration: none !important; }
html body .ds-hub-card > a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
html body .ds-hub-card > a:focus-visible { outline: none; }
html body .ds-hub-card:focus-within { outline: 2px solid var(--ds-accent); outline-offset: 2px; }
html body .ds.ds-hub-empty { margin-top: var(--ds-s4); padding: var(--ds-s5); border: 1px dashed var(--ds-line-2); border-radius: var(--ds-r-lg); color: var(--ds-muted); text-align: center; }
html body .ds.ds-hub-empty[hidden] { display: none; }
html body main.ds-hub-page .ds-faq-list { border: 1px solid var(--ds-line) !important; border-radius: var(--ds-r-lg); background: var(--ds-surface); }
html body main.ds-hub-page .ds-faq-list > details { padding-inline: var(--ds-s5) !important; }
html body main.ds-hub-page .ds-faq-list > details[hidden] { display: none; }

/* ---------- P6: tighter mobile rhythm for pages still on the recovered Tailwind markup ---------- */
@media (max-width: 640px) {
  html body main#main-content > div.mx-auto.py-16 { padding-top: 28px !important; padding-bottom: 40px !important; }
  html body main#main-content :is(.mt-16) { margin-top: 2.25rem !important; }
  html body main#main-content :is(.mt-14, .mt-12) { margin-top: 2rem !important; }
  html body main#main-content :is(.mt-10) { margin-top: 1.75rem !important; }
  html body main#main-content .r14-sec { margin-top: 2rem !important; padding-top: 1.75rem !important; }
  html body main#main-content .r14-wrap { padding-bottom: 2.5rem !important; }
  html body main#main-content :is(.p-6, .sm\:p-8) { padding: 1.125rem !important; }
  html body main#main-content .p-5 { padding: 1rem !important; }
  html body main#main-content .prose :is(h2) { margin-top: 1.75em !important; }
  html body main.ds-docs-page .ds-docs { padding-top: var(--ds-s3); padding-bottom: var(--ds-s6); }
  html body .ds .ds-section { padding-block: 36px; }
  html body .ds .ds-pagehead { padding-block: 28px 20px; }
}

/* ---------- P6: mobile density, shared footer + evidence kit + hub cards ---------- */
@media (max-width: 640px) {
  html body footer.ds-ftr .ds-ftr-grid { grid-template-columns: 1fr !important; gap: 18px !important; padding-block: 28px 16px !important; }
  html body footer.ds-ftr .ds-ftr-grid > * { grid-column: 1 / -1; }
  html body footer.ds-ftr .ds-ftr-h { margin-bottom: 4px; }
  html body footer.ds-ftr nav:not(.ds-ftr-account) ul { display: flex !important; flex-wrap: wrap; gap: 0 18px !important; }
  html:root:root:root:root body footer.ds-ftr nav a { min-height: 32px !important; }
  html body .ds .ds-stats > div { padding: 12px 14px; }
  html body .ds .ds-stats dd { font-size: var(--ds-t-lg, 1.125rem); margin-top: 4px; }
  html body .ds.ds-evidence-kit { margin-top: var(--ds-s5); }
  html body .ds .ds-hash-drop { padding: 12px; }
  html body .ds-hub-grid { gap: 8px; }
  html body .ds-hub-card { padding: 14px 14px 12px; }
}

/* ======================================================================
   NodeMuncher theme (scoped). Mirrors the NodeMuncher desktop app:
   ink panels, gold LCD type, square pixel accents, uppercase status pills.
   Only applies inside .nm-theme (the /nodemuncher and /providers main,
   and the NodeMuncher download card). Nothing here is global.
   ====================================================================== */
.nm-theme {
  --nm-bg: #0b0e13; --nm-ink: #10151d; --nm-ink2: #151b25; --nm-line: #222b38; --nm-line2: #2b3545;
  --nm-hi: rgba(255,255,255,.05); --nm-text: #e8edf2; --nm-muted: #9aa8b8; --nm-dim: #7d8a9b;
  --nm-gold: #f0b84f; --nm-gold-dim: #7a5e2a; --nm-gold-ink: #130f08; --nm-ok: #7fe0a3; --nm-busy: #6fc3ff; --nm-bad: #ff8a80;
  --nm-lcd: #06080b; --nm-tick: #c9b27a;
  --nm-mono: "Cascadia Mono", "JetBrains Mono", "SF Mono", Consolas, ui-monospace, monospace;
  --nm-t: 140ms cubic-bezier(.2,.7,.2,1);
}
html body main.nm-page { background: var(--nm-bg); background-image: radial-gradient(70rem 26rem at 85% -6rem, rgba(240,184,79,.08), transparent 60%), repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 4px); color: var(--nm-text); }
html body main.nm-page :is(.text-muted) { color: var(--nm-muted) !important; }
html body main.nm-page :is(.text-ink, h1, h2, h3) { color: var(--nm-text) !important; }
html body main.nm-page .text-sand { color: var(--nm-tick) !important; }
html body main.nm-page header > p.text-amber:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--nm-gold) !important; font-family: var(--nm-mono); font-weight: 700; letter-spacing: .16em; }
html body main.nm-page header > p.text-amber:first-child::before { content: ""; width: 6px; height: 6px; background: var(--nm-gold); box-shadow: 8px 0 0 var(--nm-gold-dim); margin-right: 8px; }
html body main.nm-page h1 { font-weight: 650; letter-spacing: -0.02em; }
html body main.nm-page a:not(.ds-btn):not([class*="r14-cta"]) { color: var(--nm-gold) !important; text-decoration-color: var(--nm-gold-dim) !important; }
html body main.nm-page a:not(.ds-btn):hover { color: #ffd27a !important; }
html body main.nm-page .nm-lede { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border: 1px solid var(--nm-gold-dim); background: #1d1709; color: var(--nm-gold) !important; font-family: var(--nm-mono); font-size: 13px !important; letter-spacing: .08em; text-transform: uppercase; border-radius: 3px; }
html body main.nm-page .nm-lede::before { content: ""; width: 6px; height: 6px; background: var(--nm-gold); }

/* hero: copy left, app window right */
html body main.nm-page .nm-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 900px) { html body main.nm-page .nm-hero { grid-template-columns: 1fr; gap: 24px; } }

/* app window */
.nm-theme .nm-window { margin: 0; border: 1px solid var(--nm-line2); background: linear-gradient(180deg, #121823 0%, #0c1017 100%); box-shadow: inset 0 1px 0 var(--nm-hi), 0 0 0 1px rgba(0,0,0,.55), 0 18px 40px rgba(0,0,0,.45); border-radius: 7px; overflow: hidden; }
.nm-theme .nm-tbar { height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: linear-gradient(180deg, #171e28, #10151d); border-bottom: 1px solid #070a0e; box-shadow: 0 1px 0 var(--nm-hi); }
.nm-theme .nm-icon { display: block; width: 18px; height: 18px; image-rendering: auto; flex: none; border-radius: 3px; }
.nm-theme .nm-brand { color: var(--nm-gold); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.nm-theme .nm-brand b { color: var(--nm-muted); font-weight: 600; letter-spacing: .1em; }
.nm-theme .nm-tmeta { flex: 1; min-width: 0; text-align: right; color: var(--nm-dim); font-size: 11px; font-family: var(--nm-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-theme .nm-lcd { position: relative; margin: 10px; padding: 16px 16px 14px; background: var(--nm-lcd); border: 1px solid #000; border-radius: 4px; box-shadow: inset 0 1px 6px rgba(0,0,0,.85), 0 1px 0 var(--nm-hi); background-image: radial-gradient(120% 80% at 20% 0%, rgba(240,184,79,.06), transparent 60%), repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px); }
.nm-theme .nm-big { margin: 0; font-family: var(--nm-mono); font-size: clamp(22px, 1.4rem + .8vw, 30px); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; color: var(--nm-gold) !important; text-shadow: 0 0 12px rgba(240,184,79,.32), 0 0 1px rgba(240,184,79,.6); }
.nm-theme .nm-tick { margin: 8px 0 0; color: var(--nm-tick) !important; font-family: var(--nm-mono); font-size: 12.5px; }
.nm-theme .nm-tick::before { content: "> "; color: var(--nm-gold-dim); }
.nm-theme .nm-cap { padding: 0 12px 10px; color: var(--nm-dim); font-size: 11.5px; font-family: var(--nm-mono); }

/* status pills (app .pill) with a square pixel dot */
.nm-theme .nm-pills { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.nm-theme .nm-pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 7px; border: 1px solid var(--nm-line2); border-radius: 11px; color: var(--nm-muted) !important; background: transparent; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.nm-theme .nm-pill > i { width: 6px; height: 6px; background: currentColor; box-shadow: 0 0 0 1px rgba(0,0,0,.6); flex: none; }
.nm-theme .nm-pill--ready { color: var(--nm-ok) !important; border-color: #2f6b47; background: #0e1c14; }
.nm-theme .nm-pill--working { color: var(--nm-busy) !important; border-color: #24506e; background: #0d1822; }
.nm-theme .nm-pill--paused { color: var(--nm-gold) !important; border-color: var(--nm-gold-dim); background: #1d1709; }
.nm-theme .nm-pill--attention { color: var(--nm-bad) !important; border-color: #6b2f2f; background: #1c0e0e; }
.nm-theme .nm-pill--idle > i { background: var(--nm-dim); }
@media (prefers-reduced-motion: no-preference) {
  .nm-theme .nm-pill--paused > i { animation: nm-blink 2.4s steps(2, jump-none) infinite; }
}
@keyframes nm-blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .35; } }

/* NodeMuncher download card */
html body .ds.ds-dl.ds-dl--nm { background: linear-gradient(180deg, #121823 0%, #0c1017 100%) !important; border: 1px solid var(--nm-line2) !important; border-radius: 7px !important; box-shadow: inset 0 1px 0 var(--nm-hi), 0 0 0 1px rgba(0,0,0,.55) !important; color: var(--nm-text); position: relative; }
html body .ds.ds-dl.ds-dl--nm::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: repeating-linear-gradient(90deg, var(--nm-gold) 0 6px, transparent 6px 10px); opacity: .55; border-radius: 7px 7px 0 0; }
html body .ds.ds-dl.ds-dl--nm .ds-dl-head h2 { color: var(--nm-text) !important; }
html body .ds.ds-dl.ds-dl--nm .nm-iconbox { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #000; border-radius: 6px; background: var(--nm-lcd); box-shadow: inset 0 1px 4px rgba(0,0,0,.85), 0 1px 0 var(--nm-hi); flex: none; }
html body .ds.ds-dl.ds-dl--nm .nm-iconbox .nm-icon { width: 28px; height: 28px; }
html body .ds.ds-dl.ds-dl--nm .ds-dl-meta > div { background: var(--nm-ink); border: 1px solid var(--nm-line); border-radius: 3px; }
html body .ds.ds-dl.ds-dl--nm .ds-dl-meta dt { color: var(--nm-dim) !important; font-family: var(--nm-mono); letter-spacing: .08em; text-transform: uppercase; }
html body .ds.ds-dl.ds-dl--nm .ds-dl-meta dd { color: var(--nm-text) !important; font-family: var(--nm-mono); }
html body .ds.ds-dl.ds-dl--nm .ds-dl-note { color: var(--nm-tick) !important; font-family: var(--nm-mono); font-size: 12.5px; }
html body .ds.ds-dl.ds-dl--nm .ds-dl-note::before { content: "> "; color: var(--nm-gold-dim); }

/* r14 provider sections, re-skinned to the app palette */
html body main.nm-page .r14 { --r14-amber: #f0b84f; --r14-ink: #e8edf2; --r14-muted: #9aa8b8; --r14-faint: #7d8a9b; --r14-panel: #10151d; --r14-line: #222b38; --r14-sand: #c9b27a; --r14-green: #7fe0a3; --r14-mono: "Cascadia Mono", "JetBrains Mono", "SF Mono", Consolas, ui-monospace, monospace; background: transparent !important; }
html body main.nm-page .r14 :is(.r14-step, .r14-card, .r14-status, .r14-faq details) { background: linear-gradient(180deg, #121823, #0c1017) !important; border: 1px solid #2b3545 !important; border-radius: 6px !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
html body main.nm-page .r14 .r14-step-n { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 8px; border: 1px solid #7a5e2a; border-radius: 10px; background: #1d1709; color: #f0b84f !important; font-size: 10.5px !important; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
html body main.nm-page .r14 .r14-step-n::before { content: ""; width: 6px; height: 6px; background: currentColor; }
html body main.nm-page .r14 .r14-eyebrow { color: #f0b84f !important; }
html body main.nm-page .r14 .r14-status { background: #06080b !important; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px) !important; }
html body main.nm-page .r14 .r14-dot { border-radius: 0 !important; background: #f0b84f !important; box-shadow: 0 0 8px rgba(240,184,79,.5); }
html body main.nm-page .r14 .r14-mono { color: #f0b84f !important; text-transform: uppercase; letter-spacing: .1em; }
html body main.nm-page .r14 .r14-status-line { color: #c9b27a !important; font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; }
html body main.nm-page .r14 .r14-faq summary { color: #e8edf2 !important; }
html body main.nm-page .r14 .r14-faq details[open] summary { color: #f0b84f !important; }
html body main.nm-page :focus-visible { outline: 2px solid #f0b84f !important; outline-offset: 2px; }

/* ---------- NodeMuncher provider dashboard (/nodemuncher/dashboard), scoped to .nm-theme ---------- */
.nm-theme .nm-icon { image-rendering: pixelated; image-rendering: crisp-edges; }
.nm-theme .nm-dashlink { min-height: 44px; margin: 0; padding: 0 10px 10px; display: flex; align-items: center; }
.nm-theme .nm-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--nm-gold-dim); border-radius: 3px; background: #1d1709; color: var(--nm-gold) !important; font: 700 12px/1 var(--nm-mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none !important; cursor: pointer; transition: background var(--nm-t), border-color var(--nm-t); }
.nm-theme .nm-btn:hover { background: #2a200c; border-color: var(--nm-gold); }
.nm-theme .nm-link { color: var(--nm-muted) !important; font-size: 13px; }
.nm-theme :focus-visible { outline: 1px solid var(--nm-gold) !important; outline-offset: 2px !important; }
html body main.nm-dash-page { min-height: 70vh; font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, "Inter", "Noto Sans KR", system-ui, sans-serif; font-size: 14px; }
html body main.nm-dash-page .nm-dash-wrap { max-width: 72rem; margin: 0 auto; padding: 28px 20px 48px; }
.nm-theme .nm-dash { display: grid; gap: 16px; }
.nm-theme .nm-dash-bar { height: 36px; border: 1px solid var(--nm-line2); border-radius: 7px; }
.nm-theme .nm-dash-bar .nm-tmeta b { color: var(--nm-muted); font-weight: 600; }
html body main.nm-dash-page h1.nm-dash-h1 { margin: 6px 0 0; font: 700 clamp(22px, 1.2rem + 1vw, 30px)/1.15 var(--nm-mono) !important; letter-spacing: .02em; color: var(--nm-text) !important; }
.nm-theme .nm-fleet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nm-theme .nm-lcd.nm-stat { margin: 0; display: grid; gap: 6px; min-height: 84px; align-content: center; }
.nm-theme .nm-stat > span { display: inline-flex; align-items: center; gap: 4px; color: var(--nm-dim); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nm-theme .nm-stat > b { font: 700 clamp(18px, 1rem + .9vw, 26px)/1.1 var(--nm-mono); color: var(--nm-gold); text-shadow: 0 0 12px rgba(240,184,79,.3); font-variant-numeric: tabular-nums; }
.nm-theme .nm-stat.is-ok > b { color: var(--nm-ok); text-shadow: 0 0 12px rgba(127,224,163,.3); }
.nm-theme .nm-stat.is-busy > b { color: var(--nm-busy); text-shadow: 0 0 12px rgba(111,195,255,.3); }
.nm-theme .nm-stat.is-warn > b { color: var(--nm-bad); text-shadow: 0 0 12px rgba(255,138,128,.28); }
.nm-theme .nm-skel span, .nm-theme .nm-skel b { display: block; height: 10px; width: 40%; background: var(--nm-ink2); border-radius: 2px; }
.nm-theme .nm-skel b { height: 22px; width: 60%; }
@media (prefers-reduced-motion: no-preference) { .nm-theme .nm-skel :is(span, b) { animation: nm-pulse 1.2s ease-in-out infinite; } }
@keyframes nm-pulse { 50% { opacity: .45; } }
.nm-theme .nm-quiet { margin: 0; color: var(--nm-dim); font-size: 13px; font-family: var(--nm-mono); }
.nm-theme .nm-stale { color: var(--nm-tick); }
.nm-theme .nm-hintline, .nm-theme .nm-machine-hint { margin: 0; color: var(--nm-bad); font-size: 13px; }
.nm-theme .nm-machines { display: grid; gap: 14px; }
.nm-theme .nm-machine { border: 1px solid var(--nm-line2); border-radius: 7px; background: linear-gradient(180deg, #121823, #0c1017); box-shadow: inset 0 1px 0 var(--nm-hi); padding: 12px; }
.nm-theme .nm-machine.is-offline { border-color: #6b2f2f; }
.nm-theme .nm-machine-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
html body main.nm-dash-page .nm-machine-head h2 { margin: 0 6px 0 0; font: 700 15px/1.2 var(--nm-mono) !important; color: var(--nm-text) !important; letter-spacing: .02em; }
.nm-theme .nm-chip { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 2px 6px; border-radius: 2px; border: 1px solid var(--nm-line2); color: var(--nm-muted); }
.nm-theme .nm-gpus { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 10px; }
.nm-theme .nm-gpu { border: 1px solid var(--nm-line); border-radius: 6px; background: var(--nm-ink); padding: 12px; display: grid; gap: 10px; align-content: start; }
.nm-theme .nm-gpu-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
html body main.nm-dash-page .nm-gpu-name { margin: 0; font: 600 14px/1.3 inherit !important; color: var(--nm-text) !important; }
.nm-theme .nm-gpu-model { margin: 2px 0 0; color: var(--nm-muted); font: 500 12px/1.3 var(--nm-mono); }
.nm-theme .nm-job { margin: 0; padding: 10px 12px; }
.nm-theme .nm-job-line { margin: 0; color: var(--nm-busy); font: 700 13px/1.3 var(--nm-mono); text-shadow: 0 0 10px rgba(111,195,255,.28); }
.nm-theme .nm-job-id { margin: 4px 0 0; color: var(--nm-dim); font: 500 11px/1.3 var(--nm-mono); word-break: break-all; }
.nm-theme .nm-bar { height: 6px; margin-top: 8px; background: #0d1822; border: 1px solid #24506e; border-radius: 1px; overflow: hidden; }
.nm-theme .nm-bar > span { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--nm-busy) 0 4px, transparent 4px 6px); }
.nm-theme .nm-kvs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.nm-theme .nm-kv { background: var(--nm-bg); border: 1px solid var(--nm-line); border-radius: 3px; padding: 5px 7px; min-width: 0; }
.nm-theme .nm-kv dt { display: flex; align-items: center; gap: 3px; color: var(--nm-dim); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.nm-theme .nm-kv dd { margin: 2px 0 0; color: var(--nm-text); font: 500 12.5px/1.3 var(--nm-mono); overflow-wrap: anywhere; }
.nm-theme .nm-pill { position: relative; }
.nm-theme .nm-pill .nm-hint { margin-left: 2px; }
/* tooltips (app .hint / .hint-tip) */
.nm-theme .nm-hint { position: relative; display: inline-flex; }
.nm-theme .nm-hint-btn { width: 16px; height: 16px; padding: 0; display: inline-grid; place-items: center; border: 1px solid var(--nm-line2); border-radius: 2px; background: transparent; color: var(--nm-dim); font: 700 9.5px/1 var(--nm-mono); cursor: help; }
.nm-theme .nm-hint-btn:hover { color: var(--nm-gold); border-color: var(--nm-gold-dim); }
.nm-theme .nm-hint-tip { position: absolute; z-index: 30; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); width: max-content; max-width: 260px; padding: 7px 9px; border: 1px solid var(--nm-line2); border-radius: 4px; background: #0e131b; box-shadow: 0 8px 20px rgba(0,0,0,.5); color: var(--nm-text); font: 500 12px/1.4 "Segoe UI", system-ui, sans-serif; letter-spacing: 0; text-transform: none; white-space: normal; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--nm-t); }
.nm-theme .nm-hint:hover .nm-hint-tip, .nm-theme .nm-hint:focus-within .nm-hint-tip { opacity: 1; visibility: visible; }
.nm-theme .nm-activity { border: 1px solid var(--nm-line2); border-radius: 7px; background: var(--nm-lcd); padding: 12px 14px; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.016) 0 1px, transparent 1px 3px); }
html body main.nm-dash-page .nm-activity h2 { margin: 0 0 8px; font: 700 11px/1 var(--nm-mono) !important; letter-spacing: .16em; text-transform: uppercase; color: var(--nm-gold) !important; }
.nm-theme .nm-activity ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nm-theme .nm-activity li { color: var(--nm-tick); font: 500 12.5px/1.5 var(--nm-mono); }
.nm-theme .nm-activity li::before { content: "> "; color: var(--nm-gold-dim); }
.nm-theme .nm-activity li[data-kind="job_failed"] { color: var(--nm-bad); }
.nm-theme .nm-dash-foot { margin: 4px 0 0; color: var(--nm-dim); font-size: 12.5px; }
.nm-theme .nm-gate, .nm-theme .nm-soon, .nm-theme .nm-err, .nm-theme .nm-empty { max-width: 40rem; }
.nm-theme .nm-gate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0; padding: 0 10px 12px; }
.nm-theme .nm-soon-copy { margin: 0; padding: 0 12px 12px; color: var(--nm-muted); font-size: 13.5px; }
.nm-theme .nm-big--bad { color: var(--nm-bad) !important; text-shadow: 0 0 12px rgba(255,138,128,.28); }
.nm-theme .nm-pair { margin: 0; padding: 0 12px 12px 32px; color: var(--nm-muted); display: grid; gap: 4px; font-size: 13.5px; }
.nm-theme .nm-pair b { color: var(--nm-text); }
@media (max-width: 640px) {
  html body main.nm-dash-page .nm-dash-wrap { padding: 16px 12px 32px; }
  .nm-theme .nm-fleet { grid-template-columns: 1fr 1fr; }
  .nm-theme .nm-fleet > :first-child { grid-column: 1 / -1; }
  .nm-theme .nm-lcd.nm-stat { min-height: 68px; padding: 10px 12px; }
  .nm-theme .nm-dash-bar .nm-tmeta { display: none; }
  .nm-theme .nm-hint-tip { left: auto; right: -8px; transform: none; max-width: 220px; }
}
html:root body main.nm-page .nm-hint-btn { position: relative; width: 16px !important; height: 16px !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; line-height: 1 !important; box-shadow: none !important; }
html:root body main.nm-page .nm-hint-btn::after { content: ""; position: absolute; inset: -4px; }
html:root body main.nm-page .nm-btn { min-height: 36px !important; }
/* dashboard: telemetry meters + optional controls */
.nm-theme .nm-meter { position: relative; padding-bottom: 9px; }
.nm-theme .nm-meter-word { color: var(--nm-muted); font-family: inherit; }
.nm-theme .nm-meter--warn .nm-meter-word, .nm-theme .nm-meter--warn dd { color: var(--nm-gold); }
.nm-theme .nm-meter--bad .nm-meter-word, .nm-theme .nm-meter--bad dd { color: var(--nm-bad); }
.nm-theme .nm-meter-bar { position: absolute; left: 7px; right: 7px; bottom: 4px; height: 3px; background: var(--nm-ink2); border-radius: 1px; overflow: hidden; }
.nm-theme .nm-meter-bar > i { display: block; height: 100%; background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 4px); color: var(--nm-ok); }
.nm-theme .nm-meter--busy .nm-meter-bar > i { color: var(--nm-busy); }
.nm-theme .nm-meter--warn .nm-meter-bar > i { color: var(--nm-gold); }
.nm-theme .nm-meter--bad .nm-meter-bar > i { color: var(--nm-bad); }
.nm-theme .nm-gpu-ctl, .nm-theme .nm-fleet-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.nm-theme .nm-ctl-note { color: var(--nm-dim); font-size: 12.5px; }
html:root body main.nm-page .nm-btn--sm { min-height: 30px !important; padding: 0 12px; font-size: 11px; }
.nm-theme .nm-btn--ghost { background: transparent; border-color: var(--nm-line2); color: var(--nm-muted) !important; }
.nm-theme .nm-btn--ghost:hover { border-color: var(--nm-gold-dim); color: var(--nm-gold) !important; background: transparent; }
.nm-theme .nm-btn:disabled { opacity: .45; cursor: default; }
.nm-theme .nm-linkbtn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.nm-theme .nm-confirm { max-width: 40rem; border: 1px solid var(--nm-gold-dim); border-radius: 7px; background: #120f08; padding: 12px 12px 0; }
.nm-theme .nm-confirm-t { margin: 0 0 4px; color: var(--nm-gold); font: 700 14px/1.3 var(--nm-mono); }
.nm-theme .nm-confirm-d { margin: 0 0 10px; color: var(--nm-muted); font-size: 13.5px; }
.nm-theme .nm-confirm .nm-gate-actions { padding: 0 0 12px; }
.nm-theme .nm-ctl-err { color: var(--nm-bad); }
.nm-theme .nm-hintline--idle, .nm-theme .nm-hintline--split { color: var(--nm-tick); }
.nm-theme .nm-paused-note { margin: 0; color: var(--nm-gold); font: 500 12.5px/1.4 var(--nm-mono); }

.nm-theme .nm-telemetry-note {
  margin: 6px 0 0;
  color: var(--nm-dim);
  font-size: 12.5px;
  line-height: 1.4;
}
.nm-theme .nm-kvs + .nm-telemetry-note { margin-top: 8px; }

/* kaizen-1: flatten leftover utility radii on ds pages. Do not touch rounded-full (dots, hamster mark). */
html body .ds :is(.rounded, .rounded-sm, .rounded-md, .rounded-lg, .rounded-xl, .rounded-2xl, .rounded-3xl, .rounded-\[1rem\], .rounded-\[1.4rem\], .rounded-\[14px\], .rounded-\[16px\], .rounded-\[18px\]) {
  border-radius: var(--ds-r) !important;
}

/* kaizen-1: rectangular actions; leave img.rounded-full (hamster mark, dots). */
html body .ds :is(a, button, .ds-btn).rounded-full,
html body header.ds-hdr :is(a, button).rounded-full {
  border-radius: 2px !important;
}

/* kaizen-1: flatten legacy pj-btn pills used on account/workspace chrome. */
html body :is(a, button, input).pj-btn,
html body .pj-btn,
html body .pj-btn--blue,
html body .pj-btn--tertiary {
  border-radius: 2px !important;
}

/* ---------- kaizen-2: home is the desk (dropzone + published records) ---------- */
html body .ds[data-ds-page="home"] .k2-hero {
  padding-block: var(--ds-s7) var(--ds-s8);
  background: none;
}
html body .ds[data-ds-page="home"] .k2-hero::before { display: none; content: none; background: none; }
html body .ds[data-ds-page="home"] .k2-status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.25rem;
  margin: 0 0 var(--ds-s5);
  color: var(--ds-faint);
  font-size: var(--ds-t-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
html body .ds[data-ds-page="home"] .k2-status-item { color: var(--ds-faint); }
html body .ds[data-ds-page="home"] .k2-live { color: var(--ds-ok); }
html body .ds[data-ds-page="home"] .k2-live::before {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-right: 0.45em;
  border-radius: 50%;
  background: var(--ds-ok);
  vertical-align: 0.05em;
}
/* Reuse QualifiedGpuStats fetch; render it as one status chip when measured. */
html body .ds[data-ds-page="home"] .k2-status .r14-stats {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  transform: none;
}
html body .ds[data-ds-page="home"] .k2-status .r14-stats > div[hidden],
html body .ds[data-ds-page="home"] .k2-status .r14-stats > div[data-slot="jobs-delivered"],
html body .ds[data-ds-page="home"] .k2-status .r14-stats > div[data-slot="frames-rendered"] {
  display: none !important;
}
html body .ds[data-ds-page="home"] .k2-status .r14-stats > div[data-slot="qualified-gpus"] {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
}
html body .ds[data-ds-page="home"] .k2-status .r14-stats dt,
html body .ds[data-ds-page="home"] .k2-status .r14-stats dd {
  display: inline;
  margin: 0;
  padding: 0;
  color: var(--ds-faint);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
html body .ds[data-ds-page="home"] .k2-status .r14-stats dt::after { content: " "; }
html body .ds[data-ds-page="home"] .k2-lede { max-width: 40rem; margin-bottom: var(--ds-s6); }
html body .ds[data-ds-page="home"] .k2-desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--ds-s6);
  align-items: stretch;
  margin-top: var(--ds-s2);
}
html body .ds[data-ds-page="home"] .k2-drop,
html body .ds[data-ds-page="home"] .k2-ledger {
  border: 1px solid var(--ds-line-2);
  background: var(--ds-surface);
  border-radius: var(--ds-r);
  padding: var(--ds-s6);
  box-shadow: none;
}
html body .ds[data-ds-page="home"] .k2-drop h2,
html body .ds[data-ds-page="home"] .k2-ledger h2 {
  font-size: var(--ds-t-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 var(--ds-s3);
}
html body .ds[data-ds-page="home"] .k2-meta {
  color: var(--ds-faint);
  font-size: var(--ds-t-sm);
  margin: 0 0 var(--ds-s5);
}
html body .ds[data-ds-page="home"] .k2-drop .ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 8.5rem;
  padding: 0 1.15rem;
  border-radius: 2px;
}
html body .ds[data-ds-page="home"] .k2-note,
html body .ds[data-ds-page="home"] .k2-fine {
  color: var(--ds-faint);
  font-size: var(--ds-t-sm);
  line-height: 1.55;
  margin: var(--ds-s4) 0 0;
  max-width: 42rem;
}
html body .ds[data-ds-page="home"] .k2-ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: var(--ds-t-sm);
}
html body .ds[data-ds-page="home"] .k2-ledger-table th,
html body .ds[data-ds-page="home"] .k2-ledger-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.75rem 0.7rem 0;
  border-bottom: 1px solid var(--ds-line);
  line-height: 1.45;
}
html body .ds[data-ds-page="home"] .k2-ledger-table th:last-child,
html body .ds[data-ds-page="home"] .k2-ledger-table td:last-child {
  text-align: right;
  padding-right: 0;
}
html body .ds[data-ds-page="home"] .k2-ledger-table th {
  color: var(--ds-faint);
  font-size: var(--ds-t-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom-color: var(--ds-line-2);
}
html body .ds[data-ds-page="home"] .k2-amt { font-weight: 500; white-space: nowrap; }
html body .ds[data-ds-page="home"] .k2-ledger-link { margin-top: var(--ds-s4); }
@media (max-width: 800px) {
  html body .ds[data-ds-page="home"] .k2-desk { grid-template-columns: 1fr; gap: var(--ds-s5); }
  html body .ds[data-ds-page="home"] .k2-drop,
  html body .ds[data-ds-page="home"] .k2-ledger { padding: var(--ds-s5); }
  html body .ds[data-ds-page="home"] .k2-ledger-table th:nth-child(2),
  html body .ds[data-ds-page="home"] .k2-ledger-table td:nth-child(2) { display: none; }
  html body .ds[data-ds-page="home"] .k2-hero { padding-block: var(--ds-s6) var(--ds-s7); }
}

/* kaizen-2 backup: if r14-pages.js still injects on /, do not show a second how-it-works band. */
html body .r14[data-r14-page="/"] { display: none !important; }


/* ======================= design-kaizen-5: type, ledger, hashes ======================= */
/* Type scale applies sitewide on .ds pages and recovered marketing headings, but NOT NodeMuncher LCD pages. */
html body:not(:has(.nm-page)) main#main-content h1[class*="text-4xl"],
html body:not(:has(.nm-page)) main#main-content h1[class*="text-5xl"],
html body:not(:has(.nm-page)) main#main-content h1[class*="text-6xl"] {
  font-size: var(--ds-t-5xl) !important;
  letter-spacing: -0.042em !important;
  line-height: 0.98 !important;
  font-weight: 550;
}
html body:not(:has(.nm-page)) main#main-content .text-lg.leading-relaxed,
html body:not(:has(.nm-page)) main#main-content p.mt-5.max-w-2xl {
  font-size: var(--ds-t-lg) !important;
  line-height: 1.5 !important;
}
html body .ws .wrap h1, html body main.wrap h1 {
  letter-spacing: -0.036em;
}

/* Proof and other ledgers */
html body .ds-ledger-wrap { max-width: 46rem; }
html body table.ds-ledger {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ds-mono);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ds-ink);
}
html body table.ds-ledger caption.ds-ledger-cap,
html body .ds-ledger-cap {
  caption-side: top;
  text-align: left;
  font-family: var(--ds-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ds-faint);
  margin: 0 0 12px;
}
html body table.ds-ledger th,
html body table.ds-ledger td {
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--ds-line);
  vertical-align: baseline;
  text-align: left;
}
html body table.ds-ledger thead th {
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ds-faint);
  padding: 0 12px 8px 0;
}
html body table.ds-ledger tbody th { font-weight: 550; color: var(--ds-ink); white-space: nowrap; padding-right: 16px; }
html body table.ds-ledger td { color: var(--ds-muted); }
html body .ds-evidence-kit .ds-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ds-line);
  border-bottom: 1px solid var(--ds-line);
  padding: 10px 0;
  margin: 28px 0 0;
}
@media (max-width: 700px) {
  html body table.ds-ledger, html body table.ds-ledger thead, html body table.ds-ledger tbody,
  html body table.ds-ledger tr, html body table.ds-ledger th, html body table.ds-ledger td { display: block; width: 100%; white-space: normal; }
  html body table.ds-ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  html body table.ds-ledger tr { padding: 12px 0; border-bottom: 1px solid var(--ds-line); }
  html body table.ds-ledger th, html body table.ds-ledger td { border: 0; padding: 2px 0; }
  html body .ds-evidence-kit .ds-stats { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
}

/* SHA-256 and other long digests: wrap on a narrow screen, keep a copy control */
html body .ds-hashval { display: grid; gap: 6px; min-width: 0; }
html body .ds-hashval-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
html body .ds-hashval-hex,
html body .ds .ds-sha, html body .ds .ds-sha code,
html body .ds .ds-hash-hex,
html body .ds .ds-dl-cmd, html body .ds .ds-dl-cmd code,
html body .workspace-job-sha code,
html body code.hash {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  font-family: var(--ds-mono), ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ds-ink);
  overflow-wrap: anywhere;
  word-break: break-all;
  white-space: pre-wrap;
}
html body .ds-hashval-copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border: 1px solid var(--ds-line-2);
  border-radius: 2px;
  background: var(--ds-surface-2);
  color: var(--ds-ink);
  font: 600 12px/1 Geist, Inter, system-ui, sans-serif;
  cursor: pointer;
}
html body .ds-hashval-copy:hover { border-color: var(--ds-ink); }
html body .workspace-job-sha { max-width: 100%; min-width: 0; }


/* k5 footer: beat the 5-root 28/32px !important compact rule; flatten 390 into one wrap. */
html:root:root:root:root body footer.ds-ftr.ds-ftr--cut nav a,
html:root:root:root:root body footer.ds-ftr.ds-ftr--cut .ds-ftr-bar a,
html:root:root:root:root body footer.ds-ftr.ds-ftr--cut a.ds-link {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 44px !important;
  min-width: 44px !important;
  height: auto !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
}
html body footer.ds-ftr.ds-ftr--cut .ds-ftr-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding: 4px 0 10px;
}
html body footer.ds-ftr.ds-ftr--cut .ds-ftr-links nav,
html body footer.ds-ftr.ds-ftr--cut .ds-ftr-links ul,
html body footer.ds-ftr.ds-ftr--cut .ds-ftr-links li {
  display: contents;
}
html body footer.ds-ftr.ds-ftr--cut .ds-ftr-h {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
html body footer.ds-ftr.ds-ftr--cut .ds-ftr-account ul {
  display: flex;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  html:root:root:root:root body footer.ds-ftr.ds-ftr--cut nav a,
  html:root:root:root:root body footer.ds-ftr.ds-ftr--cut .ds-ftr-bar a,
  html:root:root:root:root body footer.ds-ftr.ds-ftr--cut a.ds-link {
    min-height: 44px !important;
  }
  html body footer.ds-ftr.ds-ftr--cut .ds-ftr-top { padding: 12px 0 4px; gap: 4px 12px; }
  html body footer.ds-ftr.ds-ftr--cut .ds-ftr-brand { gap: 4px 12px; }
  html body footer.ds-ftr.ds-ftr--cut .ds-ftr-bar { padding-block: 0 12px; }
  html body footer.ds-ftr.ds-ftr--cut .ds-ftr-account ul { display: flex; flex-wrap: wrap; }
}


/* ---------- design-kaizen-6: NodeMuncher app frame (scoped; do not leak to .ds site pages) ---------- */
.nm-theme { --nm-dim: #6f7d8e; }
html body main.nm-page,
html body main.nm-dash-page {
  background: var(--nm-bg);
  background-image:
    radial-gradient(70rem 26rem at 85% -6rem, rgba(240,184,79,.08), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 4px);
  color: var(--nm-text);
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, "Inter", "Noto Sans KR", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
html body main.nm-page .nm-shell {
  max-width: 56rem;
  margin: 0 auto;
  padding: 28px 20px 48px;
}
.nm-theme .nm-app {
  margin: 0;
  border: 1px solid var(--nm-line2);
  background: linear-gradient(180deg, #121823 0%, #0c1017 100%);
  box-shadow: inset 0 1px 0 var(--nm-hi), 0 0 0 1px rgba(0,0,0,.55), 0 18px 40px rgba(0,0,0,.45);
  border-radius: 7px;
  overflow: hidden;
}
.nm-theme figure.nm-window:has(> .nm-app) { margin: 0; border: 0; background: none; box-shadow: none; border-radius: 0; }
.nm-theme figure.nm-window:has(> .nm-app) > .nm-app { border: 0; box-shadow: none; border-radius: 0; }

/* Title bar — desktop-app chrome */
.nm-theme .nm-tbar {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: linear-gradient(180deg, #171e28, #10151d);
  border-bottom: 1px solid #070a0e;
  box-shadow: 0 1px 0 var(--nm-hi);
}
.nm-theme .nm-brand {
  color: var(--nm-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nm-theme .nm-brand b { color: var(--nm-muted); font-weight: 600; letter-spacing: .1em; }

/* 8-bit wheel — only in the strip, as in the app */
.nm-theme .nm-wheel-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 8px 12px;
  border-bottom: 1px solid #070a0e;
  background: linear-gradient(#10151d, #0c1017);
}
.nm-theme .nm-wheel {
  flex: none;
  width: 56px;
  height: 56px;
  background: url("/_preview/nm/wheel/sleep-01.png") center / contain no-repeat;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.nm-theme .nm-wheel--sleep {
  animation: nm-wheel-sleep 1.6s steps(1) infinite;
}
.nm-theme .nm-wheel--run {
  animation: nm-wheel-run 0.72s steps(1) infinite;
}
@keyframes nm-wheel-sleep {
  0%, 24.9% { background-image: url("/_preview/nm/wheel/sleep-01.png"); }
  25%, 49.9% { background-image: url("/_preview/nm/wheel/sleep-02.png"); }
  50%, 74.9% { background-image: url("/_preview/nm/wheel/sleep-03.png"); }
  75%, 100% { background-image: url("/_preview/nm/wheel/sleep-04.png"); }
}
@keyframes nm-wheel-run {
  0%, 12.4% { background-image: url("/_preview/nm/wheel/run-01.png"); }
  12.5%, 24.9% { background-image: url("/_preview/nm/wheel/run-02.png"); }
  25%, 37.4% { background-image: url("/_preview/nm/wheel/run-03.png"); }
  37.5%, 49.9% { background-image: url("/_preview/nm/wheel/run-04.png"); }
  50%, 62.4% { background-image: url("/_preview/nm/wheel/run-05.png"); }
  62.5%, 74.9% { background-image: url("/_preview/nm/wheel/run-06.png"); }
  75%, 87.4% { background-image: url("/_preview/nm/wheel/run-07.png"); }
  87.5%, 100% { background-image: url("/_preview/nm/wheel/run-08.png"); }
}
@media (prefers-reduced-motion: reduce) {
  .nm-theme .nm-wheel { animation: none !important; }
  .nm-theme .nm-wheel--run { background-image: url("/_preview/nm/wheel/run-01.png"); }
}
.nm-theme .nm-glance {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* LCD banner */
.nm-theme .nm-lcd--banner {
  margin: 10px 10px 0;
  min-height: 78px;
}
.nm-theme .nm-lcd--banner .nm-big {
  font-size: clamp(20px, 1.1rem + .6vw, 26px);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: normal;
}
.nm-theme .nm-tick::before { content: none; } /* no terminal prompt / 1337 */
html body .ds.ds-dl.ds-dl--nm .ds-dl-note::before { content: none; }
.nm-theme .nm-activity li::before { content: none; }

/* Page body inside the app frame */
.nm-theme .nm-app-body {
  padding: 18px 16px 8px;
  display: grid;
  gap: 22px;
  color: var(--nm-text);
}
html body main.nm-page .nm-app-body h1 {
  margin: 0;
  font: 650 clamp(1.5rem, 1.2rem + 1.2vw, 2rem)/1.2 "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif !important;
  letter-spacing: -0.02em;
  color: var(--nm-text) !important;
  text-wrap: balance;
}
html body main.nm-page .nm-app-body h2 {
  margin: 0 0 8px;
  font: 650 1.15rem/1.25 "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif !important;
  letter-spacing: -0.01em;
  color: var(--nm-text) !important;
}
html body main.nm-page .nm-app-body h3 {
  margin: 0 0 4px;
  font: 650 0.95rem/1.3 "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif !important;
  color: var(--nm-text) !important;
}
.nm-theme .nm-kicker {
  margin: 0 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--nm-gold) !important;
  font-family: var(--nm-mono);
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.nm-theme .nm-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--nm-gold);
  box-shadow: 8px 0 0 var(--nm-gold-dim);
  margin-right: 8px;
}
.nm-theme .nm-copy,
.nm-theme .nm-copy-block p {
  margin: 0 0 10px;
  max-width: 42rem;
  color: var(--nm-muted);
  font-size: 14.5px;
  line-height: 1.55;
}
.nm-theme .nm-copy--sand,
.nm-theme .nm-copy.nm-copy--sand { color: var(--nm-tick) !important; }
.nm-theme .nm-inline-nav { margin-top: 8px; }
.nm-theme .nm-sec { display: grid; gap: 8px; }
.nm-theme .nm-steps {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
@media (min-width: 720px) {
  .nm-theme .nm-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.nm-theme .nm-step {
  margin: 0;
  padding: 12px;
  background: linear-gradient(180deg, #121823, #0c1017);
  border: 1px solid var(--nm-line2);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 var(--nm-hi);
}
.nm-theme .nm-step p { margin: 0; color: var(--nm-muted); font-size: 13.5px; line-height: 1.5; }
.nm-theme .nm-step-n {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 20px;
  margin: 0 0 8px;
  padding: 0 8px;
  border: 1px solid var(--nm-gold-dim);
  border-radius: 10px;
  background: #1d1709;
  color: var(--nm-gold) !important;
  font-size: 10.5px !important;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: var(--nm-mono);
}
.nm-theme .nm-step-n::before { content: ""; width: 6px; height: 6px; background: currentColor; }
.nm-theme .nm-need {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}
.nm-theme .nm-need-card {
  padding: 12px;
  background: var(--nm-ink);
  border: 1px solid var(--nm-line);
  border-radius: 6px;
}
.nm-theme .nm-need-card p { margin: 0; color: var(--nm-muted); font-size: 13.5px; }
.nm-theme .nm-faq { display: grid; gap: 6px; }
.nm-theme .nm-faq details {
  background: linear-gradient(180deg, #121823, #0c1017);
  border: 1px solid var(--nm-line2);
  border-radius: 6px;
  padding: 0;
}
.nm-theme .nm-faq summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: var(--nm-text);
  font-weight: 650;
}
.nm-theme .nm-faq summary::-webkit-details-marker { display: none; }
.nm-theme .nm-faq details[open] summary { color: var(--nm-gold); }
.nm-theme .nm-faq details p {
  margin: 0;
  padding: 0 12px 12px;
  color: var(--nm-muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.nm-theme .nm-status { margin: 0; }
.nm-theme .nm-status-k {
  margin: 0;
  font-family: var(--nm-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--nm-gold);
}

/* Solid gold primary actions, matching the app */
.nm-theme .nm-btn {
  background: var(--nm-gold);
  color: var(--nm-gold-ink) !important;
  border-color: #ffd27a;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.18), 0 0 10px rgba(240,184,79,.18);
  text-transform: none;
  letter-spacing: .02em;
  font: 650 13px/1 "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}
.nm-theme .nm-btn:hover { background: #ffd27a; border-color: #ffe0a0; filter: brightness(1.04); }
.nm-theme .nm-btn--ghost {
  background: transparent;
  border-color: var(--nm-line2);
  color: var(--nm-muted) !important;
  box-shadow: none;
}
.nm-theme .nm-btn--ghost:hover { background: #1d1709; border-color: var(--nm-gold-dim); color: var(--nm-gold) !important; filter: none; }

/* Dashboard lives inside the same app window */
html body main.nm-dash-page .nm-dash-wrap { max-width: 56rem; }
.nm-theme .nm-dash.nm-app { gap: 0; }
.nm-theme .nm-dash.nm-app > *:not(.nm-tbar):not(.nm-wheel-strip):not(.nm-lcd) {
  margin-left: 12px;
  margin-right: 12px;
}
.nm-theme .nm-dash.nm-app > .nm-tbar,
.nm-theme .nm-dash.nm-app > .nm-wheel-strip { margin: 0; }
.nm-theme .nm-dash.nm-app > .nm-dash-h1 { margin-top: 14px; }
.nm-theme .nm-dash.nm-app > .nm-fleet { margin-top: 8px; }
.nm-theme .nm-dash.nm-app > .nm-dash-foot,
.nm-theme .nm-dash.nm-app > .nm-machines,
.nm-theme .nm-dash.nm-app > .nm-activity,
.nm-theme .nm-dash.nm-app > .nm-window { margin-top: 12px; margin-bottom: 14px; }
.nm-theme .nm-dash.nm-app > .nm-window { margin-left: 10px; margin-right: 10px; }
.nm-theme .nm-dash-bar { height: 30px; border: 0; border-radius: 0; }

/* Download card (theme=nm only) — mini app window on the site downloads page */
html body .ds.ds-dl.ds-dl--nm {
  overflow: hidden;
  padding: 0 !important;
}
html body .ds.ds-dl.ds-dl--nm .ds-dl-tbar {
  border-radius: 0;
}
html body .ds.ds-dl.ds-dl--nm .ds-dl-tbar .nm-pill { margin-left: auto; }
html body .ds.ds-dl.ds-dl--nm .ds-dl-head,
html body .ds.ds-dl.ds-dl--nm .ds-dl-meta,
html body .ds.ds-dl.ds-dl--nm .ds-dl-note,
html body .ds.ds-dl.ds-dl--nm .ds-hashval,
html body .ds.ds-dl.ds-dl--nm .ds-dl-row,
html body .ds.ds-dl.ds-dl--nm .ds-dl-actions {
  padding-left: 14px;
  padding-right: 14px;
}
html body .ds.ds-dl.ds-dl--nm .ds-dl-head { padding-top: 12px; }
html body .ds.ds-dl.ds-dl--nm .ds-dl-actions { padding-bottom: 14px; }
html body .ds.ds-dl.ds-dl--nm::before { display: none; } /* title bar replaces the gold tick stripe */

/* 390: stack, 44px taps, no overflow */
@media (max-width: 640px) {
  html body main.nm-page .nm-shell,
  html body main.nm-dash-page .nm-dash-wrap { padding: 14px 10px 32px; }
  .nm-theme .nm-need { grid-template-columns: 1fr; }
  .nm-theme .nm-wheel-strip { align-items: flex-start; }
  .nm-theme .nm-tmeta { display: none; }
  html:root body main.nm-page .nm-btn { min-height: 44px !important; }
  html:root body main.nm-page .nm-btn--sm { min-height: 44px !important; }
  .nm-theme .nm-pills { gap: 6px; }
  .nm-theme .nm-lcd--banner { margin: 8px; }
  .nm-theme .nm-app-body { padding: 14px 10px 6px; }
  html body .ds.ds-dl.ds-dl--nm .ds-hashval-hex { overflow-wrap: anywhere; word-break: break-all; }
}

/* Keep hash / long lines from overflowing on NM pages */
html body main.nm-page, html body main.nm-dash-page { overflow-x: clip; }
html body main.nm-page .nm-app, html body main.nm-dash-page .nm-app { max-width: 100%; }

/* k6: solid gold app CTAs must keep dark ink even against nm-page link color */
html:root body main.nm-page a.nm-btn,
html:root body main.nm-dash-page a.nm-btn,
html:root body main.nm-page button.nm-btn,
html:root body main.nm-dash-page button.nm-btn,
html:root body .nm-theme a.nm-btn,
html:root body .nm-theme button.nm-btn {
  color: var(--nm-gold-ink) !important;
}
html:root body main.nm-page a.nm-btn--ghost,
html:root body main.nm-dash-page a.nm-btn--ghost,
html:root body main.nm-page button.nm-btn--ghost,
html:root body main.nm-dash-page button.nm-btn--ghost,
html:root body .nm-theme a.nm-btn--ghost,
html:root body .nm-theme button.nm-btn--ghost {
  color: var(--nm-muted) !important;
}
html:root body main.nm-page a.nm-btn--ghost:hover,
html:root body main.nm-dash-page a.nm-btn--ghost:hover,
html:root body main.nm-page button.nm-btn--ghost:hover,
html:root body main.nm-dash-page button.nm-btn--ghost:hover,
html:root body .nm-theme a.nm-btn--ghost:hover,
html:root body .nm-theme button.nm-btn--ghost:hover {
  color: var(--nm-gold) !important;
}

/* your-gpus-cleanup-1: collapsed leftover/superseded worker records */
.nm-theme .nm-old { border: 1px solid var(--nm-line2); border-radius: 7px; background: var(--nm-lcd); padding: 0; }
.nm-theme .nm-old > summary { cursor: pointer; list-style: none; padding: 12px 14px; font: 700 11px/1 var(--nm-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--nm-gold); }
.nm-theme .nm-old > summary::-webkit-details-marker { display: none; }
.nm-theme .nm-old > summary::before { content: "> "; color: var(--nm-gold-dim); }
.nm-theme .nm-old[open] > summary::before { content: "v "; }
.nm-theme .nm-old-note { margin: 0; padding: 0 14px 10px; color: var(--nm-tick); font: 500 12.5px/1.45 var(--nm-mono); }
.nm-theme .nm-machines--old { padding: 0 10px 12px; gap: 10px; }
.nm-theme .nm-machine.is-old { background: #0c1017; opacity: .92; }
.nm-theme .nm-old-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nm-theme .nm-old-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 10px; border: 1px solid var(--nm-line); border-radius: 4px; background: var(--nm-ink); }
.nm-theme .nm-old-name { color: var(--nm-text); font: 600 13px/1.3 inherit; min-width: 10rem; flex: 1 1 12rem; }
.nm-theme .nm-old-model { color: var(--nm-muted); font: 500 12px/1.3 var(--nm-mono); }
.nm-theme .nm-old-meta { color: var(--nm-tick); font: 500 12px/1.3 var(--nm-mono); }
