/* admin.css — the operator console.
 *
 * Deliberately plainer than the app. This is an instrument panel, not a
 * practitioner's screen: it should look like the back office it is, so there is
 * never a moment of wondering which one is on screen. */
body { max-width: 1100px; margin: 0 auto; padding: 18px 16px 60px; }

.ahead { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.ahead h1 { font-size: 20px; margin: 0; letter-spacing: .01em; }
.ahead .zh { color: var(--muted); font-weight: 500; }
.ahead .sub { margin: 2px 0 0; font-size: 12px; }
.who { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px; margin-bottom: 20px; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: var(--card); }
.cv { display: block; font-size: 22px; font-weight: 600; line-height: 1.1; }
.cl { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .06em; margin-top: 3px; }
.cs { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.panel { border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  background: var(--card); margin-bottom: 18px; }
.panel h2 { font-size: 15px; margin: 0 0 10px; }
.ptitle { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ptitle h2 { margin: 0; }
#search { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px;
  font: inherit; font-size: 13px; min-width: 220px; }

table.users { width: 100%; border-collapse: collapse; font-size: 13px; }
table.users th { text-align: left; font-size: 11px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); font-weight: 600;
  border-bottom: 1px solid var(--line); padding: 6px 8px; white-space: nowrap; }
table.users td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.users tr.susp td { opacity: .55; }

.tier { font-size: 11.5px; padding: 2px 7px; border-radius: 20px; border: 1px solid var(--line); }
.t-practitioner { border-color: #b9d3b2; background: #eef6ec; color: #2f5c28; }
.t-master { border-color: #e4d2a8; background: #f7efdf; color: #6b4a12; }

.tag { font-size: 10.5px; padding: 1px 5px; border-radius: 4px;
  background: var(--line); color: var(--muted); }
.tag.warn, .warn { color: #8a3b12; }

ol.audit { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
ol.audit li { padding: 6px 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
ol.audit li:last-child { border-bottom: 0; }
ol.audit .sub { display: block; font-size: 11.5px; }

dialog.userdlg { border: 1px solid var(--line); border-radius: 12px; padding: 18px;
  max-width: 640px; width: calc(100% - 32px); background: var(--card); color: inherit; }
dialog.userdlg::backdrop { background: rgba(0, 0, 0, .35); }
dialog.userdlg h3 { margin: 0 0 2px; font-size: 16px; word-break: break-all; }
dialog.userdlg h4 { margin: 16px 0 6px; font-size: 12px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); }
.row { display: flex; align-items: baseline; gap: 12px; margin-top: 12px; }
.row > label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); min-width: 62px; }
.btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dlgfoot { margin-top: 16px; text-align: right; }

table.usage { width: 100%; border-collapse: collapse; font-size: 12px; }
table.usage td { padding: 4px 8px; border-bottom: 1px solid var(--line); }
table.usage td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

.scroll { overflow-x: auto; }

@media (max-width: 620px) {
  .ptitle { flex-direction: column; align-items: stretch; }
  #search { min-width: 0; }
}
