/* One account navigation component shared by every account workspace. */
.kael-sidebar { position:sticky; top:0; align-self:start; display:flex; flex-direction:column; min-width:0; min-height:0; height:calc(100dvh - 76px); padding:14px 12px 20px; background:#e9e9ed; color:#404651; color-scheme:light; overflow:hidden; box-sizing:border-box; }
.console-shell:has(>.kael-sidebar) { grid-template-columns:248px minmax(0,1fr); }
.account-page .kael-sidebar { position:absolute; inset:0 auto 0 0; width:248px; height:100%; padding:8px 12px 24px; border-radius:24px 0 0 24px; }
.trading-account-page .kael-sidebar { position:relative; height:100%; top:auto; }
.kael-sidebar-profile { display:flex; flex-direction:column; align-items:center; flex:none; padding:20px 12px 18px; margin-bottom:8px; border-bottom:1px solid #dcdfe6; text-align:center; }
.kael-sidebar-avatar { display:grid; place-items:center; width:50px; height:50px; flex:none; margin:0 auto 12px; border-radius:50%; background:#22262d; color:#f6d14a; overflow:hidden; box-shadow:0 0 0 3px #ffffff40; }
.kael-sidebar-avatar svg { width:25px; height:25px; fill:#f6d14a; }
.kael-sidebar-avatar img { width:100%; height:100%; object-fit:cover; }
.kael-sidebar-avatar .account-avatar-preset { font-size:29px; line-height:1; }
.kael-sidebar-info { display:flex; flex-direction:column; align-items:center; min-width:0; width:100%; }
.kael-sidebar-name-row { position:relative; max-width:calc(100% - 30px); }
.kael-sidebar-name-row strong { display:block; font-size:14px; line-height:22px; font-weight:600; color:#39404c; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.kael-sidebar-edit { position:absolute; inset-inline-start:calc(100% + 7px); top:1px; display:grid; place-items:center; width:20px; height:20px; padding:3px; border-radius:5px; }
.kael-sidebar-edit:hover { background:#ffffff65; }
.kael-sidebar-edit svg { width:14px; height:14px; fill:none; stroke:#9aa3b1; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.kael-sidebar-info>small { display:block; margin-top:8px; color:#8993a2; font-size:10px; line-height:16px; letter-spacing:.35px; }
.kael-sidebar-verification { display:inline-flex; align-items:center; justify-content:center; gap:4px; margin-top:9px; padding:2px 8px; color:#8d927f; background:#ffffff45; border:1px solid #ffffff55; border-radius:12px; font-size:10px; line-height:16px; }
.kael-sidebar-verification svg { width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.kael-sidebar>nav { display:block; flex:1; min-height:0; padding:0 0 12px; overflow-x:hidden; overflow-y:auto; scrollbar-width:thin; scrollbar-color:#b8bdc9 #e1e2e8; scrollbar-gutter:stable; }
.kael-sidebar>nav::-webkit-scrollbar { width:4px; }
.kael-sidebar>nav::-webkit-scrollbar-track { background:#e1e2e8; }
.kael-sidebar>nav::-webkit-scrollbar-thumb { border-radius:4px; background:#b8bdc9; }
.kael-nav-group { margin:0; min-width:0; }
.kael-sidebar .kael-nav-main { display:grid; grid-template-columns:23px minmax(0,1fr) 16px; align-items:center; gap:15px; width:100%; min-height:50px; padding:12px 15px; border:0; border-radius:14px; background:transparent; color:#404651; font:inherit; font-size:15px; font-weight:450; line-height:24px; text-align:start; text-decoration:none; cursor:pointer; box-sizing:border-box; }
.kael-sidebar nav>.kael-nav-main { margin-bottom:10px; }
.kael-sidebar .kael-nav-main:hover { background:#ffffff60; }
.kael-sidebar .kael-nav-main.active { background:#fff; color:#252a33; font-weight:600; box-shadow:0 3px 12px #252e3f04; }
.kael-nav-text { display:block; min-width:0; line-height:24px; overflow-wrap:anywhere; }
.kael-sidebar .kael-nav-destination { grid-template-columns:minmax(0,1fr) 46px; gap:0; padding:0; }
.kael-nav-title { display:grid; grid-template-columns:23px minmax(0,1fr); align-items:center; gap:15px; min-width:0; min-height:50px; padding:12px 0 12px 15px; color:inherit; font:inherit; box-sizing:border-box; }
.kael-nav-toggle { display:grid; place-items:center; align-self:stretch; min-height:50px; width:46px; padding:0; border:0; border-radius:10px; background:transparent; color:inherit; cursor:pointer; }
.kael-nav-toggle:hover { background:#ffffff60; }
.kael-nav-icon { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.kael-sidebar [data-account-nav="ai-account"] .kael-nav-icon { color:#35a3d8; }
.kael-sidebar [data-account-nav="growth"]>.kael-nav-icon { color:#85a28f; }
.kael-sidebar [data-account-nav="rewards"]>.kael-nav-icon { color:#f0b90b; }
.kael-sidebar [data-account-nav="records"]>.kael-nav-icon { color:#36a2d9; }
.kael-sidebar [data-account-nav="security"]>.kael-nav-icon { color:#646a74; }
.kael-nav-arrow { position:static; display:flex; align-items:center; justify-content:center; width:16px; height:16px; }
.kael-nav-arrow svg { width:16px; height:16px; fill:none; stroke:#a0a6b1; stroke-width:1.5; transition:transform .18s; }
.kael-nav-main[aria-expanded="true"] .kael-nav-arrow svg,.kael-nav-group.open .kael-nav-arrow svg { transform:rotate(180deg); }
.kael-subnav { position:relative; display:grid; margin:5px 0 9px 29px; padding-inline-start:12px; border:0; }
.kael-subnav:before { content:""; position:absolute; inset-inline-start:12px; top:19px; bottom:19px; border-inline-start:1px dashed #9baac1; }
.kael-subnav[hidden] { display:none!important; }
.kael-sidebar .kael-subnav a { position:relative; display:flex; align-items:center; min-width:0; min-height:38px; padding:7px 8px 7px 25px; color:#515967; font-size:14px; line-height:24px; border-radius:8px; overflow-wrap:anywhere; }
.kael-sidebar .kael-subnav a:before { content:""; position:absolute; inset-inline-start:-4px; top:50%; transform:translateY(-50%); width:8px; height:8px; box-sizing:border-box; border:1px solid #8096b5; border-radius:50%; background:#e9e9ed; }
.kael-sidebar .kael-subnav a:hover { background:#ffffff60; }
.kael-sidebar .kael-subnav a[aria-current="page"] { color:#515967; font-weight:600; }
.kael-sidebar .kael-subnav a[aria-current="page"]:before { background:#f0b90b; border-color:#f0b90b; box-shadow:0 0 0 3px #f0b90b26; }
.kael-sidebar-brand { flex:none; margin:12px 12px 0; padding-top:12px; border-top:1px solid #dcdfe6; text-align:center; }
.kael-sidebar-download { display:flex; flex-direction:column; align-items:center; gap:6px; padding:2px 0 8px; }
.kael-sidebar-download img { display:block; width:66px; height:66px; padding:4px; border-radius:5px; background:#fff; box-sizing:border-box; }
.kael-sidebar-download>span { color:#858e9b; font-size:10px; line-height:16px; }
.kael-sidebar-brand>a { display:flex; align-items:center; justify-content:center; gap:10px; min-height:42px; padding:8px 0; color:#454e5c; font-size:19px; font-weight:750; }
.kael-sidebar-brand>a svg { width:25px; height:25px; fill:#58616f; }
.kael-sidebar-brand b { color:#dcb600; }
.kael-sidebar :is(a,button):focus-visible { outline:2px solid #bb9723; outline-offset:-2px; }
html[dir="rtl"] .kael-subnav { margin-left:0; margin-right:29px; }
html[dir="rtl"] .kael-sidebar .kael-subnav a { padding-left:8px; padding-right:25px; }
html[dir="rtl"] .kael-nav-title { padding-left:0; padding-right:15px; }
html[dir="rtl"] .account-page .kael-sidebar { inset:0 0 0 auto; border-radius:0 24px 24px 0; }
@media(max-width:760px) {
  .console-shell:has(>.kael-sidebar),.trading-console-shell:has(>.kael-sidebar) { display:block; }
  .console-shell:has(>.kael-sidebar) .console-heading { flex-wrap:wrap; }
  .console-shell:has(>.kael-sidebar) .console-heading>div { min-width:0; max-width:100%; }
  .console-shell:has(>.kael-sidebar) .console-heading h1 { overflow-wrap:anywhere; }
  .kael-sidebar,.account-page .kael-sidebar,.trading-account-page .kael-sidebar { position:relative; inset:auto; width:100%; height:auto; padding:10px; border-radius:14px; }
  .kael-sidebar-profile { padding:16px 8px; margin:0; }
  .kael-sidebar>nav { display:flex; flex-wrap:wrap; gap:4px; overflow:visible; scrollbar-gutter:auto; padding:0; }
  .kael-nav-group { display:contents; }
  .kael-sidebar .kael-nav-main { width:auto; min-height:40px; padding:8px 10px; font-size:12px; grid-template-columns:18px minmax(0,1fr) 14px; gap:8px; }
  .kael-sidebar nav>.kael-nav-main { margin:0; }
  .kael-nav-icon { width:18px; height:18px; }
  .kael-sidebar .kael-nav-destination { grid-template-columns:minmax(0,1fr) 30px; padding:0; }
  .kael-nav-title { grid-template-columns:18px minmax(0,1fr); gap:8px; min-height:40px; padding:8px 0 8px 10px; }
  .kael-nav-toggle { width:30px; min-height:40px; }
  .kael-subnav { order:1; display:grid; width:100%; margin:4px 0; padding:0; padding-inline-start:12px; border:0; }
  .kael-sidebar .kael-subnav a { min-height:34px; padding:6px 8px 6px 25px; font-size:12px; }
  .kael-subnav:before { top:17px; bottom:17px; }
  .kael-sidebar-brand { display:none; }
  html[dir="rtl"] .kael-subnav { margin-right:0; }
  html[dir="rtl"] .kael-sidebar .kael-subnav a { padding:6px 25px 6px 8px; }
  html[dir="rtl"] .kael-nav-title { padding-left:0; padding-right:10px; }
  html[dir="rtl"] .account-page .kael-sidebar { inset:auto; border-radius:14px; }
}
@media(prefers-reduced-motion:reduce) { .kael-nav-arrow svg { transition:none; } }
