/* ==========================================================================
   码仓 · 用户主管理台
   浅色「白卡 + 科技蓝」语言：默认浅色主题，深色主题见 html[data-theme="dark"]。
   结构、间距、字号与组件不变，只通过设计 token 控制配色。
   ========================================================================== */

:root {
  color-scheme: light;

  /* 品牌色：科技蓝（旧变量 --amber 保留为兼容别名） */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-strong: #1d4ed8;
  --primary-solid: #2563eb;
  --primary-soft: rgba(37, 99, 235, 0.1);
  --primary-dim: rgba(37, 99, 235, 0.09);
  --primary-line: rgba(37, 99, 235, 0.26);
  --primary-contrast: #ffffff;
  --primary-shadow: rgba(37, 99, 235, 0.18);
  /* 科技感辅助色：青 */
  --accent: #06b6d4;
  --accent-dim: rgba(6, 182, 212, 0.1);
  --accent-line: rgba(6, 182, 212, 0.26);
  /* 品牌渐变：主按钮 / logo 底 */
  --grad-primary: linear-gradient(135deg, #2563eb, #06b6d4);
  --grad-primary-btn: linear-gradient(135deg, #2563eb 0%, #1d4ed8 55%, #06b6d4 100%);

  /* 中性色 */
  --bg: #f5f6f8;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --surface-3: #f3f4f7;
  --line: #e7e9f0;
  --line-strong: #dce0ea;
  --line-hover: #c9cfdd;
  --text: #1f2430;
  --text-2: #4b5563;
  --text-3: #6b7280;
  --text-4: #9ca3af;
  --hover: rgba(31, 36, 48, 0.045);
  --thead-bg: #f7f8fa;
  --input-bg: #ffffff;
  --topbar-bg: rgba(255, 255, 255, 0.88);
  --sidebar-bg: #ffffff;
  --panel-bg: #ffffff;
  --scrim: rgba(17, 24, 39, 0.38);
  --card-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px rgba(16, 24, 40, 0.07);
  --shadow-lg: 0 24px 64px rgba(16, 24, 40, 0.16);
  --sk-grad: linear-gradient(90deg, #eef0f4 20%, #f7f8fa 42%, #eef0f4 64%);
  --glow-primary: rgba(37, 99, 235, 0.07);
  --glow-mint: rgba(5, 150, 105, 0.04);
  --grid-line: transparent;
  --selection: rgba(37, 99, 235, 0.2);
  --focus-ring: rgba(37, 99, 235, 0.16);
  --danger-contrast: #ffffff;

  /* 语义色 */
  --mint: #059669;
  --mint-dim: rgba(5, 150, 105, 0.09);
  --mint-line: rgba(5, 150, 105, 0.24);
  --red: #dc2626;
  --red-dim: rgba(220, 38, 38, 0.08);
  --red-line: rgba(220, 38, 38, 0.26);
  --warn: #b45309;
  --warn-dim: rgba(217, 119, 6, 0.09);
  --warn-line: rgba(217, 119, 6, 0.26);
  --cyan: #0284c7;
  --cyan-dim: rgba(2, 132, 199, 0.08);
  --cyan-line: rgba(2, 132, 199, 0.22);

  /* 兼容旧变量 */
  --amber: var(--primary);
  --amber-strong: var(--primary-strong);
  --amber-dim: var(--primary-dim);
  --amber-line: var(--primary-line);

  --mono: "SFMono-Regular", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --sidebar-w: 240px;
  --topbar-h: 64px;
  --radius: 15px;
  --radius-sm: 10px;
}

/* 深色主题：结构不变，只换色值（html[data-theme="dark"] 启用） */
html[data-theme="dark"] {
  color-scheme: dark;

  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-strong: #93c5fd;
  --primary-solid: #2563eb;
  --primary-soft: rgba(59, 130, 246, 0.14);
  --primary-dim: rgba(59, 130, 246, 0.13);
  --primary-line: rgba(59, 130, 246, 0.34);
  --primary-contrast: #ffffff;
  --primary-shadow: rgba(59, 130, 246, 0.22);
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.12);
  --accent-line: rgba(34, 211, 238, 0.3);
  --grad-primary: linear-gradient(135deg, #3b82f6, #22d3ee);
  --grad-primary-btn: linear-gradient(135deg, #2563eb 0%, #1d4ed8 55%, #06b6d4 100%);

  --bg: #0b0e13;
  --bg-2: #0e1117;
  --surface: #12161e;
  --surface-2: #171c25;
  --surface-3: #1d2330;
  --line: #232a36;
  --line-strong: #313a4a;
  --line-hover: #3d4759;
  --text: #e9edf3;
  --text-2: #a6aebc;
  --text-3: #77808f;
  --hover: rgba(255, 255, 255, 0.05);
  --thead-bg: #171c25;
  --input-bg: #0e1117;
  --topbar-bg: rgba(11, 14, 19, 0.86);
  --sidebar-bg: #0e1117;
  --panel-bg: #12161e;
  --scrim: rgba(3, 5, 8, 0.7);
  --card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.55);
  --sk-grad: linear-gradient(90deg, #1a212b 20%, #273140 42%, #1a212b 64%);
  --glow-primary: rgba(59, 130, 246, 0.08);
  --glow-mint: rgba(52, 211, 153, 0.04);
  --grid-line: rgba(255, 255, 255, 0.016);
  --selection: rgba(59, 130, 246, 0.28);
  --focus-ring: rgba(59, 130, 246, 0.2);
  --danger-contrast: #2a0708;

  --mint: #34d399;
  --mint-dim: rgba(52, 211, 153, 0.12);
  --mint-line: rgba(52, 211, 153, 0.3);
  --red: #f87171;
  --red-dim: rgba(248, 113, 113, 0.12);
  --red-line: rgba(248, 113, 113, 0.32);
  --warn: #fbbf24;
  --warn-dim: rgba(251, 191, 36, 0.12);
  --warn-line: rgba(251, 191, 36, 0.32);
  --cyan: #38bdf8;
  --cyan-dim: rgba(56, 189, 248, 0.12);
  --cyan-line: rgba(56, 189, 248, 0.3);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.004em;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(760px 420px at 6% -8%, var(--glow-primary), transparent 62%),
    radial-gradient(640px 400px at 100% 0%, var(--glow-mint), transparent 60%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
}

::selection { background: var(--selection); color: var(--text); }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ------------------------------ 外壳 ------------------------------ */

.shell { position: relative; z-index: 1; min-height: 100vh; }

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 60;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--line);
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--topbar-h);
  flex: none;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: #ffffff;
  background: var(--grad-primary);
  border: 1px solid transparent;
  box-shadow: 0 4px 12px var(--primary-shadow);
}

.brand-mark .icon { width: 22px; height: 22px; }

.brand-mark .brand-logo { display: block; width: 21px; height: 21px; }

.brand-mark .brand-logo--white { width: 21px; height: 21px; }

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.brand-sub {
  margin-top: 3px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.side-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.nav-link {
  font-weight: 500;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 10px;
  margin-bottom: 1px;
  border-radius: 8px;
  color: #0F141C;
  font-size: 15px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link .icon { width: 17px; height: 17px; color: var(--text-3); transition: color 0.15s ease; }

.nav-link:hover { color: var(--text); background: var(--hover); }

.nav-link:hover .icon { color: var(--text-2); }

.nav-link.is-active { color: var(--amber-strong); background: var(--amber-dim); }

.nav-link.is-active .icon { color: var(--amber); }

.nav-link.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 2px;
  border-radius: 2px;
  background: var(--amber);
}

.nav-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 10px 7px;
  color: #5A6272;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.nav-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.nav-group.is-active .nav-heading { color: var(--text-2); }

/* 侧边栏外链入口（快捷入口） */
.nav-links { display: block; }

.nav-loading { display: block; margin: 0 10px; color: var(--text-3); font-size: 12px; }

.nav-link.nav-ext {
  width: 100%;
  border: 0;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.nav-link.nav-ext .ext-arrow { display: inline-flex; align-items: center; margin-left: auto; color: var(--text-3); }

.nav-link.nav-ext .ext-arrow .icon { width: 14px; height: 14px; }

.nav-link.nav-ext.is-disabled { color: var(--text-3); cursor: not-allowed; }

.nav-link.nav-ext.is-disabled:hover { color: var(--text-3); background: none; }

.nav-link.nav-ext.is-disabled:hover .icon { color: var(--text-3); }

.nav-link.nav-ext.is-disabled .soon { margin-left: auto; color: var(--text-3); }

.soon {
  margin-left: auto;
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.side-foot {
  flex: none;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-3);
  font-size: 12px;
}

.side-status { display: inline-flex; align-items: center; gap: 6px; }

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px var(--mint-line);
}

.side-version { font-family: var(--mono); }

.main { margin-left: var(--sidebar-w); min-height: 100vh; }

/* ------------------------------ 顶栏 ------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  background: var(--topbar-bg);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.menu-btn { display: none; }

.search-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(440px, 42vw);
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-3);
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.search-trigger:hover { border-color: var(--line-hover); background: var(--surface-3); }

.search-trigger .icon { width: 16px; height: 16px; }

.search-placeholder { flex: 1; font-size: 13px; }

.search-kbd {
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
}

/* 顶栏右侧统一组：三件套同高 36px、圆角 10px、间距 10px、白底 1px #E4E8EF 描边 */
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #E4E8EF;
  border-radius: 10px;
  background: #FFFFFF;
  line-height: 1;
  transition: border-color 0.16s ease;
}

.balance-pill:hover { border-color: var(--primary-line); }

.balance-pill-label { color: var(--text-2); font-size: 12px; line-height: 1; }

.balance-pill-amount { display: inline-flex; align-items: baseline; gap: 4px; }

.balance-pill b {
  color: #2563EB;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.balance-pill-unit { color: var(--text-2); font-size: 12px; line-height: 1; }

.user-menu { position: relative; display: flex; align-items: center; }

.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 8px 0 4px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.user-btn:hover, .user-btn[aria-expanded="true"] { background: #FFFFFF; border-color: #E4E8EF; }

.user-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #EEF3FF;
  color: #2563EB;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.user-avatar.lg { width: 38px; height: 38px; border-radius: 11px; font-size: 15px; }

.user-id { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-family: var(--sans); font-size: 13px; line-height: 1; }

.user-btn .chev { width: 12px; height: 12px; flex: none; color: var(--text-2); }

.user-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
  width: 224px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: pop-in 0.14s ease both;
}

@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.user-pop-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.user-pop-head div { min-width: 0; display: flex; flex-direction: column; }

.user-pop-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 13px; }

.user-pop-head span { color: var(--text-3); font-size: 12px; }

.user-pop a, .user-pop-logout {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 36px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  text-align: left;
}

.user-pop a:hover, .user-pop-logout:hover { background: var(--hover); color: var(--text); }

.user-pop .icon { width: 16px; height: 16px; color: var(--text-3); }

.user-pop-logout { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 7px 7px; color: var(--red); }

.user-pop-logout:hover { background: var(--red-dim); color: var(--red); }

/* ------------------------------ 提醒条 ------------------------------ */

.alert-bar {
  width: min(1440px, calc(100% - 64px));
  margin: 12px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.alert-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 6px 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
}

.alert-item .icon { width: 15px; height: 15px; }

.alert-item a { color: var(--amber-strong); font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }

.alert-item.is-warn { border-color: var(--warn-line); background: var(--warn-dim); color: var(--warn); }

.alert-item.is-danger { border-color: var(--red-line); background: var(--red-dim); color: var(--red); }

.alert-item.is-info { border-color: var(--cyan-line); background: var(--cyan-dim); color: var(--cyan); }

.alert-close {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  opacity: 0.65;
}

.alert-close:hover { opacity: 1; background: var(--hover); }

.alert-close .icon { width: 12px; height: 12px; }

/* ------------------------------ 网页公告（平台下发） ------------------------------ */

.notice-bar {
  width: min(1440px, calc(100% - 64px));
  margin: 12px auto 0;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.notice-bar[hidden] { display: none; }

.notice-bar .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }

.notice-bar .notice-text { flex: 1 1 auto; min-width: 0; }

.notice-bar .notice-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: -1px -2px 0 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  opacity: 0.65;
  cursor: pointer;
}

.notice-bar .notice-close:hover { opacity: 1; background: var(--hover); }

.notice-bar .notice-close .icon { width: 12px; height: 12px; margin: 0; }

.notice-bar.is-info { border-color: var(--cyan-line); background: var(--cyan-dim); color: var(--cyan); }

.notice-bar.is-warn { border-color: var(--warn-line); background: var(--warn-dim); color: var(--warn); }

.notice-bar.is-danger { border-color: var(--red-line); background: var(--red-dim); color: var(--red); }

/* ------------------------------ 内容布局 ------------------------------ */

.view {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding: 28px 0 80px;
  animation: view-in 0.22s ease both;
}

@keyframes view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.page-head .eyebrow { margin-bottom: 8px; }

.page-head h1 {
  margin: 0;
  font-size: 29px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.page-head .lede { margin: 7px 0 0; color: var(--text-2); font-size: 13px; max-width: 68ch; }

.head-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 15px; height: 1px; background: var(--amber); opacity: 0.7; }

.section { margin-top: 24px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.section-head h2 { margin: 0; font-size: 15px; font-weight: 620; letter-spacing: -0.01em; }

.section-head .more { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); font-size: 12px; }

.section-head .more:hover { color: var(--amber); }

.section-head .more .icon { width: 13px; height: 13px; }

/* ------------------------------ 通用组件 ------------------------------ */

.panel {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.14s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.btn:active { transform: translateY(1px); }

.btn:disabled { opacity: 0.48; cursor: not-allowed; transform: none; }

.btn .icon { width: 16px; height: 16px; }

.btn-primary {
  background: var(--grad-primary-btn);
  color: var(--primary-contrast);
  box-shadow: 0 6px 16px var(--primary-shadow);
}

.btn-primary:hover { background: var(--primary-hover); }

.btn-solid { background: var(--grad-primary-btn); color: var(--primary-contrast); }

.btn-solid:hover { background: var(--primary-hover); }

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

.btn-ghost:hover { border-color: var(--line-hover); background: var(--surface-3); }

.btn-soft { border-color: var(--primary-line); background: var(--primary-dim); color: var(--primary); }

.btn-soft:hover { background: var(--primary-line); }

.btn-danger { background: var(--red); color: var(--danger-contrast); }

.btn-danger:hover { filter: brightness(0.94); }

.btn-soft-danger { border-color: var(--red-line); background: var(--red-dim); color: var(--red); }

.btn-sm { min-height: 32px; padding: 0 10px; font-size: 12px; border-radius: 8px; }

.btn-block { width: 100%; }

.btn.is-loading { pointer-events: none; }

.spinner {
  width: 15px;
  height: 15px;
  flex: none;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

button.btn-code {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--grad-primary-btn);
  color: var(--primary-contrast);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 16px var(--primary-shadow);
}

button.btn-code:hover { background: var(--primary-hover); box-shadow: 0 8px 22px var(--primary-shadow); }

button.btn-code .icon { width: 16px; height: 16px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover { background: var(--hover); color: var(--text); border-color: var(--line); }

.icon-btn.is-danger:hover { background: var(--red-dim); color: var(--red); border-color: var(--red-line); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 23px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.pill .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.pill--ok { color: var(--mint); border-color: var(--mint-line); background: var(--mint-dim); }
.pill--warn { color: var(--warn); border-color: var(--warn-line); background: var(--warn-dim); }
.pill--bad { color: var(--red); border-color: var(--red-line); background: var(--red-dim); }
.pill--muted { color: var(--text-3); border-color: var(--line-strong); background: var(--surface-2); }
.pill--info { color: var(--cyan); border-color: var(--cyan-line); background: var(--cyan-dim); }

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 120px;
  padding: 2px 7px;
  border: 1px solid var(--cyan-line);
  border-radius: 5px;
  background: var(--cyan-dim);
  color: var(--cyan);
  font-size: 12px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button.tag-chip { cursor: pointer; }

button.tag-chip:hover { border-color: var(--cyan); }

.tag-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }

.tag-add {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px dashed var(--line-strong);
  border-radius: 5px;
  background: transparent;
  color: var(--text-3);
}

.tag-add:hover { border-color: var(--amber-line); color: var(--amber); }

.tag-add .icon { width: 12px; height: 12px; }

/* ------------------------------ 概览 ------------------------------ */

.overview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.overview-head h1 { margin: 5px 0 0; font-size: 27px; font-weight: 650; letter-spacing: -0.025em; }

.overview-head h1 span { color: var(--amber); }

.overview-head .date { color: var(--text-3); font-family: var(--mono); font-size: 12px; white-space: nowrap; }

.overview-hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr); gap: 12px; }

.balance-hero { position: relative; overflow: hidden; padding: 26px 28px; }

.balance-hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto 40%;
  height: 130%;
  background: radial-gradient(closest-side, var(--glow-primary), transparent 72%);
  pointer-events: none;
}

.balance-hero > * { position: relative; }

.balance-amount { display: flex; align-items: baseline; gap: 7px; margin-top: 7px; line-height: 1; }

