/* Colour carries meaning, so a navigation button can never be mistaken for a destructive one:
   slate = navigate / review / open, green = approve, red = destructive, dark red = child safety,
   ghost = secondary / cancel. The rose brand colour is for the wordmark only. */
:root {
  --admin-brand: #E11D48;
  --admin-nav: #334155;
  --admin-nav-hover: #1E293B;
  --admin-success: #15803D;
  --admin-success-hover: #166534;
  --admin-success-soft: #DCFCE7;
  --admin-error: #B91C1C;
  --admin-error-hover: #991B1B;
  --admin-error-soft: #FEE2E2;
  --admin-warn: #B45309;
  --admin-warn-soft: #FEF3C7;
  --admin-urgent: #7F1D1D;
  --admin-urgent-soft: #FDE8E8;
  --admin-bg: #F4F5F7;
  --admin-surface: #FFFFFF;
  --admin-surface-alt: #F7F8FA;
  --admin-border: #E3E6EA;
  --admin-border-strong: #CFD4DA;
  --admin-text: #1F2430;
  --admin-text-muted: #5B6472;
  --admin-text-faint: #8A93A3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--admin-bg);
  color: var(--admin-text);
}

h1 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

a {
  color: var(--admin-nav);
}

/* App shell */

.admin-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.75rem 1.5rem;
  background: var(--admin-surface);
  border-bottom: 1px solid var(--admin-border);
}

.admin-brand {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.admin-brand-name {
  font-weight: 700;
  color: var(--admin-brand);
}

.admin-brand-tag {
  font-size: 0.8rem;
  color: var(--admin-text-muted);
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  flex: 1;
}

.admin-nav a {
  text-decoration: none;
  color: var(--admin-text-muted);
  font-weight: 500;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
}

.admin-nav a.active {
  color: var(--admin-text);
  border-bottom-color: var(--admin-nav);
}

.admin-account {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--admin-text-muted);
}

.admin-main {
  flex: 1;
  padding: 1.25rem 1.5rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* Buttons and links */

.btn {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn-small {
  padding: 0.28rem 0.65rem;
  font-size: 0.8rem;
}

/* Navigation / review / open / search — never destructive. */
.btn-primary {
  background: var(--admin-nav);
  color: #fff;
}

.btn-primary:hover {
  background: var(--admin-nav-hover);
}

.btn-approve {
  background: var(--admin-success);
  color: #fff;
}

.btn-approve:hover {
  background: var(--admin-success-hover);
}

/* Destructive: reject, delete, take down. */
.btn-reject {
  background: var(--admin-error);
  color: #fff;
}

.btn-reject:hover {
  background: var(--admin-error-hover);
}

/* Destructive but reversible (suspend). */
.btn-reject-outline {
  background: var(--admin-surface);
  border-color: var(--admin-error);
  color: var(--admin-error);
}

.btn-reject-outline:hover {
  background: var(--admin-error-soft);
}

/* Secondary / cancel. */
.btn-ghost {
  background: var(--admin-surface);
  border-color: var(--admin-border-strong);
  color: var(--admin-text-muted);
}

.btn-ghost:hover {
  border-color: var(--admin-nav);
  color: var(--admin-nav);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-link {
  background: none;
  border: none;
  color: var(--admin-nav);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 0.75rem;
}

/* Page header */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.page-head h1 {
  margin: 0;
}

.page-head-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-sub {
  color: var(--admin-text-muted);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  max-width: 60rem;
}

.page-sub p {
  margin: 0.25rem 0 0;
}

/* Action bar (ActionBar.razor): everyday actions left, destructive / child-safety pushed right. A
   form or panel inside the bar takes a full row of its own. */

.action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 0.75rem 0;
}

.action-bar-spacer {
  flex: 1;
}

.action-bar > .reject-form,
.action-bar > .child-safety-panel,
.action-bar > .alert,
.action-bar > p {
  flex-basis: 100%;
  margin: 0;
}

/* Nav counts (NavCount.razor) */

.nav-count {
  display: inline-block;
  min-width: 1.15rem;
  margin-left: 0.35rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--admin-nav);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
}

.nav-count-urgent {
  background: var(--admin-error);
}

/* Tables and cards */

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
  padding: 0.45rem 0.7rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--admin-border);
}

