/* 메시지 템플릿 허브 · 통합 에디터 */
.mt-hub-desc { margin: 0 16px 12px; }
.mt-tabs {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
}
.mt-tab {
  flex: 1;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: #6b7280;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.mt-tab.active {
  background: #681DC7;
  color: #fff;
}
.mt-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  margin-right: 6px;
}
.mt-badge-auto {
  background: #f3eef8;
  color: #681DC7;
}
.mt-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px 80px;
}
.mt-gallery-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f3eef8;
  text-decoration: none;
  color: inherit;
}
.mt-gallery-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f3eef8;
  color: #681DC7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mt-gallery-body { flex: 1; min-width: 0; }
.mt-gallery-title { font-size: 15px; font-weight: 700; color: #191f28; margin-bottom: 4px; }
.mt-gallery-desc { font-size: 13px; color: #6b7280; line-height: 1.4; margin-bottom: 6px; }
.mt-gallery-cta { font-size: 12px; font-weight: 700; color: #681DC7; white-space: nowrap; }

.mt-empty-gallery-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 0;
  min-width: 200px;
  max-width: 280px;
  height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 30px;
  background: #681DC7;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(106, 13, 173, 0.25);
  position: static;
  left: auto;
  transform: none;
  width: auto;
  box-sizing: border-box;
}

.mt-var-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.mt-chip {
  border: none;
  background: #f3eef8;
  color: #681DC7;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.mt-auto-box {
  margin: 8px 0 16px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f3eef8;
}
.mt-auto-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.mt-auto-title { font-size: 15px; font-weight: 700; color: #191f28; }
.mt-auto-desc { font-size: 13px; color: #6b7280; line-height: 1.45; margin-top: 4px; }
.mt-auto-row input[type="checkbox"] {
  width: 44px;
  height: 24px;
  accent-color: #681DC7;
  flex-shrink: 0;
  margin-top: 2px;
}
.mt-auto-fields { margin-top: 16px; }
.mt-custom-timing {
  margin: 0 0 16px;
}
.mt-custom-timing .mt-custom-hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.45;
}
.mt-custom-timing .ms-select-row {
  margin-top: 0;
}
.mt-custom-timing .ms-select {
  flex: 1 1 calc(50% - 4px);
  min-width: 140px;
}
.mt-select-all {
  border: none;
  background: none;
  color: #681DC7;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  padding: 0 0 8px;
}

.mt-compose-search-wrap {
  padding: 0 16px 12px;
}
.mt-compose-search {
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  background: #f9fafb;
}
.mt-timeline-list {
  position: relative;
  padding-left: 8px;
}
.mt-timeline-item {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}
.mt-timeline-dot {
  position: absolute;
  left: 0;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c4b5d8;
  box-shadow: 0 0 0 3px #f3eef8;
}
.mt-timeline-item[data-status="sent"] .mt-timeline-dot {
  background: #16a34a;
  box-shadow: 0 0 0 3px #dcfce7;
}
.mt-timeline-item[data-status="skipped"] .mt-timeline-dot {
  background: #9ca3af;
  box-shadow: 0 0 0 3px #f3f4f6;
}
.mt-timeline-item[data-status="planned"] .mt-timeline-dot {
  background: #681DC7;
  box-shadow: 0 0 0 3px #f3eef8;
}
.mt-inbox-banner {
  display: block;
  margin: 0 16px 12px;
  padding: 14px 16px;
  background: #f3eef8;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}
.mt-inbox-banner-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.mt-inbox-banner-title {
  font-size: 14px;
  font-weight: 700;
  color: #191f28;
  line-height: 1.35;
}
.mt-inbox-banner-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}
.mt-inbox-banner-cta {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #681DC7;
  line-height: 1.3;
}

.hl-mt-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 16px 18px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.04);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.hl-mt-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: #f3eef8; color: #681DC7;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hl-mt-card-title { font-size: 15px; font-weight: 700; color: #191f28; }
.hl-mt-card-desc { font-size: 13px; color: #6b7280; margin-top: 2px; }

@media (min-width: 1024px) {
  html.sp-force-desktop-ui .mt-tabs { padding: 0 0 16px; max-width: 360px; }
  html.sp-force-desktop-ui .mt-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 0 0 40px;
  }
  html.sp-force-desktop-ui .mt-gallery-card {
    border-radius: 20px;
    padding: 20px;
  }
  html.sp-force-desktop-ui .mt-hub-desc { margin: 0 0 16px; }
  html.sp-force-desktop-ui .mt-inbox-banner {
    margin: 0 0 16px;
    border-radius: 16px;
    max-width: 100%;
  }
  html.sp-force-desktop-ui .hl-mt-card {
    max-width: min(1120px, calc(100vw - 80px));
  }
  html.sp-force-desktop-ui a.mt-gallery-card:hover,
  html.sp-force-desktop-ui a.hl-mt-card:hover,
  html.sp-force-desktop-ui a.mt-inbox-banner:hover {
    text-decoration: none;
    background: #faf7fd;
  }
}
