/* Rhixio 灵犀 · User Console v2 —— 手机版 dawn 语汇上桌面
   规则：无外投影（层级=ring/色阶）；强调600/正文400；圆角阶 8/11/12/14/16/17/20/22/26/32/50% */

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--ink); background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }
input { font-family: inherit; color: var(--ink); }
a { color: var(--selected-text); text-decoration: none; }
a:hover { color: var(--acc); }
::selection { background: var(--tint-bg); }

.uc2-hidescroll { scrollbar-width: none; }
.uc2-hidescroll::-webkit-scrollbar { display: none; }
/* 默认不出滚动条：横向条一律不画（页签/芯片排仍可滑）；滚动区禁横溢出，纵向只在装不下时出细条 */
.uc2-wtabs { scrollbar-width: none; }
.uc2-wtabs::-webkit-scrollbar { display: none; }
.uc2-scroll { overflow-x: hidden; }
.uc2-scroll::-webkit-scrollbar { width: 8px; height: 0; }
.uc2-scroll::-webkit-scrollbar-track, .uc2-scroll::-webkit-scrollbar-corner { background: transparent; }
.uc2-scroll { scrollbar-width: thin; scrollbar-color: var(--arrow) transparent; }
.uc2-scroll::-webkit-scrollbar-thumb { background: var(--arrow); border-radius: 6px; border: 2.5px solid transparent; background-clip: content-box; }

