/* >>> LSS-PKG lss-a348 | 融合本地实际部署修复:readFile的XML判定修复(避免docx MIME含xml被误判文本)+style.css nav字号13px与nav-toggle蓝fallback+aichat硬编码灰统一#667085/绿fallback→蓝;其余=lss-a347全量 | 2026-08-13 | 部署到 /root/lab-smart-steward/web-clone/style.css <<< */
/* LSS 网页样式 —— LibreChat 式干净浅色系(taste 原则:单一强调色/圆角一致/去厚阴影/克制)。类名全保留,app.js 不受影响。 */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #eef1f4;
  --text: #1f2329;            /* 与 aichat 统一 */
  --muted: #667085;
  --border: #e4e7ec;
  --accent: #3370ff;          /* 强调色(默认蓝·可被外观设置覆盖,与 aichat 统一) */
  --accent-rgb: 51,112,255;   /* 强调色 rgb(供辉光 rgba 用),外观设置改这个就整体换主题 */
  --accent-hover: #2860e0;
  --accent-weak: #eaf1ff;     /* 强调色浅底(active/tag) */
  --danger: #e0483d;
  --radius: 10px;             /* 输入 */
  --radius-sm: 8px;           /* 按钮/导航项 */
  --radius-card: 14px;        /* ★a419 卡片:更圆润的卡片式外观 */
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 20px rgba(16,24,40,.06);   /* ★a419 更有层次的卡片投影 */
  --shadow-hover: 0 2px 6px rgba(16,24,40,.05), 0 12px 30px rgba(var(--accent-rgb),.10);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; font-size: 15px; }
