/* QAddress: page layout on top of the bb84.sh kit (theme/bb84-theme.css). No inline styles anywhere
   (the page's Content-Security-Policy refuses them). */
[hidden] { display: none !important; }
html, body { margin: 0; }
body.bb84-ui { min-height: 100vh; }
.qa-shell { width: min(560px, 100%); margin: 0 auto; padding: 0 16px 24px; display: flex; flex-direction: column; min-height: 100vh; }
.qa-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 0 14px; }
.bb84-ui .qa-header .bb84-brand { font-size: 21px; text-decoration: none; }
.bb84-ui .qa-header .bb84-brand img { width: 34px; height: 34px; }
.qa-header-right { display: flex; align-items: center; gap: 8px; }
.qa-net { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 11px; border: 1px solid #c2dced; border-radius: 999px; background: #ffffffb8; font-size: 11px; white-space: nowrap; }
.qa-net:empty { display: none; }
.qa-tabs { padding: 4px 0 12px; }
.qa-main { flex: 1; display: grid; gap: 14px; align-content: start; }
.qa-footer { display: flex; justify-content: space-between; gap: 12px; padding: 22px 2px 0; font-size: 11px; color: var(--bb84-muted); }
.bb84-ui .qa-footer .bb84-text-link { font-size: 11px; }
.qa-error { margin-bottom: 12px; }
.qa-loading { display: grid; place-items: center; padding: 80px 0; }

.bb84-ui .bb84-panel { padding: 22px; }
.qa-narrow { max-width: 460px; width: 100%; justify-self: center; }
.qa-center { display: grid; justify-items: center; text-align: center; gap: 12px; }
.qa-center-text { text-align: center; }
.qa-form { display: grid; gap: 14px; }
.qa-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qa-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.qa-actions .bb84-button { flex: 1 1 160px; }
.qa-inline { display: flex; gap: 8px; }
.qa-inline .bb84-input { flex: 1; }
.qa-muted { color: var(--bb84-muted); font-size: 13px; line-height: 1.55; }
.qa-lead { color: var(--bb84-muted); font-size: 15px; line-height: 1.6; }
.qa-mono, .bb84-ui .qa-mono { font-family: var(--bb84-mono); font-size: 12px; }
.qa-link { border: 0; padding: 0; background: none; color: var(--bb84-cobalt); text-decoration: underline; font-size: inherit; }

.qa-hero { display: grid; gap: 14px; }
.qa-hero-logo { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 8px 22px #1769d133; }
.bb84-ui .qa-hero h1 { font-size: clamp(27px, 5vw, 36px); }

.qa-list { margin: 0; padding: 0; list-style: none; counter-reset: qa; display: grid; gap: 12px; }
.qa-list li { counter-increment: qa; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 13px; line-height: 1.55; }
.qa-list li::before { content: counter(qa); width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #c2dced; border-radius: 50%; background: #fbfdff; font: 11px var(--bb84-mono); color: var(--bb84-cobalt); }
.qa-list li.qa-done::before { content: "✓"; background: #edf8f4; border-color: #c4e4d5; color: #246651; }
.bb84-ui .bb84-panel h3 { margin-bottom: 2px; }
.bb84-ui .qa-list + .qa-actions, .bb84-ui h3 + .qa-list { margin-top: 10px; }

.qa-card { display: grid; gap: 14px; }
.bb84-ui .bb84-badge svg { width: 13px; height: 13px; margin-right: 5px; }
.qa-address { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 10px 10px 10px 13px; border: 1px solid #c2dced; border-radius: 10px; background: #fbfdff; }
.qa-address code { flex: 1; min-width: 0; font: 12.5px/1.45 var(--bb84-mono); letter-spacing: -.02em; overflow-wrap: anywhere; }
.qa-address-big { display: block; padding: 12px 14px; border: 1px solid #c2dced; border-radius: 10px; background: #fbfdff; font: 14px/1.5 var(--bb84-mono); overflow-wrap: anywhere; text-align: center; }
.qa-balance-row { display: flex; align-items: center; justify-content: space-between; }
.qa-balance { font-size: 38px; font-weight: 500; letter-spacing: -.045em; line-height: 1.1; }
.qa-balance small { font-size: 16px; font-weight: 400; color: var(--bb84-muted); letter-spacing: 0; margin-left: 6px; }

.qa-icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; flex-shrink: 0; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--bb84-muted); cursor: pointer; text-decoration: none; }
.qa-icon-btn:hover { background: #e3f1fc; color: var(--bb84-ink); }
.bb84-ui .qa-icon-btn svg { width: 18px; height: 18px; }
.bb84-ui .bb84-button svg { width: 17px; height: 17px; }

.qa-tokens { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.qa-tokens li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--bb84-line); font-size: 13px; }
.qa-tokens li:last-child { border-bottom: 0; }
.qa-token-symbol { font-weight: 500; }
.qa-token-amount { font-family: var(--bb84-mono); font-size: 13px; }
.qa-muted-link { color: var(--bb84-muted); font: 11px var(--bb84-mono); }

.qa-activity { list-style: none; margin: 12px 0 0; padding: 0; display: grid; }
.qa-activity li { display: grid; grid-template-columns: 10px auto 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--bb84-line); font-size: 12px; }
.qa-activity li:last-child { border-bottom: 0; }
.qa-activity .qa-muted { text-align: right; font-size: 12px; }
.qa-mono-link { font: 12px var(--bb84-mono); color: var(--bb84-cobalt); }
.qa-dot { width: 8px; height: 8px; border-radius: 50%; }
.qa-dot--ok { background: #2a8565; }
.qa-dot--bad { background: #a02c4a; }

.qa-dl { margin: 0; }
.qa-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; }
.qa-check input { flex-shrink: 0; margin-top: 1px; }
.qa-details summary { cursor: pointer; font-size: 13px; color: var(--bb84-muted); }
.qa-details[open] { display: grid; gap: 8px; }
.bb84-ui .qa-danger { color: #a02c4a; }
.bb84-ui .qa-danger-fill { background: #a02c4a; border-color: #b8405e; }

.qa-qr { display: grid; place-items: center; padding: 6px; }
.qa-qr svg { width: 220px; height: 220px; border-radius: 10px; }
.qa-result { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid #c4e4d5; border-radius: 10px; background: #edf8f4; font-size: 14px; }
.qa-result svg { color: #246651; }

.qa-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 9px 16px; border-radius: 999px; background: #102f57; color: #fff; font: 13px var(--bb84-font); box-shadow: 0 8px 24px #102f5740; z-index: 10; }
body.qa-busy { cursor: progress; }
.bb84-ui .bb84-button .bb84-spinner-ring { width: 16px; height: 16px; }
