/* 고객용 메신저형 채팅 — 모바일 서비스 프레임 */

.customer-chat-page {
  margin: 0;
  min-height: 100dvh;
  background: linear-gradient(165deg, #e8eef5 0%, #d4dce8 45%, #c5d0e0 100%);
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  color: #191919;
  position: relative;
}

.customer-chat-page__backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 15%, rgba(11, 31, 68, 0.04) 0%, transparent 42%),
    radial-gradient(circle at 80% 85%, rgba(254, 229, 0, 0.08) 0%, transparent 38%);
}

.customer-chat-device {
  position: relative;
  z-index: 1;
  max-width: 26.875rem;
  width: 100%;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0.75rem 0.65rem calc(0.85rem + env(safe-area-inset-bottom, 0));
  box-sizing: border-box;
}

.customer-chat-shell {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  background: #eef1f5;
  border-radius: 1.35rem;
  overflow: hidden;
  box-shadow:
    0 24px 48px rgba(11, 31, 68, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.customer-chat-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  background: linear-gradient(180deg, #fff9c4 0%, #fee500 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.customer-chat-header__brand {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  min-width: 0;
}

/* 고객용 헤더 lockup — 아이콘 전용 이미지 + HTML 텍스트 (병원/인트로 로고와 분리) */
.customer-brand-header,
.customer-header-lockup {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
  line-height: 1.2;
}

.customer-header-logo-icon {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: 36px;
  min-height: 32px;
  max-height: 38px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

.customer-header-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.05rem;
  min-width: 0;
}

.customer-header-brand-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #191919;
  line-height: 1.15;
  white-space: nowrap;
}

.customer-header-brand-subtitle {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #3d4f6a;
  line-height: 1.2;
  white-space: nowrap;
}

/* 노란 채팅 헤더 — 흰 배경 박스 없이 아이콘만 보이게 */
.customer-brand-header--chat .customer-header-logo-icon,
.customer-header-lockup--chat .customer-header-logo-icon {
  height: 36px;
  max-height: 38px;
  width: auto;
  max-width: none;
  mix-blend-mode: multiply;
}

.customer-chat-header__brand .customer-brand-header,
.customer-chat-header__brand .customer-header-lockup {
  min-width: 0;
}

.customer-chat-header__brand .customer-header-brand-text {
  overflow: hidden;
}

.customer-chat-header__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.customer-chat-header__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  padding: 0.35rem 0.5rem;
  border: none;
  border-radius: 0.4rem;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.customer-chat-header__nav-btn:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.06);
}

.customer-chat-header__nav-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.customer-chat-header__nav-btn:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.customer-chat-header__info {
  min-width: 0;
}

.customer-chat-header__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0b1f44;
  letter-spacing: -0.02em;
}

.customer-chat-header__sub {
  margin: 0.08rem 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(11, 31, 68, 0.62);
}

.customer-chat-header__exit {
  /* .customer-chat-header__nav-btn 와 동일 계열 */
}

/* 고객용 3단계 진행: 정보입력 · 동의하기 · AI 분석 */
.customer-service-progress {
  flex-shrink: 0;
  padding: 0.55rem 0.65rem 0.45rem;
  background: #fff;
  border-bottom: 1px solid #e8ecf2;
  position: relative;
  z-index: 5;
}

.customer-service-progress__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

.customer-service-progress__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  text-align: center;
}

.customer-service-progress__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  width: 100%;
  text-align: center;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
}

.customer-service-progress__link:hover .customer-service-progress__label {
  color: #0b1f44;
}

.customer-service-progress__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 800;
  background: #e8ecf2;
  color: #94a3b8;
  border: 1.5px solid #dde3ec;
}

.customer-service-progress__label {
  font-size: 0.62rem;
  line-height: 1.25;
  color: #94a3b8;
  font-weight: 600;
  word-break: keep-all;
}

.customer-service-progress__item.is-done .customer-service-progress__dot {
  background: #0b1f44;
  border-color: #0b1f44;
  color: #fff;
}

.customer-service-progress__item.is-done .customer-service-progress__label {
  color: #475569;
}

.customer-service-progress__item.is-current .customer-service-progress__dot {
  background: #fee500;
  border-color: #e6c200;
  color: #191919;
  box-shadow: 0 0 0 3px rgba(254, 229, 0, 0.35);
}

