/* Onggi app, site look. Loaded last.
   One graphite palette (Pantone, same as onggi.xyz), Inter, no shadows, one navigation: the left sidebar. */
@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/inter.woff2) format("woff2")}

/* ---------- palette ---------- */
/* Pantone references: 419 C ground, 446 C, Cool Gray 1 / 7 / 11, 2925 C blue, 3395 C green, 7408 C gold, 1787 C red */
:root{
  --nx-ground:#1B1C1E;--nx-deep:#161719;--nx-card:#232427;--nx-card-2:#2A2B2F;--nx-card-3:#36383C;
  --nx-cg1:#EDEDEB;--nx-cg7:#8A8B88;--nx-cg11:#6E6F6C;
  --nx-blue:#E6E6E3;--nx-green:#8DB49A;--nx-gold:#C9A15A;--nx-red:#C0786C;
  --color-accent-50:#F2F1EF;--color-accent-100:#E5E5E2;--color-accent-200:#CDCDCA;--color-accent-300:#E6E6E3;--color-accent-400:#E6E6E3;
  --color-accent-500:#E6E6E3;--color-accent-600:#E6E6E3;--color-accent-700:#E6E6E3;--color-accent-800:#484846;--color-accent-900:#353533;--color-accent-950:#262624;
  --side:248px;
}
.dark{
  --color-neutral-50:#EDEDEB;--color-neutral-100:#E2E1DF;--color-neutral-200:#EDEDEB;--color-neutral-300:#CCCBC9;--color-neutral-400:#B9B9B6;
  --color-neutral-500:#8A8B88;--color-neutral-600:#6E6F6C;--color-neutral-700:#36383C;--color-neutral-800:#232427;--color-neutral-900:#21201F;
  --color-neutral-925:#1B1C1E;--color-neutral-950:#161719;
}
:root,:root.dark,.dark{
  --font:Inter,"Helvetica Neue",Arial,sans-serif;--font-sans:var(--font);--sans:var(--font);--wide:var(--font);
  --mono:"JetBrains Mono",ui-monospace,monospace;
  --sidebar:0px;
  --bg:var(--nx-ground);--surface:var(--nx-card);--surface-2:var(--nx-card-2);--surface-3:var(--nx-card-3);
  --line:rgba(237,237,235,.08);--line-strong:rgba(237,237,235,.16);
  --text:#EDEDEB;--muted:#B8B9B6;--subtle:var(--nx-cg7);
  --positive:var(--nx-green);--negative:var(--nx-red);--capital-warning:var(--nx-gold);
  --accent:var(--nx-cg1);--accent-ink:var(--nx-ground);
  --radius:20px;--control:12px;
  --capital-border:rgba(237,237,235,.1);
}
:root:not(.dark){
  --bg:#EDEDEB;--surface:#F4F4F2;--surface-2:#EBEBE8;--surface-3:#DEDEDA;
  --line:rgba(27,28,30,.08);--line-strong:rgba(27,28,30,.16);
  --text:#1B1C1E;--muted:#6E6F6C;--subtle:#6E6F6C;
  --positive:#4F7A5D;--negative:#A5554A;
  --accent:#1B1C1E;--accent-ink:#EDEDEB;
}
html,body{background:var(--bg)}
body{font-family:var(--font);font-size:15px;letter-spacing:-.006em}
body :where(button,input,textarea,select,output,table,kbd,h1,h2,h3,h4,p,span,strong,a,small,div,label,dt,dd,th,td){font-family:var(--font)}
:where(code,pre,kbd.mono){font-family:var(--mono)}
h1,h2,h3,h4{font-weight:500;letter-spacing:-.025em}

/* no shadows and no photos, anywhere in the app (focus rings stay) */
.react-app *:not(:focus-visible),.react-app *::before,.react-app *::after{box-shadow:none!important}
.capital-hero::before,.campaign-art{background-image:none!important}
/* the section name lives in the top bar */
.capital-page-top>span:first-child{visibility:hidden}

