﻿/* ── 글씨 크기 조절 (html 루트 기준, 모든 rem 값이 같이 스케일) ── */
html { font-size: 15px; }
html[data-fs="lg"] { font-size: 18px !important; }
html[data-fs="xl"] { font-size: 21px !important; }

/* 접근성 바 (글씨크기) — 항상 고정 크기(px) */
.a11y-bar { display: flex; align-items: center; gap: 4px; margin: 0 2px; }

/* 공통 아이콘 버튼 */
.fs-btn {
  height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  cursor: pointer; color: var(--muted);
  font-family: inherit; font-weight: 800; line-height: 1;
  transition: background .14s, border-color .14s, color .14s;
  padding: 0; flex-shrink: 0;
}
.fs-btn.active,
.fs-btn[aria-expanded="true"] { background: var(--primary-soft); color: var(--primary-dark); border-color: var(--primary); }
.fs-btn:hover:not(.active) { background: var(--bg-soft); border-color: var(--line-strong); color: var(--ink); }

/* 글씨 크기 드롭다운 피커 */
.fs-picker { position: relative; }
.fs-trigger {
  padding: 0 7px; gap: 3px;
  font-size: 12px; /* 고정 px */
}
.fs-trigger .fs-chevron { opacity: .55; flex-shrink: 0; transition: transform .18s; }
.fs-trigger[aria-expanded="true"] .fs-chevron { transform: rotate(180deg); }
/* 트리거의 가 크기: 현재 선택 반영 */
.fs-trigger.fs-sm { font-size: 10px; }
.fs-trigger.fs-md { font-size: 13px; }
.fs-trigger.fs-lg { font-size: 16px; }

