/* ============================================================
   콘텐츠클리닉 3차 시안 · components.css (담당 C만 고침)
   박스 정렬 규칙(명세 2절):
   - 짧은 카드·숫자·명패·버튼·배지·칩 = 가운데
   - 문서형(처방전·문진표·상담 차트·접수증) = 머리 가운데 · 내용 왼쪽
   - 테두리 상자는 그 4종만(.rx .chart 와 페이지의 상담 차트·접수증). 나머지 카드는 .card(흰 면 + 그림자 1종)
   ============================================================ */

/* ---------------- 버튼: 채움 1종 + 글자 링크 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--cc-s2);
  height: var(--cc-btn-h); min-width: 44px; padding: 0 var(--cc-s6);
  border: 0; border-radius: var(--cc-r-control);
  background: var(--cc-rose-deep); color: var(--cc-white);
  font-family: var(--cc-font-body); font-size: var(--cc-fs-b); font-weight: var(--cc-w-strong); line-height: var(--cc-lh-b);
  text-align: center; text-decoration: none; white-space: nowrap;
  transition: background-color var(--cc-dur) var(--cc-ease), transform 100ms var(--cc-ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: #BE2459; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--cc-navy); outline-offset: 3px; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--cc-grey); cursor: not-allowed; transform: none; }
.btn--block { width: 100%; }
.btn .arrow, .link .arrow { display: inline-block; transition: transform var(--cc-dur) var(--cc-ease); }
.link .arrow { margin-left: 0.3em; text-decoration: none; }   /* 빈칸은 common.js가 지우고 간격은 여기서 */
.btn:hover .arrow, .link:hover .arrow { transform: translateX(3px); }

.link {
  display: inline; padding: 0; border: 0; background: none;
  color: var(--cc-navy); font-weight: var(--cc-w-strong);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  cursor: pointer;
}
.link:hover { text-decoration-thickness: 2px; }
button.link { display: inline-flex; align-items: center; min-height: 44px; }
button.link[disabled] { color: var(--cc-grey); cursor: not-allowed; text-decoration: none; }
.link--light { color: var(--cc-white); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cc-s4) var(--cc-s5); }
.al-c .actions, .actions.al-c { justify-content: center; }

/* ---------------- 카드(흰 면 + 그림자 1종) ---------------- */
.card { background: var(--cc-white); border-radius: var(--cc-r-card); box-shadow: var(--cc-shadow); }
.card--short {           /* 짧은 안내 카드: 가운데, 위아래 같은 여백 */
  display: grid; align-content: center; justify-items: center; gap: var(--cc-s2);
  padding: var(--cc-s5); text-align: center;
}
.card--num { display: grid; place-items: center; gap: var(--cc-s1); padding: var(--cc-s5); text-align: center; }
.card--num .t-h3 { font-variant-numeric: tabular-nums; }

/* ---------------- 배지·번호·칩 (모두 가운데) ---------------- */
.badge {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--cc-s2);
  height: 32px; padding: 0 var(--cc-s3); border-radius: var(--cc-r-pill);
  background: var(--cc-navy-08); color: var(--cc-navy);
  font-size: var(--cc-fs-s); font-weight: var(--cc-w-strong); line-height: var(--cc-lh-s); white-space: nowrap;
}
.badge--open::before, .badge--next::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cc-green); flex: none;
}
.badge--next::before { background: var(--cc-navy-soft); }
.badge--soon { color: var(--cc-navy-soft); background: var(--cc-navy-04); }
.badge--light { background: rgba(255, 255, 255, 0.14); color: var(--cc-white); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cc-green); flex: none; }

.num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: var(--cc-fs-s); font-weight: var(--cc-w-strong); line-height: var(--cc-lh-s);
  font-variant-numeric: tabular-nums; background: var(--cc-navy); color: var(--cc-white);
}
.num--sm { width: 32px; height: 32px; }
.num--01 { background: var(--cc-dept-01); color: var(--cc-white); }
.num--02 { background: var(--cc-dept-02); color: var(--cc-navy); }
.num--03 { background: var(--cc-dept-03); color: var(--cc-navy); }
.num--04 { background: var(--cc-dept-04); color: var(--cc-white); }

.chips { display: flex; flex-wrap: wrap; gap: var(--cc-s2); }
.al-c .chips, .chips.al-c { justify-content: center; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--cc-s2);
  height: 44px; padding: 0 var(--cc-s4); border: 0; border-radius: var(--cc-r-pill);
  background: var(--cc-navy-08); color: var(--cc-navy);
  font-size: var(--cc-fs-s); font-weight: var(--cc-w-strong); line-height: var(--cc-lh-s); white-space: nowrap;
  transition: background-color var(--cc-dur) var(--cc-ease), color var(--cc-dur) var(--cc-ease);
}
.chip:hover { background: rgba(20, 33, 61, 0.14); }
.chip[aria-pressed="true"], .chip[aria-checked="true"], .chip.is-on { background: var(--cc-navy); color: var(--cc-white); }

/* ---------------- 탭 (번호 + 이름) ---------------- */
.tabs {
  display: flex; gap: var(--cc-s1); justify-content: safe center;
  border-bottom: 1px solid var(--cc-line);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs { position: relative; }   /* 탭 offsetLeft 기준 */
.tabs[data-fade="end"] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
.tabs[data-fade="start"] { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent); }
.tabs[data-fade="both"] { -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.tab {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--cc-s2);
  height: 56px; padding: 0 var(--cc-s4); border: 0; background: none; flex: none;
  color: var(--cc-navy-soft); font-size: var(--cc-fs-b); font-weight: var(--cc-w-strong); line-height: var(--cc-lh-b); white-space: nowrap;
}
.tab-no { font-size: var(--cc-fs-s); line-height: var(--cc-lh-s); font-weight: var(--cc-w-strong); font-variant-numeric: tabular-nums; }
.tab:hover { color: var(--cc-navy); }
.tab[aria-selected="true"] { color: var(--cc-navy); }
.tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: var(--cc-s4); right: var(--cc-s4); bottom: -1px; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--cc-navy);
}
.tab-panel { padding-top: var(--cc-s6); }
.tab-panel:focus-visible { outline-offset: 8px; }