.balance-num, .balance-dec {
  font-family: var(--mono);
  font-size: 50px;
  font-weight: 600;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.balance-dec { color: var(--text-2); font-size: 34px; letter-spacing: -0.03em; }

.balance-unit { margin-left: 3px; color: var(--text-3); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; }

.balance-bar { display: flex; height: 5px; margin-top: 20px; border-radius: 99px; overflow: hidden; background: var(--surface-3); }

.balance-bar i { display: block; height: 100%; transition: width 0.4s ease; }

.balance-bar .seg-available { background: linear-gradient(90deg, var(--primary), var(--accent)); }
.balance-bar .seg-frozen { background: var(--text-3); }
.balance-bar .seg-spent { background: var(--line-strong); }

.balance-legend { display: flex; flex-wrap: wrap; gap: 7px 24px; margin-top: 13px; }

.balance-legend .item { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12px; }

.balance-legend .dot { width: 6px; height: 6px; border-radius: 50%; }

.balance-legend b { color: var(--text-2); font-family: var(--mono); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }

.hero-actions { display: flex; gap: 8px; margin-top: 18px; }

.today-hero { display: flex; flex-direction: column; padding: 22px 24px; }

.today-amount { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }

.today-amount b { font-family: var(--mono); font-size: 32px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.today-amount small { color: var(--text-3); font-size: 12px; }

.today-meta { margin-top: 3px; color: var(--text-3); font-size: 12px; }

.spark { display: flex; align-items: flex-end; gap: 5px; height: 56px; margin-top: auto; padding-top: 16px; }

.spark .bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; justify-content: flex-end; }

.spark .bar { width: 100%; min-height: 2px; border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, var(--primary-line), var(--primary-dim)); }

.spark .bar-wrap.is-today .bar { background: linear-gradient(180deg, var(--primary-strong), var(--primary)); }

.spark .day { color: var(--text-3); font-family: var(--mono); font-size: 12px; line-height: 1; }

.service-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }

.service-card {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 166px;
  padding: 17px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-bg);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.service-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.service-card.wide { grid-column: span 3; }

.service-card.is-placeholder { border-style: dashed; background: var(--surface-2); }

.service-card.is-placeholder:hover { transform: none; border-color: var(--line-strong); }

.service-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }

.service-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface-3);
  color: var(--text-2);
}

.service-card[data-tone="amber"] .service-icon { color: var(--amber); border-color: var(--primary-line); background: var(--primary-dim); }
.service-card[data-tone="mint"] .service-icon { color: var(--mint); border-color: var(--mint-line); background: var(--mint-dim); }
.service-card[data-tone="cyan"] .service-icon { color: var(--cyan); border-color: var(--cyan-line); background: var(--cyan-dim); }

.service-title { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 15px; font-weight: 620; }

.service-desc { margin: 3px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.5; }

.service-metrics { display: flex; gap: 22px; margin-top: auto; padding-top: 14px; }

.service-metric { display: flex; flex-direction: column; gap: 1px; }

.service-metric .k { color: var(--text-3); font-size: 12px; }

.service-metric .v { font-family: var(--mono); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }

.service-metric .v small { color: var(--text-3); font-size: 12px; font-weight: 400; }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  color: var(--text-2);
  font-size: 12px;
}

.service-link .icon { width: 13px; height: 13px; }

.service-card:hover .service-link { color: var(--amber); }

.overview-lower { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr); gap: 12px; margin-top: 12px; }

.quick-panel { padding: 18px; }

.quick-panel h2 { margin: 0 0 3px; font-size: 15px; font-weight: 620; }

.quick-panel .sub { color: var(--text-3); font-size: 12px; }

.quick-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 14px; }

.quick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.quick-item:hover { border-color: var(--amber-line); color: var(--text); background: var(--amber-dim); }

.quick-item .icon { width: 24px; height: 24px; color: var(--amber); flex: none; }

.quick-item.is-primary { border-color: var(--primary-line); background: var(--primary-dim); color: var(--primary); }

.recent-panel { overflow: hidden; }

.recent-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--line); }

.recent-head h2 { margin: 0; font-size: 14px; font-weight: 620; }

.recent-head a { color: var(--text-3); font-size: 12px; }

.recent-head a:hover { color: var(--amber); }

.recent-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
}

.recent-row:last-child { border-bottom: 0; }

.recent-row .t { color: var(--text-3); font-family: var(--mono); font-size: 12px; }

.recent-row .m { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: 12px; }

.recent-row .a { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }

.amount-in { color: var(--mint); }
.amount-out { color: var(--text); }
.amount-neutral { color: var(--text-3); }

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

.list-panel { overflow: hidden; }

.table { width: 100%; }

.thead, .trow { display: grid; align-items: center; gap: 14px; padding: 0 18px; }

.thead {
  min-height: 40px;
  border-bottom: 1px solid var(--line);
  background: var(--thead-bg);
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.trow { min-height: 60px; border-bottom: 1px solid var(--line); transition: background 0.14s ease; }

.trow:last-child { border-bottom: 0; }

.trow:hover { background: var(--hover); }

.trow.is-highlight { animation: highlight-row 2.4s ease; }

@keyframes highlight-row {
  0%, 30% { background: var(--primary-dim); }
  100% { background: transparent; }
}

.mail-grid { grid-template-columns: minmax(250px, 1.5fr) 148px 88px 268px; }
.orders-grid { grid-template-columns: 156px minmax(220px, 1fr) 118px 108px; }
.bills-grid { grid-template-columns: 148px 100px 128px 132px minmax(180px, 1fr); }

.cell-right { justify-self: end; text-align: right; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.time-cell { color: var(--text-2); font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }

.addr { display: flex; align-items: center; gap: 6px; min-width: 0; }

.addr-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-family: var(--mono); font-size: 13px; }

.mail-sub { display: block; margin-top: 2px; color: var(--text-3); font-family: var(--mono); font-size: 12px; }

.copy-mini {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: none;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text-3);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.copy-mini:hover { border-color: var(--line-strong); background: var(--surface-3); color: var(--amber); }

.copy-mini .icon { width: 13px; height: 13px; }

.copy-mini.is-copied { color: var(--mint); border-color: var(--mint-line); background: var(--mint-dim); }

.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 31px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.copy-btn:hover { border-color: var(--line-hover); background: var(--surface-3); color: var(--text); }

.copy-btn .icon { width: 13px; height: 13px; }

.copy-btn.is-copied { color: var(--mint); border-color: var(--mint-line); background: var(--mint-dim); }

/* ------------------------------ 筛选 / 工具条 ------------------------------ */

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.filter-label { color: var(--text-3); font-size: 12px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip:hover { color: var(--text); background: var(--hover); }

.chip.is-active { border-color: var(--line-strong); background: var(--surface-3); color: var(--text); }

.chip .count { color: var(--text-3); font-family: var(--mono); font-size: 12px; }

.select-sm {
  height: 32px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background-color: var(--surface-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a3aeb5' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  appearance: none;
  color: var(--text-2);
  font-size: 12px;
}

.filter-spacer { flex: 1; }

.filter-note { color: var(--text-3); font-size: 12px; }

/* 邮箱搜索框：与筛选条同一行，输入既搜地址也搜备注 */
.mail-search {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1 1 240px;
  min-width: 170px;
  max-width: 400px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface-2);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mail-search .icon { width: 14px; height: 14px; flex: none; color: var(--text-3); }

.mail-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.mail-search-input::placeholder { color: var(--text-3); }

.mail-search:focus-within { border-color: var(--amber); box-shadow: 0 0 0 3px var(--focus-ring); }

/* 邮箱行内的备注小标签 */
.mail-remark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  margin-top: 4px;
  padding: 1px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-remark .icon { width: 11px; height: 11px; flex: none; color: var(--text-3); }

/* ------------------------------ 余额页 ------------------------------ */

.balance-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr); gap: 12px; }

.balance-detail { padding: 26px 28px; }

.balance-detail .balance-amount { margin-top: 10px; }

.bucket-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }

.bucket {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}

.bucket .k { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12px; }

.bucket .dot { width: 6px; height: 6px; border-radius: 50%; }

.bucket .v { display: flex; align-items: baseline; gap: 4px; margin-top: 4px; }

.bucket .v b { font-family: var(--mono); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }

.bucket .v small { color: var(--text-3); font-size: 12px; }

.balance-aside { display: flex; flex-direction: column; gap: 12px; }

.side-card { padding: 18px; }

.side-card h3 { margin: 0; font-size: 14px; font-weight: 620; }

.side-card p { margin: 5px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.65; }

.side-links { display: flex; flex-direction: column; gap: 6px; margin-top: 13px; }

.side-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-2);
  font-size: 12px;
}

.side-link:hover { border-color: var(--amber-line); color: var(--text); background: var(--amber-dim); }

.side-link .icon { width: 15px; height: 15px; color: var(--amber); }

/* ------------------------------ 谷歌验证器 ------------------------------ */

.quota {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 15px 18px;
  margin-bottom: 10px;
}

.quota-item { display: flex; flex-direction: column; gap: 1px; min-width: 82px; }

.quota-item .k { color: var(--text-3); font-size: 12px; }

.quota-item .v { font-family: var(--mono); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }

.quota-item .v em { color: var(--text-3); font-size: 12px; font-style: normal; font-weight: 400; }

.quota-bar-wrap { flex: 1; min-width: 170px; }

.quota-bar { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: var(--surface-3); }

.quota-bar i { display: block; height: 100%; }

.quota-bar .used { background: linear-gradient(90deg, var(--primary), var(--accent)); }
.quota-bar .paid { background: var(--mint); opacity: 0.62; }

.quota-bar-labels { display: flex; justify-content: space-between; margin-top: 5px; color: var(--text-3); font-size: 12px; }

.otp-list { overflow: hidden; }

.otp-row {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) 194px 80px 168px;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}

.otp-row:last-child { border-bottom: 0; }

.otp-row:hover { background: var(--hover); }

.otp-row.is-highlight { animation: highlight-row 2.4s ease; }

.otp-id { display: flex; align-items: center; gap: 11px; min-width: 0; }

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.otp-id .meta { min-width: 0; }

.otp-id .issuer { display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }

.otp-id .account { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-family: var(--mono); font-size: 12px; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0 5px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
}

.otp-code-wrap { display: flex; align-items: center; }

.otp-code {
  padding: 5px 9px;
  margin-left: -9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.otp-code:hover { border-color: var(--line-strong); background: var(--surface-3); color: var(--amber); }

.otp-timer { display: flex; align-items: center; gap: 7px; color: var(--text-2); font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }

.ring { transform: rotate(-90deg); }

.ring circle { fill: none; stroke-width: 2.4; }

.ring .ring-bg { stroke: var(--line-strong); }

.ring .ring-fg { stroke: var(--mint); stroke-linecap: round; transition: stroke-dashoffset 0.22s linear, stroke 0.2s ease; }

.is-urgent .ring .ring-fg { stroke: var(--red); }

.is-urgent .otp-code, .is-urgent .quick-code { color: var(--red); }

.otp-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }

.otp-row.is-locked { background: var(--bg); }

.otp-row.is-locked .avatar { color: var(--text-3); background: var(--surface-3); }

.locked-code { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--text-3); font-size: 12px; }

.locked-code .icon { width: 14px; height: 14px; }

.otp-row.is-broken .otp-code { color: var(--red); }

/* ------------------------------ 钱包 ------------------------------ */

.wallet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.wallet-card { padding: 17px 18px; }

.wallet-card.is-highlight { animation: highlight-row 2.4s ease; }

.wallet-card .w-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.wallet-name { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text); }

.wallet-name .icon { width: 15px; height: 15px; color: var(--text-3); }

.wallet-addr {
  margin: 11px 0 13px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  word-break: break-all;
}

.wallet-bals { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.wallet-bal { padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }

.wallet-bal .k { display: block; color: var(--text-3); font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; }

.wallet-bal .v { display: flex; align-items: baseline; gap: 4px; margin-top: 1px; }

.wallet-bal .v b { font-family: var(--mono); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }

.wallet-bal .v small { color: var(--text-3); font-size: 12px; }

.wallet-bal.is-down .v b { color: var(--text-3); }

.wallet-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; color: var(--text-3); font-size: 12px; }

/* ------------------------------ 占位页 ------------------------------ */

.placeholder-hero {
  position: relative;
  overflow: hidden;
  padding: 44px 40px;
  text-align: center;
}

.placeholder-hero::before {
  content: "";
  position: absolute;
  inset: -60% 20% auto;
  height: 120%;
  background: radial-gradient(closest-side, var(--glow-primary), transparent 72%);
  pointer-events: none;
}

.placeholder-hero > * { position: relative; }

.placeholder-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border: 1px solid var(--amber-line);
  border-radius: 15px;
  background: var(--amber-dim);
  color: var(--amber);
}

.placeholder-icon .icon { width: 26px; height: 26px; }

.placeholder-hero h2 { margin: 0; font-size: 21px; font-weight: 650; letter-spacing: -0.02em; }

.placeholder-hero p { max-width: 56ch; margin: 7px auto 0; color: var(--text-3); font-size: 13px; line-height: 1.7; }

.placeholder-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 3px 10px;
  border: 1px solid var(--amber-line);
  border-radius: 999px;
  background: var(--amber-dim);
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.planned-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 20px; }

.planned-list span { padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text-2); font-size: 12px; }

.roadmap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }

.roadmap-card { padding: 17px 18px; }

.roadmap-card .k { display: flex; align-items: center; gap: 7px; color: var(--text-3); font-family: var(--mono); font-size: 12px; }

.roadmap-card h3 { margin: 8px 0 0; font-size: 14px; font-weight: 600; }

.roadmap-card p { margin: 4px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.6; }

.ghost-table { overflow: hidden; }

.ghost-table .thead { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ghost-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 15px 18px; border-bottom: 1px dashed var(--line); }

.ghost-row:last-child { border-bottom: 0; }

.ghost-row span { height: 11px; border-radius: 4px; background: var(--sk-grad); background-size: 220% 100%; animation: shimmer 1.6s ease-in-out infinite; opacity: 0.55; }

.ghost-row span:nth-child(2) { width: 70%; }
.ghost-row span:nth-child(3) { width: 50%; }
.ghost-row span:nth-child(4) { width: 60%; }

/* ------------------------------ 登录 ------------------------------ */

.login {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  min-height: 100svh;
  background: var(--bg);
}

.login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px clamp(34px, 5vw, 72px) 34px;
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.login-brand::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -20%;
  height: 80%;
  background: radial-gradient(closest-side, var(--glow-primary), transparent 72%);
  pointer-events: none;
}

.login-brand > * { position: relative; }

/* 左栏只剩一句主标题：让它在「品牌」与「页脚」之间垂直居中 */
.login-brand > div:first-of-type { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }

.login-story { max-width: 540px; margin: auto 0; }

.login-story h1 { margin: 15px 0 0; font-size: clamp(32px, 3.3vw, 47px); font-weight: 650; line-height: 1.24; letter-spacing: -0.035em; }

.login-story h1 em { color: var(--amber); font-style: normal; }

.login-story p { max-width: 45ch; margin: 17px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.75; }

/* ------------------------------ 登录页品牌视觉（纯 SVG + CSS） ------------------------------ */

/* 桌面约 420×320，随左栏宽度与窗口高度等比缩放；移动端隐藏（见下方 820px 断点） */
.login-art {
  position: relative;
  flex: none;
  width: min(420px, 100%, 54vh);
  aspect-ratio: 420 / 320;
  margin: 0 0 clamp(16px, 2.4vh, 26px);
  pointer-events: none;
  user-select: none;
  animation: la-in 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.login-art svg { display: block; width: 100%; height: 100%; overflow: visible; }

.login-art text { font-family: var(--sans); }

.login-art .la-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.login-art .la-label { fill: var(--text-3); font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; }

.login-art .la-value { fill: var(--text); font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }

.login-art .la-unit { fill: var(--text-3); font-size: 9.5px; letter-spacing: 0.04em; }

.login-art .la-value .la-unit { font-weight: 400; }

.login-art .la-ok { fill: var(--mint); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }

.login-art .la-dot { fill: var(--mint); }

/* 半透明白卡：细边框 + 轻投影；深色主题随设计 token 自动换色 */
.login-art .la-card-bg { fill: var(--panel-bg); fill-opacity: 0.8; stroke: var(--line-strong); stroke-width: 1; }

.login-art .la-chip { fill: var(--primary-dim); }

.login-art .la-icon { stroke: var(--primary); }

/* 轻微视差浮动：每张卡不同周期与相位，幅度 8–11px */
.login-art .la-card { animation: la-float 8s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }

.login-art .la-card--code { --dy: -11px; animation-duration: 7.4s; animation-delay: -1.4s; }

.login-art .la-card--wallet { --dy: -9px; animation-duration: 8.6s; animation-delay: -3.2s; }

.login-art .la-card--line { --dy: -10px; animation-duration: 6.6s; animation-delay: -0.6s; }

.login-art .la-card--check { --dy: -8px; animation-duration: 9.2s; animation-delay: -4.4s; }

.login-art .la-halo { animation: la-breathe 9s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }

.login-art .la-orbit { animation: la-spin 46s linear infinite; transform-origin: 150px 152px; }

@keyframes la-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes la-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(var(--dy, -10px)); }
}

@keyframes la-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.72; transform: scale(1.035); }
}

@keyframes la-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .login-art,
  .login-art .la-card,
  .login-art .la-halo,
  .login-art .la-orbit { animation: none !important; }
}

.login-demo {
  position: relative;
  width: min(360px, 100%);
  margin-top: 30px;
  padding: 17px 19px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: var(--panel-bg);
  box-shadow: var(--shadow);
}

.login-demo::after { content: "示例"; position: absolute; top: 13px; right: 15px; color: var(--text-3); font-size: 12px; }

.login-demo .d-label { display: flex; align-items: center; gap: 7px; color: var(--text-3); font-size: 12px; }

.login-demo .d-code { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; }

.login-demo .d-code b { font-family: var(--mono); font-size: 31px; font-weight: 600; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }

.quick-side { display: flex; align-items: center; gap: 9px; }

.quick-secs { min-width: 26px; color: var(--text-3); font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }

