/* ==========================================================================
   claude-theme.css — 把 Claude 设计语言映射到原版 DOM（只在 data-theme="claude" 生效）
   claude.css 负责复用组件规则；本文件负责外壳、原版特有结构与覆盖。
   ========================================================================== */

html[data-theme="claude"] {
  /* 原版变量别名：让残留的蓝色变量也落到陶土色系 */
  --card: var(--surface);
  --text-2: var(--text-soft);
  --muted: var(--text-muted);
  --border-2: var(--border-strong);
  --ok: var(--success);
  --ok-bg: var(--success-bg);
  --warn: var(--warning);
  --warn-bg: var(--warning-bg);
  --danger: #B4433A;
  --danger-bg: #F9ECEA;
  --blue-50: var(--accent-soft-2);
  --blue-100: var(--accent-soft);
  --blue-200: #EBD9CF;
  --blue-300: #DDAF9C;
  --blue-400: #D07A5B;
  --blue-500: var(--accent);
  --blue-600: var(--accent);
  --blue-700: var(--accent-press);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 18px;
  --shadow-sm: var(--shadow);
  --chart-1: var(--accent);
  --chart-2: #4B6B7C;
  --chart-3: #A9761F;
  --chart-4: #7A6A8A;
  --chart-down: var(--accent);
  --chart-up: #D9A38E;
  --avail-1: #C96442;
  --avail-2: #E3B7A5;
  --avail-3: #A9761F;
  --avail-4: #B4433A;
}

/* ---------- 外壳 ---------- */
html[data-theme="claude"] body { background: var(--bg); }
html[data-theme="claude"] .app { display: flex; min-height: 100vh; animation: none; }
html[data-theme="claude"] .main { min-height: 100vh; }
html[data-theme="claude"] .sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: var(--bg-sidebar); border-right: 1px solid var(--border);
  padding: 22px 14px 16px; gap: 4px; z-index: var(--z-drawer);
}
html[data-theme="claude"] .brand { padding: 2px 10px 18px; gap: 10px; }
html[data-theme="claude"] .brand-logo {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent); color: #fff; box-shadow: none; animation: none;
}
html[data-theme="claude"] .brand-logo svg { width: 17px; height: 17px; }
html[data-theme="claude"] .brand-text strong {
  font-family: var(--font-display); font-size: 15.5px; font-weight: 500;
  letter-spacing: -.01em; line-height: 1.25;
}
html[data-theme="claude"] .brand-text span { font-size: 11px; color: var(--text-muted); letter-spacing: .02em; }
html[data-theme="claude"] .nav { padding: 0; display: flex; flex-direction: column; gap: 2px; }
html[data-theme="claude"] .nav-group {
  font-size: 11px; letter-spacing: .08em; color: var(--text-faint);
  padding: 16px 12px 6px; text-transform: uppercase; font-weight: 400;
}
html[data-theme="claude"] .nav-item {
  height: 38px; padding: 0 10px; margin-bottom: 0; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 400; color: var(--text-soft); gap: 10px;
  transition: background var(--t-fast), color var(--t-fast);
}
html[data-theme="claude"] .nav-item svg { width: 17px; height: 17px; color: var(--text-muted); }
html[data-theme="claude"] .nav-item:hover {
  background: rgba(255, 255, 255, .55); color: var(--text); transform: none;
}
html[data-theme="claude"] .nav-item:hover svg { transform: none; }
html[data-theme="claude"] .nav-item.active {
  background: var(--surface); color: var(--text); font-weight: 500;
  box-shadow: var(--shadow);
}
html[data-theme="claude"] .nav-item.active::before {
  left: 0; top: 9px; bottom: 9px; height: auto; transform: none;
  width: 2.5px; border-radius: 2px; background: var(--accent); animation: none;
}
html[data-theme="claude"] .nav-item.active svg { color: var(--accent); }
html[data-theme="claude"] .nav-badge {
  min-width: 24px; padding: 1px 8px; background: rgba(255, 255, 255, .7);
  color: var(--text-muted); font-weight: 400; border-radius: 999px;
}
html[data-theme="claude"] .nav-item.active .nav-badge { background: var(--surface-2); color: var(--text-soft); }
html[data-theme="claude"] .side-foot {
  margin-top: auto; padding: 16px 8px 4px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
}
html[data-theme="claude"] .side-foot .btn-ghost {
  height: 32px; justify-content: flex-start; padding: 0 10px;
  color: var(--text-muted); border-color: transparent; background: transparent;
  font-size: 12.5px; box-shadow: none;
}
html[data-theme="claude"] .side-foot .btn-ghost:hover { background: var(--surface-2); color: var(--text); }

