/* ═══════════════════════════════════════════════════════════════
 * blocks/intro_card/style.css — 소개표 블록
 *  1) 카드 공통  2) 스티커 look  3) 몽글 look  4) Pair (카드 / 버블)  5) 관리자 바  6) 편집창
 *
 * 색은 기본적으로 사이트 테마 변수(--accent, --accent-2, --paper, --ink …)에서 파생해서
 * 디자인 설정의 색상 프리셋을 바꾸면 같이 바뀌어요. (편집창에서 이 카드만 다른 프리셋/직접 지정도 가능)
 *
 *   --ic-k   색 진하기 0~100 (편집창 슬라이더). 배경 농도·그림자·윤곽선 진하기를 한 번에 조절
 *   --ic-on  포인트 색(a) 위에 올리는 글자색 — PHP/JS 가 대비를 계산해서 흰색/짙은색 중 선택
 *   --ic-at  글자로 쓰는 포인트 색 — 옅은 포인트 색도 읽히도록 ink 쪽으로 살짝 섞음
 * ═══════════════════════════════════════════════════════════════ */

.ic-wrap { position: relative; flex: 1 1 100%; min-width: 0; }

/* ─── 관리자 바 ─── */
.ic-admin-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.ic-vsw { display: inline-flex; gap: 2px; padding: 3px; margin: 0 auto 0 0; background: var(--hair-soft); border-radius: 999px; }
.ic-vsw button {
  border: none; background: none; padding: 6px 13px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--ink-mute); cursor: pointer; font-family: inherit; transition: all .15s;
}
.ic-vsw button:hover { color: var(--ink); }
.ic-vsw button.on { background: var(--paper); color: color-mix(in srgb, var(--accent) 55%, var(--ink)); box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 14%, transparent); }
.ic-edit-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: none; border-radius: 999px;
  background: var(--accent); color: var(--paper); font-size: 12px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.ic-flash { padding: 9px 14px; margin-bottom: 10px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.ic-flash.success { background: color-mix(in srgb, var(--accent) 14%, transparent); color: color-mix(in srgb, var(--accent) 55%, var(--ink)); }
.ic-flash.error { background: color-mix(in srgb, #c33 12%, transparent); color: #c33; border: 1px solid color-mix(in srgb, #c33 35%, transparent); }

/* ═══ 1) 카드 공통 ═══ */
.ic-card {
  --ic-a: var(--accent);
  --ic-b: var(--accent-2, var(--accent));
  --ic-k: 50;
  --ic-on: #fff;
  --ic-onb: #fff;
  --ic-at: color-mix(in srgb, var(--ic-a) 48%, var(--ink));      /* 글자용 포인트1 */
  --ic-bt: color-mix(in srgb, var(--ic-b) 48%, var(--ink));      /* 글자용 포인트2 */
  --ic-line: color-mix(in srgb, var(--ink) calc(14% + var(--ic-k) * .4%), var(--ic-a));   /* 스티커 윤곽선 (검정 대신 포인트 색 쪽) */
  --ic-sh: color-mix(in srgb, var(--ic-a) calc(30% + var(--ic-k) * .55%), var(--paper));  /* 스티커 그림자 */
  --ic-tint: color-mix(in srgb, var(--ic-a) calc(var(--ic-k) * .24%), var(--paper));
  --ic-tint2: color-mix(in srgb, var(--ic-a) calc(var(--ic-k) * .5%), var(--paper));
  --ic-btint: color-mix(in srgb, var(--ic-b) calc(var(--ic-k) * .42%), var(--paper));
  container-type: inline-size;
  position: relative; box-sizing: border-box; color: var(--ink);
  font-size: 15px; line-height: 1.55;
}
.ic-card.ic-tone-accent2 { --ic-a: var(--accent-2, var(--accent)); --ic-b: var(--accent); }
.ic-card.ic-own { background: var(--bg); border-radius: 30px; padding: 18px 12px; }   /* 이 카드만 다른 프리셋을 쓸 때 바탕 패널 */
.ic-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; padding: 6px 6px 8px; }
.ic-card [class^="ic-"], .ic-card [class*=" ic-"] { box-sizing: border-box; }

/* 헤더 */
.ic-head { display: flex; align-items: center; gap: 22px; padding-left: 4px; }
.ic-ava { position: relative; flex: none; width: 92px; height: 92px; }
.ic-ava-in { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--ic-tint2); display: flex; align-items: center; justify-content: center; }
.ic-ava-in img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ic-ava-ph { color: var(--ic-at); font-size: 38px; }
.ic-spark { position: absolute; z-index: 2; color: var(--ic-b); line-height: 1; animation: ic-tw 2.6s ease-in-out infinite; pointer-events: none; }
.ic-spark.s1 { top: -8px; right: -6px; font-size: 22px; }
.ic-spark.s2 { bottom: -4px; left: -8px; font-size: 18px; animation-delay: .8s; color: var(--ic-a); }
.ic-spark.s3 { top: 6px; left: -12px; font-size: 14px; animation-delay: 1.5s; }
@keyframes ic-tw { 0%, 100% { transform: scale(.85) rotate(-8deg); opacity: .65; } 50% { transform: scale(1.15) rotate(8deg); opacity: 1; } }
.ic-title { position: relative; margin: 0; font-family: var(--font-display, inherit); font-weight: 900; line-height: 1.25; word-break: keep-all; color: var(--ink); }

/* 소개 / NG / 텍스트 */
.ic-summary, .ic-ng, .ic-text { position: relative; padding: 16px 22px; }
.ic-ng-l { font-size: .8em; font-weight: 800; letter-spacing: .02em; }

/* 태그표 */
.ic-tags { display: flex; flex-wrap: wrap; gap: 18px; }          /* 짧은 그룹은 나란히, 남는 칸 없이 늘어남 */
.ic-tg { position: relative; flex: 1 1 230px; min-width: 0; padding: 22px 18px 16px; }
.ic-tg.ic-wide { flex-basis: 100%; }
.ic-tl { font-size: .82em; font-weight: 800; }
.ic-chips { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; }
.ic-chip { padding: 2px 13px; border-radius: 999px; font-size: .92em; }

/* Pair 공통 */
.ic-pairs { display: flex; flex-direction: column; gap: 20px; }
.ic-ph { display: flex; align-items: center; gap: 10px; }
.ic-grid { display: grid; grid-template-columns: repeat(var(--ic-cols), minmax(0, 1fr)); gap: 22px 18px; padding: 8px 6px 4px; }
.ic-pair { position: relative; display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: transform .18s ease; }
.ic-pimg { overflow: hidden; background: var(--ic-tint); }
.ic-pimg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ic-pbody { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ic-psub { order: -1; font-size: .78em; color: var(--ink-mute); word-break: keep-all; }
.ic-pname { font-weight: 800; font-size: .9em; word-break: keep-all; }
.ic-ptags { font-size: .76em; font-weight: 700; color: var(--ic-at); word-break: keep-all; }

/* 자유 구성 요소 */
.ic-fig { margin: 0; }
.ic-fig img { display: block; width: 100%; }
.ic-fig figcaption { margin-top: 8px; text-align: center; font-size: .85em; color: var(--ink-mute); }
.ic-hr { display: flex; justify-content: center; gap: 14px; color: var(--ic-at); font-size: .9em; }
.ic-hr i { font-style: normal; }
.ic-hr i:nth-child(2) { color: var(--ic-bt); }
.ic-empty { padding: 14px; border: 2px dashed var(--ic-line); border-radius: 18px; font-size: .85em; color: var(--ic-at); text-align: center; }

/* ═══ 2) 스티커 look — 윤곽선은 연하게, 그림자로 "톡" 튀어나온 느낌 ═══ */
.ic-look-sticker .ic-summary,
.ic-look-sticker .ic-ng,
.ic-look-sticker .ic-tg,
.ic-look-sticker .ic-text.ic-box-solid {
  background: var(--paper); border: 2px solid var(--ic-line); border-radius: 20px; box-shadow: 3px 3px 0 var(--ic-sh);
}
.ic-look-sticker .ic-ava-in { border: 3px solid var(--ic-line); box-shadow: 3px 3px 0 var(--ic-sh); }
.ic-look-sticker .ic-title {
  padding: 10px 20px; font-size: 1.55em;
  background: var(--ic-tint2); border: 2px solid var(--ic-line); border-radius: 22px; box-shadow: 3px 3px 0 var(--ic-sh);
}
/* 말풍선 꼬리: 아래쪽(왼쪽 아래)으로 빠지는 모양
   before = 테두리색 삼각형, after = 안쪽 채움 삼각형 → 말풍선 테두리 선이 꼬리 자리에서 끊겨 이어진 것처럼 보임 */
.ic-look-sticker .ic-title,
.ic-look-sticker .ic-text.ic-box-dashed { --ic-tl: 24px; }
.ic-look-sticker .ic-title::before,
.ic-look-sticker .ic-text.ic-box-dashed::before {
  content: ''; position: absolute; left: var(--ic-tl); bottom: -16px; width: 22px; height: 16px;
  background: var(--ic-line); clip-path: polygon(0 0, 100% 0, 0 100%);
}
.ic-look-sticker .ic-title::after,
.ic-look-sticker .ic-text.ic-box-dashed::after {
  content: ''; position: absolute; left: calc(var(--ic-tl) + 2px); bottom: -12px; width: 18px; height: 13px;
  background: var(--ic-tint2); clip-path: polygon(0 0, 100% 0, 0 100%);
}
.ic-look-sticker .ic-summary { background: var(--ic-tint); padding-top: 26px; }
.ic-look-sticker .ic-summary::before {
  content: '♡'; position: absolute; top: -20px; left: 18px; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  background: var(--ic-a); color: var(--ic-on); border: 2px solid var(--ic-line);
}
.ic-look-sticker .ic-ng { padding-top: 22px; background: var(--ic-btint); }
.ic-look-sticker .ic-ng-l,
.ic-look-sticker .ic-text .ic-ng-l {
  position: absolute; top: -13px; left: 18px; padding: 1px 13px;
  background: color-mix(in srgb, var(--ic-b) calc(35% + var(--ic-k) * .4%), var(--paper)); color: var(--ink);
  border: 2px solid var(--ic-line); border-radius: 999px;
}
.ic-look-sticker .ic-ng-l::before, .ic-look-sticker .ic-text .ic-ng-l::before { content: '! '; color: var(--ic-bt); }
.ic-look-sticker .ic-text { padding-top: 22px; }
.ic-look-sticker .ic-text.ic-box-dashed {   /* 말풍선 */
  background: var(--ic-tint2); border: 2px solid var(--ic-line); border-radius: 26px; box-shadow: 3px 3px 0 var(--ic-sh);
}
.ic-look-sticker .ic-tl {
  display: inline-block; margin-bottom: 11px; padding: 1px 11px;
  background: color-mix(in srgb, var(--ic-b) calc(30% + var(--ic-k) * .4%), var(--paper)); color: var(--ink);
  border: 2px solid var(--ic-line); border-radius: 10px;
}
.ic-look-sticker .ic-tg { padding-top: 14px; }
.ic-look-sticker .ic-chip { border: 1.5px solid color-mix(in srgb, var(--ink) 20%, transparent); color: var(--ink-mute); }
.ic-look-sticker .ic-chip.on { background: var(--ic-tint2); border-color: var(--ic-line); color: var(--ink); font-weight: 700; }
.ic-look-sticker .ic-chip.on::before { content: '✓'; margin-right: 5px; color: var(--ic-at); font-weight: 900; }
.ic-look-sticker .ic-ph-t {
  padding: 2px 18px; font-weight: 900; letter-spacing: .06em;
  background: var(--ic-a); color: var(--ic-on); border: 2px solid var(--ic-line); border-radius: 999px; box-shadow: 3px 3px 0 var(--ic-sh);
}
.ic-look-sticker .ic-hr { letter-spacing: .4em; }
.ic-look-sticker .ic-fig img { border: 2px solid var(--ic-line); border-radius: 20px; box-shadow: 3px 3px 0 var(--ic-sh); }

/* ═══ 3) 몽글 look — 배경을 진하게 + 글자는 읽히는 색으로 ═══ */
.ic-look-puffy {
  --ic-tint: color-mix(in srgb, var(--ic-a) calc(var(--ic-k) * .5%), var(--paper));
  --ic-tint2: color-mix(in srgb, var(--ic-a) calc(var(--ic-k) * .9%), var(--paper));
  --ic-btint: color-mix(in srgb, var(--ic-b) calc(var(--ic-k) * .6%), var(--paper));
  --ic-pud: color-mix(in srgb, var(--ic-a) calc(25% + var(--ic-k) * .5%), var(--paper));   /* 푸딩 그림자 */
}
.ic-look-puffy .ic-summary,
.ic-look-puffy .ic-ng,
.ic-look-puffy .ic-tags,
.ic-look-puffy .ic-text {
  background: linear-gradient(165deg, var(--ic-tint), color-mix(in srgb, var(--ic-tint) 35%, var(--paper)));
  border-radius: 30px;
  box-shadow: 0 6px 0 var(--ic-pud),
              0 16px 26px -12px color-mix(in srgb, var(--ic-a) 45%, transparent),
              inset 0 2px 0 color-mix(in srgb, var(--paper) 80%, transparent);
}
.ic-look-puffy .ic-tags { display: flex; flex-direction: column; gap: 16px; padding: 22px 24px; }
.ic-look-puffy .ic-tg { flex: none; padding: 0; }
.ic-look-puffy .ic-ava-in { box-shadow: 0 0 0 5px var(--paper), 0 0 0 10px var(--ic-tint2), 0 10px 18px -4px color-mix(in srgb, var(--ic-a) 50%, transparent); }
.ic-look-puffy .ic-title { font-size: 2em; }
.ic-look-puffy .ic-title::after { content: '✦'; margin-left: .2em; font-size: .5em; vertical-align: super; color: var(--ic-b); }
.ic-look-puffy .ic-summary { background: var(--ic-tint); padding: 18px 26px; }
.ic-look-puffy .ic-ng { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 16px 24px 16px 16px; background: var(--ic-btint); }
.ic-look-puffy .ic-ng::before {
  content: '!'; grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 900;
  background: var(--ic-b); color: var(--ic-onb); box-shadow: 0 3px 0 color-mix(in srgb, var(--ic-b) 55%, var(--ink));
}
.ic-look-puffy .ic-ng-l { color: var(--ic-bt); }
.ic-look-puffy .ic-text { padding: 18px 26px; }
.ic-look-puffy .ic-text .ic-ng-l { color: var(--ic-at); margin-bottom: 2px; }
.ic-look-puffy .ic-text.ic-box-dashed { background: var(--ic-tint2); }
.ic-look-puffy .ic-tl { margin-bottom: 7px; color: var(--ic-at); }
.ic-look-puffy .ic-tl::before { content: '♡ '; }
.ic-look-puffy .ic-chip { background: color-mix(in srgb, var(--ink) 9%, var(--paper)); color: var(--ink-mute); padding: 3px 14px; }
.ic-look-puffy .ic-chip.on { background: var(--ic-a); color: var(--ic-on); font-weight: 700; box-shadow: 0 3px 0 color-mix(in srgb, var(--ic-a) 55%, var(--ink)); }
.ic-look-puffy .ic-ph-t { font-size: 1.15em; font-weight: 900; color: var(--ic-at); }
.ic-look-puffy .ic-ph-t::before { content: '♡ '; color: var(--ic-b); }
.ic-look-puffy .ic-fig img { border-radius: 30px; box-shadow: 0 6px 0 var(--ic-pud), 0 16px 26px -12px color-mix(in srgb, var(--ic-a) 45%, transparent); }

/* ═══ 4-a) Pair — 세로 포토카드 ═══ */
/* 카드 바탕을 "테두리색"으로 깔고 사진은 카드가 직접 잘라냄(overflow:hidden).
   기울어진 카드에서 사진 가장자리가 테두리와 픽셀이 안 맞아도, 틈으로 흰 바탕이 아니라 테두리색이 비쳐서 선이 안 보여요.
   글씨 영역(.ic-pbody)에만 따로 종이색 바탕을 줘요. */
.ic-g-card .ic-pair {
  background: var(--ic-line); border: 2px solid var(--ic-line); border-radius: 18px; overflow: hidden;
  box-shadow: 3px 3px 0 var(--ic-sh); transform: rotate(var(--r));
}
.ic-g-card a.ic-pair:hover { transform: rotate(0) translateY(-5px) scale(1.02); }
.ic-g-card .ic-pimg { aspect-ratio: 3 / 4; border-radius: 0; border-bottom: 2px solid var(--ic-line); }
.ic-g-card .ic-pbody { padding: 9px 8px 11px; text-align: center; background: var(--paper); flex: 1; }

/* ═══ 4-b) Pair — 동그란 버블 ═══ */
.ic-g-bubble .ic-pair { align-items: center; text-align: center; }
.ic-g-bubble a.ic-pair:hover { transform: translateY(-5px) scale(1.03); }
.ic-g-bubble .ic-pimg {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; border: 5px solid var(--paper);
  box-shadow: 0 0 0 4px var(--ic-tint2), 0 12px 18px -8px color-mix(in srgb, var(--ic-a) 55%, transparent);
}
.ic-g-bubble .ic-pbody { align-items: center; margin-top: -15px; position: relative; z-index: 1; padding-top: 0; }
.ic-g-bubble .ic-pname {
  order: -1; padding: 2px 14px; border-radius: 999px; font-size: .85em;
  background: var(--ic-a); color: var(--ic-on); box-shadow: 0 3px 0 color-mix(in srgb, var(--ic-a) 55%, var(--ink));
}
.ic-g-bubble .ic-psub { order: 0; margin-top: 7px; }

/* 카드 폭에 맞춘 반응형 (컨테이너 쿼리) */
@container (max-width: 560px) {
  .ic-cols-4 .ic-grid, .ic-cols-5 .ic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ic-look-sticker .ic-title { font-size: 1.3em; }
  .ic-look-puffy .ic-title { font-size: 1.6em; }
}
@container (max-width: 420px) {
  .ic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 20px 14px; }
  .ic-ava { width: 70px; height: 70px; }
  .ic-head { gap: 18px; }
  .ic-tg { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ic-spark { animation: none; } .ic-pair { transition: none; } }

/* ═══ 편집창 ═══ */
body.ic-lock { overflow: hidden; }
.ic-modal {
  position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 14px;
  background: rgba(0, 0, 0, .45); overflow-y: auto; overscroll-behavior: contain;
}
.ic-modal[hidden] { display: none; }
.ic-modal-box { width: min(660px, 100%); max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); margin: auto; display: flex; flex-direction: column; overflow: hidden; background: var(--paper); color: var(--ink); border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.ic-modal-box form { display: flex; flex-direction: column; min-height: 0; max-height: inherit; margin: 0; }
.ic-m-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--hair); font-size: 14px; }
.ic-m-x { border: none; background: none; font-size: 22px; line-height: 1; color: var(--ink-mute); cursor: pointer; }
.ic-m-tabs { display: flex; gap: 2px; padding: 0 10px; overflow-x: auto; border-bottom: 1px solid var(--hair); flex: none; }
.ic-tab { flex: none; padding: 11px 13px; border: none; background: none; border-bottom: 2px solid transparent; font-size: 12.5px; font-weight: 700; color: var(--ink-mute); cursor: pointer; font-family: inherit; }
.ic-tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.ic-m-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.ic-m-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: none; padding: 12px 18px; border-top: 1px solid var(--hair); }

