/* ===== 기본 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #1e2464;
  --yellow: #f5c400;
  --gold: #c9a544;
  --gray: #9aa5b1;
  --red: #c0392b;
}

body {
  font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  background: #e9ebee;
  color: var(--navy);
}

.hero {
  position: relative;
  display: flex;
  height: 100vh;          /* 화면에 고정 - 왼쪽 레이아웃이 절대 변하지 않음 */
  min-height: 620px;
  overflow: hidden;
  /* 오른쪽 영역 배경: 왼쪽 시트보다 한 톤 어두운 쿨그레이 */
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(255,255,255,.7) 0%, transparent 45%),
    linear-gradient(165deg, #dde1e7 0%, #cdd3db 45%, #c3cad3 100%);
}

/* 오른쪽 영역의 은은한 역방향 광택 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(245deg,
      transparent 30%, rgba(255,255,255,.5) 38%, transparent 46%,
      transparent 62%, rgba(170,178,190,.3) 70%, transparent 78%);
  pointer-events: none;
}

/* ===== 사선 시트 (왼쪽 영역 배경) ===== */
.bg-angled {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(10px 0 24px rgba(30, 36, 100, .22));
}

/* 금색 띠: 시트보다 살짝 넓게 잘라 가장자리에 노출 */
.bg-angled::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ecd98f 0%, var(--gold) 45%, #a8862e 100%);
  clip-path: polygon(0 0, 46% 0, 37% 100%, 0 100%);
}

/* 흰색 실버 시트 */
.bg-angled::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg,
      transparent 20%, rgba(255,255,255,.85) 26%, transparent 32%,
      transparent 44%, rgba(200,205,214,.35) 50%, transparent 56%,
      transparent 64%, rgba(255,255,255,.9) 72%, transparent 80%),
    linear-gradient(115deg,
      #ffffff 0%, #f3f4f6 22%, #ffffff 40%,
      #e9ebef 58%, #f8f9fa 75%, #ffffff 100%);
  clip-path: polygon(0 0, calc(46% - 7px) 0, calc(37% - 7px) 100%, 0 100%);
}

/* ===== 왼쪽 패널 ===== */
.left-panel {
  position: relative;
  z-index: 2;
  flex: 0 0 41.67%;         /* 왼쪽 1.25 : 오른쪽 1.75 */
  padding: 0 64px 56px 48px; /* 로고를 최상단·왼쪽으로 */
  display: flex;
  flex-direction: column;
  align-items: flex-start;  /* 일반(왼쪽) 정렬 */
}

/* 로고 - 제일 왼쪽 상단 (투명 여백까지 잘라낸 PNG) */
.logo { margin: 0; }

.logo img {
  display: block;
  width: 505px;
  max-width: 100%;
  height: auto;
}

/* 노란 바 */
.yellow-bar {
  display: block;
  width: 68px;
  height: 8px;
  background: var(--yellow);
  border-radius: 3px;
  margin: 56px 0 16px;   /* 로고와 정비예약 사이 여백 */
}

/* 타이틀 */
.title {
  font-size: 125px;   /* 1.2배 */
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -2px;
  line-height: 1.1;
  text-shadow: 3px 4px 6px rgba(30,36,100,.18);
}

.desc {
  margin-top: 20px;
  font-size: 28px;   /* 1.2배 */
  font-weight: 500;
  color: #2b2f33;
  line-height: 1.55;
}

/* 예약하기 버튼 */
.btn-reserve {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 600px;          /* 1.2배 확대 */
  padding: 30px 44px;
  background: var(--navy);
  color: var(--yellow);
  font-size: 36px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 6px 0 var(--yellow), 0 12px 24px rgba(30,36,100,.3);
  transition: transform .15s, box-shadow .15s;
}
.btn-reserve:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 0 var(--yellow), 0 8px 16px rgba(30,36,100,.3);
}
.btn-reserve .arrow {
  position: absolute;
  right: 24px;
  font-size: 1.3em;
  line-height: 1;
}

/* 브랜드 로고 - 컬러 기본, 호버 시 흑백 / 하단에서 4cm */
.brands {
  position: relative;
  margin-top: 1.5cm;   /* 예약하기 버튼과 브랜드 이미지 사이 여백 */
  padding-top: 0;
  width: 100%;
  max-width: 620px;
  margin-bottom: 2cm;
}
.brands img.color {
  display: block;
  width: 100%;
  height: auto;
}
.brands img.bw {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity .3s;
}
.brands:hover img.bw { opacity: 1; }

/* ===== 오른쪽 패널 ===== */
.right-panel {
  position: relative;
  z-index: 0; /* 소개 화면: 사선 시트가 사진 왼쪽을 살짝 덮음 (의도된 연출) */
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 64px 24px 116px;
  overflow: hidden;          /* 실제 스크롤은 활성 view에서만 처리 */
  min-height: 0;
}
/* 콘텐츠는 스크롤 시 사선(중앙선) 아래로 자연스럽게 들어감 */

.intro { text-align: center; }

.intro h2 {
  font-size: 72px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -1px;
  text-shadow: 2px 3px 5px rgba(30,36,100,.15);
}

