/* 모든 MTS 앱의 화면 폭 계약. 출력 용지와 편집 대화상자는 앱별 규칙을 유지한다. */
@media screen {
  .app-shell {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    padding-inline: clamp(12px, 1.5vw, 28px);
  }
  .app-shell > header.topbar,
  .app-shell > header.portal-topbar,
  .app-shell > main {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    margin-inline: 0;
  }
  .app-shell > header {flex-wrap: wrap;}
  .app-shell > header > div {min-width: 0;}
  .app-shell .top-actions {flex-wrap: wrap;max-width: 100%;}
  .app-shell > main > section,
  .app-shell > main > div {min-width: 0;}
  /* 기존 3열 카드 폭을 유지하고 넓어진 화면에는 카드 수만 늘린다. */
  #projectGrid.project-grid {grid-template-columns:repeat(auto-fill,minmax(0,384px));justify-content:start;align-items:start;}
  #projectGrid .project-card {width:384px;max-width:100%;box-sizing:border-box;min-height:278px;}
}
@media screen and (max-width:420px) {
  #projectGrid.project-grid {grid-template-columns:minmax(0,1fr);}
  #projectGrid .project-card {width:100%;}
}
@media screen and (max-width: 760px) {
  .app-shell {padding-inline: 12px;}
  .app-shell > header {gap: 12px;}
  .app-shell .top-actions {gap: 8px;}
}