html[data-theme="claude"] .topbar {
  position: static; height: auto; width: 100%; max-width: var(--content-max);
  margin: 0 auto; padding: 32px 40px 0;
  background: none; border: 0; backdrop-filter: none; z-index: auto;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
html[data-theme="claude"] .topbar-title h2 {
  font-family: var(--font-display); font-size: 30px; font-weight: 500;
  letter-spacing: -.015em; line-height: 1.35; color: var(--text);
}
html[data-theme="claude"] .topbar-title p { font-size: 13.5px; color: var(--text-muted); margin-top: 4px; }
html[data-theme="claude"] .topbar-actions { gap: 8px; }
html[data-theme="claude"] .avatar {
  width: 30px; height: 30px; border-radius: 50%; font-size: 12px; font-weight: 500;
  background: var(--surface-2); color: var(--text-soft);
  border: 1px solid var(--border); box-shadow: none;
}
html[data-theme="claude"] .content {
  width: 100%; max-width: var(--content-max); margin: 0 auto;
  padding: 0 40px 56px; flex: none;
}
html[data-theme="claude"] .view-enter { animation: fadeIn .26s var(--ease-out) both; }

/* ---------- 按钮 / 表单 ---------- */
html[data-theme="claude"] .btn:active { transform: none; }
html[data-theme="claude"] .btn-primary { box-shadow: none; background: var(--accent); }
html[data-theme="claude"] .btn-primary:hover { box-shadow: none; transform: none; background: var(--accent-hover); }
html[data-theme="claude"] .btn-block { height: 42px; padding: 0 14px; }
html[data-theme="claude"] .btn svg { width: 16px; height: 16px; }
html[data-theme="claude"] .search { flex: 0 1 288px; width: 288px; max-width: 288px; }
html[data-theme="claude"] .search input {
  height: var(--control-h); padding: 0 12px 0 34px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface); font-size: 13.5px;
}
html[data-theme="claude"] .search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
html[data-theme="claude"] .search svg { left: 12px; width: 15px; height: 15px; color: var(--text-faint); }
html[data-theme="claude"] .toolbar { gap: 10px; margin-bottom: 16px; }
html[data-theme="claude"] .toolbar .btn { margin-left: 0; }
html[data-theme="claude"] .toolbar .btn:first-of-type { margin-left: auto; }
html[data-theme="claude"] .field { margin-bottom: 14px; }
html[data-theme="claude"] .field label {
  display: block; font-size: 12.5px; color: var(--text-muted);
  margin-bottom: 6px; font-weight: 400;
}
html[data-theme="claude"] .field input,
html[data-theme="claude"] .field select {
  width: 100%; height: var(--control-h); padding: 0 12px; font-size: 13.5px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
}
html[data-theme="claude"] .field input:hover,
html[data-theme="claude"] .field select:hover { border-color: var(--border-strong); }
html[data-theme="claude"] .field input:focus,
html[data-theme="claude"] .field select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); outline: none;
}
html[data-theme="claude"] input:focus,
html[data-theme="claude"] select:focus,
html[data-theme="claude"] textarea:focus { outline: none; }
html[data-theme="claude"] button:focus-visible,
html[data-theme="claude"] a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html[data-theme="claude"] .field input[readonly],
html[data-theme="claude"] .field input:disabled { background: var(--surface-2); color: var(--text-muted); }
html[data-theme="claude"] .form-grid { gap: 16px 18px; }
html[data-theme="claude"] .copy-row { gap: 8px; }
html[data-theme="claude"] .copy-row input { font-family: var(--font-mono); font-size: 12px; }
html[data-theme="claude"] .seg {
  border: 0; background: var(--surface-2); border-radius: var(--radius-pill); padding: 3px; gap: 2px;
}
html[data-theme="claude"] .seg-btn { font-size: 12.5px; color: var(--text-muted); }
html[data-theme="claude"] .seg-btn:hover { color: var(--text); }
html[data-theme="claude"] .seg-btn.active {
  background: var(--surface); color: var(--text); font-weight: 500; box-shadow: var(--shadow);
}

