/* h1v3MIND/ed site: admin page. Phone first; builds on base.css, license.css and account.css. */
.admin-wrap { max-width: 1120px; }

/* numbers */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.stat { background: var(--panel); padding: 14px 16px; min-width: 0; }
.stat dt { font: 400 17px/1.1 var(--pixel); color: var(--subtle); letter-spacing: .08em; text-transform: uppercase; }
.stat-n { margin-top: 6px; font: 900 2.2rem/1 var(--display); font-stretch: 60%; color: var(--gold); }
.stat-sub { margin-top: 6px; color: var(--muted); font-size: .78rem; line-height: 1.4; overflow-wrap: anywhere; }
.stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 761px) {
  .stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .stat:last-child:nth-child(odd) { grid-column: auto; }
}
.stats-line { margin-top: 10px; color: var(--subtle); font-size: .8rem; overflow-wrap: anywhere; }
#stats-out:empty { min-height: 0; }

/* waitlist */
.wl-counts { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.wl-counts:empty { display: none; }
.wl-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.wl-filter {
  min-height: 40px; padding: 8px 12px 7px; font: 400 19px/1 var(--pixel); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); background: var(--panel);
}
.wl-filter:hover { color: var(--gold-2); border-color: var(--gold-line); }
.wl-filter[aria-pressed="true"] { color: #0c1115; background: var(--gold); border-color: var(--gold); }
.wl-filter:focus-visible { outline-offset: 2px; }
.wl-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 10px; }
.wl-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; color: var(--text); font-size: .9rem; }
.wl-shown { color: var(--subtle); font-size: .82rem; }
.wl-check input, .wl-box input { width: 22px; height: 22px; margin: 0; accent-color: var(--gold); cursor: pointer; flex-shrink: 0; }
.wl-box { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; cursor: pointer; }
.wl-check input:focus-visible, .wl-box input:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

.wl-wrap { border: 1px solid var(--line-soft); }
.wl-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.wl-table th { text-align: left; font: 400 17px/1 var(--pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); padding: 12px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.wl-table td { padding: 10px 12px; border-bottom: 1px dashed var(--line-soft); color: var(--muted); vertical-align: top; }
.wl-table tr:last-child td { border-bottom: 0; }
.wl-table tr.sel td { background: #efc77d0d; }
.wl-table .c-sel { width: 56px; padding: 0 4px; vertical-align: middle; text-align: center; }
.wl-table .c-act { text-align: right; vertical-align: middle; white-space: nowrap; }
.wl-table .c-note { max-width: 340px; }
.wl-table .c-join { white-space: nowrap; }
.wl-email { display: block; color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.wl-name { display: block; font-size: .8rem; }
.wl-name.dim, .wl-table .dim { color: var(--subtle); }
.wl-acct { display: inline-block; margin-top: 4px; font: 400 15px/1 var(--pixel); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.wl-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.wl-more { margin-left: 6px; font-size: .8rem; padding: 2px 0; }
.wl-sub { display: block; margin-top: 6px; color: var(--subtle); font-size: .76rem; }
#wl-out { margin-top: 12px; }
#wl-out:empty { margin-top: 0; min-height: 0; }

/* invite results */
.invite-results { margin-top: 22px; padding: 18px; background: var(--panel); border: 1px solid var(--gold-line); }
.invite-results:focus { outline: none; }
.invite-results:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.invite-results .warn { margin: 12px 0 0; font-size: 19px; }
.ir-list { display: grid; gap: 1px; margin: 14px 0 16px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.ir-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 10px 12px; background: #0a0f12; }
.ir-email { color: var(--text); overflow-wrap: anywhere; }
.ir-ok { color: var(--green); } .ir-err { color: var(--red); } .ir-hand { color: var(--gold); }
.ir-ok, .ir-err, .ir-hand { font-size: .82rem; text-align: right; }
.ir-code-row { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.ir-code { font: 700 1rem/1.3 var(--mono); letter-spacing: .06em; padding: .3em .55em; user-select: all; }

/* once something is selected, the invite bar stays at the bottom of the screen while you scroll (thumb reach on phones) */
.wl-bar {
  position: relative; bottom: 0; z-index: 5; margin-top: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: #0c1115f2; border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.wl-bar.has-sel { position: sticky; border-color: var(--gold-line); }
.wl-selected { color: var(--muted); font-size: .88rem; }
.wl-bar .btn.armed, .btn-gold.armed { background: var(--red); border-color: var(--red); color: #0c1115; }

@media (max-width: 760px) {
  /* rows become cards */
  .wl-wrap { border: 0; }
  .wl-table thead { display: none; }
  .wl-table, .wl-table tbody { display: block; }
  .wl-table tr {
    position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 2px 8px;
    padding: 12px 12px 14px 6px; margin-bottom: 10px; background: var(--panel); border: 1px solid var(--line);
  }
  .wl-table tr.sel { border-color: var(--gold-line); }
  .wl-table tr.sel td { background: none; }
  .wl-table td { display: block; padding: 2px 0; border: 0; }
  .wl-table .c-sel { grid-row: 1 / span 4; width: auto; padding: 0; text-align: left; vertical-align: top; }
  .wl-table .c-sel .wl-box { min-height: 44px; }
  .wl-table .c-who, .wl-table .c-note, .wl-table .c-join, .wl-table .c-status, .wl-table .c-act { grid-column: 2; }
  .wl-table .c-note { max-width: none; margin-top: 4px; }
  .wl-table .c-note.empty { display: none; }
  .wl-table .c-join::before { content: attr(data-label) ": "; color: var(--subtle); }
  .wl-table .c-status { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
  .wl-table .c-status .wl-sub { margin-top: 0; }
  .wl-table .c-act { text-align: left; margin-top: 8px; }
  .ir-row { grid-template-columns: minmax(0, 1fr); }
  .ir-ok, .ir-err, .ir-hand { text-align: left; }
  .wl-bar { margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); border-left: 0; border-right: 0; }
}
