/* v291: compact model navigation. Loaded separately to preserve the installed app. */
body .studio-shell {
  --compact-rail-width: 280px;
}

body .studio-shell .studio-brand.studio-brand-original {
  display: none;
}

body .studio-shell .studio-workspace .model-rail-list {
  gap: 6px;
  max-height: none;
}

body .studio-shell .studio-workspace .model-rail-list > button {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
  min-height: 62px;
  padding: 6px 10px;
  border-radius: 10px;
}

body .studio-shell .model-rail-heading {
  min-height: 18px;
  gap: 6px;
}

body .studio-shell .model-rail-heading strong {
  font-size: 13px;
  line-height: 18px;
}

body .studio-shell .model-rail-list > button > .model-health {
  gap: 4px;
}

body .studio-shell .model-health-metrics {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 8px;
}

body .studio-shell .model-health-metrics > span {
  flex-direction: row;
  align-items: baseline;
  gap: 4px;
}

body .studio-shell .model-health-metrics small {
  font-size: 10px;
  line-height: 15px;
  color: #64748b;
}

body .studio-shell .model-health-metrics b {
  font-size: 12px;
  line-height: 15px;
}

body .studio-shell .model-health-bars {
  height: 6px;
}

body .studio-shell .chat-model-option {
  min-height: 50px;
  padding: 8px 10px;
  gap: 8px;
  border-radius: 10px;
}

body .studio-shell .chat-model-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

body .studio-shell .chat-model-icon img {
  width: 20px;
  height: 20px;
}

body .studio-shell .chat-model-copy {
  gap: 2px;
}

body .studio-shell .chat-model-copy strong {
  font-size: 13px;
  line-height: 18px;
}

@media (max-width: 1100px) {
  body .studio-shell { --compact-rail-width: 240px; }
  body .studio-shell .studio-workspace .model-rail-list > button { padding-inline: 8px; }
  body .studio-shell .model-health-metrics { column-gap: 4px; }
  body .studio-shell .model-health-metrics b { font-size: 11px; }
}

@media (min-width: 701px) {
  body .studio-shell:has(.studio-workspace, .studio-chat-page) > .studio-topbar {
    margin-left: var(--compact-rail-width);
    width: calc(100% - var(--compact-rail-width));
  }

  body .studio-shell .studio-workspace {
    grid-template-columns: var(--compact-rail-width) minmax(0, 1fr);
  }

  body .studio-shell .studio-workspace > .creation-models,
  body .studio-shell .studio-category-rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--compact-rail-width);
    height: 100dvh;
    padding: 14px 12px 12px;
    gap: 12px;
    z-index: 20;
  }

  body .studio-shell .studio-workspace > .creation-prompt {
    grid-column: 2;
    grid-row: 1;
  }

  body .studio-shell .studio-chat-page > .studio-other-page {
    margin-left: var(--compact-rail-width);
  }
}

@media (min-width: 721px) {
  body .studio-shell:has(.inspiration-workspace) > .studio-topbar {
    margin-left: var(--compact-rail-width);
    width: calc(100% - var(--compact-rail-width));
  }

  body .studio-shell .inspiration-workspace {
    grid-template-columns: var(--compact-rail-width) minmax(0, 1fr);
  }

  body .studio-shell .inspiration-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--compact-rail-width);
    height: 100dvh;
    padding-top: 14px;
    z-index: 20;
  }

  body .studio-shell .inspiration-main {
    grid-column: 2;
    grid-row: 1;
  }
}
