* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background: #f6f8fb; color: #1f2d3d; font-size: 14px;
}
.hidden { display: none !important; }
.muted { color: #7b8798; }
.error { color: #d93025; min-height: 18px; font-size: 13px; }

/* 登录 */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 20% 20%, #1e3a8a33, transparent 40%), #0f172a; }
.login-card { background: #fff; padding: 40px 36px; border-radius: 18px; width: 360px; text-align: center;
  box-shadow: 0 30px 60px #0006; }
.logo { width: 52px; height: 52px; border-radius: 14px; background: #2563eb; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }
.logo.small { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; margin: 0; }
.login-card h1 { font-size: 20px; margin: 8px 0 6px; }
.login-card input { width: 100%; padding: 12px; margin: 18px 0 12px; border: 1px solid #d7dee8;
  border-radius: 10px; font-size: 14px; }
.login-card button { width: 100%; padding: 12px; border: 0; border-radius: 10px; background: #2563eb;
  color: #fff; font-size: 15px; cursor: pointer; }
.login-card button:hover { background: #1d4ed8; }

/* 布局 */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 220px; background: #0f172a; color: #cbd5e1; display: flex; flex-direction: column; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 20px 20px; font-weight: 600; color: #fff; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; padding: 0 12px; }
.sidebar nav a { color: #cbd5e1; text-decoration: none; padding: 11px 14px; border-radius: 10px; font-size: 14px; }
.sidebar nav a:hover { background: #1e293b; color: #fff; }
.sidebar nav a.active { background: #2563eb; color: #fff; }
.sidebar-footer { margin-top: auto; padding: 16px 20px; display: flex; align-items: center; gap: 8px; font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.green { background: #22c55e; } .dot.gray { background: #64748b; } .dot.red { background: #ef4444; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; background: #fff; border-bottom: 1px solid #e8edf3; }
.topbar h2 { font-size: 17px; margin: 0; }
.content { padding: 24px 28px; overflow: auto; }
.ghost { background: transparent; border: 1px solid #d7dee8; color: #5a6b7f; padding: 7px 14px;
  border-radius: 8px; cursor: pointer; }
.ghost:hover { background: #f2f5f9; }

/* 卡片 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
.card { background: #fff; border: 1px solid #e8edf3; border-radius: 14px; padding: 16px 18px; }
.card .label { color: #7b8798; font-size: 12px; }
.card .value { font-size: 26px; font-weight: 700; margin-top: 6px; }
.card .value.warn { color: #d93025; }

/* 表格 */
.panel { background: #fff; border: 1px solid #e8edf3; border-radius: 14px; overflow: hidden; margin-bottom: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px;
  border-bottom: 1px solid #eef2f7; }
.panel-head h3 { margin: 0; font-size: 15px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid #f0f3f8; font-size: 13px; }
th { color: #7b8798; font-weight: 500; background: #fafbfd; }
tbody tr:hover { background: #f8fafc; cursor: pointer; }
td.truncate { max-width: 460px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; }
.badge.ok { background: #e7f8ef; color: #138a4b; }
.badge.err { background: #fdeceb; color: #c5221f; }
.badge.gray { background: #f0f3f8; color: #5a6b7f; }

.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar input { flex: 0 0 280px; padding: 10px 12px; border: 1px solid #d7dee8; border-radius: 10px; }
.toolbar .spacer { flex: 1; }

/* 机器人卡 */
.bot-card { background: #fff; border: 1px solid #e8edf3; border-radius: 14px; padding: 18px; margin-bottom: 14px; }
.bot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bot-title { font-size: 15px; font-weight: 600; }
.bot-meta { color: #7b8798; font-size: 12px; margin-top: 4px; }
.switch { position: relative; width: 46px; height: 26px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; transition: .2s; cursor: pointer; }
.slider:before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: #22c55e; }
.switch input:checked + .slider:before { transform: translateX(20px); }
select, .bot-card input[type="text"] { padding: 8px 10px; border: 1px solid #d7dee8; border-radius: 9px; }
.bot-form { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }

/* 抽屉 */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer-mask { position: absolute; inset: 0; background: #0f172a55; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(640px, 92vw); background: #fff;
  padding: 24px; overflow: auto; box-shadow: -12px 0 40px #0f172a33; }
.drawer-panel .close { position: absolute; right: 16px; top: 14px; font-size: 18px; padding: 2px 10px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 14px 0; }
.kv .k { color: #7b8798; }
.pre { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px; padding: 12px;
  white-space: pre-wrap; word-break: break-word; font-size: 13px; }
.steps { margin-top: 12px; }
.step { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #eef2f7; }
.step .name { font-weight: 600; width: 110px; }
.step .ms { color: #7b8798; width: 70px; }
.step .detail { color: #4a5568; flex: 1; word-break: break-word; }
.timeline-dot { width: 8px; height: 8px; border-radius: 50%; background: #2563eb; margin-top: 7px; }
.empty { padding: 40px; text-align: center; color: #9aa6b5; }

/* 消息存档：按人查看 */
.mail-layout { display: flex; gap: 16px; align-items: flex-start; }
.user-list { width: 220px; flex: 0 0 220px; background: #fff; border: 1px solid #e8edf3; border-radius: 14px; padding: 8px; }
.user-list-head { font-size: 12px; color: #7b8798; padding: 6px 10px 10px; }
.user-item { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 0;
  background: transparent; padding: 9px 10px; border-radius: 9px; cursor: pointer; font-size: 13px; color: #1f2d3d; }
.user-item:hover { background: #f2f5f9; }
.user-item.active { background: #2563eb; color: #fff; }
.user-item .ucount { color: #7b8798; font-size: 12px; }
.user-item.active .ucount { color: #dbeafe; }
.mail-main { flex: 1; min-width: 0; }
.uname-cell { font-weight: 500; }
.uid { color: #9aa6b5; font-size: 12px; margin-left: 6px; }

.toolbar .ghost.active { background: #2563eb; border-color: #2563eb; color: #fff; }

/* 聊天式消息存档 */
.chat-layout { display: flex; gap: 16px; height: calc(100vh - 112px); }
.conv-list { width: 280px; flex: 0 0 280px; background: #fff; border: 1px solid #e8edf3; border-radius: 14px; overflow: auto; padding: 8px; }
.conv-head { font-size: 12px; color: #7b8798; padding: 6px 10px 10px; }
.conv-item { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 10px; border-radius: 10px; cursor: pointer; }
.conv-item:hover { background: #f2f5f9; }
.conv-item.active { background: #e8f0fe; }
.conv-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.conv-name { font-weight: 600; font-size: 13px; color: #1f2d3d; }
.conv-time { color: #9aa6b5; font-size: 11px; flex: 0 0 auto; }
.conv-preview { color: #7b8798; font-size: 12px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-panel { flex: 1; min-width: 0; background: #fff; border: 1px solid #e8edf3; border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #eef2f7; }
.chat-name { font-size: 15px; font-weight: 600; }
.chat-meta { color: #7b8798; font-size: 12px; margin-top: 3px; }
.chat-actions { display: flex; gap: 8px; }
.bubbles { flex: 1; overflow: auto; padding: 18px; background: #f7f9fc; }
.msg-row { display: flex; align-items: flex-end; gap: 8px; margin: 6px 0; }
.msg-row.user { justify-content: flex-end; }
.bubble { max-width: 68%; padding: 10px 13px; border-radius: 12px; font-size: 13px; line-height: 1.65;
  white-space: pre-wrap; word-break: break-word; }
.bubble.user { background: #2563eb; color: #fff; border-bottom-right-radius: 4px; }
.bubble.bot { background: #fff; border: 1px solid #e8edf3; color: #1f2d3d; border-bottom-left-radius: 4px; }
.msg-time { font-size: 11px; color: #9aa6b5; flex: 0 0 auto; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: #dbeafe; color: #1d4ed8; font-size: 11px;
  display: flex; align-items: center; justify-content: center; flex: 0 0 26px; }
.load-more { text-align: center; margin-bottom: 12px; }
.composer { padding: 10px 18px; border-top: 1px solid #eef2f7; font-size: 12px; color: #9aa6b5; background: #fff; }

/* 窄会话列表 + 筛选栏 + 运行列表 */
.conv-list { width: 160px; flex: 0 0 160px; }
.conv-item { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.conv-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filters { display: flex; gap: 8px; align-items: center; padding: 10px 18px; border-bottom: 1px solid #eef2f7; background: #fff; flex-wrap: wrap; }
.filters input { flex: 1; min-width: 180px; padding: 8px 11px; border: 1px solid #d7dee8; border-radius: 9px; }
.filters select { padding: 8px 10px; border: 1px solid #d7dee8; border-radius: 9px; background: #fff; }
.run-list { flex: 1; overflow: auto; padding: 8px 12px; background: #f7f9fc; }
.run-item { display: grid; grid-template-columns: 170px 130px 80px 80px 60px; gap: 10px; align-items: center;
  width: 100%; border: 1px solid #e8edf3; background: #fff; border-radius: 10px; padding: 10px 14px; margin: 8px 0;
  cursor: pointer; text-align: left; font-size: 13px; }
.run-item:hover { border-color: #bcd0f5; background: #f8fbff; }
.run-time { color: #7b8798; font-size: 12px; }
.run-intent { font-weight: 500; }
.run-ms, .run-steps { color: #7b8798; font-size: 12px; }

/* 运行看板 */
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding: 12px 16px 4px; }
.bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 6px; }
.bar { width: 100%; max-width: 28px; background: #4a7cf7; border-radius: 4px 4px 0 0; min-height: 3px; }
.bar.has-error { background: #f59e0b; }
.bar-item span { font-size: 10px; color: #8a94a6; margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.list-row { display: flex; gap: 10px; align-items: center; padding: 8px 16px; border-bottom: 1px solid #f0f3f8; font-size: 13px; }
.list-row > span:first-child { width: 140px; flex: 0 0 140px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 8px 16px; border-bottom: 1px solid #f0f3f8; }
.table th { color: #7b8798; font-weight: 500; }
#dash-days { padding: 6px 10px; border: 1px solid #d7dee8; border-radius: 8px; background: #fff; }


/* ============================================================
   v2 智能体控制台 · 设计升级（覆盖旧样式）
   ============================================================ */
:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --line: #e6ebf3;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --ok: #16a34a;
  --warn: #f59e0b;
  --err: #ef4444;
  --sidebar: #0b1120;
  --radius: 16px;
}

body { background: var(--bg); color: var(--text); }

/* 登录 */
.login { background:
  radial-gradient(900px 500px at 15% 10%, #6366f144, transparent 60%),
  radial-gradient(700px 400px at 85% 90%, #8b5cf633, transparent 60%),
  #070b16; }
.login-card { width: 400px; padding: 36px 32px; border-radius: 22px; text-align: left;
  background: #0f172acc; border: 1px solid #ffffff14; color: #e2e8f0;
  box-shadow: 0 40px 90px #000a; backdrop-filter: blur(14px); }
.login-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 26px; }
.logo { width: 52px; height: 52px; border-radius: 16px; font-size: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 12px 30px #6366f166; margin: 0; }
.login-card h1 { font-size: 19px; margin: 0 0 6px; color: #f8fafc; }
.login-card .muted { color: #94a3b8; font-size: 12.5px; margin: 0; }
.login-card input { background: #0b1221; border: 1px solid #ffffff1f; color: #e2e8f0; }
.login-card input:focus { outline: none; border-color: var(--accent); }
.login-card button { background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 600; }

/* 布局 */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 232px; background: linear-gradient(180deg, #0b1120 0%, #0d1526 60%, #0b1120 100%);
  color: #94a3b8; padding: 18px 12px 16px; border-right: 1px solid #ffffff0d; }
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 18px; }
.logo.small { width: 34px; height: 34px; border-radius: 11px; font-size: 15px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { color: #f8fafc; font-weight: 700; font-size: 15px; letter-spacing: .3px; }
.brand-sub { color: #64748b; font-size: 11px; margin-top: 2px; }

.sidebar nav { display: flex; flex-direction: column; gap: 2px; padding: 0; }
.nav-group { color: #475569; font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase;
  padding: 14px 12px 6px; font-weight: 600; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; color: #94a3b8; padding: 9px 12px;
  border-radius: 10px; font-size: 13.5px; transition: .15s; }
.sidebar nav a .ico { width: 16px; text-align: center; font-size: 13px; color: #64748b; }
.sidebar nav a:hover { background: #ffffff0a; color: #e2e8f0; }
.sidebar nav a:hover .ico { color: #a5b4fc; }
.sidebar nav a.active { background: linear-gradient(135deg, #6366f12e, #8b5cf61a);
  color: #fff; box-shadow: inset 0 0 0 1px #6366f140; }
.sidebar nav a.active .ico { color: #a5b4fc; }
.sidebar-footer { margin-top: auto; padding: 14px 10px 2px; border-top: 1px solid #ffffff0d;
  display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; }
.conn { display: flex; align-items: center; gap: 7px; }
.ver { color: #475569; font-size: 10.5px; }

.topbar { height: 74px; padding: 0 26px; background: #ffffffd9; backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.title-wrap { display: flex; flex-direction: column; gap: 2px; }
.crumb { font-size: 11px; color: #94a3b8; letter-spacing: .3px; }
.topbar h2 { font-size: 19px; letter-spacing: -.2px; }
.page-sub { font-size: 12px; color: var(--muted); }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 34px; height: 34px; padding: 0; font-size: 16px; }
.content { padding: 22px 26px 40px; }

/* 通用卡片 */
.card { border-radius: var(--radius); box-shadow: 0 1px 2px #0f172a0a; }
.panel { border-radius: var(--radius); box-shadow: 0 1px 2px #0f172a0a; }
.card .label { font-size: 12px; letter-spacing: .2px; }
.card .value { font-size: 28px; letter-spacing: -.5px; }

/* 总览 hero */
.hero { position: relative; overflow: hidden; border-radius: 22px; padding: 26px 28px; margin-bottom: 18px;
  background: linear-gradient(120deg, #101a33 0%, #172554 55%, #312e81 100%); color: #e2e8f0;
  box-shadow: 0 18px 50px #1e1b4b33; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px;
  background: radial-gradient(circle, #6366f14d, transparent 62%); }
.hero::before { content: ""; position: absolute; right: 160px; bottom: -160px; width: 320px; height: 320px;
  background: radial-gradient(circle, #8b5cf63d, transparent 62%); }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; position: relative; z-index: 1; }
.hero h1 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.4px; color: #fff; }
.hero p { margin: 0; color: #a5b4fc; font-size: 13px; }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; position: relative; z-index: 1; }
.hero-badge { background: #ffffff12; border: 1px solid #ffffff1f; color: #c7d2fe; font-size: 12px;
  padding: 5px 11px; border-radius: 999px; }
.hero-badge b { color: #fff; font-weight: 600; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; position: relative; z-index: 1; }
.hero-stat { background: #ffffff0d; border: 1px solid #ffffff14; border-radius: 14px; padding: 12px 14px; }
.hero-stat .k { font-size: 11.5px; color: #94a3b8; }
.hero-stat .v { font-size: 22px; font-weight: 700; color: #fff; margin-top: 4px; letter-spacing: -.4px; }
.hero-stat .v small { font-size: 12px; color: #a5b4fc; font-weight: 500; }

/* 指标卡 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px; }
.stat .k { color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; }
.stat .v { font-size: 25px; font-weight: 700; margin-top: 8px; letter-spacing: -.5px; }
.stat .d { font-size: 11.5px; color: #94a3b8; margin-top: 4px; }
.stat.accent { background: linear-gradient(160deg, #eef2ff, #ffffff); border-color: #e0e7ff; }

/* 区块标题 */
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 12px; }
.section-title h3 { margin: 0; font-size: 15px; letter-spacing: -.1px; }
.section-title .hint { color: var(--muted); font-size: 12px; }

/* 技能库 */
.skill-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.skill-toolbar input { flex: 0 0 260px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.chip { border: 1px solid var(--line); background: #fff; color: #475569; border-radius: 999px;
  padding: 6px 13px; font-size: 12.5px; cursor: pointer; }
.chip.active { background: var(--text); border-color: var(--text); color: #fff; }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.skill-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  transition: .16s; display: flex; flex-direction: column; gap: 8px; }
.skill-card:hover { transform: translateY(-2px); border-color: #c7d2fe; box-shadow: 0 12px 28px #6366f114; }
.skill-card .head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.skill-card .name { font-weight: 600; font-size: 14px; }
.skill-card .formula { color: var(--muted); font-size: 12.5px; line-height: 1.55; flex: 1; }
.skill-card .meta { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { font-size: 11px; padding: 2px 9px; border-radius: 999px; background: #f1f5f9; color: #475569; }
.pill.metric { background: #eef2ff; color: #4338ca; }
.pill.param { background: #ecfdf5; color: #047857; }
.pill.unit { background: #fff7ed; color: #c2410c; }

/* 记忆 */
.mem-row { display: flex; gap: 14px; padding: 13px 16px; border-bottom: 1px solid #f1f5f9; align-items: flex-start; }
.mem-row:last-child { border-bottom: 0; }
.mem-q { flex: 1; font-size: 13px; color: #334155; }
.mem-c { flex: 1; font-size: 13px; color: #047857; background: #ecfdf5; border-radius: 9px; padding: 7px 10px; }
.mem-time { color: #94a3b8; font-size: 11.5px; white-space: nowrap; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tab { padding: 9px 14px; font-size: 13px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.tab.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }

/* 评测 */
.eval-top { display: grid; grid-template-columns: 220px 1fr; gap: 14px; margin-bottom: 18px; }
.ring { width: 170px; height: 170px; border-radius: 50%; margin: 10px auto;
  display: flex; align-items: center; justify-content: center; position: relative; }
.ring .inner { width: 132px; height: 132px; border-radius: 50%; background: #fff; display: flex;
  flex-direction: column; align-items: center; justify-content: center; }
.ring .num { font-size: 30px; font-weight: 700; letter-spacing: -1px; }
.ring .cap { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 66px; gap: 10px; align-items: center; padding: 8px 0; }
.bar-track { height: 8px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.bar-val { text-align: right; color: var(--muted); font-size: 12px; }

/* 数据源 */
.ds-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ds-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.ds-card .k { color: var(--muted); font-size: 12px; }
.ds-card .v { font-size: 24px; font-weight: 700; margin-top: 6px; }
.ds-card .d { color: #94a3b8; font-size: 11.5px; margin-top: 4px; }
.sys-row { display: grid; grid-template-columns: 70px 1fr 50px; gap: 10px; align-items: center; padding: 7px 0; font-size: 13px; }

/* 表格/空态微调 */
.panel-head { padding: 15px 18px; }
th { font-size: 12px; }
.empty { padding: 46px; }

@media (max-width: 960px) {
  .sidebar { width: 74px; }
  .brand-text, .nav-group, .ver { display: none; }
  .sidebar nav a { justify-content: center; font-size: 0; gap: 0; }
  .sidebar nav a .ico { font-size: 16px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .eval-top { grid-template-columns: 1fr; }
}


/* v2.1：内联表单 / 趋势图 / 小按钮 */
.form-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.form-row > label { width: 110px; color: var(--muted); font-size: 13px; }
.form-row input[type="text"], .form-row input[type="time"] {
  flex: 0 0 260px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; background: #fff;
}
.switch-line { display: flex; align-items: center; gap: 8px; width: auto !important; color: var(--text) !important; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 180px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.primary-btn { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border: 0;
  padding: 9px 16px; border-radius: 10px; font-size: 13px; cursor: pointer; font-weight: 600; }
.primary-btn:hover { filter: brightness(1.05); }
.primary-btn:disabled { opacity: .6; cursor: default; }
.ghost.small { padding: 4px 10px; font-size: 12px; border-radius: 8px; }

.trend-bars { display: flex; align-items: flex-end; gap: 10px; padding: 18px 20px 12px; min-height: 170px; }
.trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 40px; }
.trend-stack { display: flex; align-items: flex-end; gap: 4px; height: 120px; width: 100%; justify-content: center; }
.trend-bar { width: 12px; border-radius: 5px 5px 2px 2px; background: #c7d2fe; min-height: 2px; }
.trend-bar.skills { background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
.trend-col span { font-size: 11px; color: var(--muted); }
.trend-col small { font-size: 10.5px; color: #94a3b8; }
