/**
 * [SOBI (소비) 화이트 & 제트블랙 모노크롬 SaaS 반응형 스타일시트]
 * - 컬러 시스템: 순백 캔버스(#FFFFFF) + 보조 서피스(#F4F4F5 / #FAFAFA) + 제트블랙 잉크(#09090B)
 * - 공간 연속성 UX: 슬라이딩 시트 상단 20%, 좌우 각 5% 여백 엄수 및 3D 구체 상단 축소 이동
 * - 전 기기 대응: PC, 태블릿, macOS/iOS Safari (100dvh, safe-area, 16px input zoom 방지), 모바일 최적화
 */

:root {
  --bg-canvas: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-sub: #F4F4F5;
  --bg-subtle: #FAFAFA;
  --ink-primary: #09090B;
  --ink-secondary: #52525B;
  --ink-muted: #A1A1AA;
  --border-light: #E4E4E7;
  --border-strong: #09090B;
  --shadow-card: 0 10px 30px rgba(9, 9, 11, 0.06), 0 2px 8px rgba(9, 9, 11, 0.04);
  --shadow-sheet: 0 -12px 44px rgba(9, 9, 11, 0.12), 0 0 0 1px rgba(9, 9, 11, 0.08);
  --shadow-float: 0 20px 50px rgba(9, 9, 11, 0.14), 0 4px 14px rgba(9, 9, 11, 0.06);
  --ease-jarvis: cubic-bezier(0.19, 1, 0.22, 1);
  --font-sans: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-hud: 'Orbitron', sans-serif;
  --font-cyber: 'Chakra Petch', 'Orbitron', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

.hidden {
  display: none !important;
}

.mono {
  font-family: var(--font-mono);
}

/* 카카오톡·네이버·인스타그램 등 인앱 브라우저 외부 전환 전체화면 게이트 */
.inapp-escape-overlay {
  position: fixed;
  inset: 0;
  z-index: 320;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px));
}

.inapp-escape-card {
  width: min(380px, 92vw);
  padding: 28px 22px 22px;
  border-radius: 24px;
  border: 1.5px solid var(--ink-primary);
  background: #FFFFFF;
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.inapp-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-sub);
  color: var(--ink-primary);
}

.inapp-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  margin-top: 2px;
}

.inapp-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}

.inapp-primary-btn {
  width: 100%;
  height: 48px;
  border-radius: 13px;
  background: var(--ink-primary);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.16s ease;
}

.inapp-primary-btn:hover {
  opacity: 0.9;
}

.inapp-secondary-btn {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  color: var(--ink-primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inapp-guide-note {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-subtle);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.inapp-skip-link {
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: underline;
}

/* 초기 진입 및 새로고침 시 로그인 창 깜빡임 대신 노출되는 미니멀 로딩 게이지바 */
.boot-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.boot-loading-overlay.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-loading-inner {
  width: min(250px, 74vw);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.boot-brand-logo {
  font-family: var(--font-cyber);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.28em;
  padding-left: calc(0.28em + 2px);
  color: var(--ink-primary);
}

.boot-gauge-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--bg-sub);
  overflow: hidden;
  margin: 15px 0 9px;
}

.boot-gauge-fill {
  width: 18%;
  height: 100%;
  border-radius: 999px;
  background: var(--ink-primary);
  transition: width 0.26s var(--ease-jarvis);
}

.boot-status-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-muted);
}

/* ==========================================================================
   1. 상단 글로벌 헤더 바 & 플로팅 패널 (업데이트 내역 · 디자이너 메뉴)
   ========================================================================== */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  min-height: calc(68px + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 24px 10px;
  pointer-events: none;
}

.top-header > * {
  pointer-events: auto;
}

/* 상단 정중앙 최적 비율 사이버틱 영문 'SOBI' 브랜드 워드마크 */
.sobi-brand-mark {
  position: absolute;
  left: 50%;
  top: calc(18px + env(safe-area-inset-top, 0px));
  height: 40px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-cyber);
  font-size: clamp(26px, 2.9vw, 31px);
  font-weight: 400;
  letter-spacing: 0.28em;
  padding-left: calc(0.28em + 2px); /* 자간 및 우측 세로획 'I'의 비대칭 무게중심까지 반영한 광학 정중앙 정렬 */
  color: var(--ink-primary);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: letter-spacing 0.28s var(--ease-jarvis), padding-left 0.28s var(--ease-jarvis), opacity 0.2s ease;
}

.sobi-brand-mark:hover {
  letter-spacing: 0.33em;
  padding-left: calc(0.33em + 2px);
  opacity: 0.8;
}

body.listening-mode .sobi-brand-mark {
  letter-spacing: 0.35em;
  padding-left: calc(0.35em + 2px);
}

/* 좌측 모핑 상태 테스트 스위치 */
.morph-switch-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(9, 9, 11, 0.04);
}

.morph-btn {
  padding: 6px 11px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  border-radius: 999px;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.morph-btn:hover {
  color: var(--ink-primary);
  background: var(--bg-sub);
}

.morph-btn.active {
  background: var(--ink-primary);
  color: #FFFFFF;
}

/* 중앙 SOBI HUD 상태 배지 */
.hud-center-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(9, 9, 11, 0.05);
}

.hud-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-primary);
  box-shadow: 0 0 0 0 rgba(9, 9, 11, 0.45);
  animation: pulseBlack 2.2s infinite;
}

body.listening-mode .hud-pulse-dot {
  animation: pulseFast 0.85s infinite;
}

@keyframes pulseBlack {
  0% { box-shadow: 0 0 0 0 rgba(9, 9, 11, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(9, 9, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(9, 9, 11, 0); }
}

@keyframes pulseFast {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(9, 9, 11, 0.65); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 9px rgba(9, 9, 11, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(9, 9, 11, 0); }
}

.hud-brand-text {
  font-family: var(--font-hud);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--ink-primary);
}

.hud-status-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-secondary);
  padding-left: 8px;
  border-left: 1px solid var(--border-light);
}

/* 우측 컨트롤 바 (업데이트 패널 · 요금제 · 사운드 · 디자이너 프로필) */
.header-right-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 최상단 우측 단독 스피커 원형 아이콘 버튼 */
.header-speaker-only-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(9, 9, 11, 0.05);
  transition: all 0.2s ease;
}

.header-speaker-only-btn:hover {
  border-color: var(--ink-primary);
  background: var(--bg-subtle);
}

.header-speaker-only-btn.muted {
  color: var(--ink-muted);
  background: var(--bg-subtle);
}

.header-pill-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-primary);
  box-shadow: 0 2px 8px rgba(9, 9, 11, 0.04);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-pill-btn:hover {
  border-color: var(--ink-primary);
  background: var(--bg-subtle);
}

.header-pill-btn.solid-dark {
  background: var(--ink-primary);
  color: #FFFFFF;
  border-color: var(--ink-primary);
}

.header-pill-btn.solid-dark:hover {
  opacity: 0.9;
}

.unread-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-primary);
}

.plan-mini-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--bg-sub);
  color: var(--ink-primary);
  border: 1px solid var(--border-light);
}

.plan-mini-badge.pro {
  background: var(--ink-primary);
  color: #FFFFFF;
  border-color: var(--ink-primary);
}

/* 업데이트 내역(Changelog) 플로팅 패널 — 보스 드로어 위에서도 열리도록 z-index 125 지정 */
.floating-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 125;
  width: min(410px, calc(100vw - 28px));
  max-height: min(76vh, 560px);
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1.5px solid var(--ink-primary);
  border-radius: 20px;
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.floating-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-subtle);
}

.floating-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-primary);
}

.floating-panel-body {
  padding: 14px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  user-select: text;
}

.changelog-card {
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: #FFFFFF;
  margin-bottom: 10px;
}

.changelog-card:last-child {
  margin-bottom: 0;
}

.changelog-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.changelog-ver-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--ink-primary);
  color: #FFFFFF;
}

.changelog-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.changelog-item-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--ink-primary);
}

.changelog-summary {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-secondary);
  margin-bottom: 8px;
}

.changelog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.changelog-list li {
  position: relative;
  padding-left: 12px;
  font-size: 11.5px;
  line-height: 1.48;
  color: var(--ink-secondary);
}

.changelog-list li::before {
  content: '·';
  position: absolute;
  left: 2px;
  top: 0;
  font-weight: 700;
  color: var(--ink-primary);
}

/* 디자이너 프로필 요약 드롭다운 내부 */
.designer-summary-box {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  margin-bottom: 7px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.designer-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
  min-width: 0;
}

.designer-name-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.designer-name-row .plan-mini-badge {
  flex-shrink: 0;
  white-space: nowrap;
}

.designer-dual-setting-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.boss-field-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.boss-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.boss-field-mini-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-inline-action-btn {
  flex-shrink: 0;
  white-space: nowrap;
  height: 21px !important;
  padding: 0 6px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
}

.boss-input-prefix {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-secondary);
}

.designer-salon-input-row {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 0;
}

.designer-salon-input-row input,
.boss-full-input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 35px;
  padding: 0 9px;
  font-size: 16px;
  border: 1.2px solid #D4D4D8;
  border-radius: 9px;
  background: var(--bg-subtle);
  color: var(--ink-primary);
  user-select: text;
  -webkit-appearance: none;
  appearance: none;
}

.designer-salon-input-row input:focus,
.boss-full-input:focus {
  background: #FFFFFF;
  border-color: var(--ink-primary);
  outline: none;
}

.designer-salon-input-row input::placeholder,
.boss-full-input::placeholder {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.boss-save-mini-btn {
  flex-shrink: 0;
  white-space: nowrap;
  height: 21px !important;
  padding: 0 7px !important;
  font-size: 10px !important;
  border-radius: 6px !important;
}

.panel-menu-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.panel-menu-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-primary);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.panel-menu-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--ink-primary);
}

