/* Scope to Maggie's full-page workspace; leave floating question help alone. */
main:has(> #maggie-ai-workspace) { max-width: 1120px; }
#maggie-ai-workspace .hm-mc-shell.hm-mc-workspace {
  height: calc(100vh - 100px);
  height: calc(100dvh - 100px);
  min-height: 540px;
  max-height: none;
}
main > #maggie-ai-workspace .hm-mc-shell.hm-mc-workspace {
  height: calc(100vh - 80px);
  height: calc(100dvh - 80px);
}
#maggie-ai-workspace .hm-mc-welcome {
  flex: none;
  width: min(100%, 760px);
  padding: 8px;
}
#maggie-ai-workspace .hm-mc-welcome h2 { margin: 6px 0; line-height: 1.25; }
#maggie-ai-workspace .hm-mc-welcome p { margin: 6px 0 12px; }
#maggie-ai-workspace .hm-mc-welcome img {
  display: block; margin: 0 auto; width: 56px; height: 56px;
}
#maggie-ai-workspace .hm-mc-prompts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#maggie-ai-workspace .hm-mc-prompts button {
  min-height: 44px; padding: 8px; font-size: 15px; line-height: 1.3;
  overflow-wrap: anywhere;
}
#maggie-ai-workspace .hm-mc-privacy { margin: 0; }
#maggie-ai-workspace .hm-mc-context:empty,
#maggie-ai-workspace .hm-mc-status:empty { display: none; }
#maggie-ai-workspace .hm-mc-input { line-height: 1.35; padding: 8px; }
#maggie-ai-workspace .hm-mc-head,
#maggie-ai-workspace .hm-mc-usage,
#maggie-ai-workspace .hm-mc-controls,
#maggie-ai-workspace .hm-mc-privacy { flex-shrink: 0; }
@media (max-width: 600px) {
  #maggie-ai-workspace .hm-mc-shell.hm-mc-workspace {
    min-height: 520px;
    height: calc(100vh - 85px);
    height: calc(100dvh - 85px);
  }
  main > #maggie-ai-workspace .hm-mc-shell.hm-mc-workspace {
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px);
  }
  #maggie-ai-workspace .hm-mc-prompts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #maggie-ai-workspace .hm-mc-welcome img { width: 44px; height: 44px; }
  #maggie-ai-workspace .hm-mc-welcome h2 { font-size: 20px; }
  #maggie-ai-workspace .hm-mc-prompts button { font-size: 14px; }
  #maggie-ai-workspace .hm-mc-photo-tools button,
  #maggie-ai-workspace .hm-mc-photo-tools a { padding: 8px 6px; font-size: 12px; }
}
@media (max-width: 340px) {
  #maggie-ai-workspace .hm-mc-prompts { grid-template-columns: 1fr; }
}
