@font-face {
  font-family: "Kontur Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/kontur-sans.woff2") format("woff2");
}

@font-face {
  font-family: "Spectral";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/spectral-italic.ttf") format("truetype");
}

:root {
  --ink: #172131;
  --muted: #66707a;
  --line: #d9ddd9;
  --surface: #fbfaf7;
  --white: #fffefa;
  --sheet: #f1f3f0;
  --dark: #18212d;
  --sage: #587960;
  --sage-soft: #e9eeea;
  --focus: #416b4c;
  --mono: "Kontur Sans", Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  color-scheme: light;
  font: 16px/1.45 "Kontur Sans", Inter, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after {box-sizing: border-box}
[hidden] {display: none !important}
body {margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--surface)}
main {flex: 1}
button, input, select, textarea {font: inherit; color: inherit}
button, summary {cursor: pointer}
button:disabled {cursor: default; opacity: .52}
a {color: inherit; text-underline-offset: 3px}
button, a, input, select, textarea, summary {touch-action: manipulation}
:focus-visible {outline: 3px solid var(--focus); outline-offset: 3px}
h1, h2, h3, p, dl, dd {margin: 0}
h1, h2, h3 {text-wrap: balance}
h1 {font-size: clamp(2.6rem, 4.7vw, 4.25rem); line-height: 1.02; letter-spacing: -.057em}
h2 {font-size: 1.45rem; line-height: 1.18; letter-spacing: -.037em}
.shell {width: min(1320px, calc(100% - 96px)); margin-inline: auto}
.sr-only {position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap}
.skip {position: absolute; top: -5rem; left: .75rem; z-index: 10; padding: .7rem 1rem; background: var(--surface); color: var(--ink)}
.skip:focus {top: .5rem}