/* ---------------- 접기 질문 (문서형: 질문 왼쪽) ---------------- */
.faq { border-top: 1px solid var(--cc-line); }
.faq-item { border-bottom: 1px solid var(--cc-line); }
.faq-item > summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--cc-s4);
  min-height: 64px; padding: var(--cc-s4) 0; cursor: pointer; list-style: none;
  font-size: var(--cc-fs-b); line-height: var(--cc-lh-b); font-weight: var(--cc-w-strong); text-align: left;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: ""; flex: none; width: 16px; height: 16px;
  background:
    linear-gradient(var(--cc-navy), var(--cc-navy)) center / 16px 2px no-repeat,
    linear-gradient(var(--cc-navy), var(--cc-navy)) center / 2px 16px no-repeat;
  transition: transform var(--cc-dur) var(--cc-ease);
}
.faq-item[open] > summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 var(--cc-s7) var(--cc-s5) 0; text-align: left; }

/* ---------------- 상세 창(모달) ---------------- */
.modal {
  width: min(880px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: var(--cc-r-card);
  background: var(--cc-white); color: var(--cc-navy); box-shadow: var(--cc-shadow);
  overflow: hidden;
}
.modal[open] { display: flex; flex-direction: column; }
.modal::backdrop { background: rgba(14, 24, 48, 0.62); }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--cc-s4);
  padding: var(--cc-s3) var(--cc-s3) var(--cc-s3) var(--cc-s5); border-bottom: 1px solid var(--cc-line);
}
.modal-body { padding: var(--cc-s5); overflow: auto; overscroll-behavior: contain; }
.modal-foot { display: flex; justify-content: center; padding: var(--cc-s4) var(--cc-s5) var(--cc-s5); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--cc-r-control); background: none; color: var(--cc-navy);
}
.icon-btn:hover { background: var(--cc-navy-04); }
.icon-btn svg { width: 22px; height: 22px; }
@media (max-width: 767px) {
  .modal { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
}

/* ---------------- 기기 틀 ---------------- */
/* 노트북: 화면 16:10 · 휴대폰: 화면 9:16. 자식 img/video는 비율이 미리 잡혀 지연 로딩 때 크기가 변하지 않음 */
.frame-laptop, .frame-phone { margin: 0; container-type: inline-size; width: 100%; }
/* 노트북: 세로 배치(화면 → 받침 → 캡션). 받침은 figure의 ::after라 틀 상자 안에 들어감 */
.frame-laptop { display: flex; flex-direction: column; }
.frame-laptop > .frame-screen { order: 0; }
.frame-laptop::after {
  content: ""; order: 1; display: block; flex: none; height: 2.6cqi;
  background: linear-gradient(#DCDFE6, #B8BDC9); border-radius: 0 0 2.4cqi 2.4cqi;
  box-shadow: 0 1.4cqi 2.4cqi rgba(20, 33, 61, 0.12);
}
.frame-laptop > :not(.frame-screen) { order: 2; }
/* 베젤은 box-shadow로 그려 안쪽 여백이 생기지 않게(화면 = 자식 이미지 그대로) */
.frame-laptop .frame-screen {
  position: relative; margin: 1.8cqi 7.6cqi 2.4cqi; border-radius: 0.6cqi;
  box-shadow: 0 0 0 1.8cqi #1B2436, 0 0.6cqi 0 1.8cqi #1B2436;
}
.frame-laptop .frame-screen > img, .frame-laptop .frame-screen > video, .frame-laptop .frame-screen > .frame-fill {
  display: block; width: 100%; height: auto; aspect-ratio: var(--screen-ar, 16 / 10);
  object-fit: cover; object-position: var(--fit-pos, top center);
  background: var(--cc-line); border-radius: inherit;
}
/* 휴대폰: 화면 비율 --screen-ar(기본 9/16), 맞춤 위치 --fit-pos(기본 top center)
   390×844 모바일 캡처는 style="--screen-ar: 390 / 844"로 자르지 않고 보이게. 비율이 다른 그림은 .frame-phone--contain */
.frame-phone { max-width: var(--phone-w, 300px); margin-inline: auto; }
.frame-phone .frame-screen {
  position: relative; margin: 3.4cqi; border-radius: 10cqi;
  box-shadow: 0 0 0 3.4cqi #1B2436, 0 8px 24px 3.4cqi rgba(20, 33, 61, 0.10);
}
.frame-phone .frame-screen::before {
  content: ""; position: absolute; z-index: 1; left: 50%; top: 2.6cqi; width: 26cqi; height: 6cqi;
  transform: translateX(-50%); border-radius: 999px; background: #1B2436;
}
.frame-phone .frame-screen > img, .frame-phone .frame-screen > video, .frame-phone .frame-screen > .frame-fill {
  display: block; width: 100%; height: auto; aspect-ratio: var(--screen-ar, 9 / 16);
  object-fit: cover; object-position: var(--fit-pos, top center);
  background: var(--cc-line); border-radius: inherit;
}
.frame-phone--contain .frame-screen > img, .frame-phone--contain .frame-screen > video { object-fit: contain; background: var(--cc-navy-deep); }
.frame-fill { display: grid; place-items: center; color: var(--cc-navy-soft); text-align: center; }
.frame-cap { margin-top: var(--cc-s3); text-align: center; }

/* ---------------- 처방전 .rx (CSS 종이, 테두리 한 겹) ---------------- */
.rx {
  position: relative; width: 100%; max-width: 560px; margin-inline: auto;
  background: var(--cc-white); border: 1px solid var(--cc-line); border-radius: var(--cc-r-control);
  text-align: left; overflow: hidden;
}
.rx-head {
  display: flex; align-items: center; justify-content: center; gap: var(--cc-s3);
  padding: var(--cc-s4) var(--cc-s5); background: var(--cc-paper); border-bottom: 1px solid var(--cc-line);
  text-align: center;
}
.rx-head img { width: 34px; height: auto; flex: none; }
.rx-meta.rx-meta--date { justify-content: center; }
.rx-meta { display: flex; justify-content: space-between; gap: var(--cc-s4); padding: var(--cc-s3) var(--cc-s5) 0; color: var(--cc-navy-soft); }
.rx-body { padding: var(--cc-s2) var(--cc-s5) var(--cc-s5); }
.rx-rows { margin: 0; }
.rx-row {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: var(--cc-s4);
  padding: var(--cc-s3) 0; border-bottom: 1px dashed var(--cc-line);
}
.rx-row > dt { color: var(--cc-navy-soft); font-size: var(--cc-fs-s); line-height: var(--cc-lh-s); font-weight: var(--cc-w-strong); white-space: nowrap; }
.rx-row > dd { margin: 0; text-align: right; font-size: var(--cc-fs-b); line-height: var(--cc-lh-b); }
.rx-row > dd strong { font-weight: var(--cc-w-strong); }
.rx-row--block { grid-template-columns: 1fr; gap: var(--cc-s1); }
.rx-row--block > dd { text-align: left; }
.rx-row--total > dd { font-family: var(--cc-font-head); font-weight: var(--cc-w-head); font-size: var(--cc-fs-h3); line-height: var(--cc-lh-h3); letter-spacing: var(--cc-track-head); font-variant-numeric: tabular-nums; }
.rx-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--cc-s4); margin-top: var(--cc-s5); }
.rx-cue { display: flex; align-items: center; gap: var(--cc-s3); min-width: 0; }
.rx-cue img { width: auto; height: 64px; flex: none; }
.rx-cue > span { text-wrap: pretty; }
.rx-stamp {
  display: grid; place-items: center; flex: none; width: 84px; height: 84px; border-radius: 50%;
  border: 3px solid var(--cc-rose-deep); color: var(--cc-rose-deep);
  font-family: var(--cc-font-head); font-weight: var(--cc-w-head); font-size: var(--cc-fs-h3); line-height: var(--cc-lh-h3); letter-spacing: var(--cc-track-head);
  transform: rotate(-12deg); opacity: 0.92;
}
.rx-actions { display: grid; justify-items: center; gap: var(--cc-s2); padding: 0 var(--cc-s5) var(--cc-s5); text-align: center; }
.rx-slot { overflow: hidden; }   /* 출력 동작 때 종이가 나오는 틈 */