.admin-table th {
  background: var(--admin-surface-alt);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--admin-text-faint);
  white-space: nowrap;
}

.admin-table tbody tr:hover {
  background: #FAFBFC;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

/* A table with its pager underneath, framed as one card. */
.table-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  overflow: hidden;
}

.table-card .admin-table {
  border: none;
  border-radius: 0;
}

.cell-strong {
  font-weight: 600;
}

.cell-muted {
  color: var(--admin-text-muted);
}

.cell-actions {
  text-align: right !important;
  white-space: nowrap;
}

.cell-actions .btn + .btn {
  margin-left: 0.4rem;
}

.cell-input {
  width: 100%;
  min-width: 10rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--admin-border-strong);
  border-radius: 6px;
  font-size: 0.85rem;
}

.admin-table tbody tr.row-urgent {
  background: var(--admin-urgent-soft);
}

/* Pager (Pager.razor) */

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.7rem;
  background: var(--admin-surface-alt);
  border-top: 1px solid var(--admin-border);
}

.pager-count {
  color: var(--admin-text-muted);
  font-size: 0.8rem;
}

.pager-controls {
  display: flex;
  gap: 0.4rem;
}

/* Filter chips */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.chip {
  display: inline-block;
  border: 1px solid var(--admin-border-strong);
  background: var(--admin-surface);
  color: var(--admin-text-muted);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.chip:hover {
  border-color: var(--admin-nav);
  color: var(--admin-nav);
}

.chip-on,
.chip-on:hover {
  background: var(--admin-text);
  border-color: var(--admin-text);
  color: #fff;
}

.chip-alert.chip-on {
  background: var(--admin-urgent);
  border-color: var(--admin-urgent);
}

.chip-n {
  opacity: 0.8;
  margin-left: 0.25rem;
}

/* Times (AdminTime.razor): relative age over the labelled UTC time. */

.time {
  display: inline-block;
  white-space: nowrap;
}

.time-age {
  display: block;
  font-weight: 600;
}

.time-utc {
  display: block;
  color: var(--admin-text-faint);
  font-size: 0.72rem;
}

.time-inline {
  white-space: nowrap;
}

.empty-state {
  color: var(--admin-text-muted);
  font-style: italic;
}

.alert {
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.alert-error {
  background: var(--admin-error-soft);
  color: var(--admin-error);
}

.alert-warn {
  background: var(--admin-warn-soft);
  color: var(--admin-warn);
}

/* Badges (StatusBadge.razor) — the colour for each status is chosen there, in one place. */

.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

.badge-ok {
  background: var(--admin-success-soft);
  color: #166534;
}

.badge-pending {
  background: #E5E7EB;
  color: #374151;
}

.badge-warn {
  background: var(--admin-warn-soft);
  color: var(--admin-warn);
}

.badge-danger {
  background: var(--admin-error-soft);
  color: var(--admin-error);
}

.badge-urgent {
  background: var(--admin-urgent);
  color: #fff;
}

.badge-info {
  background: #E0ECFF;
  color: #1E40AF;
}

.badge-nav {
  background: #E2E8F0;
  color: var(--admin-nav);
}

/* Comes from config (appsettings), not the database — read-only in the admin app. */
.badge-config {
  background: #EDE9FE;
  color: #6D28D9;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}

.alert-info {
  background: #E0ECFF;
  color: #1E40AF;
}

.alert-success {
  background: var(--admin-success-soft);
  color: var(--admin-success);
}

.deletion-panel {
  background: #FBE9E7;
  border: 1px solid #F3C4BD;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.radio-group {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.search-form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.search-form input {
  flex: 1;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  font-size: 0.9rem;
}

/* Verification review */

.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.review-column {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 1rem;
}

.gesture-instruction {
  margin: 0 0 0.75rem;
}

.review-photo {
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid var(--admin-border);
}

.review-photo-large {
  max-height: 420px;
  display: block;
}

.profile-photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-photo-row .review-photo {
  height: 140px;
  width: auto;
}

.ai-signal {
  background: #EEF2FF;
  border: 1px solid #C7D2FE;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.ai-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.ai-signal-chip {
  display: inline-block;
  background: var(--admin-surface);
  border: 1px solid #C7D2FE;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.85rem;
}

.admin-table .ai-signal-chip {
  padding: 0.1rem 0.6rem;
  font-size: 0.8rem;
}

.ai-signal-chip.chip-warn {
  border-color: #FCD34D;
  background: #FFFBEB;
  color: var(--admin-warn);
}

.ai-signal-chip.chip-danger {
  border-color: #FCA5A5;
  background: #FFF5F5;
  color: var(--admin-error);
}

.ai-signal-chip.chip-evasion {
  border-color: var(--admin-urgent);
  background: var(--admin-urgent-soft);
  color: var(--admin-urgent);
  font-weight: 700;
}

.ai-signal-chip.chip-muted {
  color: var(--admin-text-muted);
}

.ai-signal-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--admin-text-muted);
}

.checklist {
  background: #FFF8E8;
  border: 1px solid #F0DFA8;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.checklist ul {
  margin: 0;
  padding-left: 1.1rem;
}

.checklist li {
  margin-bottom: 0.25rem;
}

.reject-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 420px;
  margin-bottom: 1rem;
}

