/* 设置页·逻辑精选导入令牌一次性展示 */
.logic-token-value { margin: 8px 0 0; padding: 8px 12px; background: #f4f6fa; border: 1px dashed #c9d3e4; border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; cursor: copy; }

/* 设置页·修改密码内联表单 */
.password-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 10px; padding: 14px; background: #f8f9fc; border: 1px solid #e6e9f0; border-radius: 10px; }
.password-form input { flex: 1 1 180px; padding: 9px 12px; border: 1px solid #dde2ea; border-radius: 8px; font-size: 13px; }
.password-form input:focus { outline: 2px solid #bfd3ff; border-color: #2563eb; }
.password-form-actions { display: flex; gap: 8px; width: 100%; }

/* 独立台账·流水截断提示 */
.preplan-trades-truncated { margin: 8px 2px 0; font-size: 12px; color: #9aa2b1; }

/* ==================== 设置页·系统健康看板 ==================== */
.health-meta { font-size: 13px; color: #7c8494; margin: 4px 0 14px; }
.health-list { display: flex; flex-direction: column; gap: 8px; }
.health-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid #e6e9f0; border-radius: 10px; background: #fff; }
.health-item.is-bad { border-color: #f0c2c2; background: #fdf6f6; }
.health-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: #22c55e; }
.health-item.is-bad .health-dot { background: #ef4444; }
.health-item-body { flex: 1; min-width: 0; }
.health-item-body b { display: block; font-size: 14px; color: #2a3140; }
.health-item-body span { font-size: 12px; color: #7c8494; word-break: break-all; }
.health-badge { font-size: 12px; font-weight: 600; color: #16a34a; white-space: nowrap; }
.health-item.is-bad .health-badge { color: #dc2626; }
.status-pill.error { background: #fdecec; color: #dc2626; }
.status-pill.warn { background: #fef6e7; color: #d97706; }

/* 系统健康看板·头部操作区(立即检查按钮+状态pill) */
.health-head-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* 个股联想 combobox（新增/编辑标的表单共用，交互与顶栏搜索一致） */
.stock-cb { position: relative; }
.stock-cb-options {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40;
  padding: 4px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 10px 28px rgba(15, 35, 60, .14);
  max-height: 262px; overflow: auto;
}
.stock-cb-option {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  gap: 10px; padding: 8px 10px; border: 0; border-radius: 6px;
  background: transparent; font: inherit; font-size: 12px; text-align: left; cursor: pointer;
}
.stock-cb-option span { display: flex; min-width: 0; align-items: baseline; gap: 7px; }
.stock-cb-option b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stock-cb-option small, .stock-cb-option em { color: var(--faint); font-style: normal; }
.stock-cb-option u { color: var(--muted); font-size: 10.5px; text-decoration: none; white-space: nowrap; }
.stock-cb-option:hover, .stock-cb-option.is-active { background: var(--teal-bg); }
.stock-cb-option:disabled { cursor: not-allowed; opacity: .55; }
.stock-cb-option-state { padding: 10px; color: var(--muted); font-size: 12px; }
/* 早报模型设置：独立于预案卡 AI 新闻；密钥只写、不回显。 */
.briefing-ai-notice{margin:0 20px 16px;padding:14px 16px;background:#fff7e8;border-left:3px solid #d99325;line-height:1.7;color:#78511c}
#briefing-ai-state{margin:0 20px 12px}#briefing-ai-content{padding:0 20px 20px}
.briefing-ai-selection{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0 10px}
.briefing-ai-selection select,.briefing-ai-provider input{font:inherit;border:1px solid #cbd5e1;border-radius:8px;padding:10px 12px;background:#fff;color:#26364c;min-width:0}
.briefing-ai-providers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0}
.briefing-ai-provider{border:1px solid #dbe3ec;border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:10px;min-width:0}
.briefing-ai-provider-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.briefing-ai-provider-head h3{margin:0}
.briefing-ai-search{margin:20px 0;background:#f7faff}.briefing-ai-search input{width:100%;max-width:640px;box-sizing:border-box}.briefing-ai-search .briefing-ai-hint{margin:0 0 4px}
.briefing-ai-hint{font-size:13px;line-height:1.7;color:#687991;overflow-wrap:anywhere}
.briefing-ai-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}
.briefing-ai-error{color:#b4243b}
.briefing-ai-history{line-height:1.9;color:#687991}.briefing-ai-history summary{cursor:pointer}
@media(max-width:1100px){.briefing-ai-providers{grid-template-columns:1fr}.briefing-ai-provider{max-width:none}}

/* 预案标的排序可达性：手柄键盘焦点态；上移/下移降级按钮仅触屏显示 */
.preplan-target-handle:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; border-radius: 4px; }
.preplan-target-step { display: none; }
.preplan-detail-stocks.is-reorder-busy .preplan-target-handle { cursor: wait; opacity: .6; }
@media (hover: none) and (pointer: coarse) {
  .preplan-target-step {
    display: inline-block; min-height: 30px; padding: 4px 10px;
    border: 1px solid var(--line); border-radius: 5px; background: #fff;
    color: var(--muted); font: inherit; font-size: 10.5px; font-weight: 800; cursor: pointer;
  }
  .preplan-target-step:disabled { cursor: not-allowed; opacity: .45; }
}