.login-points { display: flex; flex-wrap: wrap; gap: 9px 22px; margin: 28px 0 0; padding: 0; list-style: none; }

.login-points li { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12px; }

.login-points .icon { width: 14px; height: 14px; color: var(--mint); }

.login-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; color: var(--text-3); font-family: var(--mono); font-size: 12px; }

.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px clamp(24px, 5vw, 68px); background: var(--bg-2); }

.login-card { width: min(378px, 100%); }

.login-card h2 { margin: 0; font-size: 25px; font-weight: 650; letter-spacing: -0.02em; }

.login-card > p { margin: 6px 0 26px; color: var(--text-3); font-size: 13px; }

.login-card .field + .field { margin-top: 15px; }

.login-card .btn { min-height: 45px; margin-top: 20px; font-size: 14px; }

.login-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 15px 0 0; color: var(--text-3); font-size: 12px; text-align: center; }

.login-note .icon { width: 14px; height: 14px; }

.login-help { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12px; line-height: 1.7; }

.login-help b { color: var(--text-2); font-weight: 500; }

/* 登录 / 注册两态切换（同一面板内，不跳路由） */
.login-card[hidden] { display: none; }

.login-switch { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; color: var(--text-3); font-size: 12.5px; }

.login-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

.login-link:hover { color: var(--primary-strong); text-decoration-color: currentColor; }

.login-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* 注册视图字段较密：收一点间距，避免小屏溢出 */
#registerForm .field + .field { margin-top: 13px; }

#registerForm .field-label .hint { font-size: 11px; }

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

.field { display: block; }

.field + .field { margin-top: 13px; }

.field-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; color: var(--text-2); font-size: 12px; font-weight: 600; }

.field-label .hint { color: var(--text-3); font-weight: 400; }

.input, .select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.input::placeholder { color: var(--text-3); }

.input:hover, .select:hover { border-color: var(--line-hover); }

.input:focus, .select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--input-bg);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.input:disabled, .select:disabled { opacity: 0.55; cursor: not-allowed; }

.input--mono { font-family: var(--mono); letter-spacing: 0.03em; }

.select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a3aeb5' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  padding: 9px 11px;
  border: 1px solid var(--red-line);
  border-radius: 8px;
  background: var(--red-dim);
  color: var(--red);
  font-size: 12px;
}

.form-error .icon { width: 15px; height: 15px; margin-top: 1px; }

.form-note { display: flex; align-items: center; gap: 6px; margin: 11px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.55; }

.form-note .icon { width: 14px; height: 14px; }

.form-note.is-bad { color: var(--red); }

.advanced { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }

.advanced summary { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12px; cursor: pointer; list-style: none; }

.advanced summary::-webkit-details-marker { display: none; }

.advanced summary::before { content: "+"; display: inline-grid; place-items: center; width: 15px; height: 15px; border: 1px solid var(--line-strong); border-radius: 4px; font-family: var(--mono); line-height: 1; }

.advanced[open] summary::before { content: "−"; }

.advanced-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; margin-top: 11px; }

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

.toasts {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 140;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  animation: toast-in 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.toast.is-out { animation: toast-out 0.18s ease both; }

@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

.toast .t-icon { display: grid; place-items: center; width: 23px; height: 23px; flex: none; margin-top: 1px; border-radius: 6px; }

.toast .t-icon .icon { width: 14px; height: 14px; }

.toast--success .t-icon { color: var(--mint); background: var(--mint-dim); }
.toast--error .t-icon { color: var(--red); background: var(--red-dim); }
.toast--info .t-icon { color: var(--cyan); background: var(--cyan-dim); }

.toast .t-body { flex: 1; min-width: 0; }

.toast .t-title { font-size: 13px; font-weight: 600; }

.toast .t-msg { margin-top: 1px; color: var(--text-2); font-size: 12px; line-height: 1.5; word-break: break-word; }

.toast .t-close { flex: none; display: grid; place-items: center; width: 23px; height: 23px; border: 0; border-radius: 5px; background: transparent; color: var(--text-3); }

.toast .t-close:hover { color: var(--text); background: var(--hover); }

.toast .t-close .icon { width: 12px; height: 12px; }

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: var(--scrim);
  backdrop-filter: blur(6px);
  animation: fade-in 0.16s ease both;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal {
  display: flex;
  flex-direction: column;
  width: min(480px, 100%);
  max-height: calc(100svh - 48px);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
}

.modal--wide { width: min(560px, 100%); }

@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } to { opacity: 1; transform: none; } }

.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 19px 20px 0; }

.modal-head h3 { margin: 0; font-size: 18px; font-weight: 620; letter-spacing: -0.01em; }

.modal-head p { margin: 4px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.55; }

.modal-body { padding: 17px 20px 19px; overflow-y: auto; }

.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 0 20px 18px; }

.modal-foot .foot-left { margin-right: auto; color: var(--text-3); font-size: 12px; }

/* 购买 / 数量 */

.buy-summary { margin-top: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }

.buy-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }

.buy-line + .buy-line { margin-top: 7px; }

.buy-line .k { color: var(--text-3); }

.buy-line .v { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.buy-line.total { margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--line-strong); }

.buy-line.total .v { color: var(--amber); font-size: 18px; font-weight: 600; }

.qty-stepper { display: flex; align-items: center; width: 146px; height: 42px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--input-bg); }

.qty-stepper button { display: grid; place-items: center; width: 41px; height: 100%; border: 0; background: transparent; color: var(--text-2); transition: background 0.15s ease, color 0.15s ease; }

.qty-stepper button:hover { background: var(--surface-3); color: var(--text); }

.qty-stepper button:disabled { opacity: 0.35; cursor: not-allowed; }

.qty-stepper .icon { width: 14px; height: 14px; }

.qty-stepper input { width: 63px; height: 100%; padding: 0; border: 0; border-right: 1px solid var(--line); border-left: 1px solid var(--line); background: transparent; color: var(--text); text-align: center; font-family: var(--mono); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }

.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* 验证码结果 */

.code-reveal { padding: 5px 0 1px; text-align: center; }

.code-reveal .from { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; color: var(--text-3); font-size: 12px; }

.code-reveal .from .icon { width: 14px; height: 14px; }

.code-reveal .from span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); }

.code-reveal .big-code { margin: 14px 0 3px; color: var(--amber); font-family: var(--mono); font-size: clamp(40px, 7vw, 54px); font-weight: 600; line-height: 1.1; letter-spacing: 0.13em; text-indent: 0.13em; font-variant-numeric: tabular-nums; user-select: all; }

.code-reveal .meta { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text-3); font-size: 12px; }

.code-reveal .meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }

.code-reveal .big-note { margin: 10px 0 0; color: var(--text-3); font-size: 12px; }

/* 确认 */

.confirm-body { display: flex; align-items: flex-start; gap: 13px; }

.confirm-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid rgba(240, 116, 103, 0.32); border-radius: 11px; background: var(--red-dim); color: var(--red); }

.confirm-icon .icon { width: 19px; height: 19px; }

.confirm-body p { margin: 1px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.65; }

.confirm-body b { color: var(--text); font-weight: 600; }

/* 标签编辑 */

.tag-editor-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }

/* ------------------------------ 搜索面板 ------------------------------ */

.search-layer { position: fixed; inset: 0; z-index: 130; display: flex; align-items: flex-start; justify-content: center; padding: 11vh 20px 24px; background: var(--scrim); backdrop-filter: blur(7px); animation: fade-in 0.14s ease both; }

.search-panel { width: min(640px, 100%); max-height: 70svh; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-lg); }

.search-input-row { display: flex; align-items: center; gap: 10px; padding: 0 15px; border-bottom: 1px solid var(--line); }

.search-input-row .icon { width: 19px; height: 19px; color: var(--text-3); }

.search-input { flex: 1; height: 56px; border: 0; background: transparent; color: var(--text); font-size: 15px; outline: none; }

.search-input::placeholder { color: var(--text-3); }

.search-esc { padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--text-3); font-family: var(--mono); font-size: 12px; }

.search-body { overflow-y: auto; padding: 7px; }

.search-empty { padding: 34px 20px; color: var(--text-3); font-size: 13px; text-align: center; }

.search-group { margin-bottom: 5px; }

.search-group-title { display: flex; align-items: center; gap: 6px; padding: 8px 9px 5px; color: var(--text-3); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; }

.search-group-title .icon { width: 13px; height: 13px; }

.search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  text-align: left;
}

.search-item:hover, .search-item:focus-visible { outline: none; background: var(--hover); color: var(--text); }

.search-item-main { flex: 1; min-width: 0; }

.search-item-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; }

.search-item-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-family: var(--mono); font-size: 12px; }

.search-item .pill { flex: none; }

/* ------------------------------ 空 / 错 / 骨架 ------------------------------ */

.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 48px 22px; text-align: center; }

.empty-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 5px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-2); color: var(--text-3); }

.empty-icon .icon { width: 21px; height: 21px; }

.empty-state b { font-size: 14px; font-weight: 600; }

.empty-state p { max-width: 380px; margin: 0 0 9px; color: var(--text-3); font-size: 12px; }

.error-state { display: flex; align-items: flex-start; gap: 11px; padding: 18px; border: 1px solid rgba(240, 116, 103, 0.28); border-radius: 12px; background: var(--red-dim); }

.error-state .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--red); }

.error-state b { display: block; color: var(--red); font-size: 13px; }

.error-state p { margin: 2px 0 0; color: var(--text-2); font-size: 12px; }

.sk { display: block; height: 11px; border-radius: 4px; background: var(--sk-grad); background-size: 220% 100%; animation: shimmer 1.25s ease-in-out infinite; }

@keyframes shimmer { from { background-position: 180% 0; } to { background-position: -40% 0; } }

.skeleton-row { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 18px; border-bottom: 1px solid var(--line); }

.skeleton-row:last-child { border-bottom: 0; }

.notice { display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: 13px; }

.notice .icon { width: 16px; height: 16px; flex: none; margin-top: 1px; }

.notice--warn { border-color: var(--warn-line); background: var(--warn-dim); color: var(--warn); }
.notice--danger { border-color: var(--red-line); background: var(--red-dim); color: var(--red); }
.notice--info { border-color: var(--cyan-line); background: var(--cyan-dim); color: var(--cyan); }

/* ------------------------------ 内容区块 ------------------------------ */

.stats-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; margin-bottom: 10px; }

.stat-cell { padding: 14px 17px; }

.stat-cell + .stat-cell { border-left: 1px solid var(--line); }

.stat-cell .k { display: block; color: var(--text-3); font-size: 12px; }

.stat-cell .v { display: flex; align-items: baseline; gap: 4px; margin-top: 3px; font-family: var(--mono); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }

.stat-cell .v small { color: var(--text-3); font-family: var(--sans); font-size: 12px; font-weight: 400; }

.stat-cell .sub { display: block; margin-top: 1px; color: var(--text-3); font-size: 12px; }

.mint { color: var(--mint); }
.amber { color: var(--warn); }
.red { color: var(--red); }
.muted { color: var(--text-3); }

.orders-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12px; }

/* ------------------------------ 响应式 ------------------------------ */

@media (max-width: 1200px) {
  .view, .alert-bar, .notice-bar, .topbar { padding-left: 24px; padding-right: 24px; }
  .view, .alert-bar, .notice-bar { width: calc(100% - 48px); }
  .topbar { padding: 0 24px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card, .service-card.wide { grid-column: span 1; }
  .service-card:last-child { grid-column: span 2; }
}

@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.22s ease; box-shadow: var(--shadow-lg); }
  .sidebar.is-open { transform: none; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-grid; }
  .drawer-scrim { position: fixed; inset: 0; z-index: 55; background: var(--scrim); backdrop-filter: blur(2px); }
  .view, .alert-bar, .notice-bar { width: calc(100% - 48px); }
  .overview-hero, .overview-lower { grid-template-columns: 1fr; }
  .today-hero { min-height: 170px; }
  .balance-grid { grid-template-columns: 1fr; }
  .topbar { padding: 0 24px; }
  .search-trigger { width: min(380px, 38vw); }
}

