.teams-view {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  overflow: auto;
}
.teams-view h1, .teams-view h2, .teams-view h3 { margin: 0 0 8px; }
.teams-view h1 { font-size: var(--text-h1); }
.teams-view h2 { font-size: var(--text-h2); }
.teams-view h3 { font-size: var(--text-h3); }
.teams-nav, .teams-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.teams-layout { display: flex; flex: 1; min-height: 0; gap: 16px; }
.teams-list { flex: 0 1 220px; min-width: 135px; overflow: auto; }
.teams-list .sb-row, .teams-column .sb-row { width: 100%; }
.teams-group { margin-bottom: 12px; }
.teams-detail { flex: 1; min-width: 0; overflow: auto; }
.teams-meta { color: var(--text-muted); font-size: var(--text-secondary); }
.teams-error { margin: 0; color: var(--error); }
.teams-person { display: inline-flex; gap: 6px; align-items: center; }
.teams-avatar { display: inline-flex; flex: 0 0 24px; width: 24px; height: 24px; align-items: center; justify-content: center; object-fit: cover; border-radius: 50%; background: var(--bg-input); color: var(--text); font-size: var(--text-secondary); }
.teams-presence { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
.teams-presence[data-status="active"] { background: var(--success); }
.teams-presence[data-status="offline"] { background: transparent; border: 1px solid var(--text-muted); }
.teams-conversation { height: 100%; display: flex; flex-direction: column; }
.teams-feed { flex: 1; overflow: auto; min-height: 0; }
.teams-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.teams-card p, .teams-card .teams-actions { margin: 8px 0; }
.teams-message { white-space: pre-wrap; }
.teams-diff { overflow: auto; font-family: var(--font-mono, monospace); }
.teams-view details { margin-bottom: 8px; }
.teams-view summary { cursor: pointer; margin-bottom: 8px; }
.teams-quote { margin: 8px 0; padding-inline-start: 8px; color: var(--text-muted); border-inline-start: 2px solid var(--border); }
.teams-composer { display: grid; gap: 8px; }
.teams-input {
  width: 100%;
  resize: vertical;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-input);
  color: var(--text);
  font: inherit;
}
.teams-view button:disabled { opacity: .55; cursor: not-allowed; }
.teams-board { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.teams-board > :not(.teams-columns) { flex-shrink: 0; }
.teams-columns { display: flex; flex: 1; min-height: 0; gap: 8px; overflow: auto; margin-bottom: 12px; }
.teams-column { flex: 1 0 135px; min-height: 112px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; }
.teams-column .sb-row { min-height: 36px; height: auto; white-space: normal; }
@media (max-width: 900px) {
  .teams-columns { flex-direction: column; }
  .teams-column { flex: 1; min-height: 0; overflow: auto; }
}
@media (max-width: 640px) {
  .teams-layout { display: block; }
  .teams-list { max-height: 28vh; margin-bottom: 12px; }
  .teams-conversation { min-height: 50vh; }
}
