/* 统一布局样式 */
.app-body {
  font-family: var(--font-sans, "Alibaba PuHuiTi", "PingFang SC", "Microsoft YaHei", sans-serif);
  background-color: #F5F8FC;
  color: #191b23;
}

/* ── Header ── */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid #c3c6d7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.app-header__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  z-index: 2;
}

.app-header__slogan {
  font-size: 14px;
  font-weight: 500;
  color: #434655;
  white-space: nowrap;
  padding-left: 0.75rem;
  border-left: 1px solid #c3c6d7;
}

.app-header__center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.app-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.app-logo:hover {
  opacity: 0.85;
}

.app-logo__img {
  display: block;
  height: 32px;
  width: auto;
}

.app-search {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: #f3f3fe;
  border: 1px solid #c3c6d7;
  border-radius: 0.5rem;
}

@media (min-width: 768px) {
  .app-search {
    display: flex;
  }
}

.app-search__icon {
  font-size: 20px;
  color: #434655;
}

.app-search__input {
  width: 20rem;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
}

.app-header__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  z-index: 2;
}

@media (max-width: 1023px) {
  .app-header__slogan {
    display: none;
  }

  .app-search__input {
    width: 14rem;
  }
}

@media (max-width: 767px) {
  .app-header__center {
    display: none;
  }
}

.app-icon-btn {
  position: relative;
  padding: 0.5rem;
  border: none;
  background: transparent;
  border-radius: 9999px;
  cursor: pointer;
  color: #434655;
  transition: background 0.15s;
}

.app-icon-btn:hover {
  background: #f3f3fe;
}

.app-icon-btn__dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: #ba1a1a;
  border-radius: 9999px;
}

.app-user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
  cursor: pointer;
}

.app-user-chip__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: #2563eb;
  color: #eeefff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-user-chip__icon {
  color: #434655;
}

/* ── Sidebar ── */
.app-sidebar {
  position: fixed;
  top: 4rem;
  left: 0;
  bottom: 0;
  width: 16rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: #f3f3fe;
  border-right: 1px solid #c3c6d7;
}

.app-sidebar__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.app-sidebar__divider {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #c3c6d7;
}

.app-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 12px;
  font-weight: 500;
  color: #434655;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.app-nav-item:hover:not(.app-nav-item--active):not(.app-nav-item--disabled) {
  background: #e7e7f3;
}

.app-nav-item--active {
  background: #2563eb;
  color: #eeefff;
  font-weight: 600;
}

.app-nav-item--disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.app-sidebar__footer {
  margin-top: auto;
  padding: 1rem;
  background: #e1e2ed;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-sidebar__footer-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
}

.app-sidebar__footer-avatar-chip {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  flex-shrink: 0;
  background: #2563eb;
  color: #eeefff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-shadow {
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
}

.app-page-loading {
  padding: 3rem 1rem;
  text-align: center;
  color: #5c5f71;
  font-size: 14px;
}

.app-boot-error {
  max-width: 520px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #ffdad6;
  color: #ba1a1a;
  border-radius: 12px;
  line-height: 1.6;
}

.app-boot-error__hint {
  margin-top: 0.75rem;
  font-size: 13px;
  color: #5c5f71;
}

.app-bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
}

.app-bg-decor__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.app-bg-decor__blob--primary {
  top: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(0, 82, 212, 0.05);
}

.app-bg-decor__blob--secondary {
  bottom: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(0, 150, 136, 0.05);
  filter: blur(80px);
}

.app-sidebar__footer-name {
  font-size: 12px;
  font-weight: 700;
  color: #191b23;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sidebar__footer-email {
  font-size: 10px;
  color: #434655;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Breadcrumb ── */
.app-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.app-breadcrumb__link {
  color: #434655;
  text-decoration: none;
  transition: color 0.15s;
}

.app-breadcrumb__link:hover {
  color: #004ac6;
}

.app-breadcrumb__sep {
  font-size: 16px;
  color: #c3c6d7;
}

.app-breadcrumb__current {
  color: #191b23;
  font-weight: 600;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Main content ── */
.app-main {
  margin-left: 16rem;
  margin-top: 4rem;
  min-height: calc(100vh - 4rem);
  overflow-y: auto;
}

/* ── 会议详情页 ── */
.meeting-detail-page {
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 1rem;
}

.meeting-detail-page__breadcrumb {
  margin-bottom: 16px;
}

.meeting-detail-hero {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8edf3;
}

.meeting-detail-hero__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 12px;
}

.meeting-detail-hero__title {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1c20;
}

.meeting-detail-hero__status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.meeting-detail-hero__status--ok {
  background: #d1fae5;
  color: #065f46;
}

.meeting-detail-hero__status--progress {
  background: #dbeafe;
  color: #004ac6;
}

.meeting-detail-hero__status--pending {
  background: #fef3c7;
  color: #92400e;
}

.meeting-detail-hero__status--muted {
  background: #f1f5f9;
  color: #64748b;
}

.meeting-detail-hero__status--error {
  background: #fee2e2;
  color: #b91c1c;
}

.meeting-detail-meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px 16px;
}

.meeting-detail-meta__item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
}

.meeting-detail-meta__icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
  font-size: 1.125rem;
  color: #94a3b8;
}

.meeting-detail-meta__body {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.meeting-detail-meta__label {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
}

.meeting-detail-meta__value {
  font-size: 13px;
  font-weight: 600;
  color: #1a1c20;
  line-height: 1.4;
  word-break: break-word;
}

.meeting-detail-meta__value--room {
  color: #004ac6;
}

.meeting-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.meeting-detail-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.meeting-detail-side {
  width: 340px;
  min-width: 340px;
}

.meeting-detail-side-inner {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.meeting-detail-card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 0.75rem;
  padding: 16px;
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.04);
}

.meeting-detail-card--compact {
  padding: 12px 16px;
}

.meeting-detail-card__head {
  margin-bottom: 12px;
}

.meeting-detail-card__head--tight {
  margin-bottom: 8px;
}

.meeting-detail-card__head--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.meeting-detail-card__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1a1c20;
}

.meeting-detail-card--actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.meeting-detail-info-grid--4x2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 12px;
}

.meeting-detail-info-grid__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.meeting-detail-info-grid__item--span-all {
  grid-column: 1 / -1;
}

.meeting-detail-info-grid__label {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.3;
}

.meeting-detail-info-grid__value {
  font-size: 13px;
  font-weight: 600;
  color: #1a1c20;
  line-height: 1.35;
}

.meeting-detail-info-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 1.5rem;
  align-items: center;
}

.meeting-detail-info-resources__chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.meeting-detail-info-resources__empty {
  font-size: 12px;
  color: #94a3b8;
}

.meeting-detail-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 统一按钮 40px */
.meeting-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  height: 40px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, filter 0.15s;
  white-space: nowrap;
}

.meeting-btn .material-symbols-outlined {
  font-size: 1.125rem;
}

.meeting-btn--primary {
  width: 100%;
  border-color: #004ac6;
  background: #004ac6;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 74, 198, 0.2);
}

.meeting-btn--primary:hover:not(:disabled) {
  filter: brightness(1.06);
}

.meeting-btn--secondary {
  border-color: #004ac6;
  background: #fff;
  color: #004ac6;
}

.meeting-btn--secondary:hover:not(:disabled) {
  background: #f0f5ff;
}

.meeting-detail-card--actions .meeting-btn--secondary,
.meeting-detail-card--actions .meeting-btn--danger {
  width: 100%;
}

.meeting-btn--danger {
  border-color: #fecaca;
  background: #fff;
  color: #dc2626;
}

.meeting-btn--danger:hover:not(:disabled) {
  background: #fef2f2;
  border-color: #fca5a5;
}

.meeting-btn--danger .material-symbols-outlined {
  color: #dc2626;
}

.meeting-btn--disabled,
.meeting-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.meeting-menu {
  position: relative;
}

.meeting-menu__trigger {
  width: 100%;
}

.meeting-detail-toolbar .meeting-menu__trigger {
  width: auto;
  min-width: 72px;
}

.meeting-menu__panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 30;
  min-width: 168px;
  padding: 4px;
  border: 1px solid #e8edf3;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.meeting-menu__panel[hidden] {
  display: none;
}

.meeting-detail-card--actions .meeting-menu__panel {
  left: 0;
  right: 0;
  width: 100%;
}

.meeting-menu__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.meeting-menu__item .material-symbols-outlined {
  font-size: 1.125rem;
  color: #64748b;
}

.meeting-menu__item:hover:not(:disabled) {
  background: #f8fafc;
}

.meeting-menu__item--danger {
  color: #dc2626;
}

.meeting-menu__item--danger .material-symbols-outlined {
  color: #dc2626;
}

.meeting-menu__item--danger:hover:not(:disabled) {
  background: #fef2f2;
}

.meeting-menu__item--disabled,
.meeting-menu__item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.meeting-attendees-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meeting-attendees-list__empty {
  margin: 0;
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: #94a3b8;
}

.meeting-attendees-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e8edf3;
}

.meeting-attendees-actions .meeting-btn {
  width: 100%;
}

.meeting-attendees-actions .meeting-btn--seating {
  justify-content: center;
}

.meeting-attendee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  transition: background 0.15s, border-color 0.15s;
}

.meeting-attendee-row:hover {
  background: #f8fafc;
  border-color: #e8edf3;
}

.meeting-attendee-row__main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.meeting-attendee-row__avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.meeting-attendee-row__info {
  min-width: 0;
}

.meeting-attendee-row__name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1c20;
}

.meeting-attendee-row__tag {
  margin-left: 0.375rem;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  background: #e8eaf6;
  color: #44474f;
  font-size: 10px;
  font-weight: 500;
}

.meeting-attendee-row__dept {
  margin: 0.125rem 0 0;
  font-size: 12px;
  color: #94a3b8;
}

.meeting-attendee-row__status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
}

.meeting-attendee-row__status .material-symbols-outlined {
  font-size: 1rem;
}

.meeting-attendee-row__status--ok {
  color: #065f46;
}

.meeting-attendee-row__status--pending {
  color: #92400e;
}

.meeting-detail-card--qr {
  height: 180px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.meeting-detail-card--qr .meeting-detail-card__head {
  margin-bottom: 6px;
}

.meeting-detail-qr {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.meeting-detail-qr__frame {
  flex-shrink: 0;
  padding: 6px;
  border: 1px dashed #d8dee8;
  border-radius: 0.5rem;
  background: #fff;
}

.meeting-detail-qr__img {
  display: block;
  width: 72px;
  height: 72px;
}

.meeting-detail-qr__hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: #94a3b8;
  text-align: left;
}

.meeting-detail-notify__status {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}

.meeting-detail-notify__hint {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #94a3b8;
}

.meeting-detail-notify__hint.hidden {
  display: none;
}

.meeting-detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  color: #cbd5e1;
  font-size: 11px;
}

.meeting-detail-footer__links {
  display: flex;
  gap: 12px;
}

.meeting-seating-btn__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
}

.meeting-seating-btn__badge.hidden {
  display: none;
}

.meeting-seating-btn__badge--draft {
  background: #fef3c7;
  color: #b45309;
}

.meeting-seating-btn__badge--published {
  background: #d1fae5;
  color: #047857;
}

.meeting-btn--seating[data-seating-status="published"] {
  border-color: #34d399;
}

