/* A calm, consistent navigation and control system for the workspace. */
#app-shell .sidebar{height:100vh;height:100dvh;min-height:0;overflow:hidden}
#app-shell .nav{display:flex;flex:1 1 auto;flex-direction:column;align-content:stretch;gap:0;min-height:0;margin:0 -5px;padding:2px 5px 10px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ffffff38 transparent}
#app-shell .nav-group{display:grid;gap:4px;align-content:start;padding:7px 0 11px;border-bottom:1px solid #ffffff12}
#app-shell .nav-group:last-child{border-bottom:0}
#app-shell .workspace-label.nav-section-label{padding:7px 11px 5px;color:#a0b0a5;font-size:9px;letter-spacing:1.15px}
#app-shell .nav-item{min-height:42px;padding:9px 11px;border-radius:12px;font-size:12px;font-weight:650;line-height:1.25;transition:background .16s ease,color .16s ease,transform .16s ease}
#app-shell .nav-item:hover{transform:translateX(2px)}
#app-shell .nav-item.active{box-shadow:inset 3px 0 0 var(--brand-accent,#c7ef48)}
#app-shell .nav-icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:10px;background:#ffffff0c;font-size:15px}
#app-shell .nav-item.active .nav-icon{background:#ffffff18}
#app-shell .nav-item:focus-visible,#app-shell .button:focus-visible,#app-shell button:not(.nav-item):focus-visible{outline:3px solid color-mix(in srgb,var(--brand-accent,#c7ef48) 62%,white);outline-offset:2px}
#app-shell .nav-count,#app-shell .notification-nav-count{margin-left:auto;flex:none}
#app-shell .sidebar-bottom{flex:0 0 auto;padding-top:9px;background:var(--theme-sidebar-bg,#15201b)}
#app-shell .help-card{margin-bottom:10px}
#app-shell .button{min-height:40px;padding:9px 14px;border-radius:var(--button-radius,10px);font-size:12px;font-weight:750;line-height:1.2;white-space:normal;text-align:center;transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease}
#app-shell .button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 5px 14px #1b2d2014}
#app-shell .button:disabled{cursor:not-allowed;opacity:.56;transform:none;box-shadow:none}
#app-shell .card{border-radius:var(--card-radius,16px)}
#app-shell input:not([type=checkbox]):not([type=radio]),#app-shell select,#app-shell textarea{border-radius:10px}
#app-shell .page-wrap input:not([type=checkbox]):not([type=radio]):not([type=file]),#app-shell .page-wrap select,#app-shell .page-wrap textarea{font:inherit;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px;min-height:44px;line-height:1.35;box-shadow:0 1px 2px #17211d05;transition:border-color .16s ease,box-shadow .16s ease}
#app-shell .page-wrap textarea{min-height:100px;resize:vertical}
#app-shell .page-wrap input:not([type=checkbox]):not([type=radio]):not([type=file]):focus,#app-shell .page-wrap select:focus,#app-shell .page-wrap textarea:focus{outline:0;border-color:var(--brand-accent,#82916f);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand-accent,#82916f) 20%,transparent)}
#app-shell .page-wrap .button{min-height:42px;border-radius:12px;padding:10px 15px;font:700 12px/1.2 'DM Sans',sans-serif}
#app-shell .onboarding-card{padding:clamp(18px,2.4vw,28px);border-radius:20px}
#app-shell .onboarding-task{gap:14px;padding:14px 0}
#app-shell .onboarding-task>div{min-width:0;flex:1}
#app-shell .onboarding-task b{display:block;margin-bottom:3px}
#app-shell .onboarding-task small{display:block;line-height:1.45}
#app-shell .onboarding-task .button{flex:0 0 auto;min-width:92px}
#app-shell .onboarding-card-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#app-shell .onboarding-security-note{display:flex;align-items:flex-start;gap:10px;margin-top:14px;padding:13px 15px;border:1px solid var(--brand-accent-border);border-radius:13px;background:var(--brand-accent-pale);color:var(--text-muted,#647268);font-size:12px;line-height:1.5}
#app-shell .onboarding-security-note>span{flex:none;font-size:17px}
#app-shell .onboarding-security-note b{color:var(--ink,#26372d)}
.platform-admin-mode #app-shell .nav-group:not(.admin-group){display:none!important}
.platform-admin-mode #app-shell .admin-group{display:grid!important}
.staff-member-mode #app-shell .nav-group{display:none}
.staff-member-mode #app-shell .nav-group:has(.staff-only-nav:not([hidden]),.staff-permission-nav:not([hidden])){display:grid}
@media(max-width:760px){
  #app-shell .sidebar{padding:14px 14px max(12px,env(safe-area-inset-bottom))}
  #app-shell .brand{flex:none;padding:4px 6px 14px}
  #app-shell .sidebar-bottom{margin-top:0;padding-bottom:2px}
  #app-shell .help-card{padding:10px 12px}
  #app-shell .help-card p{margin-bottom:7px}
  #app-shell .profile{padding-top:10px}
  #app-shell .nav{padding-bottom:8px}
  #app-shell .nav-group{padding-bottom:8px}
}
@media(max-width:520px){
  #app-shell .onboarding-task{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:start;gap:10px}
  #app-shell .onboarding-task .button{grid-column:2;justify-self:start}
}
@media(prefers-reduced-motion:reduce){#app-shell .nav-item,#app-shell .button{transition:none!important}#app-shell .nav-item:hover,#app-shell .button:hover:not(:disabled){transform:none}}

/* Compact desktop sidebar: fit the complete trader menu on standard laptop-height screens. */
@media (min-width:761px) and (min-height:800px){
  #app-shell .sidebar{padding:10px 12px 8px}
  #app-shell .brand{padding:0 5px 5px}
  #app-shell .brand-lockup.sidebar-lockup{width:164px;height:54px}
  #app-shell .nav{padding:0 4px 4px;margin:0 -4px}
  #app-shell .nav-group{gap:1px;padding:2px 0 4px}
  #app-shell .workspace-label.nav-section-label{padding:3px 8px 2px;font-size:8px;line-height:1.15}
  #app-shell .nav-item{min-height:26px;padding:2px 8px;gap:8px;border-radius:9px;font-size:11px;line-height:1.15}
  #app-shell .nav-icon{flex-basis:22px;width:22px;height:22px;border-radius:7px;font-size:13px}
  #app-shell .sidebar-bottom{padding-top:5px}
  #app-shell .help-card{position:relative;min-height:32px;display:flex;align-items:center;padding:5px 28px 5px 9px;margin-bottom:5px;border-radius:9px}
  #app-shell .help-icon,#app-shell .help-card b,#app-shell .help-card p{display:none}
  #app-shell .help-card button:not(.help-card-close){padding:2px 0;font-size:10px}
  #app-shell .help-card-close{position:absolute;top:3px;right:6px;padding:0;font-size:16px;line-height:1}
  #app-shell .profile{padding:6px 2px 0;gap:7px}
  #app-shell .profile .avatar{width:26px;height:26px;font-size:9px}
  #app-shell .profile b{font-size:9px;line-height:1.2}
  #app-shell .profile small{font-size:8px;line-height:1.2}
  #app-shell .profile .more{margin-left:auto}
}
