/* 柏睿资本版的配色（NV_EDITION=bairui 时 server.py 把这个文件接在 app.css 后面）。
   跟着 logo 走：黑底白字的衬线 BR 字标 → 整个应用黑白两色，不用彩色品牌色；标题用衬线体。布局不动（飞书式）。
   红 / 绿 / 橙这些表示状态的颜色保留。 */
:root:root{
  --brand:#111113; --brand-h:#2C2C30; --brand-p:#000; --brand-s:#E9E9EB; --brand-ss:#F5F5F6; --brand-ink:#111113;
  --sky:#8E8E93; --grad:linear-gradient(90deg,#2C2C30,#0B0B0C); --ring:rgba(17,17,19,.18);
  --bg:#FFFFFF; --base:#F6F6F7; --hover:#F2F2F3; --hover2:#E9E9EB; --active:#ECECEE;
  --bub:#F3F3F4; --bub-me:#E6E6E9;
  --shadow:0 10px 28px rgba(0,0,0,.08),0 0 0 1px rgba(0,0,0,.05); --glow:0 6px 16px rgba(0,0,0,.18);
  --c1:#111113; --c6:#6E6E73;
  --wash:linear-gradient(180deg,#F6F6F7,#FFFFFF 45%);
  --serif:"Songti SC","STSong","Noto Serif SC","Source Han Serif SC",Georgia,"Times New Roman",serif;
}
:root:root[data-theme="dark"]{
  --brand:#8A8A8E; --brand-h:#A0A0A4; --brand-p:#76767A; --brand-s:#2A2A2D; --brand-ss:#19191B; --brand-ink:#F5F5F5; --ring:rgba(255,255,255,.22);
  --bg:#0B0B0C; --base:#131314; --list:#0B0B0C; --hover:#1B1B1D; --hover2:#262628; --active:#222224;
  --line:#2A2A2D; --line2:#1E1E20; --t1:#F2F2F2; --t2:#B4B4B8; --t3:#86868B; --t4:#5A5A5E;
  --bub:#1B1B1D; --bub-me:#2E2E32; --sky:#8E8E93; --grad:linear-gradient(90deg,#FFFFFF,#E4E4E6);
  --shadow:0 10px 28px rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.07); --glow:0 6px 16px rgba(0,0,0,.4);
  --c1:#F2F2F2; --wash:linear-gradient(180deg,#0B0B0C,#0B0B0C);
}
@media (prefers-color-scheme: dark){:root:root:not([data-theme="light"]){
  --brand:#8A8A8E; --brand-h:#A0A0A4; --brand-p:#76767A; --brand-s:#2A2A2D; --brand-ss:#19191B; --brand-ink:#F5F5F5; --ring:rgba(255,255,255,.22);
  --bg:#0B0B0C; --base:#131314; --list:#0B0B0C; --hover:#1B1B1D; --hover2:#262628; --active:#222224;
  --line:#2A2A2D; --line2:#1E1E20; --t1:#F2F2F2; --t2:#B4B4B8; --t3:#86868B; --t4:#5A5A5E;
  --bub:#1B1B1D; --bub-me:#2E2E32; --sky:#8E8E93; --grad:linear-gradient(90deg,#FFFFFF,#E4E4E6);
  --shadow:0 10px 28px rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.07); --glow:0 6px 16px rgba(0,0,0,.4);
  --c1:#F2F2F2; --wash:linear-gradient(180deg,#0B0B0C,#0B0B0C);
}
  :root:not([data-theme="light"]) .btn.pri,:root:not([data-theme="light"]) .newtip{color:#0B0B0C!important}
  :root:not([data-theme="light"]) .sw.on{background:#D8D8DA}
}
:root[data-theme="dark"] .btn.pri,:root[data-theme="dark"] .newtip{color:#0B0B0C!important}
:root[data-theme="dark"] .sw.on{background:#D8D8DA}

/* 形状：比原来的大圆角收一点，按钮不要彩色柔光 */
.btn.pri{box-shadow:none;letter-spacing:.02em}
.m.me .bub:not(.plain):not(.card){box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
.av.grp,.av.bot{background:#0B0B0C}
.tag.b{background:var(--brand-s);color:var(--t2)}

/* 标题用衬线体，呼应字标 */
.colh h2,.pageh h2,.auth .form h2,.chath .ttl b,.dlgh b{font-family:var(--serif);letter-spacing:.02em}

/* 登录页：表单上方放完整 logo（手机上左边的介绍栏本来就不显示） */
.auth .art{display:none!important} .auth{grid-template-columns:1fr!important}
.auth .form .fc::before{content:"";display:block;width:132px;height:132px;margin:0 auto 22px;border-radius:28px;
  background:#0B0B0C url(/static/brand/bairui-logo.png) center/cover no-repeat;box-shadow:0 12px 30px rgba(0,0,0,.22)}
.auth .form h2,.auth .form .sub{text-align:center}

/* 底栏 / 「我的」里的图标：单色线条 */
.rail .nv .nvi svg,.mgrid .nvi svg{width:24px;height:24px}
.rail .nv.on{color:var(--t1)} .rail .nv{color:var(--t3)}
.fbar button.on,.ctabs button.on{background:var(--brand-s);color:var(--brand-ink);box-shadow:none}

/* —— 手机消息页：字号、间距、版式照飞书 iOS（用户给的截图，1320 宽 = 440pt，下面的数字都是量出来的 pt）—— */
@media (max-width:640px){
  :root:root{--font:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue","Noto Sans SC","Microsoft YaHei",sans-serif}
  .colh h2,.pageh h2,.chath .ttl b,.dlgh b{font-family:var(--font);letter-spacing:0}
  /* 顶栏：头像 32、名字 20、企业名 11、右边两个 26 的图标 */
  #mcol .colh.brh{display:flex;align-items:center;gap:12px;height:64px;padding:10px 16px 4px;border:0;background:var(--bg)}
  #mcol .brh .brme{flex:none;padding:0;border:0;background:none;line-height:0}
  #mcol .brh .brme .av{--s:32px!important;width:32px;height:32px}
  #mcol .brh .brt{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
  #mcol .brh .brt b{font-size:20px;line-height:26px;font-weight:500;color:var(--t1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #mcol .brh .brt small{font-size:11px;line-height:14px;color:var(--t3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #mcol .brh .ib{flex:none;width:28px;height:28px;padding:0;margin-left:8px;color:var(--t1);background:none}
  #mcol .brh .ib svg{width:26px;height:26px;stroke-width:1.9}
  #mcol .brh .brt small{font-weight:400}
  #mcol .brh .ib.brplus{width:26px;height:26px;border:2px solid var(--t1);border-radius:50%;display:grid;place-items:center;margin-left:14px}
  #mcol .brh .ib.brplus svg{width:15px;height:15px;stroke-width:2.6}
  #mcol .ci .tag{border:0;box-shadow:none}
  /* 筛选：32 的圆按钮 + 32 高的分段条 */
  #mcol .fbar.brf{display:flex;align-items:center;gap:8px;padding:6px 16px 12px;overflow:visible;border:0;background:var(--bg)}
  #mcol .brf .brfm{flex:none;width:32px;height:32px;padding:0;border-radius:50%;background:var(--hover2);color:var(--t1);display:grid;place-items:center;box-shadow:none}
  #mcol .brf .brfm.on{background:var(--brand);color:#fff}
  #mcol .brf .brseg{display:flex;height:32px;padding:2px;border-radius:16px;background:var(--hover2)}
  #mcol .brf .brseg button{height:28px;padding:0 20px;border-radius:14px;font-size:14px;font-weight:400;color:var(--t2);background:none;box-shadow:none;white-space:nowrap}
  #mcol .brf .brseg button.on{background:var(--bg);color:var(--brand-ink);font-weight:500;box-shadow:0 1px 2px rgba(0,0,0,.06)}
  /* 会话行：66 高，圆头像 48，名字 17，摘要 14，时间 12；不要分隔线和圆角卡片 */
  #mcol .clist{padding:0}
  #mcol .ci{height:66px;padding:0 16px;gap:12px;margin:0;border-radius:0}
  #mcol .ci .av{--s:48px!important;width:48px;height:48px;border-radius:50%}
  #mcol .ci .av img{border-radius:50%}
  #mcol .ci .tx{gap:5px}
  #mcol .ci .nm{font-size:17px;line-height:22px;font-weight:400;color:var(--t1)}
  #mcol .ci .tm{font-size:12px;color:var(--t3);font-weight:400}
  #mcol .ci .l2,#mcol .ci .pv{font-size:14px;line-height:18px;color:var(--t3)}
  #mcol .ci .avbd{top:-3px;right:-3px;min-width:17px;height:17px;line-height:17px;font-size:11px;box-shadow:0 0 0 1.5px var(--bg)}
  #mcol .ci .tag{font-size:11px;line-height:16px;height:auto;padding:0 4px;border-radius:4px;font-weight:400}
  #mcol .ci .tag.b{background:#FAEDC2;color:#8F5F00}
  /* 底栏：图标 24，字 10 */
  .rail .nv{height:50px;gap:3px}
  .rail .nv .nvi{width:24px;height:24px} .rail .nv .nvi svg{width:24px;height:24px}
  .rail .nv .nvl{font-size:10px;line-height:12px;font-weight:400}
  .rail .nv.on .nvl{font-weight:500}
}

/* AI 的头像（柏睿伙伴 / NeurIPS 助手；后者是白底的 logo）：加一圈细边，白底页面上才看得出是个圆 */
.av.ai{box-shadow:inset 0 0 0 1px var(--line)} .av.ai img{background:#fff}

/* 电脑网页（2026-12-04 恢复网页 / 桌面客户端 / 手机三端）：没选会话时中间那只走路的蓝猫换成柏睿的标 */
#chat .empty .walkcat{width:72px!important;height:72px!important;border-radius:16px;background:url(/static/brand/head.png) center/cover no-repeat!important;animation:none!important;transform:none!important}
#chat .empty .walkcat>*{display:none!important}