@media (max-width: 820px) {
  .topbar { padding: 0 16px; gap: 10px; }
  .view, .alert-bar, .notice-bar { width: calc(100% - 32px); }
  .view { padding-top: 22px; }
  .alert-bar { margin-top: 10px; }
  .notice-bar { margin-top: 10px; }
  .search-trigger { width: 38px; padding: 0; justify-content: center; }
  .search-placeholder, .search-kbd { display: none; }
  .balance-pill { padding: 0 10px; }
  .balance-pill-label { display: none; }
  .user-id, .user-btn .chev { display: none; }
  .user-btn { padding: 0 4px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .head-actions { width: 100%; }
  .head-actions .btn { flex: 1; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card, .service-card:last-child, .service-card.wide { grid-column: span 1; }
  .quick-list { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(3) { border-left: 0; }
  .stat-cell:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .bucket-grid { grid-template-columns: 1fr; }
  .wallet-grid { grid-template-columns: 1fr; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .thead { display: none; }
  .trow { grid-template-columns: minmax(0, 1fr) auto; gap: 9px 12px; padding: 14px 16px; }
  .trow .cell-date { grid-column: 1; grid-row: 2; }
  .trow .cell-status { grid-column: 2; grid-row: 1; justify-self: end; }
  .trow .cell-main { grid-column: 1; grid-row: 1; min-width: 0; }
  .trow .cell-action { grid-column: 2; grid-row: 2; justify-self: end; }
  .trow .cell-amount { grid-column: 2; grid-row: 1; justify-self: end; }
  .bills-grid .cell-date { grid-row: 2; }
  .bills-grid .cell-main { grid-row: 2; grid-column: 1; margin-top: 16px; }
  .bills-grid .cell-amount { grid-row: 1; }
  .orders-grid .cell-amount { display: none; }
  .otp-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id actions" "code timer"; row-gap: 8px; padding: 13px 16px; }
  .otp-id { grid-area: id; }
  .otp-code-wrap { grid-area: code; }
  .otp-timer { grid-area: timer; justify-self: end; }
  .otp-actions { grid-area: actions; }
  .otp-row.is-locked { grid-template-areas: "id actions" "code code"; }
  .otp-row.is-locked .otp-timer { display: none; }
  .quota { gap: 13px; }
  .quota-item { flex: 1; min-width: 0; }
  .quota-bar-wrap { order: 9; flex-basis: 100%; }
  .placeholder-hero { padding: 34px 22px; }
  .login { grid-template-columns: 1fr; }
  .login-brand { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 26px; }
  .login-story { margin: auto 0; }
  .login-story h1 { font-size: 33px; }
  .login-art { display: none; }
  .login-demo, .login-points, .login-footer { display: none; }
  .login-panel { align-items: flex-start; padding: 34px 22px 52px; }
  .login-card { width: min(440px, 100%); margin: 0 auto; }
  .form-row, .advanced-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .overview-head { flex-direction: column; align-items: flex-start; gap: 7px; }
  .overview-head h1 { font-size: 23px; }
  .balance-hero { padding: 20px; }
  .balance-num { font-size: 42px; }
  .balance-dec { font-size: 28px; }
  .balance-legend { gap: 6px 16px; }
  .balance-detail { padding: 20px; }
  .balance-amount { flex-wrap: wrap; }
  .today-hero { padding: 18px 20px; }
  .hero-actions { flex-wrap: wrap; }
  .page-head h1 { font-size: 25px; }
  .filter-bar { gap: 7px; }
  .filter-note { display: none; }
  .recent-row { grid-template-columns: 64px minmax(0, 1fr) auto; padding: 10px 14px; }
  .toasts { right: 16px; bottom: 16px; }
  .search-layer { padding: 8vh 12px 16px; }
  .search-panel { max-height: 76svh; }
  .placeholder-hero h2 { font-size: 19px; }
  .modal-backdrop { padding: 12px; align-items: end; }
  .modal { max-height: calc(100svh - 24px); }
  .modal-foot { flex-wrap: wrap; }
  .modal-foot .btn { flex: 1; }
  .ghost-row { grid-template-columns: 1fr 1fr; }
  .ghost-table .thead { grid-template-columns: 1fr 1fr; }
  .ghost-table .thead span:nth-child(n + 3) { display: none; }
}

@media (max-width: 420px) {
  .balance-num { font-size: 37px; }
  .balance-dec { font-size: 24px; }
  .otp-code { font-size: 21px; }
  .stats-strip { grid-template-columns: 1fr; }
  .stat-cell + .stat-cell { border-top: 1px solid var(--line); border-left: 0; }
  .login-brand { padding: 24px 18px 22px; }
  .login-story h1 { font-size: 28px; }
  .login-panel { padding: 28px 18px 44px; }
}

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

/* ------------------------------ 移动端邮箱行 ------------------------------ */

@media (max-width: 820px) {
  .mail-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .mail-grid .cell-main { grid-column: 1 / -1; grid-row: 1; }
  .mail-grid .cell-status { grid-column: 1; grid-row: 2; justify-self: start; }
  .mail-grid .cell-date { grid-column: 2; grid-row: 2; justify-self: end; }
  .mail-grid .cell-action { grid-column: 1 / -1; grid-row: 3; justify-self: stretch; }
  .mail-grid .cell-action .row-actions { justify-content: space-between; }
  .mail-grid .cell-action .btn-code { flex: 1; }
}


/* ------------------------------ 移动端指标与名额 ------------------------------ */

.alert-item a { white-space: nowrap; }

@media (max-width: 640px) {
  .quota {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    align-items: start;
  }
  .quota-item { min-width: 0; }
  .quota-item .v { white-space: nowrap; }
  .quota-item .v em { display: block; margin-top: 2px; }
  .quota-bar-wrap { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat-cell + .stat-cell { border-top: 0; border-left: 1px solid var(--line); }
  .stat-cell:nth-child(3) { border-left: 0; }
  .stat-cell:nth-child(n + 3) { border-top: 1px solid var(--line); }
}


/* ------------------------------ 登录态外壳 ------------------------------ */

body.is-login .sidebar,
body.is-login .topbar,
body.is-login .alert-bar,
body.is-login .notice-bar,
body.is-login .drawer-scrim { display: none !important; }

body.is-login .main { margin-left: 0; }

body.is-login .view { width: 100%; padding: 0; }

/* ------------------------------ 充值 ------------------------------ */

.recharge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 12px;
  margin-bottom: 12px;
}

.address-card { position: relative; overflow: hidden; padding: 24px 26px; }

.address-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.address-head .eyebrow { white-space: nowrap; }

.deposit-address {
  margin-top: 15px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.6;
  word-break: break-all;
}

.address-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

.address-actions .form-note { margin: 0; }

.qr-slot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
}

.qr-box {
  display: grid;
  place-items: center;
  gap: 5px;
  width: 92px;
  height: 92px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.qr-box .icon { width: 24px; height: 24px; }

.qr-slot p { margin: 0; color: var(--text-3); font-size: 12px; line-height: 1.65; }

.deposit-help { padding: 22px 24px; }

.deposit-help h3 { margin: 0; font-size: 15px; font-weight: 620; }

.step-list { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: step; }

.step-list li { position: relative; padding: 0 0 14px 30px; counter-increment: step; }

.step-list li:last-child { padding-bottom: 0; }

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 12px;
}

.step-list b { display: block; font-size: 13px; font-weight: 600; }

.step-list span { display: block; margin-top: 2px; color: var(--text-3); font-size: 12px; line-height: 1.6; }

/* ------------------------------ 邮箱提示 ------------------------------ */

.tips-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }

.tip-card { padding: 15px 16px; }

.tip-k { display: inline-flex; align-items: center; padding: 1px 7px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--text-3); font-family: var(--mono); font-size: 12px; }

.tip-card b { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; }

.tip-card p { margin: 3px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.6; }

/* ------------------------------ 桌面端隐藏抽屉按钮 ------------------------------ */

@media (min-width: 1025px) {
  .menu-btn { display: none; }
}

@media (max-width: 820px) {
  .tips-grid { grid-template-columns: 1fr; }
}

/* ------------------------------ 日志表 ------------------------------ */

.logs-grid { grid-template-columns: 150px 130px minmax(200px, 1fr) 160px; }

/* ------------------------------ 账单移动端 ------------------------------ */

@media (max-width: 820px) {
  .recharge-grid { grid-template-columns: 1fr; }
  .bills-grid .cell-date { grid-column: 1; grid-row: 1; }
  .bills-grid .cell-amount { grid-column: 2; grid-row: 1; justify-self: end; }
  .bills-grid .cell-type { grid-column: 1; grid-row: 2; }
  .bills-grid .cell-balance { grid-column: 2; grid-row: 2; justify-self: end; }
  .bills-grid .cell-note { grid-column: 1 / -1; grid-row: 3; margin-top: 2px; }
  .logs-grid .cell-date { grid-column: 1; grid-row: 2; }
  .logs-grid .cell-type { grid-column: 2; grid-row: 1; justify-self: end; }
  .logs-grid .cell-main { grid-column: 1; grid-row: 1; }
  .logs-grid .cell-note:nth-child(3) { grid-column: 1; grid-row: 3; }
  .logs-grid .cell-note:nth-child(4) { grid-column: 2; grid-row: 3; justify-self: end; }
}

@media (max-width: 640px) {
  .address-card { padding: 18px; }
  .deposit-address { font-size: 13px; }
  .qr-slot { align-items: flex-start; }
  .qr-box { width: 76px; height: 76px; }
  .logs-grid { grid-template-columns: minmax(0, 1fr) auto !important; }
}

/* ------------------------------ 业务记录 / 设备窗口 ------------------------------ */

.modern-grid { grid-template-columns: 150px 118px minmax(0, 1fr); }

.devices-grid { grid-template-columns: minmax(0, 1fr) 150px 104px 132px; }

.modern2-grid { grid-template-columns: 150px minmax(0, 1fr) 132px 104px; }

@media (max-width: 820px) {
  .modern-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .modern-grid .cell-date { grid-column: 1; grid-row: 1; }
  .modern-grid .cell-type { grid-column: 2; grid-row: 1; justify-self: end; }
  .modern-grid .cell-main { grid-column: 1 / -1; grid-row: 2; }
  .modern-grid .addr-text { white-space: normal; overflow-wrap: anywhere; }

  .devices-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .devices-grid .cell-main { grid-column: 1 / -1; grid-row: 1; }
  .devices-grid .cell-date { grid-column: 1; grid-row: 2; }
  .devices-grid .cell-status { grid-column: 2; grid-row: 2; justify-self: end; }
  .devices-grid .cell-action { grid-column: 1 / -1; grid-row: 3; justify-self: stretch; }
  .devices-grid .cell-action .row-actions { justify-content: stretch; }
  .devices-grid .cell-action .btn { flex: 1; }

  .modern2-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .modern2-grid .cell-main { grid-column: 1; grid-row: 1; min-width: 0; }
  .modern2-grid .cell-status { grid-column: 2; grid-row: 1; justify-self: end; }
  .modern2-grid .cell-date { grid-column: 1; grid-row: 2; }
  .modern2-grid .cell-amount { grid-column: 2; grid-row: 2; justify-self: end; }
}



/* ------------------------------ 摩登页 · 获取记录 ------------------------------ */

.modern-rec-grid { grid-template-columns: 142px 84px minmax(0, 1fr) 84px; align-items: start; padding-top: 12px; padding-bottom: 12px; }

.modern-rec-grid .cell-date { padding-top: 3px; }

.modern-rec-grid .cell-type { padding-top: 1px; }

.modern-rec-grid .cell-main { min-width: 0; }

.modern-rec-grid .cell-action { padding-top: 1px; }

/* UA 完整展示：等宽字体、可换行、不截断 */
.record-ua {
  margin: 0;
  max-width: 100%;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.record-loading { padding: 6px 0; }

.rec-custom-range { display: inline-flex; align-items: center; gap: 7px; }

.rec-custom-range[hidden] { display: none; }

.input-date {
  width: 138px;
  height: 32px;
  padding: 0 9px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 12px;
  color-scheme: dark;
}

@media (max-width: 820px) {
  .modern-rec-grid { grid-template-columns: minmax(0, 1fr) auto; row-gap: 7px; padding: 12px 16px; }
  .modern-rec-grid .cell-date { grid-column: 1; grid-row: 1; }
  .modern-rec-grid .cell-type { grid-column: 2; grid-row: 1; justify-self: end; }
  .modern-rec-grid .cell-main { grid-column: 1 / -1; grid-row: 2; }
  .modern-rec-grid .cell-action { grid-column: 1 / -1; grid-row: 3; justify-self: end; }
  .record-ua { font-size: 12px; }
  .input-date { width: 130px; }
}

@media (max-width: 640px) {
  .rec-custom-range { flex-wrap: wrap; }
}

/* ------------------------------ 资料双验（cha） ------------------------------ */

.cha-form { padding: 16px; }
.cha-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.cha-submit { min-height: 42px; white-space: nowrap; }
.cha-loading { display: flex; align-items: center; gap: 10px; padding: 20px 16px; color: var(--text-2); font-size: 13px; }
.cha-stats {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin: 0 0 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--surface);
  color: var(--text-2); font-size: 12px;
}
.cha-stat { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.cha-stat b { color: var(--text); font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.cha-stat-k { color: var(--text-3); }
.cha-stat-sep { width: 1px; height: 13px; background: var(--line-strong); }
.cha-stat--bad b { color: var(--red); }
.cha-stat--ok b { color: var(--mint); }
.cha-stat--muted b { color: var(--text-2); }
.cha-stat--warn b { color: var(--warn); }
.cha-stat--pending b { color: var(--text-3); }
.cha-tabs { margin: 0 0 10px; padding: 6px 8px; }
.cha-tabs .filter-note { font-size: 11.5px; }
.cha-table-wrap { padding: 0; overflow: auto; max-height: 62vh; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.cha-table-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
.cha-table-wrap::-webkit-scrollbar-thumb { background: #2a343a; border-radius: 8px; }
.cha-table-wrap::-webkit-scrollbar-track { background: transparent; }
.cha-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; }
.cha-table th, .cha-table td {
  padding: 10px; border-bottom: 1px solid var(--line);
  font-size: 13px; text-align: center; white-space: nowrap;
}
.cha-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--surface-2); color: var(--text-3);
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
}
.cha-table .cha-th-target {
  position: sticky; left: 0; z-index: 1;
  min-width: 150px; background: var(--surface);
  text-align: left; color: var(--text-2); font-weight: 600;
}
.cha-table thead .cha-th-target { z-index: 3; background: var(--surface-2); color: var(--text-3); font-size: 12px; }
.cha-table .cha-th-platform { min-width: 96px; }
.cha-table tbody tr:last-child th, .cha-table tbody tr:last-child td { border-bottom: 0; }
.cha-table tbody tr:hover th, .cha-table tbody tr:hover td { background: var(--hover); }
.cha-row-target { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.01em; }
.cha-empty { padding: 0; }
.cha-empty .empty-state { padding: 34px 20px; }
.cha-cell-text { font-weight: 600; }
.cha-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.cha-stat .cha-dot { margin-right: 0; }
.cha-stat--bad .cha-dot { background: var(--red); }
.cha-stat--ok .cha-dot { background: var(--mint); }
.cha-stat--muted .cha-dot { background: var(--text-3); }
.cha-stat--warn .cha-dot { background: var(--warn); }
.cha-stat--pending .cha-dot { background: var(--text-3); }
.cha-cell--ok .cha-cell-text { color: var(--mint); }
.cha-cell--bad .cha-cell-text { color: var(--red); }
.cha-cell--warn .cha-cell-text { color: var(--warn); }
.cha-cell--muted .cha-cell-text { color: var(--text-3); }
.cha-cell.is-unknown { cursor: context-menu; }
.cha-cell.is-unknown:hover { background: var(--warn-dim); }
.cha-cell-hint { display: block; margin-top: 2px; color: var(--text-3); font-size: 10.5px; font-weight: 400; }
.cha-cell.is-loading .cha-cell-text { color: var(--text-3); font-weight: 400; }
.cha-menu {
  position: fixed; z-index: 120; min-width: 200px; padding: 6px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.cha-menu-item {
  display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text); font-size: 13px; text-align: left; cursor: pointer;
}
.cha-menu-item:hover { background: var(--primary-dim); color: var(--primary); }
.cha-hist-grid { grid-template-columns: 148px 118px 118px minmax(0, 1fr) 104px 82px; }
.cha-hist-num { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.cha-hist-sum { color: var(--text-2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cha-raw { margin-top: 12px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-2); }
.cha-raw summary { padding: 10px 0; color: var(--text-2); font-size: 12.5px; cursor: pointer; }
.cha-raw pre {
  max-height: 320px; margin: 0 0 12px; overflow: auto;
  color: var(--text-2); font-family: var(--mono); font-size: 11.5px; line-height: 1.6;
  white-space: pre-wrap; word-break: break-all;
}

@media (max-width: 820px) {
  .cha-form-grid { grid-template-columns: minmax(0, 1fr); }
  .cha-submit { width: 100%; }
  .cha-hist-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .cha-hist-grid > :nth-child(2), .cha-hist-grid > :nth-child(3) { display: none; }
  .cha-hist-grid > :nth-child(1) { grid-column: 1; grid-row: 1; }
  .cha-hist-grid > :nth-child(4) { grid-column: 1; grid-row: 2; }
  .cha-hist-grid > :nth-child(5) { grid-column: 2; grid-row: 1; justify-self: end; }
  .cha-hist-grid > :nth-child(6) { grid-column: 2; grid-row: 2; justify-self: end; }
}

.cha-cell--failed .cha-cell-text { color: var(--text-3); font-weight: 400; }
.cha-cell--pending .cha-cell-text { color: var(--text-3); font-weight: 400; }

.cha-input{min-height:132px;font-size:15px;line-height:1.7;padding:12px 14px;resize:vertical}
.cha-form-grid{gap:16px}

.totp-search{margin:0 0 10px}
.totp-search .input{width:100%}

.mail-remark-wrap{display:inline-flex;align-items:center;gap:6px}
.remark-editor{display:flex;gap:6px;align-items:center;margin-top:8px}
.remark-editor .input{flex:1;min-width:120px}



/* ------------------------------ 钱包完整功能（v3.1） ------------------------------ */

.wallet-bar { gap: 9px; }
.wallet-search {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1 1 220px;
  min-width: 160px;
  max-width: 360px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface-2);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wallet-search .icon { width: 14px; height: 14px; flex: none; color: var(--text-3); }
.wallet-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--focus-ring); }
.wallet-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.wallet-search-input::placeholder { color: #5c686f; }
.wallet-selected { color: var(--wallet-sub); font-family: var(--mono); }

.wallet-table {
  width: 100%;
  --wallet-head-bg: #F1F4FA;
  --wallet-head-text: #5A6272;
  --wallet-line: #EDF0F5;
  --wallet-hover: #F8FAFF;
  --wallet-main: #1F2430;
  --wallet-sub: #6B7280;
  --wallet-num: #111827;
  --wallet-usdt: #0F766E;
}
html[data-theme="dark"] .wallet-table {
  --wallet-head-bg: #171c25;
  --wallet-head-text: #a6aebc;
  --wallet-line: #232a36;
  --wallet-hover: rgba(255, 255, 255, 0.04);
  --wallet-main: #e9edf3;
  --wallet-sub: #a6aebc;
  --wallet-num: #e9edf3;
  --wallet-usdt: #34d399;
}
.wallet-thead,
.wallet-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(320px, 1.5fr) 76px 86px 350px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}
.wallet-thead {
  min-height: 40px;
  border-bottom: 1px solid var(--wallet-line);
  background: var(--wallet-head-bg);
  color: var(--wallet-head-text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.wallet-thead .cell-right { justify-self: end; text-align: right; }
.wallet-thead .wallet-num-head {
  justify-self: stretch;
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.wallet-row {
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--wallet-line);
  transition: background 0.14s ease;
}
.wallet-row:last-child { border-bottom: 0; }
.wallet-row:hover { background: var(--wallet-hover); }
.wallet-row.is-highlight { animation: highlight-row 2.4s ease; }
.wallet-row.is-down .wallet-trx b,
.wallet-row.is-down .wallet-usdt b { color: var(--wallet-sub); }
.wallet-check { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; }
.wallet-check input { width: 15px; height: 15px; accent-color: var(--amber); cursor: pointer; }
.wallet-name-cell { min-width: 0; }
.wallet-name-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wallet-name-line b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  color: var(--wallet-main);
}
.wallet-name-line .pill { flex: none; }
.wallet-name-line .pill--muted { color: var(--wallet-sub); border-color: var(--wallet-line); }
/* HD 主地址徽标：品牌蓝（默认 info 是青色） */
.wallet-name-line .pill--info { color: var(--primary); border-color: var(--primary-line); background: var(--primary-dim); }
.wallet-remark {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--wallet-sub);
  font-size: 13px;
}
.wallet-addr-cell { display: flex; align-items: center; gap: 5px; min-width: 0; }
.wallet-addr-cell .addr-text { color: var(--wallet-main); font-size: 15px; }
.wallet-addr { color: var(--wallet-main); font-family: var(--mono); font-size: 15px; font-weight: 500; }
.wallet-trx,
.wallet-usdt { min-width: 0; text-align: right; }
.wallet-trx .k,
.wallet-usdt .k {
  display: none;
  color: var(--wallet-sub);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}
.wallet-trx b,
.wallet-usdt b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--wallet-num);
  font-variant-numeric: tabular-nums;
}
.wallet-usdt b { color: var(--wallet-usdt); }
.wallet-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 3px; }
.wallet-actions .wallet-act {
  padding: 0 5px;
  border-radius: 999px;
  font-size: 13px;
  gap: 0;
  min-height: 28px;
}
.wallet-actions .wallet-act .icon { display: none; }
.wallet-table { overflow-x: auto; }
.wallet-act {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.wallet-act .icon { width: 13px; height: 13px; }
.wallet-act:hover { border-color: #4a565e; background: var(--surface-3); color: var(--text); }
.wallet-act[disabled],
.wallet-act[disabled]:hover { opacity: 0.42; cursor: not-allowed; border-color: var(--line); background: transparent; color: var(--text-3); }
.wallet-act-icon { padding: 0; width: 30px; justify-content: center; }
.wallet-act.is-danger { color: var(--red); border-color: var(--red-line); background: var(--red-dim); }

.wallet-hd { margin-top: 10px; padding: 16px 18px; }
.wallet-extra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.wallet-extra { padding: 16px 18px; }
.wallet-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.wallet-block-head h3 { margin: 3px 0 0; font-size: 14px; font-weight: 620; letter-spacing: -0.01em; }
.wallet-hd-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.7fr); gap: 9px; }
.wallet-hd-item {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.015);
}
.wallet-hd-item .k { flex: none; color: var(--text-3); font-size: 11.5px; }
.wallet-hd-item .v {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-2);
  font-size: 12.5px;
}
.wallet-hd-item .v small { color: var(--text-3); font-size: 11px; }
.wallet-metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 9px; }
.wallet-metric {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.015);
}
.wallet-metric .k { display: block; color: var(--text-3); font-size: 11.5px; }
.wallet-metric .v {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.wallet-metric .sub { display: block; margin-top: 1px; color: var(--text-3); font-size: 11px; }

.wallet-seg { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
/* 导入钱包：私钥 / 助记词切换，选中态用主色填充，一眼能看出当前类型 */
.wallet-seg .chip { flex: 1; justify-content: center; min-width: 92px; height: 34px; border-radius: 7px; font-size: 13px; font-weight: 600; }
.wallet-seg .chip.is-active { background: var(--primary-solid); border-color: var(--primary-solid); color: var(--primary-contrast); }
.wallet-seg .chip.is-active:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-contrast); }
.wallet-textarea { height: auto; min-height: 84px; padding: 10px 12px; line-height: 1.6; resize: vertical; }