.panel-menu-btn.danger {
  color: #DC2626;
}

/* 우측 80% 슬라이딩 관리자(보스) 드로어 스타일 */
.right-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(9, 9, 11, 0.24);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.48s var(--ease-jarvis), visibility 0.48s step-end;
}

body.right-drawer-active .right-drawer-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.48s var(--ease-jarvis), visibility 0s step-start;
}

#designerFloatingPanel.right-slide-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 112;
  width: min(80vw, 480px);
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #FFFFFF;
  border-left: 1.5px solid var(--ink-primary);
  border-radius: 24px 0 0 24px;
  box-shadow: -16px 0 48px rgba(9, 9, 11, 0.14);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(104%, 0, 0);
  transition: transform 0.58s var(--ease-jarvis), visibility 0.58s step-end;
  will-change: transform;
}

@media (max-width: 900px) {
  #designerFloatingPanel.right-slide-drawer {
    width: 80vw;
    max-width: 80vw;
  }
}

body.right-drawer-active #designerFloatingPanel.right-slide-drawer {
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition: transform 0.58s var(--ease-jarvis), visibility 0s step-start;
}

.boss-drawer-header {
  flex-shrink: 0;
  width: 100%;
  padding: 13px 16px 11px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
}

.boss-drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 13px calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-subtle);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
  user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.boss-drawer-body > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.boss-drawer-body::-webkit-scrollbar {
  display: none;
}

.boss-section-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 13px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.boss-card-head-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  min-width: 0;
}

/* 마이페이지 최상단 음성 명령어 매뉴얼 하이라이트 카드 */
.boss-manual-top-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 10px 12px;
  border: 1.5px solid var(--ink-primary);
  background: #FFFFFF;
  text-align: left;
}

.boss-manual-top-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.manual-guide-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--ink-primary);
  color: #FFFFFF;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.manual-count-mini-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--bg-sub);
  border: 1px solid var(--border-light);
  color: var(--ink-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.manual-open-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-primary);
  white-space: nowrap;
}

.boss-manual-chip-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.manual-mini-chip {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-sub);
  color: var(--ink-secondary);
}

/* 멤버십 플랜 · 전체 고객 수 2열 벤토 그리드 (좁은 모바일에서도 열 폭 균등 고정) */
.boss-bento-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  width: 100%;
}

.boss-bento-tile {
  padding: 10px 11px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.boss-bento-top {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.boss-bento-top .boss-section-label {
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 고객 리스트 다운로드 컴팩트 바 및 세로 높이 축소 버튼(28px) */
.boss-slim-download-card {
  padding: 9px 12px;
}

.boss-slim-download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}

.boss-mini-btn-pair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.boss-export-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  width: 100%;
}

.boss-export-btn {
  min-width: 0;
  max-width: 100%;
  height: 34px;
  padding: 0 8px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.18s ease;
}

/* PDF · 엑셀 다운로드 전용 초슬림 저높이 버튼 (세로 높이 28px) */
.boss-export-btn.mini {
  height: 28px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 11px;
  gap: 4px;
}

.boss-export-btn.compact-h {
  height: 31px;
  border-radius: 8px;
  font-size: 11.5px;
}

.boss-export-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.boss-export-btn.pdf {
  background: var(--ink-primary);
  color: #FFFFFF;
  border: 1px solid var(--ink-primary);
}

.boss-export-btn.pdf:hover:not(:disabled) {
  opacity: 0.88;
}

.boss-export-btn.excel {
  background: #FFFFFF;
  color: #065F46;
  border: 1px solid #059669;
}

.boss-export-btn.excel:hover:not(:disabled) {
  background: #ECFDF5;
}

.boss-export-btn.share {
  background: #FFFFFF;
  color: var(--ink-primary);
  border: 1px solid var(--ink-primary);
}

.boss-export-btn.share:hover:not(:disabled) {
  background: var(--bg-sub);
}

/* 앱 바로 설치 & 카톡 썸네일 가로형 컴팩트 레이아웃 */
.boss-share-compact-card {
  padding: 10px 12px;
}

.boss-share-head-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.boss-share-text-col {
  flex: 1;
  min-width: 0;
}

.share-og-mini-preview {
  width: 84px;
  flex-shrink: 0;
  margin-bottom: 0;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
}

.share-og-mini-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.boss-slim-row {
  padding: 9px 12px;
}

.boss-section-label {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 6px;
}

.boss-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.boss-stat-row > div:first-child {
  min-width: 0;
  flex: 1;
}

.boss-action-card {
  width: 100%;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.boss-action-card:hover {
  border-color: var(--ink-primary);
  background: var(--bg-subtle);
}

#bossCustomerCountCard {
  cursor: pointer;
  transition: border-color 0.18s ease;
}

#bossCustomerCountCard:hover {
  border-color: var(--ink-primary);
}

.boss-stat-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
  white-space: nowrap;
}

.boss-stat-value span {
  font-size: 19px;
  font-weight: 800;
  margin-right: 2px;
}

/* 사운드 ON/OFF 스위치 슬림화 */
.boss-toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #D4D4D8;
  padding: 2px;
  transition: background-color 0.22s ease;
  flex-shrink: 0;
}

.boss-toggle-switch.on {
  background: var(--ink-primary);
}

.boss-toggle-knob {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 2px 5px rgba(9, 9, 11, 0.2);
  transform: translateX(0);
  transition: transform 0.22s var(--ease-jarvis);
}

.boss-toggle-switch.on .boss-toggle-knob {
  transform: translateX(20px);
}

.boss-logout-btn {
  width: 100%;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: #DC2626;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.18s ease;
}

.boss-logout-btn:hover {
  border-color: #DC2626;
  background: #FEF2F2;
}

/* ==========================================================================
   2. Stage 1 — 중앙 3D 홀로그램 스테이지 (#orbStageWrapper)
   ========================================================================== */
.main-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#orbStageWrapper {
  position: relative;
  z-index: 10;
  width: min(94vw, 880px);
  height: min(82vh, 840px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  transform: translate3d(0, -5vh, 0) scale(1);
  transition: transform 0.72s var(--ease-jarvis);
  will-change: transform;
}

#orbStageWrapper:active {
  cursor: grabbing;
}

/* 슬라이딩 메뉴가 열려 있을 때도 여백의 홀로그램을 터치해 "닫아" 등 음성 명령을 내릴 수 있도록 레이어 연동 */
body.sheet-active .main-stage,
body.directory-sheet-active .main-stage,
body.feature-sheet-active .main-stage,
body.revenue-sheet-active .main-stage {
  z-index: 58;
  pointer-events: none;
}

body.left-drawer-active .main-stage,
body.left-menu-drawer-active .main-stage,
body.right-drawer-active .main-stage {
  z-index: 108;
  pointer-events: none;
}

body.sheet-active #orbStageWrapper,
body.directory-sheet-active #orbStageWrapper,
body.feature-sheet-active #orbStageWrapper,
body.revenue-sheet-active #orbStageWrapper,
body.left-drawer-active #orbStageWrapper,
body.left-menu-drawer-active #orbStageWrapper,
body.right-drawer-active #orbStageWrapper {
  pointer-events: auto;
}

/* 슬라이딩 시트(검색 결과 · 전체 고객 · 기능 개선 요청 · 매출 분석) 활성화 시 상단 중앙 SOBI 로고 아래 열린 공간으로 축소 이동 */
body.sheet-active #orbStageWrapper,
body.directory-sheet-active #orbStageWrapper,
body.feature-sheet-active #orbStageWrapper,
body.revenue-sheet-active #orbStageWrapper {
  transform: translate3d(0, -37.2vh, 0) scale(0.165);
}

/* 좌측 80% 신규 등록 드로어 또는 좌측 업무 메뉴 드로어 활성화 시 우측 20% 열린 공간으로 홀로그램 이동 */
body.left-drawer-active #orbStageWrapper,
body.left-menu-drawer-active #orbStageWrapper {
  transform: translate3d(40vw, -4vh, 0) scale(0.20);
}

/* 우측 80% 관리자(보스) 드로어 활성화 시 좌측 20% 열린 공간으로 홀로그램 이동 */
body.right-drawer-active #orbStageWrapper {
  transform: translate3d(-40vw, -4vh, 0) scale(0.20);
}

body.left-drawer-active .bottom-voice-dock,
body.left-menu-drawer-active .bottom-voice-dock,
body.right-drawer-active .bottom-voice-dock {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
}

/* 손가락으로 시트/드로어를 드래그하는 동안 지연 없는 실시간 추종 처리 */
body.sheet-dragging #orbStageWrapper,
body.sheet-dragging #customerSlideSheet,
body.directory-dragging #orbStageWrapper,
body.directory-dragging #allCustomersModal,
body.feature-dragging #orbStageWrapper,
body.feature-dragging #featureRequestSheet,
body.revenue-dragging #orbStageWrapper,
body.revenue-dragging #revenueAnalyticsSheet,
body.left-menu-dragging #orbStageWrapper,
body.left-menu-dragging #leftQuickMenuDrawer,
body.boss-dragging #orbStageWrapper,
body.boss-dragging #designerFloatingPanel {
  transition: none !important;
}

#neuralOrbCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* 중복 안내 방지를 위해 오브 내부 힌트 링은 비노출 처리 (DOM 식별자 보존) */
.orb-hint-ring {
  display: none;
}

/* ==========================================================================
   3. 하단 초슬림 미니멀 검색 & 보이스 독 (Clutter-Free Floating Dock)
   ========================================================================== */
