/* ==========================================================================
   Steam 挂卡平台 · 前端样式（v1.0.89）
   设计方向：深空云托管台 —— 极光渐变、玻璃卡片、等宽数字，状态优先于装饰。
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #05070d;
  --bg-2: #080b14;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --panel: #0c111d;
  --panel-2: #101728;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.055);

  --text: #eef2ff;
  --text-2: #a7b3cc;
  --text-3: #6f7c96;

  --brand: #6ea8ff;
  --brand-2: #8b5cff;
  --cyan: #35e0d0;
  --acc-soft: rgba(110, 168, 255, 0.12);
  --acc-line: rgba(110, 168, 255, 0.35);
  --grad: linear-gradient(118deg, #6ea8ff 0%, #8b5cff 52%, #35e0d0 100%);

  --live: #3ddc97;
  --live-soft: rgba(61, 220, 151, 0.12);
  --warn: #ffb45c;
  --warn-soft: rgba(255, 180, 92, 0.12);
  --err: #ff6b81;
  --err-soft: rgba(255, 107, 129, 0.12);
  --gold: #ffd479;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;

  --mono: ui-monospace, SFMono-Regular, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --sans: "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --shadow-sm: 0 8px 24px -18px rgba(0, 0, 0, 0.8);
  --shadow: 0 28px 60px -32px rgba(0, 0, 0, 0.9);
  --shadow-glow: 0 18px 44px -22px rgba(110, 168, 255, 0.55);

  --appbar-h: 66px;
}

[data-theme="light"] {
  color-scheme: light;

  --bg: #f2f5fb;
  --bg-2: #e9eefa;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-2: rgba(255, 255, 255, 0.92);
  --panel: #ffffff;
  --panel-2: #f6f8fe;
  --line: #dfe6f3;
  --line-soft: #ebeFF9;

  --text: #0f172a;
  --text-2: #4c5b76;
  --text-3: #7b89a3;

  --brand: #2a5bd7;
  --brand-2: #7143e0;
  --cyan: #0a9d94;
  --acc-soft: rgba(42, 91, 215, 0.09);
  --acc-line: rgba(42, 91, 215, 0.28);

  --live: #0f8a52;
  --live-soft: rgba(15, 138, 82, 0.1);
  --warn: #a7640a;
  --warn-soft: rgba(167, 100, 10, 0.1);
  --err: #c02b45;
  --err-soft: rgba(192, 43, 69, 0.09);
  --gold: #9a6a00;

  --shadow-sm: 0 10px 24px -20px rgba(16, 32, 64, 0.4);
  --shadow: 0 26px 60px -34px rgba(16, 32, 64, 0.42);
  --shadow-glow: 0 18px 44px -26px rgba(42, 91, 215, 0.4);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; min-height: 100%; }
html { background: var(--bg); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 660; letter-spacing: -0.015em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.92em; color: var(--text-2); }
button { font: inherit; color: inherit; }
a { color: var(--brand); }

::selection { background: rgba(110, 168, 255, 0.28); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(140, 160, 200, 0.22); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(140, 160, 200, 0.4); background-clip: content-box; }

/* ---------- 基础元件 ---------- */

.ico {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.ico-lg { width: 30px; height: 30px; stroke-width: 1.6; opacity: 0.65; }

.eyebrow {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow-glow {
  color: var(--brand);
  text-shadow: 0 0 24px rgba(110, 168, 255, 0.45);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-3);
  flex: none;
  display: inline-block;
}
.dot-live { background: var(--live); box-shadow: 0 0 0 3px var(--live-soft), 0 0 14px rgba(61, 220, 151, 0.5); }
.dot-err { background: var(--err); box-shadow: 0 0 0 3px var(--err-soft); }
.dot-idle { background: var(--text-3); }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease, opacity .16s;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); border-color: var(--line); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--grad);
  border: 1px solid transparent;
  color: #fff;
  box-shadow: var(--shadow-glow);
  font-weight: 620;
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 20px 48px -22px rgba(110, 168, 255, 0.75); }

.btn-danger {
  color: var(--err);
  border-color: rgba(255, 107, 129, 0.32);
  background: var(--err-soft);
}
.btn-danger:hover { background: rgba(255, 107, 129, 0.18); }

.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--surface); }

.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; gap: 5px; }
.btn-sm .ico { width: 13px; height: 13px; }
.btn-block { width: 100%; height: 44px; font-size: 14px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: color .16s, background .16s, border-color .16s;
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); border-color: var(--acc-line); }
.icon-btn-ghost { background: transparent; }

.link-btn {
  border: 0; background: none; padding: 0;
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

.link { color: var(--brand); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- 表单 ---------- */

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span,
.field > label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.01em;
}

input[type="text"], input[type="password"], input[type="email"], input[type="number"],
input[type="search"], input[type="datetime-local"], select, textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color .16s, background .16s, box-shadow .16s;
  color-scheme: inherit;
}
textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.6; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input::placeholder, textarea::placeholder { color: var(--text-3); opacity: 0.8; }
input:focus, select:focus, textarea:focus {
  border-color: var(--acc-line);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--acc-soft);
}
input[type="checkbox"] { accent-color: var(--brand); width: 15px; height: 15px; }

.chk { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--text-2); cursor: pointer; line-height: 1.5; }
.chk span { display: flex; flex-direction: column; }
.chk small { color: var(--text-3); font-size: 11.5px; }

.stack { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; }
.field-note { font-size: 11.5px; color: var(--text-3); line-height: 1.6; }
.field-note.is-warn { color: var(--warn); }

.hint-box {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--acc-line);
  background: var(--acc-soft);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.65;
}
.hint-box code { color: var(--brand); }
.hint-box.is-warn { border-color: rgba(255, 180, 92, 0.35); background: var(--warn-soft); color: var(--warn); }

/* ---------- 品牌标识 ---------- */

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(110, 168, 255, 0.2), rgba(139, 92, 255, 0.16));
  border: 1px solid var(--acc-line);
  color: var(--brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 24px -18px rgba(110, 168, 255, 0.8);
  flex: none;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-mark-sm { width: 32px; height: 32px; border-radius: 9px; }
.brand-mark-sm svg { width: 19px; height: 19px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.brand-text i { font-style: normal; font-size: 11px; color: var(--text-3); letter-spacing: 0.18em; }

/* ==========================================================================
   落地页 / 登录
   ========================================================================== */

.landing {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 34px;
  overflow: hidden;
  background:
    radial-gradient(1100px 640px at 82% -10%, rgba(139, 92, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at 6% 100%, rgba(53, 224, 208, 0.12), transparent 62%),
    linear-gradient(180deg, #070a14 0%, #05070d 52%, #04060b 100%);
}
[data-theme="light"] .landing {
  background:
    radial-gradient(1100px 640px at 82% -10%, rgba(139, 92, 255, 0.14), transparent 60%),
    radial-gradient(900px 600px at 6% 100%, rgba(53, 224, 208, 0.12), transparent 62%),
    linear-gradient(180deg, #f7f9ff 0%, #eef2fb 100%);
}

.aurora { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(76px);
  opacity: 0.55;
  animation: float 16s ease-in-out infinite;
}
.orb-a { width: 420px; height: 420px; left: -120px; top: 6%; background: rgba(110, 168, 255, 0.45); }
.orb-b { width: 520px; height: 520px; right: -160px; top: -8%; background: rgba(139, 92, 255, 0.42); animation-delay: -5s; }
.orb-c { width: 380px; height: 380px; left: 42%; bottom: -22%; background: rgba(53, 224, 208, 0.28); animation-delay: -10s; }
[data-theme="light"] .orb { opacity: 0.35; }

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -26px, 0) scale(1.06); }
}

.grid-veil {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(120% 80% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 30%, #000 20%, transparent 78%);
}
[data-theme="light"] .grid-veil {
  background-image:
    linear-gradient(rgba(16, 32, 64, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 32, 64, 0.055) 1px, transparent 1px);
}

.landing-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
.landing-bar .brand { display: flex; align-items: center; gap: 11px; }
.landing-bar-side { display: flex; align-items: center; gap: 10px; }
.landing-badge {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 11.5px;
  color: var(--text-2);
  backdrop-filter: blur(10px);
}
.landing-version { font-size: 11.5px; color: var(--text-3); }

.landing-hero {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.78fr);
  gap: 52px;
  align-items: center;
  padding: 26px 4px 44px;
}

.hero-copy h1 {
  margin: 16px 0 18px;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 720;
}
.hero-lead {
  max-width: 540px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.8;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 24px;
  max-width: 620px;
}
.hero-stat {
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(14px);
}
.hero-stat strong {
  display: block;
  font-family: var(--mono);
  font-size: 21px;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stat span { font-size: 11px; color: var(--text-3); }

.hero-points {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  max-width: 640px;
}
.hero-points li { display: flex; gap: 11px; align-items: flex-start; }
.point-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand);
  flex: none;
}
.hero-points b { display: block; font-size: 13px; font-weight: 620; }
.hero-points i { font-style: normal; font-size: 11.5px; color: var(--text-3); line-height: 1.5; }

.hero-side { display: flex; flex-direction: column; gap: 14px; }

.login-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028));
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
[data-theme="light"] .login-card {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}
.login-head { margin-bottom: 4px; }
.login-head h2 { margin: 8px 0 4px; font-size: 22px; }
.login-head p { font-size: 12.5px; color: var(--text-3); }
.login-msg { min-height: 0; margin: 0; font-size: 12.5px; color: var(--err); }
.login-msg:empty { display: none; }
.login-alt { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--text-3); }
.login-divider { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 12px; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.steam-login-btn { border-color: rgba(110, 168, 255, 0.45); background: rgba(110, 168, 255, 0.1); color: var(--text); }
.steam-login-btn:hover { background: rgba(110, 168, 255, 0.18); }
.login-hint { font-size: 11px; color: var(--text-3); line-height: 1.6; border-top: 1px dashed var(--line); padding-top: 12px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hero-trust span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--surface);
}
.hero-trust .ico { width: 12px; height: 12px; color: var(--brand); }

.landing-foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 4px 24px;
  font-size: 11px;
  color: var(--text-3);
  border-top: 1px solid var(--line-soft);
}
.landing-foot-note { opacity: 0.75; }

/* ==========================================================================
   应用框架
   ========================================================================== */

.app { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }

.appbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--appbar-h);
  padding: 10px 24px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
}
@supports not (background: color-mix(in srgb, #000 50%, transparent)) {
  .appbar { background: rgba(5, 7, 13, 0.82); }
}

.appbar-brand { display: flex; align-items: center; gap: 10px; flex: none; }

.appnav {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  /* v1.0.28：所有导航 TAB 一律靠左排列 */
  justify-content: flex-start;
}
.appnav::-webkit-scrollbar { display: none; }

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
  transition: color .16s, background .16s, border-color .16s;
}
.nav-item .ico { width: 16px; height: 16px; opacity: 0.8; }
.nav-item:hover { color: var(--text); background: var(--surface); }
.nav-item.is-active {
  color: var(--text);
  background: var(--acc-soft);
  border-color: var(--acc-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.nav-item.is-active .ico { color: var(--brand); opacity: 1; }

.nav-badge {
  font-style: normal;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.appbar-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.engine-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 11.5px;
  color: var(--text-3);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 12px 0 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  max-width: 190px;
}
.user-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.user-name { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main {
  flex: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px 26px 46px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.page-head h1 { font-size: 27px; margin: 5px 0 3px; letter-spacing: -0.025em; }
.page-head p { font-size: 12.5px; color: var(--text-3); }
.page-head-meta { display: flex; gap: 8px; flex: none; }
.head-chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--acc-line);
  background: var(--acc-soft);
  color: var(--brand);
  font-size: 11.5px;
  font-family: var(--mono);
}
.head-chip .ico { width: 13px; height: 13px; }
.head-chip-soft { border-color: var(--line); background: var(--surface); color: var(--text-3); }

.view { display: none; }
.view.is-active { display: block; animation: viewIn .28s ease both; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.section-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.section-note h2 { font-size: 17px; }
.section-note p { margin-top: 3px; font-size: 12.5px; color: var(--text-3); max-width: 640px; }
.section-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.appfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 26px 26px;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  font-size: 11px;
  color: var(--text-3);
  border-top: 1px solid var(--line-soft);
}

/* ---------- 面板 / 卡片 ---------- */

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .panel { background: #fff; }
.panel-live { margin-bottom: 14px; }
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.panel-head h2, .panel-head h3 { font-size: 15.5px; }
.panel-sub { margin-top: 3px; font-size: 12px; color: var(--text-3); }

.live-tag {
  display: inline-flex; align-items: center; gap: 7px;
  height: 26px; padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--text-3);
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }

/* ---------- 统计卡 ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.stat {
  position: relative;
  padding: 17px 18px 15px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(110, 168, 255, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .stat { background: #fff; }

.stat-icon {
  position: absolute;
  right: 14px; top: 14px;
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0.9;
}
.stat-label { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.stat-body { display: flex; align-items: baseline; gap: 5px; margin: 6px 0 2px; }
.stat-body strong {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-unit { font-size: 11.5px; color: var(--text-3); }
.stat-foot { font-size: 11.5px; color: var(--text-3); }

/* ---------- 监视器 ---------- */

.monitors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.monitor {
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.monitor-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.monitor-title strong { font-size: 14px; font-weight: 650; }
.monitor-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.monitor-meta span {
  font-size: 10.5px;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-family: var(--mono);
}
.monitor-clock {
  font-family: var(--mono);
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}
.monitor-clock small { font-size: 9.5px; letter-spacing: 0.14em; color: var(--text-3); text-transform: uppercase; }

.bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 13px;
}
[data-theme="light"] .bar { background: rgba(16, 32, 64, 0.08); }
.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 0 16px rgba(110, 168, 255, 0.5);
  transition: width .9s linear;
}
.bar.is-steam i { background: linear-gradient(90deg, #35e0d0, #6ea8ff); box-shadow: 0 0 16px rgba(53, 224, 208, 0.45); }
.bar-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 11.5px; color: var(--text-3); }

.monitor-alert {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 180, 92, 0.3);
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 11.5px;
  line-height: 1.5;
}
.monitor-alert .ico { width: 14px; height: 14px; margin-top: 2px; }

/* ---------- 空状态 ---------- */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 36px 18px;
  text-align: center;
  color: var(--text-3);
}
.empty p { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.empty span { font-size: 11.5px; max-width: 360px; line-height: 1.6; }

/* ---------- 节点健康 / 事件 ---------- */

.node-health { display: flex; flex-direction: column; }
.health-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 12.5px;
}
.health-row:last-child { border-bottom: 0; }
.health-row .name { font-weight: 600; }
.health-row .meta { margin-left: auto; font-size: 11px; color: var(--text-3); }