.ic-modal input[type=text], .ic-modal textarea, .ic-modal select {
  width: 100%; box-sizing: border-box; padding: 8px 11px; border: 1px solid var(--hair); border-radius: 8px;
  background: var(--bg); color: var(--ink); font-size: 13px; font-family: inherit;
}
.ic-modal textarea { resize: vertical; line-height: 1.55; }
.ic-modal input:focus, .ic-modal textarea:focus, .ic-modal select:focus { outline: none; border-color: var(--accent); }
.ic-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ic-fl, .ic-lab { font-size: 11px; font-weight: 800; color: var(--ink-mute); letter-spacing: .02em; }
.ic-sec { display: flex; flex-direction: column; gap: 8px; }
.ic-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ic-between { justify-content: space-between; flex-wrap: nowrap; }
.ic-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .ic-row2 { grid-template-columns: 1fr; } }
.ic-hint { font-size: 11.5px; color: var(--ink-mute); line-height: 1.55; }
.ic-warn { padding: 10px 12px; border-radius: 8px; background: var(--hair-soft); }
.ic-n { font-size: 12px; color: var(--ink-mute); }

.ic-card2 { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--hair); border-radius: 12px; background: var(--bg); }
.ic-card2.off { opacity: .55; }

.ic-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 14px;
  border: 1px solid var(--hair); border-radius: 8px; background: var(--hair-soft); color: var(--ink-soft);
  font-size: 12px; font-weight: 700; font-family: inherit; cursor: pointer; transition: all .15s;
}
.ic-btn:hover { background: var(--hair); color: var(--ink); }
.ic-btn.sm { padding: 4px 10px; font-size: 11px; }
.ic-btn.ghost { background: none; }
.ic-btn.pri { background: var(--accent); border-color: var(--accent); color: var(--paper); padding-left: 24px; padding-right: 24px; }
.ic-btn.pri:hover { background: color-mix(in srgb, var(--accent) 85%, var(--ink)); }