.bottom-voice-dock {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 25;
  width: min(520px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity 0.35s ease, transform 0.45s var(--ease-jarvis);
}

body.sheet-active .bottom-voice-dock,
body.directory-sheet-active .bottom-voice-dock,
body.feature-sheet-active .bottom-voice-dock,
body.revenue-sheet-active .bottom-voice-dock {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 28px);
}

/* 평상시에는 박스 없는 1줄 미니멀 안내문, 음성 경청 중에만 다크 필 배지로 강조 */
.live-caption-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  padding: 3px 10px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.22s ease;
}

#liveCaptionText {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.caption-mic-badge {
  display: none;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--ink-primary);
  flex-shrink: 0;
}

body.listening-mode .live-caption-bar {
  padding: 6px 14px;
  background: var(--ink-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-card);
}

body.listening-mode .caption-mic-badge {
  display: inline-block;
}

/* 무거운 이중 카드 테두리를 제거하고 1줄 미니 칩 + 일체형 캡슐 검색바로 구성 */
.dock-card {
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.quick-demo-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-chip-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-chip-group::-webkit-scrollbar {
  display: none;
}

.demo-voice-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-light);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.demo-voice-chip:hover {
  background: var(--ink-primary);
  color: #FFFFFF;
  border-color: var(--ink-primary);
}

.demo-voice-chip.wake-standby-chip.active {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  color: #FFFFFF;
  font-weight: 700;
}

.action-chip-dark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ink-primary);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  transition: opacity 0.18s ease;
  white-space: nowrap;
}

.action-chip-dark:hover {
  opacity: 0.88;
}

/* 일체형 캡슐 검색바 */
.search-form-row {
  width: 100%;
  height: 48px;
  padding: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form-row:focus-within {
  border-color: var(--ink-primary);
  box-shadow: 0 8px 24px rgba(9, 9, 11, 0.09);
}

.search-input-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.search-input-wrap input {
  width: 100%;
  height: 36px;
  padding: 0 6px;
  font-size: 16px; /* iOS Safari 포커스 자동 줌 방지 */
  background: transparent;
  border: none;
  outline: none;
}

.search-input-wrap input::placeholder {
  color: var(--ink-muted);
  font-size: 14px;
}

.voice-trigger-btn,
.search-submit-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.voice-trigger-btn {
  background: var(--bg-sub);
  color: var(--ink-primary);
}

.voice-trigger-btn:hover,
body.listening-mode .voice-trigger-btn {
  background: var(--ink-primary);
  color: #FFFFFF;
}

.search-submit-btn {
  background: var(--ink-primary);
  color: #FFFFFF;
}

.search-submit-btn:hover {
  opacity: 0.9;
}

/* ==========================================================================
   4. Stage 2 — 슬라이딩 고객 리스트 시트 (#customerSlideSheet)
      엄격 규격: 상단 20%(height: 80%), 좌우 각 5%(width: 90%)
   ========================================================================== */
#customerSlideSheet {
  position: fixed;
  top: 20%;
  left: 5%;
  right: 5%;
  width: 90%;
  height: 80%;
  z-index: 50;
  background: var(--bg-surface);
  border-top: 1.5px solid var(--border-strong);
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-sheet);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  transform: translate3d(0, 108%, 0);
  transition: transform 0.64s var(--ease-jarvis);
  will-change: transform;
}

body.sheet-active #customerSlideSheet {
  transform: translate3d(0, 0, 0);
}

/* 상단 고정(Pinned) 초슬림 헤더 영역 — 아래로 끌어내려 닫기 제스처 지원 */
.sheet-pinned-top {
  flex-shrink: 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  touch-action: none;
  cursor: grab;
}

.sheet-pinned-top:active {
  cursor: grabbing;
}

.sheet-grab-handle {
  width: 44px;
  height: 4.5px;
  border-radius: 999px;
  background: #D4D4D8;
  margin: 9px auto 5px;
  transition: width 0.18s ease, background-color 0.18s ease;
}

body.sheet-dragging .sheet-grab-handle,
body.directory-dragging .sheet-grab-handle {
  width: 54px;
  background: var(--ink-primary);
}

/* 1단 컴팩트 타이틀 바 */
.sheet-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 16px 8px;
}

.sheet-title-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.sheet-customer-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.sheet-count-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-sub);
  color: var(--ink-primary);
  white-space: nowrap;
}

.sheet-title-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sheet-ctrl-btn {
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.sheet-ctrl-btn:hover,
.sheet-ctrl-btn.active {
  background: var(--ink-primary);
  color: #FFFFFF;
  border-color: var(--ink-primary);
}

.sheet-close-x-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ink-primary);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.16s ease;
}

.sheet-close-x-btn:hover {
  opacity: 0.85;
}

/* 동명이인 조건부 전환 탭 (#homonymTabsContainer) */
#homonymTabsContainer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px 8px;
  overflow-x: auto;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

#homonymTabsContainer::-webkit-scrollbar {
  display: none;
}

.homonym-tab-btn {
  flex-shrink: 0;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: all 0.16s ease;
}

.homonym-tab-btn.active {
  background: var(--ink-primary);
  color: #FFFFFF;
  border-color: var(--ink-primary);
}

/* 2단 초슬림 고정 프로필 바 (#pinnedCustomerProfileBar) */
#pinnedCustomerProfileBar {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  padding: 8px 16px;
}

.pinned-profile-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.pinned-contact-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-right: 12px;
  border-right: 1px solid var(--border-light);
  white-space: nowrap;
}

.tier-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2.5px 7px;
  border-radius: 5px;
  background: var(--ink-primary);
  color: #FFFFFF;
}

.tier-badge.outline {
  background: #FFFFFF;
  color: var(--ink-primary);
  border: 1px solid var(--ink-primary);
}

.pinned-phone-text {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-primary);
  user-select: text;
}

.copy-mini-btn {
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.copy-mini-btn:hover {
  border-color: var(--ink-primary);
  color: var(--ink-primary);
}

.pinned-visit-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-secondary);
}

/* 우측 특징 1줄 말줄임 + 터치 아코디언 */
.pinned-trait-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  cursor: pointer;
}

.trait-label-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--bg-sub);
  color: var(--ink-primary);
}

.trait-summary-truncate {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.trait-chevron {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--ink-muted);
  transition: transform 0.2s ease;
}

#pinnedCustomerProfileBar.expanded .trait-chevron {
  transform: rotate(180deg);
}

/* 아코디언 확장 영역 (해시태그 + LTV) */
.pinned-trait-drawer {
  display: none;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-light);
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

#pinnedCustomerProfileBar.expanded .pinned-trait-drawer {
  display: flex;
}

.trait-full-text {
  width: 100%;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-primary);
  margin-bottom: 4px;
  user-select: text;
}

.trait-tags-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.trait-hashtag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--ink-secondary);
}

.ltv-metric-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ink-primary);
  color: #FFFFFF;
}

/* ==========================================================================
   5. 방문 기록 카드 리스트 (#sheetBodyContainer)
   ========================================================================== */
#sheetBodyContainer {
  flex: 1;
  background: var(--bg-sub);
  padding: 12px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.visit-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 13px 15px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  user-select: text;
}

.visit-card:hover {
  border-color: var(--ink-primary);
  box-shadow: 0 4px 16px rgba(9, 9, 11, 0.05);
}

.visit-card-main-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.visit-text-col {
  flex: 1;
  min-width: 0;
}

.visit-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.visit-meta-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.visit-cust-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--ink-primary);
  color: #FFFFFF;
}

.visit-date-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.visit-turn-mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

.visit-meta-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.visit-price-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
}

.add-photo-inline-btn {
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px dashed var(--ink-muted);
  background: var(--bg-subtle);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: all 0.16s ease;
}

.add-photo-inline-btn:hover {
  border-style: solid;
  border-color: var(--ink-primary);
  color: var(--ink-primary);
  background: #FFFFFF;
}

.visit-menu-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 5px;
  line-height: 1.38;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 카드를 눌렀을 때(expanded) 전체 시술 제목 줄바꿈 해제 */
.visit-card.expanded .visit-menu-title {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.visit-expand-chevron {
  font-size: 11px;
  color: var(--ink-muted);
  margin-left: 2px;
}

.visit-talk-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  line-height: 1.48;
  color: var(--ink-secondary);
}

.visit-talk-body {
  flex: 1;
  min-width: 0;
}

/* 리스트 기본 상태에서 대화 내용은 최대 2줄까지만 노출 (Safari WebKit 완벽 호환) */
.visit-talk-clamp {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

/* 카드를 눌렀을 때(expanded) 대화 내용 전문 노출 */
.visit-card.expanded .visit-talk-clamp {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
  word-break: keep-all;
}

.talk-badge {
  flex-shrink: 0;
  margin-top: 2px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-sub);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-primary);
}

.more-hint {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-left: 3px;
}

/* 우측 조건부 정사각형 시술 사진 썸네일 (태블릿/PC 80x80, 모바일 64x64) */
.visit-photo-thumb-box {
  position: relative;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
}

.visit-photo-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.22s ease;
}

.visit-photo-thumb-box:hover img {
  transform: scale(1.06);
}

.photo-count-pill {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.84);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

/* 방문 카드 확장 상세 영역 (레시피 + 다중 사진 스트립) */
.visit-detail-expanded {
  display: none;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--border-light);
  flex-direction: column;
  gap: 9px;
}

.visit-card.expanded .visit-detail-expanded {
  display: flex;
}

