/* Meeting View — 会议管理首页（侘寂重绘 · token 随 data-theme） */

.meeting-view {
  --bg-main: var(--paper);
  --bg-card: var(--frost-72);
  --bg-hover: rgba(143, 142, 137, 0.12);
  --text-primary: var(--ink);
  --text-secondary: var(--ink-soft);
  --text-muted: var(--ink-faint);
  --border-color: var(--line);
  --accent-color: var(--cement);
  --accent-hover: var(--cement-deep);
  --accent-light: rgba(143, 142, 137, 0.14);
  --danger-color: var(--danger-soft);
  --font-sans: var(--font-body);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-full: 9999px;

  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, var(--paper-hot) 0%, var(--paper) 55%, var(--cement-fog) 100%);
  color: var(--text-primary);
  padding: 18px 24px 16px;
  overflow: hidden;
  font-family: var(--font-sans);
}

[data-theme="su"] .meeting-view,
[data-theme="night"] .meeting-view {
  background: var(--paper-hot);
}

[data-theme="night"] .meeting-view {
  --bg-card: var(--frost-45);
  --bg-hover: rgba(255, 255, 255, 0.08);
  --accent-light: rgba(196, 194, 186, 0.16);
}

.meeting-view[hidden] {
  display: none !important;
}

/* —— Header —— */
.mtg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.mtg-header h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.mtg-close-btn {
  font-size: 13px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.mtg-close-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* —— Body：左右布局（保持 meeting-v3 原版结构，不改上下堆叠）—— */
.mtg-body {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 8px;
  overflow: hidden;
}

.mtg-body-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* 日历卡：内容高度，不缩 */
.mtg-body-left > .mtg-card:first-child {
  flex-shrink: 0;
}

/* 时间线卡：吸收剩余空间 */
.mtg-body-left > .mtg-card:last-child {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.mtg-body-right {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* 右栏四块均匀分布 */
.mtg-body-right > * {
  flex: 1;
  min-height: 0;
}

/* —— 通用卡片 —— */
.mtg-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  position: relative;
}

.mtg-card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.mtg-card-title .mtg-link {
  font-size: 12px;
  color: var(--accent-color);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.mtg-card-title .mtg-link:hover {
  color: var(--accent-hover);
}

/* 右栏卡片：列布局 + 内容区滚动（防溢出） */
.mtg-body-right .mtg-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mtg-body-right .mtg-card > div:not(.mtg-card-title) {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
}

.mtg-body-right .mtg-card > div:not(.mtg-card-title)::-webkit-scrollbar {
  display: none; /* Chrome / Edge */
}

/* —— 日历 —— */
.mtg-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mtg-cal-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  margin-left: -6px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s, color 0.15s;
}

.mtg-cal-label:hover {
  background: rgba(143, 142, 137, 0.12);
  color: var(--accent-hover);
}

.mtg-cal-label-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.5;
  transition: transform 0.2s;
}

.mtg-cal-label.is-picker-open .mtg-cal-label-caret {
  transform: rotate(180deg);
}

.mtg-cal-nav {
  display: flex;
  gap: 4px;
}

.mtg-cal-nav button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.mtg-cal-nav button:hover {
  border-color: var(--accent-color);
  color: var(--accent-hover);
}

.mtg-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

/* —— 月份选择器 —— */
.mtg-cal-picker {
  position: absolute;
  z-index: 20;
  top: 38px;
  left: 0;
  width: 260px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.mtg-cal-picker[hidden] {
  display: none;
}

.mtg-cal-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mtg-cal-picker-nav {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.mtg-cal-picker-nav:hover {
  border-color: var(--accent-color);
  color: var(--accent-hover);
}

.mtg-cal-picker-year {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.mtg-cal-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.mtg-cal-picker-cell {
  padding: 7px 0;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: rgba(143, 142, 137, 0.06);
  color: var(--text-secondary);
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.mtg-cal-picker-cell:hover {
  background: rgba(143, 142, 137, 0.16);
  color: var(--text-primary);
}

.mtg-cal-picker-cell.is-current {
  font-weight: 600;
  color: var(--accent-hover);
  border-color: var(--accent-color);
}

.mtg-cal-picker-cell.is-selected {
  background: var(--accent-light);
  color: var(--text-primary);
  font-weight: 600;
}

.mtg-cal-wd {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 0 6px;
  font-weight: 500;
}

.mtg-cal-cell {
  position: relative;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  padding: 3px 4px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: rgba(143, 142, 137, 0.03);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  font-size: 12px;
  color: var(--text-secondary);
}

.mtg-cal-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(138, 158, 134, 0.28);
  opacity: var(--heat, 0);
  pointer-events: none;
  transition: opacity 0.15s;
}

.mtg-cal-cell > * {
  position: relative;
  z-index: 1;
}

.mtg-cal-num {
  text-align: right;
  font-size: 12px;
  line-height: 18px;
}

.mtg-cal-count {
  font-size: 10px;
  line-height: 14px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  align-self: flex-start;
  max-width: 100%;
  color: var(--text-muted);
}

.mtg-cal-cell.empty {
  cursor: default;
  pointer-events: none;
}

.mtg-cal-cell:hover {
  background: rgba(143, 142, 137, 0.08);
}

.mtg-cal-cell:hover::before {
  opacity: calc(var(--heat, 0) + 0.08);
}

.mtg-cal-cell.is-today {
  font-weight: 600;
  color: var(--accent-hover);
  border-color: var(--accent-color);
}

.mtg-cal-cell.is-selected {
  background: var(--accent-light);
  color: var(--text-primary);
  font-weight: 600;
}

.mtg-cal-cell.has-meetings .mtg-cal-num {
  font-weight: 600;
}

/* —— 时间线 —— */
.mtg-timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mtg-timeline-date {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mtg-timeline-date::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-color);
  flex-shrink: 0;
}

.mtg-timeline-count {
  font-size: 13px;
  color: var(--text-muted);
}

.mtg-timeline-count span {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-hover);
  margin: 0 2px;
}

.mtg-tl-period {
  font-size: 11px;
  color: var(--text-muted);
  padding: 8px 0 4px;
  letter-spacing: 0.05em;
}

.mtg-meeting-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  cursor: pointer;
  margin-bottom: 4px;
  transition: background 0.15s;
}

.mtg-meeting-card:hover {
  background: var(--accent-light);
}

.mtg-mc-time {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 76px;
}

.mtg-mc-body {
  flex: 1;
  min-width: 0;
}

.mtg-mc-theme {
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mtg-mc-room {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mtg-mc-status {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.mtg-mc-status.running {
  background: rgba(138, 158, 134, 0.22);
  color: #5a7a54;
}

.mtg-mc-status.pending {
  background: rgba(180, 160, 100, 0.18);
  color: #8a7a40;
}

.mtg-mc-status.ended {
  background: var(--bg-hover);
  color: var(--text-muted);
}

/* —— 右栏：会议提醒 —— */
#mtg-alert {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mtg-alert-card {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: opacity 0.2s;
  height: 100%;
  box-sizing: border-box;
  position: relative;
}

.mtg-alert-card.running {
  background: rgba(138, 158, 134, 0.28);
  color: var(--text-primary);
}

.mtg-alert-card.pending {
  background: rgba(200, 170, 110, 0.22);
  color: var(--text-primary);
}

.mtg-alert-card.ended {
  background: var(--bg-hover);
  color: var(--text-muted);
}

.mtg-alert-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mtg-alert-label {
  font-size: 13px;
  font-weight: 600;
}

.mtg-alert-status {
  font-size: 11px;
  opacity: 0.8;
}

.mtg-alert-time {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.mtg-alert-theme {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mtg-alert-room {
  font-size: 12px;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* —— 右栏：处理事项 —— */
.mtg-todo-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-size: 12px;
}

.mtg-todo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--danger-color);
  flex-shrink: 0;
}

.mtg-todo-text {
  flex: 1;
  min-width: 0;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mtg-todo-btn {
  font-size: 11px;
  color: var(--accent-color);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  flex-shrink: 0;
  padding: 0;
  transition: color 0.2s;
}

.mtg-todo-btn:hover {
  color: var(--accent-hover);
}

/* —— 右栏：最新消息 —— */
.mtg-notice-item {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s;
}

.mtg-notice-item:last-child {
  border-bottom: none;
}

.mtg-notice-item:hover {
  background: var(--bg-hover);
}

.mtg-notice-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-color);
  flex-shrink: 0;
  margin-top: 5px;
}

.mtg-notice-body {
  flex: 1;
  min-width: 0;
}

.mtg-notice-title {
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mtg-notice-time {
  font-size: 11px;
  color: var(--text-muted);
}

/* —— 右栏：任务督办 —— */
.mtg-task-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(143, 142, 137, 0.18);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 6px;
  transition: background 0.15s;
}

.mtg-task-row:hover {
  background: rgba(143, 142, 137, 0.28);
}

.mtg-task-count {
  font-size: 16px;
  font-weight: 600;
}

.mtg-task-sub {
  display: flex;
  gap: 6px;
}

.mtg-task-cell {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.mtg-task-cell.overtime {
  background: rgba(160, 80, 60, 0.22);
  color: var(--text-primary);
}

.mtg-task-cell.warning {
  background: rgba(180, 140, 60, 0.22);
  color: var(--text-primary);
}

.mtg-task-cell.idle {
  border: 1px dashed var(--border-color);
  color: var(--text-muted);
  cursor: not-allowed;
}

.mtg-task-cell:hover:not(.idle) {
  opacity: 0.85;
}

.mtg-task-num {
  font-weight: 600;
}

/* —— 空状态 —— */
.mtg-empty {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 24px 0;
}

/* —— 滚动条 —— */
.mtg-body-left::-webkit-scrollbar,
.mtg-body-right::-webkit-scrollbar {
  width: 4px;
}

.mtg-body-left::-webkit-scrollbar-track,
.mtg-body-right::-webkit-scrollbar-track {
  background: transparent;
}

.mtg-body-left::-webkit-scrollbar-thumb,
.mtg-body-right::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}

/* —— 夜间主题微调 —— */
[data-theme="night"] .mtg-mc-status.running {
  color: #8aaa84;
}

[data-theme="night"] .mtg-mc-status.pending {
  color: #b09a60;
}

[data-theme="night"] .mtg-alert-card.running {
  background: rgba(138, 158, 134, 0.18);
}

[data-theme="night"] .mtg-alert-card.pending {
  background: rgba(200, 170, 110, 0.15);
}

[data-theme="night"] .mtg-task-cell.overtime {
  background: rgba(160, 80, 60, 0.28);
}

[data-theme="night"] .mtg-task-cell.warning {
  background: rgba(180, 140, 60, 0.25);
}

/* —— 夜间主题：日历热力适配 —— */
[data-theme="night"] .mtg-cal-cell {
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="night"] .mtg-cal-cell::before {
  background: rgba(138, 158, 134, 0.22);
}

[data-theme="night"] .mtg-cal-cell:hover {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="night"] .mtg-cal-count {
  color: rgba(255, 255, 255, 0.45);
}

/* ================================================================
 * 我的会议（MeetingMine）— 侘寂重绘
 * 对照旧平台 MineMeeting：列表 / 卡片 / 日历三视图
 * ================================================================ */

/* —— 工具栏 —— */
.mtg-mine-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.mtg-mine-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.mtg-mine-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 180px;
  flex-shrink: 0;
}

.mtg-mine-search-icon {
  position: absolute;
  left: 10px;
  color: var(--text-muted);
  pointer-events: none;
}

.mtg-mine-search input {
  width: 100%;
  padding: 7px 12px 7px 30px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
}

.mtg-mine-search input::placeholder {
  color: var(--text-muted);
}

.mtg-mine-search input:focus {
  border-color: var(--accent-color);
}

/* 日期范围筛选 */
.mtg-mine-date-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  position: relative;
}

