/* IOOK Dashboard Home — show the user's selected wallpaper clearly,
   with a compact, accessible workspace menu on desktop and mobile. */
#dashboardView{isolation:isolate}
#dashboardView > .dashboardBackdrop{
  z-index:0;
  inset:0;
  background-color:#07100d;
  /* Display the exact image committed in images/default_background_iook.png. */
  background-image:linear-gradient(100deg,rgba(4,8,8,.28),rgba(4,10,9,.22)),url("/dashboard/default-background?v=2");
  background-size:cover;
  background-repeat:no-repeat;
  background-position:center center;
  filter:none;
  transform:none;
  opacity:1;
}
#dashboardView[data-bg="custom"] > .dashboardBackdrop{
  background-image:linear-gradient(100deg,rgba(4,9,8,.28),rgba(4,9,8,.30)),var(--dash-custom-image);
  filter:none;
  transform:none;
}
#dashboardView .dashboardMain{position:relative;z-index:1}
#dashboardView .dashboardWidget{
  background:linear-gradient(150deg,rgba(14,23,23,.94),rgba(8,19,17,.92));
  border-color:rgba(112,169,137,.38);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
#dashboardView .dashboardHeaderCopy{
  padding:8px 17px 14px 0;
  filter:drop-shadow(0 2px 10px rgba(0,0,0,.78));
}
#dashboardView .dashboardHeader h2,
#dashboardView .dashboardHeader p{
  text-shadow:0 2px 18px rgba(0,0,0,.78);
}
#dashboardView .dashboardMountain{opacity:.14}
/* Keep the shell itself opaque for contrast without hiding the wallpaper layer. */
.shell:has(#dashboardView.active){background:#080e0c}
.shell:has(#dashboardView.active) main{background:transparent}

.sidebar #iookPrimaryNav{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:0;
  width:100%;
  overflow:visible;
}
.sidebar #iookPrimaryNav > .iookHomeNav{
  order:0;
  width:100%;
  min-height:49px;
  padding:12px 13px;
  border:1px solid rgba(91,180,131,.36);
  background:linear-gradient(100deg,rgba(26,88,62,.36),rgba(14,39,31,.65));
  border-radius:13px;
  color:#eff9f3;
  font-size:13px;
  font-weight:800;
  display:grid;
  grid-template-columns:24px minmax(0,1fr) auto;
  gap:10px;
  text-align:left;
  align-items:center;
}
.sidebar #iookPrimaryNav > .iookHomeNav span{font-size:21px;color:#65e9a8;line-height:1}
.sidebar #iookPrimaryNav > .iookHomeNav.active{
  box-shadow:inset 3px 0 #55e9a4,0 10px 24px rgba(0,0,0,.15);
  background:linear-gradient(100deg,#1f5039b0,#1031259e);
}
.sidebar #iookPrimaryNav > .iookHomeNav b{font-size:9px;letter-spacing:.09em;color:#7fe1ac}
.sidebar #iookMenuToggle{
  display:grid;
  grid-template-columns:25px minmax(0,1fr) 18px;
  align-items:center;
  gap:10px;
  width:100%;
  padding:11px 13px;
  text-align:left;
  background:rgba(17,32,27,.92);
  color:#e5f4eb;
  border:1px solid #3b6450;
  border-radius:12px;
  cursor:pointer;
  min-height:55px;
  font:inherit;
  box-shadow:0 8px 19px rgba(0,0,0,.2);
}
.sidebar #iookMenuToggle:hover,
.sidebar #iookMenuToggle[aria-expanded="true"]{background:#193e2c;border-color:#5aab7e}
.sidebar #iookMenuToggle:focus-visible,
.sidebar #iookMenuPanel button:focus-visible,
.sidebar #iookMenuPanel select:focus-visible{outline:2px solid #68e5a3;outline-offset:2px}
.sidebar .iookMenuGlyph{color:#6be9ad;font-size:25px;line-height:1}
.sidebar .iookMenuToggleLabel{font-size:12px;font-weight:850;line-height:1.25}
.sidebar .iookMenuToggleLabel small{display:block;margin-top:4px;font-size:10px;color:#93afa0;font-weight:500;max-width:160px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.sidebar .iookMenuChevron{font-size:20px;color:#8caf9a;transition:transform .18s ease}
.sidebar #iookMenuToggle[aria-expanded="true"] .iookMenuChevron{transform:rotate(180deg)}
.sidebar #iookMenuPanel[hidden]{display:none!important}
.sidebar #iookMenuPanel{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  gap:3px;
  padding:4px 4px 12px 1px;
  overflow-y:auto;
  overflow-x:hidden;
  max-height:calc(100vh - 290px);
  min-height:0;
  scrollbar-width:thin;
  scrollbar-color:#3a7155 transparent;
  animation:iookMenuEnter .16s ease both;
}
@keyframes iookMenuEnter{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
.sidebar #iookMenuPanel .iookMenuGroup{
  font-size:9px;
  color:#7d9f8c;
  font-weight:850;
  letter-spacing:.12em;
  margin:16px 10px 4px;
  flex:0 0 auto;
  line-height:1.3;
}
.sidebar #iookMenuPanel .nav{
  order:0!important;
  width:100%;
  min-height:41px;
  padding:10px 11px!important;
  border:1px solid transparent;
  border-radius:10px;
  font-size:12px;
  flex:0 0 auto;
  display:grid;
  grid-template-columns:24px minmax(0,1fr) auto;
  gap:9px;
  align-items:center;
  text-align:left;
  white-space:nowrap;
  color:#becbc5;
  background:transparent;
}
.sidebar #iookMenuPanel .nav:hover{border-color:#385a46;background:#18332594;color:#effaf1}
.sidebar #iookMenuPanel .nav.active{
  border-color:#47775c!important;
  background:linear-gradient(90deg,#244e359c,#102b228c)!important;
  color:#effcf2!important;
}
.sidebar #iookMenuPanel .nav[data-view="inbox"]{border-color:transparent!important;color:#bccbc5!important}
.sidebar #iookMenuPanel .nav[data-view="inbox"]:hover,
.sidebar #iookMenuPanel .nav[data-view="inbox"].active{
  color:#effcf2!important;
  background:#18332594!important;
  border-color:#385a46!important;
}
.sidebar #iookMenuPanel .nav.navAligned{
  grid-template-columns:24px minmax(0,1fr) auto!important;
  gap:11px!important;
}
.sidebar #iookMenuPanel .nav.navAligned .navLabel{
  font-size:12px;
  overflow:hidden;
  text-overflow:ellipsis;
}
.sidebar #iookMenuPanel .iookMenuCurrency{
  display:block;
  margin:4px 6px 12px;
  padding:11px;
  min-height:76px;
  background:#111d18;
  border:1px solid #355740;
}
.sidebar #iookMenuPanel .iookMenuCurrency label{color:#8aaf98}
/* Keep account controls visible at the bottom of the desktop sidebar. */
.sidebar .sidebarBottom{flex-shrink:0}
@media (max-width:800px){
  /* Mobile gets two permanent controls: Dashboard + Menu.
     The expanded list is a floating sheet above the tab bar. */
  .sidebar{
    overflow:visible!important;
    z-index:110!important;
  }
  .sidebar #iookPrimaryNav{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%;
    gap:9px!important;
    overflow:visible!important;
  }
  .sidebar #iookPrimaryNav > .iookHomeNav{
    grid-column:1;
    display:flex!important;
    justify-content:center;
    min-width:0;
    min-height:52px;
    padding:6px 10px!important;
    gap:10px;
    font-size:12px;
  }
  .sidebar #iookPrimaryNav > .iookHomeNav span{font-size:20px}
  .sidebar #iookPrimaryNav > .iookHomeNav b{display:none!important}
  .sidebar #iookMenuToggle{
    grid-column:2;
    display:flex!important;
    justify-content:center;
    min-width:0;
    min-height:52px;
    padding:6px 10px;
    gap:9px;
  }
  .sidebar #iookMenuToggle .iookMenuToggleLabel{font-size:12px;white-space:nowrap}
  .sidebar #iookMenuToggle .iookMenuToggleLabel small{display:none}
  .sidebar #iookMenuPanel{
    position:absolute;
    left:max(10px,env(safe-area-inset-left));
    right:max(10px,env(safe-area-inset-right));
    bottom:calc(100% + 10px);
    z-index:120;
    width:auto;
    display:flex!important;
    flex-direction:column;
    max-height:min(68vh,620px);
    min-height:0;
    overflow-y:auto;
    padding:12px 10px 16px;
    background:linear-gradient(160deg,#101e1a,#0a1411);
    border:1px solid #4b755f;
    border-radius:17px;
    box-shadow:0 -20px 70px rgba(0,0,0,.8);
    backdrop-filter:blur(20px);
  }
  .sidebar #iookMenuPanel[hidden]{display:none!important}
  .sidebar #iookMenuPanel .nav,
  .sidebar #iookMenuPanel .nav.navAligned{
    display:grid!important;
    min-width:0;
    width:100%;
    height:auto;
    min-height:42px;
    flex:0 0 auto;
    grid-template-columns:24px minmax(0,1fr) auto!important;
    font-size:12px!important;
    text-align:left!important;
  }
  .sidebar #iookMenuPanel .nav .navIcon,
  .sidebar #iookMenuPanel .nav span{
    font-size:15px;
    line-height:1.2;
  }
  .sidebar #iookMenuPanel .nav .navLabel{font-size:12px}
  .sidebar #iookMenuPanel .iookMenuCurrency{display:block!important}
  .sidebar #iookMenuPanel .iookMenuCurrency select{display:block}
  .sidebar #iookMenuPanel .iookMenuGroup{display:block}
  .sidebar #iookMenuPanel .nav.active{color:#f1fff5!important}
  /* The default art remains visible on mobile instead of blurring to near black. */
  #dashboardView > .dashboardBackdrop{background-position:53% center}
}
@media (prefers-reduced-motion:reduce){
  .sidebar #iookMenuPanel{animation:none}
  .sidebar .iookMenuChevron{transition:none}
}


/* PERFORMANCE PASS — high-DPI/120Hz displays:
   avoid repainting the 6.6 MB wallpaper through multiple live backdrop blur
   filters during scroll. Keep the layered look with opaque glass gradients. */
#dashboardView .dashboardWidget{
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  background:linear-gradient(145deg,rgba(14,27,24,.97),rgba(9,21,18,.98));
  box-shadow:0 7px 19px rgba(0,0,0,.32),inset 0 1px rgba(158,221,180,.08);
  contain:paint;
}
#dashboardView .dashboardBackdrop{
  filter:none!important;
  transform:none!important;
  pointer-events:none;
}
#dashboardView .dashboardHeaderCopy{
  filter:none;
}
#dashboardView .dashboardWidget:hover{
  transform:none;
}
#dashboardView .dashboardSettingsScrim,
.sidebar #iookMenuPanel{
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
@media(max-width:800px){
  .sidebar:has(#iookPrimaryNav){
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
}
/* Motion is optional and must never interfere with text input or scrolling. */
@media(prefers-reduced-motion:reduce){
  #dashboardView .dashboardWidget{transition:none!important}
  .sidebar #iookMenuPanel{animation:none!important}
}