/* ---------------- 문진표 .chart (문서형 테두리 상자) ---------------- */
.chart {
  width: 100%; background: var(--cc-white); border: 1px solid var(--cc-line); border-radius: var(--cc-r-card);
  text-align: left; overflow: hidden;
}
.chart-head {
  display: grid; justify-items: center; gap: var(--cc-s1); padding: var(--cc-s4) var(--cc-s5) var(--cc-s3);
  border-bottom: 1px solid var(--cc-line); text-align: center;
}
.chart-steps {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--cc-s2) var(--cc-s4);
  margin: 0; padding: var(--cc-s3) var(--cc-s4); list-style: none; border-bottom: 1px solid var(--cc-line);
  color: var(--cc-grey); text-align: center;
}
.chart-steps > li { display: inline-flex; align-items: center; gap: var(--cc-s2); }
.chart-steps > li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cc-line); flex: none; }
.chart-steps > li.is-done { color: var(--cc-navy-soft); }
.chart-steps > li.is-done::before { background: var(--cc-navy-soft); }
.chart-steps > li.is-now { color: var(--cc-navy); }
.chart-steps > li.is-now::before { background: var(--cc-rose); }
.chart-progress { height: 4px; background: var(--cc-navy-08); }
.chart-progress > span { display: block; height: 100%; width: var(--p, 25%); background: var(--cc-rose); transition: width 300ms var(--cc-ease); }
.chart-body { padding: var(--cc-s5); }
fieldset.chart-body { border: 0; margin: 0; min-width: 0; }
.chart-q { float: left; width: 100%; padding: 0; }
.chart-q + * { clear: both; }
.quiz-again { margin-top: var(--cc-s4); }
.chart-q { margin-bottom: var(--cc-s4); }
.chart-hint { margin: calc(var(--cc-s3) * -1) 0 var(--cc-s4); }
.chart-foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--cc-s4);
  padding: var(--cc-s4) var(--cc-s5) var(--cc-s5);
}
.opts { display: grid; gap: var(--cc-s2); }
@media (min-width: 600px) { .opts--2 { grid-template-columns: 1fr 1fr; } }
.opt { position: relative; display: block; }
.opt > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt > span {
  display: flex; align-items: center; gap: var(--cc-s3); min-height: 56px; padding: var(--cc-s3) var(--cc-s4);
  border-radius: var(--cc-r-control); background: var(--cc-navy-04); cursor: pointer;
  font-size: var(--cc-fs-b); line-height: var(--cc-lh-b); transition: background-color var(--cc-dur) var(--cc-ease);
}
.opt > span::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--cc-navy-soft); background: var(--cc-white) center / 12px 12px no-repeat;
}
.opt > input[type="checkbox"] + span::before { border-radius: 5px; }
.opt:hover > span { background: var(--cc-navy-08); }
.opt > input:checked + span { background: var(--cc-navy-08); font-weight: var(--cc-w-strong); }
.opt > input:checked + span::before {
  border-color: var(--cc-navy); background-color: var(--cc-navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6 9.6 3.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.opt > input:focus-visible + span { outline: 2px solid var(--cc-navy); outline-offset: 2px; }
.opt-sub { margin-top: var(--cc-s5); }
.opt-sub .t-s { margin-bottom: var(--cc-s3); }

/* ---------------- 입력칸(상담 차트 등에서 같이 씀) ---------------- */
.field { display: grid; gap: var(--cc-s2); }
.field > label, .field-label { font-size: var(--cc-fs-s); line-height: var(--cc-lh-s); font-weight: var(--cc-w-strong); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1px solid var(--cc-line); border-radius: var(--cc-r-control); background: var(--cc-white);
  font-size: var(--cc-fs-b); line-height: var(--cc-lh-b);
}
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--cc-grey); }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--cc-navy); outline-offset: 0; border-color: var(--cc-navy); }
.field-error { color: var(--cc-rose-deep); font-size: var(--cc-fs-s); line-height: var(--cc-lh-s); font-weight: var(--cc-w-strong); }