.mtg-mine-date-field {
  position: relative;
  display: flex;
  align-items: center;
  width: 120px;
  height: 34px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  transition: border-color 0.2s;
  cursor: pointer;
}

.mtg-mine-date-field:hover {
  border-color: var(--accent-color);
}

.mtg-mine-date-field.is-active {
  border-color: var(--accent-color);
}

.mtg-mine-date-field input[type="text"] {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  outline: none;
  padding: 0 6px 0 10px;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  cursor: pointer;
  height: 100%;
}

.mtg-mine-date-field input[type="text"]::placeholder {
  color: var(--text-muted);
  font-size: 12px;
}

.mtg-mine-date-icon {
  flex-shrink: 0;
  margin-right: 8px;
  color: var(--text-muted);
  pointer-events: none;
}

.mtg-mine-date-sep {
  color: var(--text-muted);
  font-size: 13px;
  flex-shrink: 0;
}

/* —— 自定义日历弹窗 —— */
.mtg-mine-datepicker {
  position: absolute;
  top: 40px;
  left: 0;
  z-index: 50;
  width: 272px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.mtg-mine-datepicker[hidden] {
  display: none;
}

.mtg-mine-dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mtg-mine-dp-nav {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}

.mtg-mine-dp-nav:hover {
  border-color: var(--accent-color);
  color: var(--accent-hover);
}

.mtg-mine-dp-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.mtg-mine-dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.mtg-mine-dp-wd {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding: 3px 0 5px;
  font-weight: 500;
}

.mtg-mine-dp-cell {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: rgba(143, 142, 137, 0.04);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.mtg-mine-dp-cell:hover {
  background: rgba(143, 142, 137, 0.12);
}

.mtg-mine-dp-cell.is-empty {
  cursor: default;
  pointer-events: none;
  background: transparent;
}

.mtg-mine-dp-cell.is-today {
  font-weight: 600;
  color: var(--accent-hover);
  border-color: var(--accent-color);
}

.mtg-mine-dp-cell.is-selected {
  background: var(--accent-light);
  color: var(--text-primary);
  font-weight: 600;
}

.mtg-mine-dp-cell.is-in-range {
  background: rgba(143, 142, 137, 0.10);
  color: var(--text-primary);
}

.mtg-mine-dp-footer {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.mtg-mine-dp-btn {
  padding: 4px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 12px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.mtg-mine-dp-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-hover);
}

.mtg-mine-dp-btn.is-primary {
  background: var(--accent-light);
  color: var(--text-primary);
  border-color: var(--accent-color);
}

.mtg-mine-dp-btn.is-primary:hover {
  background: rgba(143, 142, 137, 0.24);
}

/* 夜间主题：日历弹窗 */
[data-theme="night"] .mtg-mine-datepicker {
  background: var(--frost-45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

[data-theme="night"] .mtg-mine-dp-cell {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="night"] .mtg-mine-dp-cell:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="night"] .mtg-mine-dp-cell.is-in-range {
  background: rgba(255, 255, 255, 0.06);
}

/* 会议类型下拉 */
.mtg-mine-tag-filter {
  flex-shrink: 0;
}

.mtg-mine-select {
  padding: 7px 28px 7px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-sans);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 34px;
  box-sizing: border-box;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%238f8e89' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.2s;
}

.mtg-mine-select:focus {
  border-color: var(--accent-color);
}

.mtg-mine-select:hover {
  border-color: var(--accent-color);
}

/* —— 升级为自定义下拉组件后的适配 —— */
.cd-wrapper.mtg-mine-select .cd-trigger {
  height: 34px;
  padding: 7px 28px 7px 12px;
  font-size: 13px;
  font-family: var(--font-sans);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
}

.cd-wrapper.mtg-mine-select .cd-trigger:hover,
.cd-wrapper.mtg-mine-select.cd-open .cd-trigger {
  border-color: var(--accent-color);
}

.cd-wrapper.mtg-mine-select .cd-list {
  right: auto;
  left: 0;
}

[data-theme="night"] .cd-wrapper.mtg-mine-select .cd-trigger {
  background: var(--frost-45);
}

/* 年/月切换 */
.mtg-mine-picker-toggle {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.mtg-mine-picker-btn {
  padding: 6px 14px;
  border: none;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.15s, color 0.15s;
}

.mtg-mine-picker-btn.is-active {
  background: var(--accent-light);
  color: var(--text-primary);
  font-weight: 600;
}

.mtg-mine-picker-btn:hover:not(.is-active) {
  background: var(--bg-hover);
}

/* 视图切换按钮组 */
.mtg-mine-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mtg-mine-view-switch {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.mtg-mine-view-btn {
  width: 34px;
  height: 32px;
  border: none;
  border-right: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.mtg-mine-view-btn:last-child {
  border-right: none;
}

.mtg-mine-view-btn:hover:not(.is-active) {
  background: var(--bg-hover);
  color: var(--text-secondary);
}

.mtg-mine-view-btn.is-active {
  background: var(--accent-light);
  color: var(--accent-hover);
}

/* —— 视图主体 —— */
.mtg-mine-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
}

.mtg-mine-pane {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.mtg-mine-pane[hidden] {
  display: none !important;
}

/* 滚动条 */
.mtg-mine-pane::-webkit-scrollbar {
  width: 4px;
}

.mtg-mine-pane::-webkit-scrollbar-track {
  background: transparent;
}

.mtg-mine-pane::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}

/* —— 列表视图 —— */
.mtg-mine-table {
  width: 100%;
}

.mtg-mine-table-row {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) 92px 78px 88px 84px 76px;
  gap: 10px;
  align-items: center;
  padding: 14px 10px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-secondary);
  transition: background 0.15s;
}

.mtg-mine-table-row:hover {
  background: var(--bg-hover);
}

.mtg-mine-table-row.is-header {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 12px;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 10px;
}

.mtg-mine-table-row.is-header:hover {
  background: transparent;
}

.mtg-mine-table-info {
  min-width: 0;
}

.mtg-mine-table-theme {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.mtg-mine-table-meta {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mtg-mine-table-tag {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mtg-mine-table-count {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.mtg-mine-table-applicant {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}

.mtg-mine-table-status {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  text-align: center;
}

.mtg-mine-table-status.running {
  background: rgba(138, 158, 134, 0.22);
  color: #5a7a54;
}

.mtg-mine-table-status.pending {
  background: rgba(180, 160, 100, 0.18);
  color: #8a7a40;
}

.mtg-mine-table-status.ended {
  background: var(--bg-hover);
  color: var(--text-muted);
}

/* —— 卡片视图 —— */
.mtg-mine-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  padding-bottom: 8px;
}

.mtg-mine-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--bg-card);
}

.mtg-mine-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.mtg-mine-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.mtg-mine-card-header.running {
  background: rgba(138, 158, 134, 0.18);
  color: var(--text-primary);
}

.mtg-mine-card-header.pending {
  background: rgba(180, 160, 100, 0.14);
  color: var(--text-primary);
}

.mtg-mine-card-header.ended {
  background: var(--bg-hover);
  color: var(--text-muted);
}

.mtg-mine-card-time {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mtg-mine-card-state {
  font-size: 12px;
  font-weight: 400;
}

.mtg-mine-card-body {
  padding: 14px;
}

.mtg-mine-card-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mtg-mine-card-room {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mtg-mine-card-people {
  font-size: 12px;
  color: var(--text-muted);
}

.mtg-mine-card-footer {
  display: flex;
  border-top: 1px solid var(--border-color);
}

.mtg-mine-card-footer span {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  font-size: 13px;
  color: var(--accent-color);
  cursor: pointer;
  border-right: 1px solid var(--border-color);
  transition: background 0.15s, color 0.15s;
}

.mtg-mine-card-footer span:last-child {
  border-right: none;
}

.mtg-mine-card-footer span:hover {
  background: var(--bg-hover);
  color: var(--accent-hover);
}

/* —— 日历视图 —— */
.mtg-mine-picker-layout {
  display: flex;
  gap: 12px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.mtg-mine-picker-cal {
  flex-shrink: 0;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mtg-mine-picker-side {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mtg-mine-picker-date {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  padding-left: 10px;
  position: relative;
  flex-shrink: 0;
}

.mtg-mine-picker-date::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 3px;
  height: 16px;
  background: var(--accent-color);
  border-radius: 2px;
}

.mtg-mine-picker-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.mtg-mine-picker-list::-webkit-scrollbar {
  display: none;
}

/* —— 年视图：12 月卡片 —— */
.mtg-mine-year-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 2px;
}

.mtg-mine-year-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(143, 142, 137, 0.04);
  transition: border-color 0.15s, background 0.15s;
  min-height: 84px;
}

.mtg-mine-year-card:hover {
  border-color: var(--accent-color);
  background: var(--bg-hover);
}

.mtg-mine-year-card.is-selected {
  background: var(--accent-light);
  border-color: var(--accent-color);
}

.mtg-mine-year-month {
  font-size: 13px;
  color: var(--text-muted);
}

.mtg-mine-year-count {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-hover);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.mtg-mine-year-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* —— 月视图日历 —— */
.mtg-mine-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.mtg-mine-month-wd {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 0 6px;
  font-weight: 500;
}

.mtg-mine-month-cell {
  min-height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3px 4px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: rgba(143, 142, 137, 0.06);
  cursor: pointer;
  font-size: 12px;
  color: var(--text-secondary);
  transition: background 0.15s, border-color 0.15s;
}

.mtg-mine-month-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(138, 158, 134, 0.40);
  opacity: var(--heat, 0);
  pointer-events: none;
  transition: opacity 0.15s;
}

.mtg-mine-month-cell {
  position: relative;
}

.mtg-mine-month-cell > * {
  position: relative;
  z-index: 1;
}

.mtg-mine-month-cell:hover {
  background: rgba(143, 142, 137, 0.14);
}

.mtg-mine-month-cell:hover::before {
  opacity: calc(var(--heat, 0) + 0.08);
}

.mtg-mine-month-cell.is-today {
  font-weight: 600;
  color: var(--accent-hover);
  border-color: var(--accent-color);
}

.mtg-mine-month-cell.is-selected {
  background: var(--accent-light);
  color: var(--text-primary);
  font-weight: 600;
}

.mtg-mine-month-cell.is-empty {
  cursor: default;
  pointer-events: none;
  background: transparent;
}

.mtg-mine-month-num {
  text-align: right;
  font-size: 12px;
  line-height: 18px;
}

.mtg-mine-month-tag {
  font-size: 10px;
  color: var(--text-muted);
}

/* —— 日历视图右侧：当日会议列表项 —— */
.mtg-mine-picker-item {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.mtg-mine-picker-item:hover {
  background: var(--accent-light);
}

.mtg-mine-picker-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.mtg-mine-picker-item-time {
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.mtg-mine-picker-item-state {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.mtg-mine-picker-item-state.running {
  background: rgba(138, 158, 134, 0.22);
  color: #5a7a54;
}

.mtg-mine-picker-item-state.pending {
  background: rgba(180, 160, 100, 0.18);
  color: #8a7a40;
}

.mtg-mine-picker-item-state.ended {
  background: var(--bg-hover);
  color: var(--text-muted);
}

.mtg-mine-picker-item-theme {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mtg-mine-picker-item-room {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* —— 空状态 —— */
.mtg-mine-empty {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 40px 0;
}

/* —— 夜间主题适配 —— */
[data-theme="night"] .mtg-mine-card-header.running {
  background: rgba(138, 158, 134, 0.14);
}

[data-theme="night"] .mtg-mine-card-header.pending {
  background: rgba(180, 160, 100, 0.12);
}

[data-theme="night"] .mtg-mine-table-status.running {
  color: #8aaa84;
}

[data-theme="night"] .mtg-mine-table-status.pending {
  color: #b09a60;
}

[data-theme="night"] .mtg-mine-picker-item-state.running {
  color: #8aaa84;
}

[data-theme="night"] .mtg-mine-picker-item-state.pending {
  color: #b09a60;
}

[data-theme="night"] .mtg-mine-year-card {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="night"] .mtg-mine-month-cell {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="night"] .mtg-mine-month-cell::before {
  background: rgba(138, 158, 134, 0.32);
}

[data-theme="night"] .mtg-mine-month-cell:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* —— 夜间主题：类型筛选器适配 —— */
[data-theme="night"] .mtg-mine-select {
  background: var(--frost-45);
  color: var(--text-primary);
}

/* ================================================================
   新建会议表单 — 侘寂重绘旧平台 AddMeetingFormComponent
   ================================================================ */

/* —— Body：左右双栏 —— */
.mtg-new-body {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 10px;
  overflow: hidden;
}

.mtg-new-left,
.mtg-new-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}
.mtg-new-left::-webkit-scrollbar,
.mtg-new-right::-webkit-scrollbar { width: 4px; }
.mtg-new-left::-webkit-scrollbar-thumb,
.mtg-new-right::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

/* —— 分节卡片 —— */
.mtg-new-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.mtg-new-section-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

/* —— 表单行 —— */
.mtg-form-row {
  margin-bottom: 14px;
}
.mtg-form-row:last-child { margin-bottom: 0; }

.mtg-form-row-2 {
  display: flex;
  gap: 12px;
}
.mtg-form-col {
  flex: 1;
  min-width: 0;
}

.mtg-form-label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  white-space: nowrap;
}

.mtg-req {
  color: var(--danger-color);
  margin-right: 2px;
}

/* —— 输入框 / 选择框 —— */
.mtg-form-input,
.mtg-form-select,
.mtg-form-textarea {
  width: 100%;
  padding: 7px 10px;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--paper-hot);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.mtg-form-input:focus,
.mtg-form-select:focus,
.mtg-form-textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px var(--accent-light);
}

.mtg-form-input::placeholder,
.mtg-form-textarea::placeholder {
  color: var(--text-muted);
}

.mtg-form-textarea {
  resize: vertical;
  min-height: 60px;
  line-height: 1.5;
}

.mtg-form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%238f8e89' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  cursor: pointer;
  height: 34px;
}

.mtg-form-select:hover {
  border-color: var(--accent-color);
}

/* —— 日期/时间输入：隐藏原生指示器，套用自定义箭头 —— */
.mtg-form-input[type="date"],
.mtg-form-input[type="time"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 34px;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%238f8e89' d='M4 1v1H3a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1h-1V1h-1v1H5V1H4zm-1 5h10v7H3V6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.mtg-form-input[type="date"]::-webkit-calendar-picker-indicator,
.mtg-form-input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  right: 0;
  width: 28px;
  height: 100%;
  cursor: pointer;
}

.mtg-form-input[type="date"]::-webkit-inner-spin-button,
.mtg-form-input[type="time"]::-webkit-inner-spin-button {
  display: none;
}

.mtg-form-input[type="time"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%238f8e89' d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1zm.75 3.5v3.75l2.75 1.65-.75 1.25-3.25-1.95V4.5h1.25z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

/* —— 时间范围 —— */
.mtg-time-range {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mtg-time-input { flex: 1; min-width: 0; }
.mtg-time-sep {
  color: var(--text-muted);
  font-size: 12px;
  flex-shrink: 0;
}

/* —— 开关 toggle —— */
.mtg-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.mtg-toggle input { display: none; }
.mtg-toggle-slider {
  width: 32px;
  height: 18px;
  background: var(--border-color);
  border-radius: 9px;
  position: relative;
  transition: background 0.25s;
}
.mtg-toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--paper-hot);
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.mtg-toggle input:checked + .mtg-toggle-slider {
  background: var(--accent-color);
}
.mtg-toggle input:checked + .mtg-toggle-slider::after {
  transform: translateX(14px);
}

.mtg-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

/* —— 复选药丸 —— */
.mtg-check-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
}
.mtg-check-chip input {
  accent-color: var(--accent-color);
  width: 13px;
  height: 13px;
  cursor: pointer;
}

.mtg-resource-checks,
.mtg-notify-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 2px;
}

/* —— 添加按钮（虚线） —— */
.mtg-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  background: none;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  margin-top: 6px;
}
.mtg-add-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}
.mtg-add-btn svg { flex-shrink: 0; }
.mtg-add-btn-sm { padding: 4px 8px; }

/* —— 会议室列表项 —— */
.mtg-room-list { display: flex; flex-direction: column; gap: 6px; }

.mtg-room-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: var(--paper-hot);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-primary);
}
.mtg-room-item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtg-room-item-del {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--danger-color);
  cursor: pointer;
  border-radius: 2px;
  font-size: 14px;
  line-height: 1;
}
.mtg-room-item-del:hover { background: rgba(193,80,75,0.1); }

