/* 마이 · 세무사 프로필 · 세무사 상세 (D-139).
   세 화면이 같은 카드 언어를 쓴다 — 프로필 편집에서 무엇을 채우면 상세의 어느 카드가
   바뀌는지가 모양으로 읽혀야 해서, 제목·여백·구분선 규칙을 한 파일에 모았다.

   색·타이포는 tokens.css 그대로. 여기서는 배치만 정한다. */

/* ══ 공통 ══════════════════════════════════════════════════════ */
/* 설정 화면은 세무사가 매일 여는 도구다 — 여백을 넉넉히 두고 카드를 크게 잡아
   '작업하는 화면'의 무게를 준다(D-140). 색은 그대로, 배치만 바꾼다. */
.my, .prof, .prof-edit { display: flex; flex-direction: column; gap: 16px; }
.my .card, .prof .card, .prof-edit .card {
  border-radius: var(--r-xl); padding: 22px 24px;
}

.my-h, .prof-h, .pe-h {
  font-size: 17px; font-weight: 700; letter-spacing: -.35px; margin: 0;
}
.my-sec-head, .prof-h-row, .pe-card-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.my-more { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--primary); }
.my-h-sum, .prof-h-count {
  margin-left: auto; font-size: 13px; font-weight: 700; color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.my-empty, .prof-empty {
  margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-tertiary);
}
.badge-admin { background: #FFF3E8; color: #C2410C; }

/* ══ 마이 (의뢰인) ═════════════════════════════════════════════ */
.my-hero { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.my-hero-main { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.my-photo {
  width: 60px; height: 60px; flex: 0 0 60px; border-radius: var(--r-full);
  object-fit: cover; background: var(--surface-alt);
}
.my-photo-empty {
  display: grid; place-items: center;
  font-size: 22px; font-weight: 700; color: var(--primary); background: var(--primary-light);
}
.my-id { min-width: 0; }
.my-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.my-name { font-size: 19px; font-weight: 700; letter-spacing: -.3px; }
.my-sub {
  margin-top: 3px; font-size: 13px; color: var(--text-tertiary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 32ch;
}
.my-hero-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 한눈에 — 상자 셋을 흩어 놓는 대신 **한 패널을 구분선으로 나눈다.**
   같은 성격의 수치라 테두리가 셋이면 서로 무관해 보인다. 계기판처럼 한 덩어리로. */
.my-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px 0; }
.my-stat {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 16px 12px; color: inherit; border-right: 1px solid var(--divider);
  transition: background .15s ease;
}
.my-stat:last-child { border-right: 0; }
.my-stat:hover { background: var(--surface-alt); }
.my-stat-n {
  font-size: 28px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -.8px; font-variant-numeric: tabular-nums; line-height: 1.1;
}
/* 라벨을 작게·넓은 자간으로 — 숫자가 주인공이고 라벨은 단위처럼 읽히게. */
.my-stat-l {
  font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--text-secondary);
}
.my-stat-s { font-size: 11.5px; color: var(--text-tertiary); }

/* 목록 줄 — 예약·구매가 같은 모양이라 눈이 한 번만 적응하면 된다. */
.my-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--divider); color: inherit;
}
.my-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.my-row-main { min-width: 0; }
.my-row-title { font-size: 15px; font-weight: 600; }
.my-row-meta { margin-top: 3px; font-size: 12.5px; color: var(--text-tertiary); }
.my-row-right { text-align: right; white-space: nowrap; }
.my-row-amount {
  margin-top: 4px; font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.my-note {
  margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--border);
  font-size: 12px; line-height: 1.6; color: var(--text-tertiary);
}

.my-quote { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.my-quote-n { font-size: 22px; font-weight: 700; color: var(--primary); }
.my-quote-s { font-size: 14px; color: var(--text-secondary); }
.my-quote-cta { margin-top: 12px; align-self: flex-start; }

.my-links { padding: 4px 16px; }
/* 세무사 계정 화면(/mypage/account, D-797) — 머리 한 줄 + 문 묶음 + 로그아웃. */
.my-account-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.my-account-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: var(--ls-xl); }
.my-account-logout { margin-top: 16px; }
.my-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--divider);
  font-size: 15px; font-weight: 500; color: inherit;
}
/* 나의 이용 배지(D-444) — «새 계약서 N»·«진행 중 N». 놓치면 안 되는 상태만 파랑 필로. */
.my-use-badge {
  display: inline-block; font-size: 11px; font-weight: 800;
  color: #fff; background: var(--primary); border-radius: 999px;
  padding: 2px 9px; margin-right: 4px; vertical-align: 1px;
}
.my-link:last-child { border-bottom: 0; }
/* 회원 탈퇴처럼 **찾으면 있지만 눈에 먼저 띌 필요는 없는** 줄.
   빨강으로 칠하지 않는다 — 이 줄은 아직 아무것도 지우지 않고 고지 화면으로만 가고,
   설정 목록에서 빨간 글자 하나가 시선을 독차지하면 그 위의 알림·공지가 안 읽힌다.
   위험 표시는 실제로 지우는 화면(account-delete)의 빨간 버튼 하나면 충분하다. */
.my-link-quiet { color: var(--text-tertiary); }

/* ── 마이 프로필 히어로 (D-400, 시안 D) ─────────────────────────────
   틴트 히어로 + 지표 스트립이 한 카드. 탭은 토스 세그먼트(예약 화면과 같은 문법). */