.intro-sub {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-size: 28px;
  font-weight: 500;
  color: #33373c;
}
.intro-sub .line {
  width: 90px;
  height: 2px;
  background: #6b7280;
}

/* 매장 사진 */
.shop-photo {
  margin-top: 40px;
  flex: 1;
  min-height: 320px;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  box-shadow: 0 -8px 32px rgba(0,0,0,.12);
}
.intro-slider {
  position: absolute;
  inset: 0;
}
.intro-slider img,
.shop-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.intro-slider img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .35s;
}
.intro-slider img.active { opacity: 1; }
.shop-photo > img[hidden] { display: none; }
.slide-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 88px;
  height: 120px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 92px;
  font-weight: 900;
  line-height: 1;
  opacity: 1;
  text-shadow: 0 8px 22px rgba(0,0,0,.35);
  animation: arrowNudge 1.15s ease-in-out infinite;
}
.slide-nav.prev { display: none !important; }
.slide-nav.next { right: 26px; }
.shop-photo:not(.has-multiple) .slide-nav { display: none; }
.slide-dots { display: none; }
.slide-dots button {
  width: 9px;
  height: 9px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  cursor: pointer;
}
.slide-dots button.active { width: 26px; background: var(--yellow); }
@keyframes arrowNudge {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  45% { transform: translateY(-50%) translateX(15px); }
  65% { transform: translateY(-50%) translateX(6px); }
}

/* 사진 없을 때 플레이스홀더 */
.shop-photo .placeholder { display: none; }
.shop-photo.no-img .placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 20px;
  background: linear-gradient(180deg, #e6eaef 0%, #f2f4f7 55%, #fafbfc 100%);
}
.ph-tel {
  color: #2c3e50;
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 700;
  letter-spacing: 1px;
}
.ph-note { color: #7d8894; font-size: 14px; }

/* ===== 카테고리 + 로그인 (같은 줄) ===== */
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 1.5cm;   /* 카테고리와 콘텐츠 사이 여백 */
}
.top-nav ul {
  list-style: none;
  display: flex;
  gap: 12px;
}
.top-nav li { position: relative; }
.top-nav li:first-child .dropdown { display: none; }

.nav-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  padding: 10px 22px;
  border-bottom: 3px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav-btn:hover, .nav-btn.active { border-bottom-color: var(--yellow); }
.nav-btn.active { color: #10154a; }

/* 드롭다운 */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 180px;
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(30,36,100,.16);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 20;
}
.top-nav li:hover .dropdown,
.top-nav li:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown button {
  display: block;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #2b2f33;
  text-align: left;
  padding: 10px 14px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.dropdown button:hover { background: #f2f5f8; color: var(--navy); font-weight: 700; }

/* ===== 화면(뷰) 전환 ===== */
.view { display: none; }
.view.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto !important;
  padding-bottom: 48px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--navy) rgba(255,255,255,.48);
}
.view.active::-webkit-scrollbar,
.modal-card::-webkit-scrollbar,
.message-list::-webkit-scrollbar {
  width: 10px;
}
.view.active::-webkit-scrollbar-track,
.modal-card::-webkit-scrollbar-track,
.message-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,.48);
  border-radius: 999px;
}
.view.active::-webkit-scrollbar-thumb,
.modal-card::-webkit-scrollbar-thumb,
.message-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--navy), #59608f);
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 999px;
}
body[data-view="intro"] .view.active { overflow: hidden; }
#view-location.active,
#view-cases.active,
#view-notice.active,
#view-adm-book.active,
#view-adm-work.active,
#view-adm-approval.active,
#view-adm-cust.active,
#view-adm-prod.active,
#view-adm-settings.active {
  overflow-y: auto;
  padding-right: 8px;
}

