/* SEMANU dashboard — Email preview modal */

.sem-mp-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(10,10,10,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: semMpFade .15s ease;
}
@keyframes semMpFade { from { opacity: 0; } to { opacity: 1; } }

.sem-mp-panel {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 820px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.30);
  overflow: hidden;
}

.sem-mp-head {
  padding: 18px 22px;
  border-bottom: 1px solid #F0F0F2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sem-mp-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #0A0A0A;
}
.sem-mp-x {
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #8E8E93;
  padding: 4px 8px;
}
.sem-mp-x:hover { color: #0A0A0A; }

.sem-mp-meta {
  padding: 14px 22px;
  background: #FAFAFA;
  border-bottom: 1px solid #F0F0F2;
  font-size: 13px;
}
.sem-mp-meta-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 3px 0;
}
.sem-mp-meta-label {
  color: #8E8E93;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-size: 10.5px;
  padding-top: 3px;
}
.sem-mp-meta-value {
  color: #0A0A0A;
  word-break: break-word;
}

.sem-mp-preview-wrap {
  flex: 1;
  min-height: 240px;
  background: #F5F5F7;
  overflow: hidden;
  position: relative;
}
.sem-mp-preview {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: none;
  background: white;
}

.sem-mp-foot {
  padding: 14px 22px;
  border-top: 1px solid #F0F0F2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: white;
}
.sem-mp-err {
  flex: 1;
  margin: 0;
  font-size: 12px;
  color: #DC2626;
  word-break: break-word;
}
.sem-mp-foot-btns {
  display: flex;
  gap: 8px;
}

.sem-mp-foot .btn {
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #E5E5E7;
  background: white;
  color: #0A0A0A;
  transition: background .15s, transform .05s;
}
.sem-mp-foot .btn:hover { background: #F5F5F7; }
.sem-mp-foot .btn:disabled { opacity: .55; cursor: not-allowed; }
.sem-mp-foot .btn.btn-primary {
  background: var(--accent-solid, #CC4516);
  color: white;
  border-color: #FF5A1F;
}
.sem-mp-foot .btn.btn-primary:hover { background: #E94E12; }
.sem-mp-foot .btn:active { transform: scale(.97); }

@media (max-width: 640px) {
  .sem-mp-panel { max-width: 100%; }
  .sem-mp-meta-row { grid-template-columns: 80px 1fr; }
}
