/* ============================================================================
   OCC (OWNER'S CAR CLUB) — 공통 스타일 (다크 톤 + 골드 포인트)
   ========================================================================== */
:root {
  --bg: #0d0f12;
  --bg-2: #14171c;
  --card: #191d24;
  --card-2: #21262f;
  --line: #2b313b;
  --text: #eef1f5;
  --muted: #97a0ad;
  /* 샴페인 골드 — 채도 낮춰 노랑기 제거(config.js accent와 동일 값) */
  --accent: #C8AF7A;
  --accent-2: #DAC79B;      /* 밝은 샴페인(링크·보조 하이라이트) */
  --accent-rgb: 200,175,122;
  --danger: #e06a5a;
  --ok: #5db27a;
  --radius: 16px;           /* 카드·모달 통일 */
  --radius-sm: 12px;        /* 버튼·입력·소형 카드 통일 */
  /* 카드 헤어라인 보더 + 미묘한 그라데이션 */
  --hairline: rgba(var(--accent-rgb), 0.10);
  --card-grad: linear-gradient(180deg, #1a1e26 0%, #15181d 100%);
  /* 서체 토큰 — 본문/UI = Pretendard, 숫자 전용 = Space Grotesk */
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
  --font-num: 'Space Grotesk', 'Pretendard Variable', ui-monospace, SFMono-Regular, sans-serif;
  /* 타이포 스케일 */
  --fw-num: 300;            /* 큰 숫자는 얇게 */
  --fs-label: 11px;         /* 작은 라벨 */
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;   /* Pretendard 가독 정돈 */
}
a { color: var(--accent-2); }

/* ── 숫자 전용 서체(계기판 톤): 주행거리·가격·D-day·통계 등 ─────────────────
   Space Grotesk는 라틴/숫자만 커버 → 한글은 자동으로 Pretendard로 폴백되므로
   "만기 D-15" 같은 혼합 텍스트도 숫자만 계기판 톤이 적용된다. */
.num,
.odo #odoNum, .odo .odo-unit,
.dash-card .dc-main,
.stat .n,
.kv strong,
.spec-summary .ss-val,
.lounge-owners .lo-num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* 모바일 앱 컨테이너 */
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, #0d0f12 0%, #0f1216 100%);
  display: flex;
  flex-direction: column;
  position: relative;
}
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: rgba(13,15,18,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; letter-spacing: .5px; font-size: 18px; }
.brand .en { color: var(--accent); font-size: 11px; letter-spacing: 2px; display:block; font-weight:600; }
.slogan { color: var(--muted); font-size: 12px; }
.gear-btn {
  background: rgba(255,255,255,0.05); border: 1px solid var(--line);
  color: var(--text); width: 44px; height: 44px; border-radius: 50%;   /* 히트 영역 44×44(아이콘 크기는 유지) */
  font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto; -webkit-tap-highlight-color: transparent;
  transition: background .12s ease, transform .06s ease;
}
.gear-btn .licon { width: 20px; height: 20px; }   /* 아이콘 시각 크기 고정 */
.gear-btn:active { background: rgba(255,255,255,0.22); transform: scale(.9); filter: none; } /* 즉시 눌림 피드백 */

.screen { flex: 1; padding: 18px; padding-bottom: 90px; }
.hidden { display: none !important; }

/* 온보딩·사진유도 화면은 탭바가 없고 카드가 짧아, 상단 정렬 시 하단이 휑하게 비었다.
   → 남는 세로 공간에서 내용을 수직 중앙으로 모아 카드가 자연스럽게 자리잡게 한다.
   (진행 표시 dots + 단계 카드가 한 덩어리로 가운데 오도록 화면 전체를 중앙 정렬.) */
#screen-onboard, #screen-photoprompt {
  display: flex; flex-direction: column; justify-content: center;
  padding-bottom: 28px;
}

/* 인라인 텍스트 버튼(카드 다시 불러오기/다시 시도 등) */
.linkbtn {
  background: none; border: none; color: var(--accent);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 2px 4px; text-decoration: underline; -webkit-tap-highlight-color: transparent;
}
.linkbtn:active { opacity: .6; }