.customer-service-progress__item.is-current .customer-service-progress__label {
  color: #0b1f44;
  font-weight: 800;
}

.customer-chat-header__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.customer-chat-header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  min-width: 3.1rem;
  padding: 0 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  color: #191919;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
}

.customer-chat-header__btn--reset {
  background: #fff8e6;
  border-color: rgba(0, 0, 0, 0.18);
}

.customer-chat-header__btn--exit {
  background: #fff;
}

.customer-chat-header__btn:hover,
.customer-chat-header__btn:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  box-shadow: 0 0 0 2px rgba(25, 25, 25, 0.12);
}

.customer-chat-header__btn:active {
  transform: scale(0.98);
}

@media (max-width: 380px) {
  .customer-chat-header {
    padding: 0.55rem 0.5rem;
    gap: 0.45rem;
  }

  .customer-chat-header__title {
    font-size: 0.92rem;
  }

  .customer-chat-header__sub {
    font-size: 0.68rem;
  }

  .customer-chat-header__btn {
    min-height: 2.5rem;
    padding: 0 0.55rem;
    font-size: 0.74rem;
  }
}

.customer-chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 0.7rem 0.5rem;
  scroll-behavior: smooth;
  background: linear-gradient(180deg, #dce4ed 0%, #d0dae6 100%);
}

.customer-chat-row {
  display: flex;
  margin-bottom: 0.55rem;
  animation: customer-chat-fade-in 0.28s ease;
}

@keyframes customer-chat-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.customer-chat-row--bot {
  justify-content: flex-start;
}

.customer-chat-row--user {
  justify-content: flex-end;
}