.recipe-box {
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.recipe-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.visit-manage-btns {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.visit-mini-action-btn {
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: all 0.16s ease;
}

.visit-mini-action-btn:hover {
  border-color: var(--ink-primary);
  color: var(--ink-primary);
}

.visit-mini-action-btn.danger {
  color: #DC2626;
}

.visit-mini-action-btn.danger:hover {
  border-color: #DC2626;
  background: #FEF2F2;
}

.recipe-box strong {
  color: var(--ink-primary);
  margin-right: 6px;
}

.expanded-photo-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.strip-photo-item {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  cursor: pointer;
}

.strip-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 개별 썸네일 우측 상단 원형 삭제 버튼 */
.strip-photo-del-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(9, 9, 11, 0.78);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.strip-photo-del-btn:hover {
  background: #DC2626;
  transform: scale(1.08);
}

.empty-visit-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.empty-visit-state {
  padding: 36px 20px;
  text-align: center;
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px dashed var(--border-light);
  color: var(--ink-secondary);
  font-size: 13.5px;
}

/* ==========================================================================
   6. 모달 시스템 (로그인 · 구독 결제 · 고객/시술 추가 · 전체 고객 · 라이트박스)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 122;
  background: rgba(9, 9, 11, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* 비로그인 게이트 배경은 뒤의 3D 홀로그램이 은은히 보이도록 처리 */
#authOverlayModal.modal-backdrop {
  background: rgba(255, 255, 255, 0.72);
}

/* 좌측 80% 슬라이딩 신규 고객 등록 드로어 전용 레이아웃 */
#newCustomerModal.left-drawer-backdrop {
  z-index: 105;
  padding: 0;
  justify-content: flex-start;
  align-items: stretch;
  background: rgba(9, 9, 11, 0.24);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.48s var(--ease-jarvis), visibility 0.48s step-end;
}

body.left-drawer-active #newCustomerModal.left-drawer-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.48s var(--ease-jarvis), visibility 0s step-start;
}

#newCustomerModal .modal-card.left-slide-drawer {
  width: 80vw;
  max-width: 80vw;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  border-radius: 0 24px 24px 0;
  border-top: none;
  border-bottom: none;
  border-left: none;
  border-right: 1.5px solid var(--ink-primary);
  box-shadow: 16px 0 48px rgba(9, 9, 11, 0.14);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: none;
  transform: translate3d(-104%, 0, 0);
  transition: transform 0.58s var(--ease-jarvis);
  will-change: transform;
}

body.left-drawer-active #newCustomerModal .modal-card.left-slide-drawer {
  transform: translate3d(0, 0, 0);
}

#newCustomerModal .left-slide-drawer .modal-body.reg-drawer-body {
  flex: 1;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.reg-drawer-header {
  padding: 11px 16px 10px;
}

.reg-compact-form {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.reg-scroll-fields {
  flex: 1;
  padding: 11px 16px 6px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.reg-scroll-fields::-webkit-scrollbar {
  display: none;
}

.reg-sticky-footer {
  flex-shrink: 0;
  padding: 9px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
}

.reg-optional-toggle-btn {
  width: 100%;
  margin: 2px 0 8px;
  padding: 7px 11px;
  border-radius: 9px;
  border: 1px dashed var(--border-light);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  transition: all 0.18s ease;
}

.reg-optional-toggle-btn:hover {
  border-color: var(--ink-primary);
  color: var(--ink-primary);
}

.reg-optional-fields {
  padding: 8px 10px 2px;
  margin-bottom: 6px;
  border-radius: 11px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
}

/* 신규 등록 창 내부 컴팩트 필드 규격 (미세 스크롤 완전 제거) */
.reg-compact-form .form-field {
  gap: 3px;
  margin-bottom: 7px;
}

.reg-compact-form .form-field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-secondary);
}

.reg-compact-form .form-field input,
.reg-compact-form .form-field select {
  height: 35px;
  padding: 0 9px;
  border-radius: 8px;
  background: #FFFFFF;
}

.reg-compact-form .form-field select,
.reg-compact-form .form-field input[type="file"] {
  font-size: 12px;
}

.reg-compact-form .form-field input[type="file"] {
  height: 34px;
  padding: 5px 8px;
}

.reg-compact-form .form-field textarea {
  min-height: 44px;
  height: 44px;
  padding: 6px 9px;
  border-radius: 8px;
  background: #FFFFFF;
}

.modal-card {
  width: min(460px, 100%);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  background: #FFFFFF;
  border: 1px solid var(--ink-primary);
  border-radius: 22px;
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeSlideDown 0.24s var(--ease-jarvis);
}

.modal-card.wide {
  width: min(860px, 100%);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-light);
}

.modal-header-right-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.autosave-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: var(--bg-sub);
  border: 1px solid var(--border-light);
  color: var(--ink-secondary);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.autosave-status-pill.saving {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #92400E;
}

.autosave-status-pill.saved {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  color: #FFFFFF;
}

.autosave-status-pill.draft {
  background: #F4F4F5;
  border-color: #A1A1AA;
  color: var(--ink-primary);
}

.autosave-undo-btn {
  height: 26px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-primary);
  white-space: nowrap;
  transition: all 0.16s ease;
}

.autosave-undo-btn:hover {
  border-color: var(--ink-primary);
  background: var(--bg-subtle);
}

.modal-header h2 {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modal-body {
  padding: 16px 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal-body::-webkit-scrollbar {
  display: none;
}

/* 새 시술 방문 기록 추가·수정 모달 무스크롤 컴팩트 규격 */
#newVisitModal.modal-backdrop {
  padding: 12px;
}

.visit-compact-body {
  padding: 13px 16px 15px;
}

.visit-compact-form .form-field {
  gap: 3px;
  margin-bottom: 8px;
}

.visit-compact-form .form-field label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.visit-compact-form .form-field input {
  height: 36px;
  padding: 0 10px;
  border-radius: 9px;
}

.visit-compact-form .form-field input[type="file"] {
  height: 35px;
  padding: 5px 9px;
  font-size: 12px;
}

.visit-compact-form .form-field textarea {
  min-height: 48px;
  height: 48px;
  padding: 7px 10px;
  border-radius: 9px;
}

.visit-compact-form .primary-submit-btn {
  height: 41px;
  margin-top: 2px;
}

/* Google 로그인 메인 CTA 버튼 */
.google-login-btn {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: var(--ink-primary);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.google-login-btn:hover {
  opacity: 0.92;
}

.google-icon-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--ink-muted);
  font-size: 11.5px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.form-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 9px 11px;
  font-size: 16px; /* 모바일 사파리 포커스 자동 줌 방지 */
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--bg-subtle);
  outline: none;
}

/* 입력 항목 안의 샘플(플레이스홀더) 글자 크기를 작고 은은하게 고정 */
.form-field input::placeholder,
.form-field textarea::placeholder {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
  letter-spacing: -0.01em;
}

.form-field input::-webkit-input-placeholder,
.form-field textarea::-webkit-input-placeholder {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
}

@media (hover: hover) and (pointer: fine) {
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 13.5px;
  }
}

.form-field textarea {
  min-height: 74px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  background: #FFFFFF;
  border-color: var(--ink-primary);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.primary-submit-btn {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  background: var(--ink-primary);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
}

.secondary-outline-btn {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: var(--ink-primary);
  font-size: 13px;
  font-weight: 600;
}

.secondary-outline-btn:hover {
  border-color: var(--ink-primary);
  background: var(--bg-subtle);
}

/* 요금제(Billing) 2단 비교 카드 (스타터 무료 vs 디자이너 프로 월 4,900원 · 연 49,000원) */
.modal-card.wide.billing-modal-card {
  width: min(810px, 100%);
}

.billing-modal-header {
  padding: 13px 18px 11px;
}

.billing-header-sub {
  font-size: 11.5px;
  color: var(--ink-secondary);
  margin-top: 2px;
  line-height: 1.4;
}

.billing-modal-body {
  padding: 13px 18px 15px;
}

.billing-top-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.billing-status-pill {
  font-size: 11.5px;
  color: var(--ink-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 6px 12px;
  line-height: 1.3;
}

.billing-status-pill strong {
  color: var(--ink-primary);
  font-weight: 800;
}

.billing-cycle-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-sub);
  border: 1px solid var(--border-light);
  margin-bottom: 0;
}

.cycle-btn {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.16s ease;
}

.cycle-btn.active {
  background: var(--ink-primary);
  color: #FFFFFF;
}

.cycle-save-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  background: rgba(9, 9, 11, 0.09);
  color: var(--ink-primary);
}

.cycle-btn.active .cycle-save-tag {
  background: #FFFFFF;
  color: var(--ink-primary);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.plan-card {
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 15px 16px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.plan-card.featured {
  border: 2px solid var(--ink-primary);
  background: linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 48%);
  box-shadow: 0 12px 30px rgba(9, 9, 11, 0.08);
}

.plan-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 5px;
}

.plan-eng-eyebrow {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 1px;
}

.plan-kor-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: -0.02em;
}

.plan-card-desc {
  font-size: 11.5px;
  line-height: 1.42;
  color: var(--ink-secondary);
  min-height: 32px;
}

.plan-price-row {
  margin: 9px 0 10px;
  padding: 10px 11px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
}

.plan-card.featured .plan-price-row {
  background: #FFFFFF;
  border-color: var(--ink-primary);
}

.plan-price-main-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.plan-price-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: -0.03em;
}

.plan-price-unit {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary);
}

.plan-price-subnote {
  margin-top: 3px;
  font-size: 11px;
  color: var(--ink-secondary);
  line-height: 1.38;
}

.plan-price-subnote strong {
  color: var(--ink-primary);
  font-weight: 800;
}

.plan-origin-strike {
  font-family: var(--font-mono);
  text-decoration: line-through;
  color: var(--ink-muted);
  margin-right: 4px;
}

.pro-inline-cycle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.pro-cycle-option {
  padding: 6px 8px;
  border-radius: 9px;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1px;
  transition: all 0.16s ease;
}

.pro-cycle-option:hover {
  border-color: var(--ink-primary);
}

.pro-cycle-option.selected {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  color: #FFFFFF;
}