/* ---------------- 견적 처방기 .est (흰 면 + 그림자) ---------------- */
.est { display: grid; background: var(--cc-white); border-radius: var(--cc-r-card); box-shadow: var(--cc-shadow); overflow: hidden; }
@media (min-width: 900px) { .est { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }
.est-list { padding: var(--cc-s5); display: grid; gap: var(--cc-s2); align-content: start; text-align: left; }
.est-opt { position: relative; display: block; }
.est-opt > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.est-opt > span {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: var(--cc-s3) var(--cc-s4);
  min-height: 64px; padding: var(--cc-s3) var(--cc-s4); border-radius: var(--cc-r-control);
  background: var(--cc-navy-04); cursor: pointer; transition: background-color var(--cc-dur) var(--cc-ease);
}
.est-mark {
  width: 20px; height: 20px; border-radius: 5px; border: 2px solid var(--cc-navy-soft);
  background: var(--cc-white) center / 12px 12px no-repeat;
}
.est-opt:hover > span { background: var(--cc-navy-08); }
.est-opt > input:checked + span { background: var(--cc-navy-08); }
.est-opt > input:checked + span > .est-mark {
  border-color: var(--cc-navy); background-color: var(--cc-navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6 9.6 3.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.est-opt > input:focus-visible + span { outline: 2px solid var(--cc-navy); outline-offset: 2px; }
.est-opt > input:disabled + span { cursor: not-allowed; opacity: 0.5; }
.est-opt--sub { margin-left: 36px; }
@media (max-width: 599px) {
  .est-list { padding: var(--cc-s4); }
  .est-opt > span { grid-template-columns: 20px minmax(0, 1fr); }
  .est-price { grid-column: 2; text-align: left; }
  .est-opt--sub { margin-left: var(--cc-s6); }
}
.est-name { display: grid; gap: 2px; min-width: 0; }
.est-opt > span:has(> .est-price) { grid-template-columns: 20px minmax(0, 1fr) auto; }   /* 옛 마크업 호환 */
.est-price { text-align: right; font-size: var(--cc-fs-b); line-height: var(--cc-lh-b); font-weight: var(--cc-w-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.est-sum {
  display: grid; align-content: center; justify-items: center; gap: var(--cc-s2);
  padding: var(--cc-s6) var(--cc-s5); background: var(--cc-paper); text-align: center;
}
/* 선 1px만큼 여백을 빼 4px 격자 유지 */
@media (min-width: 900px) { .est-sum { border-left: 1px solid var(--cc-line); padding-left: calc(var(--cc-s5) - 1px); } }
@media (max-width: 899px) { .est-sum { border-top: 1px solid var(--cc-line); padding-top: calc(var(--cc-s6) - 1px); } }
.est-total { font-variant-numeric: tabular-nums; }
.est-note { max-width: 340px; padding: var(--cc-s3) var(--cc-s4); border-radius: var(--cc-r-control); background: var(--cc-navy-08); }
.est-sum .btn { margin-top: var(--cc-s3); }
/* 견적 처방전: 오른쪽 칸 높이를 종이로 채움. 합계는 가운데 큰 숫자 */
.est-sum:has(> .est-rx) { align-content: stretch; justify-items: stretch; padding: var(--cc-s5); gap: 0; }
@media (min-width: 900px) { .est-sum:has(> .est-rx) { padding-left: calc(var(--cc-s5) - 1px); } }
@media (max-width: 899px) { .est-sum:has(> .est-rx) { padding-top: calc(var(--cc-s5) - 1px); } }
.est-rx { display: flex; flex-direction: column; max-width: none; height: 100%; }
.est-rx > .rx-body { flex: 1; display: flex; flex-direction: column; gap: var(--cc-s4); padding-top: var(--cc-s5); }
.est-total-box { display: grid; justify-items: center; gap: var(--cc-s1); padding-bottom: var(--cc-s4); border-bottom: 1px dashed var(--cc-line); text-align: center; }
.est-rx .rx-row { border-bottom: 0; padding: 0; }
.est-rx .est-note { max-width: none; text-align: left; }
.est-rx > .rx-actions { padding-top: var(--cc-s2); }
.est-rx .btn { margin-top: 0; }

/* ---------------- 문 카드 .door (4:5 기준 상자 + % 좌표 레이어) ---------------- */
.door {
  --plate-x: 50%; --plate-y: 13%; --plate-w: 62%; --plate-h: 10%;
  --win-x: 50%; --win-y: 42%; --win-w: 38%;
  --go-y: 86%;
  display: block; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.door-art {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--cc-r-card); overflow: hidden; isolation: isolate;
  background: var(--door-bg, #E8E2D6);
  transition: transform 300ms var(--cc-ease), box-shadow 300ms var(--cc-ease);
}
.door-bg, .door-leaf > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.door-leaf { position: absolute; inset: 0; z-index: 1; transform-origin: var(--leaf-origin, 18% 50%); transition: transform 450ms var(--cc-ease); }
.door-win {
  position: absolute; z-index: 2; left: var(--win-x); top: var(--win-y); width: var(--win-w); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; overflow: hidden; background: var(--cc-navy-08);
}
.door-win > img, .door-win > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.door-plate {
  position: absolute; z-index: 3; left: var(--plate-x); top: var(--plate-y); width: var(--plate-w); height: var(--plate-h);
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; gap: var(--cc-s2);
  text-align: center; white-space: nowrap; color: var(--cc-navy);
}
.door-go {
  position: absolute; z-index: 3; left: 50%; top: var(--go-y); transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--cc-s2);
  height: 44px; padding: 0 var(--cc-s4); border-radius: var(--cc-r-pill);
  background: rgba(255, 255, 255, 0.94); color: var(--cc-navy);
  font-size: var(--cc-fs-s); font-weight: var(--cc-w-strong); line-height: var(--cc-lh-s); white-space: nowrap;
}
.door-info { display: grid; justify-items: center; gap: var(--cc-s1); padding: var(--cc-s4) var(--cc-s2) 0; text-align: center; }
/* 견본(그림 없음): 단색 자리 + CSS 명패 판 */
.door--draft .door-plate { background: var(--cc-white); border-radius: var(--cc-r-control); box-shadow: var(--cc-shadow); }
.door--draft .door-art::before {
  content: ""; position: absolute; inset: 8% 14% 0; border-radius: 40% 40% 0 0 / 14% 14% 0 0;
  background: rgba(20, 33, 61, 0.10);
}
/* 마우스 올림 = 살짝 열림 · 문짝 레이어가 없으면 살짝 확대 + 그림자 */
@media (hover: hover) {
  .door:hover .door-leaf { transform: perspective(1400px) rotateY(-14deg); }
  .door:not(:has(.door-leaf)):hover .door-art { transform: translateY(-4px) scale(1.012); box-shadow: var(--cc-shadow); }
}
.door:focus-visible { outline: none; }
.door:focus-visible .door-art { outline: 3px solid var(--cc-navy); outline-offset: 4px; }
.door.is-opening .door-leaf { transform: perspective(1400px) rotateY(-68deg); transition-duration: 380ms; }
.door.is-opening:not(:has(.door-leaf)) .door-art { transform: scale(1.04); box-shadow: var(--cc-shadow); }
.door.is-off { pointer-events: none; }
.door.is-off .door-art { filter: grayscale(0.6); opacity: 0.6; }

/* ---------------- 머리줄 (4차: 담당 A) ----------------
   메뉴 = 엘리베이터 버튼판(p-home .lift-key)의 둥근 층 버튼 + 이름. 지금 층 버튼은 분홍으로 켜짐. 5F 상담 신청은 분홍 채움 버튼 */
.hd { position: sticky; top: 0; z-index: 100; background: var(--cc-white); border-bottom: 1px solid var(--cc-line); }
.hd-in { display: flex; align-items: center; gap: var(--cc-s5); height: var(--cc-header-h); }
.hd-logo { display: flex; align-items: center; flex: none; min-height: 44px; }
.hd-logo img { width: auto; height: 28px; }
.hd-nav { display: none; margin-left: auto; }
.hd-menu { display: flex; align-items: center; gap: var(--cc-s1); }
.hd-item { position: static; }
.hd-link {
  display: inline-flex; align-items: center; gap: var(--cc-s2); height: 48px; padding: 0 var(--cc-s3) 0 var(--cc-s2);
  border: 0; border-radius: var(--cc-r-pill); background: none; color: var(--cc-navy); text-decoration: none;
  font-size: var(--cc-fs-b); font-weight: var(--cc-w-strong); line-height: var(--cc-lh-b); white-space: nowrap;
  transition: background-color var(--cc-dur) var(--cc-ease);
}
.hd-link:hover, .hd-link[aria-expanded="true"] { background: var(--cc-navy-04); }
.hd-caret { width: 12px; height: 12px; flex: none; transition: transform var(--cc-dur) var(--cc-ease); }
.hd-link[aria-expanded="true"] .hd-caret { transform: rotate(180deg); }

/* 층 버튼(둥근 키) — .lift-key-btn과 같은 재질 */
.fl-key {
  display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; padding-top: 1px;
  background: radial-gradient(circle at 50% 35%, #56627F, #2A3554); color: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22), 0 2px 0 rgba(20, 33, 61, 0.22);
  font-size: var(--cc-fs-s); line-height: 1; font-weight: var(--cc-w-strong); letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
  transition: box-shadow var(--cc-dur) var(--cc-ease);
}
.fl-name { min-width: 0; }
.hd-link:hover .fl-key, .hd-link:focus-visible .fl-key, .hd-link[aria-expanded="true"] .fl-key,
.mnav-link:hover .fl-key, .mnav-btn:hover .fl-key, .mnav-btn[aria-expanded="true"] .fl-key {
  box-shadow: inset 0 0 0 2px var(--cc-rose-tint), 0 2px 0 rgba(20, 33, 61, 0.22);
}
.is-current > .fl-key {
  background: radial-gradient(circle at 50% 35%, #FF7FA8, var(--cc-rose-deep)); color: var(--cc-white);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5), 0 0 0 3px rgba(240, 67, 127, 0.24);
}
/* 5F 상담 신청: 가장 센 버튼. 키는 분홍 위에 흰 테두리 */
.hd-cta { display: inline-flex; height: 48px; margin-left: var(--cc-s2); padding: 0 var(--cc-s5) 0 var(--cc-s2); border-radius: var(--cc-r-pill); }
.hd-cta .fl-key { background: rgba(255, 255, 255, 0.16); color: var(--cc-white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); }
.hd-cta.is-current .fl-key { background: var(--cc-white); color: var(--cc-rose-deep); box-shadow: inset 0 0 0 2px var(--cc-white), 0 0 0 3px rgba(255, 255, 255, 0.32); }
.hd-burger {
  display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--cc-r-control); background: none; color: var(--cc-navy);
}
.hd-burger svg { width: 24px; height: 24px; }
.hd-burger .i-close { display: none; }
.hd-burger[aria-expanded="true"] .i-open { display: none; }
.hd-burger[aria-expanded="true"] .i-close { display: block; }
@media (min-width: 1024px) {
  .hd-logo img { height: 32px; }
  .hd-nav { display: block; }
  .hd-burger { display: none; }
}
@media (min-width: 1024px) and (max-width: 1199px) { .hd-in { gap: var(--cc-s3); } .hd-logo img { height: 28px; } .hd-link { padding-right: var(--cc-s2); } }

/* 드롭다운 패널(머리줄 폭 전체, 칸 안 글은 가운데) */
.dd {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 101;
  background: var(--cc-white); border-top: 1px solid var(--cc-line); border-bottom: 1px solid var(--cc-line);
  box-shadow: var(--cc-shadow);
}
.dd.is-entering { animation: ccDd 180ms var(--cc-ease); }
@keyframes ccDd { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.dd-in { padding-block: var(--cc-s5); }
.dd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--cc-s3); }
.dd-cell {
  display: grid; justify-items: center; align-content: center; gap: var(--cc-s2);
  min-height: 148px; padding: var(--cc-s5) var(--cc-s4); border-radius: var(--cc-r-card);
  color: var(--cc-navy); text-decoration: none; text-align: center;
  transition: background-color var(--cc-dur) var(--cc-ease);
}
.dd-cell:hover, .dd-cell:focus-visible { background: var(--cc-navy-04); }
.dd-cell.is-current { background: var(--cc-navy-04); }
.dd-top { display: flex; justify-content: center; margin-bottom: var(--cc-s4); }
.dd-groups { display: grid; gap: var(--cc-s3); }
.dd-group { display: grid; grid-template-columns: 136px minmax(0, 1fr); align-items: center; gap: var(--cc-s4); }
.dd-group-name { text-align: center; color: var(--cc-navy-soft); }
.dd-inds { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--cc-s2); }
.dd-ind {
  display: grid; justify-items: center; align-content: center; gap: 2px;
  min-height: 72px; padding: var(--cc-s2); border-radius: var(--cc-r-control);
  background: var(--cc-navy-04); color: var(--cc-navy); text-decoration: none; text-align: center;
}
a.dd-ind:hover, a.dd-ind:focus-visible { background: var(--cc-navy-08); }
.dd-ind-name { font-size: var(--cc-fs-b); font-weight: var(--cc-w-strong); line-height: var(--cc-lh-b); }
.dd-ind-state { display: inline-flex; align-items: center; gap: 6px; color: var(--cc-navy-soft); }
.dd-ind[aria-disabled="true"] { opacity: 0.5; cursor: default; }
.dd-ind[data-status="soon"] .dd-ind-state { color: var(--cc-navy-soft); }

/* 모바일 전체 화면 메뉴 = 세로 엘리베이터 버튼판(위 1F → 아래 5F) */
.mnav {
  position: fixed; inset: var(--cc-header-h) 0 0 0; z-index: 99; overflow-y: auto; overscroll-behavior: contain;
  background: var(--cc-white); padding: var(--cc-s4) 0 calc(var(--cc-mbar-h) + var(--cc-s6) + env(safe-area-inset-bottom));
}
.mnav-list > li { border-bottom: 1px solid var(--cc-line); }
.mnav-btn, .mnav-link {
  display: flex; align-items: center; gap: var(--cc-s4); width: 100%;
  min-height: 68px; padding: 0; border: 0; background: none; color: var(--cc-navy); text-decoration: none; text-align: left;
  font-family: var(--cc-font-head); font-weight: var(--cc-w-head); font-size: var(--cc-fs-h3); line-height: var(--cc-lh-h3); letter-spacing: var(--cc-track-head);
}
.mnav-btn .fl-key, .mnav-link .fl-key { width: 44px; height: 44px; font-family: var(--cc-font-body); letter-spacing: normal; }
.mnav-btn .fl-name, .mnav-link .fl-name { flex: 1 1 auto; }
.mnav-link--cta { color: var(--cc-rose-deep); }
.mnav-link--cta .fl-key { background: var(--cc-white); color: var(--cc-rose-deep); box-shadow: inset 0 0 0 2px var(--cc-rose-deep); }   /* 지금 층(분홍 채움)과 헷갈리지 않게 테두리만 */
.mnav-link--cta.is-current .fl-key { background: radial-gradient(circle at 50% 35%, #FF7FA8, var(--cc-rose-deep)); color: var(--cc-white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5), 0 0 0 3px rgba(240, 67, 127, 0.24); }
.mnav-btn .hd-caret { width: 16px; height: 16px; }
.mnav-btn[aria-expanded="true"] .hd-caret { transform: rotate(180deg); }
.mnav-sub { display: grid; gap: var(--cc-s1); padding: 0 0 var(--cc-s4) 60px; }
.mnav-sub > a, .mnav-sub > span {
  display: flex; align-items: center; gap: var(--cc-s3); min-height: 52px; padding: var(--cc-s2) var(--cc-s3);
  border-radius: var(--cc-r-control); color: var(--cc-navy); text-decoration: none;
}
.mnav-sub > a:hover { background: var(--cc-navy-04); }
.mnav-sub > [aria-disabled="true"] { opacity: 0.5; }
.mnav-sub-group { padding: var(--cc-s3) var(--cc-s3) var(--cc-s1); color: var(--cc-navy-soft); }
.mnav-sub .grow { flex: 1; min-width: 0; display: grid; }

/* 모바일 아래 고정 막대 */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  display: flex; align-items: center; padding: 3px var(--cc-gutter) calc(4px + env(safe-area-inset-bottom));
  min-height: calc(var(--cc-mbar-h) + env(safe-area-inset-bottom));
  background: var(--cc-white); border-top: 1px solid var(--cc-line);
}
.mbar .btn { width: 100%; }
body.has-mbar { padding-bottom: calc(var(--cc-mbar-h) + env(safe-area-inset-bottom)) !important; }
html:has(> body.has-mbar) { scroll-padding-bottom: calc(var(--cc-mbar-h) + env(safe-area-inset-bottom) + 16px); }
@media (min-width: 1024px) { .mbar { display: none; } body.has-mbar { padding-bottom: 0 !important; } html:has(> body.has-mbar) { scroll-padding-bottom: 0; } }
html.cc-locked, html.cc-locked body { overflow: hidden; }

/* ---------------- 푸터 (4차: 담당 A) — 접힌 한 줄 + 사업자 정보 펼침, 모두 가운데 ---------------- */
.ft { background: var(--cc-navy-deep); color: var(--cc-white); padding: var(--cc-s7) 0 var(--cc-s6); }
.ft-in { display: grid; justify-items: center; gap: var(--cc-s4); text-align: center; }
.ft-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--cc-s3) var(--cc-s5); }
.ft-logo { display: inline-flex; align-items: center; min-height: 44px; }
.ft-logo img { width: auto; height: 28px; }
.ft-toggle {
  display: inline-flex; align-items: center; gap: var(--cc-s2); height: 44px; padding: 0 var(--cc-s4);
  border: 1px solid rgba(255, 255, 255, 0.24); border-radius: var(--cc-r-pill); background: none; color: rgba(255, 255, 255, 0.88);
  transition: border-color var(--cc-dur) var(--cc-ease), color var(--cc-dur) var(--cc-ease);
}
.ft-toggle:hover, .ft-toggle[aria-expanded="true"] { border-color: rgba(255, 255, 255, 0.56); color: var(--cc-white); }
.ft-toggle[aria-expanded="true"] .hd-caret { transform: rotate(180deg); }
.ft-toggle:focus-visible, .ft-legal a:focus-visible, .ft-links a:focus-visible, .ft-logo:focus-visible { outline-color: var(--cc-white); }
.ft-legal {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--cc-s1) var(--cc-s4); max-width: 760px; margin: 0; padding: 0; list-style: none;
  font-size: var(--cc-fs-legal); line-height: var(--cc-lh-legal); color: rgba(255, 255, 255, 0.84);
}
.ft-legal li { white-space: nowrap; }
.ft-legal li.ft-wrap { white-space: normal; }
.ft-k { color: rgba(255, 255, 255, 0.6); }
.ft-legal a { color: var(--cc-white); text-underline-offset: 3px; }
.ft-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--cc-s5); }
.ft-links a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255, 255, 255, 0.84); text-underline-offset: 3px; }
.ft-links a:hover { color: var(--cc-white); }
@media (min-width: 1024px) { .ft-logo img { height: 32px; } }
.tbd {
  display: inline-block; padding: 0 var(--cc-s1); border: 1px dashed currentColor; border-radius: 4px; opacity: 0.9;
}
.note-line { padding-block: var(--cc-s5); text-align: center; color: var(--cc-navy-soft); }   /* 회색 주석: 페이지당 1줄, 푸터 위 */

