/* 마이 · 세무사 프로필 · 세무사 상세 (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; }
.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; }
.prof-main > .card, .prof-main > .prof-back { max-width: 860px; }

/* ── 헤로: 좌 9:16 사진 컬럼 + 우 고정 영역 열 ─────────────────────
   🔴 다섯 영역의 위치 고정이 이 블록의 계약이다(사용자 지시, PhSplitCssContractTest):
     ① 제목: min-height로 2줄 자리를 늘 예약, 3줄째부터 말줄임(-webkit-line-clamp).
     ② 소개말: 상자 height 고정(5줄, D-385) — 짧아도 안 줄고 길어도 안 민다.
     ③ 지표 스트립: height 고정.  ④ 약력: 3줄 height 고정, 줄마다 한 줄 말줄임.
     ⑤ 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);
}
.ph-photo { position: relative; aspect-ratio: 9 / 16; min-height: 0; }
.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);
}
/* 이름 락업 — 다크밴드 대신 그라디언트. 어두운 배경 위 흰 글자는 grayscale AA(헤일레이션 방지). */
.ph-lockup {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 56px 26px 22px; color: #fff;
  background: linear-gradient(180deg, rgba(25, 31, 40, 0), rgba(25, 31, 40, .82) 62%);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.ph-nm { display: flex; align-items: center; gap: 8px; font-size: 28px; font-weight: 800; letter-spacing: -.6px; line-height: 1.2; }
.ph-nm .ph-dot { font-style: normal; color: var(--success); margin-left: -8px; }  /* 이름에 붙는 초록 점(D-085) */
.ph-badge { background: rgba(255, 255, 255, .18); color: #fff; }
.ph-of {
  margin-top: 4px; font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, .92);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pe2-row-photo { position: absolute; top: 14px; right: 14px; z-index: 3; background: rgba(255,255,255,.94); border-radius: var(--r-md); padding: 6px 10px; }

.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의 «항상 일정한 화면» 계약이 깨진다. */
.ph-hello {
  position: relative; margin-top: 18px; padding: 6px 8px 0 46px;
  font-size: 14.5px; line-height: 1.65;
  height: calc(5 * 1.65em + 28px); overflow: hidden;
}
/* 따옴표는 글자가 아니라 장식이다 — 세리프가 있어야 따옴표답게 굽는다(Noto Sans의
   따옴표는 밋밋한 쐐기라 인용 인상이 안 선다). */
.ph-hello::before {
  content: '\201C'; position: absolute; left: 2px; top: -6px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 58px; font-weight: 900; line-height: 1; color: var(--success);
}
.ph-hello-t {
  margin: 0; color: var(--text-secondary); font-weight: 500; word-break: keep-all;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.ph-hello-empty { color: var(--text-tertiary); }
.ph-hello .pe2-btn { position: absolute; right: 10px; bottom: 8px; }
/* ③ 지표 스트립 — 높이 고정, 값은 한 줄 말줄임. */
.ph-strip {
  margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  height: 72px; overflow: hidden;
}
.ph-cell { padding: 12px 16px; border-left: 1px solid var(--divider); min-width: 0; }
.ph-cell:first-child { border-left: 0; }
.ph-cell .k { font-size: 12px; font-weight: 600; color: var(--text-tertiary); }
.ph-cell .v {
  margin-top: 2px; font-size: 16.5px; font-weight: 800; letter-spacing: -.3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ph-cell .v.num { font-variant-numeric: tabular-nums; }
.ph-cell .v .star { color: var(--warning); }
.ph-cell .v small { font-size: 12.5px; font-weight: 600; color: var(--text-tertiary); }
.ph-cell .ph-v-spec { font-size: 14px; font-weight: 700; padding-top: 3px; }
/* ④ 약력 — ✓ 3줄 고정, 각 줄 한 줄 말줄임. */
.ph-flow {
  margin-top: 18px; display: flex; flex-direction: column; gap: 9px;
  font-size: 14px; line-height: 1.55; color: var(--text-secondary);
  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; }
.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; }
  .ph-strip { grid-template-columns: 1fr 1fr; height: 144px; }
  .ph-cell:nth-child(3) { border-left: 0; }
  .ph-cell:nth-child(n+3) { border-top: 1px solid var(--divider); }
}
/* (옛 제목 헤로·라벨 열 .prof-meta/.prof-who/.prof-facts는 D-384에서 은퇴 — ph-*가 대체) */

}

/* (우측 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; }
/* 본문만 스크롤 — 머리(무엇의 예약인지)와 발(금액·확인)은 항상 보인다. */
.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).
   ⚠ 첫 그룹 위에는 여백을 주지 않는다(라벨 '시간' 바로 아래라 이미 떨어져 있다). */