.pro-opt-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.pro-cycle-option.selected .pro-opt-label {
  color: rgba(255, 255, 255, 0.82);
}

.pro-opt-label em {
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--ink-primary);
  color: #FFFFFF;
}

.pro-cycle-option.selected .pro-opt-label em {
  background: #FFFFFF;
  color: var(--ink-primary);
}

.pro-opt-price {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-primary);
}

.pro-cycle-option.selected .pro-opt-price {
  color: #FFFFFF;
}

.plan-quota-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 9px;
}

.plan-quota-chip {
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--ink-primary);
}

.plan-card.featured .plan-quota-chip {
  background: #F4F4F5;
  border-color: #D4D4D8;
}

.plan-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 13px;
  font-size: 11.5px;
  line-height: 1.42;
  color: var(--ink-secondary);
}

.plan-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.plan-feat-check {
  font-weight: 800;
  color: var(--ink-primary);
  flex-shrink: 0;
}

.plan-cta-btn {
  height: 41px;
  font-size: 13px;
}

.billing-footer-strip {
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px dashed var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 11px;
  color: var(--ink-muted);
}

/* 전체 고객 디렉터리 리스트 아이템 & 하단 슬라이딩 시트 규격 */
#allCustomersModal.directory-slide-sheet {
  position: fixed;
  top: 20%;
  left: 5%;
  right: 5%;
  width: 90%;
  height: 80%;
  z-index: 52;
  background: var(--bg-surface);
  border-top: 1.5px solid var(--border-strong);
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-sheet);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  pointer-events: none;
  transform: translate3d(0, 108%, 0);
  transition: transform 0.64s var(--ease-jarvis);
  will-change: transform;
}

body.directory-sheet-active #allCustomersModal.directory-slide-sheet {
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

#allCustomersModal .directory-sheet-card {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  animation: none;
  display: flex;
  flex-direction: column;
}

.directory-pinned-top {
  flex-shrink: 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  touch-action: none;
  cursor: grab;
}

.directory-pinned-top:active {
  cursor: grabbing;
}

.directory-sheet-header {
  padding: 6px 16px 8px;
  border-bottom: none;
}

.directory-search-bar-wrap {
  padding: 0 16px 10px;
}

.directory-search-bar-wrap input {
  width: 100%;
  height: 38px;
  padding: 0 13px;
  font-size: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  outline: none;
}

.directory-search-bar-wrap input:focus {
  background: #FFFFFF;
  border-color: var(--ink-primary);
}

#directoryListContainer.directory-sheet-body {
  flex: 1;
  background: var(--bg-sub);
  padding: 12px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.directory-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.16s ease;
}

.directory-item:hover {
  border-color: var(--ink-primary);
  background: var(--bg-subtle);
}

/* 전체화면 사진 확대 라이트박스 (#photoLightboxModal) */
#photoLightboxModal {
  z-index: 320;
  background: rgba(9, 9, 11, 0.9);
}

#sobiConfirmModal {
  z-index: 350;
}

.lightbox-inner {
  width: min(640px, 94vw);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-img-frame {
  width: 100%;
  max-height: 72vh;
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-frame img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.lightbox-Bottom-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #FFFFFF;
}

.lightbox-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.lightbox-nav-btn {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 700;
  transition: background-color 0.16s ease;
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-nav-btn.danger {
  background: rgba(220, 38, 38, 0.86);
}

.lightbox-nav-btn.danger:hover {
  background: #DC2626;
}

/* 삭제 확인 모노크롬 다이얼로그 */
#sobiConfirmModal {
  z-index: 160;
}

.confirm-dialog-card {
  width: min(340px, 90vw);
  padding: 20px;
  background: #FFFFFF;
  border: 1.5px solid var(--ink-primary);
  border-radius: 20px;
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.confirm-dialog-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-primary);
}

.confirm-dialog-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.confirm-dialog-actions {
  display: flex;
  gap: 8px;
}

.confirm-danger-btn {
  flex: 1;
  height: 40px;
  border-radius: 10px;
  background: #DC2626;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
}

.confirm-cancel-btn {
  flex: 1;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  color: var(--ink-primary);
  font-size: 13px;
  font-weight: 700;
}

/* 유사 발음 고객 제안 플로팅 확인 배너 */
.phonetic-suggest-banner {
  position: fixed;
  left: 50%;
  bottom: calc(118px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 95;
  width: min(440px, 92vw);
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1.5px solid var(--ink-primary);
  border-radius: 18px;
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeSlideDown 0.22s var(--ease-jarvis);
}

.phonetic-suggest-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-primary);
}

.phonetic-suggest-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--ink-primary);
  color: #FFFFFF;
}

.phonetic-suggest-desc {
  font-size: 13px;
  line-height: 1.48;
  color: var(--ink-secondary);
}

.phonetic-suggest-desc strong {
  color: var(--ink-primary);
  font-weight: 800;
}

.phonetic-suggest-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.suggest-yes-btn {
  flex: 1;
  height: 38px;
  border-radius: 10px;
  background: var(--ink-primary);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  transition: opacity 0.16s ease;
}

.suggest-yes-btn:hover {
  opacity: 0.9;
}

.suggest-no-btn {
  padding: 0 16px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 700;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.suggest-no-btn:hover {
  border-color: var(--ink-primary);
  color: var(--ink-primary);
}

/* 오프스크린 A4 에디토리얼 PDF 리포트 렌더 스테이지 */
.sobi-pdf-stage {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 794px;
  background: #FFFFFF;
  color: #09090B;
  pointer-events: none;
  z-index: -1;
}

.sobi-pdf-page {
  width: 794px;
  height: 1123px;
  padding: 38px 40px 32px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-sans);
}

.pdf-header-banner {
  padding: 20px 24px;
  border-radius: 16px;
  background: #09090B;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.pdf-header-slim {
  padding: 12px 18px;
  border-radius: 12px;
  background: #18181B;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pdf-brand-mark {
  font-family: var(--font-cyber);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.pdf-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.pdf-kpi-card {
  padding: 11px 13px;
  border-radius: 12px;
  background: #FAFAFA;
  border: 1px solid #E4E4E7;
}

.pdf-kpi-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #71717A;
  margin-bottom: 4px;
}

.pdf-kpi-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: #09090B;
}

.pdf-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #E4E4E7;
  border-radius: 12px;
  overflow: hidden;
}

.pdf-table thead th {
  background: #18181B;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  padding: 9px 8px;
  text-align: left;
  letter-spacing: -0.01em;
}

.pdf-table tbody tr {
  border-bottom: 1px solid #E4E4E7;
}

.pdf-table tbody tr:nth-child(even) {
  background: #FAFAFA;
}

.pdf-table tbody td {
  padding: 9px 8px;
  font-size: 11px;
  vertical-align: middle;
  color: #27272A;
}

.pdf-tier-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  border: 1px solid #D4D4D8;
  background: #FFFFFF;
  color: #27272A;
}

.pdf-tier-pill.vip {
  background: #09090B;
  border-color: #09090B;
  color: #FFFFFF;
}

.pdf-tier-pill.gold {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #92400E;
}

.pdf-summary-strip {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #F4F4F5;
  border: 1px solid #D4D4D8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
}

.pdf-page-footer {
  padding-top: 10px;
  border-top: 1px solid #E4E4E7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #71717A;
}

/* 무스토어 휴대폰 앱 바로 설치 모달 스타일 */
#pwaInstallGuideModal {
  z-index: 270;
}

.pwa-install-card {
  width: min(410px, 92vw);
}

.pwa-hero-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  margin-bottom: 12px;
}

.pwa-app-icon-img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(9, 9, 11, 0.08);
}

.pwa-step-guide-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 13px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px dashed var(--border-strong);
}

.pwa-step-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.48;
  color: var(--ink-secondary);
}

.pwa-step-item strong {
  color: var(--ink-primary);
}

.pwa-step-num {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--ink-primary);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* 음성 명령어 & 기능 사용 매뉴얼 모달 스타일 */
#voiceManualModal {
  z-index: 280;
  padding: 12px;
}

.manual-modal-card {
  width: min(500px, 95vw);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
}

.manual-modal-body {
  padding: 12px 15px 15px;
}

.manual-howto-banner {
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--ink-primary);
  color: #FFFFFF;
  margin-bottom: 9px;
}

.manual-howto-title {
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 4px;
}

.manual-howto-desc {
  font-size: 11.5px;
  line-height: 1.48;
  color: #E4E4E7;
}

.manual-howto-desc strong {
  color: #FFFFFF;
}

.manual-sync-status-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--bg-sub);
  border: 1px solid var(--border-light);
  color: var(--ink-primary);
}

.manual-new-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--ink-primary);
  color: #FFFFFF;
  letter-spacing: 0.04em;
}

.manual-cmd-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.manual-cmd-item {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
}

.manual-cmd-item.highlight {
  border-color: var(--ink-primary);
  background: var(--bg-subtle);
}

.manual-cmd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0;
  flex-wrap: nowrap;
}

.manual-voice-tag {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-primary);
  background: var(--bg-sub);
  padding: 2.5px 9px;
  border-radius: 999px;
}

.manual-cmd-item.highlight .manual-voice-tag {
  background: var(--ink-primary);
  color: #FFFFFF;
}

.manual-cmd-role {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-secondary);
}

.manual-cmd-desc {
  flex: 1;
  min-width: 0;
  margin: 0;
  text-align: right;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manual-cmd-desc strong {
  color: var(--ink-primary);
}

.manual-tip-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11.5px;
  line-height: 1.48;
  color: var(--ink-secondary);
}

.manual-tip-box strong {
  color: var(--ink-primary);
}

/* 토스트 알림 */
.toast-container {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.sobi-toast {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink-primary);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: var(--shadow-float);
  animation: fadeSlideDown 0.2s ease;
}