/* ---------------- 엘리베이터 전환 ---------------- */
.lift { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; color: var(--cc-white); }
.lift-door { position: absolute; top: 0; bottom: 0; width: 50.2%; background: var(--cc-navy-deep); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.lift-door--l { left: 0; }
.lift-door--r { right: 0; }
.lift-door--l::after, .lift-door--r::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.18); }
.lift-door--l::after { right: 0; }
.lift-door--r::after { left: 0; }
.lift-panel { position: relative; z-index: 1; display: grid; justify-items: center; gap: var(--cc-s3); text-align: center; }
.lift-floor { display: inline-flex; align-items: center; gap: var(--cc-s3); font-variant-numeric: tabular-nums; }
.lift-arrow { width: 0.5em; height: 0.5em; }
.lift-cue { width: 132px; height: auto; margin-top: var(--cc-s2); }
.lift[data-mode="short"] .lift-cue { display: none; }
.lift-skip { position: absolute; right: var(--cc-gutter); bottom: calc(var(--cc-s5) + env(safe-area-inset-bottom)); z-index: 2; }
html.cc-arriving::after {
  content: ""; position: fixed; inset: 0; z-index: 1001; background: var(--cc-navy-deep);
  animation: ccArriveSafety 1ms linear 1.6s forwards;   /* JS가 없어도 1.6초 뒤 반드시 사라짐 */
}
@keyframes ccArriveSafety { to { opacity: 0; visibility: hidden; } }

