/* =========================================================
   해방클린케어 — 공통 디자인 (모든 페이지)
   페이지별 스타일: site.css(고객) · admin.css(관리자) · worker.css(작업자) · report.css(보고서)
   ========================================================= */

:root {
  color-scheme: light;
  --navy: #0a2540;
  --navy-deep: #071a2e;
  --navy-2: #12375c;
  --navy-line: #24496f;
  --brand-navy: #033565;
  --brand-sub: #1f5a96;
  --brand-line: #276397;
  --primary: #0257b4;
  --primary-hover: #01468f;
  --accent: #00a6ea;
  --accent-light: #8fd6f7;
  --text: #1b2733;
  --text-2: #4a5a6a;
  --muted: #5b6b7b;
  --faint: #8a99a8;
  --line: #e3e8ee;
  --line-strong: #cfd8e1;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --tint: #eaf3fc;
  --tint-2: #e1f2fb;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --success: #136c3f;
  --success-soft: #e5f6ec;
  --warn: #8a5300;
  --warn-soft: #fff4e0;
  --on-dark: #c5d3e0;
  --on-dark-muted: #a9bccf;
  /* 키보드 초점 테두리 색: 밝은 바탕은 진한 파랑(흰 바탕 대비 6.9:1). 어두운 구역은 아래에서 하늘색으로 바꿈 */
  --focus: var(--primary);

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow: 0 10px 30px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 37, 64, 0.16);
  --header-h: 92px; /* 고객용 머리글 높이(7차: 80 → 92px, 960px 이하는 64px) */
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
/* 부드러운 스크롤은 같은 페이지 #링크(목차 · '#area' 알약 등)에 마우스 · 손가락을 올려 누를 때만.
   다른 페이지에서 '/service#washer-onsite' · '/#area' 처럼 #주소로 바로 들어올 때는 바로 이동: 부드럽게 내려가는 동안 글꼴 · 사진 · 슬라이드 준비로
   위쪽 높이가 바뀌면 처음 계산한 자리에서 멈춰 제목이 머리글 · 목차 밑으로 들어감(바로 이동이면 브라우저가 다 읽을 때까지 자리를 다시 맞춤).
   누른 링크의 초점(:focus-within)으로는 가릴 수 없음 — 크롬은 #이동 직전에 링크 초점을 풀어 버림. :has() 를 모르는 브라우저 · 키보드 이동은 늘 바로 이동 */
html:has(a[href^="#"]:hover) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(a[href^="#"]:hover) { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -0.025em; color: var(--navy); }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
/* 어두운(남색) 구역의 초점 테두리는 하늘색(남색 바탕 대비 5.6:1) — 페이지별 어두운 구역은 site.css·worker.css·report.css */
.section-dark, .page-hero, .site-footer, .admin-bar, .toast { --focus: var(--accent); }

