/* Community boards (/board) and the board pieces shown on profiles, in System A.
   A board is a live room for its token: the token's art lights the page, its market moves in the strip, faces sit beside every post.
   Open floor: hairlines between posts, no boxed cards, no pills, no monospace, no italics. Requires /qx-a/tokens.css and components.css. */
.qb [hidden] { display: none !important; }
.qb { padding-bottom: 24px; }

/* ---------- the room's header ---------- */
.qb-hero { position: relative; padding: 0 0 6px; }
.qb-banner { position: relative; height: 132px; margin: 0 calc(var(--qa-pad) * -1); }
.qb-banner .qa-stage__frame { -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 92%); mask-image: linear-gradient(180deg, #000 40%, transparent 92%); }
.qb-hero-main { position: relative; z-index: 2; display: grid; gap: 14px; padding-top: 22px; }
.qb-hero-main.has-banner { margin-top: -26px; padding-top: 0; }
.qb-ident { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 14px; }
.qb-ident .qa-coin { display: block; width: 64px; height: 64px; }
.qb-coin-fallback .qb-token-icon, .qb-coin-fallback .qb-mark { display: block; width: 64px; height: 64px; border-radius: 50%; }
.qb-coin-fallback .qb-token-logo { width: 64px; height: 64px; border-radius: 50%; }
.qb-kicker { font-size: 12.5px; font-weight: 650; color: var(--qa-gold); }
.qb-hero h1 { margin: 2px 0 0; font-size: 36px; line-height: 1; font-weight: 840; font-stretch: var(--qa-wd-display); letter-spacing: var(--qa-track-display); overflow-wrap: anywhere; }
.qb-name { margin-top: 4px; font-size: 14px; color: var(--qa-tx-2); }
.qb-name:empty { display: none; }
.qb-meta { grid-area: auto; font-size: 13.5px; }
.qb-meta #qb-trust { display: inline-flex; gap: 8px; }
.qb-meta #qb-trust:empty { display: none; }
.qb-gate-chip { color: var(--qa-tx-2); }
.qb-gate-chip.is-gated { color: var(--qa-gold-hi); }
.qb-safety { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; }
.qb-flag { display: inline-flex; align-items: center; gap: 6px; color: var(--qa-warn); font-weight: 600; }
.qb-flag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.qb-flag.is-clear { color: var(--qa-buy); }
.qb-actions-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.qb-actions-top .qa-btn--primary { flex: 1 1 auto; }
.qb-token-contract { margin: 0; font-size: 13px; color: var(--qa-tx-3); overflow-wrap: anywhere; }
.qb-stats { position: relative; z-index: 2; margin: 16px calc(var(--qa-pad) * -1) 0; }
.qb-room { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px 0 4px; }
.qb-room .qa-ava-stack .cx-face + .cx-face { margin-left: -9px; }
.qb-room .qa-ava-stack .qa-ava { box-shadow: 0 0 0 2.5px var(--qa-floor); }
.qb-room-t { display: grid; font-size: 13px; color: var(--qa-tx-3); }
.qb-room-t b { font-size: 14.5px; font-weight: 720; color: var(--qa-tx); }

/* ---------- layout ---------- */
.qb-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--qa-section-gap) 0; padding-top: 18px; }
.qb-main { min-width: 0; display: grid; gap: 0; }
.qb-side { display: grid; gap: 24px; align-content: start; }
.qb-h2 { margin: 0; font-size: var(--qa-fs-display-s); line-height: 1; font-weight: 820; font-stretch: var(--qa-wd-head); letter-spacing: var(--qa-track-head); }

