/* ── Design tokens ───────────────────────────────────────────────────── */
:root {
  /* Slate palette for sidebar */
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  /* Accent — Digital Concept brand */
  --accent:        #1E4C9E;        /* DC primary blue */
  --accent-hover:  #163b7d;
  --accent-soft:   rgba(30, 76, 158, 0.1);
  --accent-2:      #00B4D8;        /* DC accent teal/cyan */
  --accent-2-soft: rgba(0, 180, 216, 0.12);

  /* Semantic */
  --green:  #10b981;
  --green-soft: #d1fae5;
  --red:    #ef4444;
  --red-soft: #fee2e2;
  --amber:  #f59e0b;
  --amber-soft: #fef3c7;
  --blue:   #3b82f6;
  --blue-soft: #dbeafe;

  /* Neutrals */
  --bg:        #fafafa;
  --surface:   #ffffff;
  --border:    #e5e7eb;
  --border-soft: #f3f4f6;
  --text:      #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  /* Layout */
  --sidebar-w: 260px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow:    0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
a { color: var(--accent); text-decoration: none; }
code, pre { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ── Login ───────────────────────────────────────────────────────────── */
.login-wrap {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #E8F2FA 100%);
  padding: 20px;
}
.login-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 36px;
  width: min(420px, 100%);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.login-brand {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; margin-bottom: 28px;
}
.login-logo {
  height: 64px; width: auto;
  display: block;
}
.login-tag {
  font-size: 13px; color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}
.login-product {
  font-size: 15px; font-weight: 600;
  color: var(--text);
}
.login-form { display: flex; flex-direction: column; gap: 16px; }

/* Generic field */
.field { display: block; }
.field > span {
  display: block;
  font-size: 12px; font-weight: 600;
  color: var(--text-muted); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.field .req { color: var(--red); margin-left: 2px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field small { display: block; margin-top: 4px; font-size: 12px; color: var(--text-subtle); }
.input-with-eye { position: relative; }
.input-with-eye input { padding-right: 40px; }
.eye-btn {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  font-size: 16px;
  color: var(--text-muted);
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}
.eye-btn:hover { opacity: 1; background: var(--slate-100); }
.eye-btn.shown { opacity: 1; color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.error {
  background: var(--red-soft);
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
}

/* Buttons */
.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  transition: background 0.15s, transform 0.05s;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; padding: 12px; font-size: 14px; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500; font-size: 13px;
  transition: background 0.15s, border-color 0.15s;
}
.btn-ghost:hover { background: var(--slate-100); border-color: var(--slate-300); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.select-sm {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13px;
}

/* ── App layout ──────────────────────────────────────────────────────── */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────────────────────── */
.sidebar {
  background: var(--slate-900);
  color: var(--slate-300);
  display: flex; flex-direction: column;
  padding: 20px 12px;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.sb-brand {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 8px;
  padding: 8px 12px 24px;
  border-bottom: 1px solid var(--slate-800);
  margin-bottom: 16px;
}
.sb-logo {
  height: 40px; width: auto;
  background: white;
  padding: 6px 10px;
  border-radius: 8px;
  display: block;
}
.sb-product {
  font-size: 13px; font-weight: 600;
  color: var(--slate-300);
  letter-spacing: 0.02em;
  padding-left: 4px;
}
.sb-product-sub {
  font-size: 10px; color: var(--slate-500);
  font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding-left: 4px;
  margin-top: -4px;
}

.sb-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
.sb-link {
  background: transparent; border: none;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--slate-300);
  text-align: left;
  font-size: 13px; font-weight: 500;
  transition: background 0.15s, color 0.15s;
  width: 100%;
}
.sb-link:hover { background: var(--slate-800); color: white; }
.sb-link.active { background: var(--slate-800); color: white; }
.sb-link.active .sb-icon { color: var(--accent); }
.sb-icon { font-size: 16px; line-height: 1; width: 20px; text-align: center; }
.sb-badge {
  margin-left: auto;
  background: var(--slate-800);
  color: var(--slate-400);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px; font-weight: 600;
  min-width: 22px; text-align: center;
}
.sb-badge-alert { background: var(--red); color: white; }

.sb-section-label {
  font-size: 10px; font-weight: 700;
  color: var(--slate-500);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0 16px 8px;
  margin-top: 24px;
}
.sb-tenants { flex: 1; padding: 0 4px; overflow-y: auto; }
.sb-empty {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--slate-500);
}
.sb-tenant {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--slate-300);
  background: transparent; border: none;
  width: 100%; text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.sb-tenant:hover { background: var(--slate-800); color: white; }
.sb-tenant-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-tenant-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--slate-600); }
.sb-tenant-dot.online { background: var(--green); box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2); }
.sb-tenant-dot.offline { background: var(--slate-600); }
.sb-tenant-alert {
  background: var(--red); color: white;
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
  padding: 1px 6px; min-width: 18px; text-align: center;
}

.sb-footer {
  border-top: 1px solid var(--slate-800);
  padding: 16px 12px 0;
  margin-top: 12px;
}
.sb-user { display: flex; align-items: center; gap: 10px; }
.sb-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px;
  flex-shrink: 0;
}
.sb-user-meta { flex: 1; min-width: 0; }
.sb-user-email {
  font-size: 12px; color: var(--slate-400);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sb-link-text {
  background: none; border: none;
  color: var(--slate-400);
  font-size: 11px;
  padding: 0; margin-top: 2px;
}
.sb-link-text:hover { color: white; text-decoration: underline; }
.sb-version {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--slate-800);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: var(--slate-500);
  letter-spacing: 0.04em;
}

