/* creators.css — 크리에이터 도감 · 프로필 · 파트너 (S-CREATORS-UI, UI_OVERHAUL_SPEC §6 · §9-5).
   portal.css 토큰(--bg --card --line …)을 쓰고, 없을 때를 대비해 같은 값의 기본값을 둔다. 다크 전용 · 대비 4.5:1 이상.
   외부 이미지 0(아바타는 이니셜 + 그라디언트), 브랜드 로고 0(툴 아이콘은 assets/tools/<id>.svg 모노그램, 없으면 이니셜). */

.cx {
  --cx-bg: var(--bg, #07090E);
  --cx-bg2: var(--bg-2, #0B0F17);
  --cx-card: var(--card, rgba(17, 24, 39, .75));
  --cx-line: var(--line, rgba(255, 255, 255, .08));
  --cx-line2: rgba(255, 255, 255, .14);
  --cx-line-hi: var(--line-hi, rgba(16, 185, 129, .45));
  --cx-text: var(--text, #E6EDF3);
  --cx-text2: var(--text-2, #9AA4B2);
  --cx-muted: var(--muted, #6B7686);
  --cx-emerald: var(--emerald, #10B981);
  --cx-cyan: var(--cyan, #22D3EE);
  --cx-indigo: var(--indigo, #6366F1);
  --cx-amber: var(--amber, #F59E0B);
  --cx-radius: var(--radius, 16px);
  --cx-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--cx-text);
  min-width: 0;
}
.cx *, .cx *::before, .cx *::after { box-sizing: border-box; }
.cx a { color: inherit; }
.cx .num { font-family: var(--cx-mono); font-variant-numeric: tabular-nums; }
.cx h2 { font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; margin: 0 0 12px; color: #fff; }
.cx h3 { margin: 0; }
.cx .note, .cx .cnote { color: var(--cx-text2); font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.cx > section + section, .cx > .csec + .csec { margin-top: 48px; }
.cx [hidden] { display: none !important; }
.cx :focus-visible { outline: 2px solid var(--cx-cyan); outline-offset: 2px; }

/* ---------------------------------------------------------------- 페이지 머리(h1·리드·경로) */
.cpage-head.cx { margin: 0 0 28px; }
.cpage-head.cx h1 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: #fff; overflow-wrap: anywhere; }
.cpage-head.cx .cpage-lead { margin: 0; max-width: 760px; color: var(--cx-text2); font-size: 15px; line-height: 1.65; }
.cpage-head.cx .cpage-crumb { margin: 0 0 8px; font-size: 13px; color: var(--cx-text2); }
.cpage-head.cx .cpage-crumb a { color: var(--cx-cyan); text-decoration: none; }

/* ---------------------------------------------------------------- 아이콘 */
.cx .ico { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cx .tico {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 20px; height: 20px; border-radius: 6px; overflow: hidden;
  background: linear-gradient(135deg, var(--cx-emerald), var(--cx-indigo));
}
.cx .tico::before { content: attr(data-initial); color: #fff; font: 800 10px/1 Inter, system-ui, sans-serif; letter-spacing: -.02em; }
.cx .tico .tico-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cx .tico.is-missing .tico-img { display: none; }
.cx .tico--xs { width: 16px; height: 16px; border-radius: 5px; }
.cx .tico--xs::before { font-size: 8px; }

/* ---------------------------------------------------------------- 버튼 (portal.css 와 같은 규격, 범위 한정) */
.cx .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s, filter .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.cx .btn--ghost { background: transparent; border-color: var(--cx-line2); color: var(--cx-text); }
.cx .btn--ghost:hover { border-color: var(--cx-line-hi); background: rgba(16, 185, 129, .08); color: #fff; }
.cx .btn--cta {
  min-height: 48px; padding: 0 20px; color: #fff; font-weight: 700; border: 0;
  background: linear-gradient(135deg, #10B981 0%, #22D3EE 50%, #6366F1 100%);
  box-shadow: 0 8px 28px -12px rgba(34, 211, 238, .55);
}
.cx .btn--cta:hover { filter: brightness(1.08); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 12px 36px -10px rgba(34, 211, 238, .7); }
.cx .btn--sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.cx .btn[data-state="done"] { border-color: var(--cx-line-hi); color: var(--cx-emerald); }
.cx .cta-disc { margin: 0 0 8px; font-size: 12px; line-height: 1.5; color: var(--cx-text2); }
.cx .cta-tag { display: inline-block; margin-left: 4px; padding: 0 6px; border: 1px solid var(--cx-line2); border-radius: 6px; font-size: 11px; color: var(--cx-text2); }
.cx .cta-block { display: inline-grid; grid-template-columns: auto auto; justify-content: start; align-items: center; column-gap: 10px; max-width: 100%; }
.cx .cta-block > .cta-legal, .cx .cta-block > .cta-disc, .cx .cta-block > .cta-tool { grid-column: 1 / -1; }
.cx .cta-tool { margin-top: 6px; font-size: 12px; color: var(--cx-text2); }
.cx .cta-legal { margin: 0 0 4px; font-size: 12px; line-height: 1.5; color: var(--cx-text2); max-width: 560px; }
.cx .cta-block > .cta-tag { margin: 0; justify-self: start; }
.cx .no-cta { margin: 0; }

/* ---------------------------------------------------------------- 배지 */
.cx .badge-estimated, .cx .cest {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; margin-left: 6px; vertical-align: middle;
  border: 1px dashed rgba(245, 158, 11, .65); border-radius: 999px; color: #FBBF24; font-size: 12px; font-weight: 600; letter-spacing: 0;
}
.cx .cverified {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px;
  background: rgba(16, 185, 129, .14); color: #34D399; font-size: 12px; font-weight: 700;
}

/* ---------------------------------------------------------------- 도감 머리 · 필터 칩 */
.cx .chead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin: 0 0 16px; }
.cx .chead__meta { margin: 0; color: var(--cx-text2); font-size: 14px; }
.cx .chead__meta strong { color: var(--cx-text); font-weight: 600; }
.cx .chead__sort { margin: 0; color: var(--cx-text2); font-size: 12px; }
.cx .lg { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; margin-left: 4px; border-radius: 999px; font-size: 12px; }
.cx .lg--solid { border: 1px solid rgba(16, 185, 129, .55); color: var(--cx-text); }
.cx .lg--dash { border: 1px dashed rgba(245, 158, 11, .65); color: #FBBF24; }
.cx .cfilters {
  position: sticky; top: 72px; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
  margin: 0 0 24px; padding: 12px 16px;
  background: rgba(11, 15, 23, .82); border: 1px solid var(--cx-line); border-radius: 14px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.cx .cfilter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.cx .cfilter-label { font-size: 12px; font-weight: 600; color: var(--cx-text2); margin-right: 2px; }
.cx .chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--cx-line2); background: rgba(255, 255, 255, .03);
  color: var(--cx-text2); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.cx .chip:hover { border-color: var(--cx-line-hi); color: var(--cx-text); }
.cx .chip.is-on, .cx .chip[aria-pressed="true"] { background: rgba(16, 185, 129, .16); border-color: var(--cx-line-hi); color: #fff; }
.cx .chip__n { font-size: 12px; color: var(--cx-text2); }
.cx .chip.is-on .chip__n { color: #A7F3D0; }
.cx .cfilter-status { margin: 0 0 0 auto; font-size: 13px; color: var(--cx-text2); }

/* ---------------------------------------------------------------- ProSettings 형 카드 그리드 */
.cx .cgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.cx .cgrid > li { min-width: 0; }
.cx .ccard {
  position: relative; height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  padding: 24px 16px 16px; border-radius: var(--cx-radius);
  background: var(--cx-card); border: 1px solid var(--cx-line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cx .ccard:hover, .cx .ccard:focus-within {
  border-color: var(--cx-line-hi); transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--cx-line-hi), 0 8px 40px -12px rgba(16, 185, 129, .35);
}
.cx .cavatar {
  position: relative; display: grid; place-items: center; flex: none;
  width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .22), transparent 55%),
              linear-gradient(135deg, hsl(var(--h1, 160) 72% 42%), hsl(var(--h2, 230) 70% 46%));
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .04), 0 0 0 1px rgba(255, 255, 255, .12), 0 12px 32px -14px rgba(16, 185, 129, .6);
  color: #fff; font: 800 32px/1 Inter, system-ui, sans-serif; letter-spacing: -.02em; text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  user-select: none;
}
.cx .cplat {
  position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px;
  background: #0B0F17; border: 1px solid var(--cx-line2); color: var(--cx-text); font: 600 11px/1 Inter, system-ui, sans-serif;
  text-shadow: none; white-space: nowrap;
}
.cx .cplat .ico { width: 12px; height: 12px; }
.cx .ccard__id { margin-top: 6px; min-width: 0; max-width: 100%; }
.cx .ccard__name { font-size: 18px; line-height: 1.3; font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.cx .ccard__name a { text-decoration: none; }
.cx .ccard__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* 카드 전체 클릭 → 프로필 */
.cx .ccard__handle { margin: 2px 0 0; font-family: var(--cx-mono); font-size: 12px; color: var(--cx-text2); overflow-wrap: anywhere; }
.cx .ccard__stats { display: flex; justify-content: center; gap: 4px 20px; margin: 0; width: 100%; position: relative; z-index: 1; }
.cx .ccard__stats div { min-width: 0; }
.cx .ccard__stats dt { font-size: 11px; color: var(--cx-text2); letter-spacing: .02em; }
.cx .ccard__stats dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; color: #fff; cursor: help; }
.cx .ctags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.cx .ctag { padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .05); color: var(--cx-text2); font-size: 12px; line-height: 1.5; }
.cx .ctools { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; position: relative; z-index: 1; }
.cx .ctools__empty { font-size: 12px; color: var(--cx-text2); }
.cx .ctool {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 28px; padding: 0 10px 0 4px;
  border-radius: 999px; border: 1px solid rgba(16, 185, 129, .5); background: rgba(16, 185, 129, .06);
  color: var(--cx-text); font-size: 12px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.cx a.ctool:hover { border-color: var(--cx-emerald); background: rgba(16, 185, 129, .14); }
.cx .ctool__name { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cx .ctool--credited { border-style: solid; border-color: rgba(16, 185, 129, .5); }
.cx .ctool--estimated { border-style: dashed; border-color: rgba(245, 158, 11, .65); background: rgba(245, 158, 11, .06); }
.cx a.ctool--estimated:hover { border-color: var(--cx-amber); background: rgba(245, 158, 11, .12); }
.cx .ctool--unmapped { border-color: var(--cx-line2); background: rgba(255, 255, 255, .03); }
.cx .ctool__est { font-size: 11px; font-weight: 700; color: #FBBF24; }
.cx .ctool-none { color: var(--cx-text2); font-size: 13px; line-height: 28px; }
.cx .ccard__actions { margin-top: auto; display: grid; grid-template-columns: 1fr; gap: 8px; width: 100%; position: relative; z-index: 1; }
.cx .ccopy-src {
  width: 100%; min-height: 160px; padding: 10px; border-radius: 10px; border: 1px solid var(--cx-line-hi);
  background: #05070B; color: var(--cx-text); font: 12px/1.5 var(--cx-mono); position: relative; z-index: 1;
}
.cx .cmore-row { display: flex; justify-content: center; margin-top: 24px; }
.cx .cfoot { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--cx-line); color: var(--cx-text2); font-size: 13px; line-height: 1.6; }
.cx .cfoot a { color: var(--cx-cyan); }

/* ---------------------------------------------------------------- 프로필: 상단 큰 카드 */
.cx .cprofile-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center;
  padding: 32px; border-radius: 20px; border: 1px solid var(--cx-line);
  background: radial-gradient(ellipse 80% 60% at 10% -20%, rgba(16, 185, 129, .16), transparent 60%),
              radial-gradient(ellipse 60% 50% at 100% 0%, rgba(99, 102, 241, .14), transparent 60%),
              var(--cx-card);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.cx .cprofile-hero .cavatar { width: 128px; height: 128px; font-size: 44px; }
.cx .cprofile-hero__main { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cx .cprofile-hero__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cx .cprofile-hero__handle { font-family: var(--cx-mono); font-size: 14px; color: var(--cx-text2); }
.cx .cprofile-hero__stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.cx .cprofile-hero__stats dt { font-size: 12px; color: var(--cx-text2); }
.cx .cprofile-hero__stats dd { margin: 2px 0 0; font-size: 26px; font-weight: 700; color: #fff; }
.cx .cprofile-hero__meta { margin: 0; font-size: 12px; color: var(--cx-text2); }
.cx .cprofile-hero__meta a { color: var(--cx-cyan); }
.cx .cprofile-hero .ctags, .cx .cprofile-hero .ctools { justify-content: flex-start; }
.cx .cprofile-hero__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------------------------------------------------------- 프로필: 공식 임베드 */
.cx .posts .post { margin: 0 0 16px; }
.cx .embed-box {
  max-width: 600px; margin: 0 auto; padding: 8px; border-radius: 14px; overflow: hidden;
  background: rgba(255, 255, 255, .02); border: 1px solid var(--cx-line);
}
.cx .embed-box iframe { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; min-height: 200px; border: 0; border-radius: 10px; }
.cx .embed-box .twitter-tweet { margin: 0 auto !important; }
.cx .embed-caption { max-width: 600px; margin: 8px auto 0; font-size: 12px; color: var(--cx-text2); text-align: center; }
.cx .embed-caption a { color: var(--cx-cyan); }
.cx .embed-fallback { padding: 20px; text-align: center; }
.cx .embed-fallback-title { margin: 0 0 4px; font-weight: 700; }
.cx .embed-fallback-why { margin: 0 0 12px; font-size: 13px; color: var(--cx-text2); }
.cx .embed-fallback-link { color: var(--cx-cyan); font-weight: 600; }
.cx .cempty { padding: 20px; border: 1px dashed var(--cx-line2); border-radius: 14px; color: var(--cx-text2); font-size: 14px; text-align: center; }

/* ---------------------------------------------------------------- 프로필: 8-Beat 4칸 타임라인 */
.cx .beat-timeline {
  list-style: none; margin: 0 0 12px; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--cx-line); border-radius: 16px; overflow: hidden; background: var(--cx-card);
}
.cx .beat { position: relative; padding: 20px 16px 16px; min-width: 0; }
.cx .beat + .beat { border-left: 1px solid var(--cx-line); }
.cx .beat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--beat-c, var(--cx-emerald)); }
.cx .beat:nth-child(1) { --beat-c: #10B981; }
.cx .beat:nth-child(2) { --beat-c: #22D3EE; }
.cx .beat:nth-child(3) { --beat-c: #6366F1; }
.cx .beat:nth-child(4) { --beat-c: #A78BFA; }
.cx .beat__t { display: inline-block; font-size: 12px; font-weight: 700; color: var(--beat-c); }
.cx .beat__goal { margin: 6px 0 12px; font-size: 15px; font-weight: 700; line-height: 1.4; color: #fff; }
.cx .beat dl { margin: 0; display: grid; gap: 8px; }
.cx .beat dt { font-size: 11px; color: var(--cx-text2); letter-spacing: .02em; }
.cx .beat dd { margin: 1px 0 0; font-size: 13px; line-height: 1.45; color: var(--cx-text); }
.cx .beats-more { margin-top: 8px; }
.cx .beats-more summary { cursor: pointer; color: var(--cx-text2); font-size: 13px; }
.cx .beats-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.cx .beats-table th, .cx .beats-table td { padding: 8px 10px; border-bottom: 1px solid var(--cx-line); text-align: left; vertical-align: top; }
.cx .beats-table th { color: var(--cx-text2); font-weight: 600; font-size: 12px; }
.cx .table-scroll { max-width: 100%; overflow-x: auto; }

/* ---------------------------------------------------------------- 프로필: 툴 스택 2칸 · 원가 */
.cx .stack-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cx .stack-col { padding: 20px; border-radius: 16px; background: var(--cx-card); border: 1px solid rgba(16, 185, 129, .4); min-width: 0; }
.cx .stack-col.stack-estimated { border-style: dashed; border-color: rgba(245, 158, 11, .55); }
.cx .stack-col h3 { font-size: 15px; font-weight: 700; margin: 0 0 12px; color: #fff; display: flex; align-items: center; gap: 6px; }
.cx .stack-col ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cx .stack-col li { display: inline-flex; }
.cx .stack-item { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 6px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--cx-line2); text-decoration: none; font-size: 14px; font-weight: 600; }
.cx a.stack-item:hover { border-color: var(--cx-line-hi); }
.cx .stack-item .tico { width: 22px; height: 22px; }
.cx .stack-col .src { margin: 0; font-size: 12px; color: var(--cx-text2); line-height: 1.5; }
.cx .stack-col .src a { color: var(--cx-cyan); }
.cx .cost-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 24px; border-radius: 16px;
  background: radial-gradient(ellipse 70% 80% at 0% 0%, rgba(16, 185, 129, .12), transparent 60%), var(--cx-card);
  border: 1px solid var(--cx-line);
}
.cx .cost-big__label { margin: 0; font-size: 12px; color: var(--cx-text2); }
.cx .cost-big__value { margin: 4px 0 0; font: 800 40px/1.1 var(--cx-mono); color: #fff; letter-spacing: -.02em; }
.cx .cost-big__sub { margin: 6px 0 0; font-size: 13px; color: var(--cx-text2); }
.cx .cost-big__tool { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 600; }
.cx .cost-big__tool .tico { width: 28px; height: 28px; border-radius: 8px; }
.cx .cost-facts { margin: 0; display: grid; gap: 10px; }
.cx .cost-facts div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; font-size: 13px; }
.cx .cost-facts dt { color: var(--cx-text2); }
.cx .cost-facts dd { margin: 0; color: var(--cx-text); overflow-wrap: anywhere; }
.cx .cost-facts a { color: var(--cx-cyan); }
.cx .actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px;
  border-radius: 16px; border: 1px solid var(--cx-line); background: var(--cx-card); }

/* ---------------------------------------------------------------- 폼 (클레임 · 파트너 · 교구 링크) */
.cx form { display: grid; gap: 14px; max-width: 560px; }
.cx form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--cx-text); }
.cx input[type="email"], .cx input[type="text"], .cx input[type="url"], .cx textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--cx-line2); color: var(--cx-text);
  font: inherit; font-size: 14px; font-weight: 400;
}
.cx textarea { min-height: 96px; resize: vertical; }
.cx input:focus, .cx textarea:focus { outline: none; border-color: var(--cx-emerald); box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
.cx form label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; line-height: 1.5; color: var(--cx-text2); }
.cx form label.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--cx-emerald); }
.cx form label.check a { color: var(--cx-cyan); }
.cx form fieldset { margin: 0; padding: 12px 14px; border: 1px solid var(--cx-line); border-radius: 12px; display: grid; gap: 8px; }
.cx form legend { padding: 0 6px; font-size: 13px; font-weight: 600; color: var(--cx-text); }
.cx form button[type="submit"] { justify-self: start; }
.cx form[data-state="pending"] button[type="submit"] { opacity: .6; pointer-events: none; }
.cx .req { color: #FBBF24; font-weight: 700; }
.cx .claim { padding: 24px; border-radius: 16px; border: 1px solid var(--cx-line); background: rgba(255, 255, 255, .02); }
.cx .claim p { color: var(--cx-text2); font-size: 14px; line-height: 1.6; }

/* ---------------------------------------------------------------- 파트너 */
.cx .psteps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; counter-reset: none; }
.cx .psteps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; padding: 18px; border-radius: 16px; background: var(--cx-card); border: 1px solid var(--cx-line); }
.cx .psteps__n { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #10B981, #6366F1); color: #fff; font: 800 18px/1 var(--cx-mono); }
.cx .psteps strong { color: #fff; font-size: 15px; }
.cx .psteps p { margin: 0; color: var(--cx-text2); font-size: 13px; line-height: 1.6; }
.cx .pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cx .pcard {
  display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--cx-radius);
  background: var(--cx-card); border: 1px solid var(--cx-line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: border-color .2s, box-shadow .2s; min-width: 0;
}
.cx .pcard:hover { border-color: var(--cx-line-hi); box-shadow: 0 0 0 1px var(--cx-line-hi), 0 8px 40px -12px rgba(16, 185, 129, .35); }
.cx .pcard__head { display: flex; align-items: center; gap: 12px; }
.cx .pcard__head .tico { width: 40px; height: 40px; border-radius: 10px; }
.cx .pcard__head .tico::before { font-size: 15px; }
.cx .pcard__head h3 { font-size: 18px; font-weight: 700; color: #fff; }
.cx .pcard__head h3 a { text-decoration: none; }
.cx .pcard__facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cx .pcard__facts dt { font-size: 11px; color: var(--cx-text2); }
.cx .pcard__facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--cx-text); line-height: 1.4; }
.cx .pcard__facts .pbig { font: 800 24px/1.1 var(--cx-mono); color: #fff; }
.cx .pcard .tmeta { margin: 0; font-size: 12px; color: var(--cx-text2); }
.cx .pcard .tmeta a { color: var(--cx-cyan); }
.cx .pcard .btn { margin-top: auto; }
.cx .pchip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.cx .pchip--ok { background: rgba(16, 185, 129, .14); color: #34D399; }
.cx .ptable { margin-top: 16px; }
.cx .ptable summary { cursor: pointer; color: var(--cx-text2); font-size: 13px; }
.cx .programs-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.cx .programs-table th, .cx .programs-table td { padding: 8px 10px; border-bottom: 1px solid var(--cx-line); text-align: left; vertical-align: top; }
.cx .programs-table th { color: var(--cx-text2); font-weight: 600; font-size: 12px; }
.cx .programs-table a { color: var(--cx-cyan); }
.cx .other-tools { padding: 24px; border-radius: 16px; border: 1px solid var(--cx-line); background: rgba(255, 255, 255, .02); }
.cx .other-tools p { color: var(--cx-text2); font-size: 14px; line-height: 1.7; margin: 0 0 10px; }
.cx .other-tools strong { color: var(--cx-text); }
.cx .other-tools a { color: var(--cx-cyan); }
.cx .pdual { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cx .pform-card { padding: 24px; border-radius: 20px; border: 1px solid var(--cx-line); background: var(--cx-card); min-width: 0; }
.cx .pform-card--edu {
  border-color: rgba(99, 102, 241, .45);
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(99, 102, 241, .16), transparent 60%), var(--cx-card);
}
.cx .pform-card__kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 12px; font-weight: 700; color: var(--cx-cyan); letter-spacing: .02em; }
.cx .pform-card--edu .pform-card__kicker { color: #A5B4FC; }
.cx .pform-card ul.pbenefits { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.cx .pform-card ul.pbenefits li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.55; color: var(--cx-text); }
.cx .pform-card ul.pbenefits li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--cx-emerald); font-weight: 800; }
.cx .pform-card p { color: var(--cx-text2); font-size: 14px; line-height: 1.6; }
.cx .contact { margin-top: 24px; font-size: 13px; color: var(--cx-text2); }
.cx .contact a { color: var(--cx-cyan); }

/* ---------------------------------------------------------------- 반응형 */
@media (max-width: 1199px) {
  .cx .cgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cx .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx .beat-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx .beat:nth-child(3) { border-left: 0; }
  .cx .beat:nth-child(n+3) { border-top: 1px solid var(--cx-line); }
}
@media (max-width: 899px) {
  .cx .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .cx .stack-cols, .cx .cost-card, .cx .psteps, .cx .pdual { grid-template-columns: 1fr; }
  .cx .cprofile-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 24px 16px; }
  .cx .cprofile-hero__name, .cx .cprofile-hero__stats, .cx .cprofile-hero__actions,
  .cx .cprofile-hero .ctags, .cx .cprofile-hero .ctools { justify-content: center; }
  .cx .cfilters { position: static; }
}
@media (max-width: 767px) {
  .cx .pgrid { grid-template-columns: 1fr; }
  .cx .ccard { padding: 20px 10px 12px; gap: 10px; }
  .cx .cavatar { width: 72px; height: 72px; font-size: 24px; }
  .cx .ccard__name { font-size: 16px; }
  .cx .ccard__stats dd { font-size: 17px; }
  .cx .ccard__actions { grid-template-columns: 1fr; }
  .cx .cfilter-status { margin-left: 0; width: 100%; }
  .cx .cost-big__value { font-size: 32px; }
  .cx .cost-facts div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 559px) {
  .cx .beat-timeline { grid-template-columns: 1fr; }
  .cx .beat + .beat { border-left: 0; border-top: 1px solid var(--cx-line); }
  .cx .beat::before { right: auto; bottom: 0; width: 4px; height: auto; }
  .cx .beat { padding: 14px 14px 14px 20px; }
}
@media (max-width: 359px) {
  .cx .cgrid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cx *, .cx *::before, .cx *::after { transition: none !important; animation: none !important; }
  .cx .ccard:hover, .cx .ccard:focus-within { transform: none; }
}