/* ---------- 卡片 / 表格 ---------- */
html[data-theme="claude"] .card { transition: none; }
html[data-theme="claude"] .card:hover { box-shadow: var(--shadow); transform: none; }
html[data-theme="claude"] .card-head { padding: 18px 22px 0; border-bottom: 0; min-height: 30px; }
html[data-theme="claude"] .card-head h3 {
  font-family: var(--font-display); font-size: 17px; font-weight: 500; letter-spacing: -.01em;
}
html[data-theme="claude"] .card-body { padding: 16px 22px 22px; }
html[data-theme="claude"] .table tbody tr { animation: none; }
html[data-theme="claude"] .table th { background: var(--surface); }
html[data-theme="claude"] .table td { white-space: nowrap; }
html[data-theme="claude"] .table td .cell-meta { white-space: normal; }
html[data-theme="claude"] .cell-avatar {
  width: 30px; height: 30px; border-radius: 50%; font-size: 12.5px; font-weight: 500;
  background: var(--surface-2) !important; color: var(--text-soft) !important;
}
html[data-theme="claude"] .cell-name { font-size: 13.5px; font-weight: 500; }
html[data-theme="claude"] .bar { background: var(--surface-2); height: 6px; }
html[data-theme="claude"] .bar i { background: var(--accent); }
html[data-theme="claude"] .act { height: 28px; padding: 0 8px; }
html[data-theme="claude"] .badge { height: 22px; padding: 0 9px; }

/* ---------- 仪表盘 ---------- */
html[data-theme="claude"] .kpi {
  padding: 18px 20px 16px; border-radius: var(--radius); box-shadow: var(--shadow);
  animation: none; transition: none;
}
html[data-theme="claude"] .kpi:hover { transform: none; box-shadow: var(--shadow); }
html[data-theme="claude"] .kpi::after { display: none; }
html[data-theme="claude"] .kpi-ico {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--surface-2); color: var(--text-soft);
}
html[data-theme="claude"] .kpi-ico svg { width: 16px; height: 16px; }
html[data-theme="claude"] .kpi-num {
  font-family: var(--font-display); font-size: 28px; font-weight: 500;
  letter-spacing: -.02em; line-height: 1.1;
}
html[data-theme="claude"] .kpi-num small { font-family: var(--font-body); font-size: 12px; }
html[data-theme="claude"] .kpi-label { font-size: 12px; margin-top: 7px; }
html[data-theme="claude"] .health-dot { box-shadow: none; }
html[data-theme="claude"] .health-name { font-weight: 400; font-size: 13px; }
html[data-theme="claude"] .rank-item { margin-bottom: 0; padding: 7px 0; }
html[data-theme="claude"] .rank-top b { font-weight: 500; }
html[data-theme="claude"] .timeline::before { display: none; }
html[data-theme="claude"] .timeline li {
  padding: 0 0 14px 20px; border-left: 1px solid var(--border);
  margin-left: 3px; font-size: 12.5px;
}
html[data-theme="claude"] .timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
html[data-theme="claude"] .timeline li::before {
  left: -4px; top: 6px; width: 7px; height: 7px;
  background: var(--accent-soft); border: 1px solid var(--accent); box-shadow: none;
}
html[data-theme="claude"] .timeline time { display: block; font-size: 11px; margin: 0 0 1px; }