.center { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.muted { color: var(--muted); font-size: 13px; }
.row { display: flex; gap: 12px; align-items: center; }
.wrap { display: flex; min-height: 100vh; }

/* 侧边栏:浅色 + 圆角高亮项(LibreChat 感) */
.side { width: 240px; background: #fbfcfd; color: var(--text); padding: 14px 0; flex-shrink: 0; border-right: 1px solid var(--border); }
.side .brand { color: var(--text); font-weight: 700; padding: 8px 22px 16px; font-size: 17px; letter-spacing: -.01em; }
/* 左栏栏目 = 按钮组(与 aichat 蓝色玻璃按钮一致);统一字号/图标大小;每项都有图标 */
.side .nav { display: flex; align-items: center; gap: 9px; margin: 4px 12px; padding: 8px 12px; cursor: pointer; color: #3a4657; border: 1px solid rgba(51,112,255,.16); border-radius: 10px; font-size: 13px; font-weight: 500; background: linear-gradient(145deg, rgba(51,112,255,.05), rgba(255,255,255,.85)); box-shadow: inset 0 1px 2px rgba(255,255,255,.7), 0 1px 4px rgba(16,24,40,.04); transition: background .15s, color .15s, border-color .15s, transform .12s, box-shadow .15s; }
.side .nav:hover { border-color: rgba(51,112,255,.4); background: linear-gradient(145deg, rgba(51,112,255,.1), rgba(255,255,255,.96)); color: #1f2329; transform: translateY(-1px); box-shadow: 0 3px 10px rgba(51,112,255,.12); }
.side .nav.active { border-color: #3370ff; background: linear-gradient(145deg, rgba(51,112,255,.16), rgba(51,112,255,.06)); color: #3370ff; font-weight: 600; }
.side .nav:active { transform: translateY(0) scale(.985); }   /* ★a477 skills:导航按压触感 */
.side .nav .nav-ic { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex-shrink: 0; color: inherit; }
.side .nav .nav-ic .sci-ic { width: 17px; height: 17px; }
.side .nav .nav-emo { font-size: 15px; line-height: 1; }
.side .nav .nav-tx { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 待审:橙色突出(与 aichat 待审按钮一致) */
.side .nav[data-nav="pending"] { border-color: rgba(237,137,54,.4); background: linear-gradient(145deg, rgba(237,137,54,.1), rgba(255,255,255,.9)); }
.side .nav[data-nav="pending"] .nav-ic { color: #ed8936; }
.side .nav[data-nav="pending"]:hover { border-color: #ed8936; box-shadow: 0 3px 10px rgba(237,137,54,.18); }
.side .nav[data-nav="pending"].active { border-color: #ed8936; color: #c05621; background: linear-gradient(145deg, rgba(237,137,54,.2), rgba(237,137,54,.06)); }
/* ★a794 返回对话:侧栏第一项(与导航同一视觉语言,但用强调色点明它是"出去"而不是又一个栏目) */
.side .nav.nav-backchat { border-color: rgba(var(--accent-rgb,51 112 255),.45); color: var(--accent,#3370ff); font-weight: 600; background: linear-gradient(145deg, rgba(var(--accent-rgb,51 112 255),.12), rgba(255,255,255,.92)); }
.side .nav.nav-backchat:hover { border-color: var(--accent,#3370ff); box-shadow: 0 3px 10px rgba(var(--accent-rgb,51 112 255),.2); }
/* 固定小药丸:桌面不出(侧栏那一项就够),窄屏才出 —— 窄屏侧栏是抽屉,收起时点不到侧栏 */
.nav-backchat.backchat-fab { display: none; }
.side .nav.nav-addboard { border-style: dashed; border-color: rgba(51,112,255,.35); color: #3370ff; background: rgba(51,112,255,.04); }
.side .nav.nav-addboard .nav-ic { color: #3370ff; }
.side .me { padding: 14px 22px; border-top: 1px solid var(--border); margin-top: 10px; font-size: 13px; color: var(--muted); }

/* 主区 */
.main { flex: 1; padding: 30px 40px; max-width: 1120px; }
h2 { margin: 0 0 20px; font-size: 20px; font-weight: 650; letter-spacing: -.01em; }

.card { background: var(--surface); border: 1px solid rgba(16,24,40,.06); border-radius: var(--radius-card); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); transition: box-shadow .2s ease, transform .15s ease, border-color .2s ease; }
/* ★a419 可点击卡片(带 data-open / .clickable)悬停微抬起,强化卡片式质感;普通信息卡不动 */
.card[data-open]:hover, .card.clickable:hover { box-shadow: var(--shadow-hover); border-color: rgba(var(--accent-rgb),.28); transform: translateY(-2px); cursor: pointer; }
/* ★a420 卡片网格:把重列表(项目/审核员/成员)从表格改成一张张卡片,响应式自适应列数 */
.cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 14px; margin-bottom: 16px; }
.cardgrid > .card { margin-bottom: 0; }   /* ★a421 .card 放进网格时由 gap 控距,去掉自身下边距防不齐 */
.tilecard { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid rgba(16,24,40,.06); border-radius: var(--radius-card); padding: 16px; box-shadow: var(--shadow); transition: box-shadow .2s ease, transform .15s ease, border-color .2s ease; }
.tilecard.clickable { cursor: pointer; }
.tilecard.clickable:hover { box-shadow: var(--shadow-hover); border-color: rgba(var(--accent-rgb),.28); transform: translateY(-2px); }
.tc-ava { width: 44px; height: 44px; border-radius: 12px; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; flex-shrink: 0; }
.tc-ava .btn-ic svg { width: 22px; height: 22px; }   /* ★a428 卡片头像里的图标(emoji 已被 lss-icons 自动换成 Tabler/Lucide SVG)放大到 22px,居中充盈 44px 圆块 */
.tc-body { flex: 1; min-width: 0; }
.tc-title { font-weight: 600; font-size: 15px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tc-arrow { color: var(--muted); font-size: 18px; flex-shrink: 0; }
.tc-metrics { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.tc-metric b { font-size: 18px; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.1; }
.tc-metric span { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.tc-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; }
.tc-star { color: #f5a623; font-size: 13px; font-variant-numeric: tabular-nums; }

/* ★按钮三态(2026-08-07):正常=胶囊+液体玻璃 / hover=胶囊+Neon辉光 / busy=胶囊+Neon+loading */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; padding: 9px 20px; cursor: pointer; font-size: 14px; font-weight: 500; text-align: center; white-space: nowrap;
  border: 1px solid rgba(var(--accent-rgb),.30);
  background: linear-gradient(145deg, rgba(var(--accent-rgb),.14), rgba(255,255,255,.35));
  color: #1f2329; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.7), 0 2px 10px rgba(16,24,40,.07);
  transition: box-shadow .2s, transform .15s, border-color .2s, background .2s; }
.btn:hover, .btn:focus-visible { border-color: var(--accent); box-shadow: 0 0 14px rgba(var(--accent-rgb),.35), inset 0 0 6px rgba(var(--accent-rgb),.10); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: 0 0 10px rgba(var(--accent-rgb),.25); }
.btn.sec { border-color: rgba(16,24,40,.10); background: linear-gradient(145deg, rgba(255,255,255,.75), rgba(238,241,244,.40)); color: var(--text); }
.btn.sec:hover { border-color: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb),.22); }
.btn.warn { border-color: rgba(224,72,61,.32); color: #c02c26; background: linear-gradient(145deg, rgba(224,72,61,.10), rgba(255,255,255,.35)); }
.btn.warn:hover { border-color: var(--danger); box-shadow: 0 0 14px rgba(224,72,61,.30); }
.btn.mini { padding: 5px 14px; font-size: 13px; gap: 4px; }
.btn.busy { border-color: #7c3aed; box-shadow: 0 0 16px rgba(124,58,237,.38); cursor: progress; pointer-events: none; opacity: .92; }
.btn.busy::before { content:''; display:inline-block; width:12px; height:12px; margin-right:8px; border:2px solid rgba(124,58,237,.28); border-top-color:#7c3aed; border-radius:50%; animation:spin .8s linear infinite; flex-shrink:0; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-ic { display:inline-flex; align-items:center; flex-shrink:0; }
.btn-ic svg { width:16px; height:16px; display:block; }
.link .btn-ic svg { width:14px; height:14px; vertical-align:-2px; }
.ap-ic .btn-ic svg, .ap-close .btn-ic svg { width:15px; height:15px; }
/* ★P2 机制图:选中元素高亮 */
.mech-el.sel rect { stroke:#7c3aed; stroke-width:2.5; filter: drop-shadow(0 0 4px rgba(124,58,237,.5)); }

input, select, textarea { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 12px; font-size: 14px; width: 100%; background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.12); }
input::placeholder, textarea::placeholder { color: #98a2b3; }
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 5px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--border); font-size: 14px; }
td { font-variant-numeric: tabular-nums; }   /* ★a419 数字等宽对齐,数据更整齐 */
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: none; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #fafbfc; }

.tag { display: inline-block; background: var(--accent-weak); color: var(--accent); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 500; }
.link { color: var(--accent); cursor: pointer; transition: color .12s ease-out, opacity .12s ease-out; }
.link:hover { text-decoration: underline; }
.link:active { opacity: .7; }   /* ★a477 skills:链接按压反馈 */
/* 项目名等"内容"用灰黑(不是动作链接,不用强调色);hover 才提示可点 */
.pname { color: var(--text); cursor: pointer; font-weight: 500; }
.pname:hover { color: var(--accent); }

.authbox { max-width: 400px; margin: 9vh auto; }
.overlay { position: fixed; inset: 0; background: rgba(16,24,40,.42); display: flex; align-items: center; justify-content: center; z-index: 100; backdrop-filter: blur(2px); }
.sheet { position: relative; background: var(--surface); border-radius: 14px; padding: 22px; max-width: 92vw; max-height: 86vh; overflow: auto; box-shadow: 0 20px 60px rgba(16,24,40,.24); }

.cell { width: 40px; height: 40px; margin: 3px; border: 1px solid var(--border); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; cursor: pointer; }
.cell.taken { background: #fdecea; color: var(--danger); border-color: #f4b8b2; cursor: not-allowed; }
.cell.pick { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 悬浮智能体助手 */
.agent-fab { position: fixed; right: 26px; bottom: 26px; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 20px rgba(var(--accent-rgb),.4); z-index: 200; user-select: none; transition: background .15s, transform .1s; }
.agent-fab:hover { background: var(--accent-hover); transform: translateY(-1px); }
.agent-panel { position: fixed; right: 26px; bottom: 92px; width: 372px; max-width: calc(100vw - 36px); height: 70vh; max-height: 560px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 16px 48px rgba(16,24,40,.2); display: none; flex-direction: column; overflow: hidden; z-index: 200; }
.agent-panel.open { display: flex; }
.agent-panel .ap-head { background: var(--accent); color: #fff; padding: 13px 16px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.agent-panel .ap-head .ap-close { cursor: pointer; font-size: 20px; line-height: 1; }
.agent-panel .ap-head .ap-ic { cursor: pointer; font-size: 16px; line-height: 1; margin-left: 10px; opacity: .92; }
.agent-panel .ap-head .ap-ic:hover { opacity: 1; }
.agent-panel .ap-body { flex: 1; overflow: auto; padding: 12px; background: var(--bg); }
.agent-panel .ap-foot { border-top: 1px solid var(--border); padding: 10px; display: flex; gap: 8px; align-items: center; }
.agent-panel .ap-foot input { flex: 1; }

.locitem { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; cursor: pointer; transition: background .15s ease-out, border-color .15s ease-out, transform .08s ease-out; }
.locitem:hover { background: var(--accent-weak); border-color: rgba(var(--accent-rgb),.3); }
.locitem:active { transform: scale(.99); }   /* ★a477 skills:列表项按压 */
.tabs { display: flex; margin-bottom: 16px; gap: 4px; }
.tabs .t { flex: 1; text-align: center; padding: 10px; cursor: pointer; border-bottom: 2px solid transparent; color: var(--muted); transition: color .15s; }
.tabs .t.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

/* 照片缩略图 */
.photo-row { display: flex; flex-wrap: wrap; align-items: center; }
.photo-thumb { position: relative; display: inline-block; margin: 4px; }
.photo-thumb img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; cursor: pointer; display: block; border: 1px solid var(--border); }
.photo-del { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; background: var(--danger); color: #fff; border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 13px; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.photo-thumb:hover .photo-del { display: flex; }

/* 折叠分组(高级栏目) */
.nav-group { margin: 6px 12px 2px; padding: 6px 13px; font-size: 12px; color: #98a2b3; cursor: pointer; user-select: none; display: flex; align-items: center; justify-content: space-between; }
.nav-group:hover { color: var(--muted); }

/* 嵌入模式(嵌进 LibreChat 侧栏):紧凑·扁平·无多余边框,只留干净文件面板 */
body.embed { background: #fff; }
body.embed .main { padding: 12px 14px; max-width: none; }
body.embed h2 { font-size: 15px; margin: 0 0 12px; }
body.embed .card { padding: 12px; border: none; border-radius: 8px; box-shadow: none; background: #f7f8fa; margin-bottom: 10px; }
body.embed table th, body.embed table td { padding: 8px 4px; font-size: 13px; }
body.embed table th { font-size: 11px; }
body.embed .btn { padding: 7px 12px; font-size: 13px; }
body.embed input, body.embed select { padding: 7px 10px; font-size: 13px; }

/* ===== 移动端自适应 (2026-08-06): 侧栏抽屉 + 主区全宽 + 表格横滚 ===== */
.nav-toggle { display: none; }
@media (max-width: 768px) {
  .wrap { display: block; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 120; width: 250px; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 0 0 24px rgba(0,0,0,.18); overflow-y: auto; }
  body.nav-open .side { transform: translateX(0); }
  .nav-toggle { display: flex; position: fixed; left: 12px; top: 12px; z-index: 130; width: 38px; height: 38px; border-radius: 10px; background: var(--accent,#3370ff); color: #fff; border: none; font-size: 19px; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
  /* ★a794 窄屏:侧栏收起时也要有回程 —— 右上固定小药丸(和左上角菜单键同高,不打架) */
  .nav-backchat.backchat-fab { display: inline-flex; position: fixed; right: 12px; top: 12px; z-index: 130; margin: 0; padding: 0 12px; height: 38px; width: auto; border-radius: 19px; background: var(--accent,#3370ff); color: #fff; border: none; font-size: 13px; font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
  .nav-backchat.backchat-fab .nav-ic, .nav-backchat.backchat-fab .nav-tx { color: #fff; }
  .nav-backchat.backchat-fab .nav-tx { flex: none; }
  .main { padding: 16px 14px 64px; max-width: none; }
  h2 { font-size: 17px; margin-bottom: 14px; }
  .card { padding: 12px; }
  .card .row, .row { gap: 8px; }
  table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  input, select, textarea { font-size: 15px; }
  .sheet { max-width: 96vw; max-height: 90vh; }
  .authbox { margin: 4vh auto; }
  .agent-panel { width: calc(100vw - 24px); right: 12px; }
}

/* ★P1(2026-08-08):广场分类框 hover/active 三态感 */
.mcat { transition: border-color .15s, background .15s, transform .1s; }
.mcat:hover { border-color: var(--accent); background: rgba(var(--accent-rgb),.06); }
.mcat:active { transform: translateY(1px); }