.ic-vcs { display: grid; gap: 8px; }
.ic-vc { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border: 1.5px solid var(--hair); border-radius: 10px; cursor: pointer; transition: all .15s; }
.ic-vc input { display: none; }
.ic-vc b { font-size: 13px; }
.ic-vc span { font-size: 11.5px; color: var(--ink-mute); }
.ic-vc.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.ic-c, .ic-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); font-weight: 700; }
.ic-c select { width: auto; }
.ic-chk { cursor: pointer; }

.ic-gl { font-weight: 700; }
.ic-chipsE { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ic-chipE { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 8px; border: 1px solid var(--hair); border-radius: 999px; background: var(--paper); }
.ic-chipE input[type=text] { width: auto; min-width: 3ch; padding: 2px 4px; border: none; background: none; }
.ic-chipE .x, .ic-mv .x { border: none; background: none; color: var(--ink-mute); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; }
.ic-chipE .x:hover, .ic-mv .x:hover { color: #c33; }
.ic-mv { display: inline-flex; gap: 2px; flex: none; }
.ic-mv button { border: 1px solid var(--hair); background: var(--paper); color: var(--ink-soft); border-radius: 6px; padding: 2px 8px; font-size: 12px; cursor: pointer; font-family: inherit; }
.ic-mv button:disabled { opacity: .3; cursor: default; }
.ic-mv .x { border: 1px solid var(--hair); padding: 2px 8px; }

.ic-imgc { display: flex; gap: 12px; align-items: flex-start; }
.ic-th { flex: none; width: 76px; height: 76px; border-radius: 10px; border: 1px dashed var(--hair); background: var(--hair-soft) center / cover no-repeat; }
.ic-imgc-r { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.ic-tone { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid var(--hair); border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ink-soft); cursor: pointer; }
.ic-tone input { display: none; }
.ic-tone i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--hair); }
.ic-tone i.b { margin-left: -10px; }
.ic-tone.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--ink); }