/* ---------- 线路订阅 ---------- */
html[data-theme="claude"] .airport-card {
  transform: none; animation: none; transition: none; padding: 18px 20px;
}
html[data-theme="claude"] .airport-card:hover { transform: none; box-shadow: var(--shadow); }
html[data-theme="claude"] .airport-head h3 { font-family: var(--font-display); font-size: 17.5px; font-weight: 500; }
html[data-theme="claude"] .airport-meta { gap: 18px; margin: 10px 0 12px; }
html[data-theme="claude"] .airport-meta b { font-weight: 500; }
html[data-theme="claude"] .airport-node-list { gap: 6px; }
html[data-theme="claude"] .node-chip { border-color: transparent; border-radius: 999px; }
html[data-theme="claude"] .node-chip:hover { background: var(--surface-2); color: var(--text-soft); }
html[data-theme="claude"] .node-chip.off { background: #F3F1EC; }
html[data-theme="claude"] .node-chip.muted { background: var(--surface); border-color: var(--border); }
html[data-theme="claude"] .st-log-card { padding: 12px 18px; border-radius: var(--radius); }
html[data-theme="claude"] .st-log-card > summary { padding: 0; color: var(--text-soft); font-weight: 400; }
html[data-theme="claude"] .st-log { border-top: 0; padding: 0; margin-top: 10px; }
html[data-theme="claude"] .st-line { border-bottom: 0; padding: 0; }

/* ---------- 节点管理器 / 授权成员 ---------- */
html[data-theme="claude"] .nm-tip {
  background: transparent; border: 0; padding: 0; margin-bottom: 10px;
  color: var(--text-muted); font-size: 12px;
}
html[data-theme="claude"] .nm-chip .nm-tick {
  width: 14px; height: 14px; border: 0; background: transparent;
  color: var(--accent); font-size: 11px;
}
html[data-theme="claude"] .nm-chip.on .nm-tick { background: transparent; border: 0; color: var(--accent); }
html[data-theme="claude"] .nm-grid { background: var(--surface-3); border-color: var(--border-subtle); }
html[data-theme="claude"] .auth-bar { background: var(--surface-2); border-bottom: 0; }
html[data-theme="claude"] .auth-list { padding: 6px; }
html[data-theme="claude"] .auth-item { border: 0; border-radius: 999px; background: var(--surface-2); }
html[data-theme="claude"] .auth-item:hover { border: 0; background: var(--accent-soft-2); }
html[data-theme="claude"] .auth-item.on { background: var(--accent-soft); color: var(--text); }

/* ---------- MTG / 监控 ---------- */
html[data-theme="claude"] .mtg-card { background: var(--surface); border-radius: var(--radius); transition: none; }
html[data-theme="claude"] .mtg-card:hover { transform: none; box-shadow: var(--shadow); }
html[data-theme="claude"] .mtg-secret {
  background: var(--surface-2); border: 0; border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 11.5px; padding: 7px 10px;
}
html[data-theme="claude"] .mon-card { border-radius: var(--radius); }
html[data-theme="claude"] .mon-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
html[data-theme="claude"] .mon-row { font-size: 12.5px; padding: 3px 0; }
html[data-theme="claude"] .mon-row b { font-weight: 500; }

/* ---------- 令牌 / 备份 ---------- */
html[data-theme="claude"] .token-item {
  padding: 10px 12px; border-bottom: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); gap: 14px;
}
html[data-theme="claude"] .token-item:hover { padding-left: 12px; background: var(--surface-2); }
html[data-theme="claude"] .token-key {
  width: 150px; font-size: 12px; color: var(--text); font-family: var(--font-mono);
}
html[data-theme="claude"] .token-val { font-size: 12px; color: var(--text-soft); font-family: var(--font-mono); }
html[data-theme="claude"] .token-copy { opacity: 1; color: var(--accent); font-size: 11.5px; }
html[data-theme="claude"] .backup-card {
  transform: none; animation: none; padding: 14px 18px; border-radius: var(--radius);
}
html[data-theme="claude"] .backup-card:hover { transform: none; box-shadow: var(--shadow); }
html[data-theme="claude"] .backup-file { font-family: var(--font-mono); font-size: 12.5px; font-weight: 400; }
html[data-theme="claude"] .backup-ico { background: var(--surface-2); color: var(--text-soft); border-radius: 9px; }

/* ---------- 弹窗 / Toast / 空状态 ---------- */
html[data-theme="claude"] .modal-mask {
  background: rgba(31, 30, 29, .30); backdrop-filter: blur(2px); animation: none;
}
html[data-theme="claude"] .modal {
  width: min(600px, calc(100vw - 32px)); max-width: 100%;
  max-height: calc(100vh - 48px); padding: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-pop);
  animation: pop .18s var(--ease-out) both;
}
html[data-theme="claude"] .modal-sm { width: min(440px, calc(100vw - 32px)); }
html[data-theme="claude"] .modal-head {
  padding: 22px 24px 0; border-bottom: 0; align-items: flex-start;
}
html[data-theme="claude"] .modal-head h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -.01em;
}
html[data-theme="claude"] .modal-body { padding: 18px 24px; }
html[data-theme="claude"] .modal-foot { padding: 0 24px 20px; border-top: 0; gap: 8px; }
html[data-theme="claude"] .confirm-body { padding: 26px 26px 8px; gap: 8px; }
html[data-theme="claude"] .confirm-icon {
  width: 46px; height: 46px; border-radius: 50%; margin-bottom: 4px;
  background: var(--danger-bg); color: var(--danger);
}
html[data-theme="claude"] .confirm-icon svg { width: 22px; height: 22px; }
html[data-theme="claude"] .confirm-body h3 { font-family: var(--font-display); font-size: 19px; font-weight: 500; }
html[data-theme="claude"] .confirm-body p { font-size: 13px; color: var(--text-muted); max-width: 360px; }
html[data-theme="claude"] .modal-tip { font-size: 11.5px; color: var(--text-faint); }
html[data-theme="claude"] .sub-head {
  background: var(--surface-2); border-radius: var(--radius); padding: 14px 16px;
}
html[data-theme="claude"] .sub-user { font-family: var(--font-display); font-size: 19px; font-weight: 500; }
html[data-theme="claude"] .qr-box {
  padding: 10px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
}
html[data-theme="claude"] .qr-box svg { width: 168px; height: 168px; display: block; }
html[data-theme="claude"] .sub-qr svg { display: block; }
html[data-theme="claude"] .empty svg { width: 40px; height: 40px; opacity: .4; }
html[data-theme="claude"] .toast { pointer-events: auto; }