.customer-chat-avatar {
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  margin-right: 0.4rem;
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(11, 31, 68, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.customer-chat-avatar img {
  width: 92%;
  max-width: 1.95rem;
  height: auto;
  max-height: 1.35rem;
  object-fit: contain;
}

.customer-chat-bubble {
  max-width: 78%;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  line-height: 1.45;
  word-break: break-word;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.customer-chat-row--bot .customer-chat-bubble {
  background: #fff;
  border-top-left-radius: 0.2rem;
  color: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.customer-chat-row--user .customer-chat-bubble {
  background: #fee500;
  border-top-right-radius: 0.2rem;
  color: #191919;
}

.customer-chat-row--bot > div:last-child,
.customer-chat-row--user > div:last-child {
  max-width: 78%;
}

.customer-chat-bubble--sensitive-hint {
  margin-top: 0.35rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.68rem;
  color: #6b4e00;
  background: rgba(254, 229, 0, 0.35);
  border-radius: 0.5rem;
}

.customer-chat-footer {
  flex-shrink: 0;
  padding: 0.55rem 0.7rem calc(0.7rem + env(safe-area-inset-bottom, 0));
  background: #fff;
  border-top: 1px solid #e8ecf2;
  box-shadow: 0 -4px 16px rgba(11, 31, 68, 0.06);
}

.customer-chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

/* AI 보험금 찾기 선택 CTA — 동일 폭·중앙 정렬 */
.customer-chat-quick.customer-chat-quick--stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.65rem;
}

.customer-chat-quick--stacked .customer-chat-quick__btn {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 0.65rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.35;
  white-space: normal;
}

/* 카카오톡 본인인증 — 하단 CTA 중앙·넓은 폭 */
.customer-chat-quick.customer-chat-quick--kakao-auth {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.65rem;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.customer-chat-quick--kakao-auth .customer-chat-quick__btn {
  display: block;
  width: calc(100% - 48px);
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  text-align: center;
  padding: 0.65rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.35;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .customer-chat-quick--kakao-auth .customer-chat-quick__btn {
    white-space: normal;
    font-size: 0.84rem;
  }
}

.customer-chat-quick[hidden] {
  display: none !important;
}

.customer-claim-finder-waiting {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.35rem 0 0.55rem;
}

.customer-claim-finder-waiting[hidden] {
  display: none !important;
}

.customer-claim-finder-waiting__spinner {
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid #e8ecf2;
  border-top-color: #8a6d00;
  border-radius: 50%;
  animation: customer-claim-finder-spin 0.75s linear infinite;
}

@keyframes customer-claim-finder-spin {
  to {
    transform: rotate(360deg);
  }
}

.customer-chat-quick__btn {
  padding: 0.45rem 0.85rem;
  border: 1px solid #d4d4d4;
  border-radius: 1.25rem;
  background: #fff;
  font-size: 0.82rem;
  color: #191919;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.customer-chat-quick__btn:hover {
  background: #fffef5;
  border-color: #fee500;
}

.customer-chat-form {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
}

.customer-chat-form[hidden] {
  display: none !important;
}

.customer-chat-input-wrap {
  flex: 1;
  min-width: 0;
}

.customer-chat-input-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #8a6d00;
}

.customer-chat-input-label[hidden] {
  display: none;
}

.customer-chat-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 1.25rem;
  font-size: 0.9rem;
  background: #fff;
}

.customer-chat-input--sensitive {
  border-color: #e6c200;
  background: #fffef8;
}

.customer-chat-input:focus {
  outline: none;
  border-color: #fee500;
  box-shadow: 0 0 0 2px rgba(254, 229, 0, 0.35);
}

.customer-chat-send {
  flex-shrink: 0;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 1.25rem;
  background: #fee500;
  font-size: 0.88rem;
  font-weight: 600;
  color: #191919;
  cursor: pointer;
}

.customer-chat-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.customer-chat-send:not(:disabled):hover {
  filter: brightness(0.97);
}

.customer-chat-date-divider {
  text-align: center;
  margin: 0.75rem 0;
  font-size: 0.68rem;
  color: rgba(0, 0, 0, 0.45);
}

.customer-chat-withdraw-wrap {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
}

.customer-chat-withdraw-btn {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 0.72rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.customer-chat-withdraw-btn:hover {
  color: #374151;
}

.customer-chat-withdraw-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.customer-chat-complete-note {
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.5);
  margin: 0;
}

.customer-chat-complete-note--footer {
  margin-top: 0.65rem;
  padding: 0.55rem 0.75rem 0.15rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.customer-consent-panel {
  margin-bottom: 0.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.65rem;
  background: #fff;
  overflow: hidden;
}

.customer-consent-panel[hidden] {
  display: none !important;
}

.customer-consent-panel__toggle {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: none;
  background: #fffef0;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: #191919;
}

.customer-consent-panel__body {
  display: none;
  max-height: 12rem;
  overflow-y: auto;
  padding: 0.65rem 0.75rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #333;
}

.customer-consent-panel--open .customer-consent-panel__body {
  display: block;
}

.customer-consent-panel__title {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
}

.customer-consent-panel__lead {
  margin: 0 0 0.65rem;
  color: #666;
}

.customer-consent-section {
  margin-bottom: 0.55rem;
}

.customer-consent-section h3 {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
}

.customer-consent-section p {
  margin: 0;
}

.customer-consent-section--demo {
  padding-top: 0.35rem;
  border-top: 1px dashed #ddd;
}

.customer-consent-modal[hidden] {
  display: none !important;
}

.customer-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

body.customer-consent-modal-open {
  overflow: hidden;
}

.customer-consent-modal__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.customer-consent-modal__sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  max-height: 85dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
}

.customer-consent-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #eee;
}

.customer-consent-modal__title {
  margin: 0;
  font-size: 0.95rem;
}

.customer-consent-modal__close {
  border: none;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 0.15rem 0.35rem;
}

.customer-consent-modal__body {
  overflow-y: auto;
  padding: 0.75rem 0.85rem 1rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #333;
}

.customer-consent-modal__body .customer-consent-panel__title {
  font-size: 0.88rem;
}

.customer-chat-quick__btn--primary {
  background: linear-gradient(180deg, #ffe033 0%, #fee500 100%);
  border-color: #e6c200;
  font-weight: 800;
  color: #191919;
  box-shadow: 0 4px 12px rgba(254, 229, 0, 0.35);
}

.customer-chat-quick__btn--outline {
  background: #fff;
  border-color: #cbd5e1;
  color: #475569;
  font-weight: 600;
}

.customer-chat-quick__btn--danger {
  border-color: #e8a0a8;
  color: #9a1530;
}

.customer-chat-summary-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.customer-chat-summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.customer-chat-summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #eee;
}

.customer-chat-summary-list li:last-child {
  border-bottom: none;
}

.customer-chat-summary-list span {
  color: #666;
}

.customer-chat-bubble--summary-guide {
  max-width: 88%;
}

.customer-chat-bubble--completion {
  max-width: 88%;
  background: #fff;
  border: 1px solid rgba(11, 31, 68, 0.08);
  white-space: pre-line;
}

.customer-claim-finder-start {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1rem 2rem;
}

.customer-claim-finder-start__title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0b1f44;
  letter-spacing: -0.02em;
}

