/* token terminal v4 polish (2026-11-12, overhaul): CSS only, scoped to the token stage and the section headings. No flow,
   id, script or bundle changes (trade, ticket, chart, checks and tape untouched).
   - The token's banner stays the token's own picture, graded into the page: near black behind the name and price and under the
     header controls, softer colour, fine grain. The blurred colour wash under it is cut back so the page's blacks stay black.
   - A hairline scale under the price (annotation detail, as on Portfolio).
   - Traders / Callers / Holders / Builder headings on the overhaul scale (same words). */
body.qa.qxt .ta-stage .qa-stage__glow { opacity: .2; filter: blur(52px) saturate(.7); }
/* the shell's page-wide blurred copy of the banner (the blue/yellow wash behind the header and price): darker and calmer on the
   terminal (filter only, so the shell's own fade keeps working) */
body.qa.qxt .qa-ambient__art { filter: blur(56px) saturate(.5) brightness(.42) !important; }
body.qa.qxt .ta-stage:not(.ta-noart) .qa-stage__img { filter: saturate(.82) contrast(1.06) brightness(.88); }
body.qa.qxt .ta-stage .qa-stage__frame::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 5, 5, .92) 0%, rgba(5, 5, 5, .72) 26%, rgba(5, 5, 5, .22) 58%, rgba(5, 5, 5, .12) 100%),
              linear-gradient(180deg, rgba(5, 5, 5, .72) 0%, rgba(5, 5, 5, 0) 34%, rgba(5, 5, 5, 0) 62%, rgba(5, 5, 5, .85) 100%); }
body.qa.qxt .ta-stage .qa-stage__frame::before { content: ''; position: absolute; inset: -40%; z-index: 1; pointer-events: none; opacity: .1; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* phones: the banner sits under the back / star / share / wallet buttons: keep its top dark so they read */
@media (max-width: 1099px) {
  body.qa.qxt .ta-stage .qa-stage__frame::after { background: linear-gradient(180deg, rgba(5, 5, 5, .78) 0%, rgba(5, 5, 5, .25) 42%, rgba(5, 5, 5, .2) 70%, rgba(5, 5, 5, .9) 100%); }
}

/* the price: a hairline scale under it */
body.qa.qxt .ta-quote .qa-price:not(.ta-quote-unit) { position: relative; display: inline-block; padding-bottom: 12px; font-variant-numeric: tabular-nums; }
body.qa.qxt .ta-quote .qa-price:not(.ta-quote-unit)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; pointer-events: none;
  background: linear-gradient(var(--qa-gold), var(--qa-gold)) 0 100% / 28px 1px no-repeat, linear-gradient(var(--qa-rule-2), var(--qa-rule-2)) 0 100% / 100% 1px no-repeat,
              repeating-linear-gradient(90deg, var(--qa-rule-2) 0 1px, transparent 1px 40px) 0 100% / 100% 6px no-repeat; }