/* ---------- shell: one sidebar ---------- */
.sidebar,.app-header,.mobile-account,.mobile-nav,.nx-top{display:none!important}
.nx-side{position:fixed;inset:0 auto 0 0;z-index:60;display:flex;flex-direction:column;width:var(--side);padding:18px 14px 14px;background:var(--bg);border-right:1px solid var(--line)}
.nx-brand{display:flex;align-items:center;gap:10px;height:40px;padding:0 10px;font-size:17px;font-weight:600;letter-spacing:-.01em;color:var(--text)}
.nx-brand img{width:24px;height:24px}
:root:not(.dark) .nx-brand img{filter:invert(1)}
.nx-sidenav{flex:1;min-height:0;overflow:auto;scrollbar-width:none;margin-top:18px}
.nx-sidenav::-webkit-scrollbar{display:none}
.nx-group{display:grid;gap:2px}
.nx-group+.nx-group{margin-top:14px}
.nx-group-label{padding:0 12px 6px;font-size:12px;font-weight:600;color:var(--subtle)}
.nx-item{position:relative;display:flex!important;align-items:center;justify-content:flex-start!important;gap:12px;width:100%;height:38px;padding:0 12px!important;border:0!important;border-radius:12px!important;background:none!important;color:var(--muted)!important;font-size:14.5px!important;font-weight:500!important;text-align:left;cursor:pointer;transition:background-color .2s,color .2s}
.nx-item svg{flex:none;opacity:.85}
.nx-item span{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.nx-item small{flex:none;padding:2px 7px;border-radius:999px;background:var(--surface-2);font-size:11px;font-weight:600;color:var(--subtle)}
.nx-item:hover{background:var(--surface)!important;color:var(--text)!important}
.nx-item.active{background:var(--surface)!important;color:var(--text)!important}
.nx-item.active::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:2px;background:var(--nx-blue)}
.nx-item.active svg{color:var(--nx-blue);opacity:1}
.nx-side-foot{display:grid;gap:10px;padding-top:14px}
.nx-acct{display:none;gap:4px;padding:16px;border-radius:18px;background:var(--surface)}
.nx-acct small{font-size:12px;font-weight:500;color:var(--subtle)}
.nx-acct b{font-size:20px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--text)}
.nx-acct .button{margin-top:8px;height:38px;width:100%}
.nx-side-tools{display:flex;gap:4px}
.nx-scrim{display:none}

.workspace{margin-left:var(--side)!important;min-height:100vh}
.nx-bar{position:sticky;top:0;z-index:40;margin-left:var(--side);display:flex;align-items:center;gap:16px;height:64px;padding:0 clamp(16px,2.6vw,32px);background:var(--bg);border-bottom:1px solid var(--line)}
.nx-menu-btn{display:none!important}
.nx-title{margin-right:auto;font-size:15px;font-weight:500;color:var(--muted)}
.nx-actions{display:flex;align-items:center;gap:8px}
.nx-search{display:inline-flex;align-items:center;gap:8px;height:40px;min-width:240px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--subtle);font-size:14px;cursor:pointer}
.nx-search span{margin-right:auto}
.nx-search kbd{padding:1px 7px;border-radius:999px;background:var(--surface-2);font-family:var(--font);font-size:11px;color:var(--subtle)}
.nx-search:hover{border-color:var(--line-strong)}
.nx-account{display:inline-flex;align-items:center;gap:10px;height:40px;padding:0 14px 0 6px;border-radius:999px;background:var(--surface);color:var(--text);cursor:pointer}
.nx-account:hover{background:var(--surface-2)}
.nx-avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--nx-blue);color:#EDEDEB;font-size:12px;font-weight:700}
.nx-account-text{display:grid;line-height:1.15;text-align:left}
.nx-account-text small{font-size:11px;color:var(--subtle)}
.nx-account-text b{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}
.preference-controls{display:flex;gap:4px}
.preference-button{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:none;color:var(--muted);cursor:pointer}
.preference-button:hover{background:var(--surface);color:var(--text)}
#app-main{max-width:1240px;margin:0 auto;padding:32px clamp(16px,3vw,40px) 72px}
.statusbar{position:static;margin-left:0!important;justify-content:center;gap:24px;min-height:40px;border-top:1px solid var(--line);background:none;color:var(--subtle);font-size:12px}