/* ===== 오시는길 ===== */
.section-kicker {
  margin: 0 0 1cm;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-size: 28px;
  font-weight: 700;
  color: #33373c;
}
.section-kicker .line {
  width: 90px;
  height: 2px;
  background: #6b7280;
}
.case-kicker { margin: 14px 0 0; }
.branches {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.location-layout {
  margin-top: 1cm;
  min-height: 0;
  display: block;
  gap: 24px;
  align-items: start;
  overflow: visible;
  padding-right: 6px;
}
.location-layout .branches {
  margin-top: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.branch {
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 10px;
  padding: 20px 18px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(30,36,100,.07);
  transition: border-color .2s, box-shadow .2s;
}
.branch.focus {
  border-color: var(--yellow);
  box-shadow: 0 8px 24px rgba(201,165,68,.25);
}
.branch-large {
  padding: 0;
  overflow: hidden;
}
.branch-large > h3,
.branch-large > .branch-tel,
.branch-large > .branch-addr,
.branch-large > .branch-map,
.branch-large > .card-actions {
  margin-left: 18px;
  margin-right: 18px;
}
.branch-large > h3 { margin-top: 18px; }
.branch-large > .card-actions { margin-bottom: 20px; }
.branch-large-media {
  aspect-ratio: 16 / 20;
  position: relative;
  overflow: hidden;
  background: #fff;
  color: #8a94a0;
  display: grid;
  place-items: center;
}
.image-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .25s ease;
}
.image-track img,
.branch-large-media img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.image-next {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 64px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 58px;
  font-weight: 300;
  line-height: 1;
  text-shadow: 0 3px 10px rgba(0,0,0,.45);
}
.branch h3 {
  font-size: 19px;
  color: var(--navy);
  margin-bottom: 12px;
}
.branch-tel { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.branch-tel a { color: var(--navy); text-decoration: none; }
.branch-tel a:hover { color: #b8963a; }
.branch-addr { color: #555f6b; line-height: 1.6; margin-bottom: 14px; font-size: 14px; }
.branch-map {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border: 1.5px solid var(--navy);
  border-radius: 8px;
  padding: 8px 12px;
  transition: background .2s, color .2s;
}
.branch-map:hover { background: var(--navy); color: var(--yellow); }
.branch-preview {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.82);
  border: 1px solid #dfe5eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(30,36,100,.08);
}
.branch-preview-media {
  aspect-ratio: 4 / 3;
  background: #fff;
  color: #8a94a0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  overflow: auto hidden;
  scroll-snap-type: x mandatory;
}
.branch-preview-media img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  scroll-snap-align: start;
}
.branch-preview-body {
  display: grid;
  gap: 10px;
  padding: 20px;
}
.branch-preview-body h3 { font-size: 22px; color: var(--navy); }
.preview-phone,
.preview-address {
  color: #2b2f33;
  text-decoration: none;
  line-height: 1.5;
}
.preview-phone { font-size: 20px; font-weight: 800; color: var(--navy); }
.preview-address:hover,
.preview-phone:hover { color: #b8963a; }

/* ===== 정비사례 ===== */
.tabs {
  margin-top: 32px;
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #dfe3e8;
}
.tab {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  color: #8a94a0;
  padding: 12px 22px;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
}
.tab:hover { color: var(--navy); }
.tab.active { color: var(--navy); border-bottom-color: var(--yellow); }

.tab-panel { display: none; padding: 32px 4px; }
.tab-panel.active { display: block; overflow-y: auto; }

.panel-desc { font-size: 18px; color: #2b2f33; margin-bottom: 20px; }
.btn-blog {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 32px;
  background: #03c75a; /* 네이버 그린 */
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  transition: filter .2s;
}
.btn-blog:hover { filter: brightness(1.08); }
.hint { margin-top: 14px; font-size: 13px; color: #8a94a0; }

#case-list,
.blog-feed .post-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.blog-feed .post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.brand-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.brand-filter button {
  border: 1px solid #d4dae1;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  color: #555f6b;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 999px;
}
.brand-filter button.active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--yellow);
}
.post-card {
  position: relative;
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}
.post-card:hover {
  box-shadow: 0 10px 26px rgba(30,36,100,.12);
  transform: translateY(-2px);
}
.post-images {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #273261 0%, #1e2464 55%, #161a4a 100%);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow: auto hidden;
  scroll-snap-type: x mandatory;
}
.post-images img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  scroll-snap-align: start;
}
.post-images.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.55);
  font-size: 13px;
}
.post-body { padding: 18px 20px 20px; }
.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #8a94a0;
}
.post-card h3 {
  margin-top: 8px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.35;
}
.blog-card h3 {
  min-height: calc(1.35em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card p {
  margin-top: 8px;
  color: #555f6b;
  font-size: 14px;
  line-height: 1.6;
}
.blog-card p {
  min-height: calc(1.6em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card a {
  display: inline-block;
  margin-top: 12px;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}
.post-view h3 { font-size: 24px; color: var(--navy); }
.post-meta-line { margin: 8px 0 16px; color: #8a94a0; font-size: 13px; }
.post-link {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--navy);
  font-weight: 800;
}
.post-images.detail {
  margin-bottom: 18px;
  border-radius: 10px;
}
.post-content {
  color: #2b2f33;
  line-height: 1.75;
  font-size: 16px;
}
.post-content ul { padding-left: 22px; }
.warn { color: #c0392b; }

/* ===== 공지사항 (앨범형) ===== */
.album {
  margin-top: 1cm;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  overflow-y: auto;
}
.notice-card {
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.notice-card:hover {
  box-shadow: 0 10px 26px rgba(30,36,100,.12);
  transform: translateY(-2px);
}
.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #273261 0%, #1e2464 55%, #161a4a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb span { color: rgba(255,255,255,.55); font-size: 13px; letter-spacing: 1px; }
.notice-body { padding: 18px 20px 20px; }
.notice-card .post-images {
  aspect-ratio: 16 / 10;
}
.notice-body { padding: 20px 22px 22px; }
.notice-body time { font-size: 14px; color: #8a94a0; }
.notice-body h3 {
  margin: 8px 0 10px;
  font-size: 22px;
  color: var(--navy);
  line-height: 1.35;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notice-body p {
  font-size: 15px;
  color: #555f6b;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== 로그인 바 ===== */
.auth-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  flex-shrink: 0;
}
.auth-bar[hidden] { display: none; }
.auth-user { font-size: 14px; font-weight: 700; color: var(--navy); }
.auth-btn {
  border: 1.5px solid var(--navy);
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  padding: 7px 16px;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.auth-btn:hover { background: var(--navy); color: var(--yellow); }

/* ===== 관리자 전용 요소 ===== */
body:not(.admin) .admin-only { display: none !important; }
body:not(.main-admin) .main-admin-only { display: none !important; }
.admin-tools { margin-top: 16px; display: flex; justify-content: flex-end; }

.mini-btn {
  border: 1px solid #c9d1d9;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #555f6b;
  padding: 6px 12px;
  border-radius: 6px;
  transition: border-color .15s, color .15s, background .15s;
}
.mini-btn:hover { border-color: var(--navy); color: var(--navy); }
.mini-btn.danger:hover { border-color: #c0392b; color: #c0392b; }
.mini-btn.add {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--yellow);
  font-size: 13px;
  padding: 9px 18px;
}
.mini-btn.add:hover { filter: brightness(1.15); }

.card-actions {
  display: flex;
  gap: 8px;
  padding: 0 20px 16px;
}
#case-list .card-actions { padding: 12px 0 0; }
.branch .card-actions { padding: 16px 0 0; }

.photo-edit {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.shop-photo { position: relative; }

/* ===== 모달 ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(16, 20, 50, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
.modal-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  width: min(420px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
  scrollbar-width: thin;
  scrollbar-color: var(--navy) #eef1f4;
}
.image-preview-large {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
}
.branch-photo-info {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}
.branch-photo-info h3 { margin: 0; color: var(--navy); }
.branch-photo-info p { color: #555f6b; line-height: 1.55; }
.branch-photo-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.branch-photo-actions a { text-decoration: none; }
.modal-x {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: #eef1f4;
  color: #555f6b;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  z-index: 3;
}
.modal-card.full {
  width: min(1180px, calc(100vw - 28px));
  height: min(900px, calc(100vh - 28px));
  max-height: calc(100vh - 28px);
  display: flex;
  flex-direction: column;
}
.modal-card.full form {
  flex: 1;
  min-height: 0;
}
.modal-card.full .editor-wrap {
  min-height: 0;
}
.modal-card.full .rich-editor {
  min-height: 360px;
  max-height: none;
}
.modal-card h3 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 18px;
}
.modal-card form { display: grid; gap: 12px; }
.modal-card input, .modal-card textarea, .modal-card select {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid #d6dbe1;
  border-radius: 8px;
  resize: vertical;
  width: 100%;
}
.modal-card input:focus, .modal-card textarea:focus, .modal-card select:focus {
  outline: 2px solid var(--yellow);
  border-color: transparent;
}
.password-field {
  position: relative;
  display: flex;
}
.password-field input {
  padding-right: 64px;
}
.password-field button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: #eef1f4;
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 6px;
}
.address-field {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 8px;
}
.address-field button {
  border: 1px solid var(--navy);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  border-radius: 8px;
}
.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555f6b;
  font-size: 14px;
}
.check-line input { width: auto; }
.modal-sep {
  border: none;
  border-top: 1px solid #edf0f3;
  margin: 4px 0;
}
.editor-wrap {
  border: 1px solid #d6dbe1;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  background: #f4f6f8;
  border-bottom: 1px solid #e1e6eb;
}
.editor-toolbar select {
  width: auto;
  min-width: 112px;
  padding: 6px 8px;
  font-size: 12px;
  border-radius: 6px;
}
.editor-toolbar button,
.album-row button {
  border: 1px solid #cfd6dd;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  color: #555f6b;
  padding: 6px 10px;
  border-radius: 6px;
}
.editor-toolbar .editor-icon-btn {
  width: 38px;
  color: var(--navy);
  font-size: 17px;
}
.editor-toolbar button:hover,
.album-row button:hover:not(:disabled) { color: var(--navy); border-color: var(--navy); }
.album-row button:disabled { opacity: .4; cursor: default; }
.rich-editor {
  min-height: 180px;
  max-height: 360px;
  overflow-y: auto;
  padding: 14px;
  color: #2b2f33;
  line-height: 1.65;
  outline: none;
  background: #fff;
}
.modal-card.full .rich-editor {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 42px 48px;
  border-left: 1px solid #eef1f4;
  border-right: 1px solid #eef1f4;
}
.rich-editor:focus { box-shadow: inset 0 0 0 2px var(--yellow); }
.editor-image {
  margin: 16px 0;
}
.editor-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.editor-image figcaption {
  margin-top: 6px;
  color: #6b7280;
  font-size: 13px;
}
.album-manager {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.album-row {
  display: grid;
  grid-template-columns: 72px 24px auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #e2e6ea;
  border-radius: 10px;
}
.album-row img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  background: #e8ecf0;
}
.album-row span {
  font-size: 13px;
  font-weight: 900;
  color: var(--navy);
  text-align: center;
}
.album-slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.album-slot {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 2px dashed #d6dbe1;
  background: #f7f9fb;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  font-family: inherit;
  color: var(--navy);
}
.album-slot.empty b {
  display: block;
  font-size: 34px;
  line-height: 1;
  color: var(--yellow);
}
.album-slot.empty span,
.album-slot.filled span {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(30,36,100,.9);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: grid;
  place-items: center;
}
.album-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  pointer-events: none;
}
.album-slot i {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 3;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(0,0,0,.62);
  color: #fff;
  font-style: normal;
  font-size: 20px;
  line-height: 24px;
}
.album-slot.dragging { opacity: .55; }
.album-slot.drop-target { border-color: var(--yellow); box-shadow: inset 0 0 0 3px rgba(255,202,0,.35); }
.field-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #555f6b;
  margin-bottom: 8px;
}
.modal-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  border-bottom: 2px solid #eef1f4;
}
.mtab {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #8a94a0;
  padding: 8px 16px;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.mtab.active { color: var(--navy); border-bottom-color: var(--yellow); }
.modal-actions { display: flex; gap: 10px; margin-top: 6px; }
.modal-submit {
  flex: 1;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--yellow);
  background: var(--navy);
  min-height: 48px;
  border-radius: 8px;
  transition: filter .2s;
}
.modal-submit:hover { filter: brightness(1.15); }
.modal-cancel {
  border: 1px solid #d6dbe1;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  color: #555f6b;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
}
.form-error { font-size: 13px; color: #c0392b; min-height: 16px; margin: 0; }
.file-label { font-size: 14px; color: #555f6b; display: grid; gap: 8px; }

/* ===== 예약 캘린더 ===== */
.modal-card.wide { width: min(600px, 100%); }
.modal-card.wide.full { width: min(1180px, calc(100vw - 28px)); }

.branch-select { display: grid; gap: 12px; }
.branch-select button {
  border: 1.5px solid var(--navy);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  min-height: 56px;
  border-radius: 10px;
  transition: background .2s, color .2s;
}
.branch-select button:hover { background: var(--navy); color: var(--yellow); }

.cal-user {
  background: #f2f5f8;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 15px;
  color: #2b2f33;
}
.cal-user strong { color: var(--navy); font-size: 17px; }

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cal-head h4 { font-size: 18px; color: var(--navy); }
.cal-nav {
  border: 1px solid #d6dbe1;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  width: 34px; height: 34px;
  border-radius: 8px;
  color: var(--navy);
}
.cal-nav:hover { background: #f2f5f8; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 16px;
}
.cal-dow {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #8a94a0;
  padding: 6px 0;
}
.cal-dow.sun { color: #c0392b; }
.cal-day {
  position: relative;
  border: 1px solid #e8ecf0;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  min-height: 52px;
  border-radius: 8px;
  padding: 6px 0 16px;
  color: #2b2f33;
  transition: border-color .15s, background .15s;
}
.cal-day:hover:not(:disabled) { border-color: var(--navy); }
.cal-day:disabled { background: #f5f6f8; color: #c3cad3; cursor: default; }
.cal-day.empty { visibility: hidden; }
.cal-day.sel { background: var(--navy); color: #fff; border-color: var(--navy); }
.cal-day .cnt {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  color: #b8963a;
  white-space: nowrap;
}
.cal-day.sel .cnt { color: var(--yellow); }
.cal-day.mine::after {
  content: '';
  position: absolute;
  top: 5px; right: 5px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #03c75a;
}

.slots-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.slots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.slot {
  border: 1px solid #d6dbe1;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 0;
  border-radius: 8px;
  color: #2b2f33;
}
.slot:hover:not(:disabled) { border-color: var(--navy); color: var(--navy); }
.slot:disabled { background: #f5f6f8; color: #c3cad3; cursor: default; text-decoration: line-through; }
.slot.sel { background: var(--navy); color: var(--yellow); border-color: var(--navy); font-weight: 700; }
.slot.mine { background: #e6f7ee; border-color: #03c75a; color: #038550; text-decoration: none; }

.cal-msg { font-size: 13px; color: #8a94a0; margin-bottom: 10px; }
.cal-msg.ok { color: #038550; font-weight: 700; }
.my-booking-cancel {
  border: 1px solid #c0392b;
  background: #fff;
  color: #c0392b;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* ===== 관리자 설정 화면 (예약관리/고객관리/상품관리) ===== */
.adm-body { width: 100%; max-width: 880px; margin: 0 auto; }
.adm-tabs { display: flex; gap: 8px; margin: 28px 0 20px; border-bottom: 2px solid #dfe3e8; }
#view-adm-book .cal-grid { margin-bottom: 20px; }
#view-adm-book .cal-head { margin-top: 4px; }

.slot-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.slot-row strong { width: 56px; color: var(--navy); flex-shrink: 0; }
.slot-info { flex: 1; font-size: 14px; color: #2b2f33; }
.slot-info.blocked-text { color: #c0392b; font-weight: 700; }
.slot.blocked {
  background: #fdecea;
  border-color: #f5b7b1;
  color: #c0392b;
  text-decoration: none;
}

/* 고객관리 */
.cust-card {
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 16px;
  overflow: hidden;
}
.cust-card.open { border-color: #c9d2dd; box-shadow: 0 10px 24px rgba(15, 23, 42, .08); }
.cust-search {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.cust-search input {
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid #d6dbe1;
  border-radius: 8px;
  background: #fff;
}
.cust-summary {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr 1.2fr;
  align-items: center;
  gap: 10px;
  border: none;
  background: #fff;
  color: #2b2f33;
  padding: 16px 18px;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.cust-summary:hover { background: #f7f9fb; }
.cust-summary strong { color: var(--navy); font-size: 17px; }
.cust-summary span,
.cust-summary a {
  color: #555f6b;
  font-size: 14px;
  text-decoration: none;
  font-weight: 800;
}
.cust-summary em {
  justify-self: end;
  color: #b8963a;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}
.cust-detail {
  border-top: 1px solid #eef1f4;
  padding: 18px;
  background: #fff;
}
.cust-detail[hidden] { display: none; }
.cust-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 10px; flex-wrap: wrap; }
.cust-head strong { font-size: 18px; color: var(--navy); }
.cust-head span { color: #555f6b; font-size: 14px; }
.cust-head em { margin-left: auto; font-style: normal; font-size: 13px; color: #b8963a; font-weight: 700; }
.cust-head a { color: var(--navy); font-weight: 800; text-decoration: none; }
.cust-actions { display: flex; gap: 8px; margin-bottom: 10px; }
.cust-memo {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid #d6dbe1;
  border-radius: 8px;
  margin-bottom: 8px;
  resize: vertical;
}
.cust-memo.postit {
  background: #fff9c8;
  border-color: #ead45c;
}
.memo-book {
  display: grid;
  gap: 8px;
  margin: 10px 0 14px;
}
.memo-entry {
  border: 1px solid #ead45c;
  border-radius: 8px;
  background: #fffdf0;
  padding: 10px 12px;
}
.memo-entry time {
  display: block;
  color: #8a6a00;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 4px;
}
.memo-entry p {
  color: #2b2f33;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.rec-table.spreadsheet tbody tr:nth-child(even) { background: #fafbfc; }
.detail-list {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 14px;
  font-size: 15px;
}
.detail-list dt { color: #8a94a0; font-weight: 800; }
.detail-list dd { color: #2b2f33; }
.detail-list a { color: var(--navy); font-weight: 800; text-decoration: none; }
.modal-subtitle { margin: 20px 0 8px; color: var(--navy); }
.mypage-section { margin-bottom: 18px; }
.mypage-section h4 { color: var(--navy); margin-bottom: 8px; }
.service-run-list {
  display: grid;
  gap: 8px;
  list-style: none;
}
.service-run-list li {
  border: 1px solid #e2e6ea;
  border-radius: 8px;
  padding: 10px 12px;
}
.service-run-list strong { color: var(--navy); margin-right: 8px; }
.message-list {
  display: grid;
  gap: 10px;
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 12px;
}
.message-list li {
  border: 1px solid #e2e6ea;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}
.message-list .admin-msg { background: #f4f6ff; border-color: #ccd3ff; }
.message-list .user-msg { background: #fffdf0; border-color: #ead45c; }
.message-list p { margin: 6px 0; color: #2b2f33; line-height: 1.55; }
.message-list time { font-size: 12px; color: #8a94a0; }
.customer-context {
  display: grid;
  gap: 4px;
  background: #f4f6f8;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.customer-context strong { color: var(--navy); }
.customer-context span { color: #555f6b; font-size: 13px; }
.rec-table { width: 100%; border-collapse: collapse; margin: 14px 0 10px; font-size: 14px; }
.rec-table th, .rec-table td { border-bottom: 1px solid #eef1f4; padding: 8px 6px; text-align: left; }
.rec-table th { font-size: 12px; color: #8a94a0; font-weight: 700; }
.pay-pill {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fdecea;
  color: #c0392b;
}
.pay-pill.paid { background: #e6f7ee; color: #038550; }
.rec-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rec-form input[type="date"], .rec-form input[type="text"], .rec-form input[type="number"], .rec-form select {
  font-family: inherit;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid #d6dbe1;
  border-radius: 6px;
}
.rec-form .rec-svc { flex: 1; min-width: 160px; }
.rec-form .rec-amt { width: 110px; }
.rec-paid-label { font-size: 13px; color: #555f6b; display: flex; gap: 4px; align-items: center; }

/* 상품관리 */
.prod-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 10px;
}
.prod-main strong { color: var(--navy); font-size: 16px; }
.prod-price { margin-left: 10px; color: #b8963a; font-weight: 700; font-size: 14px; }
.prod-main p { font-size: 13px; color: #555f6b; margin-top: 4px; }
.prod-main a { font-size: 13px; color: var(--navy); }
.prod-card .card-actions { padding: 0; flex-shrink: 0; }
.service-admin-panel {
  margin-top: 28px;
  border-top: 2px solid #e2e6ea;
  padding-top: 22px;
}
.service-admin-panel h3 {
  color: var(--navy);
  margin-bottom: 12px;
}
.service-run-card {
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 10px;
  padding: 16px;
  margin-top: 12px;
}
.service-run-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.service-run-head strong { color: var(--navy); }
.service-run-head em { font-style: normal; color: #b8963a; font-weight: 800; }
.service-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.service-steps span {
  border: 1px solid #d6dbe1;
  border-radius: 999px;
  padding: 6px 10px;
  color: #555f6b;
  font-size: 12px;
  font-weight: 800;
}
.service-steps span.active { border-color: var(--yellow); color: var(--navy); background: #fff9d9; }
.service-steps span.done { border-color: #03c75a; color: #038550; background: #e6f7ee; }
.service-run-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* 작업현황 / 승인 / 설정 */
.work-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 28px 0 14px;
  color: var(--navy);
}
.work-head strong { font-size: 18px; }
.work-head span {
  border-radius: 999px;
  background: #fff9d9;
  color: #8a6a00;
  font-size: 13px;
  font-weight: 900;
  padding: 6px 12px;
}
.work-card,
.settings-card {
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.work-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.work-card-head strong { color: var(--navy); }
.work-card-head a,
.slot-info a {
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
}
.work-card p { color: #555f6b; font-size: 14px; line-height: 1.55; }
.step-photo-preview {
  min-height: 120px;
  border: 1px dashed #cfd6dd;
  border-radius: 10px;
  background: #f7f9fb;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.step-photo-preview.small { min-height: 92px; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
.step-photo-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #e8ecf0;
}
.step-photo-preview.empty,
.step-photo-preview span {
  place-items: center;
  color: #8a94a0;
  font-size: 13px;
}
.workflow-editor {
  display: grid;
  gap: 8px;
}
.workflow-row {
  display: grid;
  grid-template-columns: 28px minmax(120px, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid #e2e6ea;
  border-radius: 8px;
  background: #fafbfc;
}
.workflow-row strong {
  color: var(--navy);
  text-align: center;
}
.workflow-row label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #555f6b;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.workflow-row input[type="checkbox"] {
  width: auto;
}
.settings-card h3 {
  color: var(--navy);
  margin-bottom: 10px;
}
.settings-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.settings-form input,
.settings-form select {
  flex: 1;
  min-width: 180px;
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid #d6dbe1;
  border-radius: 8px;
}
.settings-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  align-items: start;
}
.settings-main { min-width: 0; }
.inquiry-card {
  position: sticky;
  top: 18px;
}
.inquiry-row {
  display: grid;
  gap: 4px;
  border-top: 1px solid #eef1f4;
  padding: 12px 0;
}
.inquiry-row:first-child { border-top: none; padding-top: 0; }
.inquiry-row strong { color: var(--navy); }
.inquiry-row span {
  color: #8a94a0;
  font-size: 12px;
  font-weight: 800;
}
.inquiry-row p {
  color: #2b2f33;
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.security-section {
  border: 1px solid #eef1f4;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}
.security-section h4 {
  color: var(--navy);
  margin-bottom: 10px;
}
.settings-note-list {
  display: grid;
  gap: 8px;
  list-style: none;
  color: #555f6b;
  font-size: 13px;
}
.field-help {
  margin: -6px 0 4px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
}
.run-guide {
  margin-top: 8px;
  color: #2b2f33;
  font-size: 14px;
  line-height: 1.55;
}
.run-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.run-photo-grid figure {
  margin: 0;
  border: 1px solid #e2e6ea;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.run-photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f7f9fb;
}
.run-photo-grid figcaption {
  padding: 8px 10px;
  color: #555f6b;
  font-size: 13px;
}
.chat-list .admin-msg {
  justify-self: start;
  max-width: 82%;
}
.chat-list .user-msg {
  justify-self: end;
  max-width: 82%;
}
.confirm-copy {
  color: #2b2f33;
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 12px;
}

/* 예약 - 서비스 선택 단계 */
.svc-list { display: grid; gap: 8px; margin-bottom: 12px; }
.svc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e2e6ea;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  cursor: pointer;
  transition: border-color .15s;
}
.svc-item:hover { border-color: var(--navy); }
.svc-item input { width: 18px; height: 18px; accent-color: var(--navy); flex-shrink: 0; }

/* ===== PC 첫 화면: 좌우 여백 없이 뷰포트 전체 사용 ===== */
@media (min-width: 901px) {
  html, body { height: 100%; overflow: hidden; }
  html, body { scrollbar-width: none; }  /* 스크롤바 숨김 - 좌우 여백 0 유지 */
  html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
  body {
    overflow-x: hidden;
    overflow-y: hidden;
    background: #d9dee4;
  }
  .hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 0;
    transform: none;
  }
  .left-panel {
    padding: 0 clamp(32px, 3.33vw, 64px) 0 clamp(28px, 2.5vw, 48px);
  }
  .logo img {
    width: min(505px, 100%);
  }
  .yellow-bar {
    width: clamp(52px, 3.55vw, 68px);
    height: clamp(6px, .42vw, 8px);
    margin: clamp(30px, 5.2vh, 56px) 0 clamp(12px, 1.5vh, 16px);
  }
  .title {
    font-size: clamp(72px, 6.5vw, 125px);
  }
  .desc {
    margin-top: clamp(12px, 1.85vh, 20px);
    font-size: clamp(18px, 1.45vw, 28px);
  }
  .btn-reserve {
    margin-top: clamp(18px, 2.6vh, 28px);
    max-width: min(600px, 100%);
    padding: clamp(18px, 2.8vh, 30px) clamp(28px, 2.3vw, 44px);
    font-size: clamp(22px, 1.875vw, 36px);
  }
  .brands {
    margin-top: 1.5cm;
    margin-bottom: 2cm;
    max-width: min(560px, 100%);
  }
  .right-panel {
    padding: clamp(20px, 2.6vh, 28px) clamp(40px, 3.33vw, 64px) clamp(18px, 2.2vh, 24px) clamp(72px, 6vw, 116px);
    overflow: hidden;
  }
  body[data-view="intro"] .right-panel { overflow-y: hidden; }
  .nav-row {
    margin-bottom: clamp(28px, 5.2vh, 1.5cm);
  }
  .intro h2 {
    font-size: clamp(44px, 3.75vw, 72px);
  }
  .intro-sub {
    margin-top: clamp(12px, 1.85vh, 20px);
    font-size: clamp(18px, 1.45vw, 28px);
  }
  .shop-photo {
    margin-top: clamp(24px, 3.7vh, 40px);
    min-height: 0;
  }
}

/* ===== 반응형 ===== */
@media (max-width: 900px) {
  html,
  body {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .hero {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .right-panel {
    flex: 0 0 auto;
    min-height: 100vh;
    overflow: visible;
    padding: 24px 16px 56px;
  }
  body[data-view="intro"] .right-panel { overflow: visible; }
  .view.active,
  #view-location.active,
  #view-cases.active,
  #view-notice.active,
  #view-adm-book.active,
  #view-adm-work.active,
  #view-adm-approval.active,
  #view-adm-cust.active,
  #view-adm-prod.active,
  #view-adm-settings.active {
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible !important;
    padding-right: 0;
  }
  .bg-angled { display: none; }
  .left-panel {
    flex: 0 0 auto;
    min-height: 100vh;
    background:
      linear-gradient(115deg, #ffffff 0%, #f3f4f6 30%, #ffffff 55%, #e9ebef 80%, #ffffff 100%);
    border-bottom: 5px solid var(--gold);
  }
  .brands { margin-top: 1.5cm; }
  .shop-photo { min-height: 260px; }
  .top-nav { width: 100%; }
  .top-nav ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: 100%;
  }
  .top-nav li.admin-only { display: none !important; }
  body.admin .top-nav ul { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  body.admin .top-nav li.admin-only { display: block !important; }
  .nav-row {
    display: block;
    margin-bottom: 24px;
  }
  .branches, .album { grid-template-columns: 1fr; }
  .album-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal-card.full {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    padding: 20px;
  }
  .brands {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-bottom: 2cm;
    padding-top: 16px;
  }
  .brands img.bw { top: 16px; }
  /* 고정 px 값들을 모바일 크기로 재조정 */
  .left-panel { padding: 18px 20px 22px; }
  .logo { margin-left: 0; }
  .logo img { width: min(280px, 86%); max-width: 100%; }
  .yellow-bar { margin: 18px 0 10px; }
  .title { font-size: 42px; }
  .desc { font-size: 16px; margin-top: 10px; line-height: 1.45; }
  .btn-reserve { font-size: 19px; padding: 14px 28px; margin-top: 16px; }
  .brands { margin-top: 1.5cm; margin-bottom: 18px; }
  .intro h2 { font-size: 34px; }
  .intro-sub { font-size: 17px; margin-top: 12px; }
  .intro-sub .line { width: 40px; }
  .nav-btn {
    width: 100%;
    min-height: 42px;
    font-size: 13px;
    padding: 8px 4px;
    white-space: nowrap;
  }
  .auth-bar { display: none; }
  body.admin .auth-bar { display: flex; margin-top: 8px; justify-content: flex-start; }
  .tab { font-size: 15px; }
  .panel-desc { font-size: 15px; }
  .branch h3 { font-size: 19px; }
  .branch-tel { font-size: 22px; }
  .shop-photo { margin-top: 24px; }
  .branches, .album, .tabs { margin-top: 24px; }
  .location-layout,
  #case-list,
  .blog-feed .post-grid {
    grid-template-columns: 1fr;
  }
  .location-layout .branches { grid-template-columns: 1fr; }
  .branch-preview { position: static; }
  .notice-card .post-images { aspect-ratio: 16 / 10; }
  .settings-layout { grid-template-columns: 1fr; }
  .inquiry-card { position: static; }
  .cust-search { grid-template-columns: 1fr; }
  .cust-summary {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .cust-summary em { justify-self: start; }
  .notice-body { padding: 20px; }
  .notice-body h3 { font-size: 22px; }
  .notice-body p { font-size: 15px; }
}