/* ---------- composer: a line on the floor that grows ---------- */
.qb-compose { display: grid; gap: 10px; padding: 14px 0 16px; box-shadow: 0 -1px 0 var(--qa-rule), 0 1px 0 var(--qa-rule); }
.qb-compose:focus-within { box-shadow: 0 -1px 0 var(--qa-rule), 0 2px 0 var(--qa-gold); }
.qb-compose textarea { width: 100%; min-height: 68px; border: 0; padding: 4px 0; background: transparent; color: var(--qa-tx); font: inherit; font-size: 16px; line-height: 1.45; resize: vertical; outline: none; }
.qb-compose textarea::placeholder { color: var(--qa-tx-3); }
.qb-compose.is-small { padding: 10px 0 12px; margin-top: 10px; }
.qb-compose.is-small textarea { min-height: 48px; font-size: 15px; }
.qb-compose-mode { display: flex; flex-wrap: wrap; gap: 8px; }
.qb-call-toggle { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--qa-wash-2); color: var(--qa-tx-2); font: inherit; font-size: 13.5px; font-weight: 720; cursor: pointer; }
.qb-call-toggle::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--qa-rule-2); }
.qb-call-toggle[aria-pressed="true"] { color: var(--qa-gold-hi); background: var(--qa-gold-wash); }
.qb-call-toggle[aria-pressed="true"]::before { background: var(--qa-gold); box-shadow: var(--qa-glow-gold); }
.qb-call-note, .qb-gate-note, .qb-help { margin: 0; font-size: 13px; line-height: 1.5; color: var(--qa-tx-3); }
.qb-gate-note.is-short { color: var(--qa-warn); }
.qb-compose-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; }
.qb-who { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--qa-tx-3); max-width: 42ch; }
.qb-who b { color: var(--qa-tx); font-weight: 700; }
.qb-who .qb-mark { width: 18px; height: 18px; border-radius: 50%; }
.qb-compose-right { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; }
.qb-count { font-size: 12px; color: var(--qa-tx-3); }
.qb-count.is-over { color: var(--qa-sell); }
.qb-ann { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--qa-tx-2); }
.qb-link { background: none; border: 0; padding: 0; color: var(--qa-gold); font: inherit; font-weight: 650; cursor: pointer; }

/* ---------- the feed ---------- */
.qb-feed, .qb-pinned, .qb-linked-call { padding-top: 26px; }
.qb-feed-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 4px; box-shadow: 0 1px 0 var(--qa-rule); }
.qb-feed-head .qb-h2 { padding-bottom: 12px; }
.qb-orders { display: flex; align-items: center; gap: 0; }
.qb-order { position: relative; height: 40px; padding: 0 12px; border: 0; background: none; color: var(--qa-tx-3); font: inherit; font-size: 14.5px; font-weight: 680; cursor: pointer; }
.qb-order:last-child { padding-right: 0; }
.qb-order[aria-pressed="true"], .qb-order[aria-selected="true"] { color: var(--qa-tx); }
.qb-order[aria-pressed="true"]::after, .qb-order[aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--qa-gold); box-shadow: var(--qa-glow-gold); }
.qb-order:last-child[aria-pressed="true"]::after { right: 0; }
.qb-live { display: flex; align-items: center; gap: 6px; padding: 10px 0; font-size: 13.5px; font-weight: 650; color: var(--qa-gold-hi); box-shadow: 0 1px 0 var(--qa-rule); animation: qa-row-in var(--qa-t-enter) var(--qa-ease-out) both; }
.qb-empty { padding: 24px 0; }