/* ---------- common building blocks in the site style ---------- */
.view-heading{margin-bottom:28px}
.view-heading h1,.capital-view h1,.view>h1{font-size:clamp(30px,2.6vw,40px);font-weight:500;letter-spacing:-.035em;line-height:1.08}
.view-heading p{margin-top:8px;color:var(--subtle);font-size:16px}
.text-capital-title{font-size:clamp(40px,4vw,60px)!important;font-weight:500!important;letter-spacing:-.045em!important;line-height:1!important}
.button{border-radius:999px!important}
.button.primary,.button.primary:hover{background:var(--accent)!important;color:var(--accent-ink)!important;border-color:transparent!important}
.button.primary:hover{filter:brightness(1.06)}
.button.secondary{background:var(--surface)!important;color:var(--text)!important;border-color:transparent!important}
.button.secondary:hover{background:var(--surface-2)!important}
.panel,.capital-account-column>section,.capital-ticket,.lending-ticket,.swap-card{border-radius:24px}
.panel{background:var(--surface);border-color:transparent}
.positive,.text-positive{color:var(--positive)}
.negative{color:var(--negative)}
.demo-label,.capital-preview{border-radius:999px}
:where(.table-tabs,.segmented) .active{color:var(--text)}
input,select,textarea{border-radius:12px}