.event-list { display: flex; flex-direction: column; max-height: 320px; overflow-y: auto; }
.event-row {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 12px;
  align-items: baseline;
}
.event-row:last-child { border-bottom: 0; }
.event-row time { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.event-row .msg { color: var(--text-2); line-height: 1.5; word-break: break-word; }
.lvl-warn .msg { color: var(--warn); }
.lvl-error .msg { color: var(--err); }

/* ---------- 节点卡片 ---------- */

.node-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.node-card {
  padding: 17px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .node-card { background: #fff; }
.node-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.node-name { display: flex; align-items: center; gap: 9px; min-width: 0; }

/* v1.0.88：节点国旗 */
.node-flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--line-soft);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  flex: 0 0 24px;
}
.flag-editor { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.flag-preview-box {
  width: 132px;
  height: 88px;
  border-radius: 8px;
  border: 1px dashed var(--line-soft);
  background: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 132px;
}
.flag-preview { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.flag-empty { color: var(--text-3); font-size: 12px; }
.flag-fields { flex: 1; min-width: 240px; }
.flag-code-row { display: flex; gap: 8px; align-items: center; }
.flag-code-row input { flex: 1; text-transform: uppercase; }

.node-name h3 { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node-url {
  display: flex; align-items: center; gap: 6px;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.node-msg { margin-top: 10px; font-size: 11.5px; color: var(--text-3); line-height: 1.55; word-break: break-word; }
.node-msg.is-err { color: var(--err); }
.node-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }

.bot-panel {
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.bot-row { padding: 9px 0; border-bottom: 1px dashed var(--line-soft); }
.bot-row:last-child { border-bottom: 0; }
.bot-name { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; flex-wrap: wrap; }
.bot-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.bot-sub { margin-top: 6px; font-size: 11px; color: var(--text-3); line-height: 1.5; }

.tier {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.tier-user { color: var(--text-3); }
.tier-vip { color: var(--brand); border-color: var(--acc-line); background: var(--acc-soft); }
.tier-svip { color: #c4a6ff; border-color: rgba(139, 92, 255, 0.4); background: rgba(139, 92, 255, 0.12); }
[data-theme="light"] .tier-svip { color: #6b3fd4; }
.tier-admin { color: var(--gold); border-color: rgba(255, 212, 121, 0.4); background: rgba(255, 212, 121, 0.1); }
.tier-expired { color: #ff9b9b; border-color: rgba(255, 120, 120, .4); background: rgba(255, 96, 96, .12); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 11px;
  color: var(--text-2);
  white-space: nowrap;
}
.status-pill .dot { width: 6px; height: 6px; }
.st-running, .st-starting { color: var(--live); border-color: rgba(61, 220, 151, 0.32); background: var(--live-soft); }
.st-error { color: var(--err); border-color: rgba(255, 107, 129, 0.34); background: var(--err-soft); }
.st-done { color: var(--brand); border-color: var(--acc-line); background: var(--acc-soft); }
.st-scheduled, .st-waiting { color: var(--warn); border-color: rgba(255, 180, 92, 0.32); background: var(--warn-soft); }

/* ---------- 工具条 / 分段控件 ---------- */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.toolbar-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  gap: 2px;
}
.seg-item {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
  transition: color .16s, background .16s;
}
.seg-item:hover { color: var(--text-2); }
.seg-item.is-active { color: var(--text); background: var(--panel-2); box-shadow: var(--shadow-sm); border: 1px solid var(--line-soft); }

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 250px;
}
.search .ico { width: 14px; height: 14px; color: var(--text-3); }
.search input {
  height: 100%; border: 0; background: transparent; padding: 0;
  font-size: 12.5px;
}
.search input:focus { box-shadow: none; background: transparent; }

/* ---------- 表格 ---------- */

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
}
[data-theme="light"] .table-wrap { background: #fff; }
.data-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.data-table th {
  text-align: left;
  padding: 11px 14px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: rgba(110, 168, 255, 0.04); }
.ta-r { text-align: right; }

.cell-task strong { display: block; font-size: 13px; font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-task span { display: block; margin-top: 2px; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-bot { font-size: 12.5px; }
.cell-bot em { display: block; font-style: normal; font-size: 10.5px; color: var(--text-3); margin-top: 2px; }

.progress-cell .row { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; }
.progress-cell .row b { font-family: var(--mono); font-weight: 600; }
.progress-cell .row span { color: var(--text-3); }
.progress-cell .bar { height: 6px; margin-top: 6px; }

.row-actions { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }

/* ---------- 日志控制台 ---------- */

.log-console {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #070b14;
}
.log-console-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}
.log-console-head h3 { font-family: var(--mono); font-size: 12px; color: #9fb0d0; letter-spacing: 0.06em; }
.switch-inline { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: #7f8da8; cursor: pointer; }

.log-list {
  max-height: 560px;
  overflow-y: auto;
  padding: 10px 14px 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
}
.log-line { display: grid; grid-template-columns: 64px 60px 1fr; gap: 10px; padding: 2px 0; }
.log-line time { color: #5c6a85; }
.log-line .lvl { color: #6ea8ff; font-size: 10.5px; letter-spacing: 0.06em; padding-top: 1px; }
.log-line .msg { color: #c6d2e8; word-break: break-word; }
.log-line.lvl-warn .lvl, .log-line.lvl-warn .msg { color: #ffb45c; }
.log-line.lvl-error .lvl, .log-line.lvl-error .msg { color: #ff7b90; }
.log-list .empty { color: #5c6a85; }
.log-list .empty p { color: #9fb0d0; }

/* ---------- 设置 ---------- */

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.kv { display: flex; flex-direction: column; }
.kv-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 12.5px;
}
.kv-row:last-child { border-bottom: 0; }
.kv-row span { color: var(--text-3); flex: none; }
.kv-row b { font-weight: 600; text-align: right; word-break: break-word; }

.sub-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 20px 0 9px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text);
}
.sub-head small { font-size: 11px; font-weight: 400; color: var(--text-3); }

.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line-soft);
}
.pref-row:last-child { border-bottom: 0; }
.pref-row strong { display: block; font-size: 12.5px; font-weight: 620; }
.pref-row span { font-size: 11.5px; color: var(--text-3); }

.steam-box { margin-top: 2px; }
.steam-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  flex-wrap: wrap;
}
.steam-avatar {
  width: 34px; height: 34px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--surface-2);
  flex: none;
}
.steam-avatar-empty { border: 1px dashed var(--line); }
.steam-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.steam-name { font-size: 13px; }
.steam-meta small { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }

.user-list { display: flex; flex-direction: column; margin-top: 6px; }
.user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 12px;
  flex-wrap: wrap;
}
.user-row .uid {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
  min-width: 36px;
}
.user-row .name { font-weight: 600; display: flex; flex-direction: column; }
.user-row .name small { font-size: 10.5px; font-weight: 400; color: var(--text-3); }
.user-row .user-row-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
}
.user-row .user-row-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-row .user-steam { display: block; margin-top: 1px; }
.user-row .user-steam .steamid-copy { font-family: var(--mono); font-size: 10px; }
.user-row .user-remark { display: block; margin-top: 1px; color: var(--brand); font-weight: 500; }
.user-pager { margin: 6px 0 14px; }
.user-row .quota, .user-row .expiry { font-size: 11px; color: var(--text-3); }
.user-row .grow { flex: 1; }
.muted { color: var(--text-3); font-size: 11px; }
.del {
  border: 0; background: none;
  color: var(--err);
  font-size: 11.5px;
  cursor: pointer;
  padding: 0;
}
.del:hover { text-decoration: underline; }

.card-list { display: flex; flex-direction: column; margin-top: 12px; max-height: 280px; overflow-y: auto; }
.card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 12px;
  flex-wrap: wrap;
}
.card-row.is-used { opacity: 0.55; }
.card-code {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 7px;
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: var(--text);
}
.card-code:hover { border-color: var(--acc-line); color: var(--brand); }
.card-dur { color: var(--brand); font-size: 11.5px; }
.card-state { margin-left: auto; font-size: 11px; color: var(--text-3); }

/* ---------- 机器人 ---------- */

.robot-statbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.stat-pill {
  display: flex; align-items: baseline; gap: 7px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.stat-pill strong { font-family: var(--mono); font-size: 18px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-pill span { font-size: 11px; color: var(--text-3); }

.robot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.robot-card {
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .robot-card { background: #fff; }
.robot-card.is-err { border-color: rgba(255, 107, 129, 0.3); }
.robot-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.robot-head b { font-size: 14px; }
.robot-state { font-size: 10.5px; color: var(--text-3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.robot-state.is-warn { color: var(--warn); border-color: rgba(255, 180, 92, 0.45); }
.robot-meta { margin-top: 8px; font-size: 11.5px; color: var(--text-3); line-height: 1.6; word-break: break-word; }
.robot-meta .is-warn { color: var(--warn); }
.robot-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.online-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px;
  color: var(--text-2); background: rgba(255,255,255,.035);
}
.online-badge .dot { width: 7px; height: 7px; }
.online-badge.is-online { color: var(--live); border-color: rgba(61,220,151,.34); background: rgba(61,220,151,.08); }
.online-badge.is-farming { color: var(--live); border-color: rgba(61,220,151,.34); background: rgba(61,220,151,.08); }
.online-badge.is-offline { color: var(--err); border-color: rgba(255,107,129,.34); background: rgba(255,107,129,.08); }
.online-badge.is-paused, .online-badge.is-disabled { color: var(--warn); border-color: rgba(255,180,92,.34); background: rgba(255,180,92,.08); }

.robot-searchbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 2px; }
.robot-search { flex: 1 1 320px; min-width: 260px; max-width: 640px; }
.robot-search input { width: 100%; min-width: 0; }
.robot-search-clear { flex: 0 0 auto; height: 32px; }
.robot-search-count { margin-left: auto; color: var(--text-3); font-size: 11.5px; white-space: nowrap; }
@media (max-width: 640px) {
  .robot-searchbar { align-items: stretch; }
  .robot-search { flex-basis: 100%; max-width: none; }
  .robot-search-count { margin-left: 0; }
}
.robot-status-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.robot-filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: var(--text-3);
  font-size: 11px; cursor: pointer; transition: .16s ease;
}
.robot-filter-chip em { font-style: normal; font-weight: 700; color: var(--text-2); }
.robot-filter-chip:hover { border-color: var(--line-2); color: var(--text); }
.robot-filter-chip.is-active { color: var(--live); border-color: rgba(61,220,151,.5); background: rgba(61,220,151,.1); }
.robot-filter-chip.is-active em { color: var(--live); }
[data-theme="light"] .robot-filter-chip { background: #fff; }

/* ---------- 会员 ---------- */

.pay-methods { display: flex; flex-wrap: wrap; gap: 9px; }
.pay-method {
  flex: 1 1 150px;
  text-align: left;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .16s, background .16s;
}
.pay-method b { display: block; font-size: 13px; }
.pay-method small { font-size: 10.5px; color: var(--text-3); }
.pay-method.is-on { border-color: var(--acc-line); background: var(--acc-soft); }
.pay-method.is-off { opacity: 0.5; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.plan-card {
  position: relative;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(110, 168, 255, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014));
  display: flex;
  flex-direction: column;
  gap: 8px;
}
[data-theme="light"] .plan-card { background: #fff; }
.plan-card.is-svip {
  border-color: rgba(139, 92, 255, 0.42);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(139, 92, 255, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.014));
}
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-days { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.plan-card h3 { font-size: 16px; margin-top: 2px; }
.plan-price { font-family: var(--mono); font-size: 30px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.plan-price em { font-style: normal; font-size: 13px; font-weight: 500; color: var(--text-3); margin-right: 2px; }
.plan-card p { font-size: 11.5px; color: var(--text-3); line-height: 1.6; flex: 1; }
.plan-card .btn { margin-top: 6px; width: 100%; }

.order-status {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10.5px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
}
.order-status.is-pending { color: var(--warn); border-color: rgba(255, 180, 92, 0.3); background: var(--warn-soft); }
.order-status.is-paid { color: var(--live); border-color: rgba(61, 220, 151, 0.3); background: var(--live-soft); }
.order-status.is-rejected { color: var(--text-3); }

.pay-order { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 6px 0 10px; }
.pay-amount { font-family: var(--mono); font-size: 34px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pay-qr { max-width: 230px; width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; margin: 6px auto 0; }

/* ---------- 游戏库 ---------- */

.games-head { font-size: 11.5px; color: var(--text-3); margin-bottom: 12px; font-family: var(--mono); }
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
  gap: 10px;
}
.game-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 7px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color .16s, transform .16s, background .16s;
}
.game-tile:hover { border-color: var(--acc-line); transform: translateY(-2px); background: var(--surface-2); }
.game-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel-2);
}
.game-ico img { width: 100%; height: 100%; object-fit: cover; }
.game-ico-empty { font-size: 20px; font-weight: 700; color: var(--brand); }
.game-tname {
  font-size: 11.5px;
  font-weight: 560;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-thours { font-size: 10.5px; color: var(--text-3); font-family: var(--mono); }
.game-detail-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.game-ico-lg { width: 76px; height: 76px; flex: none; border-radius: 12px; }

/* v1.0.70：挂机预览游戏详情弹窗（完整商店信息） */
.game-detail { display: flex; flex-direction: column; gap: 14px; }
.game-detail-cover {
  position: relative; min-height: 170px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: linear-gradient(135deg, rgba(110,168,255,.24), rgba(53,224,208,.1)); background-size: cover; background-position: center;
}
.game-detail-cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,14,24,.08), rgba(8,14,24,.86)); }
.game-detail-head { position: relative; z-index: 1; margin-top: -58px; padding: 0 6px; align-items: flex-end; }
.game-ico-wide {
  width: 184px; height: 69px; flex: none; border-radius: 10px; overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center; background: rgba(8,14,24,.66);
  border: 1px solid rgba(255,255,255,.18); box-shadow: 0 8px 22px rgba(0,0,0,.35);
}
.game-ico-wide img { width: 100%; height: 100%; object-fit: cover; }
.game-ico-wide .game-ico-empty { font-size: 24px; }
.game-detail-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.game-detail-title h3 { margin: 0; font-size: 20px; line-height: 1.25; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.game-detail-sub { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 11.5px; color: var(--text-3); }
.game-appid { font-family: var(--mono); color: #9fc7ff; }
.game-appid b { color: #fff; }
.game-detail-short { margin: 0; font-size: 12px; line-height: 1.55; color: var(--text-2); }
.game-detail-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.game-detail-tags em { font-style: normal; font-size: 10px; padding: 2px 7px; border-radius: 99px; color: #bcd6ff; background: rgba(110,168,255,.12); border: 1px solid rgba(110,168,255,.26); }
.game-detail-meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
.game-detail-meta > div {
  min-width: 0; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.035);
  display: flex; flex-direction: column; gap: 3px;
}
.game-detail-meta span { font-size: 10.5px; color: var(--text-3); }
.game-detail-meta b { font-size: 11.5px; color: var(--text); line-height: 1.45; overflow-wrap: anywhere; }
.game-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.game-detail-actions .btn { text-decoration: none; }
.game-detail-section { border-top: 1px dashed var(--line); padding-top: 12px; }
.game-detail-section h4 { margin: 0 0 8px; font-size: 12.5px; color: var(--text); }
.game-detail-desc { margin: 0; font-size: 12px; line-height: 1.65; color: var(--text-2); }
.game-detail-full {
  max-height: 300px; overflow: auto; padding-right: 6px; font-size: 12px; line-height: 1.7;
  color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere;
}
.game-detail-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.game-detail-shots a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: rgba(0,0,0,.2); aspect-ratio: 16 / 9; }
.game-detail-shots img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.game-detail-shots a:hover img { transform: scale(1.04); }
@media (max-width: 760px) {
  .game-detail-head { margin-top: -36px; align-items: flex-start; flex-direction: column; gap: 8px; }
  .game-ico-wide { width: 138px; height: 52px; }
  .game-detail-title h3 { font-size: 17px; }
  .game-detail-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-detail-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 2px;
}
.pick-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  text-align: center;
}
.pick-tile.is-on { border-color: var(--brand); background: var(--acc-soft); box-shadow: 0 0 0 2px var(--acc-soft); }
.pick-tile .game-ico { aspect-ratio: 1 / 1; }
.pick-name { font-size: 10px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.applist { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.approw { display: flex; gap: 9px; font-size: 11.5px; color: var(--text-3); }
.approw .id { font-family: var(--mono); color: var(--brand); }
.approw .nm { color: var(--text-2); }

/* ---------- 挂机模式 ---------- */

.mode-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mode-btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.4;
  transition: border-color .16s, background .16s;
}
.mode-btn small { display: block; font-size: 10.5px; font-weight: 400; color: var(--text-3); }
.mode-btn.is-on { border-color: var(--acc-line); background: var(--acc-soft); }

/* ---------- CDK ---------- */

.cdk-preview { margin-top: 10px; }
.cdk-list { display: flex; flex-direction: column; gap: 5px; max-height: 220px; overflow-y: auto; }
.cdk-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
}
.cdk-row code { font-size: 12px; }
.cdk-status { margin-left: auto; font-size: 11px; color: var(--text-3); }

/* ---------- 弹窗 ---------- */

.modal-root { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 4, 10, 0.66);
  backdrop-filter: blur(8px);
}
.modal {
  position: relative;
  width: min(680px, 94vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  animation: modalIn .22s ease both;
  overflow: hidden;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.modal.modal-wide { width: min(1120px, 96vw); }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: 16px; }
.modal-body { padding: 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 13px; }
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- Toast ---------- */

.toast-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 380px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 12.5px;
  box-shadow: var(--shadow);
  animation: toastIn .22s ease both;
  transition: opacity .2s, transform .2s;
}
.toast .ico { color: var(--live); }
.toast.err { border-color: rgba(255, 107, 129, 0.42); }
.toast.err .ico { color: var(--err); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1180px) {
  .landing-hero { grid-template-columns: 1fr; gap: 34px; padding-top: 10px; }
  .hero-side { max-width: 520px; }
  .hero-points { max-width: none; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .node-grid, .robot-grid, .two-col, .monitors { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .appnav { justify-content: flex-start; }
  .engine-chip { display: none; }
}

@media (max-width: 860px) {
  .landing { padding: 0 20px; }
  .landing-bar { padding: 16px 0; }
  .landing-badge { display: none; }
  .landing-foot { flex-direction: column; gap: 6px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-points { grid-template-columns: 1fr; }
  .main { padding: 16px 16px 36px; }
  .appbar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
    min-height: 0;
  }
  .appbar-brand .brand-text i { display: none; }
  .appnav { order: 3; width: 100%; flex: 1 1 100%; justify-content: flex-start; padding-bottom: 2px; }
  .appbar-actions { margin-left: auto; }
  .user-name { display: none; }
  .user-chip { padding: 0 6px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-head-meta { width: 100%; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-body strong { font-size: 25px; }
  .form-row { grid-template-columns: 1fr; }
  .mode-switch { grid-template-columns: 1fr; }
  .data-table { table-layout: auto; min-width: 720px; }
  .table-wrap { overflow-x: auto; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search { min-width: 0; }
  .seg { overflow-x: auto; }
  .section-bar { align-items: flex-start; }
  .appfoot { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px 24px; }
  .toast-root { left: 16px; right: 16px; align-items: stretch; }
  .toast { max-width: none; }
  .modal { width: 100%; max-height: 92vh; }
  .log-line { grid-template-columns: 56px 1fr; }
  .log-line .lvl { display: none; }
}

@media (max-width: 560px) {
  .hero-copy h1 { font-size: 34px; }
  .hero-stat strong { font-size: 18px; }
  .login-card { padding: 20px; }
  .stat-strip { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .section-actions { width: 100%; }
  .section-actions .btn { flex: 1; }
}

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

/* ==========================================================================
   v1.0.12 新增：成就 / 游戏库 / 论坛 / 聊天
   ========================================================================== */

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 12px;
}
.search-box .ico { width: 15px; height: 15px; color: var(--text-3); flex: none; }
.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  padding: 10px 0;
  font-size: 13.5px;
}
.pick-search { margin: 6px 0 10px; }

/* 成就页布局 */
.ach-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
}
.ach-picker .form-row { gap: 12px; }
.ach-picker .field { margin-bottom: 12px; }
#ach-summary { margin-top: 4px; }

.ach-list { display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow-y: auto; padding-right: 4px; }
.ach-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.ach-row.is-done { opacity: 0.62; }
.ach-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex: none;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.ach-icon img { width: 100%; height: 100%; object-fit: cover; }
.ach-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ach-info b { font-size: 13.5px; }
.ach-info span { color: var(--text-3); font-size: 12.5px; }
.ach-state { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.ach-row.is-done .ach-state { color: var(--live); }

.ach-log-list { display: flex; flex-direction: column; gap: 10px; }
.ach-log-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.ach-log-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ach-log-info b { font-size: 13px; }
.ach-log-info span, .ach-log-info em { color: var(--text-3); font-size: 12px; font-style: normal; }
.ach-log-time { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.ach-log-pager { margin-top: 12px; }
.ach-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.03); }
.ach-pager-size { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.ach-pager-size select { padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 12px; }
.ach-pager-info { font-size: 12.5px; color: var(--text-3); }
.ach-pager-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.ach-pager-input { width: 68px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 12px; text-align: center; }
.btn-xs { padding: 4px 9px; font-size: 12px; border-radius: 8px; }
.farm-game-row.is-clickable { cursor: pointer; border-radius: 8px; transition: background .15s ease; }
.farm-game-row.is-clickable:hover, .farm-game-row.is-clickable:focus-visible { background: rgba(110, 168, 255, 0.09); outline: none; }
.farm-game-row.is-clickable .farm-game-name { text-decoration: underline dotted rgba(110, 168, 255, .35); text-underline-offset: 3px; }
.region-chip {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
  padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(110, 168, 255, 0.08); color: var(--text-2);
  font-size: 11.5px; line-height: 1.4; cursor: pointer;
}
.region-chip:hover { background: rgba(110, 168, 255, 0.16); color: var(--text); }
.risk-box { margin: 14px 0 8px; padding: 12px 14px; border: 1px solid rgba(255, 176, 32, 0.35); border-radius: 12px; background: rgba(255, 176, 32, 0.08); }
.risk-box b { display: block; margin-bottom: 6px; color: #ffc45c; font-size: 13px; }
.risk-box p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--text-2); }
/* v1.0.58.6：任务表改用单元格百分比宽度。原 colgroup 在隐藏“归属用户”列时会把“操作”列压成 0 宽，
   导致任务行的编辑/详情/暂停/停止/重开/删除按钮不可见也点不到。 */
#task-table th:nth-child(1), #task-table td:nth-child(1) { width: 20%; }
#task-table th:nth-child(2), #task-table td:nth-child(2) { width: 13%; }
#task-table th:nth-child(3), #task-table td:nth-child(3) { width: 9%; }
#task-table th:nth-child(4), #task-table td:nth-child(4) { width: 15%; }
#task-table th:nth-child(5), #task-table td:nth-child(5) { width: 10%; }
#task-table th:nth-child(6), #task-table td:nth-child(6) { width: 12%; }
#task-table th:nth-child(7), #task-table td:nth-child(7) { width: 19%; }

#task-table:not(.show-owner) .task-owner-th,
#task-table:not(.show-owner) .task-owner-cell { display: none; }
#task-table:not(.show-owner) col.task-owner-col { visibility: collapse; }
.task-owner-cell { font-size: 12.5px; color: var(--text-2); }
[data-theme="light"] .ach-pager { background: rgba(15, 23, 42, 0.03); }

/* 游戏库 / 挂时长列表 */
.library-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.library-toolbar .search-box { flex: 1; }
.lib-idle-tag { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }

.idle-list { margin-bottom: 14px; }
.idle-list-head { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.idle-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.idle-list .chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: var(--acc-soft);
  border: 1px solid var(--acc-line);
  border-radius: 999px;
  font-size: 12.5px;
}
.idle-list .chip em { color: var(--text-3); font-style: normal; font-size: 11.5px; }
.idle-list .chip button {
  border: none; background: transparent; color: var(--text-3);
  cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px;
}
.idle-list .chip button:hover { color: var(--err); }

.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.game-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.game-card.is-idle { border-color: var(--acc-line); background: var(--acc-soft); }
.game-icon {
  width: 92px; height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex: none;
  background: var(--surface-2);
}
.game-icon.placeholder { display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.game-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.game-info b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-info span { color: var(--text-3); font-size: 12px; }

/* 论坛 */
.forum-list { display: flex; flex-direction: column; gap: 14px; }
.forum-post {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.forum-post header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.forum-post header b { font-size: 15px; }
.forum-meta { color: var(--text-3); font-size: 12px; }
.forum-post > p { color: var(--text-2); font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; }
.forum-replies { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; padding-left: 12px; border-left: 2px solid var(--line-soft); }
.forum-reply { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 13px; }
.forum-reply b { color: var(--brand); }
.forum-reply span { color: var(--text-2); flex: 1; }
.forum-reply em { color: var(--text-3); font-style: normal; font-size: 11.5px; }
.forum-edited { color: var(--text-3); font-size: 11.5px; margin-top: 8px; padding-left: 2px; }

/* 聊天 */
.chat-panel {
  display: flex; flex-direction: column;
  height: calc(100vh - 220px);
  min-height: 380px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.chat-list { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.chat-msg { display: flex; }
.chat-msg.is-me { justify-content: flex-end; }
.chat-bubble {
  max-width: 64%;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.chat-msg.is-me .chat-bubble { background: var(--acc-soft); border-color: var(--acc-line); }
.chat-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; }
.chat-head b { font-size: 12.5px; color: var(--brand); }
.chat-head span { color: var(--text-3); font-size: 11px; }
.chat-text { font-size: 13.5px; line-height: 1.6; word-break: break-word; }
.chat-input-row { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line-soft); }
.chat-input-row input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text);
  outline: none;
  font-size: 13.5px;
}
.chat-input-row input:focus { border-color: var(--acc-line); }

@media (max-width: 1180px) {
  .ach-layout { grid-template-columns: 1fr; }
}

/* ==========================================================================
   v1.0.13 新增：用户菜单 / 命令台 / 表情 / Steam 账号展示
   ========================================================================== */

.user-menu { position: relative; }
.user-chip { cursor: pointer; border: 1px solid transparent; background: none; }
.user-chip:hover { border-color: var(--line, #263049); }
.user-avatar, .user-avatar.lg { display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.user-avatar.has-img, .user-avatar.lg.has-img { background: none; padding: 0; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.user-chip .chev { width: 12px; height: 12px; transform: rotate(90deg); opacity: .6; }
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; z-index: 60;
  background: var(--panel, #131a2a); border: 1px solid var(--line, #263049); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35); padding: 6px; display: flex; flex-direction: column; gap: 2px;
}
.user-dd-head { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--line, #263049); margin-bottom: 4px; }
.user-dd-head b { display: block; font-size: 13px; }
.user-dd-head span { font-size: 11.5px; color: var(--text-3); }
.user-dd-item {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 0; background: none;
  color: inherit; font-size: 13px; text-align: left; border-radius: 8px; cursor: pointer;
}
.user-dd-item:hover { background: rgba(255,255,255,.06); }
.user-dd-item .ico { width: 15px; height: 15px; opacity: .75; }

.node-url .url-hidden { margin-left: 8px; font-size: 11px; color: var(--text-3); }
.steamid-copy {
  display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0;
  color: var(--text-3); font: inherit; cursor: pointer;
}
.steamid-copy:hover { color: var(--acc-line, #6ea8ff); }

.author-link { display: inline-flex; align-items: center; gap: 6px; color: inherit; font-weight: 600; text-decoration: none; }
.author-link:hover { color: var(--acc-line, #6ea8ff); text-decoration: underline; }
.mini-avatar { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.chat-msg { display: flex; gap: 8px; align-items: flex-start; }
.chat-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.chat-msg.is-me { flex-direction: row-reverse; }
.chat-foot-note { padding: 6px 4px 0; font-size: 11.5px; color: var(--text-3); text-align: center; }

.emoji-panel { margin-bottom: 8px; }
.emoji-panel.is-picker { padding: 0; border: 0; background: transparent; max-height: none; overflow: visible; }
.emoji-btn {
  flex: none; width: 38px; border: 1px solid var(--line, #263049); border-radius: 10px;
  background: rgba(255,255,255,.04); font-size: 17px; cursor: pointer; line-height: 1;
}

.cmd-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; }
.cmd-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.chip-btn {
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line, #263049);
  background: rgba(255,255,255,.04); color: inherit; font-size: 12px; font-family: ui-monospace, monospace; cursor: pointer;
}
.chip-btn:hover { border-color: var(--acc-line, #6ea8ff); color: var(--acc-line, #6ea8ff); }
.cmd-send { width: 100%; }
.cmd-output {
  margin-top: 12px; padding: 12px; border-radius: 10px; background: #0b111d; color: #9ff0c4;
  font-family: ui-monospace, SFMono-Regular, monospace; font-size: 12.5px; line-height: 1.6;
  white-space: pre-wrap; word-break: break-all; max-height: 240px; overflow: auto;
}
.cmd-logs { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow: auto; }
.cmd-log { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.03); }
.cmd-log-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cmd-log-body code { font-size: 12.5px; word-break: break-all; }
.cmd-log-body span { font-size: 11.5px; color: var(--text-3); }
.cmd-log em { flex: none; font-size: 11px; color: var(--text-3); font-style: normal; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.adv-box { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--line, #263049); border-radius: 10px; background: rgba(255,255,255,.03); }
.adv-box summary { cursor: pointer; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.check-row { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 6px 0; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2, inherit); cursor: pointer; }

.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.profile-cell { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); }
.profile-cell span { display: block; font-size: 11.5px; color: var(--text-3); margin-bottom: 3px; }
.profile-section { margin-top: 14px; }
.profile-section h3 { font-size: 13px; margin-bottom: 8px; }
.ach-head-actions { display: flex; gap: 8px; align-items: center; }
.games-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 10px; font-size: 12.5px; color: var(--text-3); }
.games-head-page { flex: none; }
.loads-more { display: block; width: 100%; margin-top: 12px; }

@media (max-width: 960px) {
  .cmd-layout { grid-template-columns: 1fr; }
  .emoji-panel { grid-template-columns: repeat(8, 1fr); }
  .form-grid-2, .form-grid-3, .profile-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   v1.0.14：等级 / 头像 / 命令台对齐 / 深色选择框
   ========================================================================== */

/* 深色模式选择框：强制使用主题色，避免系统白底白字 */
select, .field select, #modal-body select {
  background-color: var(--panel, #131a2a);
  color: var(--text, #e8edf7);
  border: 1px solid var(--line, #263049);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 13px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3, #8b98b3) 50%), linear-gradient(135deg, var(--text-3, #8b98b3) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
select option { background: var(--panel, #131a2a); color: var(--text, #e8edf7); }
select:focus { outline: none; border-color: var(--acc-line, #6ea8ff); }
select:disabled { opacity: .65; }

.bot-avatar {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none;
  background: rgba(255,255,255,.08); border: 1px solid var(--line, #263049);
}
.bot-avatar.empty { display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-3); }
.bot-inline { display: flex; align-items: center; gap: 8px; }
.bot-inline b { display: block; font-size: 13px; }
.bot-inline em { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.bot-inline .steamid-copy { font-size: 11px; }

.robot-head .bot-avatar { width: 28px; height: 28px; margin-right: 2px; }
.node-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 2px; }
.tier-node { border-color: rgba(110,168,255,.35); color: #9cc2ff; }

/* 聊天对齐 + 时间 */
.chat-msg { align-items: flex-end; }
.chat-msg.is-me .chat-bubble { align-items: flex-end; }
.chat-bubble { display: flex; flex-direction: column; gap: 3px; max-width: min(72%, 640px); }
.chat-head { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.chat-time { color: var(--text-3); font-size: 11px; white-space: nowrap; }
.chat-text { font-size: 13.5px; line-height: 1.6; word-break: break-word; }
.chat-msg + .chat-msg { margin-top: 10px; }

/* 日志操作人 + 时间 */
.log-actor { margin-left: 8px; font-style: normal; font-size: 11px; color: var(--text-3); }

/* 成就勾选 */
.ach-bulk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 10px; border-bottom: 1px dashed var(--line, #263049); margin-bottom: 6px; }
.ach-check { flex: none; }
.ach-check input { accent-color: var(--acc-line, #6ea8ff); }
.ach-row { display: flex; align-items: center; gap: 10px; }
.ach-row .ach-info { flex: 1; min-width: 0; }
.ach-picker.is-locked { opacity: .6; pointer-events: none; }

/* 用户管理按钮组 */
.user-row { flex-wrap: wrap; }


/* ================= v1.0.14.1 主题中心（13 基础 + 3 VIP + 1 彩虹） ================= */
[data-theme="midnight"] {
  color-scheme: dark;
  --bg: #070b18;
  --bg-2: #0a1020;
  --panel: #0e1526;
  --panel-2: #131c31;
  --text: #e8eeff;
  --text-2: #a9b6d4;
  --text-3: #72809f;
  --brand: #5f8dff;
  --brand-2: #7d6bff;
  --cyan: #38d6ff;
  --gold: #ffd479;
  --acc-soft: color-mix(in srgb, #5f8dff 14%, transparent);
  --acc-line: color-mix(in srgb, #5f8dff 38%, transparent);
  --grad: linear-gradient(118deg, #5f8dff 0%, #7d6bff 52%, #38d6ff 100%);
}
[data-theme="ocean"] {
  color-scheme: dark;
  --bg: #04121a;
  --bg-2: #061a24;
  --panel: #08222e;
  --panel-2: #0b2b3a;
  --text: #e6fbff;
  --text-2: #9fc4cf;
  --text-3: #6b8f9c;
  --brand: #31c6d4;
  --brand-2: #2f8fe0;
  --cyan: #5df2d6;
  --gold: #ffd479;
  --acc-soft: color-mix(in srgb, #31c6d4 14%, transparent);
  --acc-line: color-mix(in srgb, #31c6d4 38%, transparent);
  --grad: linear-gradient(118deg, #31c6d4 0%, #2f8fe0 52%, #5df2d6 100%);
}
[data-theme="forest"] {
  color-scheme: dark;
  --bg: #06120c;
  --bg-2: #081a12;
  --panel: #0b2318;
  --panel-2: #0e2c1f;
  --text: #eafbf0;
  --text-2: #a8c9b6;
  --text-3: #6f9480;
  --brand: #4ed08a;
  --brand-2: #2f9e6a;
  --cyan: #8df0b7;
  --gold: #ffd479;
  --acc-soft: color-mix(in srgb, #4ed08a 14%, transparent);
  --acc-line: color-mix(in srgb, #4ed08a 38%, transparent);
  --grad: linear-gradient(118deg, #4ed08a 0%, #2f9e6a 52%, #8df0b7 100%);
}
[data-theme="sunset"] {
  color-scheme: dark;
  --bg: #160a0c;
  --bg-2: #1e0d10;
  --panel: #261216;
  --panel-2: #30181d;
  --text: #fff0ea;
  --text-2: #d9b3a9;
  --text-3: #9c7268;
  --brand: #ff8157;
  --brand-2: #e0455f;
  --cyan: #ffc371;
  --gold: #ffd479;
  --acc-soft: color-mix(in srgb, #ff8157 14%, transparent);
  --acc-line: color-mix(in srgb, #ff8157 38%, transparent);
  --grad: linear-gradient(118deg, #ff8157 0%, #e0455f 52%, #ffc371 100%);
}
[data-theme="sakura"] {
  color-scheme: dark;
  --bg: #140a12;
  --bg-2: #1b0d18;
  --panel: #24121f;
  --panel-2: #2d1827;
  --text: #fff0f8;
  --text-2: #d8b3c8;
  --text-3: #9c7289;
  --brand: #ff8fc4;
  --brand-2: #c86bff;
  --cyan: #ffc2e0;
  --gold: #ffd479;
  --acc-soft: color-mix(in srgb, #ff8fc4 14%, transparent);
  --acc-line: color-mix(in srgb, #ff8fc4 38%, transparent);
  --grad: linear-gradient(118deg, #ff8fc4 0%, #c86bff 52%, #ffc2e0 100%);
}
[data-theme="latte"] {
  color-scheme: dark;
  --bg: #14100c;
  --bg-2: #1b1510;
  --panel: #241b14;
  --panel-2: #2d2219;
  --text: #fbf1e6;
  --text-2: #d3bba5;
  --text-3: #9b8270;
  --brand: #d8a25e;
  --brand-2: #b4763f;
  --cyan: #f0d2a6;
  --gold: #ffd479;
  --acc-soft: color-mix(in srgb, #d8a25e 14%, transparent);
  --acc-line: color-mix(in srgb, #d8a25e 38%, transparent);
  --grad: linear-gradient(118deg, #d8a25e 0%, #b4763f 52%, #f0d2a6 100%);
}
[data-theme="mint"] {
  color-scheme: dark;
  --bg: #06120f;
  --bg-2: #081a16;
  --panel: #0b231d;
  --panel-2: #0e2c25;
  --text: #e9fff9;
  --text-2: #a6cfc2;
  --text-3: #6e9488;
  --brand: #3fe0b0;
  --brand-2: #2aa5a5;
  --cyan: #8fffe0;
  --gold: #ffd479;
  --acc-soft: color-mix(in srgb, #3fe0b0 14%, transparent);
  --acc-line: color-mix(in srgb, #3fe0b0 38%, transparent);
  --grad: linear-gradient(118deg, #3fe0b0 0%, #2aa5a5 52%, #8fffe0 100%);
}
[data-theme="cyber"] {
  color-scheme: dark;
  --bg: #0a0616;
  --bg-2: #0f0a1f;
  --panel: #150e29;
  --panel-2: #1c1436;
  --text: #f2ecff;
  --text-2: #b6a9d9;
  --text-3: #7f719e;
  --brand: #b45cff;
  --brand-2: #ff3ea5;
  --cyan: #00f0ff;
  --gold: #ffe066;
  --acc-soft: color-mix(in srgb, #b45cff 14%, transparent);
  --acc-line: color-mix(in srgb, #b45cff 38%, transparent);
  --grad: linear-gradient(118deg, #b45cff 0%, #ff3ea5 52%, #00f0ff 100%);
}
[data-theme="retro"] {
  color-scheme: dark;
  --bg: #101008;
  --bg-2: #16160c;
  --panel: #1d1d12;
  --panel-2: #25251a;
  --text: #f7f4dd;
  --text-2: #c9c3a4;
  --text-3: #8f8a71;
  --brand: #d8c05a;
  --brand-2: #c2703c;
  --cyan: #9fd07a;
  --gold: #ffd479;
  --acc-soft: color-mix(in srgb, #d8c05a 14%, transparent);
  --acc-line: color-mix(in srgb, #d8c05a 38%, transparent);
  --grad: linear-gradient(118deg, #d8c05a 0%, #c2703c 52%, #9fd07a 100%);
}
[data-theme="nord"] {
  color-scheme: dark;
  --bg: #0b1016;
  --bg-2: #0f1620;
  --panel: #131c29;
  --panel-2: #182333;
  --text: #eaf1fb;
  --text-2: #a9b8cc;
  --text-3: #74849a;
  --brand: #88b7e0;
  --brand-2: #8f9fd9;
  --cyan: #9fd6d2;
  --gold: #f0d3a3;
  --acc-soft: color-mix(in srgb, #88b7e0 14%, transparent);
  --acc-line: color-mix(in srgb, #88b7e0 38%, transparent);
  --grad: linear-gradient(118deg, #88b7e0 0%, #8f9fd9 52%, #9fd6d2 100%);
}
[data-theme="mono"] {
  color-scheme: dark;
  --bg: #0b0b0d;
  --bg-2: #101013;
  --panel: #16161a;
  --panel-2: #1d1d22;
  --text: #f1f1f4;
  --text-2: #b3b3bd;
  --text-3: #7c7c88;
  --brand: #c9c9d4;
  --brand-2: #8f8f9e;
  --cyan: #dcdce4;
  --gold: #e6d9a8;
  --acc-soft: color-mix(in srgb, #c9c9d4 14%, transparent);
  --acc-line: color-mix(in srgb, #c9c9d4 38%, transparent);
  --grad: linear-gradient(118deg, #c9c9d4 0%, #8f8f9e 52%, #dcdce4 100%);
}
[data-theme="gold"] {
  color-scheme: dark;
  --bg: #0f0c04;
  --bg-2: #161007;
  --panel: #1e1608;
  --panel-2: #271c0c;
  --text: #fff6dd;
  --text-2: #dcc69a;
  --text-3: #9e8a5f;
  --brand: #ffce5c;
  --brand-2: #e09b2d;
  --cyan: #ffe8a3;
  --gold: #ffd479;
  --acc-soft: color-mix(in srgb, #ffce5c 14%, transparent);
  --acc-line: color-mix(in srgb, #ffce5c 38%, transparent);
  --grad: linear-gradient(118deg, #ffce5c 0%, #e09b2d 52%, #ffe8a3 100%);
}
[data-theme="violet"] {
  color-scheme: dark;
  --bg: #0d0715;
  --bg-2: #130a1e;
  --panel: #1a0f28;
  --panel-2: #221534;
  --text: #f6ecff;
  --text-2: #c3aede;
  --text-3: #8b75a6;
  --brand: #b07cff;
  --brand-2: #7a5cff;
  --cyan: #e0a8ff;
  --gold: #ffd479;
  --acc-soft: color-mix(in srgb, #b07cff 14%, transparent);
  --acc-line: color-mix(in srgb, #b07cff 38%, transparent);
  --grad: linear-gradient(118deg, #b07cff 0%, #7a5cff 52%, #e0a8ff 100%);
}
[data-theme="flame"] {
  color-scheme: dark;
  --bg: #140805;
  --bg-2: #1c0b06;
  --panel: #26100a;
  --panel-2: #31160e;
  --text: #fff1ea;
  --text-2: #d9b2a3;
  --text-3: #9c7466;
  --brand: #ff6a3d;
  --brand-2: #ff2f6d;
  --cyan: #ffb066;
  --gold: #ffd479;
  --acc-soft: color-mix(in srgb, #ff6a3d 14%, transparent);
  --acc-line: color-mix(in srgb, #ff6a3d 38%, transparent);
  --grad: linear-gradient(118deg, #ff6a3d 0%, #ff2f6d 52%, #ffb066 100%);
}
[data-theme="rainbow"] {
  color-scheme: dark;
  --bg: #0a0710;
  --bg-2: #100a18;
  --panel: #150e21;
  --panel-2: #1c1430;
  --text: #fdf2ff;
  --text-2: #cfb6d9;
  --text-3: #94799e;
  --brand: #ff5fa8;
  --brand-2: #5fd0ff;
  --cyan: #7bff9e;
  --gold: #ffe066;
  --acc-soft: rgba(255, 95, 168, 0.14);
  --acc-line: rgba(255, 95, 168, 0.38);
  --grad: linear-gradient(118deg, #ff5fa8 0%, #ffd479 20%, #7bff9e 45%, #5fd0ff 70%, #b07cff 100%);
}
[data-theme="rainbow"] .appbar { border-bottom-color: rgba(255,255,255,.16); }
[data-theme="rainbow"] .appbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg,#ff5fa8,#ffd479,#7bff9e,#5fd0ff,#b07cff); background-size: 300% 100%; animation: rainbowSlide 8s linear infinite; }
@keyframes rainbowSlide { to { background-position: 300% 0; } }

/* ================= 手机端适配 ================= */
@media (max-width: 900px) {
  :root { --appbar-h: auto; }
  .appbar { position: sticky; flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
  .nav { order: 3; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-item { flex: 0 0 auto; padding: 8px 10px; font-size: 13px; }
  .appbar-right { margin-left: auto; }
  .view { padding: 14px 12px 90px; }
  .view-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .view-title { font-size: 22px; }
  .grid, .plan-grid, .robot-list, .node-grid, .quick-grid { grid-template-columns: 1fr !important; }
  .panel, .card, .robot-card, .node-card { border-radius: 14px; }
  .form-row, .toolbar, .settings-grid, .profile-grid { grid-template-columns: 1fr !important; flex-direction: column; align-items: stretch; }
  .table-wrap { overflow-x: auto; }
  .data-table { min-width: 760px; }
  .robot-head { flex-wrap: wrap; gap: 6px; }
  .robot-actions, .bot-act { flex-wrap: wrap; gap: 6px; }
  .pick-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .modal { width: calc(100vw - 24px); max-height: 88vh; }
  .stat-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .chat-panel { height: 62vh; }
  .toast-stack { left: 12px; right: 12px; bottom: 12px; }
}
@media (max-width: 520px) {
  .stat-grid { grid-template-columns: 1fr !important; }
  .view-title { font-size: 19px; }
  .btn { padding: 7px 10px; font-size: 13px; }
  .user-row { grid-template-columns: 1fr; gap: 6px; }
  .chat-msg { max-width: 92%; }
}


/* ================= v1.0.14.1 组件补充 ================= */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.theme-card { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); text-align: left; cursor: pointer; }
.theme-card.is-on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--acc-line); }
.theme-card.is-locked { opacity: .55; cursor: not-allowed; }
.theme-card b { font-size: 13px; }
.theme-card small { color: var(--text-3); font-size: 11px; }
.theme-swatch { height: 44px; border-radius: 8px; display: block; }
[data-swatch="dark"] { background: linear-gradient(118deg,#05070d,#1a2340,#35e0d0); }
[data-swatch="light"] { background: linear-gradient(118deg,#f2f5fb,#dfe8ff,#2a5bd7); }
[data-swatch="midnight"] { background: linear-gradient(118deg,#070b18,#233a7a,#38d6ff); }
[data-swatch="ocean"] { background: linear-gradient(118deg,#04121a,#0b4258,#31c6d4); }
[data-swatch="forest"] { background: linear-gradient(118deg,#06120c,#14522f,#4ed08a); }
[data-swatch="sunset"] { background: linear-gradient(118deg,#160a0c,#5a1d22,#ff8157); }
[data-swatch="sakura"] { background: linear-gradient(118deg,#140a12,#5b2547,#ff8fc4); }
[data-swatch="latte"] { background: linear-gradient(118deg,#14100c,#4a3323,#d8a25e); }
[data-swatch="mint"] { background: linear-gradient(118deg,#06120f,#0f4a3c,#3fe0b0); }
[data-swatch="cyber"] { background: linear-gradient(118deg,#0a0616,#35175e,#b45cff,#ff3ea5); }
[data-swatch="retro"] { background: linear-gradient(118deg,#101008,#3d3a1a,#d8c05a); }
[data-swatch="nord"] { background: linear-gradient(118deg,#0b1016,#2a3a52,#88b7e0); }
[data-swatch="mono"] { background: linear-gradient(118deg,#0b0b0d,#2b2b31,#c9c9d4); }
[data-swatch="transparent"] { background: linear-gradient(118deg,rgba(255,255,255,.18),rgba(255,255,255,.03) 46%,rgba(110,168,255,.28)); border: 1px dashed rgba(255,255,255,.18); }
[data-swatch="gold"] { background: linear-gradient(118deg,#0f0c04,#5e4512,#ffce5c); }
[data-swatch="violet"] { background: linear-gradient(118deg,#0d0715,#3a1c66,#b07cff); }
[data-swatch="flame"] { background: linear-gradient(118deg,#140805,#5a1d0c,#ff6a3d,#ff2f6d); }
[data-swatch="rainbow"] { background: linear-gradient(118deg,#ff5fa8,#ffd479,#7bff9e,#5fd0ff,#b07cff); }
.bot-name-link { color: inherit; text-decoration: none; }
.bot-name-link:hover b, .bot-name-link:hover span { color: var(--brand); text-decoration: underline; }
.pick-free { position: absolute; right: 4px; top: 4px; font-size: 10px; padding: 1px 5px; border-radius: 6px; background: var(--live-soft); color: var(--live); }
.pick-tile { position: relative; }
.pick-jump { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-3); }
.pick-jump input { width: 56px; padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 11.5px; }
.free-game-pager { margin-top: 10px; }
.free-pager { justify-content: space-between; }
.free-pager .ach-pager-size { white-space: nowrap; }
.free-pager .ach-pager-actions { margin-left: 0; flex: 1 1 auto; justify-content: flex-end; }
#modal-body .free-pager .ach-pager-input { width: 64px; min-height: 30px; height: 32px; padding: 4px 6px; flex: none; }
@media (max-width: 720px) {
  .free-pager { align-items: flex-start; gap: 8px; }
  .free-pager .ach-pager-actions { margin-left: 0; }
}
.pick-more { width: 100%; grid-column: 1 / -1; }
.panel-inset { background: var(--panel-2); padding: 12px; margin-top: 10px; border-radius: 12px; }
.cdk-pool { display: flex; flex-direction: column; gap: 6px; max-height: 180px; overflow: auto; margin-bottom: 8px; }
.cdk-pool-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.cdk-pool-row code { font-family: var(--mono); }
.cdk-history { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto; }
.cdk-history .cdk-row { flex-wrap: wrap; align-items: flex-start; }
.cdk-history .cdk-status { margin-left: 0; }
.cdk-status.on { color: var(--ok); }
.cdk-status.err, .cdk-status.is-err { color: var(--danger); }
.cdk-meta { flex: 1; min-width: 120px; font-size: 11.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdk-sub { flex-basis: 100%; font-size: 10.5px; color: var(--text-3); font-family: var(--mono); }
.cdk-row.is-failed { border-color: rgba(255,120,120,.3); background: rgba(255,96,96,.06); }
.cdk-pool-list { display: flex; flex-direction: column; gap: 6px; }
.cdk-stats { font-size: 12px; color: var(--text-2); }
.cdk-row.is-used { opacity: .65; }
.user-row .pw { font-size: 12px; color: var(--warn); font-family: var(--mono); }
@media (max-width: 900px) {
  .appnav { order: 3; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-wrap: nowrap; }
  .appnav::-webkit-scrollbar { display: none; }
  .appnav .nav-item { flex: 0 0 auto; }
  .appbar { flex-wrap: wrap; }
  .appbar-actions { margin-left: auto; }
}

/* ==========================================================================
   v1.0.16：微信式站内聊天 / 卡密兑换 / 待支付订单
   ========================================================================== */
.chat-list { gap: 12px; padding: 16px; }
.chat-msg { gap: 10px; align-items: flex-end; width: 100%; }
.chat-avatar { width: 34px; height: 34px; border: 1px solid var(--line, #263049); font-size: 13px; }
.chat-bubble {
  max-width: min(72%, 560px);
  padding: 9px 12px;
  border-radius: 14px 14px 14px 4px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft, var(--line, #263049));
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.chat-msg.is-me { flex-direction: row-reverse; }
.chat-msg.is-me .chat-bubble {
  border-radius: 14px 14px 4px 14px;
  background: var(--acc-soft);
  border-color: var(--acc-line, var(--acc-soft));
}
.chat-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.chat-msg.is-me .chat-head { flex-direction: row-reverse; }
.chat-time { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.chat-del-btn {
  padding: 1px 7px; border-radius: 6px; border: 1px solid rgba(255, 120, 120, .32);
  background: rgba(255, 96, 96, .06); color: #ff9b9b; font-size: 10.5px; line-height: 1.5;
  cursor: pointer;
}
.chat-del-btn:hover { border-color: rgba(255, 120, 120, .6); background: rgba(255, 96, 96, .14); color: #ffc0c0; }
.chat-text { white-space: pre-wrap; }
.order-status.is-pending { color: #d9a441; }
@media (max-width: 520px) {
  .chat-bubble { max-width: 76%; }
  .chat-avatar { width: 30px; height: 30px; }
}

/* ==========================================================================
   v1.0.17：自定义 Logo / 个人资料 / 双发货方式 / 控件 UI 统一
   ========================================================================== */
.brand-logo { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; display: block; }
.brand-logo-preview {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 96px; margin-bottom: 12px; padding: 14px;
  border: 1px dashed var(--line, #263049); border-radius: var(--radius-lg, 12px);
  background: rgba(255,255,255,.03); color: var(--text-3); font-size: 12px; text-align: center;
}
.brand-logo-preview-img { max-width: 180px; max-height: 80px; object-fit: contain; border-radius: 10px; }

/* v1.0.65：管理员自定义全站背景，透明度 1-100% */
html.has-site-bg { background: transparent; }
body.has-site-bg {
  /* 透明 body / app 让背景层位于页面内容之下；isolation 固定层叠上下文 */
  background: transparent;
  isolation: isolate;
  /* 背景图上方的面板改为高不透明度，保证文字可读 */
  --surface: rgba(8, 11, 20, 0.84);
  --surface-2: rgba(16, 23, 40, 0.92);
  --panel: rgba(12, 17, 29, 0.9);
  --panel-2: rgba(16, 23, 40, 0.94);
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.1);
}
[data-theme="light"] body.has-site-bg {
  --surface: rgba(255, 255, 255, 0.9);
  --surface-2: rgba(255, 255, 255, 0.96);
  --panel: rgba(255, 255, 255, 0.94);
  --panel-2: rgba(246, 248, 254, 0.96);
  --line: #dfe6f3;
  --line-soft: #ebeff9;
}
body.has-site-bg .app,
body.has-site-bg .landing { background: transparent; }
body.has-site-bg::before,
body.has-site-bg::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body.has-site-bg::before {
  z-index: -2;
  background-image: var(--site-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: var(--site-bg-opacity, 0.8);
  transition: opacity .2s ease;
}
body.has-site-bg::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.68), rgba(5, 7, 13, 0.9));
}
[data-theme="light"] body.has-site-bg::after {
  background: linear-gradient(180deg, rgba(242, 245, 251, 0.74), rgba(242, 245, 251, 0.92));
}
.site-bg-preview {
  display: flex; align-items: flex-end; justify-content: flex-start;
  min-height: 150px; margin-bottom: 12px; padding: 14px;
  border: 1px dashed var(--line, #263049); border-radius: var(--radius-lg, 12px);
  background: rgba(255,255,255,.03); background-size: cover; background-position: center;
  color: var(--text); font-size: 12px;
}
.site-bg-preview-tip {
  padding: 5px 9px; border-radius: 8px;
  background: rgba(5, 7, 13, 0.72); color: #eef2ff; backdrop-filter: blur(6px);
  font-size: 12px;
}

/* v1.0.65：免费游戏入库弹窗 */
.free-auto-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
}
.free-auto-row .field-note { margin: 0; }
.free-license-toolbar {
  display: grid; grid-template-columns: minmax(0, 1fr) 130px auto; gap: 8px;
  margin: 12px 0 8px; align-items: center;
}
.free-license-toolbar input {
  min-width: 0; height: 36px; padding: 0 11px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
.free-license-toolbar select { height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.free-license-status { margin: 8px 0; color: var(--text-3); font-size: 12px; line-height: 1.6; }
.free-license-status .is-ok { color: var(--live); }
.free-license-status .is-warn { color: var(--warn); }
.free-game-list { max-height: 360px; overflow: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 3px; }
.free-game-row {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto auto; gap: 9px;
  align-items: center; padding: 7px; border: 1px solid var(--line-soft); border-radius: 10px;
  background: var(--surface);
}
.free-game-row img { width: 76px; height: 43px; object-fit: cover; border-radius: 7px; background: var(--surface-2); }
.free-game-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.free-game-main b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.free-game-main span { font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.free-game-badge { font-size: 11px; padding: 2px 6px; border-radius: 999px; color: var(--text-3); border: 1px solid var(--line); white-space: nowrap; }
.free-game-badge.is-owned { color: var(--live); border-color: rgba(61, 220, 151, .35); background: var(--live-soft); }
.free-custom-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-top: 12px; }
.free-custom-row .field { margin: 0; }
.group-raw { margin-top: 8px; color: var(--text-3); font-size: 12px; }
.group-raw pre { white-space: pre-wrap; word-break: break-all; max-height: 180px; overflow: auto; background: var(--surface-2); padding: 8px; border-radius: 8px; }
@media (max-width: 640px) {
  .free-license-toolbar { grid-template-columns: 1fr; }
  .free-game-row { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .free-game-row img { width: 64px; height: 36px; }
  .free-game-badge { display: none; }
  .free-custom-row { grid-template-columns: 1fr; }
}
input[type="range"] {
  width: 100%; accent-color: var(--brand, #6ea8ff); cursor: pointer;
}

.plan-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.plan-actions .btn { width: 100%; }
.pay-order .pay-amount { word-break: break-all; }

.btn {
  min-height: 36px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: .1px;
  transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--acc-line, #6ea8ff);
  outline-offset: 2px;
}
.btn-primary { box-shadow: 0 6px 18px rgba(95, 140, 255, .22); }
.btn-ghost { background: transparent; border: 1px solid var(--line, #263049); }

.field input, .field select, .field textarea, .inline-form input, #modal-body input, #modal-body select {
  border-radius: 10px;
  min-height: 38px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus, .inline-form input:focus, #modal-body input:focus, #modal-body select:focus {
  border-color: var(--acc-line, #6ea8ff);
  box-shadow: 0 0 0 3px rgba(110, 168, 255, .16);
}
select { cursor: pointer; }
.plan-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.plan-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.data-table th { font-weight: 600; }
.data-table td small { display: block; margin-top: 2px; color: var(--text-3); font-size: 11px; }
.profile-cell .link { word-break: break-all; }
#prof-info-form { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line-soft, var(--line, #263049)); }
.bot-act { flex-wrap: wrap; }
@media (max-width: 640px) {
  .plan-actions { grid-template-columns: 1fr; }
}


/* v1.0.17 聊天对齐修复：row-reverse 下使用 flex-start 才会贴右侧 */
.chat-msg.is-me {
  flex-direction: row-reverse;
  justify-content: flex-start;
}
.chat-msg:not(.is-me) {
  justify-content: flex-start;
}
.chat-msg.is-me .chat-bubble {
  border-radius: 14px 14px 4px 14px;
}
.chat-msg:not(.is-me) .chat-bubble {
  border-radius: 14px 14px 14px 4px;
}
.chat-msg.is-me .chat-head {
  flex-direction: row-reverse;
}
.chat-msg.is-me .chat-text {
  text-align: left;
}

/* ==========================================================================
   v1.0.17：用户身份徽标 / Steam 绑定弹窗
   ========================================================================== */
.role-badge {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  border: 1px solid var(--line, #263049);
  background: rgba(255,255,255,.04); color: var(--text-3);
  font-size: 10.5px; font-weight: 600; line-height: 1.6;
  white-space: nowrap; vertical-align: middle;
}
.role-user { color: var(--text-3); border-color: var(--line, #263049); }
.role-vip { color: #8ab8ff; border-color: rgba(110,168,255,.45); background: rgba(110,168,255,.12); }
.role-svip { color: #c4a6ff; border-color: rgba(139,92,255,.45); background: rgba(139,92,255,.12); }
.role-platinum { color: #67e8d5; border-color: rgba(64,220,190,.45); background: rgba(64,220,190,.12); }
.role-royal { color: #ffb86b; border-color: rgba(255,170,80,.5); background: rgba(255,170,80,.13); }
.role-admin { color: #ffd479; border-color: rgba(255,212,121,.5); background: rgba(255,212,121,.13); }
[data-theme="light"] .role-vip { color: #2b6ed6; }
[data-theme="light"] .role-svip { color: #6b3fd4; }
[data-theme="light"] .role-platinum { color: #0f8d7c; }
[data-theme="light"] .role-royal { color: #b45f16; }
[data-theme="light"] .role-admin { color: #8a6100; }

.steam-bind-choice {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px; border: 1px solid var(--line, #263049); border-radius: 12px;
  background: rgba(255,255,255,.03);
}
.steam-bind-choice b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.steam-bind-choice p { margin: 0; color: var(--text-3); font-size: 12px; line-height: 1.6; }
.steam-bind-choice .btn { flex: none; }
.modal-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: var(--text-3); font-size: 12px; }
.modal-divider::before, .modal-divider::after { content: ""; flex: 1; height: 1px; background: var(--line, #263049); }
@media (max-width: 560px) {
  .steam-bind-choice { flex-direction: column; align-items: stretch; }
  .steam-bind-choice .btn { width: 100%; }
}

/* ==========================================================================
   v1.0.18：任务暂停 / 机器人资料跳转 / 游戏库分页
   ========================================================================== */
.task-bot-link { color: inherit; text-decoration: none; border-bottom: 1px dashed transparent; transition: color .15s, border-color .15s; }
.task-bot-link:hover { color: var(--brand); border-bottom-color: var(--brand); }
.st-paused { color: var(--warn); border-color: rgba(255, 180, 92, 0.34); background: var(--warn-soft); }

.library-toolbar { flex-wrap: wrap; }
.lib-tools { display: flex; align-items: center; gap: 12px; flex: none; }
.lib-page-size { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.lib-page-size select { width: auto; min-width: 92px; height: 34px; padding: 0 26px 0 10px; font-size: 12.5px; }
.lib-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.lib-pager span { color: var(--text-3); font-size: 12px; font-family: var(--mono); }
@media (max-width: 560px) {
  .lib-tools { width: 100%; justify-content: space-between; }
  .lib-page-size select { min-width: 86px; }
  .lib-pager { gap: 8px; }
  .lib-pager .btn { padding-left: 10px; padding-right: 10px; }
}

/* ==========================================================================
   v1.0.19：命令词典 / 命令含义翻译 / SteamID 查找
   ========================================================================== */

.cmd-live {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.035);
  display: flex; flex-direction: column; gap: 6px;
}
.cmd-live-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmd-live-head b { font-size: 13.5px; }
.cmd-live-cat { font-size: 11.5px; color: var(--text-3); }
.cmd-live-meaning { font-size: 12.5px; color: var(--text-2); line-height: 1.65; }
.cmd-live-usage { font-family: var(--mono); font-size: 12px; color: var(--brand); word-break: break-all; }
.cmd-live-tips { margin: 2px 0 0; padding-left: 16px; color: var(--text-3); font-size: 11.5px; line-height: 1.6; }
.cmd-live-loading { font-size: 12px; color: var(--text-3); }

.risk { flex: none; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-style: normal; border: 1px solid transparent; }
.risk-low { color: var(--live); background: var(--live-soft); border-color: rgba(61, 220, 151, 0.28); }
.risk-mid { color: var(--warn); background: var(--warn-soft); border-color: rgba(255, 180, 92, 0.3); }
.risk-high { color: var(--err); background: var(--err-soft); border-color: rgba(255, 107, 129, 0.3); }

.cmd-log-meaning { color: var(--brand) !important; }
.cmd-log-meta { opacity: 0.72; }

.cmd-dict { margin-top: 16px; }
.cmd-dict-tools { flex: 1; max-width: 360px; }
.cmd-dict-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.cmd-dict-cats .chip-btn.is-on { border-color: var(--acc-line); color: var(--brand); background: var(--acc-soft); }
.cmd-dict-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px;
  max-height: 560px; overflow: auto; padding-right: 2px;
}
.cmd-card {
  display: flex; flex-direction: column; gap: 5px; text-align: left; cursor: pointer;
  padding: 11px 12px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03); color: inherit; font: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.cmd-card:hover { border-color: var(--acc-line); background: var(--acc-soft); transform: translateY(-1px); }
.cmd-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cmd-card-top b { font-family: var(--mono); font-size: 13px; color: var(--brand); }
.cmd-card-name { font-size: 13px; font-weight: 600; }
.cmd-card-sum { font-size: 11.8px; color: var(--text-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cmd-card-usage { font-family: var(--mono); font-size: 11px; color: var(--text-3); word-break: break-all; }
.cmd-card-foot { font-size: 10.8px; color: var(--text-3); }

.sid-layout { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 16px; }
.sid-actions { display: flex; gap: 8px; margin: 10px 0 8px; }
.sid-examples { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; font-size: 12px; color: var(--text-3); }
.sid-error {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(255, 107, 129, 0.32); background: var(--err-soft); color: var(--err);
  font-size: 12.5px; line-height: 1.6; display: flex; flex-direction: column; gap: 4px;
}
.sid-error span { color: var(--text-2); font-size: 12px; }

.sid-result { min-height: 220px; }
.sid-profile { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.sid-avatar { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; border: 1px solid var(--line); }
.sid-avatar-ph { display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-3); font-size: 18px; font-weight: 700; }
.sid-profile-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sid-profile-copy b { font-size: 15px; }
.sid-profile-copy span { display: flex; flex-wrap: wrap; gap: 6px; }
.sid-profile-copy small { font-size: 11.5px; color: var(--text-3); }
.sid-badge {
  padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--text-2);
  font-size: 11px; font-style: normal; border: 1px solid var(--line-soft);
}
.sid-badge.is-bad { color: var(--err); background: var(--err-soft); border-color: rgba(255, 107, 129, 0.3); }
.sid-profile-actions { flex: none; }

.sid-ids { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sid-id-row {
  display: grid; grid-template-columns: minmax(120px, 0.9fr) minmax(0, 1.4fr) auto;
  align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-soft);
}
.sid-id-label { font-size: 12.5px; color: var(--text-2); }
.sid-id-label small { display: block; font-size: 10.8px; color: var(--text-3); margin-top: 2px; }
.sid-id-value { font-family: var(--mono); font-size: 13px; color: var(--text); word-break: break-all; }
.sid-warn { margin-top: 10px; padding: 9px 11px; border-radius: 9px; background: var(--warn-soft); color: var(--warn); font-size: 12px; line-height: 1.6; }

/* v1.0.70：SteamID 封禁明细 */
.sid-bans { margin-top: 12px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--line-soft); }
.sid-bans.has-bans { border-color: rgba(255,107,129,.28); background: rgba(255,107,129,.04); }
.sid-bans-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.sid-bans-head h3 { margin: 0; font-size: 12.5px; color: var(--text); }
.sid-bans-head span { font-size: 10.5px; color: var(--text-3); font-family: var(--mono); }
.sid-ban-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 7px; }
.sid-ban-item {
  display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 9px;
  background: rgba(255,255,255,.035); border: 1px solid var(--line-soft); min-width: 0;
}
.sid-ban-item span { font-size: 10.5px; color: var(--text-3); }
.sid-ban-item b { font-size: 13px; color: var(--text); }
.sid-ban-item small { font-size: 10.5px; color: var(--text-3); line-height: 1.4; }
.sid-ban-item.is-ok { border-color: rgba(53,224,208,.18); }
.sid-ban-item.is-ok b { color: #7ef0c8; }
.sid-ban-item.is-bad { border-color: rgba(255,107,129,.34); background: rgba(255,107,129,.06); }
.sid-ban-item.is-bad b { color: #ff8fa3; }
.sid-ban-note { margin: 9px 0 0; font-size: 10.8px; line-height: 1.5; color: var(--text-3); }
@media (max-width: 560px) { .sid-ban-grid { grid-template-columns: 1fr 1fr; } }

.sid-history { margin-top: 16px; }
.sid-history-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.sid-history-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: inherit;
  cursor: pointer; text-align: left; font: inherit;
}
.sid-history-item:hover { border-color: var(--acc-line); background: var(--acc-soft); }
.sid-history-item img, .sid-history-avatar { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; flex: none; }
.sid-history-avatar { display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-3); font-weight: 700; }
.sid-history-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sid-history-copy b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sid-history-copy small { font-family: var(--mono); font-size: 10.8px; color: var(--text-3); }

@media (max-width: 960px) {
  .sid-layout { grid-template-columns: 1fr; }
  .sid-id-row { grid-template-columns: 1fr auto; }
  .sid-id-label { grid-column: 1 / -1; }
  .cmd-dict-grid { max-height: none; }
}

/* v1.0.20：用户 Steam 令牌 / 启用禁用 / 游戏库分页 / 任务游戏列表 */
.token-status { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:12.5px; color:var(--text-2); margin-bottom:8px; }
.token-status em { color:var(--text-3); font-style:normal; font-size:11.5px; }
.token-bot-list { margin-top:8px; display:flex; flex-wrap:wrap; gap:6px; align-items:center; font-size:11.5px; color:var(--text-3); }
.token-bot-list code { background:rgba(255,255,255,.06); border:1px solid var(--line); border-radius:6px; padding:2px 6px; color:var(--text-2); }
.token-bot-list small { color:var(--text-3); margin-right:6px; }
.token-state { font-size:12px; color:var(--text-3); }
.token-state.on { color:var(--good); }
.token-user-row .token-state { min-width:92px; text-align:right; }
.bot-power { border-color: rgba(255,255,255,.16); }
.bot-power.is-off { color: var(--warn); border-color: rgba(255,180,80,.35); }
.sid-id-row { display:flex; align-items:center; gap:10px; }
.task-game-list { display:flex; flex-wrap:wrap; gap:6px; margin-top:4px; }
.task-game-chip { font-size:11.5px; padding:2px 7px; border-radius:6px; border:1px solid var(--line); background:rgba(255,255,255,.04); color:var(--text-2); }
.lib-toolbar { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:10px; }
.lib-toolbar .search-box { flex:1; min-width:220px; }
.lib-toolbar select { min-width:110px; }
.lib-pager { display:flex; align-items:center; justify-content:flex-end; gap:8px; margin-top:10px; font-size:12px; color:var(--text-3); }
.lib-pager button { min-width:32px; }
@media (max-width: 720px) {
  .token-user-row .token-state { min-width:auto; text-align:left; }
  .lib-toolbar select { width:100%; }
}

#games-grid { max-height: 46vh; overflow-y: auto; padding-right: 4px; }
#games-grid::-webkit-scrollbar { width: 8px; }
#games-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 4px; }

/* v1.0.21：支付方式配置 */
.settings-wide { grid-column: 1 / -1; }
.pay-config-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px; margin-bottom:12px; }
.pay-config-card { border:1px solid var(--line); border-radius:12px; padding:12px; background:rgba(255,255,255,.025); display:flex; flex-direction:column; gap:8px; }
.pay-config-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:2px; }
.pay-config-head b { font-size:14px; }
.pay-switch { display:flex; align-items:center; gap:5px; font-size:12px; color:var(--text-2); cursor:pointer; }
.pay-switch input { width:auto; accent-color:var(--accent); }
.pay-config-card .field { margin:0; }
.pay-config-card .field span { font-size:11.5px; }
.pay-config-card .field input { font-size:12px; }
.pay-qr-preview { min-height:120px; border:1px dashed var(--line); border-radius:10px; display:flex; align-items:center; justify-content:center; color:var(--text-3); font-size:12px; overflow:hidden; background:rgba(0,0,0,.16); }
.pay-qr-preview img { width:120px; height:120px; object-fit:contain; }
.pay-qr-preview span { padding:8px; text-align:center; }
@media (max-width: 900px) {
  .pay-config-grid { grid-template-columns: 1fr; }
}
.pay-account { padding:12px; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.035); font-size:13px; }
.pay-account b { color:var(--text); }
.pay-qr-clear { align-self:flex-start; font-size:11.5px; padding:4px 8px; }

/* v1.0.23 商户支付配置 / 自动发货 */
.pay-gateway-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-gateway-grid .pay-wide { grid-column: 1 / -1; }
.pay-key {
  width: 100%; min-height: 84px; resize: vertical; padding: 9px 10px; border-radius: 9px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .22); color: var(--text);
  font-family: var(--mono); font-size: 11px; line-height: 1.5; outline: none;
}
.pay-key:focus { border-color: var(--accent); }
.pay-auto-tip { color: var(--text-2); }
.pay-auto-tip b { color: var(--text); font-family: var(--mono); }
.pay-status {
  width: 100%; margin-top: 6px; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line);
  background: rgba(110, 168, 255, .08); color: var(--text-2); font-size: 12px;
}
.pay-success { gap: 10px; }
.pay-success-ico {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(53, 224, 208, .16); color: #35e0d0; font-size: 24px; font-weight: 700;
  border: 1px solid rgba(53, 224, 208, .35);
}
.pay-card-code {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px; border-radius: 12px; border: 1px dashed rgba(110, 168, 255, .45);
  background: rgba(110, 168, 255, .08);
}
.pay-card-code span { font-size: 12px; color: var(--text-3); }
.pay-card-code b { font-family: var(--mono); font-size: 18px; letter-spacing: .04em; color: var(--text); }

/* ===== v1.0.28 机器人卡牌尺寸 / 长名称头像修复 ===== */
.robot-grid {
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 10px;
}
.robot-card {
  min-width: 0;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
}
.robot-head {
  min-width: 0;
  align-items: center;
  gap: 7px;
}
.robot-head .bot-avatar {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  max-width: 28px;
  max-height: 28px;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  object-fit: cover;
  overflow: hidden;
  display: block;
}
.bot-avatar {
  border-radius: 50% !important;
  object-fit: cover;
}
.bot-avatar.empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.robot-head > b,
.robot-head .bot-name-link {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 58%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.robot-head .bot-name-link b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.robot-actions {
  gap: 5px;
  margin-top: 9px;
}
.robot-actions .btn-sm {
  padding: 4px 8px;
  font-size: 11.5px;
  line-height: 1.35;
}
.robot-meta {
  margin-top: 6px;
  line-height: 1.5;
}

/* ===== v1.0.28 左侧竖向导航 ===== */
.appbar { justify-content: space-between; }
.appbar-actions { margin-left: auto; }
.app-shell {
  display: flex;
  align-items: flex-start;
  width: 100%;
  flex: 1;
  min-height: calc(100vh - var(--appbar-h));
}
.appnav-sidebar {
  position: sticky;
  top: var(--appbar-h);
  flex: 0 0 156px;
  width: 156px;
  height: calc(100vh - var(--appbar-h));
  padding: 14px 10px;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--bg) 92%, var(--surface));
  z-index: 30;
  scrollbar-width: thin;
}
.appnav-sidebar .appnav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  min-width: 0;
  flex: none;
  overflow: visible;
  justify-content: flex-start;
}
.appnav-sidebar .nav-item {
  width: 100%;
  height: 38px;
  justify-content: flex-start;
  padding: 0 12px;
  white-space: nowrap;
}
.appnav-sidebar .nav-item .nav-badge { margin-left: auto; }
.main {
  flex: 1;
  min-width: 0;
  margin: 0 auto;
  max-width: 1320px;
}
@media (max-width: 900px) {
  .app-shell { flex-direction: column; }
  .appnav-sidebar {
    position: sticky;
    top: 0;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    overflow-x: auto;
    overflow-y: hidden;
  }
  .appnav-sidebar .appnav {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    width: max-content;
    min-width: 100%;
  }
  .appnav-sidebar .nav-item {
    width: auto;
    flex: 0 0 auto;
  }
}

/* v1.0.30 节点机器人列表小头像 */
.bot-avatar.bot-avatar-xs,
.bot-avatar-xs {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  max-width: 22px;
  max-height: 22px;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  object-fit: cover;
  overflow: hidden;
  display: block;
}
.bot-avatar-xs.empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

/* v1.0.32 挂机任务机器人头像（固定圆形，长名称不挤压） */
.monitor-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.monitor-main { min-width: 0; }
.monitor-avatar.bot-avatar {
  width: 34px;
  height: 34px;
  min-width: 34px;
  max-width: 34px;
  aspect-ratio: 1 / 1;
  flex: none;
  object-fit: cover;
  border-radius: 50%;
}
.bot-inline .bot-avatar {
  width: 32px;
  height: 32px;
  aspect-ratio: 1 / 1;
  flex: none;
  object-fit: cover;
}

/* v1.0.32 手机端 TAB 一律靠左，横向滚动从第一个 TAB 开始 */
@media (max-width: 900px) {
  .appnav-sidebar {
    display: block;
    text-align: left;
    scroll-padding-left: 0;
    -webkit-overflow-scrolling: touch;
  }
  .appnav-sidebar .appnav {
    justify-content: flex-start;
    align-items: center;
    margin-right: auto;
    padding-left: 0;
    text-align: left;
  }
  .appnav-sidebar .nav-item {
    justify-content: flex-start;
    text-align: left;
  }
  .appnav-sidebar .nav-item:first-child {
    margin-left: 0;
  }
}
.task-detail-bot { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.task-detail-bot .bot-avatar-xs { flex: 0 0 22px; width: 22px; height: 22px; }

/* ================================================================
   v1.0.47 新增样式
   ================================================================ */

/* ---------- 多语言切换 ---------- */
.lang-switch { position: relative; display: inline-flex; }
.lang-btn { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; }
.lang-globe { width: 14px; height: 14px; opacity: .85; }
.lang-glyph { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 22px; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 196px; max-height: 348px; overflow: auto; padding: 6px; border-radius: 12px;
  background: var(--panel, #11162a); border: 1px solid var(--line, rgba(255,255,255,.1));
  box-shadow: 0 18px 44px rgba(0,0,0,.45);
  display: grid; gap: 2px;
}
.lang-menu-head { padding: 6px 10px 8px; font-size: 10.5px; color: var(--text-3, #7f8da8); border-bottom: 1px solid rgba(110,168,255,.12); margin-bottom: 3px; font-family: var(--mono); }
.lang-menu[hidden] { display: none; }
.lang-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px; border-radius: 8px; border: 0; cursor: pointer;
  background: transparent; color: var(--text); font-size: 12.5px; text-align: left;
}
.lang-item em { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--text-3, #7f8da8); }
.lang-item:hover { background: rgba(110,168,255,.12); }
.lang-item.is-active { background: rgba(110,168,255,.18); color: #cfe1ff; }

/* ---------- 免费额度提示 ---------- */
.free-quota-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; margin-bottom: 14px; border-radius: 12px;
  border: 1px solid rgba(110,168,255,.28);
  background: linear-gradient(90deg, rgba(110,168,255,.12), rgba(53,224,208,.06));
  color: var(--text-2, #a9b6cd); font-size: 12.5px;
}
.free-quota-bar b { color: var(--text); font-family: var(--mono); }

/* ---------- v1.0.70.5 会员到期提示 ---------- */
.vip-expired-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; margin-bottom: 14px; border-radius: 12px;
  border: 1px solid rgba(255, 150, 92, .42);
  background: linear-gradient(90deg, rgba(255, 110, 92, .16), rgba(255, 180, 92, .07));
  color: var(--text-2); font-size: 12.5px;
}
.vip-expired-icon {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  color: #ffb45c; background: rgba(255, 150, 92, .14);
  border: 1px solid rgba(255, 150, 92, .28);
}
.vip-expired-icon .ico { width: 17px; height: 17px; }
.vip-expired-copy { flex: 1; min-width: 0; display: grid; gap: 3px; }
.vip-expired-copy b { color: var(--text); font-size: 13px; }
.vip-expired-copy span { color: var(--text-2); line-height: 1.55; }
.vip-expired-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.vip-expired-dismiss {
  width: 28px; height: 28px; border-radius: 8px; color: var(--text-3);
  font-size: 16px; line-height: 1;
}
.vip-expired-modal { color: var(--text-2); font-size: 13px; line-height: 1.7; }
.vip-expired-modal p { margin: 0 0 10px; }
.vip-expired-modal p b { color: var(--text); }
.vip-expired-modal ul { margin: 0 0 12px; padding-left: 20px; }
.vip-expired-modal li { margin: 3px 0; }
.vip-expired-modal .hint-box { margin-top: 12px; text-align: left; }
[data-theme="light"] .vip-expired-banner { color: #5d4a37; }
[data-theme="light"] .vip-expired-copy b { color: #3b2b1d; }
[data-theme="light"] .vip-expired-copy span { color: #6b5744; }

/* v1.0.59：机器人 Steam 组弹窗 */
.bot-groups { display: grid; gap: 10px; }
.group-add-row { display: flex; gap: 8px; align-items: center; }
.group-add-row input { flex: 1; min-width: 0; }
.group-add-row .btn { flex: 0 0 auto; white-space: nowrap; }
.steam-group-list { display: grid; gap: 7px; max-height: 360px; overflow: auto; padding-right: 2px; }
.steam-group-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); }
.steam-group-avatar { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--bg); color: var(--brand); font-weight: 700; border: 1px solid var(--line); }
.steam-group-avatar img { width: 100%; height: 100%; object-fit: cover; }
.steam-group-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.steam-group-main b { font-size: 13.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steam-group-main span { font-size: 11.5px; color: var(--text-3); font-family: var(--mono); }
.steam-group-actions { display: flex; flex: 0 0 auto; gap: 6px; align-items: center; }
.steam-group-actions .btn { padding: 4px 8px; }
@media (max-width: 640px) {
  .group-add-row { flex-wrap: wrap; }
  .group-add-row .btn { width: 100%; }
  .steam-group-row { align-items: flex-start; flex-wrap: wrap; }
  .steam-group-actions { width: 100%; justify-content: flex-end; }
}
[data-theme="light"] .free-quota-bar { color: #33415c; }
[data-theme="light"] .free-quota-bar b { color: #0f172a; }
.free-quota-bar .bar { flex: 0 0 160px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.free-quota-bar .bar i { display: block; height: 100%; background: linear-gradient(90deg, #6ea8ff, #35e0d0); }
.free-quota-bar.is-warn { border-color: rgba(255,120,120,.4); background: linear-gradient(90deg, rgba(255,96,96,.14), rgba(255,170,90,.06)); }
.free-quota-modal { text-align: center; padding: 6px 4px 2px; }
.free-quota-modal .big { font-size: 34px; font-weight: 800; font-family: var(--mono); color: #ff8f8f; }
.free-quota-modal .big span { font-size: 14px; color: var(--text-3); }
.free-quota-modal p { color: var(--text-2); line-height: 1.8; margin: 8px 0 0; }
.free-quota-modal .hint-box { text-align: left; margin-top: 14px; }

/* ---------- 操作日志（统一板块） ---------- */
.oplog-board {
  border: 1px solid var(--line, rgba(255,255,255,.08));
  border-radius: 14px;
  background: var(--panel, rgba(255,255,255,.02));
  overflow: hidden;
}
.oplog-board-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 13px 16px;
  background: var(--panel-2, rgba(255,255,255,.03));
  border-bottom: 1px solid var(--line, rgba(255,255,255,.08));
}
.oplog-board-head h2 { margin: 0; font-size: 15px; }
.oplog-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.oplog-tier-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px;
  border: 1px solid var(--line); background: transparent; color: var(--text-2);
  font-size: 12px; cursor: pointer;
}
.oplog-tier-chip.is-active { border-color: rgba(110,168,255,.55); background: rgba(110,168,255,.16); color: #cfe1ff; }
.oplog-tier-chip em { font-style: normal; font-family: var(--mono); color: var(--text-3); }
.oplog-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.oplog-table th {
  text-align: left; padding: 9px 12px; font-weight: 600; color: var(--text-3);
  background: var(--panel-2, rgba(255,255,255,.02));
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.oplog-table td { padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: top; color: var(--text-2); }
.oplog-table tr:hover td { background: rgba(255,255,255,.025); }
.oplog-table .op-time {
  font-family: var(--mono); color: var(--text-3); white-space: nowrap;
  width: 152px; min-width: 152px; letter-spacing: 0.02em;
}
.oplog-table .op-user { white-space: nowrap; color: var(--text); }
.oplog-table .op-action { min-width: 120px; color: var(--text); }
.oplog-table .op-result { white-space: nowrap; font-family: var(--mono); }
.oplog-table .op-dur { font-family: var(--mono); white-space: nowrap; color: var(--text-3); }
.oplog-table .op-ip { font-family: var(--mono); white-space: nowrap; color: var(--text-3); }
.oplog-table .op-params { max-width: 340px; word-break: break-all; color: var(--text-3); font-family: var(--mono); font-size: 11.5px; }
.oplog-empty { padding: 34px 16px; text-align: center; color: var(--text-3); }
.oplog-pager { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; }
.oplog-scroll { max-height: 540px; overflow: auto; }

/* 操作日志标题与“显示年月日”对齐修复 */
.log-console-head { flex-wrap: nowrap; }
.log-console-head .switch-inline { margin-left: 0; white-space: nowrap; flex: 0 0 auto; }
.log-console-head > :first-child { margin-right: auto; }
.log-console-head label,
.log-console-head .switch-inline { align-self: center; line-height: 1; }
.log-console-head .switch-inline input { vertical-align: middle; }

/* ---------- 论坛点赞 / 置顶 ---------- */
.forum-post.is-pinned { border-color: rgba(255,196,84,.45); box-shadow: 0 0 0 1px rgba(255,196,84,.12) inset; }
.forum-pin-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px;
  font-size: 11px; color: #ffcf74; background: rgba(255,196,84,.14); border: 1px solid rgba(255,196,84,.3);
}
.forum-like-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px;
  border: 1px solid var(--line); background: transparent; color: var(--text-2); cursor: pointer; font-size: 12px;
}
.forum-like-btn.is-liked { border-color: rgba(255,110,150,.5); color: #ff9db6; background: rgba(255,110,150,.12); }
.forum-like-btn:hover { border-color: rgba(255,110,150,.5); }
.forum-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.forum-emoji-btn { padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--text-2); cursor: pointer; }
.emoji-drawer { display: block; max-height: none; padding: 0; margin-top: 8px; border: 0; background: transparent; }
.emoji-drawer[hidden] { display: none; }

/* Unicode 全量 emoji 选择器 */
.emoji-picker {
  display: flex; flex-direction: column; gap: 6px; padding: 8px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel-2, rgba(255,255,255,.035));
}
.emoji-picker-bar { display: flex; align-items: center; gap: 8px; flex: none; }
.emoji-picker-bar input {
  flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--panel); color: var(--text); font-size: 12.5px;
}
.emoji-picker-count { flex: none; color: var(--text-3); font-size: 11px; white-space: nowrap; }
.emoji-picker-tabs { display: flex; flex-wrap: wrap; gap: 4px; flex: none; max-height: 58px; overflow: auto; }
.emoji-picker-tab {
  padding: 3px 9px; border: 1px solid var(--line); border-radius: 99px;
  background: transparent; color: var(--text-3); font-size: 11.5px; cursor: pointer; white-space: nowrap;
}
.emoji-picker-tab:hover { border-color: var(--accent); color: var(--text); }
.emoji-picker-tab.is-active { border-color: var(--accent); background: rgba(110,168,255,.16); color: var(--text); }
.emoji-picker-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(32px, 1fr)); gap: 2px;
  min-height: 150px; max-height: 240px; overflow: auto; align-content: start; padding: 2px;
}
.emoji-picker-item {
  min-height: 32px; padding: 2px; border: 0; border-radius: 6px;
  background: transparent; font-size: 20px; line-height: 1.45; cursor: pointer;
}
.emoji-picker-item:hover, .emoji-picker-item:focus-visible { background: rgba(110,168,255,.16); outline: none; }
.emoji-picker-empty { padding: 20px; color: var(--text-3); font-size: 12px; text-align: center; grid-column: 1 / -1; }

/* ---------- 会员套餐管理 ---------- */
.plans-editor { display: grid; gap: 10px; }
.plan-row {
  display: grid; grid-template-columns: 1.4fr .8fr .8fr .8fr 1.6fr auto; gap: 10px; align-items: end;
  padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2, rgba(255,255,255,.025));
}
.plan-row .field { margin: 0; }
.plan-row .plan-actions { display: flex; gap: 6px; align-items: center; }
.plan-row.is-off { opacity: .58; }
@media (max-width: 900px) { .plan-row { grid-template-columns: 1fr 1fr; } .plan-row .plan-actions { grid-column: 1 / -1; } }

/* ---------- 命令控制台 ---------- */
.cmd-console {
  margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: #06080f;
}
.cmd-console-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line);
}
.cmd-console-head h3 { margin: 0; font-family: var(--mono); font-size: 12px; color: #9fb0d0; }
.cmd-console-head .dot { flex: 0 0 auto; }
.cmd-console-head .spacer { flex: 1; }
.cmd-console-body {
  max-height: 320px; overflow: auto; padding: 10px 14px;
  font-family: var(--mono); font-size: 12px; line-height: 1.7; color: #b9c6dd;
  white-space: pre-wrap; word-break: break-word;
}
.cmd-console-line { display: grid; grid-template-columns: 76px 70px 1fr; gap: 10px; }
.cmd-console-line time { color: #5c6a85; }
.cmd-console-line .lvl { color: #6ea8ff; }
.cmd-console-line.is-err .lvl { color: #ff8f8f; }
.cmd-console-line .msg { color: #b9c6dd; }
.cmd-console-empty { color: #5c6a85; }

/* ---------- 好友聊天 ---------- */
.friend-chat { display: flex; flex-direction: column; gap: 10px; }
.friend-emoji-drawer { max-height: none; margin-top: 0; }
.friend-chat-head {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border: 1px solid rgba(110,168,255,.22); border-radius: 10px; background: rgba(110,168,255,.06);
}
.friend-chat-avatar {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 9px; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); color: var(--text-2); font-weight: 700; font-size: 15px;
}
.friend-chat-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.friend-chat-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.friend-chat-name { font-weight: 700; font-size: 13.5px; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-chat-name:hover { color: var(--accent); text-decoration: underline; }
.friend-chat-sub { font-size: 10.5px; color: var(--text-3); font-family: var(--mono); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.friend-chat-list {
  max-height: 360px; overflow: auto; padding: 10px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel-2, rgba(255,255,255,.025)); display: flex; flex-direction: column; gap: 8px;
}
.friend-chat-msg { max-width: 78%; padding: 8px 11px; border-radius: 10px; font-size: 12.5px; line-height: 1.6; word-break: break-word; }
.friend-chat-msg.in { align-self: flex-start; background: rgba(110,168,255,.14); border: 1px solid rgba(110,168,255,.28); }
.friend-chat-msg.out { align-self: flex-end; background: rgba(53,224,208,.12); border: 1px solid rgba(53,224,208,.28); }
.friend-chat-msg.out.is-failed { border-color: rgba(255,120,120,.45); background: rgba(255,96,96,.1); }
.friend-chat-msg .meta { display: block; font-size: 10.5px; color: var(--text-3); margin-top: 4px; font-family: var(--mono); }
.steam-emoticon { width: 18px; height: 18px; object-fit: contain; vertical-align: -4px; margin: 0 1px; display: inline-block; }
.friend-chat-form { display: flex; gap: 8px; }
.friend-chat-form input { flex: 1; }
.friend-chat-note { font-size: 11.5px; color: var(--text-3); line-height: 1.7; }

/* ---------- 机器人转移 ---------- */
.bot-owner-tag { font-size: 11px; color: var(--text-3); }
.admin-bot-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.admin-bot-table th, .admin-bot-table td { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.06); text-align: left; }
.admin-bot-table th { color: var(--text-3); font-weight: 600; white-space: nowrap; }
.admin-bot-table td { color: var(--text-2); }
.admin-bot-table select { min-width: 150px; }

/* ---------- 移动端任务板块修复 ---------- */
@media (max-width: 720px) {
  .view[data-view="tasks"] .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .view[data-view="tasks"] .data-table { min-width: 760px; }
  .view[data-view="tasks"] .task-toolbar { display: grid; gap: 8px; }
  .view[data-view="tasks"] .task-toolbar .search-box { width: 100%; }
  .view[data-view="tasks"] .section-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .view[data-view="tasks"] .data-table td.cell-task { min-width: 200px; }
  .view[data-view="tasks"] .data-table .row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
  .task-card-mobile { display: none; }
  .free-quota-bar { font-size: 12px; }
  .oplog-table { min-width: 860px; }
  .oplog-scroll { overflow-x: auto; }
}

/* ---------- 机器人 Steam 名称 ---------- */
.robot-steam-name { font-size: 11.5px; color: var(--text-3); margin-left: 6px; }
.steam-name-hidden { font-size: 11px; color: var(--text-3); border: 1px dashed var(--line); padding: 1px 7px; border-radius: 99px; }
.log-console-head { display: flex; align-items: center; gap: 10px; }
.log-console-head .spacer { flex: 1 1 auto; }

/* ================================================================
   v1.0.48 新增样式
   ================================================================ */

/* 论坛评论删除 */
.reply-del {
  margin-left: 8px; padding: 1px 7px; border-radius: 99px; border: 1px solid rgba(255,120,120,.3);
  background: transparent; color: #ff9b9b; font-size: 11px; cursor: pointer;
}
.reply-del:hover { background: rgba(255,96,96,.12); }

/* 封禁标签 */
.tier-ban { color: #ff9b9b; border-color: rgba(255,120,120,.4); background: rgba(255,96,96,.12); }

/* 操作日志页码跳转 */
.oplog-jump { display: inline-flex; align-items: center; gap: 6px; }
.oplog-jump input {
  width: 64px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel-2, rgba(255,255,255,.04)); color: var(--text); font-size: 12px; text-align: center;
}

/* 登录设备 */
.session-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel-2, rgba(255,255,255,.025));
}
.session-row.is-current { border-color: rgba(110,168,255,.45); background: rgba(110,168,255,.08); }
.session-icon { font-size: 18px; }
.session-main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.session-main b { font-size: 13px; color: var(--text); }
.session-main small { color: var(--text-3); font-size: 11.5px; }
.session-time { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }

/* 好友列表：发送按钮靠最右 */
.bot-row { position: relative; }
.friend-send-btn { margin-left: auto; flex: 0 0 auto; }
.bot-row .bot-sub.steamid-copy {
  border: 0; background: transparent; padding: 0; text-align: left;
  color: var(--text-3); cursor: copy; font-family: var(--mono); font-size: 11.5px;
}
.bot-row .bot-sub.steamid-copy:hover { color: #9fc7ff; text-decoration: underline; }

/* 挂机预览 */
.farm-summary { display: flex; gap: 10px; flex-wrap: wrap; }
.farm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; margin-top: 14px; }
.farm-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  background: var(--panel, rgba(255,255,255,.025));
}
.farm-card.is-err { border-color: rgba(255,120,120,.35); }
.farm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
/* v1.0.86：挂机预览卡片收纳 */
.farm-card-head-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; flex-wrap: nowrap; }
.farm-collapse-btn {
  height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px;
  background: rgba(255,255,255,.03); color: var(--text-3); font: inherit; font-size: 11px;
  line-height: 1; cursor: pointer; white-space: nowrap; transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.farm-collapse-btn:hover, .farm-collapse-btn:focus-visible {
  border-color: rgba(110,168,255,.4); color: #9fc7ff; background: rgba(110,168,255,.08); outline: none;
}
.farm-mini {
  display: none; padding: 2px 7px; border-radius: 99px; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; color: var(--text-3); white-space: nowrap;
}
.farm-card.is-collapsed .farm-mini { display: inline-flex; align-items: center; }
.farm-card-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .28s ease; }
.farm-card-body-inner { min-height: 0; overflow: hidden; transition: opacity .2s ease, visibility .2s ease; }
.farm-card.is-collapsed .farm-card-body { grid-template-rows: 0fr; }
.farm-card.is-collapsed .farm-card-body-inner { opacity: 0; visibility: hidden; pointer-events: none; }
.farm-card.is-collapsed .farm-card-head { margin-bottom: 0; }
.farm-card-head > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.farm-card-head b { font-size: 14px; color: var(--text); }
.farm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.farm-stats > div {
  padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.035);
  display: flex; flex-direction: column; gap: 3px;
}
.farm-stats span { font-size: 10.5px; color: var(--text-3); }
.farm-stats b { font-size: 12.5px; color: var(--text); font-family: var(--mono); }
.farm-games { border-top: 1px dashed var(--line); padding-top: 10px; }
.farm-games-title { font-size: 11.5px; color: var(--text-3); margin-bottom: 6px; }
.farm-game-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12px; }
.farm-appid { font-family: var(--mono); color: var(--text-3); min-width: 58px; }
.farm-game-name { flex: 1; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.farm-tags { display: flex; gap: 4px; }
.farm-tags em { font-style: normal; font-size: 10px; padding: 1px 6px; border-radius: 99px; }
.badge-live { color: #7ef0c8; background: rgba(53,224,208,.14); border: 1px solid rgba(53,224,208,.3); }
.badge-queue { color: #ffcf74; background: rgba(255,196,84,.13); border: 1px solid rgba(255,196,84,.28); }
.badge-task { color: #9fc7ff; background: rgba(110,168,255,.13); border: 1px solid rgba(110,168,255,.28); }
.farm-task-line { margin-top: 10px; font-size: 11.5px; color: var(--text-3); }
.farm-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #35e0d0; box-shadow: 0 0 0 3px rgba(53,224,208,.14); animation: farmPulse 1.4s ease-in-out infinite; align-self: center; }
@keyframes farmPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.farm-game-row.is-clickable { cursor: pointer; border-radius: 7px; padding: 5px 6px; margin: 0 -6px; transition: background .15s ease; }
.farm-game-row.is-clickable:hover, .farm-game-row.is-clickable:focus-visible { background: rgba(110,168,255,.09); outline: none; }
.farm-game-open { font-size: 10.5px; color: #9fc7ff; opacity: 0; transition: opacity .15s ease; white-space: nowrap; }
.farm-game-row:hover .farm-game-open, .farm-game-row:focus-visible .farm-game-open { opacity: 1; }
.farm-task-block { margin-top: 11px; padding-top: 11px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 8px; }
.farm-task-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.farm-task-kicker { font-size: 10.5px; color: var(--text-3); padding: 1px 7px; border-radius: 99px; border: 1px solid var(--line); }
.farm-task-head b { font-size: 12.5px; color: var(--text); }
.farm-task-head .status-pill { margin-left: auto; }
.farm-task-apps, .farm-task-names { display: flex; gap: 8px; align-items: flex-start; }
.farm-task-label { flex: 0 0 auto; min-width: 76px; padding-top: 5px; font-size: 10.5px; color: var(--text-3); }
.farm-task-chips { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.farm-task-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.03); color: var(--text-2); font: inherit; font-size: 11px; cursor: pointer; text-align: left; }
.farm-task-chip:hover, .farm-task-chip:focus-visible { border-color: rgba(110,168,255,.42); background: rgba(110,168,255,.09); outline: none; }
.farm-task-chip b { font-family: var(--mono); color: #9fc7ff; font-weight: 600; }
.farm-task-chip span { color: var(--text-3); max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.farm-task-names b { font-size: 11.5px; color: var(--text-2); font-weight: 500; line-height: 1.5; }
.farm-task-empty, .farm-task-empty-inline { font-size: 11.5px; color: var(--text-3); }
.farm-game-row .farm-tags { margin-left: auto; }
@media (max-width: 720px) { .farm-task-apps, .farm-task-names { flex-direction: column; gap: 4px; } .farm-task-label { padding-top: 0; } .farm-game-open { opacity: 1; } }
@media (max-width: 720px) { .farm-grid { grid-template-columns: 1fr; } .farm-stats { grid-template-columns: repeat(2, 1fr); } }

/* 手机端任务板块：固定宽度 + 独立横向滚动，避免整页跳到中间 */
@media (max-width: 720px) {
  .view[data-view="tasks"] .table-wrap {
    width: 100%; overflow-x: auto; overflow-y: hidden;
    overscroll-behavior-x: contain; touch-action: pan-x pan-y;
  }
  .view[data-view="tasks"] .data-table {
    width: 900px; min-width: 900px; table-layout: fixed;
  }
  .view[data-view="tasks"] .toolbar { flex-wrap: wrap; }
  .view[data-view="tasks"] .toolbar .search { width: 100%; }
  .view[data-view="tasks"] .view,
  html, body { overscroll-behavior-y: auto; }
}
.friend-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.friend-row .bot-name { flex: 1; min-width: 160px; }
.friend-row .bot-sub { margin-top: 0; }
.friend-row .friend-send-btn { margin-left: auto; }
/* v1.0.49 */
.game-name-copy { display:inline-flex; align-items:center; gap:5px; padding:0; border:0; background:transparent; color:inherit; font:inherit; font-weight:700; cursor:copy; text-align:left; }
.game-name-copy:hover { color:#9fc7ff; text-decoration:underline; }
.pick-pager { grid-column:1/-1; display:flex; align-items:center; justify-content:center; gap:10px; padding:10px 0 2px; }
.lib-jump, .lib-jump-input { display:inline-flex; align-items:center; gap:6px; font-size:11px; color:var(--text-3); }
.lib-jump input, .lib-jump-input { width:64px; height:28px; padding:0 8px; border:1px solid var(--line); border-radius:6px; background:var(--panel); color:var(--text); }
.farm-bot-line { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.farm-avatar { width:26px; height:26px; border-radius:50%; object-fit:cover; border:1px solid var(--line); }
.farm-avatar.empty { display:inline-flex; align-items:center; justify-content:center; background:rgba(255,255,255,.06); color:var(--text-3); font-size:11px; }
.farm-bot-name { color:inherit; font-weight:700; text-decoration:none; }
.farm-bot-name:hover { color:#9fc7ff; text-decoration:underline; }
.friend-any-box { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin:10px 0 4px; }
.friend-any-box input { flex:1; min-width:180px; height:32px; padding:0 10px; border:1px solid var(--line); border-radius:8px; background:var(--panel); color:var(--text); }
.friend-add-btn { flex:0 0 auto; }
/* v1.0.50 */
.ach-manual-row { display:flex; gap:8px; margin-top:10px; }
.ach-manual-row input { flex:1; min-width:0; height:32px; padding:0 10px; border:1px solid var(--line); border-radius:8px; background:var(--panel); color:var(--text); }
.ach-bot-info { display:flex; align-items:center; gap:10px; min-height:44px; margin-top:12px; padding:8px 10px; border:1px dashed var(--line); border-radius:10px; }
.ach-bot-info img, .ach-bot-avatar { width:34px; height:34px; border-radius:50%; object-fit:cover; flex:0 0 auto; }
.ach-bot-avatar { display:inline-flex; align-items:center; justify-content:center; background:rgba(255,255,255,.06); color:var(--text-3); }
.ach-bot-info b { display:block; font-size:13px; }
.ach-bot-info span { display:block; color:var(--text-3); font-size:11px; margin-top:2px; }
.bot-profile-box { display:flex; flex-direction:column; gap:14px; }
.bp-head { display:flex; align-items:center; gap:14px; }
.bp-avatar { width:72px; height:72px; border-radius:50%; object-fit:cover; border:2px solid var(--line); }
.bp-avatar.empty { display:inline-flex; align-items:center; justify-content:center; background:rgba(255,255,255,.06); color:var(--text-3); font-size:24px; }
.bp-meta { display:flex; flex-direction:column; gap:5px; min-width:0; }
.bp-meta b { font-size:16px; }
.bp-meta span { color:var(--text-3); font-size:12px; }
.bp-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.bp-stats > div { padding:9px 10px; border:1px solid var(--line); border-radius:9px; background:var(--bg-soft); min-width:0; }
.bp-stats span { display:block; color:var(--text-3); font-size:10.5px; }
.bp-stats b { display:block; margin-top:3px; font-size:13px; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bp-section-title { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:9px; }
.bp-section-title h3 { margin:0; }
@media (max-width:700px) { .bp-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.bp-section { border-top:1px dashed var(--line); padding-top:12px; }
.bp-section h3 { margin:0 0 9px; font-size:13px; }
.bp-row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.bp-row input[type="text"], .bp-row input[type="number"], .bp-row input:not([type]) { flex:1; min-width:160px; height:34px; padding:0 10px; border:1px solid var(--line); border-radius:8px; background:var(--panel); color:var(--text); }
.bp-row input[type="file"] { flex:1; min-width:200px; }
.bp-tabs { margin-bottom:10px; }
.bp-tabs .is-on { border-color:#4da3ff; color:#9fc7ff; }
.bp-asf { max-height:190px; overflow:auto; margin:0; padding:10px; border-radius:10px; background:rgba(0,0,0,.18); color:var(--text-2); font-size:11.5px; white-space:pre-wrap; }
.st-pending { color:#f5c451; border-color:rgba(245,196,81,.34); background:rgba(245,196,81,.10); }
.friend-row .friend-remove-btn { margin-left:auto; flex:0 0 auto; }
.friend-row .friend-send-btn + .friend-remove-btn { margin-left:0; }

/* v1.0.50：好友搜索 / 成就开关 */
.friend-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 8px;
}
.friend-search-box input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}
.friend-search-box input:focus {
  outline: none;
  border-color: var(--primary);
}
.friend-search-box .field-note { white-space: nowrap; }
.ach-enable { flex: none; }
.ach-enable span { font-size: 12px; }

/* v1.0.50：机器人转移卡片 */
.transfer-bot-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.transfer-bot-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 12.5px; color: var(--text-3); }
.transfer-bot-meta b { font-size: 14px; color: var(--text); }
.transfer-bot-meta strong { color: var(--text); font-weight: 600; }
.transfer-bot-meta .steamid-copy { align-self: flex-start; }

/* v1.0.54：管理员全局免费额度 */
.free-quota-editor { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.free-quota-editor input[type="number"] { width: 92px; }
.free-quota-unit { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.free-quota-editor .chk span { color: var(--text-2); font-size: 12px; }

/* ===== v1.0.60：成就游戏库 / 游戏数据 / 日志批量 / 好友审核 ===== */
.ach-library-row { margin-top: 8px; align-items: center; gap: 10px; }
.ach-bot-profile { color: var(--primary); text-decoration: none; }
.ach-bot-profile:hover { text-decoration: underline; }
.ach-library-modal { min-width: 0; }
.ach-library-modal .search-box { margin-bottom: 10px; }
.ach-library-count { font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.ach-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  max-height: 54vh;
  overflow: auto;
  padding-right: 4px;
}
.ach-library-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  text-align: left;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm, 8px);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}
.ach-library-item:hover { border-color: var(--primary); background: var(--surface-3, var(--surface-2)); }
.ach-library-item img { width: 92px; height: 35px; object-fit: cover; border-radius: 4px; flex: none; background: var(--surface-3); }
.ach-library-item span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ach-library-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.ach-library-item em { font-style: normal; font-size: 11.5px; color: var(--text-3); }

.ach-stats-warning { border-color: rgba(245, 158, 11, .35); }
.ach-stats-warning b { color: #f59e0b; }
.ach-stats-warning p { margin: 6px 0 0; line-height: 1.7; color: var(--text-2); }
.ach-stats-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 8px; flex-wrap: wrap; }
.ach-stats-list { max-height: 46vh; overflow: auto; border-top: 1px solid var(--line-soft); }
.ach-stat-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.ach-stat-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ach-stat-info b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ach-stat-info span { font-size: 11.5px; color: var(--text-3); }
.ach-stat-edit { display: flex; align-items: center; gap: 5px; flex: none; }
.ach-stat-edit input { width: 130px; padding: 6px 8px; }
.ach-stat-row.is-protected { opacity: .65; }
.ach-stats-list .node-msg { padding: 18px 0; }

.ach-log-bulkbar {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; margin-bottom: 8px;
  border: 1px dashed var(--line-soft); border-radius: var(--radius-sm, 8px);
  background: var(--surface-2);
}
.ach-log-bulkbar .field-note { flex: 1; }
.ach-log-check { flex: none; margin-right: 2px; }
.ach-log-row { align-items: center; }

@media (max-width: 720px) {
  .ach-library-grid { grid-template-columns: 1fr; max-height: 48vh; }
  .ach-stat-row { align-items: flex-start; flex-direction: column; }
  .ach-stat-edit { width: 100%; }
  .ach-stat-edit input { flex: 1; width: auto; }
}


/* v1.0.62：命令台 ASFEnhance 插件状态条 */
.cmd-enhance-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 2px;
  flex-wrap: wrap;
}
.cmd-enhance-status {
  font-size: 12px;
  line-height: 1.5;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.cmd-enhance-status.is-ok {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.28);
}
.cmd-enhance-status.is-warn {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}
.cmd-enhance-status.is-err {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}


/* v1.0.63：Steam 组 ID 复制 + 短 ID + 头像 */
.steam-group-ids {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.steam-group-ids .group-copy-id {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border: 1px solid rgba(110, 168, 255, 0.22);
  border-radius: 6px;
  background: rgba(110, 168, 255, 0.08);
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
}
.steam-group-ids .group-copy-id:hover {
  color: var(--brand);
  border-color: rgba(110, 168, 255, 0.45);
}
.steam-group-short {
  display: inline-flex;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(53, 224, 208, 0.09);
  border: 1px solid rgba(53, 224, 208, 0.2);
  color: #35e0d0;
  font-family: var(--mono);
  font-size: 11px;
}
.steam-group-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
}

/* v1.0.71：机器人 ASF BotConfig 表格编辑器 */
.bot-config-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.bot-config-head b { font-size: 14px; }
.bot-config-head p { margin: 5px 0 0; color: var(--text-2); font-size: 12px; line-height: 1.65; }
.bot-config-note {
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  padding: 9px 12px;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.6;
  background: rgba(110, 168, 255, .06);
}
.bot-config-note b { color: var(--text); }
.bot-config-table-wrap {
  max-height: min(54vh, 600px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(9, 14, 26, .45);
}
.bot-config-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12.5px;
}
.bot-config-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 9px 10px;
  text-align: left;
  color: var(--text-2);
  font-weight: 600;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.bot-config-table th:nth-child(1) { width: 88px; text-align: center; white-space: nowrap; font-size: 11.5px; }
.bot-config-table th:nth-child(2) { width: 240px; }
.bot-config-table th:nth-child(3) { width: 250px; }
.bot-config-table td {
  padding: 9px 10px;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.bot-config-table tr:last-child td { border-bottom: 0; }
.bot-config-table tr.is-locked { background: rgba(255, 255, 255, .025); }
.bot-config-table tr.is-off { opacity: .48; }
.bot-config-enabled { text-align: center; padding-top: 13px !important; }
.bot-config-lock { display: inline-block; padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--text-3); font-size: 11px; line-height: 1.4; white-space: nowrap; }
.bot-config-table input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.bot-config-field code { color: var(--brand); font-family: var(--mono); font-size: 11.5px; word-break: normal; overflow-wrap: anywhere; }
.bot-config-field small { display: block; margin-top: 4px; color: var(--text-3); font-size: 11px; line-height: 1.45; }
.bot-config-value input,
.bot-config-json-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 34px;
  padding: 7px 8px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 12px;
}
.bot-config-value input:disabled,
.bot-config-json-input:disabled { opacity: .55; cursor: not-allowed; }
.bot-config-json-input { min-height: 56px; line-height: 1.5; resize: vertical; }
.bot-config-readonly,
.bot-config-readonly-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 7px 8px;
  color: var(--text-3);
  background: rgba(255, 255, 255, .035);
  border: 1px dashed var(--line);
  border-radius: 7px;
  font-size: 12px;
}
.bot-config-readonly-input { font-family: var(--mono); }
.bot-config-bool {
  display: inline-block;
  padding: 5px 9px;
  color: var(--live);
  background: var(--live-soft);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
}
.bot-config-type {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 5px;
  color: var(--text-3);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  font-size: 10px;
  vertical-align: 1px;
}
.bot-config-desc { color: var(--text-2); line-height: 1.6; }

/* ===== v1.0.72：Steam 数据板块 ===== */
.steamdata-source {
  margin: 10px 0 12px;
  padding: 9px 12px;
  color: var(--text-3);
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.55;
}
.steamdata-tabs { margin-bottom: 12px; flex-wrap: wrap; }
.steamdata-panel[hidden] { display: none !important; }
.steam-rank-grid,
.steam-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
}
.steam-rank-card,
.steam-price-card {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: 9px;
}
.steam-rank-card:hover,
.steam-price-card:hover { border-color: var(--line); }
.steam-rank-no {
  flex: none;
  min-width: 34px;
  color: var(--accent, #67d7ff);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}
.steam-game-poster {
  flex: none;
  display: grid;
  place-items: center;
  width: 86px;
  height: 40px;
  overflow: hidden;
  background: var(--surface);
  border-radius: 6px;
}
.steam-game-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.steam-game-poster.empty { color: var(--text-3); font-size: 18px; font-weight: 700; }
.steam-rank-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.steam-rank-main b { overflow: hidden; color: var(--text-1); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.steam-rank-main > span { color: var(--text-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steam-rank-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 1px; }
.steam-rank-foot a { color: var(--text-3); font-size: 11px; text-decoration: none; }
.steam-rank-foot a:hover { color: var(--accent, #67d7ff); text-decoration: underline; }
.steam-price { color: var(--ok, #5ee6a8); font-size: 12px; font-weight: 700; }
.steam-price-search { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.steam-price-search .search-box { flex: 1; min-width: 0; }
.steam-board-table .steam-rank-td { width: 58px; }
.steam-board-table .steam-rank-no { min-width: 0; }
.steam-player-cell { display: flex; align-items: center; gap: 7px; min-width: 0; }
.steam-board-table .steam-player-cell .mini-avatar { width: 26px; height: 26px; flex: none; border-radius: 8px; align-self: center; }
.steam-board-table .steam-player-cell .mini-avatar.empty { padding: 0; display: inline-grid; place-items: center; font-size: 11px; line-height: 1; border-radius: 8px; background: var(--surface); }
@media (max-width: 760px) { .steam-board-table .steam-player-cell .mini-avatar { width: 28px; height: 28px; } }
.steam-player-cell > div { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.steam-player-cell b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steam-player-cell small { color: var(--text-3); font-family: var(--mono); font-size: 10px; }
.steam-level-num { color: var(--accent, #67d7ff); font-family: var(--mono); }
.mini-avatar.empty {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
}
@media (max-width: 700px) {
  .steam-rank-grid,
  .steam-price-grid { grid-template-columns: 1fr; }
  .steam-price-search { flex-direction: column; align-items: stretch; }
  .steam-price-search .btn { width: 100%; }
}

/* ===== v1.0.73：Steam 数据扩展 / SteamID 交互 ===== */
.steamdata-denied {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0;
  padding: 18px;
  color: var(--text-2);
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}
.steamdata-denied b { color: var(--text-1); font-size: 15px; }
.steamdata-denied span { color: var(--text-3); font-size: 12px; line-height: 1.6; }
.steamdata-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}
.steamdata-toolbar .seg { margin: 0; }
.steamdata-country {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-size: 12px;
  white-space: nowrap;
}
.steamdata-country select,
.steamdata-filter-field input {
  min-height: 30px;
  padding: 4px 8px;
  color: var(--text-1);
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
}
.steamdata-filter-field { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12px; }
.steamdata-filter-field input { width: 118px; }
.steamdata-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}
.steamdata-price-actions { align-items: center; gap: 8px; margin-bottom: 10px; }
.steam-card-clickable { cursor: pointer; transition: border-color .16s, transform .16s; }
.steam-card-clickable:hover { border-color: var(--accent, #67d7ff); transform: translateY(-1px); }
.steam-card-clickable:focus-visible { outline: 2px solid var(--accent, #67d7ff); outline-offset: 2px; }
.steam-store-link { color: inherit; text-decoration: none; }
.steam-store-link:hover { color: var(--accent, #67d7ff); text-decoration: underline; }
.steam-card-actions { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.steam-detail-btn {
  padding: 0;
  color: var(--accent, #67d7ff);
  background: none;
  border: 0;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.steam-detail-btn:hover { text-decoration: underline; }
.steam-rank-foot small { color: var(--text-3); font-size: 10px; }
.steam-player-link { color: var(--text-1); text-decoration: none; }
.steam-player-link:hover { color: var(--accent, #67d7ff); text-decoration: underline; }
.steam-player-name { min-width: 0; }
.steam-id-copy {
  padding: 0;
  color: var(--text-3);
  background: none;
  border: 0;
  font: inherit;
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
  text-align: left;
}
.steam-id-copy:hover { color: var(--accent, #67d7ff); }
.steam-game-filter-name { display: block; margin-top: 2px; color: var(--text-3); font-size: 10px; }
.steam-detail { display: flex; flex-direction: column; gap: 14px; }
.steam-detail-hero { display: flex; align-items: flex-start; gap: 14px; }
.steam-detail-hero img { width: 180px; height: 84px; object-fit: cover; border-radius: 8px; background: var(--surface); }
.steam-detail-hero h3 { margin: 0 0 4px; color: var(--text-1); font-size: 17px; }
.steam-detail-sub { margin: 0 0 10px; color: var(--text-3); font-size: 12px; }
.steam-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.steam-detail-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.steam-detail-stat { padding: 8px 10px; background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 8px; }
.steam-detail-stat span { display: block; color: var(--text-3); font-size: 11px; }
.steam-detail-stat b { display: block; margin-top: 3px; color: var(--text-1); font-size: 13px; }
.steam-detail-note { color: var(--text-3); font-size: 12px; line-height: 1.65; }
.steam-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.steam-detail-tags span { padding: 2px 7px; color: var(--text-2); background: var(--surface); border-radius: 999px; font-size: 11px; }
.steam-detail-desc { margin: 0 0 8px; color: var(--text-2); }
.steam-detail-price { margin: 0 0 8px; }
.steam-country-summary { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; color: var(--text-3); font-size: 12px; }
.steam-country-summary b { color: var(--ok, #5ee6a8); }
.steam-country-table-wrap { max-height: 55vh; overflow: auto; }
.country-price-table td { white-space: nowrap; }
.country-price-table .is-lowest td { background: color-mix(in srgb, var(--ok, #5ee6a8) 8%, transparent); }
.sid-id-value {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 5px 8px;
  color: var(--text-1);
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.sid-id-value:hover { border-color: var(--accent, #67d7ff); color: var(--accent, #67d7ff); }
.sid-copy-ico { width: 13px; height: 13px; flex: none; opacity: .55; }
.sid-playing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 12px;
  color: var(--text-2);
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  font-size: 12px;
}
.sid-playing b { color: var(--text-1); }
.sid-playing-id { padding: 1px 5px; color: var(--text-3); background: var(--surface); border-radius: 4px; font-family: var(--mono); font-style: normal; font-size: 10px; }
@media (max-width: 700px) {
  .steamdata-toolbar, .steamdata-filters { align-items: stretch; }
  .steamdata-toolbar .seg, .steamdata-country, .steamdata-filter-field { width: 100%; }
  .steamdata-country select, .steamdata-filter-field input { flex: 1; }
  .steam-detail-hero { flex-direction: column; }
  .steam-detail-hero img { width: 100%; height: 150px; }
}

/* ===== v1.0.74：Steam 汇率对比 ===== */
.steamfx-controls { gap: 10px; }
.steamfx-controls .steamdata-filter-field input { width: 100px; }
.steamfx-swap { white-space: nowrap; font-family: var(--mono); }
.steamfx-swap:hover { border-color: var(--accent); color: var(--accent); }
.steamfx-rate-card {
  padding: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent, #67d7ff) 8%, var(--panel-2)), var(--panel-2));
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  margin-bottom: 12px;
}
.steamfx-rate-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.steamfx-rate-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; color: var(--text-2); font-size: 13px; }
.steamfx-rate-main span { color: var(--text-3); }
.steamfx-rate-main strong { color: var(--text-1); font-family: var(--mono); font-size: 21px; }
.steamfx-rate-main i { color: var(--text-3); font-style: normal; }
.steamfx-rate-main small { color: var(--text-3); }
.steamfx-rate-pair { display: flex; flex-direction: column; gap: 4px; min-width: 170px; padding: 8px 10px; background: var(--surface); border-radius: 8px; }
.steamfx-rate-pair div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.steamfx-rate-pair span { color: var(--text-3); font-size: 11px; }
.steamfx-rate-pair b { color: var(--accent, #67d7ff); font-family: var(--mono); font-size: 12px; }
.steamfx-rate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 6px; margin-top: 12px; }
.steamfx-rate-item { display: flex; flex-direction: column; gap: 1px; padding: 7px 9px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 7px; }
.steamfx-rate-item span { color: var(--accent, #67d7ff); font-family: var(--mono); font-size: 10px; }
.steamfx-rate-item b { color: var(--text-1); font-family: var(--mono); font-size: 13px; }
.steamfx-rate-item small { color: var(--text-3); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steamfx-provider { margin-top: 8px; color: var(--text-3); font-size: 10.5px; }
.steamfx-compare-search { margin-top: 4px; }
.steamfx-empty { padding: 22px 14px; color: var(--text-3); background: var(--panel-2); border: 1px dashed var(--line-soft); border-radius: 9px; text-align: center; font-size: 12px; }
.steamfx-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; padding: 10px; background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 9px; }
.steamfx-game-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.steamfx-game-title b { display: block; color: var(--text-1); font-size: 14px; }
.steamfx-game-title small { color: var(--text-3); font-family: var(--mono); font-size: 10.5px; }
.steamfx-summary { display: flex; flex-wrap: wrap; gap: 8px; color: var(--text-3); font-size: 11.5px; }
.steamfx-summary b { color: var(--ok, #5ee6a8); }
.steamfx-table-wrap { max-height: 58vh; overflow: auto; }
.steamfx-table td { white-space: nowrap; }
.steamfx-table .is-lowest td { background: color-mix(in srgb, var(--ok, #5ee6a8) 8%, transparent); }
.steamfx-table .is-base td { box-shadow: inset 0 0 0 9999px color-mix(in srgb, var(--accent, #67d7ff) 4%, transparent); }
.steamfx-country { display: inline-flex; align-items: center; gap: 6px; }
.steamfx-country em { padding: 0 5px; color: var(--accent, #67d7ff); background: var(--surface); border-radius: 4px; font-size: 9px; font-style: normal; }
.steamfx-rate-text { color: var(--text-3); font-size: 10.5px; }
.steamfx-converted { color: var(--ok, #5ee6a8); font-family: var(--mono); }
.steamfx-table small { color: var(--text-3); font-size: 10px; }
.steamfx-table .is-up { color: var(--danger, #ff6b81); }
.steamfx-table .is-down { color: var(--ok, #5ee6a8); }
@media (max-width: 700px) {
  .steamfx-rate-hero { flex-direction: column; }
  .steamfx-rate-pair { width: 100%; }
  .steamfx-controls { align-items: stretch; }
}

/* ===== v1.0.74：自定义名称多语言 / 权限组 ===== */
.i18n-fields {
  margin: 8px 0 10px;
  padding: 8px 10px;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}
.i18n-fields summary {
  color: var(--text-2);
  font-size: 12px;
  cursor: pointer;
}
.i18n-fields .field-note { margin: 6px 0; }
.i18n-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.i18n-grid .field { margin: 0; }
.i18n-grid input { width: 100%; }
.is-plan-i18n { margin: 2px 0 6px; }
.permission-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 6px;
}
.permission-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  color: var(--text-2);
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  cursor: pointer;
}
.permission-check:hover { border-color: var(--line); }
.permission-check input { margin-top: 2px; accent-color: var(--accent, #67d7ff); }
.permission-check span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.permission-check b { color: var(--text-1); font-size: 12px; }
.permission-check small { color: var(--text-3); font-size: 10.5px; line-height: 1.4; }
.permission-check.is-locked { opacity: .75; cursor: default; }
.permission-groups { display: flex; flex-direction: column; gap: 10px; }
.permission-group {
  padding: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: 9px;
}
.permission-group-head {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.permission-group-head .field { flex: 1; min-width: 160px; margin: 0; }
.permission-group-head .field input { width: 100%; }
.permission-group-head .btn { margin-left: auto; }
.permission-group .permission-check { background: var(--surface); }

/* ==========================================================================
   v1.0.76：个人背景（管理员 / 铂金VIP / 尊享VIP）
   ========================================================================== */
.theme-bg-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.theme-bg-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.theme-bg-head b { display: block; font-size: 14px; }
.theme-bg-head span { display: block; margin-top: 3px; color: var(--text-3); font-size: 11.5px; }
.theme-bg-head small { color: var(--text-3); font-size: 11px; flex: none; }
.theme-bg-preview {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 148px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.03) center / cover no-repeat;
  color: var(--text);
  font-size: 12px;
  overflow: hidden;
  position: relative;
}
.theme-bg-preview-tip {
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(5, 7, 13, .72);
  color: #eef2ff;
  backdrop-filter: blur(6px);
  font-size: 12px;
}
.theme-bg-locked {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
  padding: 12px 13px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--text-3);
  font-size: 12px;
  background: var(--surface);
}
.theme-bg-locked b { color: var(--text); font-size: 13px; }
body.has-personal-bg .appbar {
  background: color-mix(in srgb, var(--bg) 62%, transparent);
}

/* v1.0.76.2：主题中心分页，个人背景入口始终可见 */
.theme-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.theme-tab {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-3);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: .18s ease;
}
.theme-tab small {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 400;
}
.theme-tab.is-on {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}
.theme-pane .theme-bg-section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* v1.0.76.3：个人背景上传按钮 / URL 链接框 */
.theme-bg-upload-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 13px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}
.theme-bg-upload-label { display: block; color: var(--text); font-size: 13px; }
.theme-bg-upload-row small { display: block; margin-top: 3px; color: var(--text-3); font-size: 11px; }
.theme-bg-upload-row .btn { flex: none; }
.theme-bg-file-name { margin: 7px 2px 0; color: var(--text-3); font-size: 11.5px; }

/* =====================================================================
   v1.0.80：首屏加载动画 / 骨架屏 / 操作手册 / 版本更新 / PC 与移动端优化
   ===================================================================== */

/* ---------- 首屏加载动画 ---------- */
.app-loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(760px 520px at 50% 12%, rgba(88, 140, 255, .16), transparent 70%),
    radial-gradient(680px 420px at 82% 82%, rgba(140, 88, 255, .14), transparent 72%),
    var(--bg, #06070e);
  transition: opacity .38s ease, visibility .38s ease;
}
.app-loader.is-hide { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-card {
  width: min(300px, 78vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 26px 22px 22px;
  border-radius: 18px;
  border: 1px solid var(--line-soft, rgba(255,255,255,.08));
  background: color-mix(in srgb, var(--surface, #0d1017) 78%, transparent);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .45);
}
.loader-mark {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--acc-soft, rgba(88,140,255,.16));
  border: 1px solid var(--acc-line, rgba(88,140,255,.32));
}
.loader-mark .ico { width: 24px; height: 24px; color: var(--brand, #6ea8ff); }
.loader-logo { width: 24px; height: 24px; object-fit: contain; border-radius: 6px; }
.loader-ring {
  width: 40px; height: 40px;
  border-width: 2.5px;
  box-shadow: 0 0 18px rgba(110,168,255,.18);
  margin-top: -2px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.12);
  border-top-color: var(--brand, #6ea8ff);
  animation: loaderSpin .9s linear infinite;
}
.loader-title { font-size: 14px; letter-spacing: .02em; }
.loader-sub { font-size: 11.5px; color: var(--text-3, #8b93a7); }
.loader-bar {
  width: 100%; height: 5px;
  margin-top: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.loader-bar i {
  display: block; width: 42%; height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(110,168,255,0), var(--brand, #6ea8ff), rgba(160,120,255,.95), rgba(110,168,255,0));
  box-shadow: 0 0 10px rgba(110,168,255,.55);
  animation: loaderBar 1.25s ease-in-out infinite;
}
.loader-hint { font-size: 10.5px; color: var(--text-3, #8b93a7); opacity: .8; }

@keyframes loaderSpin { to { transform: rotate(360deg); } }
@keyframes loaderBar {
  0% { transform: translateX(-110%); }
  60% { transform: translateX(150%); }
  100% { transform: translateX(150%); }
}

/* ---------- 骨架屏 ---------- */
.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: transparent !important;
  min-height: 12px;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
  transform: translateX(-100%);
  animation: skShine 1.4s ease-in-out infinite;
}
@keyframes skShine { to { transform: translateX(100%); } }

.node-msg.is-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
}
.node-msg.is-loading::before {
  content: '';
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.16);
  border-top-color: var(--brand, #6ea8ff);
  animation: loaderSpin .8s linear infinite;
}

/* ---------- 操作手册 ---------- */
.manual-quick {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.manual-step {
  position: relative;
  padding: 13px 13px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .16s, transform .16s;
}
.manual-step:hover { border-color: var(--acc-line); transform: translateY(-1px); }
.manual-step em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 7px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  background: var(--acc-soft);
  border: 1px solid var(--acc-line);
}
.manual-step b { display: block; margin: 8px 0 4px; font-size: 13px; }
.manual-step p { margin: 0; font-size: 11.5px; line-height: 1.62; color: var(--text-3); }

.manual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.manual-card,
.faq-item {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  contain: content;
}
.manual-card summary,
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  font-size: 12.8px;
  font-weight: 620;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.manual-card summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker { display: none; }
.manual-card summary::after,
.faq-item summary::after {
  content: '+';
  margin-left: auto;
  color: var(--text-3);
  font-weight: 500;
  transition: transform .18s;
}
.manual-card[open] summary::after,
.faq-item[open] summary::after { transform: rotate(45deg); }
.manual-card summary:hover,
.faq-item summary:hover { background: rgba(255, 255, 255, .03); }
.manual-body,
.faq-body {
  padding: 2px 14px 13px;
  font-size: 12px;
  line-height: 1.72;
  color: var(--text-2);
}
.manual-body p,
.faq-body p { margin: 0 0 7px; }
.manual-body ul,
.faq-body ul { margin: 0 0 6px; padding-left: 17px; }
.manual-body li,
.faq-body li { margin: 3px 0; }

.manual-faq { margin-top: 16px; }
.manual-faq h3 { margin: 0 0 10px; font-size: 14px; }
.faq-item + .faq-item { margin-top: 8px; }
.faq-answer { font-size: 13px; color: var(--text); }
.faq-note {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .04);
  border-left: 2px solid var(--acc-line, rgba(88,140,255,.4));
  font-size: 11.5px;
  color: var(--text-3);
}

/* ---------- 版本更新 ---------- */
.timeline { list-style: none; margin: 0; padding: 4px 0 0; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 10px; bottom: 12px;
  width: 1px;
  background: linear-gradient(var(--acc-line), transparent);
}
.timeline-item { position: relative; padding: 0 0 14px 26px; }
.timeline-dot {
  position: absolute;
  left: 2px; top: 6px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--surface-2, #12151d);
  border: 2px solid var(--line-strong, rgba(255,255,255,.22));
}
.timeline-item.is-latest .timeline-dot {
  background: var(--brand, #6ea8ff);
  border-color: var(--acc-line, rgba(88,140,255,.5));
  box-shadow: 0 0 0 4px rgba(88, 140, 255, .16);
}
.timeline-body {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  contain: content;
}
.timeline-item.is-latest .timeline-body { border-color: var(--acc-line); }
.timeline-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.timeline-head b { font-size: 13.5px; }
.timeline-head em { font-style: normal; font-size: 11px; color: var(--text-3); }
.tag {
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-3);
}
.tag-brand {
  color: var(--brand);
  background: var(--acc-soft);
  border-color: var(--acc-line);
}
.timeline-body ul { margin: 7px 0 0; padding-left: 17px; font-size: 12px; line-height: 1.72; color: var(--text-2); }
.timeline-body li { margin: 3px 0; }
.timeline-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--text-3);
  flex-wrap: wrap;
}

/* ---------- PC 端优化 ---------- */
@media (min-width: 1400px) {
  .manual-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (hover: hover) {
  .nav-item:active { transform: translateY(1px); }
  .manual-card, .timeline-body { transition: border-color .16s; }
  .manual-card:hover, .timeline-body:hover { border-color: var(--line-strong, rgba(255,255,255,.2)); }
}

/* ---------- 移动端优化 ---------- */
@media (max-width: 960px) {
  .manual-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manual-grid { grid-template-columns: 1fr; }
  .timeline-foot { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .manual-quick { grid-template-columns: 1fr; }
  .manual-step { padding: 11px 12px; }
  .manual-card summary, .faq-item summary {
    padding: 13px 12px;
    font-size: 13px;
    min-height: 44px;
  }
  .manual-body, .faq-body { padding: 2px 12px 12px; font-size: 12.5px; }
  .timeline-item { padding-left: 22px; }
  .timeline-body { padding: 11px 12px; }
  .timeline-body ul { font-size: 12.5px; }
  .loader-card { padding: 22px 18px 18px; }
}
@media (max-width: 420px) {
  .manual-step b { font-size: 12.5px; }
  .faq-answer { font-size: 12.5px; }
}

/* 移动端安全区与吸顶导航 */
@supports (padding: env(safe-area-inset-bottom)) {
  .appfoot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  #chat-form, .chat-input-row { padding-bottom: env(safe-area-inset-bottom); }
}
@media (max-width: 860px) {
  .appbar { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(140%) blur(14px); }
  .appnav { scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .nav-item { scroll-snap-align: start; min-height: 38px; }
}

/* ===== v1.0.80.4 Steam 数据：国旗列、列对齐与免登录查询 ===== */
.steam-board-table { table-layout: fixed; width: 100%; }
.steam-board-table th.steam-rank-col, .steam-board-table td.steam-rank-td { width: 64px; }
.steam-board-table th.steam-player-col { width: auto; }
.steam-board-table th.steam-flag-col, .steam-board-table td.steam-flag-td { width: 150px; }
.steam-board-table th.steam-link-col { width: 76px; }
.steam-board-table td.ta-r, .steam-board-table th.ta-r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.steam-board-table th { font-size: 11px; letter-spacing: .04em; }
.steam-board-table td { vertical-align: middle; }
.steam-board-table td.steam-player-col { max-width: 0; overflow: hidden; }
.steam-player-cell .steam-player-name { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steam-flag-td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steam-flag-td .steam-flag { font-size: 15px; line-height: 1; margin-right: 5px; filter: saturate(1.1); }
.steam-flag-td .steam-flag-name { font-size: 11.5px; color: var(--text-2); display: inline-block; max-width: 112px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; white-space: nowrap; }
.steam-flag-td.is-empty .steam-flag-name { color: var(--text-3); }
.steam-src-tag { display: inline-block; margin-left: 4px; padding: 0 4px; border-radius: 4px; font-size: 9px; line-height: 14px; color: var(--text-3); border: 1px solid var(--line); vertical-align: middle; }
.steam-board-table tr:hover .steam-flag-td .steam-flag-name { color: var(--text-1); }

.steam-player-lookup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.steam-player-lookup .search-box { flex: 1 1 320px; min-width: 220px; }
.steam-player-lookup .field-note { flex: 1 1 100%; margin: 0; }
.steam-lookup-result { flex: 1 1 100%; }
.steam-lookup-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-1); }
.steam-lookup-card.is-err { border-color: color-mix(in srgb, var(--danger, #e5484d) 45%, var(--line)); }
.steam-lookup-card.is-loading { flex-direction: row; align-items: center; gap: 8px; color: var(--text-2); font-size: 12.5px; }
.steam-lookup-card .slc-head { display: flex; align-items: center; gap: 9px; }
.steam-lookup-card .slc-head > div { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.steam-lookup-card .slc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steam-lookup-card .slc-id { color: var(--text-3); font-family: var(--mono); font-size: 10.5px; }
.steam-lookup-card .slc-region { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.steam-lookup-card .slc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.steam-lookup-card .slc-stat { padding: 8px 10px; border-radius: 8px; background: var(--surface-2); display: flex; flex-direction: column; gap: 3px; }
.steam-lookup-card .slc-stat span { font-size: 11px; color: var(--text-3); }
.steam-lookup-card .slc-stat b { font-size: 15px; font-variant-numeric: tabular-nums; }
.steam-lookup-card .slc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--text-3); }
.steam-lookup-card .slc-foot .link { font-size: 11.5px; }
.head-chip.is-free { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent); }

/* 免登录只读：隐藏 VIP 专属 tab 的强调态，保留可点击提示 */
#view-steamdata.is-rank-only .steamdata-tabs [data-steam-tab="games"],
#view-steamdata.is-rank-only .steamdata-tabs [data-steam-tab="price"],
#view-steamdata.is-rank-only .steamdata-tabs [data-steam-tab="fx"] { opacity: .55; }

@media (max-width: 760px) {
  .steam-board-table { display: block; width: 100%; min-width: 0 !important; table-layout: auto; }
  .steam-board-table tbody { display: block; width: 100%; }
  .steam-board-table thead { display: none; }
  .steam-board-table tbody tr { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 3px 8px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .steam-board-table td { border: 0; padding: 0; }
  .steam-board-table td.steam-rank-td { grid-column: 1; grid-row: 1 / span 2; width: auto; align-self: center; }
  .steam-board-table td.steam-player-col { grid-column: 2; grid-row: 1; min-width: 0; max-width: none; }
  .steam-board-table td.steam-flag-td { grid-column: 3; grid-row: 1; width: auto; text-align: right; }
  .steam-board-table td.hrs-col, .steam-board-table td.lvl-col { grid-column: 2; grid-row: 2; display: inline-flex; gap: 4px; align-items: baseline; font-size: 11.5px; text-align: left; }
  .steam-board-table td.lk-col { grid-column: 3; grid-row: 2; justify-self: end; font-size: 11.5px; white-space: nowrap; }
  .steam-board-table td.gm-col, .steam-board-table td.lvl-hide { display: none; }
  .steam-board-table td.hrs-col::before, .steam-board-table td.lvl-col::before { content: attr(data-label); color: var(--text-3); font-size: 10px; }
  .steam-lookup-card .slc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.login-ladder-link { display: flex; align-items: center; gap: 7px; margin-top: 10px; padding: 9px 12px; border-radius: 9px; border: 1px dashed var(--line); color: var(--text-2); font-size: 12px; text-decoration: none; justify-content: flex-start; }
.login-ladder-link:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); color: var(--text-1); background: var(--surface-2); }
.login-ladder-link .ico { width: 14px; height: 14px; }
.login-ladder-link span { flex: 1; min-width: 0; }

/* v1.0.83：Steam 扫码登录弹窗 */
.qr-login-box { display:flex; gap:22px; align-items:center; margin:6px 0 14px; }
.qr-login-image-wrap { flex:0 0 210px; width:210px; height:210px; display:flex; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:16px; background:rgba(255,255,255,.035); overflow:hidden; }
.qr-login-img { width:198px; height:198px; object-fit:contain; display:block; border-radius:10px; background:#fff; }
.qr-login-placeholder { color:var(--text-3); font-size:12px; text-align:center; padding:14px; }
.qr-login-info { flex:1; min-width:0; }
.qr-login-info p { margin:8px 0; font-size:13px; color:var(--text-2); line-height:1.65; }
.qr-login-status { font-size:14px; font-weight:700; color:var(--brand); margin-bottom:8px; }
.qr-login-status.is-ok { color:var(--live); }
.qr-login-info a { color:var(--brand); word-break:break-all; }
@media (max-width: 640px) {
  .qr-login-box { flex-direction:column; align-items:stretch; gap:12px; }
  .qr-login-image-wrap { align-self:center; }
  .qr-login-info p { font-size:12.5px; }
}

/* v1.0.87：机器人 Steam 令牌分页 / 单条重置删除 / 审计日志 */
.bot-token-pager { margin-top: 10px; }
.bot-token-pager[hidden] { display: none; }
.token-user-row .bot-token-code { max-width: 46vw; }
.steam-audit-box { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.03); }
.steam-audit-box[hidden] { display: none; }
.steam-audit-list { display: flex; flex-direction: column; max-height: 340px; overflow-y: auto; }
.steam-audit-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 7px 0; border-bottom: 1px dashed var(--line-soft); font-size: 11.5px; }
.steam-audit-row code { font-size: 11px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--text-2); background: rgba(255, 255, 255, 0.05); }
.steam-audit-row .muted { font-size: 11px; word-break: break-all; }
[data-theme="light"] .steam-audit-box { background: rgba(15, 23, 42, 0.03); }
[data-theme="light"] .steam-audit-row code { background: rgba(15, 23, 42, 0.05); }
@media (max-width: 720px) {
  .token-user-row .bot-token-code { max-width: 100%; }
}

/* ===== v1.0.88：管理员操作教程 ===== */
.tutorial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.tutorial-card {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--panel-2); display: flex; flex-direction: column;
}
.tutorial-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--surface-2); }
.tutorial-cover.empty { display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 28px; }
.tutorial-main { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tutorial-main h3 { margin: 0; font-size: 15px; }
.tutorial-content { margin: 0; color: var(--text-2); font-size: 12.5px; line-height: 1.7; white-space: pre-line; flex: 1; }
.tutorial-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text-3); font-size: 11px; }
.tutorial-form .field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.tutorial-form textarea { min-height: 150px; resize: vertical; }
.tutorial-form input[type="file"] { padding: 8px; }
.tutorial-preview { margin: 8px 0; }
.tutorial-preview img { max-width: 100%; max-height: 220px; border-radius: 8px; border: 1px solid var(--line); }
@media (max-width: 640px) { .tutorial-grid { grid-template-columns: 1fr; } }

/* ===== v1.0.88：数据库文件备份 / 恢复 ===== */
.backup-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.backup-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface);
  flex-wrap: wrap;
}
.backup-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.backup-main b { color: var(--text); font-size: 13px; }
.backup-main span { color: var(--text-3); font-size: 11.5px; }
.backup-stats em { color: var(--warn); font-style: normal; }
.db-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 10px 0; }
.db-info-cell { padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface-2); }
.db-info-cell span { display: block; color: var(--text-3); font-size: 11.5px; margin-bottom: 4px; }
.db-info-cell b { color: var(--text); font-size: 14px; }
[data-theme="transparent"] .backup-row,
[data-theme="transparent"] .db-info-cell { background: transparent; box-shadow: none; }

/* ================= v1.0.88：管理员拖动排序 / 节点插件 ================= */
.sort-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 6px;
  color: var(--text-3);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-soft);
  cursor: grab;
  user-select: none;
  font-size: 15px;
  line-height: 1;
}
.sort-handle:active { cursor: grabbing; }
.sort-handle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.node-card[draggable="true"], .robot-card[draggable="true"], .user-row[draggable="true"] { cursor: grab; }
.node-card.is-dragging, .robot-card.is-dragging, .user-row.is-dragging { opacity: .45; }
.node-card.drag-over, .robot-card.drag-over, .user-row.drag-over {
  outline: 2px dashed var(--brand);
  outline-offset: 3px;
}
.node-plugins { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 0 2px; }
.plugin-chip {
  display: inline-flex; align-items: center;
  max-width: 100%;
  padding: 1px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--text-2);
  background: rgba(255, 255, 255, .045);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plugin-chip.is-empty { color: var(--text-3); }
[data-theme="transparent"] .sort-handle,
[data-theme="transparent"] .plugin-chip,
[data-theme="transparent"] .plugin-manager-row { background: transparent; box-shadow: none; }
.plugin-manager-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
}
.plugin-manager-row:last-child { border-bottom: 0; }
.plugin-manager-row .plugin-info { min-width: 0; }
.plugin-manager-row .plugin-info b { font-size: 13px; }
.plugin-manager-row .plugin-info p { margin: 4px 0 0; font-size: 11.5px; color: var(--text-3); line-height: 1.5; }
.plugin-manager-row .plugin-info code { font-size: 10.5px; color: var(--text-2); }
.plugin-manager-row .plugin-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; flex: 0 0 auto; }
.plugin-status { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--text-3); }
.plugin-status.is-on { color: var(--ok, #45d6a4); }
.plugin-status.is-off { color: var(--warn); }
@media (max-width: 640px) {
  .plugin-manager-row { flex-direction: column; }
  .plugin-manager-row .plugin-actions { width: 100%; justify-content: flex-start; }
}

/* ================= v1.0.88：总览操作手册板块 ================= */
.manual-hub {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  padding: 18px 20px;
  border-color: var(--acc-line);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(96, 140, 255, 0.14), transparent 58%),
    linear-gradient(135deg, rgba(96, 140, 255, 0.08), rgba(139, 92, 255, 0.035));
}
[data-theme="light"] .manual-hub {
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(96, 140, 255, 0.12), transparent 58%),
    linear-gradient(135deg, rgba(96, 140, 255, 0.06), rgba(139, 92, 255, 0.025));
}
.manual-hub-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--brand);
  background: var(--acc-soft);
  border: 1px solid var(--acc-line);
}
.manual-hub-icon .ico { width: 24px; height: 24px; }
.manual-hub-main { min-width: 0; }
.manual-hub-eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--brand);
  margin-bottom: 3px;
}
.manual-hub-main h2 { font-size: 18px; line-height: 1.25; margin: 0; }
.manual-hub-sub { margin: 5px 0 0; font-size: 12.5px; line-height: 1.65; color: var(--text-3); }
.manual-hub-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.manual-hub-tag {
  display: inline-flex;
  align-items: center;
  height: 23px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font-size: 11px;
}
.manual-hub-action { flex: none; }
@media (max-width: 760px) {
  .manual-hub { grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
  .manual-hub-action { grid-column: 1 / -1; }
  .manual-hub-action .btn { width: 100%; justify-content: center; }
}
.manual-hub-role { border-color: var(--acc-line); background: var(--acc-soft); color: var(--brand); font-weight: 600; }

/* v1.0.88：左侧操作手册板块（角色单独显示） */
.sidebar-manual-card {
  width: 100%;
  height: auto;
  min-height: 54px;
  padding: 9px 10px;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  white-space: normal;
  text-align: left;
  border-radius: 12px;
  border: 1px solid var(--acc-line);
  background: linear-gradient(135deg, rgba(96, 140, 255, 0.11), rgba(139, 92, 255, 0.045));
}
.sidebar-manual-card:hover { background: linear-gradient(135deg, rgba(96, 140, 255, 0.18), rgba(139, 92, 255, 0.08)); }
.sidebar-manual-card.is-active { background: var(--acc-soft); border-color: var(--acc-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.sidebar-manual-icon {
  width: 28px;
  height: 28px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: var(--brand);
  background: var(--acc-soft);
}
.sidebar-manual-icon .ico { width: 16px; height: 16px; }
.sidebar-manual-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sidebar-manual-copy b { font-size: 12.5px; line-height: 1.35; font-weight: 650; color: var(--text); }
.sidebar-manual-copy small { font-family: var(--mono); font-size: 9px; letter-spacing: 0.09em; line-height: 1.2; color: var(--text-3); }
.sidebar-manual-arrow { width: 13px; height: 13px; flex: none; opacity: 0.55; transform: rotate(-90deg); }
@media (max-width: 900px) {
  .appnav-sidebar .sidebar-manual-card { width: auto; min-width: 156px; }
}
.appnav-sidebar .sidebar-manual-card { height: auto; white-space: normal; }
.sidebar-manual-copy b { overflow-wrap: anywhere; word-break: break-word; }

/* v1.0.88：设置页管理员恢复 ./data/db.json */
.db-file-restore {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid var(--acc-line);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(96, 140, 255, 0.10), rgba(139, 92, 255, 0.035));
}
.db-file-restore-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.db-file-restore-copy b { font-size: 13px; color: var(--text); }
.db-file-restore-copy span { font-size: 11.5px; color: var(--text-3); line-height: 1.55; }
.db-file-restore .btn { flex: none; }
@media (max-width: 720px) {
  .db-file-restore { align-items: stretch; flex-direction: column; }
  .db-file-restore .btn { width: 100%; justify-content: center; }
}

/* v1.0.88：节点状态数据板块（管理员） */
.node-data-panel {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  border-color: var(--acc-line);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(110, 168, 255, 0.12), transparent 58%),
    linear-gradient(135deg, rgba(12, 17, 29, 0.78), rgba(12, 17, 29, 0.48));
}
[data-theme="light"] .node-data-panel {
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(42, 91, 215, 0.10), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 254, 0.74));
}
.node-data-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(110, 168, 255, 0.05), transparent);
  mask: linear-gradient(#000, transparent 70%);
}
.node-data-panel .panel-head { position: relative; z-index: 1; }
.node-data-statusline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 11.5px;
  white-space: nowrap;
}
.node-data-statusline b { color: var(--text); }
.node-data-kpis {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 16px;
}
.node-data-kpi {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.node-data-kpi > span {
  display: block;
  margin-bottom: 4px;
  color: var(--text-3);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.node-data-kpi > b {
  display: block;
  color: var(--text);
  font-family: var(--mono);
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.node-data-kpi > em {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--text-3);
  font-size: 10.5px;
  font-style: normal;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.node-data-kpi-bots > b { color: var(--cyan); }
.node-data-kpi-vip > b { color: var(--gold); }
.node-data-kpi-admin > b { color: var(--brand-2); }
.node-data-kpi-all > b { color: var(--live); }
.node-data-table-wrap {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  border-top: 1px solid var(--line-soft);
}
.node-data-table th,
.node-data-table td:not(:first-child) { text-align: center; }
.node-data-table tbody tr:hover { background: var(--surface); }
.node-data-table tfoot td {
  padding-top: 11px;
  padding-bottom: 11px;
  border-top: 1px solid var(--acc-line);
  background: var(--acc-soft);
  color: var(--text-2);
  font-weight: 700;
}
.node-data-table tfoot td:first-child { color: var(--text); }
.node-data-name { display: flex; flex-direction: column; gap: 2px; }
.node-data-name b { color: var(--text); font-size: 12.5px; }
.node-data-name span { color: var(--text-3); font-size: 10.5px; }
.node-data-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; }
.node-data-sub { display: block; margin-top: 2px; color: var(--text-3); font-size: 10.5px; font-weight: 400; }
.node-data-loading,
.node-data-loading-cell { padding: 18px; color: var(--text-3); text-align: center; font-size: 12px; }
.node-data-kpis .node-data-loading { grid-column: 1 / -1; }
.node-data-empty { padding: 22px 10px; }
@media (max-width: 1120px) {
  .node-data-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .node-data-panel .panel-head { align-items: flex-start; gap: 10px; }
  .node-data-panel .panel-head .row-actions { width: 100%; justify-content: space-between; }
  .node-data-statusline { flex: 1; white-space: normal; }
  .node-data-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .node-data-kpi > b { font-size: 20px; }
  .node-data-table th, .node-data-table td { min-width: 88px; }
  .node-data-table th:first-child, .node-data-table td:first-child { min-width: 128px; }
}

/* v1.0.89：总览「正在挂机」板块收纳 */
.panel-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.live-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 0 9px;
  color: var(--text-2);
}
.live-toggle-chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.18s ease;
  transform: rotate(90deg);
}
.panel-live.is-collapsed .live-toggle-chevron { transform: rotate(-90deg); }
.panel-live.is-collapsed { padding-bottom: 16px; }
.panel-live.is-collapsed .monitors { display: none; }
.live-collapsed-note {
  margin: -2px 0 0;
  padding: 9px 12px;
  border: 1px dashed var(--acc-line);
  border-radius: var(--radius);
  background: var(--acc-soft);
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.6;
}
.live-collapsed-note b { color: var(--text); }
@media (max-width: 720px) {
  .panel-head-actions { width: 100%; justify-content: space-between; }
  .live-toggle { min-height: 28px; }
}


/* ================= v1.0.89：透明玻璃主题（所有用户可用） ================= */
[data-theme="transparent"] {
  color-scheme: dark;
  --bg: #05070d;
  --bg-2: #080b14;
  --surface: transparent;
  --surface-2: transparent;
  --panel: transparent;
  --panel-2: transparent;
  --line: rgba(255, 255, 255, .18);
  --line-soft: rgba(255, 255, 255, .09);
  --acc-soft: transparent;
  --acc-line: rgba(110, 168, 255, .38);
  --live-soft: transparent;
  --warn-soft: transparent;
  --err-soft: transparent;
  --shadow-sm: none;
  --shadow: 0 18px 50px -32px rgba(0, 0, 0, .55);
  --shadow-glow: none;
}
[data-theme="transparent"] body { background: transparent; }
[data-theme="transparent"] body.has-site-bg {
  background: transparent;
  --surface: transparent;
  --surface-2: transparent;
  --panel: transparent;
  --panel-2: transparent;
  --line: rgba(255, 255, 255, .2);
  --line-soft: rgba(255, 255, 255, .1);
}
[data-theme="transparent"] .app,
[data-theme="transparent"] .landing,
[data-theme="transparent"] .appbar,
[data-theme="transparent"] .panel,
[data-theme="transparent"] .stat,
[data-theme="transparent"] .node-card,
[data-theme="transparent"] .robot-card,
[data-theme="transparent"] .table-wrap,
[data-theme="transparent"] .login-card,
[data-theme="transparent"] .modal,
[data-theme="transparent"] .toast,
[data-theme="transparent"] .empty,
[data-theme="transparent"] .manual-hub,
[data-theme="transparent"] .tutorial-card,
[data-theme="transparent"] .theme-card,
[data-theme="transparent"] .plan-card,
[data-theme="transparent"] .backup-row,
[data-theme="transparent"] .db-info-cell,
[data-theme="transparent"] .plugin-manager-row,
[data-theme="transparent"] .stat-pill,
[data-theme="transparent"] .robot-filter-chip,
[data-theme="transparent"] .head-chip,
[data-theme="transparent"] .user-dropdown,
[data-theme="transparent"] .theme-card,
[data-theme="transparent"] .data-table th,
[data-theme="transparent"] .data-table td,
[data-theme="transparent"] .node-msg,
[data-theme="transparent"] .form-section,
[data-theme="transparent"] .settings-section {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: blur(16px);
}
[data-theme="transparent"] .btn,
[data-theme="transparent"] .icon-btn,
[data-theme="transparent"] .btn-ghost,
[data-theme="transparent"] .btn-primary,
[data-theme="transparent"] .btn-danger,
[data-theme="transparent"] .btn-warn,
[data-theme="transparent"] .nav-item,
[data-theme="transparent"] .nav-item:hover,
[data-theme="transparent"] .nav-item.is-active,
[data-theme="transparent"] .robot-filter-chip,
[data-theme="transparent"] .robot-filter-chip:hover,
[data-theme="transparent"] .robot-filter-chip.is-active,
[data-theme="transparent"] .tag,
[data-theme="transparent"] .tier,
[data-theme="transparent"] .online-badge,
[data-theme="transparent"] .robot-state,
[data-theme="transparent"] .bot-avatar,
[data-theme="transparent"] .bot-avatar.empty,
[data-theme="transparent"] .user-dd-item,
[data-theme="transparent"] .user-dd-item:hover {
  background: transparent !important;
  box-shadow: none !important;
}
[data-theme="transparent"] .btn-primary,
[data-theme="transparent"] .btn-danger,
[data-theme="transparent"] .btn-warn {
  border-color: var(--brand);
  color: var(--brand);
}
[data-theme="transparent"] .btn-danger { border-color: var(--err); color: var(--err); }
[data-theme="transparent"] .btn-warn { border-color: var(--warn); color: var(--warn); }
[data-theme="transparent"] .nav-item.is-active { border-color: var(--brand); color: var(--brand); }
[data-theme="transparent"] .robot-filter-chip.is-active { border-color: var(--live); color: var(--live); }
[data-theme="transparent"] .data-table th { border-bottom-color: var(--line); }
[data-theme="transparent"] .search,
[data-theme="transparent"] .search-box,
[data-theme="transparent"] input,
[data-theme="transparent"] select,
[data-theme="transparent"] textarea {
  background-color: transparent !important;
  box-shadow: none !important;
}
[data-theme="transparent"] .modal-backdrop { background: rgba(2, 4, 10, .55); }