@keyframes uc2-rise { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes uc2-pop { 0% { opacity: 0; transform: translateY(10px) scale(0.96); } 62% { transform: translateY(-2px) scale(1.012); } 100% { opacity: 1; transform: none; } }
@keyframes uc2-blink { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes lx-idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

.uc2-app { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

/* ── 顶栏（桌面壳 · 手机语汇） ── */
.uc2-topbar {
  flex: none; height: 56px; padding: 0 18px;
  display: flex; align-items: center; gap: 10px;
  background: var(--bar-translucent);
  backdrop-filter: blur(26px) saturate(1.8); -webkit-backdrop-filter: blur(26px) saturate(1.8);
  box-shadow: inset 0 -0.5px 0 var(--sep);
  position: relative; z-index: 30;
}
.uc2-brand { display: flex; align-items: center; gap: 9px; }
.uc2-brand img { width: 28px; height: 28px; display: block; }
.uc2-brand .en { font-size: 19px; font-weight: 600; letter-spacing: -0.012em; }
.uc2-brand { gap: 8px; }
.uc2-brand .zh { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; }
.uc2-statpill {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: 15px; font-size: 13px; font-weight: 600; white-space: nowrap;
  background: var(--tint-bg); color: var(--selected-text);
}
.uc2-statpill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.uc2-statpill.warn { background: rgba(232,161,58,0.13); color: #8A5A00; }
.uc2-statpill.warn .dot { background: var(--star); }
.uc2-statpill.bad { background: rgba(196,69,60,0.1); color: var(--danger); }
.uc2-statpill.bad .dot { background: var(--danger); animation: uc2-blink 1.6s infinite; }
[data-theme="midnight"] .uc2-statpill.warn { background: rgba(232,161,58,0.16); color: #E8B45A; }
[data-theme="midnight"] .uc2-statpill.bad { background: rgba(244,113,108,0.14); color: #F49A94; }
.uc2-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ── 桌面：蓝图网格台面（非白底 · 蓝紫调暖灰 + 34px 网格 + 顶部光晕） ── */
.uc2-desk {
  flex: 1; min-height: 0; position: relative; overflow: hidden;
  background:
    radial-gradient(900px 340px at 50% -120px, rgba(75,69,196,0.13), transparent 70%),
    linear-gradient(rgba(75,69,196,0.06) 1px, transparent 1px) 0 0/34px 34px,
    linear-gradient(90deg, rgba(75,69,196,0.06) 1px, transparent 1px) 0 0/34px 34px,
    #EFEEF8;
}
[data-theme="midnight"] .uc2-desk {
  background:
    radial-gradient(900px 340px at 50% -120px, rgba(107,100,230,0.18), transparent 70%),
    linear-gradient(rgba(143,138,240,0.08) 1px, transparent 1px) 0 0/34px 34px,
    linear-gradient(90deg, rgba(143,138,240,0.08) 1px, transparent 1px) 0 0/34px 34px,
    #0D0C1D;
}

/* 最近讨论条 */
/* 最近讨论条：领头模式组件 + 横向滚动会话胸章 */
.uc2-recents { position: absolute; top: 14px; left: 92px; right: 20px; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 3px 2px; }
.uc2-recents-scroll { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 3px 2px; }
.uc2-modewrap { position: relative; flex: none; }
.uc2-modechip {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px;
  border: none; border-radius: 13px; cursor: pointer; white-space: nowrap;
  background: var(--tint-bg); box-shadow: inset 0 0 0 1px var(--bubble-lingxi-ring);
  font-size: 13.5px; font-weight: 600; color: var(--selected-text); font-family: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.uc2-modechip:hover { box-shadow: inset 0 0 0 1px var(--acc2); }
.uc2-modechip:active { transform: scale(0.96); }
.uc2-modechip .caret { font-size: 10px; opacity: 0.7; }
.uc2-modemenu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; width: 176px;
  background: var(--card); border-radius: 16px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--ring), 0 1px 2px rgba(23,23,31,0.05), 0 22px 56px -22px rgba(75,69,196,0.32);
  animation: uc2-pop 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-theme="midnight"] .uc2-modemenu { box-shadow: inset 0 0 0 1px var(--ring), 0 1px 2px rgba(0,0,0,0.5), 0 26px 64px -22px rgba(0,0,0,0.6); }
.uc2-modemenu .it { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: none; background: transparent; padding: 10px 14px; cursor: pointer; font-family: inherit; transition: background 0.12s ease; }
.uc2-modemenu .it:hover { background: var(--well); }
.uc2-modemenu .it.picked { background: var(--tint-bg); }
.uc2-modemenu .k { flex: 1; font-size: 14px; font-weight: 600; color: var(--ink); }
.uc2-modemenu .n { font-size: 12px; font-weight: 600; color: var(--t4); }
.uc2-modemenu .mk { font-size: 12px; font-weight: 600; color: var(--selected-text); }
.uc2-recents-label { flex: none; font-size: 13px; font-weight: 600; color: var(--t4); margin-right: 2px; }
/* 最近会话胸章：区别于筛选 chips —— 方润卡形，选中＝深墨实底（非品牌渐变） */
.uc2-rchip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 13px 0 6px;
  border: none; border-radius: 13px; cursor: pointer; white-space: nowrap;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--ring-soft);
  font-size: 13.5px; font-weight: 600; color: var(--t2); font-family: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.uc2-rchip:active { transform: scale(0.96); }
.uc2-rchip.active { background: var(--ink); box-shadow: none; color: var(--bg); }
.uc2-rchip .avpair { display: inline-flex; align-items: center; }
.uc2-rchip .avpair > * + * { margin-left: -8px; }

/* 头像堆叠形态 */
.uc2-stack { display: flex; align-items: center; padding-left: 8px; }
.uc2-stackitem { position: relative; margin-left: -8px; border: none; background: transparent; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: margin 0.15s ease; }
.uc2-stack:hover .uc2-stackitem { margin-left: 4px; }
/* 头像堆叠形态 */
.uc2-stackitem .ring { border-radius: 50%; box-shadow: 0 0 0 2.5px #EFEEF8; display: inline-flex; }
.uc2-stackitem.active .ring { box-shadow: 0 0 0 2px #EFEEF8, 0 0 0 4px var(--acc); }
.uc2-stackitem .nm { display: none; font-size: 13px; font-weight: 600; color: var(--t2); white-space: nowrap; }
.uc2-stackitem.active .nm, .uc2-stackitem:hover .nm { display: inline; }

/* 标签页形态 */
.uc2-tab {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 9px 0 8px;
  border: none; border-radius: 12px; cursor: pointer; white-space: nowrap;
  background: var(--chip); font-size: 14px; font-weight: 600; color: var(--t2);
  transition: transform 0.12s ease;
}
.uc2-tab.active { background: var(--ink); color: var(--bg); }
.uc2-tab .x { width: 18px; height: 18px; border: none; border-radius: 50%; background: transparent; color: inherit; opacity: 0.6; cursor: pointer; font-size: 10px; line-height: 1; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.uc2-tab .x:hover { opacity: 1; background: rgba(128,128,128,0.25); }

/* ── 窗口：一张完整的卡 —— 单一底色、一圈描边、一层柔影，不分段 ── */
.uc2-win {
  position: absolute; z-index: 10;
  display: flex; flex-direction: column;
  border-radius: 22px; overflow: hidden;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--ring), 0 1px 2px rgba(23,23,31,0.05), 0 22px 56px -22px rgba(75,69,196,0.32);
  animation: uc2-pop 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-theme="midnight"] .uc2-win { box-shadow: inset 0 0 0 1px var(--ring), 0 1px 2px rgba(0,0,0,0.5), 0 26px 64px -22px rgba(0,0,0,0.6); }
.uc2-win.dragging { animation: none; }
.uc2-win.dragging::after { content: none; }
/* 每扇会话窗顶部一层人物色晨光（同层头规格，颜色随对方头像色） */
.uc2-win::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 128px; z-index: 0;
  background: linear-gradient(150deg, var(--win-tint-a, rgba(90,84,216,0.11)), var(--win-tint-b, rgba(90,84,216,0.03)));
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent);
  pointer-events: none; }
.uc2-win.dragover { box-shadow: inset 0 0 0 2px var(--acc), 0 22px 56px -22px rgba(75,69,196,0.32); }
.uc2-winbar {
  flex: none; display: flex; flex-direction: column; align-items: stretch;
  padding: 13px 13px 0 18px; cursor: grab; user-select: none;
  position: relative; z-index: 3;
}
.uc2-winbar:active { cursor: grabbing; }
.uc2-winbar .bar-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.uc2-winbar .uc2-partyrow { padding: 10px 0 11px; box-shadow: none; background: transparent; }
.uc2-winbar .tt { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc2-winbar .mm { font-size: 12.5px; font-weight: 400; color: var(--sub); line-height: 1.4; white-space: nowrap; }
.uc2-airead {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px;
  border-radius: 13px; background: var(--tint-bg); color: var(--selected-text);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.uc2-airead::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--online); }
/* 裸图标钮（页头口径：无底色 · 按压 scale .84 + 浅紫底） */
.uc2-bare {
  width: 32px; height: 32px; flex: none; border: none; border-radius: 11px;
  background: transparent; color: var(--t2); cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.12s ease, background 0.12s ease;
}
.uc2-bare:hover { color: var(--ink); }
.uc2-bare:active { transform: scale(0.84); background: var(--tint-bg); }

.uc2-ctl {
  width: 30px; height: 30px; flex: none; border: none; border-radius: 50%;
  background: var(--well); box-shadow: inset 0 0 0 1px var(--ring-soft);
  color: var(--t2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.12s ease, background 0.12s ease;
}
.uc2-ctl:hover { background: var(--chip); }
.uc2-ctl:active { transform: scale(0.88); }
.uc2-back {
  flex: none; width: 34px; height: 34px; border: none; border-radius: 50%; background: transparent;
  color: var(--acc); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.12s ease, background 0.12s ease;
}
.uc2-back:active { transform: scale(0.84); background: var(--tint-bg); }

/* 灵犀会话窗：特别的一扇（OS 通道）—— 顶部一层淡紫晨光，整张卡不分段 */
.uc2-win.lx { box-shadow: inset 0 0 0 1px var(--bubble-lingxi-ring), inset 0 0 0 1px var(--ring), 0 1px 2px rgba(23,23,31,0.05), 0 22px 56px -22px rgba(90,84,216,0.4); }
.uc2-win.lx::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 150px; z-index: 0; background: var(--bubble-lingxi-bg); -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); pointer-events: none; }
.uc2-ostag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--gradient-primary); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; vertical-align: 2px; margin-left: 7px; }

/* 会话窗头部人物砖（与层头图标砖同规格） */
.uc2-winbar .hd-brick { width: 34px; height: 34px; flex: none; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: #fff; position: relative; box-shadow: inset 0 1px 1px rgba(255,255,255,0.35); }
.uc2-winbar .hd-brick .dot { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; background: var(--online); border: 2px solid var(--card); }

/* 缩放把手 */
.uc2-rs { position: absolute; z-index: 20; }
.uc2-rs.e { top: 24px; bottom: 24px; right: -3px; width: 8px; cursor: ew-resize; }
.uc2-rs.w { top: 24px; bottom: 24px; left: -3px; width: 8px; cursor: ew-resize; }
.uc2-rs.s { left: 24px; right: 24px; bottom: -3px; height: 8px; cursor: ns-resize; }
.uc2-rs.n { left: 24px; right: 24px; top: -3px; height: 8px; cursor: ns-resize; }
.uc2-rs.se { right: -4px; bottom: -4px; width: 20px; height: 20px; cursor: nwse-resize; }
.uc2-rs.sw { left: -4px; bottom: -4px; width: 20px; height: 20px; cursor: nesw-resize; }
.uc2-rs.ne { right: -4px; top: -4px; width: 20px; height: 20px; cursor: nesw-resize; }
.uc2-rs.nw { left: -4px; top: -4px; width: 20px; height: 20px; cursor: nwse-resize; }

/* ── 会话视图 ── */
.uc2-partyrow { flex: none; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 10px 16px; box-shadow: inset 0 -0.5px 0 var(--sep); position: relative; z-index: 2; }
.uc2-party {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 4px;
  border: none; border-radius: 15px; white-space: nowrap;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--ring-soft);
  font-size: 13px; font-weight: 600; color: var(--t2);
}
.uc2-party.ai { background: var(--tint-bg); box-shadow: none; color: var(--selected-text); }
.uc2-party .tier { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; opacity: 0.72; }
.uc2-party.add { padding: 0 12px; cursor: pointer; background: transparent; box-shadow: none; border: 1.5px dashed var(--arrow); color: var(--sub); transition: transform 0.12s ease, border-color 0.12s ease, color 0.12s ease; }
.uc2-party.add:hover { border-color: var(--acc2); color: var(--selected-text); }
.uc2-party.add:active { transform: scale(0.94); }

.uc2-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 18px 12px; display: flex; flex-direction: column; gap: 14px; }
.uc2-msgrow { display: flex; gap: 9px; align-items: flex-end; animation: uc2-rise 0.3s ease; }
.uc2-msgrow.me { justify-content: flex-end; }
.uc2-msgrow.ai { align-items: flex-start; }
.uc2-msgname { font-size: 12.5px; font-weight: 600; color: #82818F; margin: 0 0 4px 2px; }
.uc2-msgname.lx { color: var(--selected-text); margin-left: 2px; }
.uc2-ts { display: inline-block; font-size: 11px; font-weight: 400; color: var(--time); margin: 5px 0 -2px 8px; float: right; }
.uc2-msgrow.me .uc2-ts { color: rgba(255,255,255,0.7); }
.uc2-sysnote { align-self: center; font-size: 12px; font-weight: 600; color: var(--sub); background: var(--chip); border-radius: 17px; padding: 4px 12px; text-align: center; }
.uc2-session { align-self: stretch; display: flex; align-items: center; gap: 12px; margin: 4px 0 0; }
.uc2-session::before, .uc2-session::after { content: ""; flex: 1; height: 0.5px; background: var(--sep); }
.uc2-session span { font-size: 11.5px; font-weight: 600; color: var(--time); white-space: nowrap; }
.uc2-typing { font-size: 12.5px; color: var(--sub); animation: uc2-blink 1.2s ease-in-out infinite; padding: 2px 0 0 2px; }

/* #624 会话紧凑视图（comms 真数据）——列表｜消息｜发送｜建议 chips｜诚实三态 */
.uc2-comms { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.uc2-comms-note { flex: none; font-size: 12px; color: var(--sub); background: var(--chip); border-radius: 12px; padding: 7px 12px; margin: 10px 12px 4px; line-height: 1.5; }
.uc2-comms-note b { color: var(--selected-text); font-weight: 700; }
.uc2-comms-body { flex: 1; min-height: 0; display: flex; gap: 0; }
.uc2-comms-list { flex: none; width: 150px; overflow-y: auto; padding: 8px 8px 10px; border-right: 0.5px solid var(--sep); display: flex; flex-direction: column; gap: 4px; }
.uc2-comms-item { display: flex; gap: 8px; align-items: center; text-align: left; background: transparent; border: none; border-radius: 11px; padding: 8px; cursor: pointer; font-family: inherit; }
.uc2-comms-item:hover { background: var(--chip); }
.uc2-comms-item.on { background: var(--tint-bg, rgba(90,84,216,0.11)); }
.uc2-comms-item .av { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--acc, #5A54D8); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.uc2-comms-item .m { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.uc2-comms-item .r1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.uc2-comms-item .r1 b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc2-comms-item .r1 em { flex: none; font-style: normal; font-size: 10.5px; color: var(--time); }
.uc2-comms-item .pv { font-size: 11px; color: var(--time); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc2-comms-thread { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.uc2-comms-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--time); font-size: 13px; }
.uc2-comms-thd { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 8px; border-bottom: 0.5px solid var(--sep); }
.uc2-comms-thd b { font-size: 14px; font-weight: 700; }
.uc2-comms-thd span { display: block; font-size: 11.5px; color: var(--time); margin-top: 2px; }
.uc2-comms-branch { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--sub); background: var(--chip); border: none; border-radius: 15px; padding: 5px 11px; font-family: inherit; cursor: not-allowed; opacity: 0.7; }
.uc2-comms-chipsrc { font-size: 10.5px; color: var(--time); padding: 0 2px; }
.uc2-comms-composer { display: flex; gap: 8px; align-items: flex-end; }
.uc2-comms-composer textarea { flex: 1; min-width: 0; resize: none; border: 0.5px solid var(--sep); border-radius: 13px; padding: 9px 12px; font-family: inherit; font-size: 14px; line-height: 1.5; background: var(--chip); color: inherit; max-height: 120px; }
.uc2-comms-composer textarea:focus { outline: none; border-color: var(--acc, #5A54D8); }
.uc2-sysnote.bad { color: #fff; background: var(--bad, #E4613F); }

/* 行动卡（SUGGEST / ASK） */
.uc2-actcard {
  max-width: 86%; border-radius: 6px 20px 20px 20px; overflow: hidden;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--bubble-lingxi-ring);
}
.uc2-actcard .hd {
  display: flex; align-items: center; gap: 7px; padding: 9px 14px 8px;
  background: var(--bubble-lingxi-bg);
  font-size: 12px; font-weight: 600; letter-spacing: 0.05em; color: var(--selected-text);
}
.uc2-actcard .hd::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.uc2-actcard .bd { padding: 10px 14px 4px; font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.uc2-actcard .bd b { font-weight: 600; }
.uc2-actcard .acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 9px 14px 12px; }
.uc2-actcard .note { margin-left: auto; font-size: 12px; color: var(--t4); }
.uc2-askopt {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  border: none; border-radius: 14px; padding: 11px 13px; cursor: pointer;
  background: var(--well); box-shadow: inset 0 0 0 1px var(--ring-soft);
  transition: transform 0.12s ease;
}
.uc2-askopt:active { transform: scale(0.98); }
.uc2-askopt.picked { background: var(--tint-bg); box-shadow: inset 0 0 0 1.5px var(--acc2); }
.uc2-askopt:disabled { cursor: default; }
.uc2-askopt .mark { width: 22px; height: 22px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--arrow); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; background: transparent; }
.uc2-askopt.picked .mark { background: var(--gradient-primary); box-shadow: none; }
.uc2-askopt .lab { font-size: 13.5px; font-weight: 600; color: var(--ink); display: block; }
.uc2-askopt .desc { font-size: 12.5px; color: var(--sub); display: block; margin-top: 1px; }

/* 输入区：同一张卡上的底段，靠井式输入槽自己成形 */
.uc2-cmdwrap { flex: none; padding: 6px 14px 14px; display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 2; }
.uc2-qchips { display: flex; gap: 8px; overflow-x: auto; padding: 2px; }
.uc2-qchip {
  flex: none; height: 32px; padding: 0 14px; border: none; border-radius: 16px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--ring-soft);
  font-size: 13.5px; font-weight: 600; color: var(--t2); cursor: pointer;
  transition: transform 0.12s ease;
}
.uc2-qchip:active { transform: scale(0.94); }
.uc2-inputrow {
  display: flex; align-items: flex-end; gap: 9px; min-height: 52px; padding: 7px 7px 7px 18px;
  border-radius: 26px; background: var(--well);
  box-shadow: inset 0 0 0 1px var(--ring-soft);
}
.uc2-inputrow input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 14px; }
.uc2-inputrow input::placeholder { color: var(--t4); }
/* 多行输入：回车换行自动长高（封顶 132px 后内滚），⌘⏎ 发送 */
.uc2-inputrow textarea { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 14px; font-family: inherit; resize: none; line-height: 1.45; padding: 9px 0; height: 38px; max-height: 132px; overflow-y: hidden; color: var(--ink); }
.uc2-inputrow textarea::placeholder { color: var(--t4); }
.uc2-inputrow .uc2-bare, .uc2-inputrow .uc2-kbd { margin-bottom: 2px; }
.uc2-inputrow .uc2-kbd { margin-bottom: 9px; }
.uc2-inputrow .uc2-send { margin-bottom: 0; }
.uc2-kbd { flex: none; font-size: 11px; font-weight: 600; color: var(--sub); background: var(--well); box-shadow: inset 0 0 0 1px var(--ring-soft); border-radius: 7px; padding: 3px 7px; }
.uc2-send {
  flex: none; width: 42px; height: 42px; border: none; border-radius: 50%;
  background: var(--gradient-primary); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.12s ease;
}
.uc2-send:active { transform: scale(0.88); }

/* ── 页视图（列表/联系人/功能/设置）── */
.uc2-page { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--canvas); }
.uc2-pagehead { flex: none; padding: 18px 20px 10px; display: flex; align-items: center; gap: 10px; }
.uc2-pagehead .t { font-size: 26px; font-weight: 600; letter-spacing: -0.015em; flex: 1; }
.uc2-pagebody { flex: 1; min-height: 0; overflow-y: auto; padding: 0 12px 96px; }
.uc2-chiprow { display: flex; gap: 8px; overflow-x: auto; padding: 9px 20px 11px; flex: none; }