@media (max-width: 1024px) {
  .meeting-detail-body {
    grid-template-columns: 1fr;
  }

  .meeting-detail-side {
    width: 100%;
    min-width: 0;
  }

  .meeting-detail-side-inner {
    position: static;
  }

  .meeting-detail-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meeting-detail-info-grid--4x2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .meeting-detail-meta {
    grid-template-columns: 1fr;
  }

  .meeting-detail-info-grid--4x2 {
    grid-template-columns: 1fr;
  }

  .meeting-detail-card__head--split {
    flex-direction: column;
    align-items: flex-start;
  }

  .meeting-detail-toolbar {
    width: 100%;
  }

  .meeting-detail-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 兼容旧类名 */
.meeting-detail-summary {
  display: none;
}

.meeting-toolbar-btn,
.meeting-action-btn,
.meeting-seating-btn:not(.meeting-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  height: 40px;
  padding: 0 14px;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

/* ── 会议预约：7:5 双栏（勿与 Tailwind col-span 混用） ── */
.booking-page-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem;
  align-items: start;
}

.booking-page-main,
.booking-page-side {
  min-width: 0;
  grid-column: auto;
}

.booking-page-side {
  position: sticky;
  top: 6rem;
  align-self: start;
}

.booking-page-footer {
  left: 16rem;
  right: 0;
}

@media (max-width: 1023px) {
  .booking-page-body {
    grid-template-columns: 1fr;
  }

  .booking-page-side {
    position: static;
  }

  .booking-page-footer {
    left: 0;
  }
}

/* ── 预约页：推荐会议室（点击原位展开） ── */
.recommend-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recommend-room-card {
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.recommend-room-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.recommend-room-card.is-expanded {
  box-shadow: 0 4px 16px rgba(0, 74, 198, 0.1);
}

.booking-approval-rules {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  margin-top: 1.5rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e8edf3;
}

.booking-approval-rules__icon {
  font-size: 20px;
  color: #92400e;
  flex-shrink: 0;
  margin-top: 1px;
}

.booking-approval-rules__title {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.35rem;
}

.booking-approval-rules__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
}

.booking-approval-notice {
  display: none;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.booking-approval-notice.is-active {
  display: flex;
}

.booking-approval-notice__icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.booking-approval-notice__title {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.booking-approval-notice__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 12px;
  line-height: 1.6;
}

.booking-approval-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  background: #fef3c7;
  color: #92400e;
  white-space: nowrap;
}

.booking-approval-footer-hint {
  font-size: 12px;
  color: #92400e;
  margin: 0;
  padding-left: 1.75rem;
}

@media (min-width: 640px) {
  .booking-approval-footer-hint {
    padding-left: 0;
  }
}

/* ── 添加参会人员弹窗 ── */
.add-attendee-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.add-attendee-modal.hidden {
  display: none;
}

.add-attendee-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.add-attendee-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(420px, 96vw);
  max-height: min(80vh, 560px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.add-attendee-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 0.5rem;
}

.add-attendee-modal__header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
}

.add-attendee-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: #6b7280;
  cursor: pointer;
}

.add-attendee-modal__close:hover {
  background: #f3f4f6;
}

.add-attendee-modal__hint {
  margin: 0;
  padding: 0 1.25rem 1rem;
  font-size: 13px;
  color: #6b7280;
}

.add-attendee-modal__list {
  flex: 1;
  overflow-y: auto;
  padding: 0 0.75rem;
  min-height: 120px;
  max-height: 360px;
}

.add-attendee-modal__empty {
  padding: 2rem 1rem;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
}

.add-attendee-modal__empty--error {
  color: #dc2626;
}

.add-attendee-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.25rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}

.add-attendee-item:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #e5e7eb;
}

.add-attendee-item:disabled {
  opacity: 0.6;
  cursor: wait;
}

.add-attendee-item__avatar {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: #dbeafe;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.add-attendee-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.add-attendee-item__name {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.add-attendee-item__dept {
  font-size: 12px;
  color: #6b7280;
}

.add-attendee-item__icon {
  flex-shrink: 0;
  color: #2563eb;
  font-size: 22px;
}

.add-attendee-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e8edf3;
  background: #fff;
}

.add-attendee-item--selected {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.add-attendee-item--selected .add-attendee-item__icon {
  color: #059669;
}

.add-attendee-item--selected .add-attendee-item__avatar {
  background: #d1fae5;
  color: #065f46;
}

#btn-confirm-add-attendees:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.attendee-notify-hint {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 11px;
  margin-top: 0.25rem;
}

.attendee-notify-hint__icon {
  font-size: 14px;
}

.attendee-notify--sent {
  color: #065f46;
}

.attendee-notify--pending {
  color: #92400e;
}

.attendee-notify--warn {
  color: #b45309;
}

.attendee-conflict-hint {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0.2rem 0 0;
  padding: 0;
  font-size: 10px;
  line-height: 1.4;
  color: #a8b0bd;
  background: none;
  border: none;
}

.attendee-conflict-hint__icon {
  font-size: 12px;
  flex-shrink: 0;
  color: #c9cdd6;
}

.attendee-row--conflict {
  background: transparent;
  border-color: transparent !important;
}

/* ── 会议人员管理：组织架构 ── */
.dashboard-day-tabs {
  display: flex;
  gap: 0.125rem;
  padding: 0.2rem;
  background: #eef2f8;
  border-radius: 10px;
  flex: 1;
  justify-content: center;
  max-width: 240px;
  margin: 0 auto;
}

.dashboard-day-tabs__btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #5f6577;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.dashboard-day-tabs__btn--active {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

.dashboard-quick-booking {
  align-self: start;
}

.rooms-date-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.rooms-date-tabs {
  flex: 0 0 auto;
  max-width: none;
  margin: 0;
}

.rooms-date-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f1f5f9;
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  min-height: 2.5rem;
}

.rooms-date-picker:hover {
  background: #e8edf3;
}

.rooms-date-picker__input {
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #1a1c20;
  outline: none;
  min-width: 8.5rem;
  cursor: pointer;
}

/* ── 工作台参会人员弹窗 ── */
.dashboard-attendees-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.dashboard-attendees-modal.hidden {
  display: none;
}

.dashboard-attendees-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.dashboard-attendees-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(420px, 96vw);
  max-height: min(80vh, 520px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.dashboard-attendees-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid #eef2f7;
}

.dashboard-attendees-modal__header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  padding-right: 0.5rem;
}

.dashboard-attendees-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: #6b7280;
  cursor: pointer;
}

.dashboard-attendees-modal__close:hover {
  background: #f3f4f6;
}

.dashboard-attendees-modal__list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  min-height: 120px;
}

.dashboard-attendees-modal__empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
}

.dashboard-attendees-modal__empty--error {
  color: #dc2626;
}

.dashboard-attendee-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
}

.dashboard-attendee-item:hover {
  background: #f8fafc;
}

.dashboard-attendee-item__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #1d4ed8;
  background: #dbeafe;
  flex-shrink: 0;
}

.dashboard-attendee-item__avatar--alt {
  color: #047857;
  background: #d1fae5;
}

.dashboard-attendee-item__info {
  min-width: 0;
  flex: 1;
}

.dashboard-attendee-item__name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.dashboard-attendee-item__dept {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 0.125rem;
}

.dashboard-attendee-item__tag {
  display: inline-block;
  margin-left: 0.375rem;
  padding: 0.125rem 0.375rem;
  font-size: 11px;
  font-weight: 500;
  color: #1d4ed8;
  background: #eff6ff;
  border-radius: 4px;
  vertical-align: middle;
}

.dashboard-attendee-count-btn {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  color: #1d4ed8;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dashboard-attendee-count-btn:hover {
  color: #1e40af;
}

.dashboard-attendee-count-btn--muted {
  font-weight: 500;
  text-decoration: none;
  color: #64748b;
}

.dashboard-attendee-count-btn--muted:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.personnel-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: #eef2f8;
  border-radius: 12px;
  width: fit-content;
}

.personnel-tabs__btn {
  border: none;
  background: transparent;
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #5f6577;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.personnel-tabs__btn--active {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.approval-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.approval-toggle__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.approval-toggle__track {
  width: 44px;
  height: 24px;
  border-radius: 9999px;
  background: #d1d5db;
  transition: background 0.2s;
  position: relative;
}

.approval-toggle__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}

.approval-toggle__input:checked + .approval-toggle__track {
  background: #f59e0b;
}

.approval-toggle__input:checked + .approval-toggle__track::after {
  transform: translateX(20px);
}

.approval-toggle__input:disabled + .approval-toggle__track {
  opacity: 0.6;
}

.personnel-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

@media (max-width: 900px) {
  .personnel-layout {
    grid-template-columns: 1fr;
  }
}

.org-sidebar {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 5rem;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
}

.org-sidebar__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  font-weight: 600;
  color: #434655;
  padding: 0.25rem 0.5rem 0.75rem;
  border-bottom: 1px solid #eef2f8;
  margin-bottom: 0.5rem;
}

.org-tree {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.org-tree--picker {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  padding: 0.5rem;
  background: #fafbfd;
}

.org-tree--settings .org-tree-node {
  padding-right: 0.25rem;
}

.org-tree-node {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 0.5rem 0.625rem;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}

.org-tree-node:hover {
  background: #f3f6fb;
}

.org-tree-node--active {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 600;
}

.org-tree-node__icon {
  font-size: 18px;
  color: #6b7280;
  flex-shrink: 0;
}

.org-tree-node--active .org-tree-node__icon {
  color: #1d4ed8;
}

.org-tree-node__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-tree-node__count {
  font-size: 11px;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 0.125rem 0.375rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.org-tree-node__actions {
  display: inline-flex;
  gap: 0.125rem;
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.12s;
}

.org-tree-node:hover .org-tree-node__actions {
  opacity: 1;
}

.org-tree-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 1.625rem;
  border: none;
  background: transparent;
  border-radius: 6px;
  color: #6b7280;
  cursor: pointer;
}

.org-tree-action:hover {
  background: #e5e7eb;
  color: #1d4ed8;
}

.org-tree-action--danger:hover {
  color: #dc2626;
}

.org-tree-action .material-symbols-outlined {
  font-size: 16px;
}

.org-tree__children {
  margin-left: 0.25rem;
}

.import-dropzone code {
  font-size: 12px;
  background: #eef2ff;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
}

/* ── 会议室详情弹窗 ── */
.room-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.room-detail-modal.hidden {
  display: none;
}

.room-detail-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.room-detail-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(920px, 96vw);
  max-height: min(92vh, 860px);
  overflow: hidden;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

#room-detail-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.room-detail-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  color: #434655;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.room-detail-modal__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.room-detail-modal__aside {
  padding: 1rem 1rem 1rem 1.25rem;
  border-right: 1px solid #e8edf3;
  background: #f8fafc;
  overflow-y: auto;
}

.room-detail-modal__aside-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-right: 2rem;
}

.room-detail-modal__thumb {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.625rem;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8eef8;
}

.room-detail-modal__aside-meta h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #1a1c20;
  line-height: 1.3;
}

.room-detail-modal__aside-meta p {
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 0.5rem;
}

.room-detail-modal__aside-meta .room-detail-modal__status {
  margin-bottom: 0;
}

.room-detail-modal__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1rem;
}

.room-detail-modal__specs div {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.room-detail-modal__specs dt {
  font-size: 11px;
  color: #6b7280;
}

.room-detail-modal__specs dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #1a1c20;
}

.room-detail-aside-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.room-detail-aside-reason {
  font-size: 11px;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: rgba(0, 74, 198, 0.1);
  color: #004ac6;
}

.room-detail-aside-score {
  font-size: 11px;
  color: #6b7280;
}

.room-detail-modal__tags--compact {
  margin-bottom: 0.75rem;
}

.room-detail-aside-policy {
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.room-detail-aside-bookings {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.room-detail-aside-booking {
  padding: 0.5rem 0.625rem;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 0.5rem;
  font-size: 12px;
}

.room-detail-aside-booking__time {
  display: block;
  font-weight: 600;
  color: #004ac6;
  margin-bottom: 0.125rem;
}

.room-detail-aside-booking__title {
  display: block;
  color: #434655;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-detail-aside-booking__organizer {
  display: block;
  font-size: 11px;
  color: #6b7280;
  margin-top: 0.125rem;
}

.room-detail-aside-empty {
  font-size: 12px;
  color: #9ca3af;
  margin: 0;
}

.room-detail-schedule-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1rem 1.25rem 0.75rem;
  overflow: hidden;
}

.room-detail-schedule-main__head {
  margin-bottom: 0.75rem;
  padding-right: 2rem;
}

.room-detail-schedule-main__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1c20;
  margin: 0 0 0.25rem;
}