/* ==========================================================================
   7. 태블릿 / 아이폰 / 모바일 반응형 브레이크포인트
   ========================================================================== */
@media (max-width: 740px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .billing-top-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .billing-cycle-toggle {
    width: 100%;
    justify-content: center;
  }

  .cycle-btn {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .morph-switch-group {
    display: none;
  }
}

@media (max-width: 640px) {
  .top-header {
    min-height: calc(58px + env(safe-area-inset-top, 0px));
    padding: calc(13px + env(safe-area-inset-top, 0px)) 16px 8px;
    gap: 6px;
  }

  .sobi-brand-mark {
    top: calc(13px + env(safe-area-inset-top, 0px));
    height: 40px;
    font-size: 25px;
    letter-spacing: 0.26em;
    padding-left: calc(0.26em + 2px);
  }

  .boss-slim-download-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .boss-mini-btn-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    gap: 6px;
  }

  .boss-export-btn.mini {
    width: 100%;
    height: 27px;
    padding: 0 6px;
    font-size: 10.5px;
  }

  .hud-center-pill {
    padding: 6px 10px;
  }

  .hud-status-tag {
    display: none;
  }

  .header-pill-btn span.hide-mobile {
    display: none;
  }

  #orbStageWrapper {
    width: 98vw;
    height: min(68vh, 560px);
    transform: translate3d(0, -6vh, 0) scale(1);
  }

  .sheet-title-bar {
    padding: 5px 12px 7px;
  }

  .sheet-customer-title {
    font-size: 14.5px;
  }

  #pinnedCustomerProfileBar {
    padding: 7px 12px;
  }

  .pinned-profile-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .pinned-contact-cell {
    border-right: none;
    padding-right: 0;
  }

  #sheetBodyContainer {
    padding: 10px 12px calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .visit-photo-thumb-box {
    width: 64px;
    height: 64px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  /* 신규 등록 드로어의 짧은 2열 항목은 모바일에서도 나란히 유지하여 세로 길이 절약 */
  .form-grid-2.reg-keep-2col {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }
}

/* ============================================================================
   뒤로가기 실수 방지용 앱 종료 확인 모달 (#appExitConfirmModal) — 블랙&화이트 모노크롬
   ============================================================================ */
.app-exit-backdrop {
  z-index: 9500;
}

.app-exit-dialog-card {
  width: min(344px, 90vw);
  padding: 22px 20px 20px;
  gap: 10px;
  border: 1.5px solid #09090B;
  border-radius: 22px;
}

.app-exit-badge-row {
  display: flex;
  align-items: center;
}

.app-exit-brand-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #F4F4F5;
  border: 1px solid #E4E4E7;
  color: #52525B;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.app-exit-title {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #09090B;
  margin-top: 2px;
}

.app-exit-desc {
  font-size: 12.8px;
  line-height: 1.52;
  color: #52525B;
  margin: 0 0 6px;
}

.app-exit-actions {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.app-exit-stay-btn {
  flex: 1;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #D4D4D8;
  background: #F4F4F5;
  color: #09090B;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.app-exit-leave-btn {
  flex: 1;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #09090B;
  background: #09090B;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
}

.app-exit-leave-btn:active,
.app-exit-stay-btn:active {
  transform: scale(0.98);
}

/* ============================================================================
   하단 슬라이딩 기능 개선 요청 시트 (#featureRequestSheet) & 사진 2장 첨부 슬롯
   ============================================================================ */
#featureRequestSheet.feature-request-slide-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: min(620px, 94vw);
  height: min(81vh, 690px);
  z-index: 54;
  background: #FFFFFF;
  border-top: 1.5px solid #09090B;
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-sheet);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  pointer-events: none;
  transform: translate3d(0, 108%, 0);
  transition: transform 0.62s var(--ease-jarvis);
  will-change: transform;
}

body.feature-sheet-active #featureRequestSheet.feature-request-slide-sheet {
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

#featureRequestSheet .feature-sheet-card {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  animation: none;
  display: flex;
  flex-direction: column;
}

.feature-sheet-pinned-top {
  flex-shrink: 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  touch-action: none;
}

.feature-sheet-header {
  padding: 6px 16px 10px;
  border-bottom: none;
}

.feature-sheet-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.feature-sheet-intro {
  font-size: 12px;
  line-height: 1.48;
  color: var(--ink-secondary);
  background: #FAFAFA;
  border: 1px solid #E4E4E7;
  border-radius: 11px;
  padding: 9px 12px;
  margin: 0;
}

.req-dot {
  color: #09090B;
  font-weight: 800;
}

.feature-photo-dual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.feature-photo-slot {
  position: relative;
  height: 126px;
  border-radius: 14px;
  border: 1.5px dashed #D4D4D8;
  background: #FAFAFA;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.feature-photo-slot.has-photo {
  border-style: solid;
  border-color: #09090B;
  background: #09090B;
}

.feature-photo-pick-area {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px;
  cursor: pointer;
}

.feature-photo-pick-area:hover {
  background: #F4F4F5;
  color: #09090B;
}

.feature-photo-slot-title {
  font-size: 12px;
  font-weight: 700;
  color: #09090B;
  margin-top: 2px;
}

.feature-photo-slot-sub {
  font-size: 10.5px;
  color: var(--ink-muted);
}

.feature-photo-preview-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.feature-photo-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-photo-clear-btn {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(9, 9, 11, 0.82);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.feature-submit-btn {
  margin-top: 4px;
  height: 44px;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

/* ============================================================================
   마이페이지 내 실제 운영 관리자 진입 카드 & 서비스 운영 관리자 콘솔 (#operatorAdminModal)
   ============================================================================ */
.boss-operator-admin-card {
  background: #09090B !important;
  border-color: #09090B !important;
  color: #FFFFFF !important;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px !important;
}

.boss-operator-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.operator-admin-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.operator-pending-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #09090B;
  font-size: 10.5px;
  font-weight: 800;
}

.boss-operator-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
}

.boss-operator-sub {
  font-size: 11px;
  color: #D4D4D8;
  line-height: 1.38;
}

.operator-admin-backdrop {
  z-index: 260;
}

.operator-admin-card {
  width: min(760px, 95vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border: 1.5px solid #09090B;
  border-radius: 22px;
}

.operator-admin-header {
  padding: 12px 16px;
  flex-shrink: 0;
  gap: 8px;
}

.operator-admin-body {
  padding: 12px 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#operatorAdminContent {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.operator-auth-gate {
  padding: 22px 18px;
  border-radius: 16px;
  border: 1px solid #E4E4E7;
  background: #FAFAFA;
  text-align: center;
}

.operator-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  flex-shrink: 0;
}

.operator-kpi-box {
  padding: 7px 6px;
  border-radius: 10px;
  border: 1px solid #E4E4E7;
  background: #FAFAFA;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.operator-kpi-box:hover {
  border-color: #09090B;
}

.operator-kpi-label {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink-muted);
  white-space: nowrap;
}

.operator-kpi-num {
  font-size: 14.5px;
  line-height: 1.2;
  font-weight: 800;
  color: #09090B;
}

.operator-filter-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 2px 0;
  flex-shrink: 0;
}

.operator-filter-chip {
  height: 32px;
  padding: 0 6px;
  border-radius: 9px;
  border: 1px solid #D4D4D8;
  background: #FFFFFF;
  color: #52525B;
  font-size: 11.5px;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.operator-filter-chip.active {
  background: #09090B;
  border-color: #09090B;
  color: #FFFFFF;
}

.operator-request-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 2px;
}

.operator-req-card {
  border: 1px solid #D4D4D8;
  border-radius: 16px;
  background: #FFFFFF;
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.operator-req-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.operator-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid #D4D4D8;
  background: #F4F4F5;
  color: #27272A;
}

.operator-status-pill.pending {
  background: #09090B;
  border-color: #09090B;
  color: #FFFFFF;
}

.operator-status-pill.reviewing {
  background: #F4F4F5;
  border-color: #09090B;
  color: #09090B;
}

.operator-status-pill.completed {
  background: #FAFAFA;
  border-color: #D4D4D8;
  color: #71717A;
}

.operator-req-meta {
  font-size: 11.5px;
  color: var(--ink-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.operator-req-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #09090B;
  line-height: 1.38;
}

.operator-req-content {
  font-size: 13px;
  line-height: 1.56;
  color: #27272A;
  white-space: pre-wrap;
  word-break: break-word;
  background: #FAFAFA;
  border: 1px solid #E4E4E7;
  border-radius: 11px;
  padding: 10px 12px;
}

.operator-req-photos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.operator-req-thumb-btn {
  width: 96px;
  height: 96px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid #D4D4D8;
  overflow: hidden;
  background: #09090B;
  cursor: pointer;
}

.operator-req-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.operator-req-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid #F4F4F5;
}

.operator-status-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.operator-mini-btn {
  height: 29px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #D4D4D8;
  background: #FFFFFF;
  color: #27272A;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.operator-mini-btn.active {
  background: #09090B;
  border-color: #09090B;
  color: #FFFFFF;
}

.operator-mini-btn.danger {
  color: #DC2626;
  border-color: #FECACA;
}

.operator-memo-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.operator-memo-input {
  flex: 1;
  min-width: 0;
  height: 33px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid #D4D4D8;
  background: #FFFFFF;
  font-size: 12px;
  color: #09090B;
}

@media (max-width: 600px) {
  .operator-admin-header h2 {
    font-size: 14px !important;
  }
  .operator-kpi-box {
    padding: 6px 4px;
  }
  .operator-kpi-num {
    font-size: 13.5px;
  }
  .operator-filter-chip {
    height: 30px;
    font-size: 11px;
    padding: 0 4px;
  }
}

