/* Shared workspace type scale. Keep text sizing separate from business logic. */
:root { --text-body: 16px; --text-detail: 14px; --text-label: 14px; }
body { font-size: var(--text-body); line-height: 1.5; }
body :is(input,select,textarea) { font-size: var(--text-body) !important; line-height: 1.5 !important; }
body :is(button,[role="button"],a.btn) { font-size: var(--text-body) !important; line-height: 1.4 !important; }
body :is(label,small,th) { font-size: var(--text-detail); }
body :is(input,select):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]) { min-height: 44px; }
body :is(button,[role="button"],a.btn) { height: auto; min-height: 44px; }
body :is(.task-main strong,.plan-row strong,.doc-file strong,.expense-main strong,.change-main strong) { font-size: var(--text-body); }
body :is(.d431-eye,.d431-card label,.d431-note,.d441-eye,.d441-box span,.d441-lock) { font-size: var(--text-detail) !important; }
body :is(.task-main,.task-meta,.doc-file,.doc-cell,.expense-main,.expense-meta,.change-main) { min-width: 0; overflow-wrap: anywhere; }
.task-row { grid-template-columns: 44px minmax(180px,1.7fr) minmax(0,.75fr) minmax(0,.75fr) minmax(0,.65fr) 44px; }
.task-check,.task-menu { width: 44px; }
.task-search { height: auto; min-height: 48px; }
.task-search input { min-width: 0; }
.task-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
.task-summary > div { min-width: 0; overflow-wrap: anywhere; }
.pipeline { grid-template-columns: repeat(4,minmax(0,1fr)); }
.pipeline > div { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 800px) {
  .task-row { grid-template-columns: 44px minmax(0,1fr) 44px; }
  .task-row > .task-meta,.task-row > .task-priority { display: block; grid-column: 2; }
  .task-row > .task-priority { justify-self: start; }
  .task-row > div:nth-child(5) { grid-column: 2; }
}
@media (max-width: 720px) {
  .task-screen-head > .primary { width: auto; padding: 10px 14px; }
  .task-screen-head { flex-wrap: wrap; }
  .mobile-nav { height: auto; min-height: 76px; }
  .mobile-nav button { min-width: 0 !important; overflow-wrap: normal; }
}
@media (max-width: 420px) { .task-summary { grid-template-columns: 1fr; } }