.reject-form input[type="text"] {
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  font-size: 0.9rem;
}

.reject-form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Reports */

/* The open-report table: a muted snippet under the names, and the opened row's detail panel. */

.cell-sub {
  display: block;
  max-width: 34rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--admin-text-muted);
  font-size: 0.78rem;
}

.admin-table tbody tr.report-row-open td {
  border-bottom: none;
}

.admin-table tbody tr.report-detail-row > td {
  padding: 0 0.7rem 0.7rem;
}

.admin-table tbody tr.report-detail-row:hover {
  background: none;
}

.admin-table tbody tr.report-detail-row.row-urgent:hover {
  background: var(--admin-urgent-soft);
}

.report-panel {
  background: var(--admin-surface-alt);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.report-panel-urgent {
  background: var(--admin-surface);
  border: 2px solid var(--admin-urgent);
}

.report-panel .action-bar {
  margin-bottom: 0;
}

.report-quote {
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.report-details {
  color: var(--admin-text-muted);
  margin: 0 0 0.3rem;
}

/* General muted secondary text (was .report-meta). */
.text-muted {
  font-size: 0.8rem;
  color: var(--admin-text-muted);
  margin: 0 0 0.2rem;
}

/* Conversation viewer */

.transcript td {
  vertical-align: top;
}

/* Time, sender and the take-down button take only what they need; the message gets the rest. */
.transcript th:nth-child(1),
.transcript td:nth-child(1),
.transcript th:nth-child(2),
.transcript td:nth-child(2),
.transcript th:nth-child(4),
.transcript td:nth-child(4) {
  width: 1%;
  white-space: nowrap;
}

.transcript td:nth-child(3) {
  overflow-wrap: anywhere;
}

.transcript-highlight td {
  background: var(--admin-surface);
  font-weight: 600;
}

/* A call report's call record: a label column, then the value. */
.call-evidence th {
  width: 1%;
}

.call-evidence tr:last-child th {
  border-bottom: none;
}

/* Auth pages */

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--admin-bg);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.auth-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 2rem 2.25rem;
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.auth-title {
  color: var(--admin-brand);
  margin: 0 0 0.25rem;
}

.auth-subtitle {
  color: var(--admin-text-muted);
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
}

.auth-hint {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.auth-form,
.auth-form-inline {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.auth-form label {
  text-align: left;
  font-size: 0.85rem;
  color: var(--admin-text-muted);
}

.auth-form input {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  font-size: 1rem;
}

/* Child safety — "Involves a minor" reports and the "Report as child exploitation" action */

.btn-urgent {
  background: var(--admin-urgent);
  color: #fff;
}

.child-safety-panel {
  background: var(--admin-urgent-soft);
  border: 2px solid var(--admin-urgent);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 0.75rem 0;
}

.child-safety-panel ul {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
}

.child-safety-panel input[type="text"] {
  display: block;
  width: 100%;
  max-width: 28rem;
  margin: 0.25rem 0 0.75rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

/* Confirm panels (account actions, message take-down): open below the action bar that opened them,
   one at a time, instead of reshaping the bar. */

.action-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 40rem;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border-strong);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 0 0 1rem;
}

.action-panel-danger {
  border-color: var(--admin-error);
  background: var(--admin-error-soft);
}

.action-panel h2 {
  font-size: 1rem;
  margin: 0;
}

.action-panel input[type="text"] {
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--admin-border-strong);
  border-radius: 6px;
  font-size: 0.9rem;
  background: var(--admin-surface);
}

/* User profile: photos + bio on the left, the account's history on the right. */

.profile-layout {
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .profile-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.section-h {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--admin-text-muted);
  margin: 1.25rem 0 0.5rem;
}

.section-h:first-child {
  margin-top: 0;
}

.section-h-note {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--admin-text-faint);
}