.customer-claim-finder-start__lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #475569;
}

.customer-claim-finder-start__note {
  margin: 1.25rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 0.65rem;
  background: #fff;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.customer-claim-finder-start-page .customer-chat-header__actions {
  display: none;
}

.customer-chat-summary-guide__p {
  margin: 0 0 0.55rem;
  line-height: 1.5;
  word-break: keep-all;
}

.customer-chat-summary-guide__p:last-of-type {
  margin-bottom: 0.65rem;
}

.customer-chat-summary-guide__toggle {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.2rem 0;
  border: none;
  background: transparent;
  color: #0b1f44;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.customer-chat-summary-guide__toggle:hover {
  color: #1e3a5f;
}

.customer-chat-summary-guide__details {
  margin-top: 0.55rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(11, 31, 68, 0.08);
}

.customer-chat-summary-guide__details[hidden] {
  display: none !important;
}

.customer-chat-summary-guide__details-title {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0b1f44;
  line-height: 1.35;
}

.customer-chat-summary-guide__details-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.customer-chat-summary-guide__details-list li {
  font-size: 0.66rem;
  line-height: 1.45;
  color: #334155;
}

.customer-chat-summary-guide__details-list strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #0b1f44;
  margin-bottom: 0.1rem;
}

.customer-chat-summary-note {
  margin: 0.5rem 0 0;
  font-size: 0.68rem;
  color: #888;
}

.customer-chat-kw {
  color: #1a6fb5;
  font-weight: 700;
}

.customer-consent-dock {
  margin-bottom: 0.35rem;
  padding: 0;
}

.customer-consent-dock[hidden] {
  display: none !important;
}

.customer-consent-summary {
  margin-bottom: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.customer-consent-summary__title {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0b1f44;
}

.customer-consent-summary__list {
  margin: 0;
  padding: 0 0 0 1rem;
  font-size: 0.74rem;
  line-height: 1.55;
  color: #475569;
}

.customer-consent-summary__note {
  margin: 0.45rem 0 0;
  font-size: 0.66rem;
  color: #94a3b8;
  line-height: 1.4;
}

.customer-consent-dock__view {
  display: block;
  width: 100%;
  margin-bottom: 0.45rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.55rem;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  font-family: inherit;
}

.customer-consent-dock__view:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

/* 동의 화면: 거부·나중에·하단 안내 문구는 UI만 숨김(기능/핸들러 유지) */
.customer-consent-dock__ui-suppressed {
  display: none !important;
}

.customer-consent-dock__actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.customer-consent-dock__agree,
.customer-consent-dock__decline {
  width: 100%;
  min-height: 2.75rem;
  border-radius: 0.65rem;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
}

.customer-consent-dock__actions:has(.customer-consent-dock__ui-suppressed) {
  gap: 0;
}

.customer-consent-dock__later {
  display: block;
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.25rem;
  border: none;
  background: transparent;
  font-size: 0.74rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font-family: inherit;
}

.customer-consent-dock__later:hover {
  color: #64748b;
}

.customer-consent-dock__privacy {
  margin: 0.5rem 0 0;
  font-size: 0.66rem;
  line-height: 1.45;
  color: #94a3b8;
  text-align: center;
}

.customer-summary-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.75rem 0.5rem 0.35rem;
  max-width: 22rem;
  margin: 0 auto;
}

.customer-summary-cta[hidden] {
  display: none !important;
}

.customer-summary-cta__main {
  align-self: center;
  width: 100%;
  max-width: 18rem;
  padding: 0.95rem 1.25rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #fee500 0%, #f5c400 100%);
  color: #191919;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.customer-summary-cta__main:hover {
  filter: brightness(1.03);
}