.bw-time-group {
  margin: 12px 0 7px; font-size: 12px; font-weight: 700; color: var(--text-tertiary);
}
.bw-times > .bw-time-group:first-child { margin-top: 0; }
.bw-none {
  margin: 14px 0 0; padding: 12px; border-radius: var(--r-sm);
  background: var(--surface-alt); font-size: 13px; line-height: 1.6;
  color: var(--text-tertiary); text-align: center;
}
/* 결제금액 — 확인 직전에 얼마가 나가는지 한 줄로 못박는다(수수료 없음, 상품가 그대로). */
.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)로 대체되어 제거했다 —
   가격·예약 줄이 좌우로 늘어선 리스트는 로톡형 카드보다 정보가 눌려 보였다.) */

.rev-item { padding: 14px 0; border-bottom: 1px solid var(--divider); }
.rev-item:last-of-type { border-bottom: 0; padding-bottom: 0; }
.rev-top { display: flex; align-items: center; gap: 8px; }
.rev-top .star { color: var(--warning); font-size: 13px; letter-spacing: 1px; }
.rev-who { font-size: 13px; color: var(--text-tertiary); }
.rev-body {
  margin: 6px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--text-secondary);
}
/* 후기 첨부 사진 (D-148) — 정사각 썸네일. 원본 비율이 제각각이라 그대로 두면 줄이 어긋난다. */
.rev-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.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) — '사무소 위치'라는 분류명 대신 **부르는 말**을 제목 자리에 둔다.
   참고 지면과 같은 방식: 큰 두 줄 문장 → 상호(+홈페이지) → 주소 → 지도. */
.prof-place-lead {
  margin: 0 0 20px; font-size: 22px; font-weight: 700; line-height: 1.45;
  letter-spacing: -.5px;
}
.prof-place-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px 20px; flex-wrap: wrap;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.prof-place-office { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.prof-place-name { font-size: 16px; font-weight: 700; letter-spacing: -.3px; }
/* 홈페이지 링크 — 밑줄로만 링크임을 알린다(파랑 버튼처럼 튀면 주소보다 먼저 읽힌다). */
.prof-place-link {
  font-size: 13px; color: var(--text-tertiary);
  text-decoration: underline; text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.prof-place-link:hover { color: var(--primary); }
.prof-place .prof-addr { margin: 0; }

.prof-addr { margin: 0 0 12px; font-size: 14.5px; color: var(--text-secondary); }
/* 지도는 **실제로 그려졌을 때만** 보인다. 처음부터 상자를 띄워 두면 SDK가 못 뜬 환경에서
   빈 회색 네모만 남아 "지도가 고장났나" 싶어진다 — 주소는 위에 이미 글로 적혀 있으므로
   지도가 없으면 그냥 없는 게 낫다. `is-ready`는 profile-map.js가 성공했을 때만 붙인다. */
.prof-map {
  display: none;
  height: 260px; margin-top: 12px; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-alt);
}
.prof-map.is-ready { display: block; }
.prof-back { padding: 4px 2px; }

/* ══ 세무사 프로필 편집 ════════════════════════════════════════ */
.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) {
  .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: 24px; }
}


/* 세무 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; }
.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; }