/* section headings: one scale with the rest of the site (same words) */
/* auditC #20: section labels, not posters: 20 px, sentence case (same words) */
body.qa.qxt :is(#traders-h, #callers-h, #holders-h, #builder-h) { font-size: 20px; line-height: 1.2; font-weight: 700; font-stretch: 100%; letter-spacing: 0; text-transform: none; }

/* bannerfit (2026-11-12, main): the creator's 3:1 banner shown WHOLE on the token terminal (creators put text in it; a cover
   crop cut QWERTY's "The six ke…"). Terminal only, qa-stage itself unchanged: the frame becomes an exact 3:1 box and the image
   fills it exactly; the dark grade and grain stay over it. Tokens without a banner (.ta-noart) keep the blurred stage. */
body.qa.qxt .ta-stage:not(.ta-noart) .qa-stage__frame { inset: auto 0 0 auto; width: 100%; height: auto; aspect-ratio: 3 / 1; }
body.qa.qxt .ta-stage:not(.ta-noart) .qa-stage__img { left: 0; top: 0; width: 100%; height: 100%; min-width: 0; max-width: none; object-fit: contain; object-position: 50% 50%;
  transform: translate3d(0, var(--qa-par-y, 0px), 0); }
@media (max-width: 1099px) { /* phones: the whole banner across the art strip, its bottom edge at the strip's bottom */
  body.qa.qxt .ta-stage:not(.ta-noart) .qa-stage__frame { top: auto; bottom: 0; } }
@media (min-width: 1100px) { /* wide: a 3:1 plate on the right of the stage, vertically centred under the header */
  body.qa.qxt .ta-stage.qa-stage--wide:not(.ta-noart) .qa-stage__frame { width: min(912px, 60vw); top: calc(var(--qa-nav-h) + 8px); bottom: auto; right: 0; }
  body.qa.qxt .ta-stage.qa-stage--wide:not(.ta-noart) .qa-stage__frame::after {
    background: linear-gradient(90deg, rgba(5, 5, 5, .85) 0%, rgba(5, 5, 5, .35) 18%, rgba(5, 5, 5, .08) 40%, rgba(5, 5, 5, .08) 100%),
                linear-gradient(180deg, rgba(5, 5, 5, .25) 0%, rgba(5, 5, 5, 0) 25%, rgba(5, 5, 5, 0) 75%, rgba(5, 5, 5, .55) 100%); } }

/* stakev4 (2026-11-12, overhaul polish): the staking tools (/stake opens the terminal on Builder › Staking): the same words and
   controls, raised to the site's bar. Big figures on a hairline, the overhaul heading scale, full-size controls with the action
   in gold, readable lock terms. CSS only; ids, buttons and flows untouched. */
body.qa.qxt :is(#qtz, #qtzl) h2 { font-size: 18px; line-height: 1.25; font-weight: 700; font-stretch: 100%; letter-spacing: 0; text-transform: none; margin-bottom: 8px; } /* auditC #20: was a 44 px caps poster */
body.qa.qxt :is(#qtz, #qtzl) > p:not(.qtx-status) { max-width: 68ch; font-size: 15px; line-height: 1.55; color: var(--qa-tx-2); }
body.qa.qxt #qtz .qtb-now { gap: 0; margin: 22px 0 18px; box-shadow: 0 -1px 0 var(--qa-rule), 0 1px 0 var(--qa-rule); }
body.qa.qxt #qtz .qtb-now > div { padding: 16px 18px 16px 0; display: grid; gap: 6px; align-content: start; border: 0; box-shadow: none; }
body.qa.qxt #qtz .qtb-now span { font-size: 12.5px; color: var(--qa-tx-3); }
body.qa.qxt #qtz .qtb-now b { font-size: clamp(20px, 2.3vw, 30px); line-height: 1.05; font-weight: 860; font-stretch: 112%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--qa-tx); }
body.qa.qxt #qtz .qtb-now > div:first-child b { color: var(--qa-gold-hi, #e8c88c); }
body.qa.qxt :is(#qtz, #qtzl) .qtx-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
body.qa.qxt :is(#qtz, #qtzl) .qtx-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
body.qa.qxt :is(#qtz, #qtzl) :is(.qtx-row :is(input, select), .qtx-mini-input) { height: 48px; min-width: 0; flex: 1 1 180px; padding: 0 14px; font-size: 15px; border-radius: var(--qa-r-m); }
body.qa.qxt :is(#qtz, #qtzl) .qtx-mini { height: 48px; padding: 0 22px; font-size: 14.5px; font-weight: 760; border-radius: var(--qa-r-m); }
body.qa.qxt :is(#qtz, #qtzl) :is(.qtx-row, .qtx-actions:has(input)) .qtx-mini:first-of-type:not(:disabled) { background: var(--qa-gold-metal, linear-gradient(180deg, #f1dcae, #c99a52)); color: #1a1206; box-shadow: 0 10px 28px -14px rgba(232, 200, 140, .7); }
/* the lock terms: one readable block, a hairline down its side */
body.qa.qxt #qtzl .qtx-fine { max-width: 68ch; margin: 0; padding: 6px 0 6px 16px; font-size: 14px; line-height: 1.55; color: var(--qa-tx-2); box-shadow: inset 1px 0 0 var(--qa-rule-2); }
body.qa.qxt #qtzl .qtx-fine:first-of-type { margin-top: 12px; padding-top: 0; }
@media (max-width: 1099px) { body.qa.qxt #qtz .qtb-now { grid-template-columns: 1fr 1fr !important; } body.qa.qxt #qtz .qtb-now b { font-size: 20px; } body.qa.qxt :is(#qtz, #qtzl) .qtx-mini { flex: 1 1 auto; } }
body.qa.qxt #qtz .qtx-actions:has(input) { margin-top: 14px; }

/* stakev4b (2026-11-12, main): fixes on stakev4. (1) The staking terms are shown in full on phones (the bigger type had met a
   3-line clamp: "…unstake…"). (2) Big figures never break inside a value: nowrap, and on phones one figure per row at full
   width, label left, value right. */
body.qa.qxt :is(#qtz, #qtzl) .qtb-note { display: block !important; -webkit-line-clamp: unset !important; line-clamp: unset !important; -webkit-box-orient: initial !important; overflow: visible !important; max-height: none !important; text-overflow: clip !important; white-space: normal !important; }
body.qa.qxt #qtz .qtb-now b { white-space: nowrap; }
@media (max-width: 1099px) {
  body.qa.qxt #qtz .qtb-now { grid-template-columns: 1fr !important; }
  body.qa.qxt #qtz .qtb-now > div { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; padding: 14px 0; }
  body.qa.qxt #qtz .qtb-now > div + div { box-shadow: 0 -1px 0 var(--qa-rule); }
  body.qa.qxt #qtz .qtb-now b { font-size: clamp(20px, 6.4vw, 26px); text-align: right; }
}

/* auditB #31 (2026-11-12): phone token page chrome. (1) While the Buy / Sell bar shows, it takes the bottom edge alone: the
   site tab bar is hidden on the token page (the header's back and menu stay), the bar sits on the safe area and the page keeps
   room under its last row. The bar and the ticket it opens are unchanged. (2) The trade table always fits at 390 / 360: before
   the tape styling lands (or if it doesn't), the plain trades table drops its Price column and wraps instead of clipping. */
@media (max-width: 1099px) {
  body.qa.qxt.ta-token:not(.ta-sheet-open) nav.qa-tabbar { display: none; }
  body.qa.qxt.ta-token:not(.ta-sheet-open) .ta-dock { bottom: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  body.qa.qxt.ta-token:not(.ta-sheet-open) { padding-bottom: calc(var(--qa-dock-h) + 16px + env(safe-area-inset-bottom)); --qa-toast-bottom: var(--qa-dock-h); }
  body.qa.qxt.ta-token:not(.ta-sheet-open) .qa-getapp { bottom: calc(var(--qa-dock-h) + env(safe-area-inset-bottom)); }
  body.qa.qxt #qxt-pane[data-mode="trades"] table.qxt-table:not(.ta-tape) { display: table; table-layout: fixed; width: 100%; }
  body.qa.qxt #qxt-pane[data-mode="trades"] table.qxt-table:not(.ta-tape) :is(th, td):nth-child(3) { display: none; }
  body.qa.qxt #qxt-pane[data-mode="trades"] table.qxt-table:not(.ta-tape) td { white-space: normal; overflow-wrap: anywhere; }
}

/* auditC #22 (2026-11-12): quick-buy bolts are a small line icon in the text colour, not an emoji. Drawn here so the buttons'
   labels, handlers and hidden states stay exactly as they were. */
:is(.qxfd-table button.qxfd-buy, .qxt-qb, .qxt-quick .qx-bolt)::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7l1-8z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7l1-8z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* auditC #24 (2026-11-12): the Builder tab's 9-12 px faint text (builder record, market checks, the Proof report, staking notes,
   credits) reads at 13 px minimum in a readable grey. Sizes and colour only; layout, links and buttons unchanged. */
body.qa.qxt #builder :is(.qa-head__note, .qxt-builder, .qxt-builder-head, .qxt-builder-tag, .qxt-builder dt, .qxt-builder dd, .qxt-builder-note, .qxt-builder-fine,
  .qxt-checks-body, .qxt-checks-body dt, .qxt-checks-body dd, .qxt-checks-note, .qxt-data-health b, .qxt-data-health small, .qxt-coverage-gap, .qtb-note, .qxt-tools span, .qxt-credits) { font-size: 13px; line-height: 1.5; }
body.qa.qxt #builder :is(.qxt-builder-tag, .qxt-builder dt, .qxt-checks-body dt) { text-transform: none; letter-spacing: 0; }
body.qa.qxt #builder :is(.qa-head__note, .qxt-builder-head, .qxt-builder dt, .qxt-builder-note, .qxt-builder-fine, .qxt-checks-body dt, .qxt-checks-note, .qtb-note, .qxt-credits) { color: var(--qa-tx-2); }
body.qa.qxt #builder .qpr { font-size: 13px; }
body.qa.qxt #builder .qpr :is(p, span, code, dt, dd, summary, small, li, h4, h5, a:not(.qa-btn), .qpr-evidence, .qpr-category, .qpr-detail) { font-size: 13px; }
body.qa.qxt #builder .qpr :is(.qpr-meta dt, .qpr-check-status) { text-transform: none; letter-spacing: 0; }
/* the ticket's 3-line notice clamp (qx-ticket-notices.css) also caught these Builder notes; at 13 px they need their full height */
body.qa.qxt #builder :is(.qxt-data-health, .qxt-builder-note, .qxt-checks-note, .qxt-coverage-gap, .qtb-note, .qpr [class*="-status"], .qpr [role="status"]):not([hidden]) { max-height: none !important; -webkit-line-clamp: unset !important; line-clamp: unset !important; overflow: visible !important; }
body.qa.qxt #builder .qxt-data-health:not([hidden]) { display: flex !important; }
body.qa.qxt #builder :is(.qxt-builder-note, .qxt-checks-note, .qxt-coverage-gap, .qtb-note):not([hidden]) { display: block !important; }