/* ---------- 订阅编排 ---------- */
html[data-theme="claude"] .sl-toolbar .btn-ghost { border-color: var(--border); background: var(--surface); }
html[data-theme="claude"] .sl-toolbar [data-sl="save"] { margin-left: auto; }
html[data-theme="claude"] .sl-meta {
  padding: 0; background: transparent; border: 0; border-radius: 0;
  margin: 0 0 12px; gap: 18px; font-size: 11.5px; color: var(--text-faint);
}
html[data-theme="claude"] .sl-dirty { color: var(--accent); font-weight: 500; }
html[data-theme="claude"] .sl-banner {
  background: var(--warning-bg); border: 1px solid #EBDCBE; color: var(--warning);
  border-radius: var(--radius-sm); padding: 10px 14px;
}
html[data-theme="claude"] .sl-stale {
  background: var(--warning-bg); border: 1px solid #EBDCBE; color: var(--warning);
  border-radius: var(--radius-sm); padding: 10px 14px;
}
html[data-theme="claude"] .sl-row.hidden-row { background: transparent; opacity: .55; }
html[data-theme="claude"] .sl-row.hidden-row .sl-name { color: var(--text-muted); text-decoration: line-through; }
html[data-theme="claude"] .sl-groups { grid-template-columns: 1fr 1fr; gap: 12px; }
html[data-theme="claude"] .sl-group-card { border-radius: var(--radius); box-shadow: var(--shadow); }
html[data-theme="claude"] .sl-group-name { font-family: var(--font-display); font-weight: 500; font-size: 15px; }
html[data-theme="claude"] .sl-chip { background: var(--surface-2); color: var(--text-soft); border: 0; border-radius: 999px; }
html[data-theme="claude"] .sl-chip.fixed { background: transparent; border: 1px dashed var(--border-strong); color: var(--text-faint); }
html[data-theme="claude"] .sl-prev-col { border-radius: var(--radius); }
html[data-theme="claude"] .sl-prev-item { border-bottom: 1px solid var(--border-subtle); }
html[data-theme="claude"] .sl-hist-row,
html[data-theme="claude"] .sl-stale-item { border-color: var(--border-subtle); border-radius: var(--radius-sm); }