/* ---------------- "닥터 큐!" 전환 ---------------- */
.cue-pop { display: block; height: 0; }
.cue-fly {
  position: fixed; right: 0; top: 38%; z-index: 80; display: flex; align-items: center; gap: 4px;
  pointer-events: none; visibility: hidden;
}
.cue-fly img { width: 96px; height: auto; }
.cue-word {
  display: inline-flex; align-items: center; gap: var(--cc-s2); height: 52px; padding: 0 var(--cc-s5);
  border-radius: var(--cc-r-pill); background: var(--cc-white); box-shadow: var(--cc-shadow); color: var(--cc-navy);
  white-space: nowrap;
}
.cue-word::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cc-rose); flex: none; }
@media (min-width: 1024px) { .cue-fly img { width: 132px; } }

/* S 크기 알약은 한글 글자 무게중심이 0.6~0.9px 위라 1px 내림(세로 가운데 ±1px 기준) */
.badge, .chip, .num, .door-go { padding-top: 1px; }

/* 탭: 560px 미만은 2열 격자로 줄바꿈(모든 탭이 보이게, 홀수면 마지막 칸이 두 칸) */
@media (max-width: 559px) {
  [data-cc-tabs] .tabs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: visible;
  }
  [data-cc-tabs] .tabs[data-fade] { -webkit-mask-image: none; mask-image: none; }
  [data-cc-tabs] .tabs > .tab { width: 100%; min-width: 0; padding-inline: var(--cc-s2); white-space: normal; }
  [data-cc-tabs] .tabs > .tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* "닥터 큐!" 전환: 768px 미만은 끔 */