/* —— 会议室选择弹窗 —— */
.mtg-room-picker[hidden],
.mtg-people-picker[hidden] {
  display: none !important;
}

.mtg-room-picker {
  position: absolute;
  z-index: 10;
  background: var(--paper-hot);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  width: 280px;
  max-height: 260px;
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}
.mtg-room-picker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.mtg-room-picker-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 18px; line-height: 1;
  padding: 0 2px;
}
.mtg-room-picker-close:hover { color: var(--text-primary); }
.mtg-room-picker-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}
.mtg-room-picker-list::-webkit-scrollbar { display: none; }
.mtg-room-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s;
}
.mtg-room-picker-item:hover { background: var(--bg-hover); }
.mtg-room-picker-item.is-selected {
  background: var(--accent-light);
  color: var(--accent-color);
}
.mtg-room-picker-item-cap { font-size: 11px; color: var(--text-muted); }

/* —— 人员标签 —— */
.mtg-people-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
}
.mtg-people-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 12px;
  color: var(--text-primary);
  background: var(--accent-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.mtg-people-tag-del {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 13px; line-height: 1;
  padding: 0; display: flex; align-items: center;
}
.mtg-people-tag-del:hover { color: var(--danger-color); }

/* —— 人员选择弹窗 —— */
.mtg-people-picker {
  position: absolute;
  z-index: 10;
  background: var(--paper-hot);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  width: 280px;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}
.mtg-people-picker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.mtg-people-picker-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 18px; line-height: 1;
  padding: 0 2px;
}
.mtg-people-picker-close:hover { color: var(--text-primary); }
.mtg-people-picker-search { padding: 8px 14px; }
.mtg-people-picker-search input {
  width: 100%;
  padding: 5px 8px;
  font-size: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--text-primary);
  outline: none;
  box-sizing: border-box;
}
.mtg-people-picker-search input:focus { border-color: var(--accent-color); }
.mtg-people-picker-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}
.mtg-people-picker-list::-webkit-scrollbar { display: none; }
.mtg-people-picker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s;
}
.mtg-people-picker-item:hover { background: var(--bg-hover); }
.mtg-people-picker-item input { accent-color: var(--accent-color); }
.mtg-people-picker-item-name { flex: 1; }
.mtg-people-picker-item-dept { font-size: 11px; color: var(--text-muted); }
.mtg-people-picker-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 14px;
  border-top: 1px solid var(--border-color);
}

/* —— 议程列表 —— */
.mtg-agenda-list { display: flex; flex-direction: column; gap: 8px; }

.mtg-agenda-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--paper-hot);
}
.mtg-agenda-item input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 4px 6px;
  font-size: 12px;
  color: var(--text-primary);
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  outline: none;
  transition: border-color 0.2s;
}
.mtg-agenda-item input[type="text"]:focus { border-bottom-color: var(--accent-color); }

/* 议程下拉：自定义组件版，宽度固定 100px */
.mtg-agenda-item .cd-wrapper.mtg-form-select {
  width: 100px;
  flex-shrink: 0;
}
.mtg-agenda-item .cd-wrapper.mtg-form-select .cd-trigger {
  padding: 4px 6px;
  font-size: 12px;
}

.mtg-agenda-item-del {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  border-radius: 2px;
}
.mtg-agenda-item-del:hover { color: var(--danger-color); background: rgba(193,80,75,0.06); }

/* —— 底部操作栏 —— */
.mtg-new-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 12px 0 0;
  border-top: 1px solid var(--border-color);
  margin-top: 8px;
}

/* —— 按钮 —— */
.mtg-btn-primary,
.mtg-btn-secondary {
  font-size: 13px;
  font-family: var(--font-sans);
  padding: 6px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.mtg-btn-primary {
  background: var(--accent-color);
  color: var(--paper-hot);
  border-color: var(--accent-color);
}
.mtg-btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.mtg-btn-secondary {
  background: none;
  color: var(--text-secondary);
  border-color: var(--border-color);
}
.mtg-btn-secondary:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* —— 夜间主题适配 —— */
[data-theme="night"] .mtg-form-input,
[data-theme="night"] .mtg-form-select,
[data-theme="night"] .mtg-form-textarea,
[data-theme="night"] .mtg-room-item,
[data-theme="night"] .mtg-agenda-item,
[data-theme="night"] .mtg-people-picker-search input,
[data-theme="night"] .mtg-room-picker,
[data-theme="night"] .mtg-people-picker {
  background: var(--frost-45);
}

[data-theme="night"] .mtg-toggle-slider {
  background: rgba(255,255,255,0.15);
}

[data-theme="night"] .mtg-new-section {
  background: var(--frost-45);
}

/* ================================================================
   我的预定 — 侘寂重绘旧平台 BookMeeting
   ================================================================ */

.meeting-book-view {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* —— 状态 Tab —— */
.mtg-book-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-color);
  padding: 0 16px;
  flex-shrink: 0;
}

.mtg-book-tab {
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}

.mtg-book-tab:hover {
  color: var(--text-secondary);
}

.mtg-book-tab.is-active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  font-weight: 500;
}

/* —— 筛选工具栏 —— */
.mtg-book-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  flex-shrink: 0;
}

.mtg-book-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.mtg-book-create {
  flex-shrink: 0;
}

/* —— 表格主体 —— */
.mtg-book-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
  padding: 0 16px 16px;
}

.mtg-book-body::-webkit-scrollbar {
  width: 4px;
}

.mtg-book-body::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

.mtg-book-table {
  width: 100%;
}

.mtg-book-table-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1.5fr) minmax(0, 1fr) 92px 78px 78px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 14px 10px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-secondary);
  transition: background 0.15s;
}

.mtg-book-table-row:hover {
  background: var(--bg-hover);
}

.mtg-book-table-row.is-header {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 12px;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 10px;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 1;
}

.mtg-book-table-row.is-header:hover {
  background: var(--bg-card);
}

.mtg-book-table-time {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}