/* a post: the face in the gutter, the words, then the result */
.qb-post { position: relative; padding: 18px 0 12px 58px; box-shadow: 0 1px 0 var(--qa-rule); scroll-margin-top: 120px; }
.qb-post-head { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; min-height: 22px; font-size: 13px; color: var(--qa-tx-3); }
.qb-post-head > .cx-face { position: absolute; left: 0; top: 18px; }
/* the shared verified identity (qx-member-identity.mjs): the picture sits in the gutter, then the name, wallet and chips */
.qb .qb-post-head .qmi { display: inline-flex; align-items: baseline; gap: 8px; max-width: 100%; }
.qb .qb-post-head .qmi-avatar { position: absolute; left: 0; top: 18px; display: grid; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.qb .qb-post-head .qmi-avatar > *, .qb .qb-post-head .qmi-avatar > .qb-mark { grid-area: 1 / 1; width: 46px; height: 46px; border-radius: 50%; }
.qb .qb-post.is-reply .qb-post-head .qmi-avatar, .qb .qb-post.is-reply .qb-post-head .qmi-avatar > * { width: 34px; height: 34px; }
.qb .qb-post.is-reply .qb-post-head .qmi-avatar { top: 10px; }
.qb .qb-post-head .qmi-words { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.qb .qb-post-head .qmi-name { max-width: none; font-size: 15.5px; font-weight: 740; color: var(--qa-tx); letter-spacing: -.01em; }
.qb .qb-post-head .qmi-wallet { font-family: var(--qa-sans); font-size: 13px; color: var(--qa-tx-3); }
.qb .qb-post-head .qmi-name[hidden] + .qmi-wallet { font-size: 15.5px; font-weight: 740; color: var(--qa-tx); letter-spacing: -.01em; }
.qb .qb-post-head a.qmi:hover .qmi-name, .qb .qb-post-head a.qmi:hover .qmi-wallet { color: var(--qa-gold-hi); }
.qa .qma-chips { display: inline-flex; flex-wrap: wrap; gap: 2px 10px; margin: 0; }
.qa .qma-chip { padding: 0; border: 0; border-radius: 0; background: none; font-size: 12.5px; font-weight: 680; color: var(--qa-tx-2); }
.qa .qma-chip[data-account-kind="x"] { color: var(--qa-gold-hi); }
.qb .qb-author { font-size: 15.5px; font-weight: 740; color: var(--qa-tx); letter-spacing: -.01em; }
.qb .qb-author:hover { text-decoration: underline; text-underline-offset: 3px; }
.qb-time { margin-left: auto; font-size: 13px; color: var(--qa-tx-3); }
.qb-badge, .qb-kind { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; font-size: 12.5px; font-weight: 650; color: var(--qa-tx-2); text-decoration: none; }
.qb-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.qb-badge.is-creator, .qb-badge.is-verified, .qb-kind { color: var(--qa-gold-hi); }
.qb-badge.is-holder, .qb-badge.is-early, .qb-badge.is-staker { color: var(--qa-buy); }
.qb-kind::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--qa-gold); box-shadow: var(--qa-glow-gold); }
.qb-text { margin: 6px 0 0; color: var(--qa-tx); font-size: 15.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.qb-text a { color: var(--qa-gold-hi); text-decoration: underline; text-underline-offset: 3px; }
.qb-call { margin-top: 4px; }
.qb-call-proof { margin-top: 10px; font-size: 12.5px; color: var(--qa-tx-3); }
.qb-call-proof summary { cursor: pointer; font-weight: 650; }
.qb-call-proof p { margin: 6px 0 0; overflow-wrap: anywhere; }
.qb-call-ref { display: inline-flex; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--qa-buy); }
.qb-call-ref:hover { text-decoration: underline; text-underline-offset: 3px; }
.qb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 2px; margin: 10px 0 0 -10px; }
.qb-react, .qb-act { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--qa-tx-3); font: inherit; font-size: 13.5px; font-weight: 640; cursor: pointer; transition: color var(--qa-t-quick) var(--qa-ease), background-color var(--qa-t-quick) var(--qa-ease); }
.qb-react:hover, .qb-act:hover { background: var(--qa-wash); color: var(--qa-tx-2); }
.qb-react b { font-weight: 760; color: var(--qa-tx); }
.qb-react.is-on { color: var(--qa-gold-hi); }
.qb-react[data-react="doubt"].is-on { color: var(--qa-warn); }
.qb-glyph { font-size: 12px; }
.qb-react.is-pop .qb-glyph { animation: qa-pop .45s var(--qa-ease-out); }
.qb .qb-actions .qcf-button { height: 34px; background: none; color: var(--qa-tx-3); padding: 0 10px; }
.qb .qb-actions .qcf-button:hover { background: var(--qa-wash); color: var(--qa-tx-2); }
.qb .qb-actions .qcf-button[aria-pressed="true"] { box-shadow: none; color: var(--qa-gold-hi); }
.qb-report { position: relative; }
.qb-report summary { list-style: none; }
.qb-report summary::-webkit-details-marker { display: none; }
.qb-report-menu { position: absolute; z-index: 20; right: 0; top: 38px; min-width: 210px; display: grid; padding: 8px; border-radius: 18px; background: var(--qa-slab); box-shadow: var(--qa-slab-edge), var(--qa-slab-shadow); }
.qb-report-menu p { margin: 4px 8px 6px; font-size: 12.5px; color: var(--qa-tx-3); }
.qb-report-menu .qb-act { justify-content: flex-start; color: var(--qa-tx-2); }
.qb-post > .qb-status { margin: 4px 0 0; }
.qb-hidden-note { margin: 6px 0 0; font-size: 13.5px; color: var(--qa-tx-3); }
.qb-post.is-hidden .qb-text { color: var(--qa-tx-2); }
.qb-post.is-ann .qb-text { font-size: 16.5px; }
.qb-post.is-pinned::after { content: "Pinned"; position: absolute; right: 0; top: 18px; font-size: 12px; font-weight: 700; color: var(--qa-gold); }
.qb-post.is-pinned .qb-time { margin-right: 56px; }
.qb-replies { margin-top: 6px; padding-left: 14px; box-shadow: inset 2px 0 0 var(--qa-rule-2); }
.qb-post.is-reply { padding: 10px 0 6px 46px; box-shadow: none; }
.qb-post.is-reply .qb-post-head > .cx-face { top: 10px; }
.qb-post.is-reply .qb-text { font-size: 14.5px; color: var(--qa-tx-2); }
.qb-more { margin: 14px 0 0; }
.qb-published { padding: 20px 0; box-shadow: 0 1px 0 var(--qa-rule); }
.qb-published h2 { margin: 6px 0; font-size: var(--qa-fs-display-s); font-weight: 820; font-stretch: var(--qa-wd-head); letter-spacing: var(--qa-track-head); }
.qb-published p { color: var(--qa-tx-2); }
.qb-published .qa-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.qb-linked-call > h2 { font-size: var(--qa-fs-display-s); font-weight: 820; font-stretch: var(--qa-wd-head); letter-spacing: var(--qa-track-head); margin: 0 0 4px; }
.qb-linked-call { box-shadow: inset 0 0 0 0 transparent; }
.qb-linked-call .qb-post { background: linear-gradient(90deg, var(--qa-gold-wash), transparent 70%); }

