/* 0.3.4 layout: vertical left sidebar at >= 680px (including split-screen & tablet);
   multi-row wrapped feature grid at < 680px. Colours and shapes come from theme variables. */
.app-side,.app-content{display:contents}
@media (min-width:680px){
  body .catch-app.app{display:grid;grid-template-columns:180px minmax(0,1fr);grid-template-rows:auto 1fr auto;column-gap:14px;align-content:start;max-width:1560px}
  .catch-app.app>.topbar{grid-column:1/-1;grid-row:1}
  .catch-app .app-side{display:flex;flex-direction:column;gap:10px;grid-column:1;grid-row:2;align-self:start;position:sticky;top:56px;max-height:calc(100vh - 68px);max-height:calc(100dvh - 68px);overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;padding-bottom:6px}
  .catch-app .app-content{display:flex;flex-direction:column;gap:12px;grid-column:2;grid-row:2;min-width:0}
  .catch-app.app>footer{grid-column:2;grid-row:3}
  .catch-app .app-side .instance-strip{flex-direction:column;align-items:stretch;gap:6px;margin:0;padding:10px}
  .catch-app .app-side .instance-strip select{min-width:0;width:100%;flex:none}
  .catch-app .app-side .instance-strip .note{margin:0;width:auto;font-size:11px}
  .catch-app .app-side .workspace-tabs{display:flex;flex-direction:column;align-items:stretch;gap:2px;margin:0;overflow:visible;flex:none;padding:6px;border-radius:var(--r)}
  .catch-app .app-side .workspace-tabs .tab{justify-content:flex-start;width:100%;min-width:0;flex:none;text-align:left;white-space:normal;line-height:1.3;padding:7px 10px;font-size:12.5px}
  .catch-app .app-content .workshop-main{min-width:0;margin:0;padding:0}
  .catch-app .app-content .banner,.catch-app .app-content .notice{margin:0}
}
@media (min-width:1000px){
  body .catch-app.app{grid-template-columns:212px minmax(0,1fr);column-gap:18px}
  .catch-app .app-side{gap:12px;top:68px;max-height:calc(100vh - 80px);max-height:calc(100dvh - 80px)}
  .catch-app .app-side .instance-strip{gap:8px;padding:12px}
  .catch-app .app-side .workspace-tabs{padding:8px}
  .catch-app .app-side .workspace-tabs .tab{padding:8px 13px;font-size:13px;white-space:nowrap}
}
@media (min-width:1240px){
  .catch-app #view-overview.view:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-auto-rows:max-content;align-items:stretch;gap:14px}
  .catch-app #view-overview>*{grid-column:1/-1;margin:0}
  .catch-app #view-overview>.hero{grid-column:1}
  .catch-app #view-overview>.resource-budget:not([hidden]){grid-column:2}
  .catch-app #view-overview:has(>.resource-budget[hidden])>.hero{grid-column:1/-1}
  .catch-app #view-overview>.resource-budget .budget-amounts{gap:8px}
  .catch-app #view-overview>.resource-budget .budget-amounts dd{font-size:19px}
  .catch-app .daily-loop-view .loop-workspace{min-height:600px}
}