.mtg-book-table-theme {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mtg-book-table-room {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mtg-book-table-tag {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mtg-book-table-applicant {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}

/* —— 状态 pill —— */
.mtg-book-table-status {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  text-align: center;
  display: inline-block;
}

.mtg-book-table-status.draft {
  background: rgba(180, 160, 100, 0.18);
  color: #8a7a40;
}

.mtg-book-table-status.committed {
  background: rgba(120, 140, 180, 0.18);
  color: #5a6a8a;
}

.mtg-book-table-status.pass {
  background: rgba(138, 158, 134, 0.22);
  color: #5a7a54;
}

.mtg-book-table-status.rejected {
  background: rgba(180, 100, 100, 0.18);
  color: #8a4a4a;
}

/* —— 操作按钮 —— */
.mtg-book-table-ops {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mtg-book-op {
  font-size: 12px;
  color: var(--accent-color);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s;
}

.mtg-book-op:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* —— 分页 —— */
.mtg-book-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  padding: 16px 0 4px;
  flex-shrink: 0;
}

.mtg-book-page-info {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 10px;
  white-space: nowrap;
}

.mtg-book-page-btn {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  font-size: 12px;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  font-variant-numeric: tabular-nums;
}

.mtg-book-page-btn:hover:not(:disabled):not(.is-active) {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.mtg-book-page-btn.is-active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

.mtg-book-page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* —— 夜间主题适配 —— */
[data-theme="night"] .mtg-book-table-status.draft {
  color: #b09a60;
}

[data-theme="night"] .mtg-book-table-status.committed {
  color: #8a9ab8;
}

[data-theme="night"] .mtg-book-table-status.pass {
  color: #8aaa84;
}

[data-theme="night"] .mtg-book-table-status.rejected {
  color: #b87a7a;
}

[data-theme="night"] .mtg-book-table-row.is-header {
  background: var(--frost-45);
}

[data-theme="night"] .mtg-book-page-btn.is-active {
  color: var(--text-primary);
}

/* ================================================================
   会议纪要 — 侘寂重绘旧平台 meetingNoteNew（Tab列表 + 新建/编辑 + 详情）
   ================================================================ */

.meeting-note-view {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* —— 列表面板 —— */
.mtg-note-list-pane,
.mtg-note-form-pane {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.mtg-note-list-pane[hidden],
.mtg-note-form-pane[hidden] {
  display: none;
}

/* —— 功能 Tab —— */
.mtg-note-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-color);
  padding: 0 16px;
  flex-shrink: 0;
}

.mtg-note-tab {
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}

.mtg-note-tab:hover {
  color: var(--text-secondary);
}

.mtg-note-tab.is-active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  font-weight: 500;
}

/* —— 筛选工具栏 —— */
.mtg-note-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  flex-shrink: 0;
}

.mtg-note-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.mtg-note-date-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.mtg-note-create {
  flex-shrink: 0;
}

/* —— 表格主体 —— */
.mtg-note-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
}

.mtg-note-body::-webkit-scrollbar {
  width: 4px;
}

.mtg-note-body::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

.mtg-note-table {
  width: 100%;
  flex: 1;
}

.mtg-note-table-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.4fr) minmax(90px, 0.8fr) minmax(90px, 0.8fr) minmax(70px, 0.6fr) minmax(70px, 0.7fr) minmax(70px, 0.6fr) minmax(80px, 0.7fr) 96px;
  gap: 10px;
  align-items: center;
  padding: 14px 10px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-secondary);
  transition: background 0.15s;
}

.mtg-note-table-row:hover {
  background: var(--bg-hover);
}

.mtg-note-table-row.is-header {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 12px;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 10px;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 1;
}

.mtg-note-table-row.is-header:hover {
  background: var(--bg-card);
}

.mtg-note-table-theme {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mtg-note-table-meta {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.mtg-note-table-place {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mtg-note-table-cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* —— 状态 pill —— */
.mtg-note-table-status {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  text-align: center;
  display: inline-block;
}

.mtg-note-table-status.draft {
  background: rgba(180, 160, 100, 0.18);
  color: #8a7a40;
}

.mtg-note-table-status.committed {
  background: rgba(120, 140, 180, 0.18);
  color: #5a6a8a;
}

.mtg-note-table-status.rejected {
  background: rgba(180, 100, 100, 0.18);
  color: #8a4a4a;
}

.mtg-note-table-status.approved {
  background: rgba(138, 158, 134, 0.22);
  color: #5a7a54;
}

.mtg-note-table-status.completed {
  background: rgba(138, 158, 134, 0.22);
  color: #5a7a54;
}

.mtg-note-table-status.withdrawn {
  background: rgba(150, 150, 150, 0.18);
  color: #6a6a6a;
}

/* —— 操作按钮 —— */
.mtg-note-table-ops {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mtg-note-op {
  font-size: 12px;
  color: var(--accent-color);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s;
}

.mtg-note-op:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* —— 表单面板 —— */
.mtg-note-form-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
  padding: 16px;
}

.mtg-note-form-body::-webkit-scrollbar {
  width: 4px;
}

.mtg-note-form-body::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

/* —— 夜间主题适配 —— */
[data-theme="night"] .mtg-note-table-status.draft {
  color: #b09a60;
}

[data-theme="night"] .mtg-note-table-status.committed {
  color: #8a9ab8;
}

[data-theme="night"] .mtg-note-table-status.rejected {
  color: #b87a7a;
}

[data-theme="night"] .mtg-note-table-status.approved,
[data-theme="night"] .mtg-note-table-status.completed {
  color: #8aaa84;
}

[data-theme="night"] .mtg-note-table-status.withdrawn {
  color: #9a9a9a;
}

[data-theme="night"] .mtg-note-table-row.is-header {
  background: var(--frost-45);
}

/* ========================================================
 * 会议纪要 — 详情面板（侘寂重绘 NodeDetail.vue）
 * ======================================================== */

.mtg-note-detail-pane {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.mtg-note-detail-pane[hidden] {
  display: none;
}

.mtg-note-detail-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mtg-note-detail-body::-webkit-scrollbar {
  width: 4px;
}

.mtg-note-detail-body::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

.mtg-note-detail-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mtg-note-detail-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mtg-note-detail-section-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.mtg-note-detail-badges {
  display: flex;
  gap: 6px;
}

.mtg-note-detail-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.mtg-note-detail-badge.archive {
  background: rgba(100, 140, 200, 0.15);
  color: #5a7aaa;
}

.mtg-note-detail-badge.archive.no {
  background: rgba(150, 150, 150, 0.15);
  color: var(--text-muted);
}

/* —— 纪要信息表 —— */
.mtg-note-detail-info {
  display: flex;
  flex-direction: column;
}

.mtg-note-detail-info-row {
  display: flex;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  line-height: 1.7;
}

.mtg-note-detail-info-row:last-child {
  border-bottom: none;
}

.mtg-note-detail-info-label {
  width: 80px;
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 12px;
  padding-top: 1px;
}

.mtg-note-detail-info-value {
  flex: 1;
  color: var(--text-secondary);
  word-break: break-all;
}

.mtg-note-detail-info-value.is-content {
  background: var(--bg-hover);
  border: 1px dashed var(--border-color);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  min-height: 40px;
}

/* —— 审批记录时间线 —— */
.mtg-note-history {
  display: flex;
  flex-direction: column;
  padding-left: 4px;
}

.mtg-note-history-empty {
  padding: 24px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.mtg-note-history-item {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding-bottom: 20px;
  padding-left: 28px;
}

.mtg-note-history-item:last-child {
  padding-bottom: 0;
}

.mtg-note-history-item::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: -4px;
  width: 1px;
  background: var(--border-color);
}

.mtg-note-history-item:last-child::before {
  display: none;
}

.mtg-note-history-dot {
  position: absolute;
  left: 0;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-color);
  z-index: 1;
}

.mtg-note-history-dot.reject {
  background: #c46a6a;
}

.mtg-note-history-dot.draft {
  background: var(--text-muted);
}

.mtg-note-history-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.mtg-note-history-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.mtg-note-history-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 4px;
  align-items: baseline;
}

.mtg-note-history-meta .tag {
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--bg-hover);
  font-size: 11px;
  color: var(--text-secondary);
}

.mtg-note-history-remark {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  padding: 4px 8px;
  background: var(--bg-hover);
  border-radius: 3px;
  line-height: 1.5;
}

/* —— 操作栏 —— */
.mtg-note-detail-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  min-height: 52px;
}

.mtg-note-detail-footer:empty {
  display: none;
}

.mtg-note-detail-approve-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mtg-note-detail-approve-bar input {
  flex: 1;
  height: 32px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  font-size: 13px;
  background: var(--bg-card);
  color: var(--text-primary);
}

.mtg-note-detail-approve-bar input:focus {
  outline: none;
  border-color: var(--accent-color);
}

/* —— 夜间主题适配 —— */
[data-theme="night"] .mtg-note-detail-badge.archive {
  color: #7a9aca;
}

[data-theme="night"] .mtg-note-history-dot {
  background: var(--accent-color);
}

[data-theme="night"] .mtg-note-history-dot.reject {
  background: #d48a8a;
}

/* ========================================================
 * 会议纪要 — 表单新增控件（归档开关等）
 * ======================================================== */

.mtg-form-switch-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
}

.mtg-form-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.mtg-form-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.mtg-form-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--border-color);
  border-radius: 20px;
  transition: background 0.2s;
}

.mtg-form-switch-slider::before {
  content: '';
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background: var(--bg-card);
  border-radius: 50%;
  transition: transform 0.2s;
}

.mtg-form-switch input:checked + .mtg-form-switch-slider {
  background: var(--accent-color);
}

.mtg-form-switch input:checked + .mtg-form-switch-slider::before {
  transform: translateX(16px);
}

.mtg-form-switch-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* —— 会议纪要弹窗定位覆盖（弹窗在 section 内但不在滚动容器内，需居中覆盖） —— */
.mtg-note-picker-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: 0;
  z-index: 20;
}

/* ================================================================
   会议铭牌 — 侘寂重绘旧平台 meeting-v3 nameCard
   设备列表 + 快速下发 / 单个下发 / 导入下发
   ================================================================ */

.meeting-nameplate-view {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* —— 工具栏 —— */
.mtg-np-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 0 14px;
  flex-shrink: 0;
}

.mtg-np-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.mtg-np-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* —— 表格主体 —— */
.mtg-np-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
  padding: 0 0 16px;
}

.mtg-np-body::-webkit-scrollbar {
  width: 6px;
}

