/* Arbor — light theme, tokens + component patterns borrowed directly from
   pr-platform's web/public/style.css (../../pr-platform/web/public/style.css)
   so this feels like the same family of internal tool. Gray-box user turns,
   white-card assistant turns — NOT chat bubbles, matching pr-platform.

   Every color, radius, shadow and timing value below is a variable so a
   future dark-mode toggle only has to swap the :root block (or add a
   `[data-theme="dark"]` override) — no component rule should ever need to
   change. Nothing in this file hardcodes a raw hex value inline; if you're
   tempted to, add a token instead. */

:root {
  /* Surfaces */
  --bg: #ffffff;
  --panel: #f7f8fa;
  --panel2: #fbfbfc;
  --card: #ffffff;          /* elevated surface — assistant cards, login card, popovers */
  --overlay: rgba(17, 24, 39, 0.04);

  /* Lines */
  --line: #e5e7eb;
  --line2: #d7dbe2;

  /* Text */
  --text: #111827;
  --mute: #6b7280;
  --dim: #9ca3af;
  --on-accent: #ffffff;     /* text/icon color drawn on top of --accent */

  /* Brand + status */
  --accent: #2563eb;        /* overridden per client at runtime */
  --accent-soft: #e0edff;
  --green: #059669;
  --green-soft: #ecfdf5;
  --green-line: #a7f3d0;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --amber-line: #fde68a;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --red-line: #fecaca;

  /* Shape */
  --radius-sm: 7px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.05);
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.10);
  --shadow-lg: 0 16px 44px rgba(17, 24, 39, 0.14);
  --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.15);

  /* Motion */
  --dur-fast: 120ms;
  --dur-med: 200ms;
  --dur-slow: 420ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Skeleton */
  --skeleton-base: #eceef1;
  --skeleton-sheen: #f7f8fa;
}

