:root {
  --bg: #ffffff; --bg2: #f7f9f8; --bg3: #eef2f0;
  --brand: #00C896; --teal: #0891B2;
  --text: #111827; --muted: #6b7280; --line: #e5e7eb; --danger: #ef4444;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  /* aliases for compat */
  --border: #e5e7eb; --text1: #111827; --text2: #374151; --text3: #9ca3af;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Noto Sans KR", system-ui, sans-serif;
  font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
  min-height: 100vh; display: flex; flex-direction: column;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); font-size: .85rem; }
code { background: var(--bg3); padding: 1px 6px; border-radius: 5px; color: var(--brand); }

/* Topbar */
.topbar {
  display: flex; align-items: center; gap: 24px; padding: 12px 28px;
  border-bottom: 1px solid var(--line); background: var(--bg2); position: sticky; top: 0; z-index: 10;
}
.brand-block { display: flex; flex-direction: column; gap: 1px; flex: 0 0 auto; }
.brand { font-size: 1.65rem; font-weight: 900; letter-spacing: -1px; line-height: 1; }
.brand .pi { color: var(--brand); }
.motto { font-size: .8rem; color: var(--muted); font-weight: 500; }
.search.big { flex: 1; max-width: 620px; margin: 0 auto; display: flex; gap: 0; }
.search.big input {
  flex: 1; padding: 14px 20px; border-radius: 28px 0 0 28px; border: 2px solid var(--line); border-right: none;
  background: var(--bg3); color: var(--text); font-size: 1rem;
}
.search.big input:focus { outline: none; border-color: var(--brand); }
.search-btn { padding: 0 26px; border-radius: 0 28px 28px 0; border: 2px solid var(--brand); background: var(--brand); color: #04130d; font-weight: 800; cursor: pointer; font-size: .95rem; }
.top-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

/* Subnav (모달리티 + 랭킹) */
.subnav { display: flex; align-items: center; gap: 6px; padding: 8px 28px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 68px; z-index: 9; }
.subnav-rank { margin-left: auto; color: var(--brand); font-weight: 700; font-size: .85rem; padding: 5px 12px; border-radius: 8px; }
.subnav-rank:hover { background: var(--bg3); }
.top-menu { display: flex; gap: 4px; flex-wrap: wrap; }
.top-menu a { padding: 7px 14px; border-radius: 8px; font-weight: 700; font-size: .87rem; color: var(--muted); }
.top-menu a.active { color: var(--brand); background: var(--bg3); }
.top-menu a:hover { color: var(--text); background: var(--bg3); }
.btn-ghost, .btn-accent { padding: 7px 13px; border-radius: 8px; font-weight: 700; font-size: .82rem; cursor: pointer; }
.btn-ghost { color: var(--muted); } .btn-ghost:hover { color: var(--text); background: var(--bg3); }
.btn-accent { background: var(--brand); color: #04130d; }
.me-badge { font-size: .78rem; padding: 5px 10px; border-radius: 20px; background: var(--bg3); color: var(--brand); border: 1px solid var(--line); }

/* Layout */
.layout { display: grid; grid-template-columns: 220px 1fr; flex: 1; }
.sidebar { padding: 20px 16px; border-right: 1px solid var(--line); }
.sidebar h3 { font-size: .78rem; color: var(--muted); text-transform: uppercase; margin-bottom: 12px; }
.sub-menu { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sub-menu li a { display: block; padding: 8px 12px; border-radius: 8px; font-size: .9rem; color: var(--muted); }
.sub-menu li a:hover { background: var(--bg3); color: var(--text); }
.sub-menu li.active a { background: var(--bg3); color: var(--brand); font-weight: 600; }

/* Content */
.content { padding: 24px 28px; flex: 1; }
.content-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.content-head h2 { font-size: 1.3rem; }
.back { display: inline-block; color: var(--muted); margin-bottom: 14px; font-size: .9rem; }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); }
.empty a { color: var(--brand); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card {
  background: linear-gradient(160deg, var(--bg3), var(--bg2)); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: .15s;
}
.card:hover { border-color: var(--brand); transform: translateY(-2px); }
.card-badge { align-self: flex-start; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.badge-free { background: rgba(0,200,150,.15); color: var(--brand); }
.badge-paid { background: rgba(8,145,178,.18); color: #38BDF8; }
.card-title { font-size: .92rem; font-weight: 700; line-height: 1.35; word-break: keep-all; }
.card-meta { display: flex; gap: 12px; font-size: .78rem; color: var(--muted); margin-top: auto; align-items: center; }
.card-price { font-weight: 800; color: var(--brand); margin-left: auto; }

/* Detail */
.detail { max-width: 760px; margin: 0 auto; }
.detail h1 { font-size: 1.6rem; margin: 10px 0; }
.detail .lead { margin: 8px 0 4px; }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.preview-box { background: var(--bg3); border: 1px solid var(--line); border-radius: 12px; padding: 18px; white-space: pre-wrap; line-height: 1.6; margin: 12px 0; }
.body-box { background: #0c130f; border: 1px solid var(--brand); border-radius: 12px; padding: 18px; white-space: pre-wrap; line-height: 1.6; margin: 12px 0; }
.btn { padding: 12px 22px; border-radius: 10px; border: none; cursor: pointer; font-weight: 700; background: var(--brand); color: #04130d; font-size: .95rem; }
.buy-row { margin-top: 18px; }

/* Create form */
.create { max-width: 680px; margin: 0 auto; }
.create h1 { font-size: 1.5rem; margin-bottom: 18px; }
.form { display: flex; flex-direction: column; gap: 6px; }
.form label { font-size: .85rem; font-weight: 600; margin-top: 12px; }
.form input, .form select, .form textarea {
  padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg3); color: var(--text); font-size: .92rem; font-family: inherit;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); }
.form .btn { margin-top: 20px; align-self: flex-start; }
.price-fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-top: 18px; }
.price-fieldset legend { padding: 0 8px; color: var(--muted); font-size: .85rem; }
.radio { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; font-weight: 600; }
.radio.disabled { color: var(--muted); }
.lock { font-size: .78rem; color: var(--danger); }
.paid-price { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.paid-price input { width: 140px; }
.gate-progress { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.gate-item { display: grid; grid-template-columns: 90px 1fr 70px; align-items: center; gap: 10px; font-size: .85rem; }
.gate-item progress { width: 100%; height: 10px; }
.alert-error { background: rgba(248,113,113,.12); border: 1px solid var(--danger); color: var(--danger); padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; }
.alert-payment-success { background: rgba(0,200,150,.12); border: 1px solid var(--brand); color: var(--brand); padding: 14px 18px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }

/* Rank */
.rank-page { max-width: 900px; margin: 0 auto; }
.rank-table { width: 100%; border-collapse: collapse; }
.rank-table th, .rank-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.rank-table th { color: var(--muted); font-size: .8rem; text-transform: uppercase; }
.rank-table td.num, .rank-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.rank-score { color: var(--brand); font-weight: 800; }
.rank-no { font-weight: 800; color: var(--teal); }

/* ===== Netflix 메인 ===== */
.hero { position: relative; min-height: 440px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8,145,178,.45), rgba(10,10,15,.6) 55%, var(--bg)); }
.hero.hero-empty::after { background: linear-gradient(120deg, rgba(0,200,150,.25), var(--bg) 70%); }
.hero-inner { position: relative; z-index: 2; padding: 48px 56px; max-width: 860px; }
.hero-badge { display: inline-block; background: var(--brand); color: #04130d; font-weight: 800;
  font-size: .8rem; padding: 6px 12px; border-radius: 20px; }
.hero-title { font-size: 2rem; font-weight: 800; line-height: 1.2; margin: 12px 0; letter-spacing: -.8px; word-break: keep-all; }
.hero-sub { color: var(--text); opacity: .85; font-size: 1.05rem; margin-bottom: 18px; }
.hero-meta { display: flex; gap: 16px; align-items: center; font-size: .95rem; color: var(--text); margin-bottom: 18px; }
.hero-price { color: var(--brand); font-weight: 800; font-size: 1.2rem; }
.hero-cta { display: flex; gap: 12px; }
.btn-light { background: #fff; color: #0a0a0f; padding: 12px 22px; border-radius: 10px; font-weight: 700; }
.btn-accent.lg { padding: 12px 22px; font-size: .95rem; }

.rows { padding: 8px 0 50px; display: flex; flex-direction: column; gap: 4px; }
.carousel { padding: 18px 56px 6px; }
.carousel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.carousel-head h2 { font-size: 1.25rem; font-weight: 800; }
.carousel-nav { color: var(--muted); font-weight: 800; letter-spacing: 4px; }
.strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; scrollbar-width: thin; }
.strip::-webkit-scrollbar { height: 6px; } .strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.ncard { flex: 0 0 220px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; transition: .15s; }
.ncard:hover { transform: translateY(-4px); }
.poster { position: relative; height: 130px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.35); overflow: hidden; }
.poster-emoji { font-size: 2.6rem; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.poster-badge { position: absolute; top: 8px; left: 8px; font-size: .68rem; font-weight: 800; padding: 3px 8px; border-radius: 12px; }
.b-free { background: rgba(56,189,248,.9); color: #04121c; }
.b-paid { background: rgba(0,200,150,.95); color: #04130d; }
.b-cat { background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(4px); }
.poster-g0 { background: linear-gradient(140deg, #7333bf, #1a0d33); }
.poster-g1 { background: linear-gradient(140deg, #0891b2, #04262f); }
.poster-g2 { background: linear-gradient(140deg, #009972, #042620); }
.poster-g3 { background: linear-gradient(140deg, #d95940, #33140f); }
.poster-g4 { background: linear-gradient(140deg, #3359d9, #0d1433); }
.poster-g5 { background: linear-gradient(140deg, #d98c1a, #332108); }
.ncard-title { font-size: .92rem; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ncard-meta { display: flex; align-items: center; justify-content: space-between; font-size: .78rem; color: var(--muted); }
.ncard-price { font-weight: 800; color: var(--brand); }
.ncard-price.free { color: #38bdf8; }

/* ===== 핀터레스트 메인 페이지 ===== */
.pi-page { }

/* 섹션 탭 바 — topbar(68px) + subnav(40px) 아래 sticky */
.pi-tabs-bar {
  position: sticky; top: 108px; z-index: 8;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 0 24px;
}
.pi-tabs {
  display: flex; gap: 0; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.pi-tabs::-webkit-scrollbar { display: none; }
.pi-tab {
  flex-shrink: 0;
  display: inline-block; padding: 14px 18px;
  font-size: .88rem; font-weight: 600; color: var(--muted);
  text-decoration: none; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.pi-tab:hover { color: var(--text); }
.pi-tab.active { color: var(--text); font-weight: 800; border-bottom-color: var(--brand); }

.pi-feed { padding: 24px 20px 60px; }
.pi-empty {
  text-align: center; padding: 80px 20px; color: var(--muted);
  font-size: .95rem;
}
.pi-empty a { color: var(--brand); font-weight: 700; margin-left: 6px; }

/* ── 메이슨리 그리드 ── */
.masonry {
  columns: 5; column-gap: 16px;
  max-width: 1600px; margin: 0 auto;
}

/* ── 핀 카드 ── */
.pin {
  break-inside: avoid; display: block; width: 100%;
  margin-bottom: 16px; border-radius: 16px; overflow: hidden;
  background: #fff; border: 1px solid #ebebeb;
  text-decoration: none; color: var(--text);
  transition: transform .18s, box-shadow .18s;
  cursor: pointer;
}
.pin:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.13);
}
.pin:hover .pin-overlay { opacity: 1; }
.pin:hover .pin-cat-chip { opacity: 0; }

/* 이미지 영역 */
.pin-media { position: relative; overflow: hidden; line-height: 0; }
.pin-media img { width: 100%; display: block; transition: transform .22s; }
.pin:hover .pin-media img { transform: scale(1.03); }

/* 이미지 없는 파스텔 플레이스홀더 */
.pin-ph {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
}
.pin-ph-label {
  font-size: .9rem; font-weight: 800; letter-spacing: -.02em;
  color: rgba(0,0,0,.38);
}

/* 호버 오버레이 */
.pin-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.32);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .18s;
}
.pin-overlay-btn {
  padding: 10px 20px; border-radius: 24px;
  background: #fff; color: #111;
  font-size: .84rem; font-weight: 800;
  letter-spacing: -.02em;
}

/* 카테고리 칩 (이미지 위 하단) */
.pin-cat-chip {
  position: absolute; bottom: 10px; left: 10px;
  font-size: .68rem; font-weight: 700; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 20px;
  background: rgba(0,0,0,.48); color: #fff;
  backdrop-filter: blur(4px);
  transition: opacity .15s;
}

/* 카드 하단 텍스트 */
.pin-body { padding: 11px 14px 14px; }
.pin-title {
  font-size: .88rem; font-weight: 700;
  line-height: 1.45; color: #111; margin-bottom: 7px;
  word-break: keep-all;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.pin-meta {
  display: flex; align-items: center;
  justify-content: space-between;
  font-size: .76rem; color: #888;
}
.pin-views { font-variant-numeric: tabular-nums; }
.pin-rating { color: #f59e0b; font-weight: 700; }

/* 파스텔 팔레트 */
.pastel-0 { background: linear-gradient(150deg, #ffd9e3, #ffb3c8); }
.pastel-1 { background: linear-gradient(150deg, #cfe6ff, #a6cdff); }
.pastel-2 { background: linear-gradient(150deg, #ccf2e0, #a0e6c6); }
.pastel-3 { background: linear-gradient(150deg, #fff0c2, #ffe08a); }
.pastel-4 { background: linear-gradient(150deg, #e3d7ff, #c9b3ff); }
.pastel-5 { background: linear-gradient(150deg, #ffe0cc, #ffc2a0); }

/* 반응형 — 열 수 조정 */
@media (max-width: 1400px) { .masonry { columns: 4; } }
@media (max-width: 1060px) { .masonry { columns: 3; } }
@media (max-width: 720px)  {
  .masonry { columns: 2; column-gap: 10px; }
  .pi-feed { padding: 16px 12px 50px; }
  .pin { margin-bottom: 10px; border-radius: 12px; }
  .pi-tab { padding: 12px 14px; font-size: .82rem; }
}
@media (max-width: 420px)  { .masonry { columns: 2; column-gap: 8px; } }

/* ===== 핀터레스트 상세 (왼:정보 / 오른:유사) ===== */
.detail-back { display: inline-block; padding: 16px 32px 6px; color: var(--muted); }
.pin-detail { display: grid; grid-template-columns: 440px 1fr; gap: 32px; padding: 0 32px 50px; align-items: start; }
.pd-left { position: sticky; top: 70px; }
.pd-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.pd-media img { width: 100%; display: block; }
.pd-info { padding: 20px 22px 24px; }
.pd-info h1 { font-size: 1.5rem; margin: 10px 0; line-height: 1.3; }
.pd-info .lead { color: var(--text); opacity: .85; }
.pd-cat { color: var(--brand); font-size: .82rem; font-weight: 700; margin-left: 8px; }
.pd-stats { display: flex; gap: 14px; color: var(--muted); font-size: .85rem; margin: 12px 0; }
.pd-seller { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 14px 0; }
.pd-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #04130d; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; flex: 0 0 auto; }
.pd-seller-name { font-weight: 700; }
.pd-tag { font-size: .7rem; background: var(--bg3); color: var(--brand); padding: 2px 8px; border-radius: 10px; margin-left: 6px; }
.pd-buy { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.pd-price { font-size: 1.4rem; font-weight: 800; color: var(--brand); }
.pd-right { min-width: 0; }
.pd-similar-title { font-size: 1.15rem; margin-bottom: 16px; font-weight: 800; }
@media (max-width: 900px) { .pin-detail { grid-template-columns: 1fr; } .pd-left { position: static; } }

/* ===== 크리에이터 채널 ===== */
.channel { padding: 24px 32px 50px; }
.channel-head { display: flex; align-items: center; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.channel-avatar { width: 88px; height: 88px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--teal)); color: #04130d; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 900; flex: 0 0 auto; }
.channel-meta { flex: 1; }
.channel-meta h1 { font-size: 1.8rem; }
.channel-stats { display: flex; gap: 18px; color: var(--muted); font-size: .92rem; margin-top: 8px; flex-wrap: wrap; }
.channel-stats b { color: var(--text); }
.channel-actions form { margin: 0; }
.channel-drafts { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 24px; }
.channel-drafts h3 { font-size: 1rem; margin-bottom: 10px; }
.draft-list { display: flex; flex-direction: column; gap: 6px; }
.draft-item { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 8px; background: var(--bg3); font-size: .9rem; }
.draft-item:hover { outline: 1px solid var(--brand); }
.channel-works-title { font-size: 1.2rem; margin-bottom: 16px; }

/* ===== 상세 별점/판매그래프/리뷰 ===== */
.pd-rating { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.stars { color: #fbbf24; letter-spacing: 1px; }
.pd-section { padding: 0 32px; max-width: 1100px; margin: 0 auto 36px; }
.pd-h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.sales-summary { margin-bottom: 12px; }
.sales-chart { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding: 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; }
.bar-wrap { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bar { width: 100%; background: linear-gradient(180deg, var(--brand), var(--teal)); border-radius: 3px 3px 0 0; min-height: 2px; }
.bar-wrap:hover .bar { filter: brightness(1.3); }
.review-form { display: flex; flex-direction: column; gap: 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 16px; }
.review-form textarea, .reply-form input { background: var(--bg3); border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 10px; font-family: inherit; }
.review-form .btn { align-self: flex-start; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { display: none; }
.star-input label { font-size: 1.5rem; color: var(--line); cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #fbbf24; }
.review-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: .9rem; }
.buyer-badge { font-size: .7rem; background: rgba(0,200,150,.15); color: var(--brand); padding: 2px 8px; border-radius: 10px; }
.seller-badge { font-size: .7rem; background: rgba(8,145,178,.18); color: #38bdf8; padding: 2px 8px; border-radius: 10px; }
.review-reply { background: var(--bg3); border-radius: 8px; padding: 8px 12px; margin: 8px 0 0 16px; font-size: .9rem; }
.reply-form { display: flex; gap: 8px; margin-top: 8px; }
.reply-form input { flex: 1; }

/* ===== 등록 시작: 대분류 카드 ===== */
.newstart { max-width: 900px; margin: 0 auto; padding: 48px 24px; text-align: center; }
.newstart h1 { font-size: 1.8rem; margin-bottom: 8px; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 32px; }
.mod-card { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 150px;
  border-radius: 18px; padding: 22px; color: #04130d; font-weight: 800; transition: .15s; border: 1px solid transparent; }
.mod-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.mod-name { font-size: 1.3rem; }
.mod-desc { font-size: .85rem; font-weight: 600; opacity: .75; }
.mod-video { background: linear-gradient(150deg, #c9b3ff, #8b6fe0); }
.mod-image { background: linear-gradient(150deg, #ffb3c8, #ff8fb0); }
.mod-text { background: linear-gradient(150deg, #a6cdff, #6fa8e0); }
.mod-workflow { background: linear-gradient(150deg, #a0e6c6, #5ec99a); }
.mod-etc { background: linear-gradient(150deg, #ffe08a, #f0c050); }

/* ===== 등록 위저드 ===== */
.wizard { display: grid; grid-template-columns: 260px 1fr; gap: 0; min-height: calc(100vh - 110px); }
.wiz-nav { padding: 28px 22px; border-right: 1px solid var(--line); }
.wiz-nav h3 { font-size: 1.05rem; margin-bottom: 18px; }
.wiz-nav ol { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.wiz-nav li { font-size: .92rem; }
.wiz-nav li a, .wiz-nav li span { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--muted); }
.wiz-nav li a:hover { background: var(--bg3); color: var(--text); }
.wiz-nav li.active a, .wiz-nav li.active span { color: var(--brand); background: var(--bg3); font-weight: 700; }
.wiz-nav li.done a, .wiz-nav li.done span { color: var(--text); }
.wiz-no { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--text); align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; }
.wiz-nav li.active .wiz-no { background: var(--brand); color: #04130d; }
.wiz-nav li.done .wiz-no { background: var(--teal); color: #fff; }
.wiz-progress { height: 6px; background: var(--line); border-radius: 3px; margin: 18px 0 10px; overflow: hidden; }
.wiz-progress div { height: 100%; background: var(--brand); transition: width .3s; }
.wiz-main { padding: 32px 40px; max-width: 720px; }
.wiz-main h2 { font-size: 1.4rem; margin-bottom: 6px; }
.wiz-actions { display: flex; gap: 10px; margin-top: 24px; align-items: center; }
.wiz-actions .btn { margin-left: auto; }
.link-row { display: grid; grid-template-columns: 130px 1fr; gap: 8px; margin-bottom: 8px; }
.publish-summary { background: var(--bg3); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-top: 14px; }
.thumb-preview { max-width: 220px; border-radius: 10px; margin: 6px 0; display: block; border: 1px solid var(--line); }
.alert-ok { background: rgba(0,200,150,.12); border: 1px solid var(--brand); color: var(--brand); padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; }
@media (max-width: 720px) { .wizard { grid-template-columns: 1fr; } .wiz-nav { border-right: none; border-bottom: 1px solid var(--line); } }

/* Auth */
.auth { max-width: 400px; margin: 0 auto; }
.auth h1 { font-size: 1.5rem; margin-bottom: 18px; }
.auth-alt { margin-top: 16px; }
.auth-alt a { color: var(--brand); }
.inline-form { display: inline; }
.inline-form .btn-ghost { background: none; border: none; font-family: inherit; }

/* Footer */
.footer { padding: 18px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }

/* ===== 상세 v2 (좌 2/3 + 우 1/3 sticky 유사) ===== */
.pd2 {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 0;
  align-items: start;
}
.pd2-main { min-width: 0; padding: 0 32px 60px; }

/* --- Hero --- */
.pd2-hero { margin-bottom: 28px; }
.pd2-badges { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pd2-cat { color: var(--brand); font-size: .85rem; font-weight: 700; }
.pd2-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15; font-weight: 900; letter-spacing: -1px;
  margin-bottom: 14px; color: #fff;
}
.pd2-lead { font-size: 1.05rem; color: var(--text); opacity: .82; line-height: 1.6; margin-bottom: 16px; max-width: 68ch; }
.pd2-statbar { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.pd2-statbar b { color: var(--text); font-variant-numeric: tabular-nums; }
.pd2-stat-rating { display: inline-flex; align-items: center; gap: 6px; }
.pd2-stat-rating i { font-style: normal; }
.pd2-cover { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); margin-bottom: 4px; }
.pd2-cover img { width: 100%; display: block; max-height: 480px; object-fit: cover; }
.pd2-cover-ph { height: 360px; display: flex; align-items: center; justify-content: center; }

/* --- 중단 2열 그리드 (크리에이터 / 콘텐츠) --- */
.pd2-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 18px; margin-bottom: 36px;
}
/* 크리에이터 카드 */
.pd2-creator {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; height: fit-content;
}
.pd2-creator-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.pd2-avatar {
  width: 50px; height: 50px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--brand), var(--teal)); color: #04130d;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.25rem;
}
.pd2-creator-info { display: flex; flex-direction: column; gap: 4px; }
.pd2-creator-info b { font-size: 1rem; }
.pd2-creator-stats {
  display: flex; gap: 10px; padding: 14px 0; margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.pd2-creator-stats > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pd2-creator-stats b { font-size: 1rem; font-variant-numeric: tabular-nums; }
.pd2-creator-stats span { font-size: .76rem; color: var(--muted); }
.pd2-channel-btn {
  display: block; text-align: center;
  background: var(--bg3); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px; color: var(--text); font-size: .9rem; transition: .15s;
}
.pd2-channel-btn:hover { border-color: var(--brand); color: var(--brand); }
/* 크리에이터 다른 작품 */
.pd2-otherworks { margin-top: 18px; }
.pd2-otherworks h4 { font-size: .82rem; color: var(--muted); margin-bottom: 10px; font-weight: 700; }
.pd2-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pd2-mini {
  display: flex; flex-direction: column; gap: 5px;
  border-radius: 9px; overflow: hidden; background: var(--bg3);
  border: 1px solid var(--line); transition: .15s;
}
.pd2-mini:hover { border-color: var(--brand); }
.pd2-mini img { width: 100%; height: 68px; object-fit: cover; display: block; }
.pd2-mini-ph { width: 100%; height: 68px; display: flex; align-items: center; justify-content: center; }
.pd2-mini-title {
  font-size: .76rem; line-height: 1.3; color: var(--text); padding: 0 7px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pd2-mini-price { font-size: .72rem; color: var(--brand); font-weight: 700; padding: 0 7px 7px; }
.pd2-mini-price.free { color: var(--muted); }
/* 콘텐츠 박스 */
.pd2-content {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 22px;
}
.pd2-price-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.pd2-price { font-size: 2rem; font-weight: 900; color: var(--brand); letter-spacing: -.5px; }
.pd2-preview-label { font-size: .88rem; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.pd2-body-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pd2-body-head h3 { font-size: .88rem; color: var(--muted); font-weight: 700; margin: 0; }
.pd2-copy-btn {
  background: var(--bg3); border: 1px solid var(--line); border-radius: 8px;
  padding: 5px 12px; color: var(--text); font-size: .82rem; cursor: pointer; transition: .15s;
}
.pd2-copy-btn:hover { border-color: var(--brand); color: var(--brand); }
.pd2-preview-wrap { position: relative; }
.pd2-preview-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 80px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg2)); border-radius: 0 0 12px 12px;
}
.pd2-buy-area { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.pd2-buy-btn { width: 100%; }

/* --- 하단 섹션 --- */
.pd2-section { margin-bottom: 36px; }

/* ===== 우측 sticky 레일 (1/3) ===== */
.pd2-rail {
  position: sticky;
  top: 150px;
  align-self: start;
  background: #0a0f0c;
  border-left: 1px solid var(--line);
  padding: 18px 14px 10px;
  max-height: calc(100vh - 160px);
  display: flex; flex-direction: column;
  min-height: 0;
}
.pd2-rail-title {
  font-size: 1rem; font-weight: 800; margin-bottom: 14px; padding: 0 4px; flex: 0 0 auto;
  border-bottom: 1px solid var(--line); padding-bottom: 10px;
}
.pd2-rail-scroll {
  overflow-y: auto; overscroll-behavior: contain;
  flex: 1 1 auto; min-height: 0;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.pd2-rail-scroll::-webkit-scrollbar { width: 4px; }
.pd2-rail-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

/* ===== 우측 Tight 메이슨리 (여백 없음) ===== */
.masonry-tight { column-width: 140px; column-gap: 0; }
.pin-tight {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  display: block;
  width: 100%;
  margin: 0; padding: 0;
  background: var(--bg3);
  outline: 1px solid #0a0f0c;
  position: relative; transition: outline-color .15s;
}
.pin-tight:hover { z-index: 2; outline-color: var(--brand); }
.pin-tight-media { position: relative; line-height: 0; }
.pin-tight-media img { width: 100%; display: block; }
.pin-tight-ph { display: flex; align-items: center; justify-content: center; }
.pin-tight .pin-badge { top: 5px; right: 5px; left: auto; font-size: .58rem; padding: 2px 6px; }
.pin-cat-chip {
  position: absolute; top: 5px; left: 5px;
  font-size: .58rem; font-weight: 700; padding: 2px 6px; border-radius: 20px;
  background: rgba(0,0,0,.52); color: #fff; backdrop-filter: blur(4px);
  max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pin-tight-body { padding: 7px 8px 9px; }
.pin-tight-title {
  font-size: .79rem; font-weight: 700; line-height: 1.3; margin-bottom: 4px; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pin-tight-meta { display: flex; justify-content: space-between; align-items: center; font-size: .68rem; color: var(--muted); }

/* ===== 상세 v2 반응형 ===== */
@media (max-width: 1200px) {
  .pd2 { grid-template-columns: 1fr; }
  .pd2-rail { position: static; max-height: none; border-left: none; border-top: 1px solid var(--line); padding-top: 24px; }
  .pd2-rail-scroll { overflow: visible; max-height: none; }
  .masonry-tight { column-width: 180px; }
}
@media (max-width: 900px) {
  .pd2-main { padding: 0 18px 50px; }
  .pd2-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pd2-main { padding: 0 14px 40px; }
  .pd2-title { font-size: 1.65rem; }
  .pd2-cover-ph { height: 220px; }
  .pd2-statbar { gap: 14px; }
  .masonry-tight { column-width: 145px; }
}

@media (max-width: 720px) { .layout { grid-template-columns: 1fr; } .sidebar { display: none; } }

/* =====================================================
   흰색 테마 컴포넌트 오버라이드
   ===================================================== */
/* 카드 배경: 다크 그라디언트 → 흰 배경 + 그림자 */
.card {
  background: #fff; box-shadow: var(--shadow);
}
.card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.12); }

/* 탑바 그림자 */
.topbar { box-shadow: 0 1px 8px rgba(0,0,0,.06); }

/* 검색창 */
.search.big input { background: #f5f5f5; }

/* 핀 카드 */
.pin { background: #fff; box-shadow: var(--shadow); }
.pin:hover { box-shadow: 0 8px 28px rgba(0,0,0,.14); }

/* ncard 포스터 그림자 */
.poster { box-shadow: 0 4px 14px rgba(0,0,0,.13); }

/* 본문 박스 */
.body-box {
  background: #f8fdfb; border: 1.5px solid var(--brand); border-radius: 12px;
  padding: 18px; white-space: pre-wrap; line-height: 1.6; margin: 12px 0; color: var(--text);
}
.preview-box { color: var(--text); }

/* 판매 차트 */
.sales-chart { background: var(--bg2); border-color: var(--line); }

/* 리뷰 폼 */
.review-form { background: var(--bg2); }
.review-form textarea, .reply-form input { background: #fff; color: var(--text); }

/* 위저드 */
.wiz-nav { background: var(--bg2); }
.publish-summary { background: var(--bg2); }

/* 채널 */
.channel-drafts { background: var(--bg2); }
.draft-item { background: var(--bg3); }

/* 폼 입력 */
.form input, .form select, .form textarea {
  background: #fff; color: var(--text); border-color: var(--line);
}

/* =====================================================
   공유하기 타입 선택 (NewStart)
   ===================================================== */
.share-pick {
  max-width: 860px; margin: 60px auto; padding: 0 24px 80px;
  text-align: center;
}
.share-pick h1 { font-size: 2rem; font-weight: 900; margin-bottom: 10px; }
.share-pick > .muted { font-size: 1rem; margin-bottom: 40px; display: block; }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--muted); font-size: .9rem; }
.back-link:hover { color: var(--brand); }

.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pick-card {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  border: 2px solid var(--line); border-radius: 18px; overflow: hidden;
  background: var(--bg2); transition: border-color .22s, transform .22s;
  cursor: pointer; text-decoration: none; color: var(--text);
}
.pick-card:hover { border-color: var(--brand); transform: translateY(-4px); }
.pick-badge {
  align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  background: var(--brand); color: #001a0e; padding: 3px 12px; border-radius: 0 0 8px 0;
  margin: 0;
}
.pick-art {
  width: 100%; height: 180px; flex-shrink: 0;
}
.pick-art-ai {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0,200,150,.22) 0%, transparent 60%),
    radial-gradient(ellipse at 75% 25%, rgba(8,145,178,.18) 0%, transparent 55%),
    linear-gradient(145deg, #0a1a2e 0%, #0d1210 100%);
}
.pick-art-know {
  background:
    radial-gradient(ellipse at 70% 60%, rgba(200,150,0,.2) 0%, transparent 55%),
    radial-gradient(ellipse at 25% 30%, rgba(200,80,120,.18) 0%, transparent 50%),
    linear-gradient(145deg, #1a0a10 0%, #0d1210 100%);
}
.pick-body { padding: 22px 28px; text-align: left; width: 100%; }
.pick-body h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.pick-body p { font-size: .9rem; color: var(--muted); line-height: 1.55; }
.pick-go {
  align-self: flex-end; margin: 0 24px 20px; font-size: .9rem; color: var(--brand); font-weight: 600;
}

/* =====================================================
   AI 모달리티 9:16 세로형 카드
   ===================================================== */
.mod-grid-v {
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: center;
  max-width: 980px; margin: 36px auto 0;
}
.mod-card-v {
  width: 160px; border-radius: 16px; overflow: hidden;
  border: 2px solid var(--line); background: var(--bg2);
  display: flex; flex-direction: column;
  transition: border-color .22s, transform .22s; cursor: pointer; text-decoration: none; color: var(--text);
}
.mod-card-v:hover { border-color: var(--brand); transform: translateY(-5px); }
.mod-cover-v {
  width: 100%; aspect-ratio: 9/16; position: relative;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.mod-icon-v { width: 68px; height: 68px; z-index: 1; }
.mod-glow {
  position: absolute; width: 120%; height: 120%; top: -10%; left: -10%;
  border-radius: 50%; opacity: .35; filter: blur(36px);
}
.mod-glow-video { background: radial-gradient(circle, #a855f7 0%, transparent 70%); }
.mod-glow-image { background: radial-gradient(circle, #0d6efd 0%, #00c896 70%, transparent 100%); }
.mod-glow-text  { background: radial-gradient(circle, #00c896 0%, transparent 70%); }
.mod-glow-workflow { background: radial-gradient(circle, #c89600 0%, transparent 70%); }
.mod-glow-other { background: radial-gradient(circle, #e05ab4 0%, transparent 70%); }

.mod-card-v-body { padding: 14px 14px 18px; }
.mod-card-v-body strong { display: block; font-size: 1rem; font-weight: 800; margin-bottom: 4px; }
.mod-sub { font-size: .76rem; color: var(--muted); line-height: 1.4; }

/* =====================================================
   노하우&Tip 카테고리 그리드
   ===================================================== */
.know-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px; margin-top: 36px;
}
.know-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 22px 14px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--bg2); text-decoration: none; color: var(--text);
  transition: border-color .2s, transform .2s; cursor: pointer; text-align: center;
}
.know-card:hover { border-color: var(--brand); transform: translateY(-3px); }
.know-icon { font-size: 2.2rem; line-height: 1; }
.know-card strong { font-size: .95rem; font-weight: 700; }
.know-desc { font-size: .76rem; color: var(--muted); line-height: 1.35; }

/* =====================================================
   위저드: 무지개 테두리 (본문 textarea)
   ===================================================== */
@property --rb-angle {
  syntax: "<angle>"; initial-value: 0deg; inherits: false;
}
@keyframes rb-spin { to { --rb-angle: 360deg; } }

.rainbow-box {
  padding: 3px; border-radius: 12px;
  background: conic-gradient(from var(--rb-angle),
    #f00, #ff8800, #ffe200, #00d26a, #00b0ff, #8f00ff, #f00);
  animation: rb-spin 4s linear infinite;
  margin-bottom: 6px;
}
.rainbow-box-inner {
  background: var(--bg3); border-radius: 10px; position: relative;
}
.rainbow-box-label {
  position: absolute; top: -11px; left: 14px;
  font-size: .72rem; font-weight: 700; color: var(--brand);
  background: var(--bg3); padding: 1px 8px; border-radius: 6px;
  letter-spacing: .08em; text-transform: uppercase;
}
.rainbow-box-inner textarea {
  width: 100%; resize: vertical; background: transparent;
  border: none; padding: 18px 16px 14px; color: var(--text);
  font-family: "JetBrains Mono", monospace; font-size: .92rem; line-height: 1.7;
  border-radius: 10px; min-height: 180px;
}
.rainbow-box-inner textarea:focus { outline: none; }

/* =====================================================
   위저드: 대표이미지 미리보기 고정 (왼쪽 상단)
   ===================================================== */
.thumb-upload-row {
  display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap;
  margin-bottom: 6px;
}
.wiz-thumb-fixed {
  width: 130px; height: 130px; border-radius: 10px;
  border: 2px dashed var(--line); background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.wiz-thumb-fixed img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.thumb-placeholder { font-size: .75rem; color: var(--muted); text-align: center; padding: 8px; }
.thumb-upload-row input[type=file] { align-self: center; }

/* =====================================================
   위저드: 유료 샘플 섹션
   ===================================================== */
.sample-section {
  margin: 24px 0; padding: 22px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--bg3);
}
.sample-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.sample-header h3 { font-size: 1rem; font-weight: 700; }
.sample-type-toggle { display: flex; gap: 0; border-radius: 8px; overflow: hidden; border: 1.5px solid var(--line); }
.st-btn {
  padding: 6px 18px; background: transparent; border: none; color: var(--muted);
  font-size: .85rem; cursor: pointer; transition: background .18s, color .18s;
}
.st-btn.active { background: var(--brand); color: #001a0e; font-weight: 700; }
.sample-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sample-slot {
  aspect-ratio: 3/4; border-radius: 10px; border: 2px dashed var(--line);
  background: var(--bg2); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: border-color .18s;
}
.sample-slot:hover { border-color: var(--brand); }
.sample-slot-inner {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
}
.sample-add { font-size: .8rem; color: var(--muted); }
.sample-text-grid { display: flex; flex-direction: column; gap: 12px; }
.sample-text-slot label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
.sample-text-slot textarea {
  width: 100%; background: var(--bg2); border: 1.5px solid var(--line);
  border-radius: 8px; padding: 10px 12px; color: var(--text); font-size: .88rem;
  resize: vertical;
}
.sample-text-slot textarea:focus { outline: none; border-color: var(--brand); }

/* =====================================================
   반응형 조정
   ===================================================== */
@media (max-width: 680px) {
  .pick-grid { grid-template-columns: 1fr; }
  .mod-grid-v { gap: 12px; }
  .mod-card-v { width: 140px; }
  .know-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .sample-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================
   상세 v3 (pd3) — 흰배경, 9:16 커버, 오른쪽 세로형 레일
   ===================================================== */
.pd3-back {
  display: inline-block; margin: 20px 0 10px 28px;
  color: var(--muted); font-size: .88rem; transition: color .15s;
}
.pd3-back:hover { color: var(--brand); }

.pd3-page-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.pd3-page-wrap .pd3-back {
  margin-left: 0;
}

.pd3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 0;
  align-items: start;
}

/* ---- 왼쪽 영역 ---- */
.pd3-left { min-width: 0; padding: 0 32px 64px; }

/* ---- Hero ---- */
.pd3-hero {
  display: flex; flex-direction: row; gap: 28px;
  align-items: flex-start; margin-bottom: 36px;
}

.pd3-cover {
  flex: 0 0 280px;
  width: 280px;
  aspect-ratio: 9 / 16;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg2);
}
.pd3-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.pd3-cover-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}

.pd3-info {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px;
}
.pd3-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd3-cat { color: var(--brand); font-size: .85rem; font-weight: 700; }
/* 호환 도구 뱃지 */
.tool-badge {
  display: inline-block; font-size: .68rem; font-weight: 700;
  padding: 2px 8px; border-radius: 6px;
  background: var(--bg3); color: var(--muted);
  border: 1px solid var(--line); letter-spacing: .01em;
  font-family: "JetBrains Mono", monospace;
}
.pd3-title {
  font-size: clamp(1.15rem, 1.6vw, 1.55rem);
  line-height: 1.3; font-weight: 800; letter-spacing: -.3px; color: var(--text);
  margin: 0; word-break: keep-all;
}
.pd3-lead { font-size: .9rem; color: var(--text); opacity: .82; line-height: 1.6; margin: 0; word-break: keep-all; }
.pd3-statbar {
  display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: .88rem;
}
.pd3-statbar b { color: var(--text); font-variant-numeric: tabular-nums; }
.pd3-stat-rating { display: inline-flex; align-items: center; gap: 5px; }
.pd3-stat-rating i { font-style: normal; }

/* ---- 크리에이터 스트립 ---- */
.pd3-creator {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 16px;
}
.pd3-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--brand), var(--teal)); color: #04130d;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem;
}
.pd3-creator-info { display: flex; flex-direction: column; gap: 3px; flex: 1 1 0; }
.pd3-creator-info b { font-size: .95rem; }
.pd3-channel-link {
  white-space: nowrap; color: var(--brand); font-size: .85rem; font-weight: 700;
  transition: opacity .15s;
}
.pd3-channel-link:hover { opacity: .75; }

/* ---- 이런 분께 추천해요 ---- */
.pd3-recommend { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; }
.pd3-rec-list {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.pd3-rec-list li {
  padding-left: 26px; position: relative;
  font-size: .95rem; color: var(--text); line-height: 1.5;
}
.pd3-rec-list li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--brand); font-weight: 800;
}

/* ---- 미리보기 헤더 ---- */
.pd3-preview-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
}
.pd3-sample-copy {
  background: var(--bg3); border: 1px solid var(--line); border-radius: 8px;
  padding: 5px 12px; color: var(--brand); font-size: .8rem; font-weight: 700;
  cursor: pointer; transition: .15s; white-space: nowrap;
}
.pd3-sample-copy:hover { border-color: var(--brand); background: rgba(0,200,150,.08); }

/* ---- 잠금 오버레이 ---- */
.pd3-lock-overlay {
  margin-top: 0;
  background: linear-gradient(to bottom, rgba(10,10,15,0) 0%, var(--bg) 40%);
  padding: 24px 20px 20px;
  border-radius: 0 0 14px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
}
.pd3-lock-icon { font-size: 2rem; line-height: 1; margin-bottom: 2px; }
.pd3-lock-msg { display: flex; flex-direction: column; gap: 4px; }
.pd3-lock-msg strong { font-size: .95rem; color: var(--text); }
.pd3-lock-msg span { font-size: .82rem; }
.pd3-buy-btn2 { min-width: 220px; margin-top: 4px; }

/* ---- 접기/펼치기 ---- */
.pd3-collapsible { border: none; }
.pd3-collapsible > summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px;
}
.pd3-collapsible > summary::after { content: '▾'; font-size: .8rem; color: var(--muted); }
.pd3-collapsible[open] > summary::after { content: '▴'; }
.pd3-collapsible > summary::-webkit-details-marker { display: none; }

/* ---- 별점 분포 ---- */
.pd3-rating-dist {
  display: flex; gap: 24px; align-items: center;
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 20px; margin-bottom: 20px;
}
.pd3-rating-avg { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 70px; }
.pd3-rating-big { font-size: 2.4rem; font-weight: 900; color: var(--text); line-height: 1; }
.pd3-rating-stars { font-size: 1rem; color: var(--brand); letter-spacing: 2px; }
.pd3-rating-bars { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.pd3-rbar-row { display: flex; align-items: center; gap: 8px; }
.pd3-rbar-label { font-size: .78rem; color: var(--muted); min-width: 22px; text-align: right; }
.pd3-rbar-track { flex: 1; height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.pd3-rbar-fill { height: 100%; background: var(--brand); border-radius: 3px; transition: width .4s; }
.pd3-rbar-cnt { font-size: .75rem; color: var(--muted); min-width: 18px; }

/* ---- 가격 + 구매버튼 ---- */
.pd3-buy-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 18px;
}
.pd3-price {
  font-size: 1.8rem; font-weight: 900; color: var(--brand); letter-spacing: -.5px;
  white-space: nowrap;
}
.pd3-buy-btn { flex: 1 1 0; }
.pd3-charlen { font-size: .8rem; margin: -4px 0 0; }

/* ---- 상품 정보 섹션 ---- */
.pd3-section { margin-bottom: 36px; }
.pd3-product {}

/* ---- 영상 섹션 ---- */
.pd3-media-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.pd3-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.pd3-embed iframe, .pd3-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; }
.pd3-media-cap { margin: -8px 0 8px; font-size: .82rem; }

/* ══════════════════════════════════════════════
   포함 자료 탭 — 상세 페이지
══════════════════════════════════════════════ */
.ct-tab-strip {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: none; margin-bottom: 14px;
}
.ct-tab-strip::-webkit-scrollbar { display: none; }
.ct-tab {
  flex-shrink: 0; padding: 5px 14px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--bg2);
  color: var(--text2); font-size: .82rem; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.ct-tab.active { background: var(--brand); border-color: var(--brand); color: #000; font-weight: 600; }
.ct-cnt { font-size: .73rem; opacity: .7; margin-left: 2px; }
.ct-hidden { display: none !important; }

/* ct-item — 타입 아이콘 포함 새 레이아웃 */
.ct-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.ct-item:last-child { border-bottom: none; }

/* 타입 아이콘 박스 */
.ct-type-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 800; letter-spacing: -.02em;
  line-height: 1.1; text-align: center;
}
.ct-icon-workflow  { background: #e0f2fe; color: #0369a1; }
.ct-icon-result    { background: #dcfce7; color: #15803d; }
.ct-icon-knowhow   { background: #fef9c3; color: #92400e; }
.ct-icon-knowledge { background: #ede9fe; color: #6d28d9; }
.ct-icon-site      { background: #fff7ed; color: #c2410c; }
.ct-icon-law       { background: #fdf2f8; color: #9d174d; }
.ct-icon-file, .ct-icon-other { background: var(--bg3); color: #374151; }

/* 아이콘 오른쪽 본문 영역 */
.ct-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }

/* 워크플로우/결과물 이미지 미리보기 */
.ct-preview-img {
  width: 100%; max-height: 300px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--border);
  display: block;
}
.ct-preview-locked {
  background: var(--bg2); border: 1px dashed var(--border);
  border-radius: 10px; height: 90px;
  display: flex; align-items: center; justify-content: center;
}
.ct-lock-label {
  font-size: .8rem; color: var(--muted);
  padding: 5px 14px; border: 1px dashed var(--border); border-radius: 20px;
}

.ct-item-info { min-width: 0; }
.ct-item-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ct-item-title { display: block; font-size: .93rem; font-weight: 600; margin-bottom: 3px; }
.ct-item-desc { font-size: .82rem; margin: 0 0 2px; line-height: 1.55; color: var(--muted); }
.ct-file-meta { font-size: .76rem; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.ct-workflow-hint { font-size: .77rem; color: var(--teal); font-weight: 500; margin-top: 3px; }

/* 파일 확장자 뱃지 */
.ct-ext-badge {
  display: inline-block; font-size: .65rem; padding: 1px 6px; border-radius: 4px;
  background: var(--bg3); color: var(--muted); font-weight: 700;
  margin-left: 6px; vertical-align: middle; font-family: "JetBrains Mono", monospace;
  letter-spacing: .04em;
}

/* 액션 버튼 영역 */
.ct-item-action { flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.ct-btn-dl {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 16px; border-radius: 8px; font-size: .83rem; text-decoration: none;
  background: var(--brand); color: #000; font-weight: 700;
  white-space: nowrap;
}
.ct-btn-dl-wf {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 20px; border-radius: 10px; font-size: .9rem; text-decoration: none;
  background: #0369a1; color: #fff; font-weight: 700;
  white-space: nowrap; letter-spacing: -.01em;
}
.ct-btn-link {
  display: inline-block; padding: 6px 14px; border-radius: 8px;
  font-size: .82rem; text-decoration: none;
  background: var(--bg3); color: var(--text1);
  border: 1px solid var(--border); white-space: nowrap;
}
.ct-btn-locked {
  display: inline-block; padding: 6px 12px; border-radius: 8px;
  font-size: .79rem; color: var(--text3);
  border: 1px dashed var(--border); white-space: nowrap;
}

/* ══════════════════════════════════════════════
   포함 자료 관리 — 위저드 Step 3
══════════════════════════════════════════════ */
.ci-section { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.ci-section-title { font-size: 1rem; font-weight: 700; margin: 0 0 14px; }
.ci-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ci-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; background: var(--bg2); border-radius: 8px;
}
.ci-type-badge {
  font-size: .73rem; padding: 2px 8px; border-radius: 10px;
  background: var(--bg3); color: var(--brand); font-weight: 600; white-space: nowrap;
}
.ci-title { font-size: .88rem; font-weight: 500; flex: 1; min-width: 0; }
.ci-meta { font-size: .78rem; }
.ci-del-btn {
  padding: 4px 10px; border-radius: 6px; background: transparent;
  border: 1px solid var(--danger, #f87171); color: var(--danger, #f87171);
  font-size: .78rem; cursor: pointer; margin-left: auto;
}
.ci-add {
  border: 1px dashed var(--border); border-radius: 10px; overflow: hidden;
  margin-top: 6px;
}
.ci-add summary {
  padding: 10px 14px; cursor: pointer; font-size: .88rem;
  color: var(--brand); font-weight: 500; list-style: none;
}
.ci-add summary::-webkit-details-marker { display: none; }
.ci-add-form {
  padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 8px;
}
.ci-add-row { display: flex; gap: 8px; }
.ci-add-row select { width: 150px; flex-shrink: 0; }
.ci-add-row input { flex: 1; }
.ci-add-btn {
  align-self: flex-start; padding: 8px 22px;
  background: var(--brand); color: #000; border-radius: 8px;
  font-weight: 600; cursor: pointer; border: none; font-size: .88rem;
}

.pd3-gallery {
  display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.pd3-gallery-slot {
  width: 120px; aspect-ratio: 9 / 16;
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg2);
}
.pd3-gallery-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd3-gallery-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}

.pd3-body-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.pd3-body-head h3 { font-size: .88rem; color: var(--muted); font-weight: 700; margin: 0; }
.pd3-copy-btn {
  background: var(--bg3); border: 1px solid var(--line); border-radius: 8px;
  padding: 5px 12px; color: var(--text); font-size: .82rem; cursor: pointer; transition: .15s;
}
.pd3-copy-btn:hover { border-color: var(--brand); color: var(--brand); }
.pd3-preview-label { font-size: .88rem; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.pd3-preview-wrap { position: relative; }
.pd3-preview-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 80px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg)); border-radius: 0 0 12px 12px;
}
.pd3-buy-area { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.pd3-buy-btn2 { width: 100%; }

/* ---- 오른쪽 레일 ---- */
.pd3-rail {
  position: sticky; top: 80px; align-self: start;
  border-left: 1px solid var(--line);
  padding: 18px 14px 24px;
  max-height: calc(100vh - 100px);
  display: flex; flex-direction: column; gap: 14px; overflow: hidden;
}

/* 액션 카드 (내부 공유 도구) */
.pd3-action-card {
  flex: 0 0 auto;
  background: var(--bg2); border: 1px solid rgba(0,200,150,.3);
  border-radius: 14px; padding: 18px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.pd3-action-label {
  font-size: .72rem; font-weight: 700; color: var(--brand);
  text-transform: uppercase; letter-spacing: .06em;
  background: rgba(0,200,150,.1); border-radius: 20px;
  padding: 3px 10px; align-self: flex-start;
}
.pd3-action-open-badge {
  background: rgba(0,200,150,.12); color: var(--brand);
  border-radius: 8px; padding: 10px 14px; text-align: center;
  font-size: .92rem; font-weight: 700;
}
.pd3-edit-btn, .pd3-access-btn { width: 100%; padding: 12px; font-size: .95rem; }
.pd3-action-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px; border-top: 1px solid var(--line); padding-top: 10px;
}
.pd3-astat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pd3-astat-n { font-size: .95rem; font-weight: 800; color: var(--text); }
.pd3-astat-l { font-size: .7rem; color: var(--muted); }
.pd3-action-rating {
  display: flex; align-items: center; gap: 6px; font-size: .82rem;
}
.pd3-buy-qna {
  font-size: .8rem; color: var(--brand); font-weight: 600;
  text-decoration: none; text-align: center;
}
.pd3-buy-qna:hover { opacity: .75; }

/* 크리에이터 카드 (레일) */
.pd3-creator-card {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px;
  text-decoration: none; transition: border-color .15s;
}
.pd3-creator-card:hover { border-color: var(--brand); }
.pd3-avatar-sm { width: 34px; height: 34px; font-size: .9rem; flex: 0 0 34px; }

.pd3-rail-title {
  font-size: .88rem; font-weight: 800; margin: 0;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
  flex: 0 0 auto; color: var(--muted);
}
.pd3-rail-list {
  display: flex; flex-direction: column; gap: 12px;
  overflow-y: auto; overscroll-behavior: contain;
  flex: 1 1 auto; min-height: 0;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.pd3-rail-list::-webkit-scrollbar { width: 4px; }
.pd3-rail-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

/* 세로형 카드 */
.pd3-rc {
  display: flex; flex-direction: row; gap: 10px; align-items: flex-start;
  flex-shrink: 0;
  border-radius: 10px; overflow: hidden; background: var(--bg2);
  border: 1px solid var(--line); padding: 8px; transition: border-color .15s;
  text-decoration: none;
}
.pd3-rc:hover { border-color: var(--brand); }
.pd3-rc-thumb {
  flex: 0 0 80px; width: 80px; height: 110px;
  border-radius: 6px; overflow: hidden; background: var(--bg3);
}
.pd3-rc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd3-rc-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: .55rem; }
.pd3-rc-info { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.pd3-rc-title {
  font-size: .8rem; font-weight: 700; line-height: 1.3; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pd3-rc-price { font-size: .75rem; color: var(--brand); font-weight: 700; }
.pd3-rc-price.free { color: var(--muted); }
.pd3-rc-cat { font-size: .7rem; color: var(--muted); }

/* =====================================================
   위저드: YouTube Studio 스타일 이미지 업로드 존
   ===================================================== */
.yt-thumb-zone {
  width: 100%; max-width: 340px;
  aspect-ratio: 9 / 16;
  border: 2px dashed var(--line); border-radius: 14px;
  cursor: pointer; overflow: hidden; position: relative;
  background: var(--bg2); transition: border-color .2s;
  margin-bottom: 4px;
}
.yt-thumb-zone:hover { border-color: var(--brand); }

.yt-thumb-preview {
  width: 100%; height: 100%; position: relative;
}
.yt-thumb-preview img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.yt-thumb-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .9rem;
  opacity: 0; transition: opacity .2s;
}
.yt-thumb-zone:hover .yt-thumb-overlay { opacity: 1; }

.yt-thumb-empty {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--muted); padding: 20px;
  text-align: center;
}
.yt-thumb-empty svg { color: var(--muted); opacity: .5; }
.yt-thumb-empty span { font-size: .92rem; font-weight: 600; }

/* ---- 모바일 하단 고정 CTA ---- */
.pd3-cta-mobile {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: var(--bg2); border-top: 1px solid var(--line);
  padding: 10px 16px;
  align-items: center; justify-content: space-between; gap: 12px;
}
.pd3-cta-price { font-size: 1.3rem; font-weight: 900; color: var(--brand); white-space: nowrap; }
.pd3-cta-buy { flex: 1; padding: 12px; font-size: .95rem; }

/* ---- pd3 반응형 ---- */
@media (max-width: 1060px) {
  .pd3 { grid-template-columns: 1fr; }
  .pd3-rail {
    position: static; max-height: none; overflow: visible;
    border-left: none; border-top: 1px solid var(--line); padding-top: 20px;
    gap: 12px;
  }
  .pd3-rail-list { overflow: visible; max-height: none; }
  /* 모바일에서 구매카드는 숨기고 하단 CTA 표시 */
  .pd3-buy-card { display: none; }
  .pd3-cta-mobile { display: flex; }
  .pd3-left { padding-bottom: 90px; }
}
@media (max-width: 860px) {
  .pd3-hero { flex-direction: column; }
  .pd3-cover { flex: none; width: 100%; max-width: 320px; }
  .pd3-left { padding: 0 18px 90px; }
  .pd3-rating-dist { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .pd3-left { padding: 0 12px 90px; }
  .pd3-title { font-size: 1.2rem; }
  .pd3-cover { max-width: 100%; }
  .pd3-buy-row { flex-direction: column; align-items: stretch; }
  .pd3-price { font-size: 1.3rem; }
}

/* ── Quick tip (wizard step 1) ─────────────────────────────── */
.quick-tip {
  margin-top: 10px; padding: 10px 14px;
  background: #f0fdf9; border-left: 3px solid var(--brand);
  border-radius: 6px; font-size: .82rem; color: #065f46;
}

/* ── AI 인사이트 트리거 ──────────────────────────────────────── */
.insight-trigger-wrap {
  display: flex; align-items: center; gap: 12px;
  margin-top: 20px; flex-wrap: wrap;
}
.insight-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 20px;
  background: linear-gradient(135deg, #00C896, #0891B2);
  color: #fff; border: none; cursor: pointer;
  font-size: .9rem; font-weight: 700; font-family: inherit;
  transition: opacity .15s;
}
.insight-btn:hover { opacity: .88; }
.insight-btn:disabled { opacity: .5; cursor: default; }
.insight-btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,.25); font-size: .7rem; font-weight: 900;
}

/* ── AI 인사이트 패널 ─────────────────────────────────────────── */
.insight-panel {
  margin-top: 16px; border-radius: 12px;
  border: 1px solid #d1fae5; background: #f0fdf9;
  overflow: hidden;
}
.insight-loading {
  display: flex; align-items: center; gap: 10px;
  padding: 20px; color: #065f46; font-size: .9rem;
}
.insight-spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid #d1fae5; border-top-color: var(--brand);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.insight-error {
  padding: 16px 20px; color: #991b1b;
  background: #fef2f2; font-size: .88rem;
}
.insight-header {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; background: #ecfdf5;
  border-bottom: 1px solid #d1fae5;
}
.insight-score {
  position: relative; width: 56px; height: 56px; flex: none;
}
.insight-score svg {
  width: 56px; height: 56px; transform: rotate(-90deg);
}
.insight-score > span {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; color: var(--sc);
}
.insight-score-label { display: flex; flex-direction: column; gap: 2px; }
.insight-score-label strong { font-size: .95rem; color: #065f46; }
.insight-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.insight-row {
  display: flex; gap: 12px; align-items: flex-start;
}
.insight-icon {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800; margin-top: 2px;
}
.insight-row > div { flex: 1; font-size: .88rem; line-height: 1.6; }
.insight-row > div b { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 2px; }
.insight-row > div p { color: #1a2e1f; }
.insight-suggest {
  margin-top: 6px; padding: 8px 12px;
  background: #dcfce7; border-radius: 6px; font-size: .83rem;
}
.insight-suggest span { color: var(--muted); margin-right: 6px; }
.insight-suggest em { font-style: normal; font-weight: 600; color: #065f46; }
.insight-missing {
  margin-top: 4px; padding-left: 16px; color: #b45309;
}
.insight-missing li { font-size: .84rem; }
.insight-ok { color: #065f46; font-size: .84rem; }
.insight-next {
  margin-top: 4px; padding: 12px 16px;
  background: var(--brand); border-radius: 8px;
  color: #fff; font-size: .88rem;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 20px 28px; border-top: 1px solid var(--line);
  background: var(--bg2); margin-top: auto;
}
.footer-links { display: flex; gap: 16px; margin-left: auto; flex-wrap: wrap; }
.footer-links a { font-size: .82rem; color: var(--muted); }
.footer-links a:hover { color: var(--brand); }

/* ── 내 구매 내역 ──────────────────────────────────────────── */
.my-orders-wrap { max-width: 860px; margin: 0 auto; padding: 36px 24px 80px; }
.my-orders-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 28px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.my-orders-header h1 { font-size: 1.5rem; font-weight: 700; }
.order-list { display: flex; flex-direction: column; gap: 16px; }
.order-card { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; transition: box-shadow .18s; }
.order-card:hover { box-shadow: var(--shadow); }
.order-thumb { width: 80px; height: 60px; border-radius: 8px; overflow: hidden; flex-shrink: 0; display: block; }
.order-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-thumb-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; color: #fff; border-radius: 8px; }
.order-info { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.order-title { font-weight: 600; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-title:hover { color: var(--brand); }
.order-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.order-meta a:hover { color: var(--brand); }
.order-price { font-size: .9rem; font-weight: 700; color: var(--brand); }
.order-paid-badge { color: var(--brand); background: rgba(0,200,150,.1); padding: 2px 8px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.order-view-btn { font-size: .82rem; white-space: nowrap; }
@media (max-width: 600px) {
  .order-card { grid-template-columns: 64px 1fr; }
  .order-view-btn { display: none; }
}

/* ── 법령 페이지 ─────────────────────────────────────────────── */
.legal-wrap {
  max-width: 820px; margin: 0 auto; padding: 40px 24px 80px;
}
.legal-hero {
  text-align: center; padding: 48px 0 36px;
  border-bottom: 1px solid var(--line); margin-bottom: 36px;
}
.legal-hero-label {
  display: inline-block; font-size: .75rem; font-weight: 700;
  color: var(--brand); background: #e6faf3; border-radius: 20px;
  padding: 4px 14px; margin-bottom: 14px; letter-spacing: .04em;
}
.legal-hero h1 { font-size: 2rem; font-weight: 900; margin-bottom: 12px; }
.legal-hero p { color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 540px; margin: 0 auto 16px; }
.legal-updated { font-size: .8rem; color: var(--muted); }

.legal-toc {
  background: var(--bg2); border-radius: 12px; padding: 20px 24px;
  margin-bottom: 40px; border: 1px solid var(--line);
}
.legal-toc strong { display: block; margin-bottom: 10px; font-size: .9rem; }
.legal-toc ol { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal-toc a { font-size: .9rem; color: var(--teal); }
.legal-toc a:hover { text-decoration: underline; }

.legal-section { margin-bottom: 52px; }
.legal-section h2 {
  font-size: 1.25rem; font-weight: 800; margin-bottom: 18px;
  padding-bottom: 10px; border-bottom: 2px solid var(--brand);
  display: inline-block;
}
.legal-section p { font-size: .93rem; line-height: 1.8; color: var(--text); margin-bottom: 14px; }
.legal-section em { font-style: normal; background: #e6faf3; padding: 1px 5px; border-radius: 4px; color: #065f46; }

.legal-highlight {
  display: flex; gap: 14px; align-items: flex-start;
  background: #e6faf3; border-left: 4px solid var(--brand);
  border-radius: 0 10px 10px 0; padding: 16px 18px; margin-bottom: 20px;
}
.legal-highlight-yellow { background: #fefce8; border-color: #eab308; }
.legal-highlight p { margin: 0; font-size: .9rem; }
.legal-highlight-icon {
  flex: none; font-size: .7rem; font-weight: 800;
  background: var(--brand); color: #fff; border-radius: 4px;
  padding: 3px 8px; margin-top: 1px;
}
.legal-highlight-yellow .legal-highlight-icon { background: #eab308; }

.legal-card-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.legal-card { border-radius: 10px; padding: 18px 20px; }
.legal-card-green { background: #e6faf3; border: 1px solid #a7f3d0; }
.legal-card-red   { background: #fef2f2; border: 1px solid #fecaca; }
.legal-card-title { font-size: .82rem; font-weight: 800; margin-bottom: 10px; color: var(--text); }
.legal-card-green .legal-card-title { color: #065f46; }
.legal-card-red   .legal-card-title { color: #991b1b; }
.legal-card ul { padding-left: 16px; display: flex; flex-direction: column; gap: 6px; }
.legal-card li { font-size: .86rem; line-height: 1.5; }

.legal-rule-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.legal-rule { display: flex; gap: 14px; align-items: flex-start; }
.legal-rule-num {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 800; margin-top: 1px;
}
.legal-rule > div { font-size: .9rem; line-height: 1.7; }
.legal-rule strong { display: block; margin-bottom: 3px; }

.legal-note { font-size: .82rem; color: var(--muted); background: var(--bg2); padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }

.legal-law-ref {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--bg2); border-radius: 8px;
  border: 1px solid var(--line); margin-top: 8px;
}
.law-badge {
  font-size: .72rem; font-weight: 800; padding: 3px 10px;
  border-radius: 20px; background: var(--teal); color: #fff;
  white-space: nowrap;
}
.legal-law-ref span { font-size: .84rem; color: var(--muted); }
.law-link { font-size: .84rem; color: var(--teal); margin-left: auto; white-space: nowrap; }
.law-link:hover { text-decoration: underline; }
.text-link { color: var(--teal); }
.text-link:hover { text-decoration: underline; }

.legal-policy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.legal-policy-item {
  background: var(--bg2); border-radius: 10px; padding: 18px 20px;
  border: 1px solid var(--line);
}
.legal-policy-icon {
  display: inline-block; font-size: .7rem; font-weight: 800;
  color: var(--brand); background: #e6faf3; border-radius: 4px;
  padding: 2px 8px; margin-bottom: 8px;
}
.legal-policy-item h3 { font-size: .9rem; font-weight: 700; margin-bottom: 6px; }
.legal-policy-item p { font-size: .84rem; line-height: 1.6; margin: 0; color: var(--muted); }

.law-article-list { display: flex; flex-direction: column; gap: 0; margin: 20px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.law-article { border-bottom: 1px solid var(--line); }
.law-article:last-child { border-bottom: none; }
.law-article summary {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; cursor: pointer; list-style: none;
  background: var(--bg2); transition: background .15s;
}
.law-article summary:hover { background: var(--bg3); }
.law-article[open] > summary { background: #e6faf3; }
.law-article-num { font-size: .82rem; font-weight: 800; color: var(--teal); white-space: nowrap; }
.law-article-name { font-size: .9rem; font-weight: 600; }
.law-article-body {
  padding: 16px 20px; display: flex; flex-direction: column; gap: 10px;
  background: var(--bg); border-top: 1px solid var(--line);
}
.law-article-body p { font-size: .86rem; line-height: 1.75; margin: 0; }

.law-external-links {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 16px 18px; background: var(--bg2); border-radius: 10px;
  border: 1px solid var(--line); margin-top: 20px;
}
.law-external-links strong { font-size: .84rem; color: var(--muted); margin-right: 4px; }
.law-external-links a {
  font-size: .84rem; color: var(--teal); padding: 4px 12px;
  border-radius: 20px; border: 1px solid #bae6fd;
  background: #f0f9ff;
}
.law-external-links a:hover { background: #e0f2fe; }

.report-steps { display: flex; flex-direction: column; gap: 20px; margin-top: 16px; }
.report-step { display: flex; gap: 16px; align-items: flex-start; }
.report-step-num {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 800;
}
.report-step strong { display: block; margin-bottom: 4px; font-size: .92rem; }
.report-step p { font-size: .88rem; line-height: 1.7; margin: 0 0 4px; }

.legal-footer-note {
  margin-top: 48px; padding: 18px 20px;
  background: var(--bg2); border-radius: 10px;
  font-size: .82rem; color: var(--muted); line-height: 1.7;
  border: 1px solid var(--line);
}

@media (max-width: 640px) {
  .legal-card-list, .legal-policy-grid { grid-template-columns: 1fr; }
  .legal-hero h1 { font-size: 1.5rem; }
}

/* ── 광고 슬롯 ─────────────────────────────────────────────── */

/* 공통 */
.ad-slot {
  display: block; overflow: hidden; text-align: center;
  background: var(--bg2); border-radius: 6px;
}

/* 플레이스홀더 (provider=placeholder 또는 광고 미로드) */
.ad-placeholder {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  width: 100%; height: 100%; min-height: inherit;
  border: 1.5px dashed var(--line); border-radius: 6px;
  color: var(--muted);
}
.ad-label {
  font-size: .65rem; font-weight: 800; letter-spacing: .08em;
  background: var(--line); color: var(--muted);
  padding: 2px 8px; border-radius: 10px;
}
.ad-slot-name { font-size: .72rem; color: var(--muted); }

/* 리더보드: 728×90 → 모바일 320×50 */
.ad-leaderboard {
  width: 100%; min-height: 90px;
  display: flex; align-items: center; justify-content: center;
}
.ad-leaderboard .ad-placeholder { min-height: 90px; }

/* 피드 리더보드 래퍼 (메인/카테고리 상단) */
.ad-feed-wrap {
  padding: 10px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
}
.content-ad-wrap { margin-bottom: 20px; }

/* 인피드: 메이슨리 카드 흐름 안에 삽입 */
.ad-infeed {
  break-inside: avoid;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  min-height: 200px;
  background: var(--bg2);
  border: 1px solid var(--line);
}
.ad-infeed .ad-placeholder { min-height: 200px; }

/* 사이드바: 300×250 */
.ad-sidebar {
  width: 100%; min-height: 250px;
  margin: 16px 0;
  border-radius: 10px;
}
.ad-sidebar .ad-placeholder { min-height: 250px; }

/* 카테고리 사이드바 광고 래퍼 */
.sidebar-ad-wrap {
  margin-top: 20px; padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* pre-footer: 728×90 풀배너 */
.pre-footer-ad {
  display: flex; justify-content: center; align-items: center;
  padding: 14px 28px;
  background: var(--bg2);
  border-top: 1px solid var(--line);
}
.ad-pre-footer {
  width: 100%; max-width: 970px; min-height: 90px;
  display: flex; align-items: center; justify-content: center;
}
.ad-pre-footer .ad-placeholder { min-height: 90px; }

@media (max-width: 728px) {
  .ad-leaderboard, .ad-pre-footer { min-height: 50px; }
  .ad-leaderboard .ad-placeholder,
  .ad-pre-footer .ad-placeholder { min-height: 50px; }
  .pre-footer-ad { padding: 10px 16px; }
  .ad-feed-wrap { padding: 10px 16px; }
}
@media (max-width: 600px) {
  .ad-infeed { min-height: 160px; }
  .ad-infeed .ad-placeholder { min-height: 160px; }
  .sidebar-ad-wrap { display: none; }
}
.insight-next strong { margin-right: 6px; }

/* ── 메인 역동적 랭킹 피드 ───────────────────────────────────── */
.rank-feed { padding: 4px 0 60px; }

.rank-section { margin-bottom: 0; }
.rank-section + .rank-section { border-top: 1px solid var(--line); }

.rank-section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px 10px;
}
.rank-section-left { display: flex; align-items: center; gap: 10px; }
.rank-section-title { font-size: .98rem; font-weight: 800; }

/* 랭킹 섹션 태그 뱃지 */
.rank-tag {
  font-size: .64rem; font-weight: 800; letter-spacing: .07em;
  padding: 3px 10px; border-radius: 20px; white-space: nowrap;
}
.rank-tag-today      { background: #fee2e2; color: #dc2626; }
.rank-tag-week       { background: #e6faf3; color: #00976c; }
.rank-tag-month      { background: #e0f2fe; color: #0369a1; }
.rank-tag-revenue    { background: #fef3c7; color: #b45309; }
.rank-tag-views      { background: #ede9fe; color: #7c3aed; }
.rank-tag-conversion { background: #fce7f3; color: #be185d; }
.rank-tag-new        { background: #f0fdf4; color: #15803d; }

/* 화살표 버튼 */
.rank-arrows { display: flex; gap: 4px; }
.rank-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--bg);
  cursor: pointer; font-size: 1.2rem; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: border-color .15s, color .15s;
}
.rank-arrow:hover { border-color: var(--brand); color: var(--brand); }

/* 수평 스크롤 스트립 */
.rank-scroll {
  display: flex; gap: 14px;
  overflow-x: auto; overflow-y: visible;
  padding: 4px 28px 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rank-scroll::-webkit-scrollbar { display: none; }

/* 랭킹 카드 */
.rank-card {
  flex: 0 0 196px; border-radius: 12px;
  background: var(--bg2); border: 1px solid var(--line);
  overflow: hidden; scroll-snap-align: start;
  display: block; transition: transform .15s, border-color .15s;
  text-decoration: none;
}
.rank-card:hover { transform: translateY(-4px); border-color: var(--brand); }

/* 카드 미디어 */
.rank-card-media {
  position: relative; height: 140px; overflow: hidden;
  background: var(--bg3);
}
.rank-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rank-card-ph { height: 140px; display: flex; align-items: center; justify-content: center; }

/* 순위 번호 */
.rank-num {
  position: absolute; top: 7px; left: 9px;
  font-size: 1.5rem; font-weight: 900; line-height: 1;
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 6px rgba(0,0,0,.55);
}
.rank-num-1 {
  font-size: 2rem; color: #fbbf24;
  text-shadow: 0 2px 12px rgba(0,0,0,.6), 0 0 20px rgba(251,191,36,.4);
}
.rank-num-2 { font-size: 1.75rem; color: #e2e8f0; }
.rank-num-3 { font-size: 1.6rem; color: #fca5a5; }
.rank-num-rest { font-size: 1.3rem; opacity: .75; }

/* 카드 본문 */
.rank-card-body { padding: 10px 12px 12px; }
.rank-card-title {
  font-size: .82rem; font-weight: 700; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 6px; color: var(--text); word-break: keep-all;
}
.rank-card-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 4px;
}
.rank-card-views { font-size: .74rem; color: var(--muted); }
.rank-card-rating { font-size: .74rem; color: #f59e0b; font-weight: 700; }

@media (max-width: 640px) {
  .rank-section-header { padding: 14px 16px 8px; }
  .rank-scroll { padding: 4px 16px 16px; gap: 10px; }
  .rank-card { flex: 0 0 155px; }
  .rank-card-media, .rank-card-ph { height: 115px; }
  .rank-num   { font-size: 1.2rem; }
  .rank-num-1 { font-size: 1.6rem; }
  .rank-num-2 { font-size: 1.4rem; }
  .rank-num-3 { font-size: 1.3rem; }
  .rank-arrows { display: none; }
}

/* ══════════════════════════════════════════════
   미디어 슬라이드쇼 — 상세 페이지
══════════════════════════════════════════════ */
.pd3-slider-section { padding: 0; }
.ms-slider {
  position: relative; background: #000; border-radius: 12px;
  overflow: hidden; user-select: none;
}
.ms-slide { display: none; }
.ms-slide.active { display: block; }
.ms-img {
  width: 100%; max-height: 480px; object-fit: contain;
  display: block; background: #0a0a0a;
}
.ms-embed {
  position: relative; padding-bottom: 56.25%; height: 0;
}
.ms-embed iframe, .ms-embed video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: none;
}
.ms-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: #fff; font-size: .8rem; padding: 24px 14px 10px;
}
/* 화살표 */
.ms-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45); color: #fff;
  border: none; border-radius: 50%; width: 38px; height: 38px;
  font-size: 1.3rem; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s; z-index: 10;
}
.ms-arrow:hover { background: rgba(0,0,0,.7); }
.ms-prev { left: 10px; }
.ms-next { right: 10px; }
/* 도트 */
.ms-dot-row {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 10;
}
.ms-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.45); border: none; cursor: pointer;
  padding: 0; transition: background .15s, transform .15s;
}
.ms-dot.active { background: #fff; transform: scale(1.25); }

/* 로그인 유도 */
.pd3-login-nudge {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 18px; background: var(--bg2); border-radius: 10px;
  border: 1px dashed var(--line); margin-top: 10px;
  font-size: .88rem; color: var(--muted);
}

/* 모바일 CTA 라벨 */
.pd3-cta-label { font-size: .8rem; color: var(--muted); }

/* 레일 유사 아이디어 카드 */
.pd3-rc-views { font-size: .73rem; margin-top: 2px; }

/* 카드 좋아요 */
.pin-likes { font-size: .78rem; }

/* Unity Asset Store 스타일 — 상세 헤더 최대폭 */
@media (min-width: 1100px) {
  .pd3 { gap: 32px; }
  .pd3-left { max-width: 820px; }
}

@media (max-width: 760px) {
  .ms-arrow { width: 32px; height: 32px; font-size: 1.1rem; }
  .ms-img { max-height: 260px; }
}

/* ===== 상세 v3 Hero 밴드 ===== */
.pd3-page-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px 60px; }
.pd3-back { display: inline-block; margin: 14px 0 18px; font-size: .85rem; color: var(--muted); }
.pd3-back:hover { color: var(--brand); }

.pd-hero-band {
  display: grid; grid-template-columns: 360px 1fr; gap: 32px;
  align-items: flex-start; margin-bottom: 36px;
  padding: 28px; background: var(--bg2); border-radius: 18px;
  border: 1px solid var(--line);
}
.pd-hero-thumb {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 12px; display: block;
}
.pd-hero-ph { display: flex; align-items: center; justify-content: center; }
.pd-hero-right { display: flex; flex-direction: column; gap: 10px; }
.pd3-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 2px; }
.pd3-cat { font-size: .78rem; font-weight: 700; color: var(--brand); }
.pd3-title { font-size: 1.75rem; font-weight: 900; line-height: 1.22; margin: 0; color: var(--text); }
.pd3-lead { font-size: .95rem; color: var(--muted); margin: 0; line-height: 1.5; }
.pd3-statbar { display: flex; flex-wrap: wrap; gap: 16px; font-size: .85rem; color: var(--muted); }
.pd3-statbar b { color: var(--text); }
.pd3-stat-rating { display: flex; align-items: center; gap: 5px; }
.pd3-stat-rating .stars { color: #f59e0b; letter-spacing: -2px; }
.pd3-creator {
  display: flex; align-items: center; gap: 10px; margin-top: 6px;
  padding: 10px 14px; background: var(--bg3); border-radius: 10px;
  text-decoration: none; color: var(--text);
  border: 1px solid var(--line); transition: border-color .18s;
}
.pd3-creator:hover { border-color: var(--brand); }
.pd3-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand);
  color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.pd3-avatar-sm { width: 30px; height: 30px; font-size: .9rem; }
.pd3-creator-info { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.pd3-creator-info b { font-size: .92rem; }
.pd3-channel-link { font-size: .78rem; color: var(--brand); margin-left: auto; }
.pd-tag { font-size: .7rem; color: var(--brand); background: rgba(0,200,150,.1); padding: 2px 8px; border-radius: 20px; display: inline; }
.pd3-creator-card {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  text-decoration: none; color: var(--text); margin-bottom: 12px;
  transition: border-color .18s;
}
.pd3-creator-card:hover { border-color: var(--brand); }

/* ===== 플랫폼 배지 ===== */
.pf-badge {
  display: inline-flex; align-items: center;
  font-size: .74rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  background: rgba(0,200,150,.12); color: var(--brand);
  border: 1px solid rgba(0,200,150,.3);
}

/* ===== 이런 분께 추천해요 ===== */
.pd3-rec-list {
  display: flex; flex-direction: column; gap: 6px;
  padding: 0 0 0 4px; margin: 0;
}
.pd3-rec-list li {
  list-style: none; padding-left: 20px; position: relative;
  font-size: .9rem; color: var(--text); line-height: 1.5;
}
.pd3-rec-list li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--brand); font-weight: 700;
}

/* ===== 좌우 페어 (결과물 | 프롬프트) ===== */
.pd-step-pair {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; margin-bottom: 28px;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.pd-step-pair[data-single="true"] { grid-template-columns: 1fr 1fr; }
.pd-step-no {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg2); padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.step-badge {
  font-size: .75rem; font-weight: 800; letter-spacing: .04em;
  background: var(--brand); color: #fff; padding: 3px 10px; border-radius: 20px;
}
.step-platform { font-size: .82rem; color: var(--muted); font-weight: 600; }
.pd-step-result {
  border-right: 1px solid var(--line); background: var(--bg2);
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.pd-step-result img {
  width: 100%; border-radius: 8px; object-fit: cover; display: block;
}
.pd-step-result-ph {
  min-height: 160px; display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--line); border-radius: 10px; color: var(--muted);
}
.pd-step-desc { font-size: .84rem; color: var(--muted); margin: 0; line-height: 1.5; }
.pd-step-prompt {
  padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 8px;
  white-space: pre-wrap; font-family: 'JetBrains Mono', 'Noto Sans KR', monospace;
  font-size: .84rem; line-height: 1.65; color: var(--text);
  overflow-y: auto; max-height: 420px;
}
.pd3-copy-btn {
  align-self: flex-end; font-size: .74rem; font-weight: 700;
  padding: 4px 12px; border-radius: 6px; border: 1px solid var(--brand);
  background: none; color: var(--brand); cursor: pointer; flex-shrink: 0;
  transition: background .15s, color .15s;
}
.pd3-copy-btn:hover { background: var(--brand); color: #fff; }
.pd3-body-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.pd3-preview-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.pd3-preview-wrap { position: relative; }
.pd3-sample-copy {
  font-size: .78rem; font-weight: 700; padding: 5px 14px;
  border-radius: 6px; border: 1px solid var(--brand);
  background: none; color: var(--brand); cursor: pointer;
  transition: background .15s, color .15s;
}
.pd3-sample-copy:hover { background: var(--brand); color: #fff; }

/* ===== 필요 도구 섹션 ===== */
.pd-dep-list { display: flex; flex-direction: column; gap: 12px; }
.pd-dep-item {
  display: flex; gap: 14px; padding: 14px; background: var(--bg2);
  border-radius: 10px; border: 1px solid var(--line); align-items: flex-start;
}
.pd-dep-icon {
  width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 800; letter-spacing: -.02em;
}
.ct-icon-dep  { background: rgba(99,102,241,.15); color: #6366f1; }
.ct-icon-mcp  { background: rgba(245,158,11,.15); color: #d97706; }
.ct-icon-step { background: rgba(0,200,150,.15); color: var(--brand); }
.pd-dep-body { flex: 1; }
.pd-dep-name { font-weight: 700; font-size: .92rem; margin-bottom: 2px; }
.pd-dep-role { font-size: .82rem; margin-bottom: 4px; }
.ct-ext-badge {
  display: inline; font-size: .68rem; font-weight: 700;
  padding: 2px 7px; border-radius: 4px;
  background: var(--bg3); color: var(--muted);
  border: 1px solid var(--line); margin-left: 5px;
}
.ct-btn-link {
  display: inline-block; font-size: .8rem; font-weight: 600;
  color: var(--brand); margin-top: 4px;
}
.ct-item-desc { font-size: .82rem; color: var(--muted); margin: 4px 0 0; line-height: 1.5; }

/* ===== 호환성 댓글 ===== */
.pd-compat-section {}
.compat-summary-badge {
  display: inline; font-size: .8rem; font-weight: 700;
  background: rgba(0,200,150,.12); color: var(--brand);
  padding: 3px 10px; border-radius: 20px; margin-left: 8px;
}
.compat-form {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; background: var(--bg2); border-radius: 12px;
  border: 1px solid var(--line); margin-bottom: 16px;
}
.compat-form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.compat-ver { max-width: 140px; }
.compat-flag-group { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.compat-flag { display: flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 600; cursor: pointer; }
.compat-flag input[type=radio] { accent-color: var(--brand); }
.compat-flag-ok   { color: #16a34a; }
.compat-flag-partial { color: #d97706; }
.compat-flag-no   { color: #dc2626; }

.compat-list { display: flex; flex-direction: column; gap: 12px; }
.compat-item {
  padding: 14px 16px; background: var(--bg2);
  border-radius: 10px; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.compat-flag-badge {
  display: inline-flex; align-items: center;
  font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 20px;
  align-self: flex-start;
}
.compat-ok      { background: #dcfce7; color: #16a34a; }
.compat-no      { background: #fee2e2; color: #dc2626; }
.compat-partial { background: #fef3c7; color: #d97706; }
.compat-tool strong { font-size: .92rem; }
.compat-content { font-size: .85rem; color: var(--text); margin: 2px 0 0; line-height: 1.5; }
.compat-meta {
  display: flex; align-items: center; gap: 12px; font-size: .78rem; flex-wrap: wrap;
}
.compat-like-btn {
  border: none; background: none; cursor: pointer; font-size: .8rem;
  color: var(--muted); padding: 2px 8px; border-radius: 6px;
  border: 1px solid var(--line); transition: border-color .15s, color .15s;
}
.compat-like-btn:hover, .compat-like-btn.liked { border-color: var(--brand); color: var(--brand); }
.inline-form { display: inline; margin: 0; padding: 0; background: none; }

/* ===== 액션 카드 (레일) ===== */
.pd3-action-card {
  padding: 20px; background: var(--bg2); border-radius: 14px;
  border: 1px solid var(--line); margin-bottom: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.pd3-action-label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.pd3-action-open-badge {
  font-size: .8rem; font-weight: 700; color: #16a34a;
  background: #dcfce7; padding: 4px 12px; border-radius: 20px; align-self: flex-start;
}
.pd3-edit-btn, .pd3-access-btn {
  display: block; text-align: center; padding: 11px; font-size: .9rem; border-radius: 8px;
}
.pd3-action-stats { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pd3-astat {
  flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 0;
  border-right: 1px solid var(--line);
}
.pd3-astat:last-child { border-right: none; }
.pd3-astat-n { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.pd3-astat-l { font-size: .68rem; color: var(--muted); }
.pd3-buy-qna { font-size: .8rem; color: var(--brand); text-decoration: none; }
.pd3-buy-qna:hover { text-decoration: underline; }

/* ===== 레일 필요도구 요약 ===== */
.pd-rail-deps { padding: 14px; background: var(--bg2); border-radius: 12px; border: 1px solid var(--line); margin-bottom: 14px; }
.pd-rail-dep-item { display: flex; flex-direction: column; gap: 1px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.pd-rail-dep-item:last-child { border-bottom: none; }
.pd-rail-platforms { padding: 14px; background: var(--bg2); border-radius: 12px; border: 1px solid var(--line); margin-bottom: 14px; }
.pd-platform-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pd3-rail-title { font-size: .78rem; font-weight: 800; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }

/* ===== 상세 Hero 반응형 ===== */
@media (max-width: 880px) {
  .pd-hero-band { grid-template-columns: 1fr; }
  .pd-hero-thumb { aspect-ratio: 16/9; max-height: 280px; }
  .pd3-title { font-size: 1.35rem; }
  .pd-step-pair { grid-template-columns: 1fr; }
  .pd-step-result { border-right: none; border-bottom: 1px solid var(--line); }
}
