  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    background: #F4F4F1;
    color: #1F1F1E;
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    padding: 14px 20px 60px;
  }
  .wrap { max-width: 1760px; margin: 0 auto; }
  .wrap.dashwide { max-width: none; }   /* 看板模块激活时放开整宽（表格列多，窄了挤） */

  /* ===== 顶部工具条 ===== */
  .topbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 10px; }
  .topbar h1 { font-size: 18px; font-weight: 600; margin: 0; letter-spacing: 0; display: flex; align-items: center; white-space: nowrap; }
  .topbar h1 .lklogo { width: 24px; height: 24px; flex: 0 0 auto; margin-right: 7px; border-radius: 6px; box-shadow: 0 1px 3px rgba(21,75,134,.25); }
  .topbar .sub { font-size: 11.5px; color: #8A8A85; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .topbar button { padding: 5px 10px; white-space: nowrap; }
  .spacer { flex: 1; }
  button {
    font-family: inherit; font-size: 12px; cursor: pointer;
    border: 1px solid #D6D6D0; background: #fff; color: #3A3A38;
    padding: 6px 12px; border-radius: 7px; transition: .15s;
  }
  button:hover { border-color: #A8A8A0; background: #FAFAF7; }
  button.primary { background: #185FA5; border-color: #185FA5; color: #fff; }
  button.primary:hover { background: #134E87; }
  button.danger { color: #A32D2D; border-color: #E8CFCF; }
  button.danger:hover { background: #FCEBEB; border-color: #E24B4A; }

  /* ===== 指标卡 ===== */
  .metrics { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 9px; margin-bottom: 10px; }
  .metric { background: #fff; border: 1px solid #E6E6E0; border-radius: 10px; padding: 8px 13px; }
  .metric .k { font-size: 11.5px; color: #8A8A85; margin: 0 0 1px; white-space: nowrap; }
  .metric .v { font-size: 21px; font-weight: 600; margin: 0; line-height: 1.2; }
  .metric.warn { background: #FFFBF0; border-color: #E9D9AE; }
  .metric.hot  { background: #FDF3F3; border-color: #EFCFCF; }

  /* ===== 图表区 ===== */
  .charts { display: grid; grid-template-columns: 232px minmax(300px,1fr) 400px 250px; gap: 10px; margin-bottom: 10px; }
  .chartcard { background: #fff; border: 1px solid #E6E6E0; border-radius: 10px; padding: 9px 12px 6px; display: flex; flex-direction: column; }
  .chartcard .ct { font-size: 12.5px; font-weight: 600; color: #3A3A38; display: flex; align-items: center; gap: 6px; }
  .chartcard .ct .tag { font-size: 10.5px; font-weight: 400; color: #A8A8A0; margin-left: auto; }
  .chartcard .cbody { flex: 1; min-height: 152px; }
  .chartnote { font-size: 11px; color: #A8A8A0; padding: 2px 0 4px; }
  .legend { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 11.5px; color: #6A6A66; padding: 0 2px 8px; }
  .legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
  .warnbar {
    background: #FAEEDA; border: 1px solid #EFC07A; color: #854F0B; font-size: 12px;
    padding: 6px 12px; border-radius: 8px; margin-bottom: 9px; display: none;
  }
  .warnbar.on { display: block; }

  /* ===== 分类栏 ===== */
  .chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #E6E6E0; max-height: 122px; overflow-y: auto; }
  .chip {
    font-size: 12.5px; padding: 5px 13px; border-radius: 999px; cursor: pointer;
    border: 1px solid #DCDCD6; background: #fff; color: #4A4A47; user-select: none; transition: .15s;
  }
  .chip:hover { border-color: #A8A8A0; }
  .chip.on { background: #185FA5; border-color: #185FA5; color: #fff; }
  .chip.star { border-color: #E9D9AE; background: #FFFBF0; color: #854F0B; }
  .chip.star.on { background: #B8860B; border-color: #B8860B; color: #fff; }
  .chip.donechip { border-color: #CFE0BE; background: #F6FAF0; color: #3B6D11; }
  .chip.donechip.on { background: #639922; border-color: #639922; color: #fff; }
  .chip .n { opacity: .65; margin-left: 5px; font-size: 11.5px; }
  .chip.addcat { border-style: dashed; color: #8A8A85; background: #FAFAF7; }
  .chip.addcat:hover { color: #185FA5; border-color: #185FA5; background: #fff; }
  .chip.editing { background: #fff; border-color: #185FA5; color: #185FA5; cursor: default; }
  .chip .catin { border: 0; outline: 0; background: transparent; font: inherit; color: inherit; width: 92px; }
  .chip .catin::placeholder { color: #B0B0A8; }
  .catchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; max-height: 72px; overflow-y: auto; }
  .catchips .ctag { font-size: 11.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid #E2E2DC; background: #FAFAF7; color: #5A5A56; cursor: pointer; user-select: none; }
  .catchips .ctag:hover { border-color: #A8A8A0; }
  .catchips .ctag.on { background: #185FA5; border-color: #185FA5; color: #fff; }
  .catchips .ctag.add { border-style: dashed; color: #8A8A85; }
  .catchips input.catnew { font-size: 11.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid #185FA5; outline: 0; width: 124px; font-family: inherit; }

  /* ===== 卡片网格（重点区，一屏） ===== */
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 10px; align-content: start; }
  .card {
    background: #fff; border: 1px solid #E6E6E0; border-left: 4px solid #CCC;
    border-radius: 9px; padding: 9px 12px 8px; cursor: pointer;
    display: flex; flex-direction: column; gap: 5px; min-height: 106px; transition: .15s; position: relative;
  }
  .card:hover { border-color: #A8A8A0; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
  .card.star { box-shadow: 0 0 0 2px #E9B949; border-color: #E9B949; background: #FFFDF7; }
  .card.star:hover { box-shadow: 0 0 0 2px #D9A62E, 0 2px 8px rgba(0,0,0,.08); }
  .card.soon { background: #FFFAEC; }
  .card.over { background: #FDF3F3; }
  .card .r1 { display: flex; align-items: center; gap: 6px; }
  .card .id { font-size: 11.5px; font-weight: 600; color: #6A6A66; letter-spacing: .3px; }
  .card .cat { font-size: 11px; color: #8A8A85; background: #F2F2EE; padding: 1px 7px; border-radius: 5px; }
  .card .star-btn { font-size: 16px; line-height: 1; color: #C2C2B8; cursor: pointer; padding: 0 2px; user-select: none; transition: transform .12s, color .12s; }
  .card .star-btn.on { color: #E9B949; text-shadow: 0 0 6px rgba(233,185,73,.45); }
  .card .star-btn:hover { color: #E9B949; transform: scale(1.25); }
  .card .mk { font-size: 10.5px; color: #6A6A66; background: #F2F2EE; border-radius: 4px; padding: 0 5px; white-space: nowrap; }
  .card .mk.att { background: #EEF4FB; color: #185FA5; }
  .card .due { margin-left: auto; font-size: 11.5px; color: #8A8A85; white-space: nowrap; }
  .card .due.soon { color: #854F0B; font-weight: 700; }
  .card .due.over { color: #A32D2D; font-weight: 700; }
  .card .title { font-size: 13px; line-height: 1.45; color: #1F1F1E; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .card .r3 { display: flex; align-items: center; gap: 6px; }
  .badge { font-size: 11px; padding: 2px 9px; border-radius: 999px; font-weight: 600; }
  .badge.clickable { cursor: pointer; transition: .12s; user-select: none; }
  .badge.clickable:hover { filter: brightness(.92); box-shadow: 0 0 0 2px rgba(0,0,0,.06); }
  /* 卡片状态快捷菜单 */
  #stmenu { position: fixed; z-index: 400; display: none; min-width: 128px; background: #fff; border: 1px solid #DDD9CF;
    border-radius: 8px; box-shadow: 0 6px 22px rgba(40,40,30,.18); padding: 4px; }
  #stmenu .stm { display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 5px; font-size: 12px; cursor: pointer; color: #333; }
  #stmenu .stm:hover { background: #F4F1E8; }
  #stmenu .stm.cur { background: #F0F7FD; color: #185FA5; font-weight: 700; cursor: default; }
  #stmenu .stm i { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
  /* 最近 7 天 ＆ 重点关注 面板 */
  .agenda { background: #FCFBF6; border: 1px solid #ECE8DC; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
  .agenda .aghead { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
  .agenda .aghead b { font-size: 13px; color: #4A4A44; }
  .agenda .aghead .hint { font-size: 11px; color: #A8A8A0; }
  .agenda .aglist { max-height: 232px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
  .agenda .agrow { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 5px 9px; border-radius: 7px;
    background: #fff; border: 1px solid #EFEBE0; cursor: pointer; }
  .agenda .agrow:hover { background: #F7F5EE; }
  .agenda .agrow .agid { color: #B0B0A8; font-size: 10.5px; flex: 0 0 auto; font-weight: 600; }
  .agenda .agrow .agtitle { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #333; }
  .agenda .agrow .agdue { flex: 0 0 auto; font-size: 11px; color: #8A8A85; }
  .agenda .agrow .agdue.over { color: #A32D2D; font-weight: 700; }
  .agenda .agrow .agdue.soon { color: #854F0B; font-weight: 700; }
  .agenda .agrow.star { background: #FDF8E8; border: 1px solid #EBD79A; box-shadow: inset 3px 0 0 #E9B949; }
  .agenda .agrow.star .agtitle { font-weight: 700; color: #6B5A18; }
  .agenda .agrow.star .agstar { color: #E9B949; flex: 0 0 auto; }
  .agenda .agrow.isover { box-shadow: inset 3px 0 0 #E24B4A; }
  .agenda .agrow.isover .agtitle { color: #8F2B2B; }
  .agenda .agsep { font-size: 11px; color: #A8A8A0; margin: 4px 0 1px; font-weight: 700; letter-spacing: .5px; }
  .agenda .empty { font-size: 12px; color: #A8A8A0; padding: 6px 2px; }
  .card .flag { font-size: 11px; color: #8A8A85; margin-left: 4px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .card .dts { font-size: 10.5px; color: #B0B0A8; letter-spacing: .2px; }
  .card .dts .ok { color: #3B6D11; font-weight: 600; }
  /* 卡片进度条（可拖滑块） */
  .pbarwrap { display: flex; align-items: center; gap: 7px; margin: 8px 0 2px; }
  .pnum { flex: 0 0 auto; width: 36px; text-align: right; font-size: 10.5px; font-weight: 600; color: #185FA5; }
  /* 卡片进度滑块：--p 由 JS 同步为当前值，轨道左侧显示填充色 */
  input[type="range"].cprog { -webkit-appearance: none; appearance: none; flex: 1 1 auto; min-width: 0; height: 16px; background: transparent; cursor: pointer; --p: 0%; }
  input[type="range"].cprog::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, #4A9BF5, #185FA5 var(--p), #ECECE6 var(--p)); }
  input[type="range"].cprog::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #185FA5; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(24,95,165,.4); margin-top: -3px; }
  input[type="range"].cprog::-moz-range-track { height: 6px; border-radius: 999px; background: #ECECE6; }
  input[type="range"].cprog::-moz-range-progress { height: 6px; border-radius: 999px; background: linear-gradient(90deg, #4A9BF5, #185FA5); }
  input[type="range"].cprog::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #185FA5; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(24,95,165,.4); }
  /* 弹窗进度滑块 */
  input[type="range"]#fProg { -webkit-appearance: none; appearance: none; height: 22px; background: transparent; cursor: pointer; --p: 0%; }
  input[type="range"]#fProg::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, #4A9BF5, #185FA5 var(--p), #ECECE6 var(--p)); }
  input[type="range"]#fProg::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #185FA5; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(24,95,165,.45); margin-top: -5px; }
  input[type="range"]#fProg::-moz-range-track { height: 6px; border-radius: 999px; background: #ECECE6; }
  input[type="range"]#fProg::-moz-range-progress { height: 6px; border-radius: 999px; background: linear-gradient(90deg, #4A9BF5, #185FA5); }
  input[type="range"]#fProg::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #185FA5; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(24,95,165,.45); }
  /* 批量导入待办（按模板） */
  .impdrop { border: 1.5px dashed #C9C9C1; border-radius: 10px; background: #FAFAF7; padding: 18px 12px; text-align: center; font-size: 12.5px; color: #6A6A66; cursor: pointer; transition: .15s; }
  .impdrop:hover { border-color: #85B7EB; background: #F4F9FF; }
  .impdrop.on { border-color: #185FA5; background: #E6F1FB; color: #185FA5; }
  .imptbl { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 11.5px; table-layout: fixed; }
  .imptbl th { text-align: left; font-weight: 600; color: #8A8A85; padding: 3px 6px; border-bottom: 1px solid #E8E8E2; white-space: nowrap; }
  .imptbl td { padding: 3px 6px; border-bottom: 1px solid #F1F1EC; color: #3A3A38; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .imptbl th:first-child, .imptbl td:first-child { width: 38%; }
  .imptbl td.impt1 { font-weight: 600; }
  .impwarn { margin-top: 8px; padding: 7px 9px; border-radius: 8px; background: #FAEEDA; color: #854F0B; font-size: 11.5px; line-height: 1.6; }
  /* 卡片上直接打勾完成（勾选框样式，不带文字；卡片和议程面板通用） */
  .done-btn {
    flex: 0 0 auto; width: 17px; height: 17px; border-radius: 4px; cursor: pointer;
    border: 1.5px solid #B9CBA8; background: #fff; transition: .15s;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .card .done-btn::before { content: '✓'; font-size: 12px; font-weight: 700; line-height: 1; color: transparent; transition: .15s; }
  .card .done-btn:hover { background: #639922; border-color: #639922; }
  .card .done-btn:hover::before { color: #fff; }
  .card.donecard { background: #F6FAF0; border-left-color: #639922; }
  .card.donecard .title { color: #6A6A66; }

  /* ===== 下方信息区 ===== */
  .section { margin-top: 26px; }
  .section h2 { font-size: 14px; font-weight: 600; margin: 0 0 10px; color: #3A3A38; display: flex; align-items: center; gap: 8px; }
  .section h2 .line { flex: 1; height: 1px; background: #E6E6E0; }
  .panel { background: #fff; border: 1px solid #E6E6E0; border-radius: 10px; padding: 12px 16px; }
  .arow { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid #F0F0EB; font-size: 12.5px; }
  .arow:first-child { border-top: 0; }
  .arow .aid { font-size: 11.5px; color: #6A6A66; font-weight: 600; min-width: 52px; }
  .arow .atitle { flex: 1; color: #4A4A47; }
  .arow .adate { font-size: 11.5px; color: #8A8A85; white-space: nowrap; }
  .logline { font-size: 12.5px; color: #6A6A66; padding: 4px 0; line-height: 1.7; }
  .empty { font-size: 12.5px; color: #A8A8A0; padding: 18px; text-align: center; }

  /* ===== 视图切换 & 日历视图 ===== */
  .viewbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
  .vtab { font-size: 12.5px; padding: 5px 16px; border-radius: 999px; border: 1px solid #DCDCD6; background: #fff; color: #4A4A47; cursor: grab; user-select: none; transition: .15s; }
  .vtab:active { cursor: grabbing; }
  .vtab.vdragging { opacity: .45; }
  .vtab:hover { border-color: #A8A8A0; }
  .vtab.on { background: #185FA5; border-color: #185FA5; color: #fff; font-weight: 600; }
  .cal { display: none; background: #fff; border: 1px solid #E6E6E0; border-radius: 10px; padding: 10px 12px 12px; }
  .cal.on { display: block; }
  .cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
  .cal-title { font-size: 14.5px; font-weight: 600; margin-left: 4px; }
  .cal-wrap { display: flex; gap: 10px; align-items: stretch; }
  .cal-wrap .cal-grid { flex: 1; min-width: 0; }
  .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid #EDEDE8; border-left: 1px solid #EDEDE8; }
  .cal-dow { background: #FAFAF7; font-size: 11.5px; color: #8A8A85; text-align: center; padding: 4px 0; border-right: 1px solid #EDEDE8; border-bottom: 1px solid #EDEDE8; }
  .cal-cell { min-height: 88px; padding: 3px 5px 4px; border-right: 1px solid #EDEDE8; border-bottom: 1px solid #EDEDE8; cursor: pointer; overflow: hidden; }
  .cal-cell:hover { background: #FAFCFF; }
  .cal-cell.out { background: #FBFBF9; }
  .cal-cell.out .dnum { color: #C6C6BE; }
  .cal-cell.today { background: #F0F7FE; }
  .cal-cell .dnum { display: inline-block; font-size: 11.5px; font-weight: 600; color: #4A4A47; line-height: 1; padding: 2px 6px; border-radius: 999px; }
  .cal-cell.today .dnum { background: #185FA5; color: #fff; }
  .cal-cell.hasover .dnum { color: #A32D2D; }
  .cal-cell.today.hasover .dnum { color: #fff; }
  .cal-cell .dnum { cursor: pointer; }
  .cal-cell .dnum:hover { background: #E4F0FB; }
  .cal-cell.today .dnum:hover { background: #124B84; }
  .cal-item { font-size: 11px; line-height: 1.45; padding: 1px 6px; border-radius: 4px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
  .cal-item.done { text-decoration: line-through; opacity: .72; }
  .cal-cell .cnt { font-size: 10px; color: #A0A099; margin-left: 3px; }
  .cal-more { font-size: 10.5px; color: #185FA5; margin-top: 2px; cursor: pointer; }
  .cal-more:hover { text-decoration: underline; }
  .qbtn.on { background: #185FA5; border-color: #185FA5; color: #fff; font-weight: 600; }
  /* 待分配池：常驻侧栏列表 */
  .cal-unsched { width: 218px; flex: none; display: flex; flex-direction: column; gap: 6px; padding: 9px 10px; background: #FBFBF8; border: 1px dashed #DCDCD6; border-radius: 10px; max-height: none; overflow: hidden; }
  .cal-unsched.dropok { border-color: #185FA5; background: #EDF5FC; box-shadow: inset 0 0 0 1px #185FA5; }
  .cal-unsched .uhead { font-size: 12.5px; font-weight: 700; color: #33332F; }
  .cal-unsched .ucnt { display: inline-block; min-width: 17px; text-align: center; font-size: 11px; background: #185FA5; color: #fff; border-radius: 999px; padding: 1px 5px; margin-left: 3px; }
  .cal-unsched .uhint { font-size: 10.5px; color: #A0A099; line-height: 1.5; margin-top: -2px; }
  .cal-unsched .ulist { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 4px; min-height: 0; }
  .uitem { display: flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 5px 8px; border-radius: 7px; background: #fff; color: #4A4A47; cursor: grab; border: 1px solid #E6E6E0; white-space: normal; line-height: 1.4; }
  .uitem:hover { border-color: #185FA5; background: #F7FBFF; }
  .uitem:active { cursor: grabbing; }
  .uitem .uid { color: #A0A099; flex: none; }
  .uitem .utitle { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .uitem .ust { flex: none; font-size: 10px; color: #A0A099; }
  .cal-unsched .uempty { font-size: 11px; color: #A8A8A0; line-height: 1.7; padding: 14px 6px; text-align: center; }
  .cal-cell.dropok { outline: 2px solid #185FA5; outline-offset: -2px; background: #EDF5FC !important; }

  /* ===== 工作台设置弹层 ===== */
  .setform { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }
  .setform > label { font-size: 12px; color: #4A4A47; font-weight: 600; margin-top: 6px; }
  .setform > label .hint { font-weight: 400; color: #A8A8A0; }
  .setform input[type="text"], .setform input:not([type]) { border: 1px solid #DCDCD6; border-radius: 7px; padding: 7px 10px; font-size: 13px; font-family: inherit; width: 100%; box-sizing: border-box; }
  .setform input:focus { outline: none; border-color: #185FA5; }
  .setmods { display: flex; flex-direction: column; gap: 5px; padding: 9px 10px; background: #FAFAF7; border: 1px solid #EDEDE8; border-radius: 8px; }
  .setmods label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #4A4A47; font-weight: 400 !important; margin: 0 !important; cursor: pointer; }
  .setmods input { accent-color: #185FA5; width: auto; }
  .setmods label:has(input:disabled) { color: #B0B0A8; cursor: not-allowed; }
  .setmods .moddel { margin-left: auto; font-size: 11px; color: #A04030; background: #FDF3F1; border: 1px solid #E8C8C2; border-radius: 6px; padding: 2px 9px; cursor: pointer; }
  .setmods .moddel:hover { background: #F7E2DE; }
  .setmods .modadd { margin-left: auto; font-size: 11px; color: #185FA5; background: #EFF6FC; border: 1px solid #C9DEF0; border-radius: 6px; padding: 2px 9px; cursor: pointer; }
  .setmods .modadd:hover { background: #E0EDF8; }
  .setmods span.none { font-size: 11.5px; color: #A8A8A0; }
  .cmrow { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
  .cmrow input { flex: 1; border: 1px solid #DCDCD6; border-radius: 7px; padding: 6px 9px; font-size: 13px; font-family: inherit; min-width: 0; }
  .cmrow input:focus { outline: none; border-color: #185FA5; }
  /* 安全日志：顶栏红点 + 记录列表 */
  .reddot { position: absolute; top: -4px; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 2px #fff; }
  .secwarn { background: #FBE9E9; border: 1px solid #F0C9C9; color: #A32D2D; border-radius: 8px; padding: 9px 11px; font-size: 12.5px; line-height: 1.6; }
  .secok { background: #EFF6FC; border: 1px solid #C9DEF0; color: #185FA5; border-radius: 8px; padding: 9px 11px; font-size: 12.5px; line-height: 1.6; }
  .secline { display: flex; align-items: baseline; gap: 10px; padding: 6px 8px; border-bottom: 1px dashed #ECECE6; font-size: 12.5px; color: #4A4A47; }
  .secline:last-child { border-bottom: 0; }
  .secbadge { display: inline-block; min-width: 62px; text-align: center; border-radius: 999px; padding: 1px 8px; font-size: 11.5px; flex: none; }
  .secbadge.ok { background: #E8F1FB; color: #1B5AA8; }
  .secbadge.fail { background: #FBE9E9; color: #A32D2D; }
  .secbadge.locked { background: #F6EEDC; color: #8A6A1F; }
  .secmeta { color: #8A8A85; font-size: 12px; flex: none; }
  /* 在线设备行的操作按钮 */
  .devbtn { flex: none; font-size: 11.5px; padding: 2px 10px; border-radius: 999px; border: 1px solid #D8D8D2; background: #fff; color: #4A4A47; cursor: pointer; }
  .devbtn:hover { border-color: #185FA5; color: #185FA5; }
  .devbtn.devwarn:hover { border-color: #A32D2D; color: #A32D2D; }
  .devbtn:disabled { opacity: .45; cursor: not-allowed; }
  .secline .secbadge { align-self: center; }
  .secline button { align-self: center; }
  .cmrow .cmn { flex: none; font-size: 11px; color: #A8A8A0; min-width: 34px; text-align: right; }
  .cmrow button { flex: none; font-size: 12px; padding: 5px 10px; }
  .cmrow .cmdel { color: #B4322C; border-color: #E4B6B2; }
  .cmrow .cmdel:hover { background: #FBEDEC; }
  .cal-item[draggable="true"], .uitem[draggable="true"] { -webkit-user-drag: element; }
  .daylist { max-height: 58vh; overflow: auto; }
  .dayrow { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-bottom: 1px solid #F2F2ED; cursor: pointer; }
  .dayrow:hover { background: #FAFCFF; }
  .dayrow .did { font-size: 11.5px; color: #A0A099; flex: 0 0 auto; }
  .dayrow .dttl { font-size: 13px; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dayrow .ddot { font-size: 11px; color: #A0A099; flex: 0 0 auto; }
  .dayrow .dbd { font-size: 11px; padding: 1px 8px; border-radius: 999px; flex: 0 0 auto; }

  /* ===== 弹层 ===== */
  .mask { position: fixed; inset: 0; background: rgba(30,30,28,.35); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
  .mask.on { display: flex; }
  /* ===== 悬浮新建待办按钮（所有模块常驻右下角） ===== */
  .fab { position: fixed; right: 30px; bottom: 34px; width: 58px; height: 58px; border-radius: 50%;
         background: #185FA5; border: none; color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
         box-shadow: 0 4px 14px rgba(24,95,165,.38); z-index: 40; display: flex; align-items: center; justify-content: center;
         transition: transform .15s, background .15s, box-shadow .15s; padding: 0; }
  .fab:hover { background: #124A82; transform: scale(1.07); box-shadow: 0 6px 18px rgba(24,95,165,.5); }
  .fab:active { transform: scale(.96); }
  .fab .fabtip { position: absolute; right: 68px; white-space: nowrap; background: #2B2B28; color: #fff; font-size: 12px;
         padding: 4px 9px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .15s; font-size: 12.5px; }
  .fab:hover .fabtip { opacity: 1; }
  .modal { background: #fff; border-radius: 13px; width: 680px; max-width: 100%; max-height: 92vh; overflow: auto; padding: 18px 22px; }
  .modal h3 { font-size: 15px; font-weight: 600; margin: 0 0 14px; }
  .field { margin-bottom: 12px; }
  .field label { display: block; font-size: 12px; color: #8A8A85; margin-bottom: 5px; }
  .field input[type=text], .field input[type=date], .field textarea, .field select {
    width: 100%; font-family: inherit; font-size: 13px; color: #1F1F1E;
    border: 1px solid #DCDCD6; border-radius: 8px; padding: 7px 10px; background: #fff;
  }
  .field textarea { resize: vertical; min-height: 56px; line-height: 1.6; }
  .field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: #378ADD; }
  .stbtns { display: flex; gap: 7px; flex-wrap: wrap; }
  .stbtn { font-size: 12.5px; padding: 5px 13px; border-radius: 999px; border: 1px solid #DCDCD6; background: #fff; color: #4A4A47; cursor: pointer; transition: .15s; }
  .stbtn:hover { border-color: #A8A8A0; }
  .stbtn.on { color: #fff; border-color: transparent; font-weight: 600; }
  .stbtn.star-on { background: #B8860B !important; }
  .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .ro { font-size: 13px; color: #4A4A47; background: #F7F7F4; border: 1px solid #EAEAE4; border-radius: 8px; padding: 7px 10px; }
  .ro.auto { color: #185FA5; }
  .ro .hi { font-size: 11px; color: #A8A8A0; margin-left: 6px; }
  .quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
  .qbtn { font-size: 11.5px; padding: 3px 10px; border-radius: 6px; border: 1px solid #E2E2DC; background: #FAFAF7; color: #6A6A66; cursor: pointer; user-select: none; }
  .qbtn:hover { border-color: #B8B8B0; color: #3A3A38; background: #fff; }

  /* ===== 详情说明编辑器 ===== */
  .editor {
    width: 100%; min-height: 98px; max-height: 340px; overflow: auto;
    font-family: inherit; font-size: 13px; line-height: 1.65; color: #1F1F1E;
    border: 1px solid #DCDCD6; border-radius: 8px; padding: 8px 10px; background: #fff;
  }
  .editor:focus { outline: none; border-color: #378ADD; }
  .editor:empty:before { content: attr(data-ph); color: #B0B0A8; }
  .editor p, .editor div { margin: 0 0 4px; }
  .editor img { max-width: 100%; border-radius: 6px; border: 1px solid #E6E6E0; margin: 5px 0; display: block; }
  .editor a { color: #185FA5; word-break: break-all; }
  .editor code { background: #F4F4F1; padding: 0 4px; border-radius: 3px; }
  .edtools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; align-items: center; }

  /* ===== 附件 ===== */
  .atts { display: flex; flex-direction: column; gap: 5px; margin-bottom: 6px; }
  .atts:empty { display: none; }
  .att { display: flex; align-items: center; gap: 8px; font-size: 12px; background: #F7F7F4; border: 1px solid #EAEAE4; border-radius: 7px; padding: 4px 9px; }
  .att .an { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #3A3A38; }
  .att .as { color: #A8A8A0; font-size: 11px; white-space: nowrap; }
  .att .ad { cursor: pointer; color: #185FA5; font-size: 11.5px; user-select: none; }
  .att .ad:hover { text-decoration: underline; }
  .att .ax { cursor: pointer; color: #A8A8A0; padding: 0 3px; user-select: none; }
  .att .ax:hover { color: #A32D2D; }
  .attimg { width: 32px; height: 32px; object-fit: cover; border-radius: 5px; border: 1px solid #E6E6E0; }

  .modal-foot { display: flex; gap: 10px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid #F0F0EB; }
  /* 编辑弹层：标题+操作按钮吸顶，内容长时往下滚按钮也不消失 */
  .mhead {
    position: sticky; top: -18px; z-index: 5;
    display: flex; gap: 10px; align-items: center;
    margin: -18px -22px 14px; padding: 14px 22px 12px;
    background: #fff; border-bottom: 1px solid #F0F0EB;
  }
  .mhead h3 { margin: 0; }
  .mhead .hint { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hint { font-size: 11.5px; color: #A8A8A0; }

  .toast {
    position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%);
    background: #2C2C2A; color: #fff; font-size: 12.5px; padding: 9px 18px;
    border-radius: 999px; opacity: 0; pointer-events: none; transition: .25s; z-index: 99;
    display: flex; align-items: center; gap: 4px; max-width: 80vw;
  }
  .toast.on { opacity: 1; }
  .toast.act { pointer-events: auto; }
  .toast .undo {
    margin-left: 8px; padding: 2px 10px; border-radius: 999px; cursor: pointer;
    background: rgba(255,255,255,.18); color: #9BE3B8; font-weight: 600; white-space: nowrap;
  }
  .toast .undo:hover { background: rgba(255,255,255,.3); }
  .dirtybar { display: none; background: #FAEEDA; border: 1px solid #EFC07A; color: #854F0B; font-size: 12px; padding: 7px 12px; border-radius: 8px; margin-bottom: 10px; align-items: center; gap: 10px; }
  .dirtybar.on { display: flex; }

  /* ===== 保存状态徽标 ===== */
  .savestat {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; line-height: 1; padding: 5px 9px; border-radius: 999px;
    border: 1px solid #E2E2DC; background: #FAFAF7; color: #8A8A85;
    white-space: nowrap; max-width: 520px; overflow: hidden; text-overflow: ellipsis;
  }
  .savestat i { width: 7px; height: 7px; border-radius: 50%; background: #C6C6BE; flex: 0 0 auto; }
  .savestat.busy { border-color: #E9D9AE; background: #FFFBF0; color: #8A6A20; }
  .savestat.busy i { background: #DFA32A; }
  .savestat.on { border-color: #CFE3CF; background: #F3FAF3; color: #3F7A45; }
  .savestat.on i { background: #4E9E56; }
  .savestat.err { border-color: #EFCFCF; background: #FDF3F3; color: #A32D2D; }
  .savestat.err i { background: #E24B4A; }
  .savestat.off { border-color: #E9D9AE; background: #FFFBF0; color: #854F0B; }
  .savestat.off i { background: #EF9F27; }

  /* ===== 拖拽排序 ===== */
  .card .grip {
    flex: 0 0 auto; font-size: 12px; line-height: 1; color: #DCDCD4;
    cursor: grab; user-select: none; padding: 0 1px; letter-spacing: -1px;
  }
  .card:hover .grip { color: #9A9A92; }
  .card .grip:active { cursor: grabbing; }
  .card.dragging { opacity: .38; }
  .card.drophere { box-shadow: 0 0 0 2px #378ADD; border-color: #378ADD; }
  .sortbar { display: flex; align-items: center; gap: 7px; margin-left: 10px; flex-wrap: wrap; }
  .sortbar .sbsep { width: 1px; height: 18px; background: #E6E6E0; margin: 0 4px; }

  /* ===== 快速链接 ===== */
  .qlbar { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; background: #fff; border: 1px solid #E6E6E0; border-radius: 10px; padding: 9px 13px 10px; margin-bottom: 10px; }
  .qlbar .qlt { flex: 0 0 auto; font-size: 11.5px; font-weight: 600; color: #6A6A66; letter-spacing: .3px; padding-top: 3px; }
  .qlgroup { position: relative; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 24px; }
  .qlgroup .qlcat { flex: 0 0 auto; font-size: 11.5px; color: #8A8A85; background: #F4F4EF; border-radius: 999px; padding: 3px 9px; }
  .qlitems { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .qlink { display: inline-flex; align-items: center; gap: 4px; background: #F7FAF2; border: 1px solid #DDE8CE; border-radius: 999px; padding: 2px 4px 2px 10px; font-size: 12px; }
  .qlink a { color: #2E6BB0; text-decoration: none; font-weight: 500; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .qlink a:hover { text-decoration: underline; }
  .qlink .qldel { width: 16px; height: 16px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #B8B8B0; cursor: pointer; line-height: 1; }
  .qlink .qldel:hover { background: #E24B4A; color: #fff; }
  .qlempty { font-size: 11.5px; color: #B8B8B0; }
  .qladd { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 1px dashed #C2C2B8; color: #8A8A85; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; line-height: 1; }
  .qladd:hover { border-color: #378ADD; color: #378ADD; background: #F0F7FD; }
  .qlmore { display: inline-flex; align-items: center; gap: 3px; background: #F4F4EF; border: 1px solid #E2E2DA; border-radius: 999px; padding: 3px 9px; font-size: 11.5px; color: #6A6A64; cursor: pointer; }
  .qlmore:hover { border-color: #378ADD; color: #378ADD; background: #F0F7FD; }
  .qldrop { position: absolute; top: 28px; z-index: 60; background: #FFFFFF; border: 1px solid #E2E2DA; border-radius: 8px; box-shadow: 0 6px 18px rgba(60,60,50,.14); padding: 5px; min-width: 210px; max-height: 260px; overflow: auto; display: none; }
  .qldrop.on { display: block; }
  .qldrop .qdrow { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 5px; }
  .qldrop .qdrow:hover { background: #F4F8FC; }
  .qldrop .qdrow a { flex: 1 1 auto; color: #2E6BB0; text-decoration: none; font-size: 12px; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .qldrop .qdrow a:hover { text-decoration: underline; }
  .qldrop .qdrow .qldel { width: 16px; height: 16px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #B8B8B0; cursor: pointer; line-height: 1; flex: 0 0 auto; }
  .qldrop .qdrow .qldel:hover { background: #E24B4A; color: #fff; }
  /* 分配记录表头排序 */
  .akth { cursor: pointer; user-select: none; white-space: nowrap; }
  .akth:hover { color: #2E6BB0; }
  .qlform { display: flex; align-items: center; gap: 6px; flex-basis: 100%; margin-top: 6px; }
  .qlform input { flex: 0 1 200px; font-size: 12px; padding: 4px 8px; border: 1px solid #DDD; border-radius: 6px; }
  .qlform input:focus { outline: none; border-color: #378ADD; }

  /* ===== 模块切换 ===== */
  .modulebar { display: flex; align-items: center; gap: 4px; background: #fff; border: 1px solid #E6E6E0; border-radius: 10px; padding: 5px 8px; margin-bottom: 10px; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .modulebar::-webkit-scrollbar { height: 5px; }
  .modulebar::-webkit-scrollbar-thumb { background: #D7D7D0; border-radius: 4px; }
  .modulebar .mtab { flex: 0 0 auto; white-space: nowrap; font-size: 13px; font-weight: 600; color: #6A6A66; padding: 7px 18px; border-radius: 8px; cursor: pointer; letter-spacing: .3px; }
  .modulebar .mtab:hover { background: #F4F4EF; }
  .modulebar .mtab.on { background: #185FA5; color: #fff; }
  .modulebar .msub { font-size: 11px; font-weight: 400; opacity: .85; margin-left: 5px; }

  /* ===== 会议室管理 ===== */
  .rooms { display: none; }
  .rooms.on { display: block; }
  .roombar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
  .rooms-wrap { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
  /* 会议室基础资料：默认收起，点标题展开 */
  .roombase h2 { cursor: pointer; }
  .roombase h2 .coltip { margin-left: auto; font-size: 11px; font-weight: 600; color: #185FA5; background: #EFF6FC; border: 1px solid #D5E6F4; border-radius: 6px; padding: 2px 9px; white-space: nowrap; }
  .roombase.closed .roomgrid { display: none; }
  .roombase.closed { padding-bottom: 6px; }
  .roombase.closed h2 { margin-bottom: 0; }
  /* 分配记录：日期范围筛选 + 表内滚动（吸顶表头），页面长度不随记录数变长 */
  .allocfilter { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
  .allocfilter input[type="date"] { font-size: 12px; padding: 3px 6px; }
  .allocscroll { max-height: calc(100vh - 280px); min-height: 180px; overflow: auto; border: 1px solid #E6E6E0; border-radius: 9px; background: #fff; }
  .allocscroll .atable { border: none; border-radius: 0; font-size: 14px; }
  .allocscroll thead th { position: sticky; top: 0; z-index: 2; box-shadow: inset 0 -1px 0 #E6E6E0; }
  .allocscroll td { white-space: nowrap; }
  .allocscroll .atable input.anote { width: 100%; min-width: 120px; font-size: 13px; padding: 3px 6px; border: 1px solid #E2E2DB; border-radius: 6px; background: #fff; box-sizing: border-box; }
  .allocscroll .atable input.anote:focus { border-color: #378ADD; outline: none; }
  .allocscroll .atable input.anote::placeholder { color: #C4C4BC; }
  /* 长文本单行省略（悬停 title 看全文），保证行高一致、方便截图 */
  .ellip { display: inline-block; max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
  /* 会议室缩略图列：点缩略图看大图 */
  .cimg { width: 76px; }
  .rthumb { width: 68px; height: 46px; object-fit: cover; border-radius: 6px; border: 1px solid #E6E6E0; display: block; cursor: zoom-in; background: #F4F4EF; }
  .rthumb.noimg { display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: default; }
  .roomgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; }
  .roomcard { background: #fff; border: 1px solid #E6E6E0; border-radius: 9px; padding: 6px 8px 7px; cursor: pointer; transition: .15s; position: relative; }
  .roomcard:hover { border-color: #378ADD; box-shadow: 0 1px 6px rgba(55,138,221,.18); }
  .roomcard .rimg { height: 56px; border-radius: 6px; background: #F4F4EF url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><text x="12" y="17" font-size="14" text-anchor="middle" fill="%23C0C0B8">🏢</text></svg>') center center no-repeat; background-size: 22px; margin-bottom: 5px; overflow: hidden; }
  .roomcard .rimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .roomcard .rcode { font-size: 10.5px; color: #8A8A85; letter-spacing: .4px; }
  .roomcard .rname { font-size: 12.5px; font-weight: 600; color: #1F1F1E; margin: 1px 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .roomcard .rcap { font-size: 10.5px; color: #6A6A66; }
  .roomcard .rdel { position: absolute; top: 4px; right: 5px; width: 17px; height: 17px; border-radius: 50%; background: rgba(255,255,255,.85); color: #B8B8B0; font-size: 11px; display: flex; align-items: center; justify-content: center; line-height: 1; }
  .roomcard .rdel:hover { background: #E24B4A; color: #fff; }
  .atable { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #E6E6E0; border-radius: 9px; overflow: hidden; font-size: 12px; }
  .atable th { background: #F4F4EF; color: #6A6A66; font-weight: 600; text-align: left; padding: 6px 9px; white-space: nowrap; }
  .atable td { padding: 6px 9px; border-top: 1px solid #F0F0EB; color: #1F1F1E; }
  .atable tr:hover td { background: #FAFBF7; }
  .atable .tdel { color: #B8B8B0; cursor: pointer; font-size: 12px; padding: 1px 6px; border-radius: 4px; }
  .atable .tdel:hover { background: #E24B4A; color: #fff; }
  .atable .rroom { font-weight: 600; color: #185FA5; }
  .rtag { display: inline-block; background: #F0F7FD; color: #2E6BB0; border-radius: 4px; padding: 0 5px; font-size: 11px; }
  /* 快速分配 */
  .fastbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
  textarea.fastinput { width: 100%; box-sizing: border-box; min-height: 148px; font-family: Consolas, "Cascadia Mono", Menlo, monospace; font-size: 12.5px; line-height: 1.6; white-space: pre; tab-size: 4; background: #F7F7F2; border: 1px solid #E2E2DC; border-radius: 8px; padding: 8px 10px; outline: none; }
  textarea.fastinput:focus { border-color: #378ADD; }
  .fastsum { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; margin: 10px 0 8px; }
  .fastsum .fs { background: #F4F4EF; border-radius: 6px; padding: 2px 8px; color: #3A3A38; }
  .fastsum .fs b { font-weight: 600; }
  .fastsum .fs.ok { background: #E8F5EE; color: #0F6E56; }
  .fastsum .fs.loose { background: #FAEEDA; color: #854F0B; }
  .fastsum .fs.none { background: #FBE9E9; color: #A32D2D; }
  .fastpreview { max-height: 42vh; overflow: auto; border-radius: 9px; }
  .fastpreview table.atable { font-size: 13px; }
  .fastpreview tr.floose td { background: #FDF8EF; }
  .fastpreview tr.fnone td { background: #FDF3F3; }
  .fastpreview tr.fbad td { background: #FDF3F3; }
  .ftag { display: inline-block; border-radius: 4px; padding: 0 5px; font-size: 10.5px; white-space: nowrap; }
  .ftag.ok { background: #E8F5EE; color: #0F6E56; }
  .ftag.loose { background: #FAEEDA; color: #854F0B; }
  .ftag.none, .ftag.bad { background: #FBE9E9; color: #A32D2D; }
  .ftag.floor { background: #F0F7FD; color: #2E6BB0; }

  /* ===== 备忘录 ===== */
  .memos { display: none; }
  .memos.on { display: block; }
  .memobar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
  .memolist { display: flex; flex-direction: column; gap: 10px; }
  .memo { background: #fff; border: 1px solid #E6E6E0; border-left: 4px solid #E9D9AE; border-radius: 10px; padding: 10px 13px 11px; }
  .memo .memohead { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; }
  .memo .midt { font-size: 11.5px; font-weight: 600; color: #6A6A66; letter-spacing: .3px; }
  .memo .midtitle { font-size: 13px; font-weight: 600; color: #33332F; background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 2px 7px; width: 220px; max-width: 46vw; outline: none; }
  .memo .midtitle::placeholder { color: #BFBFB6; font-weight: 400; }
  .memo .midtitle:hover { border-color: #E6E6E0; }
  .memo .midtitle:focus { border-color: #9CC1E8; background: #fff; }
  .memo .mtime { font-size: 11px; color: #A8A8A0; }
  .memo .memobody { min-height: 76px; }

  /* ===== 工具语句库 ===== */
  .tools { display: none; }
  .tools.on { display: block; }

  /* ===== 图片素材库 ===== */
  .gallery { display: none; }
  .gallery.on { display: block; }

  /* ===== 思维导图 ===== */
  .mind { display: none; }
  .mind.on { display: block; }

  /* ===== 新人培训看板（独立 Python 服务，走 /dash/ 反代嵌入） ===== */
  .dashmod { display: none; }
  .dashmod.on { display: block; }
  .dashbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
  .dashframe { height: calc(100vh - 186px); min-height: 420px; border: 1px solid #E6E6E0; border-radius: 10px; overflow: hidden; background: #fff; }
  .dashframe iframe { display: block; width: 100%; height: 100%; border: 0; }
  .dashdown { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 100%; color: #6A6A66; font-size: 14px; text-align: center; padding: 20px; }

  /* 看板分享管理面板（嵌在 dash tab 内） */
  .sharepanel { background: #FAFAF7; border: 1px solid #E6E6E0; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
  .sharepanel .sp-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .sharepanel .sp-label { font-weight: 600; color: #4A4A46; }
  .sharepanel .sp-url { background: #fff; border: 1px solid #E0E0DA; border-radius: 6px; padding: 4px 8px; font-size: 12px; color: #2c6e49; word-break: break-all; max-width: 60%; }
  .sharepanel .sp-note { font-size: 12px; color: #8A8A82; margin: 8px 0; line-height: 1.6; }
  .sharepanel .sp-note.warn { color: #c0392b; }
  .sharepanel .sp-tbl { width: 100%; border-collapse: collapse; margin: 6px 0 12px; background: #fff; border: 1px solid #EDEDE8; border-radius: 8px; overflow: hidden; }
  .sharepanel .sp-tbl th, .sharepanel .sp-tbl td { text-align: left; padding: 7px 10px; border-bottom: 1px solid #F0F0EA; font-size: 13px; }
  .sharepanel .sp-tbl th { background: #F4F4EF; color: #6A6A66; font-weight: 600; }
  .sharepanel .sp-tbl code { background: #EEF6F0; color: #2c6e49; padding: 1px 6px; border-radius: 4px; font-size: 12px; }
  .sharepanel .sp-tbl button { font-size: 12px; padding: 3px 10px; margin-right: 6px; border-radius: 6px; border: 1px solid #cfcfc8; background: #fff; cursor: pointer; }
  .sharepanel .sp-tbl button:hover { background: #F2F2EC; }
  .sharepanel .sp-tbl button.warnbtn { color: #c0392b; border-color: #e8b4ad; }
  .sharepanel .sp-tbl button.warnbtn:hover { background: #fbeae8; }
  .sharepanel .sp-add { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
  .sharepanel .sp-add input { padding: 5px 8px; border: 1px solid #D9D9D2; border-radius: 6px; font-size: 13px; }
  .sharepanel .sp-add .primary { background: #2e7d32; color: #fff; border: 1px solid #2e7d32; padding: 5px 14px; border-radius: 6px; cursor: pointer; }
  .sharepanel .sp-msg { font-size: 12px; }
  .sharepanel .sp-log { margin-top: 4px; }
  .sharepanel .sp-log summary { cursor: pointer; color: #4A6FA5; font-size: 13px; padding: 4px 0; }
  .sharepanel .sp-logbox { max-height: 260px; overflow: auto; margin-top: 6px; }
  .dashdown .big { font-size: 15px; color: #33332F; }
  .dashdown .sub2 { font-size: 12.5px; color: #8A8A84; max-width: 460px; line-height: 1.7; }
  .mindbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
  .minds { display: flex; gap: 12px; height: calc(100vh - 196px); min-height: 360px; }
  .mindlist { flex: 0 0 222px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 4px; }
  .minditem { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #E6E6E0; border-radius: 9px; padding: 9px 11px; cursor: pointer; transition: box-shadow .15s, border-color .15s; }
  .minditem:hover { box-shadow: 0 2px 9px rgba(55,74,96,.12); }
  .minditem.on { border-color: #185FA5; box-shadow: inset 3px 0 0 #185FA5; }
  .minditem .mi-name { flex: 1; font-size: 13.5px; color: #33332F; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .minditem .mi-ops { display: none; gap: 6px; }
  .minditem:hover .mi-ops { display: flex; }
  .mindstage { flex: 1; min-width: 0; border: 1px solid #E6E6E0; border-radius: 10px; background: #fff; overflow: hidden; }
  .mindcanvas { width: 100%; height: 100%; position: relative;
    /* 思维导图配色：用 CSS 变量驱动，改色即时生效，新建节点也自动继承 */
    --mm-root-bg: #324A6D; --mm-root-fg: #FFFFFF;
    --mm-child-bg: #E9F1FB; --mm-child-fg: #1E2B45;
    --mm-line: #C3CEDC;
    background:
      radial-gradient(circle at 1px 1px, rgba(50,74,109,.09) 1px, transparent 0) 0 0 / 22px 22px,
      #F7F9FC;
  }
  .mindcanvas jmnode {
    border-radius: 9px;
    border: 1px solid rgba(50,74,109,.16);
    box-shadow: 0 1px 3px rgba(50,74,109,.16);
    font: 15px/1.3 -apple-system, "Microsoft YaHei", "PingFang SC", Verdana, Arial, sans-serif;
    padding: 8px 13px;
    /* 注意：这里不能用 !important —— 否则会压住 jsMind 在渲染时按 node.data['background-color']
       写出的「单节点自定义色」内联样式（内联打不过带 !important 的样式表规则）。
       去掉 !important 后：未单独着色的节点走主题色，已着色的节点内联色自然胜出。 */
    background-color: var(--mm-child-bg);
    color: var(--mm-child-fg);
    transition: box-shadow .12s, border-color .12s;
  }
  .mindcanvas jmnode.root {
    font-size: 22px; font-weight: 700;
    background-color: var(--mm-root-bg);
    color: var(--mm-root-fg);
    border-color: rgba(0,0,0,.10);
    box-shadow: 0 3px 10px rgba(50,74,109,.28);
  }
  .mindcanvas jmnode:hover { box-shadow: 0 3px 12px rgba(50,74,109,.30); }
  .mindcanvas jmnode.selected {
    background-color: #185FA5 !important;
    color: #fff !important;
    border-color: #0E3F73;
    box-shadow: 0 0 0 3px rgba(24,95,165,.26), 0 3px 12px rgba(24,95,165,.40);
  }
  .mindcanvas jmexpander {
    border-color: var(--mm-root-bg); color: var(--mm-root-bg);
    background: #fff; line-height: 9px;
  }
  .mindcanvas jmexpander:hover { background: var(--mm-child-bg); }
  /* 思维导图设置区控件 */
  .mindset { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  .mindset label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #5a5a52; }
  .mindset select { padding: 4px 7px; border: 1px solid #d8d8d0; border-radius: 6px; background: #fff; font-size: 12.5px; color: #33332F; }
  .mindset input[type=color] { width: 28px; height: 24px; padding: 0; border: 1px solid #d8d8d0; border-radius: 6px; background: #fff; cursor: pointer; }
  /* 选中节点单独着色 */
  .nodecolor { display: inline-flex; align-items: center; gap: 7px; padding-left: 14px; margin-left: 4px; border-left: 1px solid #e3e6ee; transition: opacity .15s; }
  .nodecolor.disabled { opacity: .38; pointer-events: none; }
  .nodecolor > label { font-size: 12.5px; color: #5a5a52; }
  .nodecolor .swatches { display: inline-flex; gap: 4px; }
  .nodecolor .sw { width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(0,0,0,.18); cursor: pointer; transition: transform .1s; }
  .nodecolor .sw:hover { transform: scale(1.16); }
  .nodecolor input[type=color] { width: 26px; height: 24px; padding: 0; border: 1px solid #d8d8d0; border-radius: 6px; background: #fff; cursor: pointer; }
  .nodecolor .qbtn { font-size: 12px; color: #2f6fb0; cursor: pointer; user-select: none; }
  /* 拖拽落点高亮 */
  .mindcanvas jmnode.mm-droptarget { outline: 2px dashed #4C8BF5 !important; outline-offset: 2px; }
  .galbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
  .galalbums { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
  .galcard { background: #fff; border: 1px solid #E6E6E0; border-radius: 10px; overflow: hidden; cursor: pointer; transition: box-shadow .15s; }
  .galcard:hover { box-shadow: 0 3px 12px rgba(55,74,96,.14); }
  .galcover { height: 130px; background: #F4F4EF center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: #C9C9C0; font-size: 30px; }
  .galmeta { padding: 9px 12px 10px; }
  .galname { font-size: 13.5px; font-weight: 600; color: #33332F; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .galcnt { font-size: 11px; color: #A0A098; margin-top: 2px; }
  .galops { display: flex; gap: 8px; margin-top: 7px; }
  .galops .qbtn { font-size: 11px; padding: 1px 8px; }
  .galopenbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
  .galopenbar .gtitle { font-size: 15px; font-weight: 700; color: #33332F; }
  .galq, .imgq { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: #8A8A85; }
  .galq select, .imgq select { border: 1px solid #DCDCD6; border-radius: 6px; padding: 3px 6px; font-size: 11.5px;
    font-family: inherit; color: #4A4A47; background: #fff; cursor: pointer; }
  .galq select:focus, .imgq select:focus { outline: none; border-color: #185FA5; }
  .galcols { column-count: 3; column-gap: 12px; }
  @media (max-width: 1100px) { .galcols { column-count: 2; } }
  @media (max-width: 700px) { .galcols { column-count: 1; } }
  .galcell { break-inside: avoid; margin-bottom: 12px; position: relative; cursor: zoom-in; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid #E6E6E0; }
  .galcell img { width: 100%; display: block; }
  .galcell .gdel { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.55); color: #fff; border-radius: 50%; width: 22px; height: 22px; line-height: 20px; text-align: center; font-size: 14px; display: none; }
  .galcell:hover .gdel { display: block; }
  .galcell .gdel:hover { background: #A32D2D; }
  .galcell .gname { position: absolute; left: 6px; bottom: 6px; display: none; max-width: calc(100% - 40px);
                    background: rgba(0,0,0,.55); color: #fff; border-radius: 6px; padding: 3px 9px; font-size: 11.5px;
                    cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .galcell:hover .gname { display: block; }
  .galcell .gname:hover { background: #185FA5; }

  /* ===== 大图预览（灯箱） ===== */
  .lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(18,20,24,.92); flex-direction: column; }
  .lightbox.on { display: flex; }
  .lbtop { display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: #E8E8E8; font-size: 12.5px; background: rgba(0,0,0,.35); }
  .lbtop button { background: rgba(255,255,255,.12); border: none; color: #E8E8E8; border-radius: 6px; padding: 4px 12px; cursor: pointer; font-size: 13px; }
  .lbtop button:hover { background: rgba(255,255,255,.26); }
  .lbtop #lbPct { min-width: 46px; text-align: center; }
  .lbstage { flex: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: grab; }
  .lbstage.dragging { cursor: grabbing; }
  .lbstage img { max-width: 92vw; max-height: 86vh; user-select: none; -webkit-user-drag: none; transform-origin: center center; }
  .toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
  .toolbar .dbfilter { display: flex; gap: 5px; flex-wrap: wrap; }
  .sniplist { display: grid; grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); gap: 10px; }
  @media (max-width: 940px) { .sniplist { grid-template-columns: 1fr; } }
  .snip { background: #fff; border: 1px solid #E6E6E0; border-radius: 10px; padding: 9px 11px 10px; display: flex; flex-direction: column; min-width: 0; }
  .snip:hover { border-color: #378ADD; box-shadow: 0 1px 6px rgba(55,138,221,.15); }
  .snip .shead { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; flex-wrap: wrap; }
  .snip .stitle { font-size: 13px; font-weight: 600; color: #1F1F1E; }
  .snip .sid { font-size: 11px; color: #A8A8A0; letter-spacing: .3px; }
  .snip .db { font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 4px; letter-spacing: .3px; }
  .snip .db.mysql { background: #E6F1FB; color: #185FA5; }
  .snip .db.mssql { background: #FAEEDA; color: #854F0B; }
  .snip .db.other { background: #F4F4EF; color: #6A6A66; }
  .snip pre.sqlbox { margin: 0; background: #F7F7F2; border: 1px solid #EDEDE8; border-radius: 7px; padding: 8px 10px; font-family: Consolas, "Cascadia Mono", Menlo, monospace; font-size: 12px; line-height: 1.55; color: #1F1F1E; white-space: pre; overflow: auto; max-height: 216px; tab-size: 4; }
  .snip pre.sqlbox.full { max-height: none; }
  .snip .sfoot { display: flex; align-items: center; gap: 7px; margin-top: 7px; flex-wrap: wrap; }
  .snip .stag { font-size: 10.5px; background: #F0F7FD; color: #2E6BB0; border-radius: 4px; padding: 1px 6px; }
  .snip .smeta { font-size: 10.5px; color: #A8A8A0; }
  .snip .smore { font-size: 11px; color: #2E6BB0; cursor: pointer; }
  .snip .smore:hover { text-decoration: underline; }
  .snip .snote { font-size: 11.5px; color: #6A6A66; margin-top: 7px; padding-top: 6px; border-top: 1px dashed #EDEDE8; white-space: pre-wrap; }
  .snip .copybtn { background: #185FA5; color: #fff; border: 1px solid #185FA5; border-radius: 6px; font-size: 11.5px; padding: 3px 10px; cursor: pointer; font-family: inherit; }

  /* ===== 工作汇报（📊 视图） ===== */
  .report { padding: 4px 2px 12px; }
  .repbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
  .reptitle { font-size: 16px; font-weight: 700; color: #1F1F1E; margin-right: 6px; }
  .repov { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 10px; }
  .repkpi { background: #fff; border: 1px solid #E6E6E0; border-radius: 10px; padding: 8px 12px 7px; box-shadow: 0 1px 3px rgba(60,60,55,.05); }
  .repkpi .k { margin: 0 0 2px; font-size: 11.5px; color: #8A8A85; }
  .repkpi .v { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.15; }
  .repkpi .s { margin: 2px 0 0; font-size: 10.5px; color: #A8A8A0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .repgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
  .repcard { background: #fff; border: 1px solid #E6E6E0; border-radius: 10px; padding: 9px 12px 10px; box-shadow: 0 1px 3px rgba(60,60,55,.05); min-width: 0; }
  .repcard.wide { grid-column: 1 / -1; }
  .repcard.cwide { grid-column: span 6; }
  .repcard.c2 { grid-column: span 2; }
  .repcard.c3 { grid-column: span 3; }
  .repcard .ct { font-size: 13px; font-weight: 700; color: #33332F; margin-bottom: 4px; }
  .repcard .ct .tag { font-size: 11px; font-weight: 400; color: #8A8A85; margin-left: 6px; }
  .repcard .cbody { width: 100%; height: 178px; display: flex; flex-direction: column; }
  .repcard .cbody svg { flex: 1 1 auto; min-height: 0; }
  .repcard.cwide .cbody { height: 200px; }
  .repsub { margin-top: 2px; font-size: 10.5px; color: #6A6A66; flex: none; }
  .repres { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 4px 0 2px; }
  .represcard { background: #F7F7F2; border: 1px solid #EDEDE8; border-radius: 9px; padding: 10px 12px 9px; text-align: center; }
  .represcard .k { margin: 0 0 3px; font-size: 11.5px; color: #8A8A85; }
  .represcard .v { margin: 0; font-size: 22px; font-weight: 700; }
  .represcard .s { margin: 3px 0 0; font-size: 10.5px; color: #A8A8A0; }
  @media (max-width: 1100px) {
    .repov { grid-template-columns: repeat(3, 1fr); }
    .repgrid { grid-template-columns: 1fr; }
    .repcard.cwide, .repcard.c2, .repcard.c3 { grid-column: auto; }
    .repres { grid-template-columns: repeat(3, 1fr); }
  }
  .snip .copybtn:hover { background: #134B84; }
  .snip .copybtn.ok { background: #0F6E56; border-color: #0F6E56; }
  .snip .qbtn.sdel:hover { background: #E24B4A; color: #fff; border-color: #E24B4A; }
  textarea.code { font-family: Consolas, "Cascadia Mono", Menlo, monospace; font-size: 12.5px; line-height: 1.55; white-space: pre; overflow: auto; tab-size: 4; min-height: 220px; background: #F7F7F2; }

  /* 工具语句：全屏查看/编辑长语句（只显示语句本体） */
  #maskSnip .modal.sqfs { position: fixed; inset: 0; width: auto !important; max-width: none !important; max-height: none !important; height: 100vh; border-radius: 0; padding: 12px 16px; display: flex; flex-direction: column; }
  #maskSnip .modal.sqfs > *:not(#sSqlField) { display: none !important; }   /* 标题行 / 数据库 / 标签 / 备注全隐藏 */
  #maskSnip .modal.sqfs #sSqlField { flex: 1; display: flex; flex-direction: column; min-height: 0; margin: 0; }
  #maskSnip .modal.sqfs #sSqlField > label { display: none; }               /* 「语句」两字标签也不占地方 */
  #maskSnip .modal.sqfs #sSql { flex: 1; min-height: 0; resize: none; }
  #maskSnip .modal.sqfs #sFull { background: #185FA5; border-color: #185FA5; color: #fff; font-weight: 600; }

  /* 工具语句库：最左侧「语句目录」竖列 */
  .tools-inner { display: flex; gap: 12px; align-items: flex-start; }
  .snipside { flex: 0 0 208px; position: sticky; top: 10px; background: #fff; border: 1px solid #E6E6E0; border-radius: 10px; padding: 9px 8px 7px; box-sizing: border-box; }
  .snipside .snavhead { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
  .snipside .snavhead b { font-size: 12px; color: #1F1F1E; letter-spacing: .3px; }
  .snipside .snavhead .sub { font-size: 10.5px; color: #A8A8A0; margin-left: auto; }
  .snipside input#snipNavQ { width: 100%; box-sizing: border-box; font-size: 11.5px; padding: 4px 7px; border: 1px solid #E2E2DC; border-radius: 6px; margin-bottom: 6px; font-family: inherit; outline: none; }
  .snipside input#snipNavQ:focus { border-color: #378ADD; }
  .snavlist { max-height: 62vh; overflow: auto; }
  .snavitem { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 6px; cursor: pointer; font-size: 11.5px; color: #3A3A38; line-height: 1.35; }
  .snavitem:hover { background: #F2F7FC; }
  .snavitem.on { background: #E6F1FB; color: #185FA5; font-weight: 600; }
  .snavitem .dot { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #C9C9C2; }
  .snavitem .dot.mysql { background: #378ADD; }
  .snavitem .dot.mssql { background: #E08A2E; }
  .snavitem .txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .snavempty { font-size: 11px; color: #A8A8A0; padding: 6px 4px; }
  .snavall { font-size: 11px; color: #2E6BB0; cursor: pointer; padding: 3px 6px; border-radius: 6px; }
  .snavall:hover { background: #F2F7FC; text-decoration: underline; }
  .snipmain { flex: 1; min-width: 0; }
  .snip.hl { border-color: #378ADD; box-shadow: 0 0 0 2px rgba(55,138,221,.20); }
  .sniplist.focusing .snip:not(.hl) { opacity: .42; }
  @media (max-width: 860px) {
    .tools-inner { flex-direction: column; }
    .snipside { flex: 1 1 auto; width: 100%; position: static; }
    .snavlist { max-height: 168px; }
  }

  /* ===== 回收站 ===== */
  .arow .acts { display: flex; gap: 6px; align-items: center; flex: 0 0 auto; align-self: center; }

  /* ===== 手机窄屏适配 ===== */
  @media (max-width: 640px) {
    /* 归档/回收站行：日期换行单独一行，标题占满整行不再被挤成竖条 */
    .arow { flex-wrap: wrap; row-gap: 1px; }
    .arow .aid { min-width: 44px; flex: 0 0 auto; }
    .arow .atitle { flex: 1 1 auto; min-width: 50%; word-break: break-all; }
    .arow .adate { flex: 1 0 100%; white-space: normal; }
    /* 悬浮按钮：屏幕内收、避开手势条，抬高层级防被盖 */
    .fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
           width: 52px; height: 52px; font-size: 26px; z-index: 300; }
    .fab .fabtip { display: none; }   /* 触屏没有 hover，提示气泡无意义 */
    /* 防横向溢出把 fixed 元素带偏 */
    html, body { overflow-x: hidden; }
    /* KPI 统计条：7 列在手机上每格只剩 40px，改 4 列两行 */
    .metrics { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; }
    .metric { padding: 6px 9px; }
    .metric .k { white-space: normal; line-height: 1.25; font-size: 10.5px; }
    .metric .v { font-size: 18px; }
    /* 图表区：桌面 4 列定宽（232/300/400/250）在手机必然超宽，改 2×2 */
    .charts { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
    .chartcard .cbody { min-height: 128px; }
  }

/* ===== 看板视图 ===== */
.board { display: flex; gap: 10px; align-items: flex-start; overflow-x: auto; padding-bottom: 10px; }
.bcol { flex: 1 0 208px; min-width: 208px; background: #F4F4EE; border: 1px solid #E4E4DC; border-radius: 10px; padding: 8px; }
.bcol.overdrag { outline: 2px dashed #4A9BF5; outline-offset: -4px; }
.bcol.doncol { background: #F2F5EC; }
.bhead { font-size: 13px; font-weight: 500; margin: 2px 4px 8px; display: flex; justify-content: space-between; align-items: baseline; }
.bcount { color: #8A8A82; font-weight: 400; font-size: 12px; }
.bcard { background: #FFFFFF; border: 1px solid #E4E4DC; border-left-width: 3px; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; cursor: pointer; }
.bcard:hover { box-shadow: 0 2px 8px rgba(60,60,50,.12); }
.btitle { font-size: 13px; margin-bottom: 4px; word-break: break-all; }
.bmeta { font-size: 11px; color: #8A8A82; display: flex; gap: 8px; flex-wrap: wrap; }
.bmeta .isover { color: #E24B4A; }
.bempty { min-height: 26px; }
/* ===== 全局搜索 ===== */
#maskSearch .modal { padding-bottom: 14px; }
#searchInput { width: 100%; box-sizing: border-box; padding: 9px 12px; font-size: 14px; border: 1px solid #D8D8D0; border-radius: 8px; margin: 10px 0 8px; outline: none; }
#searchInput:focus { border-color: #4A9BF5; }
#searchRes { max-height: 52vh; overflow-y: auto; }
.sres-item { padding: 7px 10px; border-radius: 8px; cursor: pointer; display: flex; gap: 9px; align-items: baseline; }
.sres-item.on, .sres-item:hover { background: #EEF4FC; }
.sres-type { flex: 0 0 auto; font-size: 11px; color: #FFFFFF; background: #8A8A82; border-radius: 4px; padding: 1px 6px; }
.sres-text { font-size: 13px; color: #444441; word-break: break-all; }
.sres-empty { padding: 16px 10px; color: #8A8A82; font-size: 13px; text-align: center; }
/* ===== 模板 / 语句库 ===== */
.tplbtn { margin-right: 4px; }

/* ===== 出差助手 ===== */
.travel { display: none; padding: 14px; max-width: 1100px; margin: 0 auto; }
.travel.on { display: block; }

/* ===== 行业资讯 ===== */
.news { display: none; padding: 14px; max-width: 1100px; margin: 0 auto; }
.news.on { display: block; }
.news-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.news-bar h2 { font-size: 18px; margin: 0; color: #2A2A28; }
.news-bar .sub { font-size: 12px; color: #8A8A82; font-weight: 400; margin-left: 6px; }
.news-status { font-size: 12px; color: #8A8A82; margin-left: auto; }
.news-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.news-chip { font-size: 13px; padding: 5px 12px; border-radius: 16px; background: #F2F2EC; color: #4A4A46; cursor: pointer; user-select: none; }
.news-chip i { font-style: normal; color: #9A9A92; margin-left: 4px; font-size: 11px; }
.news-chip.on { background: #185FA5; color: #fff; }
.news-chip.on i { color: #DCE8F5; }
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-card { background: #fff; border: 1px solid #EAEAE4; border-radius: 10px; padding: 12px 14px; transition: background .15s; }
.news-card.read { opacity: .55; }
.news-ct { display: flex; align-items: flex-start; gap: 8px; }
.news-tag { font-size: 11px; padding: 2px 8px; border-radius: 6px; color: #fff; flex: 0 0 auto; margin-top: 2px; }
.tag-erp { background: #185FA5; } .tag-mes { background: #2E8B57; } .tag-lean { background: #C8722B; } .tag-ai { background: #7B4FB5; } .tag-mfg { background: #4A6FA5; } .tag-all { background: #8A8A82; }
.news-title { font-size: 15px; color: #1A1A1A; text-decoration: none; font-weight: 600; flex: 1 1 auto; line-height: 1.4; }
.news-title:hover { color: #185FA5; text-decoration: underline; }
.news-fav { cursor: pointer; color: #C9C9C0; font-size: 16px; flex: 0 0 auto; user-select: none; line-height: 1.2; }
.news-fav.on { color: #E0A800; }
.news-meta { display: flex; gap: 14px; font-size: 12px; color: #9A9A92; margin-top: 6px; }
.news-sum { font-size: 13px; color: #5A5A56; margin-top: 6px; line-height: 1.5; }
.news-empty { padding: 30px; text-align: center; color: #9A9A92; font-size: 14px; background: #F7F7F2; border-radius: 10px; }
@media (max-width: 560px) {
  .news-bar .sub { display: none; }
  .news-status { margin-left: 0; width: 100%; order: 3; }
}
.trv-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.trv-bar h2 { font-size: 18px; margin: 0; font-weight: 600; color: #2C2C28; }
.trv-bar .sub { font-size: 12px; color: #8A8A82; font-weight: 400; margin-left: 8px; }
.trv-key { font-size: 12px; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.trv-key.ok { background: #EAF4EC; color: #2F8A4E; border: 1px solid #BFE0C8; }
.trv-key.warn { background: #FBF1E2; color: #B5781B; border: 1px solid #EED6A8; }
.trv-grid { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
.trv-card { background: #F4F4EE; border: 1px solid #E4E4DC; border-radius: 10px; padding: 12px; }
.trv-card.route .trv-form { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.trv-card.route .trv-form label { flex: 1 1 200px; min-width: 180px; }
.trv-card.route .trv-cityrow { flex: 1 1 100%; }
.trv-card.route .trv-quick { flex: 1 1 100%; }
.trv-ct { font-size: 14px; font-weight: 600; color: #3A3A38; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.trv-places { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; }
.trv-place { background: #fff; border: 1px solid #E4E4DC; border-radius: 8px; padding: 8px 10px; flex: 1 1 240px; min-width: 200px; }
.trv-pn { font-size: 13px; font-weight: 500; color: #2C2C28; }
.trv-pa { font-size: 11.5px; color: #8A8A82; margin: 2px 0; word-break: break-all; }
.trv-pc { font-size: 11px; }
.trv-pc.ok { color: #2F8A4E; }
.trv-pc.no { color: #B5781B; }
.trv-pb { margin-top: 6px; display: flex; gap: 6px; }
.trv-form { display: flex; flex-direction: column; gap: 10px; }
.trv-form label { display: flex; flex-direction: column; font-size: 12px; color: #6A6A66; gap: 4px; }
.trv-form select { width: 100%; box-sizing: border-box; padding: 7px 9px; font-size: 13px; border: 1px solid #D8D8D0; border-radius: 8px; background: #fff; outline: none; }
.trv-form select:focus { border-color: #4A9BF5; }
.trv-ways { font-size: 12px; color: #6A6A66; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.trv-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 3px 8px; border-radius: 16px; border: 1px solid #E2E2DC; background: #FAFAF7; color: #6A6A66; cursor: pointer; user-select: none; }
.trv-chip.on { background: #E7F0FA; border-color: #185FA5; color: #185FA5; font-weight: 600; }
.trv-x { font-style: normal; color: #A8A8A0; cursor: pointer; }
.trv-x:hover { color: #E24B4A; }
.trv-mode { font-size: 12px; color: #6A6A66; display: flex; align-items: center; gap: 8px; }
.trv-mode .qbtn { font-size: 12px; padding: 4px 12px; border-radius: 6px; border: 1px solid #E2E2DC; background: #FAFAF7; color: #6A6A66; cursor: pointer; user-select: none; }
.trv-mode .qbtn.on { background: #185FA5; border-color: #185FA5; color: #fff; font-weight: 600; }
.trv-pref { font-size: 12px; color: #6A6A66; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.trv-pref .qbtn { font-size: 12px; padding: 4px 12px; border-radius: 6px; border: 1px solid #E2E2DC; background: #FAFAF7; color: #6A6A66; cursor: pointer; user-select: none; }
.trv-pref .qbtn.on { background: #185FA5; border-color: #185FA5; color: #fff; font-weight: 600; }
.trv-result { margin-top: 10px; }
.trv-err { background: #FCEBEB; color: #A32D2D; border: 1px solid #E8CFCF; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; }
.trv-cityrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trv-cityrow label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #5A5A52; }
.trv-cityrow input { width: 120px; }
.trv-cityrow .hint { font-size: 11.5px; }
.trv-resolved { font-size: 12px; color: #6B6B60; background: #F4F4EE; border-radius: 8px; padding: 7px 10px; margin-top: 6px; }
.trv-route-head { font-size: 13px; color: #3A3A38; margin-bottom: 8px; }
.trv-route-head b { color: #185FA5; }
.trv-map { position: relative; border-radius: 8px; overflow: hidden; background: #EDEDE8; min-height: 180px; margin-bottom: 8px; }
.trv-map img { width: 100%; display: block; pointer-events: none; }   /* 图片不参与指针事件，彻底杜绝原生拖影抢走 mousemove/pointermove */
.trv-map-tip { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #8A8A82; text-align: center; padding: 12px; cursor: pointer; }
.trv-zoom { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.trv-zoom button { width: 36px; height: 30px; border: 1px solid #C9C9C0; border-radius: 6px; background: #fff; color: #3A3A38; font-size: 14px; line-height: 1; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.trv-zoom button:hover { background: #F2F6FC; border-color: #4A9BF5; }
.trv-zoom button:last-child { font-size: 12px; }
.trv-map { touch-action: none; }
.trv-map-drag { position: absolute; inset: 0; z-index: 1; cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
.trv-map:active .trv-map-drag { cursor: grabbing; }   /* 拖拽层接管光标，img 已 pointer-events:none 不参与 */
/* ===== 常用地点弹窗（带输入联想） ===== */
.trv-modal { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: none; align-items: center; justify-content: center; z-index: 60; }
.trv-modal-box { background: #fff; border-radius: 14px; padding: 18px; width: 320px; max-width: 92vw; box-shadow: 0 12px 44px rgba(0,0,0,.28); }
.trv-modal-t { font-weight: 600; margin-bottom: 12px; color: #2A2A26; }
.trv-modal-box label { display: block; margin-bottom: 12px; font-size: 13px; color: #4A4A42; }
.trv-modal-box input { width: 100%; margin-top: 5px; }
.trv-modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
.trv-steps { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; margin-bottom: 8px; }
.trv-step { font-size: 12px; color: #444441; background: #fff; border: 1px solid #E4E4DC; border-radius: 6px; padding: 6px 8px; }
.trv-step .muted { color: #8A8A82; }
.trv-fee { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.trv-fee label { display: flex; flex-direction: column; font-size: 12px; color: #6A6A66; gap: 4px; flex: 1 1 150px; min-width: 130px; }
.trv-fee input { width: 100%; box-sizing: border-box; padding: 7px 9px; font-size: 13px; border: 1px solid #D8D8D0; border-radius: 8px; background: #fff; outline: none; }
.trv-fee input:focus { border-color: #4A9BF5; }
.trv-fee .trv-round { flex: 1 1 100%; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #4A4A47; }
.trv-fee .trv-round input { width: auto; }
.trv-total { flex: 1 1 100%; font-size: 14px; color: #3A3A38; }
.trv-total b { color: #185FA5; font-size: 16px; }
.trv-total .sub { font-size: 12px; color: #8A8A82; margin-left: 6px; }
.muted { color: #8A8A82; }
button.sm { font-size: 12px; padding: 4px 10px; }
.trv-form input[type="text"] { width: 100%; box-sizing: border-box; padding: 7px 9px; font-size: 13px; border: 1px solid #D8D8D0; border-radius: 8px; background: #fff; outline: none; }
.trv-form input[type="text"]:focus { border-color: #4A9BF5; }
.trv-quick { font-size: 12px; color: #6A6A66; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.trv-quick .lbl { color: #8A8A82; }
.trv-quick .trv-chip { cursor: pointer; }
.trv-wayadd { display: flex; gap: 6px; margin-top: 6px; }
.trv-wayadd input { flex: 1; min-width: 0; padding: 7px 9px; font-size: 13px; border: 1px solid #D8D8D0; border-radius: 8px; outline: none; }
.trv-wayadd input:focus { border-color: #4A9BF5; }
.trv-ac { position: fixed; z-index: 600; display: none; background: #fff; border: 1px solid #D8D8D0; border-radius: 8px; box-shadow: 0 6px 18px rgba(60,60,50,.16); max-height: 240px; overflow-y: auto; }
.trv-ac-item { padding: 7px 10px; font-size: 13px; color: #444441; cursor: pointer; border-bottom: 1px solid #F0F0EA; }
.trv-ac-item:last-child { border-bottom: none; }
.trv-ac-item:hover { background: #EEF4FC; }
.trv-ac-empty { padding: 8px 10px; font-size: 12px; color: #8A8A82; }

/* ===== AI 助手（2026-10-28）：悬浮气泡 + 聊天抽屉 ===== */
/* fabai 与 fabNew 同尺寸同列：只改字号和 bottom（58 + 12 间距 = 104），其余全继承 .fab */
.fabai { right: 30px; bottom: 104px; font-size: 20px; font-weight: 600; letter-spacing: .5px; }
.aipanel { position: fixed; right: 30px; bottom: 170px; width: 400px; max-width: calc(100vw - 24px); height: min(560px, calc(100vh - 200px));
  background: #FFFFFF; border: 1px solid #DEDED6; border-radius: 14px; box-shadow: 0 10px 34px rgba(50,50,40,.22);
  display: none; flex-direction: column; overflow: hidden; z-index: 85; }
.aipanel.on { display: flex; }
.aihead { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid #ECECE4; background: #F7F7F2; }
.aititle { font-size: 13.5px; font-weight: 600; color: #2A2A28; }
.aistatus { font-size: 11px; color: #8A8A82; margin-left: auto; white-space: nowrap; }
.ailink { border: none; background: none; color: #185FA5; font-size: 12px; cursor: pointer; padding: 2px 4px; }
.ailink:hover { text-decoration: underline; }
.aiclose { border: none; background: none; color: #8A8A82; font-size: 14px; cursor: pointer; padding: 2px 4px; }
.aiclose:hover { color: #3A3A38; }
.aimsgs { flex: 1; overflow-y: auto; padding: 12px 12px 6px; display: flex; flex-direction: column; gap: 9px; background: #FBFBF8; }
.aimsg { max-width: 86%; padding: 8px 12px; border-radius: 12px; font-size: 13px; line-height: 1.65; word-break: break-word; }
.aimsg-u { align-self: flex-end; background: #185FA5; color: #fff; border-bottom-right-radius: 4px; }
.aimsg-a { align-self: flex-start; background: #FFFFFF; border: 1px solid #E4E4DC; color: #33332F; border-bottom-left-radius: 4px; }
.aidim { color: #9A9A92; }
.aiinput { display: flex; gap: 8px; padding: 9px 10px; border-top: 1px solid #ECECE4; background: #fff; align-items: flex-end; }
.aiinput textarea { flex: 1; resize: none; font-family: inherit; font-size: 13px; line-height: 1.5; padding: 7px 9px;
  border: 1px solid #D8D8D0; border-radius: 9px; outline: none; max-height: 96px; }
.aiinput textarea:focus { border-color: #4A9BF5; }
.aisend { flex: 0 0 auto; }
@media (max-width: 720px) {
  /* 手机上 .fab 缩成 52×52，fabai 同列：52 + 12 间距 = 80 */
  .fabai { right: 16px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); font-size: 18px; }
  .aipanel { right: 8px; left: 8px; width: auto; bottom: calc(148px + env(safe-area-inset-bottom, 0px)); height: min(70vh, calc(100vh - 180px)); }
}

  /* ===== 文档库（2026-10-28） ===== */
  .docsmod { display: none; }
  .docsmod.on { display: block; }
  .docsmod.dover .docslist { outline: 2px dashed #4A9BF5; outline-offset: -6px; background: #F4F9FF; }
  .docsbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
  .docsbar input[type="text"] { padding: 5px 9px; border: 1px solid #D9D9D2; border-radius: 6px; font-size: 13px; outline: none; }
  .docsbar input[type="text"]:focus { border-color: #9CC1E8; }
  .docsbar button { border: 1px solid #cfcfc8; background: #fff; border-radius: 6px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
  .docsbar button:hover { background: #F2F2EC; }
  .docsbar button.primary { background: #185FA5; border-color: #185FA5; color: #fff; }
  .docsbar button.primary:hover { background: #144d86; }
  .docsbody { display: flex; gap: 12px; align-items: flex-start; }
  .docstree { flex: 0 0 230px; background: #fff; border: 1px solid #E6E6E0; border-radius: 10px; padding: 8px 6px; min-height: 300px; max-height: calc(100vh - 220px); overflow-y: auto; }
  .dtree-item { display: flex; align-items: center; gap: 6px; border-radius: 7px; padding: 6px 8px; cursor: pointer; font-size: 13px; color: #33332F; user-select: none; }
  .dtree-item:hover { background: #F4F7FB; }
  .dtree-item.on { background: #EAF2FC; color: #185FA5; font-weight: 600; }
  .dtree-item.dtarget { outline: 2px dashed #4A9BF5; outline-offset: -2px; background: #EAF2FC; }
  .dtree-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dtree-n { font-size: 11px; color: #A8A8A0; }
  .dtree-ops { display: none; gap: 2px; }
  .dtree-item:hover .dtree-ops { display: inline-flex; }
  .dtree-op { cursor: pointer; font-size: 12px; padding: 1px 4px; border-radius: 4px; color: #6A6A66; }
  .dtree-op:hover { background: #E6E6E0; color: #185FA5; }
  .docslist { flex: 1; background: #fff; border: 1px solid #E6E6E0; border-radius: 10px; padding: 10px 12px; min-height: 300px; max-height: calc(100vh - 220px); overflow-y: auto; }
  .dlisthead { font-size: 13px; font-weight: 600; color: #4A4A46; margin-bottom: 8px; }
  .dlisthead .dhint { font-weight: 400; font-size: 11.5px; color: #A8A8A0; margin-left: 8px; }
  .dfile { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; border-bottom: 1px solid #F2F2EC; }
  .dfile:last-child { border-bottom: 0; }
  .dfile:hover { background: #F7FAFD; }
  .dfile-ico { font-size: 16px; flex: 0 0 auto; }
  .dfile-name { flex: 1; color: #185FA5; text-decoration: none; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dfile-name:hover { text-decoration: underline; }
  .dfile-tag { flex: 0 0 auto; font-size: 10.5px; background: #E8F5EE; color: #0F6E56; border-radius: 4px; padding: 1px 6px; }
  .dfile-size { flex: 0 0 70px; text-align: right; font-size: 11.5px; color: #A8A8A0; }
  .dfile-time { flex: 0 0 88px; font-size: 11.5px; color: #A8A8A0; }
  .dfile-ops { display: flex; gap: 4px; flex: 0 0 auto; }
  .dfile-op { cursor: pointer; font-size: 13px; padding: 2px 5px; border-radius: 4px; color: #6A6A66; text-decoration: none; }
  .dfile-op:hover { background: #E6E6E0; color: #185FA5; }
  .dempty { padding: 40px 20px; text-align: center; color: #A8A8A0; font-size: 13px; line-height: 1.8; }

  /* ===== AI 助手 · 引用文档 ===== */
  .aidocs { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 10px; }
  .aidocs:empty { display: none; }
  .aidocs .aidochip { display: inline-flex; align-items: center; gap: 5px; background: #EAF2FC; color: #185FA5; border-radius: 5px; font-size: 11.5px; padding: 2px 7px; max-width: 100%; }
  .aidocs .aidochip .x { cursor: pointer; font-weight: 700; }
  .aidocs .aidochip .x:hover { color: #A32D2D; }
  .aidocbtn { flex: 0 0 auto; background: #fff; }
  .aidoclist { position: absolute; left: 10px; right: 10px; bottom: 64px; max-height: 300px; overflow-y: auto; background: #fff; border: 1px solid #E0E0DA; border-radius: 10px; box-shadow: 0 8px 28px rgba(40,55,75,.18); padding: 8px; z-index: 60; }
  .aidoclist .aidoch{ font-size: 12px; color: #8A8A82; padding: 2px 6px 6px; }
  .aidoclist .aidocrow { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 7px; cursor: pointer; font-size: 13px; }
  .aidoclist .aidocrow:hover { background: #F4F7FB; }
  .aidoclist .aidocrow .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .aidoclist .aidocrow .sz { font-size: 11px; color: #A8A8A0; }
  .aidoclist .aidocrow .tg { font-size: 10.5px; background: #E8F5EE; color: #0F6E56; border-radius: 4px; padding: 1px 5px; }
  .aidoclist .aidocempty { padding: 18px; text-align: center; color: #A8A8A0; font-size: 12.5px; }

  /* ===== 文档库 · 多归属与文件夹选择弹层（2026-10-28 二期） ===== */
  .dfile-tag.shared { background: #F0F7FD; color: #2E6BB0; }
  .fpick-row { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-bottom: 1px solid #F2F2EC; }
  .fpick-row:last-of-type { border-bottom: 0; }
  .fpick-name { flex: 1; font-size: 13.5px; color: #33332F; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fpick-btn { border: 1px solid #cfcfc8; background: #fff; border-radius: 6px; padding: 4px 12px; font-size: 12.5px; cursor: pointer; flex: 0 0 auto; }
  .fpick-btn:hover { background: #F2F2EC; }
  .fpick-btn.on { background: #E8F5EE; border-color: #9CCDB4; color: #0F6E56; }
  #docsFolderPicker .modal { max-height: 76vh; overflow-y: auto; }

  /* ===== 文档库 · 批量选择与批量归夹（2026-10-28 三期） ===== */
  .docsright { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .docsright .docslist { flex: 1 1 auto; }
  .docsbulk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 10px; margin-bottom: 8px; background: #F4F9FF; border: 1px solid #D7E6F7; border-radius: 9px; font-size: 12.5px; color: #2E6BB0; }
  .docsbulk .bselall { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-weight: 600; color: #185FA5; }
  .docsbulk .bn { color: #185FA5; font-weight: 600; }
  .docsbulk button { border: 1px solid #BBD3EC; background: #fff; color: #185FA5; border-radius: 6px; padding: 3px 10px; font-size: 12.5px; cursor: pointer; }
  .docsbulk button:hover { background: #EAF2FC; }
  .docsbulk button.danger { color: #A32D2D; border-color: #E3C0C0; }
  .docsbulk button.danger:hover { background: #FBEDED; }
  .docsbulk .bhint { color: #7D9BB8; font-size: 11.5px; }
  .dfile-sel { flex: 0 0 auto; margin: 0 1px 0 0; width: 14px; height: 14px; cursor: pointer; accent-color: #185FA5; }
  .dfile.sel { background: #F4F9FF; }
  .dfile.dragging { opacity: .45; }
  .fpick-sub { color: #A8A8A0; font-size: 11.5px; }
  .fpick-new { display: flex; gap: 8px; margin: 10px 0; }
  .fpick-new input { flex: 1; padding: 5px 9px; border: 1px solid #D9D9D2; border-radius: 6px; font-size: 13px; outline: none; }
  .fpick-new input:focus { border-color: #9CC1E8; }
  .fpick-new button { border: 1px solid #cfcfc8; background: #fff; border-radius: 6px; padding: 5px 12px; font-size: 13px; cursor: pointer; white-space: nowrap; }
  .fpick-new button.primary { background: #185FA5; border-color: #185FA5; color: #fff; }
  .fpick-new button.primary:hover { background: #144d86; }
  #docsBatchPicker .modal { max-height: 78vh; overflow-y: auto; }

  /* ===== 文档库 · 树节点操作与排序（2026-10-28 三期b） ===== */
  .dtree-item .dtree-ops .dtree-op { padding: 1px 3px; font-size: 11.5px; }
  .dtree-item:hover .dtree-n { display: none; }   /* hover 时让位给 ＋▲▼✎🗑 */
  .dtree-item.on .dtree-n { display: inline; }
  .dtree-item.on:hover .dtree-n { display: none; }

  /* ===== 文档库 · 统一预览弹层（2026-10-28 四期） ===== */
  #docsPreview .modal.dpv { padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: 90vh; }
  .dpv-head { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid #EDEDE7; background: #FAFAF6; flex: 0 0 auto; }
  .dpv-ico { font-size: 16px; flex: 0 0 auto; }
  .dpv-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: #33332F; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dpv-meta { flex: 0 0 auto; font-size: 11.5px; color: #A8A8A0; }
  .dpv-btn { flex: 0 0 auto; display: inline-block; border: 1px solid #BBD3EC; background: #fff; color: #185FA5; border-radius: 6px; padding: 4px 11px; font-size: 12.5px; text-decoration: none; cursor: pointer; line-height: 1.5; }
  .dpv-btn:hover { background: #EAF2FC; text-decoration: none; }
  .dpv-btn.primary { background: #185FA5; border-color: #185FA5; color: #fff; }
  .dpv-btn.primary:hover { background: #144d86; }
  .dpv-close { flex: 0 0 auto; border: 0; background: transparent; font-size: 15px; color: #8A8A82; cursor: pointer; padding: 2px 7px; border-radius: 5px; line-height: 1.4; }
  .dpv-close:hover { background: #EDEDE7; color: #33332F; }
  /* 最大化（2026-10-29）：预览内容多时小窗费劲，按钮 / 双击标题栏铺满整屏 */
  .dpv-btnmax { flex: 0 0 auto; border: 0; background: transparent; font-size: 14px; color: #8A8A82; cursor: pointer; padding: 2px 8px; border-radius: 5px; line-height: 1.4; }
  .dpv-btnmax:hover { background: #EDEDE7; color: #33332F; }
  .mask.dpvfull { padding: 0; }
  #docsPreview .modal.dpv.dpv-max { width: 100vw !important; max-width: none; height: 100vh; max-height: none; border-radius: 0; }
  #docsPreview .dpv-max .dpv-body { max-height: none; }
  #docsPreview .dpv-max .dpv-pdf { height: 100%; }
  #docsPreview .dpv-max .dpv-img { max-height: calc(100vh - 130px); }
  .dpv-note { flex: 0 0 auto; padding: 6px 14px; font-size: 12px; color: #8A6D3B; background: #FDF7E8; border-bottom: 1px solid #F2E7C9; }
  .dpv-body { flex: 1 1 auto; min-height: 160px; max-height: 74vh; overflow: auto; background: #fff; }
  .dpv-loading { padding: 44px 20px; text-align: center; color: #A8A8A0; font-size: 13px; }
  .dpv-imgwrap { padding: 12px; text-align: center; background: #F7F7F3; }
  .dpv-img { max-width: 100%; max-height: 70vh; border-radius: 4px; box-shadow: 0 2px 12px rgba(0,0,0,.10); background: #fff; }
  .dpv-pdf { display: block; width: 100%; height: 74vh; border: 0; }
  .dpv-pre { margin: 0; padding: 14px 16px; font-family: Consolas, "Courier New", monospace; font-size: 12.8px; line-height: 1.68; color: #33332F; white-space: pre-wrap; word-break: break-word; }
  .dpv-scroll { padding: 10px 12px; }
  .dpv-tbl { border-collapse: collapse; width: 100%; font-size: 12.5px; }
  .dpv-tbl th, .dpv-tbl td { border: 1px solid #E6E6E0; padding: 4px 8px; text-align: left; vertical-align: top; white-space: pre-wrap; word-break: break-word; color: #33332F; }
  .dpv-tbl th { background: #F4F7FB; font-weight: 600; position: sticky; top: 0; z-index: 1; }
  .dpv-tbl tbody tr:nth-child(even) { background: #FCFCF8; }
  .dpv-sheet { margin: 14px 0 6px; font-size: 12.5px; font-weight: 600; color: #185FA5; }
  .dpv-sheet:first-child { margin-top: 2px; }
  .dpv-more { padding: 8px 2px; font-size: 11.5px; color: #A8A8A0; }
  .dpv-none { padding: 36px 20px; text-align: center; color: #8A8A82; font-size: 13px; line-height: 2; }
  .dpv-none-ico { font-size: 34px; line-height: 1.4; margin-bottom: 4px; }
  /* 上传核对清单（2026-10-29）：有失败才弹，删原档前逐个核对 */
  .uprep-tip { font-size: 12.5px; color: #8A6D3B; background: #FDF7E8; border: 1px solid #F0E1BE; border-radius: 7px; padding: 7px 11px; margin-bottom: 10px; }
  .uprep-list { max-height: 46vh; overflow: auto; border: 1px solid #E6E6E0; border-radius: 7px; }
  .uprep-row { display: flex; align-items: center; gap: 8px; padding: 5px 10px; font-size: 12.5px; border-bottom: 1px solid #F0F0EB; }
  .uprep-row:last-child { border-bottom: 0; }
  .uprep-row.bad { background: #FDF3F3; }
  .uprep-mark { flex: 0 0 auto; font-weight: 600; color: #2E7D32; }
  .uprep-row.bad .uprep-mark { color: #A32D2D; }
  .uprep-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #33332F; }
  .uprep-why { flex: 0 0 auto; font-size: 11.5px; color: #A8A8A0; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .uprep-row.bad .uprep-why { color: #A32D2D; }
  /* 操作记录（2026-10-29）：🗒 按钮弹层 */
  .aup-list { flex: 1 1 auto; min-height: 120px; overflow: auto; border: 1px solid #E6E6E0; border-radius: 7px; }
  .aup-row { display: flex; align-items: baseline; gap: 9px; padding: 4px 10px; font-size: 12.5px; border-bottom: 1px solid #F0F0EB; }
  .aup-row:last-child { border-bottom: 0; }
  .aup-ts { flex: 0 0 auto; color: #A8A8A0; font-size: 11.5px; }
  .aup-act { flex: 0 0 auto; color: #185FA5; font-weight: 600; min-width: 76px; }
  .aup-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #33332F; }
  .aup-extra { flex: 0 0 auto; color: #A8A8A0; font-size: 11.5px; max-width: 32%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* ===== 文档库 · 回收站与容量提醒（2026-10-28 五期） ===== */
  .dtree-item.dtree-trash { margin-top: 8px; border-top: 1px dashed #E6E6E0; border-radius: 0 0 7px 7px; padding-top: 9px; color: #7A6A5A; }
  .dtree-item.dtree-trash:hover { background: #FBF7F2; }
  .dtree-item.dtree-trash.on { background: #FBF1E6; color: #9A5B22; }
  .dtree-item.dtree-trash .dtree-n { color: #B09A85; }
  .dfile-tag.trashfrom { background: #FBF1E6; color: #9A5B22; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .docsbulk.trashbulk { background: #FDF7F0; border-color: #EEDCC4; color: #9A5B22; }
  .docsbulk.trashbulk .bselall,
  .docsbulk.trashbulk .bn { color: #9A5B22; }
  .docsbulk.trashbulk button { border-color: #E3CDB0; color: #9A5B22; }
  .docsbulk.trashbulk button:hover { background: #FBF1E6; }
  .docsbulk.trashbulk button.danger { color: #A32D2D; border-color: #E3C0C0; }
  .docsbulk.trashbulk button.danger:hover { background: #FBEDED; }
  .docsbulk.trashbulk .bhint { color: #B09A85; }
  .docsnotice { margin: 0 0 10px; padding: 8px 12px; background: #FDF7E8; border: 1px solid #F0E1BE; border-radius: 8px; font-size: 12.5px; color: #8A6D3B; }
  /* 磁盘水位条（2026-10-28）：工具栏右侧常驻，三档配色跟着用量走 */
  .docsdisk { display: inline-flex; align-items: center; gap: 7px; padding: 3px 9px; border: 1px solid #E6E6E0; border-radius: 7px; background: #FAFAF7; font-size: 12px; color: #6B6B66; white-space: nowrap; cursor: default; }
  .docsdisk .dd-txt b { color: #1F1F1E; font-weight: 600; }
  .docsdisk .dd-bar { width: 54px; height: 6px; border-radius: 4px; background: #E6E6E0; overflow: hidden; display: inline-block; }
  .docsdisk .dd-bar i { display: block; height: 100%; background: #185FA5; border-radius: 4px; }
  .docsdisk.warn { background: #FDF7E8; border-color: #F0E1BE; }
  .docsdisk.warn .dd-txt { color: #8A6D3B; }
  .docsdisk.warn .dd-txt b { color: #8A6D3B; }
  .docsdisk.warn .dd-bar i { background: #C9922E; }
  .docsdisk.hot { background: #FDF3F3; border-color: #EFCFCF; }
  .docsdisk.hot .dd-txt { color: #A32D2D; }
  .docsdisk.hot .dd-txt b { color: #A32D2D; }
  .docsdisk.hot .dd-bar i { background: #D64545; }
  .docsdisk:empty { display: none; }
  .docscrumb { font-size: 12.5px; color: #9A9A92; margin: 0 0 7px 2px; min-height: 17px; }
  .docscrumb:empty { display: none; }
