/* Shared finishing pass: existing brand, layouts and transaction states retained. */
@font-face{font-family:Archivo;src:url('/fonts/archivo.woff2') format('woff2');font-weight:100 900;font-stretch:62% 125%;font-display:swap}
body{font-family:Archivo,Arial,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button,input,select,textarea{font-family:inherit}
:where(h1,h2,h3){text-wrap:balance}
:where(p){text-wrap:pretty}
:where(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--blue,#315cd7);outline-offset:4px}
:where(input,select,textarea){scroll-margin-block:100px}
:where(a){text-underline-offset:.22em}
body>header nav a{font-size:13px;font-weight:500;line-height:1.35}
body>header nav a[aria-current]{font-weight:650}
body>header .credits-available{font-weight:650;letter-spacing:-.02em}
:where(.eyebrow){font-size:11px;line-height:1.5;letter-spacing:.09em}
:where(.button,.wallet-choice,.token-button,.packs button,.payment-methods button){transition:background-color 150ms ease,border-color 150ms ease,box-shadow 150ms ease}
:where(.panel,.radar-card,.address-panel,.portfolio-summary article,.api-preview){box-shadow:0 1px 2px #152c1605,0 8px 28px #152c1605}
[data-theme=dark] :where(.panel,.radar-card,.address-panel,.portfolio-summary article,.api-preview){box-shadow:0 1px 2px #0002}
:where(.balance-grid,.portfolio-summary,.history-row,.price-row,.route-output,.holding-value){font-variant-numeric:tabular-nums}
.page-swap .lede{font-size:16px;line-height:1.65;max-width:43ch}
.page-swap .trade-panel{box-shadow:0 2px 4px #172b1805,0 14px 45px #172b1808}
[data-theme=dark] .page-swap .trade-panel{box-shadow:0 14px 45px #0002}
.page-swap :is(.swap-explanation,.balance-button){line-height:1.5}
.page-developers .developer-hero h1,.portfolio-intro h1{letter-spacing:-.045em;line-height:1.04}
.page-developers :is(.api-preview>p,.developer-account-bar small,.api-token-tools span){font-size:13px;line-height:1.65}
.page-portfolio :is(.portfolio-summary small,.totals-note,.holdings-bottom,.coverage-note p){font-size:12px;line-height:1.6}
.page-portfolio :is(.holding-identity small,.holding-value small){font-size:12px}
.page-credits main{margin-top:48px}
.page-credits h1{font-size:clamp(36px,4vw,48px);font-weight:750;letter-spacing:-.045em;line-height:1.1}
.page-credits h2{font-weight:650;line-height:1.2;letter-spacing:-.025em}
.page-credits .intro>div>p{font-size:16px;line-height:1.6}
.page-credits .panel{padding:28px;border-radius:22px}
.page-credits .balance-grid article{gap:10px}
.page-credits .balance-grid article>strong{font-weight:650;line-height:1.15;letter-spacing:-.035em}
.page-credits .packs button{padding-block:17px;font-weight:600}
.page-credits .packs button[aria-pressed=true]{box-shadow:inset 0 0 0 1px var(--blue,#305cff)}
.page-credits .history-row{padding-block:19px;align-items:center}
.page-credits .history-row>strong{white-space:nowrap;font-size:15px}
.page-credits :is(.muted,small){line-height:1.65}
.page-credits #status:empty{min-height:0;margin-block:16px}
@media(max-width:700px){
 .page-credits header{gap:12px;align-items:center}
 .page-credits header .brand{order:0;margin-right:auto}
 .page-credits header .theme-toggle{order:0}
 .page-credits header .header-balances{order:1;flex-basis:auto}
 .page-credits header nav{order:2;margin-left:auto;gap:0}
 .page-credits header nav a{padding:10px;font-size:12px}
 .page-credits main{margin-top:28px;padding-inline:18px}
 .page-credits .panel{padding:22px}
 .page-credits .intro{gap:12px}
 .page-credits .intro .button{min-height:44px}
 .page-credits .history-row{gap:12px}
 .page-credits :is(input,select,textarea){font-size:16px}
 .page-portfolio :is(.address-controls input,.holdings-search input){font-size:16px}
}
@media(max-width:380px){.page-credits header nav{flex-basis:100%;margin:0;justify-content:center}.page-credits header .header-balances{order:0}.page-credits .brand{font-size:26px}.page-credits .history-row>strong{font-size:13px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{transition-duration:0s!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
/* Keep consent and provider feedback readable without dominating the form. */
#form-message:not(:empty){font-size:13px;line-height:1.6;padding:12px 14px;border-radius:12px;margin-block:16px}
#watch-form .micro{font-size:12px;line-height:1.65}
#watch-form :is(select,input:not([type=checkbox]):not([type=radio])){line-height:1.4}
#watch-form fieldset{margin-top:18px}
@media(max-width:700px){#watch-form :is(select,input:not([type=checkbox]):not([type=radio])){font-size:16px}}
