/* ============================================================
   退款管理端 · Design System
   深色「资金运营控制台」：金(资金/主操作) + 青(科技/正向)
   注意：类名与 app.js 强耦合，勿随意改名，仅优化视觉与交互。
   ============================================================ */

:root {
  /* ---- surfaces ---- */
  --bg-0: #060d11;
  --bg-1: #0a151a;
  --surface: #0d1c22;
  --surface-2: #102730;
  --surface-3: #14313b;
  --panel: rgba(13, 28, 34, 0.86);

  /* ---- lines / borders ---- */
  --line: rgba(120, 190, 170, 0.16);
  --line-strong: rgba(120, 190, 170, 0.30);
  --divider: rgba(255, 255, 255, 0.06);

  /* ---- text ---- */
  --text: #e9f4f0;
  --text-soft: #c3d6d1;
  --muted: #93aca7;

  /* ---- brand / status ---- */
  --gold: #e6b93f;
  --gold-2: #f4d675;
  --teal: #33c9b1;
  --teal-2: #57e0c8;
  --ok: #37d6a6;
  --warn: #f0b429;
  --bad: #ff6f6f;
  --info: #56b6e6;

  --on-gold: #0a1114;
  --ring: rgba(51, 201, 177, 0.55);

  /* ---- radius ---- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* ---- spacing scale (dense dashboard) ---- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;

  /* ---- elevation ---- */
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.30);
  --sh-2: 0 8px 22px rgba(0, 0, 0, 0.30);
  --sh-3: 0 20px 50px rgba(0, 0, 0, 0.40);
  --glow-gold: 0 0 0 1px rgba(230, 185, 63, 0.25), 0 10px 26px rgba(230, 185, 63, 0.12);

  /* ---- motion ---- */
  --t-fast: 120ms cubic-bezier(0.2, 0.6, 0.2, 1);
  --t: 200ms cubic-bezier(0.2, 0.6, 0.2, 1);

  --font: "IBM Plex Sans", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scroll-behavior: smooth; }

/* 确保 hidden 属性始终生效（避免被设置了 display 的类覆盖，如 .blocked） */
[hidden] { display: none !important; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-0);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* atmospheric background */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1000px 560px at 6% -10%, rgba(230, 185, 63, 0.14), transparent 56%),
    radial-gradient(820px 480px at 96% 2%, rgba(51, 201, 177, 0.13), transparent 55%),
    radial-gradient(700px 700px at 50% 120%, rgba(51, 201, 177, 0.06), transparent 60%),
    linear-gradient(168deg, var(--bg-0), var(--bg-1));
}

::selection { background: rgba(51, 201, 177, 0.28); color: #fff; }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(120, 190, 170, 0.35) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb {
  background: rgba(120, 190, 170, 0.28);
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(120, 190, 170, 0.45); background-clip: padding-box; }

/* ---- layout shell ---- */
.shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: var(--s-8) 0 var(--s-10);
}

/* ---- top / header ---- */
.top {
  display: flex;
  justify-content: space-between;
  gap: var(--s-5);
  align-items: flex-end;
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--divider);
}

