/* Public-demo fit layer — loaded after the SPA bundle so labels wrap
   instead of clipping, and the surface dock does not cover the shell. */

.app-shell {
  box-sizing: border-box;
  /* Clear the shared surface dock, plus the home-indicator inset on phones. */
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

.task-metrics {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

.task-metrics > div {
  min-height: 64px;
  padding: 10px 12px;
}

.task-metrics > div > span,
.task-metrics strong,
.manager-outcome-counts small,
.reconciliation-counts small {
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  line-height: 1.3;
}

.overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.overview-card {
  min-width: 0;
  min-height: 0;
  overflow: visible;
}

.manager-outcome-counts,
.reconciliation-counts {
  gap: 8px;
}

.manager-outcome-counts > span,
.reconciliation-counts > span {
  min-width: 0;
  padding: 8px 10px;
}

.task-title-row {
  align-items: flex-start;
  gap: 12px;
}

.task-title-row h1 {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.25;
}

.task-card-copy strong,
.task-card-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-content {
  padding-bottom: 20px;
}

.dock-shell {
  min-width: 0;
}

.agent-window,
.agent-summary,
.agent-identity {
  min-width: 0;
}

@media (max-width: 1100px) {
  .task-metrics {
    grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  }
}
