/* 아일랜드이너프 예약 — 화면 스타일
   위쪽은 공통(색, 글자, 카드, 버튼, 입력칸), 가운데는 고객 예약 화면, 아래쪽은 관리자 화면 */

:root {
  --bg: #f4f1ea;
  --card: #ffffff;
  --sand: #f8f6f1;
  --ink: #17231e;
  --ink-2: #3b4a44;
  --muted: #74807a;
  --line: #e9e4da;
  --line-strong: #d9d3c6;
  /* 대표 색(--green 계열)은 사이트마다 바꿀 수 있다. 아래 [data-theme] 참고 */
  --green: #2f6b55;
  --green-deep: #1d4a3a;
  --green-soft: #eaf2ee;
  --green-rgb: 47, 107, 85;
  --deep-rgb: 29, 74, 58;
  --tint: #e3ece6;
  --light: #7fb39c;
  --brown: #9a6a4e;
  --red: #c0392b;
  --shadow: 0 1px 2px rgba(23, 35, 30, 0.04), 0 14px 34px -18px rgba(23, 35, 30, 0.2);
  --ease: cubic-bezier(0.22, 0.8, 0.26, 1);
}

/* 색상 테마 (설정 > 사이트 정보 > 색상). 기본은 포레스트 그린 */
[data-theme='navy'] { --green: #2f5b8f; --green-deep: #1c3557; --green-soft: #e9eff7; --green-rgb: 47, 91, 143; --deep-rgb: 28, 53, 87; --tint: #e1e8f1; --light: #8fb0d6; }
[data-theme='wine'] { --green: #8c3a4c; --green-deep: #5e2231; --green-soft: #f6eaed; --green-rgb: 140, 58, 76; --deep-rgb: 94, 34, 49; --tint: #f0e2e5; --light: #cf93a1; }
[data-theme='charcoal'] { --green: #4a5057; --green-deep: #24282d; --green-soft: #ecedef; --green-rgb: 74, 80, 87; --deep-rgb: 36, 40, 45; --tint: #e6e7e9; --light: #a3a9b0; }
[data-theme='mocha'] { --green: #86603f; --green-deep: #573a22; --green-soft: #f4ece4; --green-rgb: 134, 96, 63; --deep-rgb: 87, 58, 34; --tint: #eee4d9; --light: #c9a27e; }

* { box-sizing: border-box; }
/* 두 번 탭해도 확대되지 않게 한다. 두 손가락 확대는 그대로 된다. */
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body {
  margin: 0;
  background: radial-gradient(900px 360px at 50% -120px, var(--tint) 0, transparent 70%), var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.wrap { max-width: 560px; margin: 0 auto; padding: 28px 16px 120px; transition: opacity 0.22s ease, transform 0.22s ease; }
.wrap.wide { max-width: 980px; }
/* 다음 화면으로 넘어가기 직전에 부드럽게 사라진다 */
body.leaving .wrap { opacity: 0; transform: translateY(-10px); }
.hidden { display: none !important; }
/* 고객 화면 맨 위의 한 줄 공지 */
.notice-bar { background: var(--green-deep); color: #fff; font-size: 13px; font-weight: 600; text-align: center; padding: 9px 16px; line-height: 1.45; }

.brand { color: var(--green); font-size: 12px; letter-spacing: 0.28em; font-weight: 700; }
a.brand { display: inline-block; padding: 4px 0; text-decoration: none; }
h1 { font-size: 28px; line-height: 1.25; letter-spacing: -0.03em; font-weight: 800; margin: 8px 0 6px; }
h2 { font-size: 18px; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h2 .num { width: 26px; height: 26px; border-radius: 50%; background: var(--green-deep); color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
h3 { font-size: 15px; letter-spacing: -0.01em; margin: 20px 0 10px; }
.hero { margin-bottom: 20px; }

/* 예약 신청 맨 위의 지점 사진 (showcase.js): 지점마다 한 장씩 3초 간격으로 겹쳐지며 넘어간다 */
.showcase { position: relative; aspect-ratio: 16 / 10; max-width: 100%; margin: 0 0 24px; border-radius: 20px; overflow: hidden; background: #d9d4c9; isolation: isolate; box-shadow: 0 14px 32px -22px rgba(23, 35, 30, 0.55); touch-action: pan-y; }
.showcase .shot { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.showcase .shot.on { opacity: 1; z-index: 1; }
.showcase img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.01); transition: opacity 0.6s ease, transform 4.5s ease-out; -webkit-user-drag: none; user-select: none; }
.showcase img.ready { opacity: 1; }
.showcase .shot.on img { transform: scale(1.07); }
.showcase::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(10, 20, 16, 0) 52%, rgba(10, 20, 16, 0.62)); }
.showcase .cap { position: absolute; left: 18px; bottom: 16px; z-index: 3; color: #fff; text-decoration: none; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3); }
.showcase .cap small { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; opacity: 0.88; margin-bottom: 2px; }
.showcase .cap span { display: inline-flex; align-items: center; gap: 2px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.showcase .cap .icon { opacity: 0.8; transition: transform 0.2s var(--ease); }
.showcase .cap:hover .icon { transform: translateX(3px); }
.showcase .dots { position: absolute; right: 10px; bottom: 12px; z-index: 3; display: flex; }
.showcase .dot { width: 22px; height: 28px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.showcase .dot::after { content: ''; width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.5); transition: width 0.35s var(--ease), background 0.35s; }
.showcase .dot[aria-current="true"]::after { width: 18px; background: #fff; }
.hero h1 { margin-top: 0; }
/* 예약이 진행되는 순서: 예약 신청 → 예약 승인 → 결제 → 예약 확정 */
.flowline { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; margin: 14px 0 0; padding: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.flowline li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.flowline li b { width: 19px; height: 19px; border-radius: 50%; background: var(--green-soft); color: var(--green-deep); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.flowline li + li::before { content: ''; width: 6px; height: 6px; border-top: 1.5px solid var(--line-strong); border-right: 1.5px solid var(--line-strong); transform: rotate(45deg); margin: 0 6px 0 2px; }
.lead { color: var(--ink-2); font-size: 15px; margin: 0; }
.muted { color: var(--muted); font-size: 13px; }
.nw { white-space: nowrap; }
.unit { display: inline-block; } /* 괄호 안 글자처럼 한 덩어리로 줄이 바뀌어야 하는 곳 */
/* 줄바꿈: 마지막 줄에 한두 낱말만 남지 않게 하고, 제목과 짧은 안내는 줄 길이를 고르게 나눈다 (지원하지 않는 브라우저에서는 예전처럼 보인다) */
body { text-wrap: pretty; }
h1, h2, h3, .lead { text-wrap: balance; }
.error, .field-error { white-space: pre-line; } /* 안내가 두 문장이면 문장 단위로 줄을 나눈다 */
a { color: var(--green-deep); }
.error { color: var(--red); font-size: 14px; margin: 8px 0; min-height: 1em; }

.card { background: var(--card); border: 1px solid rgba(23, 35, 30, 0.05); border-radius: 22px; padding: 22px 20px; margin-bottom: 16px; box-shadow: var(--shadow); scroll-margin-top: 12px; }
.note { background: var(--green-soft); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; margin-top: 12px; }
.warn { background: #fbf3e6; color: #7a4b12; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 7px; background: var(--green-deep); color: #fff; vertical-align: 2px; }
.icon { display: block; }
ul.plain { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
ul.plain li { position: relative; padding-left: 14px; margin-bottom: 6px; }
ul.plain li::before { content: ''; position: absolute; left: 2px; top: 0.72em; width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }

/* 버튼 */
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.btn { border: 1px solid var(--line-strong); background: #fff; border-radius: 14px; padding: 11px 16px; min-height: 48px; font-weight: 600; transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn.primary { background: var(--green-deep); border-color: var(--green-deep); color: #fff; box-shadow: 0 12px 22px -14px rgba(var(--deep-rgb), 0.9); }
.btn.danger { color: var(--red); }
.btn.small { min-height: 38px; padding: 6px 12px; font-size: 14px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn.cta { min-height: 58px; font-size: 17px; border-radius: 18px; letter-spacing: -0.01em; }
a.btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn.loading { color: transparent !important; position: relative; opacity: 1; }
.btn.loading::after { content: ''; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.7s linear infinite; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink-2); transition: transform 0.15s var(--ease), opacity 0.2s; }
.icon-btn:active:not(:disabled) { transform: scale(0.92); }
.icon-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* 입력칸 */
.field { display: block; margin-bottom: 16px; }
.field span:first-child { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field span:first-child em { font-style: normal; font-weight: 400; color: var(--muted); }
.field span:first-child em.req { color: var(--red); font-weight: 600; }
input[type='text'], input[type='tel'], input[type='number'], input[type='password'], input[type='date'], select, textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 14px; padding: 12px 14px; background: #fff; min-height: 52px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
select {
  -webkit-appearance: none; appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2374807a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #b3b9b5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(var(--green-rgb), 0.14); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
input[readonly] { background: var(--sand); color: var(--muted); }
.invalid { border-color: var(--red) !important; background: #fdf4f3 !important; }
.field-error { display: block; color: var(--red); font-size: 13px; margin-top: 6px; animation: rise 0.3s var(--ease) both; }
.verify-msg { display: block; font-size: 13px; margin-top: 6px; color: var(--muted); }
.verify-msg:empty { display: none; }
.verify-msg.ok { color: var(--green); font-weight: 600; }
.verify-msg.bad { color: var(--red); }
.row { display: flex; gap: 8px; align-items: center; }
.row > * { flex: 1; min-width: 0; }
.row > .fit { flex: none; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.check.small { padding: 10px 0 0; font-size: 14px; align-items: center; }
.check input, .option input {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin: 1px 0 0; flex: none; border-radius: 8px;
  border: 1.5px solid var(--line-strong); background: #fff center / 15px no-repeat; transition: background-color 0.2s, border-color 0.2s; cursor: pointer;
}
.check input:checked, .option input:checked {
  background-color: var(--green-deep); border-color: var(--green-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* 요금 내역 */
.receipt { background: var(--sand); border-radius: 16px; padding: 6px 16px; }
.bill { width: 100%; border-collapse: collapse; }
.bill td { padding: 9px 0; font-variant-numeric: tabular-nums; }
.bill td:last-child { text-align: right; white-space: nowrap; font-weight: 600; padding-left: 12px; }
.bill tr.sub td { border-top: 1px dashed var(--line-strong); color: var(--ink-2); }
.bill tr.total td { border-top: 1.5px solid var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; padding: 14px 0 12px; }

/* 예약 정보 (고객 접수 화면과 관리자 카드가 같이 쓴다) */
.info { display: grid; grid-template-columns: 84px 1fr; gap: 10px 12px; margin: 0 0 16px; }
.info dt { color: var(--muted); }
.info dt::after { content: ' :'; }
.info dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.big { font-size: 30px; line-height: 1.2; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.account { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--sand); border-radius: 16px; padding: 14px 16px; margin: 12px 0 8px; }
.account > span { min-width: 0; }
.account .btn { flex: none; white-space: nowrap; } /* "계좌 복사"가 두 줄로 꺾이지 않게 */

/* ───────── 고객 예약 화면 ───────── */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; pointer-events: none; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--light)); border-radius: 0 3px 3px 0; transition: width 0.6s var(--ease); }

/* 새로 열리는 단계는 아래에서 부드럽게 올라온다 */
.reveal { animation: rise 0.55s var(--ease) both; }
#rest.reveal { animation: none; }
#rest.reveal > section { animation: rise 0.55s var(--ease) both; }
#rest.reveal > section:nth-child(2) { animation-delay: 0.06s; }
#rest.reveal > section:nth-child(3) { animation-delay: 0.12s; }
#rest.reveal > section:nth-child(4) { animation-delay: 0.18s; }
#rest.reveal > section:nth-child(5) { animation-delay: 0.24s; }
.enter { animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 0.07s); }

/* 맨 위 메뉴: 예약 신청 · 예약 내역 조회 · 이용지점 안내 · 자주 묻는 질문. 화면 폭에 맞춰 글자 크기를 줄여 네 개가 한 줄에 들어오게 한다. */
.site { margin-bottom: 22px; }
.topnav { display: flex; justify-content: space-between; gap: 6px; margin-top: 6px; border-bottom: 1px solid var(--line-strong); overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { position: relative; flex: none; display: flex; align-items: center; min-height: 46px; padding: 0 2px; color: var(--muted); font-size: clamp(12.5px, 3.85vw, 15.5px); font-weight: 600; letter-spacing: -0.03em; text-decoration: none; white-space: nowrap; transition: color 0.25s; }
.topnav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--green-deep); transform: scaleX(0); transition: transform 0.35s var(--ease); }
.topnav a[aria-current='page'] { color: var(--ink); }
.topnav a[aria-current='page']::after { transform: scaleX(1); }
.topnav a:focus-visible { outline-offset: -2px; }

/* 최근 예약 바로가기 */
.recent { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--green-deep); color: #fff; border-radius: 18px; padding: 14px 16px; margin-bottom: 12px; text-decoration: none; box-shadow: 0 14px 26px -16px rgba(var(--deep-rgb), 0.9); animation: rise 0.5s var(--ease) both; }
.recent small { display: block; color: rgba(255, 255, 255, 0.72); font-size: 12px; }
.recent b { display: block; font-size: 15px; letter-spacing: -0.01em; }
.recent .go { flex: none; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, 0.16); border-radius: 10px; padding: 7px 10px; }

/* 아래에서 올라오는 창 */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(23, 35, 30, 0.45); animation: fade 0.25s ease both; }
.sheet { position: relative; width: 100%; max-width: 560px; max-height: 86vh; display: flex; flex-direction: column; background: var(--bg); border-radius: 26px 26px 0 0; box-shadow: 0 -20px 50px -20px rgba(23, 35, 30, 0.5); animation: sheet-up 0.4s var(--ease) both; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 10px 22px; }
.sheet-head h2 { margin: 0; font-size: 19px; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 18px calc(24px + env(safe-area-inset-bottom)); }
.faq-body h3, h3.sub { margin: 18px 4px 10px; color: var(--green); font-size: 13px; letter-spacing: 0.02em; }
/* 자주 묻는 질문의 분류 제목, 지점마다 다른 안내가 어디에 있는지 알려 주는 상자 */
.faq-body h3 { margin: 26px 4px 12px; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; color: var(--green-deep); }
.faq-body > h3:first-child { margin-top: 6px; }
.faq-guide { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--green-soft); border-radius: 16px; padding: 14px 16px; margin-bottom: 4px; }
.faq-guide p { margin: 0; flex: 1 1 220px; font-size: 14px; color: var(--ink-2); }
.faq-guide .btn { flex: none; }
.faq-more { margin: 14px 2px 0; font-size: 13.5px; }
.faq-more .linkbtn { padding: 0; font-size: inherit; color: var(--green-deep); font-weight: 600; }
h3.sub { margin-top: 0; }
.results:not(:empty) { margin-top: 16px; }
.results .recent:last-child, .results p:last-child { margin-bottom: 0; }
body.sheet-open { overflow: hidden; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 620px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 26px; max-height: 80vh; } }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chipbtn { flex: none; border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 7px 14px; min-height: 38px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chipbtn.on { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.faq { background: #fff; border: 1px solid rgba(23, 35, 30, 0.06); border-radius: 16px; margin-bottom: 8px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.25s var(--ease); margin-right: 4px; }
.faq[open] summary::after { transform: rotate(-135deg); }
.guide-intro { white-space: pre-line; font-size: 14.5px; color: var(--ink-2); margin: -4px 0 14px; }
.faq.guide { background: var(--sand); border-color: transparent; }
.faq.guide p a { word-break: break-all; }
.faq p { margin: 0; padding: 0 16px 16px; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; white-space: pre-line; animation: rise 0.3s var(--ease) both; }

/* 이용지점 안내 */
.branch-info > .chips { margin-bottom: 14px; }
.branch-photo { position: relative; border-radius: 18px; overflow: hidden; background: #dcd8cf; margin-bottom: 18px; isolation: isolate; }
.branch-photo::before { content: ''; display: block; padding-top: 62.5%; }
.branch-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.45s; -webkit-user-drag: none; }
.branch-photo img.ready { opacity: 1; }
.branch-photo .name { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
/* 사진 넘겨 보기: 대표 사진에서 오른쪽으로 넘기면 매장 사진, 파티 사진이 이어진다. 손가락으로 밀면 한 장씩 멈춘다. */
.branch-photo .track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; outline-offset: -3px; }
.branch-photo .track::-webkit-scrollbar { display: none; }
.branch-photo .slide { position: relative; flex: 0 0 100%; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; }
.branch-photo .slide.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 16, 0) 50%, rgba(10, 20, 16, 0.72)); pointer-events: none; }
.branch-photo .slide.contain { background: #17201c; }
.branch-photo .slide.contain img { object-fit: contain; }
.branch-photo .slide .blur { position: absolute; inset: -14%; background-size: cover; background-position: center; filter: blur(22px) brightness(0.55); }
.branch-photo .nav { position: absolute; top: 50%; z-index: 2; width: 38px; height: 38px; margin-top: -19px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.94); color: var(--ink); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28); transition: transform 0.15s var(--ease), opacity 0.2s; }
.branch-photo .nav.prev { left: 10px; }
.branch-photo .nav.next { right: 10px; }
.branch-photo .nav:active { transform: scale(0.9); }
.branch-photo .count, .branch-photo .tag { position: absolute; top: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(15, 22, 19, 0.6); color: #fff; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
.branch-photo .count { right: 12px; }
.branch-photo .tag { left: 12px; }
.card > .photo-tabs { margin: -6px 0 16px; }
.photo-tabs .chipbtn { min-height: 34px; padding: 5px 12px; font-size: 13px; }
.photo-tabs .chipbtn span { margin-left: 1px; font-weight: 500; opacity: 0.6; font-variant-numeric: tabular-nums; }
.branch-info h3 { color: var(--ink-2); font-size: 14px; margin: 18px 2px 8px; }
.branch-info h3.first { margin-top: 0; }
.rates { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rates th { font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 0 6px; text-align: right; }
.rates td { padding: 10px 0; text-align: right; font-weight: 700; font-size: 14.5px; white-space: nowrap; border-top: 1px dashed var(--line-strong); }
.rates th:first-child, .rates td:first-child { text-align: left; }
.rates td:first-child { font-weight: 600; color: var(--ink-2); }
.branch-info .faq { background: var(--sand); border-color: transparent; }
.branch-info .faq:last-child { margin-bottom: 0; }

/* 1. 지점 */
.branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.branch { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #dcd8cf; isolation: isolate; box-shadow: 0 0 0 0 var(--card), 0 0 0 0 var(--green); transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease); }
/* 4:3 비율. 아주 좁은 화면에서도 칸 밖으로 넘치지 않게 높이를 폭에서 계산한다 */
.branch::before { content: ''; display: block; padding-top: 75%; }
.branch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), filter 0.35s; }
.branch::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 16, 0) 45%, rgba(10, 20, 16, 0.74)); }
.branch .name { position: absolute; left: 14px; right: 44px; bottom: 12px; z-index: 1; color: #fff; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; text-align: left; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
.branch .tick { position: absolute; top: 10px; right: 10px; z-index: 1; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--green-deep); display: grid; place-items: center; transform: scale(0); transition: transform 0.35s var(--ease); }
.branch:active { transform: scale(0.98); }
.branch.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 5px var(--green); }
.branch.on img { transform: scale(1.05); }
.branch.on .tick { transform: scale(1); }
.branches.has-selection .branch:not(.on) img { filter: saturate(0.7) brightness(0.82); }

/* 2. 날짜 */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .dow { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 0; }
.cal .dow:first-child { color: var(--red); }
.ccal .cell { border: 0; background: var(--sand); border-radius: 14px; min-height: 60px; padding: 8px 2px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); transition: background 0.2s, color 0.2s, transform 0.25s var(--ease), box-shadow 0.2s; }
.ccal .cell.empty { background: none; }
.ccal .cell.red { color: var(--red); }
.ccal .cell.today { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.ccal .cell.off { color: #c6cac6; background: none; cursor: not-allowed; box-shadow: none; }
.ccal .cell.full { color: #b6bbb7; cursor: not-allowed; }
.ccal .cell.full .d { text-decoration: line-through; }
.ccal .cell:not(:disabled):active { transform: scale(0.94); }
.ccal .cell.on { background: var(--green-deep); color: #fff; transform: scale(1.04); box-shadow: 0 10px 18px -10px rgba(var(--deep-rgb), 0.9); }
.ccal .marks { display: flex; justify-content: center; gap: 2px; min-height: 16px; }
.ccal .marks span { font-size: 10px; font-weight: 700; line-height: 16px; padding: 0 3px; border-radius: 5px; color: var(--green); background: var(--green-soft); }
.ccal .marks .gone { visibility: hidden; }
.ccal .marks .closed { color: #b6bbb7; background: none; font-weight: 600; }
.ccal .cell.on .marks span { color: #fff; background: rgba(255, 255, 255, 0.2); }
.legend { display: flex; gap: 6px 14px; font-size: 12px; color: var(--muted); margin-top: 12px; align-items: center; flex-wrap: wrap; }
.legend .mark { display: inline-block; font-size: 10px; line-height: 16px; padding: 0 3px; border-radius: 5px; color: var(--green); background: var(--green-soft); margin-right: 2px; }

/* 3. 타임 */
.slots { display: grid; gap: 10px; margin-bottom: 12px; }
.slot { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 18px; padding: 14px 16px; min-height: 76px; transition: border-color 0.2s, background 0.2s, transform 0.15s var(--ease); }
.slot:active:not(:disabled) { transform: scale(0.985); }
.slot .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #fbf3e6; color: #b07a2a; flex: none; }
.slot.night .ico { background: #eceff7; color: #47548a; }
.slot .txt { flex: 1; min-width: 0; }
.slot .txt b { display: block; font-size: 16px; letter-spacing: -0.01em; }
.slot .txt small { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.slot .price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* 금액을 낮춰 둔 날짜: 원래 요금(취소선) → 바뀐 요금 */
.slot .price.cut { display: flex; align-items: baseline; gap: 5px; color: var(--green-deep); }
.slot .price.cut s { color: var(--muted); font-weight: 500; font-size: 14px; }
.slot .price.cut i { font-style: normal; color: var(--muted); font-weight: 500; font-size: 13px; }
.slot .tick { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: transparent; flex: none; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.3s var(--ease); }
.slot.on { border-color: var(--green); background: var(--green-soft); }
.slot.on .tick { background: var(--green-deep); border-color: var(--green-deep); color: #fff; transform: scale(1.08); }
.slot:disabled { cursor: not-allowed; background: var(--sand); color: #a9aeab; }
.slot:disabled .ico { opacity: 0.45; }
.slot:disabled .tick { visibility: hidden; }

/* 4. 인원과 옵션 */
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper input { text-align: center; width: 84px; flex: none; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 8px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper .btn { width: 52px; min-height: 52px; padding: 0; flex: none; font-size: 22px; font-weight: 400; border-radius: 50%; }
.option { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.option.on { border-color: var(--green); background: var(--green-soft); }
.option .muted { display: block; margin-top: 2px; }

/* 6. 결제 */
.pay { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.pay.on { border-color: var(--green); background: var(--green-soft); }
.pay input { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff; flex: none; transition: border 0.2s var(--ease); cursor: pointer; }
.pay input:checked { border: 7px solid var(--green-deep); }
.pay-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pay-body .muted { display: block; }
.pay-body .muted:empty { display: none; }

/* 화면 아래에 떠 있는 금액 요약 */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); pointer-events: none; transition: transform 0.4s var(--ease), opacity 0.25s; }
.sticky.off { transform: translateY(120%); opacity: 0; }
.sticky button { pointer-events: auto; width: 100%; max-width: 536px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-radius: 20px; padding: 12px 14px 12px 18px; background: #1a2822; color: #fff; text-align: left; box-shadow: 0 18px 34px -14px rgba(23, 35, 30, 0.6); }
.sticky .sel { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.66); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky .sum { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.82); }
.sticky .sum b { display: inline-block; font-size: 19px; color: #fff; letter-spacing: -0.02em; margin-left: 6px; font-variant-numeric: tabular-nums; }
.sticky .info-col { min-width: 0; }
.sticky .go { flex: none; display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, 0.14); border-radius: 12px; padding: 9px 12px; }
.bump { animation: bump 0.35s var(--ease); }

/* 접수 · 승인 · 확정 화면 */
.status { text-align: center; margin: 4px 0 22px; }
.status h1 { font-size: 26px; margin-top: 10px; }
.status .lead { max-width: 30em; margin: 0 auto; white-space: pre-line; } /* 문장 단위로 줄을 나눈다 */
.status-icon { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-deep); animation: pop 0.6s var(--ease) both; }
.status-icon svg path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 0.6s 0.3s var(--ease) forwards; }
.status.pending .status-icon { background: #fbf3e6; color: #a36a12; font-size: 30px; font-weight: 800; }
.status.confirmed .status-icon { background: var(--green-deep); color: #fff; box-shadow: 0 16px 28px -14px rgba(var(--deep-rgb), 0.9); }
.status.cancelled .status-icon { background: #ecebe7; color: #8b918d; }
.steps { list-style: none; display: flex; padding: 0; margin: 24px 0 0; }
.steps li { flex: 1; position: relative; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.steps li::before { content: ''; position: absolute; top: 14px; right: 50%; width: 100%; height: 2px; background: var(--line-strong); }
.steps li:first-child::before { display: none; }
.steps li.done::before, .steps li.now::before { background: var(--green); }
.steps .dot { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong); display: grid; place-items: center; margin: 0 auto 8px; font-size: 12px; font-variant-numeric: tabular-nums; }
.steps li.done, .steps li.now { color: var(--ink); }
.steps li.done .dot { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.steps li.now .dot { border-color: var(--green); color: var(--green-deep); background: #fff; animation: pulse 2s ease-in-out infinite; }
.steps small { display: block; font-weight: 500; color: var(--green); margin-top: 1px; }
.amount-label { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.deadline { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0 0; margin-top: 12px; border-top: 1px dashed var(--line-strong); font-size: 14px; }
.deadline b { font-variant-numeric: tabular-nums; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(0.6); } 70% { transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--green-rgb), 0.28); } 50% { box-shadow: 0 0 0 7px rgba(var(--green-rgb), 0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* 예약 현황 화면의 버튼과 안내 */
.btn-row { display: flex; gap: 8px; }
.btn-row > * { flex: 1; min-width: 0; }
.linkbtn { border: 0; background: none; padding: 6px 2px; color: var(--muted); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.status-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 16px; margin: 18px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.live { display: inline-flex; align-items: center; gap: 7px; }
.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s ease-in-out infinite; }
.okbox { background: var(--green-soft); color: var(--green-deep); border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; margin-top: 14px; }
.memo { border-left: 3px solid var(--brown); background: #fbf6ef; border-radius: 0 14px 14px 0; padding: 12px 14px; white-space: pre-line; font-size: 14.5px; }

/* ───────── 관리자 화면 ───────── */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 14px -16px 16px; padding: 2px 16px 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; white-space: nowrap; min-height: 40px; font-weight: 600; color: var(--ink-2); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.tabs button.on { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.tabs .count { background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; margin-left: 6px; }
#view.switch > * { animation: rise 0.35s var(--ease) both; }
.toolbar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar > * { flex: 1; min-width: 130px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 7px; padding: 3px 8px; margin-right: 4px; background: #ebe7dd; }
.badge.requested { background: #dce9f9; color: #1f4f8f; }
.badge.pending { background: #fbf0d6; color: #7a4b12; }
.badge.confirmed { background: var(--green-soft); color: var(--green); }
.badge.cancelled { background: #eee; color: #888; }
.badge.alert { background: #fbe3e0; color: var(--red); }
.chip { display: inline-block; color: #fff; border-radius: 7px; padding: 2px 8px; font-size: 12px; font-weight: 700; margin-right: 4px; }
.booking .head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 14px; }
.booking .title { font-weight: 700; margin-bottom: 6px; }
.booking .bill { font-size: 14px; }
.booking .receipt { margin-bottom: 12px; }
.booking dl.more { display: grid; grid-template-columns: 84px 1fr; gap: 4px 12px; margin: 8px 0; font-size: 14px; }
.booking dl.more dt { color: var(--muted); }
.booking dl.more dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.seenline { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--sand); font-size: 13px; color: var(--ink-2); }
.seenline b { font-weight: 700; }
.seenline .no { color: var(--red); font-weight: 700; }
.note-edit { margin-top: 12px; }
.note-edit summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 6px 0; }
.note-edit textarea { margin-top: 8px; min-height: 64px; font-size: 14px; }
.faq-edit { border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-bottom: 8px; }
.faq-edit input { min-height: 44px; margin-bottom: 6px; font-weight: 600; }
.faq-edit textarea { min-height: 132px; font-size: 14px; line-height: 1.6; }
.faq-edit.empty { border-style: dashed; background: #fdfaf4; }
/* 예약 승인 → 예약 확정 두 단계 */
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.flow .step { display: flex; flex-direction: column; gap: 6px; }
.flow .step .btn { width: 100%; }
.flow .step small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.flow .step.done .btn { background: var(--green-soft); border-color: var(--green-soft); color: var(--green); opacity: 1; }
.acal .cell { min-height: 78px; text-align: left; padding: 5px; font-size: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.acal .cell.empty { background: none; border: 0; }
.acal .cell .d { font-weight: 700; font-size: 13px; }
.acal .slotbtn { display: block; width: 100%; min-height: 24px; border: 0; border-radius: 6px; padding: 2px 4px; margin-top: 3px; font-size: 11px; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: var(--sand); color: var(--muted); }
.acal .slotbtn.booked { color: #fff; font-weight: 600; }
.slotbtn.waiting { background: #fff; border: 1.5px solid; font-weight: 600; }
.legend .slotbtn.sample { display: inline-block; width: auto; min-height: 0; border-radius: 6px; padding: 1px 6px; margin-right: 4px; font-size: 11px; font-style: normal; color: #fff; }
.legend .slotbtn.sample.waiting { background: #fff; border: 1.5px solid; }
.legend .slotbtn.sample.closed { background: #555; }
.acal .slotbtn.closed { background: #555; color: #fff; }
.lbl-short { display: none; }
@media (max-width: 700px) {
  .acal .lbl-full { display: none; }
  .acal .lbl-short, p.lbl-short { display: inline; }
  p.lbl-short { display: block; }
  .acal .slotbtn { text-align: center; padding: 2px 1px; }
}
/* 예약 직접 등록 (접었다 펴는 카드) */
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary h2 { margin: 0; }
.fold > summary::after { content: ''; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.25s var(--ease); margin-right: 4px; }
.fold[open] > summary::after { transform: rotate(-135deg); }
.fold[open] > summary { margin-bottom: 14px; }
/* 예약현황에서 고른 예약: 달력의 그 칸에 테두리를 두르고, 달력 아래에 예약 정보를 펼친다 */
.acal .slotbtn.picked { outline: 2px solid var(--ink); outline-offset: 1px; }
#cal-pick { scroll-margin-top: 12px; }
#cal-pick.fresh > * { animation: rise 0.3s var(--ease) both; } /* 안쪽만 움직여야 화면을 내릴 자리가 어긋나지 않는다 */
.pick-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 2px 10px; }
.pick-head h3 { margin: 0; }
.booking .no { color: var(--red); font-weight: 600; }
/* 금액변경: 날짜를 여러 개 고르는 달력과 바꿔 둔 금액 목록 */
.chips.lines { flex-wrap: wrap; overflow: visible; }
.pcal .cell { border: 1px solid var(--line); background: #fff; border-radius: 10px; min-height: 50px; padding: 5px 2px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); transition: background 0.15s, color 0.15s, border-color 0.15s; }
.pcal .cell.empty { border: 0; background: none; }
.pcal .cell.off { color: #c6cac6; background: none; border-color: transparent; cursor: not-allowed; }
.pcal .cell.on { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.pcal .marks { display: flex; gap: 2px; min-height: 13px; }
.pcal .marks span { font-size: 9px; font-weight: 700; line-height: 13px; padding: 0 3px; border-radius: 4px; }
.pcal .marks .bk { background: #eee; color: #777; }
.pcal .marks .ch { background: var(--green-soft); color: var(--green); }
.pcal .cell.on .marks span { background: rgba(255, 255, 255, 0.22); color: #fff; }
.pricerow { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.pricerow:first-of-type { border-top: 0; }
.pricerow .what { flex: 1 1 150px; min-width: 0; }
.pricerow .amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pricerow .amt s { color: var(--muted); }
h3.first { margin-top: 0; }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th, table.grid td { padding: 4px; text-align: center; }
table.grid th { font-weight: 600; color: var(--muted); font-size: 12px; }
table.grid td:first-child, table.grid th:first-child { text-align: left; white-space: nowrap; }
table.grid input { min-height: 40px; padding: 4px 8px; text-align: right; border-radius: 10px; }
.listrow { display: flex; gap: 6px; margin-bottom: 6px; align-items: center; }
.listrow > * { flex: 1; min-width: 0; }
.listrow > .fit { flex: none; }
.listrow input, .listrow select { min-height: 44px; padding: 8px 10px; border-radius: 11px; }
.listrow select { padding-right: 34px; background-position: right 8px center; }
.msg { font-size: 13px; border-top: 1px solid var(--line); padding: 10px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: rgba(23, 35, 30, 0.95); color: #fff; border-radius: 14px; padding: 12px 18px; font-size: 14px; max-width: 90vw; z-index: 40; box-shadow: 0 16px 30px -14px rgba(23, 35, 30, 0.6); animation: toast-in 0.3s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 420px) {
  .wrap { padding: 22px 12px 120px; }
  .card { padding: 20px 16px; border-radius: 20px; }
  h1 { font-size: 26px; }
  .tabs { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
  .acal .cell { min-height: 68px; padding: 3px; }
  .flow { grid-template-columns: 1fr; }
}
/* 문의: 메뉴 화면의 맨 아래 */
.ask { margin: 22px 4px 0; padding: 18px 4px 0; border-top: 1px solid var(--line); text-align: center; }
.ask p { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.ask p b { display: block; margin-bottom: 2px; font-size: 14.5px; color: var(--ink-2); }
.ask-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ask-actions .btn { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
/* 관리자 화면: 방문 통계 */
.statnums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.statnums > div { background: var(--sand); border-radius: 14px; padding: 12px 12px 11px; min-width: 0; }
.statnums b { display: block; font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.statnums span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.statrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 5px 10px; align-items: baseline; padding: 9px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.statrow:first-of-type { border-top: 0; }
.statrow .name { min-width: 0; overflow-wrap: anywhere; }
.statrow b { font-variant-numeric: tabular-nums; }
.statrow small { min-width: 2.8em; text-align: right; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.statrow small.wide { min-width: 0; }
.statrow .bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--sand); overflow: hidden; }
.statrow .bar i { display: block; height: 100%; border-radius: 3px; background: var(--green); }
.hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; align-items: end; height: 96px; }
.hours i { display: block; border-radius: 3px 3px 0 0; background: var(--green); }
.hours i.zero { background: var(--line); }
.hours-axis { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; margin: 4px 0 10px; font-size: 10.5px; color: var(--muted); }
.hours-axis span { white-space: nowrap; }
.hours.days { gap: 1px; height: 84px; }
.days-axis { display: flex; justify-content: space-between; margin: 4px 0 6px; font-size: 10.5px; color: var(--muted); }
@media (max-width: 380px) {
  .statnums b { font-size: 18px; }
  .statnums > div { padding: 10px 9px; }
}
/* 관리자 화면: 처리하는 동안 */
body.busy { cursor: progress; }
body.busy #view { opacity: 0.55; pointer-events: none; transition: opacity 0.15s; }
@media (max-width: 389px) {
  /* 예약 진행 순서 네 단계가 한 줄에 들어가게 */
  .flowline { font-size: 12px; }
  .flowline li + li::before { margin: 0 4px 0 0; }
}
@media (max-width: 350px) {
  .slot .price.cut { flex-direction: column; align-items: flex-end; gap: 0; }
  .slot .price.cut i { display: none; }
  .flowline { font-size: 12px; }
  .flowline li + li::before { margin: 0 4px 0 0; }
  .ccal .marks span { padding: 0 2px; font-size: 9px; }
  .slot { gap: 10px; padding: 12px; }
  .slot .ico { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
  .status-icon svg path { stroke-dashoffset: 0; }
}