.brand { display: flex; align-items: center; gap: var(--s-3); }
.brand-mark {
  width: 42px; height: 42px;
  flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(140deg, rgba(230, 185, 63, 0.22), rgba(51, 201, 177, 0.16));
  border: 1px solid var(--line-strong);
  color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  padding: 0;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eyebrow {
  margin: 0 0 var(--s-1);
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -0.02em;
  font-weight: 650;
  line-height: 1.1;
}

.sub { margin: var(--s-2) 0 0; color: var(--muted); font-size: 13px; }

.actions { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; }

/* ---- buttons ---- */
button {
  --btn-bg: linear-gradient(135deg, var(--gold), var(--gold-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  border: 0;
  border-radius: var(--r-sm);
  padding: 10px 15px;
  font: inherit;
  font-weight: 650;
  font-size: 13px;
  color: var(--on-gold);
  cursor: pointer;
  background: var(--btn-bg);
  box-shadow: var(--sh-1);
  transition: transform var(--t-fast), box-shadow var(--t), filter var(--t), background var(--t), border-color var(--t), color var(--t);
  white-space: nowrap;
  min-height: 38px;
}
button svg { width: 16px; height: 16px; flex: none; }
button:hover { transform: translateY(-1px); box-shadow: var(--glow-gold); filter: brightness(1.03); }
button:active { transform: translateY(0); filter: brightness(0.97); }
button:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; filter: none; }

button.ghost,
a.ghost {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  color: var(--text-soft);
  box-shadow: none;
  font-weight: 550;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  min-height: 36px;
  border-radius: var(--r-sm);
  cursor: pointer;
}
button.ghost:hover,
a.ghost:hover {
  background: rgba(51, 201, 177, 0.10);
  border-color: var(--line-strong);
  color: var(--text);
  filter: none;
}
button.ghost:active { background: rgba(51, 201, 177, 0.06); }
button.ghost.danger { color: var(--bad); border-color: rgba(255, 111, 111, 0.28); }
button.ghost.danger:hover {
  background: rgba(255, 111, 111, 0.12);
  border-color: rgba(255, 111, 111, 0.5);
  color: #ffb0b0;
}

/* tiny inline actions inside table cells */
td button.ghost { padding: 6px 10px; min-height: 30px; font-size: 12px; }

.auto {
  display: inline-flex;
  gap: var(--s-2);
  align-items: center;
  color: var(--text-soft);
  font-size: 13px;
  user-select: none;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.auto:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.02); }
.auto input { accent-color: var(--teal); width: 15px; height: 15px; cursor: pointer; }

/* ---- admin section tabs ---- */
.admin-tabs {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 var(--s-5);
  padding: 10px 0;
  background: linear-gradient(180deg, rgba(6, 13, 17, 0.96) 60%, rgba(6, 13, 17, 0.78));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--divider);
}

.admin-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(16, 39, 48, 0.72);
  color: var(--text-soft);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  min-height: 36px;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.admin-tab:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.admin-tab.is-active {
  background: linear-gradient(140deg, rgba(230, 185, 63, 0.22), rgba(51, 201, 177, 0.16));
  border-color: rgba(230, 185, 63, 0.45);
  color: var(--gold-2);
}

.admin-tab:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* ---- stats ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.stat {
  position: relative;
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 60%),
    var(--panel);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t);
}
.stat::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--teal));
  opacity: 0.7;
}
.stat:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.stat .label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: var(--s-2);
  letter-spacing: 0.02em;
}
.stat strong {
  font-size: 24px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  color: var(--text);
  line-height: 1.1;
}

/* ---- panels ---- */
.panel {
  margin-top: var(--s-4);
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%),
    var(--panel);
  box-shadow: var(--sh-2);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-4);
  gap: var(--s-3);
  flex-wrap: wrap;
}
.panel-head h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.01em;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.panel-head h2 svg { width: 17px; height: 17px; color: var(--teal); }
.panel-head .actions { gap: var(--s-2); }

/* ---- status text ---- */
.status {
  color: var(--muted);
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status.busy { color: var(--teal-2); }
.status.busy::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(87, 224, 200, 0.35);
  border-top-color: var(--teal-2);
  animation: spin 0.7s linear infinite;
}
.status.err { color: var(--bad); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- tables ---- */
.table-wrap {
  overflow: auto;
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  background: rgba(4, 12, 15, 0.35);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, #12262e, #0f2027);
  color: var(--muted);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
th, td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--divider);
  text-align: left;
  white-space: nowrap;
}
tbody tr { transition: background var(--t-fast); }
tbody tr:hover { background: rgba(51, 201, 177, 0.05); }
tbody tr:last-child td { border-bottom: 0; }
td.key { font-family: var(--mono); font-size: 12px; color: var(--text-soft); }

