/* ============================================================
   冰的超级系统 · 液态玻璃质感（Liquid Glass）· 深色/浅色双主题 · 四端自适应
   ============================================================ */

/* ---------- 主题变量：默认深色 ---------- */
:root {
  color-scheme: dark;
  --bg-base: #0b1020;
  --bg-grad-a: #101a33; --bg-grad-b: #0c1226;
  --blob-1: rgba(34, 211, 238, .35);   /* 青 */
  --blob-2: rgba(129, 140, 248, .32);  /* 靛 */
  --blob-3: rgba(192, 132, 252, .26);  /* 紫 */

  --glass: rgba(255, 255, 255, .055);
  --glass-strong: rgba(255, 255, 255, .09);
  --glass-border: rgba(255, 255, 255, .12);
  --glass-border-strong: rgba(255, 255, 255, .18);
  --glass-inset: rgba(255, 255, 255, .10);
  --glass-shadow: 0 8px 32px rgba(2, 6, 23, .45);
  --glass-blur: blur(22px) saturate(160%);

  --text: #eaf0ff;
  --text2: #a7b4d6;
  --text3: #8d9ab8; /* impeccable: ≥4.5:1 on 深底（旧 #7484a8 仅 3.4~4.1:1） */
  --accent: #38bdf8;
  --accent2: #6366f1;
  --gold: #fbbf24; --green: #34d399; --red: #f87171; --purple: #c084fc;
  --input-bg: rgba(255, 255, 255, .06);

  --radius: 18px; --radius-sm: 12px;
  --sidebar-w: 224px; --topbar-h: 54px; --bottom-h: 58px;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ---------- 浅色主题 ---------- */
[data-theme="light"] {
  color-scheme: light;
  --bg-base: #eef4ff;
  --bg-grad-a: #f5f9ff; --bg-grad-b: #e9effd;
  --blob-1: rgba(125, 211, 252, .45);
  --blob-2: rgba(165, 180, 252, .40);
  --blob-3: rgba(249, 168, 212, .32);

  --glass: rgba(255, 255, 255, .55);
  --glass-strong: rgba(255, 255, 255, .72);
  --glass-border: rgba(255, 255, 255, .75);
  --glass-border-strong: rgba(120, 145, 200, .35);
  --glass-inset: rgba(255, 255, 255, .95);
  --glass-shadow: 0 8px 28px rgba(30, 60, 120, .12);
  --glass-blur: blur(22px) saturate(150%);

  --text: #1b2a4a;
  --text2: #4c5c7a;
  --text3: #64748b; /* impeccable: ≥4.5:1 on 浅底 */
  --accent: #0284c7;
  --accent2: #6366f1;
  --gold: #d97706; --green: #059669; --red: #dc2626; --purple: #9333ea;
  --input-bg: rgba(255, 255, 255, .65);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: var(--font); color: var(--text); overflow: hidden; }

/* ---------- 液态玻璃底色 + 流动极光 ---------- */
body {
  background: linear-gradient(160deg, var(--bg-grad-a) 0%, var(--bg-base) 45%, var(--bg-grad-b) 100%);
  transition: background .5s ease;
}
body::before, body::after {
  content: ''; position: fixed; z-index: -1; border-radius: 50%;
  filter: blur(90px); pointer-events: none; will-change: transform;
}
body::before {
  width: 55vmax; height: 55vmax; top: -18vmax; left: -12vmax;
  background: radial-gradient(circle at 35% 35%, var(--blob-1), transparent 65%);
  animation: drift1 26s ease-in-out infinite alternate;
}
body::after {
  width: 60vmax; height: 60vmax; bottom: -24vmax; right: -16vmax;
  background: radial-gradient(circle at 60% 60%, var(--blob-2), transparent 62%),
              radial-gradient(circle at 30% 70%, var(--blob-3), transparent 55%);
  animation: drift2 32s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(6vmax, 4vmax) scale(1.12); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-5vmax, -4vmax) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { body::before, body::after { animation: none; } }

a { color: var(--accent); text-decoration: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }
code { background: var(--glass); border: 1px solid var(--glass-border); padding: 1px 6px; border-radius: 6px; font-size: 12px; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--glass-border-strong); border-radius: 3px; }

.screen { position: fixed; inset: 0; }
.hidden { display: none !important; }

/* ============================================================
   登录
   ============================================================ */
#login-screen {
  display: flex; align-items: center; justify-content: center;
  background: transparent; z-index: 9999;
}
.login-card {
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 26px; padding: 44px 38px; width: 370px; max-width: 90vw;
  text-align: center;
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-inset);
}
.login-logo {
  font-size: 58px; margin-bottom: 10px;
  filter: drop-shadow(0 6px 18px rgba(56, 189, 248, .45));
}
.login-card h1 { font-size: 23px; font-weight: 700; margin-bottom: 4px; letter-spacing: .5px; }
.login-sub { color: var(--text2); font-size: 13px; margin-bottom: 30px; }
.login-card input {
  width: 100%; padding: 13px 16px;
  background: var(--input-bg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border); border-radius: 14px; color: var(--text);
  margin-bottom: 14px; outline: none; transition: border .2s, box-shadow .2s;
}
.login-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56, 189, 248, .18); }
.login-card button {
  width: 100%; padding: 13px; border: none; border-radius: 14px;
  background: linear-gradient(135deg, #0369a1, #4338ca);
  color: #fff; font-weight: 600; font-size: 15px; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 22px rgba(56, 120, 248, .30);
  transition: transform .15s, box-shadow .2s, opacity .2s;
}
.login-card button:hover { transform: translateY(-1px); }
.login-card button:active { transform: translateY(0); }
.error { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 20px; }

/* 主题切换按钮 */
.theme-float { position: fixed; top: 16px; right: 16px; z-index: 10001; }

/* ============================================================
   主布局
   ============================================================ */
#app { display: flex; }
#sidebar {
  position: relative; /* nav-indicator 弹性指示器的定位基准 */
  width: var(--sidebar-w); display: flex; flex-direction: column; flex-shrink: 0; z-index: 100;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--glass-border);
  transition: transform .3s;
}
/* 侧边栏活动指示器：金色光条，GSAP 弹性滑动到当前项（motion.slideIndicator） */
#nav-indicator {
  position: absolute; left: 2px; width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--accent), #818cf8);
  box-shadow: 0 0 10px rgba(56, 189, 248, .65);
  opacity: 0; pointer-events: none; z-index: 2;
  top: 60px; height: 40px;
}
.sidebar-header { padding: 16px 20px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--glass-border); }
.sidebar-header .logo { font-size: 24px; filter: drop-shadow(0 2px 8px rgba(56, 189, 248, .4)); }
.sidebar-header .title { font-size: 14px; font-weight: 600; white-space: nowrap; }
#nav-list { flex: 1; overflow-y: auto; padding: 10px 0; list-style: none; }
#nav-list li {
  display: flex; align-items: center; gap: 10px; padding: 10px 18px; margin: 2px 10px;
  cursor: pointer; color: var(--text2); font-size: 14px;
  transition: all .18s; border-radius: 12px; border: 1px solid transparent;
}
#nav-list li:hover { background: var(--glass-strong); color: var(--text); border-color: var(--glass-border); }
#nav-list li.active {
  color: var(--accent);
  background: var(--glass-strong);
  border-color: var(--glass-border-strong);
  box-shadow: inset 0 1px 0 var(--glass-inset), 0 4px 14px rgba(56, 189, 248, .12);
}
#nav-list .icon { font-size: 18px; width: 24px; text-align: center; }
.sidebar-footer { padding: 12px 20px; border-top: 1px solid var(--glass-border); display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text3); }
.ws-dot { width: 8px; height: 8px; border-radius: 50%; }
.ws-dot.online { background: var(--green); box-shadow: 0 0 8px var(--green); }
.ws-dot.offline { background: var(--red); box-shadow: 0 0 8px var(--red); }