/* Main navigation */
.site-header {position: sticky; z-index: 5; top: 0; border-bottom: 1px solid #e0e3e0; background: var(--surface); color: var(--ink)}
.header {display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: clamp(.8rem,2.2vw,2rem); align-items: center; min-height: 92px}
.brand, .footer-brand {display: inline-flex; align-items: center; gap: .72rem; font-weight: 760; text-transform: uppercase; letter-spacing: .145em}
.brand {justify-self: start; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 1.12rem; line-height: 1}
.brand svg {width: 1.45rem; height: 1.45rem; color: var(--sage)}
.header > nav {display: flex; min-width: 0; align-self: stretch; align-items: center; gap: clamp(.45rem,1.45vw,1.35rem)}
.header > nav button {position: relative; min-height: 44px; padding: .55rem .15rem; border: 0; background: transparent; color: #4c5662; font-size: .95rem; font-weight: 515; white-space: nowrap}
.header > nav button::after {content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--sage); transform: scaleX(0); transform-origin: left; transition: transform 180ms ease}
.header > nav button:hover {color: var(--ink)}
.header > nav button.active {color: var(--sage); font-weight: 620}
.header > nav button.active::after {transform: scaleX(1)}
.header :focus-visible {outline-color: var(--focus)}
.button {display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .65rem 1rem; border: 1px solid #bcc3c0; border-radius: 5px; background: var(--white); font-size: .92rem; font-weight: 620; line-height: 1.25; transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease}
.button:hover:enabled {border-color: var(--ink); transform: translateY(-1px)}
[aria-busy=true] {cursor: progress}
.order-card[aria-busy=true], .panel[aria-busy=true], .key-row[aria-busy=true] {opacity: .78}
.button.primary {border-color: var(--dark); background: var(--dark); color: #fff}
.button.primary:hover:enabled {border-color: #263343; background: #263343}
.button.danger {border-color: #8f3437; background: #8f3437; color: #fff}
.button.danger:hover:enabled {border-color: #74282b; background: #74282b}
.button.full {width: 100%; min-height: 58px; font-size: 1.05rem; font-weight: 650}
.account-control {position: relative; justify-self: end; min-width: 0}
#account-button {display: flex; min-height: 44px; max-width: 220px; align-items: center; gap: .55rem; padding-inline: .35rem 0; overflow: hidden; border: 0; background: transparent; color: var(--ink); text-overflow: ellipsis; white-space: nowrap}
#account-button:hover {background: transparent; color: var(--sage); transform: none}
#account-button .account-email {min-width: 0; overflow: hidden; color: var(--muted); font-size: .8rem; font-weight: 450; text-overflow: ellipsis}
.account-chevron {flex: none; width: .48rem; height: .48rem; margin: -.2rem .2rem 0 0; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; transform: rotate(45deg); transition: transform 160ms ease}
#account-button[aria-expanded=true] .account-chevron {margin-top: .2rem; transform: rotate(225deg)}
.account-menu {position: absolute; z-index: 8; top: calc(100% + .45rem); right: 0; width: min(230px,calc(100vw - 32px)); padding: .38rem; border: 1px solid #cbd0cc; border-radius: 8px; background: var(--white); box-shadow: 0 16px 40px #1721311c; animation: disclosure-in 160ms ease both}
.account-menu button {display: flex; width: 100%; min-height: 44px; align-items: center; padding: .58rem .72rem; border: 0; border-radius: 4px; background: transparent; color: var(--ink); font-size: .86rem; font-weight: 550; text-align: left}
.account-menu button:hover {background: var(--sage-soft)}
.account-menu #logout-button {margin-top: .25rem; border-top: 1px solid var(--line); border-radius: 0 0 4px 4px; color: #7b3935}
.mobile-menu {display: none}

/* Exchange quote */
.exchange-hero {overflow: hidden; background: var(--surface)}
.exchange-grid {display: block; min-height: 0; padding-block: clamp(3rem,4.2vw,3.8rem) clamp(2rem,3vw,3rem)}
.exchange-title-row {display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(1.7rem,2.4vw,2.4rem)}
.exchange-title-row h1 {font-size: clamp(2.25rem,3.3vw,3.15rem); line-height: 1; font-weight: 560; letter-spacing: -.05em}
.exchange-panel {position: relative; min-width: 0; color: var(--ink)}
body:not(.intro-complete) #view-exchange:not([hidden]) .exchange-title-row {animation: section-enter 420ms cubic-bezier(.22,1,.36,1) both}
body:not(.intro-complete) #view-exchange:not([hidden]) .exchange-band {animation: section-enter 480ms 55ms cubic-bezier(.22,1,.36,1) both}
body:not(.intro-complete) #view-exchange:not([hidden]) .quote-actions {animation: section-enter 440ms 110ms cubic-bezier(.22,1,.36,1) both}
body:not(.intro-complete) #view-exchange:not([hidden]) .market-heading {animation: section-enter 420ms 150ms cubic-bezier(.22,1,.36,1) both}
.calculator-heading {height: 0; overflow: visible}
#calculator-heading:focus, #exchange-title:focus {outline: none}
#quote-stage {position: relative}
.exchange-band {display: grid; position: relative; grid-template-columns: minmax(0,1fr) 76px minmax(0,1fr); grid-template-rows: minmax(146px,auto) minmax(44px,auto); overflow: hidden; border-top: 1px solid #8ca392; border-bottom: 1px solid #8ca392; background: #f0f2f0; isolation: isolate}
.contour-field {position: absolute; z-index: -1; top: 7%; right: -14%; width: 57%; height: 79%; object-fit: cover; object-position: right center; opacity: .11; pointer-events: none; animation: contour-drift 9s cubic-bezier(.22,1,.36,1) 1 both}
.amount-box {display: grid; position: relative; z-index: 1; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto; align-items: center; align-content: center; gap: .5rem 1.25rem; min-width: 0; padding: 1.55rem clamp(1.35rem,2vw,2rem) 1.25rem}
.output-box {padding-left: clamp(1.35rem,2vw,2rem); border-left: 1px solid #cfd5d1}
.amount-caption {grid-column: 1/-1; grid-row: 1; color: var(--muted); font-size: .92rem; font-weight: 470; line-height: 1.18}
.amount-name {display: none}
#calc-amount, #calc-result {display: block; grid-column: 1; grid-row: 2; width: 100%; min-width: 0; padding: .1rem 0; border: 0; border-radius: 2px; background: transparent; color: var(--ink); font-family: var(--mono); font-size: clamp(2.05rem,3.4vw,3.25rem); font-weight: 430; line-height: 1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; transition: opacity 180ms ease, transform 220ms cubic-bezier(.22,1,.36,1)}
#calc-amount:focus-visible {outline-offset: 4px}
.token-select {grid-column: 2; grid-row: 2; display: grid; grid-template-columns: auto auto auto; grid-template-rows: auto auto; align-items: center; gap: .18rem .68rem; min-width: 0; min-height: 62px; padding: .25rem 0 .25rem 1.25rem; border: 0; border-left: 1px solid #c9ceca; background: transparent; text-align: left; transition: color 160ms ease, border-color 160ms ease, transform 200ms cubic-bezier(.22,1,.36,1)}
.token-select:hover:enabled {border-left-color: var(--sage); color: var(--sage)}
.token-line {display: contents}
.token-select .coin {grid-column: 1; grid-row: 1/-1; width: 42px; height: 42px}
.token-select strong {grid-column: 2; grid-row: 1; color: var(--ink); font-size: 1.14rem; line-height: 1.05; font-weight: 720}
.token-select .chevron {grid-column: 3; grid-row: 1/-1; width: .47rem; height: .47rem; margin: 0 .15rem 0 .45rem}
.token-select .network {grid-column: 2; grid-row: 2; padding: 0; background: transparent; color: #46515d; font-family: var(--mono); font-size: .7rem; font-weight: 470; line-height: 1.2; letter-spacing: .015em; white-space: nowrap}
.coin {display: block; flex: none; width: 28px; height: 28px}
.chevron {width: .5rem; height: .5rem; margin-left: .12rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg)}
.network {display: inline-flex; width: fit-content; align-items: center; color: #46515d; font-size: .75rem; line-height: 1.15; font-weight: 560; white-space: nowrap}
.swap-rule {display: grid; position: relative; z-index: 2; grid-column: 2; grid-row: 1; place-items: center}
.swap-rule button {display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%; background: #e5e9e5; color: var(--sage); transition: background-color 160ms ease, transform 220ms cubic-bezier(.22,1,.36,1)}
.swap-rule button:hover:enabled {background: #dbe2dc; transform: translateY(-1px)}
.swap-rule svg {width: 21px; height: 21px}
.rate-line, .quote-disclosure summary, .quote-details div {display: flex; align-items: baseline; justify-content: space-between; gap: .75rem}
.rate-line {z-index: 2; grid-column: 1/-1; grid-row: 2; align-items: center; justify-content: flex-start; min-height: 44px; padding: .7rem clamp(1.35rem,2vw,2rem); border-top: 1px solid #d0d5d1; color: var(--muted); font-family: var(--mono); font-size: .75rem; letter-spacing: .045em; text-transform: uppercase}
.rate-line strong {color: var(--ink); font-weight: 520; text-align: left; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; transition: color 180ms ease, opacity 180ms ease, transform 220ms ease}
.rounding-note {z-index: 3; grid-column: 1/-1; padding: .45rem clamp(1.35rem,2vw,2rem); border-top: 1px solid #d0d5d1; background: #f0f2f0}
.quote-facts {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; border-bottom: 1px solid #d0d5d1; background: #f7f7f4}
.quote-facts>div {min-width: 0; padding: .72rem clamp(.85rem,1.6vw,1.3rem)}
.quote-facts>div + div {border-left: 1px solid #d9dedb}
.quote-facts dt {color: var(--muted); font-size: .65rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase}
.quote-facts dd {margin-top: .16rem; overflow-wrap: anywhere; font-size: .78rem; font-weight: 620}
.quote-actions {display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,330px); align-items: start; gap: 2rem; padding: 2rem 0 .2rem}
.quote-disclosure {min-width: 0}
.quote-disclosure summary {width: fit-content; min-height: 52px; padding: .55rem .5rem .55rem clamp(1.35rem,2vw,2rem); color: #4d5965; list-style: none; font-size: .92rem}
.quote-disclosure summary::-webkit-details-marker, .mobile-menu summary::-webkit-details-marker {display: none}
.quote-disclosure summary::after {content: ""; width: .53rem; height: .53rem; border-right: 1.4px solid; border-bottom: 1.4px solid; transform: translateY(-2px) rotate(45deg); transition: transform 180ms ease}
.quote-disclosure[open] summary::after {transform: translateY(2px) rotate(225deg)}
.quote-panel {max-width: 560px; padding: .5rem .5rem 1rem clamp(1.35rem,2vw,2rem); animation: disclosure-in 240ms cubic-bezier(.22,1,.36,1) both}
.quote-details {font-size: .84rem}
.quote-details div {padding: .38rem 0; border-bottom: 1px solid #e0e3e0}
.quote-details dd {font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere}
.quote-details dt, .market-source, .rounding-note, small, .order-meta, .fineprint {color: var(--muted)}
.market-source, .rounding-note, small, .order-meta, .fineprint {font-size: .78rem}
.market-source {margin-top: .75rem}
#continue-exchange {margin: 0}
.exchange-panel .primary {border-radius: 4px; font-weight: 650}
.exchange-panel .primary:active:enabled {transform: translateY(0)}
#quote-stage.is-loading .exchange-band::after {content: ""; position: absolute; z-index: 4; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--sage); transform-origin: left; animation: quote-loading 1.1s ease-in-out infinite}
#quote-stage.route-updating .exchange-band > .amount-box:first-of-type {animation: route-shift-give 280ms cubic-bezier(.22,1,.36,1)}
#quote-stage.route-updating .output-box {animation: route-shift-get 280ms cubic-bezier(.22,1,.36,1)}
#swap-direction.is-swapping svg {animation: swap-motion 320ms cubic-bezier(.22,1,.36,1)}
#details-stage {max-width: 760px; padding: 0 0 .5rem; animation: section-enter 360ms cubic-bezier(.22,1,.36,1) both}
.error {color: #962f32; font-size: .86rem}
.error:not(:empty) {margin: .7rem .1rem}
.back-quote {min-height: 44px; padding: .4rem 0; border: 0; background: transparent; color: #4e5545; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px}
.details-route {display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; padding: 1rem; background: var(--sheet); border-radius: .7rem}
.route-amount {display: grid; min-width: 0; row-gap: .15rem}
.route-amount strong {font-size: clamp(.95rem, 1.3vw, 1.18rem); letter-spacing: -.03em; overflow-wrap: anywhere}
.route-arrow {color: var(--muted)}
.wallet-fields {margin-top: 1.15rem}
label {display: block; font-size: .92rem; font-weight: 620}
.wallet-fields label span {display: inline-block; margin-left: .25rem; color: #535d41; font-size: .76rem}
.input {width: 100%; min-width: 0; min-height: 44px; padding: .68rem .8rem; border: 1px solid #bfc1b7; border-radius: .52rem; background: var(--white); font-size: .94rem; font-weight: 425}
.input::placeholder {color: #74786f}
label .input, .wallet-fields .input {margin: .4rem 0 .95rem}
.checkbox {display: flex; align-items: flex-start; gap: .6rem; margin: .15rem 0 1rem; font-size: .85rem; font-weight: 470; line-height: 1.4; color: #4d5148}
.consent-checkbox a {font-weight: 650}
input[type=checkbox] {flex: none; width: 17px; height: 17px; margin: .05rem 0 0; accent-color: #445520; cursor: pointer}

/* Executable exchange directions */
.market {padding-block: 1.25rem clamp(3.2rem,6vw,5.5rem); background: var(--surface); color: var(--ink)}
.market-inner {min-width: 0}
.market-heading {display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1.5rem}
.market-heading h2 {font-size: clamp(1.75rem,2.6vw,2.45rem); line-height: 1.05; font-weight: 610; letter-spacing: -.045em}
#rates-source {display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums}
#rates-source.live::before {content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--sage)}
.ticker-table {width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left}
.ticker-table .direction-col {width: 59%}
.ticker-table .terms-col {width: 31%}
.ticker-table .action-col {width: 10%}
.ticker-table thead {position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%)}
.ticker-table th, .ticker-table td {border-bottom: 1px solid #d9dedb; padding: .65rem .85rem}
.ticker-table th:first-child, .ticker-table td:first-child {padding-left: 1.15rem}
.ticker-table tbody tr {transition: background-color 160ms ease, box-shadow 160ms ease}
.ticker-table tbody td:first-child {position: relative}
.ticker-table tbody td:first-child::before {content: ""; position: absolute; top: 50%; left: .1rem; width: 12px; height: 1px; background: #8e9891; transition: width 180ms cubic-bezier(.22,1,.36,1), background-color 180ms ease}
.ticker-table tbody tr.is-selected {background: #eff2ef; box-shadow: inset 2px 0 0 var(--sage)}
.ticker-table tbody tr.is-unavailable {color: #78817c}
.ticker-table tbody tr.is-unavailable .route-pair, .ticker-table tbody tr.is-unavailable .market-terms {opacity: .62}
.ticker-table tbody tr:focus-within {background: #f1f3f1}
.ticker-table tbody tr:focus-within td:first-child::before {width: 30px; background: var(--sage)}
.ticker-table tbody td {height: 92px}
.ticker-table td:last-child {padding-right: 1.15rem}
.route-pair {display: grid; grid-template-columns: minmax(0,1fr) 34px minmax(0,1fr); align-items: center; gap: clamp(.7rem,1.4vw,1.35rem)}
.route-side {display: flex; min-width: 0; align-items: center; gap: .75rem}
.route-side .coin {width: 42px; height: 42px}
.route-identity {display: grid; min-width: 0; gap: .18rem}
.route-identity strong {font-size: 1.05rem; line-height: 1; font-weight: 720}
.route-identity small {overflow: hidden; color: #57626e; font-family: var(--mono); font-size: .72rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap}
.route-pair .route-arrow {color: #7a847f; font-size: .72rem; font-weight: 650; text-align: center; text-transform: uppercase}
.market-terms {display: grid; gap: .2rem; font-size: .84rem; line-height: 1.3}
.market-terms strong {min-width: 0; overflow-wrap: anywhere; font-family: var(--mono); font-weight: 520; font-variant-numeric: tabular-nums}
.market-terms small {font-size: .74rem}
.market-action {text-align: right}
.rate-action {display: inline-flex; align-items: center; justify-content: center; min-width: 82px; min-height: 44px; padding: .5rem .75rem; border: 1px solid #c8cfca; border-radius: 4px; background: transparent; color: var(--ink); font-size: .76rem; font-weight: 650; white-space: nowrap; transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease}
.rate-action:hover:enabled {border-color: var(--sage); background: #e6ece7; color: var(--sage); transform: translateY(-1px)}
.route-selected {display: inline-flex; min-height: 44px; align-items: center; color: #4e6755; font-size: .74rem; font-weight: 650; white-space: nowrap}
@keyframes section-enter {from {opacity: 0; transform: translateY(8px)} to {opacity: 1; transform: translateY(0)}}
@keyframes contour-drift {from {opacity: 0; transform: translate3d(18px,0,0)} 35% {opacity: .11} to {opacity: .09; transform: translate3d(0,0,0)}}
@keyframes disclosure-in {from {opacity: 0; transform: translateY(-6px)} to {opacity: 1; transform: translateY(0)}}
@keyframes quote-loading {0% {transform: scaleX(.12); opacity: .25} 55% {transform: scaleX(.72); opacity: .75} 100% {transform: scaleX(1); opacity: 0}}
@keyframes route-shift-give {0% {opacity: .72; transform: translateX(5px)} 100% {opacity: 1; transform: translateX(0)}}
@keyframes route-shift-get {0% {opacity: .72; transform: translateX(-5px)} 100% {opacity: 1; transform: translateX(0)}}
@keyframes swap-motion {0% {transform: translateY(0)} 45% {transform: translateY(-3px)} 100% {transform: translateY(0)}}

/* Account, order history and staff tools */
.inner-view {padding-bottom: 1rem}
.section-heading {display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 2.8rem 0 1.75rem}
.section-heading p, .muted {color: var(--muted); font-size: .96rem}
.section-heading p {margin-top: .6rem}
.panel, .order-card, .empty {min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--white)}
.padded, .order-card {padding: clamp(1rem, 2.15vw, 1.8rem)}
.two-col {display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.15rem}
.padded h2 {margin-bottom: .9rem}
.padded p, .padded form {margin-bottom: .75rem}
.padded form label small {display: block; margin: -.4rem 0 .8rem; font-weight: 430}
.stats {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; margin-bottom: 1.1rem}
.stat {padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--sheet)}
.stat strong, .stat small {display: block}
.stat strong {margin-top: .25rem; font-size: 1.55rem; overflow-wrap: anywhere}
.cards, .history, .audit-list, .asset-list {display: grid; gap: .6rem}
.order-card {overflow-wrap: anywhere}
.order-card:focus {outline: 3px solid var(--focus); outline-offset: 3px}
.order-card + .order-card {margin-top: .45rem}
.card-heading, .dialog-heading {display: flex; align-items: center; justify-content: space-between; gap: .65rem}
.status {padding: .3rem .66rem; border-radius: .5rem; background: #eceddf; color: #424935; font-size: .78rem}
.order-amount {margin: 1rem 0 .35rem; font-size: 1.32rem; font-weight: 660; letter-spacing: -.037em}
.actions {display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: .8rem}
.history {border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .75rem; gap: .22rem; font-size: .84rem; color: var(--muted)}
.transfer {background: #eff0e7; border-radius: .65rem; margin: .9rem 0; padding: 1rem}
.transfer h3 {font-size: 1.04rem; margin-bottom: .4rem}
.transfer code {display: block; margin: .55rem 0; font-size: .9rem; overflow-wrap: anywhere}
.transfer .button {margin: .15rem 0 .4rem}
.order-card>label {margin-top: .85rem}
.provider {background: #eeefe9}
.provider form {margin: .65rem 0 0}
.provider .checkbox {display: flex; margin: 0 0 .5rem; overflow-wrap: anywhere}
.empty {padding: clamp(2rem, 6vw, 5rem) 1.2rem; text-align: center}
.empty p {margin: .55rem 0 1.1rem; color: var(--muted)}
.api-docs, .admin-section, #affiliate-content>.panel {margin-top: 1rem}
.table-wrap {max-width: 100%; overflow: auto}
.table {width: 100%; border-collapse: collapse; text-align: left; font-size: .86rem}
.table td, .table th, .method-item, .audit-list>div, .key-row {border-bottom: 1px solid var(--line); padding: .65rem .35rem}
.table th {font-weight: 640}
.method-item {display: grid; grid-template-columns: minmax(130px,1fr) 2fr; gap: .8rem; font-size: .86rem; overflow-wrap: anywhere}
.method-checks {display: grid; grid-template-columns: repeat(auto-fit,minmax(153px,1fr)); gap: .65rem; margin: 1rem 0}
.method-checks label, .policy-options label {display: flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 470}
.mono, code, pre {font-family: var(--mono)}
.secret, .code {max-width: 100%; overflow: auto; padding: .8rem; border: 1px solid var(--line); border-radius: .5rem; background: #f3f4ed; font-size: .8rem; white-space: pre-wrap; overflow-wrap: anywhere}
.key-row {display: grid; justify-items: start; gap: .25rem; overflow-wrap: anywhere}
.policy-form {display: grid; grid-template-columns: minmax(160px,2fr) repeat(3,minmax(82px,1fr)) auto; align-items: center; gap: .6rem; padding: .8rem 0; border-bottom: 1px solid var(--line)}
.policy-form label {font-size: .82rem}
.policy-form label .input {margin: .2rem 0 0}
.policy-options {grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1rem}
.audit-list {font: .8rem/1.5 var(--mono); overflow-wrap: anywhere}
.notice, .toast {padding: .75rem 1rem; border-radius: .55rem; font-size: .92rem}
.notice {margin-block: .75rem; border: 1px solid #e1c4bb; color: #872c24; background: #fff5f0}
.toast {position: fixed; z-index: 7; left: 50%; bottom: max(1.2rem, env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; max-width: min(36rem, calc(100% - 2rem)); background: var(--ink); color: var(--white); box-shadow: 0 5px 22px #11131032}
.footer {display: grid; grid-template-columns: minmax(190px,.85fr) minmax(0,2.15fr); gap: clamp(2rem,5vw,5rem); margin-top: 4rem; padding-block: 2.4rem 2.8rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem}
.footer-lead {max-width: 280px}
.footer-lead p {margin-top: .8rem; line-height: 1.55}
.footer-brand {font-size: 1rem; color: var(--ink); gap: .3rem; text-decoration: none}
.footer-brand svg {width: 1.4rem; height: 1.4rem}
.footer-links {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem}
.footer-links>div {display: grid; align-content: start; gap: .18rem}
.footer-links strong {margin-bottom: .45rem; color: var(--ink); font-size: .76rem; letter-spacing: .045em; text-transform: uppercase}
.footer-links a, .footer-links span {display: flex; min-height: 34px; align-items: center}

/* Public information, help and legal pages */
.public-heading {padding-bottom: 2.2rem}
.public-heading>div {max-width: 760px}
.process-grid, .partner-public-flow {display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0 0 1rem; padding: 0; border-top: 1px solid #8fa094; border-bottom: 1px solid #8fa094; background: var(--sheet); list-style: none}
.process-grid li, .partner-public-flow li {min-width: 0; min-height: 190px; padding: 1.2rem}
.process-grid li + li, .partner-public-flow li + li {border-left: 1px solid var(--line)}
.process-grid li>span, .partner-public-flow li>span, .help-grid section>span {display: block; margin-bottom: 1.7rem; color: var(--sage); font-size: .68rem; font-weight: 730; letter-spacing: .08em}
.process-grid h2 {font-size: 1.05rem; letter-spacing: -.025em}
.process-grid p, .partner-public-flow p, .help-grid p {margin-top: .55rem; color: var(--muted); font-size: .83rem; line-height: 1.55}
.public-columns {margin-top: 1rem}
.warning-panel {border-color: #aab5ac; background: #f1f4f0}
.check-list {display: grid; gap: .65rem; margin: .85rem 0 0; padding: 0; list-style: none}
.check-list li {position: relative; padding-left: 1.05rem; color: #49535e; font-size: .86rem; line-height: 1.5}
.check-list li::before {content: ""; position: absolute; top: .62em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--sage)}
.faq-list {border-top: 1px solid var(--line)}
.faq-list details {border-bottom: 1px solid var(--line)}
.faq-list summary {display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 1rem; font-size: .86rem; font-weight: 650; list-style: none}
.faq-list summary::-webkit-details-marker {display: none}
.faq-list summary::after {content: "+"; color: var(--sage); font-size: 1.15rem; font-weight: 450}
.faq-list details[open] summary::after {content: "−"}
.faq-list p {padding: 0 1.5rem .9rem 0; color: var(--muted); font-size: .82rem; line-height: 1.55}
.partner-intro {display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 2rem; padding: clamp(1.35rem,3vw,2.3rem); border-radius: 4px; background: var(--dark); color: #fff}
.partner-intro>div {max-width: 720px}
.partner-intro .section-kicker {color: #aac5b2}
.partner-intro h2 {font-size: clamp(1.45rem,2.4vw,2.15rem)}
.partner-intro p {margin-top: .65rem; color: #c8d0d6}
.partner-intro .button {border-color: #dce5df; background: #eef3ef; color: var(--ink)}
.affiliate-terms {margin-bottom: 1rem; border-radius: 8px}
.affiliate-terms summary {display: flex; min-height: 50px; align-items: center; justify-content: space-between; padding: .7rem 1rem; font-size: .86rem; font-weight: 650; list-style: none}
.affiliate-terms summary::-webkit-details-marker {display: none}
.affiliate-terms summary::after {content: "+"; color: var(--sage); font-size: 1.1rem}
.affiliate-terms[open] summary::after {content: "−"}
.affiliate-terms>div {padding: 0 1rem 1rem; color: var(--muted); font-size: .82rem; line-height: 1.55}
.affiliate-terms p + p {margin-top: .55rem}
.partner-public-flow {margin-top: 1rem}
.partner-public-flow li {min-height: 154px}
.partner-public-flow strong {font-size: .9rem}
#api-gate:not([hidden]) {margin-bottom: 1rem}
.api-contract-grid {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; margin: 1.3rem 0}
.api-contract-grid>div {padding: 1rem; border-top: 1px solid #97a79b; background: var(--sheet)}
.api-contract-grid strong {font-size: .86rem}
.api-contract-grid p {margin-top: .4rem; color: var(--muted); font-size: .78rem; line-height: 1.5}
.document-links {padding-top: .8rem; border-top: 1px solid var(--line); font-size: .8rem}
.help-grid {display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem}
.help-grid section {min-height: 210px}
.help-grid h2 {font-size: 1.03rem}
.inline-link {margin: .55rem 0 0; color: var(--sage); font-weight: 650; text-align: left}
.contact-list, .legal-facts {margin-top: .75rem}
.contact-list>div, .legal-facts>div {display: grid; grid-template-columns: minmax(120px,.8fr) minmax(0,1.2fr); gap: 1rem; padding: .65rem 0; border-top: 1px solid var(--line)}
.contact-list dt, .legal-facts dt {color: var(--muted); font-size: .78rem}
.contact-list dd, .legal-facts dd {min-width: 0; font-size: .84rem; font-weight: 620; overflow-wrap: anywhere}
.anti-phishing-note {background: var(--dark); color: #fff}
.anti-phishing-note .section-kicker {color: #aac5b2}
.anti-phishing-note .check-list li {color: #d5dce1}
.anti-phishing-note .check-list li::before {background: #aac5b2}
.legal-heading {max-width: 900px; padding: 3.2rem 0 2.2rem}
.legal-heading h1 {font-size: clamp(2.4rem,4.5vw,4rem); font-weight: 590}
.legal-heading p {max-width: 720px; margin-top: .8rem; color: var(--muted)}
.legal-layout {display: grid; grid-template-columns: minmax(180px,.32fr) minmax(0,1fr); gap: clamp(2rem,6vw,6rem); align-items: start}
.legal-index {display: grid; position: sticky; top: 116px; gap: .15rem; max-height: calc(100dvh - 136px); overflow-y: auto; padding: .25rem .25rem .25rem 0}
.legal-index strong {margin-bottom: .55rem; color: var(--ink); font-size: .74rem; letter-spacing: .07em; text-transform: uppercase}
.legal-index a {display: flex; min-height: 38px; align-items: center; padding: .35rem .55rem; border-radius: .4rem; color: var(--muted); font-size: .86rem; line-height: 1.35}
.legal-index a:hover, .legal-index a[aria-current="location"] {color: var(--ink); background: var(--soft, var(--sage-soft))}
.legal-index a[aria-current="location"] {font-weight: 650}
.legal-document {min-width: 0; max-width: 820px; overflow-wrap: anywhere}
.operational-facts {margin-bottom: 1.8rem; padding: .2rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white)}
.legal-document section {padding: 0 0 1.8rem; scroll-margin-top: 118px}
.legal-document h2[id] {scroll-margin-top: 118px}
.legal-document section + section {padding-top: 1.8rem; border-top: 1px solid var(--line)}
.legal-document h2 {margin-bottom: .7rem; font-size: 1.25rem}
.legal-document h3 {margin: 1.15rem 0 .45rem; font-size: 1.02rem}
.legal-document p, .legal-document li {color: var(--ink-2, #49535e); line-height: 1.67}
.legal-document p + p {margin-top: .7rem}
.legal-document :is(ol, ul) {margin: .75rem 0; padding-inline-start: 1.35rem}
.legal-document li + li {margin-top: .4rem}
.legal-document a {text-decoration: underline; text-underline-offset: .18em}
.document-note {margin: .7rem 0 1.25rem; padding: .8rem 1rem; border-left: 2px solid var(--sage); background: var(--sage-soft); color: #405247; font-size: .82rem; line-height: 1.55}
.legal-document [data-document-readiness] {margin-top: 0}
.warning-note {border-left-color: #a16e2a; background: #f5eee2; color: #68491f}

dialog {width: 425px; max-width: calc(100vw - 28px); max-height: calc(100dvh - 24px); overflow: auto; padding: 1.45rem; margin: auto; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); color: var(--ink)}
dialog::backdrop {background: rgb(9 12 9 / 62%)}
.dialog-heading>button {width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--sheet); font-size: 1.4rem; line-height: 1}
dialog .muted {margin: .5rem 0 1.1rem}
.asset-list {gap: .35rem}
.asset-option {display: grid; position: relative; width: 100%; min-height: 57px; grid-template-columns: auto 1fr auto 13px; align-items: center; gap: .62rem; text-align: left; background: var(--white)}
.asset-option[aria-pressed=true] {background: #f1f4da; border-color: #a6ad7a}
.asset-name {display: grid; justify-items: start; gap: .12rem}
.asset-name small {font-size: .78rem; font-weight: 440}
.checked {color: #56601d}
.link-button {display: block; min-height: 44px; margin: .35rem auto 0; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 3px}
.confirm-dialog {width: min(440px, calc(100vw - 28px))}
.confirm-dialog .dialog-caption {margin: 1rem 0 1.35rem; color: #4f5964; line-height: 1.55}
.confirm-actions {display: grid; grid-template-columns: 1fr 1fr; gap: .7rem}

@media (max-width: 1080px) {
  .shell {width: calc(100% - 64px)}
  .exchange-band {grid-template-columns: minmax(0,1fr) 64px minmax(0,1fr)}
  .amount-box {gap: .45rem .8rem; padding-inline: 1.25rem}
  .output-box {padding-left: 1.25rem}
  .quote-disclosure summary, .quote-panel {padding-left: 1.25rem}
  .token-select {padding-left: .8rem; gap: .16rem .5rem}
  .token-select .coin {width: 36px; height: 36px}
  .policy-form {grid-template-columns: repeat(3,minmax(0,1fr))}
  .footer-links {grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 1.8rem}
  .process-grid, .partner-public-flow {grid-template-columns: repeat(2,minmax(0,1fr))}
  .process-grid li:nth-child(3), .partner-public-flow li:nth-child(3) {border-top: 1px solid var(--line); border-left: 0}
  .process-grid li:nth-child(4), .partner-public-flow li:nth-child(4) {border-top: 1px solid var(--line)}
  .help-grid {grid-template-columns: repeat(2,minmax(0,1fr))}
}
@media (max-width: 900px) {
  .shell {width: calc(100% - 48px)}
  .header {grid-template-columns: auto 1fr auto; gap: 1.4rem}
  .header > nav {gap: 1rem}
  .exchange-band {grid-template-columns: minmax(0,1fr) 58px minmax(0,1fr);}
  .rate-line {grid-column: 1/-1}
  .contour-field {right: -24%; width: 66%}
  #calc-amount, #calc-result {font-size: clamp(1.85rem,4.3vw,2.7rem)}
  .token-select strong {font-size: 1rem}
  .token-select .coin {width: 32px; height: 32px}
  .route-pair {gap: .7rem}
  .route-side {gap: .5rem}
  .route-side .coin {width: 34px; height: 34px}
  .ticker-table .direction-col {width: 59%}
  .ticker-table .terms-col {width: 28%}
  .ticker-table .action-col {width: 13%}
  .api-contract-grid {grid-template-columns: minmax(0,1fr)}
}
@media (max-width: 800px) {
  .site-header {position: relative}
  .shell {width: calc(100% - 32px)}
  .header {display: flex; gap: .55rem; min-height: 64px}
  .header .brand {flex: 1; font-size: 1rem}
  .brand svg {width: 1.35rem; height: 1.35rem}
  .header > nav {display: none}
  .mobile-menu {display: block; position: relative}
  .mobile-menu summary {list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 4px}
  .mobile-menu summary:hover, .mobile-menu[open] summary {background: var(--sage-soft)}
  .menu-icon {display: grid; align-items: center; width: 18px; height: 13px; border-top: 1.5px solid; border-bottom: 1.5px solid}
  .menu-icon::before {content: ""; display: block; border-top: 1.5px solid}
  .mobile-menu nav {display: grid; position: absolute; z-index: 4; top: calc(100% + 3px); right: 0; min-width: 170px; padding: .35rem; border: 1px solid #35414e; border-radius: 5px; background: var(--dark); box-shadow: 0 12px 28px #17202c2b}
  .mobile-menu a {display: flex; align-items: center; min-height: 44px; padding: .55rem .75rem; color: #f8faf8; text-decoration: none; font-size: .92rem; border-radius: 3px}
  .mobile-menu a:hover {background: #263343}
  .mobile-menu a[aria-current=page] {background: #344252; color: #fff}
  #account-button {margin-left: .05rem; min-height: 44px; padding: .45rem .25rem; font-size: .86rem}
  #account-button .account-email {display: none}
  #account-button.is-authenticated::before {content: "Аккаунт"}
  .account-menu {right: 0}
  .exchange-grid {max-width: 600px; padding-block: 2.25rem 2.35rem}
  .exchange-title-row {margin-bottom: 1.65rem}
  .exchange-title-row h1 {font-size: 2.15rem}
  .exchange-band {grid-template-columns: minmax(0,1fr); grid-template-rows: auto 52px auto auto}
  .exchange-band > .amount-box:first-of-type {grid-column: 1; grid-row: 1}
  .exchange-band > .output-box {grid-column: 1; grid-row: 3}
  .amount-box {min-height: 118px; gap: .35rem .7rem; padding: 1.15rem .85rem 1rem}
  .output-box {padding-inline: .85rem; border-top: 1px solid #cfd5d1; border-left: 0}
  .swap-rule {grid-column: 1; grid-row: 2}
  .swap-rule button {width: 46px; height: 46px; border: 4px solid #f0f2f0}
  .rate-line {grid-column: 1; grid-row: 4; min-height: 46px; padding-inline: .85rem; letter-spacing: .025em}
  .rounding-note {padding-inline: .85rem}
  .contour-field {top: 25%; right: -50%; width: 130%; height: 50%; opacity: .07}
  .quote-actions {display: block; padding-top: 1.25rem}
  .quote-disclosure summary {min-height: 48px; padding-inline: .85rem .35rem}
  .quote-panel {padding: .5rem .35rem 1rem .85rem}
  #continue-exchange {margin-top: .65rem}
  .quote-disclosure summary {min-height: 44px}
  .button.full {min-height: 50px; font-size: 1.04rem}
  .market {padding-block: 1rem 2.8rem}
  .market-heading {margin-bottom: .65rem}
  .market-heading h2 {font-size: 1.65rem}
  #rates-source {width: 100%}
  .ticker-table, .ticker-table tbody {display: block}
  .ticker-table tbody tr {display: grid; grid-template-columns: minmax(0,1fr) auto; padding: .6rem 0; border-bottom: 1px solid #d9dedb}
  .ticker-table tbody td:first-child::before {left: 0}
  .ticker-table th, .ticker-table td {border: 0; padding: .35rem .65rem}
  .ticker-table th:first-child, .ticker-table td:first-child {padding-left: 1.2rem}
  .ticker-table tbody td {height: auto}
  .ticker-table td:first-child {grid-column: 1; grid-row: 1; width: auto}
  .ticker-table td:nth-child(2) {grid-column: 1; grid-row: 2; width: auto; padding: 0 .65rem .35rem 1.2rem}
  .ticker-table td:last-child {display: grid; grid-column: 2; grid-row: 1/3; width: auto; padding: 0 .75rem; place-items: center}
  .route-pair {grid-template-columns: minmax(0,1fr) 24px minmax(0,1fr); gap: .45rem}
  .route-side {gap: .45rem}
  .route-side .coin {width: 30px; height: 30px}
  .route-identity strong {font-size: .9rem}
  .route-identity small {font-size: .6rem}
  .market-terms {display: flex; flex-wrap: wrap; gap: .2rem .7rem}
  .section-heading {padding: 1.8rem 0 1.2rem; flex-wrap: wrap}
  .section-heading h1 {font-size: clamp(2rem, 8vw, 3.5rem)}
  .two-col {grid-template-columns: minmax(0,1fr)}
  .footer {grid-template-columns: minmax(0,1fr); gap: 2rem; margin-top: 2.5rem; padding-block: 2rem}
  .footer-lead {max-width: 420px}
  .partner-intro {grid-template-columns: minmax(0,1fr); align-items: start}
  .partner-intro .button {justify-self: start}
  .legal-layout {grid-template-columns: minmax(0,1fr); gap: 1.5rem}
  .legal-index {position: static; display: flex; max-width: 100%; max-height: none; overflow: visible; flex-wrap: wrap; gap: .25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line)}
  .legal-index strong {width: 100%; margin-bottom: .25rem}
  .legal-index a {min-height: 36px; background: var(--soft, var(--sheet))}
}
@media (max-width: 480px) {
  .exchange-grid {padding-top: 1.85rem}
  .exchange-title-row h1 {font-size: 1.95rem}
  .amount-box {gap: .25rem .45rem}
  #calc-amount, #calc-result {font-size: clamp(1.7rem,9vw,2.25rem)}
  .token-select {padding-left: .6rem; gap: .14rem .4rem}
  .token-select .coin {width: 29px; height: 29px}
  .token-select strong {font-size: .92rem}
  .token-select .network {font-size: .6rem}
  .rate-line {font-size: .66rem}
  .rate-action {min-width: 72px; padding-inline: .5rem; font-size: .68rem}
  .market-heading {column-gap: .65rem}
  .amount-caption, .amount-name {font-size: .8rem}
  .route-side .coin {width: 27px; height: 27px}
  .route-identity strong {font-size: .82rem}
  .route-identity small {max-width: 92px; overflow: visible; text-overflow: clip; white-space: normal}
  .market-terms {font-size: .72rem}
  .market-terms small {font-size: .66rem}
  .quote-facts {grid-template-columns: minmax(0,1fr)}
  .quote-facts>div + div {border-top: 1px solid #d9dedb; border-left: 0}
  .stats {grid-template-columns: minmax(0,1fr); gap: .45rem}
  .stat {display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .65rem .8rem}
  .stat strong {margin: 0; font-size: 1.1rem}
  .policy-form, .method-item {grid-template-columns: minmax(0,1fr); gap: .4rem}
  .policy-options {grid-column: auto}
  .process-grid, .partner-public-flow, .help-grid {grid-template-columns: minmax(0,1fr)}
  .process-grid li, .partner-public-flow li {min-height: 0}
  .process-grid li + li, .partner-public-flow li + li, .process-grid li:nth-child(4), .partner-public-flow li:nth-child(4) {border-top: 1px solid var(--line); border-left: 0}
  .process-grid li>span, .partner-public-flow li>span {margin-bottom: 1rem}
  .help-grid section {min-height: 0}
  .contact-list>div, .legal-facts>div {grid-template-columns: minmax(0,1fr); gap: .2rem}
  .footer-links {grid-template-columns: minmax(0,1fr); gap: 1.4rem}
  .footer-links>div {padding-bottom: .65rem; border-bottom: 1px solid var(--line)}
  dialog {padding: 1rem}
}
@media (max-width: 355px) {
  .shell {width: calc(100% - 28px)}
  .brand {letter-spacing: .1em}
  .amount-box {padding-inline: .55rem}
  .rate-line, .rounding-note {padding-inline: .55rem}
  .quote-disclosure summary {padding-left: .55rem}
  .quote-panel {padding-left: .55rem}
  #calc-amount, #calc-result {font-size: 1.55rem}
  .token-select strong {font-size: .8rem}
  .token-select .network {font-size: .55rem}
  .token-select {padding-left: .4rem; gap: .1rem .25rem}
  .token-select .coin {width: 24px; height: 24px}
  .market-heading h2 {font-size: 1.65rem}
  .ticker-table th, .ticker-table td {padding-right: .25rem}
  .route-side {gap: .3rem}
  .route-side .coin {width: 24px; height: 24px}
  .route-identity small {max-width: 76px}
  .rate-action {min-width: 66px; padding-inline: .35rem; font-size: .64rem}
  .confirm-actions {grid-template-columns: 1fr}
  .footer {gap: 1.5rem}
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important}
}

/* Client cabinet, partner center and API workspace */
.section-heading {align-items: flex-end}
.section-heading h1 {font-size: clamp(2.5rem,4vw,3.55rem); font-weight: 600}
.section-kicker {display: block; margin-bottom: .45rem; color: var(--sage); font-size: .72rem; font-weight: 720; letter-spacing: .11em; text-transform: uppercase}
.heading-actions {display: flex; align-items: center; justify-content: flex-end; gap: .65rem; flex-wrap: wrap}
.sync-label {color: var(--muted); font-size: .75rem; white-space: nowrap}
.section-bar {display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 2rem 0 .85rem}
.section-bar h2 {font-size: 1.65rem}
.segmented {display: inline-flex; max-width: 100%; padding: .22rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; background: var(--sheet)}
.segmented button {flex: none; min-height: 38px; padding: .45rem .75rem; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: .8rem; font-weight: 620; white-space: nowrap}
.segmented button:hover {color: var(--ink)}
.segmented button[aria-pressed=true], .segmented button[aria-selected=true] {background: var(--white); color: var(--ink); box-shadow: 0 1px 4px #17213112}

.account-overview {display: grid; grid-template-columns: minmax(230px,.8fr) minmax(0,1.2fr); margin-bottom: .5rem; overflow: hidden}
.account-identity {display: grid; align-content: center; gap: .2rem; min-width: 0; padding: 1.35rem 1.5rem; border-right: 1px solid var(--line); background: var(--sheet)}
.account-identity small, .account-identity span {color: var(--muted); font-size: .75rem}
.account-identity strong {overflow: hidden; font-size: 1.08rem; text-overflow: ellipsis; white-space: nowrap}
.account-metrics {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch}
.account-metrics .stat {display: grid; align-content: center; min-height: 104px; padding: 1rem 1.35rem; border: 0; border-radius: 0; background: var(--white)}
.account-metrics .stat + .stat {border-left: 1px solid var(--line)}
.account-metrics .stat strong {font-size: 1.8rem; font-weight: 560}
.compact-empty {padding-block: 1.5rem}
.client-order {padding: 0; overflow: hidden; border-radius: 9px}
.client-order .card-heading {padding: 1rem 1.35rem; border-bottom: 1px solid var(--line)}
.client-order .card-heading>strong {font-size: .9rem}
.order-route {display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 1.25rem; padding: 1.35rem; background: #f3f5f2}
.order-route-side {display: flex; min-width: 0; align-items: center; gap: .8rem}
.order-route-side:last-child {justify-self: end}
.order-route-side .coin {width: 40px; height: 40px}
.order-route-copy {display: grid; min-width: 0; gap: .1rem}
.order-route-copy small {color: var(--muted); font-size: .72rem}
.order-route-copy strong {font-size: 1.08rem; line-height: 1.15; overflow-wrap: anywhere}
.order-route-copy .network {font-size: .68rem; white-space: normal}
.order-route-word {color: var(--muted); font-size: .72rem; text-transform: uppercase}
.client-order>.order-meta {padding: .7rem 1.35rem 0}
.order-status-note {margin: .85rem 1.35rem 0; padding: .7rem .9rem; border-left: 2px solid var(--sage); background: var(--sage-soft); color: #35483b; font-size: .86rem}
.client-order>.transfer, .client-order>label, .client-order>.actions {margin-right: 1.35rem; margin-left: 1.35rem}
.client-order>.actions {margin-bottom: 1rem}
.order-disclosure {border-top: 1px solid var(--line)}
.order-disclosure summary {min-height: 48px; padding: .75rem 1.35rem; color: #4d5965; font-size: .84rem; font-weight: 620; list-style-position: inside}
.order-detail-content {padding: 0 1.35rem 1.2rem}
.order-detail-content>p {margin-bottom: .35rem}
.order-detail-content h3 {margin: 1rem 0 .55rem; font-size: .9rem; letter-spacing: 0}
.order-timeline {display: grid; gap: 0; margin: 0; padding: 0; list-style: none}
.order-timeline li {display: grid; grid-template-columns: minmax(150px,.45fr) minmax(0,1fr); gap: .75rem; padding: .5rem 0; border-top: 1px solid var(--line); font-size: .8rem}
.order-timeline time {color: var(--muted); font-variant-numeric: tabular-nums}
.status.success, .status.refunded {background: #e6eee8; color: #31543b}
.status.cancel, .status.refund_required {background: #f2e8e5; color: #7b3935}

.partner-stats {grid-template-columns: repeat(4,minmax(0,1fr))}
.partner-flow {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 1rem 0; border-top: 1px solid #9aaa9e; border-bottom: 1px solid #9aaa9e; background: var(--sheet)}
.partner-flow>div {display: grid; align-content: center; gap: .25rem; min-height: 92px; padding: 1rem 1.25rem}
.partner-flow>div + div {border-left: 1px solid var(--line)}
.partner-flow strong {font-size: .9rem}
.partner-flow span {color: var(--muted); font-size: .78rem}
.partner-actions {margin-top: 1rem}
.partner-action-card {display: flex; flex-direction: column; align-items: flex-start}
.partner-action-card>p {max-width: 46ch}
.partner-action-card label, .partner-action-card form {width: 100%}
.partner-action-card .button {margin-top: .2rem}
.partner-action-card progress {width: 100%; height: 5px; margin: .1rem 0 1rem; border: 0; border-radius: 10px; background: var(--sheet); accent-color: var(--sage)}
.partner-action-card progress::-webkit-progress-bar {border-radius: 10px; background: var(--sheet)}
.partner-action-card progress::-webkit-progress-value {border-radius: 10px; background: var(--sage)}
.partner-activity {margin-top: 1rem}
.activity-heading {display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem}
.activity-heading h2 {margin: 0}
.affiliate-panel {min-height: 128px}
.activity-empty {display: grid; place-items: center; min-height: 150px; padding: 1.5rem; text-align: center}
.activity-empty p {margin-top: .35rem}

.api-meta-strip {display: grid; grid-template-columns: .55fr .7fr 1.1fr 1.45fr auto; align-items: center; gap: 0; margin-bottom: 1.15rem; border-top: 1px solid #91a096; border-bottom: 1px solid #91a096; background: var(--sheet)}
.api-meta-strip>div {display: grid; align-content: center; min-height: 78px; padding: .8rem 1.15rem}
.api-meta-strip>div + div {border-left: 1px solid var(--line)}
.api-meta-strip small {color: var(--muted); font-size: .7rem}
.api-meta-strip strong, .api-meta-strip code {margin-top: .15rem; font-size: .88rem; font-weight: 650; overflow-wrap: anywhere}
.api-meta-strip>.button {margin: 0 1rem}
.api-workspace {align-items: start}
.api-workspace .panel {border-radius: 9px}
.api-key-panel h3 {font-size: 1.05rem; letter-spacing: -.02em}
.section-divider {height: 1px; margin: 1.35rem 0; background: var(--line)}
.ip-policy, .scope-fieldset {min-width: 0; margin: .9rem 0; padding: 0; border: 0}
.ip-policy legend, .scope-fieldset legend {margin-bottom: .55rem; font-size: .9rem; font-weight: 650}
.ip-policy {display: flex; flex-wrap: wrap; gap: .55rem 1rem}
.ip-policy label {display: flex; align-items: center; gap: .45rem; font-size: .83rem; font-weight: 500}
.ip-policy input {accent-color: var(--sage)}
.security-note {width: 100%; margin: .65rem 0; padding: .65rem .75rem; border-left: 2px solid #9a6b28; background: #f5eee2; color: #68491f; font-size: .78rem}
.method-checks {display: grid; grid-template-columns: minmax(0,1fr); gap: .6rem}
.scope-group {border-top: 1px solid var(--line)}
.scope-group h4 {margin: .75rem 0 .25rem; font-size: .78rem; color: var(--muted)}
.scope-option {display: grid !important; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; min-height: 52px; gap: .65rem; padding: .45rem .2rem; border-bottom: 1px solid #e7e9e6}
.scope-option input {width: 17px; height: 17px; margin: 0; accent-color: var(--sage)}
.scope-copy {display: grid; min-width: 0; gap: .08rem}
.scope-copy code {font-size: .78rem; font-weight: 650; overflow-wrap: anywhere}
.scope-copy small {margin: 0 !important; color: var(--muted); font-size: .7rem !important}
.scope-kind {padding: .22rem .4rem; border-radius: 3px; font-size: .62rem; font-weight: 700; white-space: nowrap}
.scope-kind.read {background: var(--sage-soft); color: #3d5d46}
.scope-kind.write {background: #f2e8e5; color: #7b3935}
.key-list {display: grid; gap: .6rem}
.key-row {padding: .8rem; border: 1px solid var(--line); border-radius: 7px; background: var(--sheet)}
.key-row.is-revoked {opacity: .65}
.key-heading {display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .5rem}
.key-row>code {font-size: .76rem; overflow-wrap: anywhere}
.key-meta-line {color: var(--muted); font-size: .7rem}
.key-meta-line.is-warning {color: #80531d; font-weight: 650}
.scope-chips {display: flex; max-width: 100%; flex-wrap: wrap; gap: .3rem}
.scope-chips code {padding: .2rem .35rem; border: 1px solid #d3d8d4; border-radius: 3px; background: var(--white); font-size: .64rem}
.credential-reveal {margin-top: 1rem; padding: 1.1rem; border-radius: 7px; background: var(--dark); color: #fff}
.credential-reveal .section-kicker {color: #a9c4b0}
.credential-reveal>p {margin: .35rem 0 1rem; color: #c6cdd3; font-size: .78rem}
.credential-row {display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .25rem .6rem; align-items: center; padding: .6rem 0; border-top: 1px solid #ffffff24}
.credential-row small {grid-column: 1/-1; color: #aeb8c1; font-size: .65rem}
.credential-row code {min-width: 0; overflow-wrap: anywhere; font-size: .72rem}
.credential-row .button {min-height: 36px; padding: .4rem .65rem; border-color: #ffffff45; background: transparent; color: #fff; font-size: .72rem}
.credential-reveal .link-button {color: #fff}
.api-console-panel {position: sticky; top: 108px}
.endpoint-preview {display: flex; align-items: center; gap: .65rem; min-height: 48px; margin: .7rem 0 1rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 5px; background: var(--sheet)}
.endpoint-preview span {padding: .2rem .35rem; border-radius: 3px; background: var(--sage); color: #fff; font-size: .62rem; font-weight: 720}
.endpoint-preview code {min-width: 0; overflow-wrap: anywhere; font-size: .76rem}
.result-meta {margin: .9rem 0 .45rem; color: var(--muted); font-size: .75rem}
.result-meta.is-success {color: #3e6849}
.result-meta.is-error {color: #8b3537}
.docs-heading {display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem}
.docs-heading h2 {margin: 0}
.quick-start-grid {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line)}
.quick-start-grid>div {padding: 1rem}
.quick-start-grid>div + div {border-left: 1px solid var(--line)}
.quick-start-grid small {color: var(--sage); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em}
.quick-start-grid p {margin: .45rem 0 0; font-size: .82rem}
.catalog-title {margin: 1.4rem 0 .7rem; font-size: 1rem; letter-spacing: 0}
.method-catalog {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem}
.method-group {min-width: 0; border-top: 1px solid #97a79b}
.method-group h4 {margin: .7rem .35rem .25rem; color: var(--muted); font-size: .76rem}
.method-item {grid-template-columns: minmax(110px,.85fr) minmax(0,1.4fr) auto; align-items: start; gap: .55rem; font-size: .75rem}
.method-item code {overflow-wrap: anywhere; font-weight: 650}
.method-item small {font-size: .58rem}

@media (max-width: 900px) {
  .section-heading {align-items: flex-start}
  .heading-actions {justify-content: flex-start}
  .account-overview {grid-template-columns: minmax(0,1fr)}
  .account-identity {border-right: 0; border-bottom: 1px solid var(--line)}
  .partner-stats {grid-template-columns: repeat(2,minmax(0,1fr))}
  .partner-flow {grid-template-columns: minmax(0,1fr)}
  .partner-flow>div {min-height: 74px}
  .partner-flow>div + div {border-top: 1px solid var(--line); border-left: 0}
  .api-meta-strip {grid-template-columns: repeat(2,minmax(0,1fr))}
  .api-meta-strip>div + div {border-left: 0}
  .api-meta-strip>div:nth-child(even) {border-left: 1px solid var(--line)}
  .api-meta-strip>.button {grid-column: 1/-1; margin: .7rem 1rem}
  .api-console-panel {position: static}
  .quick-start-grid {grid-template-columns: minmax(0,1fr)}
  .quick-start-grid>div + div {border-top: 1px solid var(--line); border-left: 0}
  .method-catalog {grid-template-columns: minmax(0,1fr)}
}

@media (max-width: 800px) {
  .section-heading {padding: 2rem 0 1.35rem}
  .section-heading h1 {font-size: clamp(2.15rem,9vw,3rem)}
  .heading-actions {width: 100%}
  .section-bar {align-items: stretch; flex-direction: column}
  .segmented {width: 100%}
  .segmented button {flex: 1}
  .order-route {gap: .65rem; padding: 1rem}
  .order-route-side {gap: .5rem}
  .order-route-side .coin {width: 32px; height: 32px}
  .order-route-copy strong {font-size: .9rem}
  .activity-heading {align-items: stretch; flex-direction: column}
  .affiliate-tabs button {flex: 1}
}

@media (max-width: 480px) {
  .heading-actions .sync-label {width: 100%}
  .heading-actions .button {flex: 1}
  .account-metrics .stat {min-height: 88px; padding: .8rem .6rem}
  .account-metrics .stat strong {font-size: 1.35rem}
  #order-filters {display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); overflow: visible}
  .order-route {grid-template-columns: minmax(0,1fr) minmax(0,1fr)}
  .order-route-word {display: none}
  .order-route-side:last-child {justify-self: stretch}
  .order-route-side .coin {width: 28px; height: 28px}
  .client-order .card-heading, .client-order>.order-meta, .order-disclosure summary {padding-right: 1rem; padding-left: 1rem}
  .order-status-note, .client-order>.transfer, .client-order>label, .client-order>.actions {margin-right: 1rem; margin-left: 1rem}
  .order-detail-content {padding-right: 1rem; padding-left: 1rem}
  .order-timeline li {grid-template-columns: minmax(0,1fr); gap: .15rem}
  .partner-stats {grid-template-columns: repeat(2,minmax(0,1fr))}
  .partner-stats .stat {display: grid; align-content: center; justify-content: stretch; min-height: 108px; padding: .8rem}
  .partner-stats .stat strong {font-size: 1.15rem; white-space: nowrap}
  .api-meta-strip {grid-template-columns: minmax(0,1fr)}
  .api-meta-strip>div:nth-child(even) {border-left: 0}
  .api-meta-strip>div + div {border-top: 1px solid var(--line)}
  .credential-row {grid-template-columns: minmax(0,1fr)}
  .credential-row .button {justify-self: start}
  .scope-option {grid-template-columns: auto minmax(0,1fr)}
  .scope-kind {grid-column: 2}
  .method-item {grid-template-columns: minmax(0,1fr) auto}
  .method-item>span:not(.scope-kind) {grid-column: 1/-1; grid-row: 2}
}
