/* The reference's complete dark visual treatment; Onggi retains left navigation. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter.woff2') format('woff2'); }
:root,.dark {
  --font: 'Inter',system-ui,sans-serif;
  --sidebar: 216px;
  --radius: 14px;
  --control: 12px;
}
.nacre-button { height: auto; }
.nacre-button svg:not(.watch-sparkline),.info-help svg { fill: currentColor; stroke: none; }
.side-nav .nav-link svg { fill: currentColor; stroke: none; }
.icon-button.nacre-button { height: 36px; }
body { font-family: var(--font); letter-spacing: -.015em; }
.sidebar { display: flex; position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 26px 14px 14px; border-right: 1px solid var(--line); background: var(--bg); z-index: 35; }
.sidebar .brand { display: flex; font-size: 24px; font-weight: 500; min-height: 38px; gap: 10px; padding: 0 10px; letter-spacing: -.04em; }
.sidebar .brand img { width: 27px; height: 27px; }
.side-nav { display: grid; gap: 4px; margin-top: 36px; }
.side-nav .nav-link { width: 100%; justify-content: flex-start; gap: 12px; min-height: 44px; padding: 0 13px; border: 0; border-radius: var(--control); background: transparent; color: var(--muted); font-size: 13px; font-weight: 400; }
.side-nav .nav-link.active { color: var(--text); background: transparent; font-weight: 500; }
.side-nav .nav-link:hover { color: var(--text); background: color-mix(in srgb,var(--text) 3%,transparent); }
.side-nav .nav-link.active::before { display: none; }
.side-nav .react-selection-label { justify-content: flex-start; gap: 12px; }
.side-nav .react-selection-ink { background: var(--surface-2); }
.side-nav .nav-link svg { color: inherit; }
.side-nav .nav-meta { margin-left: auto; font: 9px var(--font); padding: 2px 5px; border-radius: 4px; color: var(--subtle); border-color: var(--line-strong); }
.side-nav .nav-link[data-view="rewards"] { margin-top: 20px; }
.sidebar-bottom { margin-top: auto; }
.sidebar .account-ribbon { display: flex; align-items: stretch; flex-direction: column; width: 100%; gap: 14px; margin: 28px 0 0; padding: 16px 13px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sidebar .account-ribbon .account-identity { border: 0; padding: 0 0 4px; }
.sidebar .ribbon-metric { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.sidebar .ribbon-metric > span { font-size: 10px; }
.sidebar .ribbon-metric > strong { font-size: 10px; font-weight: 500; }
.sidebar .ribbon-metric:nth-child(2) { display: grid; gap: 5px; }
.sidebar .ribbon-metric:nth-child(2) > strong { font-size: 22px; letter-spacing: -.04em; }
.sidebar .ribbon-actions { display: grid; gap: 4px; margin: 2px 0 0; }
.sidebar .ribbon-actions .deposit-trigger { justify-content: space-between; width: 100%; min-height: 38px; padding-inline: 14px; }
.sidebar .ribbon-reset { display: block; width: 100%; text-align: left; min-height: 26px; font-size: 9px; color: var(--subtle); }
.sidebar-bottom > .api-link { display: flex; justify-content: space-between; padding: 0 10px; min-height: 40px; width: 100%; font-size: 10px; color: var(--subtle); background: transparent; }
.workspace { margin-left: var(--sidebar); }
.app-header { margin-left: var(--sidebar); width: calc(100% - var(--sidebar)); height: 64px; min-height: 64px; padding: 0 32px; gap: 20px; border-bottom: 1px solid var(--line); background: var(--surface); backdrop-filter: none; }
.app-header .workspace-location { display: block; font-size: 12px; color: var(--text); font-weight: 400; }
.app-header .mobile-brand { display: none; }
.app-header .workspace-search { width: 194px; min-height: 36px; background: transparent; border: 0; font-size: 12px; font-weight: 400; color: var(--muted); padding: 0 8px; }
.app-header .workspace-search:hover { background: color-mix(in srgb,var(--text) 4%,transparent); }
.app-header .workspace-search span,.app-header .workspace-search kbd { display: block; }
.app-header #connect-button { min-height: 36px; border: 0; color: var(--text); background: var(--surface-3); border-radius: 8px; font-size: 11px; }
.account-avatar { background: var(--line-strong); color: var(--text); }
#app-main { max-width: 1536px; margin: 0 auto; padding: 34px 28px 72px; min-height: calc(100vh - 64px); }
.view-heading { margin-bottom: 28px; }
.view-heading h1 { font-size: 32px; letter-spacing: -.045em; line-height: 1.2; font-weight: 400; }
.view-heading p { font-size: 13px; line-height: 1.6; color: var(--muted); margin-top: 8px; }
.view-heading .button.primary { min-height: 42px; border-radius: 8px; font-size: 12px; }
.demo-label { border-color: var(--line-strong); color: var(--subtle); font-size: 10px; background: transparent; border-radius: 6px; }
.button.primary { border: 0; background: var(--accent); color: var(--accent-ink); border-radius: 8px; box-shadow: none; }
.button.primary:hover { background: var(--text); box-shadow: none; }
.button.secondary { border: 1px solid var(--line-strong); background: transparent; color: var(--text); border-radius: 8px; box-shadow: none; }
.button.secondary:hover { background: var(--surface-2); }
.button.ghost { border: 0; background: transparent; color: var(--muted); }
.button.ghost:hover { color: var(--text); background: var(--surface-2); }
.panel,.market-workspace { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; }
.panel-header { min-height: 60px; padding-inline: 20px; border-bottom-color: var(--line); }
.panel-header h2,.panel-header h3 { font-size: 14px; font-weight: 500; letter-spacing: -.025em; }
.panel-header .demo-label { min-height: 22px; border: 0; font-size: 10px; }
.panel-header .button { font-size: 11px; min-height: 34px; }
.panel-subtitle { font-size: 10px; margin-top: 4px; color: var(--subtle); }
.overview-grid { grid-template-columns: minmax(0,1fr) 296px; gap: 22px; }
.performance-top { padding: 26px 24px 0; }
.hero-equity { font-size: 44px; font-weight: 400; letter-spacing: -.055em; margin-top: 9px; }
.balance-label { color: var(--muted); font-size: 12px; }
.performance-change { font-size: 11px; margin-top: 8px; }
.performance-change > span:last-child { color: var(--subtle); }
.performance-metrics { margin: 0 24px; padding: 20px 0 24px; border-color: var(--line); }
.performance-metrics > div > span { font-size: 10px; }
.performance-metrics strong { font-size: 15px; font-weight: 400; }
.metric-suffix { color: var(--subtle); font-size: 10px; }
.segmented { padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.segmented button { min-width: 34px; min-height: 30px; font-size: 10px; color: var(--subtle); border-radius: 8px; }
.react-selection .react-selection-ink { background: var(--surface-3); }
.segmented .react-selection-ink { background: var(--surface-3); }
.segmented button.active { color: var(--text); }
.chart-wrap { color: var(--positive); height: 246px; padding: 22px 18px 8px; }
.line-chart .line { stroke: var(--positive); stroke-width: 1.6; }
.line-chart .point,.chart-hover-point { fill: var(--positive); }
.line-chart .grid-line { stroke: var(--line); stroke-dasharray: 0; stroke-opacity: .6; }
.chart-scale { right: 18px; color: var(--subtle); font-size: 10px; }
.chart-axis { padding: 0 24px 18px; color: var(--subtle); font-size: 10px; }
.chart-readout { background: var(--surface-3); border-color: var(--line-strong); color: var(--text); border-radius: 8px; }
.info-help { color: var(--subtle); }
.info-help:hover,.info-help:focus-visible { color: var(--text); background: var(--surface-3); }
.market-watch { border-radius: var(--radius); }
.market-watch .panel-header { padding-inline: 18px; }
.market-watch-list { padding: 0 16px; }
.market-watch-item { min-height: 74px; gap: 9px; border-color: var(--line); }
.watch-asset strong { font-size: 12px; font-weight: 500; }
.watch-price strong { font-size: 12px; font-weight: 500; }
.watch-sparkline { width: 46px; height: 28px; }
.watch-footer { padding: 14px 18px; border-color: var(--line); }
.watch-all { color: var(--text); }
.opportunity-actions { margin: 22px 0 28px; gap: 16px; }
.opportunity-actions button { min-height: 84px; padding: 18px; background: var(--surface); border-color: var(--line); border-radius: var(--radius); box-shadow: none; }
.opportunity-actions button:hover { border-color: var(--line-strong); background: var(--surface-2); box-shadow: none; }
.opportunity-actions .action-symbol svg { color: var(--text); stroke: none; width: 22px; height: 22px; }
.opportunity-actions strong { font-size: 12px; font-weight: 500; }
.opportunity-actions small { font-size: 10px; color: var(--subtle); }
.opportunity-actions button > svg { color: var(--subtle); stroke: none; }
.featured-market { height: auto; min-height: 180px; border-radius: var(--radius); background: var(--surface); border-color: var(--line); padding: 22px; box-shadow: none; }
.featured-market:hover { background: var(--surface-2); border-color: var(--line-strong); box-shadow: none; }
.featured-top > span { color: var(--muted); }
.featured-top svg { stroke: none; color: var(--subtle); }
.featured-market > strong { font-size: 13px; font-weight: 500; }
.featured-price { font-size: 26px; font-weight: 400; }
.featured-caption { font-size: 10px; }
.table-toolbar { padding: 14px 16px; border-color: var(--line); }
.filter-pills button { border-radius: 8px; min-height: 34px; padding: 0 13px; font-size: 11px; }
.filter-pills .react-selection-ink { background: var(--surface-3); }
.search-field { background: var(--bg); border-color: var(--line); border-radius: 8px; }
.search-field input { font-size: 11px; }
.dropdown-menu { border-color: var(--line-strong); background: var(--surface-2); border-radius: 8px; box-shadow: 0 12px 40px color-mix(in srgb,var(--bg) 70%,transparent); }
.dropdown-menu button { border-radius: 8px; color: var(--muted); }
.dropdown-menu button:hover,.dropdown-menu button.active { background: var(--surface-3); color: var(--text); }
.market-table th,.portfolio-table th { background: transparent; color: var(--subtle); font-size: 10px; font-weight: 400; height: 40px; border-color: var(--line); }
.market-table td,.portfolio-table td { font: 12px var(--font); font-variant-numeric: tabular-nums; height: 68px; border-color: var(--line); }
.market-table tbody tr:hover td,.portfolio-table tbody tr:hover td { background: color-mix(in srgb,var(--text) 2%,transparent); }
.market-table tbody tr:hover .asset-copy strong { color: var(--text); }
.asset-copy strong { font-size: 13px; font-weight: 500; }
.asset-copy span { font-size: 11px; color: var(--subtle); }
.row-action { color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px; min-height: 30px; font-size: 10px; }
.market-table tbody tr:hover .row-action { background: var(--surface-3); border-color: var(--line-strong); }
.stat-grid { border-color: var(--line); background: var(--surface); border-radius: var(--radius); }
.stat-card { border-color: var(--line); padding: 22px; }
.stat-label { font-size: 11px; color: var(--muted); }
.stat-value { font: 400 29px var(--font); letter-spacing: -.04em; }
.stat-detail { font-size: 10px; color: var(--subtle); }
.balance-number { font-weight: 400; }
.table-tabs button { font-size: 13px; font-weight: 400; }
.table-tabs .react-selection-ink { background: var(--text); height: 1px; }
.table-tabs button.active { color: var(--text); }
.swap-card { box-shadow: none; }
.swap-field { background: var(--bg); border-color: var(--line); border-radius: 10px; }
.swap-asset { border: 0; background: var(--surface-3); border-radius: 8px; padding: 8px 10px; }
.swap-input-row input,.swap-input-row output { font: 400 32px var(--font); letter-spacing: -.04em; }
.swap-flip { border-color: var(--surface); border-radius: 50%; background: var(--surface-3); color: var(--text); }
.asset-choices button { border-color: var(--line); border-radius: 8px; color: var(--muted); }
.asset-choices .react-selection-ink { background: var(--surface-3); }
.asset-choices button.active { border-color: transparent; color: var(--text); }
.route-line strong,.route-facts strong,.ticket-summary strong { font-family: var(--font); font-weight: 400; }
.route-track { background: var(--surface-3); height: 3px; }
.route-track i { background: var(--text); }
.market-modal-header { padding: 22px; border-color: var(--line); }
.market-price strong { font: 400 28px var(--font); letter-spacing: -.04em; }
.market-stats { background: var(--surface); border-color: var(--line); }
.market-stats div { border-color: var(--line); }
.market-stats strong { font-family: var(--font); font-weight: 400; }
.market-chart-side { border-color: var(--line); }
.trade-ticket { background: var(--surface); }
.trade-sides { background: var(--bg); border-color: var(--line); border-radius: 8px; }
.trade-sides button { border-radius: 8px; font-size: 12px; }
.ticket-input,.amount-field { background: var(--bg); border-color: var(--line-strong); border-radius: 8px; }
.ticket-input:focus-within,.amount-field:focus-within,.swap-field:focus-within,.search-field:focus-within,.chat-composer:focus-within { background: var(--bg); border-color: var(--muted); box-shadow: 0 0 0 3px color-mix(in srgb,var(--text) 4%,transparent); }
.ticket-input input,.amount-field input { font-family: var(--font); font-weight: 400; }
.ticket-label button,.inline-max { color: var(--muted); font-family: var(--font); }
.demo-disclaimer { color: var(--subtle); font-size: 10px; }
.modal { background: var(--surface); border-color: var(--line-strong); border-radius: 14px; box-shadow: 0 30px 100px color-mix(in srgb,var(--bg) 80%,transparent); }
.modal::backdrop { background: color-mix(in srgb,var(--bg) 72%,transparent); backdrop-filter: blur(6px); }
.modal-header { border-color: var(--line); padding: 26px; box-shadow: none; }
.modal-header h2 { font: 400 26px/1.2 var(--font); letter-spacing: -.04em; }
.modal-header .icon-button { background: var(--surface-3); border: 0; border-radius: 50%; color: var(--muted); }
.modal-header .icon-button:hover { background: var(--line-strong); color: var(--text); }
.modal-copy { color: var(--muted); font-size: 13px; line-height: 1.65; }
.dialog-tabs { background: var(--bg); border-color: var(--line); border-radius: 8px; }
.dialog-tabs button { border-radius: 8px; color: var(--muted); }
.dialog-tabs .react-selection-ink { background: var(--surface-3); }
.chain-options button { border-color: var(--line-strong); border-radius: 8px; background: transparent; color: var(--muted); }
.chain-options button.active { border-color: transparent; color: var(--text); }
.quick-amounts button { background: transparent; border-color: var(--line-strong); border-radius: 8px; color: var(--muted); }
.quick-amounts button:hover { background: var(--surface-3); color: var(--text); }
.form-row,.connection-detail { border-color: var(--line); color: var(--muted); }
.field-label { font-size: 12px; color: var(--muted); }
.search-modal { background: var(--surface); border-color: var(--line-strong); border-radius: 12px; box-shadow: none; }
.search-box { background: transparent; border-color: var(--line); }
.search-box > svg { color: var(--text); stroke: none; }
.search-results { background: var(--surface); }
.search-section-label { color: var(--muted); }
.search-result { border-radius: 8px; }
.search-result.selected { background: var(--surface-3); border-color: transparent; box-shadow: none; }
.search-result:hover { background: var(--surface-2); }
.search-result .search-class { color: var(--subtle); }
.search-result .search-price { color: var(--text); }
.search-enter { color: var(--muted); border-color: var(--line-strong); }
.search-footer { background: transparent; border-color: var(--line); color: var(--subtle); }
.search-footer kbd,.key-hint { border-color: var(--line-strong); background: transparent; color: var(--muted); }
.nacre-help-tooltip { background: var(--surface-3); color: var(--text); border-color: var(--line-strong); border-radius: 10px; }
.message-bubble { border-color: var(--line); background: var(--surface-2); color: var(--muted); }
.message.user .message-bubble { background: var(--surface-3); border-color: var(--line-strong); color: var(--text); }
.message-label { color: var(--subtle); }
.chat-composer { border-color: var(--line-strong); border-radius: 8px; background: var(--bg); padding: 7px 8px 7px 16px; }
.suggestion-list button { border-color: var(--line-strong); border-radius: 8px; background: transparent; color: var(--muted); }
.suggestion-list button:hover { background: var(--surface-3); color: var(--text); }
.toggle { background: var(--surface-3); }
.toggle.on { background: var(--muted); }
.toggle.on::after { background: var(--text); }
.toast { border-color: var(--line-strong); border-radius: 8px; background: var(--surface-2); box-shadow: 0 6px 30px color-mix(in srgb,var(--bg) 50%,transparent); }
.toast-copy { color: var(--text); }
.toast-close { border-radius: 50%; color: var(--muted); }
.toast-icon { border: 0; background: transparent; }
.endpoint-button,.code-block { color: var(--muted); }
.endpoint-button.active { background: var(--surface-3); }
.statusbar { left: var(--sidebar); background: var(--bg); border-color: var(--line); color: var(--subtle); }
.statusbar .api-link { font-size: 9px; color: var(--subtle); }
@media(min-width:1700px){#app-main{padding:40px;max-width:1680px}.overview-grid{grid-template-columns:minmax(0,1fr) 330px;gap:24px}.chart-wrap{height:300px}.hero-equity{font-size:50px}.app-header{padding-inline:40px}}
@media(max-width:1180px) and (min-width:901px){:root{--sidebar:196px}.sidebar{padding-inline:10px}.overview-grid{grid-template-columns:minmax(0,1fr) 260px;gap:16px}.watch-sparkline{display:none}.view-heading h1{font-size:29px}.hero-equity{font-size:37px}.performance-top{padding:22px 20px 0}.metric-suffix{display:none}.opportunity-actions button{padding:16px 12px}.opportunity-actions small{font-size:9px}.sidebar .ribbon-metric>span,.sidebar .ribbon-metric>strong{font-size:9px}.sidebar .ribbon-metric:nth-child(2)>strong{font-size:21px}}
@media(max-width:900px){
 :root{--sidebar:0px}.sidebar{display:none}.workspace{margin-left:0}.app-header{margin-left:0;width:100%;height:64px;min-height:64px;padding-inline:24px}.app-header .workspace-location{display:none}.app-header .mobile-brand{display:flex;font-size:21px;gap:8px}.app-header .mobile-brand img{width:26px;height:26px}.mobile-account{border-color:var(--line);background:var(--bg)}#app-main{padding:28px 24px 132px}.overview-grid{grid-template-columns:minmax(0,1fr) 250px;gap:16px}.watch-sparkline{display:none}.hero-equity{font-size:36px}.performance-top{padding:22px 20px 0}.performance-metrics{margin-inline:20px}.view-heading h1{font-size:29px}.statusbar{left:0}.mobile-nav{background:var(--surface);border-color:var(--line)}.mobile-nav .nacre-button{color:var(--subtle);font-size:9px}.mobile-nav .nacre-button.active{color:var(--text);background:transparent}.mobile-nav .nacre-button svg{fill:currentColor;stroke:none}
}
@media(max-width:700px){
 .app-header{padding-inline:16px}.app-header .workspace-search{width:36px;min-height:36px;padding-inline:8px}.app-header .workspace-search span,.app-header .workspace-search kbd{display:none}.app-header #connect-button{padding-inline:10px;font-size:10px}.app-header .account-button-label{display:inline}.app-header .workspace-search>span{display:contents!important}.app-header .workspace-search>span>span{display:none}.mobile-account{padding-inline:16px;font-size:10px;min-height:40px}.mobile-account strong{font-size:12px}#app-main{padding:26px 16px 130px}.view-heading{margin-bottom:24px}.view-heading h1{font-size:28px}.view-heading p{font-size:12px}.overview-grid{grid-template-columns:1fr}.overview-aside{display:none}.hero-equity{font-size:39px}.performance-top{padding:22px 20px 0}.performance-metrics{margin-inline:20px}.performance-metrics strong{font-size:15px}.segmented button{min-width:40px;min-height:38px}.chart-wrap{height:210px;padding-inline:12px}.chart-scale{right:14px;font-size:9px}.chart-axis{padding-inline:20px;font-size:9px}.opportunity-actions{gap:8px;margin-block:18px 24px}.opportunity-actions button{min-height:72px;padding:16px}.opportunity-actions strong{font-size:12px}.opportunity-actions small{font-size:10px}.panel-header{padding-inline:16px}.featured-market{padding:20px;flex-basis:220px}.featured-price{font-size:25px}.featured-caption{font-size:10px}.market-table td,.portfolio-table td{font-size:11px;height:68px}.asset-copy strong{font-size:11px}.asset-copy span{font-size:10px}.filter-pills button{min-height:40px;font-size:11px}.search-field input{font-size:16px}.stat-card{padding:16px}.stat-value{font-size:23px}.stat-label{font-size:11px}.stat-detail{font-size:10px}.market-modal-header{padding:18px 16px}.market-price strong{font-size:21px}.trade-ticket{padding:22px 18px}.trade-ticket>.button.full{border-radius:8px}.modal{border-radius:14px 14px 0 0}.search-modal{border-radius:12px}.modal-header{padding:24px 22px 20px}.modal-header h2{font-size:24px}.modal-copy{font-size:12px}.toast{border-radius:10px}.search-result .search-price{font-size:12px}.search-enter{display:none}.nacre-input{font-size:16px}
}

.status-api-link{min-height:26px;padding:0;font-size:9px;color:var(--subtle);background:transparent}