@media (max-width: 767px) { .cue-fly { display: none; } }

/* ---------------- 떠 있는 버튼 (4차: 담당 A) — 오른쪽 아래, 위: 맨 위로(닥터 큐) · 아래: 카카오톡 실시간 상담 ----------------
   z-index 90: 모바일 메뉴(99)·머리줄(100)·엘리베이터 전환(1000) 아래. 페이지 버튼·문진표·견적표가 그 자리에 오면 .is-dodging으로 비켜 줌 */
.fab {
  position: fixed; z-index: 90; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-end; gap: var(--cc-s3); pointer-events: none;
  transition: opacity var(--cc-dur) var(--cc-ease), visibility 0s linear 0s;
}
.fab > * { pointer-events: auto; flex: none; box-sizing: border-box; }   /* 크기는 모두 고정 px(전체 페이지 캡처에서도 늘지 않게) */
.fab.is-dodging { opacity: 0; visibility: hidden; transition: opacity var(--cc-dur) var(--cc-ease), visibility 0s linear var(--cc-dur); }
body.has-mbar .fab { bottom: calc(var(--cc-mbar-h) + env(safe-area-inset-bottom) + var(--cc-s3)); }
html.cc-locked .fab { visibility: hidden; }
@media (min-width: 1024px) {
  .fab { right: 24px; bottom: 24px; }
  body.has-mbar .fab { bottom: 24px; }
}