/* ---------- 登录页 ---------- */
html[data-theme="claude"] .login-bg { display: none; }
html[data-theme="claude"] .login-wrap {
  background:
    radial-gradient(900px 560px at 12% 6%, #F6EFE7 0%, transparent 62%),
    radial-gradient(760px 520px at 88% 96%, #F1EDE3 0%, transparent 58%),
    var(--bg);
}
html[data-theme="claude"] .login-card {
  width: 100%; max-width: 400px; padding: 36px 34px 28px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  backdrop-filter: none; animation: none;
}
html[data-theme="claude"] .login-logo {
  width: 42px; height: 42px; margin: 0 0 20px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); box-shadow: none; animation: none;
}
html[data-theme="claude"] .login-logo svg { width: 22px; height: 22px; }
html[data-theme="claude"] .login-title {
  font-family: var(--font-display); font-size: 25px; font-weight: 500;
  letter-spacing: -.01em; text-align: left;
}
html[data-theme="claude"] .login-sub { font-size: 13px; color: var(--text-muted); margin: 6px 0 26px; text-align: left; }
html[data-theme="claude"] .login-card .field input {
  height: var(--control-h); padding: 0 12px; font-size: 13.5px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
html[data-theme="claude"] .login-card .field input:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring);
}
html[data-theme="claude"] .login-remember { margin: 2px 0 16px; font-size: 12.5px; color: var(--text-muted); }
html[data-theme="claude"] .login-remember input { accent-color: var(--accent); }
html[data-theme="claude"] .login-err {
  min-height: 0; margin-bottom: 12px; padding: 0; background: transparent;
  text-align: left; opacity: 1; transform: none; display: none;
}
html[data-theme="claude"] .login-err.show {
  display: block; padding: 8px 10px; border-radius: var(--radius-sm);
  background: var(--danger-bg); color: var(--danger);
}
html[data-theme="claude"] .login-tip { font-size: 12px; color: var(--text-faint); margin-top: 16px; }
html[data-theme="claude"] .login-card .spinner { border-color: rgba(255,255,255,.45); border-top-color: #fff; }
html[data-theme="claude"] .file-notice .login-title { text-align: left; }

/* ---------- 模式徽标（Claude） ---------- */
html[data-theme="claude"] .mode-chip {
  flex: none; align-self: flex-start; font-size: 11.5px; font-weight: 500; letter-spacing: .02em;
  color: var(--text-muted); background: rgba(255, 255, 255, .72);
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px;
}
html[data-theme="claude"] .mode-chip::before { width: 7px; height: 7px; }
html[data-theme="claude"] .mode-chip.is-real {
  color: #8A5A12; background: var(--warning-bg); border-color: #EBDCBE;
}
html[data-theme="claude"] .mode-chip.is-local,
html[data-theme="claude"] .mode-chip.is-mock {
  color: var(--accent); background: var(--accent-soft-2); border-color: var(--accent-soft);
}
html[data-theme="claude"] .mode-chip.is-file { color: var(--danger); background: var(--danger-bg); border-color: #EBC9C4; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  html[data-theme="claude"] .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  html[data-theme="claude"] .grid-2 { grid-template-columns: 1fr; }
  html[data-theme="claude"] .sl-groups { grid-template-columns: 1fr; }
}
@media (max-width: 1023px) {
  html[data-theme="claude"] .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; height: 100vh;
    transform: translateX(-100%); transition: transform var(--t);
    box-shadow: var(--shadow-pop); width: 268px; flex-basis: 268px;
  }
  html[data-theme="claude"] .app.drawer-open .sidebar { transform: none; }
  html[data-theme="claude"] .app.drawer-open .drawer-mask { display: block; }
  html[data-theme="claude"] .topbar { padding: 20px 18px 0; align-items: flex-start; }
  html[data-theme="claude"] .topbar-title h2 { font-size: 25px; }
  html[data-theme="claude"] .content { padding: 0 18px 48px; }
  html[data-theme="claude"] .search { flex: 1 1 100%; width: 100%; max-width: 100%; }
  html[data-theme="claude"] .toolbar .search { flex: 1 1 100%; }
  html[data-theme="claude"] .sl-prev-grid { grid-template-columns: 1fr; }
  html[data-theme="claude"] .airport-head > div { width: 100%; margin-left: 0 !important; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  html[data-theme="claude"] .kpi-grid { grid-template-columns: 1fr; }
  html[data-theme="claude"] .form-grid { grid-template-columns: 1fr; }
  html[data-theme="claude"] .topbar-title h2 { font-size: 23px; }
  html[data-theme="claude"] .table { width: max-content; min-width: 100%; }
  html[data-theme="claude"] .table th,
  html[data-theme="claude"] .table td { white-space: nowrap; }
  html[data-theme="claude"] .card-head { padding: 16px 16px 0; }
  html[data-theme="claude"] .card-body { padding: 14px 16px 18px; }
  html[data-theme="claude"] .table th:first-child,
  html[data-theme="claude"] .table td:first-child { padding-left: 16px; }
  html[data-theme="claude"] .table th:last-child,
  html[data-theme="claude"] .table td:last-child { padding-right: 16px; }
  html[data-theme="claude"] .backup-card { flex-wrap: wrap; }
  html[data-theme="claude"] .backup-actions { width: 100%; justify-content: flex-end; }
  html[data-theme="claude"] .modal-head { padding: 18px 18px 0; }
  html[data-theme="claude"] .modal-body { padding: 16px 18px; }
  html[data-theme="claude"] .modal-foot { padding: 0 18px 16px; }
  html[data-theme="claude"] .toast-wrap { left: 12px; right: 12px; bottom: 12px; align-items: stretch; }
  html[data-theme="claude"] .toast { max-width: none; }
  html[data-theme="claude"] .sl-meta { gap: 10px; }
  html[data-theme="claude"] .sl-user { margin-left: 0; }
}