/* ============================================================
   内容区
   ============================================================ */
#content { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
#topbar {
  height: var(--topbar-h); display: flex; align-items: center; padding: 0 20px; gap: 12px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border); flex-shrink: 0;
}
#topbar h2 { font-size: 16px; font-weight: 600; flex: 1; }
#topbar-right { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 10px;
  color: var(--text2); font-size: 17px; cursor: pointer; padding: 5px 9px;
  transition: all .18s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--glass-border-strong); box-shadow: 0 4px 14px rgba(56, 189, 248, .18); }
.badge {
  /* impeccable: 白字需 ≥4.5:1 —— 渐变改深蓝系（旧 accent 亮青底白字仅 2.1:1） */
  background: linear-gradient(135deg, #0369a1, #4f46e5); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
#menu-btn { display: none; }
#view-container { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 20px; }
/* 2026-11-15 用户指定：桌面端顶栏整条移除（各视图自带标题行，删掉这条空白带让内容区更大）；
   移动端保留（☰ 菜单按钮在此） */
@media (min-width: 761px) {
  #topbar { display: none; }
}

/* ============================================================
   底部标签栏
   ============================================================ */
#bottom-tabs {
  display: none; height: var(--bottom-h);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
#bottom-tabs button {
  flex: 1; background: none; border: none; color: var(--text3);
  font-size: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer;
}
#bottom-tabs button span { font-size: 20px; }
#bottom-tabs button.active { color: var(--accent); }

/* ============================================================
   卡片 / 通用
   ============================================================ */
.card {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 16px;
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-inset);
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.stat-card { text-align: center; padding: 22px; transition: transform .18s, box-shadow .2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(2, 6, 23, .5), inset 0 1px 0 var(--glass-inset); }
.stat-card .num {
  font-size: 32px; font-weight: 700;
  color: var(--accent);
}
[data-theme="light"] .stat-card .num { color: #0369a1; }
.stat-card .label { font-size: 13px; color: var(--text2); margin-top: 4px; }
.section-title { font-size: 15px; font-weight: 600; margin: 20px 0 12px; display: flex; align-items: center; gap: 8px; }
.section-title:first-child { margin-top: 0; }

/* ============================================================
   表单
   ============================================================ */
.form-row { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.form-row input, .form-row textarea, .form-row select { flex: 1; min-width: 0; }
input, textarea, select {
  background: var(--input-bg);
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm); color: var(--text);
  padding: 10px 14px; outline: none; transition: border .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56, 189, 248, .16); }
input::placeholder, textarea::placeholder { color: var(--text3); }
select option { color: initial; }
textarea { resize: vertical; min-height: 60px; }
.btn {
  padding: 9px 18px; border: none; border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 600; font-size: 13px; transition: all .16s;
}
.btn-primary {
  /* impeccable: 白字需 ≥4.5:1 —— 渐变深化（亮青端白字仅 2.1:1）；保持蓝色主按钮身份 */
  background: linear-gradient(135deg, #0369a1, #4338ca); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 18px rgba(56, 120, 248, .28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 9px 24px rgba(56, 120, 248, .36); }
.btn-primary:active { transform: translateY(0); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-ghost {
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--text2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--glass-border-strong); color: var(--accent); }
.btn-danger { background: linear-gradient(135deg, #f87171, #ef4444); color: #fff; }

/* ============================================================
   列表
   ============================================================ */
.list-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--glass-border); transition: background .15s; cursor: default;
  border-radius: 10px;
}
.list-item:hover { background: var(--glass); }
.list-item .drag-handle { cursor: grab; color: var(--text3); font-size: 16px; user-select: none; touch-action: none; }
.list-item .drag-handle:active { cursor: grabbing; }
.list-item .item-body { flex: 1; min-width: 0; }
.list-item .item-title { font-size: 14px; font-weight: 500; }
.list-item .item-sub { font-size: 12px; color: var(--text3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .item-actions { display: flex; gap: 6px; flex-shrink: 0; }

.tag { display: inline-block; padding: 3px 9px; border-radius: 10px; font-size: 11px; font-weight: 600; border: 1px solid transparent; }
.tag-cyan { background: rgba(56, 189, 248, .14); color: #7dd3fc; border-color: rgba(56, 189, 248, .25); }
.tag-gold { background: rgba(251, 191, 36, .13); color: #fcd34d; border-color: rgba(251, 191, 36, .25); }
.tag-green { background: rgba(52, 211, 153, .13); color: #6ee7b7; border-color: rgba(52, 211, 153, .25); }
.tag-red { background: rgba(248, 113, 113, .13); color: #fca5a5; border-color: rgba(248, 113, 113, .25); }
.tag-purple { background: rgba(192, 132, 252, .14); color: #d8b4fe; border-color: rgba(192, 132, 252, .25); }
[data-theme="light"] .tag-cyan { background: rgba(2, 132, 199, .10); color: #0369a1; border-color: rgba(2, 132, 199, .22); }
[data-theme="light"] .tag-gold { background: rgba(217, 119, 6, .10); color: #b45309; border-color: rgba(217, 119, 6, .22); }
[data-theme="light"] .tag-green { background: rgba(5, 150, 105, .10); color: #047857; border-color: rgba(5, 150, 105, .22); }
[data-theme="light"] .tag-red { background: rgba(220, 38, 38, .10); color: #b91c1c; border-color: rgba(220, 38, 38, .22); }
[data-theme="light"] .tag-purple { background: rgba(147, 51, 234, .10); color: #7e22ce; border-color: rgba(147, 51, 234, .22); }

/* ============================================================
   对话
   ============================================================ */
.chat-box { display: flex; flex-direction: column; height: calc(100vh - var(--topbar-h) - 40px); }
.chat-messages { flex: 1; overflow-y: auto; padding: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 80%; padding: 11px 15px; border-radius: 18px; font-size: 14px; line-height: 1.5; word-break: break-word; }
.chat-msg.user {
  align-self: flex-end; border-bottom-right-radius: 5px;
  background: linear-gradient(135deg, #0369a1, #4338ca); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .30), 0 6px 16px rgba(56, 120, 248, .25);
}
.chat-msg.assistant {
  align-self: flex-start; border-bottom-left-radius: 5px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-inset);
}
.chat-msg .msg-cat { font-size: 11px; margin-top: 4px; opacity: .75; }
.chat-input-bar { display: flex; gap: 8px; padding: 12px 0 0; border-top: 1px solid var(--glass-border); }
.chat-input-bar input { flex: 1; border-radius: 14px; }
.voice-btn {
  background: var(--glass-strong); border: 1px solid var(--glass-border); border-radius: 50%;
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; flex-shrink: 0; transition: all .2s;
}
.voice-btn:hover { border-color: var(--glass-border-strong); }
.voice-btn.recording { background: linear-gradient(135deg, #f87171, #ef4444); border-color: transparent; animation: pulse 1s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .4); } 50% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); } }

/* ============================================================
   智能体卡片
   ============================================================ */
.agent-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.agent-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.agent-dot.online { background: var(--green); box-shadow: 0 0 10px var(--green); }
.agent-dot.offline { background: var(--text3); }
.agent-info { flex: 1; min-width: 0; }
.agent-name { font-weight: 600; font-size: 14px; }
.agent-task { font-size: 12px; color: var(--text2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-kind { font-size: 11px; color: var(--text3); }

/* ============================================================
   超级画布
   ============================================================ */
.canvas-wrap {
  position: relative; width: 100%; height: calc(100vh - var(--topbar-h) - 40px); overflow: hidden;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: var(--radius); border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-inset);
}
.canvas-toolbar { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 10; }
.canvas-toolbar button { padding: 7px 12px; font-size: 12px; border-radius: 10px; }
.canvas-layer-bar { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; z-index: 10; flex-wrap: wrap; justify-content: flex-end; max-width: 60%; }
.canvas-layer-bar .layer-chip {
  padding: 5px 11px; border-radius: 12px; font-size: 11px; cursor: pointer;
  border: 1px solid var(--glass-border); background: var(--glass-strong); color: var(--text2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.canvas-layer-bar .layer-chip.active { border-color: var(--accent); color: var(--accent); box-shadow: 0 4px 14px rgba(56, 189, 248, .20); }
.canvas-world { position: absolute; inset: 0; transform-origin: 0 0; }
.canvas-node {
  position: absolute; min-width: 120px; padding: 11px 15px; border-radius: 14px;
  font-size: 13px; line-height: 1.45; cursor: move; user-select: none;
  white-space: pre-wrap; word-break: break-word; transition: box-shadow .15s;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border-strong);
  box-shadow: 0 6px 20px rgba(2, 6, 23, .30), inset 0 1px 0 var(--glass-inset);
}
.canvas-node:hover { box-shadow: 0 10px 28px rgba(56, 189, 248, .25), inset 0 1px 0 var(--glass-inset); }
.canvas-node.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(56, 189, 248, .35), 0 10px 28px rgba(56, 189, 248, .25); }
.canvas-node[data-color="cyan"] { background: rgba(56, 189, 248, .13); }
.canvas-node[data-color="gold"] { background: rgba(251, 191, 36, .13); border-color: rgba(251, 191, 36, .35); }
.canvas-node[data-color="green"] { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .35); }
.canvas-node[data-color="red"] { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .35); }
.canvas-node[data-color="purple"] { background: rgba(192, 132, 252, .13); border-color: rgba(192, 132, 252, .35); }
[data-theme="light"] .canvas-node { box-shadow: 0 6px 20px rgba(30, 60, 120, .14), inset 0 1px 0 rgba(255, 255, 255, .9); }
[data-theme="light"] .canvas-node[data-color="cyan"] { background: rgba(2, 132, 199, .10); }
[data-theme="light"] .canvas-node[data-color="gold"] { background: rgba(217, 119, 6, .10); border-color: rgba(217, 119, 6, .30); }
[data-theme="light"] .canvas-node[data-color="green"] { background: rgba(5, 150, 105, .10); border-color: rgba(5, 150, 105, .30); }
[data-theme="light"] .canvas-node[data-color="red"] { background: rgba(220, 38, 38, .08); border-color: rgba(220, 38, 38, .30); }
[data-theme="light"] .canvas-node[data-color="purple"] { background: rgba(147, 51, 234, .10); border-color: rgba(147, 51, 234, .30); }
.canvas-node[data-shape="center"] { border-width: 2px; font-weight: 600; }
.canvas-svg { position: absolute; inset: 0; pointer-events: none; }
.canvas-svg line, .canvas-svg path { stroke: var(--accent); stroke-width: 1.5; fill: none; opacity: .55; }
.canvas-svg text { fill: var(--text3); }

/* 超级画布补充件（2026-11-17）：配色条 / 框选虚线 / 大纲面板 */
.canvas-colorbar { position: absolute; top: 46px; left: 12px; display: flex; gap: 8px; align-items: center; z-index: 11; font-size: 12px; color: var(--text3); }
.cv-color-dot { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--glass-border); cursor: pointer; display: inline-block; }
.cv-color-dot[data-color="cyan"] { background: #38bdf8; }
.cv-color-dot[data-color="gold"] { background: #fbbf24; }
.cv-color-dot[data-color="green"] { background: #4ade80; }
.cv-color-dot[data-color="red"] { background: #f87171; }
.cv-color-dot[data-color="purple"] { background: #c084fc; }
.cv-color-dot[data-color="del"] { background: var(--glass); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.cv-marquee { position: absolute; border: 1.5px dashed var(--accent); background: rgba(56, 189, 248, .08); pointer-events: none; z-index: 9; }
.canvas-outline { position: absolute; top: 46px; right: 12px; width: 300px; max-height: calc(100% - 110px); overflow: auto; z-index: 12;
  background: var(--glass-strong); border: 1px solid var(--glass-border); border-radius: 14px; padding: 10px; box-shadow: var(--glass-shadow); }
.cv-outline-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.cv-outline-tip { color: var(--text3); font-weight: 400; font-size: 11px; flex: 1; }
.cv-outline-row { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 8px; font-size: 12.5px; cursor: pointer; color: var(--text2); }
.cv-outline-row:hover { background: rgba(56, 189, 248, .08); color: var(--text); }
.cv-fold { width: 16px; text-align: center; color: var(--accent); cursor: pointer; flex: none; }
.cv-fold-empty { color: var(--text3); cursor: default; }
.cv-outline-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   拖拽 / Toast
   ============================================================ */
.dragging { opacity: .5; }
.drag-over { border-top: 2px solid var(--accent) !important; }

#toast-container { position: fixed; top: 16px; right: 16px; z-index: 10000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 11px 18px; border-radius: 14px; font-size: 13px; color: #fff;
  animation: slideIn .3s; max-width: 320px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 10px 30px rgba(2, 6, 23, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.toast.info { background: linear-gradient(135deg, rgba(14, 165, 233, .92), rgba(99, 102, 241, .92)); }
.toast.success { background: linear-gradient(135deg, rgba(16, 185, 129, .92), rgba(5, 150, 105, .92)); }
.toast.error { background: linear-gradient(135deg, rgba(248, 113, 113, .92), rgba(220, 38, 38, .92)); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============================================================
   监控墙（多视图）
   ============================================================ */
.wall-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.wall-hint { font-size: 12px; color: var(--text3); }
.wall-layout-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.wall-btn {
  padding: 5px 12px; border-radius: 12px; font-size: 12px; cursor: pointer;
  border: 1px solid var(--glass-border); background: var(--glass); color: var(--text2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: all .15s;
}
.wall-btn:hover { border-color: var(--glass-border-strong); color: var(--text); }
.wall-btn.active { border-color: var(--accent); color: var(--accent); box-shadow: 0 4px 14px rgba(56, 189, 248, .18); }

.wall-grid { display: grid; gap: 10px; }
.wall-grid[data-layout="1"]  { grid-template-columns: 1fr; }
.wall-grid[data-layout="4"]  { grid-template-columns: repeat(2, 1fr); }
.wall-grid[data-layout="6"]  { grid-template-columns: repeat(3, 1fr); }
.wall-grid[data-layout="8"]  { grid-template-columns: repeat(4, 1fr); }
.wall-grid[data-layout="9"]  { grid-template-columns: repeat(3, 1fr); }
.wall-grid[data-layout="12"] { grid-template-columns: repeat(4, 1fr); }
.wall-grid[data-layout="16"] { grid-template-columns: repeat(4, 1fr); }

.wall-tile {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  cursor: pointer; border: 1px solid var(--glass-border); background: var(--glass);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-inset);
  transition: transform .15s, box-shadow .2s, border-color .2s;
}
.wall-tile:hover { transform: translateY(-2px); border-color: var(--glass-border-strong); box-shadow: 0 12px 32px rgba(2, 6, 23, .5), inset 0 1px 0 var(--glass-inset); }
.wall-tile.empty { display: flex; align-items: center; justify-content: center; cursor: default; opacity: .45; border-style: dashed; }
.wall-tile.empty span { font-size: 13px; color: var(--text3); }
.wall-tile.offline { opacity: .6; }
.wall-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--text3); font-size: 13px;
  background: repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(120, 140, 180, .05) 12px, rgba(120, 140, 180, .05) 24px);
}
.wall-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.wall-badge {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; color: #fff;
  background: rgba(2, 6, 23, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .15);
}
.wall-badge.live { color: #fda4af; }
.wall-badge.off { color: var(--text3); }
.wall-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: 8px; padding: 18px 10px 8px;
  background: linear-gradient(transparent, rgba(2, 6, 23, .78));
  color: #fff; font-size: 12px;
}
.wall-meta { flex: 1; min-width: 0; }
.wall-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wall-task { font-size: 11px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wall-open { font-size: 15px; opacity: .8; }
.wall-footnote { margin-top: 12px; font-size: 12px; color: var(--text3); text-align: center; }

/* ============================================================
   智能体详情（单屏大画面）
   ============================================================ */
.detail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 14px; align-items: start; }
.detail-screen {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; padding: 0;
  background: rgba(2, 6, 23, .35);
}
.detail-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: #0b1020; }
.detail-screen .wall-placeholder { font-size: 15px; }
.detail-screen-hint {
  position: absolute; bottom: 8px; right: 10px; z-index: 3;
  font-size: 11px; color: #cbd5e1; background: rgba(2, 6, 23, .55);
  padding: 2px 10px; border-radius: 10px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.detail-side { display: flex; flex-direction: column; gap: 12px; }
.detail-side h4 { margin-bottom: 10px; font-size: 14px; }
.kv { font-size: 13px; color: var(--text2); margin-bottom: 6px; word-break: break-all; }
.detail-cmds { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.cmd-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  border-radius: 10px; background: var(--glass); border: 1px solid var(--glass-border);
}
.cmd-item .cmd-text { flex: 1; font-size: 12px; word-break: break-all; }

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .wall-grid[data-layout="6"], .wall-grid[data-layout="8"], .wall-grid[data-layout="9"], .wall-grid[data-layout="12"], .wall-grid[data-layout="16"] { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .wall-grid[data-layout="8"], .wall-grid[data-layout="12"], .wall-grid[data-layout="16"] { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
  #sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); z-index: 200; }
  #sidebar.open { transform: none; box-shadow: 20px 0 60px rgba(2, 6, 23, .5); }
  #menu-btn { display: block; }
  #bottom-tabs { display: flex; }
  #view-container { padding: 12px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .chat-box { height: calc(100vh - var(--topbar-h) - var(--bottom-h) - 24px); }
  .canvas-wrap { height: calc(100vh - var(--topbar-h) - var(--bottom-h) - 24px); }
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .stat-card .num { font-size: 24px; }
}
/* ============================================================
   平台品牌 logo（真实图片，非 emoji）
   ============================================================ */
.pf-logo { display: inline-block; width: 18px; height: 18px; border-radius: 5px; vertical-align: -3px; object-fit: cover; }
.pf-logo.lg { width: 44px; height: 44px; border-radius: 12px; }
.pf-logo.sm { width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; }

/* ============================================================
   动效系统（基于 design-to-motion skill）
   —— 入场：rise + blur→sharp，卡片级联 80ms；
      进度条：clip-path 擦入；只动 transform/opacity/filter/clip-path
   ============================================================ */
:root {
  --e: cubic-bezier(.16, 1, .3, 1);
  --e2: cubic-bezier(.33, 1, .68, 1);
  --io: cubic-bezier(.65, 0, .35, 1);
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px) scale(.985); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes wipeIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes popIn  { from { opacity: 0; transform: scale(.85); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* 卡片级联入场：容器加 .anim-on 后，子卡片按序 rise+blur */
.anim-on .bs-today-card,
.anim-on .bs-grid > section,
.anim-on .bs-plan-card { animation: riseIn .7s var(--e) backwards; }
.anim-on .bs-today-card:nth-child(1) { animation-delay: 0ms; }
.anim-on .bs-today-card:nth-child(2) { animation-delay: 80ms; }
.anim-on .bs-today-card:nth-child(3) { animation-delay: 160ms; }
.anim-on .bs-grid > section:nth-child(2) { animation-delay: 240ms; }
.anim-on .bs-grid > section:nth-child(3) { animation-delay: 320ms; }
.anim-on .bs-grid > section:nth-child(4) { animation-delay: 400ms; }
.anim-on .bs-grid > section:nth-child(5) { animation-delay: 480ms; }
.anim-on .bs-grid > section:nth-child(6) { animation-delay: 560ms; }
.anim-on .bs-grid > section:nth-child(7) { animation-delay: 640ms; }
.anim-on .bs-grid > section:nth-child(8) { animation-delay: 720ms; }
.anim-on .bs-grid > section:nth-child(9) { animation-delay: 800ms; }

/* 进度条擦入（套餐/排行条） */
.anim-on .bar-fill { animation: wipeIn .9s var(--io) backwards; animation-delay: .3s; }

/* reduced-motion：全部降级为无动画 */
@media (prefers-reduced-motion: reduce) {
  .anim-on *, .anim-on *::before, .anim-on *::after { animation: none !important; }
}

/* ============================================================
   焦点/激活状态（交互反馈）
   ============================================================ */
.wall-btn:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wall-btn:active, .btn:active { transform: translateY(1px); transition: transform .1s var(--e); }
.bs-plan-mini:active, .bs-agent-chip:active { transform: scale(.97); transition: transform .1s var(--e); }

@media (min-width: 1200px) {
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

/* ============================================================
   液态玻璃流动质感层（2026-10-28 · 纯前端 Demo）
   —— 卡片表面流动光扫 / 按钮流光 / 导航流光 / 输入聚焦光晕 /
      极光背景色彩漂移 / 关键面板旋转折射光边
   ============================================================ */

/* 旋转折射光边所需的自定义属性（Chromium 系） */
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes angSpin { to { --ang: 360deg; } }

/* ── 流动光扫：一道光带周期性掠过玻璃表面 ── */
@keyframes glassSweep {
  0%   { background-position: -160% 0, 0 0; }
  42%  { background-position: 260% 0, 0 0; }
  100% { background-position: 260% 0, 0 0; }
}
.card {
  background:
    linear-gradient(115deg, transparent 34%, rgba(255,255,255,.045) 45%, rgba(255,255,255,.13) 50%, rgba(255,255,255,.045) 55%, transparent 66%),
    var(--glass);
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat, no-repeat;
  animation: glassSweep 8s ease-in-out infinite;
}
[data-theme="light"] .card {
  background:
    linear-gradient(115deg, transparent 34%, rgba(255,255,255,.45) 45%, rgba(255,255,255,.85) 50%, rgba(255,255,255,.45) 55%, transparent 66%),
    var(--glass);
  background-size: 250% 100%, 100% 100%;
}
/* 打散同步感：让各卡片的光扫错峰 */
.card-grid > .card:nth-child(2n), .bs-grid > section:nth-child(2n) { animation-delay: -2.6s; }
.card-grid > .card:nth-child(3n), .bs-grid > section:nth-child(3n) { animation-delay: -5.2s; }
.bs-today-card:nth-child(2) { animation-delay: -3.4s; }
.bs-today-card:nth-child(3) { animation-delay: -6.1s; }

/* ── 按钮流光：悬停时一道光从左掠过 ──
   必须用 ::after 伪元素承载流光：此前直接写 .btn { background-image: 流光 }
   会按源码顺序覆盖 .btn-primary 的主色渐变（background 简写）→ 主按钮变透明底白字，
   亮色主题下白字落白卡完全不可见（2026-11-13 整改，勿回退） */
.wall-btn, .btn, .icon-btn {
  position: relative; overflow: hidden;
  transition: border-color .3s var(--e2), color .3s var(--e2), box-shadow .3s var(--e2), transform .1s var(--e);
}
.wall-btn::after, .btn::after, .icon-btn::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background-image: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.12) 50%, transparent 60%);
  background-size: 240% 100%;
  background-position: 130% 0;
  background-repeat: no-repeat;
  transition: background-position .55s var(--e2);
}
.wall-btn:hover::after, .btn:hover::after, .icon-btn:hover::after { background-position: -30% 0; }
[data-theme="light"] .wall-btn::after, [data-theme="light"] .btn::after, [data-theme="light"] .icon-btn::after {
  background-image: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.6) 50%, transparent 60%);
}

/* ── 侧边栏导航流光 ── */
#nav-list li.active {
  background-image: linear-gradient(115deg, transparent 35%, rgba(56,189,248,.16) 50%, transparent 65%), var(--glass-strong);
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat, no-repeat;
  animation: glassSweep 5.5s ease-in-out infinite;
}

/* ── 输入框聚焦光晕 ── */
input:focus, select:focus, textarea:focus {
  border-color: rgba(56, 189, 248, .55) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .14), inset 0 1px 0 var(--glass-inset);
}

/* ── 极光背景色彩漂移（流动感核心） ── */
body::before {
  animation: drift1 26s ease-in-out infinite alternate, hueWander 45s ease-in-out infinite alternate;
}
body::after {
  animation: drift2 32s ease-in-out infinite alternate, hueWander2 55s ease-in-out infinite alternate;
}
@keyframes hueWander  { from { filter: blur(90px) hue-rotate(0deg); }  to { filter: blur(90px) hue-rotate(38deg); } }
@keyframes hueWander2 { from { filter: blur(90px) hue-rotate(0deg); }  to { filter: blur(90px) hue-rotate(-32deg); } }

/* ── 弹窗玻璃强化 ──
   .bs-modal-mask 下的卡片已有 glass；再叠一层顶部流光 */
.bs-modal {
  background:
    linear-gradient(115deg, transparent 38%, rgba(255,255,255,.10) 50%, transparent 62%),
    var(--glass-strong) !important;
  background-size: 250% 100%, 100% 100% !important;
  background-repeat: no-repeat, no-repeat !important;
  animation: glassSweep 6s ease-in-out infinite !important;
}

/* ── 表格行流光 ── */
.bs-table tbody tr { position: relative; }
.bs-table tbody tr td:first-child { position: relative; }
.bs-table tbody tr:hover td { background: linear-gradient(90deg, rgba(56,189,248,.07), transparent 70%); }
/* 响应式修复（responsiveness-check）：.bs-table 即容器时窄视口内滚，不撑破页面 */
div.bs-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── 降级：reduced-motion 全部关闭 ── */
@media (prefers-reduced-motion: reduce) {
  .card, .wall-btn, .btn, .icon-btn, #nav-list li.active, .bs-modal,
  body::before, body::after { animation: none !important; }
  .wall-btn, .btn, .icon-btn { transition: none; }
}

/* ════════════ 设计精修层（2026-11-06 · awesome-design-md[Linear/Vercel] + frontend-dev 设计工程） ════════════ */
/* ① 标题压缩字距：Linear signature —— 大标题负字距，工程感 */
.bs-title, .bs-panel-head h4, #page-title, .bp-hero-line {
  letter-spacing: -0.022em;
}
#page-title { letter-spacing: -0.03em; }
/* ② KPI 数字等宽：翻牌滚动时数字不抖动（frontend-dev motion 细节） */
.bs-kpi .num, .tok-kpi .num, .pl-stat b, .bp-item .pc {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
/* ③ 选区与聚焦：accent 半透明选区；聚焦环带柔光 */
::selection { background: rgba(56, 189, 248, .28); color: inherit; }
.wall-btn:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
#nav-list li:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1.5px var(--accent), 0 0 0 5px rgba(56, 189, 248, .18);
  border-radius: 12px;
}
/* ④ 滚动条：静默细腻，hover 才亮（Vercel 式克制） */
::-webkit-scrollbar-thumb { transition: background .2s; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }
/* ⑤ 卡片悬浮层级：轻位移+描边亮起，只动 transform/box-shadow（合成器友好） */
.card { transition: transform .2s var(--e2, ease-out), box-shadow .2s var(--e2, ease-out), border-color .2s; }
.card:hover { border-color: var(--glass-border-strong); }
.bs-kpi:hover, .stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(2, 6, 23, .18), inset 0 1px 0 var(--glass-inset, rgba(255,255,255,.06));
}
/* ⑥ 按钮微交互统一：按压回弹 */
.wall-btn:active, .btn:active, .icon-btn:active { transform: scale(.97); }

/* ════════════ 美术升级层（2026-11-07 · frontend-design + awesome-design-md） ════════════
   侧边栏布局不动；只加质感：科技感数字字体 / 噪点颗粒 / hairline / 玻璃细节 */
/* ① Chakra Petch：KPI 大数字与时钟专用展示字体（切角科技骨架，切合档案系统调性） */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/chakra-petch-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/chakra-petch-700.woff2') format('woff2');
}
.bs-kpi .num, .tok-kpi .num, #bs-clock, .pl-stat b, .iss-readout-line, .wm-level, #agent-badge {
  font-family: 'Chakra Petch', 'Manrope', sans-serif;
  letter-spacing: .01em;
}
/* ② 噪点颗粒：SVG feTurbulence 极淡覆盖，消「数字塑料感」（frontend-design grain overlay） */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
/* ③ 顶栏 hairline：页题下方一道青→靛渐变细线（Linear 式克制） */
#topbar {
  position: relative;
}
#topbar::after {
  content: ''; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(129, 140, 248, .55) 30%, rgba(129, 140, 248, 0) 78%);
  opacity: .5; pointer-events: none;
}
/* ④ 面板头（impeccable：侧竖条是 AI tell，已移除；层级靠字号/字距） */
.bs-panel-head { position: relative; }
/* ⑤ KPI 数字呼吸微光：hover 时数字泛 accent 辉光（Transform/opacity-only） */
.bs-kpi .num { transition: text-shadow .3s ease, color .3s ease; }
.bs-kpi:hover .num { text-shadow: 0 0 18px var(--accent-glow, rgba(56, 189, 248, .45)); }
/* ⑥ 玻璃卡内顶高光：一条 1px 内描边提立体（已有体系补强） */
.card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
[data-theme="light"] .card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }
/* ════════════ unslop icons pass（2026-11-09 · unslop by @heydamir CC-BY-4.0） ════════════ */
/* 图标统一 18px / stroke 1.5 / currentColor，与文字基线对齐 */
.ui-ic { width: 18px; height: 18px; display: block; flex: none; }
#sidebar .icon .ui-ic { width: 18px; height: 18px; }
#bottom-tabs button span .ui-ic { width: 19px; height: 19px; margin: 0 auto; }
.sidebar-header .logo .ui-ic { width: 22px; height: 22px; color: var(--accent); filter: drop-shadow(0 2px 8px rgba(56, 189, 248, .4)); }
#theme-btn .ui-ic { width: 17px; height: 17px; margin: auto; }
.bs-title-icon .ui-ic, .bs-panel-head h4 .ui-ic { width: 15px; height: 15px; display: inline-block; vertical-align: -2.5px; margin-right: 7px; color: var(--text2); }
.wall-btn .ui-ic, .btn .ui-ic { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; margin-right: 6px; }
.tm-room-head b .ui-ic, .tm-roster-head .ui-ic, .sprite-chat-tools-label .ui-ic { width: 14px; height: 14px; display: inline-block; vertical-align: -2.5px; margin-right: 6px; }
/* 侧边栏密度（unslop spacing：行高 34px 档、分组呼吸） */
#nav-list li { padding: 7.5px 14px; margin: 2px 8px; }
/* 小标签去宽字距（unslop type：小字不tracking） */
.tm-roster-head { letter-spacing: .02em; }
.sprite-chat-tools-label { letter-spacing: .02em; }
/* ════════════ 侧边栏 隐藏/删除/管理菜单 ════════════ */
li.nav-hidden { display: none !important; }
.nav-manage {
  position: fixed; z-index: 950; min-width: 200px;
  background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: 12px; padding: 6px;
  box-shadow: 0 14px 34px rgba(2,6,23,.4); display: grid; gap: 2px;
}
.nav-manage b { font-size: 12px; color: var(--text2); padding: 6px 10px 4px; }
.nav-manage button {
  border: 0; background: transparent; color: var(--text); font-size: 12.5px;
  padding: 8px 12px; border-radius: 8px; cursor: pointer; text-align: left;
}
.nav-manage button:hover { background: rgba(56,189,248,.10); }
.nav-manage button.danger:hover { background: rgba(248,113,113,.12); color: var(--red); }
.nav-manage button.all { color: var(--accent); }
/* ── 侧边栏折叠态（Ctrl+B 切换；64px 纯图标列） ── */
#sidebar { transition: width .22s ease; }
#sidebar.collapsed { width: 64px; }
#sidebar.collapsed .title,
#sidebar.collapsed .label { display: none; }
#sidebar.collapsed .sidebar-header { justify-content: center; padding: 16px 8px; }
#sidebar.collapsed #sidebar-collapse { margin: 0; transform: rotate(180deg); }
#sidebar.collapsed #nav-list li { justify-content: center; padding-left: 0; padding-right: 0; }
#sidebar.collapsed .nav-group { visibility: hidden; height: 10px; padding: 0; }
#sidebar.collapsed .sidebar-footer { justify-content: center; padding: 12px 8px; }
#sidebar.collapsed #ws-label { display: none; }
#nav-list li.nav-group { padding: 12px 14px 4px; margin: 0; background: transparent; }
#nav-list li.nav-group[hidden] { display: none !important; } /* 组内全隐藏时标题跟随隐藏（li 显式 display 会吃掉 hidden 属性） */
#nav-list li.nav-group span { font-size: 10.5px; color: var(--text3); letter-spacing: .14em; }
#sidebar #sidebar-collapse:hover { background: rgba(56,189,248,.1); color: var(--accent); }
#nav-list li[data-view]:hover .icon { transform: scale(1.12); transition: transform .15s; }

/* ═══ 协作编排（Octo 模式 × Pachat 互查）：团队房间编排卡 + 编排面板 ═══ */
.tm-collab { padding: 12px 14px; margin: 8px 0; border-radius: 14px; font-size: 12.5px; }
.tm-collab .cl-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 8px; }
.tm-collab .cl-head b { font-size: 13.5px; }
.tm-collab .cl-head span { color: var(--text3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.tm-collab .cl-stage { color: var(--accent); font-size: 11.5px; margin: 6px 0; }
.tm-collab .cl-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 5px 0; border-top: 1px dashed var(--glass-border); }
.tm-collab .cl-leg .cl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text3); flex: none; }
.tm-collab .cl-leg.run .cl-dot { background: #f59e0b; animation: clpulse 1s ease-in-out infinite; }
.tm-collab .cl-leg.ok .cl-dot { background: #34d399; }
.tm-collab .cl-leg.bad .cl-dot { background: #f87171; }
.tm-collab .cl-leg small { color: var(--text3); }
.tm-collab .cl-leg .cl-tail { flex-basis: 100%; color: var(--text2); font-size: 11px; opacity: .75; overflow: hidden; max-height: 3.6em; line-height: 1.25; }
.tm-collab .cl-ok { color: #34d399; }
.tm-collab .cl-err { color: #f87171; }
@keyframes clpulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.cl-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.cl-mode { border: 1px solid var(--glass-border); border-radius: 12px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; transition: border-color .15s, background .15s; }
.cl-mode:hover { border-color: var(--accent); }
.cl-mode.on { border-color: var(--accent); background: rgba(56,189,248,.08); }
.cl-mode b { font-size: 13px; }
.cl-mode small { color: var(--text3); font-size: 11px; line-height: 1.45; }
.cl-member { display: inline-flex; align-items: center; gap: 6px; margin: 4px 10px 4px 0; padding: 5px 12px; border: 1px solid var(--glass-border); border-radius: 999px; cursor: pointer; font-size: 12.5px; }
.cl-member.off { opacity: .55; }
.cl-member:has(input:checked) { border-color: var(--accent); background: rgba(56,189,248,.08); }

/* ═══ 侧边栏左下角用户条（手机号身份 + 头像切换） ═══ */
.user-chip { display: flex; align-items: center; gap: 10px; margin: 10px 12px 4px; padding: 8px 10px; border-radius: 14px; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.user-chip:hover { background: rgba(56,189,248,.08); border-color: var(--glass-border); }
.uc-avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 19px; background: linear-gradient(135deg, #0369a1, #4338ca); color: #fff; background-size: cover; background-position: center; border: 2px solid rgba(56,189,248,.5); }
.uc-info { min-width: 0; }
.uc-info b { display: block; font-size: 12.5px; }
.uc-info small { color: var(--text3); font-size: 10.5px; font-variant-numeric: tabular-nums; }
#sidebar.collapsed .user-chip .uc-info { display: none; }
#sidebar.collapsed .user-chip { justify-content: center; padding: 6px; }

/* ═══ 用户面板（点击左下角头像弹出；DSH 同款：头像+名字+📱+⚙️） ═══ */
.user-panel { position: fixed; left: 14px; bottom: 92px; width: 248px; z-index: 10001; padding: 14px; border-radius: 18px; background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 18px 44px rgba(0,0,0,.38); opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .18s ease, transform .18s cubic-bezier(.34,1.56,.64,1); pointer-events: none; }
.user-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.user-panel[hidden] { display: none; }
.up-head { display: flex; align-items: center; gap: 11px; padding-bottom: 12px; border-bottom: 1px solid var(--glass-border); }
.up-avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 22px; background: linear-gradient(135deg, #0369a1, #4338ca); color: #fff; background-size: cover; background-position: center; border: 2px solid rgba(56,189,248,.55); cursor: pointer; padding: 0; }
.up-avatar:hover { border-color: rgba(56,189,248,.95); }
.up-info { min-width: 0; flex: 1; }
.up-info b { display: block; font-size: 14px; }
.up-info small { color: var(--text3); font-size: 11px; font-variant-numeric: tabular-nums; }
.up-icons { display: flex; gap: 6px; }
.up-icon { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--glass-border); background: rgba(255,255,255,.04); font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s, transform .15s; padding: 0; }
.up-icon:hover { background: rgba(56,189,248,.14); transform: translateY(-1px); }
.up-rows { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; }
.up-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: none; border-radius: 11px; background: transparent; color: var(--text2); font-size: 13px; cursor: pointer; text-align: left; transition: background .15s, color .15s; }
.up-row:hover { background: rgba(56,189,248,.1); color: var(--text1); }
.up-ic { font-size: 15px; width: 20px; text-align: center; flex: none; }
.up-row small { margin-left: auto; color: var(--text3); font-size: 11px; }
/* 手机端：面板贴底弹出，避免遮屏幕下半 */
@media (max-width: 760px) { .user-panel { left: 10px; right: 10px; width: auto; bottom: 84px; } }
/* 桌宠避让：用户面板打开时立绘滑向右侧缩小让位（不盖面板文字/不抢点击），关闭还原 */
#ice-sprite.sprite-dodge { transform: translateX(210px) scale(.55); opacity: .4; transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .35s; }

/* ═══ 设置页分区导航（Octo 式目录：左分类+右内容） ═══ */
.set-layout { display: grid; grid-template-columns: 216px 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .set-layout { grid-template-columns: 1fr; } .set-nav { flex-direction: row; flex-wrap: wrap; position: static !important; } }
.set-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 74px; }
.set-nav-btn { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: none; border-radius: 12px; background: transparent; color: var(--text2); font-size: 13.5px; cursor: pointer; text-align: left; transition: background .15s, color .15s; }
.set-nav-btn span { font-size: 15px; }
.set-nav-btn:hover { background: rgba(56,189,248,.08); color: var(--text); }
.set-nav-btn.on { background: rgba(56,189,248,.13); color: var(--accent); font-weight: 700; }
.set-pane > .card { margin-bottom: 14px; }

/* ═══ 聊天背景（感官向：对话栏 + 团队房间聊天区，v2 全变量由 JS 设置：图/透明度/适配/纱/模糊/横幅） ═══ */
#ice-sprite .sprite-chat { position: relative; }
#ice-sprite .sprite-chat::before { content: ''; position: absolute; inset: 0; background-image: var(--chat-bg-veil, none), var(--chat-bg-img, none); background-size: auto, var(--chat-bg-fit, cover); background-position: center; background-repeat: no-repeat; opacity: var(--chat-bg-o, .22); pointer-events: none; z-index: 0; filter: blur(var(--chat-bg-blur, 0px)); transform: scale(1.04); }
#ice-sprite .sprite-chat > * { position: relative; z-index: 1; }
.tm-room { position: relative; }
.tm-room::before { content: ''; position: absolute; inset: 0; background-image: var(--chat-bg-veil, none), var(--chat-bg-img, none); background-size: auto, var(--chat-bg-fit, cover); background-position: center; background-repeat: no-repeat; opacity: var(--chat-bg-o, .22); pointer-events: none; border-radius: inherit; filter: blur(var(--chat-bg-blur, 0px)); transform: scale(1.04); }
.tm-room::after { content: var(--chat-bg-banner, ''); position: absolute; left: 50%; top: 14%; transform: translateX(-50%); font-size: clamp(18px, 4vw, 34px); font-weight: 800; letter-spacing: .35em; color: var(--text1); opacity: var(--chat-bg-banner-o, .12); pointer-events: none; white-space: nowrap; z-index: 0; }
.tm-room > * { position: relative; z-index: 1; }

/* ═══ 顶栏用户条（头像+名字+齿轮设置，2026-11-14 从侧边栏转移） ═══ */
.user-chip.top-user { margin: 0; padding: 4px 10px 4px 5px; border-radius: 999px; gap: 8px; }
.user-chip.top-user .uc-avatar { width: 28px; height: 28px; font-size: 14px; border-width: 1.5px; }
.user-chip.top-user .uc-name { font-size: 12.5px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip.top-user:hover { background: rgba(56,189,248,.1); }
#gear-btn { display: flex; align-items: center; justify-content: center; }
#gear-btn svg { transition: transform .3s var(--e, ease); }
#gear-btn:hover svg { transform: rotate(60deg); }

/* ═══ 动效手册落地（AI 前端动效手册 32 例精选，只动 transform/opacity，reduced-motion 降级） ═══ */
/* 顶栏细线：切页时顶部 3px 细线推进+淡出（手册·Top Bar） */
.page-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 999; border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--accent), #4338ca); transition: width .35s cubic-bezier(.2,1,.35,1); animation: ppGrow .5s ease forwards; pointer-events: none; }
@keyframes ppGrow { to { width: 82%; } }
.page-progress.done { width: 100% !important; opacity: 0; transition: width .2s, opacity .3s .15s; }
/* 大屏卡片波浪矩阵入场：按对角线延迟上浮（手册·Wave Matrix） */
@keyframes bsWaveIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
/* 备份导入按钮内填：强调色从左灌入（手册·Button Fill） */
label.btn-importing, .btn.btn-importing { position: relative; overflow: hidden; color: #fff !important; pointer-events: none; }
label.btn-importing::before, .btn.btn-importing::before { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, #0369a1, #4338ca); animation: btnFillSweep 1.2s ease-in-out infinite; z-index: -1; }
@keyframes btnFillSweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(0); } }
/* Token 占比环：描边闭合过渡（手册·Ring） */
.bs-donut-wrap svg circle[data-dash] { transition: stroke-dasharray .9s cubic-bezier(.22,1,.36,1); }
@media (prefers-reduced-motion: reduce) {
  .page-progress { display: none; }
  @keyframes bsWaveIn { to { opacity: 1; transform: none; } }
  label.btn-importing::before, .btn.btn-importing::before { animation: none; }
  .bs-donut-wrap svg circle[data-dash] { transition: none; }
}

/* ═══ 图书馆 3D（three.js 实景；tooltip 跟随鼠标） ═══ */
.lb-tip3d { position: absolute; z-index: 10; padding: 6px 12px; border-radius: 10px; background: rgba(10,16,30,.88); border: 1px solid rgba(56,189,248,.4); color: var(--text); font-size: 12px; pointer-events: none; max-width: 260px; box-shadow: 0 6px 20px rgba(2,6,23,.5); }
.lb-reader { background: var(--bg-base); }

/* ═══ 自习室：壁纸库当前壁纸铺页面背景 + 独立大时钟 ═══ */
.study-scene.has-wall { color: #fff; }
.study-scene.has-wall .study-shelf-empty, .study-scene.has-wall .study-book, .study-scene.has-wall .study-shelf-row,
.study-scene.has-wall .study-desk, .study-scene.has-wall b, .study-scene.has-wall h4 { color: #fff; text-shadow: 0 2px 10px rgba(2,6,23,.7); }
.study-scene.has-wall .study-book .study-book-spine { color: #10182a; text-shadow: none; }
.study-clock-big { display: flex; justify-content: center; align-items: center; padding: 34px 0 6px; }
.study-clock-big .study-clock { font-size: clamp(30px, 4vw, 52px); font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--accent); }

/* ═══ 登录门完善（氛围极光 + 玻璃卡 + 冰晶品牌 + 完整交互态） ═══ */
#login-gate { position: fixed; inset: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background: radial-gradient(1200px 700px at 20% 10%, #16233a, transparent 60%), radial-gradient(1000px 600px at 85% 85%, #1b2a4a, transparent 55%), #0b1020; }
.gate-aurora { position: absolute; width: 60vw; height: 60vw; border-radius: 50%; filter: blur(110px); opacity: .35; pointer-events: none;
  background: radial-gradient(circle, rgba(56,189,248,.55), transparent 62%); top: -18vw; left: -12vw; animation: gateDrift 22s ease-in-out infinite alternate; }
.gate-aurora.a2 { background: radial-gradient(circle, rgba(99,102,241,.5), transparent 62%); top: auto; bottom: -22vw; left: auto; right: -14vw; animation-delay: -9s; }
@keyframes gateDrift { from { transform: translate(0, 0) scale(1); } to { transform: translate(7vw, 5vh) scale(1.12); } }
.gate-card { position: relative; z-index: 2; width: 392px; max-width: 92vw; padding: 40px 36px 24px; border-radius: 26px;
  background: rgba(13,19,32,.78); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgba(148,163,184,.22); box-shadow: 0 30px 80px rgba(2,6,23,.6), inset 0 1px 0 rgba(255,255,255,.08);
  text-align: center; animation: gateIn .6s cubic-bezier(.22,1,.36,1) both; }
@keyframes gateIn { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
.gate-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 18px; }
.gate-mark { width: 72px; height: 72px; border-radius: 20px; filter: drop-shadow(0 8px 24px rgba(56,189,248,.4)); animation: gateFloat 5s ease-in-out infinite; }
@keyframes gateFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.gate-brand b { font-size: 21px; letter-spacing: 1px; color: #f1f5fb; }
.gate-brand small { font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .3em; color: #7c8aa5; }
.login-sub { color: #9fb0c8; font-size: 13px; margin-bottom: 22px; }
.gate-input-row { position: relative; display: flex; align-items: center; margin-bottom: 14px; }
.gate-lock { position: absolute; left: 14px; font-size: 14px; opacity: .7; pointer-events: none; }
#gate-key { width: 100%; padding: 13px 46px 13px 40px; background: rgba(255,255,255,.06); border: 1px solid rgba(148,163,184,.3);
  border-radius: 14px; color: #e8eef7; font-size: 14px; outline: none; transition: border .2s, box-shadow .2s, background .2s; }
#gate-key:focus { border-color: rgba(56,189,248,.7); box-shadow: 0 0 0 3px rgba(56,189,248,.16); background: rgba(255,255,255,.09); }
#gate-eye { position: absolute; right: 8px; width: 34px; height: 34px; border-radius: 9px; border: none; background: transparent;
  color: #9fb0c8; cursor: pointer; font-size: 14px; transition: .15s; }
#gate-eye:hover { background: rgba(255,255,255,.1); color: #e8eef7; }
.gate-btn-main { position: relative; width: 100%; height: 46px; justify-content: center; font-size: 14.5px; font-weight: 700;
  background: linear-gradient(135deg, #0369a1, #4338ca); border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 26px rgba(3,105,161,.4); transition: transform .15s, box-shadow .2s; }
.gate-btn-main:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(3,105,161,.5); }
.gate-btn-main:active { transform: translateY(0); }
.gate-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: gateSpin .7s linear infinite; }
.gate-btn-main.busy .gate-spinner { display: inline-block; }
.gate-btn-main.busy { pointer-events: none; opacity: .85; }
@keyframes gateSpin { to { transform: rotate(360deg); } }
.gate-err { color: #f87171; font-size: 12.5px; min-height: 18px; margin: 10px 0 4px; }
.gate-err.shake { animation: gateShake .4s; }
@keyframes gateShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-4px); } }
.gate-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 10.5px; color: #7c8aa5; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) {
  .gate-aurora, .gate-mark { animation: none; }
  .gate-card { animation: none; }
  .gate-err.shake { animation: none; }
}

/* ═══ 页面铺满：内容区纵向 flex，各主布局拉伸至满屏（消除底部剩余空白） ═══ */
#view-container { display: flex; flex-direction: column; }
#view-container > .bs-grid, #view-container > .study-layout, #view-container > .set-layout,
#view-container > .ev-layout, #view-container > .butler-grid, #view-container > .lb-stage3d,
#view-container > .card:has(#asset-stage), #view-container > .card:has(#lb-reader) { flex: 1 1 auto; min-height: 0; }
#view-container > .card:has(#asset-stage) { display: flex; flex-direction: column; }
#view-container > .card:has(#asset-stage) #asset-stage { flex: 1; min-height: 420px; }

/* ═══ 供应商目录宽弹窗（两列不溢出；窄屏自动单列下翻） ═══ */
.bs-modal.ep-wide { width: min(760px, 94vw); }
.bs-modal.ep-wide .bs-modal-body { max-height: 72vh; overflow-y: auto; }

/* ═══ 登录门 Tab（密钥 / 手机号） ═══ */
.gate-tabs { display: flex; gap: 6px; margin-bottom: 16px; background: rgba(255,255,255,.05); border-radius: 12px; padding: 4px; }
.gate-tab { flex: 1; padding: 9px; border: none; border-radius: 9px; background: transparent; color: #9fb0c8; font-size: 13px; cursor: pointer; transition: .15s; }
.gate-tab.on { background: linear-gradient(135deg, #0369a1, #4338ca); color: #fff; font-weight: 700; }
.gate-pane.hidden { display: none; }

/* ═══ 微信式长按语音浮层（voice-hold，2026-11-17）——舒缓毛玻璃 ═══ */
.vh-overlay { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; pointer-events: auto; }
.vh-overlay.hidden { display: none; }
.vh-card { width: min(420px, 88vw); padding: 22px 24px 18px; border-radius: 22px; text-align: center;
  background: var(--glass-strong, rgba(16,24,42,.88)); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(2,6,23,.45), inset 0 1px 0 rgba(255,255,255,.14);
  animation: vhIn .26s cubic-bezier(.22,1,.36,1) both; }
@keyframes vhIn { from { transform: scale(.94) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.vh-wave { height: 38px; display: flex; align-items: center; justify-content: center; gap: 4px; margin-bottom: 10px; }
.vh-wave i { display: block; width: 4px; height: 4px; border-radius: 3px; background: var(--accent, #38bdf8); transition: height .12s ease-out; opacity: .85; }
.vh-text { font-size: 14.5px; line-height: 1.65; color: var(--text, #e6edf7); min-height: 42px; word-break: break-word; }
.vh-tip { margin-top: 8px; font-size: 11.5px; color: var(--text3, #8d9ab8); }
.vh-cancel { display: none; margin-top: 12px; padding: 8px 18px; border-radius: 11px; font-size: 13px; cursor: pointer;
  background: rgba(248,113,113,.14); border: 1px solid rgba(248,113,113,.38); color: #fca5a5; }
.vh-cancel.show { display: inline-block; }
.vh-pressed { transform: scale(.94) !important; }
@media (prefers-reduced-motion: reduce) { .vh-card { animation: none; } .vh-wave i { transition: none; } }

/* ═══ 布局美化标注器 · 站内全屏浮层（2026-11-17，替代外部新标签） ═══ */
.layoutlab-host { position: fixed; inset: 0; z-index: 10040; display: flex; flex-direction: column;
  background: rgba(6,10,20,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: vhIn .24s cubic-bezier(.22,1,.36,1) both; }
.layoutlab-host.hidden { display: none; }
.layoutlab-bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; flex: none;
  border-bottom: 1px solid var(--glass-border); background: var(--glass-strong); }
.layoutlab-host iframe { flex: 1; width: 100%; border: 0; margin: 14px; width: calc(100% - 28px);
  border-radius: 16px; background: #0b1020; box-shadow: 0 24px 70px rgba(2,6,23,.5); }