/* 카드 — 미묘한 세로 그라데이션 + 골드 헤어라인 보더 */
.card {
  background: var(--card-grad);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.card h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%;
  padding: 14px 16px;
  border: none; border-radius: 12px;
  background: var(--accent); color: #201a08;
  font-weight: 700; font-size: 15px;
  cursor: pointer;
  transition: transform .05s ease, filter .15s ease;
}
.btn:active { transform: scale(.98); }
.btn:disabled { filter: grayscale(.6) brightness(.7); cursor: not-allowed; }
.btn.secondary { background: var(--card-2); color: var(--text); border: 1px solid var(--line); }
.btn.ghost { background: transparent; color: var(--accent-2); border: 1px solid var(--accent); }
.btn.sm { width: auto; padding: 9px 14px; font-size: 13px; border-radius: 10px; }
.btn.kakao { background: #FEE500; color: #191600; }
/* Sign in with Apple — 애플 HIG(검정 배경·흰 로고/텍스트, 카카오와 동일 크기) */
.btn.apple { background: #000; color: #fff; margin-top: 10px; }
.btn.apple .apple-logo { margin-right: 2px; margin-top: -2px; }
.landing-cta .btn.apple { font-size: 15px; }

/* 이용약관·커뮤니티 가이드라인 동의 화면 */
.eula-box { background: var(--card, #16181d); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; margin-top: 18px; }
.eula-box h3 { margin: 0 0 8px; font-size: 16px; }
.eula-list { margin: 10px 0; padding-left: 18px; }
.eula-list li { font-size: 13px; line-height: 1.5; margin: 8px 0; color: var(--text); }
.eula-check { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--text); cursor: pointer; }
.eula-check input { margin-top: 2px; width: 18px; height: 18px; flex: 0 0 auto; }

/* 입력 */
label { display:block; font-size: 13px; color: var(--muted); margin: 10px 0 5px; }
input, select, textarea {
  width: 100%; padding: 13px 14px;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit;
}
textarea { resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }

/* 하단 탭바 */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  display: flex; justify-content: space-around;
  background: rgba(20,23,28,0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  z-index: 20;
}
.tabbar button {
  flex: 1; background: none; border: none; color: var(--muted);
  padding: 10px 0 14px; font-size: 11px; cursor: pointer;
}
.tabbar button .ic { display:block; font-size: 20px; margin-bottom: 2px; }
.tabbar button.active { color: var(--accent); }

/* 채팅 */
.chat-list { display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 85%; padding: 12px 14px; border-radius: 14px; white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.bubble.user { align-self: flex-end; background: var(--accent); color: #201a08; border-bottom-right-radius: 4px; }
.bubble.ai { align-self: flex-start; background: var(--card-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble img { max-width: 100%; border-radius: 10px; margin-bottom: 6px; display:block; }
/* 마크다운 렌더 결과 (AI 답변/브리핑) */
.bubble.ai .md, #briefingBody { white-space: normal; }
.md-h { font-weight: 700; margin: 8px 0 3px; }
.md-h:first-child { margin-top: 0; }
.md-p { margin: 5px 0; }
.md-p:first-child { margin-top: 0; }
.md ul, .md ol, #briefingBody ul, #briefingBody ol { margin: 5px 0; padding-left: 20px; }
.md li, #briefingBody li { margin: 3px 0; }
.md strong, #briefingBody strong { font-weight: 700; }
.md em, #briefingBody em { font-style: italic; }
/* 마크다운 표 (견적서 답변 등) */
.md-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13px; }
.md-table th, .md-table td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.md-table th { background: rgba(255,255,255,0.05); font-weight: 700; }
/* 채팅 첨부 이미지(여러 장) */
.msg-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.msg-imgs img { max-width: 100%; border-radius: 10px; display: block; }
.msg-imgs.multi img { width: calc(50% - 3px); height: 110px; object-fit: cover; }
.attach-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 4px; margin-left: -4px;
  background: var(--accent); color: #201a08; border-radius: 999px; font-size: 10px; font-weight: 800;
  vertical-align: super;
}
.chat-input {
  position: fixed; bottom: 62px; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  padding: 8px 10px; background: rgba(13,15,18,0.96); border-top: 1px solid var(--line); z-index: 19;
}
.chat-input-row { display: flex; gap: 8px; align-items: flex-end; }
.chat-input textarea { min-height: 44px; max-height: 120px; flex: 1; }
.chat-input .btn { width: auto; padding: 0 16px; height: 44px; flex: 0 0 auto; }
/* 첨부·마이크 버튼 크기·간격 통일(44x44 정사각) */
.attach-btn, .mic-btn {
  flex: 0 0 auto; width: 44px; height: 44px; padding: 0; border-radius: 12px; cursor: pointer;
  background: var(--card-2); border: 1px solid var(--line); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px; position: relative;
}
.attach-btn:active, .mic-btn:active { background: var(--card); }
.mic-btn.recording { border-color: #e0554e; color: #e0554e; animation: micpulse 1s infinite; }
@keyframes micpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(224,85,78,0.5); } 50% { box-shadow: 0 0 0 6px rgba(224,85,78,0); } }
/* 첨부 미리보기 스트립(전송 전) */
.chat-preview { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.chat-preview.hidden { display: none; }
.preview-item { position: relative; flex: 0 0 auto; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--card-2); border: 1px solid var(--line); }
.preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-item.pdf { display: flex; align-items: center; justify-content: center; padding: 4px; }
.preview-item .pv-doc { font-size: 10px; color: var(--muted); text-align: center; line-height: 1.2; word-break: break-all; }
.preview-item .pv-x { position: absolute; top: 1px; right: 1px; width: 18px; height: 18px; border: none; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: 10px; cursor: pointer; padding: 0; line-height: 18px; }
/* 말풍선 내 PDF 문서 칩 */
.msg-doc { display: inline-block; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13px; color: var(--text); text-decoration: none; }
.partner-cta { align-self: flex-start; margin-top: -4px; }

/* 상태 뱃지 / 스텝 */
.badge { display:inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.received { background:#2a2f38; color:#c7d0db; }
.badge.quoted { background:#3a341a; color:var(--accent-2); }
.badge.booked { background:#1f3550; color:#8fc0ee; }
.badge.in_service { background:#3d2f18; color:var(--accent-2); }
.badge.done { background:#1e3a29; color:var(--ok); }
.badge.gold { background:linear-gradient(135deg,#7a5f18,#c9a227); color:#1a1204; font-weight:700; }

.steps { display:flex; gap: 4px; margin: 10px 0; }
.steps .step { flex:1; text-align:center; font-size: 10px; color: var(--muted); }
.steps .step .dot { height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 4px; }
.steps .step.on .dot { background: var(--accent); }
.steps .step.on { color: var(--accent-2); }

.list-item { display:flex; justify-content: space-between; align-items:center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.list-item:last-child { border-bottom: none; }
.list-item .t { font-size: 14px; }
.list-item .s { font-size: 12px; color: var(--muted); }

.thumbs { display:flex; gap:8px; flex-wrap: wrap; margin-top: 8px; }
.thumbs img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; border:1px solid var(--line); }

.toast {
  position: fixed; bottom: 130px; left: 50%; transform: translateX(-50%);
  background: #000; color:#fff; padding: 10px 18px; border-radius: 999px; font-size: 13px;
  z-index: 50; opacity: 0; transition: opacity .2s; border:1px solid var(--line); max-width: 90%;
}
.toast.show { opacity: 1; }

.spinner { display:inline-block; width:16px; height:16px; border:2px solid rgba(255,255,255,.3); border-top-color:#fff; border-radius:50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero { text-align:center; padding: 40px 20px; }
.hero h1 { font-size: 26px; margin: 8px 0; }
.hero .en { color: var(--accent); letter-spacing: 3px; font-size: 12px; }
.hero p { color: var(--muted); }

/* ── 랜딩/환영 화면 (전문가 서비스 포지셔닝 · 한 화면 밀도) ─────────────────── */
#screen-login, #screen-welcome { padding: 0; }
.landing {
  display: flex; flex-direction: column; justify-content: center; gap: 18px; text-align: center;
  min-height: 100vh; min-height: 100dvh;
  padding: 32px 22px calc(24px + env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 50% at 50% 0%, rgba(var(--accent-rgb),0.12) 0%, rgba(var(--accent-rgb),0) 52%),
    linear-gradient(180deg, #14181f 0%, var(--bg) 55%);
}
.landing-top .en { color: var(--accent); letter-spacing: 6px; font-size: 12px; font-weight: 600; }
.landing-top h1 { font-size: 26px; margin: 6px 0 0; letter-spacing: -0.5px; font-weight: 700; }
.welcome-hi { color: var(--accent-2); font-size: 14px; font-weight: 600; margin: 12px 0 0; }
.welcome-hi span { color: var(--text); font-weight: 700; }
.landing-main { font-size: 21px; font-weight: 700; color: var(--text); margin: 14px 0 0; letter-spacing: -0.02em; line-height: 1.3; }
.landing-sub { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }
/* 핵심 가치 카드(1열, 밀도) — 골드는 아이콘 칩에만 절제 */
.landing-values { display: flex; flex-direction: column; gap: 9px; text-align: left; }
.lv-card {
  display: flex; align-items: center; gap: 13px;
  background: var(--card-grad); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 12px 14px;
}
.lv-ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: rgba(var(--accent-rgb), 0.12); color: var(--accent); }
.lv-ic .licon { width: 21px; height: 21px; }
.lv-title { font-size: 14px; font-weight: 700; }
.lv-desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.lv-badge { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700; color: var(--accent); background: rgba(var(--accent-rgb),0.16); border-radius: 6px; padding: 1px 6px; vertical-align: middle; }
.landing-cta .btn { padding: 15px; font-size: 16px; }
.landing-cta .btn.kakao { font-size: 15px; }
/* 데스크톱: 카드 폭 여유(앱 컨테이너가 480 고정이라 자연 중앙 정렬) */
@media (min-width: 520px) { .landing { padding-top: 48px; } .landing-main { font-size: 23px; } }
/* iPad(심사 기기: iPad Air 11") 등 넓은 화면: 앱을 아이폰 폭으로 중앙 정렬 + 프레임감.
   본문은 480 컬럼에 고정되어 늘어나지 않고, 고정바(탭바·채팅바)도 이미 480 중앙. */
@media (min-width: 700px) {
  body { background: #070809; }
  .app { box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0,0,0,.5); }
}

/* ── 홈 히어로 (볼보 앱 컨셉: 다크 + 차량 이미지 + 큰 타이포) ─────────── */
.hero-car {
  position: relative;
  margin: -18px -18px 16px;                 /* .screen 패딩 상쇄해 풀블리드 */
  padding: 22px 18px 20px;
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(var(--accent-rgb),0.12) 0%, rgba(var(--accent-rgb),0) 55%),
    linear-gradient(180deg, #14181f 0%, #0d0f12 100%);
  border-bottom: 1px solid var(--line);
}
.veh-switch {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); font-size: 15px; font-weight: 700;
  padding: 8px 16px; cursor: pointer;
}
.veh-switch .caret { color: var(--accent); font-size: 12px; }
.odo { margin: 14px 0 2px; line-height: 1; }
.odo #odoNum { font-size: 54px; font-weight: var(--fw-num); letter-spacing: -2px; }
.odo .odo-unit { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 7px; letter-spacing: .5px; }
.car-img { margin: 6px auto 12px; max-width: 340px; }
.car-img img { width: 100%; display: block; border-radius: 12px; max-height: 210px; object-fit: cover; }
/* 사진 미등록 타이포 히어로 */
.typo-hero { padding: 26px 8px 22px; text-align: center; }
.typo-hero .th-brand { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 6px; }
.typo-hero .th-model { color: var(--text); font-size: 34px; font-weight: 700; letter-spacing: .5px; margin-top: 6px; }
/* 사진 등록 유도 버튼(미등록 시 크게) */
.btn.cta-photo { background: var(--accent); color: #201a08; font-weight: 800; padding: 15px 16px; }
/* 차량 전환 시트 썸네일 배지 */
.thumb-badge { font-size: 22px; }

.kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kv strong { font-size: 18px; }
.click-card { cursor: pointer; }
.click-card:active { filter: brightness(1.1); }

/* 접이식 카드 */
.collapse-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; color: var(--text); font-size: 15px; font-weight: 700;
  cursor: pointer; padding: 0; text-align: left;
}
.collapse-head .caret { color: var(--accent); transition: transform .2s; }
.collapse-head.open .caret { transform: rotate(180deg); }
#briefingBody.collapsed { display: none; }

.btn.danger { background: var(--danger); color: #fff; }

/* 바텀시트 */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-width: 480px;
  background: var(--card); border-top-left-radius: 20px; border-top-right-radius: 20px;
  border: 1px solid var(--line); border-bottom: none;
  padding: 10px 18px 24px; animation: sheetUp .22s ease;
}
@keyframes sheetUp { from { transform: translateY(30px); opacity: .4; } to { transform: translateY(0); opacity: 1; } }
.sheet-handle { width: 42px; height: 4px; border-radius: 2px; background: var(--line); margin: 4px auto 12px; }
.sheet h3 { margin: 0 0 12px; }
.veh-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.veh-row .thumb { width: 52px; height: 40px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; flex: 0 0 auto; display:flex; align-items:center; justify-content:center; }
.veh-row .thumb svg, .veh-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.veh-row .info { flex: 1; min-width: 0; }
.veh-row .info .nm { font-weight: 700; font-size: 14px; }
.veh-row .info .sub { color: var(--muted); font-size: 12px; }
.veh-row.selected .info .nm { color: var(--accent); }
.veh-row .sel-badge { color: var(--accent); font-size: 12px; }
.veh-row .del { background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; padding: 4px 6px; }

/* ── 온보딩 위저드(단계별) ─────────────────────────────────────────────────── */
.wiz-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; min-height: 34px; }
.wiz-back { background: none; border: none; color: var(--accent-2); font-size: 15px; cursor: pointer; padding: 4px 2px; }
.wiz-dots { display: flex; gap: 7px; margin: 0 auto; }
.wiz-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .2s, width .2s; }
.wiz-dot.done { background: rgba(var(--accent-rgb), 0.5); }
.wiz-dot.on { background: var(--accent); width: 22px; border-radius: 4px; }
.wiz-head .btn { flex: 0 0 auto; }
.wiz-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; font-size: 13px; }
.crumb-item { background: none; border: none; color: var(--muted); cursor: pointer; padding: 2px 0; font-size: 13px; }
.crumb-item:last-child { color: var(--accent-2); font-weight: 600; }
.crumb-sep { color: var(--line); }
.wiz-step { animation: wizIn .26s ease both; }
@keyframes wizIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wiz-q { font-size: 19px; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.01em; }
/* 차량 대수 선택(0단계) */
.count-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.count-btn {
  width: 100%; padding: 18px 16px; border-radius: var(--radius);
  background: var(--card-2); border: 1px solid var(--line); color: var(--text);
  font-size: 17px; font-weight: 700; cursor: pointer; text-align: center;
  transition: border-color .15s ease, transform .06s ease, background .15s ease;
}
.count-btn:active { transform: scale(.98); }
.count-btn:hover { border-color: var(--accent); }
/* 몇 번째 차량 표시 pill */
.wiz-veh-label { display: inline-block; margin: 0 0 12px; font-size: 12px; font-weight: 700;
  color: var(--accent); background: rgba(var(--accent-rgb), 0.14); border-radius: 999px; padding: 4px 12px; }
/* 브랜드 3열 그리드(큰 탭 타겟) — .chips 뒤에 정의된 flex를 이기도록 복합 선택자 */
.chips.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.brand-grid .chip { justify-content: center; text-align: center; padding: 15px 6px; font-size: 14px; border-radius: 12px; }
/* "+N개 더보기" 텍스트 링크 */
.link-more { display: inline-block; margin-top: 12px; background: none; border: none; color: var(--accent-2);
  font-size: 13px; text-decoration: underline; cursor: pointer; padding: 4px 2px; }
.link-more:hover { color: var(--accent); }
/* 모델 "더보기"는 칩 줄 안에서 한 줄 차지(칩과 구분) */
.chips .model-more { flex-basis: 100%; margin-top: 6px; text-align: left; }

/* 온보딩 모델 선택 칩 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip {
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text); font-size: 14px;
}
.chip.active { background: var(--accent); color: #201a08; border-color: var(--accent); font-weight: 700; }
.chip.custom { border-style: dashed; color: var(--accent-2); }

/* 신차 출고 가이드 카드 */
.delivery-card { margin-top: 14px; border-color: var(--accent); background: linear-gradient(180deg, rgba(var(--accent-rgb),0.1), rgba(var(--accent-rgb),0.02)); }

/* 사용설명서 카테고리 그리드 */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.cat-tile {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 12px; text-align: center; cursor: pointer; transition: border-color .15s;
}
.cat-tile:active { border-color: var(--accent); }
.cat-tile .cat-ic { font-size: 26px; display: block; margin-bottom: 6px; }
.cat-tile .cat-nm { font-size: 13px; font-weight: 600; }
.cat-tile.ready { border-color: var(--accent); }
.cat-tile .cat-badge { display: block; font-size: 10px; color: var(--accent); margin-top: 3px; }

/* 사용설명서 상세 — 헤더/안내박스/섹션카드/항목 아코디언 */
.manual-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.manual-head .mh-ic { font-size: 24px; }
.manual-head h3 { margin: 0; font-size: 18px; }
.notice-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }

.guide-sec { padding: 0; overflow: hidden; }
.sec-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; color: var(--text); cursor: pointer;
  padding: 14px 16px; font-size: 15px; font-weight: 700; text-align: left;
}
.sec-head .sec-ic { margin-right: 4px; }
.sec-head .sec-caret { color: var(--accent); transition: transform .2s; font-size: 12px; }
.guide-sec.open .sec-head .sec-caret { transform: rotate(180deg); }
.sec-body { display: none; padding: 0 16px 8px; }
.guide-sec.open .sec-body { display: block; }

.guide-item { border-top: 1px solid var(--line); padding: 11px 0; }
.guide-item:first-child { border-top: none; }
.guide-item.has-detail .gi-row { cursor: pointer; }
.gi-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.gi-name { font-weight: 700; font-size: 14px; }
.gi-brief { color: var(--muted); font-size: 13px; margin-top: 2px; line-height: 1.5; }
.gi-caret { color: var(--accent); font-size: 11px; margin-top: 3px; transition: transform .2s; flex: 0 0 auto; }
.guide-item.open .gi-caret { transform: rotate(180deg); }
.gi-detail { display: none; font-size: 13px; color: var(--text); background: var(--bg-2); border-radius: 8px; padding: 10px 12px; margin-top: 8px; line-height: 1.55; }
.guide-item.open .gi-detail { display: block; }

/* 사용설명서 — 기능 목록 */
.func-list { display: flex; flex-direction: column; }
.func-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.func-row:last-child { border-bottom: none; }
.func-row:active { background: var(--card-2); }
.func-name { font-weight: 700; font-size: 15px; }
.func-one { color: var(--muted); font-size: 12px; margin-top: 2px; }
.func-caret { color: var(--accent); font-size: 18px; }
/* 사용설명서 — 기능 풀 매뉴얼 */
.doc-title { font-size: 20px; font-weight: 800; }
.doc-one { color: var(--accent-2); font-size: 13px; margin: 2px 0 10px; }
.doc-sec { margin-top: 16px; }
.doc-sec h4 { margin: 0 0 8px; font-size: 14px; color: var(--accent); }
.doc-steps { margin: 0; padding-left: 0; list-style: none; counter-reset: step; }
.doc-steps li { position: relative; padding: 8px 0 8px 34px; border-bottom: 1px solid var(--line); font-size: 14px; counter-increment: step; }
.doc-steps li:last-child { border-bottom: none; }
.doc-steps li::before { content: counter(step); position: absolute; left: 0; top: 7px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #201a08; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.doc-ul { margin: 0; padding-left: 18px; }
.doc-ul li { font-size: 14px; margin: 5px 0; line-height: 1.5; }
.doc-ul.warn li { color: var(--danger); }
.doc-faq { margin-bottom: 10px; }
.doc-faq .q { font-weight: 700; font-size: 13px; }
.doc-faq .a { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.5; }

/* 사용설명서 도해 — 표준 심볼 아이콘 · 개념 일러스트 (manual-graphics.js) */
.doc-title { display: flex; align-items: center; gap: 8px; }
.doc-ic { flex: 0 0 auto; line-height: 0; }
.doc-ic .mg-icon { width: 30px; height: 30px; display: block; }
.func-name .mg-icon { width: 20px; height: 20px; vertical-align: -4px; margin-right: 6px; }
.mg-fig { margin: 12px 0 2px; padding: 12px 10px 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.mg-svg { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto; }
.mg-cap { margin-top: 8px; font-size: 12.5px; color: var(--accent-2); line-height: 1.5; word-break: keep-all; }
/* 경고등 색 범례 */
.mg-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 10px; }
.mg-lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text); }
.mg-lg i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
/* 경고등 한눈에 보기 그리드 */
.mg-atlas { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); overflow: hidden; }
.mg-atlas > summary { cursor: pointer; padding: 12px 14px; font-size: 14px; font-weight: 700; color: var(--accent); list-style: none; }
.mg-atlas > summary::-webkit-details-marker { display: none; }
.mg-atlas-body { padding: 0 14px 14px; }
.mg-grp { margin-top: 10px; }
.mg-grp-h { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.mg-grp-h i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.mg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.mg-cell { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.mg-cell-ic { line-height: 0; }
.mg-cell-ic .mg-icon { width: 34px; height: 34px; }
.mg-cell-nm { font-size: 11px; color: var(--text); line-height: 1.3; word-break: keep-all; }
.mg-note { font-size: 12px; color: var(--muted); margin: 12px 0 0; }

.typo-hero .th-trim { color: var(--accent-2); font-size: 18px; font-weight: 600; }
/* 용품·호환 규격 — 핵심 규격 요약 박스 */
.spec-summary { background: var(--card-2); border: 1px solid var(--accent); border-radius: 12px; padding: 12px 14px; margin: 6px 0 4px; }
.spec-summary .ss-label { font-size: 11px; color: var(--accent); font-weight: 700; letter-spacing: 1px; }
.spec-summary .ss-val { font-size: 15px; font-weight: 700; margin-top: 4px; line-height: 1.5; word-break: keep-all; }
.spec-summary.confirmed { border-color: var(--ok); background: rgba(93,178,122,0.1); }
.spec-summary.confirmed .ss-label { color: var(--ok); }
/* 내 차 규격 확정 박스 */
.confirm-box { border: 1px dashed var(--accent); border-radius: 12px; padding: 12px 14px; margin: 8px 0; }
.confirm-box .cb-title { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
#specOcr { margin-top: 10px; }

/* 타이핑 인디케이터 (AI 응답 대기) */
.typing { display: inline-flex; gap: 5px; align-items: center; padding: 4px 2px; }
.typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--muted);
  animation: typedot 1.2s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: .18s; }
.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typedot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* 로딩 표시(고객 언어) */
.loading-inline { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; padding: 8px 0; }

/* 스켈레톤: 내용 자리를 잡아 두는 로딩 화면 */
.skeleton { padding: 4px 0; }
.skeleton .sk-msg { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.sk-line { height: 12px; border-radius: 6px; margin: 9px 0;
  background: linear-gradient(90deg, var(--card-2) 25%, var(--line) 37%, var(--card-2) 63%);
  background-size: 400% 100%; animation: sk-shimmer 1.3s ease infinite; }
.sk-line.title { height: 18px; width: 55%; margin-bottom: 14px; }
.sk-line.w90 { width: 90%; } .sk-line.w75 { width: 75%; } .sk-line.w60 { width: 60%; }
@keyframes sk-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* 위치·식별 답변 아래 액션 버튼 */
.loc-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.retry-bubble { border: 1px solid var(--danger) !important; }
.retry-bubble .btn { margin-top: 8px; }

/* 음성 입력 마이크 버튼 */
.mic-btn {
  background: var(--card-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 11px; padding: 12px 13px; cursor: pointer; font-size: 16px; line-height: 1;
}
.mic-btn.recording { background: var(--danger); color: #fff; border-color: var(--danger); animation: micpulse 1.1s infinite; }
@keyframes micpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(224,106,90,0.5); } 50% { box-shadow: 0 0 0 6px rgba(224,106,90,0); } }

/* AI 답변 듣기(스피커) 버튼 */
.tts-btn {
  margin-top: 8px; align-self: flex-start;
  background: transparent; border: 1px solid var(--line); color: var(--accent-2);
  border-radius: 999px; padding: 5px 12px; font-size: 12px; cursor: pointer;
}
.tts-btn.speaking { background: var(--accent); color: #201a08; border-color: var(--accent); }

/* 홈 현황판 2열 그리드 */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.dash-card {
  background: var(--card-grad); border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  padding: 13px 14px; cursor: pointer; min-height: 92px; display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color .15s ease, transform .05s ease;
}
.dash-card:active { border-color: var(--accent); transform: scale(.98); }
.dash-card .dc-top { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: var(--fs-label); letter-spacing: .3px; }
.dash-card .dc-main { font-size: 16px; font-weight: 800; margin-top: 6px; line-height: 1.3; }
.dash-card .dc-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }
.dash-card.warn { border-color: var(--danger); background: linear-gradient(180deg, rgba(224,106,90,0.12), rgba(224,106,90,0.02)); }
.dash-card.warn .dc-main { color: var(--danger); }
.dash-card.loading .dc-main { color: var(--muted); font-weight: 600; font-size: 13px; }
.dash-sheet-h { font-size: 12px; color: var(--muted); }

/* 내 차 옵션 — 3상태(켬/끔/모름) 세그먼트 */
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.opt-row:last-child { border-bottom: none; }
.opt-name { font-size: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: 0 0 auto; }
.seg button { background: var(--bg-2); border: none; color: var(--muted); padding: 6px 11px; font-size: 12px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on-yes { background: var(--ok); color: #08210f; font-weight: 700; }
.seg button.on-no { background: var(--danger); color: #fff; font-weight: 700; }
.seg button.on-unknown { background: var(--card-2); color: var(--text); font-weight: 700; }
#optionsList { max-height: 52vh; overflow-y: auto; }

/* 설정 토글(스위치) */
.switch-row { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.switch-row input[type="checkbox"] { -webkit-appearance: none; appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; flex: 0 0 auto; }
.switch-row input[type="checkbox"]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch-row input[type="checkbox"]:checked { background: var(--accent); }
.switch-row input[type="checkbox"]:checked::after { transform: translateX(18px); }

/* ── PC 관리자(업체/운영자) ─────────────────────────────────────────── */
.admin-wrap { max-width: 1080px; margin: 0 auto; padding: 24px; }
.admin-head { display:flex; justify-content: space-between; align-items:center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.grid { display:grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stat { background: var(--card); border:1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat .n { font-size: 28px; font-weight: 800; color: var(--accent); }
.stat .l { color: var(--muted); font-size: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 12px; }
tr { cursor: default; }
tr.click { cursor: pointer; }
tr.click:hover { background: var(--card-2); }
.login-box { max-width: 380px; margin: 12vh auto; }
.modal-bg { position: fixed; inset:0; background: rgba(0,0,0,.6); display:flex; align-items:center; justify-content:center; z-index: 100; padding: 20px; }
.modal { background: var(--card); border:1px solid var(--line); border-radius: var(--radius); padding: 22px; width: 100%; max-width: 560px; max-height: 90vh; overflow:auto; }
.modal h3 { margin-top: 0; }
@media (max-width: 720px) {
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
}

/* ── 정보 오류 신고 링크(매뉴얼 하단·상담 답변 말풍선) ───────────────────── */
.report-flag { margin-top: 10px; }
.report-link {
  background: none; border: none; padding: 2px 0; cursor: pointer;
  color: var(--muted); font-size: 12px; text-decoration: underline; opacity: .8;
}
.report-link:hover { opacity: 1; color: var(--accent); }
.report-form { display: flex; gap: 6px; margin-top: 8px; }
.report-form.hidden { display: none; }
.report-input {
  flex: 1; min-width: 0; padding: 8px 10px; font-size: 13px;
  background: var(--card-2, #1a1a1a); border: 1px solid var(--line); border-radius: 8px; color: inherit;
}
.report-send { flex: 0 0 auto; white-space: nowrap; }
.report-done { font-size: 12px; color: var(--accent); }

/* ── 오류 신고 관리(운영자) ───────────────────────────────────────────── */
.rep-badge { display:inline-block; padding:2px 8px; border-radius:10px; font-size:11px; font-weight:700; }
.rep-badge.open { background:#7a2b2b; color:#ffd7d7; }
.rep-badge.resolved { background:#2b4a2b; color:#d7ffd7; }

.qchip {
  flex: 0 0 auto; white-space: nowrap; cursor: pointer;
  background: var(--card); border: 1px solid var(--accent); color: var(--text);
  border-radius: 16px; padding: 8px 14px; font-size: 13px;
}
.qchip:hover { background: var(--card-2); }
/* 답변 말풍선 아래 후속 질문 칩 */
.followups { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.followups .qchip { font-size: 12px; padding: 6px 12px; }

/* ============================================================================
   업체 관리자(/partner) — 모바일 우선 (작업장에서 폰으로 사용)
   ★모든 규칙을 .partner-page 로 스코프 → 오너 앱/운영자 화면에 영향 없음.
   ========================================================================== */
.partner-page { background: var(--bg); }
.partner-page .pt-login { padding: 0 18px; }

/* 컨테이너 — 모바일: 좁게 / PC: 넓게 */
.partner-page .pt-wrap { max-width: 480px; margin: 0 auto; min-height: 100vh; }
.partner-page .pt-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top));
  background: rgba(13,15,18,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.partner-page .pt-top .brand { font-size: 16px; }
.partner-page .pt-top .brand .en { font-size: 9px; letter-spacing: 1.5px; }
.partner-page .pt-top-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.partner-page .pt-top-right #pName { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.partner-page .pt-body { padding: 16px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

/* 통계 2열 */
.partner-page .pt-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.partner-page .pt-stats .stat { padding: 16px; }
.partner-page .pt-stats .n { font-size: 30px; }

/* 섹션 제목 + 카운트 배지 */
.partner-page .pt-section { margin-bottom: 22px; }
.partner-page .pt-sec-title { font-size: 15px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.partner-page .pt-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: #201a08; font-size: 12px; font-weight: 800;
}
.partner-page .pt-count:empty { display: none; }

/* 문의 카드 리스트 (표 대신) */
.partner-page .pt-cards { display: flex; flex-direction: column; gap: 10px; }
.partner-page .pt-card {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; color: var(--text); font-family: inherit;
  transition: border-color .12s, transform .05s;
}
.partner-page .pt-card:active { transform: scale(.99); border-color: var(--accent); }
.partner-page .pt-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.partner-page .pt-card-name { font-size: 15px; font-weight: 700; }
.partner-page .pt-card-sym {
  color: var(--muted); font-size: 13px; margin: 6px 0 8px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.partner-page .pt-card-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.partner-page .pt-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 22px 0; border: 1px dashed var(--line); border-radius: var(--radius); }

/* 상세 — 모바일: 전체화면 슬라이드업 */
.partner-page .pt-detail-bg { position: fixed; inset: 0; z-index: 100; background: var(--bg); }
.partner-page .pt-detail { display: flex; flex-direction: column; height: 100%; animation: sheetUp .2s ease; }
.partner-page .pt-detail-head {
  position: sticky; top: 0; z-index: 2; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; padding-top: calc(12px + env(safe-area-inset-top));
  background: rgba(13,15,18,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  font-weight: 700; font-size: 15px;
}
.partner-page .pt-back { background: none; border: none; color: var(--accent-2); font-size: 15px; cursor: pointer; padding: 4px 6px; }
.partner-page .pt-detail-scroll {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 16px; padding-bottom: calc(28px + env(safe-area-inset-bottom));
}
.partner-page .pt-cust { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.partner-page .pt-cust-name { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 손님에게 전화 — 큰 tel: 버튼 */
.partner-page .pt-call {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 15px 16px; margin-bottom: 16px;
  background: var(--ok); color: #08210f; font-weight: 800; font-size: 16px;
  border-radius: 12px; text-decoration: none;
}
.partner-page .pt-call span { font-weight: 700; opacity: .85; font-size: 14px; }
.partner-page .pt-call:active { filter: brightness(1.08); }

/* 상세 카드 제목 통일 */
.partner-page .pt-detail-scroll .card h3 { font-size: 14px; }

/* 상태 변경 — 큰 버튼들 */
.partner-page .pt-status-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.partner-page .pt-status-btn {
  padding: 13px 10px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.partner-page .pt-status-btn:active { transform: scale(.98); }
.partner-page .pt-status-btn.on { background: var(--accent); color: #201a08; border-color: var(--accent); cursor: default; }
.partner-page .pt-status-btn:disabled { opacity: 1; }

/* 파일 선택 — 큰 버튼처럼 (카메라 촬영/갤러리) */
.partner-page .pt-file {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 8px 0 0; padding: 14px; border: 1px dashed var(--line); border-radius: 12px;
  background: var(--bg-2); color: var(--accent-2); font-weight: 700; font-size: 14px; cursor: pointer;
}
.partner-page .pt-file input[type="file"] { display: none; }
.partner-page .pt-file::before { content: "📷"; font-size: 18px; }

/* 사진 그리드 — 탭하면 확대 */
.partner-page .pt-photo-label { color: var(--muted); font-size: 12px; margin-top: 12px; }
.partner-page .pt-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.partner-page .pt-photos img {
  width: 96px; height: 96px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); cursor: zoom-in;
}

/* 사진 확대 라이트박스 */
.partner-page .pt-lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.partner-page .pt-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.partner-page .pt-lightbox-x {
  position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 16px;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(0,0,0,.5); color: #fff; font-size: 18px; cursor: pointer;
}
body.pt-locked { overflow: hidden; }

/* ── PC(넓은 화면): 여유 있는 레이아웃 ─────────────────────────────────── */
@media (min-width: 760px) {
  .partner-page .pt-wrap { max-width: 1080px; }
  .partner-page .pt-top { padding: 16px 24px; }
  .partner-page .pt-top .brand { font-size: 18px; }
  .partner-page .pt-top .brand .en { font-size: 11px; letter-spacing: 2px; }
  .partner-page .pt-body { padding: 24px; }
  .partner-page .pt-stats { max-width: 520px; }
  /* 카드 리스트를 2열로 */
  .partner-page .pt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  /* 상세를 중앙 모달로 */
  .partner-page .pt-detail-bg {
    background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 24px;
  }
  .partner-page .pt-detail {
    width: 100%; max-width: 640px; height: auto; max-height: 90vh;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  }
  .partner-page .pt-detail-head { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
  .partner-page .pt-status-btns { grid-template-columns: repeat(5, 1fr); }
}

/* ── 오너 라운지 ──────────────────────────────────────────────────────────── */
.lounge-hero { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.lounge-hero .lh-ic { font-size:32px; }
.lounge-sec-h { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:6px; }
.lounge-sec-h h3 { margin:0; font-size:16px; }
.lounge-badge { flex:0 0 auto; font-size:11px; font-weight:700; padding:3px 9px; border-radius:11px; white-space:nowrap; }
.lounge-badge.real { background:#2b4a2b; color:#d7ffd7; }        /* 실데이터 */
.lounge-badge.base { background:var(--card-2); color:var(--muted); border:1px solid var(--line); } /* 통용/AI 기준 */
.lounge-qs { display:flex; flex-direction:column; gap:8px; }
.lounge-q { display:flex; align-items:center; gap:10px; width:100%; text-align:left; cursor:pointer;
  background:var(--card-2); border:1px solid var(--line); border-radius:12px; padding:11px 12px; color:var(--text); }
.lounge-q:hover { border-color:var(--accent); }
.lounge-q .lq-rank { flex:0 0 auto; width:22px; height:22px; border-radius:50%; background:var(--accent); color:#111;
  font-weight:800; font-size:12px; display:flex; align-items:center; justify-content:center; }
.lounge-q .lq-text { flex:1; font-size:14px; }
.lounge-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 0; border-bottom:1px solid var(--line); }
.lounge-row:last-of-type { border-bottom:none; }
.lounge-row .lr-name { font-weight:700; font-size:14px; }
.lounge-row .lr-sub { color:var(--muted); font-size:12px; margin-top:2px; }
.lounge-owners { display:flex; align-items:center; gap:12px; }
.lounge-owners .lo-num { font-size:22px; font-weight:800; color:var(--accent); }

/* ── 매뉴얼 내 차 기준 개인화 안내 ─────────────────────────────────────────── */
.notice-box.personalized { background:rgba(var(--accent-rgb),0.12); border:1px solid var(--accent); color:var(--text); }
.notice-box.personalized.off { background:rgba(180,80,80,0.14); border-color:#b45; }
.qchip.primary { background:var(--accent); color:#111; border-color:var(--accent); font-weight:700; }

/* ── 업체 상세(오너) + 문의 스레드 + 뱃지 ────────────────────────────────── */
.tab-badge { position:absolute; top:4px; right:calc(50% - 22px); min-width:16px; height:16px; padding:0 4px;
  background:#d64; color:#fff; font-size:10px; font-weight:800; border-radius:9px; display:inline-flex; align-items:center; justify-content:center; }
.tabbar button { position:relative; }
.unread-dot { display:inline-block; min-width:16px; height:16px; padding:0 5px; background:#d64; color:#fff;
  font-size:10px; font-weight:800; border-radius:9px; line-height:16px; text-align:center; vertical-align:middle; }
.biz-row { display:flex; align-items:center; gap:10px; cursor:pointer; }
.biz-thumb { width:44px; height:44px; border-radius:10px; overflow:hidden; background:var(--card-2); display:flex; align-items:center; justify-content:center; font-size:20px; flex:0 0 auto; }
.biz-thumb img { width:100%; height:100%; object-fit:cover; }
.biz-hero { width:100%; height:170px; border-radius:12px; overflow:hidden; margin-bottom:10px; }
.biz-hero img { width:100%; height:100%; object-fit:cover; }
.biz-actions { display:flex; gap:8px; margin-top:12px; }
.biz-actions .btn { width:auto; }
.biz-gallery { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
.biz-gallery img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:8px; }

/* 스레드(오너·업체 공용) */
.inq-thread { max-height:320px; overflow-y:auto; display:flex; flex-direction:column; gap:8px; padding:4px 0; }
.thr-row { display:flex; }
.thr-row.me { justify-content:flex-end; }
.thr-row.them { justify-content:flex-start; }
.thr-bubble { max-width:78%; padding:9px 12px; border-radius:14px; font-size:14px; line-height:1.4; white-space:pre-wrap; word-break:break-word; }
.thr-row.me .thr-bubble { background:var(--accent); color:#111; border-bottom-right-radius:4px; }
.thr-row.them .thr-bubble { background:var(--card-2); border:1px solid var(--line); border-bottom-left-radius:4px; }
.thr-sys { text-align:center; font-size:12px; color:var(--muted); background:var(--card-2); border-radius:10px; padding:6px 10px; align-self:center; }
.thr-imgs { display:flex; flex-wrap:wrap; gap:4px; margin-top:6px; }
.thr-imgs img { width:96px; height:96px; object-fit:cover; border-radius:8px; cursor:pointer; }
.inq-composer { display:flex; gap:8px; align-items:flex-end; margin-top:10px; }
.inq-composer textarea { flex:1; min-height:40px; max-height:100px; }
.inq-composer .btn { flex:0 0 auto; width:auto; }

/* 업체 프로필 편집(업체·운영자) */
.price-row { display:flex; gap:6px; margin-bottom:6px; }
.price-row input { flex:1; min-width:0; }
.pt-photo-del { position:relative; }
.pt-photo-del .pt-x, .price-row .pt-x { position:static; }
.pt-x { background:#844; color:#fff; border:none; border-radius:8px; padding:4px 9px; cursor:pointer; font-weight:800; }
.pt-photo-del .pt-x { position:absolute; top:4px; right:4px; }
.pt-main-tag { position:absolute; bottom:4px; left:4px; background:var(--accent); color:#111; font-size:10px; font-weight:800; padding:2px 6px; border-radius:6px; }

/* ── 내 차 장착 확인법(매뉴얼) + 옵션 확인법(물음표) ─────────────────────── */
.equip-box { background:rgba(var(--accent-rgb),0.10); border:1px solid var(--accent); border-radius:12px; padding:12px; margin:10px 0; }
.equip-box .equip-h { font-weight:800; color:var(--accent); font-size:14px; margin-bottom:6px; }
.opt-help { width:18px; height:18px; border-radius:50%; border:1px solid var(--line); background:var(--card-2);
  color:var(--muted); font-size:11px; font-weight:800; cursor:pointer; padding:0; line-height:1; margin-left:4px; vertical-align:middle; }
.opt-help:hover { border-color:var(--accent); color:var(--accent); }
.opt-hint { flex-basis:100%; width:100%; margin-top:8px; padding:8px 10px; background:var(--card-2); border-radius:8px; color:var(--text); }
.opt-row { flex-wrap:wrap; }

/* ── 홈 업체문의 카드 진행중/예약 뱃지 ────────────────────────────────────── */
.ongoing-badge { display:inline-block; padding:2px 8px; border-radius:10px; font-size:11px; font-weight:700; background:var(--accent); color:#111; margin-left:4px; }
/* 예약 임박(D-1/당일) 강조 */
.ongoing-badge.soon { background:var(--danger); color:#fff; }
.card.appt-soon { border-color:var(--accent); box-shadow:0 0 0 1px rgba(var(--accent-rgb),0.35), 0 0 18px rgba(var(--accent-rgb),0.12); }
/* 오너 문의 상세 예약 확정 박스 */
.appt-box { display:flex; align-items:center; gap:6px; margin-top:10px; padding:10px 12px; font-size:13px;
  background:linear-gradient(180deg, rgba(var(--accent-rgb),0.12), rgba(var(--accent-rgb),0.02));
  border:1px solid var(--hairline); border-radius:var(--radius-sm); }
.appt-box.soon { border-color:var(--accent); }
.appt-box .appt-dday { margin-left:auto; flex:0 0 auto; font-size:11px; font-weight:800; padding:2px 8px; border-radius:999px; background:var(--card-2); color:var(--accent); }
.appt-box.soon .appt-dday { background:var(--danger); color:#fff; }
.appt-box .licon { width:15px; height:15px; color:var(--accent); }
/* /partner 오늘·내일 예약 섹션 */
.pt-appt-list { display:flex; flex-direction:column; gap:8px; }
.pt-appt { display:flex; align-items:center; gap:10px; background:var(--card); border:1px solid var(--hairline); border-radius:var(--radius-sm); padding:12px 14px; cursor:pointer; text-align:left; width:100%; color:var(--text); font-family:inherit; }
.pt-appt.today { border-color:var(--accent); }
.pt-appt .pa-when { font-weight:800; font-size:15px; white-space:nowrap; }
.pt-appt .pa-when .num { font-family:var(--font-num); }
.pt-appt .pa-dday { flex:0 0 auto; font-size:11px; font-weight:800; padding:2px 8px; border-radius:999px; background:var(--card-2); color:var(--muted); }
.pt-appt.today .pa-dday { background:var(--danger); color:#fff; }
.pt-appt .pa-info { flex:1; min-width:0; }
.pt-appt .pa-veh { font-weight:700; font-size:14px; }
.pt-appt .pa-cust { color:var(--muted); font-size:12px; }
.ongoing-badge.hidden, .unread-dot.hidden, .tab-badge.hidden { display:none; }

/* ── 우리 차 갤러리 + 사고 가이드 ─────────────────────────────────────────── */
.gallery-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
.gallery-item { position:relative; }
.gallery-item a { display:block; }
.gallery-item img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:8px; display:block; background:var(--card-2); }
.gallery-nick { position:absolute; left:4px; bottom:4px; background:rgba(0,0,0,.55); color:#fff; font-size:10px; padding:1px 6px; border-radius:6px; }
.gallery-report { position:absolute; top:4px; right:4px; background:rgba(0,0,0,.45); border:none; border-radius:6px; padding:2px 5px; cursor:pointer; font-size:11px; }
.gallery-empty { text-align:center; padding:14px 0; }
.accident-entry { border-color:#b45 !important; }
.accident-guide { max-height:60vh; overflow-y:auto; }

/* ── 옵션 화면 출처 라벨 ──────────────────────────────────────────────────── */
.opt-src { display:inline-block; margin-left:6px; font-size:10px; font-weight:700; padding:1px 7px; border-radius:9px; background:rgba(var(--accent-rgb),0.18); color:var(--accent); vertical-align:middle; }
.opt-hint.hidden { display:none; }

/* 상담 목록 하단 기본 여백(JS layoutChatBottom 이 정밀 보정 전 최소 확보) */
.chat-list { padding-bottom: 200px; }

/* ── 라운지 재배치: 컴팩트 헤더 + 오너 피드 + 접이식 ─────────────────────── */
.lounge-topbar { display:flex; align-items:center; gap:8px; margin-bottom:12px; font-size:16px; }
.lounge-topbar .lh-ic { font-size:20px; }
.lounge-topbar .lt-count { color:var(--muted); font-weight:400; }
.card.collapsible { padding-top:6px; padding-bottom:6px; }
.card.collapsible .collapse-head { width:100%; }
.collapse-body { margin-top:8px; }
.collapse-body.collapsed { display:none; }
/* 피드 작성 */
.feed-composer { background:var(--card-2); border:1px solid var(--line); border-radius:12px; padding:10px; margin-bottom:12px; }
.feed-cat-row { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:8px; }
.feed-cat-btn { background:var(--card); border:1px solid var(--line); color:var(--muted); border-radius:14px; padding:5px 12px; font-size:12px; cursor:pointer; }
.feed-cat-btn.on { background:var(--accent); color:#111; border-color:var(--accent); font-weight:700; }
.feed-composer textarea { width:100%; min-height:40px; }
.feed-compose-actions { display:flex; gap:8px; align-items:center; margin-top:8px; }
.feed-compose-actions .btn { width:auto; margin-left:auto; }
/* 피드 카드 */
.feed-list { display:flex; flex-direction:column; gap:12px; }
.feed-empty { text-align:center; padding:16px 0; }
.feed-card { border:1px solid var(--line); border-radius:12px; padding:12px; }
.feed-top { display:flex; align-items:center; gap:8px; }
.feed-cat { background:rgba(var(--accent-rgb),0.18); color:var(--accent); font-size:11px; font-weight:700; padding:2px 9px; border-radius:9px; }
.feed-nick { color:var(--muted); font-size:12px; }
.feed-report { margin-left:auto; background:none; border:none; cursor:pointer; font-size:13px; opacity:.7; }
.feed-text { margin-top:8px; font-size:14px; white-space:pre-wrap; word-break:break-word; }
.feed-imgs { display:grid; grid-template-columns:repeat(2,1fr); gap:6px; margin-top:8px; }
.feed-imgs img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:8px; }
.feed-actions { margin-top:10px; }
.feed-like { background:var(--card-2); border:1px solid var(--line); color:var(--muted); border-radius:14px; padding:5px 14px; cursor:pointer; font-size:13px; }
.feed-like.on { background:rgba(210,80,80,0.16); color:#f88; border-color:#b55; }

/* ── 상담 예상질문 칩(채팅 흐름 안 세로 리스트) ─────────────────────────── */
.chat-choices { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin: 6px 0 4px; }
.choice-chip {
  display: inline-block; max-width: 92%; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--accent); color: var(--text);
  border-radius: 16px; padding: 9px 15px; font-size: 14px; line-height: 1.35;
  white-space: normal; word-break: break-word;   /* 전체 텍스트 줄바꿈, 잘리지 않게 */
}
.choice-chip:hover { background: var(--card-2); }
.choice-chip.primary { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 700; }
/* 갤러리 자유 업로드 미니 컴포저 */
.gallery-post input { width: 100%; }

/* ── 오너 피드/갤러리 컴팩트화 ─────────────────────────────────────────────── */
.feed-list { gap: 8px; }
.feed-card { padding: 10px 12px; }
.feed-card .feed-top { align-items: center; }
.feed-card .feed-text { margin-top: 5px; font-size: 13px; line-height: 1.4; }
.feed-card.text-only { padding: 9px 12px; }
.feed-actions { margin-top: 6px; }
.feed-like { padding: 4px 12px; font-size: 12px; }
/* 피드 이미지: 첫 장만 4:3 커버 + "+N" 오버레이 */
.feed-img-wrap { position: relative; margin-top: 7px; border-radius: 10px; overflow: hidden; cursor: pointer; }
.feed-img-cover { width: 100%; aspect-ratio: 4 / 3; max-height: 260px; object-fit: cover; display: block; }
.feed-img-more { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 10px; }
.feed-imgs-full { display: flex; flex-direction: column; gap: 8px; }
.feed-imgs-full img { width: 100%; border-radius: 10px; }
/* 글쓰기 트리거(입력창 모양) */
.feed-trigger { width: 100%; text-align: left; background: var(--card-2); border: 1px solid var(--line); color: var(--muted); border-radius: 12px; padding: 11px 14px; font-size: 14px; cursor: pointer; margin-bottom: 12px; }
.feed-trigger:hover { border-color: var(--accent); }
/* 갤러리 3열 정사각 + "+N 더보기" 셀 */
.gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery-more-cell { aspect-ratio: 1; border: 1px dashed var(--line); background: var(--card-2); color: var(--muted); border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 700; line-height: 1.2; }
.gallery-more-cell:hover { border-color: var(--accent); color: var(--accent); }

/* ── 이 차 소식 ────────────────────────────────────────────────────────────── */
.news-list { display:flex; flex-direction:column; gap:10px; }
.news-item { border-left:3px solid var(--line); padding:2px 0 2px 10px; }
.news-item.pinned { border-left-color:#e0554e; }
.news-title { font-weight:700; font-size:14px; }
.news-body { margin-top:3px; line-height:1.4; }
.news-date { margin-top:3px; }

/* 다음 점검 / 예상 정비비 — 보증·무상 3분류 */
.cov { font-size:11px; font-weight:600; white-space:nowrap; padding:1px 6px; border-radius:10px; }
.cov-free { color:#1f8a4c; background:rgba(31,138,76,.12); }
.cov-check { color:#b8860b; background:rgba(184,134,11,.14); }
.cov-self { color:#c0453e; background:rgba(192,69,62,.12); }
.nextcheck-list, .maint-list { list-style:none; padding:0; margin:6px 0; display:flex; flex-direction:column; gap:10px; }
.nextcheck-list li, .maint-item { border-bottom:1px solid var(--line); padding-bottom:8px; }
.nextcheck-list li:last-child, .maint-item:last-child { border-bottom:none; }
.nc-item, .mi-top { display:flex; align-items:center; justify-content:space-between; gap:8px; font-weight:600; font-size:14px; }
.nc-basis { font-size:12px; color:var(--muted); margin-top:3px; line-height:1.4; }
.mi-cost { font-size:13px; margin-top:2px; }
.mi-cost s { color:var(--muted); }
.coupon-box { margin-top:12px; padding:10px; border:1px solid var(--line); border-radius:10px; background:var(--card-2); }
.chip-row { display:flex; gap:6px; }
.chip-toggle { flex:1; padding:7px 0; border:1px solid var(--line); border-radius:8px; background:var(--card); font-size:13px; font-weight:600; color:var(--text); cursor:pointer; }
.chip-toggle.on { border-color:var(--accent); background:var(--accent); color:#fff; }

/* ============================================================================
   디자인 리프레시 — 눌림 피드백 통일 + 최소 모션
   (레이아웃/기능 불변, 인터랙션 질감만 정돈)
   ========================================================================== */
/* 칩·타일·세그먼트 눌림 피드백 통일 */
.chip, .qchip, .choice-chip, .feed-cat-btn, .cat-tile,
.chip-toggle, .lounge-q, .veh-switch, .feed-like, .btn.sm {
  transition: transform .06s ease, border-color .15s ease, background .15s ease, color .15s ease;
}
.chip:active, .qchip:active, .choice-chip:active, .feed-cat-btn:active,
.cat-tile:active, .chip-toggle:active, .lounge-q:active,
.veh-switch:active, .feed-like:active { transform: scale(.98); }

/* 화면 전환: 은은한 페이드 업(숨김 해제될 때마다 재생) */
@keyframes screenIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.screen:not(.hidden) { animation: screenIn .28s ease both; }

/* 홈 현황판 카드 등장: subtle stagger */
@keyframes cardRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dash-grid .dash-card { animation: cardRise .34s ease both; }
.dash-grid .dash-card:nth-child(2) { animation-delay: .05s; }
.dash-grid .dash-card:nth-child(3) { animation-delay: .10s; }
.dash-grid .dash-card:nth-child(4) { animation-delay: .15s; }

/* 접근성: 모션 최소화 선호 시 애니메이션·전환 정지 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ============================================================================
   Lucide 아이콘 — 크기·스트로크 통일 (이모지 대체)
   <i data-lucide> → lucide.createIcons()가 <svg class="licon">로 치환.
   CDN 실패 시 <i class="licon">가 빈 채로 남아 공간만 차지(텍스트 라벨 유지).
   ========================================================================== */
.licon { display: inline-flex; align-items: center; justify-content: center; width: 1.1em; height: 1.1em; vertical-align: -0.18em; flex: 0 0 auto; }
svg.licon { stroke-width: 1.75; }
/* 텍스트 라벨과 함께 쓰는 인라인 아이콘은 약간의 우측 여백 */
.btn .licon, .kv .licon, .pt-sec-title .licon, .lounge-sec-h .licon,
.manual-head .licon, .dc-top .licon, h3 .licon, h4 .licon { margin-right: 5px; }

/* 하단 탭바 아이콘: 22px 라인 / 활성 = 샴페인 골드 + 은은한 채움 */
.tabbar .ic { line-height: 0; }
.tabbar .ic .licon { width: 22px; height: 22px; margin: 0; }
.tabbar button.active .ic .licon { color: var(--accent); }
.tabbar button.active .ic svg.licon { fill: var(--accent); fill-opacity: .16; }

/* 설명서 카테고리 타일 아이콘(밝은 회색 라인으로 통일) */
.cat-tile .cat-ic { line-height: 0; color: var(--text); opacity: .9; }
.cat-tile .cat-ic .licon { width: 26px; height: 26px; }
.cat-tile.ready .cat-ic { color: var(--accent); opacity: 1; }
.manual-head .mh-ic .licon { width: 24px; height: 24px; }

/* 현황판 카드 라벨 아이콘(작게) */
.dc-top .licon { width: 14px; height: 14px; }
/* 라운지 헤더 아이콘 */
.lounge-topbar .lh-ic .licon, .lounge-hero .lh-ic .licon { width: 20px; height: 20px; }
/* 차량 썸네일 배지·업체 썸네일 대체 아이콘 */
.thumb-badge .licon, .biz-thumb .licon { width: 22px; height: 22px; color: var(--muted); }

/* ============================================================================
   터치 타겟 보정 — 작은 버튼의 "실제 탭 영역"을 최소 44px로. 아이콘/글자 크기와
   레이아웃은 유지하고, ::after(투명)로 히트 영역만 확장하거나 min-height만 키운다.
   눌림 피드백(:active)도 함께 줘 "헛클릭" 인지를 줄인다.
   ========================================================================== */
/* 텍스트형 소형/뒤로가기 버튼 → 높이 44 확보 */
.btn.sm { min-height: 44px; }
.pt-back, .wiz-back { min-height: 44px; display: inline-flex; align-items: center; padding: 6px 8px; }
.pt-back:active, .wiz-back:active { opacity: .6; }
/* 차량 전환 버튼(홈 히어로) */
.veh-switch { min-height: 44px; }
/* 아이콘형 소형 버튼 — 투명 ::after 로 히트 영역만 44 근처로 확대(레이아웃 불변) */
.opt-help, .gallery-report, .feed-report, .report-link, .pv-x, .pt-x, .gallery-nick { position: relative; }
.opt-help::after, .gallery-report::after, .feed-report::after, .report-link::after, .pv-x::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px;
}
/* 이미지 위 오버레이 X/신고는 44가 썸네일을 다 덮으니 살짝 작게 */
.gallery-report::after, .pv-x::after { width: 38px; height: 38px; }
/* 눌림 피드백 */
.opt-help:active, .gallery-report:active, .feed-report:active, .report-link:active,
.pv-x:active, .pt-x:active, .func-caret:active, .caret:active { opacity: .55; }
/* 라이트박스 닫기 40→44 */
.partner-page .pt-lightbox-x { width: 44px; height: 44px; }
/* 신고 링크(텍스트)도 세로 여백으로 탭 쉽게 */
.report-link { padding: 8px 2px; }

/* ── 차고: 사진 선택 버튼(오너용 기본) + 내 차 앨범 ──────────────────────── */
.pt-file { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 0;
  padding: 13px; border: 1px dashed var(--line); border-radius: var(--radius-sm);
  background: var(--bg-2); color: var(--accent-2); font-weight: 700; font-size: 14px; cursor: pointer; }
.pt-file input[type="file"] { display: none; }
.rec-thumbs { margin-top: 8px; }
.rec-thumbs img { width: 64px; height: 64px; cursor: zoom-in; }
/* 앨범 */
.album-month { font-size: 12px; font-weight: 700; color: var(--accent-2); letter-spacing: .5px; margin: 14px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.album-entry { position: relative; background: var(--card-2); border: 1px solid var(--hairline); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 10px; }
.album-date { font-size: 12px; color: var(--muted); font-weight: 600; }
.album-imgs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 6px; }
.album-imgs .album-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
.album-imgs .album-img:only-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
.album-memo { font-size: 13px; margin-top: 8px; line-height: 1.4; }
.album-del { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.45); border: none; color: #fff; border-radius: 8px; padding: 5px 7px; cursor: pointer; }
.album-del .licon { width: 15px; height: 15px; }

/* ── 내 차 시세 상세 시트: 팔 때 예상(매입가) / 매물 시세 2단 표시 ─────────── */
.resale-figs { display: flex; gap: 10px; align-items: stretch; margin-top: 4px; }
.resale-fig {
  flex: 1; background: var(--card-2); border: 1px solid var(--hairline);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.resale-fig.primary { border-color: var(--accent); background: linear-gradient(180deg, rgba(var(--accent-rgb),0.12), rgba(var(--accent-rgb),0.02)); }
.resale-fig .rf-label { font-size: var(--fs-label); letter-spacing: .3px; color: var(--muted); }
.resale-fig.primary .rf-label { color: var(--accent); font-weight: 600; }
.resale-fig .rf-val { font-size: 22px; font-weight: 300; letter-spacing: -.5px; margin-top: 6px; line-height: 1.15; }
.resale-fig.primary .rf-val { font-size: 26px; color: var(--text); }

/* ── 정비 타임라인 시트: 주행거리 구간 타임라인(현재 위치 마커·완료 대조) ────── */
.timeline-wrap { position: relative; margin: 4px 0 2px; }
.tl-stop { position: relative; padding: 0 0 14px 20px; border-left: 2px solid var(--line); }
.tl-stop:last-child { border-left-color: transparent; padding-bottom: 2px; }
.tl-dot { position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--card-2); border: 2px solid var(--line); }
.tl-km { font-size: 15px; font-weight: 700; margin-bottom: 7px; color: var(--text); }
.tl-km .tl-unit { font-size: 12px; color: var(--muted); font-weight: 500; }
/* 지나온 구간 = 흐리게 */
.tl-stop.past { opacity: .5; }
.tl-stop.past .tl-dot { background: var(--line); border-color: var(--line); }
/* 다가오는 구간 = 강조 */
.tl-stop.upcoming .tl-dot { border-color: var(--accent); background: var(--bg); }
.tl-stop.upcoming .tl-km { color: var(--text); }
/* "지금 여기" 마커 */
.tl-now { position: relative; display: flex; align-items: center; gap: 8px; margin: 2px 0 12px -1px; padding-left: 20px;
  font-size: 13px; font-weight: 700; color: var(--accent); }
.tl-now-dot { position: absolute; left: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18); }
/* 항목 */
.tl-items { display: flex; flex-direction: column; gap: 6px; }
.tl-item { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.tl-item.is-done .tl-name { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.tl-kind { flex: 0 0 auto; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 8px; }
.tl-kind.change { background: rgba(var(--accent-rgb), 0.18); color: var(--accent); }
.tl-kind.inspect { background: var(--card-2); color: var(--muted); border: 1px solid var(--line); }
.tl-name { font-weight: 600; }
.tl-cost { font-size: 12px; }
.tl-done { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--ok); }
.tl-done .licon { width: 13px; height: 13px; }

/* ── 차량 둘러보기(탐색) ─────────────────────────────────────────────────── */
.explore-chip .licon { display: none; }
/* 라운지 헤더 우측 "다른 차 둘러보기" 진입 */
.lounge-topbar { flex-wrap: wrap; }
.explore-open { margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  background: var(--card-2); border: 1px solid var(--hairline); color: var(--accent-2);
  font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 999px; cursor: pointer; }
.explore-open .licon { width: 13px; height: 13px; }
.explore-open:active { transform: scale(.97); }
.explore-recent { border-style: dashed; }
.ex-section { margin: 4px 0 14px; }
.ex-section h3 { margin: 0 0 8px; }
.ex-card { max-height: 260px; overflow-y: auto; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; }
/* 탐색 상담 배너(상담 화면 상단) */
.explore-bar { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  background: linear-gradient(180deg, rgba(var(--accent-rgb),0.14), rgba(var(--accent-rgb),0.03));
  border: 1px solid var(--hairline); color: var(--accent-2); border-radius: var(--radius-sm); padding: 8px 12px; margin-bottom: 4px; }
.explore-bar .btn { width: auto; margin-left: auto; flex: 0 0 auto; }
.explore-bar strong { color: var(--text); }
/* 탐색 답변 배지 */
.explore-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700;
  color: var(--accent); background: rgba(var(--accent-rgb),0.14); border-radius: 8px; padding: 2px 8px; margin-bottom: 6px; }
.explore-tag .licon { width: 12px; height: 12px; }

/* ============================================================================
   오너 라운지 — 네이버 카페 "모바일 앱" 스타일 통합 피드
   ========================================================================== */
.cafe-screen { padding: 0 0 90px; }
.cafe-topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.cafe-topbar strong { font-size: 18px; letter-spacing: -0.01em; }
.cafe-topbar .explore-open { background: none; border: none; color: var(--accent); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cafe-topbar .explore-open .licon { width: 13px; height: 13px; }

/* 가로 스크롤 카테고리 칩 */
.cafe-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 10px; scrollbar-width: none; position: sticky; top: 0; z-index: 5; background: var(--bg); }
.cafe-chips::-webkit-scrollbar { display: none; }
.cafe-chip { flex: 0 0 auto; border: 1px solid var(--line); background: var(--card); color: var(--text-2); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.cafe-chip.on { background: var(--accent); border-color: var(--accent); color: #1a1206; }

/* 차종 필터 활성 pill */
.cafe-modelfilter { padding: 0 16px 8px; }
.cafe-mf-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--accent); background: rgba(var(--accent-rgb),0.14); border-radius: 999px; padding: 5px 6px 5px 12px; }
.cafe-mf-pill button { border: none; background: rgba(0,0,0,0.25); color: #fff; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; cursor: pointer; line-height: 1; }

.cafe-sec-t { font-size: 12px; font-weight: 700; color: var(--text-3); padding: 12px 16px 6px; }
#cafeFeed { padding-bottom: 8px; }

/* 인기글 */
.cafe-pop { border-bottom: 8px solid var(--line-soft, rgba(255,255,255,0.04)); padding-bottom: 6px; }

/* 피드 카드(리스트) */
.cafe-list { display: flex; flex-direction: column; }
.fc { display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; background: none; border: none; border-bottom: 1px solid var(--line); padding: 14px 16px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fc:active { background: rgba(255,255,255,0.03); }
.fc-body { flex: 1; min-width: 0; }
.fc-cat { font-size: 11px; font-weight: 700; color: var(--accent); margin-bottom: 3px; }
.fc-title { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fc-prev { font-size: 13px; color: var(--text-2); line-height: 1.4; margin-top: 3px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fc-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; font-size: 11px; color: var(--text-3); }
.fc-badge { font-size: 10px; font-weight: 700; color: var(--accent); background: rgba(var(--accent-rgb),0.14); border-radius: 8px; padding: 2px 7px; cursor: pointer; }
.fc-badge.official { color: #ffd479; background: rgba(255,180,60,0.16); cursor: default; }
.fc-nick { font-weight: 600; color: var(--text-2); }
.fc-nick.official { color: #ffd479; }
.fc-dot { color: var(--text-3); }
.fc-stats { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; color: var(--text-3); }
.fc-stats .licon { width: 12px; height: 12px; margin-left: 6px; }
.fc-thumb { position: relative; flex: 0 0 auto; width: 68px; height: 68px; border-radius: 10px; overflow: hidden; background: var(--card-2); }
.fc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fc-thumb-more { position: absolute; right: 3px; bottom: 3px; background: rgba(0,0,0,0.6); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 6px; }
.fc.pop { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.fc.pop .fc-title { -webkit-line-clamp: 1; font-size: 14px; }
.pop-rank { flex: 0 0 auto; width: 20px; text-align: center; font-weight: 800; color: var(--accent); font-size: 15px; }

/* 빈 상태 */
.cafe-empty { text-align: center; padding: 28px 16px; margin: 12px 16px; }
.cafe-empty .ce-emoji { font-size: 34px; }
.cafe-empty .ce-title { font-size: 16px; font-weight: 700; margin-top: 8px; }
.cafe-widgets-wrap { margin-top: 4px; }
#cafeWidgets .card { margin: 0 16px 12px; }

/* 플로팅 글쓰기 버튼 */
.fab-write { position: fixed; bottom: 78px; right: max(16px, calc(50vw - 240px + 16px)); z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; border: none; background: var(--accent); color: #1a1206;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.fab-write:active { transform: scale(0.94); }
.fab-write .licon { width: 24px; height: 24px; }

/* 글쓰기 시트 제목 입력 */
.feed-title-input { width: 100%; font-size: 15px; font-weight: 600; margin: 8px 0; }

/* 글 상세 */
.cafe-detail { position: relative; }
.pd-head { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
.pd-back { background: none; border: none; color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; width: 36px; height: 36px; }
.pd-cat { font-size: 13px; font-weight: 700; color: var(--accent); }
.pd-menu { margin-left: auto; background: none; border: none; color: var(--text-2); font-size: 22px; cursor: pointer; width: 36px; height: 36px; }
.pd-scroll { padding: 16px 16px 90px; }
.pd-title { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 0 0 10px; }
.pd-author { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; margin-bottom: 14px; }
.pd-body { font-size: 15px; line-height: 1.6; color: var(--text); white-space: normal; word-break: break-word; }
.pd-imgs { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.pd-imgs img { width: 100%; border-radius: 12px; }
.pd-actions { display: flex; align-items: center; gap: 14px; margin: 16px 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd-like { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; color: var(--text-2); font-weight: 700; cursor: pointer; }
.pd-like.on { color: #ff6b6b; border-color: #ff6b6b; }
.pd-like .licon { width: 16px; height: 16px; }
.pd-cc { display: inline-flex; align-items: center; gap: 5px; color: var(--text-3); font-size: 13px; }
.pd-cc .licon { width: 15px; height: 15px; }
.pd-comments { display: flex; flex-direction: column; gap: 14px; }
.cmt-top { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.cmt-text { font-size: 14px; line-height: 1.5; margin-top: 3px; color: var(--text); word-break: break-word; }
.cmt-acts { margin-top: 4px; display: flex; gap: 10px; }
.pd-commentbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px;
  display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); z-index: 45; }
.pd-commentbar input { flex: 1; }

/* 관리 메뉴 시트 */
.menu-list { display: flex; flex-direction: column; gap: 4px; }
.menu-item { text-align: left; background: none; border: none; color: var(--text); font-size: 15px; padding: 14px 6px; cursor: pointer; border-radius: 8px; }
.menu-item:active { background: rgba(255,255,255,0.05); }
.menu-item.danger { color: #ff6b6b; }

/* ══════════════════════════════════════════════════════════════════
   딜러 대시보드 탭 셸(v1.7 재구성) — 다크+골드, 기능 변경 없음
   ══════════════════════════════════════════════════════════════════ */
#dnav { display: none; }
.partner-page .pt-wrap.dealer #dnav { display: flex; }
.partner-page .dtabpanel[hidden] { display: none !important; }

/* 홈 KPI */
.partner-page .kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.partner-page .kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.partner-page .kpi.hot { border-color: var(--accent); }
.partner-page .kpi .n { font-size: 24px; font-weight: 800; color: var(--accent-2); line-height: 1.1; }
.partner-page .kpi .l { font-size: 12px; color: var(--muted); margin-top: 3px; }
.partner-page .kpi .sub { font-size: 11px; color: var(--accent); margin-top: 4px; min-height: 14px; }

/* D-day / 상태 배지 */
.partner-page .dd { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.partner-page .dd.past { background: #3a1e1e; color: #ea8a8a; }
.partner-page .dd.today { background: linear-gradient(135deg,#7a5f18,#c9a227); color: #1a1204; }
.partner-page .dd.soon { background: #22262d; color: var(--muted); }
.partner-page .pt-card.unanswered { border-color: var(--accent); }
/* 배지 통일(골드/회색 계열) */
.partner-page .badge.open { background: rgba(var(--accent-rgb), 0.16); color: var(--accent-2); }
/* 홈 새 신호 = 1열 리스트(빈 칸 없이) */
.partner-page #homeSignals { display: flex; flex-direction: column; gap: 10px; }

/* 홈 밀도(더보기) */
.partner-page .morebtn { width: 100%; margin-top: 8px; }
.partner-page .home-block { margin-bottom: 20px; }
.partner-page .qhint { display:inline-flex; align-items:center; justify-content:center; width:15px; height:15px; border-radius:50%; border:1px solid var(--line); color:var(--muted); font-size:10px; cursor:help; vertical-align:middle; }
.partner-page .seg-row { display:flex; gap:8px; overflow-x:auto; -webkit-overflow-scrolling:touch; padding:4px 0 8px; margin-top:8px; scrollbar-width:none; }
.partner-page .seg-row::-webkit-scrollbar { display:none; }
.partner-page .seg-chip { flex:0 0 auto; white-space:nowrap; background:var(--card); border:1px solid var(--line,#2a2e35); border-radius:999px; padding:8px 14px; color:var(--text,#f4f2ee); font-size:13px; cursor:pointer; }
.partner-page .seg-chip b { color:var(--gold,#C8AF7A); margin-left:2px; }
.partner-page .seg-chip.on { border-color:var(--gold,#C8AF7A); background:rgba(200,175,122,.12); }
.partner-page .imgdrop { border:1.5px dashed var(--line); border-radius:10px; padding:16px; text-align:center; color:var(--muted); font-size:13px; cursor:pointer; }
.partner-page .imgdrop.over { border-color:var(--accent,#C8AF7A); color:var(--text); background:rgba(200,175,122,.06); }
.partner-page .quote-rows { display:flex; flex-direction:column; }
.partner-page .quote-row { display:flex; align-items:center; gap:8px; padding:10px 8px; border-bottom:1px solid var(--line); cursor:pointer; font-size:13px; }
.partner-page .quote-row:hover { background:rgba(255,255,255,.03); }
.partner-page .quote-row .qdot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.partner-page .quote-row .qr-date { color:var(--muted); width:44px; flex-shrink:0; }
.partner-page .quote-row .qr-name { width:74px; flex-shrink:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-weight:600; }
.partner-page .quote-row .qr-car { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--muted); }
.partner-page .quote-row .qr-amt { flex-shrink:0; text-align:right; }
.partner-page .quote-row .qr-st { width:64px; flex-shrink:0; text-align:right; color:var(--muted); font-size:12px; }
.partner-page .home-block .bh { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.partner-page .home-block .bh h4 { font-size: 15px; margin: 0; display: flex; gap: 6px; align-items: center; }
.partner-page .home-block .bh a { font-size: 12px; cursor: pointer; }
.partner-page .empty-line { color: var(--muted); font-size: 13px; padding: 8px 0; }
.partner-page .empty-line .btn { margin-left: 8px; }

/* 하단 탭(모바일) */
#dnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  background: rgba(13,15,18,0.97); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  padding: 6px 2px calc(6px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-around; }
#dnav .dnav-item { flex: 1; background: none; border: none; color: var(--muted); font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; cursor: pointer; font-size: 10px; }
#dnav .dnav-item .ic { font-size: 18px; line-height: 1; }
#dnav .dnav-item svg { width: 19px; height: 19px; stroke-width: 1.75; }  /* 단색 라인 아이콘(currentColor) */
#dnav .dnav-item.active { color: var(--accent); }
#dnav .dnav-item { position: relative; }
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #e5484d; color: #fff; font-size: 10px; font-weight: 700; line-height: 1; position: absolute; top: 3px; left: calc(50% + 8px); }
#dnav .dnav-more { display: none; }
/* 하단 탭바 높이(≈64) + 여유 + safe-area 만큼 스크롤 영역 하단 패딩 → 마지막 섹션까지 보임 */
.partner-page .pt-wrap.dealer .pt-body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }

/* 홈 헤더줄(제목 + 고객 초대) */
.partner-page .home-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.partner-page .home-head h2 { font-size: 20px; margin: 0; }

@media (min-width: 760px) {
  /* 행 auto 1fr + align-content:start → 콘텐츠 높이와 무관하게 항상 헤더 바로 아래 상단부터 시작(세로 중앙정렬/밀림 방지) */
  .partner-page .pt-wrap.dealer { max-width: 1180px; display: grid; grid-template-columns: 212px 1fr; grid-template-rows: auto 1fr; column-gap: 26px; align-items: start; align-content: start; }
  .partner-page .pt-wrap.dealer .pt-top { grid-column: 1 / -1; grid-row: 1; }
  .partner-page .pt-wrap.dealer #dnav { grid-column: 1; grid-row: 2; align-self: start; }
  .partner-page .pt-wrap.dealer .pt-body { grid-column: 2; grid-row: 2; align-self: start; padding-bottom: 40px; }
  #dnav { position: sticky; top: 78px; flex-direction: column; align-items: stretch; justify-content: flex-start;
    background: transparent; backdrop-filter: none; border: none; padding: 18px 0 0; gap: 3px; }
  #dnav .dnav-item { flex: 0 0 auto; flex-direction: row; justify-content: flex-start; gap: 11px; font-size: 14px; padding: 11px 14px; border-radius: 10px; }
  #dnav .dnav-item .ic { font-size: 17px; }
  #dnav .dnav-item svg { width: 17px; height: 17px; }
  #dnav .dnav-item.active { background: var(--card); color: var(--accent); border: 1px solid var(--line); }
  #dnav .dnav-item:hover { color: var(--accent-2); }
  #dnav .dnav-item .nav-badge { position: static; margin-left: auto; }
  #dnav .dnav-more { display: flex; }
  #dnav .dnav-morebtn { display: none; }
  .partner-page #dnav .dnav-group { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; padding: 12px 14px 4px; }
  .partner-page #dnav .dnav-group:first-child { padding-top: 2px; }
  .partner-page .kpi-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ══════════════════════════════════════════════════════════════════
   딜러 대시보드 — 프리미엄 비즈니스 톤 정제(메르세데스/제네시스 결)
   ※ .partner-page 스코프 → 오너/어드민 미영향. 골드는 포인트 전용.
   ══════════════════════════════════════════════════════════════════ */
/* 딜러 페이지 기본 = 라이트 테마(하루 종일 쓰는 업무 도구). 다크는 .theme-dark 토글. */
.partner-page {
  --bg: #eef1f5; --bg-2: #ffffff;
  --card: #ffffff; --card-2: #eef1f6;
  --line: #dbe0e8;
  --text: #1e2430; --muted: #586170;
  --accent: #b58a35; --accent-2: #8a6a25; --accent-rgb: 181,138,53;
  --ok: #2f8f5b; --danger: #c14b45;
  /* 미묘한 채움(라이트): 다크의 rgba(255,255,255,x) 대응 */
  --fill-1: rgba(20,28,44,0.045); --fill-2: rgba(20,28,44,0.08); --fill-hover: rgba(20,28,44,0.05);
  --urgent-bg: #fff6e6; --urgent-bar: var(--accent);
  --gold: #a97f2c; --surface: rgba(181,138,53,0.10); --gold-strong: #8a6a25;
  letter-spacing: -0.01em;
}
/* 다크 테마(설정에서 선택) — 기존 팔레트 복원 */
.partner-page.theme-dark {
  --bg: #0d0f12; --bg-2: #16181d;
  --card: #16181d; --card-2: #1c1f25;
  --line: rgba(255,255,255,0.06);
  --text: #e8e8e8; --muted: #9aa0aa;
  --accent: #c9a961; --accent-2: #d8c48f; --accent-rgb: 201,169,97;
  --ok: #7fae86; --danger: #b5544d;
  --fill-1: rgba(255,255,255,0.05); --fill-2: rgba(255,255,255,0.09); --fill-hover: rgba(255,255,255,0.04);
  --urgent-bg: var(--card-2); --urgent-bar: var(--accent);
  --gold: #C8AF7A; --surface: #15181d; --gold-strong: #d8c48f;
}
/* 화면 전체 한 톤(라이트) — 헤더·사이드바도 본문과 동일 팔레트. 브랜드는 골드 포인트로만. */
.partner-page, .partner-page .pt-card, .partner-page .card, .partner-page input, .partner-page select, .partner-page textarea { color: var(--text); }
.partner-page h1, .partner-page h2, .partner-page h3, .partner-page h4, .partner-page .pt-sec-title, .partner-page .pt-card-name { font-weight: 600; }
.partner-page .kpi .n, .partner-page .dd, .partner-page .pt-card-meta, .partner-page b, .partner-page .badge { font-variant-numeric: tabular-nums; }

/* 아이콘: 1.5px 단색 라인 */
.partner-page svg { stroke-width: 1.5; }
#dnav .dnav-item svg { stroke-width: 1.5; }

/* 카드: radius 8, 1px 미묘한 테두리, 그림자 제거, 호버는 명도차 */
.partner-page .pt-card, .partner-page .card, .partner-page .kpi { border-radius: 8px; border: 1px solid var(--line); box-shadow: none; background: var(--card); }
.partner-page .pt-card:hover { background: var(--card-2); }
.partner-page .pt-card:active { transform: none; border-color: var(--line); background: var(--card-2); }
/* 골드 테두리 카드 전부 제거 → 배경 명도차로 구분 */
.partner-page .kpi.hot { border-color: var(--line); background: var(--card-2); }
.partner-page .pt-card.unanswered { border-color: var(--line); background: var(--card-2); }

/* KPI */
.partner-page .kpi { padding: 16px; }
.partner-page .kpi .n { font-size: 24px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.partner-page .kpi .n.zero { color: var(--muted); }
.partner-page .kpi .l { font-size: 12px; color: var(--muted); margin-top: 4px; }
.partner-page .kpi .sub { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* 배지: pill → 작은 사각 라벨(톤온톤). 골드 배지만 포인트 유지 */
.partner-page .badge { border-radius: 5px; padding: 4px 8px; font-size: 12px; font-weight: 600; background: var(--fill-1); color: var(--muted); }
.partner-page .badge.open { background: var(--fill-2); color: var(--text); }
.partner-page .badge.gold { border-radius: 4px; background: rgba(var(--accent-rgb), 0.16); color: var(--accent); font-weight: 600; }
.partner-page .pt-count { border-radius: 4px; background: var(--fill-2); color: var(--text); font-weight: 600; }
/* D-day: 지남=낮은채도 빨강 / 오늘=골드(톤온톤) / 예정=뉴트럴 */
.partner-page .dd { border-radius: 4px; font-size: 11px; padding: 3px 7px; }
.partner-page .dd.past { background: rgba(181,84,77,0.18); color: #d08a84; }
.partner-page .dd.today { background: rgba(var(--accent-rgb), 0.16); color: var(--accent); }
.partner-page .dd.soon { background: var(--fill-1); color: var(--muted); }

/* 버튼: 주요=골드, 보조=투명+1px 회색, 텍스트=회색→흰색 */
.partner-page .btn { border-radius: 8px; }
.partner-page .btn.ghost, .partner-page .btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
.partner-page .btn.ghost:hover, .partner-page .btn.secondary:hover { border-color: var(--accent); background: var(--fill-hover); }
/* 유틸(로그아웃) = 텍스트 버튼으로 강등 */
.partner-page #pLogout { background: transparent; border: none; color: var(--muted); padding: 8px 6px; }
.partner-page #pLogout:hover { color: var(--text); }

/* 사이드바 활성 항목: 골드 테두리 대신 톤온톤 배경 */
@media (min-width: 760px) {
  #dnav .dnav-item.active { background: var(--card-2); color: var(--accent); border: 1px solid var(--line); }
}

/* 텍스트 링크(전체 보기 등) = 회색→흰색, 밑줄 없음 */
.partner-page .home-block .bh a { color: var(--muted); text-decoration: none; cursor: pointer; }
.partner-page .home-block .bh a:hover { color: var(--text); }

/* v1.8 고객 카드 hover 빠른 액션 + 임포트 마법사 */
.partner-page .crm-card { cursor: pointer; }
.partner-page .crm-quick { display: none; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.partner-page .crm-card:hover .crm-quick { display: flex; }
.partner-page .imp-steps { display: flex; gap: 6px; margin-bottom: 12px; }
.partner-page .imp-steps .s { flex: 1; text-align: center; font-size: 12px; color: var(--muted); padding: 6px; border-radius: 6px; background: var(--fill-1); }
.partner-page .imp-steps .s.on { color: var(--accent); background: var(--card-2); font-weight: 600; }
.partner-page .imp-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.partner-page .imp-table th, .partner-page .imp-table td { border: 1px solid var(--line); padding: 5px 7px; text-align: left; white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.partner-page .imp-table th { background: var(--fill-1); font-weight: 600; }
.partner-page .imp-scroll { overflow: auto; max-height: 46vh; border: 1px solid var(--line); border-radius: 8px; }
.partner-page .imp-err { color: #d08a84; font-size: 11px; }
.partner-page .imp-map-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); }
.partner-page .imp-map-row .col-h { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.partner-page .imp-map-row .col-h small { color: var(--muted); display: block; }
/* 상세 완성도 바 + 인라인 편집 */
.partner-page .cmp-bar { height: 6px; border-radius: 3px; background: var(--fill-2); overflow: hidden; margin-top: 6px; }
.partner-page .cmp-bar > i { display: block; height: 100%; background: var(--accent); }
.partner-page .inline-empty { color: var(--muted); font-style: italic; cursor: pointer; border-bottom: 1px dashed var(--line); }
.partner-page .warn-bar { background: rgba(181,84,77,0.15); border: 1px solid rgba(181,84,77,0.35); color: #e0a49e; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* v1.9 채팅 카드(견적서·제휴업체) */
.partner-page .chat-card, .chat-card { display:block; background: var(--card-2,#1c1f25); border:1px solid var(--line); border-radius:8px; padding:8px 10px; margin-top:4px; color:inherit; text-decoration:none; }
.chat-card b { color: var(--accent-2,#d8c48f); }
.di-thread .di-msg { margin:6px 0; padding:8px 10px; border-radius:10px; max-width:85%; }
.di-thread .di-msg.owner { background: var(--card,#16181d); border:1px solid var(--line); }
.di-thread .di-msg.dealer { background: rgba(200,175,122,0.12); margin-left:auto; }
.di-thread .di-msg b { font-size:11px; color: var(--muted); display:block; margin-bottom:2px; }

/* ══════════════════════════════════════════════════════════════════
   딜러 라이트 테마 — 가독성/타이포/시각위계 (2026-09-16)
   ※ 본문만 라이트, .pt-top·#dnav 는 다크 유지. /d/ 명함(서버 렌더)은 미영향.
   ══════════════════════════════════════════════════════════════════ */
/* 페이지 배경(라이트) — body 하드코딩 그라데이션 위로 */
body.partner-page:not(.theme-dark) { background: var(--bg); color: var(--text); }
/* 헤더·사이드바·모달헤더도 라이트(화면 전체 한 톤) */
.partner-page:not(.theme-dark) .pt-top { background: rgba(255,255,255,0.92); border-bottom-color: var(--line); color: var(--text); }
.partner-page:not(.theme-dark) .pt-top-right #pName { color: var(--muted); }
.partner-page:not(.theme-dark) .pt-detail-head { background: rgba(255,255,255,0.96); border-bottom-color: var(--line); color: var(--text); }
.partner-page:not(.theme-dark) #dnav { background: rgba(255,255,255,0.97); border-top-color: var(--line); }
@media (min-width: 760px) {
  .partner-page:not(.theme-dark) #dnav { background: transparent; border: none; border-radius: 0; padding: 18px 0 0; }
  .partner-page:not(.theme-dark) #dnav .dnav-item.active { background: var(--card); color: var(--accent); border: 1px solid var(--line); }
}

/* ── 타이포(본문 15~16 / 캡션 ≥13 / 제목 ≥17 굵게) ── */
.partner-page .pt-body { font-size: 15px; }
.partner-page .pt-card-name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.partner-page .pt-card-sym { font-size: 14px; color: var(--text); opacity: .82; }
.partner-page .pt-card-meta { font-size: 13px; }
.partner-page .pt-sec-title { font-size: 17px; font-weight: 700; }
.partner-page .small, .partner-page .muted.small, .partner-page .pt-empty { font-size: 13px; }
.partner-page .muted, .partner-page .pt-card-meta, .partner-page .pt-card-sym { color: var(--muted); }
/* 배지 크기 키움(가독성) */
.partner-page .badge { font-size: 12px; padding: 4px 8px; }
.partner-page .badge-neutral { background: var(--fill-2); color: var(--muted); }

/* ── 시각 위계: 지금 할 것 = 좌측 골드바 + 옅은 배경 / 처리·저순위 = 흐리게 ── */
.partner-page .pt-card { position: relative; }
.partner-page .pt-card.urgent, .partner-page .pt-card.unanswered {
  border-left: 3px solid var(--urgent-bar); background: var(--urgent-bg); border-color: var(--line);
}
.partner-page .pt-card.dim { opacity: .6; }
.partner-page .pt-card.dim:hover { opacity: 1; }

/* ── 채팅: 1열 리스트(항상), 미읽음 상단·점, 내부 ID 숨김 ── */
#chatList.pt-cards, #diList.pt-cards { display: flex !important; flex-direction: column; gap: 8px; }
.partner-page .pt-card.chat-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; }
.partner-page .chat-row .unread-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-top: 7px; }
.partner-page .chat-row-main { flex: 1; min-width: 0; }
.partner-page .chat-row .pt-card-name { font-size: 16px; }
.partner-page .chat-car { font-weight: 500; font-size: 13px; color: var(--muted); }
.partner-page .chat-time { flex: 0 0 auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.partner-page .chat-last { font-size: 14px; margin: 4px 0 0; -webkit-line-clamp: 1; }
.partner-page .chat-id { display: none; }

/* ── 고객 리스트: 모바일 1열 / 데스크톱 2열(기존) · 행 높이 축소로 밀도 ↑ ── */
.partner-page .crm-card { padding: 12px 14px; }
.partner-page .crm-card .pt-card-sym { margin: 4px 0 6px; -webkit-line-clamp: 1; }

/* 입력 요소(라이트에서 또렷한 테두리) */
.partner-page:not(.theme-dark) input, .partner-page:not(.theme-dark) select, .partner-page:not(.theme-dark) textarea { background: #fff; border-color: #cdd4de; }
.partner-page:not(.theme-dark) a { color: var(--accent-2); }
/* 마크다운 표 헤더(AI 요약) */
.partner-page:not(.theme-dark) .md-table th { background: var(--fill-1); }
/* 토스트: 라이트에서도 어둡게(가독) */
.partner-page:not(.theme-dark) .toast { background: #14171c; color: #fff; border-color: #2b313b; }

/* 테마 토글 스위치(설정) */
.partner-page .theme-toggle { display: flex; align-items: center; gap: 10px; }

/* ── 정보량 축소: 2줄 컴팩트 카드 ── */
.partner-page .pt-card.compact { padding: 10px 13px; }
.partner-page .pt-card.compact .pt-card-top { align-items: baseline; gap: 8px; }
.partner-page .pt-card.compact .pt-card-meta { margin-top: 3px; }
.partner-page .cardsub { font-weight: 500; font-size: 13px; color: var(--muted); }
.partner-page .oneline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; min-width: 0; }
.partner-page .pt-card.compact .pt-card-meta { display: flex; gap: 8px; justify-content: space-between; }
.partner-page .pt-card.compact .pt-card-meta .oneline { flex: 1; }
.partner-page .cardlink { color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; }
.partner-page .cardlink:hover { text-decoration: underline; }
.partner-page .cardacts { margin-top: 7px; font-size: 13px; color: var(--muted); }
.partner-page .morebtn { width: 100%; margin-top: 4px; color: var(--muted); }
.partner-page .warn-soft { background: rgba(224,138,60,0.10); border: 1px solid rgba(224,138,60,0.35); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }

/* ── 일정 탭 ── */
.partner-page .seg-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.partner-page .seg-toggle button { background: var(--card); border: none; color: var(--muted); font-family: inherit; font-size: 13px; padding: 6px 12px; cursor: pointer; }
.partner-page .seg-toggle button.on { background: var(--accent); color: #fff; font-weight: 700; }
.partner-page .today-sched { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--accent); border-radius: 10px; padding: 9px 12px; margin-bottom: 12px; cursor: pointer; }
.partner-page .today-sched .bs-link { color: var(--accent); margin-left: auto; font-weight: 600; }
.partner-page .sch-time { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.partner-page .appt-cand { background: var(--surface); border: 1px dashed var(--accent); border-radius: 8px; padding: 8px 10px; margin-top: 6px; }
.partner-page .cal-dot.d-td { background: #4a86c8; }
.partner-page .cal-dot.d-visit { background: #46a06a; }
.partner-page .cal-dot.d-appt { background: #a97f2c; }
.partner-page .cal-dot.d-todo { background: #7a7f88; }
.partner-page .cal-dot.d-etc { background: #b0b4bb; }

/* ── 그룹 사이드바 헤더(데스크톱 전용) ── */
#dnav .dnav-group { display: none; }
/* 더보기 메뉴(모바일 시트) 아이템 */
.partner-page .more-group { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .5px; margin: 14px 2px 4px; }
.partner-page .more-group:first-child { margin-top: 4px; }
.partner-page .more-item { display: flex; align-items: center; gap: 12px; text-align: left; padding: 11px 13px; }
.partner-page .more-item svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--accent); }
.partner-page .more-item .mi-txt { flex: 1; min-width: 0; }
.partner-page .more-item .mi-desc { font-size: 12px; color: var(--muted); margin-top: 1px; }
.partner-page .more-item .more-star { flex: 0 0 auto; font-size: 20px; line-height: 1; color: #c2c7d0; padding: 4px 2px; }
.partner-page .more-item .more-star.on { color: var(--accent); }
/* 첫 진입 1회 안내 배너 */
.partner-page .nav-hint { position: fixed; left: 50%; top: calc(64px + env(safe-area-inset-top)); transform: translate(-50%, -12px); z-index: 120; max-width: 340px; width: calc(100% - 32px); background: #14171c; color: #fff; border: 1px solid var(--accent); border-radius: 12px; padding: 11px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.partner-page .nav-hint.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.partner-page .nav-hint b { display: block; font-size: 14px; }
.partner-page .nav-hint span { display: block; font-size: 12px; color: #c8ccd4; margin-top: 2px; }

/* ── 섹션 접기/펼치기 ── */
.partner-page .csec-head-click { cursor: pointer; }
.partner-page .csec-toggle { background: none; border: none; color: var(--muted); font-size: 13px; cursor: pointer; margin-left: auto; padding: 2px 6px; flex: 0 0 auto; }
.partner-page .csec-head { display: flex; align-items: center; gap: 6px; }
.partner-page .qgroup { margin-bottom: 10px; }
.partner-page .qgroup-h { width: 100%; text-align: left; background: var(--fill-1); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--text); cursor: pointer; display: flex; align-items: center; gap: 6px; }
.partner-page .qgroup-b { margin-top: 4px; }

/* ── 메뉴 즐겨찾기 ── */
/* 별: 이름 바로 오른쪽(인라인, order:3). 배지는 order:9 + margin-left:auto 로 맨 오른쪽 → 겹침 없음 */
.partner-page .dnav-item .fav-star { display: none; background: none; border: none; color: #b8bec8; font-size: 16px; line-height: 1; cursor: pointer; padding: 0 4px; flex: 0 0 auto; order: 3; }
.partner-page .dnav-item .fav-star.on { color: var(--accent); }
.partner-page #dnav .dnav-item .nav-badge { order: 9; }
@media (min-width: 760px) { .partner-page #dnav .dnav-item:hover .fav-star, .partner-page #dnav .dnav-item .fav-star.on { display: inline-block; } }
.partner-page .fav-item.dragging { opacity: .4; }
.partner-page .fav-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.partner-page .fav-chips-lbl { font-size: 12px; color: var(--muted); font-weight: 600; margin-right: 2px; }
.partner-page .fav-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--text); font-family: inherit; cursor: pointer; }
.partner-page .fav-chip:hover { border-color: var(--accent); }
.partner-page .fav-chip svg { width: 14px; height: 14px; color: var(--accent); }
.partner-page .bt-list { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.partner-page .bt-opt { display: flex; align-items: center; gap: 8px; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer; }

/* ── 내 공개 프로필(편집+미리보기) ── */
.partner-page .pp-complete { background: var(--fill-1); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.partner-page .pp-comp-top { margin-bottom: 6px; }
.partner-page .profile-wrap { display: block; }
.partner-page .profile-edit h4 { margin: 14px 0 4px; font-size: 14px; }
.partner-page .profile-preview { margin-top: 16px; }
.partner-page .pp-prev-lbl { display: flex; justify-content: space-between; margin-bottom: 6px; }
.partner-page .phone-frame { width: 300px; max-width: 100%; height: 560px; margin: 0 auto; border: 8px solid #14171c; border-radius: 28px; overflow: hidden; background: #14171c; box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.partner-page .phone-frame iframe { width: 100%; height: 100%; border: none; background: #fff; }
.partner-page .pp-bar { position: sticky; bottom: 74px; z-index: 6; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px; margin-top: 16px; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
@media (min-width: 760px) {
  .partner-page .profile-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
  .partner-page .profile-preview { margin-top: 0; position: sticky; top: 88px; }
  .partner-page .pp-bar { bottom: 12px; }
}

/* ── 홈: 브리핑 안 리포트 요약 한 줄 ── */
.partner-page .brief-summary { font-size: 13px; color: var(--muted); background: var(--fill-1); border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; cursor: pointer; }
.partner-page .brief-summary b { color: var(--text); font-weight: 700; }
.partner-page .brief-summary .bs-link { color: var(--accent); font-weight: 600; margin-left: 4px; }
.partner-page .asset-hero { background: var(--card-2); border: 1px solid var(--accent) !important; }

/* ── 고객 캘린더(월간 그리드) ── */
.partner-page .cal-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; font-size: 16px; }
.partner-page .cal-summary { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.partner-page .cal-summary b { color: var(--text); }
.partner-page .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.partner-page .cal-wds { margin-bottom: 4px; }
.partner-page .cal-wd { text-align: center; font-size: 11px; color: var(--muted); padding: 4px 0; }
.partner-page .cal-wd.sun { color: #d0655f; }
.partner-page .cal-cell { position: relative; aspect-ratio: 1/1; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 4px 2px 2px; cursor: default; font-family: inherit; color: var(--text); }
.partner-page .cal-cell.empty { border: none; background: none; }
.partner-page .cal-cell.has { cursor: pointer; }
.partner-page .cal-cell.has:hover { border-color: var(--accent); }
.partner-page .cal-cell.today { border-color: var(--accent); }
.partner-page .cal-cell.sel { background: var(--urgent-bg); border-color: var(--accent); border-width: 2px; }
.partner-page .cal-cell.past { opacity: .55; }
.partner-page .cal-cell .cal-d { font-size: 13px; font-weight: 600; }
.partner-page .cal-cell.today .cal-d { color: var(--accent); }
.partner-page .cal-dots { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; margin-top: 3px; }
.partner-page .cal-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.partner-page .cal-dot.d-birthday { background: #d4a017; }
.partner-page .cal-dot.d-anniv { background: #d46aa0; }
.partner-page .cal-dot.d-deliv { background: #4a86c8; }
.partner-page .cal-dot.d-warr { background: #d0655f; }
.partner-page .cal-dot.d-lease { background: #e08a3c; }
.partner-page .cal-dot.d-contact { background: #46a06a; }
.partner-page .cal-legend { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 12px 0; font-size: 11px; color: var(--muted); }
.partner-page .cal-legend span { display: inline-flex; align-items: center; gap: 4px; }
.partner-page .cal-dayhead { font-size: 15px; font-weight: 700; margin: 14px 0 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.partner-page .cal-msg { background: var(--fill-1); border-radius: 8px; padding: 8px; margin-top: 6px; white-space: pre-wrap; color: var(--text); }
