/* Team screen (28 Oct 2026, team.js): the principal's own team. Uses the shared .pod-modal / .pod-sheet (app.css) and
   .cl-btn / .cl-pill (cloud.css). Phone-first; on a desktop the sheet is just a little wider. */
.tm-sheet { max-width: 620px; height: min(760px, 92dvh); }
.tm-body { overflow-y: auto; padding: 14px 16px 22px; }
.tm-body h4 { margin: 18px 0 8px; font-size: 14px; }
.tm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tm-list li { border: 1px solid var(--rule); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.tm-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tm-who small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.tm-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tm-ctl select, .tm-form select, .tm-form input { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); color: var(--ink); }
.tm-more summary { cursor: pointer; color: var(--accent); font-size: 14px; font-weight: 600; padding: 6px 2px; }
.tm-more[open] { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.tm-more[open] summary { flex-basis: 100%; }
.tm-form { display: flex; flex-direction: column; gap: 10px; }
.tm-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; }
.tm-note { color: var(--muted); font-size: 13px; margin: 6px 0; }
.tm-err { color: #b42318; font-size: 14px; margin: 4px 0; }
.tm-warn { background: #fff4e5; color: #8a4b00; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 0 0 10px; }
.tm-once { margin-top: 12px; border: 1px dashed var(--accent); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.tm-once small { color: var(--muted); }
.tm-tbl td small { display: block; color: var(--muted); }
.tm-tbl .tm-act { display: flex; gap: 6px; flex-wrap: wrap; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tm-warn { background: #3a2a10; color: #fcd38d; }
  :root:not([data-theme="light"]) .tm-err { color: #fca5a5; }
}
@media (min-width: 1024px) {
  .tm-list li { flex-direction: row; align-items: center; justify-content: space-between; }
  .tm-ctl { justify-content: flex-end; }
}