.wallet-secret-list { display: grid; gap: 10px; margin-top: 12px; max-height: 52vh; overflow-y: auto; }
.wallet-secret { border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); padding: 10px 12px; }
.wallet-secret-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-3); font-size: 12px; }
.wallet-secret-value {
  margin: 8px 0 0;
  padding: 9px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-all;
}
.wallet-export-list { margin-top: 12px; max-height: 180px; overflow-y: auto; display: grid; gap: 6px; }
.wallet-export-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  color: var(--text-2);
  font-size: 12px;
}
.wallet-export-item small { color: var(--text-3); }

.wallet-qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wallet-qr-wrap .qr-canvas { width: 196px; height: 196px; padding: 8px; border-radius: 12px; background: #fff; }
.wallet-qr-addr { color: var(--text-2); font-size: 12.5px; word-break: break-all; text-align: center; }
.wallet-qr-wrap .form-note { justify-content: center; text-align: center; }

.wallet-detail-head { padding: 16px 18px; display: grid; gap: 15px; }
.wallet-detail-id { display: grid; gap: 6px; }
.wallet-detail-name { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 620; }
.wallet-detail-addr { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 12.5px; word-break: break-all; }
.wallet-detail-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--text-3); font-size: 12px; }
.wallet-detail-meta span { display: inline-flex; align-items: center; gap: 5px; }
.wallet-detail-meta .icon { width: 13px; height: 13px; }
.wallet-detail-bals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 520px; }
.wallet-detail-bal { padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.015); }
.wallet-detail-bal .k { display: block; color: var(--text-3); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; }
.wallet-detail-bal b { display: block; margin-top: 2px; font-family: var(--mono); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wallet-detail-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

.wallet-tx { width: 100%; }
.wallet-tx-head,
.wallet-tx-row {
  display: grid;
  grid-template-columns: 132px 92px 138px 86px minmax(120px, 1fr) 120px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}
.wallet-tx-head {
  min-height: 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.16);
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
}
.wallet-tx-row { min-height: 54px; border-bottom: 1px solid rgba(34, 42, 47, 0.6); font-size: 12.5px; }
.wallet-tx-row:last-child { border-bottom: 0; }
.wallet-tx-row:hover { background: rgba(255, 255, 255, 0.02); }
.wallet-tx-type { color: var(--text-2); }
.wallet-tx-row .amount-in { color: var(--mint); }
.wallet-tx-row .amount-out { color: var(--text); }
.wallet-tx-row .amount-in small,
.wallet-tx-row .amount-out small { color: var(--text-3); font-size: 11px; }
.wallet-tx-peer,
.wallet-tx-hash { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: 12px; }
.wallet-tx-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 12px;
}

/* 1281–1416：收窄名称/地址列，8 个操作仍保持一行 */
@media (min-width: 1281px) and (max-width: 1416px) {
  .wallet-thead,
  .wallet-row { grid-template-columns: minmax(100px, 0.75fr) minmax(210px, 1.1fr) 72px 82px 350px; }
}

/* ≤1280 才允许操作按钮换行成两排 */
@media (max-width: 1280px) {
  .wallet-thead,
  .wallet-row { grid-template-columns: minmax(120px, 0.8fr) minmax(220px, 1.2fr) 80px 90px 300px; }
  .wallet-actions { flex-wrap: wrap; }
}

@media (max-width: 1080px) {
  .wallet-extra-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .wallet-thead { display: none; }
  .wallet-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name name"
      "addr addr"
      "trx usdt"
      "actions actions";
    row-gap: 7px;
    padding: 13px 15px;
  }
  .wallet-name-cell { grid-area: name; }
  .wallet-addr-cell { grid-area: addr; }
  .wallet-trx { grid-area: trx; display: flex; align-items: baseline; gap: 6px; text-align: left; }
  .wallet-usdt { grid-area: usdt; justify-self: end; display: flex; align-items: baseline; gap: 6px; text-align: right; }
  .wallet-actions { grid-area: actions; justify-content: flex-start; flex-wrap: wrap; margin-top: 2px; }
  .wallet-trx .k, .wallet-usdt .k { display: inline; }
  .wallet-bar .filter-note { display: none; }
  .wallet-search { max-width: none; }
  .wallet-detail-bals { max-width: none; }
  .wallet-tx-head { display: none; }
  .wallet-tx-row {
    grid-template-columns: 100px minmax(0, 1fr) auto;
    grid-template-areas:
      "time type amount"
      "status peer hash";
    row-gap: 5px;
    padding: 12px 15px;
  }
  .wallet-tx-row > :nth-child(1) { grid-area: time; }
  .wallet-tx-row > :nth-child(2) { grid-area: type; }
  .wallet-tx-row > :nth-child(3) { grid-area: amount; }
  .wallet-tx-row > :nth-child(4) { grid-area: status; }
  .wallet-tx-row > :nth-child(5) { grid-area: peer; }
  .wallet-tx-row > :nth-child(6) { grid-area: hash; justify-self: end; }
  .wallet-tx-row .cell-right { justify-self: end; }
}

@media (max-width: 480px) {
  .wallet-act { padding: 0 5px; }
  .wallet-actions { gap: 3px; padding-left: 24px; }
  .wallet-detail-bal b { font-size: 17px; }
}

/* ------------------------------ 钱包：额度小字 / 501 轻提示 / 隐藏地址 ------------------------------ */

/* 钱包统计条：3 个数字格 + 一行小字额度（整张额度大卡已删除） */
.stats-strip--wallet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-quota {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 17px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.stats-quota .icon { width: 13px; height: 13px; color: var(--text-3); }
.stats-quota-sep { color: var(--line-strong); }
.stats-quota-buy {
  padding: 0;
  border: 0;
  background: none;
  color: var(--mint);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.stats-quota-buy:hover { text-decoration: underline; }
.stats-quota-note { color: var(--text-3); }

/* 501「暂未开放」：一句话、低对比度，不抢视线 */
.wallet-muted {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.015);
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.55;
}
.wallet-muted .icon { flex: none; width: 13px; height: 13px; margin-top: 1px; }

.wallet-extra--single { margin-top: 10px; }

.wallet-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-3);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.wallet-link:hover { color: var(--text); text-decoration: underline; }
.wallet-link[hidden] { display: none; }

.wallet-hidden-list { display: grid; gap: 8px; max-height: 46vh; overflow-y: auto; }
.wallet-hidden-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.015);
}
.wallet-hidden-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wallet-hidden-id b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 620; }
.wallet-hidden-id span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: 11.5px; }

@media (max-width: 900px) {
  .stats-strip--wallet { grid-template-columns: 1fr 1fr; }
  .stats-strip--wallet .stat-cell:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .stats-strip--wallet { grid-template-columns: 1fr 1fr; }
  .stats-quota { flex-wrap: wrap; }
}



/* ==========================================================================
   登录两步验证（安全 · 2FA） + 联系客服
   ========================================================================== */

.twofa-card, .twofa-hero, .twofa-start, .twofa-setup { padding: 22px; }
.twofa-hero { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.twofa-glyph { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 1px solid var(--primary-line); border-radius: 13px; background: var(--primary-dim); color: var(--primary); }
.twofa-glyph.is-on { border-color: var(--mint-line); background: var(--mint-dim); color: var(--mint); }
.twofa-glyph .icon { width: 22px; height: 22px; }
.twofa-hero-text h2, .twofa-start h2, .twofa-setup-head h2 { margin: 0; font-size: 17px; font-weight: 620; letter-spacing: -0.01em; }
.twofa-hero-text p, .twofa-start p, .twofa-setup-head p { margin: 6px 0 0; color: var(--text-3); font-size: 13px; line-height: 1.65; }
.twofa-points { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.twofa-points li { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 12.5px; }
.twofa-points .icon { width: 14px; height: 14px; color: var(--mint); }
.twofa-start { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.twofa-start .btn { flex: none; }
.twofa-setup-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.twofa-qr { display: flex; justify-content: center; margin: 18px 0 14px; }
.twofa-qr .qr-canvas { width: 188px; height: 188px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.twofa-secret { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 13px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--surface-3); }
.twofa-secret .k { color: var(--text-3); font-size: 12px; }
.twofa-secret code { font-size: 13px; letter-spacing: 0.08em; word-break: break-all; }
.twofa-enable { margin-top: 16px; }
.twofa-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.twofa-status { display: flex; align-items: flex-start; gap: 14px; }
.twofa-status-text p { margin: 7px 0 0; color: var(--text-3); font-size: 13px; line-height: 1.65; }
.twofa-title { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 620; letter-spacing: -0.01em; }
.twofa-kv { display: flex; flex-direction: column; gap: 1px; margin: 18px 0 4px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.twofa-kv > div { display: flex; gap: 16px; padding: 10px 13px; background: var(--surface-3); font-size: 12.5px; }
.twofa-kv > div + div { border-top: 1px solid var(--line); }
.twofa-kv .k { flex: none; width: 78px; color: var(--text-3); }
.twofa-kv .v { color: var(--text-2); }
.twofa-modal-lede { margin: 0 0 14px; color: var(--text-2); font-size: 13px; line-height: 1.7; }
.twofa-toggle { margin-top: 12px; }

.support-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid #E4E8EF; border-radius: 10px; background: #FFFFFF; color: var(--text-2); font: inherit; font-size: 13px; line-height: 1; cursor: pointer; transition: border-color 0.16s ease, color 0.16s ease; }
.support-pill:hover { border-color: var(--primary-line); color: var(--primary); }
.support-pill .icon { width: 14px; height: 14px; flex: none; }
.side-foot { flex-direction: column; align-items: stretch; gap: 10px; }
.side-foot-main { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-support { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface-2); color: var(--text-2); font: inherit; font-size: 12px; cursor: pointer; }
.side-support:hover { border-color: var(--primary-line); color: var(--primary); }
.side-support .icon { width: 13px; height: 13px; }
.support-fab { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow); }
.support-fab:hover { border-color: var(--primary-line); color: var(--primary); }
.support-fab .icon { width: 15px; height: 15px; }
.support-list { display: flex; flex-direction: column; gap: 9px; }
.support-loading { display: flex; align-items: center; gap: 8px; padding: 18px 4px; color: var(--text-3); font-size: 13px; }
.support-loading .icon { width: 15px; height: 15px; }
.support-item { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-3); }
.support-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--primary-dim); color: var(--primary); }
.support-icon .icon { width: 16px; height: 16px; }
.support-main { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.support-label { color: var(--text-3); font-size: 11.5px; }
.support-value { color: var(--text); font-size: 13px; word-break: break-all; }
.support-act { flex: none; margin-left: auto; }
.support-empty { padding: 20px 6px; text-align: center; color: var(--text-3); }
.support-empty .icon { width: 22px; height: 22px; margin-bottom: 6px; }
.support-empty b { display: block; color: var(--text-2); font-size: 13.5px; }
.support-empty p { margin: 5px 0 0; font-size: 12px; line-height: 1.6; }

@media (max-width: 760px) {
  .support-pill span, .side-support span { display: none; }
  .support-pill { padding: 0 10px; }
  .support-fab { right: 14px; bottom: 14px; }
  .twofa-card, .twofa-hero, .twofa-start, .twofa-setup { padding: 16px; }
  .twofa-start { flex-direction: column; align-items: flex-start; }
  .twofa-qr .qr-canvas { width: 164px; height: 164px; }
}


/* ------------------------------ 套餐卡片 · 统一支付 ------------------------------ */

.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }

.pkg-card { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 14px; }
.pkg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pkg-head b { color: var(--text); font-size: 14px; font-weight: 650; letter-spacing: -0.01em; }
.pkg-price { color: var(--primary); font-family: var(--mono); font-size: 18px; font-weight: 600; white-space: nowrap; }
.pkg-price small { color: var(--text-3); font-size: 10px; font-weight: 500; letter-spacing: 0.04em; }
.pkg-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; color: var(--text-3); font-size: 12px; }
.pkg-meta b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.pkg-card .btn { margin-top: auto; justify-content: center; }

.pay-channels { display: grid; gap: 10px; }
.pay-channel, .channel-option {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 15px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface);
  text-align: left; cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.pay-channel:hover, .channel-option:hover { border-color: var(--primary-line); box-shadow: 0 0 0 3px var(--focus-ring); }
.pay-channel.is-default, .channel-option.is-default { border-color: var(--primary-line); background: var(--primary-dim); }
.pay-channel .pc-main, .channel-option .pc-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pay-channel .pc-main b, .channel-option .pc-main b { color: var(--text); font-size: 14px; font-weight: 650; }
.pay-channel .pc-main small, .channel-option .pc-main small { color: var(--text-3); font-size: 12px; }
.pay-channel .pc-tag, .channel-option .pc-tag {
  margin-left: auto; padding: 2px 8px; border: 1px solid var(--primary-line); border-radius: 999px;
  color: var(--primary); font-size: 11px; white-space: nowrap;
}
/* 维护中的通道：置灰不可选，点了只提示不改下单 */
.pay-channel.is-off, .channel-option.is-off {
  cursor: not-allowed; opacity: 0.55; border-style: dashed; background: var(--bg);
}
.pay-channel.is-off:hover, .channel-option.is-off:hover { border-color: var(--line-strong); box-shadow: none; }
.pay-channel.is-off .pc-main b, .channel-option.is-off .pc-main b { color: var(--text-3); }
.pay-channel .pc-tag.is-off, .channel-option .pc-tag.is-off { margin-left: auto; border-color: var(--line-strong); color: var(--text-3); }

.pay-panel { display: grid; gap: 12px; }
.pay-amount-box { padding: 15px 16px; border: 1px solid var(--primary-line); border-radius: 12px; background: var(--primary-dim); text-align: center; }
.pay-amount-box .k { color: var(--text-3); font-size: 12px; }
.pay-amount { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 4px 0 2px; }
.pay-amount b { color: var(--primary); font-family: var(--mono); font-size: 34px; font-weight: 600; letter-spacing: -0.02em; user-select: all; }
.pay-amount small { color: var(--text-3); font-size: 12px; }
.pay-channel-tag { display: inline-block; padding: 2px 9px; border: 1px solid var(--primary-line); border-radius: 999px; color: var(--primary); font-size: 11px; }

.pay-addr-box .k { display: block; margin-bottom: 6px; color: var(--text-3); font-size: 12px; }
.pay-addr { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.pay-addr code { flex: 1; min-width: 0; color: var(--text); font-family: var(--mono); font-size: 13px; word-break: break-all; user-select: all; }
.pay-addr .btn { flex: none; }

.pay-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 12px; }
.pay-qr .qr-canvas { display: block; width: 100%; height: 100%; }
.pay-qr span { color: var(--text-3); font-size: 12px; }

/* EB 通道：二维码下方保留完整可复制地址 */
.pay-qr-addr {
  width: 100%;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 6px;
}

.pay-qr-addr-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.pay-qr-addr-head .k { color: var(--text-3); font-size: 12px; }

.pay-qr-addr code {
  color: var(--text);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  word-break: break-all;
  user-select: all;
}