.room-detail-schedule-main__sub {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.room-detail-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e8edf3;
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
  z-index: 3;
}

.room-detail-modal__btn--submit {
  min-width: 12rem;
  padding: 0.75rem 1.5rem;
  font-size: 15px;
}

@media (max-width: 768px) {
  .room-detail-modal__panel {
    width: 100%;
    max-height: 95vh;
  }

  .room-detail-modal__layout {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .room-detail-modal__aside {
    border-right: none;
    border-bottom: 1px solid #e8edf3;
    max-height: 40vh;
  }

  .room-detail-schedule-main {
    min-height: 320px;
  }
}

.room-detail-modal__hero {
  position: relative;
  height: 200px;
  background: #e8eef8;
  overflow: hidden;
}

.room-detail-modal__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-detail-modal__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent 55%);
}

.room-detail-modal__hero-text {
  position: absolute;
  left: 1.25rem;
  bottom: 1rem;
  color: #fff;
}

.room-detail-modal__hero-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.room-detail-modal__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.room-detail-modal__status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.room-detail-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.room-detail-modal__field label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 0.125rem;
}

.room-detail-modal__field span {
  font-size: 14px;
  font-weight: 600;
  color: #1a1c20;
}

.room-detail-modal__section-title {
  font-size: 13px;
  font-weight: 700;
  color: #434655;
  margin: 0 0 0.5rem;
}

.room-detail-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.room-detail-modal__tag {
  padding: 0.25rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 12px;
  background: #f1f5f9;
  color: #434655;
}

.room-detail-modal__tag--primary {
  background: rgba(0, 74, 198, 0.1);
  color: #004ac6;
}

.room-detail-modal__reasons {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}

.room-detail-modal__reason {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 13px;
  color: #434655;
}

.room-detail-modal__avail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  font-size: 14px;
  color: #434655;
  margin-bottom: 1.25rem;
}

.room-detail-modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.room-detail-modal__btn {
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.room-detail-modal__btn--ghost {
  background: transparent;
  color: #6b7280;
}

.room-detail-modal__btn--ghost:hover {
  background: #f1f5f9;
}

.room-detail-modal__btn--primary {
  background: #004ac6;
  color: #fff;
}

.room-detail-modal__btn--primary:hover {
  opacity: 0.92;
}

.room-detail-schedule {
  margin-bottom: 1.25rem;
}

.room-time-picker {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.room-detail-day-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.625rem;
  flex-shrink: 0;
}

.room-detail-day-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  padding: 0.5rem 0.375rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.room-detail-legend-dot {
  display: inline-block;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 2px;
}

.room-detail-legend-dot--free {
  background: #d1fae5;
  border: 1px solid #6ee7b7;
}

.room-detail-legend-dot--busy {
  background: #dbeafe;
  border: 1px solid #93c5fd;
}

.room-detail-day-tab.is-active {
  border-color: #004ac6;
  background: rgba(0, 74, 198, 0.06);
}

.room-detail-day-tab__label {
  font-size: 13px;
  font-weight: 700;
  color: #1a1c20;
}

.room-detail-day-tab__date {
  font-size: 11px;
  color: #6b7280;
}

.room-time-picker__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.room-time-picker__legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.room-detail-legend-dot--selected {
  background: rgba(0, 74, 198, 0.35);
  border: 1px solid #004ac6;
}

.room-time-picker__preview {
  font-size: 13px;
  font-weight: 600;
  color: #004ac6;
  background: rgba(0, 74, 198, 0.06);
  border: 1px solid rgba(0, 74, 198, 0.15);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.room-time-picker__table {
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.room-time-picker__head {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0;
  padding: 0.5rem 0.625rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
}

.room-time-picker__body {
  flex: 1;
  min-height: 200px;
  max-height: none;
  overflow-y: auto;
}

.room-time-picker__row {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  border-bottom: 1px solid #f1f5f9;
  min-height: 2.75rem;
}

.room-time-picker__row:last-child {
  border-bottom: none;
}

.room-time-picker__label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #434655;
  background: #fafbfc;
  border-right: 1px solid #f1f5f9;
}

.room-time-picker__track {
  display: flex;
  flex-direction: column;
}

.room-time-picker__half {
  flex: 1;
  min-height: 1.5rem;
  border-bottom: 1px dashed #e8edf3;
  background: #f0fdf9;
  cursor: crosshair;
  user-select: none;
  touch-action: none;
  position: relative;
  transition: background 0.1s;
}

.room-time-picker__half:last-child {
  border-bottom: none;
}

.room-time-picker__half.is-busy {
  background: #dbeafe;
  border-left: 3px solid #3b82f6;
  cursor: not-allowed;
}

.room-time-picker__half.is-selected {
  background: rgba(0, 74, 198, 0.28);
  box-shadow: inset 0 0 0 1px #004ac6;
}

.room-time-picker__half.is-busy.is-selected {
  background: #dbeafe;
  box-shadow: none;
}

.room-time-picker__busy-title {
  position: absolute;
  left: 0.5rem;
  right: 0.375rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 600;
  color: #1d4ed8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.room-detail-modal__btn--primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.room-detail-booked-list {
  margin-top: 0.5rem;
}

.room-detail-booked-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.room-detail-booked-item:last-child {
  border-bottom: none;
}

.room-detail-all-free {
  padding: 0.5rem 0;
}

/* ── 我的会议页 ── */
.my-meetings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.my-meetings-tab {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: #434655;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.my-meetings-tab:hover:not(.my-meetings-tab--active) {
  background: #f3f3fe;
}

.my-meetings-tab--active {
  background: #2563eb;
  color: #eeefff;
  font-weight: 600;
}

.my-meetings-search {
  position: relative;
  width: 100%;
  max-width: 280px;
}

.my-meetings-search__icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #434655;
  pointer-events: none;
}

.my-meetings-search__input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  border: 1px solid #c3c6d7;
  border-radius: 0.5rem;
  font-size: 14px;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.my-meetings-search__input:focus {
  border-color: #004ac6;
  box-shadow: 0 0 0 3px rgba(0, 74, 198, 0.1);
  background: #ffffff;
}

.my-meetings-table thead {
  background: #f8fafc;
}

.my-meetings-table th {
  padding: 0.875rem 1.5rem;
  font-size: 12px;
  font-weight: 500;
  color: #434655;
  white-space: nowrap;
}

.my-meetings-table td {
  padding: 1rem 1.5rem;
  font-size: 14px;
  vertical-align: middle;
}

.my-meetings-table tbody tr {
  border-top: 1px solid #f1f5f9;
  transition: background 0.15s;
}

.my-meetings-table tbody tr:hover {
  background: #f8fafc;
}

.my-meetings-table tbody tr.is-ended {
  opacity: 0.55;
}

.my-meetings-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.my-meetings-title__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: #e7e7f3;
  color: #004ac6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.my-meetings-title__icon .material-symbols-outlined {
  font-size: 18px;
}

.my-meetings-title__link {
  font-weight: 600;
  color: #004ac6;
  text-decoration: none;
  transition: opacity 0.15s;
}

.my-meetings-title__link:hover {
  text-decoration: underline;
}

.my-meetings-time__date {
  font-weight: 500;
  color: #191b23;
}

.my-meetings-time__range {
  font-size: 12px;
  color: #434655;
  margin-top: 2px;
}

.my-meetings-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #434655;
}

.my-meetings-meta .material-symbols-outlined {
  font-size: 16px;
  color: #5c5f71;
}

.my-meetings-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.my-meetings-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.my-meetings-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.my-meetings-action {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 13px;
  font-weight: 500;
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.my-meetings-action--primary {
  color: #004ac6;
}

.my-meetings-action--primary:hover {
  background: #e7e7f3;
}

.my-meetings-action--danger {
  color: #ba1a1a;
}

.my-meetings-action--danger:hover {
  background: #ffdad6;
}

.my-meetings-empty {
  padding: 4rem 1.5rem;
  text-align: center;
  color: #434655;
}

.my-meetings-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.my-meetings-empty-state__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: #f3f3fe;
  color: #5c5f71;
  display: flex;
  align-items: center;
  justify-content: center;
}

.my-meetings-empty-state__icon .material-symbols-outlined {
  font-size: 32px;
}

/* ── 列表类页面通用布局（不依赖 Tailwind space-y） ── */
.approvals-page,
.my-meetings-page {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ── 审批中心页 ── */
.approvals-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 767px) {
  .approvals-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .approvals-stats > :nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 479px) {
  .approvals-stats {
    grid-template-columns: 1fr;
  }

  .approvals-stats > :nth-child(3) {
    grid-column: auto;
  }
}

.approvals-reason {
  display: block;
  max-width: 220px;
  font-size: 13px;
  color: #434655;
  line-height: 1.5;
}

.approvals-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.approvals-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4375rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s, box-shadow 0.15s;
}

.approvals-btn--approve {
  background: #2563eb;
  color: #eeefff;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
}

.approvals-btn--approve:hover {
  opacity: 0.92;
}

.approvals-btn--reject {
  background: #ffffff;
  color: #ba1a1a;
  border: 1px solid #ffb4ab;
}

.approvals-btn--reject:hover {
  background: #ffdad6;
}

/* ── 数据看板页 ── */
.data-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.analytics-page {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.analytics-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.analytics-page-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.analytics-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}

.analytics-btn--secondary {
  background: #e1e2ed;
  color: #434655;
}

.analytics-btn--secondary:hover {
  background: #c3c6d7;
}

.analytics-btn--primary {
  background: #004ac6;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 74, 198, 0.2);
}

.analytics-btn--primary:hover {
  opacity: 0.92;
}

.analytics-kpi-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.analytics-kpi {
  background: #ffffff;
  border: 1px solid rgba(195, 198, 215, 0.3);
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.analytics-kpi__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.analytics-kpi__value {
  font-size: 28px;
  font-weight: 700;
  color: #191b23;
  line-height: 1.2;
}

.analytics-kpi__trend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 12px;
  margin-top: 0.25rem;
}