.mtg-np-body::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.mtg-np-table {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* —— 表头 —— */
.mtg-np-thead {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.8fr 0.9fr 0.9fr 1.2fr 0.7fr;
  align-items: center;
  padding: 10px 14px;
  background: var(--accent-light);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

/* —— 表体 —— */
.mtg-np-tbody {
  display: flex;
  flex-direction: column;
}

.mtg-np-trow {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.8fr 0.9fr 0.9fr 1.2fr 0.7fr;
  align-items: center;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s;
}

.mtg-np-trow:last-child {
  border-bottom: none;
}

.mtg-np-trow:hover {
  background: var(--bg-hover);
}

.mtg-np-col-dev {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mtg-np-col-status,
.mtg-np-col-tpl,
.mtg-np-col-front,
.mtg-np-col-back,
.mtg-np-col-time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mtg-np-col-op {
  text-align: right;
}

.mtg-np-online {
  font-style: normal;
  font-size: 12px;
  color: var(--sage, #7a9a76);
}

.mtg-np-offline {
  font-style: normal;
  font-size: 12px;
  color: var(--danger-soft, #b0654a);
}

.mtg-np-send-btn {
  font-size: 12px;
  color: var(--accent-color);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  transition: color 0.15s;
}

.mtg-np-send-btn:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.mtg-np-empty {
  padding: 40px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* —— 弹窗遮罩 —— */
.mtg-np-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.mtg-np-modal-overlay[hidden] {
  display: none !important;
}

.mtg-np-modal {
  width: 560px;
  max-width: 100%;
  max-height: 80vh;
  background: var(--paper-hot);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mtg-np-modal-wide {
  width: 760px;
}

.mtg-np-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.mtg-np-modal-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.mtg-np-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  padding: 0 2px;
  transition: color 0.15s;
}

.mtg-np-modal-close:hover {
  color: var(--text-primary);
}

.mtg-np-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mtg-np-modal-body::-webkit-scrollbar {
  width: 5px;
}

.mtg-np-modal-body::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.mtg-np-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

/* —— 表单行 —— */
.mtg-np-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mtg-np-form-label {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.mtg-np-alert {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  text-align: center;
}

/* —— 快速下发：参会人信息 —— */
.mtg-np-attendees-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: 4px;
}

.mtg-np-attendees-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-color);
  white-space: nowrap;
  width: 40px;
  flex-shrink: 0;
}

.mtg-np-attendees-names {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* —— 快速下发：设备列表 —— */
.mtg-np-device-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  max-height: 160px;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 4px 0;
}

.mtg-np-device-list::-webkit-scrollbar {
  display: none;
}

.mtg-np-dev-check {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  width: calc(33.333% - 8px);
  min-width: 140px;
}

.mtg-np-dev-check input {
  accent-color: var(--accent-color);
  flex-shrink: 0;
}

.mtg-np-dev-check span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* —— 单个下发：面向对方开关 —— */
.mtg-np-checkbox-row {
  padding-top: 4px;
}

.mtg-np-switch-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}

.mtg-np-switch-label input {
  accent-color: var(--accent-color);
}

.mtg-np-switch-text {
  line-height: 1.4;
}

/* —— 导入下发 —— */
.mtg-np-import-tip {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--text-primary);
}

.mtg-np-import-tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--sage, #7a9a76);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
}

/* 导入预览表格 */
.mtg-np-import-table {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.mtg-np-import-thead {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  padding: 8px 12px;
  background: var(--accent-light);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.mtg-np-import-trow {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}

.mtg-np-import-trow:last-child {
  border-bottom: none;
}

.mtg-np-placeholder {
  font-style: normal;
  color: var(--text-muted);
}

.mtg-np-import-status {
  font-size: 13px;
  color: var(--text-primary);
}

/* 导入双面板 */
.mtg-np-import-panels {
  display: flex;
  gap: 12px;
}

.mtg-np-import-panel {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mtg-np-import-search {
  font-size: 12px;
  padding: 5px 8px;
}

.mtg-np-import-panel-header {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  gap: 8px;
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.mtg-np-import-panel-header span:nth-child(2),
.mtg-np-import-panel-header span:nth-child(3) {
  text-align: center;
}

.mtg-np-import-panel-body {
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: none;
}

.mtg-np-import-panel-body::-webkit-scrollbar {
  display: none;
}

.mtg-np-import-row {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  gap: 8px;
  align-items: center;
  padding: 5px 4px;
  font-size: 12px;
  color: var(--text-secondary);
  transition: background 0.15s;
}

.mtg-np-import-row:hover {
  background: var(--bg-hover);
}

.mtg-np-import-row.is-disabled {
  opacity: 0.45;
}

.mtg-np-import-check {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  overflow: hidden;
}

.mtg-np-import-check input {
  accent-color: var(--accent-color);
  flex-shrink: 0;
}

.mtg-np-import-check span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mtg-np-import-tpl {
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
}

.mtg-np-import-cur,
.mtg-np-import-disp {
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  word-break: break-all;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mtg-np-import-dev-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mtg-np-import-tpl-select {
  height: 28px;
  font-size: 11px;
  padding: 2px 6px;
}

/* —— Toast —— */
.mtg-np-toast {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 8px 20px;
  background: var(--ink);
  color: var(--paper-hot);
  font-size: 13px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  opacity: 0.92;
  animation: mtgNpToastIn 0.2s ease;
}

.mtg-np-toast[hidden] {
  display: none !important;
}

.mtg-np-toast.is-warn {
  background: #8a7a40;
}

.mtg-np-toast.is-error {
  background: #8a4a3a;
}

@keyframes mtgNpToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 0.92; transform: translateX(-50%) translateY(0); }
}

/* —— 夜间主题适配 —— */
[data-theme="night"] .mtg-np-modal {
  background: var(--frost-45);
}

[data-theme="night"] .mtg-np-toast {
  background: var(--ink);
  color: var(--paper);
}

/* ================================================================
 * 会议计划（MeetingPlan）— 侘寂重绘旧平台 meeting-v3 plan
 * ================================================================ */

/* —— 工具栏 —— */
.mtg-plan-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.mtg-plan-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mtg-plan-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mtg-plan-date-filter {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mtg-plan-date-input {
  width: 130px;
  font-size: 12px;
  padding: 6px 8px;
}

/* —— scope 切换（全部/我的创建/我的计划）—— */
.mtg-plan-scope-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
}

.mtg-plan-scope-btn {
  padding: 4px 12px;
  font-size: 12px;
  font-family: var(--font-sans);
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.mtg-plan-scope-btn:hover {
  color: var(--text-secondary);
}

.mtg-plan-scope-btn.is-active {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* —— 年/月切换（日历模式）—— */
.mtg-plan-picker-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
}

.mtg-plan-picker-btn {
  padding: 4px 12px;
  font-size: 12px;
  font-family: var(--font-sans);
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
}

.mtg-plan-picker-btn:hover {
  color: var(--text-secondary);
}

.mtg-plan-picker-btn.is-active {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 500;
}

/* —— 视图主体 —— */
.mtg-plan-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mtg-plan-pane {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.mtg-plan-pane::-webkit-scrollbar {
  display: none;
}

/* —— 列表表格 —— */
.mtg-plan-table {
  width: 100%;
}

.mtg-plan-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 100px minmax(0, 1fr) 130px minmax(0, 0.8fr);
  gap: 10px;
  align-items: center;
  padding: 14px 10px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-secondary);
  transition: background 0.15s;
}

.mtg-plan-table-row:hover {
  background: var(--bg-hover);
}

.mtg-plan-table-row.is-header {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 12px;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 10px;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 1;
}

.mtg-plan-table-row.is-header:hover {
  background: var(--bg-card);
}

.mtg-plan-table-name {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mtg-plan-table-tag {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mtg-plan-table-cycle {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.mtg-plan-table-creator {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mtg-plan-table-recent {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mtg-plan-table-ops {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.mtg-plan-op {
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.mtg-plan-op:hover {
  opacity: 0.75;
}

.mtg-plan-op.create {
  color: var(--accent-color);
}

.mtg-plan-op.edit {
  color: var(--accent-color);
}

.mtg-plan-op.delete {
  color: var(--danger-color);
}

.mtg-plan-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 60px 0;
}

/* —— 日历视图 —— */
.mtg-plan-picker-content {
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
}

.mtg-plan-picker-content::-webkit-scrollbar {
  display: none;
}

/* 月视图 */
.mtg-plan-month-grid {
  width: 100%;
}

.mtg-plan-month-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}

.mtg-plan-month-header > div {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 0;
}

.mtg-plan-month-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.mtg-plan-day-cell {
  min-height: 100px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  padding: 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.mtg-plan-day-cell.empty {
  background: transparent;
  min-height: 100px;
}

.mtg-plan-day-num {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 2px;
}

.mtg-plan-day-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 2px;
  background: var(--bg-card);
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s;
}

.mtg-plan-day-item:hover {
  background: var(--bg-hover);
}

.mtg-plan-day-item-cycle {
  color: var(--accent-color);
  flex-shrink: 0;
  font-weight: 500;
}

.mtg-plan-day-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.mtg-plan-day-more {
  font-size: 11px;
  color: var(--accent-color);
  cursor: pointer;
  padding: 2px 6px;
  text-align: left;
}

.mtg-plan-day-more:hover {
  opacity: 0.75;
}

/* 年视图 */
.mtg-plan-year-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mtg-plan-year-card {
  width: calc((100% - 24px) / 3);
  min-height: 140px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.mtg-plan-year-month {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.mtg-plan-year-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 2px;
  background: var(--bg-card);
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
}

.mtg-plan-year-item:hover {
  background: var(--bg-hover);
}

.mtg-plan-year-item-cycle {
  color: var(--accent-color);
  flex-shrink: 0;
  font-weight: 500;
}

.mtg-plan-year-more {
  font-size: 11px;
  color: var(--accent-color);
  cursor: pointer;
  margin-top: 4px;
}

/* —— 弹窗（创建/编辑计划）—— */
.mtg-plan-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.mtg-plan-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mtg-plan-modal {
  width: 640px;
  max-height: 80vh;
  background: var(--paper-hot);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateY(12px);
  transition: transform 0.2s;
  overflow: hidden;
}

.mtg-plan-modal-overlay.is-open .mtg-plan-modal {
  transform: translateY(0);
}

.mtg-plan-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.mtg-plan-modal-title {
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-display);
  color: var(--text-primary);
}

.mtg-plan-modal-close {
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}

.mtg-plan-modal-close:hover {
  color: var(--text-primary);
}

.mtg-plan-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: none;
}

.mtg-plan-modal-body::-webkit-scrollbar {
  display: none;
}

.mtg-plan-modal-section-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-left: 8px;
  position: relative;
}

.mtg-plan-modal-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  background: var(--accent-color);
  border-radius: 1px;
}

.mtg-plan-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

/* ========================================================
 * 会议室日程（meeting-room-schedule-view）
 * 侘寂重绘旧平台 meetingDays 时间轴甘特图
 * ======================================================== */

/* —— 工具栏 —— */
.mtg-rs-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 0 14px;
  flex-shrink: 0;
}

.mtg-rs-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.mtg-rs-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mtg-rs-today-btn {
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.mtg-rs-today-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-hover);
}

.mtg-rs-day-nav {
  display: flex;
  gap: 4px;
}

.mtg-rs-day-nav button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  line-height: 1;
}

.mtg-rs-day-nav button:hover {
  border-color: var(--accent-color);
  color: var(--accent-hover);
}

.mtg-rs-date-input,
.mtg-rs-cap-input {
  padding: 5px 8px;
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s;
}

.mtg-rs-date-input { width: 130px; }
.mtg-rs-cap-input  { width: 90px; }

.mtg-rs-date-input:focus,
.mtg-rs-cap-input:focus {
  border-color: var(--accent-color);
}

.mtg-rs-search-btn {
  padding: 6px 16px;
  font-size: 13px;
  white-space: nowrap;
}

.mtg-rs-date-label {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* —— 主体：时间轴 —— */
.mtg-rs-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* —— 单一滚动区（表头 sticky 在内，与格子同宽） —— */
.mtg-rs-scroll-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.mtg-rs-scroll-body::-webkit-scrollbar { width: 6px; height: 6px; }
.mtg-rs-scroll-body::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }

.mtg-rs-head-row {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--paper-hot);
  border-bottom: 1px solid var(--border-color);
}

.mtg-rs-data {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.mtg-rs-room-col-header {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary, var(--text-muted));
  background: var(--paper-hot);
  border-right: 1px solid var(--border-color);
  box-sizing: border-box;
}

.mtg-rs-time-header {
  flex: 1;
  min-width: 0;
  position: relative;
}

.mtg-rs-time-header-cells {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  position: relative;
  z-index: 1;
}

.mtg-rs-time-cell {
  min-width: 0;
  text-align: center;
  padding: 10px 0;
  font-size: 11px;
  color: var(--text-muted);
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* 竖线只画一遍：表头/网格各一层 15 条（1/16…15/16），格子本身无 border */
.mtg-rs-vlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.mtg-rs-vlines i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px solid var(--border-color);
}

/* —— 左侧会议室列 —— */
.mtg-rs-room-col {
  width: 200px;
  flex-shrink: 0;
  overflow: hidden;
  border-right: 1px solid var(--border-color);
  box-sizing: border-box;
}

.mtg-rs-room-item {
  height: 80px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.15s;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mtg-rs-room-item:last-child { border-bottom: none; }

.mtg-rs-room-item:hover {
  background: var(--accent-light, rgba(122, 117, 104, 0.04));
}

.mtg-rs-room-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mtg-rs-room-type {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  padding: 1px 6px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  line-height: 1.4;
}

.mtg-rs-room-addr {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.mtg-rs-room-equip {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.mtg-rs-equip {
  font-size: 10px;
  color: var(--sage, #7a9a76);
  padding: 1px 6px;
  line-height: 1.4;
  background: rgba(122, 154, 118, 0.08);
  border-radius: var(--radius-sm);
}

/* —— 右侧时间轴网格 —— */
.mtg-rs-time-grid {
  flex: 1;
  min-width: 0;
  position: relative;
}

.mtg-rs-row {
  height: 80px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  box-sizing: border-box;
}

.mtg-rs-row:last-child { border-bottom: none; }

/* —— 会议块（甘特条） —— */
.mtg-rs-block {
  position: absolute;
  top: 8px;
  bottom: 8px;
  z-index: 1;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: filter 0.15s;
  min-width: 0;
  padding: 0 6px;
  box-sizing: border-box;
  background: rgba(122, 154, 118, 0.35);
  font-size: 12px;
  color: var(--text-primary);
  text-align: center;
  white-space: nowrap;
}

.mtg-rs-block:hover {
  filter: brightness(0.96);
}

.mtg-rs-block.is-running {
  background: rgba(122, 154, 118, 0.55);
}

.mtg-rs-block.is-ended {
  background: rgba(143, 142, 137, 0.22);
}

.mtg-rs-block-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  max-width: 100%;
}

.mtg-rs-block-time {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* —— 空状态 —— */
.mtg-rs-empty {
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* —— 会议详情弹窗 —— */
.mtg-rs-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.mtg-rs-modal-overlay[hidden] {
  display: none !important;
}

/* —— 悬停提示（对齐壳层 .ui-tip 侘寂 paper，随 data-theme） —— */
.mtg-rs-tooltip {
  position: fixed;
  z-index: 1100;
  background: var(--paper-hot);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-line;
  max-width: 220px;
  pointer-events: none;
  box-shadow: var(--shadow-soft);
}

.mtg-rs-tooltip[hidden] {
  display: none !important;
}

.mtg-rs-modal {
  width: 800px;
  max-width: calc(100vw - 48px);
  max-height: 80vh;
  background: var(--bg-card, #fff);
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.mtg-rs-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.mtg-rs-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 12px;
}

.mtg-rs-modal-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.mtg-rs-modal-close:hover {
  color: var(--text-primary);
  background: var(--accent-light, rgba(122, 117, 104, 0.06));
}

.mtg-rs-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: none;
}

.mtg-rs-modal-body::-webkit-scrollbar { display: none; }

.mtg-rs-detail-line {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 12px;
  word-break: break-all;
}

.mtg-rs-detail-line:last-child {
  margin-bottom: 0;
}

.mtg-rs-detail-line strong {
  font-weight: 600;
  color: var(--text-primary);
}

.mtg-rs-modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

.mtg-rs-btn-danger {
  font-size: 13px;
  font-family: var(--font-sans);
  padding: 6px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid rgba(168, 92, 88, 0.4);
  background: none;
  color: var(--danger-color);
}

.mtg-rs-btn-danger:hover {
  background: rgba(168, 92, 88, 0.08);
  border-color: var(--danger-color);
}

.mtg-rs-modal-footer [hidden] {
  display: none !important;
}

/* ================================================================
   会议详情（meeting-detail-view）
   侘寂重绘旧平台 meeting-v3 meetingDetails
   ================================================================ */

.meeting-detail-view {
  overflow: hidden;
}

.mtg-md-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.mtg-md-top {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex: 1.15 1 0;
  min-height: 0;
}

.mtg-md-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 20px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.mtg-md-tools {
  width: 25%;
  min-width: 200px;
  max-width: 280px;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 14px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.mtg-md-bottom {
  flex: 1 1 200px;
  min-height: 180px;
  display: flex;
  gap: 10px;
}

.mtg-md-agenda {
  flex: 1 1 240px;
  width: auto;
  max-width: 380px;
  min-width: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 18px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.mtg-md-files {
  flex: 2 1 360px;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 16px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.mtg-md-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.mtg-md-head-main {
  flex: 1;
  min-width: 0;
}

.mtg-md-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mtg-md-theme {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.mtg-md-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  background: rgba(138, 158, 134, 0.22);
  color: #5a7a54;
  flex-shrink: 0;
}

.mtg-md-state.is-pending {
  background: rgba(180, 160, 100, 0.18);
  color: #8a7a40;
}

.mtg-md-state.is-ended {
  background: var(--bg-hover);
  color: var(--text-muted);
}

.mtg-md-state-divider {
  width: 1px;
  height: 12px;
  background: currentColor;
  opacity: 0.35;
}

.mtg-md-checkin-ok { color: #5a7a54; }
.mtg-md-checkin-no { color: var(--text-muted); }

.mtg-md-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 0;
  max-width: 520px;
}

.mtg-md-progress-label {
  font-size: 13px;
  color: var(--text-primary);
  flex-shrink: 0;
}

.mtg-md-progress-track {
  flex: 1;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-hover);
  overflow: hidden;
  min-width: 80px;
}

.mtg-md-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: rgba(122, 154, 118, 0.75);
}

.mtg-md-progress-pct {
  font-size: 12px;
  color: var(--text-muted);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

.mtg-md-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 2px;
}

.mtg-md-actions .mtg-btn-primary,
.mtg-md-actions .mtg-btn-secondary,
.mtg-md-actions .mtg-rs-btn-danger {
  padding: 4px 12px;
  font-size: 12px;
}

.mtg-md-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 14px;
}

.mtg-md-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.6;
}

.mtg-md-field.is-span-2 { grid-column: span 2; }
.mtg-md-field.is-span-3 { grid-column: 1 / -1; }
.mtg-md-field.is-empty { visibility: hidden; pointer-events: none; }

.mtg-md-field-label {
  flex-shrink: 0;
  width: 72px;
  color: var(--text-secondary);
}

.mtg-md-field-label strong {
  color: var(--text-primary);
  font-weight: 600;
}

.mtg-md-field-val {
  color: var(--text-primary);
  min-width: 0;
  overflow-wrap: anywhere;
}

.mtg-md-person.un-joined {
  color: var(--text-muted);
}

.mtg-md-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
}

.mtg-md-tool-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mtg-md-tool-card {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: transparent;
  text-align: left;
  font-family: var(--font-sans);
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.mtg-md-tool-card:hover {
  border-color: var(--accent-color);
  background: var(--accent-light);
}

.mtg-md-tool-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 6px;
  background: rgba(122, 154, 118, 0.18);
  color: #5a7a54;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.mtg-md-tool-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.mtg-md-tool-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.45;
}

.mtg-md-tool-back {
  font-size: 12px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-sans);
}

.mtg-md-tool-back:hover { color: var(--text-primary); }

.mtg-md-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mtg-md-timeline li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  padding-bottom: 16px;
}

.mtg-md-timeline li:last-child {
  padding-bottom: 0;
}

.mtg-md-tl-rail {
  position: relative;
  width: 12px;
  min-height: 1.6em;
}

.mtg-md-tl-rail::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(122, 154, 118, 0.9);
  z-index: 1;
}

.mtg-md-timeline li:not(:last-child) .mtg-md-tl-rail::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 15px;
  bottom: -16px;
  width: 2px;
  background: rgba(122, 154, 118, 0.35);
}

.mtg-md-tip-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.mtg-md-tip-name {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.mtg-md-tl-body {
  min-width: 0;
}

.mtg-md-empty {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
}

.mtg-md-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
}

.mtg-md-file-act {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 0;
}

.mtg-md-file-act:hover { color: var(--text-primary); }

.mtg-md-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line, rgba(46, 46, 43, 0.06));
  font-size: 13px;
}