/* 胶囊 Dock（窗口内 · 与移动端像素同构 14/24/64/32） */
.uc2-dock {
  position: absolute; left: 14px; right: 14px; bottom: 14px; height: 64px; z-index: 6;
  border-radius: 32px; background: var(--dock);
  backdrop-filter: blur(26px) saturate(1.8); -webkit-backdrop-filter: blur(26px) saturate(1.8);
  box-shadow: inset 0 0 0 1px var(--ring);
  display: flex; align-items: center; justify-content: space-around; padding: 0 12px;
}
.uc2-dockitem {
  width: 44px; height: 44px; border: none; border-radius: 15px; background: transparent;
  color: var(--t2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  position: relative; transition: transform 0.12s ease, background 0.12s ease;
}
.uc2-dockitem:active { transform: scale(0.84); }
.uc2-dockitem.on { background: var(--tint-bg); color: var(--acc); }
.uc2-dockitem .bdg { position: absolute; top: 2px; right: 0; }

/* 列表遮底渐隐（内容淡入 dock 背后） */
.uc2-fadebottom { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 92px), rgba(0,0,0,0.18) calc(100% - 30px), rgba(0,0,0,0.18) 100%); mask-image: linear-gradient(to bottom, #000 calc(100% - 92px), rgba(0,0,0,0.18) calc(100% - 30px), rgba(0,0,0,0.18) 100%); }

/* 联系人行 / 分组卡（白卡内用组底色分块，同手机设置组） */
.uc2-groupcard { background: var(--group-bg); border-radius: 16px; overflow: hidden; margin: 0 14px 12px; }
[data-theme="midnight"] .uc2-groupcard { background: var(--cell); }
.uc2-grouplabel { font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--t4); padding: 14px 24px 8px; }
.uc2-crow { 
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: none; background: transparent; padding: 10px 16px; cursor: pointer;
  transition: background 0.12s ease; font-family: inherit; position: relative;
}
.uc2-crow:hover { background: var(--well); }
.uc2-crow[draggable="true"] { cursor: grab; }
.uc2-crow .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.uc2-crow .t { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.uc2-crow .m { font-size: 13px; font-weight: 400; color: var(--sub); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 悬浮才出现的行内动作：不占平时版面（覆在行右侧） */
.uc2-crow .act { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 4px; background: var(--well); border-radius: 10px; padding: 3px 6px; box-shadow: 0 0 0 5px var(--well); transition: opacity 0.12s ease; }
.uc2-crow:hover .act { opacity: 1; pointer-events: auto; }
.uc2-groupcard .uc2-crow + .uc2-crow, .uc2-groupcard .uc2-crow + div .uc2-crow { box-shadow: inset 0 0.5px 0 var(--sep); }

/* 功能砖 */
.uc2-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 10px; padding: 14px 16px; }
.uc2-tile { border: none; background: transparent; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: transform 0.12s ease; }
.uc2-tile:active { transform: scale(0.92); }
.uc2-tile .ic { width: 54px; height: 54px; border-radius: 17px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 1px rgba(255,255,255,0.35); }
.uc2-tile .lb { font-size: 12.5px; font-weight: 600; color: var(--t2); }

/* 设置：账号英雄卡（品牌渐变大面积强调面 · 合法使用场景） */
.uc2-acct { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 16px; margin: 0 14px 12px; background: var(--gradient-primary); color: #fff; position: relative; overflow: hidden; }
.uc2-acct::before { content: ""; position: absolute; top: -46px; right: -34px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,0.09); }
.uc2-acct::after { content: ""; position: absolute; bottom: -58px; right: 44px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.uc2-acct .nm { font-size: 19px; font-weight: 600; color: #fff; }
.uc2-acct .at { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 2px; }
.uc2-acct .badge { position: relative; flex: none; font-size: 12px; font-weight: 600; color: #fff; background: rgba(255,255,255,0.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.32); border-radius: 12px; padding: 3px 10px; }

/* 设置行图标砖 */
.uc2-crow .row-ic { width: 30px; height: 30px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 1px rgba(255,255,255,0.35); }
.uc2-seg { display: flex; gap: 8px; padding: 4px 16px 14px; }
.uc2-segopt { flex: 1; border: none; border-radius: 14px; padding: 10px 0 9px; cursor: pointer; background: var(--well); box-shadow: inset 0 0 0 1px var(--ring-soft); font-size: 13.5px; font-weight: 600; color: var(--t2); transition: transform 0.12s ease; }
.uc2-segopt:active { transform: scale(0.96); }
.uc2-segopt.on { background: var(--tint-bg); box-shadow: inset 0 0 0 1.5px var(--acc2); color: var(--selected-text); }
.uc2-swatches { display: flex; gap: 12px; padding: 2px 16px 16px; }
.uc2-swatch { width: 34px; height: 34px; border: none; border-radius: 50%; cursor: pointer; position: relative; transition: transform 0.12s ease; }
.uc2-swatch:active { transform: scale(0.9); }
.uc2-swatch.on::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--acc); }

/* ── 桌面 3D 灵犀（fixed：不受台面裁剪；高于纯聊模式——它永远在） ── */
.uc2-lx3d { position: fixed; width: 220px; height: 250px; z-index: 70; }
.uc2-lx3d .mount { position: absolute; inset: -12px; cursor: grab; touch-action: none; }
.uc2-lx3d .shadow { position: absolute; left: 50%; bottom: 14px; width: 110px; height: 18px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at center, rgba(75,69,196,0.22), rgba(75,69,196,0) 70%); }
.uc2-lx3d .fb { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.uc2-lx3d .hint {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  font-size: 12.5px; font-weight: 600; color: var(--sub); white-space: nowrap;
  background: var(--bar-translucent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 13px; padding: 4px 11px; box-shadow: inset 0 0 0 1px var(--ring-soft);
  opacity: 0; transition: opacity 0.2s ease; pointer-events: none;
}
.uc2-lx3d:hover .hint { opacity: 1; }

/* 拉人菜单 */
.uc2-pullwrap { position: relative; }
.uc2-pullmenu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; width: 286px; max-height: 380px; overflow-y: auto;
  background: var(--card); border-radius: 20px;
  box-shadow: inset 0 0 0 1px var(--ring), 0 1px 2px rgba(23,23,31,0.05), 0 22px 56px -22px rgba(75,69,196,0.32);
  animation: uc2-pop 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-theme="midnight"] .uc2-pullmenu { box-shadow: inset 0 0 0 1px var(--ring), 0 1px 2px rgba(0,0,0,0.5), 0 26px 64px -22px rgba(0,0,0,0.6); }
.uc2-pullmenu .hd { font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--t4); padding: 13px 16px 6px; }
.uc2-pullmenu .it {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  border: none; background: transparent; padding: 9px 16px; cursor: pointer; transition: background 0.12s ease;
}
.uc2-pullmenu .it:hover { background: var(--cell); }
.uc2-pullmenu .k { font-size: 15px; font-weight: 600; display: block; }
.uc2-pullmenu .d { font-size: 12.5px; color: var(--sub); display: block; }

/* AI 头像（非灵犀）：浅紫底纯色系 */
.uc2-av-ai { border-radius: 50%; background: var(--tint-bg); box-shadow: inset 0 0 0 1px var(--bubble-lingxi-ring); color: var(--selected-text); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex: none; }

/* 空桌提示 + 重开丸 */
.uc2-reopen {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.uc2-reopen .tip { font-size: 15px; color: var(--sub); }

/* ── 左侧功能栏（web 结构 · 点开即层） ── */
.uc2-rail {
  position: absolute; left: 0; top: 0; bottom: 0; width: 72px; z-index: 26;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 0 16px;
  background: var(--bar-translucent);
  backdrop-filter: blur(26px) saturate(1.8); -webkit-backdrop-filter: blur(26px) saturate(1.8);
  box-shadow: inset -0.5px 0 0 var(--sep);
}
.uc2-railitem {
  width: 54px; padding: 9px 0 7px; border: none; border-radius: 12px; background: transparent;
  color: var(--t2); cursor: pointer; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 600; font-family: inherit;
  transition: background 0.12s ease, color 0.12s ease, transform 0.1s ease;
}
.uc2-railitem:hover { background: var(--tint-bg); color: var(--selected-text); }
.uc2-railitem:active { transform: scale(0.94); }
.uc2-railitem.on { background: var(--tint-bg); color: var(--acc); }
.uc2-railitem.on::before { content: ""; position: absolute; left: -9px; top: 50%; transform: translateY(-50%); width: 3px; height: 22px; border-radius: 2px; background: var(--acc); }
.uc2-railitem .bdg { position: absolute; top: 3px; right: 5px; }
.uc2-rail .rail-spacer { flex: 1; }

/* 旧：桌面级胶囊 Dock（弃用，保留给 v2） */
.uc2-deskdock {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 24;
  height: 64px; border-radius: 32px; padding: 0 14px;
  display: flex; align-items: center; gap: 8px;
  background: var(--dock);
  backdrop-filter: blur(26px) saturate(1.8); -webkit-backdrop-filter: blur(26px) saturate(1.8);
  box-shadow: inset 0 0 0 1px var(--ring), 0 14px 40px -18px rgba(75,69,196,0.35);
}
.uc2-deskdock .uc2-dockitem { width: 48px; height: 48px; border-radius: 16px; }
.uc2-deskdock .lb { position: absolute; left: 50%; bottom: 1px; transform: translateX(-50%); font-size: 9.5px; font-weight: 600; color: var(--t4); pointer-events: none; }
.uc2-deskdock .uc2-dockitem.on .lb { color: var(--acc); }

/* ── 台面浮层：与会话窗同款卡体（同底色/描边/柔影/头部规格） ── */
.uc2-layer {
  position: absolute; z-index: 12;
  display: flex; flex-direction: column;
  border-radius: 22px; overflow: hidden;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--ring), 0 1px 2px rgba(23,23,31,0.05), 0 22px 56px -22px rgba(75,69,196,0.32);
  animation: uc2-pop 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-theme="midnight"] .uc2-layer { box-shadow: inset 0 0 0 1px var(--ring), 0 1px 2px rgba(0,0,0,0.5), 0 26px 64px -22px rgba(0,0,0,0.6); }
.uc2-layer.dragging { animation: none; }
/* 层顶晨光 + 头部图标砖（手机图标砖词汇） */
.uc2-layer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 96px; background: var(--bubble-lingxi-bg); -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); pointer-events: none; }
.uc2-layerbar .lyr-ic { width: 34px; height: 34px; flex: none; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 1px rgba(255,255,255,0.35); }
.uc2-layerbar {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 13px 13px 10px 18px; cursor: grab; user-select: none;
  position: relative; z-index: 3;
}
.uc2-layerbar:active { cursor: grabbing; }
.uc2-layerbar .hd-main { flex: 1; min-width: 0; }
.uc2-layerbar .tt { display: block; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc2-layerbar .mm { display: block; font-size: 12.5px; color: var(--sub); font-weight: 400; line-height: 1.4; white-space: nowrap; }
.uc2-layerbody { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ── Web 版控件（hover / focus / 紧凑尺寸） ── */
.uc2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: none; cursor: pointer; font-family: inherit; font-weight: 600;
  border-radius: 999px; white-space: nowrap;
  transition: transform 0.1s ease, filter 0.12s ease, background 0.12s ease, box-shadow 0.12s ease, color 0.12s ease;
}
.uc2-btn.md { height: 36px; padding: 0 17px; font-size: 14px; }
.uc2-btn.sm { height: 30px; padding: 0 13px; font-size: 13px; }
.uc2-btn.xs { height: 26px; padding: 0 11px; font-size: 12.5px; }
.uc2-btn.primary { background: var(--gradient-primary); color: #fff; }
.uc2-btn.primary:hover { filter: brightness(1.07); }
.uc2-btn.secondary { background: var(--well); box-shadow: inset 0 0 0 1px var(--ring-soft); color: var(--t2); }
.uc2-btn.secondary:hover { background: var(--chip); box-shadow: inset 0 0 0 1px var(--ring); color: var(--ink); }
.uc2-btn.tint { background: var(--tint-bg); box-shadow: inset 0 0 0 1px var(--bubble-lingxi-ring); color: var(--selected-text); }
.uc2-btn.tint:hover { box-shadow: inset 0 0 0 1px var(--acc2); }
.uc2-btn.ghost { background: transparent; color: var(--t2); }
.uc2-btn.ghost:hover { background: var(--tint-bg); color: var(--selected-text); }
.uc2-btn.danger { background: rgba(196,69,60,0.08); box-shadow: inset 0 0 0 1px rgba(196,69,60,0.32); color: var(--danger); }
.uc2-btn:active { transform: scale(0.97); }
.uc2-btn:disabled { opacity: 0.5; cursor: default; transform: none; filter: none; }
.uc2-btn:focus-visible, .uc2-chip:focus-visible, .uc2-qchip:focus-visible, .uc2-bare:focus-visible, .uc2-crow:focus-visible, .uc2-segopt:focus-visible, .uc2-swatch:focus-visible, .uc2-dockitem:focus-visible { outline: 2px solid var(--acc2); outline-offset: 2px; }

.uc2-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px;
  border: none; border-radius: 15px; cursor: pointer; flex: none;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--ring-soft);
  font-size: 13px; font-weight: 600; color: var(--t2); font-family: inherit;
  transition: transform 0.1s ease, box-shadow 0.12s ease, color 0.12s ease;
}
.uc2-chip:hover { box-shadow: inset 0 0 0 1px var(--ring); color: var(--ink); }
.uc2-chip:active { transform: scale(0.95); }
.uc2-chip.on { background: var(--gradient-primary); box-shadow: none; color: #fff; }
.uc2-chip .cnt { font-size: 11.5px; font-weight: 600; opacity: 0.72; }

.uc2-search {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 11px;
  border-radius: 10px; background: var(--well);
  box-shadow: inset 0 0 0 1px var(--ring-soft); color: var(--t4);
  transition: box-shadow 0.12s ease;
}
.uc2-search:hover { box-shadow: inset 0 0 0 1px var(--ring); }
.uc2-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--acc2); }
.uc2-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 13.5px; color: var(--ink); }
.uc2-search input::placeholder { color: var(--t4); }