.analytics-kpi__trend--up { color: #059669; }
.analytics-kpi__trend--down { color: #dc2626; }
.analytics-kpi__trend--flat { color: #434655; }

.analytics-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.analytics-card {
  background: #ffffff;
  border: 1px solid rgba(195, 198, 215, 0.3);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.analytics-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.analytics-badge {
  font-size: 12px;
  font-weight: 500;
  color: #434655;
  background: #ededf9;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.analytics-legend {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.analytics-legend__item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 12px;
  color: #434655;
}

.analytics-legend__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.analytics-legend__dot--primary { background: #004ac6; }
.analytics-legend__dot--muted { background: #c3c6d7; }

.analytics-room-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.analytics-room-item__head {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 0.375rem;
}

.analytics-bar-track {
  height: 10px;
  width: 100%;
  background: #f3f3fe;
  border-radius: 9999px;
  overflow: hidden;
}

.analytics-bar-fill {
  height: 100%;
  background: #004ac6;
  border-radius: 9999px;
}

.analytics-bar-fill--level-1 { background: #004ac6; }
.analytics-bar-fill--level-2 { background: rgba(0, 74, 198, 0.85); }
.analytics-bar-fill--level-3 { background: rgba(0, 74, 198, 0.7); }
.analytics-bar-fill--level-4 { background: rgba(0, 74, 198, 0.6); }
.analytics-bar-fill--level-5 { background: rgba(0, 74, 198, 0.45); }

.analytics-peak-chart {
  height: 200px;
  margin-top: 1rem;
  position: relative;
}

.analytics-peak-grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  height: 100%;
  position: relative;
  z-index: 1;
}

.analytics-peak-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent calc(25% - 1px),
    rgba(195, 198, 215, 0.2) calc(25% - 1px),
    rgba(195, 198, 215, 0.2) 25%
  );
  pointer-events: none;
  z-index: 0;
}

.analytics-peak-col {
  flex: 1;
  position: relative;
  background: rgba(0, 74, 198, 0.08);
  border-radius: 4px 4px 0 0;
  min-height: 20%;
}

.analytics-peak-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #004ac6;
  border-radius: 4px 4px 0 0;
  transition: background 0.15s;
}

.analytics-peak-col:hover .analytics-peak-bar {
  background: #2563eb;
}

.analytics-peak-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 12px;
  color: #434655;
}

.analytics-table-wrap {
  overflow: hidden;
  border-radius: 0.5rem;
}

.analytics-table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
}

.analytics-table thead {
  background: #f3f3fe;
}

.analytics-table th {
  padding: 0.75rem 1rem;
  font-size: 12px;
  font-weight: 600;
  color: #434655;
}

.analytics-table td {
  padding: 0.75rem 1rem;
  font-size: 14px;
  border-top: 1px solid rgba(195, 198, 215, 0.2);
}

.analytics-table-row {
  transition: background 0.2s ease, transform 0.2s ease;
  animation: analytics-row-in 0.45s ease both;
}

.analytics-table-row:hover {
  background: #f3f3fe;
  transform: translateX(4px);
}

@keyframes analytics-row-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.analytics-rank {
  font-weight: 700;
  color: #737686;
}

.analytics-rank--top {
  color: #004ac6;
}

.analytics-table-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #434655;
}

.analytics-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 218, 214, 0.5);
  color: #ba1a1a;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
}

.analytics-exception-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.analytics-exception {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #f3f3fe;
  border-radius: 0.5rem;
  transition: box-shadow 0.2s ease;
}

.analytics-exception:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.analytics-exception__icon {
  padding: 0.5rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.analytics-exception__icon--error {
  background: #ffdad6;
  color: #ba1a1a;
}

.analytics-exception__icon--warn {
  background: #ffdbcd;
  color: #943700;
}

.analytics-exception__body {
  flex: 1;
  min-width: 0;
}

.analytics-exception__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.analytics-exception__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.analytics-suggestion {
  background: rgba(0, 74, 198, 0.05);
  border: 1px solid rgba(0, 74, 198, 0.1);
  border-radius: 1rem;
  padding: 2rem;
}

.analytics-suggestion__btn {
  margin-top: 1.5rem;
  padding: 0.625rem 1.5rem;
  background: #004ac6;
  color: #ffffff;
  border: none;
  border-radius: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 74, 198, 0.2);
  transition: transform 0.15s ease;
}

.analytics-suggestion__btn:hover {
  transform: scale(1.02);
}

.analytics-suggestion__btn:active {
  transform: scale(0.98);
}

@media (max-width: 1200px) {
  .analytics-kpi-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .analytics-kpi-row,
  .analytics-row-2 {
    grid-template-columns: 1fr;
  }
}

/* ── 会议室管理：图片编辑 ── */
.app-modal__panel--wide {
  max-width: 48rem;
}

.room-image-editor {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.room-image-editor__preview-wrap {
  width: 200px;
  height: 112px;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #c3c6d7;
  background: #f3f3fe;
  flex-shrink: 0;
}

.room-image-editor__preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.room-image-editor__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.room-image-editor__hint {
  font-size: 12px;
  color: #434655;
  margin: 0.25rem 0 0;
}

.room-table-thumb-wrap {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(195, 198, 215, 0.5);
  background: #f3f3fe;
}

.room-table-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  .room-image-editor {
    flex-direction: column;
  }

  .room-image-editor__preview-wrap {
    width: 100%;
    height: 160px;
  }
}

/* 系统设置 - IM 配置 */
.im-settings-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
}

.im-settings-status__icon {
  font-size: 1.25rem;
}

.im-settings-status--ok {
  background: #ecfdf5;
  color: #065f46;
}

.im-settings-status--warn {
  background: #fffbeb;
  color: #92400e;
}

.im-settings-status--error {
  background: #fef2f2;
  color: #b91c1c;
}

.im-settings-status--loading {
  background: #f3f3fe;
  color: #5c5f71;
}

.im-settings-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.im-settings-field--row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.im-settings-field__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1a1b20;
}

.im-settings-field__hint {
  font-size: 0.75rem;
  color: #5c5f71;
}

.im-settings-input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid #c3c6d7;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: #fff;
}

.im-settings-input:focus {
  outline: 2px solid rgba(0, 82, 212, 0.25);
  border-color: #0052d4;
}

.im-settings-toggle {
  width: 2.75rem;
  height: 1.5rem;
  accent-color: #0052d4;
}

/* 会议详情 - 发送邀请按钮（禁用态也保持可见） */
.meeting-im-invite-btn {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.75rem;
  background: #1677ff;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}

.meeting-im-invite-btn:hover:not(:disabled) {
  filter: brightness(1.08);
}

.meeting-im-invite-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.meeting-im-invite-btn:disabled {
  opacity: 1;
  background: #e8eaf6;
  color: #5c5f71;
  cursor: not-allowed;
}

#btn-im-invite-alt.meeting-im-invite-btn {
  width: auto;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
}

/* 会议室状态 - 拖拽预约 */
.timeline-track {
  position: relative;
  min-height: 6rem;
  user-select: none;
}

.timeline-drag-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: crosshair;
}

.timeline-track--dragging .timeline-drag-layer {
  cursor: col-resize;
}

.timeline-drag-preview {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 8;
  box-shadow: inset 0 0 0 2px rgba(14, 165, 233, 0.55);
  background: rgba(56, 189, 248, 0.22);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 100%;
  box-sizing: border-box;
}

.timeline-drag-preview--hidden {
  display: none !important;
}

.timeline-drag-preview.timeline-selection--dragging {
  background: rgba(56, 189, 248, 0.28);
  box-shadow: inset 0 0 0 2px rgba(2, 132, 199, 0.7);
}

.timeline-drag-preview.timeline-selection--active {
  background: rgba(56, 189, 248, 0.38);
  box-shadow: inset 0 0 0 2px #0284c7, 0 0 0 1px rgba(2, 132, 199, 0.15);
}

.timeline-selection__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0369a1;
  white-space: nowrap;
  padding: 0 0.5rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.timeline-drag-popover {
  position: fixed;
  z-index: 120;
  width: min(280px, calc(100vw - 24px));
  padding: 1rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid #e8eaf6;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.timeline-drag-popover.hidden {
  display: none;
}

.timeline-drag-popover__title {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #5c5f71;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.timeline-drag-popover__room {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1a1b20;
}

.timeline-drag-popover__time {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.8125rem;
  color: #0052d4;
}

.timeline-drag-popover__error {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  color: #b91c1c;
}

.timeline-drag-popover__error.hidden {
  display: none;
}

.timeline-drag-popover__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.meeting-seating-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border: 1px solid #c3c6d7;
  border-radius: 0.625rem;
  background: #f3f3fe;
  color: #0052d4;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.meeting-seating-btn:hover {
  background: #e8eaf6;
  border-color: #0052d4;
}

.meeting-seating-btn__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
}

.meeting-seating-btn__badge.hidden {
  display: none;
}

.meeting-seating-btn__badge--draft {
  background: #fef3c7;
  color: #b45309;
}

.meeting-seating-btn__badge--published {
  background: #d1fae5;
  color: #047857;
}

.meeting-seating-btn[data-seating-status="published"] {
  border-color: #34d399;
}

.seating-toast-container {
  position: fixed;
  top: 5.5rem;
  right: 1.5rem;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.seating-toast {
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
  animation: seating-toast-in 0.22s ease-out;
}

.seating-toast--success {
  background: #059669;
}

.seating-toast--error {
  background: #dc2626;
}

@keyframes seating-toast-in {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.seating-modal__btn--done {
  opacity: 0.75;
  cursor: default;
}

body.seating-open {
  overflow: hidden;
}

/* ── 会议排桌（Nexus 平面布局设计器，源自 auto paizhuo） ── */
.seating-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: #f7fafe;
  color: #181c1f;
}

.seating-modal.hidden {
  display: none;
}

.seating-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 4rem;
  background: #e0e3e7;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.seating-modal__header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.seating-modal__logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.seating-modal__logo-link:hover {
  opacity: 0.85;
}

.seating-modal__logo {
  display: block;
  height: 2rem;
  width: auto;
  flex-shrink: 0;
}

.seating-modal__header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.seating-modal__system-name {
  font-size: 1rem;
  font-weight: 700;
  color: #181c1f;
  white-space: nowrap;
  flex-shrink: 0;
}

.seating-modal__meeting-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #434655;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.seating-modal__header-divider--inline {
  height: 1.25rem;
}

.seating-modal__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #181c1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.seating-modal__header-divider {
  width: 1px;
  height: 1.5rem;
  background: #c3c6d7;
}

.seating-modal__meta {
  font-size: 0.8125rem;
  color: #434655;
}

.seating-modal__header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.seating-modal__btn {
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}

.seating-modal__btn--ghost {
  background: #e5e8ec;
  color: #004ac6;
}

.seating-modal__btn--ghost:hover {
  background: #e0e3e7;
}

.seating-modal__btn--primary {
  background: #004ac6;
  color: #fff;
}

.seating-modal__btn--primary:hover {
  opacity: 0.92;
}

.seating-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-left: 0.25rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
  color: #434655;
}

.seating-modal__close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.seating-modal__body {
  flex: 1;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  min-height: 0;
  overflow: hidden;
}

.seating-nav {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: #f1f4f8;
  border-right: 1px solid #c3c6d7;
  overflow-y: auto;
  min-height: 0;
}

.seating-nav__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.seating-nav__icon {
  color: #415ba2;
  font-size: 1.5rem;
  font-variation-settings: 'FILL' 1;
}

.seating-nav__caps {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #737686;
}

.seating-nav__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #415ba2;
}

.seating-nav__section-title {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #737686;
}

.seating-table-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.seating-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  background: #ebeef2;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.seating-type-card:hover {
  background: #e0e3e7;
}

.seating-type-card--active {
  background: #98b1fe;
  border-color: #004ac6;
  color: #264187;
}

