/* Glider-inspired structure in Onggi's dark theme. BoardUI token bridge. */
:root, .dark {
  --sidebar: 0px;
  --radius: 20px;
  --control: 10px;
  --font-inter: var(--font);
  --color-background-full: var(--bg);
  --color-background-primary-default: var(--surface);
  --color-background-primary-hover: var(--surface-2);
  --color-background-primary-active: var(--surface-3);
  --color-background-secondary-default: var(--surface-2);
  --color-background-tertiary-default: var(--surface-2);
  --color-text-primary: var(--text);
  --color-text-secondary: var(--muted);
  --color-text-tertiary: var(--subtle);
  --color-foreground-icon-primary: var(--text);
  --color-foreground-icon-secondary: var(--muted);
  --color-border-button-default: var(--line-strong);
  --color-border-button-hover: var(--accent);
  --color-border-focus-ring: var(--accent);
  --color-separator-border: var(--line);
  --color-border-table: var(--line);
  --color-chart-1: var(--accent);
  --color-chart-2: var(--positive);
  --color-chart-3: var(--muted);
}
html,body,#root { min-height: 100%; }
.react-app { min-height: 100vh; }
.workspace { margin-left: 0; }
.app-header { display: flex; position: sticky; top: 0; width: 100%; min-height: 76px; height: 76px; padding: 0 32px; gap: 30px; background: var(--bg); backdrop-filter: blur(16px); }
.app-header .brand { padding: 0; gap: 9px; flex: none; min-width: 130px; font-size: 23px; }
.app-header .brand img { width: 27px; height: 27px; }
.app-navigation { display: flex; align-items: center; gap: 2px; }
.app-navigation .nav-link { min-height: 38px; height: auto; padding: 0 12px; color: var(--muted); font-size: 12px; font-weight: 500; border-radius: var(--control); white-space: nowrap; }
.app-navigation .nav-link.active { color: var(--text); background: transparent; }
.app-navigation .nav-link.active::before { display: none; }
.app-navigation .nav-meta { display: none; }
.app-header .top-actions { margin-left: auto; gap: 12px; }
.app-header .workspace-search { margin: 0; width: 185px; min-height: 38px; height: auto; background: var(--surface); border-color: var(--line); font-size: 11px; font-weight: 400; }
.app-header .workspace-search kbd { border: 0; margin-left: auto; padding: 0; font: 10px var(--font); }
.app-header #connect-button { min-height: 38px; padding: 0 12px; font-size: 11px; border-radius: 14px; }
.account-ribbon-wrap { border-bottom: 1px solid var(--line); background: var(--bg); }
.account-ribbon { display: flex; align-items: center; width: min(1280px,calc(100% - 64px)); min-height: 88px; margin: auto; padding: 18px 0; border: 0; border-radius: 0; background: transparent; gap: 40px; }
.account-ribbon .account-identity { gap: 10px; padding-right: 32px; border-right: 1px solid var(--line); }
.account-ribbon .account-identity img { width: 30px; height: 30px; }
.account-ribbon .account-identity strong { font-size: 12px; }
.account-ribbon .account-identity span { font-size: 11px; }
.ribbon-metric { display: grid; gap: 4px; min-width: 110px; }
.ribbon-metric > span { color: var(--subtle); font-size: 11px; }
.ribbon-metric > strong { color: var(--text); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ribbon-actions { display: flex; gap: 16px; align-items: center; margin-left: auto; }
.account-ribbon .deposit-trigger { width: auto; min-width: 110px; min-height: 38px; border-radius: 14px; }
.ribbon-reset { padding: 0; background: transparent; color: var(--subtle); min-height: 36px; font-size: 10px; }
.ribbon-reset:hover { color: var(--text); }
#app-main { max-width: 1344px; margin: auto; padding: 38px 32px 80px; min-height: calc(100vh - 192px); }
.view-heading { align-items: center; margin-bottom: 32px; }
.view-heading h1 { font-size: 36px; font-weight: 500; letter-spacing: -.045em; }
.view-heading p { font-size: 14px; max-width: 650px; margin-top: 10px; line-height: 1.65; }
.view-heading .button { border-radius: 14px; padding-inline: 20px; }
.overview-grid { grid-template-columns: minmax(0,1fr) 310px; gap: 24px; }
.panel { border-radius: var(--radius); }
.performance-top { padding: 28px 28px 0; }
.hero-equity { font-size: 46px; margin-top: 8px; }
.performance-metrics { margin-inline: 28px; }
.allocation-panel .panel-header { min-height: 62px; }
.allocation-panel .panel-body { padding: 22px; }
.allocation-list { gap: 16px; }
.discovery-banner { border-radius: var(--radius); min-height: 152px; }
.opportunity-actions { gap: 20px; margin-block: 24px 32px; }
.opportunity-actions button { min-height: 96px; border-radius: 10px; padding: 20px; }
.featured-grid { gap: 20px; margin-bottom: 32px; }
.featured-market { border-radius: var(--radius); padding: 24px; position: relative; --black:var(--accent); }
.featured-market > .nacre-aceternity-glow { opacity: .5; }
.featured-price { font-size: 29px; margin-top: 12px; }
.featured-caption { margin-top: 12px; }
.panel-header { min-height: 68px; padding-inline: 24px; }
.panel-header h2,.panel-header h3 { font-size: 14px; }
.market-table td,.portfolio-table td { height: 74px; }
.market-table th,.portfolio-table th { height: 46px; }
.market-table th:first-child,.market-table td:first-child,.portfolio-table th:first-child,.portfolio-table td:first-child { padding-left: 24px; }
.button { border-radius: var(--control); }
.button.primary { background: var(--accent); color: var(--accent-ink); }
.nacre-button { flex-shrink: 0; letter-spacing: inherit; line-height: inherit; box-sizing: border-box; }
.opportunity-actions .nacre-button > span:nth-child(2) { display: grid; gap: 4px; }
.opportunity-actions .nacre-button small { display: block; }
.market-watch { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.market-watch .panel-header { padding-inline: 20px; gap: 12px; }
.market-watch .demo-label { font-size: 10px; padding-inline: 6px; }
.market-watch-list { padding: 0 18px; flex: 1; display: grid; }
.market-watch-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 76px; border-bottom: 1px solid var(--line); background: transparent; text-align: left; padding: 12px 0; border-radius: 0; }
.market-watch-item:last-child { border-bottom: 0; }
.market-watch-item:hover { background: transparent; }
.market-watch-item:hover .watch-asset strong { color: var(--accent); }
.market-watch-item .token-icon { width: 28px; height: 28px; }
.watch-asset { display: grid; gap: 4px; min-width: 52px; }
.watch-asset strong { font-size: 12px; font-weight: 500; color: var(--text); }
.watch-asset small { font-size: 10px; color: var(--subtle); max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch-price { display: grid; gap: 4px; margin-left: auto; text-align: right; }
.watch-price strong { font-size: 12px; color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.watch-price small { font-size: 10px; font-variant-numeric: tabular-nums; }
.watch-sparkline { width: 52px; height: 30px; flex: none; margin-left: auto; }
.watch-sparkline path { fill: none; stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.watch-footer { display: grid; gap: 8px; padding: 16px 20px; border-top: 1px solid var(--line); }
.watch-footer > span { font-size: 10px; color: var(--subtle); }
.watch-all { display: flex; align-items: center; gap: 8px; padding: 0; background: transparent; font-size: 11px; color: var(--accent); justify-content: flex-start; }
.react-selection { position: relative; isolation: isolate; }
.react-selection > button { position: relative; z-index: 1; }
.react-selection .react-selection-label { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; position: relative; z-index: 1; }
.react-selection .react-selection-ink { position: absolute; inset: 0; z-index: 0; border-radius: inherit; background: var(--surface-3); pointer-events: none; }
.react-selection > button.active { background: transparent; }
.react-selection.trade-sides .long .react-selection-ink { background: color-mix(in srgb,var(--positive) 20%,var(--surface)); }
.react-selection.trade-sides .short .react-selection-ink { background: color-mix(in srgb,var(--negative) 20%,var(--surface)); }
.react-selection.underline-selection .react-selection-ink { top: auto; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; }
.react-selection.underline-selection button.active::after { display: none; }
.table-tabs .nacre-button { padding: 0; }
.react-selection.app-navigation .react-selection-ink { background: var(--surface-2); }
.react-selection.app-navigation button { border: 0; }
.react-selection .active.long,.react-selection .active.short { background: transparent; }
.nacre-input-shell { display: contents; padding: 0; background: transparent; box-shadow: none; border: 0; }
.nacre-input-shell > div { display: contents; }
.nacre-input { font-family: inherit; line-height: inherit; color: var(--text); border: 0; background: transparent; width: 100%; min-width: 0; padding: 0; margin: 0; }
.nacre-input:focus { outline: none; box-shadow: none; }
.nacre-input-shell[data-focused],.nacre-input-shell[data-focus-within] { background: transparent; box-shadow: none; }
.nacre-help-tooltip { z-index: 200; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-3); color: var(--text); font: 12px/1.65 var(--font); max-width: 280px; padding: 10px 13px; box-shadow: 0 8px 30px color-mix(in srgb,var(--bg) 80%,transparent); }
.scroll-region-wrap { position: relative; min-height: 0; }
.loading-heading { width: 280px; height: 40px; margin-bottom: 28px; }
.loading-card { height: 130px; }
.loading-view .skeleton-grid { margin-bottom: 28px; }
.statusbar { left: 0; }
.statusbar .api-link { padding: 0; min-height: 26px; font-size: 10px; font-weight: 400; color: var(--subtle); }
.mobile-account { display: none; }
.dialog-inner { width: 100%; }
.small-modal { padding-bottom: 0; }
.small-modal .dialog-inner { padding-bottom: 24px; }
.dialog-inner > .button { width: calc(100% - 52px); margin: 24px 26px 0; }
.dialog-inner .modal-header .icon-button { flex: none; }
.deposit-error { margin: 16px 26px 0; color: var(--negative); font-size: 12px; }
.deposit-error:empty { display: none; }
.search-modal .dialog-inner { padding-bottom: 0; }
.search-result .nacre-button { border-radius: inherit; }
.mobile-nav .nacre-button { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 0; }
.mobile-nav .nacre-button > span { display: contents; }
.mobile-nav .nacre-button svg { flex: none; }
.table-toolbar .react-selection .react-selection-label { gap: 0; }
.swap-layout { padding-top: 12px; grid-template-columns: minmax(360px,500px) minmax(260px,340px); }
.market-position-panel .table-scroll { scrollbar-width: thin; }
.react-app .modal[open] { animation: none; }
.react-page .view { animation: none; }
@media(min-width:1700px){#app-main{max-width:1560px;padding-top:48px}.app-header{padding-inline:48px}.account-ribbon{max-width:1496px}.overview-grid{grid-template-columns:minmax(0,1fr) 340px}.hero-equity{font-size:52px}}
@media(max-width:1200px){.app-header{gap:18px;padding-inline:24px}.app-header .brand{min-width:110px}.app-navigation .nav-link{padding-inline:9px;font-size:11px}.app-header .workspace-search{width:38px;padding-inline:10px}.workspace-search span,.workspace-search kbd{display:none}.account-ribbon{gap:24px;width:calc(100% - 48px)}.account-ribbon .account-identity{padding-right:24px}.ribbon-reset{display:none}}
@media(max-width:900px){
 .app-header{height:66px;min-height:66px;padding-inline:24px;gap:16px}.app-header .desktop-nav{display:none}.app-header .brand{font-size:22px}.app-header .workspace-search{width:220px}.workspace-search span,.workspace-search kbd{display:block}.account-ribbon-wrap{display:none}
 .mobile-account{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:46px;padding:0 24px;border-radius:0;background:var(--surface);border-bottom:1px solid var(--line);font-size:12px;font-weight:400;color:var(--muted)}.mobile-account strong{font-size:13px;color:var(--text)}
 #app-main{padding:30px 24px 132px;min-height:calc(100vh - 112px)}.view-heading h1{font-size:30px}.view-heading p{font-size:13px}.overview-grid{grid-template-columns:minmax(0,1fr) 250px;gap:18px}.hero-equity{font-size:36px}.performance-top{padding:22px 22px 0}.performance-metrics{margin-inline:22px}.mobile-nav{display:grid}.statusbar{bottom:72px}.app-header .account-button-label{display:inline}
}
@media(max-width:700px){
 .app-header{height:64px;min-height:64px;padding-inline:16px}.app-header .brand{font-size:22px;min-width:0}.app-header .top-actions{gap:10px}.app-header .workspace-search{width:36px;min-height:36px;padding-inline:9px}.app-header .workspace-search span,.app-header .workspace-search kbd{display:none}.app-header #connect-button{font-size:11px;min-height:36px;padding-inline:10px}.app-header .account-button-label{display:inline}
 .mobile-account{min-height:44px;padding-inline:16px;font-size:11px}#app-main{padding:28px 16px 132px}.view-heading{margin-bottom:24px}.view-heading h1{font-size:28px}.view-heading p{font-size:12px}.view-heading .button{min-height:40px}
 .overview-grid{grid-template-columns:1fr}.hero-equity{font-size:40px}.performance-top{padding:22px 20px 0}.performance-metrics{margin-inline:20px}.opportunity-actions{gap:10px;margin:20px 0 28px}.opportunity-actions button{min-height:76px;padding:16px}.featured-grid{gap:12px;margin-bottom:24px}.featured-market{padding:20px;flex-basis:235px}.featured-price{font-size:25px}.panel-header{min-height:62px;padding-inline:16px}.market-table td,.portfolio-table td{height:72px}.market-table th,.portfolio-table th{height:40px}.market-table th:first-child,.market-table td:first-child,.portfolio-table th:first-child,.portfolio-table td:first-child{padding-left:14px}.swap-layout{grid-template-columns:1fr;padding:0}.mobile-nav .nacre-button{border:0;background:transparent;font-size:9px}.mobile-nav .nacre-button.active{color:var(--accent)}.mobile-nav .nacre-button>span{display:contents}.statusbar .api-link{font-size:9px}.market-navigation{margin-top:-8px}.market-navigation .mobile-order-jump{min-height:40px}.small-modal .dialog-inner{padding-bottom:24px}.dialog-inner>.button{width:calc(100% - 44px);margin:22px 22px 0}.nacre-input{font-size:16px}.search-box .nacre-input{font-size:16px}.info-help{margin-left:2px}
}
