/* Estilos da tela Minha turma (prefixo cr-). */
.cr-code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .12em; }
.cr-mural { margin-bottom: 16px; background: var(--warn-bg); border-color: transparent; }
.cr-notice { padding: 10px 12px; border-radius: 10px; background: var(--surface); white-space: pre-wrap; overflow-wrap: anywhere; }
.cr-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.cr-person { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.cr-person.me { background: var(--surface-2); }
.cr-person .avatar { position: relative; flex: none; }
.cr-dot { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); border: 2px solid var(--surface); }
.cr-dot.on { background: var(--ok); }
.cr-on { color: var(--ok); font-weight: 700; }
.cr-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cr-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-sched { gap: 6px; }
.cr-session { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.cr-day { font-weight: 800; min-width: 92px; }
.cr-task { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.cr-task.late { border-color: var(--bad); }
.cr-late { color: var(--bad); font-weight: 700; }
.cr-done { color: var(--ok); }
.cr-tour { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); }
.cr-tour:hover { text-decoration: none; background: var(--surface-2); }
.cr-me-row td { background: var(--warn-bg); }
@media (max-width: 640px) {
  .cr-people { grid-template-columns: 1fr; }
  .cr-person .btn { padding: 6px 8px; }
}

/* ── Painel de tabuleiros ao vivo (prefixo tb-) ── */
.tb-grid { --tb: 260px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--tb), 100%), 1fr)); gap: 14px; margin-bottom: 16px; }
.tb-card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; color: var(--text); text-decoration: none !important; min-width: 0; }
.tb-card:hover, .tb-card:focus-visible { border-color: var(--brand-2); outline: none; }
.tb-card.over { opacity: .72; }
.tb-board { position: relative; pointer-events: none; }
.tb-board .board-wrap, .tb-board .bw { max-width: none; width: 100%; }
.tb-res { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(15, 16, 19, .88); color: #fff; font-weight: 800; padding: 6px 12px; border-radius: 99px; white-space: nowrap; font-size: 13px; }
.tb-side { display: flex; align-items: center; gap: 6px; font-size: 13px; min-width: 0; padding: 2px 4px; border-radius: 8px; }
.tb-side.turn { background: var(--surface-2); }
.tb-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; border: 1px solid var(--muted); }
.tb-dot.white { background: #fff; } .tb-dot.black { background: #16171a; }
.tb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-name.mine { font-weight: 700; }
.tb-rt { color: var(--muted); font-variant-numeric: tabular-nums; }
.tb-clk { font-variant-numeric: tabular-nums; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); }
.tb-clk.run { background: var(--brand); color: #111; }
.tb-sizes { display: flex; gap: 4px; }
.tb-idle { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tb-chip { padding: 3px 10px; border-radius: 99px; background: var(--surface-2); color: var(--text); font-size: 13px; text-decoration: none !important; }
.tb-off { margin-left: auto; }
.tb:fullscreen { background: var(--bg); overflow: auto; padding: 16px; max-width: none; }