.uc2-inputrow:focus-within { box-shadow: inset 0 0 0 1.5px var(--acc2); }
.uc2-qchip:hover { box-shadow: inset 0 0 0 1px var(--ring); color: var(--selected-text); }
.uc2-bare:hover { background: var(--tint-bg); color: var(--selected-text); }
.uc2-bare.on { background: var(--tint-bg); color: var(--acc); }
.uc2-dockitem:hover { background: var(--tint-bg); }
.uc2-segopt:hover { box-shadow: inset 0 0 0 1px var(--ring); }
.uc2-swatch:hover { transform: scale(1.1); }
.uc2-askopt:hover { box-shadow: inset 0 0 0 1px var(--acc2); }
.uc2-rchip:hover, .uc2-tab:hover { box-shadow: inset 0 0 0 1px var(--ring); }
.uc2-rchip.active:hover, .uc2-tab.active:hover { box-shadow: none; filter: none; opacity: 0.94; }
.uc2-listrow { border-radius: 16px; transition: background 0.12s ease; }
.uc2-listrow:hover { background: var(--cell); }
.uc2-listrow.on { background: var(--cell); }

/* 通知面板（顶栏右侧垂下） */
.uc2-notifwrap { position: relative; }
.uc2-notif {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: 316px; max-height: 420px; overflow-y: auto;
  background: var(--card); border-radius: 20px;
  box-shadow: inset 0 0 0 1px var(--ring), 0 1px 2px rgba(23,23,31,0.05), 0 22px 56px -22px rgba(75,69,196,0.32);
  animation: uc2-pop 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-theme="midnight"] .uc2-notif { box-shadow: inset 0 0 0 1px var(--ring), 0 1px 2px rgba(0,0,0,0.5), 0 26px 64px -22px rgba(0,0,0,0.6); }
