/* Staff console — layered on top of the member portal's brand tokens
   (../portal/styles.css), which is the single source for colours, fonts, radii
   and shadows. Nothing here redefines a token; duplicating the palette across
   two apps is how a design system drifts apart. */

/* One column, not the member portal's two. `main` in the shared stylesheet sets
   a two-column grid for the documents/chat split, and without this override the
   console silently inherits it and squeezes both panels. */
.admin-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 24px 60px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.invite-row { display: flex; gap: 14px; align-items: flex-end; }
.invite-row .grow { flex: 1; }
@media (max-width: 720px) {
  .invite-row { flex-direction: column; align-items: stretch; }
}

.ok-note {
  margin-top: 14px;
  padding: 11px 15px;
  border-radius: var(--radius-md);
  background: rgba(163, 209, 153, .18);
  border: 1px solid rgba(111, 149, 115, .3);
  color: var(--sage-deep);
  font-size: 14px;
}

.setup-key {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  letter-spacing: .06em;
  word-break: break-all;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 0;
}

#memberlist li { align-items: center; flex-wrap: wrap; row-gap: 4px; }
/* Enough room that an email address is readable rather than ellipsised away. */
#memberlist .meta { min-width: 260px; }
#memberlist .actions { flex-wrap: wrap; gap: 8px; }
#memberlist .btn-quiet { padding: 5px 13px; font-size: 13.5px; }

.pill-off { background: rgba(155, 74, 63, .12); color: var(--danger); }
.pill-pending { background: var(--sand-deep); color: var(--forest-deep); }

/* Nothing changes state without a stated reason, and the reason is written to
   the audit log. This row is where it gets typed. */
.reason-row {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
/* `width: 100%` from the shared input rule fights `flex: 1` and collapses the
   field to nothing, so the width is reset here. */
.reason-row input { flex: 1 1 260px; width: auto; }
.reason-row .note { flex-basis: 100%; margin: 6px 0 0; }

/* System panel. Dense on purpose — it is a status readout, not a dashboard, and
   it should be readable at a glance without scrolling. */
.ops-group { margin-top: 18px; }
.ops-group:first-child { margin-top: 4px; }
.ops-group h3 {
  font-family: inherit;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin: 0 0 8px;
}
.ops-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ops-table th {
  text-align: left;
  font-weight: 500;
  color: var(--ink-faint);
  font-size: 13px;
  padding: 0 26px 6px 0;
  white-space: nowrap;
}
.ops-table td {
  padding: 6px 26px 6px 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
/* The first column is a service or group name — it should not wrap mid-name. */
.ops-table td:first-child { white-space: nowrap; }
/* The last column takes the slack so the numeric columns stay narrow and
   left-aligned against their headings instead of drifting apart. */
.ops-table td:last-child, .ops-table th:last-child { padding-right: 0; width: 99%; }
/* Green is not used here. A healthy row should be quiet; only a problem earns
   colour, or everything looks equally urgent. */
.ops-flag { color: var(--danger); font-weight: 500; }
.ops-quiet { color: var(--ink-faint); }
.ops-stamp { font-size: 13px; color: var(--ink-faint); margin: 16px 0 0; }

/* Authenticator enrolment. The QR is the main path; the typed key is a
   fallback behind a disclosure, because nobody wants to key 52 base32
   characters on a phone. */
.qr-wrap {
  display: flex;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
}
.qr-wrap canvas { display: block; width: 232px; height: 232px; image-rendering: pixelated; }
.qr-link { color: var(--sage-dark); text-decoration: underline; }
.qr-fallback { margin-top: 4px; }
.qr-fallback summary {
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 4px 0;
}
.qr-fallback .setup-key { margin-top: 8px; }
.qr-fallback .btn-quiet { margin-top: 10px; }
