/* =====================================================================
   dashboard.css — TEAM monitoring dashboard specifics.
   Builds on heimdall.css: reuses the design tokens (:root vars) and the
   shared components (.panel, .member-row, .roster-state, .pill, .roster-
   meta, .sigil). Only net-new layout for the login panel + presence wall
   lives here. No build step — plain CSS, loaded after heimdall.css.
   ===================================================================== */

/* ---------- login (device-flow) panel ---------- */
.login-panel { max-width: 640px; margin: 0 auto; }
.login-panel .join-label { text-align: left; }

.dev-code-wrap {
  margin-top: 18px;
  text-align: center;
  background: var(--term-bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 22px 18px;
  box-shadow: var(--shadow-md);
}
.dev-code-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.dev-code {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--gold);
  margin-top: 10px;
  word-break: break-all;
}
.login-secnote { margin-top: 20px; }

/* ---------- dashboard top bar ---------- */
.dash-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.dash-agg { margin-top: 0; font-size: 13px; }
.dash-agg.is-live { color: var(--ink-2); }
.dash-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- presence wall (one block per team/repo) ---------- */
#wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}
.team-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-md);
}
.team-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.team-name { font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--ink); }
.team-name i { color: var(--accent-bright); margin-right: 7px; }
.team-id { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.team-id i { font-size: 10px; margin-right: 3px; opacity: .75; }
.team-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  white-space: nowrap;
}
.team-block .roster-list { margin-top: 14px; }
.team-block .roster-state { margin-top: 14px; }

/* ---------- presence state dot on each member row ---------- */
.member-row .pstate {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1;
  width: 14px;
  text-align: center;
}
.member-row .pstate.is-active { color: var(--gold); text-shadow: 0 0 8px var(--gold-line); }
.member-row .pstate.is-idle { color: var(--ink-3); }

@media (max-width: 720px) {
  #wall { grid-template-columns: 1fr; }
  .dash-bar { flex-direction: column; align-items: stretch; }
  .dash-actions .hd-btn { flex: 1; justify-content: center; }
}