/* ── Main content ────────────────────────────────────────────────────── */
.main {
  padding: 28px 36px 60px;
  min-width: 0;
  max-width: 100%;
}
.view { display: block; }
.view[hidden] { display: none; }
.view-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 28px;
  flex-wrap: wrap;
}
.view-title {
  font-size: 24px; font-weight: 700;
  margin: 0; letter-spacing: -0.01em;
}
.view-sub {
  font-size: 14px; color: var(--text-muted);
  margin: 4px 0 0;
}
.view-actions { display: flex; gap: 10px; align-items: center; }

/* KPI cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.kpi-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.kpi-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  flex-shrink: 0;
}
.kpi-icon-green  { background: var(--green-soft); color: #047857; }
.kpi-icon-blue   { background: var(--blue-soft);  color: #1d4ed8; }
.kpi-icon-purple { background: var(--accent-soft); color: var(--accent); }
.kpi-icon-red    { background: var(--red-soft);   color: #b91c1c; }

.kpi-body { min-width: 0; flex: 1; }
.kpi-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.kpi-value { font-size: 26px; font-weight: 700; line-height: 1.1; margin: 4px 0; letter-spacing: -0.01em; }
.kpi-sub { font-size: 12px; color: var(--text-subtle); }

/* Panels */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
}
.panel-header h2 {
  font-size: 15px; font-weight: 600;
  margin: 0; color: var(--text);
}

/* Tenant rows */
.tenant-rows { display: flex; flex-direction: column; }
.tenant-row {
  display: grid;
  grid-template-columns: 14px minmax(180px, 1.4fr) repeat(4, minmax(80px, 0.7fr)) auto;
  gap: 16px; align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  transition: background 0.1s;
}
.tenant-row:last-child { border-bottom: none; }
.tenant-row:hover { background: var(--slate-50); }

.tenant-status { display: flex; justify-content: center; }
.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  position: relative;
  background: var(--slate-300);
}
.status-dot.online { background: var(--green); }
.status-dot.online::after {
  content: ""; position: absolute; inset: -3px;
  border-radius: 50%; background: var(--green);
  opacity: 0.3; animation: pulse 2s infinite;
}
.status-dot.offline { background: var(--slate-300); }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50%      { transform: scale(1.4); opacity: 0; }
}

