  * { 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: 1560px; margin: 0 auto; }

  /* ===== 顶部工具条 ===== */
  .topbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
  .topbar h1 { font-size: 19px; font-weight: 600; margin: 0; letter-spacing: .5px; display: flex; align-items: center; }
  .topbar h1 .lklogo { width: 24px; height: 24px; flex: 0 0 auto; margin-right: 8px; border-radius: 6px; box-shadow: 0 1px 3px rgba(21,75,134,.25); }
  .topbar .sub { font-size: 12px; color: #8A8A85; }
  .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; }
  /* 卡片上直接打勾完成（勾选框样式，不带文字；卡片和议程面板通用） */
  .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; }
  .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 11px; 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; }
  .modulebar .mtab { 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; }
  .allocscroll thead th { position: sticky; top: 0; z-index: 2; box-shadow: inset 0 -1px 0 #E6E6E0; }
  .allocscroll td { white-space: nowrap; }
  /* 长文本单行省略（悬停 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: 11.5px; }
  .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; }
  .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; }
  .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; }