/* ---------- the rail: how the board works, creator tools ---------- */
.qb-card { padding: 0; border: 0; background: none; }
.qb-card h2 { margin: 0 0 12px; font-size: var(--qa-fs-display-s); font-weight: 820; font-stretch: var(--qa-wd-head); letter-spacing: var(--qa-track-head); }
.qb-how ul { display: grid; gap: 0; }
.qb-how li { padding: 11px 0; font-size: 13.5px; line-height: 1.5; color: var(--qa-tx-2); box-shadow: 0 1px 0 var(--qa-rule-row); }
.qb-how li:first-child { box-shadow: 0 -1px 0 var(--qa-rule), 0 1px 0 var(--qa-rule-row); }
.qb-how li b { color: var(--qa-tx); font-weight: 720; }
.qb-gate-form { display: grid; gap: 8px; }
.qb-gate-form label { font-size: 12.5px; font-weight: 600; color: var(--qa-tx-3); }
.qb-gate-form > div { display: flex; gap: 10px; align-items: center; box-shadow: 0 1px 0 var(--qa-rule); }
.qb-gate-form input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--qa-tx); font: inherit; font-size: 18px; font-weight: 680; padding: 8px 0; outline: none; }

/* ---------- board directory (no board selected) and shared pieces ---------- */
.qb-picker-card { padding-top: 22px; }
.qb-picker-card h2, .qb .qa-section-head h2 { font-size: var(--qa-fs-display-s); font-weight: 820; font-stretch: var(--qa-wd-head); letter-spacing: var(--qa-track-head); margin: 0 0 6px; }
.qb .qa-section { padding-top: var(--qa-section-gap); }
.qb .qa-section-head p { font-size: 14px; color: var(--qa-tx-3); margin-bottom: 10px; }
.qb .qa-lede { font-size: 15px; color: var(--qa-tx-2); max-width: 52ch; }
.qb .qa-launch-links { display: flex; flex-wrap: wrap; gap: 10px; }
.qb-tabbed .qb-tabs { box-shadow: 0 1px 0 var(--qa-rule); }
.qb-tabbed .qb-order:first-child { padding-left: 0; }
.qb-tabbed .qb-order:first-child[aria-pressed="true"]::after { left: 0; }
.qb-rows { display: grid; }
.qb-row { display: grid; gap: 2px; padding: 12px 0; box-shadow: 0 1px 0 var(--qa-rule-row); color: inherit; }
.qb-row:hover { background: var(--qa-wash); }
.qb-row-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 15px; }
.qb-row-name b { font-weight: 740; }
.qb-row-name code { color: var(--qa-tx-3); font-weight: 600; }
.qb-row-ann { font-size: 13.5px; color: var(--qa-tx-2); }
.qb-row-meta { font-size: 12.5px; color: var(--qa-tx-3); }
.qb-outside, .qb-ours { font-size: 12.5px; color: var(--qa-tx-3); }
.qb-token-icon { display: inline-grid; flex: none; width: 24px; height: 24px; border-radius: 50%; overflow: hidden; }
.qb-token-icon > * { grid-area: 1 / 1; }
.qb-token-logo { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.qb-mark { display: block; width: 24px; height: 24px; border-radius: 50%; }
.qb-badgeset { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.qx-first-call { display: grid; gap: 8px; justify-items: start; padding: 22px 0; }

/* ---------- desktop ---------- */
@media (min-width: 1100px) {
  .qb-banner { position: absolute; inset: 0 0 auto 0; height: 300px; margin: 0; }
  .qb-banner .qa-stage__glow { inset: 0 -5% -40% 30%; }
  .qb-banner .qa-stage__frame { inset: 0 0 0 auto; width: min(912px, 68%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%), linear-gradient(180deg, #000 70%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 30%), linear-gradient(180deg, #000 70%, transparent); mask-composite: intersect; }
  .qb-banner .qa-stage__img { height: 106%; min-width: 106%; object-position: 50% 50%; }
  .qb-hero-main { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 32px; padding-top: 40px; }
  .qb-hero-main.has-banner { margin-top: 0; padding-top: 150px; }
  .qb-ident { grid-column: 1; }
  .qb-ident .qa-coin { width: 84px; height: 84px; }
  .qb-coin-fallback .qb-token-icon, .qb-coin-fallback .qb-mark, .qb-coin-fallback .qb-token-logo { width: 84px; height: 84px; }
  .qb-hero h1 { font-size: 56px; }
  .qb-meta { grid-column: 1; }
  .qb-actions-top { grid-column: 2; grid-row: 1 / span 2; align-self: end; flex-wrap: nowrap; }
  .qb-actions-top .qa-btn--primary { flex: none; height: 52px; padding: 0 26px; font-size: 16px; border-radius: var(--qa-r-btn); }
  .qb-stats { margin: 24px 0 0; box-shadow: 0 -1px 0 var(--qa-rule), 0 1px 0 var(--qa-rule); }
  .qb-stats .qa-stat { padding-top: 12px; padding-bottom: 12px; }
  .qb-stats .qa-stat:first-child { padding-left: 0; }
  .qb-layout { grid-template-columns: minmax(0, 1fr) 360px; column-gap: 56px; align-items: start; padding-top: 26px; }
  .qb-side { position: sticky; top: calc(var(--qa-nav-h) + 20px); }
  .qb-actions { flex-wrap: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .qb-live { animation: none; } }