.tenant-main { min-width: 0; }
.tenant-name { font-weight: 600; font-size: 14px; color: var(--text); }
.tenant-slug {
  font-size: 12px; color: var(--text-muted); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tenant-slug a { color: var(--accent); }
.tenant-meta { min-width: 0; }
.tenant-meta-label {
  font-size: 10px; color: var(--text-subtle);
  text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 600;
}
.tenant-meta-value {
  font-size: 13px; color: var(--text);
  font-weight: 500; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tenant-meta-value.warn { color: var(--red); font-weight: 600; }
.tenant-open { white-space: nowrap; }

/* Empty state */
.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}
.empty-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.empty-sub { font-size: 13px; color: var(--text-muted); }

/* Alerts */
.alert-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px; align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-soft);
}
.alert-row:last-child { border-bottom: none; }
.alert-badge {
  font-size: 10px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--slate-100); color: var(--slate-600);
  white-space: nowrap;
}
.alert-type-rate_limit { background: var(--amber-soft); color: #92400e; }
.alert-type-api_error  { background: var(--red-soft); color: #991b1b; }
.alert-type-tool_error { background: var(--red-soft); color: #991b1b; }
.alert-type-auth_error { background: var(--blue-soft); color: #1d4ed8; }
.alert-type-other      { background: var(--slate-100); color: var(--slate-600); }

.alert-main { min-width: 0; }
.alert-title { font-weight: 500; font-size: 13px; color: var(--text); margin-bottom: 2px; }
.alert-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 6px; flex-wrap: wrap; }
.alert-tenant { font-weight: 500; color: var(--text); }
.alert-sep { color: var(--text-subtle); }
.alert-status {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.alert-status-open { background: var(--red-soft); color: #991b1b; }
.alert-status-acknowledged { background: var(--amber-soft); color: #92400e; }
.alert-status-resolved { background: var(--green-soft); color: #047857; }

/* ── Modals ──────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 100;
  animation: fade-in 0.2s ease-out;
}
.modal-overlay[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface);
  border-radius: var(--radius);
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: pop-in 0.2s ease-out;
}
.modal-wide { width: min(720px, 100%); }
@keyframes pop-in {
  from { transform: scale(0.96) translateY(8px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-soft);
}
.modal-header h2 {
  font-size: 17px; font-weight: 600; margin: 0;
}
.modal-close {
  background: none; border: none;
  font-size: 16px; color: var(--text-muted);
  width: 32px; height: 32px;
  border-radius: 8px;
}
.modal-close:hover { background: var(--slate-100); color: var(--text); }
.modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
}
.modal-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-soft);
}

/* Checklist styling */
.checklist-intro {
  font-size: 14px; color: var(--text);
  margin: 0 0 16px;
}
.checklist {
  list-style: none;
  counter-reset: step;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.checklist-step {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: var(--slate-50);
}
.checklist-title {
  font-size: 14px; font-weight: 600;
  margin: 0 0 6px; color: var(--text);
}
.checklist-note {
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 8px;
}
.code-block {
  position: relative;
  background: var(--slate-900);
  color: #e2e8f0;
  border-radius: 6px;
  padding: 0;
  font-size: 12px;
  margin-top: 8px;
}
.code-block pre {
  margin: 0;
  padding: 12px 64px 12px 14px;
  font-size: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.6;
}
.code-env pre { line-height: 1.7; }
.copy-btn {
  position: absolute; top: 8px; right: 8px;
  background: var(--slate-800);
  color: var(--slate-300);
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.copy-btn:hover { background: var(--slate-700); color: white; }

/* Tenant detail */
.td-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px 16px;
  background: var(--slate-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.td-field { min-width: 0; }
.td-field label {
  display: block;
  font-size: 10px; color: var(--text-subtle);
  text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 3px;
}
.td-field > div {
  font-size: 13px; color: var(--text);
  font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.td-form { display: flex; flex-direction: column; gap: 14px; }
.td-form .modal-actions {
  padding: 16px 0 0;
  border-top: 1px solid var(--border-soft);
  margin-top: 4px;
}

/* API key panel inside tenant detail */
.td-apikey-panel {
  background: var(--surface, #f8fafc);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.td-apikey-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
}
.td-apikey-label {
  font-size: 10px; color: var(--text-subtle);
  text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 600; margin-bottom: 4px;
}
.td-apikey-value code {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; color: var(--text);
  background: white; padding: 3px 8px;
  border-radius: 4px; border: 1px solid var(--border-soft);
}
.td-apikey-meta {
  font-size: 11px; color: var(--text-muted); margin-top: 6px;
}
.td-apikey-help {
  display: block; margin-top: 10px;
  font-size: 12px; color: var(--text-muted); line-height: 1.5;
}
.td-warn { color: var(--red, #dc2626); font-weight: 500; }

/* Rotated-key modal */
.rotate-steps { margin-top: 18px; }
.rotate-steps h4 {
  font-size: 13px; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin: 0 0 8px;
}
.rotate-steps ol {
  padding-left: 20px; margin: 0;
  font-size: 13px; color: var(--text); line-height: 1.7;
}
.rotate-steps code {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; background: var(--surface, #f1f5f9);
  padding: 1px 5px; border-radius: 3px;
}

/* Danger button */
.btn-danger {
  background: white;
  color: var(--red);
  border: 1px solid #fecaca;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500; font-size: 13px;
  margin-right: auto;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-danger:hover { background: var(--red-soft); border-color: #fca5a5; }

/* User rows (admin user management) */
.user-row {
  display: grid;
  grid-template-columns: auto minmax(180px, 1.4fr) auto auto auto;
  gap: 16px; align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  transition: background 0.1s;
}
.user-row:last-child { border-bottom: none; }
.user-row:hover { background: var(--slate-50); }
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px;
  flex-shrink: 0;
}
.user-main { min-width: 0; }
.user-name {
  font-weight: 600; font-size: 14px; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.user-self-tag {
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--accent-soft); color: var(--accent);
  padding: 2px 8px; border-radius: 999px;
}
.user-email { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.user-role-badge {
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--slate-100); color: var(--slate-600);
}
.user-role-admin { background: var(--accent-soft); color: var(--accent); }
.user-role-staff { background: var(--blue-soft); color: #1d4ed8; }
.user-meta { min-width: 0; }
.user-meta-label {
  font-size: 10px; color: var(--text-subtle);
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
}
.user-meta-value { font-size: 13px; color: var(--text); font-weight: 500; margin-top: 2px; }

/* Provisioned success view */
.provision-success {
  text-align: center;
  padding: 8px 0 16px;
}
.provision-icon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  background: var(--green-soft);
  color: #047857;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
}
.provision-success h3 {
  font-size: 18px; margin: 0 0 6px; font-weight: 600;
}
.provision-success p {
  font-size: 13px; color: var(--text-muted);
  margin: 0; max-width: 400px; margin: 0 auto;
}
.provision-grid { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.provision-row { display: flex; flex-direction: column; gap: 6px; }
.provision-label {
  font-size: 10px; color: var(--text-subtle);
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
}
.provision-value {
  font-size: 14px; color: var(--text); font-weight: 500;
}
.provision-row small { font-size: 12px; color: var(--text-muted); }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--slate-900);
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  z-index: 200;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  max-width: 360px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-error { background: var(--red); }
.toast-info  { background: var(--slate-900); }