/* 用户链接表：统一上下结构，避免有的并排、有的换行 */
.uk-cell-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  white-space: normal;
}
.uk-name-text {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uk-uses-num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.uk-btn-pair {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
}
.uk-ops-grid {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 6px 8px;
  justify-content: start;
  white-space: normal;
}
.uk-ops-grid .ghost {
  justify-self: start;
}
.uk-charge-badge {
  font-size: 11px;
  font-weight: 650;
  color: var(--teal-2);
  padding: 2px 6px;
  border: 1px solid rgba(51, 201, 177, 0.35);
  border-radius: var(--r-sm);
}
.uk-charge-muted {
  font-size: 11px;
  color: var(--muted);
  opacity: 0.75;
}

/* modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none !important; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 10, 0.72);
  backdrop-filter: blur(2px);
}
.modal-card {
  position: relative;
  width: min(520px, 100%);
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #12262e, #0c1a20);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

/* ---- pills / badges ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 650;
  border: 1px solid transparent;
  line-height: 1.4;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.yes { background: rgba(55, 214, 166, 0.12); color: var(--ok); border-color: rgba(55, 214, 166, 0.22); }
.pill.no { background: rgba(255, 111, 111, 0.12); color: var(--bad); border-color: rgba(255, 111, 111, 0.22); }
tr.row-skip td { opacity: 0.55; }

.card-batch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
}
.card-batch-bar .auto { margin: 0; gap: 8px; }
.table-wrap input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--teal);
  cursor: pointer;
}

/* ---- inputs / textarea / select ---- */
textarea,
input.control,
.settings-grid input,
.settings-grid select,
.process-row select,
.field.block textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(4, 14, 18, 0.85);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
textarea {
  resize: vertical;
  min-height: 132px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
}
input.control::placeholder,
textarea::placeholder { color: rgba(147, 172, 167, 0.6); }
textarea:focus,
input.control:focus,
.settings-grid input:focus,
.settings-grid select:focus,
.process-row select:focus,
.field.block textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(51, 201, 177, 0.16);
  background: rgba(4, 16, 20, 0.95);
}
.settings-grid input,
.settings-grid select { font-variant-numeric: tabular-nums; }
input.mono { font-family: var(--mono); font-size: 13px; }
select { cursor: pointer; }

/* ---- field layout ---- */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}
.settings-grid .field,
.process-row .field,
.field.block {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  color: var(--muted);
  font-size: 12.5px;
}
.settings-grid .field > span,
.process-row .field > span,
.field.block > span {
  font-weight: 550;
  letter-spacing: 0.01em;
  color: var(--text-soft);
}

.hint-line {
  margin: var(--s-3) 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  display: flex;
  gap: 8px;
}
.hint-line::before {
  content: "";
  flex: none;
  width: 3px;
  border-radius: 2px;
  background: var(--line-strong);
}

.process-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: var(--s-3);
  align-items: end;
  margin-bottom: var(--s-4);
}

/* ---- result / code box ---- */
.result-box {
  margin: var(--s-4) 0 0;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(3, 11, 14, 0.92);
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 340px;
  overflow: auto;
}

