
/* ============================================================
   会议修改：新建会议弹窗 + 侧边栏头像名 + 名字替换
   ------------------------------------------------------------
   类名前缀：lgmt（lingee-meeting）避免与 React 包内既有 .mt-* 命名冲突
   ============================================================ */

/* ---------- 侧边栏底部头像旁名字 ---------- */
.lgmt-sidebar-name {
  font-size: 13px;
  color: #000000c4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

/* ---------- 弹窗遮罩 ---------- */
.lgmt-mask {
  position: fixed;
  inset: 0;
  z-index: 99000;
  background: rgba(20, 20, 28, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: lgmt-fade 0.18s ease;
}
@keyframes lgmt-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes lgmt-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- 弹窗主体 ---------- */
.lgmt-modal {
  width: 920px;
  max-width: 100%;
  max-height: 88vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: lgmt-pop 0.22s ease;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.lgmt-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 14px;
  border-bottom: 1px solid #f0f0f3;
  flex-shrink: 0;
}
.lgmt-modal__title {
  font-size: 17px;
  font-weight: 700;
  color: #1f1f29;
  letter-spacing: 0.2px;
}
.lgmt-modal__close {
  border: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.lgmt-modal__close:hover {
  background: #f5f5f7;
  color: #333;
}

.lgmt-modal__body {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* ---------- 左：表单 ---------- */
.lgmt-form {
  flex: 1.35;
  padding: 18px 24px 20px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lgmt-types {
  display: flex;
  gap: 0;
  background: #f5f5f7;
  border-radius: 10px;
  padding: 3px;
  width: fit-content;
}
.lgmt-type {
  padding: 6px 14px;
  font-size: 13px;
  color: #00000099;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  user-select: none;
}
.lgmt-type:hover {
  color: #1f1f29;
}
.lgmt-type--on {
  background: #fff;
  color: #1f1f29;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.lgmt-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lgmt-field__label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
}
.lgmt-field__row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lgmt-input,
.lgmt-textarea,
.lgmt-select {
  width: 100%;
  padding: 9px 12px;
  font-size: 13.5px;
  color: #1f1f29;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  box-sizing: border-box;
}
.lgmt-input:focus,
.lgmt-textarea:focus,
.lgmt-select:focus {
  border-color: #276ff5;
  box-shadow: 0 0 0 3px rgba(39, 111, 245, 0.12);
}
.lgmt-textarea {
  resize: vertical;
  min-height: 64px;
  line-height: 1.55;
}
.lgmt-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'><path d='M3 4.5l3 3 3-3' stroke='%23999' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

.lgmt-time {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lgmt-time .lgmt-input { width: auto; min-width: 130px; }
.lgmt-time__sep {
  color: #999;
  font-size: 14px;
  user-select: none;
}

/* ---------- 参与者 ---------- */
.lgmt-attendees {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.lgmt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  background: #f5f5f7;
  border-radius: 16px;
  font-size: 12.5px;
  color: #1f1f29;
}
.lgmt-chip__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6b9eff, #276ff5);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  object-fit: cover;
  flex-shrink: 0;
}
.lgmt-chip__role {
  margin-left: 4px;
  padding: 1px 7px;
  font-size: 10.5px;
  font-weight: 600;
  color: #276ff5;
  background: #eef3ff;
  border-radius: 4px;
}
.lgmt-chip__x {
  margin-left: 4px;
  color: #00000066;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}
.lgmt-chip__x:hover { color: #ff4d4f; }

.lgmt-add-attendee {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #fff;
  border: 1px dashed #d6d6dc;
  border-radius: 16px;
  font-size: 12.5px;
  color: #00000099;
  cursor: pointer;
  transition: all 0.15s;
}
.lgmt-add-attendee:hover {
  border-color: #276ff5;
  color: #276ff5;
}

/* ---------- 会议形式 radio ---------- */
.lgmt-modes {
  display: flex;
  gap: 18px;
}
.lgmt-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #1f1f29;
  cursor: pointer;
  user-select: none;
}
.lgmt-mode input { display: none; }
.lgmt-mode__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #d6d6dc;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.15s;
}
.lgmt-mode input:checked + .lgmt-mode__dot {
  border-color: #276ff5;
}
.lgmt-mode input:checked + .lgmt-mode__dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #276ff5;
}

/* ---------- 右：当日日程 ---------- */
.lgmt-agenda {
  flex: 1;
  border-left: 1px solid #f0f0f3;
  background: #fafafb;
  padding: 16px 18px 18px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 280px;
}
.lgmt-agenda__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #ececef;
}
.lgmt-agenda__title {
  font-size: 13px;
  font-weight: 600;
  color: #1f1f29;
}
.lgmt-agenda__date {
  font-size: 12px;
  color: #888;
}
.lgmt-agenda__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.lgmt-agenda__item {
  display: grid;
  grid-template-columns: 56px 14px 1fr;
  gap: 10px;
  padding: 9px 0;
  align-items: flex-start;
  position: relative;
}
.lgmt-agenda__time {
  font-size: 12px;
  color: #888;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-top: 1px;
}
.lgmt-agenda__rail {
  position: relative;
  height: 100%;
  display: flex;
  justify-content: center;
}
.lgmt-agenda__rail::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: -16px;
  left: 50%;
  width: 1.5px;
  background: #e3e3e7;
  transform: translateX(-50%);
}
.lgmt-agenda__item:last-child .lgmt-agenda__rail::before {
  display: none;
}
.lgmt-agenda__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c8c8d0;
  position: relative;
  z-index: 1;
  margin-top: 3px;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px #fafafb;
}
.lgmt-agenda__item--now .lgmt-agenda__dot {
  background: #276ff5;
  box-shadow: 0 0 0 3px rgba(39, 111, 245, 0.18);
}
.lgmt-agenda__body {
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.lgmt-agenda__item--now .lgmt-agenda__body {
  border-color: #276ff5;
  background: #f4f8ff;
  box-shadow: 0 2px 8px rgba(39, 111, 245, 0.08);
}
.lgmt-agenda__name {
  font-size: 13px;
  font-weight: 500;
  color: #1f1f29;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lgmt-agenda__meta {
  font-size: 11.5px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lgmt-agenda__tag {
  display: inline-block;
  padding: 1px 6px;
  font-size: 10.5px;
  border-radius: 4px;
  background: #f5f5f7;
  color: #666;
}
.lgmt-agenda__tag--new {
  background: #eef3ff;
  color: #276ff5;
  font-weight: 600;
}

/* ---------- 底部按钮 ---------- */
.lgmt-modal__foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-top: 1px solid #f0f0f3;
  flex-shrink: 0;
  background: #fff;
}
.lgmt-btn {
  padding: 8px 18px;
  font-size: 13px;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.lgmt-btn--ghost {
  background: #fff;
  color: #1f1f29;
  border-color: #e5e5ea;
}
.lgmt-btn--ghost:hover {
  background: #f5f5f7;
}
.lgmt-btn--primary {
  background: #276ff5;
  color: #fff;
}
.lgmt-btn--primary:hover {
  background: #1f5ed8;
}

/* ---------- Toast ---------- */
.lgmt-toast {
  position: fixed;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%) translateY(-6px);
  z-index: 99999;
  background: rgba(28, 28, 32, 0.94);
  color: #fff;
  font-size: 13px;
  line-height: 1.55;
  padding: 10px 18px;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  max-width: 460px;
  white-space: pre-line;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.lgmt-toast--on { opacity: 1; }

/* ---------- 响应式：窄屏单列 ---------- */
@media (max-width: 760px) {
  .lgmt-modal { width: 100%; }
  .lgmt-modal__body { flex-direction: column; }
  .lgmt-agenda { border-left: none; border-top: 1px solid #f0f0f3; }
}

