:root {
  --bg: #f3f4fa;
  --card: #ffffff;
  --line: #e7e9f2;
  --text: #20242f;
  --muted: #8b90a3;
  --primary: #6c5ce7;
  --primary-d: #5848c2;
  --danger: #e74c5b;
  --ok: #2bb673;
  --warn: #f0a020;
  --shadow-sm: 0 2px 8px rgba(30, 30, 60, .06);
  --shadow: 0 12px 34px rgba(30, 30, 60, .14);
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
}
/* ---------- 顶栏 ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 22px;
  background: linear-gradient(120deg, #6c5ce7, #8e7bff 55%, #a29bfe);
  color: #fff; box-shadow: var(--shadow-sm); flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .18);
  display: flex; align-items: center; justify-content: center; font-size: 22px; backdrop-filter: blur(4px);
}
.brand-txt h1 { font-size: 18px; margin: 0; font-weight: 800; }
.brand-txt .sub { margin: 2px 0 0; font-size: 12px; opacity: .85; }
.top-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.seg { display: inline-flex; background: rgba(255, 255, 255, .18); border-radius: 11px; padding: 3px; }
.seg-btn {
  border: none; background: transparent; color: #fff; font-weight: 700; font-size: 14px;
  padding: 8px 18px; border-radius: 9px; cursor: pointer; transition: .18s;
}
.seg-btn.active { background: #fff; color: var(--primary-d); box-shadow: var(--shadow-sm); }

.date-nav { display: flex; align-items: center; gap: 6px; }
.date-nav input[type=date] {
  border: none; border-radius: 10px; padding: 8px 10px; font-size: 14px; color: var(--text);
  background: #fff; box-shadow: var(--shadow-sm);
}
.icon-btn {
  width: 36px; height: 36px; border: none; border-radius: 10px; background: rgba(255, 255, 255, .2);
  color: #fff; font-size: 20px; line-height: 1; cursor: pointer; transition: .15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .34); }
.today-btn {
  border: none; border-radius: 10px; padding: 8px 14px; background: rgba(255, 255, 255, .2);
  color: #fff; font-weight: 700; cursor: pointer; font-size: 13px;
}
.today-btn:hover { background: rgba(255, 255, 255, .34); }

/* ---------- 工具栏 ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 22px 4px; flex-wrap: wrap; }
.spacer { flex: 1; }
.tbtn {
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: .15s;
}
.tbtn:hover { border-color: var(--primary); color: var(--primary-d); }
.tbtn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.tbtn.primary:hover { background: var(--primary-d); color: #fff; }

/* ---------- 统计卡 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 14px 22px; max-width: 1100px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 12px;
}
.stat .ic { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.stat .num { font-size: 22px; font-weight: 800; line-height: 1; }
.stat .lbl { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- 主视图 ---------- */
.view { padding: 8px 22px 40px; }
.scroll-x { overflow-x: auto; padding-bottom: 8px; }

/* 通用区块标题 */
.block-title { font-size: 13px; font-weight: 700; color: var(--muted); margin: 10px 2px 6px; }

