.og-preview-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 0 40px;
}

/* 상단 */
.og-preview-page .utility-top {
  text-align: center;
  padding: 30px 20px 28px;
}

.og-preview-page .utility-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.og-preview-page .utility-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.og-preview-page .utility-desc {
  max-width: 760px;
  margin: 16px auto 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.8;
}

/* 요약 카드 */
.og-summary-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.og-summary-item {
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.og-summary-item::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.og-summary-item strong {
  display: block;
  margin-bottom: 7px;
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
}

.og-summary-item span {
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
}

/* 공통 카드 */
.og-form-card,
.og-preview-card,
.og-result-card {
  padding: 28px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.og-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.og-card-head h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.og-card-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
}

.og-head-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  padding-top: 4px;
}

/* 폼 */
.og-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.og-field {
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  background: #f8fafc;
}

.og-field-full {
  grid-column: 1 / -1;
}

.og-preview-page .utility-field-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 900;
  color: #0f172a;
}

.og-input {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border-radius: 14px;
  font-weight: 700;
}

.og-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.og-textarea {
  min-height: 130px;
  box-sizing: border-box;
  border-radius: 18px;
  resize: vertical;
  line-height: 1.7;
}

.og-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.og-field-help {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #64748b;
}

.og-field-help span {
  font-weight: 900;
  color: #2563eb;
}

/* 버튼 */
.og-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.og-preview-page .utility-btn {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
}

.og-preview-page .utility-btn-primary {
  background: linear-gradient(135deg, #0f172a, #2563eb);
  color: #ffffff;
  border-color: #0f172a;
}

.og-preview-page .utility-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

/* 상태 */
.og-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.og-status-badge.is-ready {
  background: #f1f5f9;
  color: #475569;
}

.og-status-badge.is-success {
  background: #dbeafe;
  color: #1d4ed8;
}

.og-status-badge.is-error {
  background: #fee2e2;
  color: #b91c1c;
}

/* 탭 */
.og-tab-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.og-tab {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.og-tab:hover {
  transform: translateY(-1px);
}

.og-tab.is-active {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

/* 프리뷰 */
.og-preview-stage {
  position: relative;
}

.og-platform-preview {
  display: none;
}

.og-platform-preview.is-active {
  display: block;
}

/* 공통 카드 */
.og-kakao-card,
.og-facebook-card,
.og-twitter-card {
  overflow: hidden;
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

/* 이미지 */
.og-image-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.22), transparent 30%),
    linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  background-size: cover;
  background-position: center;
}

.og-image-box.has-image {
  color: transparent;
}

/* 카카오 */
.og-kakao-body {
  padding: 18px;
}

.og-kakao-body strong {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
}

.og-kakao-body p {
  margin: 0 0 10px;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}

.og-kakao-body span {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
}

/* 페이스북 */
.og-facebook-body {
  padding: 16px 18px 18px;
  background: #f8fafc;
}

.og-facebook-body span {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.og-facebook-body strong {
  display: block;
  margin-bottom: 8px;
  color: #111827;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.45;
}

.og-facebook-body p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}

/* 트위터 */
.og-twitter-body {
  padding: 18px;
}

.og-twitter-body strong {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
}

.og-twitter-body p {
  margin: 0 0 10px;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}

.og-twitter-body span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-all;
}

/* 결과 */
.og-result-box {
  min-height: 320px;
  max-height: 680px;
  overflow: auto;
  margin-top: 18px;
  padding: 24px;
  border-radius: 20px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.9;
  font-size: 14px;
  font-family: Consolas, Monaco, "SFMono-Regular", "Courier New", monospace;
}

.og-result-box.is-ready {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #f8fafc;
  color: #64748b;
}

.og-result-box.is-success {
  border: 1px solid rgba(37, 99, 235, 0.22);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #dbeafe;
}

.og-result-box.is-error {
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: #fef2f2;
  color: #991b1b;
}

/* 도움말 */
.og-preview-page .help-panel {
  margin-top: 30px;
}

.og-preview-page .help-panel > h2 {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.og-preview-page .help-box {
  border-radius: 22px;
}

/* 반응형 */
@media (max-width: 980px) {
  .og-summary-card,
  .og-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .og-preview-page {
    padding: 0 0 28px;
  }

  .og-preview-page .utility-top {
    padding: 24px 14px 22px;
  }

  .og-form-card,
  .og-preview-card,
  .og-result-card {
    padding: 22px;
    border-radius: 20px;
  }

  .og-card-head {
    flex-direction: column;
    gap: 14px;
  }

  .og-head-actions,
  .og-action-row {
    width: 100%;
    flex-direction: column;
  }

  .og-head-actions .utility-btn,
  .og-action-row .utility-btn {
    width: 100%;
  }

  .og-image-box {
    min-height: 200px;
  }

  .og-result-box {
    min-height: 260px;
    font-size: 13px;
  }

  .og-preview-page .utility-title {
    font-size: 32px;
  }
}