.pay-timer { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-3); color: var(--text-2); font-size: 12px; }
.pay-timer b { color: var(--amber); font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.pay-timer b.is-bad { color: var(--red); }

/* 充值 / 补差订单列表：剩余 mm:ss / 过期置灰 */
.pay-list-grid { grid-template-columns: 142px minmax(190px, 1fr) 92px 132px minmax(150px, 1fr) 116px; align-items: center; }
.pay-list-left { margin-left: 8px; color: var(--text-3); font-size: 12px; white-space: nowrap; }
.pay-list-left b { color: var(--amber); font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.trow.is-muted { opacity: 0.55; }
.trow.is-muted:hover { background: transparent; }
.trow.is-muted .btn { pointer-events: none; }


.pay-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.pay-status .pay-err { color: var(--red); }

.pay-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pay-chip { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 12px; cursor: pointer; }
.pay-chip:hover { border-color: var(--primary-line); color: var(--primary); }

.pay-loading { display: flex; align-items: center; gap: 8px; padding: 18px 4px; color: var(--text-3); font-size: 13px; }
.pay-loading.is-bad { color: var(--red); }

/* 收款二维码：容器最小 200×200（桌面 220×220），图片按容器铺满，保留圆角白底 */
.qr-box.is-live {
  width: 220px;
  height: 220px;
  min-width: 200px;
  min-height: 200px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
}

.qr-box.is-live .qr-canvas { display: block; width: 100%; height: 100%; }

.qr-box.is-live.is-empty { border-style: dashed; color: var(--text-3); font-size: 12px; line-height: 1.5; }

/* 充值 · 第 1 步：选通道（未选通道前不显示地址 / 二维码） */
.recharge-gate { padding: 22px 24px; }

.recharge-gate-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

.recharge-gate-head h2 { margin: 6px 0 0; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }

.recharge-gate-note {
  display: flex; align-items: flex-start; gap: 8px; max-width: 760px;
  margin: 8px 0 0; color: var(--text-3); font-size: 13px; line-height: 1.65;
}

.recharge-gate-note .icon,
.recharge-eb-note .icon { flex: none; width: 15px; height: 15px; margin-top: 2px; }

.recharge-channels { margin-top: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.recharge-gate .form-note { margin: 14px 0 0; }

/* 充值 · 已选通道：地址 + 放大二维码 + 金额入口 */
.address-head-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.recharge-eb-note {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 14px 0 0; color: var(--text-3); font-size: 13px; line-height: 1.65;
}

.recharge-pay {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.recharge-pay.is-eb { grid-template-columns: minmax(0, 1fr); }

.recharge-qr-col { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.recharge-qr-note { color: var(--text-3); font-size: 12px; text-align: center; }

.recharge-form-col { display: grid; gap: 12px; min-width: 0; }

.recharge-form-col .pay-chips { margin-top: 0; }

.recharge-form-col .form-note { margin: 0; }

.recharge-submit { justify-content: center; }

@media (max-width: 820px) {
  .recharge-gate { padding: 18px; }
  .recharge-gate-head h2 { font-size: 17px; }
  .recharge-channels { grid-template-columns: minmax(0, 1fr); }
  .recharge-pay { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 640px) {
  .qr-box.is-live { width: 180px; height: 180px; min-width: 180px; min-height: 180px; }
  .recharge-pay { margin-top: 14px; padding-top: 16px; }
  .address-head-right { width: 100%; justify-content: flex-end; }
}

/* ------------------------------ APP 下载 ------------------------------ */

.app-grid { grid-template-columns: 150px minmax(0, 1fr) 110px 120px; }

.app-result { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 0 4px; }
.app-result-main { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 260px; }
.app-result-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--accent); flex: none; }
.app-result b { display: block; font-size: 14px; }
.app-result p { margin: 3px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.6; }

.app-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 0 2px; color: var(--text-3); font-size: 12px; }
.app-meta span { display: inline-flex; align-items: center; gap: 5px; }
.app-meta .icon { width: 14px; height: 14px; }

.app-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.app-steps b { font-size: 12px; font-weight: 620; }
.app-steps p { margin: 3px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.6; }

@media (max-width: 820px) {
  .app-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .app-steps { grid-template-columns: 1fr; }
}

/* ------------------------------ 钱包列表：单行刷新 / 范围提示 ------------------------------ */
.wallet-refresh.is-loading .icon { animation: spin 0.8s linear infinite; }
.wallet-act.is-loading[disabled] { opacity: 1; cursor: progress; }
.wallet-hd-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.wallet-hd-actions .btn { min-height: 30px; }

/* ------------------------------ HD 单行 / 行内改名 / 能量租用页 ------------------------------ */
.wallet-hd-strip { margin-top: 10px; padding: 0; overflow: hidden; }
.wallet-hd-strip .wallet-row { border-bottom: 0; }
.wallet-hd-strip .wallet-row:hover { background: transparent; }

.wallet-edit-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
}
.wallet-edit-btn:hover { background: var(--primary-dim); color: var(--primary); }
.wallet-edit-btn .icon { width: 13px; height: 13px; }
.wallet-inline-edit { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wallet-inline-edit .input { height: 28px; padding: 0 8px; font-size: 12.5px; }

.energy-rental { padding: 20px; margin-top: 10px; }
.energy-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.energy-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.energy-plan:hover { border-color: var(--primary-line); }
.energy-plan.is-active { border-color: var(--primary); background: var(--primary-dim); box-shadow: 0 0 0 3px var(--focus-ring); }
.energy-plan input { position: absolute; opacity: 0; pointer-events: none; }
.energy-plan-qty { color: var(--text); font-family: var(--mono); font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.energy-plan-unit { color: var(--text-3); font-size: 13px; }

.energy-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.energy-tab { padding: 7px 20px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.energy-tab:hover { color: var(--text); }
.energy-tab.is-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.energy-plans.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.energy-plan-b { margin-left: 1px; font-size: 17px; font-weight: 600; }
@media (max-width: 820px) {
  .energy-plans.is-three { grid-template-columns: 1fr; }
}
.energy-plan-price { margin-top: 8px; color: var(--primary); font-family: var(--mono); font-size: 16px; font-weight: 700; }
.energy-rental-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.energy-rental-foot .form-error { margin-right: auto; }
@media (max-width: 820px) {
  .energy-plans { grid-template-columns: 1fr; }
  .energy-rental { padding: 16px; }
}


.energy-address { margin-top: 18px; }
.energy-address .field-label { display: block; margin-bottom: 6px; color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.energy-address-row { display: flex; align-items: center; gap: 8px; }
.energy-address-row .input { height: 38px; }
.energy-address-row [data-energy-address] { flex: 1 1 auto; min-width: 0; }
.energy-address-select { flex: 0 0 220px; width: 220px; }
.energy-hint { margin-right: auto; color: var(--text-3); font-size: 12.5px; }
.energy-help { display: flex; align-items: flex-start; gap: 6px; margin: 10px 0 0; color: var(--text-3); font-size: 12.5px; line-height: 1.6; }
.energy-help .icon { flex: none; width: 13px; height: 13px; margin-top: 2px; }
@media (max-width: 820px) {
  .energy-address-row { flex-direction: column; align-items: stretch; }
  .energy-address-select { flex-basis: auto; width: 100%; }
}

/* ------------------------------ HD 独立卡片 / 批量导出 ------------------------------ */
.wallet-hd-card { margin-top: 10px; padding: 16px 18px; }
.wallet-hd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.wallet-hd-head h3 { margin: 3px 0 0; font-size: 15px; font-weight: 620; letter-spacing: -0.01em; }
.wallet-hd-main { display: flex; align-items: center; gap: 5px; min-width: 0; }
.wallet-hd-main .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--wallet-main, var(--text)); font-size: 13px; }
.wallet-hd-balances { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.wallet-hd-bal {
  min-width: 170px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.015);
}
.wallet-hd-bal .k { display: block; color: var(--text-3); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; }
.wallet-hd-bal b { display: block; margin-top: 2px; color: var(--wallet-num, var(--text)); font-family: var(--mono); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wallet-hd-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.wallet-bx-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.wallet-bx-all { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 12.5px; }
.wallet-bx-all input { width: 15px; height: 15px; accent-color: var(--primary); }
.wallet-bx-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.wallet-bx-list { display: grid; gap: 4px; max-height: 360px; overflow-y: auto; }
.wallet-bx-row {
  display: grid;
  grid-template-columns: 18px minmax(120px, 0.8fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  cursor: pointer;
}
.wallet-bx-row:hover { border-color: var(--primary-line); background: var(--primary-dim); }
.wallet-bx-row input { width: 15px; height: 15px; accent-color: var(--primary); }
.wallet-bx-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wallet-bx-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 12.5px; font-weight: 600; }
.wallet-bx-main small { color: var(--text-3); font-size: 11px; }
.wallet-bx-addr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: 11.5px; text-align: right; }

@media (max-width: 820px) {
  .wallet-hd-actions .btn { flex: 1 1 auto; justify-content: center; }
  .wallet-bx-row { grid-template-columns: 18px minmax(0, 1fr); }
  .wallet-bx-addr { grid-column: 2; text-align: left; }
}

/* 钱包表格：子钱包徽标用品牌浅蓝，不用灰底 */
.pill--child {
  color: var(--primary);
  border-color: var(--primary-line);
  background: rgba(37, 99, 235, 0.10);
}

/* ------------------------------ 钱包行操作：删除 / 二维码浮层 / 隔离选择 ------------------------------ */
.wallet-act--danger { color: var(--red); border-color: var(--red-line); }
.wallet-act--danger:hover { background: var(--red-dim); border-color: var(--red-line); color: var(--red); }

/* 操作按钮文字与地址同色（危险操作保持红色） */
.wallet-actions .wallet-act { color: #1F2430; font-weight: 500; }
.wallet-actions .wallet-act:hover { color: #1F2430; background: var(--primary-dim); border-color: var(--line-strong); }
.wallet-actions .wallet-act.wallet-act--danger { color: var(--red); }
.wallet-actions .wallet-act.wallet-act--danger:hover { color: var(--red); background: var(--red-dim); border-color: var(--red-line); }
.wallet-actions .wallet-act[disabled],
.wallet-actions .wallet-act[disabled]:hover { color: var(--text-3); background: transparent; opacity: 0.42; }

.wallet-qr-pop {
  position: fixed;
  z-index: 110;
  width: 256px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: pop-in 0.12s ease both;
}
.wallet-qr-pop .qr-canvas {
  display: block;
  width: 208px;
  height: 208px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
}
.wallet-qr-pop-addr {
  margin: 9px 0 10px;
  color: var(--text-2);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
  word-break: break-all;
}
.wallet-qr-pop-copy { width: 100%; justify-content: center; }
.wallet-qr-pop-empty { padding: 28px 8px; color: var(--text-3); font-size: 12px; text-align: center; }

.wallet-force-delete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--red-line);
  border-radius: 9px;
  background: var(--red-dim);
  color: var(--red);
  font-size: 12px;
}
.wallet-force-delete[hidden] { display: none; }

.wallet-iso-menu { display: grid; gap: 8px; }
.wallet-iso-choice {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-2);
  text-align: left;
}
.wallet-iso-choice:hover { border-color: var(--primary-line); background: var(--primary-dim); }
.wallet-iso-choice-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary-dim);
  color: var(--primary);
}
.wallet-iso-choice-icon .icon { width: 16px; height: 16px; }
.wallet-iso-choice-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wallet-iso-choice-main b { color: var(--text); font-size: 13px; }
.wallet-iso-choice-main small { color: var(--text-3); font-size: 12px; }

.wallet-iso-records { display: grid; }
.wallet-iso-record {
  display: grid;
  grid-template-columns: 132px 70px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.wallet-iso-record:last-child { border-bottom: 0; }
.wallet-iso-record--head { color: var(--text-3); font-size: 12px; border-bottom: 1px solid var(--line-strong); }

@media (max-width: 480px) {
  .wallet-iso-record { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .wallet-iso-record > :nth-child(1) { grid-column: 1; }
  .wallet-iso-record > :nth-child(2) { grid-column: 2; justify-self: end; }
  .wallet-iso-record > :nth-child(3) { grid-column: 1; }
  .wallet-iso-record > :nth-child(4) { grid-column: 2; justify-self: end; }
}


/* ------------------------------ 统计条：3 列（业务页去掉账户余额后重排） ------------------------------ */
.stats-strip.stats-strip--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 820px) {
  .stats-strip.stats-strip--3 { grid-template-columns: 1fr 1fr; }
  .stats-strip.stats-strip--3 .stat-cell:nth-child(3) { grid-column: 1 / -1; border-left: 0; }
}

@media (max-width: 420px) {
  .stats-strip.stats-strip--3 { grid-template-columns: 1fr; }
  .stats-strip.stats-strip--3 .stat-cell:nth-child(3) { grid-column: auto; }
}


/* ------------------------------ 资料双验：混合输入 / 逐条结果 ------------------------------ */
.cha-table .cha-th-target { min-width: 190px; }
.cha-table .cha-th-platform { min-width: 84px; }
.cha-row-type {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0;
}
.cha-form .field { margin: 0; }


/* ------------------------------ 账单/订单：资料双验聚合行 ------------------------------ */
.ledger-group { cursor: pointer; }
.ledger-group:hover { background: var(--hover); }
.ledger-group.is-open { background: var(--surface-2); }
.ledger-group:focus-visible { outline: 2px solid var(--primary-line); outline-offset: -2px; }
.ledger-toggle {
  display: inline-block;
  margin-left: 6px;
  color: var(--text-3);
  font-size: 11.5px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ledger-group:hover .ledger-toggle { color: var(--text); }
.ledger-children {
  margin-left: 12px;
  border-left: 2px solid var(--line-strong);
  background: var(--surface-2);
}
.ledger-child { opacity: 0.92; }
.ledger-child .cell-main b { font-weight: 500; }
.recent-group { cursor: pointer; }
.recent-group:hover { background: var(--hover); }
.recent-group.is-open { background: var(--surface-2); }
.recent-children { margin-left: 10px; border-left: 1px solid var(--line-strong); }
.recent-child { opacity: 0.82; font-size: 12px; }


/* ------------------------------ 资料双验：导出 ------------------------------ */
.cha-result-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.cha-result-actions .filter-note { white-space: nowrap; }
.cha-hist-grid .cell-action { display: flex; justify-content: flex-end; }
.cha-hist-grid .cell-action .btn { white-space: nowrap; }

/* ------------------------------ 账单行号 / 登录记录 / 转账记录 ------------------------------ */

/* 账单：ledger 行号列（与后台对账页同一行号） */
.bills-grid--rowid { grid-template-columns: 148px 96px 122px 126px minmax(150px, 1fr) 76px; }
.bills-grid--rowid .cell-rowid { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.bills-grid--rowid .cell-balance { white-space: nowrap; }

/* 登录记录：时间 / IP / 设备 / 结果 */
.login-grid { grid-template-columns: 150px 140px minmax(200px, 1fr) 96px; }
.login-grid .cell-ip { font-size: 12px; color: var(--text-2); font-family: var(--mono); word-break: break-all; }
.login-grid .cell-main .order-sku span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 转账记录 */
.transfers-grid { grid-template-columns: 148px 138px 74px 130px 104px 96px minmax(130px, 1fr); }
.transfers-grid .cell-addr { min-width: 0; }
.transfers-grid .cell-addr .mono { font-size: 12px; }
.transfers-grid .cell-txid { min-width: 0; overflow: hidden; }
.transfer-txid { font-size: 12px; font-family: var(--mono); color: var(--primary); text-decoration: none; }
.transfer-txid:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .bills-grid--rowid { grid-template-columns: minmax(0, 1fr) auto; }
  .bills-grid--rowid .cell-note { grid-column: 1; grid-row: 3; padding-right: 62px; }
  .bills-grid--rowid .cell-rowid { grid-column: 2; grid-row: 3; justify-self: end; align-self: start; }

  .login-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .login-grid .cell-date { grid-column: 1; grid-row: 1; }
  .login-grid .cell-type { grid-column: 2; grid-row: 1; justify-self: end; }
  .login-grid .cell-ip { grid-column: 1; grid-row: 2; }
  .login-grid .cell-main { grid-column: 1 / -1; grid-row: 3; }

  .transfers-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .transfers-grid .cell-date { grid-column: 1; grid-row: 1; }
  .transfers-grid .cell-status { grid-column: 2; grid-row: 1; justify-self: end; }
  .transfers-grid .cell-addr { grid-column: 1; grid-row: 2; }
  .transfers-grid .cell-amount { grid-column: 2; grid-row: 2; justify-self: end; }
  .transfers-grid .cell-dir { grid-column: 1; grid-row: 3; }
  .transfers-grid .cell-fee { grid-column: 2; grid-row: 3; justify-self: end; }
  .transfers-grid .cell-txid { grid-column: 1 / -1; grid-row: 4; }
}

/* 订单/记录主标题与副标题之间的间距（原先两个 inline 元素紧贴） */
.order-sku b { margin-right: 8px; }

/* ------------------------------ 概览：插件安装教程 ------------------------------ */

.plugin-guide { margin-top: 12px; padding: 18px 20px; }

.plugin-guide-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.plugin-guide-head h2 { margin: 4px 0 0; font-size: 16px; font-weight: 620; }

.plugin-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }

.plugin-guide-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }

.plugin-guide-item b { display: block; font-size: 13px; font-weight: 620; color: var(--text); }

.plugin-guide-item p { margin: 5px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.6; }

.plugin-guide-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 13px 0 0; color: var(--text-3); font-size: 12px; }

.plugin-guide-foot .icon { width: 14px; height: 14px; flex: none; }

.plugin-guide-foot a { color: var(--primary); text-decoration: none; }

.plugin-guide-foot a:hover { text-decoration: underline; }

/* ------------------------------ 钱包：HD 主地址说明 ------------------------------ */

.wallet-hd-note { display: flex; gap: 7px; margin: 11px 16px 13px; color: var(--text-3); font-size: 12px; line-height: 1.7; }

.wallet-hd-note .icon { width: 14px; height: 14px; flex: none; margin-top: 3px; }

@media (max-width: 820px) {
  .plugin-guide { padding: 16px; }
  .plugin-guide-grid { grid-template-columns: 1fr; }
}

/* ------------------------------ 完整邮件浮层 ------------------------------ */

.modal.mail-viewer {
  width: min(640px, calc(100vw - 40px));
  height: min(560px, calc(100svh - 48px));
  max-height: calc(100svh - 48px);
  min-width: 0;
  overflow: hidden;
}

.modal.mail-viewer .modal-head { cursor: grab; user-select: none; touch-action: none; }

.modal.mail-viewer .modal-head.is-dragging { cursor: grabbing; }

.modal.mail-viewer .modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding-top: 13px;
}

.mv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: none; }

.mv-summary { color: var(--text-2); font-size: 13px; }

.mv-summary .mail-code { margin-left: 2px; }

.mv-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: none;
  padding: 9px 12px;
  border: 1px solid var(--red-line);
  border-radius: 9px;
  background: var(--red-dim);
  color: var(--red);
  font-size: 13px;
  line-height: 1.6;
}

.mv-error .icon { width: 15px; height: 15px; flex: none; margin-top: 2px; }

.mv-list { display: flex; flex-direction: column; gap: 5px; flex: none; min-width: 0; max-height: 132px; overflow-y: auto; overflow-x: hidden; padding-right: 2px; }

.mv-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text-2);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.mv-item:hover { border-color: var(--line-hover); background: var(--surface-3); }

.mv-item.is-active { border-color: var(--primary-line); background: var(--primary-dim); }

.mv-item .s { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 13px; font-weight: 600; }

.mv-item .m { flex: 0 0 auto; max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: 12px; text-align: right; }

