/* Keep numeric contrast tied to its actual surface, including embedded dialogs. */
body{font-variant-numeric:tabular-nums lining-nums}
html.mmd-embedded .savings-balances strong{color:#f5cc6c!important;font-weight:700}html.mmd-embedded .finance-balances small{color:#b9c9da!important}
html.mmd-embedded :is(.paper-up,.paper-positive){color:#42dfb2!important}html.mmd-embedded :is(.paper-down,.paper-negative){color:#ff839a!important}
html{font-synthesis:none}body{font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif}strong,b,dd,output,input[type=number],input[inputmode=decimal],td{font-variant-numeric:tabular-nums lining-nums;letter-spacing:normal}strong,b,dd{font-weight:650}input[inputmode=decimal],input[type=number]{font-size:16px!important;font-weight:600;opacity:1}input:disabled{opacity:.85}
html.mmd-embedded :is(.wealth-plan,.connection-card,.finance-balances article,.savings-order,.paper-summary article,.paper-position,.paper-order,.paper-panel,.discovery-card,.practice-order,.member-wallet,.member-note,dialog,#finance-wallet,#wealth-result .wealth-review,#wealth-feedback){background:#152332!important;color:#f3f7fc!important;border-color:#3d5065!important;--ink:#f3f7fc;--muted:#b9c9da;--surface:#152332;--bg:#0e1925;--line:#3d5065}
html.mmd-embedded :is(.wealth-plan,.connection-card,.savings-order,.paper-summary,.paper-position,.paper-order,dialog,#finance-wallet) :is(h1,h2,h3,strong,b,dd,td){color:#f3f7fc}
html.mmd-embedded :is(.wealth-plan,.connection-card,.savings-order,.paper-summary,.paper-position,.paper-order,dialog,#finance-wallet) :is(small,dt,label,p){color:#b9c9da}
html.mmd-embedded :is(.wealth-metrics,.finance-balances,.direction-estimate,.wealth-review,.savings-order dl,.paper-summary) :is(strong,dd){font-weight:700!important;text-shadow:none!important;opacity:1!important;filter:none!important}
html.mmd-embedded .wealth-metrics>div:first-child strong{color:#42dfb2!important}html.mmd-embedded .wealth-plan .wealth-entry,html.mmd-embedded .wealth-plan .wealth-entry :is(strong,small){color:#fff!important}html.mmd-embedded .wealth-plan-heading h2{color:#f3f7fc!important}.wealth-metrics strong{font-size:25px!important}.wealth-plan-heading h2{font-weight:700}
html.mmd-embedded dialog :is(input,select,textarea){background:#0e1925!important;color:#f3f7fc!important;border-color:#536b84!important}html.mmd-embedded .finance-table th{color:#b9c9da}html.mmd-embedded .finance-table td{color:#f3f7fc}html.mmd-embedded .finance-table small{color:#b9c9da}
html.mmd-embedded :is(.side-up,.cm-up-text,.paper-positive){color:#42dfb2!important}html.mmd-embedded :is(.side-down,.cm-down-text,.paper-negative){color:#ff839a!important}.funding-order-amount,.pro-home-balance,.pro-asset-summary strong{font-weight:700}.cm-chart text{fill:#718399;font-weight:600}html.mmd-embedded .cm-chart text{fill:#b9c9da!important}html.mmd-embedded .cm-ohlc,html.mmd-embedded .cm-chart-legend small,html.mmd-embedded .cm-source{color:#b9c9da!important}.cm-price strong,.cm-detail-quote>div>strong{font-weight:700!important}.pro-asset-summary small,.pro-home-reserved{font-size:12px!important}
@media(max-width:600px){.wealth-metrics strong{font-size:25px!important}.finance-table{font-size:15px}.cm-ohlc{font-size:11px!important}.cm-chart text{font-size:19px!important}.pro-asset-summary strong{font-size:17px}.direction-estimate dd{font-size:16px}.funding-review dd{font-size:17px;font-weight:650}}
/* Responsive coin chart: SVG units match CSS pixels so axis labels never stretch. */
.coin-detail-open #lm-detail{background:#202630;color:#eaecef;margin:0 -16px;padding:0 14px 22px}
.coin-detail-open .cm-detail-name h2,.coin-detail-open .cm-detail-quote dd{color:#eaecef!important}
.coin-detail-open .cm-detail-top{padding-top:12px}.coin-detail-open .cm-detail-top button,.coin-detail-open .cm-periods button,.coin-detail-open .indicator-tabs button,.coin-detail-open .mmd-micro button{color:#929aa5;background:transparent}
.coin-detail-open .cm-detail-top select{background:#202630;color:#eaecef;border-color:#343b46}
.coin-detail-open .cm-detail-quote{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:12px;margin:16px 0 18px}
.coin-detail-open .cm-detail-quote>div>strong{font-size:clamp(23px,6.7vw,36px);color:#eaecef!important;letter-spacing:-.5px}
.coin-detail-open .pro-market-stats summary{display:none}.coin-detail-open .pro-market-stats dl{display:block;font-size:11px;margin:0;min-width:0}.coin-detail-open .pro-market-stats dl>div{display:flex;justify-content:space-between;gap:4px;padding:3px 0}.coin-detail-open .pro-market-stats dt{color:#929aa5}.coin-detail-open .pro-market-stats dd{font-size:11px;margin:0;white-space:nowrap}
.coin-detail-open .cm-ohlc{color:#929aa5!important;gap:6px;margin:6px 0;font-size:10px!important}.coin-detail-open .cm-ohlc b{color:#c9cdd3!important}.coin-detail-open .cm-chart-legend{margin:6px 0;font-size:11px}.coin-detail-open .cm-chart-legend small{display:none}
.coin-detail-open #lm-chart-holder{position:relative;margin:0 -14px}.coin-detail-open svg.cm-chart{display:block;width:100%;height:auto;min-height:0;max-width:100%;margin:0;aspect-ratio:auto}.coin-detail-open svg.cm-chart text{font-family:Arial,sans-serif;font-size:12px!important;font-weight:400!important;letter-spacing:0;fill:#929aa5!important}.coin-detail-open svg.cm-chart .cm-last-label{fill:#eaecef!important}
.cm-volume-readout{position:absolute;left:8px;right:8px;top:var(--volume-top);display:flex;flex-wrap:wrap;column-gap:8px;row-gap:2px;font-size:10px;line-height:12px;color:#929aa5;pointer-events:none}
.coin-detail-open .indicator-tabs{border-block:1px solid #343b46;margin:0;padding:8px 0;gap:20px}.coin-detail-open .indicator-tabs button[aria-pressed=true],.coin-detail-open .cm-periods button.selected,.coin-detail-open .cm-periods button[aria-pressed=true]{color:#eaecef;background:transparent;font-weight:600}
.coin-detail-open .mmd-price-tabs,.coin-detail-open .mmd-micro{border-color:#343b46}.coin-detail-open .mmd-price-tabs .selected{color:#eaecef}.coin-detail-open .cm-source,.coin-detail-open .cm-chart-scroll{color:#929aa5}.coin-detail-open .direction-actions{background:#202630!important;box-shadow:0 -1px 0 #343b46}.coin-detail-open .cm-detail-name .cm-spot{display:none}
@media(min-width:701px){.coin-detail-open #lm-detail{margin:0;padding:16px 24px}.coin-detail-open #lm-chart-holder{margin:0}.coin-detail-open .cm-detail-quote{grid-template-columns:1fr 1fr}.coin-detail-open .pro-market-stats dl,.coin-detail-open .pro-market-stats dd{font-size:13px}}
.coin-detail-open .cm-detail-quote{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)!important;margin:16px 0 18px!important}.coin-detail-open .pro-market-stats dl{display:block!important}.coin-detail-open .pro-market-stats dl>div{display:flex!important;justify-content:space-between;gap:4px!important}.coin-detail-open .pro-market-stats dd{text-align:right!important}.coin-detail-open .cm-detail-quote>div>strong{font-size:clamp(22px,6.4vw,34px)!important}
html.mmd-embedded .crypto-market.coin-detail-open{background:#202630!important;border-radius:0!important;padding:10px 12px!important}html.mmd-embedded .coin-detail-open .cm-detail-top select,html.mmd-embedded .coin-detail-open .cm-periods button,html.mmd-embedded .coin-detail-open .indicator-tabs button{background:transparent!important}html.mmd-embedded .coin-detail-open .direction-actions{background:#202630!important}
.coin-detail-open .cm-periods{scrollbar-width:none!important}.coin-detail-open .cm-periods::-webkit-scrollbar{display:none}.coin-detail-open .cm-ohlc{display:none!important}.coin-detail-open .cm-chart-legend{min-height:18px}.coin-detail-open .cm-detail-top{margin-bottom:16px}
.coin-detail-open .indicator-tabs{overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;scrollbar-width:none}.coin-detail-open .indicator-tabs::-webkit-scrollbar{display:none}.coin-detail-open .indicator-tabs button{flex-shrink:0}.coin-detail-open .mmd-book-row{color:#d9dce2}.coin-detail-open .cm-chart-scroll{margin-bottom:12px}

.coin-detail-open .direction-product-note{font-size:11px;line-height:1.6;color:#a5aebb;margin:12px 0}.direction-sheet-head .direction-eyebrow{letter-spacing:.4px}

.coin-detail-open .cm-ohlc{display:flex!important;flex-wrap:wrap;line-height:1.5;min-height:36px;margin:6px 0!important;font-size:10px!important}.coin-detail-open .cm-ohlc time{width:100%!important}.coin-detail-open svg.cm-chart{touch-action:none;user-select:none}.coin-detail-open .cm-zoom{display:flex!important;flex-shrink:0}.coin-detail-open .cm-zoom button{min-width:34px;min-height:36px}.coin-detail-open .pro-market-stats dt{white-space:nowrap;font-size:10px}.coin-detail-open .pro-market-stats dd{font-size:11px}.coin-detail-open .cm-detail-quote{grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr)!important}.coin-detail-open .cm-volume-readout{font-size:10px;column-gap:6px}.funding-process{border:1px solid #2b3a4b;border-radius:12px;padding:12px;margin:10px 0 18px;color:#c9d4e0;font-size:12px;line-height:1.7}.funding-process p{margin:6px 0}.funding-process small{font-size:11px;color:#a5b4c5}.wealth-review dd{overflow-wrap:anywhere}.wealth-metrics small{line-height:1.5}
