/* 金聚诚式桌面工作台：全宽业务顶栏、可收起的板块菜单。 */
:root { --nav-width:220px; --nav-mini:64px; --topbar:60px; }
.shell {
  display:grid; grid-template-columns:var(--nav-width) minmax(0,1fr);
  grid-template-rows:var(--topbar) minmax(0,1fr); overflow:hidden;
  background:white; transition:grid-template-columns .28s var(--ease);
}
.shell.side-collapsed { grid-template-columns:var(--nav-mini) minmax(0,1fr); }
.topbar { grid-area:1 / 1 / 2 / -1; gap:4px; padding:0 16px 0 10px; }
.topbar.raised { box-shadow:0 1px 0 var(--border),0 8px 18px -14px #14151c38; }
.nav-toggle {
  display:grid; place-items:center; width:40px; height:40px; flex:none;
  border:0; padding:0; border-radius:50%; background:none; color:#999ba2;
}
.nav-toggle:hover { color:var(--ink); background:var(--hover); }
.nav-toggle svg { width:21px; height:21px; stroke-width:2.1; }
.menu-middle { transition:transform .2s ease; transform-origin:3px center; }
.nav-toggle:hover .menu-middle,.side-collapsed .menu-middle { transform:scaleX(1.45); }
.brand-lockup { display:inline-flex; align-items:center; gap:10px; }
.brand-lockup { width:calc(var(--nav-width) - 54px); flex:none; padding:0 4px; line-height:1; }
.brand-lockup .brand-mark { width:auto; height:31px; }
.brand-lockup .brand-word { display:block; width:auto; height:17px; }
.brand-lockup small { display:block; margin-top:5px; font-size:9px; font-weight:600; letter-spacing:.34em; color:#7b8494; white-space:nowrap; }
.domains { display:flex; height:100%; align-items:center; gap:2px; padding:0 8px; white-space:nowrap; }
.domains a { display:inline-flex; align-items:center; height:36px; padding:0 14px; font-size:15px; font-weight:500; border-radius:99px; color:var(--text-muted); }
.domains a { position:relative; }
.domains a:hover { color:var(--ink); }.domains a.active { color:var(--blue); font-weight:600; }
/* 选中的板块下面一小段橙色，取自 logo 的对勾 */
.domains a.active::after { content:""; position:absolute; left:50%; bottom:1px; width:18px; height:3px; border-radius:2px; background:var(--accent); transform:translateX(-50%); }
.top-right { gap:6px; }
.showcase-entry { display:inline-flex; align-items:center; flex:none; gap:7px; height:34px; padding:0 12px; border:1px solid #e1e5ed; border-radius:18px; background:#fff; color:#3a4657; white-space:nowrap; font-size:13px; font-weight:500; }
.showcase-entry svg { width:17px; height:17px; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; }
.showcase-entry:hover { color:var(--blue); background:var(--blue-tint); border-color:var(--blue-line); }
/* 全员演示的两套入口（2026-12-05 凌晨）：鼠标放上去就出，点一下也出（手机、平板）。 */
.showcase-menu { position:relative; display:inline-flex; flex:none; }
button.showcase-entry { font-family:inherit; cursor:pointer; }
.showcase-menu:is(:hover,:focus-within,.open) .showcase-entry { color:var(--blue); background:var(--blue-tint); border-color:var(--blue-line); }
.showcase-pop { position:absolute; top:calc(100% + 8px); right:0; z-index:70; display:none; min-width:180px; padding:6px; border:1px solid #e3e7ee; border-radius:14px; background:#fff;
  box-shadow:0 18px 40px -18px rgb(16 42 67 / 38%),0 2px 6px rgb(16 42 67 / 6%); }
.showcase-pop::before { content:""; position:absolute; left:0; right:0; top:-10px; height:10px; }
.showcase-menu:is(:hover,:focus-within,.open) .showcase-pop { display:grid; gap:2px; animation:am-in .16s var(--ease); }
.showcase-pop a { display:flex; align-items:center; gap:10px; height:46px; padding:0 14px 0 10px; border-radius:10px; color:var(--text); font-size:14px; font-weight:600; white-space:nowrap; }
.showcase-pop a:hover { background:var(--blue-tint); color:var(--blue); }
.showcase-pop img { width:30px; height:30px; object-fit:contain; flex:none; }
@media (max-width:640px) { .showcase-entry { width:34px; justify-content:center; padding:0; } .showcase-entry span { display:none; } }
.search { width:240px; min-width:140px; background:white; }
.search kbd { font-size:10px; font-weight:600; background:#f4f4f5; border-radius:99px; }
.wechat-entry { position:relative; display:inline-flex; align-items:center; flex:none; gap:7px; height:34px; padding:0 13px 0 10px; border:1px solid #cfe9da; border-radius:18px; color:#0a7d43; background:#f1fbf5; font:inherit; font-size:13px; font-weight:500; white-space:nowrap; cursor:pointer; }
.wechat-entry svg { width:21px; height:19px; color:#07c160; transition:transform .18s var(--ease); }
.wechat-entry:hover,.wechat-entry[aria-expanded=true] { background:#e2f6ea; border-color:#a9dcbf; }
.wechat-entry-state { display:none; width:7px; height:7px; border-radius:50%; background:#c5ccd3; }
.wechat-entry[data-state] .wechat-entry-state { display:block; }
.wechat-entry[data-state=bound] .wechat-entry-state { background:#07c160; box-shadow:0 0 0 3px rgba(7,193,96,.16); }
.wechat-entry[data-state=connecting] .wechat-entry-state { background:#f0a020; }
.wechat-entry[data-state=repair] .wechat-entry-state { background:#e5484d; }
@media (max-width:900px) { .wechat-entry { width:36px; justify-content:center; padding:0; border-radius:50%; } .wechat-entry-label { display:none; } .wechat-entry-state { position:absolute; top:5px; right:5px; } }
.wechat-entry:hover svg { transform:translateY(-1px); }
/* 右上角：姓名 + 岗位 + 头像；点开是登录名、账号设置、退出登录（照金聚诚的样子） */
.account { gap:10px; height:44px; padding:0 5px 0 14px; border-radius:99px; transition:background .16s var(--ease); }
.account[aria-expanded=true] { background:var(--hover); }
.account .avatar { width:34px; height:34px; border:2px solid #fff; border-radius:50%; color:#fff; font-size:14px; font-weight:650;
  background:linear-gradient(140deg,var(--brand) 0%,var(--blue) 100%); box-shadow:0 0 0 1px var(--blue-line),0 4px 10px -4px rgb(18 116 165 / 45%); }
.account .avatar[data-role=owner] { background:linear-gradient(140deg,#f3b25c 0%,var(--accent) 60%,#d17a16 100%); box-shadow:0 0 0 1px var(--accent-line),0 4px 10px -4px rgb(209 122 22 / 45%); }
/* 下拉菜单分三块：名片（头像、姓名、岗位、登录名）、两个操作、数据同步。 */
#account-menu { width:288px; padding:8px; overflow:visible; border:1px solid #e3e8ef; border-radius:20px; background:#fff;
  box-shadow:0 24px 56px -18px rgb(16 42 67 / 34%),0 4px 12px -2px rgb(16 42 67 / 8%); transform-origin:calc(100% - 26px) 0; animation:am-in .18s var(--ease); }
@keyframes am-in { from { opacity:0; transform:translateY(-6px) scale(.97); } to { opacity:1; transform:none; } }
.am-card { position:relative; display:flex; align-items:center; gap:13px; padding:16px 16px 15px; overflow:hidden; border-radius:14px;
  background:linear-gradient(125deg,#e6f6fc 0%,#f4fbfe 48%,#fff6e8 100%); }
.am-card::after { content:""; position:absolute; right:-34px; top:-46px; width:132px; height:132px; border-radius:50%; pointer-events:none;
  background:radial-gradient(circle,rgb(234 152 56 / 22%) 0%,transparent 68%); }
.am-avatar { position:relative; z-index:1; display:grid; place-items:center; flex:none; width:46px; height:46px; border-radius:15px; color:#fff; font-size:19px; font-weight:650;
  background:linear-gradient(140deg,var(--brand) 0%,var(--blue) 100%); box-shadow:0 8px 18px -8px rgb(18 116 165 / 60%),inset 0 0 0 1.5px rgb(255 255 255 / 55%); }
.am-avatar[data-role=owner] { background:linear-gradient(140deg,#f3b25c 0%,var(--accent) 60%,#d17a16 100%); box-shadow:0 8px 18px -8px rgb(209 122 22 / 60%),inset 0 0 0 1.5px rgb(255 255 255 / 55%); }
.am-who { position:relative; z-index:1; display:grid; gap:2px; min-width:0; }
.am-who b { color:#16202c; font-size:15px; font-weight:650; line-height:1.3; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.am-who span { color:var(--blue-active); font-size:12px; font-weight:500; line-height:1.4; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.am-who small { margin-top:2px; color:#7d8a9a; font-size:12px; font-variant-numeric:tabular-nums; letter-spacing:.03em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.am-items { display:grid; gap:2px; padding:8px 0 6px; }
.am-items > a, .am-items > button { width:100%; height:46px; display:flex; align-items:center; gap:12px; padding:0 10px 0 8px; border:0; border-radius:12px; background:transparent; color:#1d2633; font-size:14px; font-weight:500; text-align:left; transition:background .14s var(--ease); }
.am-items span { flex:1; }
.am-icon { display:grid; place-items:center; flex:none; width:32px; height:32px; border-radius:10px; color:var(--blue); background:var(--blue-soft); transition:background .14s var(--ease),color .14s var(--ease); }
#account-menu .am-icon svg { width:17px; height:17px; color:inherit; stroke-width:1.8; }
.am-go { width:15px; height:15px; color:#b7bfca; transition:transform .16s var(--ease),color .14s var(--ease); }
.am-items > a:hover, .am-items > button:hover { background:#f4f7fa; }
.am-items > a:hover .am-icon { color:#fff; background:var(--blue); }
.am-items > a:hover .am-go { color:var(--blue); transform:translateX(3px); }
#logout .am-icon { color:#8a94a3; background:#f1f3f6; }
#logout:hover { color:#c0392f; background:#fdf1f0; }
#logout:hover .am-icon { color:#fff; background:#e5574b; }
/* 数据同步（2026-12-01 重做。负责人：「太杂乱了，一眼AI的感觉」）：不要深色渐变底、不要一层层的灰底小卡片。
   菜单里和上面两个操作一个底色，一条细线隔开，每个来源一行——灯、名字、最近核对的时间。
   鼠标移上去或聚焦，在菜单左边、和菜单齐顶展开明细：每个来源一小段，只放名字和今天的两三个数，标签在上、数在下，三段的栏对齐。
   （当天先做过一版十几行的对照表，负责人：「这个页面看的我不舒服。很难受」——数太多、左右隔得太远，所以收成现在这样。） */
.menu .data-status { position:static; height:auto; display:block; margin:0; padding:6px 0 0; border:0; border-top:1px solid var(--row-line); border-radius:0; background:none; color:var(--text-regular); white-space:normal; font-size:13px; cursor:default; outline:0; }
.menu .ds-card { position:relative; padding:6px 10px 4px; border-radius:12px; transition:background .14s var(--ease); }
.menu .data-status:hover .ds-card, .menu .data-status:focus .ds-card { background:#f4f7fa; }
.menu .data-status:focus-visible .ds-card { box-shadow:inset 0 0 0 2px var(--brand); }
/* 菜单和明细之间那条缝：鼠标从这一块往左移到明细上，中途不让明细收回去。 */
.menu .ds-card::before { content:""; position:absolute; top:0; bottom:0; right:100%; width:28px; pointer-events:none; }
.menu .data-status:hover .ds-card::before { pointer-events:auto; }
.menu .ds-head { display:flex; align-items:center; justify-content:space-between; height:30px; }
.menu .ds-title { color:var(--text-regular); font-size:13px; font-weight:500; }
.menu .ds-state { color:var(--text-regular); font-style:normal; font-size:13px; font-weight:500; }
.menu .ds-state.ok { color:var(--success); }
.menu .ds-state.part { color:var(--accent-deep); }
.menu .ds-state.bad { color:var(--danger); }
.menu .ds-row { display:flex; align-items:center; gap:9px; height:30px; }
.menu .ds-row em { flex:1; min-width:0; overflow:hidden; color:#1d2633; font-style:normal; font-size:14px; white-space:nowrap; text-overflow:ellipsis; }
.menu .ds-row b { color:var(--text-regular); font-size:13.5px; font-weight:400; font-variant-numeric:tabular-nums; white-space:nowrap; }
.menu .ds-row.off b { color:var(--accent-deep); }
.menu .ds-row.bad b { color:var(--danger); }
.ds-dot { display:inline-block; width:7px; height:7px; flex:0 0 auto; border-radius:50%; background:var(--text-faint); }
.ds-row.ok .ds-dot, .ds-dot.ok { background:#2bb47c; }
.ds-row.bad .ds-dot, .ds-dot.bad { background:var(--danger); }
.ds-row.off .ds-dot, .ds-dot.off { background:transparent; box-shadow:inset 0 0 0 1.5px var(--accent); }
.menu .ds-fail { margin:0; padding:4px 0 6px; color:var(--text-regular); font-size:13px; }
.menu .ds-pop { top:-1px; bottom:auto; right:calc(100% + 10px); z-index:2; display:flex; flex-direction:column; box-sizing:border-box; width:356px; min-height:calc(100% + 2px); max-height:calc(100vh - 84px); overflow:auto; padding:4px 20px; border:1px solid #e3e8ef; border-radius:20px; color:var(--text-regular); background:#fff;
  box-shadow:0 24px 56px -18px rgb(16 42 67 / 34%),0 4px 12px -2px rgb(16 42 67 / 8%); line-height:1.5; transform:translateX(6px); }
.menu .ds-pop:empty { display:none; }
.menu .ds-pop section { flex:1 0 auto; display:flex; flex-direction:column; justify-content:center; padding:12px 0; }
.menu .ds-pop section + section { border-top:1px solid var(--row-line); }
.menu .ds-pop h4 { display:flex; align-items:center; gap:9px; margin:0; color:var(--ink); font-size:14px; font-weight:600; line-height:22px; }
.menu .ds-pop h4 small { margin-left:auto; color:var(--text-regular); font-size:13px; font-weight:400; }
.menu .ds-pop section.bad h4 small { color:var(--danger); }
.menu .ds-pop section.off h4 small { color:var(--accent-deep); }
/* 数和说明都从名字那条线起头（灯挂在左边），三段的三栏一样宽，上下对得齐。
   不用灰色小字（负责人 12-02：「这种灰色的小字看着很low」）：标签、单位、地图名一律 13px 的深色字，数字放大到 20px，和客户详情页顶上那排数字一个写法。 */
.menu .ds-pop dl { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.75fr); gap:0 12px; margin:10px 0 0 16px; }
.menu .ds-pop dt { color:var(--text-regular); font-size:13px; line-height:20px; white-space:nowrap; }
.menu .ds-pop dd { margin:2px 0 0; color:var(--ink); font-size:20px; font-weight:650; line-height:28px; letter-spacing:-.01em; font-variant-numeric:tabular-nums; white-space:nowrap; }
.menu .ds-pop .wide { grid-column:span 2; }
.menu .ds-pop dd small { margin-left:4px; color:var(--text-regular); font-size:13px; font-weight:400; letter-spacing:0; }
.menu .ds-pop p { margin:9px 0 0 16px; color:var(--danger); font-size:13px; line-height:1.6; text-wrap:balance; }
.menu .ds-pop section.off p { color:var(--text-regular); }
/* 手机宽度：左边放不下，明细改成点一下在这一块下面展开；菜单太长时自己能滚。 */
@media (max-width:760px) {
  #account-menu { width:min(332px,calc(100vw - 16px)); max-height:calc(100dvh - var(--topbar) - 12px); overflow:hidden auto; }
  .menu .ds-card::before { display:none; }
  .menu .ds-pop { position:static; display:none; width:auto; min-height:0; max-width:none; max-height:none; overflow:visible; padding:0 10px; border:0; border-radius:0; box-shadow:none; opacity:1; visibility:visible; transform:none; transition:none; }
  .menu .data-status:hover .ds-pop, .menu .data-status:focus .ds-pop { display:flex; }
  .menu .ds-pop section:first-child { border-top:1px solid var(--row-line); margin-top:6px; }
}
.main-nav { grid-area:2 / 1; position:relative; min-width:0; min-height:0; background:white; z-index:4; }
.main-nav::after { content:""; position:absolute; inset:0 0 0 auto; width:1px; background:linear-gradient(180deg,transparent,#ecedf0 22%,#ecedf0 72%,transparent); pointer-events:none; }
#sections { height:100%; overflow:hidden auto; scrollbar-width:none; padding:4px 14px 28px; }
#sections section { display:flex; flex-direction:column; gap:2px; }
#sections section + section h2 { height:34px; }
#sections h2 { display:flex; align-items:flex-end; height:30px; margin:0; padding:0 10px 6px; font-size:13px; line-height:18px; font-weight:600; color:var(--text); white-space:nowrap; }
#sections a { height:36px; display:flex; align-items:center; gap:12px; margin:0; padding:0 9px; border-radius:18px; font-size:14px; white-space:nowrap; color:var(--text-regular); transition:background .16s,color .16s; }
#sections a svg { width:18px; height:18px; stroke-width:1.6; }
#sections a:hover { background:var(--hover); color:var(--ink); }
#sections a.active { background:var(--blue-soft); color:var(--blue); font-weight:600; }
.side-handle { position:absolute; top:50%; right:-7px; z-index:1; display:grid; place-items:center; width:14px; height:40px; margin-top:-20px; padding:0; border:0; border-radius:7px; color:#b8bac0; background:#f2f2f4; }
.side-handle:hover { color:var(--ink); background:#e8e8ec; }.side-handle svg { width:7px; height:11px; stroke-width:1.7; transition:transform .28s var(--ease); }
.side-collapsed .side-handle svg { transform:rotate(180deg); }
.side-collapsed #sections h2 { font-size:0; }.side-collapsed #sections a span { display:none; }
.body,.assistant { grid-area:2 / 2; min-width:0; }.body .content { min-width:0; }
.search input:focus-visible { box-shadow:none; }
@media (max-width:1120px) {
  :root { --nav-width:192px; }
  .domains { padding:0; }.domains a { padding:0 10px; }.top-right { gap:7px; }
}
@media (max-width:960px) {
  .brand-lockup { width:auto; margin-right:14px; }
  .topbar .search { width:145px; }.topbar kbd { display:none; }
}

/* 正常桌面满幅展示产品；窗口极宽或极高时保留完整原图。 */
.login-wrap {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(430px,39%);
  width:100%; height:100%; min-height:0; overflow:hidden; background:#f8f9fa;
}
.login-showcase { min-width:0; min-height:0; overflow:hidden; container:login-photo / size; background:#171d23; }
.showcase-image { display:block; width:100%; height:100%; object-fit:contain; object-position:center; }
@container login-photo (min-aspect-ratio: 93 / 100) and (max-aspect-ratio: 4 / 3) {
  .showcase-image { object-fit:cover; }
}
.login-panel {
  position:relative; display:flex; flex-direction:column; align-items:center; min-width:0; min-height:0;
  overflow-y:auto; padding:clamp(38px,6vh,78px) clamp(40px,4.5vw,88px);
  background:linear-gradient(145deg,#fff 0%,#fafbfc 65%,#f3f5f7 100%);
  box-shadow:-1px 0 0 rgba(14,28,44,.1);
}
.login-panel-inner { flex:0 0 auto; width:min(100%,376px); margin-block:auto; }
.login-brand { display:flex; align-items:center; gap:13px; height:46px; }
.login-brand .login-mark { width:auto; height:42px; }
.login-brand .login-word { width:auto; height:25px; }
.login-brand::after {
  content:""; width:50px; height:5px; margin-left:auto; opacity:.45;
  background:repeating-linear-gradient(90deg,#91a0ae 0 1px,transparent 1px 5px);
}
.login-heading { margin:clamp(38px,6vh,66px) 0 32px; }
.login-heading h1 { margin:0; color:#142234; font:650 clamp(32px,2.6vw,43px)/1.24 var(--font); letter-spacing:-.055em; }
.login-heading p { margin:12px 0 0; color:#637282; font-size:14px; line-height:1.65; }
.login-heading a { color:#0f5d84; text-decoration:underline; text-underline-offset:3px; }
.login-form .field { display:flex; flex-direction:column; align-items:stretch; gap:8px; margin:0 0 22px; }
.login-form .field span { color:#344253; font-size:13px; font-weight:600; }
.login-form .field[for=login-password] { margin-bottom:8px; }
.login-form input {
  width:100%; height:48px; padding:0 14px; border:1px solid #cbd3db; border-radius:6px;
  color:#18283b; background:rgba(255,255,255,.9); box-shadow:0 1px 2px rgba(21,34,51,.025); outline:0;
}
.login-form input:hover { border-color:#97a7b6; }
.login-form input:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgb(48 172 216 / 18%); }
.login-form input::placeholder { color:#8e9aa7; }
.login-secret { position:relative; }
.login-secret input { padding-right:44px; }
.login-secret button {
  position:absolute; right:7px; top:7px; width:34px; height:34px; display:grid; place-items:center;
  padding:0; border:0; border-radius:4px; color:#738292; background:transparent;
}
.login-secret button svg { width:17px; height:17px; }
.login-secret button[aria-pressed=false] .eye-off { display:none; }
.login-btn { width:100%; min-height:47px; border-radius:6px; font-size:14px; font-weight:600; }
.login-form .login-btn { position:relative; color:#fff; background:var(--blue); border-color:var(--blue); box-shadow:0 10px 22px -12px rgb(18 116 165 / 70%); }
.login-form .login-btn:hover:not(:disabled) { background:var(--blue-hover); border-color:var(--blue-hover); }
.login-form .login-btn svg { position:absolute; right:15px; width:17px; height:17px; }
.login-form .login-btn:disabled { color:#f1f8fb; border-color:#9cc5d8; background:#9cc5d8; box-shadow:none; cursor:default; }
.developer-login { gap:8px; margin-top:11px; color:#42556a; border-color:#cbd3db; background:transparent; }
.developer-login svg { width:16px; height:16px; }
.developer-login:hover { color:#223954; border-color:#95a7b9; background:#f5f7f9; }
/* 登录页最底下的备案号 */
.login-beian { flex:none; margin-top:28px; font-size:13px; line-height:1.6; text-align:center; }
.login-beian a { color:#4a5a6a; text-decoration:none; }
.login-beian a:hover { color:#0f5d84; text-decoration:underline; text-underline-offset:3px; }
.login-form .form-error { margin:10px 0; }
.login-form .form-error:empty { margin:0; min-height:26px; }
@media(max-width:820px) {
  .login-wrap { display:block; background:#fff; }
  .login-showcase { display:none; }
  .login-panel { height:100%; padding:36px 24px 20px; }
  .login-panel-inner { margin-block:auto; }
  .login-form input { font-size:16px; }
}

.assistant { background:white; }
.assistant:not(.rail-hidden) { grid-template-columns:224px minmax(0,1fr); }
.rail { background:#f7f9fb; border-right:1px solid var(--border); }
.rail::after { display:none; }
.rail-head { min-height:58px; }
.history-item,.new-conversation { border-radius:7px; }
.history-group { color:var(--text-muted); }
.conversation-head { min-height:46px; padding:0 20px; color:var(--text-muted); }
.conversation-title { color:var(--text-regular); font-size:14px; font-weight:500; }
.conversation-head .icon-round { width:34px; height:34px; border-radius:7px; }
.welcome { justify-content:center; align-items:center; padding:24px clamp(22px,5vw,60px) max(50px,9vh); text-align:left; }
.welcome-inner { width:min(100%,668px); text-align:center; }
.assistant-brand img { display:block; width:54px; height:54px; margin:0 auto 18px; }
.welcome h2 { font-size:clamp(28px,2.5vw,34px); font-weight:600; line-height:1.35; color:#182b3d; letter-spacing:-.02em; }
.welcome-slot { margin-top:28px; width:100%; text-align:left; }
.composer,.welcome-slot .composer { border-radius:13px; border:1px solid #bdcbd8; box-shadow:0 6px 22px rgba(35,55,80,.055); }
.composer.focused { border-color:#829bb8; box-shadow:0 4px 16px rgba(30,65,99,.06); }
.composer textarea:focus-visible,.search input:focus-visible { box-shadow:none; }
.welcome-slot .composer textarea { min-height:68px; padding:17px 19px 6px; font-size:16px; }
.composer-bar { justify-content:flex-end; padding:5px 12px 12px 19px; }
.send-btn { border-radius:9px; }
.send-btn:disabled { color:#fff; background:#a7b9d1; }
.round-btn { border-radius:9px; }
.starters { width:100%; display:flex; flex-wrap:wrap; justify-content:center; margin:16px auto 0; gap:9px; }
.starter { display:inline-flex; align-items:center; justify-content:center; min-height:36px; gap:7px; padding:0 14px; border:1px solid var(--border); border-radius:999px; background:#fff; color:#455563; font-size:14px; white-space:nowrap; }
.starter:hover { border-color:#cad3dc; background:#f7f9fb; }
.starter svg { width:16px; height:16px; color:#596976; }
.pane:has(.welcome:not([hidden])) .conversation-title,
.pane:has(.welcome:not([hidden])) #new-conv-2 { visibility:hidden; }
.bubble { background:#e7f5fa; border-radius:14px 14px 4px 14px; }
.drawer-head { padding:22px 24px; }
.drawer-head h3 { color:var(--ink); }

/* AppLayout.vue 的折叠按钮、板块选择器。 */
.tb-menu-icon { position:relative; display:block; width:18px; height:14px; }
.tb-menu-icon i { position:absolute; left:0; display:block; width:18px; height:2px; border-radius:2px; background:#9c9ea4; transition:transform .22s ease,opacity .18s ease,width .22s ease,top .22s ease,background .18s ease; }
.tb-menu-icon i:nth-child(1) { top:0; }
.tb-menu-icon i:nth-child(2) { top:6px; width:12px; }
.tb-menu-icon i:nth-child(3) { top:12px; }
.nav-toggle:hover i,.shell.nav-open .tb-menu-icon i { background:#14151c; }
.nav-toggle:hover i:nth-child(2) { width:18px; }
.side-handle:active { transform:scale(.92); }
.domain-trigger { display:none; align-items:center; gap:8px; height:36px; padding:0 12px; border:0; border-radius:18px; background:var(--fill-soft); color:var(--text); font:600 14px var(--font); }
.domain-trigger svg { width:15px; height:15px; transition:transform .2s ease; }
.domains-open .domain-trigger svg { transform:rotate(180deg); }
.nav-scrim { position:fixed; inset:var(--topbar) 0 0; z-index:10; border:0; background:rgba(20,21,28,.12); }
@media (max-width:1239px) {
  .brand-lockup { width:auto; margin-right:12px; }
  .domain-trigger { display:inline-flex; }
  .domains { display:none; position:absolute; top:calc(100% + 4px); left:140px; height:auto; width:220px; padding:8px; background:white; border:1px solid var(--border); border-radius:14px; box-shadow:var(--shadow-lg); }
  .domains-open .domains { display:flex; flex-direction:column; align-items:stretch; gap:2px; }
  .domains a.active { background:var(--blue-soft); }
}
@media (min-width:1240px) and (max-width:1399px) {
  .domains a { padding-inline:10px; }
  .topbar .search { width:180px; }
}
/* 顶栏不许把右边的账号挤出屏幕。板块多（老板有九个）放不下时，app.js 的 fitTopbar 按档收紧：
   1 档：全员演示收成图标、搜索框变窄；2 档：微信按钮收成图标；3 档：板块文字间距收紧。再放不下，板块栏可以横向滑。 */
.topbar .domains { flex:0 1 auto; min-width:0; overflow-x:auto; scrollbar-width:none; }
.topbar .domains::-webkit-scrollbar { display:none; }
.topbar .top-right { flex:none; }
.account-text { max-width:150px; }
.account-text b, .account-text small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.topbar:is([data-fit="1"],[data-fit="2"],[data-fit="3"]) .showcase-entry { width:36px; justify-content:center; padding:0; }
.topbar:is([data-fit="1"],[data-fit="2"],[data-fit="3"]) .showcase-entry span, .topbar:is([data-fit="1"],[data-fit="2"],[data-fit="3"]) kbd { display:none; }
.topbar:is([data-fit="1"],[data-fit="2"],[data-fit="3"]) .search { width:168px; }
.topbar:is([data-fit="2"],[data-fit="3"]) .wechat-entry { width:36px; justify-content:center; padding:0; border-radius:50%; }
.topbar:is([data-fit="2"],[data-fit="3"]) .wechat-entry-label { display:none; }
.topbar:is([data-fit="2"],[data-fit="3"]) .wechat-entry-state { position:absolute; top:5px; right:5px; }
.topbar:is([data-fit="2"],[data-fit="3"]) .search { width:136px; min-width:0; }
.topbar[data-fit="3"] .domains { padding-inline:2px; }
.topbar[data-fit="3"] .domains a { padding-inline:8px; font-size:14px; }

/*
 * 手机宽度下的外壳（2026-11-30 负责人要求考虑手机上的易看性；之前只按电脑设计，窄屏下侧栏仍占着近一半宽）：
 * 侧栏默认收起，点左上角的菜单按钮从左边滑出来（app.js 里窄屏时切 side-mobile-open）；内容占满整屏；
 * 顶栏只留菜单按钮、板块切换、微信入口和头像。只在 760px 以下生效，电脑上不变。
 */
@media (max-width:760px) {
  .shell, .shell.side-collapsed { grid-template-columns:0 minmax(0,1fr); }
  .shell .main-nav { position:fixed; z-index:31; top:var(--topbar); bottom:0; left:0; width:min(264px,82vw); overflow-y:auto; background:#fff; box-shadow:12px 0 32px rgba(20,21,28,.16); transform:translateX(-105%); transition:transform .22s var(--ease); }
  .shell.side-mobile-open .main-nav { transform:none; }
  .shell .main-nav #sections { width:auto; }
  .shell.side-collapsed #sections h2 { font-size:12px; }
  .shell.side-collapsed #sections a span { display:inline; }
  .shell #sections a { height:44px; font-size:15px; }
  .shell .side-handle { display:none; }
  .shell.side-mobile-open .nav-scrim { display:block; z-index:30; }
  .body,.assistant { grid-area:2 / 1 / 3 / -1; }
  .topbar { padding:0 10px 0 6px; gap:2px; }
  .topbar .brand-lockup, .topbar .search, .topbar .showcase-entry, .topbar .account-text { display:none; }
  .domain-trigger { white-space:nowrap; }
  .domains { left:52px; }
  .workpage .pv-head h1, .workpage .crm-head h1 { font-size:22px; }
  .workpage .crm-head { min-height:0; margin-bottom:12px; }
}