.mtg-md-file-item:last-child { border-bottom: none; }

.mtg-md-file-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text-primary);
}

.mtg-md-file-kind {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--bg-hover);
  color: var(--text-muted);
  flex-shrink: 0;
  text-transform: uppercase;
}

.mtg-md-file-kind.is-agenda {
  background: rgba(122, 154, 118, 0.18);
  color: #5a7a54;
}

.mtg-md-file-ops {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.mtg-md-file-ops button {
  font-size: 12px;
  padding: 2px 8px;
}

.mtg-md-folder-children {
  padding-left: 22px;
}

.mtg-md-vote-card,
.mtg-md-task-card,
.mtg-md-note-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 8px;
}

.mtg-md-vote-title {
  font-size: 13px;
  font-weight: 600;
  margin: 4px 0 6px;
}

.mtg-md-vote-meta,
.mtg-md-task-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.mtg-md-drawer-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  justify-content: flex-end;
}

.mtg-md-drawer-overlay[hidden] {
  display: none !important;
}

.mtg-md-drawer {
  width: 280px;
  max-width: 80%;
  height: 100%;
  background: var(--bg-card, #fff);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.mtg-md-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  font-weight: 600;
}

.mtg-md-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.mtg-md-checkin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  font-size: 13px;
}

.mtg-md-checkin-row.is-in { color: #5a7a54; }

.mtg-md-proxy {
  background: none;
  border: none;
  color: var(--cement-deep);
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-sans);
}

.mtg-md-toast {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  padding: 8px 20px;
  background: var(--ink);
  color: var(--paper-hot);
  font-size: 13px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  opacity: 0.92;
}

.mtg-md-toast[hidden] {
  display: none !important;
}

[data-theme="night"] .mtg-md-state {
  background: rgba(138, 158, 134, 0.28);
  color: #b5c9b0;
}

[data-theme="night"] .mtg-md-state.is-pending {
  background: rgba(180, 160, 100, 0.22);
  color: #d4c48a;
}

/* ================================================================
   会议室管理 — 侘寂重绘旧平台 meeting-v3 MeetingConfigList + AddNewMeeting + Detail
   ================================================================ */

.meeting-room-view {
  overflow: hidden;
}

/* [hidden] must override display:flex (CSS spec: explicit display wins over HTML hidden attr) */
.mtg-room-list-view[hidden],
.mtg-room-form-view[hidden],
.mtg-room-detail-overlay[hidden],
.mtg-room-confirm-overlay[hidden] {
  display: none !important;
}

/* —— 列表视图 —— */
.mtg-room-list-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.mtg-room-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.mtg-room-filter-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mtg-room-filter-input {
  width: 200px;
}

.mtg-room-filter-select {
  width: 160px;
}

/* —— 表格 —— */
.mtg-room-table-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.mtg-room-thead {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1.8fr 1fr 1fr 1fr;
  gap: 8px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: var(--paper-hot);
  z-index: 1;
}

.mtg-room-tbody {
  display: flex;
  flex-direction: column;
}

.mtg-room-group-header {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}

.mtg-room-trow {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1.8fr 1fr 1fr 1fr;
  gap: 8px;
  padding: 12px;
  font-size: 13px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  transition: background 0.15s;
}

.mtg-room-trow:hover {
  background: var(--bg-hover);
}

.mtg-room-trow .mtg-room-col-name {
  cursor: pointer;
  color: var(--accent-color);
  font-weight: 500;
}

.mtg-room-trow .mtg-room-col-name:hover {
  text-decoration: underline;
}

.mtg-room-equipment-tag {
  display: inline-block;
  padding: 1px 8px;
  font-size: 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  margin: 1px 2px;
  white-space: nowrap;
}

.mtg-room-status-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.mtg-room-status-AVAILABLE {
  color: var(--accent-color);
  background: rgba(138, 158, 134, 0.14);
}

.mtg-room-status-OCCUPIED {
  color: #c4882a;
  background: rgba(196, 136, 42, 0.12);
}

.mtg-room-status-DISCARDED {
  color: var(--danger-color);
  background: rgba(221, 55, 48, 0.10);
}

.mtg-room-action-btn {
  font-size: 12px;
  color: var(--accent-color);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  transition: color 0.15s;
}

.mtg-room-action-btn:hover {
  text-decoration: underline;
}

