/* Navigation colors stay stable across light/dark, hover and selection. */
html.lg-shell .nav-icon-tile {
  --nav-icon-color:#61768b;
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  width:28px!important;
  min-width:28px!important;
  height:28px!important;
  padding:0;
  border:1px solid #ffffff30!important;
  border-radius:8px;
  color:#fff!important;
  background:var(--nav-icon-color)!important;
  box-shadow:inset 0 1px 0 #ffffff20,0 1px 2px #13253818;
  line-height:0;
  pointer-events:none;
}
html.lg-shell .nav-icon-tile>svg {
  display:block;
  width:19px;
  height:19px;
  margin:0;
  color:inherit;
  stroke-width:1.85;
}
html.lg-shell .sidebar .sidebar-tool {
  grid-template-columns:28px minmax(0,1fr);
  min-height:44px;
  height:44px;
  padding:6px 8px!important;
  gap:10px!important;
}
html.lg-shell .sidebar .lg-tool-row {min-height:44px;}
html.lg-shell .sidebar .sidebar-tool.active .nav-icon-tile,
html.lg-shell .workspace-menu-item.active .nav-icon-tile {
  color:#fff!important;
  background:var(--nav-icon-color)!important;
  box-shadow:inset 0 1px 0 #ffffff35,0 0 0 2px #ffffff4d,0 2px 4px #13253820;
}
html.lg-shell .workspace-menu-item {grid-template-columns:28px minmax(0,1fr);}
html.lg-shell .workspace-chat-submenu button {grid-template-columns:28px minmax(0,1fr);}
html.lg-shell .lg-home-grid>button>.nav-icon-tile {
  width:36px!important;min-width:36px!important;height:36px!important;border-radius:10px;
}
html.lg-shell .lg-home-grid>button>.nav-icon-tile>svg {width:23px;height:23px;}
html.lg-shell .lg-search-results button>.nav-icon-tile {margin:0 3px 0 0;}
html.lg-shell .image-custom-toggle {min-height:44px;gap:10px;padding:6px 8px;}
html.lg-shell .image-custom-home>.image-custom-toggle {padding:12px 17px;gap:15px;min-height:62px;}
html.lg-shell .image-custom-home>.image-custom-toggle>.nav-icon-tile {width:36px!important;min-width:36px!important;height:36px!important;border-radius:10px;}
html.lg-shell .image-custom-group {justify-content:flex-start;gap:9px;min-height:39px;margin-left:17px;width:calc(100% - 17px);}
html.lg-shell .image-custom-group>svg {margin-left:auto;}
html.lg-shell .image-custom-group>.nav-icon-tile {width:24px!important;min-width:24px!important;height:24px!important;border-radius:7px;}
html.lg-shell .image-custom-group>.nav-icon-tile>svg {width:16px;height:16px;}
html.lg-shell .image-custom-menu button {min-height:42px;gap:10px;}
html.lg-shell .data-tool-card>.nav-icon-tile {width:48px!important;min-width:48px!important;height:48px!important;border-radius:13px;}
html.lg-shell .data-tool-card>.nav-icon-tile>svg {width:27px;height:27px;}
/* These colors are operational states, rather than feature identities. */
html.lg-shell .chat-memory-open[data-state=secure] .nav-icon-tile {--nav-icon-color:#248442;}
html.lg-shell .chat-memory-open[data-state=session] .nav-icon-tile {--nav-icon-color:#a66a13;}
html.lg-shell .chat-memory-open[data-state=error] .nav-icon-tile {--nav-icon-color:#c64343;}
@media(forced-colors:active){
  html.lg-shell .nav-icon-tile {forced-color-adjust:auto;outline:1px solid ButtonText;color:ButtonText!important;background:ButtonFace!important;box-shadow:none;}
}
@media(max-width:600px){
  /* The existing phone layout hides the sidebar; release its reserved column
     so colored home entries retain enough room for both icon and label. */
  html.lg-shell #app-view {grid-template-columns:minmax(0,1fr)!important;}
  html.lg-shell #app-view>.sidebar {display:none!important;}
  html.lg-shell #app-view>.workspace {grid-column:1;}
  html.lg-shell .lg-home {padding:24px 16px;}
  html.lg-shell .lg-home-grid {grid-template-columns:minmax(0,1fr);}
  html.lg-shell .lg-home-grid>button {min-width:0;}
}
/* Fixed feature palette. */
html.lg-shell [data-nav-key="universal-image-tool"]{--nav-icon-color:#2767d6;}
html.lg-shell [data-nav-key="fashion-tryon-tool"]{--nav-icon-color:#bf630d;}
html.lg-shell [data-nav-key="main-aspect-tool"]{--nav-icon-color:#248442;}
html.lg-shell [data-nav-key="resolution-reset-tool"]{--nav-icon-color:#8248bc;}
html.lg-shell [data-nav-key="product-white-background-tool"]{--nav-icon-color:#c2356e;}
html.lg-shell [data-nav-key="logo-processing-tool"]{--nav-icon-color:#008686;}
html.lg-shell [data-nav-key="garment-customization-tool"]{--nav-icon-color:#d34843;}
html.lg-shell [data-nav-key="creative-variation-tool"]{--nav-icon-color:#4943a6;}
html.lg-shell [data-nav-key="creative-main-tool"]{--nav-icon-color:#8c7612;}
html.lg-shell [data-nav-key="order-automation-tool"]{--nav-icon-color:#916039;}
html.lg-shell [data-nav-key="image-capture-tool"]{--nav-icon-color:#237f9e;}
html.lg-shell [data-nav-key="jd-main-image-tool"]{--nav-icon-color:#5f7e29;}
html.lg-shell [data-nav-key="seedance-video-tool"]{--nav-icon-color:#2767d6;}
html.lg-shell [data-nav-key="minimax-video-tool"]{--nav-icon-color:#bf630d;}
html.lg-shell [data-nav-key="motion-video-tool"]{--nav-icon-color:#248442;}
html.lg-shell [data-nav-key="viral-video-tool"]{--nav-icon-color:#8248bc;}
html.lg-shell [data-nav-key="subtitle-removal-tool"]{--nav-icon-color:#c2356e;}
html.lg-shell [data-nav-key="free-splice-video-tool"]{--nav-icon-color:#008686;}
html.lg-shell [data-nav-key="mix-editor-video-tool"]{--nav-icon-color:#d34843;}
html.lg-shell [data-nav-key="auto-storyboard-video-tool"]{--nav-icon-color:#8c7612;}
html.lg-shell [data-nav-key="workspace-chat-option"]{--nav-icon-color:#2767d6;}
html.lg-shell [data-nav-key="workspace-browser-option"]{--nav-icon-color:#bf630d;}
html.lg-shell [data-nav-key="workspace-image-option"]{--nav-icon-color:#248442;}
html.lg-shell [data-nav-key="workspace-video-option"]{--nav-icon-color:#8248bc;}
html.lg-shell [data-nav-key="workspace-canvas-option"]{--nav-icon-color:#c2356e;}
html.lg-shell [data-nav-key="workspace-data-option"]{--nav-icon-color:#008686;}
html.lg-shell [data-nav-key="workspace-drive-option"]{--nav-icon-color:#8c7612;}
html.lg-shell [data-nav-key="workspace-employees-option"]{--nav-icon-color:#61768b;}
html.lg-shell [data-nav-key="workspace-chatgpt-official-option"]{--nav-icon-color:#248442;}
html.lg-shell [data-nav-key="workspace-gemini-official-option"]{--nav-icon-color:#2767d6;}
html.lg-shell [data-nav-key="workspace-local-chat-option"]{--nav-icon-color:#8248bc;}
html.lg-shell [data-nav-key="workspace-jd-agent-option"]{--nav-icon-color:#bf630d;}
html.lg-shell [data-nav-key="workspace-jd-agent2-option"]{--nav-icon-color:#008686;}
html.lg-shell [data-nav-key="creative-variation-free-option"]{--nav-icon-color:#4943a6;}
html.lg-shell [data-nav-key="creative-rewrite-option"]{--nav-icon-color:#bf630d;}
html.lg-shell [data-nav-key="model-tryon-option"]{--nav-icon-color:#bf630d;}
html.lg-shell [data-nav-key="promotion-tryon-option"]{--nav-icon-color:#8248bc;}
html.lg-shell [data-nav-key="resolution-compress-option"]{--nav-icon-color:#248442;}
html.lg-shell [data-nav-key="resolution-upscale-option"]{--nav-icon-color:#8248bc;}
html.lg-shell [data-nav-key="logo-remove-option"]{--nav-icon-color:#d34843;}
html.lg-shell [data-nav-key="logo-add-option"]{--nav-icon-color:#008686;}
html.lg-shell [data-nav-key="canvas-fit-view"]{--nav-icon-color:#2767d6;}
html.lg-shell [data-nav-key="canvas-clear-all"]{--nav-icon-color:#d34843;}
html.lg-shell [data-nav-key="canvas-running-workflows"]{--nav-icon-color:#bf630d;}
html.lg-shell [data-nav-key="canvas-save-workflow"]{--nav-icon-color:#248442;}
html.lg-shell [data-nav-key="employees-navigation"]{--nav-icon-color:#61768b;}
html.lg-shell [data-nav-key="tmall-auto-price-tool"]{--nav-icon-color:#bf630d;}
html.lg-shell [data-nav-key="dmp-download-tool"]{--nav-icon-color:#2767d6;}
html.lg-shell [data-nav-key="tmall-ningku-tool"]{--nav-icon-color:#248442;}
html.lg-shell [data-nav-key="tmall-ningku-mapping-tool"]{--nav-icon-color:#8248bc;}
html.lg-shell [data-nav-key="dmp-l5-tool"]{--nav-icon-color:#2767d6;}
html.lg-shell [data-nav-key="chat-memory-open"]{--nav-icon-color:#8248bc;}
html.lg-shell [data-nav-key="image-custom-collection"]{--nav-icon-color:#61768b;}
html.lg-shell [data-nav-key="image-group-0"]{--nav-icon-color:#5f7e29;}
html.lg-shell [data-nav-key="image-group-1"]{--nav-icon-color:#237f9e;}
html.lg-shell [data-nav-key="image-group-2"]{--nav-icon-color:#c55536;}