.my2-hero-card { padding: 0; overflow: hidden; }
.my2-hero {
  display: flex; align-items: center; gap: 16px; padding: 22px 24px;
  background: linear-gradient(135deg, #EAF3FF, #F6FAFF);
}
.my2-id { min-width: 0; }
.my2-meta {
  margin-top: 3px; font-size: 12.5px; color: var(--text-tertiary);
  display: flex; gap: 6px; flex-wrap: wrap;
}
.my2-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.my2-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.my2-stat {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 13px 8px 12px; border-left: 1px solid var(--divider);
  color: inherit; text-decoration: none; text-align: center; min-width: 0;
}
.my2-stat:first-child { border-left: 0; }
a.my2-stat:hover { background: var(--grey50); }
.my2-stat-v { font-size: 17px; font-weight: 800; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.my2-stat-k { font-size: 11.5px; font-weight: 700; color: var(--text-secondary); }
.my2-stat-s { font-size: 11px; color: var(--text-tertiary); }
.my2-tabs {
  display: flex; gap: 4px; width: max-content; max-width: 100%;
  background: var(--grey100); border-radius: 12px; padding: 4px;
  /* 우측 정렬(D-455, 사용자 지시) — 히어로 카드의 행동 버튼들과 같은 오른쪽 축. */
  margin: 4px 0 0 auto;
}
.my2-tabs[hidden] { display: none; }
.my2-tab {
  border: 0; background: none; cursor: pointer; font: inherit;
  font-size: 13.5px; font-weight: 700; color: var(--text-tertiary);
  border-radius: 9px; padding: 8px 20px;
}
.my2-tab[aria-selected="true"] { background: var(--surface); color: var(--text-primary); box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
@media (max-width: 700px) {
  .my2-hero { flex-wrap: wrap; }
  .my2-actions { margin-left: 0; width: 100%; justify-content: flex-start; }
  .my2-strip { grid-template-columns: repeat(2, 1fr); }
  .my2-stat:nth-child(3) { border-left: 0; }
  .my2-stat:nth-child(n+3) { border-top: 1px solid var(--divider); }
}

/* ══ 세무사 상세 — A안 「초록 점 스플릿」 (D-384) ═════════════
   로톡형 2단(본문+우측 인물 카드)은 은퇴 — 헤로가 전폭 스플릿(사진 400px | 내용)이고,
   아래 카드(성공사례·후기·위치)는 읽기 폭으로 제한한다(전폭 산문은 눈이 길을 잃는다). */
.prof-layout { display: block; }
/* 한 폭(D-759, 후보 2) — 아래 카드의 오른쪽 끝이 헤로(전폭)와 같다. 예전 860px 상한은 «전폭 산문은 눈이 길을
   잃는다»가 이유였는데, 길을 잃게 하는 것은 카드 폭이 아니라 «글줄 폭»이다 — 그래서 상한은 글줄(후기 본문·
   사례 제목·발췌)에만 읽기 폭 토큰(--reading-max 760px)으로 남긴다. 가장자리가 두 단(1008/860)이면
   카드가 헤로의 부속으로 읽혔다. (.prof-back 꼬리는 D-753에서 은퇴)
   ⚠ 리터럴 px를 쓰지 않는다 — LayoutWidthTest가 «-sec» 선택자의 고정 폭을 고아 숫자로 잡는다. */
.prof-main .rev-body, .prof-main .scv-title, .prof-main .scv-excerpt { max-width: var(--reading-max); }

/* ── 헤로: 좌 9:16 사진 컬럼 + 우 고정 영역 열 ─────────────────────
   🔴 다섯 영역의 위치 고정이 이 블록의 계약이다(사용자 지시, PhSplitCssContractTest):
     ① 제목: min-height로 2줄 자리를 늘 예약, 3줄째부터 말줄임(-webkit-line-clamp).
     ② 소개말: 상자 height 고정(5줄, D-385) — 짧아도 안 줄고 길어도 안 민다.
     ③ 지표 스트립: height 고정.  ④ 약력: min-height 3줄(경력 한 줄에 하나, 늘면 자란다 — D-807).
     ⑤ CTA: margin-top:auto — 남는 공간을 전부 위에서 흡수해 **항상 바닥**.
   사진 컬럼(aspect-ratio 9/16)이 헤로 높이를 정한다 — 내용은 그 안에서만 논다. */
.ph-split {
  display: grid; grid-template-columns: 400px minmax(0, 1fr);
  border: 1px solid var(--border); border-radius: var(--r-xl);
  overflow: hidden; background: var(--surface);
}
/* 사진 열 — 9:16이 헤로의 **바닥 높이**를 정한다. D-807부터 오른쪽 열(경력 줄)이 그보다 길어질 수 있어
   align-self: stretch로 그리드 행을 따라 늘인다 — 없으면 aspect-ratio 상자가 start에 붙어 사진 아래 흰 띠가 남는다
   (실측: 경력 12줄에서 210px). width: 100%가 함께 있어야 한다 — stretch만 주면 aspect-ratio가 늘어난 높이에서
   가로를 다시 계산해 사진이 열 밖(518px)으로 번진다(실측). 두 축이 모두 정해지면 aspect-ratio는 행 높이 계산에만 남는다. */
.ph-photo { position: relative; aspect-ratio: 9 / 16; min-height: 0; align-self: stretch; width: 100%; }
.ph-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 20%;   /* 얼굴은 위쪽에 있다 */
  display: block; background: var(--surface-alt);
}
.ph-img-empty {
  display: grid; place-items: center; font-size: 76px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, #3182F6, #1B64DA);
}
.ph-presence {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .93); border-radius: var(--r-full);
  padding: 6px 13px; font-size: 12.5px; font-weight: 700; color: var(--text-secondary);
}
/* 비구독 세무사의 «같은 자리»(Q-307 · D-735) — 점 없이 고지 한 줄.
   값은 /directory 고지(`.dir-depth-note`, app.css:355)와 **같은 세 개**다: 12.5px · 1.5 ·
   --text-tertiary. 두 지면이 같은 사실을 다른 톤으로 말하면 한쪽이 더 중요해 보인다.
   ⚠ 굵기를 400으로 내린다 — `.ph-presence`는 700(상태 배지)이지만 이 줄은 상태가 아니라
     «사실 안내»다. 굵게 세우면 없는 상태를 있다고 읽힌다.
   ⚠ 사진 폭이 좁아지는 구간에서 사진 밖으로 나가지 않게 max-width로 묶고 keep-all로 접는다
     (`.ph-presence`가 left:16px absolute라 남는 폭은 100% - 32px이다). */
.ph-presence-note {
  font-weight: 400; font-size: 12.5px; line-height: 1.5;
  color: var(--text-tertiary); word-break: keep-all;
  max-width: calc(100% - 32px);
}
/* 이름 락업 — 다크밴드 대신 그라디언트. 어두운 배경 위 흰 글자는 grayscale AA(헤일레이션 방지).
   D-753(사용자 지시 「이름과 폰트가 더 크게 잘 보이도록」): 이름 28→34px, 아래 줄 13.5→16px·흰색 100%,
   그라디언트를 조금 더 진하게(.82→.88)·높게(56→72px 위 여백) — 글자가 커진 만큼 배경도 받쳐야 읽힌다. */
.ph-lockup {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 72px 26px 24px; color: #fff;
  background: linear-gradient(180deg, rgba(25, 31, 40, 0), rgba(25, 31, 40, .88) 62%);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.ph-nm { display: flex; align-items: center; gap: 10px; font-size: 34px; font-weight: 800; letter-spacing: -.8px; line-height: 1.2; }
.ph-nm .ph-dot { font-style: normal; color: var(--success); margin-left: -10px; }  /* 이름에 붙는 초록 점(D-085) */
.ph-badge { background: rgba(255, 255, 255, .18); color: #fff; font-size: 13px; padding: 3px 10px; }
/* 아래 줄 — 지역 먼저, 상호 다음(D-753). 한 줄 말줄임은 그대로. */
.ph-of {
  margin-top: 6px; font-size: 16px; font-weight: 500; color: #fff; letter-spacing: var(--ls-lg);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* (편집 모드의 사진 연필 자리 .pe2-row-photo는 D-788에서 걷었다 — 편집 표식은 profile-edit.css에만 둔다.) */

.ph-main { display: flex; flex-direction: column; min-width: 0; padding: 34px 38px 28px; }
/* ① 제목 — 2줄 자리 고정. */
.ph-headline {
  margin: 0; font-size: 25px; font-weight: 800; letter-spacing: -.5px; line-height: 1.4;
  word-break: keep-all; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(2 * 1.4em);
}
/* ② 소개말 — 인용문 스타일(D-386, 시안 B 확정) · 5줄 자리 고정(D-385).
   회색 상자(--surface-alt)는 은퇴 — 지표·약력과 같은 회색조라 «사람의 말»로 안 읽혔다.
   상자 대신 **큰 초록 따옴표**(로고 점과 같은 --success)가 영역 표시를 대신한다.
   ⚠ height는 상자 시절 값 그대로다(패딩만 재배치) — 값을 바꾸면 ③~⑤ 영역이 통째로
     이동해 D-384의 «항상 일정한 화면» 계약이 깨진다. */
/* D-759(후보 5): 14.5px/500 회색 → 16px/400 잉크, 줄 1.7. 소개말은 이 화면의 유일한 «사람의 말»인데 캡션
   크기·회색이라 제목의 부속으로 읽혔다. 굵기 대신 크기로 세운다. 상자 높이는 같은 «5줄» 계약이고 em이
   글자를 따라오므로 148 → 164px — 9대16 사진 열 안에 여전히 든다(오른쪽 열 합 ≈ 580 < 711). */
.ph-hello {
  position: relative; margin-top: 18px; padding: 4px 8px 0 44px;
  font-size: 16px; line-height: 1.7;
  height: calc(5 * 1.7em + 28px); overflow: hidden;
}
/* 따옴표는 글자가 아니라 장식이다 — 세리프가 있어야 따옴표답게 굽는다(Noto Sans의
   따옴표는 밋밋한 쐐기라 인용 인상이 안 선다). */
.ph-hello::before {
  content: '\201C'; position: absolute; left: 4px; top: -2px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 46px; font-weight: 900; line-height: 1; color: var(--success);   /* 58 → 46: 제목과 다투지 않게(D-759) */
}
/* 🔴 white-space: pre-line (D-807) — 세무사가 textarea에서 친 줄바꿈이 화면에 살아야 한다. 옛 소개 카드
   (.prof-intro, D-384 은퇴)에는 이 규칙이 있었는데 헤로로 옮기며 빠져, 개행한 소개가 한 줄로 이어 붙었다
   (사용자 지적). pre-wrap이 아니라 pre-line인 이유: 연속 공백은 접고 줄바꿈만 살린다 — 5줄 계약(line-clamp)은
   그대로이고, 빈 줄도 한 줄로 센다(친 그대로). */
.ph-hello-t {
  margin: 0; color: var(--text-primary); font-weight: 400; word-break: keep-all;
  white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.ph-hello-empty { color: var(--text-tertiary); }
/* ③ 지표 띠 — 높이 고정(78px), 값은 한 줄 말줄임 (D-750, 사용자 확정 「숫자가 말하는 띠」).
   네 변 테두리 상자(72px·값 16.5px)는 은퇴 — 상자 안 작은 글자는 «표»로 읽혔고, 위아래 괘선만 남긴
   띠 위의 20px 숫자는 «근거»로 읽힌다. 첫 칸은 왼쪽 패딩 0 — 숫자가 제목·소개와 같은 왼쪽 끝선에 선다.
   ⚠ `:first-of-type`이다 — 예전 편집 모드(D-477)에선 연필 <a class="pe2-btn">가 첫 자식이라 `:first-child`가
     빗나갔다(편집 화면에서만 첫 칸에 왼쪽 선이 하나 더 섰다). 연필은 D-788에서 걷었지만 규칙은 그대로 안전하다. */
.ph-strip {
  margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr 1.6fr;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  height: 78px; overflow: hidden;
}
.ph-cell {
  padding: 0 18px; border-left: 1px solid var(--divider); min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
}
.ph-cell:first-of-type { border-left: 0; padding-left: 0; }
.ph-cell .k { font-size: 12px; font-weight: 500; color: var(--text-tertiary); letter-spacing: var(--ls-sm); }
.ph-cell .v {
  margin-top: 3px; font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: var(--ls-xl);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ph-cell .v.num { font-variant-numeric: tabular-nums; }
/* 후기 수 — 평점 뒤의 작은 글자(「4.7 후기 3건」). ★는 D-750에서 걷었다: 라벨이 이미 「평점」이다. */
.ph-cell .v small { font-size: 13px; font-weight: 500; color: var(--text-tertiary); letter-spacing: var(--ls-md); margin-left: 2px; }
.ph-cell .ph-v-spec { font-size: 14.5px; font-weight: 500; padding-top: 2px; line-height: 1.35; letter-spacing: var(--ls-md); }
/* ④ 약력 — ✓ 줄 목록. 경력은 **한 줄에 하나씩**(D-807, 사용자 지시 「경력을 여러 개 입력했을 때 자동으로
   개행되어 보이도록」) — 예전엔 «·»로 이어 한 줄에 말줄임했다(3줄 고정). 이제 높이는 **min-height 3줄**
   (경력 0~1개일 때의 바닥 = 옛 고정값이라 짧은 프로필의 화면은 그대로)이고, 경력이 늘면 그만큼 자란다.
   ⑤ CTA는 margin-top:auto라 여전히 바닥에 선다 — 경력 4줄까지는 사진(9:16) 안의 여유(≈128px)가 흡수하고,
   그보다 많으면 헤로가 자라고 사진 열이 그리드를 따라 늘어난다(object-fit: cover — 사진이 찌그러지진 않는다).
   안내 두 줄(상담노트·방문)은 그대로 한 줄 말줄임. */
.ph-flow {
  margin-top: 18px; display: flex; flex-direction: column; gap: 9px;
  font-size: 14px; line-height: 1.55; color: var(--text-secondary);
  min-height: calc(3 * 1.55em + 18px); overflow: hidden;
}
.ph-row { display: flex; gap: 9px; min-width: 0; white-space: nowrap; }
.ph-row > span:last-child { overflow: hidden; text-overflow: ellipsis; }
/* 경력 줄 — 자르지 않고 접는다. 30자 경력이 폰(≤390) 한 줄엔 안 들어가 «…»로 죽던 것을 막는다(개행이 취지). */
.ph-row-career { white-space: normal; }
.ph-row-career > span:last-child { overflow: visible; text-overflow: clip; word-break: keep-all; overflow-wrap: anywhere; }
.ph-tick { color: var(--success); font-weight: 800; flex: 0 0 auto; }
/* ⑤ CTA — 항상 바닥. margin-top:auto가 위의 모든 여유를 흡수한다. */
.ph-cta { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.ph-cta-row { display: flex; gap: 10px; }
.ph-cta-row form { flex: 1; display: flex; }
.ph-cta-row .btn { flex: 1; padding: 14px 8px; font-weight: 700; }
.ph-none { margin: 0; font-size: 13px; color: var(--text-tertiary); text-align: center; }
.ph-edit-link { width: 100%; padding: 13px 8px; }

/* 900 이하 — 사진이 위, 내용이 아래로 쌓인다. 세로 9:16은 폰 화면을 통째로 먹으니
   4:5로 낮춘다(락업·배지는 그대로). 영역 높이는 고정을 유지해 프로필 간 일관성을 지킨다. */
@media (max-width: 900px) {
  .ph-split { grid-template-columns: minmax(0, 1fr); }
  .ph-photo { aspect-ratio: 4 / 5; }
  .ph-main { padding: 22px 20px 22px; }
  /* 지표 띠(D-750): 위 줄에 경력·평점, 아래 줄에 주요 분야가 두 칸을 가로지른다(전체 폭이라 분야가 덜 잘린다). */
  .ph-strip { grid-template-columns: 1fr 1fr; height: 150px; }
  .ph-cell { padding: 0 16px; }
  .ph-cell-spec { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--divider); }
}
/* (옛 제목 헤로·라벨 열 .prof-meta/.prof-who/.prof-facts는 D-384에서 은퇴 — ph-*가 대체) */

/* 🔴 여기 **짝 없는 닫는 중괄호 하나**가 서 있었다(D-384 정리 때 남은 것으로 보인다).
   CSS 파서는 그 자리에서 오류 복구에 들어가 **다음 규칙 하나를 통째로 버린다** — 그 다음
   규칙이 하필 `.bk-modal`(예약 모달의 폭·가운데 정렬)이라, 모달이 UA 기본값으로 떨어져
   **화면 왼쪽 위 구석에 1,067px 폭으로** 떴다(실측 2026-09-12, CSSOM에 그 규칙이 아예 없었다).
   파일은 멀쩡해 보이고 브라우저도 아무 말을 하지 않는다 — CssBraceBalanceTest가 이 짝을 잰다. */

/* (우측 aside 인물 카드 .aside-*는 D-384에서 은퇴 — 사진·CTA는 헤로 .ph-*가 맡는다) */

/* ── 예약 모달 (D-144) — 슬롯은 여기서만 나타난다 ─────────────── */
.bk-modal {
  width: min(480px, calc(100vw - 32px));
  border: 0; border-radius: var(--r-xl); padding: 0;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
  /* 전역 리셋이 dialog UA 스타일의 margin:auto를 지워 좌상단에 붙는다(실측) — 복원해야 가운데 선다. */
  margin: auto;
}
.bk-modal::backdrop { background: rgba(15, 23, 42, .45); }
.bk-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px 22px 0;
}
.bk-title { font-size: 18px; font-weight: 700; letter-spacing: -.3px; }
.bk-sub { margin-top: 2px; font-size: 13px; color: var(--text-tertiary); }
/* 안쪽은 인라인 SVG다(fragments/chat-icons :: close). 전역 `svg{display:block}` 때문에
   가운데 정렬은 버튼이 직접 해야 한다 — 안 하면 아이콘이 왼쪽 위에 붙는다.
   크기는 같은 32px 버튼인 chat.css의 .ls-sheet-x와 맞춘다. */
.bk-close {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; padding: 0; background: var(--surface-alt); border-radius: var(--r-full);
  width: 32px; height: 32px; cursor: pointer; color: var(--text-secondary);
}
.bk-close svg { width: 18px; height: 18px; }
/* ── 만들어지는 티켓 (D-745, 시안 A) — 머리와 본문 사이의 옅은 띠. 규칙은 ticket.css(.rsv-tk)가 정본이고
   여기는 모달에 맞춘 여백·크기와 «빈 칸» 상태뿐이다. ⚠ .rsv-tk-when의 폭 92px·점선 오른쪽 괘선은 상세와 같다. */
.bk-ticket {
  margin: 14px 22px 0; padding: 14px 16px;
  background: var(--surface-alt); border-radius: var(--r-lg);
}
/* 🔴 날짜 기둥은 높이를 잡아 둔다(D-704) — 세 상태(빈 칸·날짜만·시간까지)의 줄 수가 달라 띠가
   76→93→73px로 들썩였다(실측). 가장 큰 상태만큼 미리 잡고 안에서 세로 가운데 세운다. */
.bk-ticket .rsv-tk-when {
  min-height: 84px; display: flex; flex-direction: column; justify-content: center;
}
.bk-ticket .rsv-tk-when b { font-size: 24px; }
.bk-ticket .rsv-tk-who { font-size: 18px; }
.bk-ticket .rsv-tk-what { font-size: 14px; }
/* 아직 안 고른 칸 — 글자를 옅게. 자리는 그대로(고르면 같은 자리에 값이 들어온다, D-704). */
.bk-tk-when.is-empty b { color: var(--text-tertiary); font-size: 18px; font-weight: 500; }
.bk-tk-when.is-empty i { white-space: normal; line-height: 1.35; }
/* 날짜는 골랐고 시간은 아직 — 시간 줄이 옅은 안내로 선다. */
.bk-tk-when em.is-hint { color: var(--text-tertiary); font-weight: 400; font-size: 12px; line-height: 1.3; white-space: normal; }
/* 본문만 스크롤 — 머리(무엇의 예약인지)와 발(금액·확인)은 항상 보인다. */
.bk-body { padding: 4px 22px 8px; max-height: min(52vh, 460px); overflow-y: auto; }
.bk-foot {
  padding: 12px 22px 18px; border-top: 1px solid var(--divider);
  background: var(--surface);
}
.bk-foot .bw-amount { margin-top: 0; padding-top: 0; border-top: 0; }
/* 날짜 칩은 한 줄 가로 스크롤 — 2주치가 세로로 쌓이면 다시 '진열'이 된다.
   ⚠ .bw-chips(wrap)가 파일 뒤쪽에 있어 같은 특정도면 진다 — 결합 선택자로 이긴다. */
.bw-chips.bw-dates { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.bw-chips.bw-dates .slot-chip { flex: 0 0 auto; }

.bw-step { margin-top: 14px; }
.bw-label { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.bw-prod {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--r-md); cursor: pointer;
  margin-bottom: 8px; background: var(--surface);
}
.bw-prod:last-of-type { margin-bottom: 0; }
.bw-prod:has(input:checked) {
  border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary);
  background: var(--surface-alt);
}
.bw-prod input { accent-color: var(--primary); flex: 0 0 auto; }
.bw-prod-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.bw-prod-title { font-size: 14px; font-weight: 600; }
.bw-prod-meta { font-size: 12px; color: var(--text-tertiary); }
.bw-prod-price {
  font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums;
}
/* 날짜·시간 칩은 예약 페이지의 .slot-chip을 그대로 쓰되, 카드 폭이 좁아 조금 줄인다. */
.bw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bw-chips .slot-chip { min-width: 0; padding: 8px 11px; font-size: 13.5px; border-radius: 8px; }
/* 오전·오후 구분 (D-181, 사용자 지시) — 하루치를 한 줄로 늘어놓으면 원하는 시간대를 눈으로
   찾아야 한다. JS가 그룹마다 .bw-chips 한 줄을 넣는다(tax-booking.js). */
/* 오전/오후 그룹 — 제목 줄은 D-746에서 걷었다(칩이 «오전 10:00»으로 말한다). 줄 사이 간격이 경계다.
   ⚠ .bw-time-group 규칙을 되살리지 마라 — JS가 더는 그 요소를 만들지 않는다. */
.bw-times > .bw-chips + .bw-chips { margin-top: 10px; }
/* 빈 상태 — 「없다」로 끝내지 않고 **그 자리에서 할 수 있는 일**을 함께 준다(D-741). */
.bw-none {
  margin: 14px 0 0; padding: 18px 14px; border-radius: var(--r-md);
  background: var(--surface-alt); font-size: 13.5px; line-height: 1.7;
  color: var(--text-secondary); text-align: center;
}
.bw-none p { margin: 0; }
.bw-none .btn { margin-top: 12px; min-width: 200px; }
/* 결제금액 — 확인 직전에 얼마가 나가는지 한 줄로 못박는다(수수료 없음, 상품가 그대로). */
.bw-amount {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--divider);
  font-size: 14px;
}
.bw-amount b {
  font-size: 18px; font-weight: 700; color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.bw-submit { width: 100%; margin-top: 12px; }
.bw-submit:disabled { opacity: .55; cursor: not-allowed; }
.bw-note {
  margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: var(--text-tertiary);
  text-align: center;
}

.prof-sec { }
.prof-intro {
  margin: 0; font-size: 15px; line-height: 1.75; color: var(--text-secondary);
  white-space: pre-line;
}

/* ── 접기/펼치기 (D-146) ──────────────────────────────────────────
   긴 소개·경력이 화면을 다 먹으면 아래 상품·후기까지 내려가지 못한다. 기본 5줄만 보이고
   v 버튼으로 펼친다.
   ⚠ line-clamp가 아니라 **max-height**를 쓰는 이유: line-clamp는 애니메이션되지 않아
     펼칠 때 화면이 툭 튄다. `--fold-lines × 줄높이`로 접어야 부드럽게 늘어난다.
     JS가 실제 넘침을 재서 버튼을 켜므로(prof-fold.js), 5줄 이하 내용에는 버튼이 안 붙는다. */
/* ⚠ 접힘은 **JS가 `is-foldable`을 붙였을 때만** 걸린다. CSS로 무조건 접으면 스크립트가
   죽은 환경에서 글이 잘린 채 펼칠 버튼도 없는 상태가 된다 — 그럴 바엔 안 접는 게 낫다. */
.fold { position: relative; }
.fold-body {
  --fold-lines: 5;
  transition: max-height .28s cubic-bezier(.4, 0, .2, 1);
}
.fold.is-foldable .fold-body { overflow: hidden; }
/* 소개: 15px × line-height 1.75 → 한 줄 1.75em. */
.fold.is-foldable .prof-intro.fold-body { max-height: calc(var(--fold-lines) * 1.75em); }
/* 경력: li 하나가 위아래 5px 여백 + 1.6em 줄높이. 5개까지 보인다. */
.fold.is-foldable .prof-career.fold-body { max-height: calc(var(--fold-lines) * (1.6em + 10px)); }
/* 접힌 상태에서만 아래를 흐려 "더 있다"를 알린다 — 펼치면 마스크를 걷는다. */
.fold.is-foldable:not(.is-open) .fold-body {
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
}
.fold.is-foldable.is-open .fold-body { max-height: none; }

/* 애플식 — 테두리도 배경도 없이 v 하나. 눌리는 영역은 44px로 넓게 잡는다. */
.fold-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 44px; margin-top: 2px;
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--text-tertiary);
  -webkit-tap-highlight-color: transparent;
}
/* ⚠ display를 주는 순간 UA의 `[hidden]{display:none}`을 이겨 버린다 — 숨겼다고 믿은
   버튼이 화면에는 그대로 보였다(실측). hidden일 때를 명시적으로 다시 눌러 준다. */
.fold-btn[hidden] { display: none; }
.fold-btn:hover { color: var(--text-secondary); }
.fold-btn:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--r-sm);
}
.fold-chev {
  width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.fold.is-open .fold-chev { transform: rotate(180deg); }

/* 모션을 줄이도록 설정한 사용자에게는 늘어남·회전을 걸지 않는다(펼침 자체는 그대로). */
@media (prefers-reduced-motion: reduce) {
  .fold-body, .fold-chev { transition: none; }
}
/* ⚠ font-size는 **ul에** 둔다(li가 아니라). 접힘 높이 계산이 `1.6em`을 쓰는데 그 em은
   ul 기준으로 풀리므로, li에만 크기를 주면 5개가 아니라 5.4개가 보인다(실측). */
.prof-career { margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
/* line-height·padding을 못박는다 — .prof-career.fold-body의 5줄 계산이 이 값에 의존한다. */
.prof-career li {
  position: relative; padding: 5px 0 5px 14px; line-height: 1.6;
  color: var(--text-secondary);
}
.prof-career li::before {
  content: ''; position: absolute; left: 0; top: 13px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--primary);
}

/* (옛 상품 '줄' 스타일은 D-144에서 목적 카드(.prod-card)로 대체되어 제거했다 —
   가격·예약 줄이 좌우로 늘어선 리스트는 로톡형 카드보다 정보가 눌려 보였다.) */

/* ── 최근 후기 R1 «인용 스포트라이트»(D-770, 디자인 파트너 의뢰 — 사용자 확정) ──
   순서는 본문 → 바이라인 → 사진. 본문이 주인공: 큰 인용 부호(행의 ::before, 잉크 파랑을 옅게) 아래 17px/1.7·500으로
   먼저 읽히고, 별·가린 닉네임·작성일은 그 아래 한 줄의 조용한 바이라인(13px, 메타 톤, 가운뎃점으로 이어짐)이다.
   D-759의 «별이 먼저·날짜는 오른쪽 끝» 행(.rev-top)은 걷었다. 별은 그대로(후보 6 미결).
   🔴 인용 부호는 **행의 ::before 하나**다 — app.css의 D-280 «본문 양끝 따옴표»(.rev-body::before/after)는 이 지면에서
      끄지 않으면 부호가 세 개가 된다(아래 override). 홈 카드(.rv-body)의 따옴표는 그대로다. */
.rev-item { padding: 20px 0 22px; border-bottom: 1px solid var(--divider); }
.rev-item:first-of-type { padding-top: 12px; }
.rev-item:last-of-type { border-bottom: 0; padding-bottom: 4px; }
.rev-item::before {
  content: '\201C'; display: block; height: 22px; margin-bottom: 8px;
  font-size: 44px; line-height: 1; font-weight: 700; color: var(--primary); opacity: .28;
}
.rev-body {
  margin: 0; font-size: 17px; line-height: 1.7; font-weight: 500; color: var(--text-primary); word-break: keep-all;
}
.prof-main .rev-body::before, .prof-main .rev-body::after { content: none; }   /* D-280 양끝 따옴표 끔 — 부호는 행 머리 하나 */
.rev-by { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; margin-top: 12px; font-size: 13px; color: var(--text-secondary); }
.rev-by .star { color: var(--warning); font-size: 13px; letter-spacing: 1px; }
.rev-who { font-weight: 500; color: var(--text-secondary); }
.rev-date { color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
/* 바이라인 사이의 가운뎃점 — 글자 사이 구분자(상태 기호가 아니다). */
.rev-by > * + *::before { content: '\B7'; margin: 0 8px; color: var(--text-tertiary); }
/* 후기 첨부 사진 (D-148) — 정사각 썸네일. 원본 비율이 제각각이라 그대로 두면 줄이 어긋난다. 바이라인 아래. */
.rev-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rev-photo {
  width: 88px; height: 88px; flex: 0 0 auto; border-radius: var(--r-sm);
  overflow: hidden; border: 1px solid var(--border); background: var(--surface-alt);
}
.rev-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rev-photo:hover { border-color: var(--primary); }

/* ── 위치 (D-181 → D-752 «지도 | 글» → D-772 P1) — '사무소 위치'라는 분류명 대신 **부르는 말**을 제목 자리에 둔다.
   D-752(사용자 확정, 시안 B): 헤로와 같은 문법 — 왼쪽 열이 지도(카드 가장자리까지), 오른쪽이 글.
   D-772(디자인 파트너 P1): 지도 열 = 카드 절반(1fr 1fr)·380px, 글 열은 리드+사실 묶음이 세로 가운데 한 덩이.
   두 열은 **지도가 떴을 때만**(`:has(.is-ready)`) —
   SDK가 못 뜨면 카드는 글만 있는 한 열이다(빈 왼쪽 열 금지, D-139와 같은 취지).
   ⚠ 이 카드의 padding 0·격자·둥글기 클립은 전부 `:has()` 가지 안에 있다 — 기본값(한 열)은 다른 카드와 같다. */
.prof-place-lead {
  margin: 0; font-size: 22px; font-weight: 700; line-height: 1.45;
  letter-spacing: -.5px;
}
.prof-place-text { display: flex; flex-direction: column; min-width: 0; }
.prof-place .prof-h-row { margin-bottom: 0; }   /* 제목 ↔ 사실 묶음 간격은 .prof-place-facts의 padding-top 하나가 정한다 */
/* 사실 묶음 — 상호 · 주소 · 홈페이지 · 길찾기가 세로 한 덩이. 지도 열 옆에서는 리드와 함께 세로 가운데(아래 :has 가지). */
.prof-place-facts { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 16px; }
.prof-place-name { font-size: 16px; font-weight: 700; letter-spacing: -.3px; }
/* 홈페이지 링크 — 밑줄로만 링크임을 알린다(파랑 버튼처럼 튀면 주소보다 먼저 읽힌다). */
.prof-place-link {
  margin-top: 2px; font-size: 13px; color: var(--text-tertiary);
  text-decoration: underline; text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.prof-place-link:hover { color: var(--primary); }
/* 「지도에서 길찾기」(D-772) — 사실 묶음의 마지막 줄. 홈페이지 링크(회색 밑줄)보다 한 단 또렷한 **글자 링크**(잉크 파랑
   14px/500) — 버튼으로 세우지 않는다(주소보다 먼저 읽히면 안 된다). 작은 외부이동 화살표는 SVG(글자 기호 금지, design.md). */
.prof-place-dir {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 10px;
  font-size: 14px; font-weight: 500; color: var(--primary);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(49, 130, 246, .35);
}
.prof-place-dir:hover { text-decoration-color: currentColor; }
.prof-place-dir-i { flex: none; opacity: .8; }
.prof-place .prof-addr { margin: 0; color: var(--text-primary); }
.prof-place-nomap { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--divider); }

.prof-addr { margin: 0 0 12px; font-size: 14.5px; color: var(--text-secondary); }
/* 지도는 **실제로 그려졌을 때만** 보인다. 처음부터 상자를 띄워 두면 SDK가 못 뜬 환경에서
   빈 회색 네모만 남아 "지도가 고장났나" 싶어진다 — 주소는 이미 글로 적혀 있으므로
   지도가 없으면 그냥 없는 게 낫다. `is-ready`는 profile-map.js가 성공했을 때만 붙인다.
   ⚠ 옛 값(260px·둥글기·margin-top)은 D-752에서 걷었다 — 뜬 지도는 아래 격자 가지가 왼쪽 열로 세운다. */
.prof-map { display: none; overflow: hidden; background: var(--surface-alt); }
.prof-map.is-ready {
  display: block;
  /* D-816: 네이버 줌 컨트롤 z-index가 고정 상단바(30)를 뚫고 브랜드를 가리지 않게
     이 상자 안에서 스택을 끝낸다. overflow만으로는 자식의 큰 z-index가 상단바 위에 그린다. */
  position: relative; z-index: 0; isolation: isolate; contain: paint;
}

/* «지도 | 글» 격자 — 지도가 떴을 때만. D-772(P1): 지도 열은 **카드의 절반**(1fr 1fr)·**380px** — 옛 400px 고정
   (헤로 사진 열과 같은 폭)은 걷었다(지도가 좁고 글 열만 넓어 허공이 컸다). 글 열은 리드 → 사실 묶음이 한 덩이로
   세로 가운데(justify-content:center) — 옛 «사실 묶음 바닥(margin-top:auto)»은 지도가 커지자 가운데가 허공이 됐다.
   🔴 DOM은 글이 먼저다 — 지도는 grid-column 1로 놓는다(order로 뒤집지 않는다, 읽는 차례 유지). */
.prof-place:has(> .prof-map.is-ready) {
  padding: 0; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  position: relative; z-index: 0; isolation: isolate; /* D-816 · 상단바 아래 */
}
.prof-place:has(> .prof-map.is-ready) > .prof-map {
  grid-column: 1; grid-row: 1; min-height: 380px; border-right: 1px solid var(--border);
}
.prof-place:has(> .prof-map.is-ready) > .prof-place-text { grid-column: 2; grid-row: 1; padding: 28px 30px; justify-content: center; }
.prof-place:has(> .prof-map.is-ready) .prof-place-facts { padding-top: 20px; }
@media (max-width: 900px) {
  /* 지도가 위, 글이 아래 — 헤로처럼 사진이 위. grid-row로 놓는다(DOM은 글 먼저 그대로). 높이 260(D-772, 220에서 소폭). */
  .prof-place:has(> .prof-map.is-ready) { grid-template-columns: minmax(0, 1fr); }
  .prof-place:has(> .prof-map.is-ready) > .prof-map {
    grid-row: 1; height: 260px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--border);
  }
  .prof-place:has(> .prof-map.is-ready) > .prof-place-text { grid-column: 1; grid-row: 2; padding: 20px 18px 22px; }
  .prof-place:has(> .prof-map.is-ready) .prof-place-facts { padding-top: 14px; }
}

/* ══ 세무사 프로필 편집 ════════════════════════════════════════ */
.pe-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.pe-head h2 { margin: 0; }
.pe-sub { margin: 4px 0 0; font-size: 14px; color: var(--text-tertiary); }
.pe-head .btn { margin-left: auto; }

.pe-form { display: flex; flex-direction: column; gap: 14px; }
.pe-card { display: flex; flex-direction: column; }
/* 이 카드가 상세의 어느 구역이 되는지 — 편집하면서 결과 위치를 알 수 있게 붙인다. */
.pe-where {
  margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--text-tertiary);
  background: var(--surface-alt); border-radius: var(--r-full); padding: 4px 10px;
  white-space: nowrap;
}
.pe-desc { margin: 0 0 12px; font-size: 13.5px; line-height: 1.6; color: var(--text-tertiary); }
.pe-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.pe-field:last-child { margin-bottom: 0; }
.pe-label { font-size: 13px; font-weight: 700; letter-spacing: -.1px; }
.pe-hint { font-size: 12px; line-height: 1.55; color: var(--text-tertiary); }
.pe-textarea { height: auto; padding: 12px; line-height: 1.7; }
.pe-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pe-note {
  margin: 12px 0 0; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--surface-alt); font-size: 12.5px; line-height: 1.6; color: var(--text-secondary);
}
.pe-note-warn { background: #FFF4E5; color: #8A5300; }
/* 저장바를 화면 아래에 붙인다 — 폼이 길어 스크롤 중 어디서든 저장할 수 있어야 하고,
   '작업 중'이라는 감각도 이 띠가 만든다. 배경을 깔아야 본문이 비쳐 보이지 않는다. */
.pe-actions {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 14px 0 16px; margin-top: -2px;
  background: linear-gradient(to bottom, transparent, var(--background) 22%);
}
.pe-actions .btn { flex: 1; min-width: 160px; }
.pe-actions .btn-primary { flex: 2; box-shadow: 0 4px 14px rgba(49, 130, 246, .28); }

/* 입력에 초점이 갔을 때를 또렷하게 — 긴 폼에서 '지금 어디를 쓰고 있는지'가 흐려진다. */
.prof-edit .input:focus,
.my .input:focus {
  outline: none; border-color: var(--primary); background: var(--surface);
  box-shadow: 0 0 0 3px rgba(49, 130, 246, .16);
}

/* ── 주소 → 지도 확인 (D-140) ──────────────────────────────── */
.geo-row { display: flex; gap: 8px; align-items: center; }
.geo-row .input { flex: 1; min-width: 0; }
.geo-row .btn { flex: 0 0 auto; white-space: nowrap; }
.geo-wrap { margin-top: 12px; }
.geo-map {
  height: 280px; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-alt);
}
.geo-status {
  margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--text-tertiary);
}
.geo-status.geo-ok { color: var(--success); }
.geo-status.geo-warn { color: var(--warning-dark, #B35F00); }

@media (max-width: 768px) {
  /* R1 후기(D-770): 좁은 폭에서는 본문 16px, 인용 부호도 한 단 작게. */
  .rev-body { font-size: 16px; }
  .rev-item::before { font-size: 40px; height: 20px; }

  .my-stats { grid-template-columns: 1fr; }
  .pe-grid2 { grid-template-columns: 1fr; }
  .ph-headline { font-size: 20px; }
  .prof-headline-top { font-size: 24px; letter-spacing: -.6px; margin: 16px 16px 0; }
  .prof-specs { padding: 12px 16px 18px; }
  .ph-nm { font-size: 28px; letter-spacing: -.6px; }
  .ph-of { font-size: 15px; }
}


/* 세무 Q&A에서 온 상담 (D-357) — 프로필 맨 위에 «어디서 왔는지»를 한 줄로.
   ⚠ 광고 배지처럼 보이지 않게 색을 눌러 둔다 — 이건 안내이지 지면 상품이 아니다. */
.prof-fromqna {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin-bottom: 14px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-alt);
}
.prof-fromqna-k { font-size: 12px; font-weight: 700; color: var(--text-tertiary); }
.prof-fromqna b { font-size: 14px; color: var(--text-primary); }
.prof-fromqna-t { font-size: 12px; color: var(--text-secondary); }

/* 패널 묶음(D-451) 안 카드 사이 여백(D-455) — 래퍼가 끼면서 형제 선택자 간격이 끊겼다.
   래퍼가 세로 리듬을 직접 진다. */
.my2-panel { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
/* 🔴 [hidden] 패널은 정말 숨긴다 — 위 display:flex(author)가 UA의 [hidden]{display:none}을 이겨 mypage-tabs.js가
   hidden을 줘도 세 패널이 다 보였다(D-455 이후 계속, D-776 감사에서 발견). app.css:774의 같은 함정 주석 참고. */
.my2-panel[hidden] { display: none; }
.my2-panel > .my-sec { margin-top: 0; }

/* ⚠ book.css가 아니라 **여기** 있다 — 예약 모달은 tax-detail.html에 있고 그 화면은
     book.css를 싣지 않는다. book.css에 두면 TaxDetailHeadContractTest가 잡는다(실제로 잡혔다). */
/* 예약 모달의 상담노트 한 줄 (D-530) — 모달은 GET /book을 안 거치므로 여기 따로 있다. */
.bk-mbrief {
  display: flex; align-items: baseline; gap: 8px;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  font-size: 13px; min-width: 0;
}
.bk-mbrief-l { color: var(--text-tertiary); white-space: nowrap; }
.bk-mbrief-t {
  font-weight: 700; color: var(--text-primary);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bk-mbrief-chg { margin-left: auto; color: var(--primary); font-weight: 600; white-space: nowrap; }