.seating-type-card__preview {
  width: 100%;
  height: 3rem;
  margin-bottom: 0.5rem;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.seating-type-card__preview--rect::after {
  content: '';
  width: 2.5rem;
  height: 1.5rem;
  background: #fff;
  border: 1px solid #c3c6d7;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.seating-type-card__preview--u::after {
  content: '';
  width: 2.5rem;
  height: 2rem;
  border: 4px solid #737686;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}

.seating-type-card__preview--round::after {
  content: '';
  width: 2rem;
  height: 2rem;
  border: 4px solid #737686;
  border-radius: 50%;
}

.seating-type-card__preview--oval::after {
  content: '';
  width: 2.5rem;
  height: 1rem;
  border: 4px solid #737686;
  border-radius: 999px;
}

.seating-type-card__label {
  font-size: 0.6875rem;
  font-weight: 700;
}

.seating-type-card__hint {
  font-size: 0.625rem;
  opacity: 0.75;
}

.seating-stage {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f7fafe;
  background-image: radial-gradient(#c3c6d7 1px, transparent 1px);
  background-size: 24px 24px;
  cursor: grab;
  touch-action: none;
}

.seating-stage--panning {
  cursor: grabbing;
  user-select: none;
}

.seating-stage--panning * {
  cursor: grabbing !important;
}

.seating-room-floor--panning {
  transition: none;
}

.seating-canvas-wrap {
  transform-origin: center center;
  transition: transform 0.15s ease;
  position: relative;
  z-index: 2;
}

/* ── 会议室平面布置（墙体 + 组件） ── */
.seating-room-floor {
  position: relative;
  width: 840px;
  height: 600px;
  max-width: none;
  flex-shrink: 0;
  transform-origin: center center;
  transition: transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seating-room-floor--drop-over {
  outline: none;
}

.seating-room-floor__fill {
  position: absolute;
  z-index: 0;
  background: linear-gradient(180deg, #fafbfd 0%, #f0f4fa 100%);
  border-radius: 0.25rem;
  box-shadow: inset 0 0 0 1px rgba(195, 198, 215, 0.35);
  pointer-events: none;
}

.seating-room-hit {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  box-sizing: border-box;
}

.seating-room-hit--drop-over {
  outline: 2px dashed #004ac6;
  outline-offset: 0;
  background: rgba(0, 74, 198, 0.04);
}

.seating-room-floor--palette-drag .seating-room-hit {
  pointer-events: auto;
}

.seating-room-floor--palette-drag .seating-room-overlay {
  pointer-events: none;
}

.seating-room-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.seating-room-wall {
  position: absolute;
  z-index: 1;
  pointer-events: auto;
  cursor: grab;
  background: linear-gradient(180deg, #8b95a8 0%, #6b7280 45%, #5c6370 100%);
  border-radius: 2px;
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  touch-action: none;
}

.seating-room-floor--draw-wall {
  cursor: crosshair;
}

.seating-room-floor--draw-wall .seating-room-overlay {
  pointer-events: auto;
  cursor: crosshair;
}

.seating-room-draw-preview {
  position: absolute;
  z-index: 4;
  border: 2px dashed #004ac6;
  background: rgba(0, 74, 198, 0.08);
  border-radius: 0.25rem;
  pointer-events: none;
}

.seating-room-draw-preview--invalid {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.seating-nav__add-wall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin-bottom: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.625rem;
  border: 1px dashed #004ac6;
  background: rgba(0, 74, 198, 0.06);
  color: #004ac6;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.seating-nav__add-wall:hover {
  background: rgba(0, 74, 198, 0.12);
}

.seating-nav__add-wall--active {
  background: #004ac6;
  color: #fff;
  border-style: solid;
  box-shadow: 0 4px 12px rgba(0, 74, 198, 0.28);
}

.seating-nav__add-wall .material-symbols-outlined {
  font-size: 1.125rem;
}

.seating-room-wall__handle {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #004ac6;
  box-shadow: 0 2px 6px rgba(0, 74, 198, 0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  cursor: ew-resize;
}

.seating-room-wall--selected {
  outline: 2px dashed #004ac6;
  outline-offset: 4px;
  cursor: grab;
  z-index: 2;
}

.seating-room-wall--selected .seating-room-wall__handle {
  opacity: 1;
  pointer-events: auto;
}

.seating-room-wall--h .seating-room-wall__handle--start {
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
}

.seating-room-wall--h .seating-room-wall__handle--end {
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
}

.seating-room-wall--v .seating-room-wall__handle--start {
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  cursor: ns-resize;
}

.seating-room-wall--v .seating-room-wall__handle--end {
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  cursor: ns-resize;
}

.seating-room-object--hidden {
  display: none;
}

.seating-room-wall--h {
  border-left: 3px solid #4b5563;
  border-right: 3px solid #4b5563;
}

.seating-room-wall--v {
  border-top: 3px solid #4b5563;
  border-bottom: 3px solid #4b5563;
}

.seating-room-object {
  position: absolute;
  z-index: 2;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.1rem;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: grab;
  touch-action: none;
}

.seating-room-object:active {
  cursor: grabbing;
}

.seating-room-object__symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  background: transparent;
}

.seating-room-object__symbol svg {
  display: block;
  flex-shrink: 0;
  background: transparent;
}

.seating-room-symbol--door {
  width: 64px;
  height: 52px;
}

.seating-room-symbol--door-left,
.seating-room-symbol--door-right {
  width: 52px;
  height: 64px;
}

.seating-room-symbol--tv {
  width: 52px;
  height: 44px;
}

.seating-room-symbol--plant {
  width: 40px;
  height: 44px;
}

.seating-room-object__label {
  font-size: 0.625rem;
  font-weight: 600;
  color: #4b5563;
  white-space: nowrap;
  line-height: 1.2;
  text-align: center;
  background: transparent;
  text-shadow:
    0 0 4px #f7fafe,
    0 0 4px #f7fafe,
    0 1px 2px rgba(255, 255, 255, 0.95);
}

.seating-room-object--door {
  min-width: 0;
  padding: 0;
}

.seating-room-object--door .seating-room-object__symbol {
  margin: 0;
}

.seating-room-palette__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  line-height: 0;
}

.seating-room-palette__preview svg {
  display: block;
}

.seating-room-object__remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 1rem;
  height: 1rem;
  border: none;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
  padding: 0;
}

.seating-room-object:hover .seating-room-object__remove {
  opacity: 1;
}

.seating-nav__section-hint {
  margin: 0 0 0.65rem;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: #737686;
}

.seating-room-palette {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.seating-room-palette__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.65rem 0.35rem;
  border-radius: 0.625rem;
  border: 1px solid #c3c6d7;
  background: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #415ba2;
  cursor: grab;
  transition: border-color 0.15s, box-shadow 0.15s;
  user-select: none;
}

.seating-room-palette__item:hover {
  border-color: #004ac6;
  box-shadow: 0 4px 10px rgba(0, 74, 198, 0.12);
}

.seating-room-palette__item .material-symbols-outlined {
  font-size: 1.35rem;
  color: #004ac6;
}

.seating-nav__section {
  margin-bottom: 1rem;
}

.seating-canvas {
  width: min(900px, 100%);
}

.seating-canvas--bilateral {
  width: max-content;
  max-width: none;
}

.seating-map {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
}

.seating-seat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  max-width: 100%;
}

.seating-seat-row--top,
.seating-seat-row--bottom {
  flex-wrap: nowrap;
  width: max-content;
  max-width: none;
  gap: 0.625rem;
}

.seating-seat-row--top {
  margin-bottom: 2rem;
}

.seating-seat-row--bottom {
  margin-top: 2rem;
}

.seating-map--bilateral {
  --bilateral-seat-cols: 4;
  --bilateral-seat-rows: 4;
  --bilateral-seat-w: 4.75rem;
  --bilateral-seat-h: 3rem;
  --bilateral-seat-gap: 0.625rem;
  --bilateral-row-width: calc(
    var(--bilateral-seat-cols) * var(--bilateral-seat-w) +
    max(0, var(--bilateral-seat-cols) - 1) * var(--bilateral-seat-gap)
  );
  --bilateral-col-height: max(
    9rem,
    calc(
      var(--bilateral-seat-rows) * var(--bilateral-seat-h) +
      max(0, var(--bilateral-seat-rows) - 1) * var(--bilateral-seat-gap)
    )
  );
  display: grid;
  grid-template-columns: auto var(--bilateral-row-width) auto;
  grid-template-rows: auto auto auto;
  align-items: center;
  justify-items: center;
  column-gap: 1rem;
  row-gap: 1.25rem;
  width: max-content;
  max-width: none;
}

.seating-map--bilateral > .seating-seat-row--top {
  grid-column: 2;
  grid-row: 1;
  width: var(--bilateral-row-width);
  margin-bottom: 0;
  justify-content: center;
  justify-self: center;
}

.seating-map--bilateral > .seating-seat-row--bottom {
  grid-column: 2;
  grid-row: 3;
  width: var(--bilateral-row-width);
  margin-top: 0;
  justify-content: center;
  justify-self: center;
}

.seating-map--bilateral > .seating-bilateral-middle {
  display: contents;
}

.seating-map--bilateral .seating-chair-col--left {
  grid-column: 1;
  grid-row: 2;
  height: var(--bilateral-col-height);
  gap: var(--bilateral-seat-gap);
  align-self: center;
  justify-self: end;
  justify-content: center;
}

.seating-map--bilateral .seating-table-25d {
  grid-column: 2;
  grid-row: 2;
  width: var(--bilateral-row-width);
  min-width: var(--bilateral-row-width);
  max-width: var(--bilateral-row-width);
  height: var(--bilateral-col-height);
  min-height: var(--bilateral-col-height);
  max-height: var(--bilateral-col-height);
  box-sizing: border-box;
  overflow: visible;
}

.seating-map--bilateral .seating-chair-col--right {
  grid-column: 3;
  grid-row: 2;
  height: var(--bilateral-col-height);
  gap: var(--bilateral-seat-gap);
  align-self: center;
  justify-self: start;
  justify-content: center;
}

.seating-bilateral-middle {
  margin: 0;
}

.seating-chair-col--left,
.seating-chair-col--right {
  min-width: 4.75rem;
  flex-shrink: 0;
}

.seating-seat-row--top .seating-seat,
.seating-seat-row--bottom .seating-seat {
  flex-shrink: 0;
}

.seating-seat-row--top .seating-seat--filled,
.seating-seat-row--bottom .seating-seat--filled {
  flex-shrink: 0;
}

.seating-seat--left.seating-seat--filled {
  transform: translateX(-0.35rem);
}

.seating-seat--right.seating-seat--filled {
  transform: translateX(0.35rem);
}

.seating-sides-config {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e8edf3;
}

.seating-sides-config--on-table {
  position: absolute;
  right: 0.625rem;
  bottom: 0.625rem;
  z-index: 4;
  margin: 0;
  padding: 0.375rem 0.5rem;
  border: 1px solid #c3c6d7;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 14px rgba(15, 47, 117, 0.14);
  max-width: 11.5rem;
  pointer-events: auto;
}

.seating-sides-config--on-table.seating-sides-config--expanded {
  padding: 0.5rem 0.625rem;
}

.seating-sides-config__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: left;
}

.seating-sides-config__toggle:hover .seating-sides-config__title {
  color: #004ac6;
}

.seating-sides-config__chevron {
  flex-shrink: 0;
  font-size: 1.125rem;
  line-height: 1;
  color: #737686;
  transition: transform 0.2s ease, color 0.15s;
}

.seating-sides-config__toggle:hover .seating-sides-config__chevron {
  color: #004ac6;
}

.seating-sides-config--expanded .seating-sides-config__chevron {
  transform: rotate(180deg);
}

.seating-sides-config__body {
  display: none;
}

.seating-sides-config--expanded .seating-sides-config__body {
  display: block;
  margin-top: 0.375rem;
}

.seating-sides-config--on-table .seating-sides-config__title {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #1a1c20;
  transition: color 0.15s;
}

.seating-sides-config--on-table .seating-sides-config__hint {
  margin: 0 0 0.375rem;
  font-size: 0.625rem;
  color: #94a3b8;
  line-height: 1.3;
}

.seating-sides-config--on-table .seating-sides-config__grid {
  gap: 0.25rem;
}

.seating-sides-config--on-table .seating-sides-config__row {
  gap: 0.375rem;
}

.seating-sides-config--on-table .seating-sides-config__label {
  font-size: 0.6875rem;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.seating-sides-config--on-table .seating-sides-config__ctrl {
  gap: 0.25rem;
  flex-shrink: 0;
}

.seating-sides-config--on-table .seating-sides-config__btn {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
}

.seating-sides-config--on-table .seating-sides-config__count {
  min-width: 1.125rem;
  font-size: 0.75rem;
}

.seating-sides-config.hidden {
  display: none;
}

.seating-sides-config__title {
  margin: 0 0 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a1c20;
}

.seating-sides-config__hint {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.45;
}

.seating-sides-config__grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.seating-sides-config__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.seating-sides-config__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #434655;
}

.seating-sides-config__ctrl {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.seating-sides-config__btn {
  width: 2rem;
  height: 2rem;
  border: 1px solid #c3c6d7;
  border-radius: 0.375rem;
  background: #fff;
  color: #004ac6;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.seating-sides-config__btn:hover {
  background: #f0f5ff;
  border-color: #004ac6;
}

.seating-sides-config__count {
  min-width: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a1c20;
}

.seating-seat {
  width: 4.75rem;
  min-height: 3rem;
  border: 2px dashed #c3c6d7;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.seating-seat--top.seating-seat--filled {
  transform: translateY(-0.5rem);
}

.seating-seat--bottom.seating-seat--filled {
  transform: translateY(0.5rem);
}

.seating-seat--filled {
  border: none;
  background: transparent;
  min-height: auto;
  width: auto;
  min-width: 4rem;
}

.seating-seat__placeholder {
  font-size: 0.625rem;
  color: #737686;
  text-align: center;
  padding: 0.25rem;
  line-height: 1.3;
  white-space: nowrap;
}

.seating-table-25d {
  width: min(800px, 100%);
  height: 15rem;
  border: 2px solid #c3c6d7;
  border-radius: 1.5rem;
  transform: perspective(1000px) rotateX(12deg);
  box-shadow: 0 20px 40px rgba(15, 47, 117, 0.1), inset 0 2px 4px rgba(255, 255, 255, 0.8);
  background: linear-gradient(180deg, #ffffff 0%, #f1f4f8 100%);
  overflow: hidden;
  position: relative;
}

.seating-table-25d__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  opacity: 0.35;
}

.seating-table-25d__inner--compass {
  opacity: 1;
}

.seating-table-25d__icon {
  font-size: 3.5rem;
  color: #004ac6;
  margin-bottom: 0.5rem;
}

.seating-table-25d__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #181c1f;
}

/* 桌内方位指南针 */
.seating-compass {
  position: relative;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f1f4f8 55%, #e8edf4 100%);
  border: 2px solid #c3c6d7;
  box-shadow:
    0 10px 24px rgba(15, 47, 117, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.seating-compass[data-compass-dial] {
  cursor: grab;
  touch-action: none;
  outline: none;
}

.seating-compass[data-compass-dial]:hover {
  border-color: #004ac6;
  box-shadow:
    0 10px 24px rgba(15, 47, 117, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 3px rgba(0, 74, 198, 0.08);
}

.seating-compass--dragging {
  cursor: grabbing;
}

.seating-compass__face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transform: rotate(var(--compass-bearing, 0deg));
  transition: transform 0.15s ease;
}

.seating-compass__face--no-transition {
  transition: none;
}

.seating-compass--compact {
  width: 4.75rem;
  height: 4.75rem;
}

.seating-compass__dir {
  position: absolute;
  font-size: 0.625rem;
  font-weight: 700;
  color: #737686;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.15s ease;
}

.seating-compass__face--no-transition .seating-compass__dir {
  transition: none;
}

.seating-compass__dir small {
  display: block;
  font-size: 0.5rem;
  font-weight: 600;
  opacity: 0.9;
}

.seating-compass__dir--n {
  top: 0.45rem;
  left: 50%;
  transform: translateX(-50%) rotate(calc(-1 * var(--compass-bearing, 0deg)));
  color: #004ac6;
}

.seating-compass__dir--s {
  bottom: 0.45rem;
  left: 50%;
  transform: translateX(-50%) rotate(calc(-1 * var(--compass-bearing, 0deg)));
}

.seating-compass__dir--e {
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%) rotate(calc(-1 * var(--compass-bearing, 0deg)));
}

.seating-compass__dir--w {
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%) rotate(calc(-1 * var(--compass-bearing, 0deg)));
}

.seating-compass--compact .seating-compass__dir {
  font-size: 0.5625rem;
}

.seating-compass--compact .seating-compass__dir small {
  font-size: 0.4375rem;
}

.seating-compass--compact .seating-compass__dir--n { top: 0.3rem; }
.seating-compass--compact .seating-compass__dir--s { bottom: 0.3rem; }
.seating-compass--compact .seating-compass__dir--e { right: 0.35rem; }
.seating-compass--compact .seating-compass__dir--w { left: 0.35rem; }

.seating-compass__needle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 0.35rem solid transparent;
  border-right: 0.35rem solid transparent;
  border-bottom: 1.65rem solid #004ac6;
  transform: translate(-50%, -92%);
  filter: drop-shadow(0 1px 2px rgba(0, 74, 198, 0.25));
}

.seating-compass--compact .seating-compass__needle {
  border-left-width: 0.28rem;
  border-right-width: 0.28rem;
  border-bottom-width: 1.2rem;
}

.seating-compass__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #004ac6;
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 3px rgba(0, 74, 198, 0.35);
}