/* ---- prominent result banner (user page) ---- */
.result-banner {
  margin-top: var(--s-4);
  padding: 15px 18px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .3px;
  line-height: 1.4;
  border: 1px solid transparent;
  animation: resultPop .28s ease;
}
.result-banner .result-icon {
  width: 26px; height: 26px; flex: 0 0 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 16px; font-weight: 900;
}
.result-banner .result-text { flex: 1; }
.result-banner.ok {
  color: #7dffd6;
  background: rgba(55, 214, 166, 0.16);
  border-color: rgba(55, 214, 166, 0.5);
  box-shadow: 0 0 0 1px rgba(55, 214, 166, .18), 0 10px 30px -12px rgba(55, 214, 166, .7);
}
.result-banner.ok .result-icon { background: rgba(55, 214, 166, .28); color: #7dffd6; }
.result-banner.bad {
  color: #ffb0b0;
  background: rgba(255, 111, 111, 0.15);
  border-color: rgba(255, 111, 111, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 111, 111, .16), 0 10px 30px -12px rgba(255, 111, 111, .6);
}
.result-banner.bad .result-icon { background: rgba(255, 111, 111, .28); color: #ffb0b0; }
@keyframes resultPop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.status.ok { color: var(--ok); font-weight: 600; }

/* ---- log feed ---- */
.log-feed {
  max-height: 440px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-2);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(4, 14, 18, 0.5), rgba(4, 14, 18, 0.18));
  border: 1px solid var(--divider);
}
.log-empty {
  color: var(--muted);
  font-size: 13px;
  padding: var(--s-6) var(--s-3);
  text-align: center;
}
.log-item {
  display: grid;
  grid-template-columns: 168px 60px 1fr;
  gap: var(--s-3);
  align-items: start;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--divider);
  border-left: 3px solid transparent;
  background: rgba(8, 22, 28, 0.7);
  font-size: 12px;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.log-feed .log-item[data-log-idx] { cursor: pointer; }
.log-feed .log-item[data-log-idx]:hover { background: rgba(51, 201, 177, 0.07); transform: translateX(2px); }
.log-item .time {
  font-family: var(--mono);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.35;
}
.log-item .time .t-pair {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 6px;
  align-items: baseline;
}
.log-item .time .t-label {
  color: var(--muted);
  opacity: 0.75;
  font-size: 10px;
  letter-spacing: 0.02em;
}
.log-item .time .t-note {
  font-size: 10px;
  color: var(--muted);
  opacity: 0.65;
  margin-top: 2px;
}
.log-item .src {
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
}
.log-item .src.user { color: var(--teal-2); }
.log-item .src.external { color: #7eb6ff; }
.log-item .body { color: var(--text); line-height: 1.5; word-break: break-word; }
.log-item .body .log-user-name {
  color: var(--teal-2);
  font-weight: 650;
  font-size: 13px;
  margin-bottom: 2px;
  letter-spacing: 0.01em;
}
.log-item .body .meta {
  color: var(--muted);
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
}
.log-item.ok { border-left-color: var(--ok); }
.log-item.bad { border-left-color: var(--bad); }

.src-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gold);
  background: rgba(232, 185, 74, 0.12);
}
.src-tag.user {
  color: var(--teal-2);
  background: rgba(51, 201, 177, 0.12);
}
.src-tag.external {
  color: #7eb6ff;
  background: rgba(126, 182, 255, 0.12);
}

#execRecordsPanel .table-wrap {
  max-height: 420px;
  overflow: auto;
}

/* log detail (index) */
.log-detail {
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px dashed var(--line);
}
.log-token-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(4, 14, 18, 0.85);
}
.log-token-label {
  color: var(--muted);
  font-size: 12px;
  padding-top: 2px;
}
.log-token-value {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--teal-2);
  word-break: break-all;
  white-space: pre-wrap;
  line-height: 1.45;
}

/* per-user-key inline logs */
.uk-log-row td {
  padding: 4px 12px 12px;
  background: rgba(4, 14, 18, 0.4);
  border-bottom: 1px solid var(--divider);
}
.uk-log-box { max-height: 260px; white-space: normal; }

.vendor-status-box {
  margin: 0 0 12px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(4, 14, 18, 0.85);
}
.vendor-status-box > .label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}
.vendor-status-text {
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.55;
  word-break: break-word;
  white-space: normal;
}

/* ---- reduced motion ---- */
@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;
  }
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .process-row { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .shell { width: calc(100% - 24px); padding: var(--s-6) 0 var(--s-8); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .top { flex-direction: column; align-items: flex-start; }
  .admin-tabs { gap: 4px; }
  .admin-tab { padding: 7px 11px; font-size: 12px; }
  .settings-grid { grid-template-columns: 1fr; }
  .log-item { grid-template-columns: 1fr; gap: var(--s-1); }
  .log-item .src { justify-self: start; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .actions { width: 100%; }
}