.mv-content {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  overflow: hidden;
}

.mv-meta { flex: none; min-width: 0; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--text-3); font-size: 12px; line-height: 1.6; }

.mv-meta b { display: block; margin-bottom: 3px; color: var(--text); font-size: 14px; font-weight: 620; }

.mv-body {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.85;
}

.mv-empty { display: grid; place-items: center; flex: 1; padding: 22px; color: var(--text-3); font-size: 13px; }

.mail-code { padding: 0 3px; border-radius: 4px; background: #fde68a; color: #7c2d12; font-weight: 700; }

@media (max-width: 640px) {
  .modal-backdrop.mail-viewer-backdrop { padding: 0; align-items: stretch; }
  .modal.mail-viewer {
    width: 100%;
    height: 100svh;
    max-height: 100svh;
    border: 0;
    border-radius: 0;
  }
  .modal.mail-viewer .modal-head { cursor: default; }
  .modal.mail-viewer .modal-body { padding-bottom: 12px; }
  .modal.mail-viewer .modal-foot { padding-bottom: 12px; }
  .mv-list { max-height: 150px; }
}


/* ------------------------------ 代理后台（会员端） ------------------------------ */

.agent-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 14px 18px;
}

.agent-profile-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.agent-profile-main > b { font-size: 15px; font-weight: 620; letter-spacing: -0.01em; }
.agent-profile-main .agent-meta { color: var(--text-3); font-size: 12px; }
.agent-profile-main .agent-meta b { color: var(--text-2); font-weight: 600; }

.agent-rates { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.agent-rate {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 26px;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-3);
  color: var(--text-3);
  font-size: 11.5px;
  white-space: nowrap;
}
.agent-rate b { color: var(--text); font-family: var(--mono); font-size: 12px; font-weight: 600; }

/* 表格移动端横滚：表格本身保底宽度，外层可横向滑动 */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.agent-table { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; }
.agent-table th {
  padding: 11px 18px;
  background: var(--thead-bg);
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.agent-table th.num, .agent-table td.num { text-align: right; }
.agent-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font-size: 13px;
  vertical-align: middle;
}
.agent-table tbody tr:last-child td { border-bottom: 0; }
.agent-table tbody tr:hover td { background: var(--hover); }
.agent-table td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }
.agent-table td small { color: var(--text-3); font-family: var(--sans); font-size: 11px; }
.agent-table .agent-name { display: block; color: var(--text); font-weight: 600; }
.agent-table .agent-sub { display: block; margin-top: 2px; color: var(--text-3); font-family: var(--mono); font-size: 11.5px; }
.agent-table .agent-time { color: var(--text-2); font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.agent-table .agent-commission { color: var(--mint); font-weight: 600; }
.agent-table .pill { margin-top: 5px; }

/* 提现弹层 */
.agent-withdraw { display: flex; flex-direction: column; gap: 12px; }
.agent-withdraw-avail {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 12px 14px;
  border: 1px solid var(--primary-line);
  border-radius: 10px;
  background: var(--primary-dim);
}
.agent-withdraw-avail span { color: var(--text-2); font-size: 12px; }
.agent-withdraw-avail b { color: var(--primary-strong); font-family: var(--mono); font-size: 21px; font-weight: 650; }
.agent-withdraw-avail small { color: var(--text-3); font-size: 12px; }
.agent-withdraw-quick { display: flex; justify-content: flex-end; margin-top: -6px; }
.agent-fee-preview {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.5;
}
.agent-fee-preview .icon { width: 14px; height: 14px; margin-top: 2px; flex: none; color: var(--text-3); }
.agent-fee-preview.is-bad { color: var(--red); border-color: var(--red-line); background: var(--red-dim); }

@media (max-width: 640px) {
  .agent-profile { padding: 12px 14px; }
  .agent-table { min-width: 660px; }
  .agent-table th, .agent-table td { padding-left: 14px; padding-right: 14px; }
  .agent-profile-main > b { font-size: 14px; }
}


/* 邮箱统计：只保留「邮箱总数 / 购买单价」两格（不再区分正常/失效） */
.stats-strip.stats-strip--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ------------------------------ TG 会员（平台代开） ------------------------------ */

.tg-panel {
  padding: 16px 18px;
  margin-bottom: 12px;
  border-color: var(--primary-line);
  background: linear-gradient(180deg, var(--primary-dim), transparent 72%);
}

.tg-head { display: flex; align-items: center; gap: 12px; }

.tg-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}

.tg-icon .icon { width: 22px; height: 22px; }

.tg-title { flex: 1; min-width: 0; }

.tg-title-line { display: flex; align-items: center; gap: 8px; }

.tg-title-line h2 { margin: 0; font-size: 16px; font-weight: 650; }

.tg-badge {
  flex: none;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--primary-dim);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
}

.tg-sub { margin: 3px 0 0; color: var(--text-3); font-size: 12px; }