.seating-compass--compact .seating-compass__hub {
  width: 0.375rem;
  height: 0.375rem;
}

.seating-nameplate {
  min-width: 4rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  background: #004ac6;
  box-shadow: 0 4px 12px rgba(0, 74, 198, 0.25);
  cursor: grab;
}

.seating-nameplate--vip {
  background: #0f2f75;
  border: 2px solid #d4af37;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.seating-nameplate-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.seating-nameplate-wrap--vip {
  margin-top: -0.35rem;
}

.seating-nameplate__vip-badge {
  display: block;
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  color: #b8860b;
  text-transform: uppercase;
  white-space: nowrap;
}

/* 外部公司 / 临时嘉宾桌牌（青绿色，区别于本公司蓝色） */
.seating-nameplate--external {
  background: linear-gradient(180deg, #0d9488 0%, #0f766e 100%);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.seating-nameplate--external.seating-nameplate--vip {
  background: linear-gradient(180deg, #0f766e 0%, #115e59 100%);
  border: 2px solid #d4af37;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.22);
}

.seating-nameplate__text {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.35;
  white-space: nowrap;
}

.seating-nameplate__sub {
  font-weight: 500;
  opacity: 0.9;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.seating-stage__controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.seating-stage__ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  color: #434655;
}

.seating-stage__ctrl:hover {
  background: #ebeef2;
}

.seating-stage__ctrl--text {
  width: auto;
  gap: 0.35rem;
  padding: 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #004ac6;
}

.seating-stage__zoom {
  font-size: 0.875rem;
  font-weight: 700;
  width: 3rem;
  text-align: center;
}

.seating-stage__ctrl-divider {
  width: 1px;
  height: 1.5rem;
  background: #c3c6d7;
}

.seating-panel {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-left: 1px solid #c3c6d7;
  min-height: 0;
}

.seating-panel__head {
  padding: 1rem;
  border-bottom: 1px solid #c3c6d7;
}

.seating-panel__title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.seating-panel__tabs {
  display: flex;
  background: #ebeef2;
  border-radius: 0.5rem;
  padding: 0.2rem;
  gap: 0.125rem;
}

.seating-panel__tab {
  flex: 1;
  padding: 0.375rem 0.5rem;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #434655;
  cursor: pointer;
}

.seating-panel__tab--active {
  background: #fff;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.seating-pool {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
}

.seating-pool__empty {
  margin: auto;
  text-align: center;
  font-size: 0.8125rem;
  color: #737686;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.seating-pool__empty .material-symbols-outlined {
  font-size: 2.5rem;
  color: #c3c6d7;
}

.seating-draggable-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: #f1f4f8;
  border: 1px solid #c3c6d7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  cursor: grab;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.seating-draggable-card--vip,
.seating-draggable-card--temp {
  padding-top: 1.625rem;
}

.seating-draggable-card__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

.seating-draggable-card:hover {
  border-color: #004ac6;
  box-shadow: 0 4px 12px rgba(0, 74, 198, 0.12);
}

.seating-draggable-card--temp:hover {
  border-color: #0d9488;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.18);
}

.seating-draggable-card__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: #dbe1ff;
  color: #264187;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.seating-draggable-card__body {
  flex: 1;
  min-width: 0;
}

.seating-draggable-card__name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #181c1f;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: break-word;
}

.seating-draggable-card__dept {
  margin: 0.125rem 0 0;
  font-size: 0.6875rem;
  color: #434655;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: break-word;
}

.seating-draggable-card__handle {
  font-size: 1rem;
  color: #737686;
  flex-shrink: 0;
}

.seating-panel__foot {
  padding: 1rem;
  border-top: 1px solid #c3c6d7;
  background: #f1f4f8;
}

.seating-panel__import {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 2px solid #004ac6;
  border-radius: 0.5rem;
  background: transparent;
  color: #004ac6;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.seating-panel__import:hover {
  background: rgba(0, 74, 198, 0.06);
}

.seating-panel__foot--dual {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.seating-panel__import--company {
  border-color: #004ac6;
  color: #004ac6;
}

.seating-panel__import--guest {
  border-color: #415ba2;
  color: #415ba2;
  background: rgba(65, 91, 162, 0.04);
}

.seating-panel__import--guest:hover {
  background: rgba(65, 91, 162, 0.1);
}

.seating-draggable-card--temp {
  background: #ecfdf5;
  border-color: #5eead4;
  border-width: 1.5px;
}

.seating-draggable-card--temp .seating-draggable-card__avatar {
  background: #99f6e4;
  color: #0f766e;
}

.seating-draggable-card--temp .seating-draggable-card__name {
  color: #134e4a;
}

.seating-draggable-card--temp .seating-draggable-card__dept {
  color: #0f766e;
}

.seating-draggable-card--temp.seating-draggable-card--vip {
  border-color: rgba(212, 175, 55, 0.65);
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf9 100%);
}

.seating-draggable-card__temp {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #ccfbf1;
  border: 1px solid #2dd4bf;
  color: #0f766e;
  font-size: 0.5625rem;
  font-weight: 800;
  z-index: 1;
}

.seating-guest-import.seating-submodal__panel {
  width: min(580px, 94vw);
  max-height: min(90vh, 720px);
}

.seating-add-company-panel.seating-submodal__panel {
  width: min(420px, 96vw);
  max-height: min(80vh, 560px);
  display: flex;
  flex-direction: column;
}

.seating-add-company-panel .add-attendee-modal__header,
.seating-add-company-panel .add-attendee-modal__hint,
.seating-add-company-panel__toolbar {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.seating-add-company-panel__toolbar {
  padding: 0 1.25rem 0.75rem;
}

.seating-add-company-panel__create {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid #004ac6;
  background: rgba(0, 74, 198, 0.06);
  color: #004ac6;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.seating-add-company-panel__create:hover {
  background: rgba(0, 74, 198, 0.12);
}

.seating-add-company-panel__create .material-symbols-outlined {
  font-size: 1.125rem;
}

.add-attendee-modal__empty-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.seating-guest-import .add-attendee-modal__header {
  flex-shrink: 0;
  padding: 1.25rem 1.25rem 0.75rem;
}

.seating-guest-import__hint {
  flex-shrink: 0;
  padding: 0 1.25rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #434655;
}

.seating-guest-import__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.seating-guest-import .add-attendee-modal__footer {
  flex-shrink: 0;
}

.seating-add-company-panel .add-attendee-modal__list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.seating-guest-import__tabs {
  display: flex;
  margin: 0 1.25rem 0.75rem;
  padding: 0.2rem;
  background: #ebeef2;
  border-radius: 0.5rem;
  gap: 0.125rem;
}

.seating-guest-import__tab {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #434655;
  cursor: pointer;
}

.seating-guest-import__tab--active {
  background: #fff;
  color: #004ac6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.seating-guest-import__pane {
  padding: 0 1.25rem 0.75rem;
}

.seating-guest-import__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  align-items: end;
  margin-bottom: 0.75rem;
}

.seating-guest-import__add-btn {
  grid-column: 1 / -1;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 2.5rem;
  white-space: nowrap;
}