/* ============================================================================
   일별·월별 매출 그래프 & 인센티브 정산 애널리틱스 슬라이딩 시트 (#revenueAnalyticsSheet)
   ============================================================================ */
#revenueAnalyticsSheet.revenue-slide-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: min(720px, 95vw);
  height: min(83vh, 760px);
  z-index: 55;
  background: #FFFFFF;
  border-top: 1.5px solid #09090B;
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-sheet);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  pointer-events: none;
  transform: translate3d(0, 108%, 0);
  transition: transform 0.62s var(--ease-jarvis);
  will-change: transform;
}

body.revenue-sheet-active #revenueAnalyticsSheet.revenue-slide-sheet {
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

#revenueAnalyticsSheet .revenue-sheet-card {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  animation: none;
  display: flex;
  flex-direction: column;
}

.revenue-sheet-pinned-top {
  flex-shrink: 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  touch-action: none;
}

.revenue-sheet-header {
  padding: 6px 16px 10px;
  border-bottom: none;
}

.revenue-sheet-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 16px calc(28px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rev-month-compare-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 9px;
}

.rev-compare-card {
  border: 1px solid #D4D4D8;
  border-radius: 15px;
  background: #FAFAFA;
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.rev-compare-card:active {
  transform: scale(0.99);
}

.rev-compare-card.current {
  background: #FFFFFF;
  border: 1.5px solid #09090B;
  box-shadow: 0 6px 18px rgba(9, 9, 11, 0.06);
}

.rev-compare-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.rev-compare-label {
  font-size: 11.5px;
  font-weight: 800;
  color: #27272A;
}

.rev-cust-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #D4D4D8;
  color: #27272A;
  font-size: 10.5px;
  font-weight: 700;
}

.rev-cust-pill.dark {
  background: #09090B;
  border-color: #09090B;
  color: #FFFFFF;
}

.rev-compare-gross {
  font-size: 17.5px;
  font-weight: 800;
  color: #09090B;
  letter-spacing: -0.02em;
  margin-top: 2px;
}

.rev-compare-net-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 11.5px;
  color: #52525B;
  padding-top: 5px;
  border-top: 1px dashed #E4E4E7;
}

.rev-compare-net-row strong {
  color: #09090B;
  font-weight: 800;
}

.rev-mom-insight-strip {
  font-size: 11.5px;
  line-height: 1.45;
  color: #3F3F46;
  background: #F4F4F5;
  border: 1px solid #E4E4E7;
  border-radius: 11px;
  padding: 8px 12px;
}

.rev-incentive-studio-card {
  border: 1px solid #D4D4D8;
  border-radius: 16px;
  background: #FFFFFF;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rev-inc-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rev-inc-title {
  font-size: 13px;
  font-weight: 800;
  color: #09090B;
}

.rev-inc-sub {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 1px;
}

.rev-inc-input-box {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 9px;
  height: 35px;
  border-radius: 10px;
  border: 1.5px solid #09090B;
  background: #FAFAFA;
  flex-shrink: 0;
}

.rev-inc-input-box input {
  width: 54px;
  border: none;
  background: transparent;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: #09090B;
  padding: 0;
  outline: none;
}

.rev-inc-input-box span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 800;
  color: #09090B;
}

.rev-inc-slider {
  width: 100%;
  height: 6px;
  accent-color: #09090B;
  cursor: pointer;
  margin: 2px 0;
}

.rev-inc-preset-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  overflow: hidden;
}

.rev-preset-chip {
  width: 100%;
  height: 28px;
  padding: 0 2px;
  border-radius: 8px;
  border: 1px solid #D4D4D8;
  background: #FAFAFA;
  color: #3F3F46;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.16s ease;
}

.rev-preset-chip.active {
  background: #09090B;
  border-color: #09090B;
  color: #FFFFFF;
}

.rev-settlement-banner {
  background: #09090B;
  color: #FFFFFF;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rev-settle-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rev-settle-col.highlight {
  text-align: right;
}

.rev-settle-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #A1A1AA;
}

.rev-settle-gross {
  font-size: 15px;
  font-weight: 700;
  color: #E4E4E7;
}

.rev-settle-net {
  font-size: 19px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.rev-settle-meta {
  font-size: 10.5px;
  color: #A1A1AA;
}

.rev-settle-arrow {
  font-size: 15px;
  color: #71717A;
  font-weight: 700;
  flex-shrink: 0;
}

.rev-chart-section-card {
  border: 1px solid #D4D4D8;
  border-radius: 16px;
  background: #FFFFFF;
  padding: 13px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rev-chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.rev-mode-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: #F4F4F5;
  border: 1px solid #E4E4E7;
}

.rev-mode-btn {
  height: 28px;
  padding: 0 12px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: #52525B;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.rev-mode-btn.active {
  background: #09090B;
  color: #FFFFFF;
}

.rev-quick-jump-group {
  display: inline-flex;
  gap: 5px;
}

.rev-jump-chip {
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #D4D4D8;
  background: #FFFFFF;
  color: #27272A;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.rev-jump-chip.active {
  background: #09090B;
  border-color: #09090B;
  color: #FFFFFF;
}

.rev-period-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rev-period-arrow-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #D4D4D8;
  background: #FAFAFA;
  color: #09090B;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.rev-period-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #09090B;
}

.rev-chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #52525B;
}

.rev-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.rev-legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.rev-legend-swatch.gross {
  background: #E4E4E7;
  border: 1px solid #A1A1AA;
}

.rev-legend-swatch.net {
  background: #09090B;
}

.rev-legend-tip {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--ink-muted);
}

.rev-chart-scroll-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.rev-chart-stage-inner {
  position: relative;
  min-width: 100%;
  height: 214px;
  padding: 28px 6px 28px;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 38px,
      #F4F4F5 38px,
      #F4F4F5 39px
    );
  border-radius: 12px;
}

.rev-spline-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.rev-spline-area {
  opacity: 0;
  animation: revAreaFadeIn 0.85s ease 0.12s forwards;
}