.tg-plans { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.tg-plan {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
}

.tg-plan b { color: var(--text); font-size: 13px; }

.tg-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

.tg-plan-option {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-2);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tg-plan-option:hover { border-color: var(--line-hover); background: var(--surface-3); }

.tg-plan-option.is-active { border-color: var(--primary-line); background: var(--primary-dim); }

.tg-plan-option b { display: block; color: var(--text); font-size: 14px; }

.tg-plan-option span { display: block; margin-top: 2px; color: var(--text-3); font-size: 12px; }

.tg-result { display: flex; flex-direction: column; gap: 10px; }

.tg-result-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.tg-kv { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px 12px; font-size: 13px; }

.tg-kv .k { color: var(--text-3); }

.tg-kv .v { color: var(--text); word-break: break-all; }

.tg-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

.tg-msg {
  padding: 9px 12px;
  border: 1px solid var(--red-line);
  border-radius: 9px;
  background: var(--red-dim);
  color: var(--red);
  font-size: 13px;
  line-height: 1.6;
}

.tg-note { color: var(--text-3); font-size: 12px; line-height: 1.6; }

@media (max-width: 640px) {
  .tg-head { flex-wrap: wrap; }
  .tg-head .btn { width: 100%; }
  .tg-plan-grid { grid-template-columns: 1fr; }
  .tg-kv { grid-template-columns: 76px minmax(0, 1fr); }
}

/* 订单行可点开详情 */
.orders-grid.is-clickable { cursor: pointer; }
.orders-grid.is-clickable:hover { background: var(--hover); }
.orders-grid.is-clickable:focus-visible { outline: 2px solid var(--primary-line); outline-offset: -2px; }

/* 谷歌验证器 · 批量导入 */
.totp-import-text { width: 100%; min-height: 170px; padding: 10px 12px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; resize: vertical; }

.totp-import-panel { margin-top: 12px; }

.totp-import-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); font-size: 12.5px; color: var(--text-2); }
.totp-import-stats .stat b { margin-right: 2px; font-family: var(--mono); font-size: 14px; color: var(--text); }
.totp-import-stats .stat.is-ok b { color: var(--green); }
.totp-import-stats .stat.is-warn b { color: #B45309; }
.totp-import-stats .stat.is-bad b { color: var(--red); }

.totp-import-list { margin-top: 10px; max-height: 190px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.totp-import-item { display: flex; gap: 10px; padding: 7px 11px; font-size: 12.5px; line-height: 1.5; border-top: 1px solid var(--line); }
.totp-import-item:first-child { border-top: 0; }
.totp-import-item .where { flex: none; min-width: 64px; color: var(--text-3); }
.totp-import-item.is-warn .why { color: #B45309; }
.totp-import-item.is-bad .why { color: var(--red); }

.totp-import-lede { margin: 12px 0 0; font-size: 13px; color: var(--text-2); }
.totp-import-lede b { color: var(--green); }

/* ------------------------------ 邮箱页：工具栏 + 列表（结构简化） ------------------------------ */

.mail-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; min-height: 64px; margin-bottom: 12px; }
.mail-toolbar-search { flex: 0 1 300px; min-width: 200px; }
.mail-toolbar .mail-search { width: 100%; }
.mail-toolbar-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mail-toolbar-filters .filter-label { display: none; }
.mail-toolbar-filters .chip { flex: 0 0 auto; white-space: nowrap; }
.mail-toolbar-meta { margin-left: auto; color: var(--text-3); font-size: 12px; white-space: nowrap; }

.mail-grid.mail-grid--3 { grid-template-columns: minmax(0, 1fr) 150px 250px; }
.mail-row { min-height: 56px; }
.mail-addr-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mail-addr { font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-id { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.mail-time { font-size: 12px; color: var(--text-3); }
.mail-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.mail-link { padding: 0; border: 0; background: none; color: #4B5A76; font: inherit; font-size: 13px; cursor: pointer; transition: color 0.14s ease; }
.mail-link:hover { color: var(--primary); }

.mail-empty { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 40px 16px; color: var(--text-3); font-size: 13px; }

@media (max-width: 760px) {
  .mail-toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 12px; }
  .mail-toolbar-search { flex: 1 1 100%; }
  .mail-toolbar-filters { flex: 0 1 auto; order: 2; min-width: 0; }
  .mail-toolbar-meta { flex: 0 0 auto; order: 3; align-self: center; margin-left: auto; font-size: 10.5px; letter-spacing: -0.1px; }
  .mail-toolbar-filters .filter-bar { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 0; padding-right: 0; }
  .mail-id { display: none; }
  .mail-row { padding-top: 8px; padding-bottom: 8px; }
  .mail-grid.mail-grid--3 { grid-template-columns: minmax(0, 1fr) auto; }
  .mail-grid--3 .mail-col-time, .mail-row .mail-time { display: none; }
  .mail-actions .mail-link { display: none; }
  .mail-actions { gap: 8px; }
  .mail-addr { font-size: 13px; }
}

/* 邮箱行：分组 / 备注 / 更多菜单 */
.mail-addr-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mail-tagline { display: flex; align-items: center; gap: 6px; margin-top: 2px; min-width: 0; }
.mail-tag { flex: none; padding: 0 6px; border-radius: 5px; background: var(--primary-dim); color: var(--primary); font-size: 11px; line-height: 18px; }
.mail-remark { color: var(--text-3); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row { padding-top: 6px; padding-bottom: 6px; }
.mail-actions { position: relative; }
.mail-more { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border: 1px solid transparent; border-radius: 7px; background: none; color: var(--text-3); font-size: 16px; line-height: 1; cursor: pointer; }
.mail-more:hover { border-color: var(--line); background: var(--surface-2); color: var(--text); }
.mail-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 150px; padding: 5px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.mail-menu button { display: block; width: 100%; padding: 7px 10px; border: 0; border-radius: 7px; background: none; color: var(--text-2); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.mail-menu button:hover { background: var(--surface-2); color: var(--text); }
.mail-remark-input { min-height: 72px; resize: vertical; }
.mail-remark-count { display: block; margin-top: 4px; color: var(--text-3); font-size: 11px; text-align: right; }

/* 邮箱页紧凑布局 */
.view--mail { width: 100%; max-width: none; margin: 0; padding-left: 20px; padding-right: 20px; }
.mail-toolbar { padding: 10px 12px; margin-bottom: 8px; }
.mail-toolbar-filters .chip { padding: 3px 9px; font-size: 12px; }
.mail-toolbar-filters .chip .count { font-size: 11px; color: var(--text-3); }
.mail-list-panel { padding: 4px 0; }
.mail-grid.mail-grid--3 { grid-template-columns: minmax(0, 1fr) 120px 235px; padding-left: 12px; padding-right: 12px; }
.mail-row { min-height: 44px; padding-top: 0; padding-bottom: 0; }
.mail-addr { font-size: 14px; }
.mail-tag { flex: none; display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border: 1px solid transparent; border-radius: 4px; background: var(--primary-dim); color: var(--primary); font: inherit; font-size: 11px; line-height: 1; cursor: pointer; }
.mail-tag:hover { border-color: var(--primary-line); }
.mail-remark { max-width: 220px; padding: 0; border: 0; background: none; color: var(--text-3); font: inherit; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.mail-remark:hover { color: var(--text-2); text-decoration: underline; }
.mail-actions { gap: 12px; }
.mail-code-btn { display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--primary); color: #fff; font: inherit; font-size: 12px; cursor: pointer; transition: background 0.15s ease; }
.mail-code-btn:hover { background: #1D4ED8; }
.mail-link { font-size: 12px; }
.mail-edit-link { padding: 0; border: 0; background: none; color: var(--text-3); font: inherit; font-size: 12px; cursor: pointer; transition: color 0.14s ease; }
.mail-edit-link:hover { color: var(--primary); }
@media (max-width: 760px) {
  .view--mail { padding-left: 12px; padding-right: 12px; }
  .mail-row { min-height: 44px; }
}

/* 商城我的订单 + 卡密 */
.shop-orders-grid { grid-template-columns: minmax(0, 1fr) 70px 120px 150px 90px; }
.shop-orders-grid.is-open { background: var(--surface-2); }
.shop-keys-wrap { padding: 10px 18px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.shop-keys-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--text-3); font-size: 12px; }
.shop-keys-head span { margin-right: auto; }
.shop-keys { display: flex; flex-direction: column; gap: 6px; }
.shop-key { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.shop-key code { color: var(--text); font-family: var(--mono); font-size: 13px; word-break: break-all; }
.shop-key.is-used { opacity: 0.55; }
.shop-key-used { margin-left: auto; color: var(--text-3); font-size: 11px; white-space: nowrap; }
.shop-keys-empty { color: var(--text-3); font-size: 12px; }

/* 摩登 2.0 卡片第二个入口 */
.service-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.service-link--btn { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }

/* 摩登 2.0 · 窗口时长（只读） */
.m2-device-grid { grid-template-columns: minmax(0, 1fr) 160px 170px 90px; }
.m2-win { color: var(--text); font-family: var(--mono); font-size: 13px; }
.m2-remain { color: var(--text); font-size: 13px; }
.m2-expire { color: var(--text-3); font-size: 12px; }
.m2-note { margin: 10px 0 0; color: var(--text-3); font-size: 12px; }
.m2-empty { padding: 30px 16px; color: var(--text-3); text-align: center; font-size: 13px; }
.m2-empty b { font-weight: 500; }

/* 摩登 2.0 顶部统计 + 三列表格 */
.m2-stats { display: flex; gap: 12px; margin-bottom: 12px; }
.m2-stat { flex: 1; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.m2-stat-k { display: block; color: var(--text-3); font-size: 12px; }
.m2-stat b { display: block; margin-top: 4px; color: var(--text); font-size: 20px; font-weight: 700; }
.m2-stat b small { margin-left: 2px; color: var(--text-3); font-size: 12px; font-weight: 400; }
.m2-device-grid { grid-template-columns: minmax(0, 1fr) 200px 100px; }
.m2-expire.is-expired { color: var(--text-3); }

/* 商品详情页 */
.shop-detail-main { padding: 18px; }
.shop-detail-head { display: flex; align-items: baseline; gap: 12px; }
.shop-detail-head h2 { margin: 0; font-size: 18px; }
.shop-detail-price { margin-left: auto; color: var(--amber); font-size: 18px; font-weight: 700; }
.shop-detail-price small { font-size: 12px; font-weight: 400; color: var(--text-3); }
.shop-detail-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; color: var(--text-3); font-size: 12px; }
.shop-detail-desc { margin: 10px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.7; white-space: pre-line; }
.shop-merchant { margin-top: 12px; padding: 14px 16px; }
.shop-merchant-head { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--text); }
.shop-merchant-head .icon { color: var(--text-3); }
.shop-contact-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.shop-contact-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.shop-contact-row .k { width: 48px; color: var(--text-2); font-size: 13px; }
.shop-contact-row .v { color: var(--text); font-size: 14px; }
.shop-buy-panel { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 12px; padding: 14px 16px; }
.shop-buy-panel .field { flex: 1 1 200px; margin: 0; }
.shop-buy-panel .btn { flex: 0 0 auto; min-width: 140px; }

/* 代理页邀请区 */
.agent-invite { margin-top: 14px; padding: 16px 18px; }
.agent-invite-head h2 { margin: 0 0 10px; font-size: 15px; }
.agent-invite-grid { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.agent-invite-main { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.agent-invite-row { display: flex; align-items: center; gap: 10px; }
.agent-invite-row .k { flex: none; width: 64px; color: var(--text-3); font-size: 12px; }
.agent-invite-code { font-family: var(--mono); font-size: 20px; letter-spacing: 1px; }
.agent-invite-row .input { flex: 1 1 auto; min-width: 0; }
.agent-invite-hint { margin: 0; color: var(--text-3); font-size: 12px; }
.agent-invite-qr .qr-canvas { width: 160px; height: 160px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

/* 商家上架/编辑商品弹窗 */
.mprod-desc { min-height: 200px; padding: 10px 12px; line-height: 1.7; resize: vertical; }
.mprod-count { display: block; margin-top: 4px; color: var(--text-3); font-size: 11px; text-align: right; }
.mprod-err { display: block; margin-top: 4px; color: var(--red); font-size: 12px; min-height: 16px; }

/* 商家商品列表 + 卡密弹层 */
.merchant-prod-grid { grid-template-columns: minmax(0, 1.5fr) 110px 80px 80px 90px 220px; }
.merchant-prod-cell { font-size: 13px; }
.merchant-prod-actions { display: flex; gap: 6px; justify-content: flex-end; }
.mkeys-body { display: flex; flex-direction: column; gap: 10px; }
.mkeys-summary { color: var(--text-2); font-size: 13px; }
.mkeys-summary b { color: var(--text); }
.mkeys-import { display: flex; flex-direction: column; gap: 8px; }
.mkeys-import textarea { min-height: 120px; padding: 10px 12px; resize: vertical; }
.mkeys-import-foot { display: flex; align-items: center; gap: 10px; }
.mkeys-head { display: flex; justify-content: flex-end; }
.mkeys-list { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.mkeys-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 64px 130px 120px 62px; gap: 10px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.mkeys-row:last-child { border-bottom: 0; }
.mkeys-row.is-sold { background: var(--surface-2); color: var(--text-3); }
.mkeys-key { font-family: var(--mono); color: var(--text); word-break: break-all; }
.mkeys-row.is-sold .mkeys-key { color: var(--text-3); }
.mkeys-time, .mkeys-buyer { color: var(--text-3); font-size: 12px; }
.mkeys-empty { padding: 18px; color: var(--text-3); text-align: center; }

/* 我的发布操作行 */
.board-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.board-actions .btn.is-danger { color: var(--red); border-color: var(--red-line); }

/* 商家销售明细 */
.merchant-sales-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 12px; }
.merchant-sales-filters .field { margin: 0; min-width: 160px; }
.merchant-sales-grid { grid-template-columns: 126px 142px minmax(0, 1.1fr) 48px 104px 92px 84px minmax(0, 0.7fr); }
.merchant-sales-pager { display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding: 10px 4px 0; color: var(--text-3); font-size: 12px; }

.energy-plan-error { display: flex; align-items: center; gap: 8px; padding: 16px; border: 1px dashed var(--line); border-radius: 10px; color: var(--text-3); font-size: 13px; }
.energy-plan-error .icon { color: var(--amber); }

/* 商家卡密筛选/批量 + 代理提升 */
.mkeys-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.mkeys-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 6px; }
.mkeys-row > input[type=checkbox] { margin: 0; }
.agent-promote-list { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; }
.agent-promote-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.agent-promote-name { font-weight: 600; }
.agent-promote-meta { margin-left: auto; color: var(--text-3); font-size: 12px; }

/* 商城：我的订单主按钮 + 查看卡密 */
.shop-orders-btn { position: relative; padding-right: 14px; }
.shop-orders-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; }
.shop-order-keys-btn { margin-left: 6px; }
.shop-key-line { padding: 4px 0; border-bottom: 1px dashed var(--line); }
.shop-key-line:last-child { border-bottom: 0; }
.shop-key-line code { font-family: var(--mono); }
.shop-key-line.is-used { color: var(--text-3); }
.shop-key-line.is-used code { color: var(--text-3); text-decoration: line-through; }

/* 商家卡密表格（表头 + 固定列宽单行） */
.mkeys-table { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.mkeys-thead, .mkeys-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 72px 132px 116px 64px; align-items: center; column-gap: 8px; padding: 0 10px; }
.mkeys-thead { height: 36px; background: #f7f8fa; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text-3); }
.mkeys-tbody { max-height: 320px; overflow-y: auto; overflow-x: hidden; }
.mkeys-row { height: 44px; border-bottom: 1px solid var(--line); font-size: 12.5px; white-space: nowrap; color: var(--text); }
.mkeys-row:last-child { border-bottom: 0; }
.mkeys-row.is-sold { background: var(--surface-2); color: var(--text-3); }
.mkeys-row > * { min-width: 0; }
.mkeys-key { display: block; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.mkeys-row.is-sold .mkeys-key { color: var(--text-3); }
.mkeys-status, .mkeys-time, .mkeys-buyer { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.mkeys-buyer { color: var(--text-3); }
.mkeys-del { background: none; border: 0; padding: 0; color: var(--text-2); font-size: 12px; cursor: pointer; }
.mkeys-del:hover { color: #dc2626; }
.mkeys-dash { color: var(--text-3); }
.mkeys-c-check { display: flex; align-items: center; justify-content: flex-start; }
@media (max-width: 560px) {
  .mkeys-thead, .mkeys-row { grid-template-columns: 32px minmax(0, 1fr) 66px 64px; column-gap: 6px; padding: 0 8px; }
  .mkeys-thead > span:nth-child(4), .mkeys-thead > span:nth-child(5), .mkeys-row > .mkeys-time, .mkeys-row > .mkeys-buyer { display: none; }
}

.to-row #sweepTop { margin-left: auto; }

/* 商家店铺资料 */
.merchant-profile-card { padding: 16px 18px; margin-bottom: 14px; }
.merchant-profile-grid { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 12px; }
.merchant-profile-item { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.merchant-profile-item .k { color: var(--text-3); font-size: 12px; }
.merchant-profile-item .v { color: var(--text); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.merchant-contact-chip { display: inline-flex; gap: 6px; align-items: center; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; background: var(--surface-2); }

.shop-contact-title { margin: 14px 0 6px; color: var(--text); font-size: 13px; font-weight: 600; }

/* 全局内容文字层级：内容深色，仅占位/禁用用浅灰 */
.input::placeholder, input::placeholder, textarea::placeholder { color: #9ca3af; opacity: 1; }
.btn:disabled, button:disabled { color: #9ca3af; }

/* 商城详情：单一商品名 + 价格 + 元信息单行 + 库存状态 */
.shop-detail-name { margin: 0; font-size: 18px; font-weight: 600; color: var(--text); line-height: 1.35; }
.shop-detail-price { flex: none; color: #2563eb; font-size: 20px; font-weight: 600; }
.shop-detail-price small { font-size: 12px; font-weight: 500; color: #2563eb; }
.shop-detail-meta { margin-top: 8px; color: var(--text-2); font-size: 13px; }
.shop-detail-desc { margin: 10px 0 0; color: var(--text); font-size: 14px; line-height: 1.7; white-space: pre-line; }
.shop-stock.is-low { color: #d97706; font-weight: 600; }
.shop-stock.is-out { color: #dc2626; font-weight: 600; }

.agent-code-pending { color: var(--text-3); font-size: 12px; margin-left: 6px; }

.energy-addr-note { margin: 6px 0 0; color: var(--text-2); font-size: 12px; }

/* 邮箱列表：备注列 + 复制 */
.mail-grid.mail-grid--4 { grid-template-columns: minmax(96px, 150px) minmax(0, 1fr) 150px 250px; }
.mail-remark-cell { min-width: 0; overflow: hidden; }
.mail-remark-text { display: block; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 820px) {
  .mail-grid.mail-grid--4 { grid-template-columns: 84px minmax(0, 1fr) auto; }
  .mail-grid--4 .mail-col-time, .mail-row .mail-time { display: none; }
}

/* 下载插件：格式选择 */
.plugin-pick { display: flex; flex-direction: column; gap: 10px; }
.plugin-pick-item { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.plugin-pick-item:hover { border-color: var(--primary-line); background: var(--surface-3); }
.plugin-pick-item b { font-size: 14px; color: var(--text); }
.plugin-pick-item span { font-size: 12.5px; color: var(--text-2); }
.plugin-pick-item small { font-size: 12px; color: var(--text-3); }

.agent-child-grid { grid-template-columns: minmax(0,1.2fr) 80px 80px 120px minmax(0,1.6fr) 110px; }
.agent-child-rates { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 商家中心顶部汇总：可提现 / 冻结，滚动时吸顶 */
.merchant-summary { position: sticky; top: 76px; z-index: 15; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 16px rgba(16, 24, 40, 0.06); }
@media (max-width: 640px) { .merchant-summary { top: 64px; } }

.agent-child-row.is-batch-failed { background: color-mix(in srgb, #dc2626 6%, transparent); }
.batch-fail { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; color: #dc2626; }

.merchant-products-scroll { overflow-x: auto; }
.merchant-products-scroll .merchant-prod-grid { min-width: 680px; }
.prod-cell-label { display: none; color: var(--text-3); font-size: 12px; }
@media (max-width: 760px) {
  .merchant-prod-grid { min-width: 640px; }
  .prod-cell-label { display: inline; }
}

/* 平台推荐 / 提现 */
.recommend-row { grid-template-columns: minmax(0, 1fr) 170px 250px; align-items: center; }
.recommend-mine-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.recommend-fee { font-size: 13px; }
.recommend-fee b { color: var(--text); }
.recommend-url a { word-break: break-all; }
.withdraw-row { grid-template-columns: minmax(0, 1.4fr) 200px 90px minmax(0, 1fr); align-items: center; }
@media (max-width: 760px) {
  .recommend-row { grid-template-columns: minmax(0, 1fr); }
  .withdraw-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* 平台推荐改版 */
.recommend-row { grid-template-columns: minmax(0, 1.3fr) 160px minmax(0, 1fr) 110px; align-items: start; }
.rec-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0; }
.rec-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 12px; }
.rec-tag-series { background: var(--primary-soft, #eef2ff); color: var(--primary, #3b5bdb); }
.rec-reason { display: block; margin-top: 4px; }
.rec-locked { display: block; color: var(--text-3); font-size: 12px; margin-bottom: 6px; }
.rec-notes { display: block; margin-top: 6px; white-space: pre-wrap; }
.rec-checks { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.rec-check { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text); }
.rec-warning { color: #dc2626; font-size: 12.5px; line-height: 1.5; margin: 4px 0; }
.rec-agree { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
@media (max-width: 760px) { .recommend-row { grid-template-columns: minmax(0, 1fr); } }

/* 平台推荐收入明细 / 我买过的 */
.rec-income { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; font-size: 12.5px; }
.rec-income-frozen { color: #b45309; }
.rec-income-released { color: #047857; }
.rec-income-refunded { color: #6b7280; }
.recommend-purchased-row { grid-template-columns: minmax(0, 1fr) 130px 150px 90px; align-items: center; }
.rec-refund-note { display: block; color: #dc2626; margin-top: 2px; }
@media (max-width: 760px) { .recommend-purchased-row { grid-template-columns: minmax(0, 1fr) auto; } }

/* 平台推荐详情 */
.rec-reason-input { min-height: 116px; resize: vertical; line-height: 1.6; }
.recommend-row.is-clickable { cursor: pointer; }
.recommend-row.is-clickable:hover { background: var(--surface-3); }
.rec-unlocked-hint { color: var(--text-2); font-size: 12.5px; }
.rec-lock-box { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface-2, #f8fafc); }
.rec-lock-box b { font-size: 14px; }
.rec-lock-box span { font-size: 12.5px; color: var(--text-3); }
.rec-detail-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rec-detail-head h2 { margin: 0; }
.rec-detail-reason { margin: 12px 0 8px; line-height: 1.7; color: var(--text); white-space: pre-wrap; }
.rec-detail-meta { display: flex; gap: 16px; font-size: 12.5px; color: var(--text-3); margin-bottom: 12px; }
.rec-notes-detail { margin: 10px 0 0; font-size: 13px; line-height: 1.6; white-space: pre-wrap; }
.rec-detail-actions { margin-top: 14px; display: flex; gap: 8px; }

/* 供需混合卡片列表 */
.board-mix-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }
.board-mix-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.mix-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.mix-card:hover { border-color: var(--primary-line); box-shadow: 0 6px 18px rgba(16,24,40,.06); }
.mix-badges { display: flex; gap: 6px; }
.mix-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.mix-badge-recommend { background: #eef2ff; color: #3b5bdb; }
.mix-badge-board { background: var(--surface-3); color: var(--text-2); }
.mix-title { margin: 0; font-size: 15px; color: var(--text); }
.mix-desc { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.6; }
.mix-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mix-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; border-top: 1px dashed var(--line); }
.mix-fee { font-size: 12.5px; color: var(--text-2); }
.mix-fee b, .mix-fee strong { color: var(--text); }
.mix-meta { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 能量页历史地址下拉 */
.energy-address { position: relative; }
.energy-addr-history { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 24px rgba(16,24,40,.12); padding: 6px; max-height: 280px; overflow-y: auto; }
.energy-addr-history-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.energy-addr-history-item:hover { background: var(--surface-3); }
.energy-addr-history-item .mono { font-size: 12.5px; color: var(--text); word-break: break-all; }
.energy-addr-history-item small { font-size: 11.5px; color: var(--text-3); }
.energy-addr-history-clear { width: 100%; margin-top: 4px; padding: 7px 10px; border: 0; border-top: 1px dashed var(--line); background: transparent; color: var(--text-3); font-size: 12px; cursor: pointer; }
.energy-addr-history-clear:hover { color: #dc2626; }

/* 钱包转账失败原因 */
.wallet-tx-error { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.4; color: #dc2626; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-energy-link { margin-left: 6px; color: var(--primary, #3b5bdb); font-weight: 600; text-decoration: underline; }

/* 我的发布 */
.recommend-mine-row { grid-template-columns: minmax(0, 1fr) 90px 220px; align-items: center; }
.recommend-mine-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 760px) { .recommend-mine-row { grid-template-columns: minmax(0, 1fr); } }

/* 转账收款地址联想 */
.wt-to-field { position: relative; }
.wt-suggest { position: absolute; left: 0; right: 0; top: calc(100% - 6px); z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 26px rgba(16,24,40,.14); padding: 6px; max-height: 320px; overflow-y: auto; }
.wt-suggest-group { padding: 6px 8px 4px; font-size: 11.5px; color: var(--text-3); }
.wt-suggest-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 7px 8px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.wt-suggest-item:hover { background: var(--surface-3); }
.wt-suggest-item .mono { font-size: 12.5px; color: var(--text); word-break: break-all; }
.wt-suggest-item small { font-size: 11.5px; color: var(--text-3); }
.wt-badge { margin-left: auto; font-size: 11px; padding: 1px 7px; border-radius: 999px; }
.wt-badge.is-ok { background: #ecfdf5; color: #047857; }
.wt-badge.is-bad { background: #fef2f2; color: #b91c1c; }
.wt-suggest-user { padding: 4px 6px 6px; }
.wt-suggest-user b { font-size: 13px; margin-right: 6px; }
.wt-suggest-user .wt-suggest-item { padding-left: 4px; }
.wt-suggest-empty, .wt-suggest-manual { padding: 8px; font-size: 12px; color: var(--text-3); }
.wt-suggest-manual { border-top: 1px dashed var(--line); margin-top: 4px; }
.wt-addr-note { margin-top: 6px; font-size: 12px; color: var(--text-3); }
.wt-addr-note.is-bad { color: #dc2626; }

/* 隔离收入进度 */
.iso-progress h3 { margin: 0 0 8px; font-size: 15px; }
.iso-deposit { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2, #f8fafc); margin: 8px 0; }
.iso-qr svg { width: 132px; height: 132px; display: block; }
.iso-deposit-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.iso-deposit-addr { font-size: 12.5px; word-break: break-all; }
.iso-actions { margin-top: 10px; display: flex; gap: 8px; }
.iso-layer-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.iso-layer { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 6px 8px; border: 1px dashed var(--line); border-radius: 8px; }
.iso-layer .mono { word-break: break-all; }
.iso-progress.is-done h3 { color: #047857; }
.iso-progress.is-failed h3 { color: #dc2626; }

/* 隔离钱包列表 */
.iso-wallet-head, .iso-wallet-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 110px 100px 80px; gap: 8px; align-items: center; padding: 8px 6px; }
.iso-wallet-head { font-size: 12px; color: var(--text-3); border-bottom: 1px solid var(--line); }
.iso-wallet-row { border-bottom: 1px dashed var(--line); font-size: 13px; }
.iso-wallet-row:last-child { border-bottom: 0; }
.iso-wallet-layer { color: var(--text-2); font-size: 12.5px; }
.iso-wallet-addr { display: flex; align-items: center; gap: 6px; min-width: 0; }
.iso-wallet-addr .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iso-detail-meta { font-size: 13px; margin-bottom: 6px; }
@media (max-width: 760px) { .iso-wallet-head, .iso-wallet-row { grid-template-columns: 60px minmax(0, 1fr) 90px; } .iso-wallet-head span:nth-child(4), .iso-wallet-head span:nth-child(5), .iso-wallet-row > :nth-child(4), .iso-wallet-row > :nth-child(5) { display: none; } }

/* 隔离记录金额/状态 */
.iso-rec-status { display: flex; align-items: center; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.iso-rec-cancel { padding: 2px 8px; }

/* 隔离钱包明细 / 明细单位 */
.iso-wallet-row.is-clickable { cursor: pointer; }
.iso-wallet-row.is-clickable:hover { background: var(--surface-3); }
.iso-w-detail-head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.iso-w-detail-head .mono { font-size: 12.5px; word-break: break-all; }
.iso-w-balances { display: flex; gap: 14px; font-size: 12.5px; color: var(--text-2); }
.iso-w-balances b { color: var(--text); }
.iso-flow-head, .iso-flow-row { display: grid; grid-template-columns: 140px 60px 120px 1fr 1fr 90px; gap: 8px; align-items: center; padding: 7px 4px; font-size: 12.5px; }
.iso-flow-head { color: var(--text-3); border-bottom: 1px solid var(--line); }
.iso-flow-row { border-bottom: 1px dashed var(--line); }
.iso-flow-row .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-tx-fee { display: block; font-size: 11px; color: var(--text-3); margin-top: 2px; }
@media (max-width: 760px) { .iso-flow-head, .iso-flow-row { grid-template-columns: 110px 50px 1fr 90px; } .iso-flow-head span:nth-child(4), .iso-flow-head span:nth-child(5), .iso-flow-row > :nth-child(4), .iso-flow-row > :nth-child(5) { display: none; } }

/* 隔离记录路径 */
.iso-path { display: block; font-size: 11px; color: var(--text-3); margin-top: 2px; }
.iso-detail-meta .mail-sub { margin-left: 10px; }

/* 登录/注册右栏：桌面与平板轻微下移（移动端不受影响） */
@media (min-width: 901px) {
  .login-panel .login-card { transform: translateY(14px); }
}
@media (min-width: 641px) and (max-width: 900px) {
  .login-panel { padding-top: 48px; }
}