/* ============ 日视图（时间轴） ============ */
.day-head, .day-row { display: flex; align-items: stretch; min-width: max-content; }
.day-corner {
  width: 170px; min-width: 170px; background: var(--card); border: 1px solid var(--line);
  border-right: none; border-radius: 12px 0 0 12px; padding: 10px 10px; font-weight: 800;
  display: flex; align-items: center;
}
.day-hours { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 0 12px 12px 0; }
.day-hours .h {
  width: 65px; font-size: 12px; color: var(--muted); border-left: 1px solid var(--line);
  padding-left: 6px; height: 30px; line-height: 30px;
}
.day-label {
  width: 170px; min-width: 170px; background: var(--card); border: 1px solid var(--line); border-right: none;
  border-radius: 12px 0 0 12px; padding: 10px 10px; display: flex; flex-direction: column; justify-content: center;
  position: sticky; left: 0; z-index: 5;
}
.rname { font-weight: 800; font-size: 14.5px; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rname .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, #888); flex-shrink: 0; }
.rtype { font-size: 12px; color: var(--muted); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 20px; font-weight: 700; margin-top: 5px; width: fit-content; }
.badge.active { background: #e6f8ef; color: var(--ok); }
.badge.maintenance { background: #fdeede; color: var(--warn); }
.badge.no_video { background: #fef3c7; color: #b45309; box-shadow: 0 0 0 2px rgba(245,158,11,.4); }
.warn-banner { background: #fef3c7; border: 1px solid #f59e0b; color: #92400e; border-radius: 8px; padding: 8px 10px; font-size: 13px; font-weight: 700; margin: -2px 0 10px; }

.day-track {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 0 12px 12px 0;
  height: 64px; margin-bottom: 10px; cursor: pointer; overflow: hidden;
}
.day-track::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to right, #e5e7ef 1px, transparent 1px);
  background-size: 130px 100%, 65px 100%;
  background-position: 0 0, 0 0;
  z-index: 0;
}
.day-track .hour-line { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); }
.day-block {
  z-index: 1; position: absolute; border-radius: 9px; padding: 5px 8px; color: #fff; overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .12s, box-shadow .12s; font-size: 12px;
}
.day-block:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.day-block .bt { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-block .bb { opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 跨出当前时间轴的会议块加小箭头提示 */
.day-block.extend-left { padding-left: 16px; }
.day-block.extend-right { padding-right: 16px; }
.day-block.extend-left::before,
.day-block.extend-right::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.day-block.extend-left::before { left: 5px; border-right: 6px solid rgba(255,255,255,.85); }
.day-block.extend-right::after { right: 5px; border-left: 6px solid rgba(255,255,255,.85); }
.day-track.maintenance { background: repeating-linear-gradient(45deg, #fafafa, #fafafa 10px, #f0f0f4 10px, #f0f0f4 20px); cursor: not-allowed; }
.day-track.maintenance::after {
  content: "🔧 维修中"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--warn); font-weight: 800; font-size: 13px;
  background: rgba(255,255,255,.62); pointer-events: none; z-index: 2; /* 轻覆盖：半透明、不拦截点击 */
}
.day-track.maintenance.has-book::after { content: none; background: none; } /* 当天有已定会议：仅保留条纹，正常显示/点击会议 */

/* ============ 周视图 ============ */
.week-head, .week-row { display: flex; align-items: stretch; min-width: max-content; }
.week-corner {
  width: 170px; min-width: 170px; background: var(--card); border: 1px solid var(--line); border-right: none;
  border-radius: 12px 0 0 12px; padding: 10px 10px; font-weight: 800; display: flex; align-items: center;
  position: sticky; left: 0; z-index: 6;
}
.week-days { display: flex; }
.week-day-h {
  width: 150px; min-width: 150px; background: var(--card); border: 1px solid var(--line); border-left: none;
  padding: 8px 10px; text-align: center;
}
.week-day-h .dow { font-size: 12px; color: var(--muted); }
.week-day-h .dnum { font-size: 17px; font-weight: 800; }
.week-day-h.today { background: #efeaff; }
.week-day-h.today .dnum { color: var(--primary-d); }
.week-label {
  width: 170px; min-width: 170px; background: var(--card); border: 1px solid var(--line); border-right: none;
  border-radius: 12px 0 0 12px; padding: 10px 10px; display: flex; flex-direction: column; justify-content: center;
  position: sticky; left: 0; z-index: 5;
}
.week-cells { display: flex; }
.week-cell {
  width: 150px; min-width: 150px; border: 1px solid var(--line); border-left: none;
  min-height: 96px; padding: 6px; display: flex; flex-direction: column; gap: 5px; cursor: pointer;
  background: var(--card); transition: background .12s;
}
.week-cell:hover { background: #faf9ff; }
.week-cell.today { background: #f6f3ff; }
.week-cell.maintenance { background: repeating-linear-gradient(45deg, #fafafa, #fafafa 8px, #f0f0f4 8px, #f0f0f4 16px); cursor: not-allowed; }
.wm-empty { font-size: 12px; color: var(--muted); padding: 6px 0; }
.wm-empty.novideo { color: #b45309; background: #fef3c7; border: 1px solid #f59e0b; border-radius: 6px; font-weight: 700; padding: 4px 6px; }
.wchip {
  background: var(--c, var(--primary)); color: #fff; border-radius: 7px; padding: 4px 7px; font-size: 11.5px;
  cursor: pointer; box-shadow: var(--shadow-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wchip .wt { font-weight: 700; }
.wchip .wb { opacity: .9; font-size: 10.5px; }
.wmore { font-size: 11px; color: var(--muted); text-align: center; }

/* ============ 月视图 ============ */
.month-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 8px; }
.month-head div { text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); padding: 4px; }
.month-head .we { color: var(--danger); }
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.mcell {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; min-height: 110px;
  padding: 7px 8px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; transition: .12s;
}
.mcell:hover { box-shadow: var(--shadow-sm); border-color: var(--primary); }
.mcell.out { background: #f7f8fb; opacity: .55; }
.mcell.today { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(108, 92, 231, .18); }
.mcell.maintenance * { }
.mday { font-size: 13px; font-weight: 800; }
.mcell.today .mday { color: var(--primary-d); }
.mchips { display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.mchip { border-radius: 6px; padding: 2px 6px; font-size: 11px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mchip .mt { font-weight: 700; }
.mmore { font-size: 10.5px; color: var(--muted); }

/* ============ 弹窗 ============ */
.modal { position: fixed; inset: 0; background: rgba(20, 22, 35, .5); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal.show { display: flex; }
.modal-card { background: var(--card); border-radius: 16px; width: 420px; max-width: 100%; max-height: 92vh; overflow: auto; box-shadow: var(--shadow); animation: pop .18s ease; }
.modal-card.wide { width: 560px; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 16px; }
.x { border: none; background: transparent; font-size: 24px; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-card form, .modal-card .detail, #roomList { padding: 16px 18px; }
.modal label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.modal label input, .modal label select {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 14px; color: var(--text); background: #fff;
}
.row2 { display: flex; gap: 12px; }
.row2 label { flex: 1; }
.err { color: var(--danger); font-size: 13px; min-height: 16px; margin: 4px 0; }
.actions { display: flex; gap: 10px; justify-content: flex-end; padding: 0 18px 18px; }
.btn { border: none; border-radius: 10px; padding: 10px 18px; font-size: 14px; font-weight: 700; cursor: pointer; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-d); }
.btn.ghost { background: #f0f1f6; color: var(--text); }
.btn.danger { background: var(--danger); color: #fff; }
.admin-box { padding: 0 18px; }
.admin-box label { font-weight: 600; }
.detail .d-row { display: flex; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.detail .d-row .k { width: 86px; color: var(--muted); flex-shrink: 0; }
.detail .d-row .v { font-weight: 600; }
.detail .d-tag { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.detail .d-tag.active { background: #e6f8ef; color: var(--ok); }
.detail .d-tag.maintenance { background: #fdeede; color: var(--warn); }

/* 会议室管理 */
.room-list { display: flex; flex-direction: column; gap: 10px; }
.room-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rr-id { font-weight: 800; width: 44px; flex-shrink: 0; }
.rr-name { flex: 1; min-width: 150px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; }
.rr-type, .rr-status { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; }
.rr-cap { width: 70px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; }
.rr-cap-lbl { font-size: 12px; color: var(--muted); }
.hint { font-size: 12.5px; color: var(--muted); margin: 0; }

/* 管理员直接录入 */
.admin-insert { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.admin-insert .ai-head { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.admin-insert .ai-sub { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 6px; }
.admin-insert label { display: block; margin: 8px 0; font-weight: 600; }
.admin-insert input, .admin-insert select { width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; box-sizing: border-box; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px);
  background: #20242f; color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 14px;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: #e74c5b; }

/* ---------- 访问口令遮罩 ---------- */
.guard-overlay {
  position: fixed; inset: 0; z-index: 500; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(20, 24, 40, .55); backdrop-filter: blur(3px);
}
.guard-overlay.show { display: flex; }
.guard-card {
  background: var(--card); border-radius: 18px; padding: 28px 24px;
  width: 340px; max-width: 100%; box-shadow: var(--shadow); text-align: center;
}
.guard-icon { font-size: 40px; margin-bottom: 8px; }
.guard-title { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.guard-sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.guard-card input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 15px; margin-bottom: 12px; box-sizing: border-box;
}
.guard-card .tbtn { width: 100%; padding: 12px; }
.guard-card .err { margin-top: 10px; }

/* PC 端默认隐藏移动端底部 Tab（仅 ≤760px 显示） */
.mobile-tabbar { display: none; }

/* ============ 手机适配：App 风格 ============ */
@media (max-width: 760px) {
  body { padding-bottom: 64px; }
  .topbar { padding: 12px 16px; }
  .brand-txt h1 { font-size: 17px; }
  .brand-txt .sub { display: none; }
  .top-actions { display: none; } /* 移动端用底部 Tab，隐藏顶部分段和日期导航 */
  .toolbar, .stats { display: none; } /* 功能入口移到「报表」Tab */
  .view { padding: 8px 14px 80px; min-height: calc(100vh - 120px); }

  /* 弹窗按钮在手机上铺满、时间输入竖排 */
  .modal .actions { flex-direction: column-reverse; }
  .modal .actions .btn { width: 100%; padding: 13px; font-size: 15px; }
  .row2 { flex-direction: column; gap: 0; }
  .row2 label { margin-bottom: 12px; }

  /* ---------- 底部 Tab 导航 ---------- */
  .mobile-tabbar {
    position: fixed; bottom: 0; left: 0; right: 0; height: 60px;
    background: #fff; border-top: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-around;
    z-index: 90; box-shadow: 0 -2px 12px rgba(30,30,60,.06);
  }
  .mobile-tab {
    flex: 1; height: 100%; border: none; background: transparent;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; color: var(--muted); font-size: 11px; cursor: pointer; transition: .15s;
  }
  .mobile-tab.active { color: var(--primary-d); }
  .mobile-tab-icon { font-size: 20px; line-height: 1; }
  .mobile-tab-label { font-weight: 600; }

  /* ---------- App 风格月历 ---------- */
  .mobile-calendar { background: var(--card); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-sm); }
  .mobile-cal-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
  }
  .mobile-cal-header .icon-btn {
    width: 36px; height: 36px; border-radius: 10px; background: #f0f1f6; color: var(--text);
    border: none; font-size: 20px; cursor: pointer;
  }
  .mobile-cal-title { font-size: 18px; font-weight: 800; }
  .mobile-cal-weekdays {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px;
  }
  .mobile-cal-weekdays div { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
  .mobile-cal-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  }
  .mobile-cal-cell {
    aspect-ratio: 1; border-radius: 12px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 5px; cursor: pointer;
    background: #f8f9fc; border: 1px solid transparent; transition: .12s;
  }
  .mobile-cal-cell.out { color: #c5c9d6; background: transparent; }
  .mobile-cal-cell.today { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(108,92,231,.35); }
  .mobile-cal-cell:active { transform: scale(.96); }
  .mobile-cal-day { font-size: 16px; font-weight: 700; }
  .mobile-cal-dots { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; max-width: 34px; }
  .mobile-cal-dot { width: 5px; height: 5px; border-radius: 50%; }
  .mobile-cal-today-row { margin-top: 14px; text-align: center; }
  .mobile-cal-today-row .today-btn { padding: 10px 24px; }

  /* ---------- 日视图（当日会议列表） ---------- */
  .mobile-day { }
  .mobile-day-header {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-bottom: 14px;
  }
  .mobile-day-header .icon-btn { width: 36px; height: 36px; border-radius: 10px; background: #f0f1f6; color: var(--text); border: none; font-size: 20px; }
  .mobile-day-title { font-size: 17px; font-weight: 800; flex: 1; text-align: center; }
  .mobile-day-list { display: flex; flex-direction: column; gap: 8px; }
  .mobile-meeting-card {
    display: flex; align-items: center; gap: 10px;
    background: var(--card); border: 1px solid var(--line); border-radius: 12px;
    padding: 9px 13px; border-left-width: 4px; box-shadow: var(--shadow-sm); cursor: pointer;
  }
  .mc-room { font-size: 15px; font-weight: 800; min-width: 34px; flex-shrink: 0; }
  .mc-time { font-size: 12.5px; color: var(--muted); font-weight: 600; flex-shrink: 0; }
  .mc-title { font-size: 14px; font-weight: 700; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mc-booker { font-size: 13px; font-weight: 600; color: var(--text); flex-shrink: 0; }
  .mobile-day-fab { margin-top: 18px; }
  .mobile-day-fab .tbtn { width: 100%; padding: 13px; }

  /* ---------- 空状态 ---------- */
  .mobile-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 50px 20px; text-align: center; color: var(--muted);
  }
  .mobile-empty-icon { font-size: 52px; margin-bottom: 12px; opacity: .55; }
  .mobile-empty-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
  .mobile-empty-sub { font-size: 13px; margin-bottom: 20px; }
  .mobile-empty .tbtn { padding: 12px 32px; }

  /* ---------- 当天会议 ---------- */
  .mobile-meetings { }
  .mobile-page-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
  .mobile-meetings-sub { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
  .mobile-meetings-list { display: flex; flex-direction: column; gap: 8px; }
  .mobile-meetings-date { font-size: 14px; font-weight: 700; color: var(--primary-d); margin: 4px 0 6px; }

  /* ---------- 报表页 ---------- */
  .mobile-stats-page { }
  .mobile-stats-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px;
  }
  .mobile-stat-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    padding: 18px 14px; text-align: center; box-shadow: var(--shadow-sm);
  }
  .mobile-stat-num { font-size: 28px; font-weight: 800; color: var(--primary-d); }
  .mobile-stat-label { font-size: 12px; color: var(--muted); margin-top: 6px; }
  .mobile-stats-actions { display: flex; gap: 10px; }
  .mobile-stats-actions .tbtn { flex: 1; padding: 12px; }

  /* 保留弹窗等旧样式 */
  .modal .actions { flex-direction: column-reverse; }
  .modal .actions .btn { width: 100%; padding: 13px; font-size: 15px; }
  .row2 { flex-direction: column; gap: 0; }
  .row2 label { margin-bottom: 12px; }
}
@media (max-width: 420px) {
  .mobile-cal-day { font-size: 14px; }
  .mobile-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== PC 会议块悬停详情提示 ===== */
.view-tip {
  position: fixed; z-index: 9999; max-width: 340px;
  background: rgba(15, 23, 42, .96); color: #fff;
  border-radius: 10px; padding: 10px 14px;
  font-size: 12.5px; line-height: 1.75; white-space: pre-line;
  pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,.28);
  opacity: 0; transition: opacity .12s ease;
}
.view-tip.show { opacity: 1; }

/* ===== 详情弹窗会议号可复制 ===== */
.detail .d-row .v.copy-num {
  cursor: pointer; user-select: none; color: #0f6bff;
  padding: 2px 8px; border-radius: 6px; background: #f0f5ff;
}
.detail .d-row .v.copy-num:hover { background: #dde9ff; }

/* ===== 预定人名单管理 ===== */
.ok { color: #15803d; font-size: 13px; min-height: 16px; margin: 4px 0; }
.admin-insert .nm-check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.admin-insert .nm-check input { width: auto; margin: 0; flex: 0 0 auto; }
.name-list {
  display: flex; flex-wrap: wrap; gap: 6px;
  max-height: 220px; overflow-y: auto;
  padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfd;
}
.name-list:empty::after { content: "（暂无名单，请先导入）"; color: var(--muted); font-size: 12.5px; }
.name-chip {
  padding: 5px 11px; border-radius: 999px; font-size: 13px; cursor: pointer;
  background: #eef2f9; color: var(--text); border: 1px solid transparent; user-select: none;
}
.name-chip:hover { background: #e2e9f5; }
.name-chip.sel { background: #dbeafe; border-color: var(--primary); color: #1e3a8a; font-weight: 700; }
.name-chip .x { margin-left: 6px; color: var(--danger); font-weight: 700; }
.nm-single { display: flex; gap: 8px; align-items: flex-end; margin: 6px 0 2px; }
.nm-single label { flex: 1 1 auto; margin: 0; }
.nm-single input { width: 100%; }
.nm-single .btn { flex: 0 0 auto; white-space: nowrap; padding: 9px 16px; }