@media (prefers-color-scheme: dark) {
  /* Placeholder hook for a future dark theme — intentionally not activated
     yet (no toggle exists). Kept empty so :root above stays the single
     source of truth until dark mode ships; see README Phase 2. */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
button, input, textarea { font-family: inherit; }
button { transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }
button:active:not(:disabled) { transform: scale(0.96); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ── Keyframes ── */
@keyframes turnIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  0%   { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes dotPulse {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30%           { opacity: 1;    transform: translateY(-2px); }
}
@keyframes shimmer {
  0%   { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes cardFloat {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.skeleton {
  background: linear-gradient(90deg, var(--skeleton-base) 0px, var(--skeleton-sheen) 40px, var(--skeleton-base) 80px);
  background-size: 200px 100%;
  animation: shimmer 1.3s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

/* ── Shell grid ── */
.shell {
  display: grid;
  grid-template-columns: minmax(230px, 20%) minmax(0, 1fr);
  grid-template-rows: 56px 1fr;
  height: 100vh; width: 100vw;
}
.hdr {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: minmax(230px, 20%) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.h-logo {
  display: flex; align-items: center; gap: 10px; padding: 0 16px;
  font-weight: 800; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap;
}
.h-logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.h-main { display: flex; align-items: center; gap: 14px; padding: 0 24px; min-width: 0; }
.h-main h1 { font-size: 15px; font-weight: 700; white-space: nowrap; transition: opacity var(--dur-med) var(--ease); }
.h-main .sub {
  color: var(--dim); font-size: 12.5px; border-left: 1px solid var(--line); padding-left: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h-right { margin-left: auto; display: flex; align-items: center; gap: 8px; padding-right: 16px; }
.ghost-btn {
  background: none; border: 1px solid var(--line2); color: var(--mute);
  border-radius: var(--radius-sm); padding: 5px 11px; font-size: 12.5px; cursor: pointer; white-space: nowrap;
}
.ghost-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* ── Sidebar ── */
.side {
  grid-row: 2; grid-column: 1;
  border-right: 1px solid var(--line); background: var(--panel2);
  display: flex; flex-direction: column; overflow: hidden;
}
.side-search { padding: 12px 14px 8px; flex: none; position: relative; }
.side-search input {
  width: 100%; border: 1px solid var(--line2); border-radius: var(--radius-sm); background: var(--card);
  color: var(--text); font: inherit; font-size: 12.5px; padding: 7px 10px 7px 28px;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.side-search::before {
  content: ''; position: absolute; left: 24px; top: 50%; transform: translateY(-1px) rotate(45deg);
  width: 6px; height: 6px; border: 1.5px solid var(--dim); border-top: none; border-left: none;
  border-radius: 1px; pointer-events: none;
}
.side-search::after {
  content: ''; position: absolute; left: 21px; top: 50%; transform: translateY(-9px);
  width: 8px; height: 8px; border: 1.5px solid var(--dim); border-radius: 50%; pointer-events: none;
}
.side-search input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
.side-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim); padding: 10px 16px 6px; flex: none;
}
/* Scrollable client list — designed to hold hundreds of clients without a
   redesign: fixed-height rows, native scroll, no grid layout. */
.client-list { flex: 1; overflow-y: auto; padding-bottom: 12px; }
.client-list.is-loading { padding: 4px 16px; }
.skel-client { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.skel-client .skeleton:first-child { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.skel-client .skeleton:last-child { height: 11px; flex: 1; max-width: 70%; }
.no-match { padding: 16px; color: var(--dim); font-size: 12.5px; text-align: center; animation: fadeIn var(--dur-med) var(--ease); }

.client-group { border-bottom: 1px solid transparent; }
.client-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 16px;
  color: var(--text); cursor: pointer; font-weight: 700; font-size: 13.5px;
  border-left: 2px solid transparent; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease);
}
.client-row:hover { background: var(--overlay); }
.client-row .cdot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--cdot, var(--accent)); transition: box-shadow var(--dur-fast) var(--ease); }
.client-row:hover .cdot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--cdot, var(--accent)) 18%, transparent); }
.client-row .nm { overflow: hidden; text-overflow: ellipsis; flex: 1; }
.client-row .chev {
  color: var(--dim); font-size: 10px; transition: transform var(--dur-med) var(--ease-out);
  display: inline-block;
}
.client-group.open .client-row .chev { transform: rotate(90deg); }

/* Smooth expand/collapse via grid-template-rows (animatable, unlike
   height:auto) instead of the old display:none/block hard cut. */
.bot-list {
  display: grid; grid-template-rows: 0fr; overflow: hidden;
  transition: grid-template-rows var(--dur-med) var(--ease-out);
}
.bot-list > .bot-list-inner { min-height: 0; overflow: hidden; padding: 2px 0 6px; }
.client-group.open .bot-list { grid-template-rows: 1fr; }

.bot-row {
  display: flex; align-items: center; gap: 8px; padding: 7px 16px 7px 34px;
  color: var(--mute); cursor: pointer; font-size: 13px; font-weight: 600;
  border-left: 2px solid transparent; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.bot-row:hover { background: var(--overlay); color: var(--text); }
.bot-row.active { background: var(--card); color: var(--accent); border-left-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-soft); }
.bot-row .bicon {
  width: 20px; height: 20px; border-radius: 50%; flex: none; font-size: 10px;
  display: flex; align-items: center; justify-content: center; color: var(--on-accent);
  background: var(--cdot, var(--accent)); overflow: hidden; object-fit: cover;
}
.bot-row .autonomy-flag {
  font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  color: var(--amber); margin-left: auto;
}
.side .spacer { flex: none; }
.me {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-top: 1px solid var(--line); color: var(--mute); font-size: 12px; min-width: 0; flex: none;
}
.me .em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--on-accent);
}

/* Bot character avatar images — used in sidebar rows, the channel header,
   and next to each assistant turn. Circular, object-fit cover so the
   generated square PNGs crop cleanly at any of the three sizes. */
.bot-avatar-img { border-radius: 50%; object-fit: cover; display: block; flex: none; background: var(--panel); }

/* ── Center column ── */
.center { grid-row: 2; grid-column: 2; display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.channel-header {
  display: flex; align-items: center; gap: 10px; padding: 12px 4%;
  border-bottom: 1px solid var(--line); flex: none;
  animation: fadeIn var(--dur-med) var(--ease);
}
.channel-header .cicon {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none;
  overflow: hidden;
}
.channel-header .cicon img { width: 100%; height: 100%; }
.channel-header .ctitle { font-weight: 700; font-size: 14.5px; }
.channel-header .csub { color: var(--dim); font-size: 12px; }
.channel-header .autonomy-pill {
  margin-left: auto; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-line); white-space: nowrap;
}
.channel-header .autonomy-pill.confirm { background: var(--panel); color: var(--mute); border-color: var(--line); }

/* Empty state — considered, not a lone sentence: a soft mark + copy stack. */
.empty-state {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--dim); font-size: 13.5px; gap: 14px; text-align: center; padding: 24px;
  animation: fadeIn var(--dur-slow) var(--ease);
}
.empty-state .es-mark {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--panel));
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  box-shadow: var(--shadow-sm);
  animation: popIn var(--dur-slow) var(--ease-out);
}
.empty-state .es-title { color: var(--text); font-weight: 700; font-size: 15px; }
.empty-state .es-sub { color: var(--dim); font-size: 13px; max-width: 320px; line-height: 1.6; }

