/* [不求人-新增] 第一阶段：旧版基础样式，仅迁视觉，不改变业务。 */
/* [不求人-新增] UI拆页：原样迁移旧组件样式，保留弹窗、定时任务及原操作样式。 */

  * { margin: 0; padding: 0; box-sizing: border-box; }
  :root {
    --bg: #f5f6f8; --card: #ffffff; --border: #e2e6ea; --text: #1a1a2e;
    --text2: #6b7280; --accent: #4f46e5; --accent-light: #eef2ff;
    --green: #16a34a; --red: #dc2626; --orange: #ea580c; --gold: #ca8a04;
    --blue: #2563eb; --radius: 10px; --shadow: 0 1px 3px rgba(0,0,0,0.08);
  }
  body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }

  /* 登录页 */
  .login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
  .login-box { background: var(--card); padding: 36px 32px; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.1); width: 360px; }
  .login-box h1 { font-size: 22px; margin-bottom: 6px; text-align: center; }
  .login-box p { color: var(--text2); text-align: center; margin-bottom: 24px; font-size: 13px; }
  .login-box input { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; margin-bottom: 12px; }
  .login-box button { width: 100%; padding: 11px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-size: 15px; cursor: pointer; }
  .login-box button:hover { opacity: 0.9; }
  .err-msg { color: var(--red); font-size: 13px; text-align: center; min-height: 18px; margin-bottom: 8px; }

  /* 主布局 */
  .app { display: none; width: 100%; max-width: none; margin: 0; padding: 16px 20px; }
  .app.show { display: block; }

  /* 顶栏 */
  .topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; position: sticky; top: 0; z-index: 20; background: var(--bg); padding: 6px 0 12px; border-bottom: 1px solid var(--border); }
  .topbar h1 { font-size: 18px; }
  .topbar .right { display: flex; gap: 10px; align-items: center; }
  .badge { background: var(--card); padding: 6px 14px; border-radius: 20px; font-size: 13px; border: 1px solid var(--border); }
  .badge .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }
  .dot.on { background: var(--green); } .dot.off { background: var(--text2); }
  .role-tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; margin-left: 6px; }
  .role-admin { background: #ede9fe; color: #6d28d9; }
  .role-user { background: #dbeafe; color: #1d4ed8; }
  .btn { padding: 7px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); cursor: pointer; font-size: 13px; }
  .btn:hover { background: var(--accent-light); }
  .btn-sm { padding: 4px 10px; font-size: 12px; }
  .btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
  .btn-primary:hover { opacity: 0.9; }
  .btn-danger { color: var(--red); border-color: #fecaca; }
  .btn-danger:hover { background: #fef2f2; }
  .btn-chest { color: var(--gold); border-color: #fde68a; background: #fffbeb; }
  .btn-chest:hover { background: #fef3c7; }
  .btn-chest:disabled { opacity: 0.5; cursor: not-allowed; }
  .chest-badge { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 10px; background: rgba(146,64,14,0.14); color: #92400e; font-size: 11px; font-weight: 600; }
  .btn-tip { color: #0d9488; border-color: #99f6e4; background: #f0fdfa; }
  .btn-tip:hover { background: #ccfbf1; }
  .btn-tip:disabled { opacity: 0.5; cursor: not-allowed; }
  .btn-inv { color: #7c3aed; border-color: #ddd6fe; background: #f5f3ff; }
  .btn-inv:hover { background: #ede9fe; }
  .btn-inv:disabled { opacity: 0.5; cursor: not-allowed; }
  .btn-tourn { color: #b45309; border-color: #fde68a; background: #fffbeb; }
  .btn-tourn:hover { background: #fef3c7; }
  .btn-tourn:disabled { opacity: 0.5; cursor: not-allowed; }
  .btn-gangboss { color: #be185d; border-color: #fbcfe8; background: #fdf2f8; }
  .btn-gangboss:hover { background: #fce7f3; }
  .btn-gangboss:disabled { opacity: 0.5; cursor: not-allowed; }
  .btn-trials { color: #7c2d12; border-color: #fed7aa; background: #fff7ed; }
  .btn-trials:hover { background: #ffedd5; }
  .btn-trials:disabled { opacity: 0.5; cursor: not-allowed; }
  .btn-spirit { color: #0f766e; border-color: #99f6e4; background: #f0fdfa; }
  .btn-spirit:hover { background: #ccfbf1; }
  .btn-spirit:disabled { opacity: 0.5; cursor: not-allowed; }
  .btn-worldboss { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
  .btn-worldboss:hover { background: #fee2e2; }
  .btn-worldboss:disabled { opacity: 0.5; cursor: not-allowed; }
  .worldboss-badge { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 10px; background: rgba(185,28,28,0.14); color: #b91c1c; font-size: 11px; font-weight: 600; }
  .gangboss-badge { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 10px; background: rgba(190,24,93,0.14); color: #be185d; font-size: 11px; font-weight: 600; }
  .trials-badge { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 10px; background: rgba(124,45,18,0.14); color: #7c2d12; font-size: 11px; font-weight: 600; }
  .spirit-badge { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 10px; background: rgba(15,118,110,0.14); color: #0f766e; font-size: 11px; font-weight: 600; }
  .stats-badge-row { display: inline-flex; gap: 4px; flex-wrap: wrap; }

  /* ==================== 定时任务（per-account，2026-09-13） ==================== */
  .sched-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #f3f4f6; color: var(--text2); font-weight: 400; }
  .sched-chip.on { background: #ecfdf5; color: var(--green); }

  /* 账号排序（拖拽 + 上移/下移） */
  .acct-item.dragging { opacity: .45; }
  .acct-item.drag-over { box-shadow: inset 0 3px 0 var(--accent); }
  .btn-move { min-width: 28px; padding: 4px 8px; color: var(--text2); }
  .btn-move:hover { color: var(--accent); background: var(--accent-light); }
  .btn-sched { color: var(--accent); border-color: #c7d2fe; background: var(--accent-light); font-weight: 600; }
  .btn-sched:hover { background: #e0e7ff; }
  .st-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15,23,42,.45); z-index: 120; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 12px; }
  .st-overlay.show { display: flex; }
  .st-page { background: var(--bg); width: 100%; max-width: 720px; min-height: calc(100vh - 48px); border-radius: 12px; padding-bottom: 24px; }
  .st-topbar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; border-radius: 12px 12px 0 0; }
  .st-topbar .back { border: none; background: none; font-size: 20px; cursor: pointer; color: var(--text2); padding: 2px 8px; border-radius: 8px; }
  .st-topbar .back:hover { background: var(--accent-light); color: var(--accent); }
  .st-topbar h1 { font-size: 16px; flex: 1; }
  .st-crumb { font-size: 12px; color: var(--text2); padding: 10px 16px 0; }
  .st-crumb b { color: var(--text); }
  .st-brief { display: flex; align-items: center; gap: 10px; margin: 12px 16px 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
  .st-feat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin: 12px 16px 0; overflow: hidden; }
  .st-feat.off { opacity: .68; }
  .st-feat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .st-feat-icon { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
  .st-fi-boss { background: #fdf2f8; border: 1px solid #fbcfe8; }
  .st-fi-trials { background: #fff7ed; border: 1px solid #fed7aa; }
  .st-fi-spirit { background: #f0fdfa; border: 1px solid #99f6e4; }
  .st-feat-name { font-weight: 600; font-size: 14px; }
  .st-feat-sub { font-size: 11px; color: var(--text2); margin-top: 1px; }
  .st-feat-head .grow { flex: 1; }
  .st-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; cursor: pointer; }
  .st-switch input { display: none; }
  .st-slider { position: absolute; inset: 0; background: #d1d5db; border-radius: 22px; transition: .2s; }
  .st-slider::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
  .st-switch input:checked + .st-slider { background: var(--green); }
  .st-switch input:checked + .st-slider::before { transform: translateX(18px); }
  .st-feat-body { padding: 12px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .st-feat.off .st-feat-body { display: none; }
  .st-feat.off .st-feat-head::after { content: "已关闭"; font-size: 11px; color: var(--text2); }
  .st-field label { display: block; font-size: 12px; color: var(--text2); margin-bottom: 4px; }
  .st-field input, .st-field select { width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; background: var(--card); }
  .st-hint { grid-column: 1 / -1; font-size: 11.5px; color: var(--text2); background: var(--card2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; line-height: 1.7; }
  .st-hint b { color: var(--text); }
  .st-footer { display: flex; gap: 10px; justify-content: flex-end; margin: 16px 16px 0; }
  @media (max-width: 640px) {
    .st-feat-body { grid-template-columns: 1fr; }
    .st-page { min-height: 100vh; border-radius: 0; padding-bottom: 90px; }
    .st-footer { position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); border-top: 1px solid var(--border); margin: 0; padding: 10px 14px; border-radius: 0; z-index: 6; }
  }

  /* 卡片 */
  .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
  .card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
  .card-header { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
  .card-header h2 { font-size: 15px; }
  .card-body { padding: 14px 16px; }
  .host-card { border-left: 4px solid var(--accent); }

  /* 账号行（整行平铺，无卡片） */
  #accountList { display: flex; flex-direction: column; }
  .acct-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; border-bottom: 1px solid #f0f1f3; }
  .acct-item:last-child { border-bottom: none; }
  .acct-item:hover { background: #f9fafb; }
  .acct-info { display: flex; align-items: center; gap: 10px; }
  .acct-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
  .acct-name { font-weight: 500; font-size: 14px; }
  .acct-meta { font-size: 12px; color: var(--text2); }
  .acct-owner { font-size: 11px; color: var(--blue); background: #eff6ff; padding: 1px 6px; border-radius: 4px; margin-left: 4px; }
  .status-tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; }
  .status-running { background: #dcfce7; color: var(--green); }
  .status-stopped { background: #f3f4f6; color: var(--text2); }
  .status-banned { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
  .acct-actions { display: flex; gap: 6px; flex-wrap: wrap; }

  /* 添加账号 */
  .add-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
  .add-form input, .add-form select { flex: 1; min-width: 100px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }

  /* 用户管理 */
  .user-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f0f1f3; }
  .user-item:last-child { border-bottom: none; }
  .user-info { display: flex; align-items: center; gap: 10px; }
  .user-avatar { width: 32px; height: 32px; border-radius: 50%; background: #dbeafe; color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }
  .user-name { font-weight: 500; font-size: 14px; }
  .user-meta { font-size: 12px; color: var(--text2); }
  .user-status { font-size: 11px; padding: 2px 8px; border-radius: 10px; }
  .user-active { background: #dcfce7; color: var(--green); }
  .user-disabled { background: #fee2e2; color: var(--red); }

  /* 农场地块 */
  .farm-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
  .slot { aspect-ratio: 1; border-radius: 8px; border: 2px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; cursor: default; padding: 2px; text-align: center; }
  .slot.empty { background: #fafafa; }
  .slot.growing { background: #fef9c3; border-color: #fde047; }
  .slot.ready { background: #dcfce7; border-color: #4ade80; }
  .slot.withered { background: #fee2e2; border-color: #fca5a5; }
  .slot.vip { background: #fef3c7; border-color: #f59e0b; border-width: 3px; }
  .slot .crop-name { font-weight: 600; font-size: 10px; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .slot .crop-time { color: var(--text2); font-size: 9px; }

  /* 日志 */
  .log-list { max-height: 320px; overflow-y: auto; font-family: 'SF Mono', 'Consolas', monospace; font-size: 12px; }
  .log-item { padding: 4px 8px; border-bottom: 1px solid #f5f5f5; display: flex; gap: 6px; }
  .log-item:hover { background: #f9fafb; }
  .log-time { color: var(--text2); white-space: nowrap; }
  .log-level { font-weight: 600; width: 14px; text-align: center; }
  .log-level.i { color: #3b82f6; } .log-level.! { color: var(--orange); }
  .log-level.X { color: var(--red); } .log-level.> { color: var(--green); } .log-level.. { color: var(--text2); }
  .log-acct { color: var(--accent); font-size: 11px; }
  .log-mod { color: var(--gold); }
  .log-msg { flex: 1; word-break: break-all; }

  /* 开关 */
  .toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12px; }
  .toggle input { width: 14px; height: 14px; }

  /* 统计 */
  .stats-row { display: flex; gap: 16px; font-size: 13px; }
  .stat-item { text-align: center; }
  .stat-item .num { font-size: 20px; font-weight: 700; color: var(--accent); }
  .stat-item .label { font-size: 11px; color: var(--text2); }

  /* API 调用统计 */
  .api-stats-summary { display: flex; gap: 20px; margin-bottom: 14px; flex-wrap: wrap; }
  .api-stat-box { background: var(--bg); border-radius: 8px; padding: 10px 16px; text-align: center; min-width: 90px; }
  .api-stat-box .v { font-size: 22px; font-weight: 700; line-height: 1.2; }
  .api-stat-box .l { font-size: 11px; color: var(--text2); margin-top: 2px; }
  .v.green { color: var(--green); } .v.red { color: var(--red); } .v.orange { color: var(--orange); } .v.blue { color: var(--blue); }
  .trend-bars { display: flex; align-items: flex-end; gap: 2px; height: 50px; margin-bottom: 14px; overflow-x: auto; }
  .trend-bar-col { flex: 1; min-width: 16px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
  .trend-bar { width: 100%; max-width: 20px; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; transition: height 0.3s; }
  .trend-bar-label { font-size: 8px; color: var(--text2); margin-top: 2px; white-space: nowrap; }
  .stats-table-wrap { overflow-x: auto; }
  .stats-table { width: 100%; border-collapse: collapse; font-size: 12px; }
  .stats-table th { text-align: left; padding: 6px 10px; border-bottom: 2px solid var(--border); color: var(--text2); font-weight: 600; white-space: nowrap; }
  .stats-table td { padding: 6px 10px; border-bottom: 1px solid #f0f1f3; white-space: nowrap; }
  .stats-table tr:hover { background: #f9fafb; }
  .stats-table .ep { font-family: 'SF Mono', 'Consolas', monospace; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
  .badge-count { display: inline-block; padding: 1px 6px; border-radius: 8px; font-size: 11px; font-weight: 600; }
  .bc-2xx { background: #dcfce7; color: var(--green); }
  .bc-4xx { background: #fee2e2; color: var(--red); }
  .bc-429 { background: #fef3c7; color: var(--orange); }
  .bc-5xx { background: #fecaca; color: var(--red); }
  .bc-net { background: #f3f4f6; color: var(--text2); }

  /* 弹窗 */
  .modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.3); z-index: 100; align-items: center; justify-content: center; }
  .modal-overlay.show { display: flex; }
  .modal-box { background: var(--card); border-radius: 12px; padding: 24px; width: 360px; box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
  .modal-box h3 { font-size: 16px; margin-bottom: 16px; }
  .modal-box input { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; margin-bottom: 10px; }
  .modal-box select { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; margin-bottom: 10px; }
  .modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
  .hidden { display: none !important; }

  /* ============ 移动端适配 ============ */
  body { -webkit-tap-highlight-color: transparent; }

  @media (max-width: 768px) {
    body { overflow-x: hidden; }
    .app { padding: 10px; }
    .topbar { flex-wrap: wrap; gap: 8px; }
    .topbar h1 { font-size: 16px; }
    .topbar .right { flex-wrap: wrap; gap: 6px; }
    .badge { padding: 4px 10px; font-size: 12px; }
    .btn-sm { padding: 6px 12px; font-size: 12px; }

    .grid { grid-template-columns: 1fr; gap: 12px; }
    .card-header { padding: 10px 12px; flex-wrap: wrap; gap: 8px; }
    .card-header h2 { font-size: 14px; }
    .card-body { padding: 10px 12px; }

    /* 账号卡：纵向堆叠 */
    .acct-item { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 0; }
    .acct-info { gap: 8px; }
    .acct-avatar { width: 32px; height: 32px; font-size: 13px; flex-shrink: 0; }
    .acct-name { font-size: 13px; }
    .acct-meta { font-size: 11px; line-height: 1.5; word-break: break-word; }
    .acct-actions { justify-content: flex-start; flex-wrap: wrap; }

    /* 用户管理同样堆叠 */
    .user-item { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 0; }

    /* 添加表单纵向排列 */
    .add-form { flex-direction: column; }
    .add-form input, .add-form select { min-width: 0; }

    /* 农场地块保持7列但缩小间距 */
    .farm-grid { gap: 4px; }
    .slot { font-size: 10px; }
    .slot .crop-name { font-size: 9px; }
    .slot .crop-time { font-size: 8px; }
    #farmSelect { min-width: 0 !important; width: auto; }

    /* 日志 */
    .log-list { max-height: 260px; font-size: 11px; }
    .log-item { flex-wrap: wrap; gap: 4px; padding: 3px 6px; }
    .log-time { font-size: 10px; }
    .log-acct { font-size: 10px; }

    /* 弹窗自适应 */
    .modal-box { width: calc(100% - 24px); padding: 18px; max-width: 360px; }

    /* 统计 */
    .stats-row { gap: 10px; }
    .stat-item .num { font-size: 18px; }

    /* 登录 */
    .login-box { width: calc(100% - 32px); max-width: 360px; padding: 28px 24px; }
    .login-box input { font-size: 16px; }
    .add-form input, .add-form select { font-size: 16px; }
    .modal-box input, .modal-box select { font-size: 16px; }
  }

  @media (max-width: 480px) {
    .topbar h1 { font-size: 15px; }
    .topbar .right { width: 100%; justify-content: space-between; }
    .badge { padding: 4px 8px; font-size: 11px; }
    .btn-sm { padding: 6px 10px; }
    .card-header { flex-direction: column; align-items: flex-start; }
    .farm-grid { gap: 3px; }
    .slot { font-size: 9px; }
    .slot .crop-name { font-size: 8px; }
    .slot .crop-time { font-size: 7px; }
    .stats-row { gap: 8px; }
    .stat-item .num { font-size: 16px; }
    .stat-item .label { font-size: 10px; }
    .log-msg { flex-basis: 100%; }
  }

  /* ======================== 组队秘境面板（2026-09-11） ======================== */
  /* 组队玩法合并卡片：秘境/远征 tab 切换（2026-09-18） */
  .coop-tabs { display: flex; gap: 6px; }
  .coop-tab { padding: 5px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--text2); font-size: 13px; cursor: pointer; user-select: none; transition: all .15s; }
  .coop-tab:hover { color: var(--text); border-color: var(--accent); }
  .coop-tab.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
  .coop-pane { display: none; }
  .coop-pane.on { display: block; }
  .td-panel { background: var(--card2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
  .td-wrap { display: flex; gap: 10px; align-items: stretch; margin-bottom: 16px; flex-wrap: wrap; }
  .td-wrap .td-panel { flex: 1 1 380px; min-width: 300px; margin-bottom: 0; }
  .td-wrap .td-log { flex: 1 1 380px; min-width: 300px; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
  .td-head { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; min-height: 24px; }
  .td-caret { display: inline-block; width: 12px; text-align: center; color: var(--text2); font-size: 11px; }
  .td-sum { font-size: 11px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .td-chip { padding: 4px 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); cursor: pointer; font-size: 12px; color: var(--text); user-select: none; display: inline-block; transition: all .15s; }
  .td-chip.on { background: #1a4f3a; border-color: var(--green); color: #fff; }
  .td-chip:hover { border-color: var(--accent); }
  .td-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; margin-top: 8px; }
  .td-label { color: var(--text2); font-size: 12px; }
  .td-log-title { font-weight: bold; font-size: 13px; color: var(--text); margin-bottom: 6px; }
  .td-log-entries { flex: 1; max-height: 440px; min-height: 160px; overflow-y: auto; font-family: monospace; font-size: 11px; }
  .td-log-entries .log-entry { padding: 3px 0; border-bottom: 1px solid var(--border); word-break: break-all; }
  .td-log-entries .log-entry.error { color: var(--red); }
  .td-log-entries .log-entry.warn { color: #fbbf24; }
  .td-log-entries .log-entry.info { color: var(--text); }
  .td-log-entries .log-entry .t { color: var(--text2); margin-right: 6px; }
  .td-log-empty { color: var(--text2); text-align: center; padding: 20px; }
  .td-input { background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; font-size: 12px; outline: none; }
  .td-input:focus { border-color: var(--accent); }
  .td-select { background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; font-size: 12px; }
  .td-section-title { color: var(--text2); font-size: 12px; margin: 8px 0 4px; }
