/* AI 생성 스튜디오 */
.studio-wrap { max-width: 1080px; margin: 0 auto; padding: 22px 20px 80px; }
.studio-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 26px; }
.studio-top-right { display: flex; align-items: center; gap: 12px; }
.plan-badge { font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px; letter-spacing: .2px; }
.plan-badge.paid { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; }
.plan-badge.free { background: var(--surface-2, rgba(255,255,255,.06)); color: var(--text-sub); border: 1px solid var(--border); }

.studio-head { text-align: center; margin-bottom: 26px; }
.studio-head h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin: 14px 0 10px; letter-spacing: -.02em; }
.studio-head p { color: var(--text-sub); font-size: 15.5px; max-width: 620px; margin: 0 auto; line-height: 1.6; }
.studio-head b { color: var(--text); }

.studio-notice {
  max-width: 760px; margin: 0 auto 22px; padding: 13px 16px; border-radius: 12px;
  font-size: 13.8px; line-height: 1.55; background: rgba(99,102,241,.10);
  border: 1px solid rgba(99,102,241,.28); color: var(--text-sub); text-align: center;
}
.studio-notice a { color: var(--primary-2, #8b5cf6); font-weight: 700; }
.studio-notice.muted { background: var(--surface-2, rgba(255,255,255,.04)); border-color: var(--border); }
.studio-notice.err { background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.32); color: #fecaca; }

.studio-grid { display: grid; grid-template-columns: 380px 1fr; gap: 22px; align-items: start; }

.studio-form {
  position: sticky; top: 20px; display: flex; flex-direction: column; gap: 15px;
  padding: 22px; border-radius: var(--radius-lg, 18px); border: 1px solid var(--border);
  background: var(--bg-soft, #0c0f18);
}
.fld { display: flex; flex-direction: column; gap: 7px; }
.fld > span { font-size: 13px; font-weight: 700; color: var(--text-sub); }
.fld > span em { color: #f472b6; font-style: normal; }
.fld > span small { color: var(--text-dim); font-weight: 500; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.studio-form input, .studio-form select {
  width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.03); color: var(--text); font-size: 14px; font-family: inherit;
}
.studio-form input:focus, .studio-form select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.18); }
.studio-form select { cursor: pointer; }
.form-hint { font-size: 12px; color: var(--text-dim); line-height: 1.5; margin: 2px 0 0; }
#genBtn[disabled] { opacity: .7; cursor: progress; }

.studio-result { min-height: 320px; }
.result-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 70px 24px; border-radius: var(--radius-lg, 18px);
  border: 1.5px dashed var(--border-strong); color: var(--text-dim); background: rgba(255,255,255,.015);
}
.result-empty .empty-icon { font-size: 40px; margin-bottom: 14px; }
.result-empty p { line-height: 1.7; font-size: 14.5px; }

.rc {
  padding: 20px 22px; margin-bottom: 16px; border-radius: 16px;
  border: 1px solid var(--border); background: var(--bg-soft, #0c0f18);
}
.rc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.rc-head h3 { font-size: 15px; font-weight: 800; }
.copy-mini {
  font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text-sub); transition: .15s;
}
.copy-mini:hover { color: var(--text); border-color: var(--primary); background: rgba(99,102,241,.12); }

.rc-titles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; counter-reset: t; }
.rc-titles li { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 11px; background: rgba(255,255,255,.03); }
.rc-titles li span { flex: 1; font-size: 14.5px; line-height: 1.45; }
.rc-titles li::before { counter-increment: t; content: counter(t); flex: 0 0 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; color: #fff; background: linear-gradient(135deg,#6366f1,#8b5cf6); }

.rc-meta { display: flex; align-items: flex-start; gap: 10px; }
.rc-meta p { flex: 1; font-size: 14px; line-height: 1.6; color: var(--text); }
.rc-slug { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.rc-slug code { flex: 1; font-size: 13px; color: var(--accent, #22d3ee); background: rgba(34,211,238,.08); padding: 8px 11px; border-radius: 9px; word-break: break-all; }

.rc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-tags .tag { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--text-sub); }

.rc-outline { display: flex; flex-direction: column; gap: 14px; }
.ol-sec h4 { font-size: 14.5px; font-weight: 800; margin-bottom: 7px; color: var(--text); }
.ol-sec ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; }
.ol-sec li { font-size: 13.6px; line-height: 1.55; color: var(--text-sub); }

.rc-article {
  white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 14px; line-height: 1.75;
  color: var(--text); margin: 0; max-height: 620px; overflow-y: auto; padding: 4px 2px;
}
.rc-tips { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.rc-tips li { font-size: 13.8px; line-height: 1.55; color: var(--text-sub); }

.rc-upsell { text-align: center; background: linear-gradient(135deg, rgba(99,102,241,.10), rgba(139,92,246,.06)); border-color: rgba(139,92,246,.3); }
.rc-upsell h3 { font-size: 16px; margin-bottom: 8px; }
.rc-upsell p { font-size: 13.8px; color: var(--text-sub); line-height: 1.6; }
.rc-upsell a { color: var(--primary-2, #8b5cf6); font-weight: 800; }

@media (max-width: 800px) {
  .studio-grid { grid-template-columns: 1fr; }
  .studio-form { position: static; }
}