.thread { flex: 1; overflow-y: auto; padding: 24px 4% 12px; scroll-behavior: smooth; }

/* Loading skeleton for a conversation swap — replaces the old bare
   "Loading conversation…" text so switching channels doesn't jump. */
.thread-skel { display: flex; flex-direction: column; gap: 18px; }
.skel-turn { display: flex; flex-direction: column; gap: 8px; }
.skel-turn .skeleton:first-child { width: 70px; height: 9px; }
.skel-turn .skeleton:last-child { height: 54px; border-radius: var(--radius-md); }
.skel-turn.user .skeleton:last-child { max-width: 62%; align-self: flex-end; }
.skel-turn.assistant .skeleton:last-child { max-width: 88%; }

/* Turns — gray box for user, white card for assistant. No bubbles. */
.turn { margin-bottom: 18px; animation: turnIn var(--dur-med) var(--ease-out) both; }
.turn-label { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.turn-label span {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dim);
}
.turn.user .turn-body {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 12px 16px; color: var(--mute); font-size: 13px; white-space: pre-wrap;
}
.turn.assistant { display: flex; gap: 10px; align-items: flex-start; }
.turn.assistant .turn-avatar { margin-top: 18px; }
.turn.assistant .turn-main { flex: 1; min-width: 0; }
.turn.assistant .turn-body {
  background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 18px 22px; font-size: 14.5px; line-height: 1.7; white-space: pre-wrap;
  transition: box-shadow var(--dur-med) var(--ease);
}
.turn.assistant .turn-body:hover { box-shadow: var(--shadow-md); }

/* Typing / thinking indicator — a real card that mirrors the assistant
   turn shape (avatar + card) rather than a lone line of text, so the
   layout doesn't jump when the real reply lands in the same spot. */
.thinking-turn { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; animation: turnIn var(--dur-med) var(--ease-out) both; }
.thinking-turn .turn-avatar { margin-top: 4px; }
.thinking-card {
  background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); padding: 12px 16px; display: inline-flex; align-items: center; gap: 8px;
  color: var(--dim); font-size: 13px;
}
.thinking-status { color: var(--dim); font-size: 13px; display: flex; align-items: center; gap: 8px; padding: 10px 2px; }
.thinking-dots { display: inline-flex; gap: 3px; }
.thinking-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block;
  animation: dotPulse 1.1s infinite ease-in-out;
}
.thinking-dots span:nth-child(2) { animation-delay: 0.15s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.3s; }

/* Quick-action buttons under each assistant turn */
.turn-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.action-btn {
  border: 1px solid var(--line2); background: var(--card); color: var(--text);
  border-radius: var(--radius-sm); padding: 7px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.action-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); box-shadow: var(--shadow-xs); }
.action-btn:disabled { opacity: .55; cursor: default; }
.action-btn.danger:hover:not(:disabled) { border-color: var(--red); color: var(--red); background: var(--red-soft); }

.status-pill {
  font-size: 11px; font-weight: 700; border-radius: var(--radius-pill); padding: 3px 10px;
  background: var(--panel); color: var(--mute); border: 1px solid var(--line);
  display: inline-block; animation: popIn var(--dur-fast) var(--ease-out);
}
.status-pill.pending { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }
.status-pill.approved, .status-pill.executed { background: var(--green-soft); color: var(--green); border-color: var(--green-line); }
.status-pill.rejected { background: var(--red-soft); color: var(--red); border-color: var(--red-line); }