.mtg-room-action-btn.mtg-room-action-delete {
  color: var(--danger-color);
  margin-left: 8px;
}

.mtg-room-empty {
  padding: 40px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* —— 分页 —— */
.mtg-room-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  flex-shrink: 0;
}

.mtg-room-page-btn {
  min-width: 28px;
  height: 28px;
  font-size: 12px;
  border: 1px solid var(--border-color);
  background: var(--paper-hot);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.mtg-room-page-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.mtg-room-page-btn.is-active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--paper-hot);
}

.mtg-room-page-info {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 8px;
}

/* —— 表单视图 —— */
.mtg-room-form-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.mtg-room-form-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  gap: 0;
}

.mtg-room-form-section {
  flex: 1;
  padding: 20px 24px;
  min-width: 0;
}

.mtg-room-form-section:first-child {
  border-right: 1px solid var(--border-color);
}

.mtg-room-form-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 18px;
}

/* —— 复选框组 —— */
.mtg-room-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.mtg-room-checkbox-group label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.mtg-room-checkbox-group input[type="checkbox"] {
  accent-color: var(--accent-color);
}

/* —— 其他设备 —— */
.mtg-room-other-device {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mtg-room-other-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mtg-room-other-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  background: var(--bg-card);
}

.mtg-room-other-tag-close {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1;
}

.mtg-room-other-tag-close:hover {
  color: var(--danger-color);
}

.mtg-room-other-add {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mtg-room-other-input {
  flex: 1;
}

.mtg-room-other-confirm {
  white-space: nowrap;
  padding: 6px 12px;
}

.mtg-room-add-device-btn {
  font-size: 12px;
  color: var(--accent-color);
  background: none;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  cursor: pointer;
  transition: border-color 0.15s;
  align-self: flex-start;
}

.mtg-room-add-device-btn:hover {
  border-color: var(--accent-color);
}

/* —— 时间范围 —— */
.mtg-room-time-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mtg-room-time-range .mtg-form-input {
  flex: 1;
}

.mtg-room-time-sep {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* —— 表单底部 —— */
.mtg-room-form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 24px;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

/* —— 详情抽屉 —— */
.mtg-room-detail-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 10;
  display: flex;
  justify-content: flex-end;
}

.mtg-room-detail-drawer {
  width: 360px;
  background: var(--paper-hot);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08);
}

.mtg-room-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.mtg-room-detail-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.mtg-room-detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.mtg-room-detail-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.mtg-room-detail-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.mtg-room-detail-address {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.mtg-room-detail-capacity {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.mtg-room-detail-capacity-label {
  width: 120px;
}

.mtg-room-detail-capacity-value {
  color: var(--accent-color);
  font-weight: 500;
}

.mtg-room-detail-section-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.mtg-room-detail-device-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.mtg-room-detail-device-check {
  color: var(--accent-color);
}

/* —— 确认弹窗 —— */
.mtg-room-confirm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mtg-room-confirm-modal {
  background: var(--paper-hot);
  border-radius: var(--radius-md);
  padding: 24px;
  min-width: 320px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.mtg-room-confirm-text {
  font-size: 14px;
  color: var(--text-primary);
  margin: 0 0 20px;
}

.mtg-room-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* —— Toast —— */
.mtg-room-toast {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 20px;
  font-size: 13px;
  color: var(--paper-hot);
  background: var(--accent-color);
  border-radius: var(--radius-sm);
  z-index: 20;
  opacity: 0;
  transition: opacity 0.2s;
}

.mtg-room-toast:not([hidden]) {
  opacity: 1;
}

.mtg-room-toast.is-error {
  background: var(--danger-color);
}

/* —— 多选 select —— */
#mtg-rm-admin {
  min-height: 80px;
}

#mtg-rm-admin option {
  padding: 4px 8px;
}

/* —— 夜间主题适配 —— */
[data-theme="night"] .mtg-room-detail-drawer,
[data-theme="night"] .mtg-room-confirm-modal {
  background: var(--frost-45);
}

[data-theme="night"] .mtg-room-thead {
  background: var(--frost-45);
}

/* ================================================================
   大会邀约（MeetingInvite）— 侘寂重绘旧平台 replyManage
   ================================================================ */

/* —— 统计卡片 —— */
.mtg-inv-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  flex-shrink: 0;
  margin-bottom: 16px;
}

.mtg-inv-stat-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: border-color 0.2s;
}

.mtg-inv-stat-card--all {
  background: linear-gradient(135deg, rgba(143, 142, 137, 0.06) 0%, rgba(143, 142, 137, 0.03) 100%);
}

.mtg-inv-stat-card--confirmed {
  background: linear-gradient(135deg, rgba(138, 158, 134, 0.10) 0%, rgba(138, 158, 134, 0.04) 100%);
}

.mtg-inv-stat-card--declined {
  background: linear-gradient(135deg, rgba(168, 92, 88, 0.08) 0%, rgba(168, 92, 88, 0.03) 100%);
}

.mtg-inv-stat-card--pending {
  background: linear-gradient(135deg, rgba(193, 162, 98, 0.08) 0%, rgba(193, 162, 98, 0.03) 100%);
}

.mtg-inv-stat-count {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 4px;
}

.mtg-inv-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* —— 工具栏 —— */
.mtg-inv-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  margin-bottom: 12px;
}

.mtg-inv-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mtg-inv-tab {
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.mtg-inv-tab:hover {
  color: var(--text-secondary);
}

.mtg-inv-tab.is-active {
  background: var(--accent-light);
  color: var(--accent-color);
  font-weight: 500;
}

.mtg-inv-tab-count {
  font-size: 12px;
  opacity: 0.7;
}

.mtg-inv-export {
  flex-shrink: 0;
}

/* —— 筛选栏 —— */
.mtg-inv-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-bottom: 14px;
  flex-wrap: nowrap;
  overflow: visible;
}

.mtg-inv-search {
  flex: 1;
  min-width: 120px;
}

.mtg-inv-select {
  width: 130px;
  flex-shrink: 0;
}

/* CustomDropdown wrapper 继承了 select 的类名，需覆盖 .cd-wrapper.mtg-form-select 的 width:100%；
   视觉壳只留在 .cd-trigger，避免与 .mtg-form-select 边框/内边距叠影 */
.cd-wrapper.mtg-inv-select {
  width: 130px;
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: none;
  background-image: none;
  height: auto;
  box-shadow: none;
}

.cd-wrapper.mtg-inv-select .cd-trigger {
  width: 100%;
  height: 34px;
  box-sizing: border-box;
}

/* —— 表格 —— */
.mtg-inv-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mtg-inv-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}

.mtg-inv-table-wrap::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.mtg-inv-table-wrap::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.mtg-inv-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.mtg-inv-table {
  width: 100%;
  min-width: 720px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
}

.mtg-inv-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 12px;
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  vertical-align: middle;
}

.mtg-inv-table tbody td {
  padding: 10px 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.mtg-inv-table tbody tr:hover td {
  background: var(--bg-hover);
}

/* 短列固定宽；单位/会议不设宽，吃掉剩余空间，避免空白摊进手机号、人数 */
.mtg-inv-col-status { width: 88px; }
.mtg-inv-col-name   { width: 64px; }
.mtg-inv-col-company { width: auto; }
.mtg-inv-col-position { width: 96px; }
.mtg-inv-col-phone  { width: 118px; }
.mtg-inv-col-count  { width: 80px; }
.mtg-inv-col-meeting { width: auto; }
.mtg-inv-col-time   { width: 100px; }

.mtg-inv-table .mtg-inv-col-count {
  text-align: center;
}

.mtg-inv-table .mtg-inv-col-phone,
.mtg-inv-table .mtg-inv-col-time {
  font-variant-numeric: tabular-nums;
}

.mtg-inv-table td.mtg-inv-col-status {
  overflow: visible;
}

/* —— 状态标签 —— */
.mtg-inv-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
}

.mtg-inv-status--confirmed {
  color: #5a8a52;
  background: rgba(138, 158, 134, 0.14);
}

.mtg-inv-status--declined {
  color: #a85c58;
  background: rgba(168, 92, 88, 0.12);
}

.mtg-inv-status--pending {
  color: #b89a5e;
  background: rgba(193, 162, 98, 0.14);
}

/* —— 空行 —— */
.mtg-inv-empty-row td {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* —— 分页 —— */
.mtg-inv-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  padding: 12px 0 4px;
  flex-shrink: 0;
}

.mtg-inv-page-btn {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-sans);
}

.mtg-inv-page-btn:hover:not(.is-disabled):not(.is-active) {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.mtg-inv-page-btn.is-active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--paper-hot);
  font-weight: 500;
}

.mtg-inv-page-btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* —— 夜间主题适配 —— */
[data-theme="night"] .mtg-inv-stat-card {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="night"] .mtg-inv-stat-card--all {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
}

[data-theme="night"] .mtg-inv-stat-card--confirmed {
  background: linear-gradient(135deg, rgba(138, 158, 134, 0.12) 0%, rgba(138, 158, 134, 0.05) 100%);
}

[data-theme="night"] .mtg-inv-stat-card--declined {
  background: linear-gradient(135deg, rgba(168, 92, 88, 0.10) 0%, rgba(168, 92, 88, 0.04) 100%);
}

[data-theme="night"] .mtg-inv-stat-card--pending {
  background: linear-gradient(135deg, rgba(193, 162, 98, 0.10) 0%, rgba(193, 162, 98, 0.04) 100%);
}

[data-theme="night"] .mtg-inv-status--confirmed {
  color: #8aaa82;
  background: rgba(138, 158, 134, 0.18);
}

[data-theme="night"] .mtg-inv-status--declined {
  color: #c87a76;
  background: rgba(168, 92, 88, 0.16);
}

[data-theme="night"] .mtg-inv-status--pending {
  color: #d4b87a;
  background: rgba(193, 162, 98, 0.18);
}

[data-theme="night"] .mtg-inv-table thead th {
  background: var(--frost-45);
}

/* ================================================================
   会务管理 — 侘寂重绘旧平台 meeting-v3 huiwu
   状态切换 + 日期范围 + 表格 + 分页 + 已完成操作
   ================================================================ */