.seating-guest-import__parse-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.seating-guest-import__feedback {
  min-height: 1.25rem;
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.seating-guest-import__feedback--ok {
  color: #16a34a;
}

.seating-guest-import__feedback--warn {
  color: #d97706;
}

.seating-guest-import__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #434655;
  min-width: 0;
}

.seating-guest-import__field span {
  line-height: 1.35;
}

.seating-guest-import__field--full {
  margin-bottom: 0.5rem;
}

.seating-guest-import__field input,
.seating-guest-import__field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.625rem;
  border: 1px solid #c3c6d7;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  resize: vertical;
}

.seating-guest-import__dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 2rem 1rem;
  border: 2px dashed #c3c6d7;
  border-radius: 0.75rem;
  background: #f7fafe;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.seating-guest-import__dropzone:hover,
.seating-guest-import__dropzone--over {
  border-color: #004ac6;
  background: rgba(0, 74, 198, 0.04);
}

.seating-guest-import__dropzone .material-symbols-outlined {
  font-size: 2.5rem;
  color: #737686;
}

.seating-guest-import__formats {
  margin: 0;
  font-size: 0.6875rem;
  color: #737686;
}

.seating-guest-import__status {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: #004ac6;
  min-height: 1.25rem;
}

.seating-guest-import__preview {
  margin: 0 1.25rem 1rem;
  padding: 0.75rem;
  border: 1px solid #c3c6d7;
  border-radius: 0.5rem;
  background: #f1f4f8;
  min-height: 5rem;
  max-height: 180px;
  overflow-y: auto;
}

.seating-guest-import__preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
}

.seating-guest-import__clear {
  border: none;
  background: transparent;
  color: #737686;
  font-size: 0.75rem;
  cursor: pointer;
}

.seating-guest-import__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.seating-guest-import__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #ebeef2;
  font-size: 0.8125rem;
}

.seating-guest-import__item-name {
  font-weight: 700;
  min-width: 4rem;
}

.seating-guest-import__item-co {
  flex: 1;
  color: #434655;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seating-guest-import__item-remove {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #737686;
  padding: 0.15rem;
}

.seating-guest-import__empty {
  font-size: 0.8125rem;
  color: #737686;
  text-align: center;
  padding: 0.5rem;
}

@media (max-width: 520px) {
  .seating-guest-import__form {
    grid-template-columns: 1fr;
  }
}

.seating-person--dragging {
  opacity: 0.55;
}

/* round / U型 / 回型 等桌型布局 */
.seating-person {
  cursor: grab;
  user-select: none;
}

.seating-person:active {
  cursor: grabbing;
}

.seating-chair {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 5rem;
}

.seating-chair__slot {
  width: 100%;
  min-height: 3rem;
  padding: 0.25rem;
  border: 2px dashed #c3c6d7;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.seating-chair--occupied .seating-chair__slot {
  border: none;
  background: transparent;
  min-height: auto;
}

.seating-chair--round.seating-chair--occupied {
  width: 6.75rem;
}

.seating-table-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.seating-chair-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.seating-chair-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

.seating-table {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff 0%, #f1f4f8 100%);
  border: 2px solid #c3c6d7;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(15, 47, 117, 0.08);
  color: #434655;
  font-size: 0.8125rem;
  font-weight: 600;
}

.seating-table--round {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
}

.seating-table--u {
  width: 100%;
  height: 4.5rem;
  border-radius: 1rem 1rem 0 0;
}

.seating-table--hollow {
  width: 10rem;
  height: 6rem;
}

.seating-table-wrap--round {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
}

.seating-chair--round {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5rem;
  transform: translate(-50%, -50%) rotate(var(--chair-angle)) translateY(-168px) rotate(calc(-1 * var(--chair-angle)));
}

.seating-table-wrap--round .seating-table--round {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.seating-ushape-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: stretch;
}

.seating-ushape-center {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: flex-end;
  min-width: 280px;
}

.seating-hollow-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.seating-hollow-middle {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 1100px) {
  .seating-modal__body {
    grid-template-columns: 240px minmax(0, 1fr) 240px;
  }
}

.seating-modal__header-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.seating-modal__meta--sub {
  display: block;
  font-size: 0.75rem;
  color: #737686;
}

.seating-modal__meta--room {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #004ac6;
}

.seating-modal__btn--toolbar {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.875rem;
  background: transparent;
  color: #434655;
  font-weight: 600;
}

.seating-modal__btn--toolbar:hover {
  background: #e5e8ec;
}

.seating-modal__btn--toolbar .material-symbols-outlined {
  font-size: 1.125rem;
}

.seating-nav__add-table {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  background: #e5e8ec;
  color: #004ac6;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.seating-nav__add-table:hover {
  background: #e0e3e7;
}

.seating-nav__foot {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #c3c6d7;
}

.seating-nav__foot-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: #434655;
  font-size: 0.8125rem;
  cursor: pointer;
}

.seating-nav__foot-btn:hover {
  background: #ebeef2;
}

.seating-panel__search {
  position: relative;
  margin-bottom: 0.75rem;
}

.seating-panel__search .material-symbols-outlined {
  position: absolute;
  left: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.125rem;
  color: #737686;
  pointer-events: none;
}

.seating-panel__search input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  border: 1px solid #c3c6d7;
  border-radius: 0.5rem;
  background: #f1f4f8;
  font-size: 0.8125rem;
}

.seating-panel__stats {
  padding: 0.75rem 1rem;
  border-top: 1px solid #c3c6d7;
  background: rgba(0, 74, 198, 0.04);
}

.seating-panel__stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: #434655;
  margin-bottom: 0.35rem;
}

.seating-panel__stats-bar {
  height: 4px;
  border-radius: 999px;
  background: #e0e3e7;
  overflow: hidden;
}

.seating-panel__stats-fill {
  height: 100%;
  width: 0;
  background: #004ac6;
  border-radius: 999px;
  transition: width 0.2s;
}

.seating-draggable-card--vip {
  border-color: rgba(212, 175, 55, 0.45);
}

.seating-draggable-card__vip {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #b8860b;
  font-size: 0.5625rem;
  font-weight: 800;
  z-index: 1;
}

.seating-draggable-card__hint {
  display: none;
  width: 100%;
  margin: 0.5rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(195, 198, 215, 0.55);
  font-size: 0.625rem;
  line-height: 1.4;
  color: #737686;
}

.seating-draggable-card:hover .seating-draggable-card__hint {
  display: block;
}

.seating-draggable-card:active {
  transform: scale(0.98);
  cursor: grabbing;
}

.seating-person--dragging {
  opacity: 0.55;
  box-shadow: 0 0 20px rgba(0, 74, 198, 0.3), 0 8px 30px rgba(0, 0, 0, 0.12);
}

.seating-seat--drag-over {
  border-color: #004ac6 !important;
  background: rgba(0, 74, 198, 0.08) !important;
  animation: seating-drop-pulse 1.5s infinite;
}

.seating-chair--drag-over .seating-chair__slot {
  border-color: #004ac6;
  background: rgba(0, 74, 198, 0.08);
  animation: seating-drop-pulse 1.5s infinite;
}

@keyframes seating-drop-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 74, 198, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(0, 74, 198, 0.08); }
}

.seating-seat__code,
.seating-nameplate__code {
  display: block;
  font-size: 0.5625rem;
  font-weight: 700;
  color: #737686;
  text-align: center;
  margin-bottom: 0.15rem;
  white-space: nowrap;
}

.seating-type-card__preview--classroom {
  flex-direction: column;
  gap: 3px;
}

.seating-type-card__preview--classroom::before {
  content: '';
  width: 2rem;
  height: 3px;
  background: #737686;
  border-radius: 2px;
}

.seating-type-card__preview--classroom::after {
  content: '';
  width: 2rem;
  height: 1rem;
  background: repeating-linear-gradient(0deg, #737686 0 2px, transparent 2px 5px);
  border-radius: 2px;
}

.seating-type-card__preview--theater::after {
  content: '';
  width: 2.5rem;
  height: 1.5rem;
  background: repeating-linear-gradient(
    0deg,
    #737686 0 3px,
    transparent 3px 6px
  );
  border-radius: 2px;
}

.seating-table-25d--u {
  width: 100%;
  height: 4.5rem;
  border-radius: 1rem 1rem 0 0;
}

.seating-table-25d--hollow {
  width: 10rem;
  height: 6rem;
}

.seating-grid-layout {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
}

.seating-grid-layout__front {
  width: min(100%, 520px);
  padding: 0.75rem;
  text-align: center;
  border: 2px dashed #c3c6d7;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 700;
  color: #737686;
  letter-spacing: 0.05em;
}

.seating-seat-row--grid {
  gap: 0.5rem;
}

.seating-seat-row--grid .seating-seat {
  width: auto;
  min-width: 4rem;
  min-height: 2.75rem;
}

/* 子模态框 */
.seating-submodal {
  position: fixed;
  inset: 0;
  z-index: 230;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.seating-submodal--global {
  z-index: 1100;
}

.seating-submodal.hidden {
  display: none;
}

.seating-submodal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  pointer-events: auto;
}

.seating-submodal__panel {
  position: relative;
  z-index: 2;
  width: min(900px, 96vw);
  max-height: min(90vh, 720px);
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.seating-submodal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid #c3c6d7;
}

.seating-submodal__header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.seating-submodal__header p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: #434655;
}

.seating-submodal__close {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 999px;
  color: #434655;
}

.seating-submodal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #c3c6d7;
}

.seating-table-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  overflow-y: auto;
}

.seating-table-picker__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid #c3c6d7;
  border-radius: 0.75rem;
  background: #f1f4f8;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, transform 0.15s;
}

.seating-table-picker__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 74, 198, 0.1);
}

.seating-table-picker__card--active {
  border: 2px solid #004ac6;
  background: #eeefff;
}

.seating-table-picker__badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #004ac6;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
}

.seating-table-picker__card h4 {
  margin: 0.5rem 0 0.25rem;
  font-size: 0.9375rem;
}

.seating-table-picker__card p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: #434655;
}

.seating-table-picker__card .seating-type-card__preview {
  height: 5rem;
}

/* 预览模式 */
.seating-preview {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  flex-direction: column;
  background: #f7fafe;
}

.seating-preview.hidden {
  display: none;
}

.seating-preview__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  height: 4rem;
  background: #e0e3e7;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.seating-preview__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.seating-preview__header h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.seating-preview__room {
  font-size: 0.8125rem;
  color: #434655;
}

.seating-preview__actions {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
}

.seating-preview__body {
  flex: 1;
  overflow: auto;
  padding: 2rem;
}

.seating-preview__canvas-wrap {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.seating-preview__canvas {
  background-color: #f7fafe;
  background-image: radial-gradient(#c3c6d7 1px, transparent 1px);
  background-size: 24px 24px;
  border-radius: 1rem;
  padding: 2rem;
  min-height: 400px;
}

.seating-nameplate-preview {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  width: 16rem;
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.seating-nameplate-preview__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #737686;
  margin-bottom: 0.5rem;
}

.seating-nameplate-preview__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #22c55e;
  animation: seating-pulse 2s infinite;
}

@keyframes seating-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.seating-nameplate-preview__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1rem;
  min-height: 7rem;
  border-radius: 0.5rem;
  background: #0f2f75;
  color: #fff;
  text-align: center;
}

.seating-nameplate-preview__card--vip {
  border: 2px solid #d4af37;
}

.seating-nameplate-preview__card--external {
  background: linear-gradient(180deg, #0d9488 0%, #0f766e 100%);
  border: none;
}

.seating-nameplate-preview__card--external.seating-nameplate-preview__card--vip {
  border: 2px solid #d4af37;
}

.seating-nameplate-preview__event {
  font-size: 0.625rem;
  opacity: 0.7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seating-nameplate-preview__name {
  font-size: 1.125rem;
  font-weight: 700;
}

.seating-nameplate-preview__title {
  font-size: 0.625rem;
  opacity: 0.65;
  font-weight: 700;
  text-transform: uppercase;
}

.seating-nameplate-preview__hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #434655;
  text-align: center;
}

/* 导出面板 */
.seating-export-panel__body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.seating-export-panel__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #737686;
}