/* 카카오톡: 카카오 노랑 + 검은 글(대비 14:1 이상) */
.fab-talk {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--cc-s2);
  width: 52px; height: 52px; padding: 0; border-radius: var(--cc-r-pill);
  background: #FEE500; color: #191919; text-decoration: none;
  box-shadow: var(--cc-shadow), 0 0 0 1px rgba(20, 33, 61, 0.08);
  font-size: var(--cc-fs-b); font-weight: var(--cc-w-strong); line-height: 1; white-space: nowrap;
  transition: background-color var(--cc-dur) var(--cc-ease), transform 100ms var(--cc-ease);
  -webkit-tap-highlight-color: transparent;
}
.fab-talk:hover { background: #F5DC00; }
.fab-talk:active { transform: translateY(1px); }
.fab-talk-ico { width: 24px; height: 24px; flex: none; }
.fab-talk-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 768px) {
  .fab-talk { width: auto; padding: 0 var(--cc-s5) 0 var(--cc-s4); }
  .fab-talk-txt { position: static; width: auto; height: auto; overflow: visible; clip: auto; padding-top: 1px; }
}

/* 맨 위로: 닥터 큐(점프 포즈) + 분홍 위쪽 화살 배지. 한 화면 내려가면 나타남. 꺼져 있어도 자리는 차지(비켜 주기 계산용) */
.fab-top {
  position: relative; display: grid; place-items: end center; width: 60px; height: 60px; padding: 0; overflow: visible;
  border: 1px solid var(--cc-line); border-radius: 50%; background: var(--cc-white); box-shadow: var(--cc-shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--cc-dur) var(--cc-ease), transform var(--cc-dur) var(--cc-ease), visibility 0s linear var(--cc-dur);
}
.fab-top.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity var(--cc-dur) var(--cc-ease), transform var(--cc-dur) var(--cc-ease), visibility 0s; }
.fab-top img { width: 48px; max-width: none; height: 52px; object-fit: contain; margin-bottom: 3px; transition: transform var(--cc-dur) var(--cc-ease); }
.fab-top:hover img { transform: translateY(-3px); }
.fab-top-arrow {
  position: absolute; top: -4px; right: -4px; width: 22px; height: 22px; padding: 4px; border-radius: 50%;
  background: var(--cc-rose-deep); color: var(--cc-white); box-shadow: 0 0 0 2px var(--cc-white);
}
.fab-top:focus-visible, .fab-talk:focus-visible { outline: 2px solid var(--cc-navy); outline-offset: 3px; }

/* ---------------- 마우스 커서 (4차: 담당 A) — 정밀 포인터(마우스)에서만. 남색 화살 + 분홍 십자, 누를 곳은 분홍 화살 ---------------- */
@media (pointer: fine) {
  html { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M5 3v18.5l4.9-4.6 3.3 7.4 3.2-1.4-3.2-7.3h6.9z' fill='%2314213D' stroke='white' stroke-width='1.6' stroke-linejoin='round'/%3E%3Crect x='17.5' y='2.5' width='9' height='9' rx='2.5' fill='white'/%3E%3Cpath d='M22 4.6v4.8M19.6 7h4.8' stroke='%23F0437F' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 5 3, auto; }
  a[href], button:not(:disabled), summary, select, label:has(> input:not(:disabled)), [role="button"], [role="tab"],
  .link, .door, .opt > span, .est-opt > span, .faq-item > summary {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M5 3v18.5l4.9-4.6 3.3 7.4 3.2-1.4-3.2-7.3h6.9z' fill='%23F0437F' stroke='white' stroke-width='1.6' stroke-linejoin='round'/%3E%3Crect x='17.5' y='2.5' width='9' height='9' rx='2.5' fill='white'/%3E%3Cpath d='M22 4.6v4.8M19.6 7h4.8' stroke='%2314213D' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 5 3, pointer;
  }
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="color"]):not([type="file"]),
  textarea, [contenteditable="true"] { cursor: text; }
}