/* ---------- phones and tablets: the sidebar becomes a drawer ---------- */
@media (max-width:1100px){.nx-search{min-width:0}.nx-search span,.nx-search kbd{display:none}.nx-account-text{display:none}.nx-account{padding:0 6px}}
@media (max-width:900px){
  .nx-side{width:min(300px,86vw);transform:translateX(-100%);transition:transform .3s cubic-bezier(.22,1,.36,1);border-right:0;padding-top:14px}
  .nx-side.open{transform:none}
  .nx-scrim{display:block;position:fixed;inset:0;z-index:55;background:rgba(29,29,28,.6)}
  .workspace,.nx-bar{margin-left:0!important}
  .nx-menu-btn{display:grid!important;place-items:center;width:40px;height:40px;margin-left:-8px;border-radius:12px;background:none;color:var(--text)}
  .nx-bar{height:60px;gap:8px}
  .nx-title{font-size:15px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #app-main{padding-top:20px;padding-bottom:56px}
  .statusbar{display:none}
}
@media (prefers-reduced-motion:reduce){.nx-side{transition:none}}

/* one typeface: Inter everywhere in the app, monospace only for real code */
#app-main *:not(code):not(pre):not(pre *):not(code *):not(svg *),.nx-side *,.nx-bar *{font-family:var(--font)!important;font-stretch:normal!important}
.view-heading h1,.hero-equity,.balance-number,.account-number,.stat-value,.account-equity>strong,.campaign-copy h2,.season h2,.prediction-card-probability strong{font-weight:500!important;letter-spacing:-.035em}
.campaign-status,.token-status,.token-section-label{letter-spacing:0!important;text-transform:none!important}

/* lists of markets and vaults: separate rounded rows, no hairlines between them */
.capital-market-list{display:grid;gap:6px}
.capital-market-heading{border:0!important;padding-bottom:4px}
.capital-market-row{border:0!important;border-radius:18px!important;background:var(--surface)!important;box-shadow:none!important}
.capital-market-row:hover{background:var(--surface-2)!important}
.capital-market-row.selected{background:var(--surface-2)!important;outline:2px solid var(--nx-blue);outline-offset:-2px}
.capital-market-row.selected::before{display:none!important}

/* Remix icons are filled shapes: never draw them as outlines */
svg.remixicon{fill:currentColor!important;stroke:none!important}

/* back links: one pill with a proper arrow */
.back-link,.lending-back{display:inline-flex!important;align-items:center;gap:6px;width:max-content;min-height:0!important;height:34px;padding:0 14px 0 10px!important;border-radius:999px!important;background:var(--surface)!important;color:var(--muted)!important;font-size:14px!important;font-weight:500!important;text-transform:none!important;letter-spacing:0!important}
.back-link:hover,.lending-back:hover{color:var(--text)!important;background:var(--surface-2)!important}
.back-link svg,.lending-back svg{width:16px!important;height:16px!important}

/* dropdowns: same height as the field next to them, readable text, a plain highlight */
.terminal-choice{min-height:48px!important;height:48px;padding:0 16px!important;border:0!important;border-radius:14px!important;background:var(--surface)!important;color:var(--text)!important;font-size:14.5px!important;font-weight:500!important;gap:12px!important}
.terminal-choice .select-chevron{width:18px!important;height:18px!important;color:var(--subtle)}
.market-discovery-controls{align-items:stretch!important}
.market-discovery-controls .terminal-choice{height:auto!important;min-height:56px!important;min-width:150px}
.terminal-popover{min-width:var(--trigger-width,160px);padding:6px!important;border:1px solid var(--line-strong)!important;border-radius:16px!important;background:var(--surface-2)!important;box-shadow:none!important}
.terminal-popover *{box-shadow:none!important}
.terminal-option{display:flex;align-items:center;min-height:40px;padding:0 12px!important;border-radius:10px!important;font-size:14.5px!important;color:var(--muted)!important;border:0!important}
.terminal-option[data-focused],.terminal-option[data-hovered]{background:var(--surface-3)!important;color:var(--text)!important}
.terminal-option[data-selected]{background:var(--surface-3)!important;color:var(--text)!important;font-weight:600}
.terminal-option::before,.terminal-option::after{display:none!important}

/* agent: import and export side by side */
.agent-io{display:flex;gap:8px}
.agent-import{cursor:pointer;position:relative}
.agent-import:focus-within{outline:2px solid var(--nx-blue);outline-offset:2px}

/* leverage slider: full width of its panel, blue fill up to the value, plain white thumb */
.leverage-range{-webkit-appearance:none;appearance:none;display:block;width:100%!important;margin:10px 0 0!important;padding:0!important;height:22px;background:transparent!important;cursor:pointer}
.leverage-range::-webkit-slider-runnable-track{height:8px;border-radius:4px;background:linear-gradient(90deg,var(--nx-blue) var(--p,50%),var(--surface-3) var(--p,50%))}
.leverage-range::-moz-range-track{height:8px;border-radius:4px;background:var(--surface-3)}
.leverage-range::-moz-range-progress{height:8px;border-radius:4px;background:var(--nx-blue)}
.leverage-range::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;margin-top:-7px;border-radius:50%;background:#EDEDEB;border:4px solid var(--nx-blue)}
.leverage-range::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:#EDEDEB;border:4px solid var(--nx-blue)}
.leverage-range:focus-visible{outline:none}
.leverage-range:focus-visible::-webkit-slider-thumb{outline:2px solid var(--nx-cg1);outline-offset:2px}
.leverage-ticks{display:flex;justify-content:space-between;margin:6px 0 4px;font-size:12.5px;color:var(--subtle);font-variant-numeric:tabular-nums}

/* lending / vault ticket instruments */
.tg{display:grid;gap:10px;margin-top:4px}
.tg-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tg-grid>div,.tg-block{display:grid;gap:6px;padding:14px 16px;border-radius:16px;background:var(--surface)}
.tg-grid span,.tg-row span{font-size:13px;color:var(--subtle)}
.tg-grid b{font-size:19px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--text)}
.tg-grid b.positive{color:var(--nx-green)}
.tg-row{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.tg-row b{font-size:14.5px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--text)}
.tg-sub span{font-size:12px}
.tg-bar{height:8px;border-radius:4px;background:var(--surface-3);overflow:hidden}
.tg-bar i{display:block;height:100%;border-radius:4px;background:var(--nx-blue)}
.tg-bar i.hot{background:var(--nx-gold)}
.tg-health i{background:linear-gradient(90deg,var(--nx-red),var(--nx-gold) 40%,var(--nx-green) 70%)}
.tg-line{width:100%;height:48px;color:var(--nx-blue)}
.tg-warn{color:var(--nx-gold)!important}

/* secondary buttons always read as buttons, also on grey cards */
.button.secondary{background:var(--surface-2)!important;color:var(--text)!important}
.button.secondary:hover{background:var(--surface-3)!important}