.fs-dropdown {
  position: fixed; /* topbar stacking context 우회 */
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-md);
  min-width: 118px; overflow: hidden; z-index: 1000;
  animation: fs-pop .15s cubic-bezier(.2,.8,.4,1) both;
}
@keyframes fs-pop {
  from { opacity: 0; transform: translateY(-6px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.fs-opt {
  width: 100%; display: flex; align-items: center; gap: 9px;
  padding: 9px 13px; background: none; border: none;
  cursor: pointer; font-family: inherit; font-weight: 600;
  font-size: 13px; /* 고정 px */
  color: var(--ink-soft); text-align: left; white-space: nowrap;
  transition: background .1s;
}
.fs-opt:hover { background: var(--bg-soft); color: var(--ink); }
.fs-opt.active { color: var(--primary-dark); background: var(--primary-soft); font-weight: 800; }
.fs-opt-ico {
  font-weight: 800; color: inherit;
  display: inline-block; width: 16px; text-align: center; flex-shrink: 0;
}
.fs-opt-ico.fs-sm { font-size: 10px; }
.fs-opt-ico.fs-md { font-size: 14px; }
.fs-opt-ico.fs-lg { font-size: 17px; }

@media (max-width: 720px) {
  .a11y-bar { margin: 0; gap: 3px; }
  .fs-btn { height: 32px; }
  .fs-dropdown { right: auto; left: 0; }
}


:root {
  --bg: #f4f7f6;
  --bg-soft: #eef3f1;
  --card: #ffffff;
  --ink: #11181c;
  --ink-soft: #2c3a42;
  --muted: #69787f;
  --line: #e9eef0;
  --line-strong: #dde5e7;

  /* 브랜드: 청량한 민트-틸 + 인디고 포인트 */
  --primary: #0bb588;
  --primary-dark: #079e76;
  --primary-darker: #057a5b;
  --btn-bg: #068461;         /* 흰 글자 대비 4.69:1 (WCAG AA) — 흰글자+초록배경 조합 전용 */
  --primary-soft: #e4f8f1;
  --primary-softer: #f1fbf8;
  --accent: #4c6ef5;
  --accent-soft: #eef1ff;

  --warn: #f59e0b;
  --danger: #ef4444;
  --ok: #16a34a;
  --kakao: #fee500;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 4px 18px rgba(17, 40, 35, .06);
  --shadow-md: 0 10px 30px rgba(17, 40, 35, .09);
  --shadow-lg: 0 24px 60px rgba(17, 40, 35, .16);
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── 다크 모드 (업체 랜딩 .lp-standalone 에서는 JS가 data-theme 제거) ── */
html[data-theme="dark"] {
  --bg: #111827;
  --bg-soft: #1f2937;
  --card: #1e2535;
  --ink: #e8f0f7;
  --ink-soft: #94afc5;
  --muted: #5e7f97;
  --line: #2b3a4a;
  --line-strong: #374e62;
  --primary-soft: #0a2418;
  --primary-softer: #061510;
  --accent-soft: #171d3d;
  color-scheme: dark;
}
@media (min-width: 721px) {
  html[data-theme="dark"] .topbar { background: rgba(17,24,39,.88) !important; }
}
html[data-theme="dark"] .topbar { border-color: var(--line); }
html[data-theme="dark"] .hero,
html[data-theme="dark"] .hero.hero-v2 {
  background:
    radial-gradient(900px 380px at 50% -8%, rgba(11,181,136,.07), transparent 70%),
    linear-gradient(168deg, #0a2418 0%, #061510 38%, #111827 100%) !important;
  background-color: #0d1e15 !important;
}
html[data-theme="dark"] .about-hero {
  background: linear-gradient(168deg, #0a2418 0%, #061510 40%, #111827 100%) !important;
  background-color: #0d1e15 !important;
}
/* 흰 배경 카드/컴포넌트 */
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .howto-card,
html[data-theme="dark"] .review-card,
html[data-theme="dark"] .role-card,
html[data-theme="dark"] .type-card,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .guide-step,
html[data-theme="dark"] .hv2-compare,
html[data-theme="dark"] .item,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .legal-wrap,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .about-stats { background: var(--card) !important; border-color: var(--line) !important; }
html[data-theme="dark"] .notice-box { background: #2a2000 !important; border-color: #7a6000 !important; }
html[data-theme="dark"] .notice-box h4 { color: #fde68a; }
html[data-theme="dark"] .notice-box ul { color: #fde68a; }
html[data-theme="dark"] .notice { background: #2a2000; border-color: #7a6000; color: #fde68a; }
html[data-theme="dark"] .hero .badge-pill,
html[data-theme="dark"] .hv2-badge { background: var(--card); border-color: var(--line-strong); }
html[data-theme="dark"] .hero-live { background: rgba(17,24,39,.8); border-color: var(--line); }
html[data-theme="dark"] .trust-grid-v .trust-item { background: rgba(30,37,53,.65); }
html[data-theme="dark"] .hv2-row { background: var(--bg-soft); }
html[data-theme="dark"] .hv2-row-best { background: var(--primary-soft); border-color: var(--primary-dark); }
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea { background: var(--bg-soft); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .radio-pill { background: var(--bg-soft); border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .btn.ghost { background: var(--bg-soft); color: var(--ink); border-color: var(--line-strong); }
html[data-theme="dark"] .btn.ghost:hover { background: var(--bg); }
html[data-theme="dark"] .btn-social:not(.kakao) { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
html[data-theme="dark"] .social-divider { color: var(--muted); }
html[data-theme="dark"] table.tbl th { background: var(--bg-soft); color: var(--muted); }
html[data-theme="dark"] table.tbl tr:hover td { background: var(--bg-soft); }
html[data-theme="dark"] .upload-btn { background: var(--bg-soft); border-color: var(--line-strong); color: var(--ink-soft); }
html[data-theme="dark"] .mini-item { background: var(--bg-soft); }
html[data-theme="dark"] .discount-alert { background: var(--accent-soft); border-color: #374176; color: #adb8ff; }
html[data-theme="dark"] .divider { background: var(--line); }
html[data-theme="dark"] .creview { background: var(--bg-soft); }
html[data-theme="dark"] .chip { background: var(--bg-soft); }
html[data-theme="dark"] .to-top { background: var(--card); border-color: var(--line-strong); color: var(--ink); }
html[data-theme="dark"] .kakao-panel { background: #1a2a36; }
html[data-theme="dark"] .kakao-head { background: #142030; }
html[data-theme="dark"] .kakao-msg { background: var(--card); color: var(--ink); }
html[data-theme="dark"] .review-done { background: var(--primary-softer); }
html[data-theme="dark"] .app-cta { background: linear-gradient(135deg, #0d2a20 0%, #0f1a2e 100%) !important; }
html[data-theme="dark"] .store-badge.soon { background: rgba(255,255,255,.06) !important; border-color: rgba(255,255,255,.1) !important; }
html[data-theme="dark"] .site-footer .f-copy { color: var(--muted) !important; }
html[data-theme="dark"] .logout-row:hover { background: rgba(239,68,68,.12) !important; }
html[data-theme="dark"] .bottom-nav { background: rgba(17,24,39,.97) !important; border-color: var(--line) !important; }
/* 더보기 드로어·유저팝업 다크 대응 */
html[data-theme="dark"] .more-drawer,
html[data-theme="dark"] .more-drawer-head { background: var(--bg); }
html[data-theme="dark"] .more-row,
html[data-theme="dark"] .more-profile,
html[data-theme="dark"] .more-login-banner { background: var(--card); border-color: var(--line); }
html[data-theme="dark"] .user-popup { background: var(--card); border-color: var(--line); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -.3px;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* 키보드 포커스 가시성 (접근성) */
*:focus-visible {
  outline: 2px solid var(--primary, #19d3a6);
  outline-offset: 2px;
}

/* ── 상단바 (모바일: 비고정 / PC: 상단 고정) ── */
.topbar {
  position: static; z-index: 50;
  height: 64px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
/* 내부 내용은 본문(main#app)과 동일하게 가운데 정렬 */
.topbar-inner {
  max-width: 1240px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
}

/* 모바일 상단 아이콘 네비 */
.mob-icon {
  display: none; position: relative;
  width: 40px; height: 40px; border-radius: 50%;
  align-items: center; justify-content: center;
  color: var(--ink-soft); background: none; border: none; cursor: pointer;
  text-decoration: none; transition: background .14s;
}
.mob-icon:hover { background: var(--bg-soft); }
.mob-icon svg { display: block; }
.mob-badge {
  position: absolute; top: 4px; right: 4px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--primary); border: 2px solid #fff;
}
.mob-notif {
  position: absolute; top: 4px; right: 4px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--danger); border: 2px solid #fff;
}
/* 모바일 상단 고객/업체 토글 */
.mob-only { display: none; }
.mob-role-single { display: none; }

/* 모바일 상단 더보기(햄버거) 버튼 — PC에서는 숨김 */
.topbar-menu {
  display: none;
  width: 36px; height: 36px; border-radius: 10px;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; color: var(--ink-soft);
  transition: background .14s;
}
.topbar-menu:hover { background: var(--bg-soft); }
.topbar-menu svg { display: block; }

@media (max-width: 720px) {
  .pc-only { display: none !important; }
  .mob-only { display: flex; }
  .mob-icon { display: inline-flex; width: 36px; height: 36px; }
  .topbar-menu { display: inline-flex; order: 3; }
  .topbar-inner { padding: 0 10px; }
  /* 로고 좌측, 유저·햄버거는 우측 그룹 */
  .brand { margin-right: auto; }
  .topnav { gap: 4px; }
  /* 글씨크기는 더보기 드로어로 이동(상단 숨김), 다크모드 아이콘은 상단에 유지 */
  .fs-picker { display: none !important; }
  .mob-role-single {
    display: inline-flex; align-items: center; justify-content: center;
    height: 32px; padding: 0 10px;
    border: 1.5px solid var(--line); border-radius: 20px;
    background: var(--bg-soft); color: var(--ink);
    font-size: 13px; font-weight: 700;
    cursor: pointer; white-space: nowrap; gap: 4px;
    transition: background .15s, border-color .15s;
    flex-shrink: 0;
  }
  .mob-role-single:hover { background: var(--line); }
}
/* PC(데스크탑)에서만 상단바 고정 */
@media (min-width: 721px) {
  .topbar {
    position: sticky; top: 0;
    background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px);
  }
}
.brand { font-weight: 500; font-size: 1.47rem; letter-spacing: -.5px; display: flex; align-items: center; gap: 7px; }
.brand-text { font-family: var(--font); font-weight: 700; letter-spacing: -.4px; }
.topnav { display: flex; align-items: center; gap: 8px; }
.topnav .who { color: var(--ink-soft); font-size: 1.07rem; margin-right: 4px; font-weight: 500; letter-spacing: -.2px; text-decoration: none; }
.topnav a.who:hover { color: var(--primary); background: var(--primary-soft); border-radius: 8px; }

/* ── 레이아웃 ── */
main#app { max-width: 1240px; margin: 0 auto; padding: 36px 28px 110px; }
@media (max-width: 720px) {
  main#app { padding: 20px 16px 24px; }   /* 모바일: 하단 여백 줄임 */
}
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.col { flex: 1; min-width: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.mt8{margin-top:8px}.mt16{margin-top:16px}.mt24{margin-top:24px}.mb8{margin-bottom:8px}

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 12px;
  padding: 12px 20px; font-size: 1rem; font-weight: 600; letter-spacing: -.2px;
  background: var(--btn-bg); color: #fff;
  box-shadow: 0 6px 16px rgba(11, 181, 136, .26);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.btn:hover { background: var(--primary-darker); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(11, 181, 136, .32); }
.btn:active { transform: translateY(0); }
.btn.block { width: 100%; }
.btn.lg { padding: 14px 24px; font-size: 1.07rem; border-radius: 14px; }
.btn.sm { padding: 8px 14px; font-size: 1rem; border-radius: 10px; box-shadow: none; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn.ghost:hover { background: var(--bg-soft); border-color: var(--muted); }
.btn.soft { background: var(--primary-soft); color: var(--primary-darker); box-shadow: none; }
.btn.kakao { background: var(--kakao); color: #3a1d1d; }
.btn.kakao:hover { filter: brightness(.96); }
.btn.danger { background: var(--danger); }
.btn.ok { background: var(--ok); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── 카드 ── */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px;
}
.card.pad-lg { padding: 30px; }
.section-title { font-size: 1.2rem; font-weight: 700; margin: 0 0 14px; letter-spacing: -.3px; }
.section-head { text-align: center; margin: 12px 0 40px; }
.section-head .eyebrow { color: var(--primary-dark); font-weight: 600; font-size: 0.87rem; letter-spacing: .4px; }
.section-head h2 { font-size: 1.73rem; font-weight: 700; letter-spacing: -.6px; margin: 10px 0 0; }
.section-head p { color: var(--muted); font-size: 1rem; margin: 10px auto 0; max-width: 720px; line-height: 1.65; }
.block-gap { margin: 64px 0; }

/* ── 히어로 ── */
.hero {
  position: relative; overflow: hidden;
  text-align: center; padding: 64px 24px 56px;
  background:
    radial-gradient(900px 380px at 50% -8%, rgba(76,110,245,.10), transparent 70%),
    linear-gradient(168deg, var(--primary-soft) 0%, #eafff9 38%, var(--bg) 100%);
  background-color: var(--primary-softer);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg); margin-bottom: 32px;
}
/* 히어로 장식 블롭: 양옆/모서리 빈 공간을 부드러운 색면으로 채워 꽉 찬 느낌 */
.hero::before,
.hero::after {
  content: ""; position: absolute; border-radius: 50%;
  pointer-events: none; z-index: 0; filter: blur(6px);
}
.hero::before {
  width: 440px; height: 440px; top: -130px; left: -110px;
  background: radial-gradient(circle at 38% 38%, rgba(11,181,136,.20), transparent 66%);
}
.hero::after {
  width: 500px; height: 500px; bottom: -180px; right: -120px;
  background: radial-gradient(circle at 60% 42%, rgba(76,110,245,.15), transparent 66%);
}
.hero > * { position: relative; z-index: 1; }
/* PC 가로 2단 레이아웃 */
@media (min-width: 769px) {
  .hero { text-align: left; padding: 76px 56px; }
  /* 좌우 단을 중앙 정렬하되 간격을 넓혀 너무 모인 느낌 완화. 양옆 여백은 배경 장식으로 채움 */
  .hero-layout { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 84px; max-width: 1140px; margin: 0 auto; }
  .hero-left { flex: 0 1 auto; min-width: 0; max-width: 620px; }
  .hero-right { flex: 0 0 360px; align-self: center; }
  .hero .badge-pill { display: inline-flex; align-items: center; gap: 8px; }
  .hero-cta { justify-content: center; }
  .hero-live { justify-content: flex-start; margin-bottom: 18px; }
  .trust-grid-v { display: grid; grid-template-columns: repeat(2, 1fr) !important; gap: 14px; border-top: none; padding-top: 0; }
  .trust-grid-v .trust-item { text-align: center; background: rgba(255,255,255,.65); border-radius: 14px; padding: 20px 12px; border: 1px solid var(--line); }
  .hero-cta-right { justify-content: center; margin-top: 20px; }
  .hv2-title { font-size: 3.47rem; }
  .hv2-sub { font-size: 1.07rem; }
  .hv2-compare { margin: 0; max-width: 100%; }
}
@media (max-width: 768px) {
  /* V1 모바일: 견적 도착(실시간 피드)과 견적요청(CTA) 위치 교체 */
  .hero:not(.hero-v2) .hero-layout { display: flex; flex-direction: column; align-items: center; }
  .hero:not(.hero-v2) .hero-left,
  .hero:not(.hero-v2) .hero-right { display: contents; }
  .hero:not(.hero-v2) .badge-pill { order: 1; }
  .hero:not(.hero-v2) h1 { order: 2; }
  .hero:not(.hero-v2) .lead { order: 3; }
  .hero:not(.hero-v2) .hero-cta-right { order: 4; justify-content: center; margin-top: 8px; margin-bottom: 4px; }
  .hero:not(.hero-v2) .trust-grid-v { order: 5; width: 100%; margin-top: 24px; }
  .hero:not(.hero-v2) .hero-live { order: 6; margin-top: 24px; }
  .hero-cta-right { justify-content: center; margin-top: 20px; }
  /* 모바일 CTA 버튼 가로 2열 */
  .hero-cta { flex-wrap: nowrap; width: 100%; gap: 10px; }
  .hero-cta .btn { flex: 1 1 0; min-width: 0; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
}
/* ── 히어로 슬라이더 (좌우 슬라이드) ──────────────────────────── */
.hero-slider-wrap { position: relative; margin-bottom: 32px; overflow: hidden; border-radius: var(--radius-lg); }
.hero-slider-track { display: flex; will-change: transform; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.hero-slide { flex: 0 0 100%; min-width: 0; display: flex; }
.hero-slide .hero { margin-bottom: 0; flex: 1 1 auto; }
.hero-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
.hero-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,.2); cursor: pointer; transition: all .3s; }
.hero-dot.active { width: 20px; border-radius: 4px; background: var(--primary); }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: none; border: none; width: 36px; height: 36px; color: rgba(80,80,80,.7); cursor: pointer; transition: color .2s, opacity .2s, transform .2s; display: flex; align-items: center; justify-content: center; opacity: 1; padding: 0; }
.hero-arrow:hover { color: var(--primary); transform: translateY(-50%) scale(1.15); }
.hero-arrow-prev { left: 10px; }
.hero-arrow-next { right: 10px; }
.hero-arrow svg { width: 28px; height: 28px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.18)); }
@media (max-width: 768px) { .hero-arrow { display: none; } }

/* ── 히어로 V2 프리미엄 ─────────────────────────────────────── */
.hero.hero-v2 {
  background:
    radial-gradient(900px 380px at 50% -8%, rgba(76,110,245,.10), transparent 70%),
    linear-gradient(168deg, var(--primary-soft) 0%, #eafff9 38%, var(--bg) 100%);
  background-color: var(--primary-softer);
  border: 1px solid var(--line);
  position: relative; overflow: hidden; color: var(--ink);
}
.hv2-glow {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 260px;
  background: radial-gradient(ellipse, rgba(11,181,136,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hv2-content { position: relative; z-index: 1; }
.hv2-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line-strong);
  color: var(--ink-soft); font-size: 0.87rem; font-weight: 700;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.hv2-title {
  font-size: 3.2rem; font-weight: 800; letter-spacing: -1.5px; line-height: 1.15;
  color: var(--ink); margin: 0 0 16px; white-space: pre-line;
}
.hv2-sub { color: var(--ink-soft); font-size: 1.07rem; line-height: 1.7; margin: 0 0 28px; }
.hv2-btn-primary { }
.hv2-btn-ghost { }

/* 가격 비교 카드 */
.hv2-compare {
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 20px; margin: 28px auto 0; max-width: 400px;
  box-shadow: var(--shadow-md);
}
.hv2-compare-label { font-size: 0.8rem; color: var(--muted); margin-bottom: 12px; font-weight: 600; letter-spacing: .3px; }
.hv2-compare-rows { display: flex; flex-direction: column; gap: 8px; }
.hv2-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--bg-soft); }
.hv2-row-best { background: var(--primary-softer); border: 1.5px solid var(--primary); }
.hv2-co { flex: 1; font-size: 0.93rem; color: var(--muted); }
.hv2-row-best .hv2-co { color: var(--ink); font-weight: 600; }
.hv2-price { font-size: 1rem; font-weight: 700; }
.hv2-high { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.hv2-best-p { color: var(--primary-dark); }
.hv2-badge-best { font-size: 0.73rem; background: var(--primary); color: #fff; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.hv2-compare-save { text-align: center; margin-top: 12px; font-size: 0.87rem; color: var(--muted); }
.hv2-compare-save b { color: var(--primary-dark); }

/* V2 신뢰 지표 */
.hv2-trust { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 22px; }
.hv2-trust-item { text-align: center; }
.hv2-n { font-size: 1.47rem; font-weight: 700; color: var(--primary-dark); letter-spacing: -.5px; }
.hv2-l { font-size: 0.8rem; color: var(--muted); margin-top: 3px; }


/* 실시간 활동 피드 */
.hero-live { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.93rem; color: var(--ink-soft); backdrop-filter: blur(4px); }
.hero-live-dot { width: 10px; height: 10px; border-radius: 50%; background: #16c95d; flex-shrink: 0; box-shadow: 0 0 3px 0 rgba(22,201,93,.45); animation: live-pulse 1.6s ease-out infinite; }
@keyframes live-pulse {
  0%   { transform: scale(1); box-shadow: 0 0 3px 0 rgba(22,201,93,.45), 0 0 0 0 rgba(22,201,93,.5); }
  70%  { transform: scale(1.03); box-shadow: 0 0 3px 0 rgba(22,201,93,.45), 0 0 0 5px rgba(22,201,93,0); }
  100% { transform: scale(1); box-shadow: 0 0 3px 0 rgba(22,201,93,.45), 0 0 0 0 rgba(22,201,93,0); }
}
.hero-live-msg { transition: opacity .3s ease; }

/* 히어로 진입 애니메이션 */
@keyframes hero-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-ani { animation: hero-up .65s cubic-bezier(.22,.68,0,1.2) both; }
.hero-ani-1 { animation-delay: .05s; }
.hero-ani-2 { animation-delay: .18s; }
.hero-ani-3 { animation-delay: .32s; }
.hero-ani-4 { animation-delay: .46s; }
.hero-ani-5 { animation-delay: .62s; }

.hero .badge-pill {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line-strong);
  color: var(--ink-soft); font-weight: 700; font-size: 1.03rem;
  padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow); margin-bottom: 22px;
}
.hero h1 {
  font-size: 3.2rem; font-weight: 800; letter-spacing: -1.5px; line-height: 1.2;
  margin: 0 0 14px; white-space: pre-line;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lead { color: var(--ink-soft); font-size: 1.03rem; line-height: 1.7; margin: 0 auto 26px; max-width: 560px; white-space: pre-line; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 신뢰 지표 */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.trust-item { text-align: center; }
.trust-item .n { font-size: 1.6rem; font-weight: 700; letter-spacing: -.5px;
  background: linear-gradient(120deg, var(--primary-dark), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.trust-item .l { color: var(--muted); font-size: 0.87rem; margin-top: 3px; }

/* 강점 카드 */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); transition: transform .16s, box-shadow .16s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card .ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.73rem; background: var(--primary-soft); margin-bottom: 14px;
}
.feature-card h4 { margin: 0 0 6px; font-size: 1.07rem; font-weight: 700; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.6; }

/* 이용 방법 단계 */
.howto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.howto-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 38px 28px; text-align: center; box-shadow: var(--shadow);
}
.howto-card .stepno {
  position: absolute; top: 16px; right: 18px; font-size: 1rem; font-weight: 900;
  color: var(--primary); opacity: .55;
}
.howto-card .ico { font-size: 2.8rem; }
.howto-card h4 { margin: 12px 0 6px; font-size: 1.27rem; }
.howto-card p { margin: 0; color: var(--muted); font-size: 1.07rem; line-height: 1.55; }

/* 앱 다운로드 */
.app-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--ink) 0%, #1c2a30 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 40px 44px;
}
.app-cta h2 { font-size: 1.87rem; font-weight: 900; letter-spacing: -.8px; margin: 0 0 10px; }
.app-cta p { color: #c4d0d4; font-size: 1.13rem; line-height: 1.6; margin: 0; max-width: 460px; }
.store-badges { display: flex; gap: 12px; flex-wrap: nowrap; justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff;
  border-radius: 14px; padding: 10px 16px;
  text-decoration: none; transition: transform .18s, box-shadow .18s;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
  flex: 1; max-width: 200px;
}
.store-badge:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 28px rgba(0,0,0,.45); }
.sb-icon { display: flex; align-items: center; flex: 0 0 auto; }
.sb-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sb-text small { font-size: 0.63rem; color: rgba(255,255,255,.7); font-weight: 500; letter-spacing: .3px; }
.sb-text strong { font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: -.2px; white-space: nowrap; }
.store-badge.soon { background: rgba(255,255,255,.08); cursor: default; box-shadow: none; }
.store-badge.soon:hover { transform: none; }
.store-badge.soon .sb-text small { color: rgba(255,255,255,.4); }
.store-badge.soon .sb-text strong { color: rgba(255,255,255,.6); }

/* 푸터 */
.site-footer {
  margin-top: 56px; padding: 36px 8px 20px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 1.03rem; line-height: 1.9;
}
.site-footer .f-brand { font-weight: 900; font-size: 1.33rem; color: var(--ink); letter-spacing: -.5px; }
.site-footer .f-links { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0; }
.site-footer .f-links a { color: var(--ink-soft); font-weight: 700; }
.site-footer .f-links a:hover { color: var(--primary-dark); }
.site-footer .f-copy { margin-top: 14px; color: #9aa7ac; font-size: 0.97rem; }

/* ── 상단 메뉴 링크 ── */
.navlink { font-weight: 500; letter-spacing: -.2px; font-size: 1.1rem; color: var(--ink-soft); padding: 8px 10px; border-radius: 8px; }
.navlink:hover { color: var(--primary-dark); background: var(--primary-softer); }
/* 상단바 버튼(견적받기·업체회원·로그아웃)도 메뉴와 같은 Medium 결로 통일 */
.topnav .btn { font-weight: 500; }

/* PC 상단 고객/업체 — 흑백 심플 아이콘 링크 */
.nav-role {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; font-weight: 600; font-size: 1.02rem; letter-spacing: -.2px;
  color: var(--ink); padding: 7px 13px; border-radius: 9px;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.nav-role svg { color: var(--ink-soft); }
.nav-role:hover { background: var(--bg-soft); border-color: var(--ink-soft); }

/* ── 실고객 후기 롤링 ── */
.review-rail {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.review-track {
  display: flex; gap: 20px; width: max-content;
  animation: review-scroll 48s linear infinite;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .review-rail:hover .review-track { animation-play-state: paused; }
}
@keyframes review-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.review-card {
  flex: 0 0 348px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 24px 22px; box-shadow: var(--shadow);
}
.review-top { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--primary-soft);
  display: grid; place-items: center; font-size: 1.73rem; flex: 0 0 auto;
}
.review-name { font-weight: 800; font-size: 1.13rem; }
.review-verified {
  font-size: 0.83rem; font-weight: 800; color: var(--primary-dark);
  background: var(--primary-soft); padding: 2px 7px; border-radius: 999px; margin-left: 4px;
}
.review-meta { color: var(--muted); font-size: 0.97rem; margin-top: 2px; }
.review-stars { color: #ffb400; font-size: 1.13rem; letter-spacing: 1px; margin: 14px 0 8px; }
.review-text { margin: 0; font-size: 1.07rem; line-height: 1.65; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── 페이지 공통 히어로 ── */
.page-hero, .about-hero {
  text-align: center; padding: 50px 24px 8px;
}
.page-hero .eyebrow, .about-hero .eyebrow, .about-closing .eyebrow {
  color: var(--primary-dark); font-weight: 800; font-size: 1rem; letter-spacing: .5px;
}
.page-hero h1 { font-size: 2.8rem; font-weight: 900; letter-spacing: -1.4px; margin: 12px 0 14px; }
.page-hero p { color: var(--muted); font-size: 1.23rem; line-height: 1.65; margin: 0 auto; max-width: 640px; }
.about-hero {
  background:
    radial-gradient(700px 300px at 50% -10%, rgba(76,110,245,.10), transparent 70%),
    linear-gradient(168deg, var(--primary-soft) 0%, #eafff9 40%, var(--bg) 100%);
  background-color: var(--primary-softer);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 58px 28px 50px;
}
.about-hero h1 { font-size: 2.93rem; font-weight: 900; letter-spacing: -1.6px; line-height: 1.22; margin: 14px 0 16px; white-space: pre-line; }
.about-hero .lead { color: var(--ink-soft); font-size: 1.27rem; line-height: 1.7; margin: 0 auto; max-width: 620px; }

/* 배경 이미지가 있을 때: 고급 다크 톤 + 흰 글씨
   (content.js의 heroImage가 인라인으로 덮어쓰며, 없으면 아래 기본 이미지 사용) */
.about-hero.has-bg {
  background-image:
    linear-gradient(155deg, rgba(5,40,33,.88) 0%, rgba(7,122,91,.62) 55%, rgba(11,181,136,.45) 100%),
    url('/assets/about-hero.jpg');
  background-size: cover; background-position: center;
  border: none; padding: 96px 28px 86px; box-shadow: var(--shadow-lg);
}
.about-hero.has-bg .eyebrow { color: #7df0d3; letter-spacing: 1px; }
.about-hero.has-bg h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.about-hero.has-bg .lead { color: #e6fff7; text-shadow: 0 1px 10px rgba(0,0,0,.3); }
.about-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 40px 0; padding: 30px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ── 이용가이드 ── */
.guide-steps { display: flex; flex-direction: column; gap: 16px; margin-top: 44px; }
.guide-step {
  display: flex; align-items: center; gap: 20px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow);
}
.gs-num {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px;
  background: var(--btn-bg); color: #fff; font-weight: 900; font-size: 1.27rem;
  display: grid; place-items: center;
}
.gs-ico { font-size: 2.4rem; flex: 0 0 auto; }
.gs-body h4 { margin: 0 0 5px; font-size: 1.33rem; }
.gs-body p { margin: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.6; }

.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px;
  box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 1.17rem; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--primary); font-size: 1.6rem; font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 0 0 16px; color: var(--ink-soft); font-size: 1.1rem; line-height: 1.7; }

.notice-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius); padding: 24px 26px; }
.notice-box h4 { margin: 0 0 12px; font-size: 1.2rem; color: #92400e; }
.notice-box ul { margin: 0; padding-left: 18px; color: #92590e; }
.notice-box li { font-size: 1.07rem; line-height: 1.8; }
.support-box {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 16px; background: #11181c; color: #fff; border-radius: var(--radius); padding: 24px 28px;
  /* 항상 어두운 박스: var(--ink)를 쓰면 다크모드에서 밝게 뒤집혀 흰 글자가 안 보인다 */
}
.support-box .muted { color: #aebbbf !important; }
.support-tel { font-size: 2rem; font-weight: 900; letter-spacing: -.5px; margin: 4px 0; }

/* ── 연혁 타임라인 ── */
.timeline { max-width: 640px; margin: 0 auto; position: relative; padding-left: 8px; }
.timeline::before { content: ''; position: absolute; left: 78px; top: 6px; bottom: 6px; width: 2px; background: var(--line-strong); }
.tl-item { display: grid; grid-template-columns: 70px 24px 1fr; align-items: center; gap: 0; margin-bottom: 22px; }
.tl-year { font-weight: 900; color: var(--primary-dark); font-size: 1.2rem; text-align: right; padding-right: 6px; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--primary); justify-self: center; }
.tl-text { font-size: 1.17rem; font-weight: 600; padding-left: 12px; }

/* ── 회사소개 마무리 ── */
.about-closing {
  text-align: center; background: linear-gradient(135deg, var(--primary-darker), var(--primary-dark));
  color: #fff; border-radius: var(--radius-lg); padding: 56px 28px;
}
.about-closing h2 { font-size: 2rem; font-weight: 900; letter-spacing: -.8px; margin: 0 0 12px; }
.about-closing p { color: #d7fff3; font-size: 1.2rem; margin: 0; }
.about-closing .btn.ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }

/* ── 소셜 로그인 버튼 ── */
.social-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--muted); font-size: 0.97rem; }
.social-divider::before, .social-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn-social {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 13px 16px;
  font-size: 1.13rem; font-weight: 700; background: #fff; color: var(--ink);
  margin-bottom: 10px; transition: filter .14s, box-shadow .14s, transform .1s;
}
.btn-social:hover { box-shadow: var(--shadow); }
.btn-social:active { transform: translateY(1px); }
.btn-social .si { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; font-weight: 900; font-size: 1rem; }
.btn-social.kakao { background: #fee500; border-color: #fee500; color: #191600; }
.btn-social.kakao:hover { filter: brightness(.97); }
.btn-social.google .si { background: #fff; border: 1px solid var(--line); color: #4285f4; }
.btn-social.google { background: #fff; }

/* ── 약관 / 개인정보처리방침 ── */
.legal-wrap {
  max-width: 800px; margin: 36px auto 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 40px 44px;
}
.legal-section { margin-bottom: 28px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h3 { font-size: 1.27rem; font-weight: 800; margin: 0 0 10px; }
.legal-section p { color: var(--ink-soft); font-size: 1.1rem; line-height: 1.85; margin: 0; }
.legal-wrap .empty { padding: 40px 10px; }

/* 역할 카드: 2개 크게 */
.role-grid .role-card { padding: 44px 32px; }
.role-grid .role-card .emoji { font-size: 3.33rem; }
.role-grid .role-card h3 { font-size: 1.53rem; }

/* 하단 관리자 아이콘 + 카피라인 */
.f-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-link {
  display: inline-flex; align-items: center; gap: 5px; font-size: 0.97rem; font-weight: 700;
  color: #9aa7ac; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px;
  transition: .15s;
}
.admin-link:hover { color: var(--primary-dark); border-color: var(--primary); background: var(--primary-softer); }

/* ── 위로가기 버튼 ── */
.to-top {
  position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 55;
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  font-size: 1.6rem; font-weight: 800; box-shadow: var(--shadow-md);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .15s;
}
.to-top.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.to-top:hover { background: var(--bg-soft); transform: translateY(-2px) scale(1.04); }
.has-fab .to-top { bottom: 92px; }   /* 카카오 버튼 있을 땐 위로 */

/* ── 가이드 스텝 등장 애니메이션 ── */
.guide-step { animation: rise-in .55s cubic-bezier(.2,.7,.3,1) both; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.guide-step .gs-ico { transition: transform .25s; }
.guide-step:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); transition: transform .2s, box-shadow .2s; }
.guide-step:hover .gs-ico { transform: scale(1.15) rotate(-6deg); }

/* ── FAQ 부드럽게 열림 ── */
.faq-item summary::after { transition: transform .25s ease; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item[open] p { animation: faq-open .3s ease; }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-step, .faq-item[open] p, .review-track { animation: none !important; }
}

/* 역할 선택 카드 (2개 균등 배치) */
.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 860px; margin: 0 auto; }
.role-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 26px; text-align: center; box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s, border-color .18s; cursor: pointer;
}
.role-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.role-card .emoji { font-size: 2.93rem; }
.role-card h3 { margin: 14px 0 7px; font-size: 1.4rem; }
.role-card p { margin: 0; color: var(--muted); font-size: 1.07rem; line-height: 1.6; }

/* 청소 종류 그리드 */
/* PC 5열 (5종 청소 한 줄). 태블릿 2열, 모바일 1열은 미디어쿼리에서 지정 */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.type-card {
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 32px 22px;
  text-align: center; cursor: pointer; background: #fff;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.type-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.type-card.active { border-color: var(--primary); background: var(--primary-softer); box-shadow: var(--shadow-md); }
.type-card .ico { font-size: 2.67rem; }
.type-card h4 { margin: 12px 0 4px; font-size: 1.2rem; }
.type-card small { color: var(--muted); font-size: 0.93rem; line-height: 1.45; display: block; }

/* ── 폼 ── */
.field { margin-bottom: 16px; }
.field > label { display: block; font-weight: 700; font-size: 1.07rem; margin-bottom: 7px; }
.field .req { color: var(--danger); margin-left: 3px; }
input[type=text], input[type=number], input[type=password], input[type=email],
input[type=date], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 1.13rem; font-family: inherit; background: #fff; color: var(--ink);
  box-sizing: border-box;
}
input[type=date] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 46px;
  display: block;
  line-height: 1.4;
}
input[type=date]::-webkit-date-and-time-value {
  text-align: left;
  min-height: 24px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea { min-height: 80px; resize: vertical; }
.input-suffix { position: relative; }
.input-suffix .suffix { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.07rem; pointer-events: none; }
.radio-group, .check-group { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-pill {
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px;
  font-size: 1.07rem; cursor: pointer; user-select: none; background: #fff; transition: .12s;
}
.radio-pill:hover { border-color: var(--primary); }
.radio-pill.active { background: var(--btn-bg); color: #fff; border-color: var(--btn-bg); }

/* ── 배지/상태 ── */
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.93rem; font-weight: 700; }
.badge.open { background: #eef2ff; color: #4338ca; }
.badge.quoted { background: #fff7ed; color: #c2410c; }
.badge.matched { background: #ecfdf5; color: #047857; }
.badge.done { background: #f1f5f9; color: #475569; }
.badge.gray { background: #f1f5f9; color: #475569; }

/* ── 리스트/테이블 ── */
.list { display: flex; flex-direction: column; gap: 12px; }
.item {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff;
  display: flex; justify-content: space-between; gap: 14px; align-items: flex-start;
}
.item .ttl { font-weight: 800; font-size: 1.2rem; }
.item .meta { color: var(--muted); font-size: 1rem; margin-top: 4px; line-height: 1.6; }
.price { font-weight: 900; font-size: 1.33rem; color: var(--primary-dark); }
.price-sm { font-weight: 800; color: var(--primary-dark); }

table.tbl { width: 100%; border-collapse: collapse; font-size: 1.07rem; }
table.tbl th, table.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
table.tbl th { color: var(--muted); font-weight: 700; font-size: 0.93rem; background: #fafbfc; }
table.tbl tr:hover td { background: #fafbff; }

/* 통계 카드 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat .n { font-size: 2rem; font-weight: 900; color: var(--primary-dark); }
.stat .l { color: var(--muted); font-size: 1rem; margin-top: 2px; }

/* 탭 */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tab { padding: 10px 16px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; }
.tab.active { color: var(--primary-dark); border-bottom-color: var(--primary); }

/* 견적함 상태별 서브탭 (진행중/완료/취소) — 세그먼트형 */
.cust-subtabs { display: flex; gap: 8px; margin-bottom: 16px; }
.cust-subtab {
  flex: 1; min-width: 0; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 8px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink-soft);
  font-family: inherit; font-weight: 600; font-size: 0.96rem; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
@media (max-width: 480px) {
  .cust-subtabs { gap: 5px; }
  .cust-subtab { font-size: 0.82rem; padding: 9px 3px; gap: 3px; }
  .cust-subtab-n { min-width: 17px; padding: 1px 4px; font-size: 0.7rem; }
}
.cust-subtab:hover { background: var(--bg-soft); }
.cust-subtab.active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); }
.cust-subtab-n {
  min-width: 20px; padding: 1px 6px; border-radius: 999px;
  background: var(--bg-soft); color: var(--muted);
  font-size: 0.78rem; font-weight: 700; line-height: 1.5;
}
.cust-subtab.active .cust-subtab-n { background: var(--primary); color: #fff; }

/* 스텝 인디케이터 */
.steps { display: flex; gap: 8px; justify-content: center; margin-bottom: 24px; }
.step { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 1.07rem; }
.step .dot { width: 26px; height: 26px; border-radius: 50%; background: #64748b; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1rem; }
.step.active .dot { background: var(--btn-bg); }
.step.active { color: var(--ink); font-weight: 700; }
.step .arr { color: #cbd3df; }

/* 카카오 수신함 */
.kakao-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; border: none;
  background: var(--kakao); font-size: 1.87rem; box-shadow: var(--shadow-lg);
}
.kakao-badge {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px;
  background: var(--danger); color: #fff; border-radius: 999px; font-size: 0.87rem;
  display: grid; place-items: center; padding: 0 5px; font-weight: 800;
}
.kakao-panel {
  position: fixed; right: 22px; bottom: 90px; z-index: 60;
  width: 340px; max-width: calc(100vw - 32px); max-height: 70vh;
  background: #b2c7d9; border-radius: 16px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
}
.kakao-head { background: #9bb3c9; padding: 12px 14px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.kakao-head small { font-weight: 400; color: #4a5b6b; }
.kakao-head button { background: none; border: none; font-size: 1.2rem; }
.kakao-list { padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.kakao-msg { background: #fff; border-radius: 4px 14px 14px 14px; padding: 12px 14px; font-size: 1.03rem; line-height: 1.55; box-shadow: 0 1px 3px rgba(0,0,0,.1); white-space: pre-wrap; }
.kakao-msg .t { display: block; color: var(--muted); font-size: 0.87rem; margin-top: 6px; }
.kakao-empty { text-align: center; color: #5b6b7b; padding: 30px 10px; font-size: 1.07rem; }

/* 토스트 */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%);
  background: #1a2233; color: #fff; padding: 13px 22px; border-radius: 12px;
  z-index: 80; font-size: 1.07rem; font-weight: 600; box-shadow: var(--shadow-lg);
  max-width: 90vw;
}
.toast.err { background: #b91c1c; }
.toast.ok { background: #15803d; }

/* 모달 */
.modal-root { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.5); }
.modal-card {
  position: relative; background: #fff; border-radius: 18px; padding: 26px;
  width: 440px; max-width: calc(100vw - 32px); max-height: 88vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-card h2 { margin: 0 0 4px; font-size: 1.53rem; }
.modal-card .sub { color: var(--muted); font-size: 1.07rem; margin: 0 0 18px; }

.divider { height: 1px; background: var(--line); margin: 16px 0; }
.help { font-size: 1rem; color: var(--muted); line-height: 1.6; }
.notice { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 12px 14px; font-size: 1rem; color: #92400e; line-height: 1.6; }

/* ── 배상책임보험 인증 배지 ── */
.badge.insured { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; font-size: 0.8rem; padding: 3px 8px; }

/* 내 정보: 보험 인증 폼 (soo-info-card 내부는 자체 패딩이 없어 감싸줌) */
.ins-form { padding: 14px 16px 16px; }
.ins-form .field { margin-bottom: 12px; }
.ins-form .field > label { font-size: 0.9rem; margin-bottom: 5px; }
.ins-form .btn.block { margin-top: 2px; }

/* ── 안심 채팅 ── */
.chat-list {
  display: flex; flex-direction: column; gap: 8px;
  min-height: 200px; max-height: 46vh; overflow-y: auto;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px;
}
.chat-msg {
  align-self: flex-start; max-width: 84%;
  background: #fff; border: 1px solid var(--line); border-radius: 4px 14px 14px 14px;
  padding: 9px 12px; font-size: 0.95rem; line-height: 1.5;
  white-space: pre-wrap; word-break: break-word;
}
.chat-msg.mine { align-self: flex-end; background: var(--primary-soft); border-color: #bfe9db; border-radius: 14px 4px 14px 14px; }
.chat-msg .t { display: block; color: var(--muted); font-size: 0.72rem; margin-top: 4px; }
.chat-input-row { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.chat-input-row textarea {
  flex: 1; resize: none; border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 10px 12px; font-family: inherit; font-size: 0.95rem; min-height: 42px;
}
html[data-theme="dark"] .chat-msg { background: var(--card); }
html[data-theme="dark"] .chat-msg.mine { background: var(--primary-soft); border-color: var(--primary-dark); }

/* ── 안심 검수 리포트 (웹 뷰) ── */
.report-head p { line-height: 1.7; }
.report-zone { margin: 26px 0; }
.report-zone h3 { font-size: 1.13rem; margin: 0 0 10px; letter-spacing: -.3px; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.report-ph { position: relative; margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; background: var(--bg-soft); }
.report-ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.report-ph .ph-tag {
  position: absolute; top: 8px; left: 8px;
  color: #fff; font-size: 0.73rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: rgba(107,114,128,.85);
}
.report-ph .ph-tag.after { background: rgba(11,181,136,.92); }

/* 업체용 사진 관리 모달 */
.wr-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wr-ph { position: relative; width: 86px; height: 86px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.wr-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wr-ph .wr-tag {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(15,23,42,.6); color: #fff; font-size: 0.66rem; font-weight: 700;
  padding: 2px 4px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wr-ph .wr-tag.after { background: rgba(11,181,136,.85); }
.wr-ph button {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px;
  border: none; border-radius: 50%; background: rgba(15,23,42,.65); color: #fff;
  font-size: 11px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}

/* ── 스켈레톤 로딩 (첫 방문 시 빈 화면 대신 자리 표시) ── */
.skel {
  border-radius: var(--radius); margin-bottom: 12px;
  background: linear-gradient(100deg, var(--bg-soft) 40%, var(--line) 50%, var(--bg-soft) 60%);
  background-size: 200% 100%;
  animation: skel-wave 1.3s linear infinite;
}
@keyframes skel-wave { 0% { background-position: 120% 0; } 100% { background-position: -80% 0; } }

/* ── 가이드: 안심 기능/업체 도구 카드 ── */
.trust-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.trust-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.trust-card .tc-ico { font-size: 1.8rem; }
.trust-card h3 { font-size: 1.07rem; margin: 10px 0 6px; letter-spacing: -.3px; }
.trust-card p { color: var(--muted); font-size: 0.93rem; line-height: 1.6; margin: 0; }
.empty { text-align: center; color: var(--muted); padding: 50px 20px; }
.empty .big { font-size: 2.8rem; margin-bottom: 10px; }

@media (max-width: 900px) {
  .feature-grid, .trust-grid, .about-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .navlink:not(.who) { display: none; }
  .topnav .who { display: inline-block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
  .role-grid, .howto-grid, .feature-grid { grid-template-columns: 1fr; }
  .trust-grid, .about-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .hero { padding: 46px 18px 40px; }
  .hero h1, .about-hero h1, .page-hero h1 { font-size: 2.27rem; letter-spacing: -.8px; }
  .hero .lead { font-size: 1rem; }
  .app-cta { padding: 30px 24px; }
  .app-cta h2 { font-size: 1.6rem; }
  .item { flex-direction: column; }
  .quote-row { flex-direction: row; }
  .review-card { flex-basis: 280px; }
  .guide-step { flex-wrap: wrap; gap: 14px; }
  .gs-ico { display: none; }
  .mp-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 추가 기능 스타일 (로그인저장 / 후기 / 마이페이지 / 업체프로필) ===== */

/* 로그인 옵션 */
.remember { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--ink-soft); cursor: pointer; user-select: none; }
.remember input { width: 16px; height: 16px; accent-color: var(--primary); }
.link-sm { font-size: 0.9rem; color: var(--primary-dark); font-weight: 700; }
.link-sm:hover { text-decoration: underline; }

/* 초소형 버튼 */
.btn.xs { padding: 6px 10px; font-size: 0.87rem; border-radius: 9px; box-shadow: none; }

/* 견적 행(고객 뷰) */
.quote-row { gap: 12px; }
.rate-inline { color: var(--warn); font-weight: 800; font-size: 0.9rem; }
.discount-tag { color: var(--accent); font-weight: 700; }
.discount-alert {
  margin-top: 12px; padding: 12px 14px; border-radius: 12px;
  background: var(--accent-soft); color: #2b3a8c; font-size: 0.93rem; line-height: 1.55;
  border: 1px solid #d6ddff;
}
.card-alert { border: 1.5px solid #c3cdff; box-shadow: 0 0 0 3px rgba(76,110,245,.07); }
/* 업체가 견적에 적어 보낸 코멘트(보낸 견적·진행 중에서 내용 확인용) */
.quote-comment {
  margin-top: 12px; padding: 12px 14px; border-radius: 12px;
  background: var(--bg-soft); color: var(--ink); font-size: 0.93rem; line-height: 1.55;
  border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word;
}

/* 별점 */
.stars-lg { color: var(--warn); font-size: 1.33rem; letter-spacing: 2px; }
.stars-sm { color: var(--warn); font-size: 1rem; letter-spacing: 1px; }
.star-input { display: flex; gap: 6px; font-size: 2.27rem; line-height: 1; }
.star-input .star { color: #d8dee2; cursor: pointer; transition: transform .1s; }
.star-input .star:hover { transform: scale(1.15); }
.star-input .star.on { color: var(--warn); }

/* 후기 이미지 */
.review-imgs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.review-imgs img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; transition: opacity .15s; }
.review-imgs img:hover { opacity: .85; }

/* 이미지 라이트박스 */
#imgLightbox { display: none; position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.88); align-items: center; justify-content: center; padding: 20px; }
#imgLightbox.open { display: flex; }
#imgLightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; object-fit: contain; box-shadow: 0 8px 48px rgba(0,0,0,.6); }
#imgLightbox .lb-close { position: absolute; top: 18px; right: 22px; font-size: 2.13rem; color: #fff; cursor: pointer; line-height: 1; opacity: .8; background: none; border: none; }
#imgLightbox .lb-close:hover { opacity: 1; }
#imgLightbox .lb-prev, #imgLightbox .lb-next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 2.67rem; color: #fff; cursor: pointer; opacity: .7; background: none; border: none; padding: 10px; }
#imgLightbox .lb-prev:hover, #imgLightbox .lb-next:hover { opacity: 1; }
#imgLightbox .lb-prev { left: 10px; }
#imgLightbox .lb-next { right: 10px; }
.review-done { background: var(--primary-softer); border-radius: 12px; padding: 14px 16px; }

/* 이미지 업로드 버튼 */
.upload-btn {
  display: block; text-align: center; cursor: pointer;
  padding: 14px; border-radius: 12px; border: 2px dashed var(--line-strong);
  background: var(--bg-soft); color: var(--ink-soft); font-weight: 700; font-size: 0.97rem;
  transition: .15s;
}
.upload-btn:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-softer); }

/* 이미지 업로드 미리보기 */
.img-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.img-thumb { position: relative; }
.img-thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.img-thumb button {
  position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%;
  border: none; background: var(--danger); color: #fff; font-size: 0.8rem; line-height: 1; box-shadow: var(--shadow);
}

/* 리치 텍스트 에디터 */
.rte-wrap { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.rte-toolbar { display: flex; align-items: center; gap: 2px; padding: 6px 8px; background: var(--bg-soft); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rte-btn { border: none; background: none; cursor: pointer; padding: 4px 8px; border-radius: 6px; font-size: 0.92rem; color: var(--ink); }
.rte-btn:hover { background: var(--line); }
.rte-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.rte-editor { min-height: 120px; padding: 12px; outline: none; font-size: 0.97rem; line-height: 1.75; color: var(--ink); }
.rte-editor:empty::before { content: attr(data-placeholder); color: var(--ink-soft); pointer-events: none; white-space: pre-line; }
.rte-editor ul { padding-left: 1.4em; margin: 0; }
.rte-editor li { margin: 2px 0; }

/* CRM 필터 */
.crm-filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.crm-search { width: 100%; max-width: 360px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 0.97rem; background: var(--bg); color: var(--ink); }
.crm-filter-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8px; }
.crm-filter-row select, .crm-filter-row input[type="date"] { width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 0.87rem; background: var(--bg); color: var(--ink); }
.crm-date-sep { display: none; }
.crm-date-sep { color: var(--ink-soft); font-size: 0.85rem; }
.crm-stats { display: flex; flex-wrap: wrap; gap: 12px; padding: 10px 2px 6px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.crm-stat { font-size: 0.92rem; color: var(--ink-soft); }
.crm-stat b { color: var(--ink); }
.crm-stat.accent b { color: var(--primary); }
.crm-sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.crm-sortable:hover { background: var(--bg-soft); }
.crm-sort-ic { font-size: 0.7rem; margin-left: 2px; }
.tbl-scroll { overflow-x: auto; }
.crm-deals { display: flex; flex-direction: column; gap: 3px; }
.crm-deal-row { font-size: 0.87rem; white-space: nowrap; }

/* 업체 프로필 모달 */
.cprofile-head { display: flex; align-items: center; gap: 14px; }
.cprofile-avatar {
  width: 58px; height: 58px; border-radius: 16px; flex: 0 0 auto;
  background: var(--primary-soft); display: grid; place-items: center; font-size: 2rem;
}
.cprofile-rate { margin-top: 4px; font-size: 0.93rem; }
.cprofile-intro { margin: 14px 0 0; color: var(--ink-soft); line-height: 1.7; font-size: 0.97rem; white-space: pre-line; }
.cprofile-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-soft); font-size: 0.87rem; font-weight: 700; }
.creview-list { display: flex; flex-direction: column; gap: 12px; max-height: 320px; overflow-y: auto; }
.creview { background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; }
.creview p { margin: 6px 0; font-size: 0.93rem; line-height: 1.6; color: var(--ink-soft); }
/* 내 정보 후기 목록은 스크롤 박스 없이 자연스럽게 흐르게 */
.me-reviews { max-height: none; overflow: visible; }
.creview-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.creview-co { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.creview-type {
  font-size: 0.74rem; font-weight: 600; color: var(--primary-dark);
  background: var(--primary-soft); border-radius: 999px; padding: 2px 8px;
}
.creview-rate { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.creview-date { font-size: 0.74rem; color: var(--muted); }
.creview-text { margin: 7px 0 0 !important; }

/* 마이페이지 */
.mypage { display: flex; flex-direction: column; gap: 16px; }
.mp-hero {
  display: flex; align-items: center; gap: 16px; padding: 22px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-darker) 100%);
  color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.mp-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex: 0 0 auto;
  background: rgba(255,255,255,.22); display: grid; place-items: center;
  font-size: 2rem; font-weight: 900;
}
.mp-name { font-size: 1.4rem; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.mp-name .badge { background: rgba(255,255,255,.25); color: #fff; }
.mp-sub { font-size: 0.93rem; opacity: .92; margin-top: 3px; }
.mp-rate { margin-top: 6px; font-size: 0.93rem; }
.mp-rate .stars-lg { color: #ffe27a; }
.mp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mp-stat { background: var(--card); border-radius: var(--radius-sm); padding: 16px 10px; text-align: center; box-shadow: var(--shadow); }
.mp-stat .n { font-size: 1.6rem; font-weight: 900; color: var(--primary-dark); }
.mp-stat .l { font-size: 0.83rem; color: var(--muted); margin-top: 3px; }
.mp-card { margin: 0; }
.mp-h { font-size: 1.13rem; font-weight: 800; margin: 0 0 14px; }
.mp-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mp-card-head .mp-h { margin: 0; }

/* 내 정보: 보기 전용 정의 목록 */
.info-dl { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.info-dl > div { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.info-dl > div:last-child { border-bottom: none; }
.info-dl dt { flex: 0 0 92px; color: var(--muted); font-weight: 700; font-size: 0.93rem; }
.info-dl dd { margin: 0; flex: 1; color: var(--ink); font-size: 0.97rem; font-weight: 600; min-width: 0; word-break: break-all; }

/* 내 정보: 최근 내역 미니 리스트 */
.mini-list { display: flex; flex-direction: column; gap: 8px; }
.mini-item { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 13px; background: var(--bg-soft); border-radius: 12px; }
.mi-title { font-weight: 800; font-size: 0.97rem; }
.mi-meta { color: var(--muted); font-size: 0.83rem; margin-top: 3px; line-height: 1.4; }
.mi-sub { color: var(--muted); font-size: 0.77rem; margin-top: 2px; }
.more-btn { font-size: 0.93rem; }

/* 관리자 테이블 / 상세 모달 */
.admin-card { padding: 6px; overflow-x: auto; }
.admin-tbl { font-size: 0.9rem; }
.admin-tbl th, .admin-tbl td { padding: 11px 12px; vertical-align: middle; }
.admin-tbl tbody tr { border-top: 1px solid var(--line); }
.admin-tbl tr.clickable { cursor: pointer; transition: background .12s; }
.admin-tbl tr.clickable:hover { background: var(--primary-softer); }
.admin-detail { max-height: 70vh; overflow-y: auto; padding-right: 4px; }
.admin-detail .dh { font-size: 0.93rem; font-weight: 800; color: var(--primary-darker); margin: 18px 0 8px; }
.tbl.dl { width: 100%; }
.tbl.dl th { width: 110px; text-align: left; color: var(--muted); font-weight: 700; vertical-align: top; padding: 7px 10px 7px 0; background: none; }
.tbl.dl td { padding: 7px 0; }
.btn.danger { background: var(--danger); color: #fff; border: none; }
.btn.danger:hover { background: #dc2626; }
.biz-license { width: 100%; max-height: 360px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.admin-tbl tr.row-pending { background: #fff8e6; }
.admin-tbl tr.row-pending:hover { background: #fff2cc; }
.badge.open { background: #fef3c7; color: #92400e; }

/* 현장 환경 칩 */
.cond-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cond-chip {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: #2b3a8c; font-size: 0.8rem; font-weight: 700;
}

/* ===== 더보기 페이지 ===== */
.more-page { max-width: 600px; margin: 0 auto; padding-bottom: 30px; }
.more-profile, .more-login-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 18px; background: var(--card); margin: 12px 0;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.more-login-banner { flex-direction: column; align-items: flex-start; }
.more-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto;
  background: var(--primary-soft); color: var(--primary-dark);
  display: grid; place-items: center; font-size: 1.47rem; font-weight: 900;
}
.more-pname { font-size: 1.13rem; font-weight: 800; }
.more-psub  { font-size: 0.87rem; color: var(--muted); margin-top: 3px; }
.more-profile > a { margin-left: auto; flex: 0 0 auto; }
.more-section {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  margin: 12px 0; overflow: hidden;
}
.more-row {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 16px 18px; border: none; border-bottom: 1px solid var(--line);
  background: none; font-family: inherit; cursor: pointer; text-align: left;
  font-size: 1.07rem; font-weight: 600; color: var(--ink); text-decoration: none;
  transition: background .12s;
}
.more-row:last-child { border-bottom: none; }
.more-row:hover, .more-row:active { background: var(--bg-soft); }
.more-ico { display: flex; align-items: center; color: var(--ink-soft); flex: 0 0 auto; }
/* 드로어 글씨 크기 선택 */
.drawer-fs-group { display: flex; gap: 4px; flex: 0 0 auto; }
.drawer-fs-opt {
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--muted); font-family: inherit;
  font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: all .12s;
}
.drawer-fs-opt.active { background: var(--primary-soft); color: var(--primary-dark); border-color: var(--primary); }
.more-arrow { margin-left: auto; color: var(--muted); flex: 0 0 auto; }
.more-copy { text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 24px; }
.logout-row { width: 100%; text-align: left; background: none; color: var(--danger); }
.logout-row .more-ico { color: var(--danger); }
.logout-row:hover { background: #fff0f0; }

/* ── 숨고 스타일 내 정보 페이지 ─────────────────────────────── */
.soo-page { display: flex; flex-direction: column; gap: 0; padding-bottom: 24px; }
.soo-profile { display: flex; align-items: center; gap: 14px; padding: 18px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.soo-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.33rem; font-weight: 700; flex-shrink: 0; }
.soo-profile-info { flex: 1; min-width: 0; }
.soo-pname { font-size: 1.07rem; font-weight: 700; color: var(--ink); }
.soo-psub { font-size: 0.87rem; color: var(--muted); margin-top: 2px; }
.soo-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--card); border-radius: var(--radius); margin-bottom: 20px; overflow: hidden; border: 1px solid var(--line); }
.soo-stat { display: flex; flex-direction: column; align-items: center; padding: 14px 8px; border-right: 1px solid var(--line); }
.soo-stat:last-child { border-right: none; }
.soo-stat-n { font-size: 1.33rem; font-weight: 700; color: var(--ink); }
.soo-stat-l { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.soo-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.soo-section-head span:first-child { font-size: 1rem; font-weight: 700; color: var(--ink); }
.soo-cnt { font-size: 0.87rem; color: var(--muted); }
.soo-list { display: flex; flex-direction: column; gap: 10px; }
.soo-empty { font-size: 0.93rem; color: var(--muted); padding: 16px 0; }
/* 내 견적함으로 이동하는 링크 카드 */
.soo-link-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 22px; font-family: inherit;
  transition: border-color .15s, background .15s, transform .1s;
}
.soo-link-card:hover { border-color: var(--primary); background: var(--primary-soft); }
.soo-link-card:active { transform: scale(.99); }
.soo-link-ttl { font-size: 1rem; font-weight: 700; color: var(--ink); }
.soo-link-sub { font-size: 0.84rem; color: var(--muted); margin-top: 3px; }
.soo-link-card svg { color: var(--ink-soft); flex-shrink: 0; }
.soo-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.soo-card-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 0; }
.soo-card-cat { font-size: 0.87rem; color: var(--muted); }
.soo-card-body { padding: 8px 16px 14px; }
.soo-card-title { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.soo-card-meta { font-size: 0.87rem; color: var(--muted); margin-bottom: 4px; }
.soo-card-quote { font-size: 0.87rem; color: var(--primary); margin-top: 4px; }
.soo-card-actions { display: flex; border-top: 1px solid var(--line); }
.soo-act-btn { flex: 1; padding: 12px; font-size: 0.93rem; color: var(--muted); background: none; border: none; cursor: pointer; text-align: center; transition: background 0.15s; }
.soo-act-btn + .soo-act-btn { border-left: 1px solid var(--line); }
.soo-act-btn:hover { background: var(--bg-soft); }
.soo-act-primary { color: var(--primary); font-weight: 600; }

/* 견적 요청 선택 서비스 배너 */
.booking-type-banner { display: flex; align-items: center; gap: 14px; background: var(--primary-soft); border: 1.5px solid var(--primary); border-radius: 14px; padding: 14px 16px; margin-bottom: 22px; }
.btb-icon { font-size: 2.13rem; flex-shrink: 0; line-height: 1; }
.btb-body { flex: 1; min-width: 0; }
.btb-label { font-size: 0.8rem; color: var(--primary-darker); font-weight: 600; letter-spacing: .2px; margin-bottom: 2px; }
.btb-name { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.btb-change { font-size: 0.87rem; color: var(--primary-darker); background: #fff; border: 1px solid var(--primary); border-radius: 8px; padding: 6px 12px; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.soo-act-danger  { color: var(--danger);  font-weight: 500; }

/* 업체 기본 정보 카드 */
.soo-info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.soo-info-row { display: flex; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.soo-info-row:last-child { border-bottom: none; }
.soo-info-label { color: var(--muted); flex-shrink: 0; width: 72px; }
.soo-info-val { color: var(--ink); flex: 1; white-space: pre-line; }

/* 새 컴포넌트 반응형 오버라이드 (기본 정의보다 뒤에 와야 적용됨) */
/* 메인 청소 카드: PC 5열 / 태블릿 2열 / 모바일 1열 */
@media (max-width: 980px) {
  .type-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .type-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .mp-stats { grid-template-columns: repeat(2, 1fr); }
  .mp-hero { padding: 18px 18px; }
  .mp-avatar { width: 54px; height: 54px; font-size: 1.73rem; }
  .review-imgs img { width: 72px; height: 72px; }
}

/* ===== 메인 롤링 배너 ===== */
#homeBanner { margin: 0 0 40px; }
.banner-rail {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); touch-action: pan-y; cursor: grab; user-select: none;
}
.banner-rail:active { cursor: grabbing; }
.banner-track { display: flex; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.banner-slide { position: relative; flex: 0 0 100%; min-height: 150px; cursor: inherit; background: linear-gradient(135deg, #0f2740, #0a8f6c); display: flex; align-items: flex-end; }
.banner-slide img { width: 100%; height: 100%; max-height: 230px; object-fit: cover; display: block; pointer-events: none; }
.banner-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 24px 28px; color: #fff; background: linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.15) 60%, transparent 100%); pointer-events: none; }
.banner-title { font-size: 1.6rem; font-weight: 900; letter-spacing: -.5px; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.banner-sub { font-size: 0.97rem; opacity: .94; text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.banner-count {
  position: absolute; bottom: 14px; left: 16px; z-index: 2;
  background: rgba(0,0,0,.52); color: #fff; font-size: 0.87rem; font-weight: 800;
  padding: 5px 12px; border-radius: 999px; letter-spacing: .4px;
  backdrop-filter: blur(4px);
}
.banner-dots { position: absolute; bottom: 14px; right: 16px; z-index: 2; display: flex; gap: 6px; }
.bdot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: .2s; }
.bdot.on { background: #fff; width: 20px; border-radius: 5px; }

/* ===== 홈 소식 / 게시판 ===== */
.news-sec {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 24px 28px;
}
.news-sec .section-head { margin-bottom: 28px; }
.nss-head-simple { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.nss-label { font-size: 1rem; font-weight: 700; color: var(--ink); }
.news-more {
  display: inline-block; margin-top: 14px;
  color: var(--primary-dark); font-size: 1rem; font-weight: 800;
}
.news-more:hover { color: var(--primary); }
.news-list.home { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 720px) {
  .news-sec { padding: 36px 18px 28px; }
  .news-list.home { grid-template-columns: 1fr; }
}
.news-notice { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow); margin-bottom: 12px; }
.news-notice .nn-title { font-weight: 700; font-size: 1rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-list { display: flex; flex-direction: column; gap: 12px; }

/* 홈 소식 심플 버전 */
.news-sec-simple { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.nss-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.nss-title { font-size: 0.93rem; font-weight: 700; color: var(--ink); }
.nss-more { font-size: 0.87rem; color: var(--muted); text-decoration: none; }
.nss-more:hover { color: var(--primary); }
.nss-list { display: flex; flex-direction: column; }
.nss-row { display: flex; align-items: center; gap: 10px; padding: 11px 16px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); transition: background 0.15s; }
.nss-row:last-child { border-bottom: none; }
.nss-row:hover { background: var(--bg-soft); }
.nss-cat { font-size: 0.8rem; color: var(--primary); font-weight: 600; flex-shrink: 0; }
.nss-row-title { font-size: 0.93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nss-notice .nss-row-title { font-weight: 600; }
.news-card { display: flex; gap: 14px; padding: 12px; background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow); transition: .15s; align-items: center; }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.nc-thumb { width: 84px; height: 84px; flex: 0 0 auto; border-radius: 12px; overflow: hidden; }
.nc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nc-noimg { display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-dark); font-weight: 900; font-size: 1.2rem; }
.nc-body { min-width: 0; }
.nc-cat { color: var(--primary-dark); font-size: 0.8rem; font-weight: 800; margin-bottom: 3px; }
.nc-title { font-size: 1.03rem; font-weight: 800; color: var(--ink); line-height: 1.35; }
.nc-sum { color: var(--muted); font-size: 0.87rem; margin-top: 4px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== 관리자: 배너/글 관리 ===== */
.admin-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.banner-admin { display: flex; gap: 14px; align-items: center; }
.ba-preview { width: 140px; height: 70px; flex: 0 0 auto; border-radius: 10px; overflow: hidden; background: var(--bg-soft); }
.ba-preview img { width: 100%; height: 100%; object-fit: cover; }
.ba-noimg { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 0.8rem; }
.ba-info { min-width: 0; flex: 1; }

/* ===== 입장 프로모션 팝업 ===== */
.epop-backdrop {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(15,23,42,.62);
  display: grid; place-items: center; padding: 20px;
  animation: epopFade .2s ease;
}
@keyframes epopFade { from { opacity: 0; } to { opacity: 1; } }
.epop-card {
  position: relative; width: 100%; max-width: 360px;
  background: var(--card); border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.34);
  animation: epopPop .26s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes epopPop { from { transform: translateY(16px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.epop-x {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border: none; border-radius: 50%;
  background: rgba(0,0,0,.42); color: #fff; font-size: 0.95rem; cursor: pointer;
  display: grid; place-items: center; line-height: 1;
}
.epop-x:hover { background: rgba(0,0,0,.6); }
.epop-img { width: 100%; background: var(--bg-soft); }
.epop-img img { width: 100%; display: block; max-height: 60vh; object-fit: cover; }
.epop-body { padding: 18px 20px 4px; text-align: center; }
.epop-title { font-size: 1.28rem; font-weight: 800; color: var(--ink); line-height: 1.35; margin-bottom: 8px; }
.epop-text { font-size: 0.98rem; color: var(--muted); line-height: 1.55; margin-bottom: 16px; }
.epop-cta { margin-top: 4px; }
.epop-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; font-size: 0.86rem; color: var(--muted);
  border-top: 1px solid var(--line); cursor: pointer; user-select: none;
}
.epop-foot input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
/* 이미지 전용 팝업: 본문 흰 여백 제거 + 이미지 위에 투명 푸터 오버레이 */
.epop-img-only { width: min(360px, 100vw - 40px); }   /* 푸터가 absolute라 너비 기준이 사라져 명시 지정 */
.epop-img-only .epop-img img { max-height: 80vh; }
.epop-img-only .epop-foot {
  position: absolute; left: 0; right: 0; bottom: 0;
  border-top: none; color: rgba(255,255,255,.96);
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  padding: 32px 18px 14px;
}
.epop-img-only .epop-foot input { accent-color: #fff; }
html[data-theme="dark"] .epop-backdrop { background: rgba(0,0,0,.7); }

.editor-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.seo-box { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; margin: 6px 0 4px; }
.seo-box summary { cursor: pointer; font-weight: 700; font-size: 0.93rem; padding: 10px 0; color: var(--primary-dark); }

/* ===== 모바일 하단 고정 네비 ===== */
.bottom-nav { display: none; }
@media (max-width: 720px) {
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--line); padding: 6px 4px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .bn-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; gap: 3px;
    padding: 6px 0; color: var(--muted); font-size: 0.73rem; font-weight: 700; text-decoration: none;
    background: none; border: none; font-family: inherit; cursor: pointer; }
  .bn-item.on { color: var(--primary); }
  .bn-item svg { display: block; }

  body { padding-bottom: 64px; }        /* 하단 네비에 가리지 않도록 */
  .site-footer { display: none; }       /* 모바일 푸터 전체 숨김 */
  .show-footer .site-footer { display: block; } /* 회사소개 등 특정 페이지에서만 표시 */
  .kakao-fab { bottom: 78px; }          /* 카톡 버튼을 하단 네비 위로 */
  .to-top { bottom: 78px; }             /* 비로그인: 네비 바로 위 */
  .has-fab .to-top { bottom: 148px; }   /* 로그인(카톡 버튼 존재): 카톡 버튼 위로 겹치지 않게 */
}

/* ── 사용자 팝업 메뉴 ──────────────────────────────────────────── */
.user-popup {
  position: fixed; z-index: 300;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-lg);
  min-width: 190px; overflow: hidden;
  animation: popup-in .16s cubic-bezier(.2,.8,.4,1) both;
}
@keyframes popup-in {
  from { opacity: 0; transform: scale(.95) translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.user-popup-item {
  display: flex; align-items: center; gap: 11px;
  width: 100%; padding: 14px 18px;
  background: none; border: none; font-family: inherit;
  font-size: 0.95rem; font-weight: 600; color: var(--ink);
  cursor: pointer; text-decoration: none; text-align: left;
  transition: background .12s; white-space: nowrap;
}
.user-popup-item:hover { background: var(--bg-soft); }
.user-popup-item + .user-popup-item { border-top: 1px solid var(--line); }
.user-popup-item.danger { color: var(--danger); }
.user-popup-divider { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ── 더보기 드로어 (모바일 좌측 슬라이드) ─────────────────────────── */
.more-overlay {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(0,0,0,.45); backdrop-filter: blur(2px);
  animation: fade-in .2s ease both;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.more-drawer {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 195;
  width: 82%; max-width: 340px;
  background: var(--bg); overflow-y: auto; overflow-x: hidden;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.more-drawer.open { transform: translateX(0); }
.more-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
  font-weight: 800; font-size: 1.05rem; color: var(--ink);
  position: sticky; top: 0; background: var(--bg); z-index: 1;
  flex-shrink: 0;
}
.more-drawer-close {
  width: 30px; height: 30px; border-radius: 50%;
  border: none; background: var(--bg-soft); color: var(--muted);
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s;
}
.more-drawer-close:hover { background: var(--line); color: var(--ink); }
.more-drawer-body { flex: 1; padding: 6px 0; }

/* ── 다크 모드 토글 버튼 ─────────────────────────────────────────── */
.dm-btn { width: 32px; font-size: 14px; line-height: 1; }

/* ── 업체 랜딩 페이지 ──────────────────────────────────────────── */
/* ── 독립형 랜딩 페이지 (헤더/하단바 숨김) ──────────────────────── */
.lp-standalone .topbar,
.lp-standalone .bottom-nav { display: none !important; }
.lp-standalone #app { padding-top: 0 !important; margin-top: 0 !important; }
.lp-loading { display: flex; align-items: center; justify-content: center; min-height: 80vh; }
.lp-loading-spin { width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 공유 플로팅 버튼 */
.lp-share-fab { position: fixed; top: 14px; right: 14px; z-index: 200; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.lp-share-fab:hover { background: rgba(0,0,0,.65); }

/* ── 랜딩페이지 공통 ── */
.lp-wrap { max-width: 960px; margin: 0 auto; padding-bottom: 100px; }
.lp-badge { background: var(--primary-soft); color: var(--primary-dark); border-radius: 20px; padding: 4px 12px; font-size: 0.87rem; font-weight: 700; }

/* ── 업체 히어로 ── */
.lp-co-hero {
  position: relative; overflow: hidden;
  max-width: 960px; margin: 0 auto 32px;
  border-radius: 20px;
  min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(145deg, #0f172a 0%, #064e3b 45%, #065f46 75%, #10b981 100%);
  box-shadow: 0 8px 40px rgba(6,79,59,.22);
}
/* 커버 없을 때 장식 광원 */
.lp-co-no-cover-deco {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 340px at 20% -10%, rgba(16,185,129,.28), transparent 65%),
    radial-gradient(500px 300px at 85% 110%, rgba(6,95,70,.45), transparent 65%);
}
.lp-co-cover-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.lp-co-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.08) 100%);
}
/* 2열 본문 레이아웃 */
.lp-co-body {
  position: relative; z-index: 1;
  padding: 52px 44px 44px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.lp-co-left { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.lp-co-right { flex-shrink: 0; }
.lp-co-logo { width: 76px; height: 76px; border-radius: 18px; object-fit: contain; background: rgba(255,255,255,.96); padding: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.lp-co-name { font-size: 2.4rem; font-weight: 900; letter-spacing: -.8px; margin: 0; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.lp-co-tagline { font-size: 1.05rem; margin: 0; color: rgba(255,255,255,.82); line-height: 1.55; }
.lp-co-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.lp-co-badges .lp-badge { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(8px); }
/* 스탯 카드 (오른쪽) */
.lp-co-trust { display: flex; flex-direction: column; gap: 8px; }
.lp-trust-item { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 14px; padding: 12px 20px; min-width: 110px; text-align: center; backdrop-filter: blur(10px); }
.lp-trust-item .n { font-size: 1.2rem; font-weight: 900; color: #fff; line-height: 1.2; letter-spacing: -.3px; }
.lp-trust-item .l { font-size: 0.7rem; color: rgba(255,255,255,.65); margin-top: 3px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }

/* 스티키 CTA 바 */
.lp-sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 120;
  display: flex; align-items: stretch; gap: 8px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.09);
  box-shadow: 0 -6px 24px rgba(0,0,0,.09);
}
.lp-cta-main {
  flex: 1 1 0; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--primary); color: #fff;
  font-size: 0.97rem; font-weight: 800; letter-spacing: -.2px;
  height: 52px; border-radius: 13px;
  text-decoration: none; border: none; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: filter .15s; padding: 0 16px;
}
.lp-cta-main:hover { filter: brightness(1.08); }
.lp-cta-sub {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: #fff; color: var(--ink);
  font-size: 0.72rem; font-weight: 700;
  width: 62px; height: 52px; border-radius: 13px;
  text-decoration: none; border: 1.5px solid var(--line); cursor: pointer;
  transition: background .15s, border-color .15s; line-height: 1.2;
  white-space: nowrap;
}
.lp-cta-sub .cta-sub-icon { font-size: 1.2rem; line-height: 1; }
.lp-cta-sub:hover { background: var(--bg-soft); border-color: var(--primary); }

/* ── 업체 소개 카드 ── */
.lp-wrap .feature-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .lp-wrap .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .lp-wrap .feature-grid { grid-template-columns: 1fr; } }
.lp-intro-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow); color: var(--ink-soft); font-size: 0.97rem; line-height: 1.85; }
.lp-intro-card ul { padding-left: 1.4em; }
.lp-cnt { background: var(--primary-soft); color: var(--primary-dark); font-size: 0.78rem; font-weight: 700; padding: 2px 8px; border-radius: 12px; vertical-align: middle; }

/* 포트폴리오 그리드 */
/* ── 특장점 이미지 (풀 너비 1열) ── */
.lp-feature-imgs { display: flex; flex-direction: column; gap: 10px; }
.lp-feat-photo { border-radius: 12px; overflow: hidden; background: var(--bg-soft); transition: opacity .15s; width: 100%; }
.lp-feat-photo:hover { opacity: .88; }
.lp-feat-photo img { width: 100%; display: block; object-fit: cover; max-height: 480px; }

/* ── 포트폴리오 ── */
.lp-portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lp-photo { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg-soft); transition: opacity .15s; }
.lp-photo:hover { opacity: .9; }
.lp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 400px) { .lp-portfolio { grid-template-columns: repeat(2, 1fr); } }

/* ── 후기 카드 그리드 (홈 feature-card 동일 스타일) ── */
.lp-rv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.lp-rv-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.lp-rv-top { font-size: 1.1rem; }
.lp-rv-text { margin: 0; font-size: 0.93rem; color: var(--ink-soft); line-height: 1.65; flex: 1; }
.lp-rv-foot { font-size: 0.78rem; color: var(--muted); padding-top: 8px; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .lp-rv-grid { grid-template-columns: 1fr; } }

/* ── 업체 다크 푸터 (홈 app-cta 동일 스타일) ── */
.lp-biz-dark {
  background: #f4f7f6; border: 1px solid var(--line);
  color: var(--ink); border-radius: var(--radius-lg); padding: 40px 36px;
  display: flex; flex-direction: column; gap: 14px; margin-top: 20px;
}
.lp-biz-dark h2 { font-size: 1.6rem; font-weight: 900; margin: 6px 0 4px; letter-spacing: -.5px; color: var(--ink); }
.lp-biz-dark p { color: var(--muted); margin: 0; font-size: 1rem; }
.lp-biz-dark-logo { height: 52px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 6px 10px; }
.lp-biz-contacts { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-biz-contacts a,
.lp-biz-contacts div { color: var(--ink); font-size: 0.95rem; text-decoration: none; }
.lp-biz-copy { font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.lp-powered { font-size: 0.78rem; color: var(--primary); font-weight: 700; text-decoration: none; }
.lp-powered:hover { color: var(--primary-dark); }

/* CRM 고객 상세 모달 */
.crm-modal { min-width: 280px; }
.crm-modal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.crm-modal-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 900; flex-shrink: 0; }
.crm-modal-name { font-size: 1.15rem; font-weight: 800; }
.crm-modal-phone { font-size: 0.93rem; color: var(--ink-soft); margin-top: 2px; }
.crm-modal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.crm-ms { background: var(--bg-soft); border-radius: 12px; padding: 12px; text-align: center; }
.crm-ms-val { font-size: 1.4rem; font-weight: 900; }
.crm-ms-lbl { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.crm-modal-section-title { font-size: 0.87rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.crm-deal-list { display: flex; flex-direction: column; gap: 8px; }
.crm-deal-card { background: var(--bg-soft); border-radius: 10px; padding: 12px 14px; }
.crm-deal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.crm-deal-type { font-weight: 700; font-size: 0.95rem; }
.crm-deal-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; color: var(--ink-soft); }

/* 슬러그 입력 */
.lp-slug-wrap { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lp-slug-prefix { padding: 0 8px; font-size: 0.78rem; color: var(--muted); background: var(--bg-soft); white-space: nowrap; height: 40px; display: flex; align-items: center; border-right: 1px solid var(--line); }
.lp-slug-wrap input { border: none !important; border-radius: 0 !important; flex: 1; }

/* CTA 버튼 빌더 */
.lp-cta-list { display: flex; flex-direction: column; gap: 8px; }
.lp-cta-row { display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 6px; align-items: center; }
.lp-cta-row select, .lp-cta-row input { font-size: 0.87rem; }
.lp-cta-fixed { background: var(--bg-soft); border-radius: 8px; padding: 8px 10px; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); margin-bottom: 6px; }
.lp-cta-fixed-label { font-size: 0.87rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.lp-cta-lock { font-size: 0.75rem; color: var(--muted); font-weight: 400; }
@media (max-width: 560px) { .lp-cta-row { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; } .lp-cta-row select { grid-column: 1/3; } .lp-cta-del { grid-column: 2; justify-self: end; } .lp-cta-fixed { grid-template-columns: 1fr; } }

@media (max-width: 720px) {
  .lp-co-hero { border-radius: 14px; min-height: 300px; margin: 0 0 24px; }
  .lp-co-body { padding: 32px 22px 26px; flex-direction: column; align-items: flex-start; gap: 18px; }
  .lp-co-right { width: 100%; }
  .lp-co-trust { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .lp-trust-item { min-width: 0; flex: 1 1 80px; padding: 10px 12px; }
  .lp-co-name { font-size: 1.7rem; }
  .lp-intro-card { padding: 20px; }
  .lp-biz-dark { padding: 28px 22px; }
  .lp-biz-dark h2 { font-size: 1.3rem; }
}

/* ── 토글 스위치 ─────────────────────────────────────────────────── */
.toggle-wrap { display: inline-flex; align-items: center; }
.toggle-track { width: 44px; height: 24px; border-radius: 12px; background: var(--line); display: inline-block; position: relative; transition: background .2s; flex-shrink: 0; }
.toggle-track .lp-knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }

/* ── 홍보 페이지 설정 탭 ─────────────────────────────────────────── */
.lp-settings-card { max-width: 560px; margin: 0 auto; }
.lp-set-title { margin: 0 0 4px; font-size: 1.2rem; }
.lp-set-desc { font-size: 13px; margin: 0 0 20px; }
.lp-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.lp-toggle-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 1rem; font-weight: 700; }
.lp-toggle-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.lp-toggle-hint { font-size: 12px; white-space: nowrap; }
.lp-type-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-type-card { border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.lp-type-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.lp-type-card.selected { border-color: var(--primary); background: var(--primary-soft); }
.lp-type-icon { font-size: 1.6rem; margin-bottom: 6px; }
.lp-type-name { font-weight: 800; font-size: 0.97rem; margin-bottom: 4px; }
.lp-type-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 480px) { .lp-type-cards { grid-template-columns: 1fr; } }

/* ── 홍보 페이지 탭 현재 상태 표시 ─────────────────────────────── */
.lp-current-status { display: flex; align-items: center; gap: 8px; font-size: 0.87rem; background: var(--primary-softer); border: 1px solid #c6ead8; border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 14px; flex-wrap: wrap; }
.lp-cs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.lp-cs-link { color: var(--primary-dark); font-weight: 700; text-decoration: underline; margin-left: 4px; }
.lp-change-notice { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.lp-type-active-badge { font-size: 10px; font-weight: 800; background: var(--primary); color: #fff; border-radius: 20px; padding: 2px 8px; display: inline-block; margin-bottom: 6px; }
.field-label-bold { font-weight: 700; display: block; margin-bottom: 8px; }
html[data-theme="dark"] .lp-current-status { background: var(--primary-soft); border-color: #1a4032; }

/* ── 업체 입점 마케팅 페이지 ─────────────────────────────────────── */
.cjoin-hero { background: linear-gradient(135deg, #0a2e22 0%, #0f2240 100%); color: #fff; padding: 60px 20px 56px; text-align: center; }
.cjoin-hero-inner { max-width: 560px; margin: 0 auto; }
.cjoin-eyebrow { font-size: 0.82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #6ee7c4; margin-bottom: 16px; }
.cjoin-title { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 900; line-height: 1.2; margin: 0 0 16px; letter-spacing: -.5px; }
.cjoin-sub { font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,.75); margin: 0 0 28px; }
.cjoin-cta { background: #0bb588; color: #fff; font-size: 1.1rem; padding: 16px 32px; border-radius: 14px; box-shadow: 0 8px 24px rgba(11,181,136,.35); }
.cjoin-cta:hover { background: #079e76; }
.cjoin-trust { font-size: 0.82rem; color: rgba(255,255,255,.5); margin-top: 14px; }
.cjoin-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 800px; margin: 0 auto; padding: 40px 16px; }
.cjoin-feat { padding: 20px; text-align: center; }
.cjoin-feat-icon { font-size: 2rem; margin-bottom: 10px; }
.cjoin-feat-title { font-weight: 800; font-size: 1rem; margin-bottom: 6px; }
.cjoin-feat-desc { font-size: 0.87rem; color: var(--muted); line-height: 1.6; }
.cjoin-lp-promo { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 20px; text-align: center; }
.cjoin-lp-inner { max-width: 520px; margin: 0 auto; }
.cjoin-lp-badge { display: inline-block; background: linear-gradient(90deg, #0bb588, #4c6ef5); color: #fff; font-size: 0.82rem; font-weight: 800; border-radius: 20px; padding: 4px 14px; margin-bottom: 18px; letter-spacing: .04em; }
.cjoin-lp-title { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 900; line-height: 1.3; margin: 0 0 14px; letter-spacing: -.4px; }
.cjoin-lp-accent { color: var(--primary); }
.cjoin-lp-desc { color: var(--ink-soft); line-height: 1.8; margin: 0 0 22px; font-size: 1rem; }
.cjoin-lp-items { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 24px; text-align: left; }
.cjoin-lp-item { background: var(--bg-soft); border-radius: 10px; padding: 10px 14px; font-size: 0.9rem; font-weight: 600; }
.cjoin-lp-url-demo { background: var(--bg-soft); border-radius: 12px; padding: 14px 18px; display: inline-flex; flex-direction: column; gap: 4px; }
.cjoin-lp-url-label { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.cjoin-lp-url { font-size: 0.95rem; font-family: monospace; color: var(--primary-dark); }
.cjoin-also { max-width: 640px; margin: 0 auto; padding: 28px 20px; display: flex; align-items: flex-start; gap: 16px; }
.cjoin-also-icon { font-size: 1.8rem; flex-shrink: 0; }
.cjoin-also-title { font-weight: 800; margin-bottom: 4px; }
.cjoin-also-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.cjoin-bottom-cta { text-align: center; padding: 48px 20px 56px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.cjoin-bottom-cta h2 { font-size: 1.6rem; margin: 0 0 8px; }
.cjoin-bottom-cta .muted { margin: 0 0 22px; }
@media (max-width: 600px) {
  .cjoin-features { grid-template-columns: 1fr; gap: 0; }
  .cjoin-feat { padding: 16px 20px; text-align: left; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 4px; align-items: start; }
  .cjoin-feat-icon { font-size: 1.5rem; margin: 0; grid-row: span 2; align-self: start; }
  .cjoin-feat-title { margin: 0; word-break: keep-all; }
  .cjoin-lp-items { grid-template-columns: 1fr; }
}
html[data-theme="dark"] .cjoin-lp-promo { background: var(--card); border-color: var(--line); }
html[data-theme="dark"] .cjoin-lp-item { background: var(--bg-soft); }
html[data-theme="dark"] .cjoin-lp-url-demo { background: var(--bg-soft); }
html[data-theme="dark"] .cjoin-bottom-cta { background: var(--bg-soft); border-color: var(--line); }
html[data-theme="dark"] .cjoin-also { color: var(--ink); }

/* ── 업체 일정(달력) ─────────────────────────────────────────── */
.cal-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -.4px; }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-arrow {
  width: 34px; height: 34px; border: 1px solid var(--line-strong); background: var(--card);
  border-radius: 10px; cursor: pointer; font-size: 1.2rem; line-height: 1; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; transition: .15s;
}
.cal-arrow:hover { background: var(--bg-soft); border-color: var(--primary); color: var(--primary-dark); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 12px; font-size: .78rem; font-weight: 700; }
.cal-lg { color: var(--muted); }
.cal-lg.new       { color: var(--accent); }
.cal-lg.quoted    { color: var(--warn); }
.cal-lg.confirmed { color: var(--primary-dark); }
.cal-lg.done      { color: var(--muted); }
.cal-lg.memo      { color: #8b5cf6; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-head { margin-bottom: 4px; }
.cal-wd { text-align: center; font-size: .8rem; font-weight: 800; color: var(--ink-soft); padding: 6px 0; }
.cal-wd.dow0 { color: var(--danger); }
.cal-wd.dow6 { color: var(--accent); }

.cal-body { border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 0 0 10px 10px; overflow: hidden; }
.cal-cell {
  min-height: 96px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 5px 5px 6px; cursor: pointer; transition: background .12s; display: flex; flex-direction: column; gap: 3px;
}
.cal-cell:hover { background: var(--primary-softer); }
.cal-cell.out { background: var(--bg-soft); }
.cal-cell.out .cal-dnum { opacity: .4; }
.cal-cell.today { background: var(--primary-soft); box-shadow: inset 0 0 0 2px var(--primary); }
.cal-dnum { font-size: .82rem; font-weight: 800; color: var(--ink); width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.cal-dnum.dow0 { color: var(--danger); }
.cal-dnum.dow6 { color: var(--accent); }
.cal-cell.today .cal-dnum { background: var(--primary); color: #fff; border-radius: 50%; }
.cal-chips { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }

.cal-chip {
  font-size: .68rem; font-weight: 700; line-height: 1.3; padding: 1px 6px; border-radius: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.cal-chip.new       { background: var(--accent-soft); color: var(--accent); }
.cal-chip.quoted    { background: #fff3e0; color: #c2740a; }
.cal-chip.confirmed { background: var(--primary-soft); color: var(--primary-darker); }
.cal-chip.done      { background: var(--bg-soft); color: var(--muted); }
.cal-chip.memo      { background: #f1ecfe; color: #7c3aed; }
.cal-more { font-size: .66rem; font-weight: 800; color: var(--muted); padding: 0 4px; }
.cal-hint { margin-top: 10px; font-size: .76rem; color: var(--muted); text-align: center; }

/* 공휴일 */
.cal-dnum.hol { color: var(--danger); }
.cal-cell.today .cal-dnum.hol { background: var(--primary); color: #fff; }
.cal-cell.holiday { background: #fff5f5; }
.cal-cell.holiday:hover { background: #ffecec; }
.cal-cell.holiday.today { background: var(--primary-soft); }
.cal-hol { font-size: .66rem; font-weight: 800; color: var(--danger); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cald-wd.hol { color: var(--danger); }
.cald-hol { font-size: .85rem; font-weight: 800; color: var(--danger); background: #fff5f5; border: 1px solid #ffd9d9; border-radius: 9px; padding: 8px 12px; margin-bottom: 4px; }
html[data-theme="dark"] .cal-cell.holiday { background: #2a1a1d; }
html[data-theme="dark"] .cal-cell.holiday:hover { background: #34201f; }
html[data-theme="dark"] .cald-hol { background: #2a1a1d; border-color: #4a2530; }

/* 날짜 상세 모달 */
.cald-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cald-head h2 { margin: 0; font-size: 1.25rem; }
.cald-wd { font-size: .95rem; font-weight: 700; color: var(--muted); }
.cald-x { background: none; border: none; font-size: 1.1rem; color: var(--muted); cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.cald-x:hover { background: var(--bg-soft); color: var(--ink); }
.cald-section-t { font-size: .82rem; font-weight: 800; color: var(--ink-soft); margin: 16px 0 8px; }
.cald-evs { display: flex; flex-direction: column; gap: 8px; }
.cald-ev { border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; background: var(--card); }
.cald-ev.new       { border-left-color: var(--accent); }
.cald-ev.quoted    { border-left-color: var(--warn); }
.cald-ev.confirmed { border-left-color: var(--primary); }
.cald-ev.done      { border-left-color: var(--muted); }
.cald-ev-top { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.cald-ev-ttl { font-weight: 800; font-size: .95rem; }
.cald-ev-id { margin-left: auto; font-size: .75rem; color: var(--muted); font-weight: 700; }
.cald-ev-meta { font-size: .82rem; color: var(--ink-soft); line-height: 1.65; }
.cald-empty { font-size: .85rem; color: var(--muted); padding: 14px; text-align: center; background: var(--bg-soft); border-radius: 10px; }
.cald-empty.sm { padding: 10px; }

.cald-memos { display: flex; flex-direction: column; gap: 6px; }
.cald-memo { display: flex; align-items: center; gap: 8px; background: #f8f5ff; border: 1px solid #ece4fd; border-radius: 9px; padding: 8px 10px; }
.cald-memo-txt { flex: 1; font-size: .86rem; color: var(--ink); word-break: break-word; }
.cald-memo-del { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .85rem; padding: 2px 6px; border-radius: 6px; flex-shrink: 0; }
.cald-memo-del:hover { background: #f3e8ff; color: var(--danger); }
.cald-memo-add { display: flex; gap: 8px; margin-top: 10px; }
.cald-memo-add input { flex: 1; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 9px; font-size: .9rem; font-family: var(--font); }
.cald-memo-add input:focus { outline: none; border-color: var(--primary); }

@media (max-width: 600px) {
  .cal-wrap { padding: 10px; }
  .cal-title { font-size: 1.15rem; }
  .cal-cell { min-height: 64px; padding: 3px; }
  .cal-dnum { font-size: .76rem; width: 20px; height: 20px; }
  .cal-chip { font-size: .6rem; padding: 1px 4px; }
  .cal-legend { font-size: .72rem; gap: 4px 10px; }
}

html[data-theme="dark"] .cal-arrow { background: var(--bg-soft); }
html[data-theme="dark"] .cal-chip.quoted { background: #3a2a10; color: #f0a93c; }
html[data-theme="dark"] .cal-chip.memo { background: #2a2342; color: #b794f6; }
html[data-theme="dark"] .cald-memo { background: var(--bg-soft); border-color: var(--line); }
html[data-theme="dark"] .cald-memo-del:hover { background: var(--card); }
html[data-theme="dark"] .cald-memo-add input { background: var(--bg-soft); color: var(--ink); }