.ic-grow { flex: 1; }

/* 미리보기: 편집창을 잠깐 숨겨서 뒤의 소개표를 직접 보기 */
.ic-modal.ic-peek { background: transparent; pointer-events: none; }
.ic-modal.ic-peek .ic-modal-box { display: none; }
.ic-peek-back { display: none; }
.ic-modal.ic-peek .ic-peek-back {
  display: block; position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9001; pointer-events: auto;
  padding: 11px 22px; border: none; border-radius: 999px; font-size: 13px; font-weight: 800; font-family: inherit; cursor: pointer;
  background: var(--accent); color: var(--paper); box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}

/* 색 선택 */
.ic-pals { display: flex; flex-wrap: wrap; gap: 8px; }
.ic-pal { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 9px; border: 1.5px solid var(--hair); border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ink-soft); cursor: pointer; }
.ic-pal input { display: none; }
.ic-pal .dots { display: inline-flex; }
.ic-pal .dots i { width: 15px; height: 15px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); margin-left: -5px; }
.ic-pal .dots i:first-child { margin-left: 0; }
.ic-pal.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); color: var(--ink); }
.ic-strength { display: flex; flex-direction: column; gap: 4px; }
.ic-strength .ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-mute); }
.ic-strength input[type=range] { width: 100%; accent-color: var(--accent); }
.ic-lab output { color: var(--accent); margin-left: 4px; font-weight: 800; }
.ic-c input[type=color] { width: 38px; height: 28px; padding: 1px; border: 1px solid var(--hair); border-radius: 6px; background: var(--bg); cursor: pointer; }