.customer-summary-cta__details-toggle {
  align-self: center;
  border: none;
  background: transparent;
  color: #1e3a5f;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.customer-summary-cta__details-toggle:hover {
  color: #0b1f44;
}

.customer-summary-cta__details-title {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0b1f44;
  line-height: 1.35;
  text-align: center;
}

.customer-summary-cta__details {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(11, 31, 68, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.customer-summary-cta__details[hidden] {
  display: none !important;
}

.customer-summary-cta__details-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.customer-summary-cta__details-list li {
  font-size: 0.68rem;
  line-height: 1.45;
  color: #334155;
}

.customer-summary-cta__details-list strong {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #0b1f44;
  margin-bottom: 0.12rem;
}

.customer-summary-cta__secondary,
.customer-summary-cta__withdraw {
  align-self: center;
  border: none;
  background: transparent;
  color: #666;
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
}

.customer-summary-cta__withdraw {
  color: #6b7280;
  font-size: 0.72rem;
  margin-top: 0.05rem;
}

.customer-summary-cta__withdraw:disabled {
  opacity: 0.55;
  cursor: wait;
}

.customer-find-progress,
.customer-chat-log--after-results {
  flex: 0 1 auto;
  max-height: 42vh;
  min-height: 6rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #b2c7d9;
}

.customer-find-results {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.85rem;
}

.customer-find-progress[hidden],
.customer-find-results[hidden] {
  display: none !important;
}

.customer-find-progress__card,
.customer-find-results__card {
  background: #fff;
  border-radius: 0.85rem;
  padding: 1rem 0.85rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.customer-find-progress__title,
.customer-find-results__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.customer-find-progress__stage-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
}

.customer-find-progress__stage-title[hidden] {
  display: none !important;
}

.customer-find-kakao-highlight {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #fff9c4 0%, #fee500 55%, #ffe566 100%);
  border: 1px solid #e6c200;
  box-shadow: 0 2px 8px rgba(254, 229, 0, 0.35);
}

.customer-find-kakao-highlight[hidden] {
  display: none !important;
}

.customer-find-kakao-highlight__icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #191919;
  color: #fee500;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.75rem;
  text-align: center;
}

.customer-find-kakao-highlight__text {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #191919;
  line-height: 1.4;
}

.customer-find-progress__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.customer-find-progress__badge {
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #666;
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
}

.customer-find-progress__badge.is-active {
  color: #191919;
  background: #fee500;
  border-color: #e6c200;
}

.customer-find-progress__badge.is-done {
  color: #2e7d32;
  background: #e8f5e9;
  border-color: #c8e6c9;
}

.customer-find-progress__subtitle {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a1a1a;
}

.customer-find-progress__subtitle[hidden],
.customer-find-progress__hint[hidden] {
  display: none !important;
}

.customer-find-progress__message {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: #333;
}

.customer-find-progress__hint {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: #555;
  line-height: 1.45;
}

.customer-find-progress__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0 0.75rem;
  padding: 0.5rem 0.25rem;
  text-align: center;
}

.customer-find-progress__loading[hidden] {
  display: none !important;
}

.customer-find-progress.is-loading .customer-find-progress__steps {
  opacity: 0.55;
}

.customer-find-progress__spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(26, 111, 181, 0.2);
  border-top-color: #1a6fb5;
  border-radius: 50%;
  animation: customer-find-spin 0.85s linear infinite;
}

.customer-find-progress__dots {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 0.5rem;
}

.customer-find-progress__dots i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #1a6fb5;
  animation: customer-find-dot 1.1s ease-in-out infinite;
}

.customer-find-progress__dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.customer-find-progress__dots i:nth-child(3) {
  animation-delay: 0.3s;
}

.customer-find-progress__loading-line {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a1a;
}

.customer-find-progress__loading-sub {
  margin: 0;
  font-size: 0.82rem;
  color: #555;
}

@keyframes customer-find-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes customer-find-dot {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.customer-find-progress__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
}

.customer-find-progress__step {
  padding: 0.35rem 0;
  color: #999;
}

.customer-find-progress__step.is-active {
  color: #1a6fb5;
  font-weight: 700;
}

.customer-find-progress__step.is-done {
  color: #2e7d32;
}

.customer-find-progress__auth-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  padding: 0 0.25rem 0.25rem;
}