.uc2-notif .hd { display: flex; align-items: center; gap: 8px; padding: 13px 16px 7px; font-size: 12.5px; font-weight: 600; color: var(--t4); }
.uc2-notif .it { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; border: none; background: transparent; padding: 9px 16px; cursor: pointer; transition: background 0.12s ease; font-family: inherit; }
.uc2-notif .it:hover { background: var(--cell); }
.uc2-notif .k { font-size: 14.5px; font-weight: 600; color: var(--ink); display: block; }
.uc2-notif .d { font-size: 12.5px; color: var(--sub); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 210px; }
.uc2-notif .empty { padding: 22px 16px 24px; text-align: center; font-size: 13.5px; color: var(--sub); }

/* 桌面快捷图标 */
.uc2-deskicon { position: absolute; z-index: 6; width: 78px; border: none; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: grab; padding: 8px 4px; border-radius: 14px; font-family: inherit; transition: background 0.12s ease; }
.uc2-deskicon:hover { background: rgba(255,255,255,0.55); }
[data-theme="midnight"] .uc2-deskicon:hover { background: rgba(255,255,255,0.07); }
.uc2-deskicon .ic { width: 54px; height: 54px; border-radius: 17px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 1px rgba(255,255,255,0.35); }
.uc2-deskicon .lb { font-size: 12px; font-weight: 600; color: var(--t2); }
.uc2-deskicon .rm { position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; border: none; border-radius: 50%; background: var(--action, #17171F); background: var(--ink); color: var(--bg); font-size: 10px; line-height: 1; cursor: pointer; display: none; align-items: center; justify-content: center; }
.uc2-deskicon:hover .rm { display: inline-flex; }

/* 灵犀专属右键菜单 */
.uc2-ctxmenu {
  position: fixed; z-index: 95; width: 212px;
  background: var(--card); border-radius: 16px; overflow: hidden; padding-bottom: 6px;
  box-shadow: inset 0 0 0 1px var(--ring), 0 1px 2px rgba(23,23,31,0.05), 0 22px 56px -22px rgba(75,69,196,0.32);
  animation: uc2-pop 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-theme="midnight"] .uc2-ctxmenu { box-shadow: inset 0 0 0 1px var(--ring), 0 1px 2px rgba(0,0,0,0.5), 0 26px 64px -22px rgba(0,0,0,0.6); }
.uc2-ctxmenu .hd { display: flex; align-items: center; gap: 7px; padding: 11px 14px 8px; font-size: 12.5px; font-weight: 600; color: var(--t4); box-shadow: inset 0 -0.5px 0 var(--sep); margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc2-ctxmenu .it { display: block; width: calc(100% - 12px); margin: 0 6px; text-align: left; border: none; border-radius: 9px; background: transparent; padding: 8px 10px; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); transition: background 0.1s ease; }
.uc2-ctxmenu .it:hover { background: var(--tint-bg); color: var(--selected-text); }
.uc2-ctxmenu .it.danger { color: var(--danger); }
.uc2-ctxmenu .it.danger:hover { background: rgba(196,69,60,0.08); color: var(--danger); }

/* 灵犀顶栏栖位钮：它在家（趴在点上）时图标藏起；离开时图标「生出+回弹」冒出来 */
.uc2-lxnest .ic { display: inline-flex; animation: uc2NestPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.uc2-lxnest .ic.off { animation: none; opacity: 0; transform: scale(0.4); }
/* 灵犀趴着时：按钮退成空白底座（无底色无描边不可点，位置仍预留） */
.uc2-lxnest.seat { background: transparent; box-shadow: none; pointer-events: none; }
.uc2-lxnest.seat:hover { background: transparent; }
@keyframes uc2NestPop { from { opacity: 0; transform: scale(0); } 62% { opacity: 1; transform: scale(1.22); } to { opacity: 1; transform: scale(1); } }

/* 添加图标选择器（右键→添加图标到这里） */
.uc2-addpick .it { display: flex; align-items: center; gap: 9px; }
.uc2-addpick .it .ico { width: 26px; height: 26px; flex: none; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }

/* 往外爬：抵着浏览器边界努力挣（摔下去/爬起来由 JS 接管） */
.uc2-lx3d.strain .mount, .uc2-lx3d.strain .fb { animation: lxStrainA 0.3s ease-in-out infinite; }
@keyframes lxStrainA { 0%, 100% { transform: translateX(0) rotate(0deg); } 50% { transform: translateX(-4px) rotate(-5deg); } }

/* 缩到只剩沟通本体：迷你聊天卡（逐级收起 chips → 在场行 → 标题细节） */
.uc2-win.micro .uc2-winbar { padding: 8px 8px 0 12px; }
.uc2-win.micro .uc2-winbar .tt { font-size: 14px; }
.uc2-win.micro .hd-brick { width: 26px; height: 26px; font-size: 12px; border-radius: 9px; }
.uc2-win.micro .uc2-msgs { padding: 8px 12px 8px; gap: 10px; }
.uc2-win.micro .uc2-cmdwrap { padding: 4px 8px 8px; }
.uc2-win.micro .uc2-inputrow { min-height: 44px; padding: 4px 4px 4px 12px; }
.uc2-win.micro .uc2-kbd { display: none; }

/* 纯聊模式：浏览器窗口 <720 宽，沟通占满全屏当纯聊天软件用（内页就地打开，手机式推拉） */
.uc2-pure { position: fixed; inset: 0; z-index: 65; background: var(--bg, #FCFDFF); display: flex; flex-direction: column; }
.uc2-pure .pbar { flex: none; display: flex; align-items: center; gap: 9px; height: 52px; padding: 0 12px; box-shadow: inset 0 -0.5px 0 var(--sep); }
.uc2-pure .pbody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.uc2-pure .pbody > .uc2-layerbody { flex: 1; min-height: 0; }
.uc2-pure .uc2-msgs { flex: 1; min-height: 0; }
.uc2-pure .uc2-cmdwrap { padding: 6px 10px 12px; }

/* 人际动作簇（通话/视频/会议/邮件）：成组坐底座，与窗口固定控制（钉/最大化/关）区分开 */
.uc2-pacts { display: inline-flex; align-items: center; gap: 2px; flex: none; background: var(--well); box-shadow: inset 0 0 0 1px var(--ring-soft); border-radius: 17px; padding: 2px 6px; }
.uc2-pacts .uc2-bare { color: var(--t2); }
.uc2-pacts .uc2-bare:hover { color: var(--selected-text); }

/* 功能页：分类改名输入 + 自建砖表单输入 */
.uc2-msidebar .uc2-domedit { margin: 1px 8px 3px; width: calc(100% - 16px); font-family: inherit; font-size: 13px; font-weight: 600; padding: 7px 9px; border: none; border-radius: 9px; background: var(--well); box-shadow: inset 0 0 0 1.5px var(--acc2); outline: none; color: var(--ink); box-sizing: border-box; }
.uc2-selfin { font-family: inherit; font-size: 12.5px; padding: 7px 10px; border: none; border-radius: 9px; background: var(--well); box-shadow: inset 0 0 0 1px var(--ring-soft); outline: none; color: var(--ink); }
.uc2-selfin:focus { box-shadow: inset 0 0 0 1.5px var(--acc2); }
.uc2-selfin::placeholder { color: var(--t4); }

/* 灵犀召回钮（它不在原位时留在家里） */
.uc2-lxhome {
  position: absolute; z-index: 7; border: 1.5px dashed var(--arrow); border-radius: 17px;
  background: transparent; padding: 7px 13px 7px 8px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--sub);
  transition: border-color 0.12s ease, color 0.12s ease, transform 0.12s ease;
}
.uc2-lxhome:hover { border-color: var(--acc2); color: var(--selected-text); }
.uc2-lxhome:active { transform: scale(0.95); }
.uc2-lxhome .ring { display: inline-flex; opacity: 0.55; }

.uc2-statpill.mini { height: 24px; padding: 0 9px; font-size: 11.5px; gap: 4px; }
.uc2-statpill[draggable="true"], .uc2-notifwrap[draggable="true"] { cursor: grab; }
.uc2-notif.rail { position: fixed; left: 84px; top: 64px; right: auto; }

/* 设置层 · Web 表单风格 */
.uc2-profile { display: flex; align-items: center; gap: 12px; padding: 14px 0 13px; box-shadow: inset 0 -0.5px 0 var(--sep); }
.uc2-profile .pmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.uc2-profile .pn { font-size: 15.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.uc2-profile .pbadge { font-size: 11px; font-weight: 600; color: var(--success); background: rgba(46,143,95,0.1); box-shadow: inset 0 0 0 1px rgba(46,143,95,0.3); border-radius: 9px; padding: 1px 7px; }
.uc2-profile .pe { font-size: 12.5px; color: var(--sub); }
.uc2-fsec { font-size: 12px; font-weight: 600; letter-spacing: 0.03em; color: var(--t4); padding: 18px 0 4px; }
.uc2-frow { display: flex; align-items: center; gap: 12px; padding: 11px 0; box-shadow: inset 0 -0.5px 0 var(--sep); }
.uc2-frow.last { box-shadow: none; }
.uc2-frow .lb { flex: none; width: 84px; font-size: 13.5px; font-weight: 600; color: var(--t2); }
.uc2-frow .ct { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.uc2-frow .val { font-size: 13.5px; color: var(--ink); }
.uc2-seg2 { display: inline-flex; background: var(--well); border-radius: 9px; padding: 2px; box-shadow: inset 0 0 0 1px var(--ring-soft); }
.uc2-seg2 button { border: none; background: transparent; height: 28px; padding: 0 12px; border-radius: 7px; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--t2); cursor: pointer; transition: background 0.12s ease, color 0.12s ease; }
.uc2-seg2 button:hover { color: var(--ink); }
.uc2-seg2 button.on { background: var(--card); color: var(--selected-text); box-shadow: 0 1px 2px rgba(23,23,31,0.08), inset 0 0 0 1px var(--ring-soft); }
/* 网页式文字页签（下划线）：列表筛选用，不用手机药丸 */
.uc2-wtabs { display: flex; gap: 18px; padding: 0 16px; flex: none; scrollbar-width: none; }
.uc2-wtabs::-webkit-scrollbar { display: none; }
.uc2-wtabs button { flex: none; white-space: nowrap; position: relative; border: none; background: transparent; padding: 9px 2px 10px; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--t2); cursor: pointer; transition: color 0.12s ease; }
.uc2-wtabs button:hover { color: var(--ink); }
.uc2-wtabs button.on { color: var(--selected-text); }
.uc2-wtabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.5px; height: 2px; border-radius: 1px; background: var(--acc); }
.uc2-wtabs .cnt { font-size: 11px; color: var(--t4); margin-left: 4px; }
.uc2-seg2.stretch { display: flex; width: 100%; }
.uc2-seg2.stretch button { flex: 1; height: 30px; }
.uc2-swrow { display: inline-flex; gap: 9px; }
.uc2-swatch2 { width: 22px; height: 22px; border: none; border-radius: 50%; cursor: pointer; position: relative; transition: transform 0.12s ease; }
.uc2-swatch2:hover { transform: scale(1.12); }
.uc2-swatch2.on::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 0 2px var(--acc); }

/* 操盘台菜单（从左栏弹出）+ 范围锁 + 计数卡 */
.uc2-opsmenu {
  position: fixed; left: 84px; top: 120px; z-index: 70; width: 244px;
  background: var(--card); border-radius: 16px; overflow: hidden; padding-bottom: 6px;
  box-shadow: inset 0 0 0 1px var(--ring), 0 1px 2px rgba(23,23,31,0.05), 0 22px 56px -22px rgba(75,69,196,0.32);
  animation: uc2-pop 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-theme="midnight"] .uc2-opsmenu { box-shadow: inset 0 0 0 1px var(--ring), 0 1px 2px rgba(0,0,0,0.5), 0 26px 64px -22px rgba(0,0,0,0.6); }
.uc2-opsmenu .hd { display: flex; align-items: center; gap: 7px; padding: 12px 14px 9px; font-size: 12.5px; font-weight: 600; color: var(--t4); }
.uc2-opsmenu .scope { display: flex; align-items: center; gap: 8px; margin: 0 10px 6px; padding: 7px 10px; background: var(--well); box-shadow: inset 0 0 0 1px var(--ring-soft); border-radius: 10px; }
.uc2-opsmenu .scope .lb { font-size: 12px; font-weight: 600; color: var(--t2); flex: none; }
.uc2-opsmenu .scope select { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--selected-text); cursor: pointer; appearance: none; -webkit-appearance: none; }
.uc2-opsmenu .it { display: flex; align-items: center; width: calc(100% - 12px); margin: 0 6px; text-align: left; border: none; border-radius: 9px; background: transparent; padding: 8px 10px; cursor: pointer; font-family: inherit; transition: background 0.1s ease; }
.uc2-opsmenu .it:hover { background: var(--tint-bg); }
.uc2-opsmenu .it .k { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.uc2-opsmenu .it .n { font-size: 11.5px; font-weight: 600; color: #fff; background: var(--gradient-primary); border-radius: 9px; min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.uc2-opsmenu .ft { padding: 7px 14px 5px; font-size: 11px; color: var(--t4); }

.uc2-opsmenu.in-layer { position: static; width: auto; box-shadow: none; border-radius: 0; background: transparent; animation: none; flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 10px; }

.uc2-opscard { border: none; border-radius: 14px; padding: 12px 8px 10px; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--tint-bg); transition: transform 0.12s ease, filter 0.12s ease; }
.uc2-opscard:hover { filter: brightness(1.03); }
.uc2-opscard:active { transform: scale(0.96); }
.uc2-opscard .n { font-size: 24px; font-weight: 600; color: var(--selected-text); }
.uc2-opscard .t { font-size: 12.5px; font-weight: 600; color: var(--t2); }
.uc2-opscard.warn { background: rgba(232,161,58,0.13); } .uc2-opscard.warn .n { color: #8A5A00; }
.uc2-opscard.bad { background: rgba(196,69,60,0.09); } .uc2-opscard.bad .n { color: var(--danger); }
[data-theme="midnight"] .uc2-opscard.warn .n { color: #E8B45A; }

/* 市场左侧分类栏 */
.uc2-msidebar { width: 118px; flex: none; padding: 8px 6px 12px; box-shadow: inset -0.5px 0 0 var(--sep); display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.uc2-msidebar .glb { font-size: 11px; font-weight: 600; letter-spacing: 0.03em; color: var(--t4); padding: 10px 10px 4px; }
.uc2-msidebar button { text-align: left; border: none; background: transparent; border-radius: 9px; padding: 7px 10px; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--t2); cursor: pointer; transition: background 0.12s ease, color 0.12s ease; }
.uc2-msidebar button:hover { background: var(--tint-bg); color: var(--selected-text); }
.uc2-msidebar button.on { background: var(--tint-bg); color: var(--selected-text); }

/* 邮件行分割线 */
.uc2-maillist .uc2-crow + .uc2-crow { box-shadow: inset 0 0.5px 0 var(--sep); }

/* 邮箱多账号切换（窄窗可收缩：包裹剪裁，select 填满） */
.uc2-mailacct { display: inline-flex; align-items: center; background: var(--well); box-shadow: inset 0 0 0 1px var(--ring-soft); border-radius: 9px; padding: 4px 8px; min-width: 34px; position: relative; flex: 0 1 auto; overflow: hidden; }
.uc2-mailacct select { border: none; outline: none; background: transparent; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--selected-text); cursor: pointer; width: 100%; max-width: 178px; appearance: none; -webkit-appearance: none; -moz-appearance: none; padding-right: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc2-mailacct::after { content: "▾"; position: absolute; right: 8px; font-size: 9px; color: var(--t4); pointer-events: none; }

/* 邮件行：悬浮动作贴标题行右侧，时间让位，不盖正文 */
.uc2-maillist .uc2-crow .act { top: 9px; transform: none; }
.uc2-maillist .uc2-crow:hover .t > span:last-child { opacity: 0; }

/* 全局搜索（顶栏坞位组件） */
.uc2-gsearch { position: relative; display: inline-flex; }
.uc2-gdrop {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 70; width: 268px;
  background: var(--card); border-radius: 14px; overflow: hidden; padding: 5px 0;
  box-shadow: inset 0 0 0 1px var(--ring), 0 1px 2px rgba(23,23,31,0.05), 0 22px 56px -22px rgba(75,69,196,0.32);
  animation: uc2-pop 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-theme="midnight"] .uc2-gdrop { box-shadow: inset 0 0 0 1px var(--ring), 0 1px 2px rgba(0,0,0,0.5), 0 26px 64px -22px rgba(0,0,0,0.6); }
.uc2-gdrop .it { display: flex; align-items: center; gap: 8px; width: calc(100% - 12px); margin: 0 6px; border: none; border-radius: 8px; background: transparent; padding: 8px 10px; cursor: pointer; font-family: inherit; text-align: left; transition: background 0.1s ease; }
.uc2-gdrop .it:hover { background: var(--tint-bg); }
.uc2-gdrop .k { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc2-gdrop .d { font-size: 11.5px; color: var(--t4); flex: none; }
.uc2-gdrop .it.ask .k { color: var(--selected-text); }
.uc2-gdrop.up { top: auto; bottom: calc(100% + 10px); }

/* 提示浮沫 */
.uc2-toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 90;
  background: rgba(23,23,31,0.92); color: #fff; font-size: 13.5px; font-weight: 600;
  border-radius: 17px; padding: 9px 18px; animation: uc2-rise 0.2s ease;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
[data-theme="midnight"] .uc2-toast { background: rgba(238,237,251,0.94); color: #17171F; }

.uc2-drophint { position: fixed; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 80; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--acc2); border-radius: 17px; padding: 9px 18px; font-size: 13.5px; font-weight: 600; color: var(--selected-text); pointer-events: none; }
