/* Fit the tool launcher to the available viewport without clipping content. */
html[data-dreamflow="hub"] .hub {
  min-height:100dvh;box-sizing:border-box;
  display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;
  padding:0;
}
html[data-dreamflow="hub"] .hub[hidden] { display:none; }
html[data-dreamflow="hub"] .hub-header {
  height:clamp(56px,8dvh,72px);min-height:56px;flex-wrap:nowrap;
}
html[data-dreamflow="hub"] .hub-heading {
  padding:clamp(16px,3.5dvh,38px) 24px clamp(14px,2.5dvh,26px);
}
html[data-dreamflow="hub"] .hub-eyebrow { margin-bottom:clamp(8px,1.5dvh,16px); }
html[data-dreamflow="hub"] .hub-heading h1 {
  font-size:clamp(28px,4.6dvh,46px);margin-bottom:clamp(8px,1.5dvh,16px);
}
html[data-dreamflow="hub"] .hub-account { margin-top:clamp(8px,1.5dvh,16px); }
html[data-dreamflow="hub"] .project-grid {
  width:100%;max-width:1240px;box-sizing:border-box;
  grid-template-rows:repeat(2,minmax(min-content,1fr));
  gap:clamp(10px,1.8dvh,20px);align-self:stretch;
}
html[data-dreamflow="hub"] .project-card {
  min-height:0;padding:clamp(14px,2dvh,24px);overflow:visible;
}
html[data-dreamflow="hub"] .project-art {
  height:clamp(28px,calc((100dvh - 540px)*.22),100px);
  margin:0 0 clamp(8px,1.5dvh,16px);flex:1;min-height:28px;
  transform:scale(.65);
}
html[data-dreamflow="hub"] .project-copy h2 { margin-bottom:6px;font-size:clamp(16px,2dvh,20px); }
html[data-dreamflow="hub"] .project-copy p { font-size:12px;line-height:1.6; }
html[data-dreamflow="hub"] .project-enter { padding-top:clamp(8px,1.2dvh,14px);margin-top:auto; }
html[data-dreamflow="hub"] .hub-footer {
  width:100%;box-sizing:border-box;max-width:1240px;
  padding:clamp(10px,1.8dvh,20px) 24px;line-height:1.5;
}
@media(min-width:701px) {
  html[data-dreamflow="hub"] .hub { height:100dvh; }
}
@media(min-width:1000px) and (max-height:560px) {
  html[data-dreamflow="hub"] .project-grid { grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:1fr; }
  html[data-dreamflow="hub"] .project-card { grid-column:auto; }
  html[data-dreamflow="hub"] .project-art { display:none; }
  html[data-dreamflow="hub"] .project-copy { margin:12px 0; }
}
@media(max-width:700px) {
  html[data-dreamflow="hub"] .hub { min-height:100dvh; }
  html[data-dreamflow="hub"] .hub-header { padding:0 16px;gap:8px; }
  html[data-dreamflow="hub"] .hub-brand { font-size:19px;letter-spacing:-.7px; }
  html[data-dreamflow="hub"] .hub-mark { width:28px;height:28px;margin-right:7px;font-size:16px; }
  html[data-dreamflow="hub"] .hub-header>.secondary { font-size:11px;padding:8px;white-space:nowrap; }
  html[data-dreamflow="hub"] .hub-heading { padding:20px 16px 16px; }
  html[data-dreamflow="hub"] .hub-heading h1 { font-size:clamp(24px,5.5vw,32px);letter-spacing:-.8px; }
  html[data-dreamflow="hub"] .hub-heading>p:last-of-type { font-size:12px; }
  html[data-dreamflow="hub"] .hub-eyebrow { font-size:9px;letter-spacing:1.5px; }
  html[data-dreamflow="hub"] .hub-account { font-size:10px; }
  html[data-dreamflow="hub"] .project-grid {
    grid-template-columns:1fr;grid-template-rows:repeat(5,minmax(60px,1fr));
    gap:10px;padding:0 16px;
  }
  html[data-dreamflow="hub"] .project-card {
    grid-column:auto;display:grid;grid-template-columns:minmax(0,1fr) 24px;
    align-items:center;gap:12px;padding:12px 16px;min-height:60px;
  }
  html[data-dreamflow="hub"] :is(.project-meta,.project-art) { display:none; }
  html[data-dreamflow="hub"] .project-copy h2 { font-size:16px;margin:0 0 4px; }
  html[data-dreamflow="hub"] .project-copy p { font-size:11px; }
  html[data-dreamflow="hub"] .project-enter { margin:0;padding:0;font-size:0; }
  html[data-dreamflow="hub"] .project-enter>span { font-size:20px; }
  html[data-dreamflow="hub"] .hub-footer { flex-direction:row;justify-content:center;padding:12px 16px; }
  html[data-dreamflow="hub"] .hub-footer>span:last-child { display:none; }
}
@media(max-width:700px) and (max-height:700px) {
  html[data-dreamflow="hub"] .hub-heading { padding:14px 16px; }
  html[data-dreamflow="hub"] .hub-eyebrow,html[data-dreamflow="hub"] .hub-account { display:none; }
  html[data-dreamflow="hub"] .project-grid { gap:8px;grid-template-rows:repeat(5,minmax(52px,1fr)); }
  html[data-dreamflow="hub"] .project-card { padding:10px 14px;min-height:52px; }
  html[data-dreamflow="hub"] .project-copy p { display:none; }
  html[data-dreamflow="hub"] .project-copy h2 { margin:0; }
}
@media(max-width:380px) {
  html[data-dreamflow="hub"] .hub-brand { font-size:0;gap:0; }
  html[data-dreamflow="hub"] .hub-brand>span:last-child { font-size:0; }
  html[data-dreamflow="hub"] .hub-mark { font-size:16px;margin-right:0; }
}

@media(min-width:701px) and (max-height:680px) {
  html[data-dreamflow="hub"] .project-art { display:none; }
  html[data-dreamflow="hub"] .project-copy { margin-top:8px; }
  html[data-dreamflow="hub"] .hub-account { display:none; }
}