.customer-find-progress__auth-btn {
  margin-top: 0.75rem;
  width: 100%;
  padding: 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid #1a6fb5;
  background: #fff;
  color: #1a6fb5;
  font-weight: 600;
  cursor: pointer;
}

.customer-find-progress__auth-btn--kakao {
  width: calc(100% - 48px);
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  min-height: 3.25rem;
  padding: 0.95rem 1.25rem;
  border: none;
  border-radius: 0.65rem;
  background: linear-gradient(180deg, #ffe033 0%, #fee500 100%);
  color: #191919;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(254, 229, 0, 0.35);
}

@media (max-width: 360px) {
  .customer-find-progress__auth-btn--kakao {
    white-space: normal;
    font-size: 0.84rem;
  }
}

.customer-find-progress__auth-btn--kakao:active {
  transform: scale(0.98);
}

.customer-find-progress__auth-btn:disabled,
.customer-find-progress__auth-btn.is-busy {
  opacity: 0.72;
  cursor: wait;
  pointer-events: none;
}

.customer-find-progress__auth-btn[hidden] {
  display: none !important;
}

.customer-find-results__status {
  margin: 0 0 0.85rem;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  line-height: 1.5;
}

.customer-find-results__actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.customer-find-results__btn {
  padding: 0.65rem 0.75rem;
  border-radius: 0.55rem;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.customer-find-results__btn--primary {
  background: #fee500;
  border-color: #e6c200;
  font-weight: 700;
}

.customer-view-sheet[hidden] {
  display: none !important;
}

.customer-view-sheet {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

body.customer-view-sheet-open {
  overflow: hidden;
}

.customer-view-sheet__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.customer-view-sheet__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  max-height: 85dvh;
  background: #fff;
  border-radius: 1rem 1rem 0 0;
  display: flex;
  flex-direction: column;
}

.customer-view-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #eee;
}

.customer-view-sheet__body {
  overflow-y: auto;
  padding: 0;
  font-size: 0.82rem;
  flex: 1;
  min-height: 0;
}

.customer-view-sheet__iframe {
  display: block;
  width: 100%;
  min-height: 70dvh;
  border: none;
  background: #fff;
}

.customer-result-page {
  background: #f5f6f8;
}

.customer-result-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(180deg, #fff9c4 0%, #fee500 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.customer-result-header__brand {
  flex-shrink: 0;
  margin-left: auto;
}

.customer-result-header__brand .customer-header-logo-icon {
  height: 2rem;
  max-height: 2.375rem;
  max-width: 3rem;
  mix-blend-mode: multiply;
}

.customer-result-header__back {
  font-size: 0.82rem;
  font-weight: 600;
  color: #191919;
  text-decoration: none;
}

.customer-result-header__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.customer-result-main {
  padding: 0.75rem 0.85rem 1.25rem;
}

.customer-result-nav {
  margin-top: 1rem;
}

.customer-insurance-reference {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px dashed #ccc;
}

.customer-insurance-reference__title {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
}

.customer-insurance-reference__lead {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: #666;
}

.insurance-product-card__actual-loss-badge {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #0d47a1;
  background: #e3f2fd;
  border: 1px solid #90caf9;
}

.customer-view-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.customer-view-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.customer-ai-card__metric {
  margin: 0.35rem 0;
  font-size: 0.9rem;
}

.customer-ai-card__note {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.72rem;
  color: #666;
}

.customer-ai-card__details {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #555;
}

.customer-find-results__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.customer-find-results__auto-claim-btn {
  flex-shrink: 0;
  padding: 0.55rem 0.85rem;
  border: none;
  border-radius: 0.5rem;
  background: #fee500;
  color: #191919;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.customer-find-results__auto-claim-btn[hidden] {
  display: none !important;
}

.customer-ai-inline {
  margin-top: 0.85rem;
  animation: customer-ai-inline-in 0.25s ease;
}

.customer-ai-inline[hidden] {
  display: none !important;
}

@keyframes customer-ai-inline-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.customer-ai-inline-card {
  padding: 0.85rem;
  border-radius: 0.65rem;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.customer-ai-inline-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.customer-ai-inline-card__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.customer-ai-inline-card__auto-claim {
  flex-shrink: 0;
  padding: 0.45rem 0.65rem;
  border: none;
  border-radius: 0.45rem;
  background: #fee500;
  color: #191919;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.customer-ai-inline-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.customer-ai-inline-card__stat {
  padding: 0.55rem 0.6rem;
  border-radius: 0.5rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.customer-ai-inline-card__stat-label {
  display: block;
  font-size: 0.68rem;
  color: #666;
  margin-bottom: 0.2rem;
}

.customer-ai-inline-card__stat-value {
  font-size: 0.95rem;
  color: #1a1a1a;
}

.customer-ai-inline-card__metric {
  margin: 0.25rem 0;
  font-size: 0.88rem;
}

.customer-ai-inline-card__badge {
  display: inline-block;
  margin: 0.35rem 0 0.5rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  background: #e8f4ea;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1b5e20;
}

.customer-ai-inline-card__subtitle {
  margin: 0.65rem 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.customer-ai-inline-card__disclaimer {
  margin: 0.75rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  font-size: 0.72rem;
  color: #666;
}

@media (max-width: 22rem) {
  .customer-find-results__head {
    flex-direction: column;
  }
  .customer-find-results__auto-claim-btn {
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* 고객용 보험가입이력 상태 요약 */
.customer-insurance-summary {
  margin: 0 0 1.25rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: #fafafa;
  border: 1px solid var(--rr-line, #e8e8e8);
}

.customer-insurance-summary__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.customer-insurance-summary__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.customer-insurance-summary__card {
  padding: 0.55rem 0.45rem;
  border-radius: 0.5rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
}

.customer-insurance-summary__card--accent {
  border-color: rgba(196, 30, 58, 0.25);
  background: #fff8f9;
}

.customer-insurance-summary__label {
  display: block;
  font-size: 0.68rem;
  color: #666;
  margin-bottom: 0.15rem;
}

.customer-insurance-summary__value {
  font-size: 1rem;
  color: var(--rr-ink, #1a1a1a);
}

.customer-insurance-summary__note {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  color: #666;
  line-height: 1.45;
}

@media (max-width: 36rem) {
  .customer-insurance-summary__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 고객용 AI 분석 전체화면(병원 템플릿 재사용) */
.ai-analysis-page--customer .analysis-main {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 2.5rem;
}

.ai-analysis-page--customer .customer-ai-page-disclaimer {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  background: #f5f8ff;
  border: 1px solid #d8e4ff;
  font-size: 0.82rem;
  color: #333;
  line-height: 1.5;
}

.ai-analysis-page--customer .analysis-nav {
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* —— 고객 채팅 + 데스크톱 우측 메뉴 (기존 카드 폭 유지) —— */

.customer-chat-layout {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26.875rem;
  margin: 0 auto;
  box-sizing: border-box;
}

.customer-hub-menu--desktop {
  display: none;
}

/* 모바일 FAB */
.customer-hub-fab {
  display: none;
  position: fixed;
  z-index: 40;
  right: 1rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0));
  padding: 0.55rem 0.85rem;
  border: 1px solid #e6c200;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe033 0%, #fee500 100%);
  color: #191919;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(11, 31, 68, 0.18);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.customer-hub-fab:hover {
  filter: brightness(1.02);
}

.customer-chat-page:has(.customer-consent-dock:not([hidden])) .customer-hub-fab,
.customer-chat-page:has(#customer-summary-cta:not([hidden])) .customer-hub-fab,
.customer-chat-page:has(.customer-chat-quick:not([hidden])) .customer-hub-fab {
  bottom: calc(5.75rem + env(safe-area-inset-bottom, 0));
}

.customer-chat-page:has(.customer-consent-dock:not([hidden])):has(#customer-summary-cta:not([hidden])) .customer-hub-fab {
  bottom: calc(8.5rem + env(safe-area-inset-bottom, 0));
}

/* 모바일 바텀시트 */
.customer-hub-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.customer-hub-sheet.is-open {
  pointer-events: auto;
}

.customer-hub-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 68, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.customer-hub-sheet.is-open .customer-hub-sheet__backdrop {
  opacity: 1;
}

.customer-hub-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -8px 32px rgba(11, 31, 68, 0.16);
  transform: translateY(100%);
  transition: transform 0.28s ease;
}

.customer-hub-sheet.is-open .customer-hub-sheet__panel {
  transform: translateY(0);
}

.customer-hub-sheet__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem 0.35rem;
  border-bottom: 1px solid #eef1f5;
}

.customer-hub-sheet__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0b1f44;
}

.customer-hub-sheet__close {
  flex-shrink: 0;
  border: none;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.customer-hub-sheet__desc {
  flex-shrink: 0;
  margin: 0;
  padding: 0.35rem 1rem 0.5rem;
  font-size: 0.68rem;
  line-height: 1.4;
  color: #64748b;
}

.customer-hub-sheet__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 0.65rem calc(0.85rem + env(safe-area-inset-bottom, 0));
  -webkit-overflow-scrolling: touch;
}

.customer-hub-menu__card--sheet {
  box-shadow: none;
  background: transparent;
  padding: 0.25rem 0 0;
  border-radius: 0;
}

body.customer-hub-sheet-open {
  overflow: hidden;
}

.customer-hub-menu__card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0.85rem;
  padding: 0.75rem 0.7rem;
  box-shadow:
    0 10px 28px rgba(11, 31, 68, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(6px);
  pointer-events: auto;
}

.customer-hub-menu--desktop {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.customer-hub-menu__title {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0b1f44;
}

.customer-hub-menu__desc {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.4;
  color: #64748b;
}

.customer-hub-menu__list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.customer-hub-menu__item {
  padding: 0.5rem 0.55rem;
  border-radius: 0.55rem;
  background: #fafbfc;
  border: 1px solid #e8ecf2;
}

.customer-hub-menu__item-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.customer-hub-menu__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: rgba(254, 229, 0, 0.28);
  font-size: 0.9rem;
  line-height: 1;
  flex-shrink: 0;
}

.customer-hub-menu__item-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
  min-width: 0;
}

.customer-hub-menu__item-desc {
  margin: 0.28rem 0 0;
  padding-left: 2.05rem;
  font-size: 0.64rem;
  line-height: 1.35;
  color: #94a3b8;
}

.customer-hub-menu__item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding-left: 2.05rem;
  min-width: 0;
}

.customer-hub-menu__badge {
  flex-shrink: 0;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.25;
}

.customer-hub-menu__badge--pending {
  background: #f1f5f9;
  color: #64748b;
}

.customer-hub-menu__badge--ready {
  background: #e0f2fe;
  color: #0369a1;
}

.customer-hub-menu__badge--progress {
  background: #fef9c3;
  color: #854d0e;
}

.customer-hub-menu__badge--done {
  background: #dcfce7;
  color: #166534;
}

.customer-hub-menu__link {
  display: inline-block;
  position: relative;
  z-index: 3;
  min-width: 0;
  font-size: 0.68rem;
  font-weight: 700;
  color: #0b1f44;
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(11, 31, 68, 0.2);
  line-height: 1.35;
  pointer-events: auto;
  cursor: pointer;
}

.customer-hub-menu__link:hover {
  color: #854d0e;
  border-bottom-color: #e6c200;
}

/* placeholder 하위 페이지 */
.customer-hub-placeholder {
  flex: 1;
  padding: 1.25rem 1rem 1.5rem;
  overflow-y: auto;
}

.customer-hub-placeholder__title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: #0b1f44;
}

.customer-hub-placeholder__empty,
.customer-hub-placeholder__lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #475569;
}

.customer-hub-placeholder__meta {
  margin: 1rem 0 0;
  font-size: 0.72rem;
  color: #94a3b8;
}

.customer-chat-device--placeholder .customer-chat-shell {
  min-height: 20rem;
  max-height: none;
}

@media (min-width: 901px) {
  .customer-chat-layout {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1.15rem;
    max-width: none;
    width: 100%;
    padding: 0.75rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0));
    box-sizing: border-box;
  }

  .customer-chat-device {
    flex: 0 0 auto;
    max-width: 26.875rem;
    width: 26.875rem;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .customer-hub-menu--desktop {
    display: block;
    flex: 0 0 15rem;
    width: 15rem;
    max-width: 15rem;
    margin-top: 0.75rem;
    position: sticky;
    top: 0.75rem;
  }

  .customer-hub-fab,
  .customer-hub-sheet {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .customer-hub-menu--desktop {
    display: none !important;
  }

  .customer-hub-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
