/* 공개 프로필(/@<slug>, 옛 /writer/ 301 11/19 — 작가 페이지 마이페이지 2차 A1 1안 → 11/18 프로필 꾸밈 1안 머리) + 마이페이지 '내 작가 페이지' 카드와 편집 시트(A4 2안).
   시안 GbpcdWB7 · ops/cap/writer-page-1117/design/SPEC.md — 토큰은 tokens.css(--tk-*), 글자 최소 14. PC 960 이상, 폰 여백 16 */

/* 사진 원 */
.wp-pic { flex: none; position: relative; border-radius: 50%; overflow: hidden; background: var(--tk-chip); color: var(--tk-ink); display: grid; place-items: center; font-weight: 800; }
.wp-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wp-pic.s40 { width: 40px; height: 40px; font-size: 17px; }
.wp-pic.s56 { width: 56px; height: 56px; font-size: 22px; }
.wp-pic.s72 { width: 72px; height: 72px; font-size: 28px; }
.wp-pic.s88 { width: 88px; height: 88px; font-size: 34px; }
.wp-pic.s112 { width: 112px; height: 112px; font-size: 44px; }
.wp-pic.s132 { width: 132px; height: 132px; font-size: 52px; }

/* 단추 */
.wp-btns { display: flex; gap: 8px; align-items: center; margin: 0; }
.sf a.wp-fb, .wp-fb { box-sizing: border-box; height: 44px; min-width: 112px; padding: 0 20px; border-radius: 12px; border: 0; background: var(--tk-ink); color: var(--tk-bg); font: inherit; font-size: 15px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; cursor: pointer; }
.wp-fb.on, .sf a.wp-fb.ghost, .wp-fb.ghost { background: transparent; color: var(--tk-ink); box-shadow: inset 0 0 0 1px var(--tk-line); }
.wp-fb:disabled { opacity: .38; cursor: default; }
.wp-fb [data-i-chk], .wp-fb.on [data-i-plus] { display: none; }
.wp-fb.on [data-i-chk] { display: inline; }
.wp-ib { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--tk-chip); box-shadow: none; color: var(--tk-ink); display: grid; place-items: center; cursor: pointer; }

/* 머리 — 프로필 꾸밈 1안(재빈 11/18, ops/cap/profile-deco-1118/design SPEC §1 · §2, 토큰 · 간격 정본 pf.css). 본문 폭 1040(시안 1280 에서 좌우 120).
   배너 300 · 반경 28 · 아래로 바탕색에 녹음 → 사진 132 가 배너에 70 겹침(창립 작가 금색 고리, 그 밖 선 고리) → 왼쪽 필명 · @ · 배지 · 소개 · 링크, 오른쪽 숫자 줄 */