.ico { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 26px; height: 26px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 920px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.br-pc { display: inline; }
@media (max-width: 767px) { .br-pc { display: none; } }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 1.5px solid transparent; border-radius: 12px;
  font-size: 16px; font-weight: 800; line-height: 1.2; text-align: center; white-space: nowrap;
  background: transparent; color: var(--text); transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 18px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: #28b6f0; color: var(--navy); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #12375c; color: #fff; }
.btn-line { border-color: var(--line-strong); background: #fff; color: var(--text); }
.btn-line:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline-light { border-color: rgba(255, 255, 255, .38); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #eef4fa; color: var(--navy); }
.btn-danger-line { border-color: #f1c4c4; background: #fff; color: var(--danger); }
.btn-danger-line:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
.btn-kakao { background: #fee500; color: #191919; }
.btn-kakao:hover { background: #f5dc00; color: #191919; }
.btn-icon { width: 44px; min-width: 44px; padding: 0; }
.btn .ico { width: 20px; height: 20px; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.5); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn-line.is-loading::after, .btn-white.is-loading::after { border-color: rgba(2,87,180,.3); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }
/* 11차 PDF 단추(pdf-export.js): 만드는 동안 '만드는 중…'(누를 수 없음) · 다 만든 뒤 한 번 더 눌러 보내기 */
.btn.is-making { cursor: progress; pointer-events: none; opacity: .78; }
.btn.is-ready { box-shadow: 0 0 0 3px rgba(2, 87, 180, .28); }

/* ---------- 폼 ---------- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.label { font-size: 15px; font-weight: 700; color: var(--navy); }
.label .req { color: var(--danger); }
.label .opt { font-size: 13px; font-weight: 500; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: 12px;
  background: #fff; font-size: 16px; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 140px; padding: 14px 16px; line-height: 1.6; resize: vertical; }
.select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234a5a6a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(2, 87, 180, .12); }
.input[readonly] { background: var(--bg-soft); color: var(--text-2); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.help { font-size: 14px; color: var(--muted); }
.error-text { font-size: 14px; font-weight: 600; color: var(--danger); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.checkbox { width: 22px; height: 22px; accent-color: var(--primary); flex-shrink: 0; }
.check-row { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }

/* 세그먼트(하나 고르기) */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; padding: 5px; border-radius: 14px; background: var(--bg-soft); }
.seg-item { position: relative; }
.seg-item input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-item span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 10px; border-radius: 10px; font-size: 15px; font-weight: 700; color: var(--text-2); text-align: center; }
.seg-item input:checked + span { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(10,37,64,.12); }
.seg-item input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* 칩(여러 개 고르기) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; font-size: 14px; font-weight: 700; color: var(--text-2); }
.chip input:checked + span { border-color: var(--primary); background: var(--tint); color: var(--primary); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- 배지 ---------- */
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 26px; padding: 2px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.badge-received { background: var(--tint); color: #0a5aa8; }
.badge-confirmed { background: var(--warn-soft); color: var(--warn); }
.badge-done { background: var(--success-soft); color: var(--success); }
.badge-canceled { background: #f1f3f5; color: var(--text-2); }
.badge-new { background: var(--danger-soft); color: var(--danger); }
.badge-draft { background: var(--warn-soft); color: var(--warn); }
.badge-submitted { background: var(--success-soft); color: var(--success); }
.badge-neutral { background: #eef2f6; color: var(--text-2); }
.badge-dark { background: var(--navy-2); color: var(--accent-light); }
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--danger-soft); color: var(--danger); font-size: 12px; font-weight: 800; }

/* ---------- 카드·섹션 ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card-pad { padding: 28px; }
@media (max-width: 640px) { .card-pad { padding: 20px; } }
.section { padding: 100px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
@media (max-width: 767px) { .section { padding: 64px 0; } }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 44px; text-align: center; }
.section-head.align-left { align-items: flex-start; text-align: left; }
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: .14em; color: var(--primary); }
.section-dark .eyebrow { color: var(--accent-light); }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.lead { font-size: clamp(16px, 1.6vw, 18px); line-height: 1.75; color: var(--muted); }
.section-dark .lead { color: var(--on-dark); }

/* 서브 페이지 제목 띠 */
.page-hero { padding: 64px 0 56px; background: var(--navy); color: #fff; }
.page-hero .crumb { font-size: 14px; color: var(--on-dark-muted); }
.page-hero .crumb a { color: var(--on-dark-muted); }
.page-hero h1 { margin-top: 10px; font-size: clamp(30px, 4.4vw, 48px); font-weight: 900; letter-spacing: -0.035em; color: #fff; }
.page-hero p { margin-top: 10px; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.7; color: var(--on-dark); }
@media (max-width: 767px) { .page-hero { padding: 40px 0 36px; } }

/* 빈 상태·로딩 */
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty .ico { width: 36px; height: 36px; color: var(--faint); margin-bottom: 10px; }
.skeleton { background: linear-gradient(90deg, #eef2f6 25%, #f6f8fa 50%, #eef2f6 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* 알림 박스 */
.notice { display: flex; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--tint); color: #0a5aa8; font-size: 15px; line-height: 1.6; }
.notice .ico { margin-top: 2px; }
.notice-warn { background: var(--warn-soft); color: var(--warn); }
.notice-danger { background: var(--danger-soft); color: var(--danger); }
.notice-success { background: var(--success-soft); color: var(--success); }

/* 토스트 */
.toast-wrap { position: fixed; left: 50%; bottom: 96px; z-index: 900; display: flex; flex-direction: column; gap: 8px; transform: translateX(-50%); width: min(92vw, 440px); pointer-events: none; }
.toast { padding: 14px 18px; border-radius: 14px; background: var(--navy); color: #fff; font-size: 15px; font-weight: 600; box-shadow: var(--shadow-lg); pointer-events: auto; animation: toast-in .2s ease-out; }
.toast-error { background: var(--danger); }
.toast-success { background: var(--success); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- 로고 조합 ---------- */
.brand { display: inline-flex; align-items: center; color: inherit; }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: block; height: 48px; width: auto; }
.brand-words { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; }
.brand-name { font-size: 23px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; color: var(--brand-navy); }
.brand-sub { display: inline-flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 700; letter-spacing: .34em; line-height: 1; color: var(--brand-sub); }
.brand-sub-text { margin-right: -.34em; }
.brand-line { width: 12px; height: 1px; background: var(--brand-line); }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-sub { color: var(--accent-light); }
.brand-light .brand-line { background: #3d6b96; }
@media (max-width: 767px) {
  .brand-mark { height: 40px; }
  .brand-name { font-size: 19px; }
  .brand-sub { font-size: 8px; gap: 5px; }
  .brand-line { width: 9px; }
}

/* ---------- 고객용 머리글 ---------- */
/* 7차(시안 '공통 · 머리글'): 높이 92px · 메뉴 18px · 로고 60px(이전 48px의 1.25배, 글자도 비례) · 전화번호 두 줄.
   로고 크기는 머리글 안에서만 바꿈(바닥글 · 관리자 · 보고서 로고는 그대로). 좁은 PC 폭은 아래 단계에서 줄임 */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(10, 37, 64, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.site-header .brand-lockup { gap: 14px; }
.site-header .brand-mark { height: 60px; }
.site-header .brand-words { gap: 6px; }
.site-header .brand-name { font-size: 27px; }
.site-header .brand-sub { gap: 7px; font-size: 11px; }
.site-header .brand-line { width: 14px; }
/* 시안: 로고 | 메뉴(가운데) | 전화·접수 — 메뉴 양옆 여백을 똑같이 */
.gnb { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 24px; }
.gnb-list { display: flex; gap: 30px; margin: 0 auto; padding: 0; list-style: none; }
.gnb-list a { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; font-weight: 700; color: var(--text); white-space: nowrap; }
.gnb-list a:hover, .gnb-list a[aria-current="page"] { color: var(--primary); }
.gnb-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.gnb-actions .btn { min-height: 50px; padding: 0 22px; font-size: 16px; font-weight: 700; }
/* 전화: 아이콘 하나 + 번호 두 줄(번호마다 링크, 누르는 높이 24px). 아이콘은 첫째 번호 링크 안에 있고 두 줄의 가운데 왼쪽에 둠
   (둘째 번호가 없으면 한 줄만 — PHONE2_HIDDEN). 둘째 번호의 아이콘은 펼친 메뉴(960px 이하)에서만 보임 */
.header-call { position: relative; display: flex; flex-direction: column; justify-content: center; padding-left: 28px; }
.header-tel { display: flex; align-items: center; min-height: 24px; font-size: 17px; font-weight: 800; line-height: 1.2; color: var(--navy); white-space: nowrap; }
.header-tel:hover { color: var(--primary); }
.header-tel .ico { position: absolute; left: 0; top: 50%; margin-top: -10px; color: var(--primary); }
.header-tel-2 .ico { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--bg-soft); color: var(--navy); align-items: center; justify-content: center; }
.nav-toggle .ico-close { display: none; }
/* 좁은 PC(1240px 미만 — 1024 · 1100 등): 로고 · 메뉴 글자 · 간격 · 번호 글자를 한 단계 줄임 */
@media (max-width: 1239px) {
  .header-inner { gap: 20px; }
  .gnb { gap: 20px; }
  .gnb-list { gap: 22px; }
  .gnb-list a { font-size: 17px; }
  .gnb-actions { gap: 16px; }
  .gnb-actions .btn { padding: 0 18px; }
  .site-header .brand-lockup { gap: 12px; }
  .site-header .brand-mark { height: 54px; }
  .site-header .brand-name { font-size: 25px; }
  .site-header .brand-sub { gap: 6px; font-size: 10px; }
  .site-header .brand-line { width: 12px; }
  .header-call { padding-left: 26px; }
  .header-tel { font-size: 16px; }
}
/* 더 좁은 PC(1100px 이하 — 1024 등): 로고는 이전 크기(48px), 메뉴 16px, 번호 15px */
@media (max-width: 1100px) {
  .header-inner { gap: 16px; }
  .gnb { gap: 16px; }
  .gnb-list { gap: 16px; }
  .gnb-list a { font-size: 16px; }
  .site-header .brand-mark { height: 48px; }
  .site-header .brand-name { font-size: 23px; }
  .site-header .brand-words { gap: 5px; }
  .site-header .brand-sub { font-size: 9.5px; }
  .header-call { padding-left: 24px; }
  .header-tel { font-size: 15px; }
  .header-tel .ico { width: 18px; height: 18px; margin-top: -9px; }
}
/* 1024px 미만 PC: 번호 두 줄 대신 전화 아이콘(첫째 번호)만 — 누르는 영역 44×44px */
@media (max-width: 1023px) {
  .header-call { padding-left: 0; }
  .header-tel-num, .header-tel-2 { display: none; }
  .header-tel { justify-content: center; min-width: 44px; min-height: 44px; }
  .header-tel .ico { position: static; width: 20px; height: 20px; margin: 0; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .site-header .brand-lockup { gap: 11px; }
  .site-header .brand-line { width: 11px; }
  /* 펼친 메뉴: 화면이 낮으면(휴대폰 가로·확대) 메뉴 안에서 스크롤해 마지막 버튼까지 닿게 */
  .gnb { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s; }
  .site-header.nav-open .gnb { transform: none; opacity: 1; visibility: visible; }
  .site-header.nav-open .ico-open { display: none; }
  .site-header.nav-open .ico-close { display: inline; }
  .gnb-list { flex-direction: column; gap: 0; margin: 0; }
  .gnb-list a { width: 100%; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .gnb-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 16px; }
  /* 펼친 메뉴 안: 두 번호를 한 줄씩(번호마다 전화 아이콘) */
  .header-call { padding: 4px 16px; border-radius: 12px; background: var(--bg-soft); }
  .header-tel-num { display: inline; }
  .header-tel, .header-tel-2 { display: flex; justify-content: flex-start; gap: 10px; min-height: 48px; font-size: 18px; }
  .header-tel-2 { border-top: 1px solid var(--line); }
  .header-tel-2 .ico { display: block; }
  .gnb-actions .btn { min-height: 52px; }
}
@media (max-width: 767px) {
  /* 휴대폰 머리글 로고(시안 05 모바일): 48px — 바닥글 로고(40px)보다 크게 */
  .site-header .brand-sub { gap: 7px; }
}

/* ---------- 고객용 바닥글 ---------- */
.site-footer { padding: 56px 0 36px; background: var(--navy-deep); color: #8fa3b8; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; }
.footer-tagline { margin-top: 16px; line-height: 1.7; }
.footer-tagline b { color: var(--accent-light); }
/* 연락처 + 큐알 (나란히) */
.footer-contact { display: flex; align-items: flex-start; gap: 22px; }
.footer-contact-text { min-width: 0; }
.footer-label { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--accent-light); }
.footer-phones { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.footer-phones a { font-size: 24px; font-weight: 800; color: #fff; white-space: nowrap; }
.footer-phones a:hover { color: var(--accent-light); }
.footer-mail { margin-top: 6px; }
.footer-mail a { color: var(--on-dark); font-size: 15px; }
.biz-info { display: flex; flex-wrap: wrap; gap: 4px 14px; line-height: 1.7; }
.biz-info b { font-weight: 600; color: #b8c7d6; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; }
.footer-links a { color: var(--on-dark); min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
.footer-links a strong { color: #fff; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid #1c3350; font-size: 13px; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr); gap: 36px; } }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
/* 휴대폰: 시안(05 모바일) — 연락처·큐알을 어두운 카드 하나로, 지역 목록·이메일 줄은 사업자 정보로 */
@media (max-width: 767px) {
  .site-footer { padding: 40px 0 24px; font-size: 13px; }
  .footer-grid { gap: 18px; }
  .footer-tagline { margin-top: 18px; font-size: 14px; color: var(--on-dark); }
  .footer-area { display: none; }
  .footer-contact { align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #0f2a45; }
  .footer-label { font-size: 12px; }
  .footer-phones { gap: 0; margin-top: 2px; }
  .footer-phones a { display: inline-flex; align-items: center; min-height: 44px; font-size: 20px; }
  .footer-mail { display: none; }
  .footer-qr .qr-svg { width: 84px; height: 84px; }
  .footer-links { gap: 0 16px; margin-top: 6px; }
  .footer-bottom { margin-top: 16px; padding-top: 16px; }
}

/* ---------- 큐알 코드 (공통: 바닥글·회사소개) ----------
   <a class="qr-link"><span class="qr-box">{{QR_SVG}}</span><span class="qr-note">{{QR_CAPTION}}</span></a>
   ({{QR_SVG}} 자체: .qr-svg = 96px, 흰 여백 4칸 포함. 메인 연락처 카드는 site.css 의 .qr-figure/.qr-frame 사용) */
.qr-link { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; border-radius: 12px; color: inherit; }
.qr-box { display: block; overflow: hidden; border-radius: 12px; background: #fff; line-height: 0; box-shadow: 0 6px 16px rgba(0, 0, 0, .12); transition: box-shadow .15s, transform .15s; }
a.qr-link:hover .qr-box { box-shadow: 0 10px 24px rgba(0, 0, 0, .22); transform: translateY(-1px); }
.qr-svg { display: block; width: 96px; height: 96px; max-width: none; background: #fff; }
.qr-img { object-fit: contain; }
.qr-note { font-size: 12px; font-weight: 700; line-height: 1.4; color: var(--muted); text-align: center; }
.footer-qr .qr-note { color: var(--on-dark-muted); }
a.qr-link:hover .qr-note { text-decoration: underline; text-underline-offset: 2px; }

/* 모바일 하단 고정 버튼 */
.mobile-bar { display: none; }
@media (max-width: 767px) {
  body.has-mobile-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(10, 37, 64, .08); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; border-radius: 12px; font-size: 16px; font-weight: 800; }
  .mobile-bar-call { background: var(--navy); color: #fff; }
  .mobile-bar-call:hover { color: #fff; }
  .mobile-bar-write { background: var(--accent); color: var(--navy); }
  .mobile-bar-write:hover { color: var(--navy); }
  .toast-wrap { bottom: calc(96px + env(safe-area-inset-bottom)); }
  /* 키보드 초점·이동 위치가 하단 고정 바(약 69px)에 가리지 않게 */
  html:has(.mobile-bar) { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  /* 10차: 바 앞쪽 당근 · 블로그(52px 칸 — 그림 위 · 글자 아래). 주소가 있는 것만(sns-2 · sns-1) — 시안 05-2 */
  .mobile-bar.sns-2 { grid-template-columns: 52px 52px minmax(0, 1fr) minmax(0, 1fr); }
  .mobile-bar.sns-1 { grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr); }
  .mobile-bar a[hidden] { display: none; }
  .mobile-bar.sns-1 a, .mobile-bar.sns-2 a { font-size: 15px; letter-spacing: -0.02em; }
  .mobile-bar a.mobile-bar-sns { flex-direction: column; gap: 2px; padding: 0; border: 1px solid transparent; font-size: 11.5px; line-height: 1.1; }
  .mobile-bar a.mobile-bar-daangn { background: #fff6ef; border-color: #f6d8c4; color: #c2410c; }
  .mobile-bar a.mobile-bar-daangn:hover { color: #9a3412; }
  .mobile-bar a.mobile-bar-blog { background: #eefaf3; border-color: #c7ead6; color: #047a3c; }
  .mobile-bar a.mobile-bar-blog:hover { color: #035d2e; }
  .mobile-bar .ico-sns { width: 22px; height: 22px; flex-shrink: 0; }
}
/* 아주 좁은 휴대폰(360px 아래): 전화 상담 · 온라인 접수 글자 · 그림을 조금 줄여 한 줄에 */
@media (max-width: 359px) {
  .mobile-bar.sns-1 a:not(.mobile-bar-sns), .mobile-bar.sns-2 a:not(.mobile-bar-sns) { gap: 4px; font-size: 13.5px; }
  .mobile-bar.sns-1 a:not(.mobile-bar-sns) .ico, .mobile-bar.sns-2 a:not(.mobile-bar-sns) .ico { width: 16px; height: 16px; }
}

/* 9차: 추천하기 — 휴대폰 고객용 화면 오른쪽 아래, 하단 바(약 69px) 위 16px. 시안 05-1(흰 바탕 · 파란 글자 64×64).
   누르면 휴대폰 공유 창(public/assets/js/main.js). PC · 태블릿 폭과 인쇄에서는 숨김 */
.share-fab { display: none; }
@media (max-width: 767px) {
  .share-fab:not([hidden]) { position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 85; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 64px; height: 64px; padding: 0; border: 1px solid #cfe0f2; border-radius: 18px; background: #fff; color: var(--primary); box-shadow: 0 8px 22px rgba(10, 37, 64, .28); font: inherit; font-size: 11.5px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .share-fab .ico { width: 24px; height: 24px; stroke-width: 2.1; }
  .share-fab:hover { border-color: var(--primary); }
  .share-fab:active { transform: scale(.96); }
  /* 글을 입력하는 동안(휴대폰 자판이 열려 있을 때)은 입력 칸을 가리지 않게 숨김 — 복사용 임시 칸(.share-copy-buf)은 빼고 */
  body:has(:is(input:not([type=checkbox], [type=radio], [type=button], [type=submit], [type=reset], [type=range], [type=color], [type=file]), textarea:not(.share-copy-buf), [contenteditable=true]):focus) .share-fab { display: none; }
  /* 알림 띠는 버튼 위로, 맨 아래까지 내렸을 때 바닥글 마지막 줄과 초점 위치도 버튼에 가리지 않게 */
  body.has-share-fab .toast-wrap { bottom: calc(160px + env(safe-area-inset-bottom)); }
  body.has-share-fab .site-footer { padding-bottom: 96px; }
  html:has(.share-fab:not([hidden])) { scroll-padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
}
/* 10차: 당근 · 블로그 바로 가기 — PC · 태블릿(768px 이상) 화면 오른쪽 아래(아래에서 24px, 위에서부터 당근 · 블로그). 시안 05-2.
   휴대폰 폭에서는 아래 고정 바(.mobile-bar-sns)에 있으므로 숨김 · 인쇄에서도 숨김 */
.sns-fab { display: none; }
.ico-sns { display: inline-block; vertical-align: middle; }
@media (min-width: 768px) {
  .sns-fab:not([hidden]) { position: fixed; right: calc(24px + env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 85; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
  /* 묶음은 누르기를 통과시키고(두 단추 사이 틈 아래도 눌리게) 단추만 받음 */
  .sns-fab-btn { pointer-events: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 64px; height: 64px; box-sizing: border-box; border: 1px solid; border-radius: 18px; background: #fff; box-shadow: 0 8px 22px rgba(10, 37, 64, .28); font-size: 11.5px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; transition: transform .15s, border-color .15s; }
  .sns-fab-btn[hidden] { display: none; }
  .sns-fab-btn:hover { transform: translateY(-2px); }
  .sns-fab-btn .ico-sns { width: 24px; height: 24px; }
  .sns-fab-daangn { border-color: #f3d3c0; color: #c2410c; }
  .sns-fab-daangn:hover { border-color: #ff7e36; color: #9a3412; }
  .sns-fab-blog { border-color: #c7ead6; color: #047a3c; }
  .sns-fab-blog:hover { border-color: #03c75a; color: #035d2e; }
  /* 화면이 1400px 보다 좁으면 버튼이 바닥글 오른쪽 끝(사업자 정보 · 링크)과 겹칠 수 있어 맨 아래에서 바닥글을 버튼 높이만큼 올림 */
  html:has(.sns-fab:not([hidden])) { scroll-padding-bottom: 176px; }
}
@media (min-width: 768px) and (max-width: 1399px) {
  body:has(.sns-fab:not([hidden])) .site-footer { padding-bottom: 104px; }
}

/* 복사용 임시 칸(공유 창이 없는 브라우저) — 화면에 보이지 않게 */
.share-copy-buf { position: fixed; top: 0; left: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; font-size: 16px; pointer-events: none; }
.share-toast { display: flex; align-items: flex-start; gap: 12px; }
.share-toast .ico { flex-shrink: 0; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--accent); color: var(--navy); stroke-width: 3; }
.share-toast-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.share-toast-text b { font-size: 15px; font-weight: 800; }
.share-toast-text span { font-size: 13.5px; font-weight: 500; line-height: 1.55; color: var(--on-dark); overflow-wrap: anywhere; }

/* ---------- 관리자 상단 바 (공통) ---------- */
.admin-bar { position: sticky; top: 0; z-index: 100; background: var(--navy); color: #fff; }
/* 3차: 메뉴 5개(접수 내역 · 견적·청구 · 완료보고서 · 홈페이지 사진 · 작업자 · 알림 설정)가 1440 에 한 줄로 들어가게
   시안 AdminBar 의 글자 15px · 좌우 여백 10px · 아이콘 18px · 아이콘 간격 6px · 머리 간격 20px */
.admin-bar-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; padding: 0 40px; max-width: 1600px; margin: 0 auto; }
.admin-brand { gap: 10px; min-height: 44px; }
.admin-brand .brand-mark { height: 42px; }
.admin-brand .brand-name { font-size: 20px; }
.admin-pill { padding: 4px 10px; border-radius: 999px; background: var(--navy-2); color: var(--accent-light); font-size: 12px; font-weight: 800; }
.admin-tabs { display: flex; align-self: stretch; gap: 2px; }
.admin-tab { display: flex; align-items: center; gap: 6px; padding: 3px 10px 0; border-bottom: 3px solid transparent; color: var(--on-dark-muted); font-size: 15px; font-weight: 700; white-space: nowrap; }
.admin-tab .ico { width: 18px; height: 18px; }
.admin-tab:hover { color: #fff; }
.admin-tab-short { display: none; }
body[data-admin-tab="posts"] .admin-tab[data-tab="posts"],
body[data-admin-tab="billing"] .admin-tab[data-tab="billing"],
body[data-admin-tab="reports"] .admin-tab[data-tab="reports"],
body[data-admin-tab="gallery"] .admin-tab[data-tab="gallery"],
body[data-admin-tab="settings"] .admin-tab[data-tab="settings"] { color: #fff; font-weight: 800; border-bottom-color: var(--accent); }
.admin-bar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.admin-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; color: var(--on-dark); font-size: 15px; font-weight: 700; }
.admin-link:hover { color: #fff; }
.admin-brand, .admin-bar-actions { flex-shrink: 0; }
.admin-link { white-space: nowrap; }
/* 키보드 초점·이동 위치가 위에 붙은 관리자 바(72px, 1100px 이하는 두 줄 104px)에 가리지 않게 */
html:has(.admin-bar) { scroll-padding-top: 84px; }
@media (max-width: 1100px) { html:has(.admin-bar) { scroll-padding-top: 116px; } }
/* 메뉴 5개가 한 줄에 들어가도록 좁은 PC 에서는 로고 글자를 숨기고 간격을 줄임 */
@media (max-width: 1279px) {
  .admin-bar-inner { gap: 16px; padding: 0 24px; }
  .admin-brand .brand-words { display: none; }
}
@media (max-width: 1100px) {
  .admin-bar-inner { flex-wrap: wrap; gap: 0 16px; padding: 8px 16px 0; }
  .admin-tabs { order: 3; width: 100%; overflow-x: auto; min-height: 52px; }
  .admin-tab { white-space: nowrap; padding: 0 12px; font-size: 15px; }
  .admin-link { display: none; }
  .admin-brand .brand-words { display: none; }
}
/* 태블릿 세로 아래: 아이콘을 빼고 '작업자 · 알림 설정'은 '설정'으로 */
@media (max-width: 767px) {
  .admin-tab { gap: 4px; padding: 0 10px; }
  .admin-tab .ico { display: none; }
  .admin-tab[data-tab="settings"] .admin-tab-full { display: none; }
  .admin-tab[data-tab="settings"] .admin-tab-short { display: inline; }
}
/* 휴대폰: 메뉴 5개가 한 줄에 들어가도록 '완료보고서'→'보고서', '홈페이지 사진'→'사진'도 줄여 표시(읽기 프로그램은 aria-label 의 전체 이름) */
@media (max-width: 599px) {
  .admin-tabs { gap: 0; }
  .admin-tab { flex: 1 1 auto; justify-content: center; font-size: 14px; }
  .admin-tab-full { display: none; }
  .admin-tab-short { display: inline; }
  /* 짧은 이름 칸도 누르는 곳 44px 이상 */
  .admin-tab { min-width: 44px; padding: 0 4px; }
}
/* 320 대 휴대폰: 메뉴 5개(접수 내역 + 새 접수 배지)가 메뉴 줄 안에서 잘리지 않게 글자를 조금 줄임 */
@media (max-width: 359px) {
  .admin-tab { font-size: 13px; }
  .admin-tab .count-badge { padding: 0 5px; }
}

/* 17차 관리자 앱 (시안 12-2) */
/* 관리자 막대 오른쪽 위 [앱 설치](휴대폰) · [휴대폰 앱](PC) 단추(views/partials/admin-bar.html — 처음 hidden, admin-app.js 가 판정해 드러냄)와
   누르면 뜨는 안내 창(.app-dlg — admin-app.js 가 처음 누를 때 만듦). /admin/reports 는 admin.css 를 읽지 않으므로 여기(base.css)에 둠.
   폭(지도 front.md 4-3 측정 — 넘치면 막대가 3줄이 되어 sticky 높이가 어긋남): 단추가 보일 때만 — admin-app.js 가 단추를 드러낼 때 막대 묶음에 붙이는
   .has-app-btn 으로 고름(:has() 를 모르는 브라우저도 같게 · 단추가 숨으면 표시도 떼어 막대는 16차와 같음)
   휴대폰(599px 이하)은 로그아웃 아이콘을 빼고 두 단추 좌우 12px · 간격 6px, 320 대(359px 이하)는 [앱 설치] 아이콘도 뺌 → 320~430 모두 1줄(로고 + 단추) + 메뉴 1줄.
   PC 모드(마우스 — 글 '휴대폰 앱'이 더 김)의 359px 이하(PC 창 400% 확대 등)는 [휴대폰 앱]을 아이콘 단추(44×44 — 글은 화면 읽기용으로만 남김)로.
   PC 1줄 막대(1101px 이상)는 실제로 넘치는 폭에서만 아이콘 단추로 — 글 단추로 1085~1600px 를 1px 간격으로 잰 넘침 구간
   (윈도 스크롤 막대 17px · 새 접수 배지 '99' 까지 넣은 가장 좁은 경우: 1101~1196 · 1280~1372 — 1101 은 두 줄→한 줄, 1280 은 로고 글자가 나오는 경계)에
   끝쪽 8px 여유 → 1101~1204 · 1280~1380(재기: hbcc-scratch/v17/rv/fix-widths). 그 밖의 폭은 글 '휴대폰 앱' 그대로.
   시작 경계는 1100.02 · 1279.02px — 윈도 배율 110%·125% · 브라우저 확대에서는 창 폭이 1279.09px 처럼 소수가 되어 위 16차 규칙
   (max-width: 1100px · 1279px)과 1101 · 1280 사이가 비고, 그 틈(로고 글자가 나온 1줄 막대)에서 글 단추가 넘침(17차 검토 뒤 재검토 — rv/fix-rebut).
   정수 폭에서는 1101 · 1280 과 같음 */
.admin-app-btn { flex-shrink: 0; }
@media (max-width: 599px) {
  .admin-bar-actions.has-app-btn { gap: 6px; }
  .admin-bar-actions.has-app-btn .btn-sm { padding: 0 12px; }
  .admin-bar-actions.has-app-btn [data-admin-logout] .ico { display: none; }
}
@media (max-width: 359px) {
  .admin-bar-actions.has-app-btn .admin-app-btn[data-app-mode="mobile"] .ico { display: none; }
  .admin-bar-actions.has-app-btn .admin-app-btn[data-app-mode="pc"] { width: 44px; min-width: 44px; padding: 0; }
  .admin-bar-actions.has-app-btn .admin-app-btn[data-app-mode="pc"] .admin-app-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 1100.02px) and (max-width: 1204px), (min-width: 1279.02px) and (max-width: 1380px) {
  .admin-app-btn { width: 44px; min-width: 44px; padding: 0; }
  .admin-app-btn .admin-app-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* 아이콘 단추로도 넘치는 폭(같은 가장 좁은 경우로 잰 1101~1123 · 1280~1299 + 끝쪽 8px)은 단추 묶음의 간격 · 좌우 여백만 조금 줄임
   (간격 8→4 · 사이트 보기 12→6 · 로그아웃 16→10 — 32px, 누르는 곳 높이 44px 그대로) */
@media (min-width: 1100.02px) and (max-width: 1131px), (min-width: 1279.02px) and (max-width: 1307px) {
  .admin-bar-actions.has-app-btn { gap: 4px; }
  .admin-bar-actions.has-app-btn .admin-link { padding: 0 6px; }
  .admin-bar-actions.has-app-btn [data-admin-logout] { padding: 0 10px; }
}
/* 앱(홈 화면 아이콘)으로 열면 스크립트가 돌기 전에도 숨김(깜빡임 없게) */
@media (display-mode: standalone) {
  .admin-app-btn { display: none !important; }
}
/* 안내 창(아이폰 · 앱 안 브라우저 · 안드로이드 손으로 설치 · PC QR) — 관리자 창(admin.css .sys-dlg)과 같은 모양을 .app-dlg 로 따로 둠.
   휴대폰(599px 이하)은 화면 아래에 붙어 올라오는 시트(아이폰 홈 막대 자리만큼 아래 여백) */
.app-dlg { width: min(560px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; border: 0; border-radius: 22px; background: #fff; color: var(--text); box-shadow: 0 28px 72px rgba(7, 26, 46, .38); }
.app-dlg::backdrop { background: rgba(7, 26, 46, .46); }
.app-dlg-wide { width: min(700px, calc(100vw - 32px)); }
.app-dlg-box { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); }
.app-dlg-head { display: flex; flex-shrink: 0; align-items: center; gap: 14px; padding: 24px 28px 0; }
.app-dlg-ico { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--primary); }
.app-dlg-title { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.app-dlg-body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 14px; min-height: 0; padding: 18px 28px 0; overflow-y: auto; color: var(--text-2); font-size: 15px; line-height: 1.65; }
.app-dlg-body b { color: var(--navy); font-weight: 800; }
.app-dlg-steps { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.app-dlg-steps li { display: flex; align-items: flex-start; gap: 10px; }
.app-dlg-steps .ico { width: 18px; height: 18px; margin: 0 2px 0 4px; color: var(--primary); }
.app-dlg-num { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; font-weight: 900; line-height: 1; }
.app-dlg-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding-left: 20px; }
.app-dlg-lead { color: var(--navy); font-weight: 800; }
.app-dlg-note { color: var(--muted); font-size: 13px; line-height: 1.6; }
.app-dlg-url { padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); color: var(--navy); font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.app-dlg-url-text { -webkit-user-select: all; user-select: all; } /* 복사가 막힌 앱 안 브라우저 — 길게 누르면 주소 전체가 골라짐 */
.app-dlg-msg { color: var(--success); font-size: 14px; font-weight: 700; line-height: 1.55; }
.app-dlg-msg.is-error { color: var(--danger); }
/* 결과 글(role=status · aria-live)은 빈 때도 접근성 트리에 남겨 둠(display:none 이면 글이 들어와도 화면 읽기가 알리지 않을 수 있음) —
   자리만 차지하지 않게(높이 0 · 창 본문 간격 0: 절대 위치는 flex 간격에 들지 않음) */
.app-dlg-msg:empty { position: absolute; margin: 0; }
.app-dlg-qr-wrap { display: flex; align-items: flex-start; gap: 24px; }
.app-dlg-qr { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; gap: 8px; }
.app-dlg-qr .qr-svg { width: 168px; height: 168px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.app-dlg-qr-cap { color: var(--muted); font-size: 13px; font-weight: 700; }
.app-dlg-qr-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.app-dlg-foot { display: flex; flex-shrink: 0; justify-content: flex-end; gap: 10px; margin-top: 22px; padding: 16px 28px; background: var(--bg-soft); }
.app-dlg-foot .btn { min-height: 48px; padding: 0 22px; font-size: 15px; }
.app-dlg-foot.is-full .btn { flex: 1; }
@keyframes app-sheet-up { from { transform: translateY(32px); opacity: .5; } }
@media (max-width: 599px) {
  .app-dlg, .app-dlg-wide { width: 100%; max-width: 100%; max-height: 90vh; max-height: 90dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .app-dlg-box { max-height: 90vh; max-height: 90dvh; }
  .app-dlg-head { gap: 12px; padding: 20px 18px 0; }
  .app-dlg-ico { width: 40px; height: 40px; }
  .app-dlg-title { font-size: 19px; }
  .app-dlg-body { padding: 14px 18px 0; }
  .app-dlg-foot { margin-top: 18px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); }
  .app-dlg-foot .btn { flex: 1; padding: 0 12px; }
  .app-dlg-qr-wrap { flex-direction: column; align-items: center; gap: 16px; }
  .app-dlg[open] { animation: app-sheet-up .22s ease-out; }
}
@media (prefers-reduced-motion: reduce) { .app-dlg[open] { animation: none; } }

/* 인쇄 공통 */
@media print {
  .site-header, .site-footer, .mobile-bar, .share-fab, .sns-fab, .admin-bar, .toast-wrap, .no-print { display: none !important; }
  body { padding: 0 !important; }
}

/* ---------- 제품별 대수 선택기 (4차 — public/assets/js/qty-picker.js, 고객 접수 양식 · 관리자 접수 상세 공용) ----------
   <div class="qty-step" data-qty-step role="group">
     <button class="qty-step-btn" data-qty="dec">−</button><input class="qty-step-num" data-qty="num"><button class="qty-step-btn" data-qty="inc">+</button>
   </div>
   - 기본(카드 아래): 3차 작업자 '청구 내역 확인'(.bill-stepper)과 같은 모양 — 테두리 1.5px · 모서리 12px · 단추 44×44 연회색 바탕 · 아이콘 18px 선 2.6
     · 숫자 17px 굵게. 카드 폭에 맞춰 늘어남(단추 44px 고정, 숫자 칸이 나머지 · 최소 28px)
   - .qty-step-bare: 관리자 휴대폰 칩 안(테두리 · 바탕 없음, 앞에 세로 구분선, 숫자 칸 28px · 16px)
   - 99대 · 999대에서 [+] 는 aria-disabled="true"(누르면 안내만, 회색)
   - 체크된 카드는 화면 코드가 class "is-on" 을 붙임(테두리 · 바탕은 각 페이지 css 의 카드 규칙) */
.qty-step { display: flex; align-items: center; min-width: 0; overflow: hidden; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; }
.qty-step-btn { display: flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; background: var(--bg-soft); color: var(--primary); }
.qty-step-btn:hover { background: var(--tint); }
.qty-step-btn[aria-disabled="true"], .qty-step-btn[aria-disabled="true"]:hover { background: var(--bg-soft); color: #b8c5d2; cursor: not-allowed; }
.qty-step-btn:disabled { color: #b8c5d2; cursor: not-allowed; }
.qty-step-btn .ico { width: 18px; height: 18px; stroke-width: 2.6; }
.qty-step-num {
  flex: 1 1 auto; width: 28px; min-width: 28px; height: 44px; padding: 0; border: 0; border-radius: 0; background: #fff;
  font-size: 17px; font-weight: 800; line-height: 44px; color: var(--navy); text-align: center; font-variant-numeric: tabular-nums;
}
/* 묶음이 overflow:hidden 이라 초점 테두리는 안쪽에 그림 */
.qty-step-btn:focus-visible, .qty-step-num:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: 10px; }
.qty-step-num[readonly] { color: var(--text-2); }
/* 관리자 휴대폰 칩 안 */
.qty-step-bare { flex-shrink: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.qty-step-bare::before { content: ''; flex: 0 0 1px; width: 1px; height: 24px; background: var(--line-strong); }
.qty-step-bare .qty-step-btn { background: transparent; }
.qty-step-bare .qty-step-btn:hover { background: var(--tint); }
.qty-step-bare .qty-step-btn[aria-disabled="true"], .qty-step-bare .qty-step-btn[aria-disabled="true"]:hover { background: transparent; }
.qty-step-bare .qty-step-btn:last-child { border-radius: 0 999px 999px 0; }
.qty-step-bare .qty-step-num { flex: 0 0 28px; background: transparent; font-size: 16px; }
/* 나타날 때 0.15초 흐려짐 → 또렷함('동작 줄이기'면 바로 — 위 공통 reduce 규칙) */
.qty-step-in { animation: qty-step-in .15s ease-out; }
@keyframes qty-step-in { from { opacity: 0; } to { opacity: 1; } }
/* 아주 좁은 휴대폰(가로 360px 미만): 단추 40px */
@media (max-width: 359px) {
  .qty-step-btn { flex-basis: 40px; width: 40px; height: 40px; }
  .qty-step-num { height: 40px; line-height: 40px; }
}

/* 합계 칸(<output> — renderQtyTotal): '합계 3대' + 제품별 대수 한 줄, 제품이 없으면 회색 안내 */
.qty-total { display: flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 4px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.qty-total-num { font-size: 18px; font-weight: 800; line-height: 1.25; color: var(--navy); font-variant-numeric: tabular-nums; }
.qty-total-detail { font-size: 13px; line-height: 1.35; color: var(--muted); }
/* 시안의 #8a99a8 은 연회색 바탕에서 대비 2.7:1 이라 글자 대비 4.5:1 을 넘는 --muted 로 */
.qty-total-empty { font-size: 15px; line-height: 1.4; color: var(--muted); }
/* 도움말: 99대에서 [+] 를 누르면 빨강(qty-picker 가 class "is-limit") */
.qty-help { font-size: 13px; line-height: 1.55; color: var(--muted); }
.qty-help.is-limit { font-weight: 700; color: var(--danger); }
/* 이름 옆 대수 표시('2대' — 접수 완료 칩 · 작업자 칩 등) */
.qty-badge { font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