/* Rating row */
.rate-row { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.rate-btn {
  cursor: pointer; font-size: 15px; background: var(--card); border: 1px solid var(--line2);
  border-radius: var(--radius-sm); padding: 4px 9px; color: var(--mute); line-height: 1;
}
.rate-btn:hover:not(:disabled) { border-color: var(--accent); box-shadow: var(--shadow-xs); }
.rate-btn.lit-up { background: var(--green-soft); color: var(--green); border-color: var(--green-line); animation: popIn var(--dur-fast) var(--ease-out); }
.rate-btn.lit-down { background: var(--red-soft); color: var(--red); border-color: var(--red-line); animation: popIn var(--dur-fast) var(--ease-out); }

/* Composer */
.composer { border-top: 1px solid var(--line); background: var(--card); padding: 14px 4%; flex: none; }
.cbox {
  display: flex; gap: 10px; align-items: flex-end;
  background: var(--panel); border: 1px solid var(--line2); border-radius: var(--radius-md); padding: 10px 12px;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.cbox:focus-within { border-color: var(--accent); background: var(--card); box-shadow: var(--focus-ring); }
.cbox textarea {
  flex: 1; background: none; border: none; resize: vertical;
  color: var(--text); font: inherit; font-size: 13.5px; outline: none;
  padding: 5px 4px; min-width: 0; min-height: 40px; max-height: 220px;
}
.cbox button {
  background: var(--accent); color: var(--on-accent); border: none; border-radius: var(--radius-sm);
  padding: 9px 18px; font-weight: 700; font-size: 13px; cursor: pointer; flex: none;
}
.cbox button:hover:not(:disabled) { filter: brightness(1.08); box-shadow: var(--shadow-xs); }
.cbox button:disabled { opacity: 0.5; cursor: default; }

/* ── Login page ── */
.login-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative; overflow: hidden;
  background:
    radial-gradient(680px 420px at 12% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(600px 380px at 110% 110%, #ecfdf5, transparent 60%),
    var(--panel);
}
.login-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 32px 28px; width: 100%; max-width: 380px;
  box-shadow: var(--shadow-lg);
  animation: cardFloat var(--dur-slow) var(--ease-out) both;
  position: relative; z-index: 1;
}
.login-card .brand { font-size: 22px; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.01em; }
.login-card .brand-sub { color: var(--mute); font-size: 13px; margin-bottom: 22px; line-height: 1.5; }
.login-card label { display: block; color: var(--mute); font-size: 12.5px; margin-bottom: 6px; font-weight: 600; }
.login-card input {
  width: 100%; border: 1px solid var(--line2); border-radius: var(--radius-sm); background: var(--card);
  color: var(--text); font: inherit; padding: 10px 12px; margin-bottom: 14px;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.login-card input:focus { border-color: var(--accent); outline: none; box-shadow: var(--focus-ring); }
.login-card button[type="submit"] {
  width: 100%; background: var(--accent); color: var(--on-accent); border: none; border-radius: var(--radius-sm);
  padding: 11px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.login-card button[type="submit"]:hover:not(:disabled) { filter: brightness(1.08); box-shadow: var(--shadow-sm); }
.login-card button[type="submit"]:disabled { opacity: 0.65; cursor: default; }
.err { color: var(--red); font-size: 12.5px; margin-top: 10px; animation: turnIn var(--dur-fast) var(--ease-out); }
.temp-note { font-size: 11px; color: var(--dim); margin-top: 16px; line-height: 1.5; }

/* ── Admin page ──
   New surface, not a redesign of anything above — reuses the same tokens
   (--panel, --line, --accent, --mute, --dim, status-pill colors) so it reads
   as the same tool rather than a bolted-on dashboard. */
.admin-shell { max-width: 1080px; margin: 0 auto; padding: 28px 24px 60px; }
.admin-hdr { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.admin-hdr h1 { font-size: 19px; font-weight: 800; }
.admin-hdr .back { margin-left: auto; }
.admin-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.admin-tab {
  background: none; border: none; padding: 9px 14px; font: inherit; font-size: 13px;
  color: var(--mute); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.admin-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-filters { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.admin-filters select, .admin-filters input {
  border: 1px solid var(--line2); border-radius: 8px; background: #fff; color: var(--text);
  font: inherit; font-size: 12.5px; padding: 7px 10px;
}
table.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.admin-table th {
  text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--dim); border-bottom: 1px solid var(--line); padding: 8px 10px;
}
table.admin-table td { border-bottom: 1px solid var(--line); padding: 9px 10px; vertical-align: middle; }
table.admin-table tr:hover td { background: var(--panel2); }
.role-select, .team-input {
  border: 1px solid var(--line2); border-radius: 7px; background: #fff; color: var(--text);
  font: inherit; font-size: 12.5px; padding: 5px 8px;
}
.save-btn {
  background: var(--accent); color: #fff; border: none; border-radius: 7px;
  padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.save-btn:disabled { opacity: 0.5; cursor: default; }
.save-btn.saved { background: var(--green); }
.role-pill {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--panel); color: var(--mute); border: 1px solid var(--line2);
}
.pager { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12.5px; color: var(--mute); }
.pager button {
  background: none; border: 1px solid var(--line2); border-radius: 7px; padding: 5px 10px;
  font: inherit; font-size: 12px; cursor: pointer; color: var(--text);
}
.pager button:disabled { opacity: 0.4; cursor: default; }
.admin-empty { color: var(--dim); font-size: 13px; padding: 24px 0; text-align: center; }
.detail-code {
  font-family: ui-monospace, monospace; font-size: 11px; color: var(--mute);
  max-width: 320px; display: block; white-space: pre-wrap; word-break: break-word;
}
