/* Shared appearance controls for Mint, Docs and authorization pages. */
:root{--ui-bg:#fafbfd;--ui-panel:#fff;--ui-inset:#f4f7fa;--ui-text:#182231;--ui-muted:#58687d;--ui-border:#dce3ec;--ui-accent:#245b48;--ui-success-bg:#edf5f1;--ui-success:#285f49;--ui-focus:#426d9f}
html[data-theme="dark"]{color-scheme:dark;--ui-bg:#0c111a;--ui-panel:#141c28;--ui-inset:#1b2635;--ui-text:#e5ecf6;--ui-muted:#a6b6cb;--ui-border:#334257;--ui-accent:#8bd7b5;--ui-success-bg:#163c30;--ui-success:#a3e5c7;--ui-focus:#94bbef;--muted:#a6b6cb;--line:#334257;--surface:#141c28;--green:#8bd7b5;background:var(--ui-bg);color:var(--ui-text)}
.ui-preferences{display:flex;align-items:center;gap:8px;flex-shrink:0;font:600 12px/1.3 "Nunito Sans",system-ui,sans-serif}
.language-switch{display:flex;align-items:center;border:1px solid var(--ui-border);border-radius:9px;padding:3px;background:var(--ui-panel)}
.ui-preferences button{display:inline-flex;align-items:center;justify-content:center;margin:0;min-height:30px;padding:5px 8px;border:0;border-radius:6px;background:transparent;color:var(--ui-muted);font:inherit;cursor:pointer}
.ui-preferences button[aria-pressed="true"]{background:var(--ui-inset);color:var(--ui-text)}
.ui-preferences .theme-toggle{width:36px;min-height:38px;border:1px solid var(--ui-border);border-radius:9px;background:var(--ui-panel);color:var(--ui-text)}
.theme-symbol{font-size:21px;line-height:1}
.ui-preferences button:hover{color:var(--ui-text);background:var(--ui-inset)}
.ui-preferences button:focus-visible{outline:2px solid var(--ui-focus);outline-offset:3px}
.preferences-bar{display:flex;justify-content:flex-end;margin-bottom:24px}
/* Balance the header columns, then give desktop navigation a slight left offset. */
.header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);height:96px;gap:24px}
.header nav{justify-content:center;gap:30px;margin:0;width:auto}
@media(min-width:921px){.header nav{transform:translateX(-24px)}}
@media(min-width:801px) and (max-width:920px){.header nav{transform:translateX(-4px)}}
.header .nav-link{font-size:17px;font-weight:800;white-space:nowrap}
.header .brand{justify-self:start}
.header-actions{justify-self:end;margin:0;gap:10px}
.header-actions .network{display:inline-flex}
.header-actions .button{white-space:nowrap}
.header-actions .social-x{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:38px;height:38px;border:1px solid var(--ui-border);border-radius:9px;background:var(--ui-panel);color:var(--ui-text)}
.header-actions .social-x svg{display:block;width:17px;height:17px;fill:currentColor;stroke:none}
.header-actions .social-x:hover{background:var(--ui-inset)}
.header-actions .social-x:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.supply-card{padding:32px 32px 28px}
.supply-heading .eyebrow{font-size:12px;letter-spacing:.13em}
.supply-heading h2{font-size:38px;line-height:1.25;margin:8px 0}
.supply-card .contract-line{font-size:14px;gap:12px}
.supply-card .agents-stat{min-width:200px;gap:8px}
.supply-card .agents-stat>span{font-size:14px}
.supply-card .agents-stat strong{font-size:40px}
.supply-card .agents-stat small{font-size:12px;line-height:1.6}
.supply-card .progress-topline{font-size:14px;margin-top:30px}
.supply-card .supply-progress{height:16px}
.supply-card .progress-legend,.supply-card .progress-legend strong{font-size:14px;line-height:1.6}
html[lang="en"] .identity-strip{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) auto;gap:12px;align-items:center}
html[lang="en"] .identity-strip .rescan-button{grid-column:auto;justify-self:center;max-width:132px;width:auto}
html[lang="en"] .identity-status-label,html[lang="en"] .status-title strong,html[lang="en"] .receiving-line{white-space:normal}
html[lang="en"] .section-heading{flex-wrap:wrap}
html[lang="en"] .quiz-counts strong{font-size:25px}
html[lang="en"] .steps li{padding:0 4px}
html[lang="en"] .button{line-height:1.5}
html[lang="en"] .docs-toc a{font-size:14px}
html[lang="en"] .doc-section .table-scroll{overflow-x:auto}
html[lang="en"] .metric strong>span{margin-left:4px}
html[lang="en"] .receiving-line>span:first-child{margin-right:4px}
.agent-connect-body,.binding-panels{scrollbar-color:#9aa9bc transparent;scrollbar-width:thin}
html[data-theme="dark"] body{background:var(--ui-bg);color:var(--ui-text)}
html[data-theme="dark"] .header{background:#141c28f5;border-color:var(--ui-border)}
html[data-theme="dark"] :is(.brand,.brand span,h1,h2,h3,h4,.hero h1 span,.nav-link.active,.status-title strong,#receiverShort,.costs dd,.toc-facts strong,.doc-facts strong,.compact-flow strong,.agent-step-title h3){color:var(--ui-text)}
html[data-theme="dark"] :is(.nav-link,.network,.microcopy,.eyebrow,.muted,.field-label,.legend-label,.contract-line,.progress-topline,.agents-stat>span,.agents-stat small,.identity-status-label,.receiving-line,.quiz-counts span,.quiz-counts small,.custom-fee,.custom-quantity,.fee-heading>span,.text-link,.footer,.service-details,.binding-intro,.binding-complete p,.docs-hero p,.docs-hero h1 span,.doc-section p,.doc-section td,.doc-section th,.doc-facts span,.compact-flow span,.toc-facts,.agent-connect-lead,.agent-copy-row>span,.agent-scope small,.agent-code-step>p,.agent-code-step [role="status"],.agent-code-tip,.agent-client-help,.agent-client-help p,.binding-stepper li,dt){color:var(--ui-muted)}
html[data-theme="dark"] :is(.card,.binding-dialog,.docs-toc,.doc-section,.agent-code-step,main>section){background:var(--ui-panel);color:var(--ui-text);border-color:var(--ui-border)!important;box-shadow:none}
html[data-theme="dark"] :is(.button,button,.network,select,textarea,.choice-group label>span){background:var(--ui-panel);border-color:var(--ui-border);color:var(--ui-text)}
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]){background:var(--ui-panel);border-color:var(--ui-border);color:var(--ui-text)}
html[data-theme="dark"] :is(.button,button):hover:not(:disabled){background:var(--ui-inset);border-color:#5c7391}
html[data-theme="dark"] .button.primary{background:#dce8f6;color:#132034;border-color:#dce8f6}
html[data-theme="dark"] .button.primary:hover:not(:disabled){background:#fff;border-color:#fff}
html[data-theme="dark"] :is(.icon-button,.theme-toggle){background:transparent;color:var(--ui-muted)}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:#94a5bc;opacity:1}
html[data-theme="dark"] input[type="checkbox"]{accent-color:#8ecfac}
html[data-theme="dark"] :is(.choice-group input:checked+span){background:#2b3d52;color:#f3f7fc;border-color:#99b9df;box-shadow:inset 0 0 0 .5px #99b9df}
html[data-theme="dark"] :is(.identity-summary,.identity-icon,.step-marker,.identity-card .step-marker,.pairing-box,.remote-connect-card,.doc-callout,.doc-cards>div,.endpoint-card,.doc-flow>li>span,.agent-connect-step,.agent-client-help code,pre,.address-block,.small-badge,.status-badge,.binding-action-status,.progress-panel,.binding-stepper [data-binding-marker],thead){background:var(--ui-inset);border-color:var(--ui-border);color:var(--ui-muted)}
html[data-theme="dark"] :is(.identity-strip,.btc-status,.quiz-panel,.quiz-counts>div:first-child,.costs,.mint-amount,.binding-step,.binding-guide,.binding-dialog-head,.binding-stepper,.agent-client-help,.agent-code-step>p+p,.table-scroll,th,td,.doc-facts>div,.compact-flow li,.toc-facts,.doc-more,.docs-hero,.docs-toc .back-mint,.footer){border-color:var(--ui-border)}
html[data-theme="dark"] .doc-note{color:var(--ui-muted)!important;border-color:var(--ui-border)}
html[data-theme="dark"] :is(.doc-callout strong,.doc-more summary,.agent-client-help h4,.agent-code-step>p+p){color:var(--ui-text)}
html[data-theme="dark"] :is(.agent-scope span,.quiz-panel>.section-heading>.small-badge,.small-badge.valid,.bot-authorized,.completion-check,.identity-card .steps li.done .step-marker,.binding-stepper .is-done){background:var(--ui-success-bg);color:var(--ui-success);border-color:#376653}
html[data-theme="dark"] .bot-authorized>strong{color:var(--ui-success)}
html[data-theme="dark"] #docs-difference :is(th,td):nth-child(2){background:#1a2432;color:var(--ui-muted)}
html[data-theme="dark"] #docs-difference th:nth-child(3){background:#245b48;color:#f2fff8}
html[data-theme="dark"] #docs-difference td:nth-child(3){background:#163c30;color:#b4e7cf;border-color:#376653}
html[data-theme="dark"] .bar-track{fill:#2c3a4d}
html[data-theme="dark"] .bar-confirmed{fill:#b5cee9}
html[data-theme="dark"] .dot.confirmed{background:#b5cee9}
html[data-theme="dark"] .dot.remaining{background:#465b76}
html[data-theme="dark"] :is(.error-banner,.binding-action-status.has-error){color:#ffb9b9;background:#3c222b;border-color:#82505b}
html[data-theme="dark"] :is(#quantityNotice.warning,#feeNotice.warning,.doc-callout.warning strong){color:#f0c18e}
html[data-theme="dark"] .doc-callout.warning{background:#382c1e;border-color:#7b6040}
html[data-theme="dark"] .doc-callout.warning p{color:#e8c69f}
html[data-theme="dark"] .identity-card .steps li{color:var(--ui-muted)}
html[data-theme="dark"] :is(.identity-card .steps,.binding-stepper) li:not(:last-child):after{background:var(--ui-border)}
html[data-theme="dark"] .binding-stepper li.is-current [data-binding-marker]{background:#c9dff7;color:#142135}
html[data-theme="dark"] dialog::backdrop{background:#03070cc9;backdrop-filter:blur(5px)}
html[data-theme="dark"] a{color:inherit}
html[data-theme="dark"] :is(.text-link,main>a){color:#afd0fb}
html[data-theme="dark"] .docs-toc .back-mint{color:#afd0fb}
html[data-theme="dark"] .demo-bar{background:#172c43;color:#bfd8f8;border-color:#355373}
html[data-theme="dark"] .demo-bar button{background:#233d5a;color:#dceaff;border-color:#4a6d93}
html[data-theme="dark"] .ui-preferences button[aria-pressed="true"]{background:#30455e;color:#f4f8ff}
html[data-theme="dark"] #agentConnectPrompt{background:var(--ui-panel);color:var(--ui-text);border-color:var(--ui-border)}
html[data-theme="dark"] :is(#progressSummary,.consent,.technical,.binding-step p,.identity-summary code,.token-symbol,.number){color:var(--ui-muted)}
html[data-theme="dark"] .identity-summary .wide{border-color:var(--ui-border)}
html[data-theme="dark"] :focus-visible{outline-color:var(--ui-focus)}
html[data-theme="dark"] ::selection{background:#315981;color:#fff}
@media(min-width:801px) and (max-width:1250px){.header-inner{height:88px;padding:0 20px;gap:16px}.header nav{gap:20px}.header .brand{font-size:22px}.header .nav-link{font-size:16px}.header-actions{gap:6px}.header-actions .network{padding:9px 8px;font-size:11px;gap:5px}.header-actions .button{padding:9px 10px;font-size:11px}.header-actions .ui-preferences{gap:5px}.header-actions .ui-preferences button{padding:5px 6px;font-size:11px}.header-actions .theme-toggle{width:32px}}
@media(min-width:801px) and (max-width:920px){.header-inner{grid-template-columns:auto minmax(0,1fr) auto;padding:0 16px;gap:12px}.header .brand{font-size:20px}.header nav{gap:14px}.header .nav-link{font-size:15px}}
@media(max-width:800px){.header-inner{grid-template-columns:1fr auto;gap:12px;height:auto;padding:20px 24px 0}.header nav{grid-column:1/-1;grid-row:2;height:48px;gap:36px}.header-actions{grid-column:2;grid-row:1}.header .brand{font-size:24px}.header .nav-link{font-size:17px}}
@media(max-width:720px){.header-inner{padding:16px 18px 0;gap:14px}.header .brand{font-size:21px}.header-actions{gap:7px;flex-wrap:wrap;justify-content:flex-end}.header-actions .network{display:none}.header .nav-link{font-size:16px}.header nav{gap:28px;height:46px}.supply-card{padding:24px 20px}.supply-heading h2{font-size:32px}.supply-heading .eyebrow{font-size:11px}.supply-card .contract-line{font-size:13px;gap:8px}.supply-card .agents-stat{min-width:110px;padding-left:18px}.supply-card .agents-stat>span{font-size:12px}.supply-card .agents-stat strong{font-size:32px}.supply-card .agents-stat small{font-size:11px}.supply-card .progress-topline,.supply-card .progress-legend,.supply-card .progress-legend strong{font-size:13px}.preferences-bar{margin-bottom:18px}.agent-code-row button{white-space:normal}html[lang="en"] .quiz-counts strong{font-size:24px}html[lang="en"] .mint-card .small-badge{white-space:normal}html[lang="en"] .supply-heading{flex-wrap:wrap}html[lang="en"] .supply-card .agents-stat{border-left:0;padding:12px 0 0}html[lang="en"] .identity-strip{grid-template-columns:1fr}html[lang="en"] .identity-strip .btc-status{border-left:0;border-top:1px solid var(--ui-border);padding:14px 0 0}html[lang="en"] .identity-strip .rescan-button{max-width:none}}
@media(max-width:540px){.header-inner{grid-template-columns:1fr}.header .brand{justify-self:center}.header-actions{grid-column:1;grid-row:2;justify-self:center;justify-content:center}.header nav{grid-row:3;gap:25px}.header-actions .network{display:inline-flex;padding:8px;font-size:11px}.header-actions .button{font-size:12px;max-width:none}.ui-preferences{gap:6px}.ui-preferences button{padding:5px 7px}.ui-preferences .theme-toggle{width:32px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
