/* DevHub Console v12 — rolagem real e layout responsivo estável. */
html:has(body.console-page), body.console-page {
  height: auto !important;
  min-height: 100%;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
body.console-page .topbar {
  position: sticky !important;
  top: 0 !important;
  height: 64px !important;
  z-index: 40 !important;
}
body.console-page .app-shell {
  display: grid !important;
  grid-template-columns: 238px minmax(0, 1fr) !important;
  height: auto !important;
  min-height: calc(100dvh - 64px) !important;
  margin-top: 0 !important;
  overflow: visible !important;
}
body.console-page .sidebar {
  position: sticky !important;
  top: 64px !important;
  align-self: start !important;
  height: calc(100dvh - 64px) !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
body.console-page .console-content {
  height: auto !important;
  min-height: calc(100dvh - 64px) !important;
  overflow: visible !important;
  padding-bottom: 28px !important;
}
body.console-page .console-content > .view,
body.console-page .console-content > .notice {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}
body.console-page .console-footer { margin-bottom: 8px; }
@media (max-width: 700px) {
  body.console-page .topbar { height: 56px !important; }
  body.console-page .app-shell {
    display: flex !important;
    flex-direction: column !important;
    min-height: calc(100dvh - 56px) !important;
    height: auto !important;
  }
  body.console-page .sidebar {
    position: sticky !important;
    top: 56px !important;
    z-index: 30 !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    padding: 6px 9px !important;
    overflow: visible !important;
  }
  body.console-page .sidebar .workspace,
  body.console-page .sidebar .sidebar-access,
  body.console-page .sidebar .sidebar-foot { display: none !important; }
  body.console-page .sidebar nav {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    height: 38px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
  }
  body.console-page .sidebar nav::-webkit-scrollbar { display: none; }
  body.console-page .nav-link {
    flex: 0 0 auto !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 7px 10px !important;
    font-size: 11px !important;
  }
  body.console-page .console-content {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 12px 10px 24px !important;
    overflow: visible !important;
  }
  body.console-page .welcome { align-items: flex-start !important; margin-bottom: 16px !important; }
  body.console-page .welcome h1 { font-size: clamp(25px, 8vw, 32px) !important; }
  body.console-page .welcome > .ghost { flex-shrink: 0 !important; }
  body.console-page .console-content > .view,
  body.console-page .console-content > .notice { overflow: visible !important; }
  body.console-page .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body.console-page .overview-grid { grid-template-columns: 1fr !important; }
  body.console-page .chat-main .studio-canvas {
    min-height: 420px !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }
  body.console-page .chat-main .studio-composer {
    max-height: none !important;
    overflow: visible !important;
    margin-bottom: 10px !important;
  }
}
@media (max-width: 420px) {
  body.console-page .console-content { padding-left: 8px !important; padding-right: 8px !important; }
  body.console-page .metrics { grid-template-columns: 1fr !important; }
  body.console-page .welcome { gap: 10px !important; }
  body.console-page .welcome > .ghost { padding: 8px 10px !important; }
}