.seating-export-panel__formats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.seating-export-panel__format {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  background: #e5e8ec;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.875rem;
}

.seating-export-panel__format--active {
  border-color: #004ac6;
  background: rgba(0, 74, 198, 0.08);
  color: #004ac6;
}

.seating-export-panel__check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.875rem;
  cursor: pointer;
}

.seating-export-panel__input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #c3c6d7;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.seating-settings-panel__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.seating-settings-panel__tip {
  margin: 0.75rem 0 0;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: rgba(0, 74, 198, 0.06);
  font-size: 0.8125rem;
  color: #434655;
}

/* 电子桌牌 */
.seating-nameplate-sync {
  width: min(720px, 96vw);
}

.seating-nameplate-sync__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1rem 1.5rem;
}

.seating-nameplate-sync__stats > div {
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: #f1f4f8;
  border: 1px solid #c3c6d7;
}

.seating-nameplate-sync__stats span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #737686;
  text-transform: uppercase;
}

.seating-nameplate-sync__stats strong {
  font-size: 1.5rem;
}

.seating-nameplate-sync__stat--ok {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.seating-nameplate-sync__stat--err {
  background: #fef2f2;
  border-color: #fecaca;
}

.seating-nameplate-sync__list {
  flex: 1;
  overflow-y: auto;
  max-height: 320px;
  padding: 0 1.5rem;
}

.seating-nameplate-sync__row {
  display: grid;
  grid-template-columns: 1fr 4rem 1fr 5rem;
  gap: 0.5rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid #ebeef2;
  font-size: 0.8125rem;
}

.seating-nameplate-sync__device {
  font-family: monospace;
  color: #434655;
}

.seating-nameplate-sync__seat {
  font-weight: 700;
  color: #004ac6;
}

.seating-nameplate-sync__status {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #737686;
}

.seating-nameplate-sync__row--ok .seating-nameplate-sync__status {
  color: #16a34a;
}

.seating-spin {
  animation: seating-spin 1s linear infinite;
}

@keyframes seating-spin {
  to { transform: rotate(360deg); }
}

.seating-print-area {
  display: none;
}

@media print {
  body * {
    visibility: hidden;
  }

  .seating-print-area,
  .seating-print-area * {
    visibility: visible;
  }

  .seating-print-area {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 24px;
  }
}

@media (max-width: 900px) {
  .seating-modal__body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
  }

  .seating-nav {
    max-height: 28vh;
    border-right: none;
    border-bottom: 1px solid #c3c6d7;
  }

  .seating-panel {
    max-height: 32vh;
    border-left: none;
    border-top: 1px solid #c3c6d7;
  }

  .seating-modal__header-actions .seating-modal__btn--toolbar span:last-child {
    display: none;
  }

  .seating-nameplate-preview {
    position: static;
    width: 100%;
    margin-top: 1rem;
  }
}

/* ── 会议屏管理 ── */
.screen-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.screen-admin-empty {
  grid-column: 1 / -1;
  padding: 3rem 1rem;
  text-align: center;
  color: #74777f;
  background: #fff;
  border: 1px dashed #c3c6d7;
  border-radius: 0.75rem;
}

.screen-device {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.screen-device__bezel {
  position: relative;
  background: linear-gradient(145deg, #2a2d33, #12141a);
  border-radius: 0.85rem;
  padding: 0.55rem 0.7rem 0.55rem 0.55rem;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.18);
  border: 1px solid #3a3f4a;
}

.screen-device__panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0.55rem;
  height: 176px;
  min-height: 176px;
  max-height: 176px;
  background: #0e1014;
  border-radius: 0.55rem;
  padding: 0.7rem;
  color: #f4f6fb;
  overflow: hidden;
}

.screen-device__panel--placeholder {
  display: grid;
  place-items: center;
  grid-column: 1 / -1;
  color: #9aa0ad;
  font-size: 0.85rem;
}

.screen-device__left {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.screen-device__clock {
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.screen-device__day-label {
  margin: 0.55rem 0 0.35rem;
  font-size: 0.72rem;
  color: #a8adb8;
}

.screen-device__schedule {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.screen-device__slot {
  display: grid;
  gap: 0.1rem;
  padding-left: 0.45rem;
  border-left: 2px solid transparent;
  min-width: 0;
}

.screen-device__slot.is-current {
  border-left-color: #e53935;
}

.screen-device__slot-time {
  font-size: 0.68rem;
  color: #9aa0ad;
}

.screen-device__slot-title {
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.screen-device__slot.is-empty {
  color: #74777f;
  font-size: 0.75rem;
  border: none;
  padding-left: 0;
}

.screen-device__right {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.screen-device__status-card {
  flex: 1;
  border-radius: 0.55rem;
  padding: 0.65rem 0.7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #2f9e44;
  color: #fff;
  min-height: 88px;
}

.screen-device.is-busy .screen-device__status-card {
  background: #e53935;
}

.screen-device.is-booked .screen-device__status-card {
  background: #f59f00;
}

.screen-device.is-offline .screen-device__status-card {
  background: #5c6370;
}

.screen-device__status-room {
  margin: 0;
  font-size: 0.7rem;
  opacity: 0.9;
}

.screen-device__status-state {
  margin: 0.15rem 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
}

.screen-device__status-until {
  margin: 0;
  font-size: 0.72rem;
  opacity: 0.92;
}

.screen-device__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.screen-device__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 46px;
  border-radius: 0.45rem;
  background: #1a1d24;
  border: 1px solid #2c313c;
  color: #d7dbe5;
  font-size: 0.62rem;
}

.screen-device__action .material-symbols-outlined {
  font-size: 16px;
}

.screen-device__led {
  position: absolute;
  top: 18%;
  right: 5px;
  width: 4px;
  height: 42%;
  border-radius: 999px;
  background: #2f9e44;
  box-shadow: 0 0 8px rgba(47, 158, 68, 0.55);
}

.screen-device.is-busy .screen-device__led {
  background: #e53935;
  box-shadow: 0 0 8px rgba(229, 57, 53, 0.55);
}

.screen-device.is-booked .screen-device__led {
  background: #f59f00;
  box-shadow: 0 0 8px rgba(245, 159, 0, 0.45);
}

.screen-device.is-offline .screen-device__led {
  background: #74777f;
  box-shadow: none;
}

.screen-device__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.15rem;
  min-height: 2.75rem;
}

.screen-device__meta-name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #191b23;
}

.screen-device__meta-sub {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: #74777f;
}

.screen-device__badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e8f0fe;
  color: #1a73e8;
}

.screen-device.is-offline .screen-device__badge {
  background: #eceef2;
  color: #5c6370;
}

.screen-device--lg .screen-device__panel {
  height: 260px;
  min-height: 260px;
  max-height: 260px;
  padding: 0.9rem;
}

.screen-device--lg .screen-device__clock {
  font-size: 2.1rem;
}

.screen-device--lg .screen-device__status-state {
  font-size: 1.7rem;
}

/* 状态聚焦模板 */
.screen-device__panel.tpl-status {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  grid-template-columns: none;
}

.screen-device__status-hero {
  flex: 1;
  border-radius: 0.55rem;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #2f9e44;
  color: #fff;
  min-height: 0;
}

.screen-device.is-busy .screen-device__status-hero { background: #e53935; }
.screen-device.is-booked .screen-device__status-hero { background: #f59f00; }
.screen-device.is-offline .screen-device__status-hero { background: #5c6370; }

.screen-device__status-hero .screen-device__clock {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
  opacity: 0.95;
}

.screen-device__status-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  font-size: 0.68rem;
  color: #c9ced8;
}

.screen-device__status-foot > div {
  background: #1a1d24;
  border: 1px solid #2c313c;
  border-radius: 0.4rem;
  padding: 0.4rem 0.45rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-device__mini-label {
  display: block;
  color: #8b91a0;
  margin-bottom: 0.1rem;
  font-size: 0.6rem;
}

/* 时间轴模板 */
.screen-device__panel.tpl-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  grid-template-columns: none;
}

.screen-device__tl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.screen-device__status-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #2f9e44;
  color: #fff;
}

.screen-device.is-busy .screen-device__status-pill { background: #e53935; }
.screen-device.is-booked .screen-device__status-pill { background: #f59f00; }
.screen-device.is-offline .screen-device__status-pill { background: #5c6370; }

.screen-device__tl-room {
  margin: 0;
  font-size: 0.72rem;
  color: #a8adb8;
}

.screen-device__tl-meeting {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.screen-device__tl-track {
  position: relative;
  height: 28px;
  margin-top: 0.35rem;
  border-radius: 0.35rem;
  background: #1a1d24;
  border: 1px solid #2c313c;
  overflow: hidden;
}

.screen-device__tl-block {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 0.25rem;
  background: #4dabf7;
  opacity: 0.85;
}

.screen-device__tl-block.is-current {
  background: #e53935;
}

.screen-device__tl-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  color: #74777f;
}

.screen-device__tl-axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: #8b91a0;
}

/* 详情弹窗 */
.screen-detail-modal {
  width: min(1100px, calc(100vw - 2rem));
  max-width: 1100px;
}

.screen-detail-modal__body {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
  align-items: start;
  max-height: min(78vh, 760px);
  overflow: auto;
}

.screen-detail-hint {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  color: #74777f;
}

.screen-detail-modal__side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.screen-detail-section {
  background: #f8f9fc;
  border: 1px solid #e2e5ef;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
}

.screen-detail-section__title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #191b23;
}

.screen-detail-section__title .material-symbols-outlined {
  font-size: 18px;
  color: #1a73e8;
}

.screen-occupancy__row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
  color: #434655;
}

.screen-occupancy__status--in_use { color: #e53935; }
.screen-occupancy__status--free { color: #2f9e44; }
.screen-occupancy__status--booked { color: #f59f00; }
.screen-occupancy__status--offline { color: #5c6370; }

.screen-occupancy__meter {
  height: 8px;
  border-radius: 999px;
  background: #e6e9f2;
  overflow: hidden;
  margin: 0.55rem 0 0.35rem;
}

.screen-occupancy__meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #4dabf7, #1a73e8);
}

.screen-occupancy__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.72rem;
  color: #74777f;
}

.screen-meeting-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 220px;
  overflow: auto;
}

.screen-meeting-list__item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  background: #fff;
  border: 1px solid #e2e5ef;
  border-radius: 0.55rem;
}

.screen-meeting-list__item.is-current {
  border-color: #f5c2c0;
  box-shadow: inset 3px 0 0 #e53935;
}

.screen-meeting-list__time {
  font-size: 0.75rem;
  color: #74777f;
  padding-top: 0.1rem;
}

.screen-meeting-list__title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #191b23;
}

.screen-meeting-list__state {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: #74777f;
}

.screen-meeting-list__empty {
  padding: 0.85rem;
  text-align: center;
  color: #74777f;
  font-size: 0.85rem;
  background: #fff;
  border-radius: 0.55rem;
  border: 1px dashed #c3c6d7;
}

.screen-template-picker {
  display: grid;
  gap: 0.5rem;
}

.screen-template-card {
  text-align: left;
  border: 1px solid #c3c6d7;
  background: #fff;
  border-radius: 0.65rem;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.screen-template-card:hover {
  border-color: #1a73e8;
}

.screen-template-card.is-active {
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
  background: #f3f8ff;
}

.screen-template-card__name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #191b23;
}

.screen-template-card__desc {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: #74777f;
}

.screen-admin-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.screen-admin-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: #434655;
}

@media (max-width: 960px) {
  .screen-detail-modal__body {
    grid-template-columns: 1fr;
  }
}