/* A muted second line that wraps (a resolution note, an audit reason) instead of truncating. */
.cell-sub-wrap {
  white-space: normal;
  max-width: none;
}

/* Photo review detail pages: the photo(s) on the left, the AI signal and the actions on the right. */

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.detail-layout .review-grid {
  margin-bottom: 0;
}

.detail-layout .action-bar {
  margin-top: 0;
}

@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* A queue row's small photo thumbnail. */

.cell-thumb {
  width: 1%;
}

.queue-thumb {
  display: block;
  width: 32px;
  height: 42px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface-alt);
}

/* Calling beta page */

.kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 1.25rem;
}

.kpi-value {
  font-size: 1.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.kpi-label {
  font-size: 0.78rem;
  color: var(--admin-text-faint);
}

.card-section {
  margin-bottom: 1.25rem;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--admin-border);
}

.card-section > .card-head:last-child {
  border-bottom: none;
}

.card-head h2 {
  margin: 0;
  font-size: 1rem;
}

.card-head-note {
  margin: 0.2rem 0 0;
  max-width: 46rem;
  font-size: 0.82rem;
  color: var(--admin-text-faint);
}

.card-head-form {
  margin: 0;
  min-width: min(100%, 22rem);
}

.card-subsection {
  margin: 0;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--admin-border);
}

.cell-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: var(--admin-text);
  cursor: pointer;
}

.switch:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

.switch-track {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--admin-border-strong);
  transition: background 0.15s;
}

.switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: left 0.15s;
}

.switch.on .switch-track {
  background: var(--admin-success);
}

.switch.on .switch-knob {
  left: 23px;
}

.switch-label {
  font-size: 0.85rem;
  font-weight: 600;
}

.kpi-ok {
  color: var(--admin-success);
}

.kpi-warn {
  color: var(--admin-warn);
}

.kpi-danger {
  color: var(--admin-error);
}

/* The Calling page's browsable user table: search + filter chips above it, avatar + name in the first column. */

.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  padding: 0.75rem 1rem;
  background: var(--admin-surface-alt);
  border-bottom: 1px solid var(--admin-border);
}

.toolbar-search {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  min-width: min(100%, 18rem);
  max-width: 32rem;
}

.toolbar-search input {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--admin-border-strong);
  border-radius: 6px;
  font-size: 0.85rem;
}

.toolbar-chips {
  margin-bottom: 0;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.avatar {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--admin-border);
}

.avatar-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--admin-text-muted);
}

/* A short-lived confirmation (Calling page row actions). */

.toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: min(28rem, calc(100vw - 2.5rem));
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #fff;
  box-shadow: 0 6px 20px rgba(20, 25, 35, 0.18);
}

.toast-success {
  background: var(--admin-success);
}

.toast-error {
  background: var(--admin-error);
}

.toast-close {
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}
