/* Persistent second-level navigation beside the primary sidebar. */
body .app-container > .nav-assets-rail {
  flex: 0 0 180px;
  box-sizing: border-box;
  width: 180px;
  height: 100%;
  padding: 24px 12px;
  overflow-y: auto;
  background: var(--bg-panel, #fff);
  border-right: 1px solid var(--border-color, #dce1eb);
  color: var(--text-primary, #17253c);
}
body .app-container > .nav-assets-rail[hidden] { display: none !important; }
.nav-assets-heading { padding: 0 12px 20px; font-size: 15px; font-weight: 600; }
body #navAssetsRail .nav-btn {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  min-height: 44px;
  margin: 0 0 6px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
body #navAssetsRail .nav-btn__icon { display: flex; flex: 0 0 18px; }
body #navAssetsRail .nav-btn:hover { background: #f3effb; }
body #navAssetsRail .nav-btn.active { background: #ede5fb; color: #6827df; font-weight: 600; }
body #navAssetsRail .nav-btn:focus-visible { outline: 2px solid #7c3aed; outline-offset: -2px; }
body #sidebarMenuRoot .nav-assets-chevron { margin-left: auto; color: #718096; font-size: 20px; }
body.sidebar-is-collapsed .nav-assets-trigger .nav-assets-chevron { display: none; }
body.has-assets-rail .app-container > .main-area { flex: 1 1 0 !important; min-width: 0 !important; width: auto !important; max-width: none !important; }
@media (max-width: 767px) {
  body .app-container > .nav-assets-rail { flex-basis: 110px; width: 110px; padding: 16px 6px; }
  body #navAssetsRail .nav-btn { gap: 5px; padding: 10px 4px; font-size: 12px; }
  .nav-assets-heading { padding: 0 4px 14px; font-size: 13px; }
}
body.has-mobile-tab-bar .app-container > .nav-assets-rail {
  display: flex;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  padding: 6px 8px;
  gap: 4px;
  overflow-x: auto;
  border-right: 0;
  border-bottom: 1px solid var(--border-color, #dce1eb);
}
body.has-mobile-tab-bar #navAssetsRail .nav-assets-heading,
body.has-mobile-tab-bar #navAssetsRail .nav-btn__icon { display: none; }
body.has-mobile-tab-bar #navAssetsRail .nav-btn {
  flex: 1 0 auto;
  width: auto;
  margin: 0;
  justify-content: center;
  padding: 8px 6px;
  min-height: 40px;
  white-space: nowrap;
}
.project-batch-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.project-batch-bar button { padding: 8px 12px; border: 1px solid #dce1eb; border-radius: 7px; background: #fff; color: #25324a; cursor: pointer; }
.project-batch-bar button[data-project-batch="remove"] { color: #b42338; }
.project-batch-check { display: flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 12px; }
.project-batch-check input { width: 16px; height: 16px; accent-color: #7429e8; }
/* Asset workflow workspace uses the same content region as other assets. */
body.has-workflow-page .app-container > .main-area > .yj-card { display: none !important; }
html body #opsCanvasPresetModal.ops-workflow-page {
  position: static !important; inset: auto !important; display: block; padding: 0 !important;
  width: 100%; height: 100%; background: transparent; z-index: auto;
}
html body #opsCanvasPresetModal.ops-workflow-page[hidden] { display: none !important; }
html body #opsCanvasPresetModal.ops-workflow-page .ops-preset-modal__panel {
  width: 100% !important; max-width: none !important; height: 100% !important;
  max-height: none !important; margin: 0; border: 0; border-radius: 0 !important; box-shadow: none;
}
.ops-workflow-page .ops-preset-modal__backdrop,
.ops-workflow-page #opsPresetModalClose { display: none !important; }
#favoritesReadError { padding: 12px; margin: 10px 0; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; }
#favoritesReadError button { margin-left: 12px; }
html body .ops-workflow-page .ops-preset-modal__workspace { display: flex !important; flex-direction: column; }
html body #opsCanvasPresetModal.ops-workflow-page .ops-preset-modal__nav { display: flex !important; flex-direction: row !important; flex: 0 0 auto; width: 100%; gap: 8px; padding: 12px 20px; border-right: 0; border-bottom: 1px solid #edf0f6; }
html body #opsCanvasPresetModal.ops-workflow-page .ops-preset-modal__nav-btn { width: auto; }
html body .ops-workflow-page #opsPresetModalTitle { outline: none; }

.designer-import-notice { margin: 12px 0; padding: 10px 14px; border: 1px solid var(--border-color, #e3e6ef); border-radius: 10px; font-size: 13px; }
.designer-import-notice summary { cursor: pointer; color: var(--text-secondary, #64748b); }
.designer-import-notice fieldset { border: 0; padding: 12px 0; display: grid; gap: 8px; }
.designer-import-notice label { display: flex; gap: 8px; align-items: center; overflow-wrap: anywhere; }

.designer-cards-shell:has(.designer-import-notice) { grid-template-rows: auto auto auto minmax(0, 1fr); }
.designer-import-notice { max-height: 30vh; overflow: auto; }

.site-release-hint { position: fixed; right: 16px; bottom: 82px; z-index: 1200; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; max-width: min(420px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid #ded6f7; border-radius: 12px; background: #fff; color: #334155; box-shadow: 0 4px 20px #0001; font-size: 13px; }
.site-release-hint[hidden] { display: none; }
.site-release-hint button { border: 0; background: #f2ecff; color: #6d28d9; border-radius: 6px; padding: 6px 9px; cursor: pointer; }