.rev-spline-path {
  stroke-dasharray: 2200;
  stroke-dashoffset: 2200;
  animation: revSplineDraw 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rev-spline-dot {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: revDotPop 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rev-bars-row {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
}

.rev-bar-col {
  flex: 1 0 auto;
  min-width: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  cursor: pointer;
  padding: 0 2px;
  border: none;
  background: transparent;
}

.rev-bar-col.monthly {
  min-width: 44px;
}

.rev-bar-val-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: #52525B;
  margin-bottom: 4px;
  white-space: nowrap;
  opacity: 0;
  animation: revAreaFadeIn 0.45s ease forwards;
}

.rev-bar-col.is-peak .rev-bar-val-tag,
.rev-bar-col.selected .rev-bar-val-tag {
  color: #09090B;
  font-weight: 800;
}

.rev-bar-track {
  width: 100%;
  max-width: 26px;
  height: var(--bar-pct, 4%);
  min-height: 3px;
  border-radius: 7px 7px 3px 3px;
  background: #E4E4E7;
  border: 1px solid #D4D4D8;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  transform-origin: bottom center;
  animation: revBarSpringUp 0.68s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: var(--bar-delay, 0ms);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rev-bar-col.monthly .rev-bar-track {
  max-width: 34px;
}

.rev-bar-col.zero .rev-bar-track {
  background: #F4F4F5;
  border-color: #E4E4E7;
}

.rev-bar-col.selected .rev-bar-track {
  border-color: #09090B;
  box-shadow: 0 0 0 2px rgba(9, 9, 11, 0.14);
}

.rev-bar-net-fill {
  width: 100%;
  height: var(--inc-pct, 45%);
  background: linear-gradient(180deg, #27272A 0%, #09090B 100%);
  border-radius: 5px 5px 2px 2px;
  transition: height 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.rev-bar-col.zero .rev-bar-net-fill {
  height: 0% !important;
}

.rev-bar-x-label {
  position: absolute;
  bottom: -22px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: #71717A;
  white-space: nowrap;
}

.rev-bar-col.selected .rev-bar-x-label,
.rev-bar-col.is-peak .rev-bar-x-label {
  color: #09090B;
  font-weight: 800;
}

@keyframes revBarSpringUp {
  0% {
    transform: scaleY(0.02);
    opacity: 0.25;
  }
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes revSplineDraw {
  0% {
    stroke-dashoffset: 2200;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes revAreaFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes revDotPop {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.rev-breakdown-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rev-breakdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rev-clear-filter-btn {
  height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid #09090B;
  background: #09090B;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.rev-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rev-visit-row {
  border: 1px solid #E4E4E7;
  border-radius: 13px;
  background: #FFFFFF;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.rev-visit-row:hover {
  border-color: #09090B;
  background: #FAFAFA;
}

.rev-visit-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rev-visit-top-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.rev-visit-date {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
}

.rev-visit-cust {
  font-size: 13px;
  font-weight: 800;
  color: #09090B;
}

.rev-visit-menu {
  font-size: 11.8px;
  color: #52525B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rev-visit-right {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rev-visit-gross {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: #09090B;
}

.rev-visit-net {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #52525B;
}

@media (max-width: 560px) {
  .rev-month-compare-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 7px;
  }
  .rev-compare-gross {
    font-size: 15px;
  }
  .rev-settlement-banner {
    padding: 11px 12px;
  }
  .rev-settle-net {
    font-size: 16.5px;
  }
}

/* ============================================================================
   음성 AI 모드 / 메뉴 모드 스위치 · 좌우 엣지 슬라이딩 버튼 · 좌측 업무 메뉴 드로어
   ============================================================================ */
.boss-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.boss-header-title-wrap {
  min-width: 0;
  flex-shrink: 1;
}

.boss-header-kicker {
  font-size: 9.5px;
  color: var(--ink-muted);
  margin-bottom: 1px;
}

.boss-header-main-title {
  font-size: 15.5px;
  font-weight: 800;
  white-space: nowrap;
}

.boss-header-right-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ui-mode-switch-group {
  display: inline-flex;
  align-items: center;
  padding: 2.5px;
  border-radius: 999px;
  background: #F4F4F5;
  border: 1px solid #D4D4D8;
  gap: 2px;
}

.ui-mode-switch-btn {
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #52525B;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.ui-mode-switch-btn.active {
  background: #09090B;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(9, 9, 11, 0.14);
}

@media (max-width: 420px) {
  .boss-header-kicker {
    display: none;
  }
  .boss-header-main-title {
    font-size: 14px;
  }
  .ui-mode-switch-btn {
    padding: 0 6.5px;
    font-size: 10px;
    height: 25px;
  }
}

/* 메뉴 모드 선택 시 우측 마이페이지에서 좌측 메뉴 담당 4개 항목(매출·고객수·다운로드) 분리 숨김 */
body.menu-mode-active #designerFloatingPanel #bossCustomerCountCard,
body.menu-mode-active #designerFloatingPanel #openRevenueDrawerBtn,
body.menu-mode-active #designerFloatingPanel .boss-slim-download-card {
  display: none !important;
}

body.menu-mode-active #designerFloatingPanel #openBillingHeaderBtn {
  grid-column: 1 / -1;
}

/* 메인 화면 좌·우측 상단 2/3 지점 초슬림 북마크형 메뉴 탭 (화살표 제거 · 세로 '메뉴' 단독 미니멀 규격) */
.menu-edge-trigger-btn {
  position: fixed;
  top: 33.33%;
  z-index: 38;
  width: 19px;
  min-height: 42px;
  padding: 6px 2px;
  background: rgba(255, 255, 255, 0.94);
  color: #09090B;
  border: 1px solid #18181B;
  box-shadow: 0 3px 10px rgba(9, 9, 11, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.42s var(--ease-jarvis), opacity 0.3s ease, background 0.18s ease, color 0.18s ease;
}

/* 시각적으로는 초슬림(19px)하게 유지하면서도 손가락 터치 인식은 편안하도록 투명 터치 여백 확장 */
.menu-edge-trigger-btn::after {
  content: '';
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: -4px;
  right: -8px;
}

.menu-edge-trigger-btn.right::after {
  left: -8px;
  right: -4px;
}

.menu-edge-trigger-btn.left {
  left: 0;
  border-left: none;
  border-radius: 0 8px 8px 0;
  transform: translate3d(-115%, -50%, 0);
}

.menu-edge-trigger-btn.right {
  right: 0;
  border-right: none;
  border-radius: 8px 0 0 8px;
  transform: translate3d(115%, -50%, 0);
}

.menu-edge-label {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  user-select: none;
}

.menu-edge-arrow {
  display: none !important;
}

.menu-edge-trigger-btn:hover,
.menu-edge-trigger-btn:active {
  background: #09090B;
  color: #FFFFFF;
}

body.menu-mode-active:not(.sheet-active):not(.directory-sheet-active):not(.feature-sheet-active):not(.revenue-sheet-active):not(.left-drawer-active):not(.left-menu-drawer-active):not(.right-drawer-active):not(.auth-locked) .menu-edge-trigger-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, -50%, 0);
}

/* 좌측 슬라이딩 고객·매출 업무 드로어 (#leftQuickMenuDrawer) */
.left-menu-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(9, 9, 11, 0.24);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.48s var(--ease-jarvis), visibility 0.48s step-end;
}

body.left-menu-drawer-active .left-menu-drawer-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.48s var(--ease-jarvis), visibility 0s step-start;
}

#leftQuickMenuDrawer.left-menu-slide-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 112;
  width: min(80vw, 430px);
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #FFFFFF;
  border-right: 1.5px solid #09090B;
  border-radius: 0 24px 24px 0;
  box-shadow: 16px 0 48px rgba(9, 9, 11, 0.14);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(-104%, 0, 0);
  transition: transform 0.58s var(--ease-jarvis), visibility 0.58s step-end;
  will-change: transform;
}

@media (max-width: 900px) {
  #leftQuickMenuDrawer.left-menu-slide-drawer {
    width: 80vw;
    max-width: 80vw;
  }
}

body.left-menu-drawer-active #leftQuickMenuDrawer.left-menu-slide-drawer {
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition: transform 0.58s var(--ease-jarvis), visibility 0s step-start;
}

.left-menu-drawer-header {
  flex-shrink: 0;
  width: 100%;
  padding: 13px 16px 11px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
}

.left-menu-drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px 14px calc(20px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-subtle);
  overflow-y: auto;
  overflow-x: hidden;
}

.left-menu-feature-card,
.left-menu-download-card {
  width: 100%;
  flex-shrink: 0;
  text-align: left;
  background: #FFFFFF;
  border: 1px solid #D4D4D8;
  border-radius: 16px;
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.18s ease, transform 0.16s ease, box-shadow 0.18s ease;
}

.left-menu-feature-card {
  cursor: pointer;
}

.left-menu-feature-card:hover {
  border-color: #09090B;
  box-shadow: 0 6px 18px rgba(9, 9, 11, 0.06);
}

.left-menu-feature-card:active {
  transform: scale(0.99);
}

.left-menu-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.left-menu-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: #F4F4F5;
  border: 1px solid #E4E4E7;
  color: #52525B;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.left-menu-tag-pill.dark {
  background: #09090B;
  border-color: #09090B;
  color: #FFFFFF;
}

.left-menu-arrow {
  font-size: 11.5px;
  font-weight: 800;
  color: #09090B;
}

.left-menu-card-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #09090B;
  letter-spacing: -0.01em;
}

.left-menu-card-desc {
  font-size: 11.8px;
  line-height: 1.45;
  color: #52525B;
}

.left-menu-export-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

/* ============================================================================
   Apple iOS · Android 전 기기 입력 줌 방지 · 노치 안전 영역 · 초소형 화면 방어 규칙
   ============================================================================ */
@media (hover: none), (pointer: coarse) {
  /* iOS Safari 포커스 시 16px 미만 입력칸 자동 화면 확대(Zoom-in Lock) 원천 차단 */
  input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  textarea,
  select {
    font-size: 16px !important;
  }
}

#changelogFloatingPanel.floating-panel {
  top: calc(74px + env(safe-area-inset-top, 0px));
  max-height: calc(78vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
}

/* 모바일 최소 터치 영역(HIG 44pt 근접) 및 갤럭시 폴드 커버·소형 아이폰(360px 이하) 깨짐 방어 */
.sheet-close-x-btn {
  min-width: 32px;
  min-height: 32px;
}

@media (max-width: 360px) {
  .top-header {
    padding-left: 14px;
    padding-right: 14px;
  }
  .boss-drawer-header,
  .left-menu-drawer-header {
    padding: 11px 12px 10px;
  }
  .ui-mode-switch-btn {
    padding: 0 5px;
    font-size: 9.5px;
  }
  .rev-preset-chip {
    font-size: 9.5px;
  }
}

/* ============================================================================
   PC 관리자 페이지 양방향 연동 — 상단 1줄 공지 · 팝업 모달 · 내 건의 처리 현황
   ============================================================================ */
.public-top-notice-banner {
  position: fixed;
  top: calc(56px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 28;
  width: min(560px, calc(100vw - 24px));
  min-height: 34px;
  padding: 5px 8px 5px 10px;
  border-radius: 999px;
  background: #09090B;
  color: #FFFFFF;
  border: 1px solid #27272A;
  box-shadow: 0 8px 22px rgba(9, 9, 11, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.public-top-notice-main {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #FFFFFF;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-align: left;
  cursor: pointer;
}

.public-top-notice-tag {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #09090B;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.public-top-notice-text {
  font-size: 12px;
  font-weight: 600;
  color: #FAFAFA;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.public-top-notice-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.public-popup-backdrop {
  z-index: 94;
}

.public-notice-popup-card {
  width: min(420px, 92vw);
  text-align: left;
  padding: 20px 20px 18px;
}

.public-popup-body-text {
  margin: 10px 0 16px;
  padding: 12px 13px;
  border-radius: 12px;
  background: #FAFAFA;
  border: 1px solid #E4E4E7;
  font-size: 13px;
  line-height: 1.58;
  color: #27272A;
  white-space: pre-wrap;
  max-height: 44vh;
  overflow-y: auto;
}

.public-popup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.public-popup-actions.single-col {
  grid-template-columns: 1fr;
}

.my-feature-history-section {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #E4E4E7;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.my-feature-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.my-feature-history-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.my-feat-empty {
  padding: 18px 12px;
  border-radius: 12px;
  border: 1px dashed #D4D4D8;
  background: #FAFAFA;
  text-align: center;
  font-size: 12px;
  color: #71717A;
}

.my-feat-card {
  border: 1px solid #E4E4E7;
  border-radius: 13px;
  background: #FFFFFF;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.my-feat-card.completed {
  border-color: #09090B;
}

.my-feat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.operator-status-pill.hold {
  background: #F4F4F5;
  color: #52525B;
  border: 1px solid #D4D4D8;
}

.my-feat-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #09090B;
  line-height: 1.38;
}

.my-feat-desc {
  font-size: 12px;
  color: #52525B;
  line-height: 1.48;
  white-space: pre-wrap;
}

.my-feat-reply-box {
  margin-top: 3px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #09090B;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.my-feat-reply-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 800;
  color: #D4D4D8;
  letter-spacing: 0.02em;
}

.my-feat-reply-text {
  font-size: 12.2px;
  line-height: 1.5;
  color: #FFFFFF;
  white-space: pre-wrap;
}