.sf-main:has(.wp-one) { max-width: calc(1040px + 2 * var(--dk-gut, 20px)); }
.wp-one { max-width: 1040px; margin: 0 auto; padding: 0 0 72px; display: flex; flex-direction: column; gap: 20px; }
.wp-head { position: relative; padding-bottom: 12px; }
.wp-ban { position: relative; height: 300px; border-radius: 28px; overflow: hidden; background: #1c0f18; }
.wp-ban .wide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.wp-ban::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 18, 20, 0) 40%, var(--tk-bg) 100%); }
.wp-ban.def { background: radial-gradient(120% 140% at 0% 0%, #ff9ccc 0%, rgba(248, 127, 185, 0) 55%), radial-gradient(90% 120% at 100% 20%, #b48cff 0%, rgba(180, 140, 255, 0) 60%), linear-gradient(135deg, #3a1428, #1e1430); }
:root[data-theme='light'] .wp-ban.def { background: radial-gradient(120% 140% at 0% 0%, #ffc3df 0%, rgba(255, 195, 223, 0) 55%), radial-gradient(90% 120% at 100% 20%, #d9c6ff 0%, rgba(217, 198, 255, 0) 60%), linear-gradient(135deg, #fdebf2, #efe7ff); }
.wp-ban .dots { position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(circle at 10px 10px, #fff 2px, transparent 2.5px); background-size: 28px 28px; }
.wp-va { position: relative; z-index: 1; margin-top: -70px; padding: 0 40px; }
.wp-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.wp-top .wp-btns { padding-bottom: 8px; }
.wp-ring { flex: none; display: inline-block; border-radius: 50%; padding: 4px; }
.wp-ring > .wp-pic { box-sizing: border-box; border: 3px solid var(--tk-bg); }
.wp-ring.gold { background: conic-gradient(from 210deg, #fbe3a2, #e2b04f, #fff1c9, #a8701c, #fbe3a2); box-shadow: 0 10px 30px rgba(226, 176, 79, .28); }
.wp-ring.plain { padding: 2px; background: var(--tk-line); }
.wp-info { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 12px; }
.wp-who { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.wp-pn { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -.6px; line-height: 1.15; overflow-wrap: anywhere; }
.wp-hdl { margin: -8px 0 0; font-size: 14px; font-weight: 600; color: var(--tk-faint); }
.wp-fw { margin: 0; height: 28px; padding: 0 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: linear-gradient(135deg, #fbe3a2, #e2b04f 55%, #f5d27f); color: #5a3507; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
  font-size: 14px; font-weight: 800; letter-spacing: .02em; }
/* 창립 작가 배지 = 이름만(번호 없음, 재빈 11/18). 본인이 끈 배지 = 50% + 눈 가림 14(대화 수 꺼짐과 같은 말), 누르면 /me#writer */
.sf a.wp-fw, .wp-fw.hid { color: #5a3507; text-decoration: none; }
.wp-fw.hid { opacity: .5; }
.wp-fw.hid svg { flex: none; margin-left: 2px; }
.wp-more { max-width: 640px; }
.wp-bio { margin: 0; font-size: 15px; line-height: 1.55; color: var(--tk-ink2); white-space: pre-line; overflow-wrap: anywhere; }
.wp-more.cut .wp-bio { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.wp-mb { margin-top: 4px; border: 0; background: none; padding: 4px 2px; font: inherit; font-size: 14px; font-weight: 700; color: var(--tk-faint); cursor: pointer; }
.wp-lks { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; margin: 0; }
.sf a.wp-lk, .wp-lk { box-sizing: border-box; height: 34px; padding: 0 13px; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--tk-line); font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px; color: var(--tk-ink); text-decoration: none; max-width: 100%; }
.wp-lk svg { color: var(--tk-faint); flex: none; }
/* 숫자 줄 — 숫자 20(Outfit 800) + 라벨 14, 칸 사이 22. 본인 + 대화 수 꺼짐 = 칸 50% + 눈 가림, 누르면 /me#writer(편집 시트) */
.wp-stats { flex: none; margin: 0 0 6px; display: flex; gap: 22px; align-items: baseline; font-size: 14px; font-weight: 700; color: var(--tk-faint); white-space: nowrap; }
.wp-stats > span, .sf .wp-stats > a, .wp-stats > a { display: inline-flex; align-items: baseline; gap: 5px; color: var(--tk-faint); text-decoration: none; }
.wp-stats b { font-family: 'Outfit DK', 'SUIT Variable', sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -.4px; color: var(--tk-ink); font-variant-numeric: tabular-nums; }
.wp-stats .hid { opacity: .5; }
.wp-stats .hid svg { flex: none; align-self: center; margin-left: 2px; }
.wp-head .wp-fb { min-width: 0; }
.sf .wp-head a.wp-fb.ghost, .wp-head .wp-fb.ghost { background: var(--tk-chip); }
.sf a.wp-fb.rose:not(.on), .wp-fb.rose:not(.on) { background: var(--tk-rose); color: var(--tk-on-rose); }

/* 카드 */
.wp-card { border-radius: 22px; background: var(--tk-card); box-shadow: inset 0 0 0 1px var(--tk-line); overflow: hidden; }
.wp-ntc { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.wp-tp { display: flex; align-items: center; gap: 10px; margin: 0; }
.wp-chipr { height: 26px; padding: 0 10px; border-radius: 8px; background: var(--tk-rose-soft); color: var(--tk-rose-ink); font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
.wp-tp time { font-size: 14px; color: var(--tk-faint); font-weight: 600; }
.wp-nt { margin: 0; font-size: 15px; line-height: 1.6; color: var(--tk-ink); white-space: pre-line; overflow-wrap: anywhere; }

.wp-pin { display: flex; }
.wp-pin-img { flex: none; width: 260px; }
.wp-pin-img img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.wp-bd { flex: 1; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.wp-k { margin: 0; font-size: 14px; font-weight: 800; color: var(--tk-faint); display: flex; align-items: center; gap: 6px; }
.wp-bd h2 { margin: 0; font-size: 26px; line-height: 1.3; font-weight: 800; letter-spacing: -.5px; }
.wp-q { margin: 0; font-size: 15px; line-height: 1.6; color: var(--tk-ink2); }
.wp-bd .wp-btns { margin-top: 8px; }

.wp-sec { margin-top: 20px; }
.wp-sh2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.wp-sh2 h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.wp-sh2 .n { font-size: 16px; font-weight: 700; color: var(--tk-faint); }
.wp-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px 14px; }
.sf a.wp-sc, .wp-sc { color: var(--tk-ink); text-decoration: none; min-width: 0; }
.wp-sc img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 14px; display: block; background: #000; }
.wp-sc b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px; font-size: 15px; line-height: 1.4; font-weight: 700; }

.wp-nf { padding: 120px 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.wp-nf .wp-pic { opacity: .6; color: var(--tk-faint); }
.wp-nf h1 { margin: 6px 0 0; font-size: 22px; font-weight: 800; }
.wp-nf .wp-fb { margin-top: 8px; }

.wp-toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 60; margin: 0; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--tk-ink); color: var(--tk-bg);
  font-size: 15px; font-weight: 800; display: inline-flex; align-items: center; }
.wp-toast[hidden] { display: none; }

/* ② 대화 수 · 정렬, ③ 연재 칩(시안 GbpcdWB7 SPEC '작가 페이지 ② … ③ …') */
.wp-ch { display: flex; align-items: center; gap: 5px; margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--tk-faint); font-variant-numeric: tabular-nums; }
.wp-ch svg { flex: none; }
.wp-bd .wp-ch { margin: 0; font-size: 15px; }
.wp-sh2 .wp-seg { margin-left: auto; }
.wp-seg { display: flex; padding: 3px; border-radius: 12px; background: var(--tk-chip); }
.wp-seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--tk-faint); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.wp-seg button[aria-checked="true"] { background: var(--tk-card); color: var(--tk-ink); box-shadow: 0 1px 2px var(--tk-shadow); }
/* 편집 시트 미리보기(SPEC §3b, 11/18) — 남이 보는 내 머리를 0.7 로. 둥근 18 · 1px 선 · 누를 수 없음. 토글이 저장 전에 바로 바꾼다 */
.wse-pv { margin: 0 0 6px; border-radius: 18px; overflow: hidden; border: 1px solid var(--tk-line); background: var(--tk-bg); pointer-events: none; user-select: none; }
.wse-pv .z { zoom: .7; width: calc(100% / .7); }
.wse-pv .wp-ban { height: 140px; border-radius: 0; margin: 0; }
.wse-pv .wp-va { margin-top: -56px; padding: 0 24px 22px; }
.wse-pv .wp-pic.s132 { width: 92px; height: 92px; font-size: 36px; }
.wse-pv .wp-info { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 12px; }
.wse-pv .wp-who { gap: 10px; }
.wse-pv .wp-pn { font-size: 26px; }
.wse-pv .wp-stats { margin: 0; }
.wse-pv [hidden] { display: none; }
.wse-sw small .wp-fw { height: 20px; padding: 0 8px; font-size: 11px; margin-left: 2px; }
/* 편집 시트 '대화 수' 스위치(SPEC §3, 기본 꺼짐) — 줄 68 · 아래 작은 글씨(말풍선 + 누적 대화 n) · 스위치 51×31 */
.wse-sw { min-height: 68px; display: flex; align-items: center; gap: 14px; }
.wse-sw .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wse-sw b { font-size: 16px; font-weight: 700; }
.wse-sw.off { opacity: .4; }
.wse-sw.off .wse-tgl { cursor: default; }
.wse-sw small { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--tk-faint); }
.wse-tgl { flex: none; position: relative; width: 51px; height: 31px; padding: 0; border: 0; border-radius: 16px; background: var(--tk-line); cursor: pointer; transition: background .15s; }
.wse-tgl::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); transition: left .15s; }
.wse-tgl[aria-checked="true"] { background: var(--tk-rose); }
.wse-tgl[aria-checked="true"]::after { left: 22px; }
.wse-tgl:focus-visible { outline: 2px solid var(--tk-rose); outline-offset: 2px; }

@media (max-width: 959px) {
  /* 폰 — 앱 보드(WrApp)처럼 배너는 끝까지 · 높이 200, 사진 92 가 56 겹침, 숫자 줄은 링크 아래 왼쪽 */
  .sf-main:has(.wp-one) { padding-top: 0; }
  .wp-one { padding: 0 0 40px; gap: 16px; }
  .wp-ban { height: 200px; border-radius: 0; margin: 0 calc(-1 * var(--dk-gut, 20px)); }
  .wp-va { margin-top: -56px; padding: 0; }
  .wp-top .wp-btns { padding-bottom: 4px; }
  .wp-pic.s132 { width: 92px; height: 92px; font-size: 36px; }
  .wp-info { flex-direction: column; align-items: stretch; gap: 14px; }
  .wp-pn { font-size: 26px; }
  .wp-stats { margin: 0; }
  .wp-pic.s112 { width: 88px; height: 88px; font-size: 34px; }
  .wp-pin { flex-direction: column; }
  .wp-pin-img { width: 100%; }
  .wp-pin-img img { aspect-ratio: 4/3; object-position: 50% 20%; }
  .wp-bd { padding: 20px; }
  .wp-bd h2 { font-size: 21px; }
  .wp-sec { margin-top: 12px; }
  .wp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
}

/* ── 마이페이지 '내 작가 페이지' 카드(A4 2안, 시안 a4-me) ── */
.wme-who { display: flex; align-items: center; gap: 14px; padding: 8px 20px 0; }
.wme-who .t { min-width: 0; }
.wme-who b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.wme-who small { display: block; font-size: 14px; color: var(--tk-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wme-down { display: flex; align-items: center; gap: 8px; margin: 12px 20px 0; font-size: 14px; font-weight: 700; color: var(--tk-danger); }
.wme-box { margin: 16px 20px 0; padding: 18px; border-radius: 18px; background: var(--tk-chip); display: flex; flex-direction: column; gap: 12px; }
.wme-box .wp-bio { font-size: 15px; color: var(--tk-ink); }
.wme-box .wp-more { max-width: none; }
.wme-box .wp-lks { justify-content: flex-start; }
.sf .wme-box a.wp-lk, .wme-box .wp-lk { background: var(--tk-card); box-shadow: none; height: 36px; }
.sf a.wme-pm, .wme-pm { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--tk-card); color: var(--tk-ink); text-decoration: none; }
.wme-pm img { width: 40px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; }
.wme-pm .t { flex: 1; min-width: 0; }
.wme-pm small { display: block; font-size: 14px; color: var(--tk-faint); font-weight: 600; }
.wme-pm b { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wme-acts { display: flex; gap: 8px; padding: 16px 20px 0; }
.wme .dk-me-kv2 { margin-left: 20px; margin-right: 20px; }   /* 폰에서도 편집 단추와 같은 여백(디자인 11/17) */
.wme-acts .wp-fb { flex: 1; height: 44px; min-width: 0; padding: 0 12px; white-space: nowrap; }
/* 내 프로필 카드(11/19 시안 mypage-profile-1119 §2) — 고리 · 이름 줄 배지 · 숫자 줄, 단추 둘 다 보조(chip 면 44 r12 15/800) */
.wme-ring { flex: none; display: inline-block; border-radius: 50%; padding: 2px; background: var(--tk-line); }
.wme-ring.gold { padding: 3px; background: conic-gradient(from 210deg, #fbe3a2, #e2b04f, #fff1c9, #a8701c, #fbe3a2); }
.wme-ring > .wp-pic { box-sizing: border-box; border: 2px solid var(--tk-card); }
.wme-who .wme-nm { margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0; }
.wme-who .wme-nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wme-who small { margin-top: 3px; font-weight: 600; }
.wme-fw { flex: none; height: 24px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; white-space: nowrap;
  background: linear-gradient(135deg, #fbe3a2, #e2b04f); color: #5a3507; }
.sf a.wme-fw, a.wme-fw { color: #5a3507; text-decoration: none; }
.wme-fw.hid { opacity: .5; }
.wme-stats { margin: 16px 20px 0; display: flex; gap: 20px; align-items: baseline; font-size: 14px; font-weight: 700; color: var(--tk-faint); }
.wme-stats span { display: inline-flex; align-items: baseline; gap: 5px; }
.wme-stats b { font-family: 'Outfit DK', 'SUIT Variable', sans-serif; font-size: 18px; font-weight: 800; color: var(--tk-ink); font-variant-numeric: tabular-nums; }
.wme-acts .wp-fb, .sf .wme-acts a.wp-fb { border-radius: 12px; background: var(--tk-chip); color: var(--tk-ink); box-shadow: none; font-size: 15px; font-weight: 800; text-decoration: none; }
.wme .dk-me-kv2 { margin-top: 16px; padding-top: 16px; }

/* ── 프로필 편집 한 화면(11/18c, 시안 profile-deco-1118 Edit2Web · Edit2Pc, SPEC §3c) — PC 가운데 창 560(위아래 48, 둥근 24, 안쪽만 스크롤), 폰 아래 긴 시트(위 52 남김, 둥근 28).
   칸 = 상자(높이 48 · 둥근 12 · 칩 바탕 + 1px 선), 묶음 이름 14 800 흐린 글자, 아래 띠 [미리보기](ghost) + [저장](로즈, 남은 폭) ── */
.wp-pic.s80 { width: 80px; height: 80px; font-size: 32px; }
.wse { position: fixed; inset: 0; z-index: 50; }
.wse[hidden] { display: none; }
.wse-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .56); }
:root[data-theme="light"] .wse-scrim { background: rgba(20, 22, 26, .36); }
.wse-side { position: absolute; top: 48px; bottom: 48px; left: 50%; transform: translateX(-50%); width: 560px; max-width: calc(100% - 32px); background: var(--tk-card); border-radius: 24px;
  box-shadow: inset 0 0 0 1px var(--tk-line), 0 24px 64px rgba(0, 0, 0, .4); display: flex; flex-direction: column; overflow: hidden; }
.wse-hdl { display: none; }
.wse-hd { display: flex; align-items: center; gap: 10px; padding: 20px 20px 4px; }
.wse-hd h2 { margin: 0; flex: 1; font-size: 21px; font-weight: 800; letter-spacing: -.4px; }
.wse-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--tk-chip); display: grid; place-items: center; color: var(--tk-ink); cursor: pointer; }
.wse-bd { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 20px 28px; display: flex; flex-direction: column; gap: 22px; }
.wse-ft { padding: 14px 20px; border-top: 1px solid var(--tk-line); background: var(--tk-card); display: flex; gap: 8px; }
.wse-ft .wp-fb { height: 52px; border-radius: 14px; font-size: 16px; min-width: 0; }
.wse-ft .wp-fb.rose { flex: 1; background: var(--tk-rose); color: var(--tk-on-rose); }
.wse-ft .wse-pvb { flex: none; padding: 0 22px; background: var(--tk-chip); }
.wse-fg { min-width: 0; }
.wse-lb { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--tk-faint); margin: 0 0 10px; }
.wse-in { box-sizing: border-box; width: 100%; min-height: 48px; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 1px var(--tk-line); background: var(--tk-chip); color: var(--tk-ink);
  padding: 12px 14px; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.45; display: block; }
.wse-in:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--tk-ink2); }
.wse-in::placeholder { color: var(--tk-faint); font-weight: 500; }
textarea.wse-in { resize: none; overflow: hidden; }
textarea.wse-bio { min-height: 148px; line-height: 1.55; }   /* 작가 소개 — 처음부터 다섯 줄 */
.wse-cnt { margin: 6px 2px 0; text-align: right; font-size: 12px; font-weight: 600; color: var(--tk-faint); font-variant-numeric: tabular-nums; }
.wse-in.bad { box-shadow: inset 0 0 0 1.5px var(--tk-danger); }
.wse-err { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: var(--tk-danger); }
.wse-err[hidden] { display: none; }
/* 사진 80 + '사진 바꾸기'(로즈) → 작은 메뉴 */
.wse-ph { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 8px; }
.wse-ph .wp-ring.plain { padding: 2px; }
.wse-phb { border: 0; background: none; padding: 4px 8px; font: inherit; font-size: 15px; font-weight: 800; color: var(--tk-rose); cursor: pointer; }
.wse-phm { position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); z-index: 3; min-width: 220px; padding: 6px; border-radius: 16px; background: var(--tk-card);
  box-shadow: inset 0 0 0 1px var(--tk-line), 0 12px 32px rgba(0, 0, 0, .3); display: flex; flex-direction: column; }
.wse-phm[hidden], .wse-phm button[hidden] { display: none; }
.wse-phm button { height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--tk-ink); font: inherit; font-size: 15px; font-weight: 700; text-align: left; display: flex; align-items: center; gap: 10px; cursor: pointer; white-space: nowrap; }
.wse-phm button:hover, .wse-phm button:focus-visible { background: var(--tk-chip); outline: none; }
.wse-phm svg { color: var(--tk-faint); flex: none; }
/* 아이디 줄 — @handle 왼쪽, '바꾸기 >' 오른쪽(15 흐림). 누르면 정하기 시트 */
.wse-hrow { display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.wse-hrow .h { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wse-hrow .v { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 15px; color: var(--tk-faint); }
/* 링크 — 줄마다 사각 36 링크 아이콘 + 이름 + 아래 주소(14 흐림), 오른쪽 X. 끝에 로즈 '+ 링크 더하기' */
.wse-lrow { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 0; }
.wse-lrow .li { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--tk-chip); display: grid; place-items: center; color: var(--tk-ink2); }
.wse-lrow .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wse-lrow .t b { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wse-lrow .t small { font-size: 14px; font-weight: 500; color: var(--tk-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wse-lrow .wse-in { flex: 1; min-width: 0; }
.wse-lx { flex: none; width: 40px; height: 40px; margin-right: -8px; border-radius: 12px; border: 0; background: none; display: grid; place-items: center; color: var(--tk-ink2); cursor: pointer; }
.wse-add { box-sizing: border-box; height: 48px; padding: 0; border: 0; background: none; display: flex; align-items: center; gap: 8px; font: inherit; font-size: 16px; font-weight: 800; color: var(--tk-rose); cursor: pointer; }
.wse-add[hidden] { display: none; }
.wse-picks { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.wse-pk { flex: none; width: 112px; box-sizing: border-box; border-radius: 14px; border: 1.5px solid var(--tk-line); background: none; padding: 6px; display: flex; flex-direction: column; gap: 6px; position: relative;
  font: inherit; color: var(--tk-ink); text-align: left; cursor: pointer; }
.wse-pk img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 9px; display: block; }
.wse-pk b { font-size: 14px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wse-pk[aria-pressed="true"] { border-color: var(--tk-ink); }
.wse-pk .ck { position: absolute; right: 10px; top: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--tk-ink); color: var(--tk-bg); display: none; place-items: center; }
.wse-pk[aria-pressed="true"] .ck { display: grid; }
.wse-pk.none { justify-content: center; align-items: center; min-height: 120px; color: var(--tk-faint); font-size: 14px; font-weight: 700; text-align: center; }
.wse-none { margin: 0; font-size: 15px; color: var(--tk-faint); }
.wp-ban [hidden] { display: none; }

/* ── [미리보기] 전체(PvFull, SPEC §3c) — 남이 보는 판을 저장 전 값으로. 위 줄만 다르다: 왼쪽 닫기 40(검정 38% + 흐림), 가운데 '미리보기' 알약 34. 안은 누를 수 없음 ── */
.wpv { position: fixed; inset: 0; z-index: 70; background: var(--tk-bg); }
.wpv[hidden] { display: none; }
.wpv-sc { position: absolute; inset: 0; overflow-y: auto; }
.wpv-one { position: relative; box-sizing: border-box; max-width: calc(1040px + 2 * var(--dk-gut, 20px)); margin: 0 auto; padding: 24px var(--dk-gut, 20px) 72px; display: flex; flex-direction: column; gap: 20px; }
.wpv-one [hidden] { display: none; }
.wpv-one .wp-fb, .wpv-one .wp-ib { pointer-events: none; }
.wpv-bar { position: absolute; z-index: 2; top: 36px; left: 50%; transform: translateX(-50%); width: min(1040px, calc(100% - 2 * var(--dk-gut, 20px))); padding: 0 14px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.wpv-x { position: absolute; left: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .38); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; display: grid; place-items: center; cursor: pointer; pointer-events: auto; }
.wpv-tag { height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .18);
  color: #fff; font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }

/* ── @아이디 정하기 · 바꾸기 시트(Handle, SPEC §3c) — 폰 아래 시트(둥근 28), PC 가운데 440. 칸 56 · 둥근 14 · 칩 바탕 + 앞 '@'.
   칸 테: 비었음 선 · 쓸 수 있음 로즈 · 그 밖 위험 색 · 잠김 흐린 글자. 아래 한 줄 14 700, 단추 흐림 35% ── */
.whs { position: fixed; inset: 0; z-index: 80; }
.whs[hidden] { display: none; }
.whs-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
:root[data-theme="light"] .whs-scrim { background: rgba(20, 22, 26, .3); }
.whs-box { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 440px; max-width: calc(100% - 32px); box-sizing: border-box; padding: 20px 20px 22px; border-radius: 24px; background: var(--tk-card);
  box-shadow: inset 0 0 0 1px var(--tk-line), 0 24px 64px rgba(0, 0, 0, .4); }
.whs-t { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.whs-t h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.whs-later { border: 0; background: none; padding: 6px 2px; font: inherit; font-size: 15px; font-weight: 700; color: var(--tk-faint); cursor: pointer; }
.whs-x { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--tk-chip); color: var(--tk-ink2); display: grid; place-items: center; cursor: pointer; }
.whs-later[hidden], .whs-x[hidden], .whs-clr[hidden] { display: none; }
.whs-in { height: 56px; box-sizing: border-box; border-radius: 14px; background: var(--tk-chip); box-shadow: inset 0 0 0 1.5px var(--tk-line); display: flex; align-items: center; gap: 3px; padding: 0 14px 0 16px; font-size: 18px; font-weight: 700; }
.whs-in.ok { box-shadow: inset 0 0 0 1.5px var(--tk-rose); }
.whs-in.bad { box-shadow: inset 0 0 0 1.5px var(--tk-danger); }
.whs-in .at { color: var(--tk-faint); }
.whs-f { position: relative; flex: 1; min-width: 0; height: 100%; overflow: hidden; }
.whs-f input, .whs-mir { position: absolute; inset: 0; box-sizing: border-box; margin: 0; padding: 0; border: 0; font: inherit; font-size: 18px; font-weight: 700; letter-spacing: 0; line-height: 56px; white-space: pre; }
.whs-f input { width: 100%; background: transparent; color: transparent; caret-color: var(--tk-rose); outline: none; }
.whs-f input::placeholder { color: var(--tk-faint); font-weight: 600; }
.whs-mir { color: var(--tk-ink); pointer-events: none; }
.whs-mir .x { color: var(--tk-danger); font-weight: 800; text-decoration: underline wavy var(--tk-danger); text-underline-offset: 4px; }
.whs-in.lock .whs-mir { color: var(--tk-faint); }
.whs-in.lock input { caret-color: transparent; cursor: default; }
.whs-clr { flex: none; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 0; background: var(--tk-faint); color: var(--tk-card); display: grid; place-items: center; cursor: pointer; }
.whs-st { display: flex; align-items: center; gap: 6px; min-height: 30px; margin: 0; padding-top: 10px; box-sizing: border-box; font-size: 14px; font-weight: 700; color: var(--tk-faint); }
.whs-st.ok { color: var(--tk-rose); }
.whs-st.taken, .whs-st.bad { color: var(--tk-danger); }
.whs-st svg { flex: none; }
.whs-rv { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 0; padding: 6px 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 800; color: var(--tk-rose); cursor: pointer; }
.whs-rv .h { color: var(--tk-faint); font-weight: 700; }
.whs-rv[hidden] { display: none; }
.whs-rv:disabled { opacity: .5; }
.whs .whs-go { width: 100%; height: 52px; margin-top: 14px; border-radius: 14px; font-size: 16px; }
.whs .whs-go:disabled { opacity: .35; }

/* 자르기 · 얼굴 고르기 창 */
.wse-dlg { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.wse-dlg[hidden] { display: none; }
.wse-box { position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--tk-card); border-radius: 22px; box-shadow: inset 0 0 0 1px var(--tk-line), 0 18px 40px var(--tk-shadow); }
.wse-ct { margin: 0; padding: 18px 20px 14px; font-size: 17px; font-weight: 800; }
.wse-area { position: relative; aspect-ratio: 1; background: #000; overflow: hidden; touch-action: none; cursor: grab; }
.wse-area img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.wse-mask { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle closest-side, transparent 88%, rgba(0, 0, 0, .62) 88.4%); }
.wse-area.r3 { aspect-ratio: 3 / 1; }
.wse-box.wide { max-width: 560px; }
.wse-safe { position: absolute; top: 0; bottom: 0; left: 17.5%; right: 17.5%; border-left: 1.5px dashed rgba(255, 255, 255, .8); border-right: 1.5px dashed rgba(255, 255, 255, .8); pointer-events: none; }   /* 폰 배너(약 1.95:1)에 보이는 가운데 */
.wse-cpv { margin: 14px 20px 0; height: 84px; border-radius: 14px; background: #000 no-repeat; box-shadow: inset 0 0 0 1px var(--tk-line); }
.wse-cpv-l { margin: 6px 20px 0; font-size: 14px; color: var(--tk-faint); }
.wse-chk { display: flex; align-items: center; gap: 8px; margin: 12px 20px 0; font-size: 14px; color: var(--tk-faint); }
.wse-chk[hidden] { display: none; }
.wse-chk::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: wse-spin .8s linear infinite; }
@keyframes wse-spin { to { transform: rotate(360deg); } }
.wse-bth .wp-ban { height: auto; aspect-ratio: 3 / 1; border-radius: 14px; margin: 0 0 4px; }   /* 배경 줄 작은 배너 — 올리면 바로 바뀐다 */
.wse-bth .wp-ban::after { display: none; }
.wse-bnr { display: flex; gap: 8px; flex-wrap: wrap; }
.wse-bnr .wse-add { flex: none; }
.wse-ring { position: absolute; inset: 6%; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9); pointer-events: none; }
.wse-zm { display: flex; align-items: center; gap: 12px; padding: 18px 20px 4px; color: var(--tk-faint); }
.wse-zm input { flex: 1; accent-color: var(--tk-ink); }
.wse-ca { display: flex; gap: 8px; padding: 16px 20px 20px; }
.wse-ca .wp-fb { flex: 1; height: 48px; min-width: 0; }
.wse-faces { padding: 0 20px; display: flex; flex-direction: column; gap: 14px; }
.wse-faces small { display: block; font-size: 14px; font-weight: 700; color: var(--tk-faint); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wse-fr { display: flex; flex-wrap: wrap; gap: 10px; }
.wse-fr button { padding: 0; border: 2px solid transparent; border-radius: 50%; background: none; cursor: pointer; }
.wse-fr img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block; }
.wse-fr button[aria-pressed="true"] { border-color: var(--tk-ink); }

@media (max-width: 959px) {
  .wse-side { top: 52px; bottom: 0; left: 0; right: 0; transform: none; width: auto; max-width: none; border-radius: 28px 28px 0 0; box-shadow: none; }
  .wse-hdl, .whs .wse-hdl { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--tk-line); margin: 10px auto 0; flex: none; }
  .wse-hd { padding: 14px 20px 4px; }
  .wse-ft { padding: 12px 20px 28px; }
  .wse-ft .wse-pvb { padding: 0 18px; }
  .whs-box { top: auto; bottom: 0; left: 0; transform: none; width: 100%; max-width: none; border-radius: 28px 28px 0 0; padding: 0 20px 28px; box-shadow: none; }
  .whs .wse-hdl { margin: 10px auto 14px; }
  .wpv-one { padding: 0 var(--dk-gut, 20px) 40px; gap: 16px; }
  .wpv-bar { top: 14px; width: 100%; }
  .wpv-x { left: 16px; }
}

/* 이용자 공개 프로필 탭(11/19 시안 mypage-profile-1119 §4) — 댓글 · 좋아한 스토리, 밑줄 rose. 댓글 줄 = 표지 24x34 + 편 제목 / 글 / 시각 · 하트 */
.wp-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--tk-line); }
.wp-tabs button { position: relative; height: 48px; padding: 0; border: 0; background: none; color: var(--tk-faint); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.wp-tabs button .n { font-family: 'Outfit DK', 'SUIT Variable', sans-serif; }
.wp-tabs button[aria-selected="true"] { color: var(--tk-ink); }
.wp-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--tk-rose); }
.wp-tabs button svg { opacity: .6; }
.wp-up { padding-top: 4px; }
.wp-up .wp-grid { margin-top: 16px; }
.wp-cm { list-style: none; margin: 0; padding: 0; }
.wp-cm li { padding: 20px 0; border-bottom: 1px solid var(--tk-line); }
.sf a.wp-cm-s, .wp-cm-s { display: inline-flex; align-items: center; gap: 8px; color: var(--tk-ink2); text-decoration: none; font-size: 14px; font-weight: 600; max-width: 100%; }
.wp-cm-s img { width: 24px; height: 34px; border-radius: 5px; object-fit: cover; flex: none; }
.wp-cm-s span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-cm-b { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--tk-ink); white-space: pre-line; overflow-wrap: anywhere; }
.wp-cm-m { margin: 8px 0 0; display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--tk-faint); }
.wp-cm-m span { display: inline-flex; align-items: center; gap: 4px; }
.wp-empty { margin: 0; padding: 48px 0; text-align: center; font-size: 15px; color: var(--tk-faint); }
