/* Moart HTML 변환: 마켓별 정책 호환 & SEO·ALT 고도화 패널 (라이트 & 다크 모드) */
.mhsp-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mhsp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mhsp-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 800; color: #4f46e5;
  background: #eef2ff; padding: 3px 9px; border-radius: 999px; margin-bottom: 5px;
}
.mhsp-title { margin: 0; font-size: 16px; font-weight: 800; color: #0f172a; }
.mhsp-sub { margin: 4px 0 0; font-size: 12.5px; color: #64748b; }
.mhsp-head-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

.mhsp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 13px; border-radius: 10px; font-size: 12.5px; font-weight: 800;
  cursor: pointer; border: 1px solid transparent;
}
.mhsp-btn--indigo { background: linear-gradient(135deg, #4f46e5, #6366f1); color: #ffffff; }
.mhsp-btn--outline { background: #ffffff; border-color: #cbd5e1; color: #0f172a; }

.mhsp-toast { padding: 10px 13px; border-radius: 10px; font-size: 12.5px; font-weight: 700; }
.mhsp-toast.is-ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.mhsp-toast.is-err { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

.mhsp-market-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mhsp-market-card {
  text-align: left; padding: 13px 14px; border-radius: 13px; border: 1.5px solid #e2e8f0;
  background: #f8fafc; cursor: pointer; display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.mhsp-market-card.is-active { border-color: #4f46e5; background: #eef2ff; }
.mhsp-market-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.mhsp-market-top strong { font-size: 13.5px; font-weight: 800; color: #0f172a; }
.mhsp-market-card p { margin: 0; font-size: 11.5px; line-height: 1.48; color: #475569; }

.mhsp-badge {
  font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
  background: #e2e8f0; color: #334155;
}
.mhsp-badge.is-emerald { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.mhsp-badge.is-indigo { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }
.mhsp-badge.is-amber { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

.mhsp-fact-zone { border-radius: 11px; padding: 11px 12px; display: flex; flex-direction: column; gap: 9px; }
.mhsp-fact-zone.is-verified { background: #f0fdf4; border: 1px solid #bbf7d0; }
.mhsp-fact-zone.is-seller { background: #fffbeb; border: 1px solid #fde68a; }
.mhsp-zone-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.mhsp-zone-head small { font-size: 11px; color: #64748b; font-weight: 600; }

.mhsp-fact-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mhsp-fact-chip {
  padding: 5px 10px; border-radius: 999px; border: 1px solid #cbd5e1; background: #ffffff;
  color: #475569; font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.mhsp-fact-chip.is-on { background: #059669; border-color: #059669; color: #ffffff; }

.mhsp-spec-list { display: flex; flex-direction: column; gap: 9px; }
.mhsp-spec-item { display: flex; flex-direction: column; gap: 5px; }
.mhsp-suggest-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.mhsp-suggest-chip {
  padding: 3px 8px; border-radius: 999px; border: 1px dashed #d97706; background: #ffffff;
  color: #92400e; font-size: 11px; font-weight: 700; cursor: pointer;
}
.mhsp-suggest-chip:hover { background: #fef3c7; }

.mhsp-listing-row {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.mhsp-listing-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mhsp-listing-head span { font-size: 11.5px; font-weight: 800; color: #475569; }
.mhsp-listing-val { font-size: 12.5px; font-weight: 700; color: #0f172a; line-height: 1.5; }
.mhsp-copy-mini {
  padding: 4px 9px; border-radius: 7px; border: 1px solid #cbd5e1; background: #f8fafc;
  color: #334155; font-size: 11px; font-weight: 800; cursor: pointer;
}
.mhsp-copy-mini:hover { border-color: #4f46e5; color: #4f46e5; }

.mhsp-checks-bar { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.mhsp-check-pill {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px;
}
.mhsp-check-pill.is-pass { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.mhsp-check-pill.is-warn { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

.mhsp-seo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mhsp-seo-box {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 13px; padding: 14px 15px;
  display: flex; flex-direction: column; gap: 10px;
}
.mhsp-score-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mhsp-score-head strong { font-size: 13px; font-weight: 800; color: #0f172a; }
.mhsp-score-num { font-size: 16px; font-weight: 900; color: #059669; }
.mhsp-score-track { height: 7px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.mhsp-score-fill { height: 100%; background: linear-gradient(90deg, #10b981, #059669); border-radius: 999px; }
.mhsp-score-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.mhsp-field { display: flex; flex-direction: column; gap: 5px; }
.mhsp-field span { font-size: 11.5px; font-weight: 700; color: #475569; }
.mhsp-field input, .mhsp-field textarea, .mhsp-alt-input {
  width: 100%; padding: 8px 10px; border-radius: 9px; border: 1px solid #cbd5e1;
  background: #ffffff; color: #0f172a; font-size: 12.5px; font-family: inherit; box-sizing: border-box;
}
.mhsp-kw-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mhsp-kw-chip {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: #eef2ff; color: #4338ca;
}
.mhsp-mini-btn {
  padding: 6px 11px; border-radius: 8px; border: 1px solid #4f46e5; background: #4f46e5;
  color: #ffffff; font-size: 11.5px; font-weight: 800; cursor: pointer;
}
.mhsp-alt-list { display: flex; flex-direction: column; gap: 7px; max-height: 170px; overflow-y: auto; }
.mhsp-alt-row { display: flex; align-items: center; gap: 7px; }
.mhsp-alt-idx { font-size: 11px; font-weight: 800; color: #4f46e5; min-width: 24px; }
.mhsp-empty { margin: 0; font-size: 12px; color: #64748b; }

.mhsp-jsonld-box { border-top: 1px solid #e2e8f0; padding-top: 10px; }
.mhsp-jsonld-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: #ffffff; border: 1px solid #cbd5e1; border-radius: 9px; padding: 8px 11px;
  font-size: 12px; font-weight: 700; color: #334155; cursor: pointer;
}
.mhsp-code-pre {
  margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: #0f172a; color: #e2e8f0;
  font-size: 11px; line-height: 1.5; max-height: 200px; overflow: auto; white-space: pre-wrap; word-break: break-all;
}

@media (max-width: 960px) {
  .mhsp-market-grid, .mhsp-seo-grid { grid-template-columns: 1fr; }
}

/* 다크 모드 */
html[data-theme="dark"] .mhsp-card { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .mhsp-title,
html[data-theme="dark"] .mhsp-market-top strong,
html[data-theme="dark"] .mhsp-score-head strong { color: #f8fafc; }
html[data-theme="dark"] .mhsp-sub,
html[data-theme="dark"] .mhsp-market-card p,
html[data-theme="dark"] .mhsp-field span { color: #94a3b8; }
html[data-theme="dark"] .mhsp-market-card,
html[data-theme="dark"] .mhsp-seo-box { background: #0f172a; border-color: #334155; }
html[data-theme="dark"] .mhsp-market-card.is-active { background: rgba(79, 70, 229, 0.2); border-color: #6366f1; }
html[data-theme="dark"] .mhsp-btn--outline,
html[data-theme="dark"] .mhsp-field input,
html[data-theme="dark"] .mhsp-field textarea,
html[data-theme="dark"] .mhsp-alt-input,
html[data-theme="dark"] .mhsp-jsonld-toggle { background: #1e293b; border-color: #475569; color: #f1f5f9; }
html[data-theme="dark"] .mhsp-score-track { background: #334155; }
html[data-theme="dark"] .mhsp-fact-zone.is-verified { background: rgba(6, 78, 59, 0.28); border-color: #065f46; }
html[data-theme="dark"] .mhsp-fact-zone.is-seller { background: rgba(120, 53, 15, 0.24); border-color: #92400e; }
html[data-theme="dark"] .mhsp-listing-row,
html[data-theme="dark"] .mhsp-fact-chip,
html[data-theme="dark"] .mhsp-suggest-chip,
html[data-theme="dark"] .mhsp-copy-mini { background: #1e293b; border-color: #475569; color: #e2e8f0; }
html[data-theme="dark"] .mhsp-fact-chip.is-on { background: #059669; border-color: #059669; color: #ffffff; }
html[data-theme="dark"] .mhsp-listing-val { color: #f8fafc; }
