/* Shared refinement from Figma 1969:3540. Keep the approved 2035 identity. */
html {
  --type-body: 15px;
  --type-support: 13px;
  --type-action: 15px;
  --space-section: 32px;
  --space-panel: 24px;
  --separator: #e5ebf1;
  --control-border: #7b8a9c;
  --control-radius: 10px;
}
html[data-theme=dark] {
  --separator: #273241;
  --control-border: #6d8097;
}
body { font-size: var(--type-body); line-height: 1.6; }
button,input,select { letter-spacing: 0; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible { outline-color: var(--brandtext); }
.topbar { height: 72px; gap: 40px; padding-inline: max(32px,calc((100vw - 1344px)/2)); border-color: var(--separator); }
.logo { flex-shrink: 0; min-height: 44px; display: inline-flex; align-items: center; }
.logo img { width: 128px; height: auto; display: block; }
.desktop-nav { gap: 28px; }
.desktop-nav .nav-item { font-size: 16px; font-weight: 500; }
.header-actions { gap: 16px; }
.header-actions .primary { font-size: 14px; min-height: 44px; }
.header-status { font-size: 12px; }
.header-actions .preview { font-size: 12px; line-height: 20px; }
.theme { width: 44px; height: 44px; border-color: var(--separator); }
.primary,.secondary { font-size: var(--type-action); line-height: 22px; border-radius: var(--control-radius); padding: 12px 20px; }
.primary { min-height: 48px; }
.secondary { min-height: 44px; border-color: var(--control-border); }
.text-button { font-size: var(--type-support); line-height: 21px; padding: 8px; }
.page { padding: 40px 48px 64px; }
.page-home { padding: 0; }
.page-heading { margin-bottom: 32px; gap: 24px; align-items: center; }
.page-heading h1 { font-size: 36px; line-height: 44px; letter-spacing: -.025em; }
.eyebrow,.page-heading .eyebrow { font-size: 12px; line-height: 20px; letter-spacing: .04em; }
.page-heading>p,.page-heading>small { font-size: var(--type-support); line-height: 21px; }
.section-heading { margin-bottom: 24px; gap: 16px; }
.section-heading h2 { font-size: 24px; line-height: 32px; letter-spacing: -.02em; }
.section-heading small { font-size: var(--type-support); line-height: 21px; }
.tab { font-size: 14px; line-height: 22px; min-height: 44px; min-width: 44px; padding: 10px 16px; }
.tabs { gap: 8px; }
.product-tabs { border-color: var(--separator); margin-bottom: 24px; }
.product-tabs .tab { font-size: 16px; padding: 12px 8px; }
.searchbox { min-height: 48px; border-color: var(--separator); border-radius: var(--control-radius); }
.searchbox input { font-size: 16px; }
.market-introduction { display: grid; grid-template-columns: minmax(0,1fr) 416px; align-items: end; gap: 32px; margin-bottom: 24px; }
.market-introduction .page-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; }
.market-introduction .page-heading small { text-align: left; max-width: none; }
.market-introduction .searchbox { width: 100%; max-width: none; margin: 0; }
.hero-2035 { padding: 64px 48px; gap: 48px; }
.hero-message h1 { font-size: clamp(48px,5.2vw,72px); line-height: 1.12; }
.open-access,.hero-message>small { font-size: var(--type-support); line-height: 21px; }
.hero-introduction { font-size: 18px; line-height: 29px; }
.hero-message { gap: 24px; }
.home-markets-2035 { padding: 16px 48px 64px; }
.home-market-heading { margin-bottom: 24px; gap: 24px; align-items: center; }
.home-market-heading h2 { font-size: 32px; line-height: 40px; letter-spacing: -.025em; }
.home-market-heading>a { font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.market-row { min-height: 80px; padding-block: 18px; border-color: var(--separator); }
.market-row .star,.market-row .row-trade { min-height: 44px; }
@media(max-width:760px) {
  .market-list .market-row .star { width: 44px; min-width: 44px; }
}
.pair b,.price b { font-size: 16px; line-height: 24px; }
.pair small,.price small,.quote-name,.market-list-source { font-size: var(--type-support); line-height: 21px; }
.market-list { border-color: var(--separator); }
.table-heading { font-size: 12px; padding-block: 14px; color: var(--muted); }
.market-list>.section-heading { padding-bottom: 8px; }
.spotlights { gap: 24px; margin-block: 32px; }
.spotlight { padding: 24px; border-color: var(--separator); }
.spotlight b { font-size: 15px; }
.spotlight small { font-size: var(--type-support); }
.spotlight strong { font-size: 28px; line-height: 36px; }
.workspace-2035,.questions-2035 { padding: 64px 48px; }
.workspace-2035 p,.product-entrances p,.faq p { font-size: 15px; line-height: 25px; }
.product-entrances article { padding: 24px; border-color: var(--separator); }
.questions-2035 summary { font-size: 15px; line-height: 24px; min-height: 56px; }
.faq details { border-color: var(--separator); }
.page-trade { padding: 24px 32px 64px; }
.trade-layout { gap: 24px; }
.market-stats { border: 0; border-radius: 12px; padding: 20px 24px 24px; margin-bottom: 32px; }
.market-stats-status { font-size: var(--type-support); line-height: 21px; }
.page-trade:not(.public-view) .market-stats { padding: 12px 20px; margin-bottom: 24px; }
.page-trade:not(.public-view) .market-stats dl { display: none; }
.market-stats dl { gap: 20px; margin-top: 12px; }
.market-stats dt { font-size: var(--type-support); line-height: 21px; }
.market-stats dd { font-size: 16px; line-height: 24px; margin-top: 8px; font-weight: 500; }
.trade-heading .pair b { font-size: 22px; line-height: 30px; }
.trade-heading .pair { min-height: 44px; }
.trade-heading .star { min-height: 44px; min-width: 44px; }
.ticker { gap: 16px; margin-block: 16px 24px; }
.ticker strong { font-size: 36px; line-height: 44px; letter-spacing: -.03em; }
.ticker small,.ticker small[data-source-label] { font-size: 12px; line-height: 20px; max-width: 190px; }
.chart-toolbar { border-color: var(--separator); }
.chart-toolbar .tab,.chart-toolbar .text-button { font-size: 13px; }
.chart-caption,.chart-caption .text-button { font-size: 12px; line-height: 20px; }
.orderbook { border: 0; padding: 16px 0; }
.orderbook h3 { font-size: 16px; line-height: 24px; margin-block: 20px 16px; }
.orderbook h3 small,.book-head,.book-note { font-size: 12px; line-height: 20px; }
.book-row,.book-row.book-price { font-size: 13px; line-height: 21px; min-height: 44px; }
.book-mid { font-size: 20px; line-height: 28px; padding-block: 20px; border-color: var(--separator); }
.public-readonly,.order-form { padding: var(--space-panel); border-radius: 12px; border: 0; gap: 16px; }
.public-view .execution-column.public-readonly { padding: 0; background: transparent; border: 0; }
.public-readonly h3 { font-size: 22px; line-height: 30px; }
.public-source,.public-readonly p,.public-readonly .secondary { font-size: var(--type-support); line-height: 21px; }
[data-unsigned-form] { gap: 16px; }
[data-unsigned-form] h3 { font-size: 22px; line-height: 30px; }
.field,[data-unsigned-form] .field { border: 1px solid var(--control-border); border-radius: var(--control-radius); padding: 10px 12px; gap: 6px; }
.field span,.select-label,.select-label>span,[data-unsigned-form] .select-label { font-size: var(--type-support); line-height: 21px; }
.field input,[data-unsigned-form] input[type=text],[data-unsigned-form] input:not([type]) { font-size: 18px; line-height: 26px; min-height: 32px; }
.field:focus-within { border-color: var(--brandtext); }
.select-label select,[data-unsigned-form] select { font-size: 14px; padding: 10px 12px; min-height: 48px; border-color: var(--control-border); border-radius: var(--control-radius); }
.side-tabs .tab { font-size: 14px; line-height: 22px; min-height: 44px; }
.price-shortcuts button { font-size: 13px; padding: 8px; border-color: var(--separator); }
.order-entry-amount,.unsigned-reduce,[data-unsigned-form] .form-error { font-size: var(--type-support); line-height: 21px; }
.form-note,[data-unsigned-form] .form-note { font-size: var(--type-support); line-height: 22px; }
.review-button { font-size: 15px; min-height: 48px; }
.order-form .order-options { gap: 16px; margin-block: 16px; }
.order-form .order-options label { min-width: 0; font-size: 13px; line-height: 22px; }
.order-form .order-options select { min-height: 48px; font-size: 16px; line-height: 24px; padding: 10px 12px; border: 1px solid var(--control-border); border-radius: var(--control-radius); }
.order-form .advanced { margin-block: 16px; font-size: 14px; line-height: 24px; }
.order-form .advanced summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 16px; border-top: 1px solid var(--separator); list-style: none; }
.order-form .advanced summary::-webkit-details-marker { display: none; }
.order-form .advanced summary::after { content: ''; width: 14px; height: 14px; flex: none; background: linear-gradient(var(--muted),var(--muted)) center/14px 1.5px no-repeat,linear-gradient(var(--muted),var(--muted)) center/1.5px 14px no-repeat; }
.order-form .advanced[open] summary::after { background: linear-gradient(var(--muted),var(--muted)) center/14px 1.5px no-repeat; }
.order-form .advanced .field { margin-top: 12px; }
.order-form .check { min-height: 44px; display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 24px; }
.order-form .check input { width: 18px; height: 18px; flex: none; }
.order-form .order-estimates { font-size: 13px; line-height: 22px; }
.order-form .order-estimates>div { gap: 12px; }
.order-form .order-estimates dd { min-width: 0; overflow-wrap: anywhere; }
.order-form #order-error { font-size: 13px; line-height: 22px; }
.order-form .field:has(input[aria-invalid=true]) { border-color: var(--ask); }
.sheet:has([data-action=review-history]) .review-pair>div { min-width: 0; }
.sheet:has([data-action=review-history]) .review-pair h3 { font-size: 22px; line-height: 30px; }
.sheet:has([data-action=review-history]) .review-pair p { font-size: 14px; line-height: 24px; }
.sheet:has([data-action=review-history]) .review-values { margin-top: 24px; }
.sheet:has([data-action=review-history]) .review-values>div { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); gap: 16px; align-items: center; min-height: 44px; padding-block: 10px; font-size: 14px; line-height: 24px; }
.sheet:has([data-action=review-history]) .review-values dt { min-width: 0; word-break: keep-all; }
.sheet:has([data-action=review-history]) .review-values dd { min-width: 0; overflow-wrap: anywhere; }
.sheet:has([data-action=review-history]) .review-values .review-total { display: block; margin: 0 0 16px; padding: 20px; border: 0; border-radius: 12px; background: var(--surface2); }
.sheet:has([data-action=review-history]) .review-total dt { font-size: 13px; line-height: 22px; font-weight: 400; color: var(--muted); }
.sheet:has([data-action=review-history]) .review-total dd { margin-top: 8px; font-size: 24px; line-height: 32px; font-weight: 600; text-align: left; }
.sheet:has([data-action=review-history]) .notice { margin-block: 20px; padding: 16px; font-size: 13px; line-height: 22px; }
.sheet [data-action=review-history] { min-height: 48px; border: 1px solid var(--control-border); border-radius: var(--control-radius); background: var(--surface); font-size: 14px; line-height: 24px; }
.orders-panel { padding: 24px 0; margin-top: 32px; border-color: var(--separator); }
.account-tabs { gap: 16px; border-color: var(--separator); }
.account-tabs .tab { font-size: 14px; padding-inline: 8px; }
.account-meta { font-size: var(--type-support); gap: 24px; padding-block: 16px; }
.account-table { font-size: 14px; }
.account-table th { font-size: var(--type-support); }
.account-table th,.account-table td { padding: 18px 16px; border-color: var(--separator); }
.account-scope { font-size: var(--type-support); line-height: 22px; }
.empty { padding-block: 32px; }
.empty h3,.orders-panel .empty h3 { font-size: 18px; line-height: 28px; }
.empty p,.orders-panel .empty p { font-size: 14px; line-height: 24px; margin-block: 10px 20px; }
.trading-session { padding: 24px; font-size: 14px; line-height: 24px; border-color: var(--separator); }
.trading-session h3 { font-size: 18px; line-height: 28px; }
.trading-session small,.trading-account>small,.trading-positions>small,.trading-fees>small,.local-order-list small { font-size: 13px; line-height: 22px; }
.trading-positions,.trading-account,.trading-fees,.risk-review,.fee-review,.order-record-history,.local-order-list article { border-color: var(--separator); }
.asset-tabs { margin-bottom: 32px; }
.asset-tabs .tab { font-size: 15px; }
.asset-summary { padding: 32px; border: 0; border-radius: 12px; }
.asset-summary>span { font-size: 15px; }
.asset-summary strong { line-height: 1.2; }
.asset-summary p,.asset-summary small { font-size: var(--type-support); line-height: 22px; }
.fund-actions { gap: 24px; margin-top: 24px; }
.fund-actions button { font-size: 14px; min-height: 48px; }
.account-overview { margin-top: 32px; }
.account-row,.asset-row { padding-block: 24px; border-color: var(--separator); gap: 20px; }
.account-row h3 { font-size: 16px; line-height: 24px; }
.account-row p,.asset-row small,.asset-coins>p { font-size: 13px; line-height: 22px; }
.asset-coins h2 { font-size: 22px; line-height: 30px; }
.connect-panel { margin-block: 32px; padding: 32px 24px; border: 0; border-radius: 12px; background: var(--surface); }
.connect-panel h2 { font-size: 24px; line-height: 32px; }
.connect-panel p { max-width: 620px; font-size: 14px; line-height: 25px; margin: 16px auto 24px; }
.reward-summary,.benefit-feature { padding: 32px; border-color: var(--separator); border-radius: 12px; }
.reward-summary>p,.benefit-feature p { font-size: 15px; line-height: 25px; }
.service-grid { gap: 24px; }
.service-card { padding-block: 28px; border-color: var(--separator); }
.service-card h3 { font-size: 20px; line-height: 28px; }
.service-card p { font-size: 14px; line-height: 24px; }
.sheet { border-color: var(--separator); border-radius: 16px; }
.sheet>header { padding: 20px 24px; border-color: var(--separator); }
.sheet>header h2 { font-size: 22px; line-height: 30px; }
.sheet-body { padding: 24px; }
.sheet-intro p,.wallet-consent p { font-size: 14px; line-height: 24px; }
.sheet .review-values,.sheet .review-values>div { font-size: 14px; line-height: 24px; }
.notice { font-size: 13px; line-height: 22px; padding: 20px; border-color: var(--separator); }
.wallet-option { padding: 18px; min-height: 80px; border-color: var(--separator); }
.wallet-option strong { font-size: 16px; }
.wallet-option small,.selected-wallet-label { font-size: 13px; line-height: 21px; }
.asset-summary { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 32px; }
.asset-account-reading { min-width: 0; }
.asset-account-reading>small { display: block; font-size: 13px; line-height: 22px; color: var(--muted); }
.asset-account-reading>strong { display: block; font-size: 40px; line-height: 48px; letter-spacing: -.025em; margin-block: 8px; }
.asset-account-reading>strong small { font-size: 18px; letter-spacing: 0; }
.asset-account-reading>p { max-width: 700px; margin: 8px 0 0; font-size: 13px; line-height: 22px; }
.asset-account-reading>.secondary { margin-top: 16px; }
.asset-summary .fund-actions { margin: 0; gap: 16px; }
.asset-summary .fund-actions button { min-width: 80px; min-height: 48px; gap: 8px; font-size: 14px; flex-direction: column; }
.asset-summary .fund-actions button span { display: none; }
.asset-summary .fund-actions button { padding: 12px; border: 1px solid var(--control-border); border-radius: var(--control-radius); }
.connect-panel { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: 'title action' 'copy action'; gap: 12px 32px; text-align: left; }
.connect-panel .connection-symbol { display: none; }
.connect-panel h2 { grid-area: title; font-size: 22px; line-height: 30px; }
.connect-panel p { grid-area: copy; margin: 0; max-width: 700px; font-size: 14px; line-height: 24px; }
.connect-panel>.primary { grid-area: action; align-self: center; }
.page-benefits .reward-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; min-height: 0; border: 0; background: var(--surface2); }
.page-benefits .reward-summary>small { font-size: 13px; line-height: 22px; color: var(--brandtext); }
.page-benefits .reward-summary h2 { font-size: 20px; line-height: 28px; letter-spacing: -.02em; }
.page-benefits .reward-summary p { max-width: 700px; width: auto; margin: 0; font-size: 14px; line-height: 24px; }
.page-benefits .service-card { padding-block: 20px; min-height: 96px; gap: 16px; }
.page-benefits .service-card h3 { font-size: 18px; line-height: 28px; }
.page-benefits .service-card p { font-size: 13px; line-height: 22px; margin-top: 4px; }
.sheet .close { width: 44px; height: 44px; flex: none; }
.sheet:has(#wallet-options) .sheet-intro h3 { font-size: 20px; line-height: 28px; margin: 0 0 12px; letter-spacing: -.02em; }
.sheet:has(#wallet-options) .sheet-intro p { margin: 0; font-size: 14px; line-height: 24px; }
.sheet:has(#wallet-options) .notice { margin: 20px 0; padding: 16px; font-size: 14px; line-height: 24px; }
.sheet [data-action=wallet-rescan] { min-height: 48px; padding: 12px 16px; border: 1px solid var(--control-border); border-radius: var(--control-radius); background: var(--surface); font-size: 14px; line-height: 24px; }
.sheet:has(#wallet-options) .form-note { margin-top: 20px; font-size: 13px; line-height: 22px; }
.footer { gap: 20px; padding: 24px 48px; border-color: var(--separator); }
.footer small { font-size: 12px; line-height: 20px; }
@media(min-width:1180px) { .trade-layout { grid-template-columns: minmax(0,1fr) 240px 320px; } }
@media(min-width:761px) and (max-width:1179px) {
  .public-view .trade-layout { grid-template-columns: minmax(0,1fr) 320px; }
  .public-view .chart-panel { grid-column: 1; grid-row: 1; }
  .public-view .execution-column { grid-column: 2; grid-row: 1 / span 2; }
  .public-view .orderbook { display: block; grid-column: 1; grid-row: 2; }
  .public-view .orders-panel { grid-column: 1 / -1; grid-row: 3; }
}
@media(max-width:760px) {
  .topbar { height: 64px; padding-inline: 24px; gap: 12px; }
  .logo img { width: 104px; height: auto; }
  .header-actions { gap: 8px; }
  .topbar .primary { padding-inline: 12px; font-size: 13px; min-height: 44px; }
  .page { padding: 32px 24px 112px; }
  .page-home { padding: 0; }
  .page-heading { margin: 0 0 24px; gap: 16px; }
  .page-heading h1 { font-size: 28px; line-height: 36px; }
  .page-heading .eyebrow { font-size: 12px; margin-bottom: 8px; }
  .page-heading .text-button { font-size: 13px; }
  .market-introduction { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .market-introduction .page-heading { gap: 8px; }
  .market-introduction .page-heading .eyebrow { margin-bottom: 0; }
  .section-heading h2 { font-size: 22px; line-height: 30px; }
  .hero-2035 { padding: 40px 24px 32px; gap: 32px; }
  .hero-message { gap: 20px; }
  .hero-message h1 { font-size: 40px; line-height: 44px; letter-spacing: -.03em; }
  .hero-introduction { font-size: 16px; line-height: 26px; }
  .hero-actions { gap: 12px; width: 100%; }
  .hero-actions>* { flex: 1; min-width: 0; padding-inline: 10px; font-size: 14px; }
  .home-markets-2035 { padding: 24px 24px 40px; }
  .home-market-heading { flex-wrap: wrap; gap: 8px 16px; }
  .home-market-heading h2 { font-size: 28px; line-height: 36px; }
  .home-market-heading>a { font-size: 13px; padding-block: 4px; }
  .market-row,.page-markets .market-row { min-height: 76px; padding-block: 18px; gap: 12px; }
  .pair b,.price b,.page-markets .pair b,.page-markets .price b { font-size: 15px; line-height: 23px; }
  .pair small,.page-markets .pair small,.market-row .quote-name,.price small { font-size: 13px; line-height: 21px; }
  .pair { min-width: 0; }
  .spotlights { gap: 16px; margin-block: 24px; }
  .spotlight { padding: 20px 16px; }
  .spotlight strong { font-size: 24px; line-height: 32px; }
  .workspace-2035,.questions-2035 { padding: 40px 24px; }
  .product-entrances { gap: 24px; }
  .product-entrances article { padding: 24px 0; }
  .workspace-2035 p,.product-entrances p,.faq p { font-size: 14px; line-height: 24px; }
  .page-trade { padding: 24px 20px 112px; }
  .trade-jump { top: 0; gap: 8px; padding-bottom: 16px; }
  .market-stats { padding: 20px; margin-bottom: 24px; }
  .market-stats dl { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 16px; }
  .market-stats dt,.market-stats-status { font-size: 13px; line-height: 21px; }
  .market-stats dd { font-size: 15px; line-height: 23px; }
  .public-view .trade-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .public-view .chart-panel,.public-view .orderbook,.public-view .execution-column,.public-view .orders-panel { grid-column: 1; grid-row: auto; }
  .public-view .orderbook { padding: 20px; border: 0; border-radius: 12px; }
  .public-view .public-readonly,.public-view .order-form { padding: 24px 20px; }
  .trade-heading .pair b { font-size: 20px; line-height: 28px; }
  .ticker strong { font-size: 32px; line-height: 40px; }
  .ticker small,.ticker small[data-source-label] { font-size: 12px; line-height: 20px; max-width: 150px; }
  .chart-toolbar .tab { padding-inline: 12px; }
  .select-label select,[data-unsigned-form] select,.field input { font-size: 16px; }
  .book-row,.book-row.book-price { font-size: 14px; line-height: 22px; }
  .tape-table { font-size: 13px; }
  .tape-table td { padding-block: 14px; }
  .orders-panel { margin-top: 8px; padding: 24px 0; }
  .account-tabs { gap: 12px; }
  .account-tabs .tab { font-size: 14px; padding-inline: 4px; }
  .account-meta { gap: 12px; }
  .asset-summary { padding: 24px; }
  .asset-summary { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .asset-account-reading>strong { font-size: 36px; line-height: 44px; }
  .asset-summary .fund-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; gap: 12px; }
  .asset-summary .fund-actions button { min-width: 0; padding-inline: 8px; }
  .asset-summary>strong { font-size: 36px; }
  .fund-actions { gap: 12px; }
  .fund-actions button { font-size: 14px; }
  .connect-panel { padding: 24px 20px; text-align: left; }
  .connect-panel h2 { font-size: 22px; line-height: 30px; }
  .connect-panel p { max-width: none; margin: 12px 0 24px; }
  .connect-panel { grid-template-columns: minmax(0,1fr); grid-template-areas: 'title' 'copy' 'action'; }
  .connect-panel p { margin: 0; }
  .connect-panel>.primary { justify-self: start; margin-top: 8px; }
  .connection-symbol { display: none; }
  .asset-row { gap: 12px; }
  .reward-summary,.benefit-feature { padding: 24px; }
  .benefit-feature p { max-width: 100%; font-size: 14px; line-height: 24px; }
  .sheet { border-radius: 16px 16px 0 0; }
  .sheet>header { padding: 20px 24px; }
  .sheet-body { padding: 24px 24px max(32px,env(safe-area-inset-bottom)); }
  .bottom-nav { border-color: var(--separator); }
  .bottom-nav .nav-item { font-size: 12px; line-height: 18px; }
  .footer { padding: 24px 24px 112px; gap: 16px; }
  .footer small { font-size: 12px; line-height: 20px; }
}
@media(max-width:360px) {
  .topbar { padding-inline: 20px; }
  .topbar .theme { width: 44px; }
  .topbar .primary { padding-inline: 10px; }
  .hero-message h1 { font-size: 34px; line-height: 39px; }
  .hero-actions>* { font-size: 13px; padding-inline: 6px; }
  .market-row .pair { gap: 8px; }
  .page-markets .market-row { gap: 6px; }
  .page-markets .star { width: 44px; min-width: 44px; }
  .market-row .quote-name { display: none; }
  .spotlight { padding: 16px 12px; }
  .spotlight strong { font-size: 20px; line-height: 28px; letter-spacing: -.035em; }
}
/* Figma 1995:2668 / 1995:2724: trade tools and help share the reading scale. */
.sheet:has(.pair-picker) .sheet-body { padding: 24px 24px max(32px,env(safe-area-inset-bottom)); }
.sheet:has(.pair-picker)>header h2 { font-size: 22px; line-height: 30px; }
.pair-picker { gap: 16px; }
.pair-picker .pair-search { padding-inline: 16px; border: 1px solid transparent; border-radius: var(--control-radius); }
.pair-picker .pair-search:focus-within { border-color: var(--brandtext); box-shadow: 0 0 0 1px var(--brandtext); }
.pair-picker .pair-search input { height: 48px; font-size: 16px; line-height: 24px; }
.pair-picker .pair-filters button { font-size: 14px; line-height: 22px; min-height: 44px; }
.pair-picker .pair-status { font-size: 13px; line-height: 22px; color: var(--muted); margin: 0; }
.pair-picker .pair-options { gap: 0; }
.pair-picker .pair-options>.pair { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; gap: 12px; min-height: 72px; padding: 12px 0; border-bottom: 1px solid var(--separator); }
.pair-picker .pair-options>.pair:last-child { border-bottom: 0; }
.pair-picker .pair-options .pair>span:nth-child(2) { min-width: 0; text-align: left; }
.pair-picker .pair-options .pair b { font-size: 15px; line-height: 24px; font-weight: 600; }
.pair-picker .pair-options .pair small { font-size: 13px; line-height: 22px; }
.pair-picker .pair-options .pair>span:last-child { font-size: 14px; line-height: 24px; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.sheet:has(.support-intro) .sheet-intro h3 { font-size: 22px; line-height: 30px; margin: 0 0 16px; }
.sheet:has(.support-intro) .sheet-intro p { font-size: 14px; line-height: 24px; }
.sheet:has(.support-intro) .faq { margin: 24px 0; }
.sheet:has(.support-intro) .faq details { padding: 0; border-color: var(--separator); }
.sheet:has(.support-intro) .faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 16px 0; font-size: 15px; line-height: 24px; font-weight: 600; list-style: none; cursor: pointer; }
.sheet:has(.support-intro) .faq summary::-webkit-details-marker { display: none; }
.sheet:has(.support-intro) .faq summary::after { content: ''; width: 16px; height: 16px; flex: 0 0 16px; background: linear-gradient(currentColor,currentColor) center/12px 1px no-repeat,linear-gradient(currentColor,currentColor) center/1px 12px no-repeat; }
.sheet:has(.support-intro) .faq details[open] summary::after { background-size: 12px 1px,0 0; }
.sheet:has(.support-intro) .faq details p { font-size: 14px; line-height: 24px; margin: 0 0 16px; }
.sheet:has(.support-intro) .full-width { min-height: 48px; }
/* Figma 1997:2668 / 1997:2692: market data and account reading rhythm. */
.market-panel-tabs { gap: 24px; margin-bottom: 16px; border-color: var(--separator); }
.market-panel-tabs button { min-height: 48px; font-size: 14px; line-height: 22px; padding-inline: 4px; }
.orderbook h3 { margin-top: 0; }
.orderbook .book-head,.orderbook .book-note { font-size: 13px; line-height: 22px; }
.orderbook .book-row { font-size: 14px; line-height: 22px; font-variant-numeric: tabular-nums; }
.tape-source,.tape-bottom,.tape-bottom small,.tape-empty,.orderbook .public-empty { font-size: 13px; line-height: 22px; }
.tape-source { margin-bottom: 16px; }
.tape-table { table-layout: fixed; font-size: 14px; line-height: 22px; }
.tape-table th { font-size: 12px; line-height: 20px; padding: 10px 4px; white-space: normal; word-break: keep-all; }
.tape-table td { padding: 12px 4px; white-space: normal; overflow-wrap: anywhere; border-color: var(--separator); }
.tape-table time { font-size: 12px; line-height: 18px; max-width: 80px; margin-left: auto; white-space: normal; }
.tape-bottom { padding-top: 16px; }
.tape-bottom .text-button,.tape-empty .text-button { min-height: 44px; font-size: 14px; }
.orders-panel .account-tabs { border-bottom: 1px solid var(--separator); margin-bottom: 16px; }
.orders-panel .account-tabs .tab { background: transparent; border-radius: 0; min-height: 48px; font-size: 14px; line-height: 22px; }
.orders-panel #account-content>.empty { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: 'title action' 'copy action'; gap: 8px 24px; padding: 24px; background: var(--surface); border-radius: 12px; text-align: left; }
.orders-panel #account-content>.empty h3 { grid-area: title; margin: 0; font-size: 18px; line-height: 28px; word-break: keep-all; text-wrap: pretty; }
.orders-panel #account-content>.empty p { grid-area: copy; margin: 0; max-width: 640px; font-size: 14px; line-height: 24px; word-break: keep-all; text-wrap: pretty; }
.orders-panel #account-content>.empty button { grid-area: action; align-self: center; justify-self: end; min-height: 48px; margin: 0; }
.account-meta .text-button { min-height: 44px; font-size: 14px; }
.account-meta input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brandtext); }
.account-table th { background: var(--surface2); }
@media(max-width:760px) {
  .orders-panel .account-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; overflow: visible; }
  .orders-panel .account-tabs .tab { min-width: 0; padding-inline: 2px; }
  .orders-panel #account-content>.empty { grid-template-columns: minmax(0,1fr); grid-template-areas: 'title' 'copy' 'action'; gap: 12px; }
  .orders-panel #account-content>.empty button { justify-self: start; margin-top: 4px; }
}
.account-table .text-button { min-height: 44px; font-size: 14px; line-height: 22px; }
/* Figma 2000:2668 / 2000:2703; review scale shared with 1994:2668. */
.order-form .select-label { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 0 0 16px; text-align: left; }
.order-form .select-label select { width: 100%; font-size: 16px; line-height: 24px; text-align: left; }
.order-form .side-tabs { margin: 0 0 16px; gap: 8px; border: 0; }
.order-form .side-tabs .tab { min-height: 48px; border: 0; border-radius: 8px; background: var(--surface2); }
.order-form .side-tabs .tab.active { background: var(--bid); }
.order-form .side-tabs .tab.active[data-value=sell] { background: var(--ask); }
.order-form .field { padding: 8px 12px; gap: 4px; }
.order-form .field>span { font-size: 13px; line-height: 18px; }
.order-form .field input { font-size: 18px; line-height: 28px; min-height: 28px; height: 28px; }
.order-form .form-note { font-size: 13px; line-height: 22px; text-align: left; word-break: keep-all; }
[data-unsigned-form] .select-label,[data-unsigned-form] .side-tabs,[data-unsigned-form] .field { margin: 0; }
[data-unsigned-form] .price-shortcuts button { font-size: 14px; line-height: 22px; }
[data-unsigned-form] .unsigned-reduce { min-height: 44px; font-size: 14px; line-height: 22px; }
[data-unsigned-form] .unsigned-reduce input { width: 18px; height: 18px; accent-color: var(--brandtext); }
[data-unsigned-form] .order-entry-amount { display: block; padding: 16px; border-radius: 10px; background: var(--surface2); font-size: 13px; line-height: 22px; }
[data-unsigned-form] .order-entry-amount output { display: block; margin-top: 8px; max-width: 100%; font-size: 20px; line-height: 28px; font-weight: 600; text-align: left; }
[data-unsigned-form]:has([name=entryType] option[value=market]:checked) .order-entry-amount output { font-size: 14px; line-height: 24px; font-weight: 400; }
[data-unsigned-form] #unsigned-error:empty { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sheet:has([data-action=unsigned-recheck]) .review-pair h3 { font-size: 22px; line-height: 30px; }
.sheet:has([data-action=unsigned-recheck]) .review-pair p { font-size: 14px; line-height: 24px; }
.sheet:has([data-action=unsigned-recheck]) .review-values { margin-top: 24px; }
.sheet:has([data-action=unsigned-recheck]) .review-values>div { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); gap: 16px; min-height: 44px; font-size: 14px; line-height: 24px; }
.sheet:has([data-action=unsigned-recheck]) .review-values dd { min-width: 0; overflow-wrap: anywhere; }
.sheet:has([data-action=unsigned-recheck]) .review-values .review-total { display: block; margin: 16px 0; padding: 20px; border: 0; border-radius: 12px; background: var(--surface2); }
.sheet:has([data-action=unsigned-recheck]) .review-total dt { font-size: 13px; line-height: 22px; font-weight: 400; color: var(--muted); }
.sheet:has([data-action=unsigned-recheck]) .review-total dd { margin: 8px 0 0; font-size: 24px; line-height: 32px; font-weight: 600; text-align: left; }
.sheet:has([data-action=unsigned-recheck]) .notice { padding: 16px; font-size: 13px; line-height: 22px; margin: 20px 0; }
.sheet:has([data-action=unsigned-recheck]) .form-note { font-size: 13px; line-height: 22px; }
.sheet [data-action=unsigned-recheck] { min-height: 48px; border: 1px solid var(--control-border); border-radius: var(--control-radius); font-size: 14px; line-height: 24px; }

/* Figma 2005:2668 / 2709 / 2750: price and direction before decoration. */
.spotlight { display:flex; flex-direction:column; align-items:stretch; gap:12px; padding:16px; border-radius:12px; }
.spotlight .spotlight-identity { display:flex; align-items:center; flex-wrap:nowrap; gap:8px; min-width:0; }
.spotlight .spotlight-identity .coin { width:32px; height:32px; flex:none; }
.spotlight .spotlight-identity b { font-size:15px; line-height:22px; }
.spotlight .spotlight-quote { color:var(--muted); font-size:11px; line-height:22px; white-space:nowrap; }
.spotlight > strong { margin:0; min-width:0; font-size:24px; line-height:32px; letter-spacing:-.025em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.spotlight .spotlight-meta { display:flex; justify-content:space-between; flex-wrap:nowrap; gap:8px; min-width:0; font-size:13px; line-height:20px; color:var(--muted); }
.spotlight .spotlight-meta [data-live-change] { font-variant-numeric:tabular-nums; }
.page-assets #asset-spot { margin-top:32px; }
@media(max-width:360px) {
  .spotlight { padding:16px 12px; }
  .spotlight .spotlight-identity { gap:4px; }
  .spotlight .spotlight-identity .coin { width:24px; height:24px; }
  .spotlight .spotlight-identity b { font-size:13px; }
  .spotlight > strong { font-size:20px; line-height:28px; }
}

/* Figma 2007:2668: market labels share the same columns as their values. */
@media(min-width:761px) {
  .market-list .table-heading,
  .market-list .market-row {
    display:grid;
    grid-template-columns:28px minmax(0,1fr) 104px 108px 46px;
    gap:12px;
    align-items:center;
  }
  .market-list .table-heading { padding-inline:0; }
  .market-list .table-heading span:first-child { grid-column:2; }
  .market-list .table-heading span:nth-child(2) { grid-column:3; text-align:right; }
  .market-list .table-heading span:last-child { grid-column:4; text-align:right; }
  .market-list .market-row .star { width:28px; min-width:28px; }
  .market-list .market-row .pair { min-width:0; }
  .market-list .market-row .volume { margin-left:0; min-width:0; text-align:right; }
  .market-list .market-row .price { width:100%; margin-left:0; min-width:0; }
  .market-list .market-row .row-trade { margin-left:0; }
}
@media(min-width:761px) and (max-width:1100px) {
  .market-list .table-heading,
  .market-list .market-row { grid-template-columns:28px minmax(0,1fr) 108px 46px; gap:8px; }
  .market-list .table-heading span:last-child { grid-column:3; }
}

/* Keep the testnet price and change sources readable on narrow charts. */
.page-trade.public-view .ticker small[data-source-label] {
  max-width:245px;
  word-break:keep-all;
  overflow-wrap:normal;
}
@media(max-width:1100px) {
  .page-trade.public-view .ticker { flex-wrap:wrap; }
  .page-trade.public-view .ticker small[data-source-label] {
    flex:0 0 100%;
    max-width:none;
    margin-left:0;
    text-align:left;
  }
}

/* Figma 2010:2668: narrow screens need full-width prices and controls. */
@media(max-width:389px) {
  .page-trade:not(.public-view) .trade-layout { grid-template-columns:minmax(0,1fr); gap:24px; }
  .page-trade:not(.public-view) .trade-layout > .chart-panel,
  .page-trade:not(.public-view) .trade-layout > .orderbook,
  .page-trade:not(.public-view) .trade-layout > .order-form,
  .page-trade:not(.public-view) .trade-layout > .orders-panel { grid-column:1; grid-row:auto; }
  .page-trade:not(.public-view) .order-options { flex-direction:column; }
}

/* Keep keyboard-focused picker controls below its 86px sticky heading. */
.sheet:has(.pair-picker) { scroll-padding-block: 100px 16px; }
/* Leave space for keyboard focus rings at the bottom of scrolling dialogs. */
.sheet { scroll-padding-block-end: 16px; }
/* Focused order inputs must clear mobile section shortcuts and bottom navigation. */
@media(max-width:760px) {
  .order-form input { scroll-margin-block: 104px 96px; }
}