/* —— 工具栏 —— */
.mtg-svc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.mtg-svc-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mtg-svc-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* —— 日期范围 —— */
.mtg-svc-date-range {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mtg-svc-date-field {
  position: relative;
}

.mtg-svc-date-field.is-active::after {
  content: '';
  position: absolute;
  inset: -2px;
  border: 1px solid var(--accent-color);
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.mtg-svc-date-input {
  width: 120px;
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s;
}

.mtg-svc-date-input:hover {
  border-color: var(--accent-color);
}

.mtg-svc-date-input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.mtg-svc-date-sep {
  color: var(--text-muted);
  font-size: 12px;
}

/* —— 状态切换按钮组 —— */
.mtg-svc-status-toggle {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 32px;
}

.mtg-svc-status-btn {
  padding: 0 14px;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 32px;
  transition: background 0.15s, color 0.15s;
}

.mtg-svc-status-btn.is-active {
  background: var(--accent-color);
  color: #fff;
}

/* —— 日期选择器弹窗 —— */
.mtg-svc-datepicker {
  position: absolute;
  z-index: 10;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 14px;
  width: 280px;
  margin-left: 0;
}

.mtg-svc-dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mtg-svc-dp-nav {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}

.mtg-svc-dp-nav:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.mtg-svc-dp-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.mtg-svc-dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.mtg-svc-dp-wd {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 0;
}

.mtg-svc-dp-cell {
  height: 30px;
  border: none;
  background: none;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  font-variant-numeric: tabular-nums;
}

.mtg-svc-dp-cell.is-empty {
  cursor: default;
}

.mtg-svc-dp-cell:not(.is-empty):hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.mtg-svc-dp-cell.is-today {
  font-weight: 600;
  color: var(--accent-color);
}

.mtg-svc-dp-cell.is-selected {
  background: var(--accent-color);
  color: #fff;
}

.mtg-svc-dp-cell.is-in-range {
  background: var(--accent-light);
  color: var(--text-primary);
}

.mtg-svc-dp-footer {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 10px;
}

.mtg-svc-dp-btn {
  padding: 4px 10px;
  font-size: 12px;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.mtg-svc-dp-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.mtg-svc-dp-btn.is-primary {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

.mtg-svc-dp-btn.is-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* —— 表格主体 —— */
.mtg-svc-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mtg-svc-table {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.mtg-svc-table::-webkit-scrollbar {
  display: none;
}

.mtg-svc-table-row {
  display: grid;
  gap: 10px;
  align-items: center;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-secondary);
  transition: background 0.15s;
}

.mtg-svc-table-row:hover {
  background: var(--bg-hover);
}

.mtg-svc-table-row.is-header {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 12px;
  padding: 8px 10px;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 1;
}

.mtg-svc-table-row.is-header:hover {
  background: var(--bg-card);
}

.mtg-svc-room {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mtg-svc-meeting-status {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.mtg-svc-user {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.mtg-svc-handler {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mtg-svc-time {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mtg-svc-note {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mtg-svc-demands {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mtg-svc-demand-item {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.mtg-svc-demand-note {
  color: var(--text-muted);
  margin-left: 4px;
}

.mtg-svc-muted {
  color: var(--text-muted);
}

/* —— 状态 pill —— */
.mtg-svc-status-pill {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  display: inline-block;
}

.mtg-svc-status-pill.pending {
  background: rgba(193, 162, 98, 0.18);
  color: #8a7a40;
}

.mtg-svc-status-pill.handled {
  background: rgba(138, 158, 134, 0.22);
  color: #5a7a54;
}

/* —— 已完成按钮 —— */
.mtg-svc-finish-btn {
  font-size: 12px;
  font-family: var(--font-sans);
  color: var(--accent-color);
  background: transparent;
  border: 1px solid var(--accent-color);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.mtg-svc-finish-btn:hover {
  background: var(--accent-color);
  color: #fff;
}

/* —— 空状态 —— */
.mtg-svc-empty {
  padding: 60px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* —— 分页 —— */
.mtg-svc-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  padding: 12px 0 4px;
  flex-shrink: 0;
}

.mtg-svc-page-info {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 10px;
  white-space: nowrap;
}

.mtg-svc-page-btn {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  font-size: 12px;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  font-variant-numeric: tabular-nums;
}

.mtg-svc-page-btn:hover:not(:disabled):not(.is-active) {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.mtg-svc-page-btn.is-active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

.mtg-svc-page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.mtg-svc-page-ellipsis {
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 4px;
}

/* —— toast —— */
.mtg-svc-toast {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: #fff;
  font-size: 13px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  z-index: 20;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  animation: mtgSvcToastIn 0.2s ease;
}

@keyframes mtgSvcToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* —— 夜间主题适配 —— */
[data-theme="night"] .mtg-svc-status-pill.pending {
  color: #d4b87a;
}

[data-theme="night"] .mtg-svc-status-pill.handled {
  color: #8aaa84;
}

[data-theme="night"] .mtg-svc-table-row.is-header {
  background: var(--frost-45);
}

[data-theme="night"] .mtg-svc-page-btn.is-active {
  color: var(--text-primary);
}

[data-theme="night"] .mtg-svc-datepicker {
  background: var(--frost-45);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* ========================================================
 * 会议桌管理（MeetingDesk）— 侘寂重绘旧平台 MeetingDeskConfigList
 * ======================================================== */

.meeting-desk-view {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* —— 工具栏 —— */
.mtg-desk-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 0 14px;
  flex-shrink: 0;
}

.mtg-desk-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.mtg-desk-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* —— 表格主体 —— */
.mtg-desk-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
  padding: 0 0 16px;
}

.mtg-desk-body::-webkit-scrollbar {
  width: 6px;
}

.mtg-desk-body::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.mtg-desk-table {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* —— 表头 —— */
.mtg-desk-thead {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr 0.5fr 1.2fr 0.8fr 1.6fr;
  align-items: center;
  padding: 10px 14px;
  background: var(--accent-light);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

/* —— 表体 —— */
.mtg-desk-tbody {
  display: flex;
  flex-direction: column;
}

.mtg-desk-trow {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr 0.5fr 1.2fr 0.8fr 1.6fr;
  align-items: center;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s;
}

.mtg-desk-trow:last-child {
  border-bottom: none;
}

.mtg-desk-trow:hover {
  background: var(--bg-hover);
}

.mtg-desk-col-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mtg-desk-status-active {
  font-style: normal;
  font-size: 12px;
  color: var(--danger-soft, #b0654a);
}

.mtg-desk-status-done {
  font-style: normal;
  font-size: 12px;
  color: var(--sage, #7a9a76);
}

.mtg-desk-op-btn {
  font-size: 12px;
  color: var(--accent-color);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  margin-right: 4px;
  transition: color 0.15s;
}

.mtg-desk-op-btn:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.mtg-desk-op-danger {
  color: var(--danger-soft, #b0654a);
}

.mtg-desk-op-danger:hover {
  color: var(--danger, #c0392b);
}

.mtg-desk-empty {
  padding: 40px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* —— 弹窗 —— */
.mtg-desk-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.mtg-desk-modal-overlay[hidden] {
  display: none !important;
}

.mtg-desk-modal {
  width: 560px;
  max-width: 100%;
  max-height: 80vh;
  background: var(--paper-hot, var(--card-bg));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md, 8px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.mtg-desk-modal-wide {
  width: 760px;
}

.mtg-desk-modal-sm {
  width: 400px;
}

.mtg-desk-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.mtg-desk-modal-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.mtg-desk-modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s;
}

.mtg-desk-modal-close:hover {
  color: var(--text-primary);
}

.mtg-desk-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: none;
}

.mtg-desk-modal-body::-webkit-scrollbar {
  display: none;
}

.mtg-desk-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

/* —— 表单行 —— */
.mtg-desk-form-row {
  margin-bottom: 16px;
}

.mtg-desk-form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.mtg-desk-danger-btn {
  color: var(--danger-soft, #b0654a);
  border-color: var(--danger-soft, #b0654a);
}

.mtg-desk-danger-btn:hover {
  background: rgba(176, 101, 74, 0.08);
}

/* —— 桌型选择器 —— */
.mtg-desk-type-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mtg-desk-type-card {
  width: 130px;
  height: 110px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: border-color 0.15s, background 0.15s;
  background: var(--bg-subtle, rgba(0, 0, 0, 0.02));
}

.mtg-desk-type-card:hover {
  border-color: var(--accent-color);
}

.mtg-desk-type-card.is-active {
  border-color: var(--accent-color);
  border-width: 2px;
  background: var(--accent-light);
}

.mtg-desk-type-svg {
  width: 100%;
  height: 70px;
  flex-shrink: 0;
}

.mtg-desk-type-name {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* —— 删除弹窗 —— */
.mtg-desk-delete-text {
  font-size: 14px;
  color: var(--text-primary);
  text-align: center;
  padding: 12px 0;
}

/* —— 席卡绑定 —— */
.mtg-desk-bind-select {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mtg-desk-bind-input {
  flex: 1;
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm, 4px);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  cursor: pointer;
  background: var(--card-bg);
}

.mtg-desk-bind-placeholder {
  color: var(--text-muted);
  font-size: 13px;
}

.mtg-desk-bind-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: var(--accent-light);
  border: 1px solid var(--accent-color);
  border-radius: 3px;
  font-size: 12px;
  color: var(--text-primary);
}

.mtg-desk-bind-tag-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  line-height: 1;
}

.mtg-desk-bind-tag-close:hover {
  color: var(--danger, #c0392b);
}

.mtg-desk-bind-dropdown {
  margin-top: 4px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm, 4px);
  max-height: 180px;
  overflow-y: auto;
  background: var(--card-bg);
  padding: 8px 12px;
  scrollbar-width: none;
}

.mtg-desk-bind-dropdown::-webkit-scrollbar {
  display: none;
}

.mtg-desk-bind-dropdown[hidden] {
  display: none !important;
}

.mtg-desk-bind-check {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
}

.mtg-desk-bind-check input {
  cursor: pointer;
}

.mtg-desk-bind-tip {
  font-size: 12px;
  color: var(--sage, #7a9a76);
  margin-top: 6px;
}

/* —— 席卡预览座位网格 —— */
.mtg-desk-bind-preview {
  width: 100%;
  min-height: 200px;
  background: var(--bg-subtle, rgba(0, 0, 0, 0.02));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm, 6px);
  padding: 16px;
}

.mtg-desk-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  min-height: 168px;
}

.mtg-desk-preview-grid.is-circle {
  border-radius: 50%;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  position: relative;
  flex-wrap: nowrap;
  overflow: visible;
}

.mtg-desk-preview-grid.is-training {
  flex-direction: column;
  gap: 16px;
}

.mtg-desk-preview-grid.is-u-shape {
  padding: 20px 40px;
}

.mtg-desk-seat {
  width: 64px;
  height: 48px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm, 4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  cursor: grab;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
  flex-shrink: 0;
}

.mtg-desk-seat:hover {
  border-color: var(--accent-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mtg-desk-seat:active {
  cursor: grabbing;
}

.mtg-desk-seat.is-empty {
  opacity: 0.4;
  border-style: dashed;
}

.mtg-desk-seat.is-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-style: dotted;
}

.mtg-desk-seat-num {
  font-size: 10px;
  color: var(--text-muted);
  position: absolute;
  top: 2px;
  left: 4px;
}

.mtg-desk-seat-name {
  font-size: 11px;
  color: var(--text-primary);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 56px;
}

/* —— 信息下发 —— */
.mtg-desk-dispatch-info {
  width: 100%;
}

.mtg-desk-dispatch-thead {
  display: grid;
  grid-template-columns: 0.5fr 1fr 1fr;
  gap: 8px;
  padding: 6px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--accent-light);
  border-radius: var(--radius-sm, 4px);
}

.mtg-desk-dispatch-tbody {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: none;
}

.mtg-desk-dispatch-tbody::-webkit-scrollbar {
  display: none;
}

.mtg-desk-dp-trow {
  display: grid;
  grid-template-columns: 0.5fr 1fr 1fr;
  gap: 8px;
  align-items: center;
}

.mtg-desk-dp-trow.is-disabled {
  opacity: 0.4;
}

.mtg-desk-dp-col-idx {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.mtg-desk-dp-input {
  font-size: 12px;
  padding: 4px 8px;
}

.mtg-desk-dispatch-note {
  font-size: 12px;
  color: var(--sage, #7a9a76);
  margin-top: 8px;
}

/* —— Toast —— */
.mtg-desk-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 8px 20px;
  background: var(--text-primary);
  color: var(--card-bg);
  border-radius: var(--radius-sm, 4px);
  font-size: 13px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.mtg-desk-toast[hidden] {
  display: none !important;
}

.mtg-desk-toast:not([hidden]) {
  opacity: 1;
}

.mtg-desk-toast.is-error {
  background: var(--danger, #c0392b);
}

.mtg-desk-toast.is-warn {
  background: var(--warn-soft, #b8860b);
}

/* —— 星夜主题适配 —— */
[data-theme="night"] .mtg-desk-modal {
  background: var(--frost-45);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="night"] .mtg-desk-bind-input,
[data-theme="night"] .mtg-desk-bind-dropdown,
[data-theme="night"] .mtg-desk-bind-preview,
[data-theme="night"] .mtg-desk-seat {
  background: var(--frost-30, rgba(255, 255, 255, 0.06));
}
