/* MIDPOINT PMS — 화이트 + 우드 포인트
 * 바탕은 깨끗한 흰색과 따뜻한 회색. 우드(월넛)는 주 행동, 선택, 투숙 중 같은 '지금 중요한 것'에만.
 *   우드     → 주 버튼, 선택·활성, 오늘, 투숙 중 예약
 *   초록     → 오늘 도착, 준비 완료, 수요 상승
 *   빨강     → 미결제·잔금, 오류, 수요 하락, 일요일·공휴일 (라즈베리 톤: 우드와 정상 시각 ΔE 15 이상)
 *   우드·초록·빨강은 색각 이상에서 겹칠 수 있어 색만으로 말하지 않는다 — 항상 글자·화살표·배지가 함께 간다
 *   주황     → 확인 대기(성별 확인 등), 청소 필요
 *   파랑     → 토요일
 * 레퍼런스: 호텔스컴바인·야놀자 수준의 정돈된 숙박 웹 서비스. */

@font-face {
  font-family: 'Pretendard';
  src: url('../fonts/PretendardVariable.woff2') format('woff2-variations'), url('../fonts/PretendardVariable.woff2') format('woff2');
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #F6F5F3;
  --surface: #FFFFFF;
  --sub: #FAF9F7;
  --sub-2: #F3F1EE;
  --line: #ECE9E5;
  --line-2: #DEDAD4;
  --ink: #1C1A18;
  --ink-2: #55504A;
  --ink-3: #6F6962;
  --ink-4: #9C968E;
  --wood: #8B5E3C;
  --wood-600: #744C2E;
  --wood-700: #5E3D24;
  --wood-300: #C9A27E;
  --wood-100: #EBDDCF;
  --wood-50: #F6EEE6;
  --oak: #F3ECE4;
  --oak-line: #E3D4C5;
  --in: #DCC0A0;
  --in-hover: #D3B593;
  --past: #F0EFEC;
  --today: #FBF7F2;
  --green: #0F7A43;
  /* 하우스키핑 칸 색(2026-10-06 운영자): 청소 = 붉은색, 투숙 = 짙은 회색 */
  --hk-red: #C8372D; --hk-red-bg: #FCE6E3; --hk-red-line: #F2B9B2; --hk-red-ink: #A3261E; --hk-stay: #4A4642;
  --green-bg: #E8F5EE;
  --green-line: #BFE3CF;
  --red: #C2185B;
  --red-bg: #FDEBF1;
  --red-line: #F4BFD1;
  --warn: #9A5400;
  --warn-bg: #FFF4E5;
  --warn-line: #F6D6A8;
  --blue: #2563C9;
  --blue-bg: #EAF1FC;
  --line-3: #CFCAC2;      /* 컨트롤 hover 테두리, 꺼진 스위치, 스크롤바 hover, 꺼진 전구 */
  --oak-hover: #EDE3D8;    /* 예약확정 막대 hover */
  --on-dark-wood: #E8C9A8; /* 어두운 토스트 위 아이콘 */
  --on-dark-red: #FF9AA4;  /* 어두운 토스트 위 오류 아이콘 */
  /* 유연 객실 운영 방식: 혼성 = 차분한 슬레이트, 여성 = 플럼(오류 빨강과 구분) — 글자가 함께 있어 색만으로 구분하지 않는다 */
  --mode-mixed: #EBEFF4;
  --mode-mixed-ink: #3D4654;
  --mode-mixed-band: rgba(61, 70, 84, .055);
  --mode-female: #F7EAF1;
  --mode-female-ink: #8E2F5E;
  --mode-female-band: rgba(142, 47, 94, .06);
  --sh-1: 0 1px 2px rgba(28, 26, 24, .05);
  --sh-2: 0 1px 2px rgba(28, 26, 24, .04), 0 4px 16px rgba(28, 26, 24, .05);
  --sh-3: 0 14px 36px rgba(28, 26, 24, .14), 0 2px 6px rgba(28, 26, 24, .06);
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --gnb: 64px;
  --panel: 420px;
  --roomcol: 176px;
  --day: 80px;
  --row: 40px;
  --head-h: 58px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 var(--font);
  letter-spacing: -.005em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--wood-100); color: var(--ink); }
input, textarea { caret-color: var(--wood); }
:focus-visible { outline: 2px solid var(--wood); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.ic { flex: none; display: block; }
mark { background: var(--wood-100); color: inherit; border-radius: 2px; padding: 0 1px; }

* { scrollbar-width: thin; scrollbar-color: #D6D1CA transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--line-3); background-clip: padding-box; border: 2px solid transparent; }

/* ───────── 앱 골격 ───────── */
.app { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--gnb) minmax(0, 1fr); height: 100vh; height: 100dvh; }

.gnb { position: relative; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.gnb-in { height: 100%; display: flex; align-items: center; gap: 28px; padding: 0 24px; }
.logo { display: inline-flex; align-items: center; gap: 9px; flex: none; }
/* 메인 타이틀 CI: 간판의 MIDPOINT 금색 글자(투명 배경). 금색은 로고와 엠블럼에만 — UI 색으로는 쓰지 않는다 */
.logo-img { display: block; width: auto; height: 34px; }
/* 로고 그림이 없는 회사(운영 콘솔에서 이름만 정함): 이름 글자로 */
.logo-name { font-size: 18px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 운영자의 고객 화면 보기(읽기 전용) 표시 */
.support-pill { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 95; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); padding: 8px 8px 8px 14px; border-radius: 999px; background: #2A2622; color: #fff; font-size: 13px; box-shadow: var(--sh-3); }
.support-pill .ic { color: var(--on-dark-wood); }
.support-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-pill a { flex: none; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 650; }
@media (max-width: 720px) { .support-pill { bottom: calc(76px + env(safe-area-inset-bottom)); } }
.logo-tag { font-size: 11px; font-weight: 700; color: var(--wood); background: var(--wood-50); border-radius: 5px; padding: 2px 6px 1px; letter-spacing: .02em; }
.gnb-nav { display: flex; align-items: stretch; gap: 2px; height: 100%; }
.gnb-a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: color 120ms; }
.gnb-a:hover { color: var(--ink); }
.gnb-a.is-active { color: var(--ink); }
.gnb-a.is-active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--wood); }
.gnb-a .cnt { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--wood); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; line-height: 1; }
.gnb-a .soon { font-size: 10.5px; font-weight: 600; color: var(--ink-3); }
.gnb-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-2); transition: background-color 120ms, color 120ms; }
.icon-btn:hover { background: var(--sub-2); color: var(--ink); }
.icon-btn[aria-expanded='true'] { background: var(--sub-2); color: var(--ink); }
.dot-badge { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--wood-50); color: var(--wood-700); font-size: 13px; font-weight: 700; border: 1px solid var(--wood-100); }
/* 엠블럼 아바타(운영자·챗봇): 40px 이하는 파비콘과 같은 월넛 원 위에 금색 M — 크림 위에서는 금색 선이 묻힌다.
   48px 이상 큰 자리(.brand-badge)만 크림 원 */
.avatar.is-brand, .av.is-brand { background: #4A301C; border: 0; overflow: hidden; }
.avatar.is-brand img, .av.is-brand img { width: 84%; height: 84%; object-fit: contain; }
.brand-badge { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #FBF8F1; border: 1px solid var(--oak-line); margin: 0 auto 4px; }
.brand-badge img { width: 78%; height: 78%; object-fit: contain; }
.av { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--sub-2); color: var(--ink-2); font-size: 12.5px; font-weight: 700; letter-spacing: 0; }
.av.is-in { background: var(--wood-100); color: var(--wood-700); }
.av.is-arr { background: var(--green-bg); color: var(--green); }

.gsearch { position: relative; width: 300px; }
.gsearch > .ic { position: absolute; left: 13px; top: 50%; margin-top: -8px; color: var(--ink-3); pointer-events: none; }
.gsearch input { width: 100%; height: 40px; padding: 0 40px 0 38px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--sub); font-size: 14px; transition: border-color 120ms, box-shadow 120ms, background-color 120ms; }
.gsearch input::placeholder { color: var(--ink-3); }
.gsearch input:hover { border-color: var(--line-3); }
.gsearch input:focus { outline: none; background: var(--surface); border-color: var(--wood); box-shadow: 0 0 0 3px var(--wood-50); }
.gsearch .kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
/* 검색 결과는 검색창 폭과 상관없이 440px 고정, 오른쪽 끝에 맞춘다 */
.gs-pop { position: absolute; top: calc(100% + 8px); right: 0; width: 440px; max-width: calc(100vw - 24px); z-index: 40; max-height: 440px; overflow: auto; padding: 6px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); }
.gs-item { width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 10px; border: 0; border-radius: var(--r); background: transparent; text-align: left; }
.gs-item:hover, .gs-item.is-on { background: var(--sub-2); }
.gs-item .av { width: 32px; height: 32px; font-size: 11.5px; }
.gs-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--wood-50); color: var(--wood); }
.gs-main { min-width: 0; display: block; }
.gs-name { display: block; font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-sub { display: block; margin-top: 1px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.gs-all .gs-name { font-weight: 500; color: var(--ink-2); }
.gs-empty { padding: 14px 12px; font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }

.body { display: flex; min-height: 0; min-width: 0; position: relative; }
/* 시스템(페이지) 스크롤 없음: 상단 메뉴·화면 제목·탭·필터는 늘 보이고, 목록·표·그리드 안에서만 스크롤한다 (2026-10-04 사용자 요청) */
.main { flex: 1; min-width: 0; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.page { width: 100%; max-width: 1440px; height: 100%; min-height: 0; margin: 0 auto; padding: 24px 28px 18px; display: flex; flex-direction: column; }
.page > * { flex: none; }
.page.is-wide { max-width: none; }
/* 스크롤 영역: 카드 그림자·포커스 테두리가 잘리지 않게 안쪽 여백을 조금 둔다 */
.page > .pscroll, .pscroll { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; margin: 0 -6px; padding: 2px 6px 8px; }
.ph { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.ph-title { margin: 0; font-size: 24px; font-weight: 750; letter-spacing: -.03em; line-height: 1.25; }
.ph-sub { margin: 4px 0 0; font-size: 14px; color: var(--ink-3); }
.ph-sub .red { color: var(--red); font-weight: 600; }
.ph-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ───────── 컨트롤 ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 14px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: background-color 120ms, border-color 120ms, color 120ms, box-shadow 120ms;
}
.btn:hover { background: var(--sub-2); border-color: var(--line-3); }
.btn:active { background: #ECE9E4; }
.btn:disabled, .btn[aria-disabled='true'] { color: var(--ink-4); background: var(--sub); border-color: var(--line); cursor: not-allowed; }
.btn .ic { color: var(--ink-2); }
.btn:disabled .ic { color: var(--ink-4); }
.btn-primary { background: var(--wood); border-color: var(--wood); color: #fff; }
.btn-primary .ic { color: #fff; }
.btn-primary:hover { background: var(--wood-600); border-color: var(--wood-600); }
.btn-primary:active { background: var(--wood-700); border-color: var(--wood-700); }
.btn-primary:disabled { background: var(--wood-100); border-color: var(--wood-100); color: #fff; }
.btn-primary:disabled .ic { color: #fff; }
.btn-soft { background: var(--wood-50); border-color: var(--wood-100); color: var(--wood-700); }
.btn-soft .ic { color: var(--wood); }
.btn-soft:hover { background: var(--wood-100); border-color: var(--wood-300); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--sub-2); border-color: transparent; }
.btn-danger { color: var(--red); border-color: var(--red-line); background: var(--surface); }
.btn-danger .ic { color: var(--red); }
.btn-danger:hover { background: var(--red-bg); border-color: #EBA0BA; }
.btn-danger.is-armed { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger.is-armed .ic { color: #fff; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 7px; }
.btn-xs { height: 28px; padding: 0 9px; font-size: 12.5px; border-radius: 6px; }
.btn-lg { height: 48px; padding: 0 20px; font-size: 15.5px; border-radius: 10px; }
.btn-icon { width: 38px; padding: 0; }
.btn-sm.btn-icon { width: 32px; }
.kbd { display: inline-block; font-size: 11px; font-weight: 600; line-height: 1; color: var(--ink-3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 2px 5px 1px; background: var(--surface); }
.btn-primary .kbd { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .45); }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--sub-2); }
.seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background-color 120ms, color 120ms, box-shadow 120ms; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed='true'] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(28, 26, 24, .1), 0 0 0 1px rgba(28, 26, 24, .04); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 34px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: border-color 120ms, background-color 120ms, color 120ms;
}
.pill:hover { border-color: var(--line-3); color: var(--ink); }
.pill[aria-pressed='true'] { border-color: var(--wood); background: var(--wood-50); color: var(--wood-700); }
.pill-n { font-weight: 700; color: var(--ink); }
.pill[aria-pressed='true'] .pill-n { color: var(--wood-700); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }

.input {
  height: 40px; padding: 0 12px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 14px;
  transition: border-color 120ms, box-shadow 120ms;
}
.input::placeholder { color: var(--ink-3); }
.input:hover { border-color: var(--line-3); }
.input:focus { outline: none; border-color: var(--wood); box-shadow: 0 0 0 3px var(--wood-50); }
.input.is-error { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-bg); }
textarea.input { height: auto; min-height: 72px; padding: 10px 12px; resize: vertical; line-height: 1.55; }
select.input { padding-right: 32px; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2355504A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; }
.input-sm { height: 32px; font-size: 13px; padding: 0 10px; }
select.input-sm { padding-right: 28px; background-position: right 8px center; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.field-hint { font-size: 12.5px; color: var(--ink-3); }
.field-err { font-size: 12.5px; color: var(--red); font-weight: 500; }

.check { appearance: none; width: 18px; height: 18px; flex: none; margin: 1px 0 0; border-radius: 5px; border: 1.5px solid var(--ink-4); background: var(--surface); display: grid; place-items: center; transition: background-color 120ms, border-color 120ms; cursor: pointer; }
.check:hover { border-color: var(--wood-300); }
.check:checked { background: var(--wood); border-color: var(--wood); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>"); background-repeat: no-repeat; background-position: center; }
.check:disabled { opacity: .55; cursor: not-allowed; }
.radio { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
.radio input { appearance: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ink-4); margin: 0; display: grid; place-items: center; cursor: pointer; flex: none; background: var(--surface); }
.radio input:checked { border-color: var(--wood); }
.radio input:checked::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--wood); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.switch { position: relative; width: 40px; height: 24px; flex: none; appearance: none; border-radius: 12px; background: var(--line-3); cursor: pointer; transition: background-color 160ms; margin: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(28, 26, 24, .2); transition: transform 160ms var(--ease); }
.switch:checked { background: var(--wood); }
.switch:checked::after { transform: translateX(16px); }
.switch:disabled { opacity: .5; cursor: not-allowed; }

/* 상태 배지 */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 650; white-space: nowrap; line-height: 1; background: var(--sub-2); color: var(--ink-2); }
.badge .ic { margin-left: -1px; }
.b-confirmed { background: #EEF0F3; color: #3D4654; }
.b-hold { background: var(--warn-bg); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn-line); }
.b-checkedin { background: var(--wood); color: #fff; }
.b-unpaid { background: var(--red-bg); color: var(--red); box-shadow: inset 0 0 0 1px var(--red-line); }
.b-checkedout { background: var(--past); color: var(--ink-3); }
.b-noshow { background: #2F2B27; color: #fff; }
.b-cancelled { background: var(--past); color: var(--ink-3); text-decoration: line-through; }
.b-green { background: var(--green-bg); color: var(--green); }
.b-red { background: var(--red-bg); color: var(--red); }
.b-warn { background: var(--warn-bg); color: var(--warn); }
.b-wood { background: var(--wood-50); color: var(--wood-700); }
.b-line { background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.ch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
/* 채널 마크: 채널 고유 CI 색 (사용자 요청). 색과 머리글자가 함께 가고, 이름이나 툴팁이 곁에 있다 */
.ch-mark { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; background: var(--ch, var(--sub-2)); color: var(--chf, var(--ink-2)); font-size: 10.5px; font-weight: 800; letter-spacing: -.02em; flex: none; line-height: 1; }
.ch-mark.is-dots { background-color: #fff; background-image: var(--dots); background-size: 100% 3px; background-repeat: no-repeat; background-position: 0 100%; box-shadow: inset 0 0 0 1px var(--line-2); padding-bottom: 2px; font-size: 11px; }
.tag-synth { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.tag-synth::before { content: ''; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--ink-4); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); min-width: 0; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; flex-wrap: wrap; }
.card-title { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 8px; }
.card-title .ic { color: var(--wood); }
.card-n { font-size: 16px; font-weight: 750; color: var(--wood); }
.card-sub { font-size: 13px; color: var(--ink-3); }
.card-head .btn, .card-head .seg { margin-left: auto; }

/* 툴팁·토스트·팝오버 */
.tip {
  position: fixed; z-index: 80; max-width: 300px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--sh-3); color: var(--ink); font-size: 13px; line-height: 1.5; pointer-events: none;
  opacity: 0; transform: translateY(3px); transition: opacity 120ms, transform 120ms var(--ease);
}
.tip.is-on { opacity: 1; transform: none; }
.tip-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.tip-row { display: flex; justify-content: space-between; gap: 18px; color: var(--ink-3); }
.tip-row b { color: var(--ink); font-weight: 600; }
.tip-row b.red { color: var(--red); }
.tip-row b.green { color: var(--green); }
.tip-hint { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12px; }

.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 8px 8px 16px; border-radius: 12px; background: #2A2622; color: #fff; box-shadow: 0 14px 34px rgba(28, 26, 24, .28); font-size: 14px; animation: toast-in 200ms var(--ease); }
.toast .ic { color: var(--on-dark-wood); }
.toast.is-bad .ic { color: var(--on-dark-red); }
.toast .btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff; }
.toast .btn .ic { color: #fff; }
.toast .btn:hover { background: rgba(255, 255, 255, .18); }
.toast.is-out { opacity: 0; transform: translateY(6px); transition: opacity 160ms, transform 160ms; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.pop { position: fixed; z-index: 70; width: 340px; max-width: calc(100vw - 20px); max-height: calc(100vh - 20px); overflow-y: auto; overscroll-behavior: contain; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); animation: pop-in 150ms var(--ease); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pop-head { padding: 16px 18px 6px; }
.pop-title { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.pop-sub { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.55; }
.pop-body { padding: 10px 18px 6px; display: flex; flex-direction: column; gap: 14px; }
/* (i) 설명 단추(2026-10-04 운영자: 범례·개요 같은 설명 텍스트는 숨겨 두기) — 누르면 그 자리에서 설명 팝오버 */
.info-btn { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-4); cursor: pointer; transition: background-color 120ms, color 120ms; }
.info-btn:hover, .info-btn[aria-expanded='true'] { background: var(--sub-2); color: var(--ink-2); }
.info-btn:focus-visible { outline: 2px solid var(--wood); outline-offset: 1px; }
.ph-t { display: flex; align-items: center; gap: 4px; }
.strip-end { margin-left: auto; display: inline-flex; }
.pop.is-info .info-body { gap: 12px; padding-bottom: 16px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.info-body p { margin: 0; }
.info-body ul:not(.lg-list) { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.info-body b { color: var(--ink); font-weight: 650; }
.lg-sec { display: flex; flex-direction: column; gap: 8px; }
.lg-sec + .lg-sec { padding-top: 12px; border-top: 1px solid var(--line); }
.lg-sec h3 { margin: 0; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.lg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.lg-list.is-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; }
.lg-list li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--ink-2); }
.lg-list li > span:last-child { min-width: 0; }
.lg-p { font-size: 12.5px; color: var(--ink-3); }
.lg-ic { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: var(--warn-bg); color: var(--warn); }
.lg-sw.lg-room { width: 18px; height: 22px; background: var(--oak); box-shadow: inset 0 0 0 1px var(--oak-line); }
.info-body .legend2 { margin: 0; flex-direction: column; align-items: flex-start; gap: 8px; }
.info-btn.mk-info { margin-left: auto; }
.hk-cfg-h { display: flex; align-items: center; gap: 4px; margin: 4px 2px 10px; }
.hk-cfg-h h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.pop-foot { padding: 14px 18px 16px; display: flex; align-items: center; gap: 8px; }
.pop-foot .spacer { flex: 1; }
.menu { padding: 6px; display: flex; flex-direction: column; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: 14px; color: var(--ink); }
.menu-item:hover { background: var(--sub-2); }
.menu-item.is-on { background: var(--wood-50); }
.menu-item small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; }
.menu-item .ic.check-ic { margin-left: auto; color: var(--wood); }
.menu-sep { height: 1px; background: var(--line); margin: 5px 8px; }
/* 국내 OTA 예약 메일(설정 › 채널 연결) */
.mi-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.mi-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mi-row { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.mi-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 13.5px; }
.mi-line .num { color: var(--ink-3); font-size: 12.5px; }
.mi-line .badge { margin-left: auto; }
.mi-sub { margin-top: 3px; font-size: 12.5px; color: var(--ink-2); }
.mi-err { margin-top: 4px; font-size: 12.5px; color: var(--red); }
.mi-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mi-act .input { width: auto; min-width: 180px; }
.mi-code { padding: 0 18px 14px; }
.mi-script { width: 100%; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical; }
.mi-acts { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
/* 언어 고르기(내 계정 메뉴) — 영어 화면 i18n.js */
.menu-lang { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 14px; color: var(--ink); }
.menu-lang > span { flex: 1; min-width: 0; }
.menu-lang .pill { height: 28px; padding: 0 10px; font-size: 13px; }

.empty { margin: 40px auto; max-width: 460px; padding: 24px; text-align: center; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--wood-50); color: var(--wood); margin-bottom: 4px; }
.empty h2 { margin: 0; font-size: 18px; color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
.empty p { margin: 0; line-height: 1.65; color: var(--ink-3); }
.empty ul { margin: 6px 0 4px; padding: 0; list-style: none; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.empty li { display: flex; gap: 8px; font-size: 14px; color: var(--ink-2); }
.empty li .ic { color: var(--wood); margin-top: 3px; }

/* 에디슨 전구: 방에 사람이 있으면 우드색으로 켜진다 */
.bulb { display: inline-flex; width: 11px; height: 14px; flex: none; }
.bulb svg { overflow: visible; width: 100%; height: 100%; }
.bulb-glass { fill: none; stroke: var(--line-3); stroke-width: 1.4; }
.bulb-fil { fill: none; stroke: var(--line-3); stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round; }
.bulb-base { fill: none; stroke: var(--line-3); stroke-width: 1.3; stroke-linecap: round; }
.bulb.is-on .bulb-glass { fill: var(--wood-100); stroke: var(--wood); }
.bulb.is-on .bulb-fil { stroke: var(--wood); }
.bulb.is-on .bulb-base { stroke: var(--wood); }

/* ───────── 예약 캘린더 ───────── */
.cal-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-range { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); font-size: 14.5px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.cal-range:hover { border-color: var(--line-3); }
.cal-range .ic { color: var(--wood); }
.cal-range input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.cal-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
/* 캘린더 제목 줄 = 조작 줄(2026-10-05 운영자: 데이터 그리드를 위아래로 넓게) */
.ph-cal { align-items: center; gap: 10px 14px; margin-bottom: 10px; }
.ph-cal .ph-title { font-size: 20px; white-space: nowrap; }
.ph-cal .cal-tools { margin: 0; gap: 8px; }
.ph-cal .cal-nav { gap: 4px; }
.ph-cal .cal-range { height: 32px; padding: 0 11px; gap: 6px; font-size: 13.5px; border-radius: 7px; }
.pill.pill-sm { height: 28px; padding: 0 10px; gap: 5px; font-size: 12.5px; }
.grp-toggle-sp { width: 24px; flex: none; }
.prod-name .short { display: none; }
.cal-strip .sep { width: 1px; height: 22px; background: var(--line-2); flex: none; margin: 0 4px; }
.lg-sw { width: 18px; height: 11px; border-radius: 4px; flex: none; }
.lg-in { background: var(--in); }
.lg-conf { background: var(--oak); box-shadow: inset 0 0 0 1px var(--oak-line); }
.lg-hold { background: var(--surface); box-shadow: inset 0 0 0 1px var(--wood-300); border: 1px dashed var(--wood-300); }
.lg-out { background: var(--past); }
.lg-arr { width: 4px; height: 12px; border-radius: 2px; background: #1FA463; }
.lg-due { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

.cal-card { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; position: relative; }
.cal-scroll { position: relative; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.cal-canvas { position: relative; min-height: 100%; }
.cal-head { position: sticky; top: 0; z-index: 7; display: flex; height: var(--head-h); background: var(--surface); border-bottom: 1px solid var(--line); }
.corner { position: sticky; left: 0; z-index: 3; width: var(--roomcol); flex: none; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 12px 9px 16px; background: var(--surface); border-right: 1px solid var(--line); color: var(--ink-3); font-size: 12px; font-weight: 600; }
.dh {
  position: relative; width: var(--day); flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--ink-2); user-select: none;
  transition: background-color 120ms;
}
.dh:hover { background: var(--sub); }
.dh-dow { font-size: 12px; font-weight: 600; line-height: 1; color: var(--ink-3); }
.dh-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1; }
.dh-note { height: 13px; font-size: 10.5px; line-height: 13px; color: var(--ink-3); white-space: nowrap; font-weight: 600; }
.dh.is-sat .dh-dow, .dh.is-sat .dh-num { color: var(--blue); }
.dh.is-red .dh-dow, .dh.is-red .dh-num, .dh.is-red .dh-note { color: var(--red); }
.dh.is-past .dh-num, .dh.is-past .dh-dow { opacity: .55; }
.dh.is-today { background: var(--today); }
.dh.is-today .dh-num { background: var(--wood); color: #fff; }
.dh.is-today .dh-dow { color: var(--wood); }
.dh.is-closed .dh-note { color: #fff; background: #2F2B27; border-radius: 4px; padding: 0 5px; height: 15px; line-height: 15px; font-size: 11px; }
.dh.is-selected { background: var(--wood-50); box-shadow: inset 0 -2px 0 var(--wood); }

.cal-cols { position: absolute; top: var(--head-h); left: var(--roomcol); bottom: 0; z-index: 0; pointer-events: none; }
.col { position: absolute; top: 0; bottom: 0; width: var(--day); border-right: 1px solid var(--line); }
.col-wkend { background: #FCFBFA; }
.col-past { background: #FBFBFA; }
.col-today { background: var(--today); box-shadow: inset 1px 0 0 var(--wood-100), inset -1px 0 0 var(--wood-100); }
.col-closed { background-image: repeating-linear-gradient(135deg, rgba(28, 26, 24, .055) 0 1px, transparent 1px 7px); }
.col-sel { background-color: rgba(139, 94, 60, .06); box-shadow: inset 1px 0 0 var(--wood-300), inset -1px 0 0 var(--wood-300); }

.cal-rows { position: relative; z-index: 1; padding-bottom: 76px; }
.row { display: flex; height: var(--row); }
.rl { position: sticky; left: 0; z-index: 4; width: var(--roomcol); flex: none; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 16px; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rt { position: relative; flex: none; border-bottom: 1px solid var(--line); }
.rm-no { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.rm-sub { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.rm-sub.warn { color: var(--warn); font-weight: 600; }
.rm-sub.green { color: var(--green); font-weight: 600; }
.rm-sub.red { color: var(--red); font-weight: 600; }

.row-group { height: 36px; }
.row-group .rl { background: var(--sub); gap: 6px; padding-left: 8px; }
.row-group .rt { background: var(--sub); }
.grp-toggle { width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--ink-3); }
.grp-toggle:hover { background: var(--sub-2); color: var(--ink); }
.grp-toggle .ic { transition: transform 160ms var(--ease); }
.grp-toggle[aria-expanded='false'] .ic { transform: rotate(-90deg); }
.grp-name { font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grp-meta { font-size: 12px; color: var(--ink-3); white-space: nowrap; flex: none; }
.grp-fem { flex: none; }
.grp-cell { position: absolute; top: 0; height: 100%; width: var(--day); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.grp-cell.is-low { color: var(--ink); }
.grp-cell.is-full { color: var(--ink-3); font-size: 12px; font-weight: 500; }
.grp-cell.is-ovr { color: var(--wood); }
.grp-cell.is-closed { color: var(--ink-3); font-size: 12px; }

.row-ua .rl { background: #FFFBF7; }
.row-ua .rt { background: repeating-linear-gradient(135deg, rgba(139, 94, 60, .045) 0 1px, transparent 1px 8px); }
.row-ua .rm-no { font-size: 13.5px; }

/* 예약 막대 */
.bar {
  position: absolute; top: 50%; height: 28px; margin-top: -14px;
  display: flex; align-items: center; gap: 6px; padding: 0 8px 0 9px; min-width: 0;
  border-radius: 2px; background: var(--oak); color: var(--ink); box-shadow: inset 0 0 0 1px var(--oak-line);
  font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; overflow: hidden;
  cursor: pointer; touch-action: none; user-select: none;
  transition: opacity 160ms var(--ease), box-shadow 140ms, background-color 140ms, transform 140ms;
}
/* 손가락 화면: 막대·요금 칸 위에서도 표를 밀어 스크롤한다(끌기 대신 누르기) */
@media (pointer: coarse) {
  .bar, .rg-scroll .rg-cell { touch-action: pan-x pan-y; }
}
.bar:hover { background: var(--oak-hover); }
.bar-name { min-width: 0; overflow: hidden; text-overflow: clip; letter-spacing: -.01em; }
.bar-meta { flex: none; font-weight: 500; color: var(--ink-2); font-size: 12.5px; }
/* 막대 앞 채널 마크 (고유 CI 색) */
.bar .bar-chm { width: 17px; height: 17px; border-radius: 4px; font-size: 9.5px; margin-left: -2px; }
.bar.is-out .bar-chm { opacity: .55; }
/* 채널색 보기(기본, 2026-10-04 사용자 요청): 막대 바탕 = 채널 CI 색을 흰색과 섞은 색.
   원색은 눈이 아파서 채널마다 섞는 비율(data.js tint)을 맞춰 비슷한 밝기로. 연한 색 = 예약확정, 진한 색 = 투숙 중,
   가예약 = 아주 연한 바탕 + 채널 색 점선, 체크아웃 = 회색(지난 일) */
.cal-card.is-chcolor .bar:not(.is-out):not(.is-hold):not(.is-new):not(.is-noshow) { background: var(--bt, var(--oak)); box-shadow: inset 0 0 0 1px var(--bb, var(--oak-line)); color: var(--ink); }
.cal-card.is-chcolor .bar.is-in, .cal-card.is-chcolor .bar.is-unpaid { background: var(--bti, var(--in)) !important; font-weight: 650; }
.cal-card.is-chcolor .bar.is-hold { background: var(--bth, var(--surface)); outline-color: var(--bb, var(--wood-300)); }
.cal-card.is-chcolor .bar .bar-meta { color: var(--ink-2); }
.cal-card.is-chcolor .bar:hover { filter: brightness(.96); }
.ch-sample { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ch-sw { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.bar-flag { flex: none; margin-left: auto; height: 18px; padding: 0 6px; border-radius: 5px; background: #fff; color: var(--red); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; }

.bar-due { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #fff; }
.bar-ic { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: var(--warn-bg); color: var(--warn); }
.bar.w-xs { padding: 0 5px; justify-content: center; }
.bar.w-xs .bar-meta, .bar.w-s .bar-meta, .bar.w-xs .bar-flag, .bar.w-s .bar-flag { display: none; }

/* 투숙 중 = 연한 우드. 진한 우드(#8B5E3C)는 주 버튼·선택·오늘에만 남긴다 */
.bar.is-in, .bar.is-unpaid { background: var(--in); color: var(--ink); box-shadow: none; }
.bar.is-in:hover, .bar.is-unpaid:hover { background: var(--in-hover); }
.bar.is-in .bar-meta, .bar.is-unpaid .bar-meta { color: var(--wood-700); }
.bar.is-out { background: var(--past); color: var(--ink-3); box-shadow: none; }
.bar.is-out .bar-meta { color: var(--ink-3); }
.bar.is-out:hover { background: #E8E6E2; }
.bar.is-hold { background: var(--surface); color: var(--ink-2); box-shadow: none; outline: 1.5px dashed var(--wood-300); outline-offset: -1.5px; }
.bar.is-noshow { background: var(--past); color: var(--red); box-shadow: none; }
.bar.is-noshow .bar-name { text-decoration: line-through; }
.bar.is-arr { padding-left: 15px; }
.bar.is-arr::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 4px; border-radius: 2px; background: #1FA463; }
.bar.is-dep { padding-right: 15px; }
.bar.is-dep::after { content: ''; position: absolute; right: 5px; top: 6px; bottom: 6px; width: 4px; border-radius: 2px; background: var(--wood-700); opacity: .55; }
.bar.cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.bar.cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.bar.is-new { background: var(--wood-50); color: var(--wood-700); box-shadow: none; outline: 1.5px solid var(--wood); outline-offset: -1.5px; }
.bar.is-new.is-bad { background: var(--red-bg); color: var(--red); outline-color: var(--red); }
.bar.is-sel { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); z-index: 3; }
.cal-card.has-sel .bar:not(.is-sel) { opacity: .42; }
.cal-card.is-filtering .bar:not(.is-match) { opacity: .22; }
.cal-card.is-filtering .bar.is-match { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wood); z-index: 2; }
.bar.is-dragging { z-index: 30; opacity: .96; cursor: grabbing; transition: none; box-shadow: 0 16px 30px rgba(28, 26, 24, .25); }
.bar.is-lighting { animation: bar-in 520ms var(--ease); }
@keyframes bar-in { 0% { background-color: var(--oak); } 100% { background-color: var(--in); } }
.ghost { position: absolute; top: 50%; height: 28px; margin-top: -14px; border-radius: 7px; outline: 2px dashed var(--wood); outline-offset: -2px; background: rgba(139, 94, 60, .06); pointer-events: none; z-index: 2; }
.ghost.is-bad { outline-color: var(--red); background: rgba(194, 24, 91, .06); }
.ghost.is-arrange { outline-color: var(--warn); background: rgba(154, 84, 0, .06); }
.ghost-note { position: absolute; left: 0; top: calc(100% + 8px); white-space: nowrap; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; box-shadow: var(--sh-3); }
.ghost-lbl { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); font-size: 12.5px; font-weight: 650; color: var(--warn); white-space: nowrap; }
.ghost.is-arrange, .ghost.is-target { z-index: 5; background-color: rgba(255, 244, 229, .96); }
.ghost.is-target { outline-color: var(--wood); background-color: rgba(246, 238, 230, .97); }
.ghost.is-target .ghost-lbl { color: var(--wood-700); }
.bar.is-moving { opacity: .35; outline: 1.5px dashed var(--warn); outline-offset: 1px; }
.grp-name .short { display: none; }
.mv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mv { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--sub); }
.mv .av { width: 32px; height: 32px; font-size: 11.5px; }
.mv.is-new { background: var(--wood-50); }
.mv-main { flex: 1; min-width: 0; }
.mv-main b { display: block; font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-main small { font-size: 12.5px; color: var(--ink-3); }
.mv-path { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.mv-path b { color: var(--wood-700); font-weight: 700; }
/* 새 예약 폼 안의 자동 정렬 미리보기 — 알림 상자 안이라 흰 줄로 */
.mv-list.is-compact { margin-top: 8px; gap: 4px; }
.mv-list.is-compact .mv { padding: 7px 10px; background: var(--surface); }

.blk { position: absolute; top: 50%; height: 28px; margin-top: -14px; border-radius: 7px; background-color: var(--sub-2); background-image: repeating-linear-gradient(135deg, rgba(28, 26, 24, .09) 0 1px, transparent 1px 6px); display: flex; align-items: center; padding: 0 8px; overflow: hidden; }
.blk span { padding: 2px 7px; border-radius: 5px; background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 0 0 1px var(--line-2); }

/* 유연 객실(4인실·8인실): 제목 줄 아래 판매 상품 줄(단독·혼성·여성의 잔여·요금), 방마다 침대 줄.
   단독 막대는 그 방 침대 줄을 모두 덮고, 방을 밤마다 어떤 방식으로 쓰는지는 연한 띠(혼성·여성)로 */
.row-group.is-pool .grp-meta { margin-left: auto; padding-left: 6px; }
.row-group.row-prod { height: 28px; }
.row-prod .rl { padding-left: 8px; }
/* 유연 판매 현황은 날짜 머리 바로 아래에 고정(운영자: "현황이니까") — 방 줄만 스크롤 */
.cal-sum { position: sticky; top: var(--head-h); z-index: 6; box-shadow: 0 1px 0 var(--line-2), 0 6px 10px -6px rgba(28, 26, 24, .12); }
.prod-name b { font-weight: 700; color: var(--ink); }
.row-prod .grp-cell { font-size: 12.5px; }
.prod-name { min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-mode { flex: none; display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; font-size: 11px; font-weight: 700; line-height: 1; }
.rm-mode .short { display: none; }
.row-room .rm-no { white-space: nowrap; }
.rm-mode.is-mixed { background: var(--mode-mixed); color: var(--mode-mixed-ink); }
.rm-mode.is-female { background: var(--mode-female); color: var(--mode-female-ink); }
.mband { position: absolute; top: 0; height: calc(var(--row) * var(--rows, 1)); pointer-events: none; }
.mband.is-mixed { background: var(--mode-mixed-band); }
.mband.is-female { background: var(--mode-female-band); }
.bar.is-room, .ghost.is-room { top: 5px; margin-top: 0; height: calc(var(--row) * var(--rows, 1) - 10px); }
.bar.is-room { flex-wrap: wrap; align-items: center; align-content: flex-start; row-gap: 6px; padding-top: 8px; z-index: 1; }
.bar-line2 { flex-basis: 100%; min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; }
.bar.is-room .bar-line2 .bar-meta { display: inline; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bar.is-room .bar-line2 .bar-flag { display: inline-flex; margin-left: 0; }
.bar.is-room.is-arr::before, .bar.is-room.is-dep::after { top: 8px; bottom: 8px; }
.ghost.is-room .ghost-lbl { top: 16px; }
.lg-sw.lg-mixed { background: var(--mode-mixed); box-shadow: inset 0 0 0 1px var(--line-2); }
.lg-sw.lg-female { background: var(--mode-female); box-shadow: inset 0 0 0 1px var(--line-2); }

.selbar { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 12; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 18px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: 0 18px 40px rgba(28, 26, 24, .3); animation: selbar-in 180ms var(--ease); white-space: nowrap; }
@keyframes selbar-in { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* 선택 막대가 떠 있으면 토스트는 그 위로 */
body:has(.selbar) .toasts { bottom: 92px; }
.selbar-txt { font-size: 14px; color: rgba(255, 255, 255, .8); margin-right: 8px; }
.selbar-txt b { color: #fff; }
.selbar .btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.selbar .btn .ic { color: #fff; }
.selbar .btn:hover { background: rgba(255, 255, 255, .16); }
.selbar .btn-close-sale { background: #fff; color: var(--ink); border-color: #fff; }
.selbar .btn-close-sale .ic { color: var(--red); }
.selbar .btn-close-sale:hover { background: #F2F0ED; }
.selbar .gap { width: 14px; }

/* ───────── 게스트 상태창 (오른쪽 패널) ───────── */
/* 패널 폭은 한 번에 바뀌고(레이아웃 1회), 안쪽 내용만 transform·opacity로 미끄러져 들어온다 */
.side-panel { width: 0; flex: none; overflow: hidden; background: var(--surface); position: relative; z-index: 9; }
.app.has-panel .side-panel { width: var(--panel); border-left: 1px solid var(--line); box-shadow: -12px 0 32px -18px rgba(28, 26, 24, .25); }
.sp { width: var(--panel); height: 100%; display: flex; flex-direction: column; animation: panel-in 220ms var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.sp-head { flex: none; padding: 18px 18px 14px 22px; border-bottom: 1px solid var(--line); }
.sp-top { display: flex; align-items: flex-start; gap: 12px; }
.sp-top .av { width: 44px; height: 44px; font-size: 15px; }
.sp-name { margin: 0; font-size: 20px; font-weight: 750; letter-spacing: -.03em; line-height: 1.25; }
.sp-sub { margin: 3px 0 0; font-size: 13px; color: var(--ink-3); }
.sp-close { margin-left: auto; margin-top: -4px; }
.sp-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.status-btn { display: inline-flex; align-items: center; gap: 2px; border: 0; padding: 0; background: transparent; border-radius: 7px; }
.status-btn .badge { height: 28px; padding: 0 8px 0 10px; font-size: 13px; border-radius: 7px; }
.status-btn:hover .badge { filter: brightness(.96); }
.sp-body { flex: 1; min-height: 0; overflow: auto; padding: 4px 22px 24px; }
.sp-sec { padding: 18px 0 16px; }
.sp-sec + .sp-sec { border-top: 1px solid var(--line); }
.sp-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14.5px; font-weight: 700; letter-spacing: -.02em; }
.sp-h .ic { color: var(--wood); }
.sp-h .btn { margin-left: auto; }
.sp-foot { flex: none; padding: 14px 22px 18px; border-top: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.sp-foot .row-btns { display: flex; gap: 8px; }
.sp-foot .row-btns .btn { flex: 1; }
.sp-foot-note { font-size: 12.5px; color: var(--ink-3); text-align: center; }

.stay-card { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--sub); border: 1px solid var(--line); }
.sc-end b { display: block; font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.sc-end span { font-size: 12.5px; color: var(--ink-3); }
.sc-end.right { text-align: right; }
.sc-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--wood); }
.sc-mid i { display: block; width: 56px; height: 2px; border-radius: 2px; background: var(--wood-300); }
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 9px 12px; margin: 16px 0 0; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv .input { width: 100%; }
/* 직접 예약: 확정 안내·메시지를 보낼 곳 */
.kv-via { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.kv-via .ch-mark { width: 17px; height: 17px; font-size: 9.5px; border-radius: 4px; }
.kv-via .link { display: inline-flex; align-items: center; gap: 3px; margin-left: 2px; font-size: 12.5px; }

.alert { display: flex; gap: 12px; padding: 14px 14px 14px 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--sub); }
.alert > .ic { margin-top: 2px; }
.alert-title { font-size: 14px; font-weight: 700; }
.alert-body { margin-top: 3px; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.alert-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.alert-warn { background: var(--warn-bg); border-color: var(--warn-line); }
.alert-warn > .ic { color: var(--warn); }
.alert-green { background: var(--green-bg); border-color: var(--green-line); }
.alert-green > .ic { color: var(--green); }
.alert-red { background: var(--red-bg); border-color: var(--red-line); }
.alert-red > .ic { color: var(--red); }
.alert-wood { background: var(--wood-50); border-color: var(--wood-100); }
.alert-wood > .ic { color: var(--wood); }

.bill { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.bill-row { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.bill-row b { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.bill-row.paid b { color: var(--green); }
.bill-row small { display: block; font-size: 12px; color: var(--ink-3); }
.bill-total { padding-top: 10px; margin-top: 2px; border-top: 1px dashed var(--line-2); color: var(--ink); font-weight: 700; }
.bill-total b { font-size: 16px; }
.bill-due { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--red-bg); border: 1px solid var(--red-line); }
.bill-due span { font-size: 13px; color: var(--red); font-weight: 600; }
.bill-due small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
.bill-due b { font-size: 22px; font-weight: 800; color: var(--red); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bill-due.is-clear { background: var(--green-bg); border-color: var(--green-line); }
.bill-due.is-clear span { color: var(--green); }
.bill-due.is-clear b { color: var(--green); }
.pay-methods { display: flex; gap: 6px; margin-top: 10px; }
.pay-methods .btn { flex: 1; }
/* 계산서 줄: 할인(초록 빼기), 추가 요금(빼기 단추), 환불(되돌린 돈) */
.bill-row { position: relative; align-items: baseline; }
.bill-row.disc b { color: var(--green); }
.bill-row.refund b { color: var(--warn); }
.bill-row.extra { padding-right: 26px; }
.bill-x { position: absolute; right: -4px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ink-3); display: grid; place-items: center; }
.bill-x:hover { background: var(--red-bg); color: var(--red); }
.bill-add { margin-top: 8px; }
/* 나눠 받기: 이번에 받을 금액 */
.pay-amt { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 10px; margin-top: 10px; }
.pay-amt .input { max-width: 160px; text-align: right; }
.pay-amt .field-hint { grid-column: 1 / -1; }
/* 상태창 머리: 예약 정보 고치기, 체류 카드 아래 날짜 바꾸기 */
.sp-edit { margin-left: auto; margin-top: -4px; }
.sp-edit + .sp-close { margin-left: 0; }
.sc-edit { margin-top: 8px; }
/* 날짜 바꾸기 요약 */
.dt-sum { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: var(--r); background: var(--sub); font-size: 13.5px; }
.dt-sum:empty { display: none; }
.dt-line { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.dt-line b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.dt-line b.up { color: var(--red); }
.dt-line b.down { color: var(--green); }
.dt-note { display: flex; align-items: flex-start; gap: 6px; margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.dt-note .ic { flex: none; margin-top: 2px; }
.dt-note.warn { color: var(--warn); }
.dt-note.bad { color: var(--red); }
/* 팝오버 안 빠른 고르기 알약 */
.chip-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-pick .pill { height: 30px; padding: 0 10px; font-size: 13px; }
.menu-item:disabled { cursor: not-allowed; opacity: .55; }
/* 단체 예약·나눠 묵기 목록 (예약 패널) */
.grp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.grp-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-align: left; color: inherit; font-size: 13.5px; }
.grp-item:hover { background: var(--sub); }
.grp-item.is-on { border-color: var(--wood-100); background: var(--wood-50); }
.grp-item b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grp-item span { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
/* 청소 담당 목록 */
.hk-staff { display: flex; flex-direction: column; gap: 8px; padding: 0 18px 16px; }
.hk-staff-row { display: grid; grid-template-columns: 32px minmax(0, 220px) 1fr auto; align-items: center; gap: 10px; }
.hk-staff-row .av { width: 32px; height: 32px; font-size: 12px; }
.hk-staff-n { font-size: 12.5px; color: var(--ink-3); }
/* 장기 투숙 할인 규칙 한 줄: 스위치 · 박수 · 할인율 */
.los-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.los-row .input { width: 64px; text-align: right; }
/* 알림 상자 안의 확인 체크 (여권으로 확인함) */
.ck-inline { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.menu-item:disabled:hover { background: transparent; }

.checklist { display: flex; flex-direction: column; }
.ck { display: flex; align-items: flex-start; gap: 11px; padding: 10px 0; font-size: 14px; cursor: pointer; }
.ck + .ck { border-top: 1px solid var(--line); }
.ck small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.ck code { font: 700 14px/1 var(--font); color: var(--wood); letter-spacing: .06em; }
.req { padding: 12px 14px; border-radius: var(--r); background: var(--wood-50); border: 1px solid var(--wood-100); font-size: 14px; display: flex; gap: 9px; }
.req .ic { color: var(--wood); margin-top: 3px; }
.hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hist li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--sub); font-size: 13.5px; }
.hist li b { font-weight: 650; }
.hist li span { color: var(--ink-3); margin-left: auto; font-size: 12.5px; }
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.log li { display: grid; grid-template-columns: 54px 1fr; gap: 8px; }
.log time { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 13px; }
.danger-zone { display: flex; gap: 8px; margin-top: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .input { width: 100%; }

/* ───────── 예약 목록 ───────── */
.lst-search { position: relative; margin-bottom: 14px; }
.lst-search > .ic { position: absolute; left: 18px; top: 50%; margin-top: -10px; color: var(--wood); pointer-events: none; }
.lst-search input { width: 100%; height: 56px; padding: 0 120px 0 50px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); font-size: 16px; box-shadow: var(--sh-2); transition: border-color 120ms, box-shadow 120ms; }
.lst-search input::placeholder { color: var(--ink-3); }
.lst-search input:focus { outline: none; border-color: var(--wood); box-shadow: 0 0 0 4px var(--wood-50), var(--sh-2); }
.lst-search .lst-clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.lst-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.lst-filters .label { flex: none; white-space: nowrap; font-size: 13px; color: var(--ink-3); font-weight: 600; margin: 0 2px 0 6px; }
.lst-filters .label:first-child { margin-left: 0; }
.lst-filters .vsep { width: 1px; height: 22px; background: var(--line-2); margin: 0 6px; }
/* 예약 목록: 검색·필터는 고정, 표만 카드 안에서 스크롤(머리줄 고정) */
.page > .lst-card { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.lst-card > .lst-count { flex: none; }
.lst-card > .tbl-wrap, .lst-card > .lst-cards { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.lst-card > .empty { margin: auto; }
.lst-count { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.lst-count b { color: var(--ink); }
.lst-count .tag-synth { margin-left: auto; }
.tbl-wrap { overflow: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { position: sticky; top: 0; z-index: 1; background: var(--sub); text-align: left; font-weight: 600; font-size: 12.5px; color: var(--ink-3); padding: 10px 14px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.tbl th button { border: 0; background: transparent; padding: 0; font: inherit; color: inherit; display: inline-flex; align-items: center; gap: 4px; }
.tbl th button:hover { color: var(--ink); }
.tbl th[aria-sort] button { color: var(--wood-700); }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; transition: background-color 100ms; }
.tbl tbody tr:hover { background: var(--sub); }
.tbl tbody tr.is-sel { background: var(--wood-50); }
.tbl .t-guest { display: flex; align-items: center; gap: 10px; }
.tbl .t-guest .av { width: 32px; height: 32px; font-size: 11.5px; }
.tbl .t-name { font-weight: 650; }
.tbl .t-sub { font-size: 12.5px; color: var(--ink-3); }
.tbl .t-date { font-variant-numeric: tabular-nums; }
.tbl .t-date small { color: var(--ink-3); margin-left: 3px; }
.tbl .t-num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl th.t-num { text-align: right; }
.tbl .red { color: var(--red); font-weight: 650; }
.tbl .muted { color: var(--ink-3); }
.lst-cards { display: none; }

/* ───────── 오늘 현황 ───────── */
.ph-title.is-display { font-size: 30px; letter-spacing: -.035em; }
/* 숙소 카드: 운영자 가게 사진 + 아래 카드들에 없는 오늘의 운영 신호만 */
.prop { display: grid; grid-template-columns: 240px minmax(0, 1fr); margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.prop-photo { position: relative; min-height: 150px; background: #2A2622 center / cover no-repeat; }
.prop-photo span { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(28, 26, 24, .72); color: #fff; font-size: 11.5px; font-weight: 600; }
.prop-body { display: flex; flex-direction: column; min-width: 0; }
.prop-head { display: flex; align-items: center; gap: 6px 14px; padding: 15px 20px 13px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.prop-name { margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.prop-meta { font-size: 13px; color: var(--ink-3); }
.prop-occ { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.prop-occ b { color: var(--ink); }
.occ-bar { width: 140px; height: 8px; border-radius: 4px; background: var(--sub-2); overflow: hidden; }
.occ-bar i { display: block; height: 100%; border-radius: 4px; background: var(--wood); }
.prop-stats { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ps { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 12px 20px; color: inherit; transition: background-color 120ms; }
.ps + .ps { border-left: 1px solid var(--line); }
.ps:hover { background: var(--sub); }
.ps-label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ps-label .ic { color: var(--wood); }
.ps-n { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.ps-n small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; line-height: 1.4; }
.ps-n.warn { color: var(--warn); }
.ps-n.red { color: var(--red); }
.ps-n.quiet { color: var(--ink-3); font-size: 15px; font-weight: 600; }
.td-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.td-grid2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; margin-top: 18px; }
/* 넓은 화면: 카드 6개가 한 화면에 들어오고, 각 카드의 목록이 카드 안에서 스크롤된다.
   화면이 낮아 카드가 너무 작아지면(행당 250px 미만) 카드 영역 전체가 스크롤된다 */
@media (min-width: 1281px) {
  .td-body { display: flex; flex-direction: column; }
  .td-body > .prop { flex: none; }
  .td-grids { flex: 1 0 0; min-height: 500px; display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
  .td-grids .td-grid, .td-grids .td-grid2 { min-height: 0; margin-top: 0; align-items: stretch; }
  .td-grids .card { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
  .td-grids .card > .card-head { flex: none; }
  .td-grids .card > .list { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
}
.list { list-style: none; margin: 0; padding: 0 0 6px; }
.li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 18px; transition: background-color 140ms; }
.li + .li { border-top: 1px solid var(--line); }
.li:hover { background: var(--sub); }
.li-main { min-width: 0; }
.li-name { display: flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-name .badge { flex: none; }
.li-sub { margin-top: 2px; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-sub b { color: var(--ink-2); font-weight: 600; }
.li-sub .red { color: var(--red); font-weight: 650; }
.li-sub .warn { color: var(--warn); font-weight: 650; }
.li-act { display: flex; align-items: center; gap: 6px; }
.li.is-done .li-name { color: var(--ink-2); }
.li.is-lighting::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(139, 94, 60, .16), rgba(139, 94, 60, 0)); transform-origin: left; animation: row-light 650ms var(--ease) forwards; }
@keyframes row-light { from { transform: scaleX(0); opacity: 1; } 70% { opacity: 1; } to { transform: scaleX(1); opacity: 0; } }
.li-empty { padding: 20px 18px 24px; color: var(--ink-3); font-size: 13.5px; line-height: 1.6; }
.time { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); min-width: 44px; }
.time small { display: block; font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.hks { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 650; white-space: nowrap; transition: background-color 120ms, border-color 120ms; }
.hks:hover:not(:disabled) { background: var(--sub-2); }
.hks:disabled { cursor: default; }
.hks i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.hks.s-dirty { color: var(--warn); border-color: var(--warn-line); background: var(--warn-bg); }
.hks.s-cleaning i { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.hks.s-inspect i { background: conic-gradient(currentColor 0 75%, transparent 75%); }
.hks.s-ready { color: var(--green); border-color: var(--green-line); background: var(--green-bg); }
.hks.s-ready i { background: currentColor; }
.hks.s-dueout, .hks.s-stayover { color: var(--ink-3); }

/* ───────── 하우스키핑 ─────────
 * 상태 점: 빈 원(청소 필요) → 반(청소 중) → 3/4(점검 대기) → 꽉 찬 원(준비됨). 색을 못 봐도 단계가 읽힌다.
 * 강한 색은 '청소 필요'(주황)뿐. 준비됨은 초록 점과 글자만, 투숙 중은 캘린더의 투숙 색(#DCC0A0)을 점으로만 */
.hk-dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; color: var(--ink-3); }
.hk-dot.s-dirty { color: var(--hk-red); background: currentColor; }
.hk-dot.s-cleaning { color: var(--hk-red); background: linear-gradient(90deg, currentColor 50%, var(--hk-red-bg) 50%); }
.hk-dot.s-inspect { color: var(--hk-red); background: conic-gradient(currentColor 0 75%, var(--hk-red-bg) 75%); }
.hk-dot.s-ready { color: var(--ink-4); background: var(--surface); }
.hk-dot.s-dueout { color: var(--hk-stay); border-style: dashed; }
.hk-dot.s-stayover { color: var(--hk-stay); background: currentColor; }
.hk-dot.s-ooo { color: var(--ink-4); background: repeating-linear-gradient(135deg, currentColor 0 1.5px, transparent 1.5px 3.5px); }

.hk-sum { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); margin-bottom: 16px; }
.hk-sum > div { padding: 16px 20px 18px; min-width: 0; }
.hk-sum > div + div { border-left: 1px solid var(--line); }
.hk-k { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hk-k .ic { color: var(--wood); }
.hk-big { display: flex; align-items: baseline; gap: 7px; margin-top: 6px; flex-wrap: wrap; }
.hk-big b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.hk-big span { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.hk-bar { width: 100%; margin-top: 12px; }
.hk-legend { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
.hk-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hk-legend b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.hk-p { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.5; display: flex; align-items: center; gap: 5px; }
.hk-p .ic { color: var(--green); flex: none; }
.hk-people { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hk-people li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.hk-people .av { width: 28px; height: 28px; font-size: 11px; }
.hk-pn { flex: 1; font-weight: 600; }
.hk-pl { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hk-pl b { color: var(--ink); font-weight: 700; }
.hk-assign { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.hk-none { display: inline-flex; align-items: center; gap: 5px; color: var(--warn); font-weight: 600; }
.hk-assign .hk-none { font-size: 13px; }


.hk-filters { margin-bottom: 12px; }
/* 전체 방: 건물 단면처럼 위층부터, 왼쪽에 층 이름 */
.hk-floor { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.hk-scroll > .hk-floor:first-child { border-top: 0; padding-top: 0; }
.hk-floor-h { margin: 0; padding-top: 6px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.hk-floor-h b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.hk-grid { align-items: start; }
.hk-mini { display: none; }
/* 하우스키핑: 진행 요약·필터는 고정, 방 보드만 스크롤 */
.page > .hk-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.hk-top { flex: none; }
.hk-scroll > .hk-grid:first-child, .hk-scroll > .hk-floor:first-child { margin-top: 0; }
.hk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.hk-tile { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.hk-tile-head { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 24px; }
.hk-no { font-size: 18px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hk-type { min-width: 0; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk-eta { margin-left: auto; flex: none; }
.hk-beds { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 6px; }
.hk-bed, .hk-room { position: relative; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); text-align: left; color: var(--ink); transition: border-color 120ms, background-color 120ms, box-shadow 120ms; }
.hk-bed:hover, .hk-room:hover { border-color: var(--line-3); box-shadow: var(--sh-2); }
.hk-bed { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 54px; padding: 8px 10px; }
.hk-bed-no { font-size: 15px; font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hk-bed-st { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.hk-room { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 8px 12px; font-size: 14px; font-weight: 650; }
.hk-room-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hk-room-t small { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.hk-room .hk-room-go { color: var(--ink-3); flex: none; }
/* 칸 색: 상태마다 청소 설정 › 상태 표시의 색(--hkc 바탕, --hkt 글자, --hkb 테두리). 기본 — 청소 붉은색, 투숙 짙은 회색, 오늘 입실 초록, 빈 방 흰 칸 */
.hk-bed.hk-c, .hk-room.hk-c { background-color: var(--hkc); border-color: var(--hkb); color: var(--hkt); }
.hk-c .hk-bed-st, .hk-c .hk-room-t { color: var(--hks); }
.hk-c .hk-bed-st small { font-size: 11.5px; font-weight: 600; opacity: .85; }
.hk-c .hk-room-t small { color: var(--hks); }
.hk-c.is-ooo { background-image: repeating-linear-gradient(135deg, rgba(28, 26, 24, .07) 0 1px, transparent 1px 6px); }
.hk-bed.hk-c:hover, .hk-room.hk-c:hover { filter: brightness(.97); border-color: var(--hkb); }
/* 침대 메모: 앞부분만 한 줄로(길면 …) — 전체는 칸을 눌러서 */
.hk-bed { min-width: 0; }
.hk-bed-memo { display: block; max-width: 100%; font-size: 11.5px; font-weight: 600; line-height: 1.3; color: var(--warn); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk-c .hk-bed-memo { color: inherit; opacity: .9; }
/* 범례·상태 고르기 칸 */
.hk-sw { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--hkb, var(--line-2)); background: var(--hkc, var(--surface)); }
/* 방 메모 */
.hk-memo-btn { flex: none; color: var(--ink-3); }
.hk-memo-btn.is-push { margin-left: auto; }
.hk-memo { display: flex; align-items: flex-start; gap: 7px; width: 100%; padding: 8px 10px; border-radius: 8px; background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--ink); font-size: 13px; line-height: 1.45; text-align: left; }
.hk-memo > .ic { flex: none; margin-top: 2px; color: var(--warn); }
.hk-memo > b { flex: none; font-weight: 750; font-variant-numeric: tabular-nums; }
.hk-memo > span { flex: 1; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.hk-memo small { flex: none; margin-left: 6px; color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.hk-memo:hover { border-color: var(--warn); }
.hk-memo-in { height: auto; min-height: 104px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.hk-arr { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--green-bg); color: var(--green); }
.hk-tile-foot { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.hk-tile-foot > span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; }
.hk-tile-foot .ic { color: var(--ink-3); flex: none; }
.hk-tile-foot .hk-none .ic { color: var(--warn); }
.hk-req { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block !important; }
.hk-req .ic { vertical-align: -2px; margin-right: 5px; }
.hk-nexttag { margin-left: auto; }
.hk-reasons { display: flex; flex-wrap: wrap; gap: 6px; }

/* 청소 설정 */
.hk-sel { width: auto; min-width: 120px; flex: none; }
.hk-cfg { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 14px 18px; border-top: 1px solid var(--line); }
.hk-cfg-room { padding-top: 6px; }
.hk-cfg-room b { display: block; font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; }
.hk-cfg-room span { font-size: 12.5px; color: var(--ink-3); }
.hk-cfg-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bed-edit, .hk-cfg-blocks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bed-in { position: relative; display: inline-flex; }
.bed-in .input { width: 96px; padding-right: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bed-x { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ink-3); display: grid; place-items: center; }
.bed-x:hover { background: var(--red-bg); color: var(--red); }
.hk-blk { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 34px 0 10px; border-radius: 8px; background-color: var(--sub-2); background-image: repeating-linear-gradient(135deg, rgba(28, 26, 24, .07) 0 1px, transparent 1px 6px); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.hk-blk > .ic { color: var(--ink-3); }
.hk-blk b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.hk-cfg-sw { display: inline-flex; align-items: center; gap: 8px; padding-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; cursor: pointer; }

/* ───────── 메시지 (#5 #11 #12 #13) ─────────
 * 게스트 말 = 흰 말풍선(왼쪽), 우리 답 = 오른쪽. 직원 답장은 연한 우드, 챗봇·자동 메시지는 크림 바탕에 M 엠블럼.
 * 번역은 말풍선 아래 회색 한 줄 — 원문을 가리지 않는다 */
.link { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--wood-700); cursor: pointer; }
.link:hover { text-decoration: underline; }
.tab-cnt { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 2px; border-radius: 10px; background: var(--wood); color: #fff; font-size: 11.5px; font-weight: 700; }
.tab-cnt[hidden] { display: none; }
.msg-page .tabs { margin-bottom: 14px; }
/* 대화 탭: 목록과 대화창이 각자 스크롤. 나머지 탭: 탭 아래 영역만 스크롤 */
.page > .msg-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain; margin: 0 -6px; padding: 2px 6px 8px; }
.msg-page.is-inbox > .msg-body { overflow: hidden; }
/* 대화 목록과 대화창은 서로 다른 카드 — 사이 16px 바닥색 틈이 경계를 만든다 (2026-10-04 사용자: 경계가 모호하다) */
.msg-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; }
.ml, .mt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.ml { display: flex; flex-direction: column; min-height: 0; }
.ml-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px; }
.ml-head .ml-new { margin-left: auto; }
/* 새 메시지 팝오버: 게스트 찾기 */
.nm-search { margin: 0; }
.nm-list { display: flex; flex-direction: column; gap: 2px; max-height: 340px; overflow: auto; margin: 0 -8px; }
.nm-item { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; color: inherit; }
.nm-item:hover { background: var(--sub); }
.nm-item .av { width: 32px; height: 32px; font-size: 12px; }
.nm-main { min-width: 0; }
.nm-main b { display: block; font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-main small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.nm-main .ch-mark { width: 17px; height: 17px; font-size: 9.5px; border-radius: 4px; }
.nm-tag { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.nm-empty { margin: 6px 8px; font-size: 13px; color: var(--ink-3); }
/* 새 메시지 팝오버 아래: 예약 없는 문의 시작 */
.nm-inq { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px dashed var(--line-3); border-radius: var(--r); background: transparent; text-align: left; color: var(--ink-2); }
.nm-inq:hover { border-color: var(--wood-300); background: var(--wood-50); }
.nm-inq .ic { flex: none; color: var(--wood); }
.nm-inq b { display: block; font-size: 14px; font-weight: 650; color: var(--ink); }
.nm-inq small { font-size: 12px; color: var(--ink-3); }
/* 첨부 말풍선: 숙소 위치 카드 · 사진 */
.mg-bubble.mg-att { padding: 6px; }
.mg-map { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; min-width: 220px; }
.mg-map .ic { flex: none; margin-top: 2px; color: var(--red); }
.mg-map b { display: block; font-size: 14px; font-weight: 650; }
.mg-map small { display: block; font-size: 12.5px; color: var(--ink-3); }
.mg-map em { display: inline-block; margin-top: 4px; font-style: normal; font-size: 12.5px; font-weight: 650; color: var(--wood-700); }
.mg-photo { display: block; width: 220px; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
/* 먼저 보내는 새 대화 */
.th-new { margin: auto; max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 0; text-align: center; font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.th-new .ic { color: var(--wood); }
.th-new b { font-size: 15px; font-weight: 650; color: var(--ink); }
.ml-title { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.ml-count { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.ml-search { position: relative; margin: 0 14px 10px; }
.ml-search > .ic { position: absolute; left: 11px; top: 50%; margin-top: -8px; color: var(--ink-3); pointer-events: none; }
.ml-search input { width: 100%; height: 36px; padding: 0 12px 0 34px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--sub); font: inherit; font-size: 13.5px; color: var(--ink); }
.ml-search input:focus { outline: none; border-color: var(--wood); background: var(--surface); box-shadow: 0 0 0 3px var(--wood-50); }
/* 필터는 한 줄로 — 좁으면 옆으로 넘긴다 */
.ml-filters { display: flex; flex-wrap: nowrap; gap: 6px; padding: 0 14px 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ml-filters::-webkit-scrollbar { display: none; }
.ml-filters .pill { height: 30px; padding: 0 10px; gap: 5px; font-size: 13px; }
.ml-list { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.mi { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; width: 100%; padding: 11px 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; text-align: left; color: inherit; transition: background-color 120ms, border-color 120ms; }
.mi:hover { background: var(--sub); }
.mi.is-sel { background: var(--wood-50); border-color: var(--wood-100); }
.mi.is-sel .mi-name { color: var(--wood-700); }
/* 고른 대화의 나무색 바탕에서도 상태 배지가 묻히지 않게 */
.mi.is-sel .badge { background: var(--surface); box-shadow: inset 0 0 0 1px var(--wood-100); }
.mi .av { width: 38px; height: 38px; }
.mi-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mi-top { display: flex; align-items: baseline; gap: 8px; }
.mi-name { min-width: 0; font-size: 14.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi.is-unread .mi-name { font-weight: 800; }
.mi-time { margin-left: auto; flex: none; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mi-sub { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.mi-sub .ch { font-size: 12px; gap: 5px; }
.mi-sub .ch-mark { width: 17px; height: 17px; font-size: 9.5px; border-radius: 4px; }
.mi-prev { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi.is-unread .mi-prev { color: var(--ink); }
.mi-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-top: 1px; }
.mi-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--wood); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.mt { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.mt > .empty { margin: auto; }
.th { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.th-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; background: var(--surface); }
.th-back { display: none; }
.th-who { min-width: 0; flex: 1; }
.th-name { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.th-sub { margin: 3px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--ink-3); }
.th-sub .ch { font-size: 12.5px; }
.th-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.th-acts [data-tr][aria-pressed='true'] { color: var(--wood-700); }
.th-scroll { flex: 1; min-height: 0; overflow: auto; padding: 8px 18px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--sub); }
.md-sep { display: flex; align-items: center; gap: 10px; margin: 8px 0 2px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.md-sep::before, .md-sep::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.mg { display: flex; align-items: flex-end; gap: 8px; }
.mg.is-mine { flex-direction: row-reverse; }
.mg-av { width: 28px; height: 28px; flex: none; }
.mg-col { display: flex; flex-direction: column; max-width: min(72%, 560px); min-width: 0; }
.mg.is-mine .mg-col { align-items: flex-end; }
.mg-label { margin: 0 4px 4px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.mg-bubble { padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; word-break: normal; }
.mg.is-guest .mg-bubble { border-bottom-left-radius: 4px; }
.mg.is-mine .mg-bubble { border-bottom-right-radius: 4px; }
.mg.from-staff .mg-bubble { background: var(--wood-50); border-color: var(--wood-100); }
.mg.from-bot .mg-bubble, .mg.from-auto .mg-bubble { background: #FBF8F1; border-color: var(--oak-line); }
/* 말줄임은 안쪽 글자에만 — 말풍선 패딩 안으로 다음 줄이 비치지 않게 */
.mg-text { display: block; }
.mg-text.is-clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.mg-tr { display: flex; gap: 6px; max-width: 100%; margin: 5px 4px 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); white-space: pre-line; }
.mg-tr .ic { flex: none; margin-top: 3px; color: var(--ink-4); }
.mg-note { margin: 4px 4px 0; font-size: 12px; color: var(--warn); font-weight: 600; }
.mg-meta { display: flex; align-items: center; gap: 6px; margin: 4px 4px 0; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mg-meta .link { font-size: 11.5px; }
.mg-sys { align-self: center; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.mg-sys .ic { color: var(--wood); flex: none; }
.mg-sys time { color: var(--ink-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.mg-sys.is-wait .ic { color: var(--ink-3); }
.mg-sys.is-hand { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn); }
.mg-sys.is-hand .ic { color: var(--warn); }
.th-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 10px 16px 0; padding: 12px 14px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.th-card > .ic { color: var(--wood); align-self: start; margin-top: 2px; }
.th-card.is-change { background: var(--wood-50); border-color: var(--wood-100); }
.th-card.is-draft { border-style: dashed; border-color: var(--wood-300); }
.tc-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 13px; color: var(--ink-2); }
.tc-main > b { font-size: 14px; color: var(--ink); }
.tc-main span { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.tc-ok { color: var(--green); font-weight: 600; }
.tc-bad { color: var(--red); font-weight: 600; }
.tc-why { color: var(--ink-3); font-size: 12.5px; }
.tc-text { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink); }
.tc-ko { margin: 0; display: flex; gap: 6px; font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }
.tc-ko .ic { flex: none; margin-top: 3px; }
.tc-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cp { padding: 12px 16px 14px; border-top: 1px solid var(--line); margin-top: 10px; }
.cp-pre { margin-bottom: 8px; padding: 10px 12px; border-radius: 10px; background: #FBF8F1; border: 1px solid var(--oak-line); }
.cp-pre-h { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.cp-pre-h .link { margin-left: auto; font-size: 12px; }
.cp-pre p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.6; white-space: pre-line; }
.cp-in { width: 100%; min-height: 64px; height: auto; padding: 10px 12px; line-height: 1.55; resize: vertical; }
.cp-acts { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.cp-acts .spacer { flex: 1; }
.cp-hint { font-size: 12px; color: var(--ink-3); }
.notes { max-height: min(460px, 60vh); overflow: auto; padding: 4px 8px 6px; display: flex; flex-direction: column; gap: 2px; }
.note { padding: 10px; border-radius: 10px; }
.note.is-unread { background: var(--wood-50); }
.note-main { display: flex; gap: 10px; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; color: inherit; }
.note-ic { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--wood); }
.note-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.note-txt b { font-size: 14px; font-weight: 650; }
.note-txt small { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.note-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 3px; font-size: 12px; color: var(--ink-3); }
.note-meta .badge { height: 20px; font-size: 11.5px; }
.note-acts { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 42px; }
a.badge.sp-msg { text-decoration: none; }
a.badge.sp-msg:hover { filter: brightness(.97); }
/* 배지 모양 단추(메시지 보내기): 기본 단추 테두리를 지운다 */
button.badge { border: 0; font-family: inherit; cursor: pointer; }
button.badge.sp-msg:hover { filter: brightness(.97); }
/* 자동 메시지 */
.au-layout { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 18px; align-items: start; }
.au-list { display: flex; flex-direction: column; gap: 10px; }
.au-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-1); }
.au-card.is-sel { border-color: var(--wood-300); box-shadow: 0 0 0 3px var(--wood-50); }
.au-pick { display: flex; gap: 12px; padding: 0; border: 0; background: transparent; text-align: left; color: inherit; min-width: 0; }
.au-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--wood-50); color: var(--wood); }
.au-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.au-txt b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.au-when { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.au-when .ic { color: var(--wood); }
.au-txt small { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.au-body { padding: 0 18px 18px; }
/* 문안 고치기 (자동 메시지·챗봇 답변) */
.tpl-edit { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.tpl-edit textarea { width: 100%; min-height: 168px; font-size: 14px; line-height: 1.65; resize: vertical; }
.tpl-vars { display: flex; flex-wrap: wrap; gap: 6px; }
.tpl-vars .pill { height: 28px; padding: 0 10px; font-size: 12.5px; }
.tpl-acts { display: flex; align-items: center; gap: 6px; }
.tpl-acts .spacer { flex: 1; }
.au-edit { margin-top: 8px; }
.au-kind { margin-top: 10px; flex-wrap: wrap; }
.kb-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kb-keys { margin-top: 10px; }
/* 미리보기 언어 고르기 (13개 언어) */
.lang-pick { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.lang-pick .ic { color: var(--ink-3); }
.lang-pick select { width: auto; min-width: 200px; color: var(--ink); }
.au-bubble { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: #FBF8F1; border: 1px solid var(--oak-line); font-size: 14px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.au-body > .mg-tr { margin: 8px 2px 0; }
.au-foot { display: flex; gap: 6px; margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.au-foot .ic { flex: none; margin-top: 2px; color: var(--wood); }
.au-foot a { color: var(--wood-700); font-weight: 600; }
/* 챗봇 */
.bt-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); gap: 18px; align-items: start; }
.opt-cards.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt-cards.is-3 .opt-card { padding: 14px; }
.kb { list-style: none; margin: 0; padding: 0; }
.kb-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); }
.kb-row.is-off .kb-txt, .kb-row.is-off .kb-ic { opacity: .5; }
.kb-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--sub-2); color: var(--ink-2); }
.kb-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kb-txt b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.kb-txt small { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-ans { padding: 0 18px 16px 66px; }
.bt-test { position: sticky; top: 0; }
.bt-log { max-height: 440px; min-height: 200px; overflow: auto; padding: 4px 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.bt-empty { margin: auto; padding: 16px 8px; max-width: 320px; text-align: center; font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.bt-empty b { display: block; margin-top: 6px; font-size: 15px; color: var(--ink); }
.bt-empty p { margin: 4px 0 0; }
.bt-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px; border-top: 1px solid var(--line); }
.bt-chips .pill { height: 30px; font-size: 12.5px; }
.bt-form { display: flex; gap: 8px; padding: 0 16px 16px; }
.bt-form .input { flex: 1; min-width: 0; }
/* 숙소 정보 */
.hs-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); gap: 18px; align-items: start; }
.hs-form > .alert { margin-bottom: 18px; }
.hs-prev { position: sticky; top: 0; }
.hf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; padding: 2px 18px 18px; }
.hf { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
/* 확정 안내에 덧붙일 줄: 보내기 스위치 · 한국어 · 영어 · 지우기 */
.hx-list { display: flex; flex-direction: column; gap: 8px; padding: 0 18px 12px; }
.hx-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.hf > span:first-child { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hf-num { display: flex; align-items: center; gap: 6px; }
.hf-num .input { width: 110px; text-align: right; font-variant-numeric: tabular-nums; }
.hf-num em { font-style: normal; font-size: 13px; color: var(--ink-3); }
.hf-sw { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; cursor: pointer; }

/* ───────── 요금·시세 ───────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab-a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; font-size: 15px; font-weight: 650; color: var(--ink-3); border: 0; background: transparent; }
.tab-a:hover { color: var(--ink); }
.tab-a[aria-selected='true'] { color: var(--ink); }
.tab-a[aria-selected='true']::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--wood); border-radius: 2px 2px 0 0; }
.mk-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; }
.mk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: 'chart side' 'fx side'; gap: 18px; align-items: start; }
.mk-chart { grid-area: chart; }
.mk-grid > .side { grid-area: side; }
.mk-grid > .factor-panel { grid-area: fx; }
.legend2 { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-left: auto; font-size: 13px; color: var(--ink-2); }
.lg2 { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.lg2-line { width: 18px; height: 2.5px; border-radius: 2px; }
.lg2-band { width: 18px; height: 11px; border-radius: 4px; background: rgba(138, 132, 124, .16); }
.chart { position: relative; padding: 0 10px 4px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.ax text { font: 500 11.5px var(--font); fill: var(--ink-3); }
.ax .tick-red { fill: var(--red); }
.ax .tick-sat { fill: var(--blue); }
.ax .tick-today { fill: var(--wood); font-weight: 700; }
.grid-line { stroke: #EFECE8; stroke-width: 1; shape-rendering: crispEdges; }
.flag-lbl { font: 600 11.5px var(--font); fill: var(--ink); }
.chart-hit { fill: transparent; cursor: crosshair; }
.ctip { position: absolute; z-index: 5; min-width: 210px; padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); font-size: 13px; pointer-events: none; opacity: 0; transition: opacity 100ms; }
.ctip.is-on { opacity: 1; }
.ctip-date { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.ctip-row { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 4px 8px; color: var(--ink-2); }
.ctip-row b { font-weight: 650; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.ctip-key { width: 12px; height: 2.5px; border-radius: 2px; }
.ctip-fx { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; color: var(--ink-2); }
.heat-wrap { padding: 4px 18px 16px; }
.heat-head { display: flex; align-items: center; gap: 10px; margin: 6px 0 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.heat-scale { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); font-size: 12px; font-weight: 500; }
.heat-scale i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.mk-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mk-table th { position: sticky; top: 0; background: var(--sub); text-align: right; font-weight: 600; color: var(--ink-3); padding: 9px 12px; font-size: 12.5px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.mk-table th:first-child, .mk-table td:first-child { text-align: left; }
.mk-table td { padding: 9px 12px; text-align: right; color: var(--ink-2); border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-table td.txt { white-space: normal; }
.mk-table tr.is-sel td { background: var(--wood-50); color: var(--ink); }
.mk-table-wrap { max-height: 520px; overflow: auto; margin: 0 10px 12px; border: 1px solid var(--line); border-radius: var(--r); }
.side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.day-card { padding: 18px; }
.day-card h3 { margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 8px; }
.day-card h3 small { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.vs-cell { padding: 12px 14px; border-radius: var(--r); background: var(--sub); }
.vs-cell span { display: block; font-size: 12.5px; color: var(--ink-3); }
.vs-cell b { display: block; margin-top: 3px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.vs-cell b.ours { color: var(--wood); }
.vs-cell b.recv { color: var(--green); }
/* AI 추천가 근거(pricing.js): 기준 요금·판매 속도·주변 시세·최소요금 — 오른쪽에 더한 몫 */
.px-parts { list-style: none; margin: 10px 0 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; border-radius: var(--r); background: var(--sub); font-size: 13px; color: var(--ink-2); }
.px-parts li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.px-parts b { flex: none; font-variant-numeric: tabular-nums; }
.fx-src { height: 18px; padding: 0 6px; font-size: 11px; vertical-align: 1px; }
.fx b.up-t, .fx b.down-t { font-size: 12.5px; }
.fitem.is-hidden { opacity: .55; }
.fx-hid { padding: 4px 18px 12px; }
.fx-hid summary { cursor: pointer; font-size: 13px; color: var(--ink-3); padding: 8px 0; }
.fx-hid .flist { margin: 0 -18px; }
.lg2-dash { height: 0; background: none; border-top: 2.5px dashed; }
.vs-cell em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.gap-line { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.gap-line b { color: var(--ink); }
.fx-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fx { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; }
.fx .ic { margin-top: 2px; color: var(--ink-3); }
.fx-dir { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; white-space: nowrap; }
.fx-dir.up { color: var(--green); }
.fx-dir.down { color: var(--red); }
.fx small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 1px; }
.rec { margin-top: 16px; padding: 16px; border-radius: var(--r-lg); background: var(--wood-50); border: 1px solid var(--wood-100); }
.rec-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rec-top span { font-size: 13.5px; color: var(--wood-700); font-weight: 650; }
.rec-top b { font-size: 24px; font-weight: 800; color: var(--wood-700); letter-spacing: -.02em; }
.rec p { margin: 8px 0 12px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.rec-acts { display: flex; gap: 8px; }
.rec-acts .btn { flex: 1; }
.comp-table td.txt b { display: block; color: var(--ink); font-weight: 650; }
.comp-table td.txt small { color: var(--ink-3); font-size: 12px; }
.up-t { color: var(--green); }
.down-t { color: var(--red); }
.flist { list-style: none; margin: 0; padding: 0 0 6px; }
.fitem { display: grid; grid-template-columns: 104px 32px minmax(0, 1fr) 84px 92px auto; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); cursor: pointer; transition: background-color 120ms; }
.fitem:hover { background: var(--sub); }
.fitem.is-sel { background: var(--wood-50); }
.fitem-date { font-size: 13.5px; font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fitem-ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--sub-2); color: var(--ink-2); }
.fitem-t b { display: block; font-size: 14px; font-weight: 650; }
.fitem-t small { font-size: 12.5px; color: var(--ink-3); }
.fitem-kind { font-size: 13px; color: var(--ink-3); }

/* ───────── 요금 캘린더 (#7) ───────── */
.rc-hint { display: flex; align-items: center; gap: 7px; margin: -2px 0 12px; font-size: 13px; color: var(--ink-3); }
.rc-hint .ic { color: var(--wood); }
/* 요금표가 남은 높이를 채우고 표 안에서만 스크롤. AI 제안 패널은 오른쪽 열(1600px~ 기본으로 열림, 좁으면 'AI 제안' 버튼) */
.rates-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.rates-body > .mk-filters { flex: none; }
.rc-root { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.rc-root > * { flex: none; }
.rc-layout { flex: 1 1 auto !important; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 18px; }
.rc-layout.side-open { grid-template-columns: minmax(0, 1fr) 360px; }
.rc-layout:not(.side-open) > .rc-side { display: none; }
.rc-side { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.rc-side .sg-list { display: block; max-height: none; overflow: visible; }
.rc-side-btn[aria-pressed='true'] { border-color: var(--wood-300); background: var(--wood-50); color: var(--wood-700); }
.rc-side-btn .badge { height: 20px; margin-left: 2px; }
.rc-card { position: relative; overflow: hidden; padding-bottom: 0; display: flex; flex-direction: column; min-height: 0; }
.rg-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding-bottom: 64px; }
.rg { display: flex; flex-direction: column; min-width: max-content; }
.rg-row { display: flex; }
.rg-label { position: sticky; left: 0; z-index: 2; width: var(--rg-label); flex: none; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 14px 0 16px; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rg-label b { font-size: 13.5px; font-weight: 700; }
.rg-label small { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rg-head { position: sticky; top: 0; z-index: 3; }
.rg-head .rg-label { z-index: 4; flex-direction: row; justify-content: space-between; align-items: flex-end; padding-bottom: 9px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.rg-head .rg-label small { font-weight: 600; }
.rg-dh { width: var(--rg-day); height: 58px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rg-dh.is-sat .dh-dow, .rg-dh.is-sat .dh-num { color: var(--blue); }
.rg-dh.is-red .dh-dow, .rg-dh.is-red .dh-num, .rg-dh.is-red .dh-note { color: var(--red); }
.rg-dh.is-past .dh-num, .rg-dh.is-past .dh-dow { opacity: .55; }
.rg-dh.is-today { background: var(--today); }
.rg-dh.is-today .dh-num { background: var(--wood); color: #fff; }
.rg-dh.is-today .dh-dow { color: var(--wood); }
.rg-cell { position: relative; width: var(--rg-day); height: 90px; flex: none; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 8px 0 10px; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: cell; user-select: none; touch-action: none; transition: background-color 100ms; }
.rg-cell:hover { background-color: var(--sub); }
.rg-cell.is-wkend { background-color: #FCFBFA; }
.rg-cell.is-today { background-color: var(--today); }
.rg-cell.is-past { background-color: #FBFBFA; }
.rg-cell.is-past .rg-price { color: var(--ink-3); }
.rg-price { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rg-cell.is-ovr .rg-price { color: var(--wood-700); }
.rg-cell.is-ovr .rg-price::after { content: ''; display: inline-block; width: 5px; height: 5px; margin-left: 4px; border-radius: 50%; background: var(--wood); vertical-align: 3px; }
.rg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 17px; font-size: 11.5px; color: var(--ink-3); line-height: 1; }
.rg-tag { display: inline-flex; align-items: center; height: 17px; padding: 0 5px; border-radius: 4px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.rg-closed { background: #2F2B27; color: #fff; }
.rg-full { background: var(--past); color: var(--ink-3); }
.rg-ms { background: var(--warn-bg); color: var(--warn); }
.rg-cell.is-closed { background-image: repeating-linear-gradient(135deg, rgba(28, 26, 24, .055) 0 1px, transparent 1px 7px); }
.rg-cell.is-closed .rg-price { color: var(--ink-3); text-decoration: line-through; }
.rg-cell.is-sel { background-color: var(--wood-50); box-shadow: inset 0 0 0 2px var(--wood); z-index: 1; }
/* AI 제안 칩: 오르든 내리든 같은 중립 칩. 방향은 ▲/▼ 모양과 +/− 부호로만 — 초록·빨강은 도착·준비, 잔금·휴일에 남겨 둔다 */
.rg-sug { align-self: flex-start; height: 19px; padding: 0 6px; border: 0; border-radius: 5px; font-size: 11px; font-weight: 750; cursor: pointer; letter-spacing: -.01em; white-space: nowrap; font-variant-numeric: tabular-nums; background: var(--wood-50); color: var(--ink); box-shadow: inset 0 0 0 1px var(--wood-100); }
.rg-sug:hover { box-shadow: inset 0 0 0 1px var(--wood-300); }
.rc-card .selbar { bottom: 14px; }

.sg .card-head { padding-bottom: 8px; }
.sg-clock { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 0 18px; }
.sg-clock .input { width: auto; }
.sg-note { margin: 10px 18px 8px; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.sg-list { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow: auto; }
.sg-item { padding: 12px 18px; border-top: 1px solid var(--line); }
.sg-top { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.sg-top span { color: var(--ink-3); }
.sg-price { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; font-variant-numeric: tabular-nums; }
.sg-price .ic { color: var(--ink-4); }
.sg-from { color: var(--ink-3); text-decoration: line-through; }
.sg-price b { font-weight: 750; }
.sg-diff { margin-left: auto; padding: 1px 7px; border-radius: 6px; background: var(--wood-50); font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sg-why { margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
.sg-acts { display: flex; gap: 6px; margin-top: 8px; }
.sg-foot { display: flex; align-items: center; gap: 6px; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.sg-foot .spacer { flex: 1; }

/* ───────── 매출 (#1) ───────── */
.sl-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 10px; margin-bottom: 12px; }
.sl-controls .label { font-size: 13px; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.sl-controls .vsep { width: 1px; height: 22px; background: var(--line-2); margin: 0 4px; }
.sl-controls .pill:disabled { opacity: .45; cursor: not-allowed; }
.sl-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; overflow: hidden; }
.sl-cell { padding: 16px 20px; min-width: 0; }
.sl-cell + .sl-cell { border-left: 1px solid var(--line); }
.sl-k { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.sl-k .ic { color: var(--wood); }
.sl-v { margin-top: 4px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.sl-v.net { color: var(--wood-700); }
.sl-v.red { color: var(--red); }
/* 지금 기준 카드: 머리 줄 + 안쪽 4칸(기간 합계와 같은 칸) */
.sl-now { margin-bottom: 18px; overflow: hidden; }
.sl-now > .sl-sum { margin-bottom: 0; }
.sl-now-h { display: flex; align-items: center; gap: 6px; margin: 0; padding: 12px 20px 0; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.sl-now-h small { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.sl-now-h .ic { color: var(--wood); }
.sl-sub { margin-top: 3px; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
/* 결제 수단: 색 띠 대신 이름·막대·비율 목록 (색은 직접 받은 돈 = 진한 우드, OTA = 연한 우드 두 톤만) */
.paylist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 16px; }
.paylist li { display: grid; grid-template-columns: auto minmax(24px, 1fr) 34px; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.paylist li.is-zero { color: var(--ink-3); }
.pl-k { white-space: nowrap; }
.pl-bar { height: 8px; border-radius: 4px; background: var(--sub-2); overflow: hidden; }
.pl-bar i { display: block; height: 100%; border-radius: 4px; }
.paylist b { text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.paylist li.is-zero b { color: var(--ink-3); font-weight: 600; }
.ctip-row.is-sub span { padding-left: 10px; color: var(--ink-3); }
.ctip-row.is-sub b { font-weight: 600; color: var(--ink-2); }
.mix { display: flex; gap: 2px; height: 10px; margin-top: 12px; border-radius: 5px; overflow: hidden; }
.mix i { display: block; height: 100%; }
.mix-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.mix-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.mix-legend i { width: 9px; height: 9px; border-radius: 2px; }
/* 매출: 집계 기준·기간·공제 선택은 고정, 그 아래만 스크롤. 공간이 넉넉하면 표가 남은 높이를 채우고 표 안에서 스크롤 */
.page > .sl-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.sl-fixed { flex: none; }
.sl-scroll { display: flex; flex-direction: column; }
.sl-scroll > * { flex: none; }
.sl-scroll > .sl-tcard { flex: 1 0 220px; display: flex; flex-direction: column; min-height: 220px; overflow: hidden; }
.sl-tcard > .card-head { flex: none; }
.sl-twrap { flex: 1; min-height: 0; max-height: none; overflow: auto; overscroll-behavior: contain; }
.sl-table thead th { z-index: 2; }
.sl-table td.neg { color: var(--red); }
.sl-table td.net { color: var(--ink); font-weight: 700; }
.sl-table tr.is-today td { background: var(--today); }
.sl-table tr.is-future td { color: var(--ink-3); }
.sl-table tfoot td { position: sticky; bottom: 0; background: var(--sub); color: var(--ink); font-weight: 750; border-top: 1px solid var(--line-2); }

/* ───────── 설정 ───────── */
/* 설정: 목차는 고정, 오른쪽 내용만 스크롤 */
.page > .set-grid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 28px; }
.set-grid > #setBody { position: relative; min-height: 0; overflow: auto; overscroll-behavior: contain; margin: 0 -6px; padding: 2px 6px 8px; }
.set-nav { align-self: start; max-height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 1px; }
.set-nav a { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.set-nav a:hover { background: var(--sub-2); color: var(--ink); }
.set-sec { margin-bottom: 18px; }
.set-row { display: flex; align-items: flex-start; gap: 16px; padding: 16px 18px; border-top: 1px solid var(--line); }
.set-row:first-of-type { border-top: 0; }
.set-txt { flex: 1; min-width: 0; }
.set-label { font-size: 14.5px; font-weight: 650; }
.set-desc { margin-top: 3px; font-size: 13px; color: var(--ink-3); line-height: 1.55; }
.opt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 18px 18px; }
.opt-card { position: relative; display: flex; gap: 12px; padding: 16px; border-radius: var(--r-lg); border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; transition: border-color 120ms, background-color 120ms; }
.opt-card:hover { border-color: var(--wood-300); }
.opt-card:has(input:checked) { border-color: var(--wood); background: var(--wood-50); }
.opt-card b { display: block; font-size: 14.5px; }
.opt-card small { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.fee-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 16px; }
.fee { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.fee span { flex: 1; color: var(--ink-2); }
.fee .input { width: 72px; text-align: right; }
.fee em { font-style: normal; color: var(--ink-3); font-size: 13px; }
.fee select.input { width: 150px; text-align: left; }
.status-table { width: 100%; border-collapse: collapse; }
.status-table td { padding: 12px 18px; border-top: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.status-table td:last-child { text-align: right; width: 70px; }
.status-table .st-desc { color: var(--ink-3); font-size: 13px; }
/* 변경·취소 알림: 알림 × 받을 곳 */
.nt-wrap { overflow-x: auto; }
.nt { width: 100%; border-collapse: collapse; }
.nt th, .nt td { padding: 11px 18px; border-top: 1px solid var(--line); font-size: 14px; }
.nt thead th { font-size: 12.5px; font-weight: 600; color: var(--ink-3); text-align: center; white-space: nowrap; background: var(--sub); }
.nt thead th:first-child { text-align: left; }
.nt tbody th { text-align: left; font-weight: 400; }
.nt tbody th b { display: block; font-size: 14px; font-weight: 650; }
.nt tbody th small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.nt td { text-align: center; width: 104px; }

/* ───────── 객실 관리 · 속성 (설정) — 타입 › 방 › 침대 줄마다 붙은 속성과 편집 ───────── */
.rm-intro { display: flex; flex-direction: column; gap: 10px; padding: 0 18px 14px; font-size: 13px; color: var(--ink-3); line-height: 1.55; }
.rm-intro p { margin: 0; }
.rm-how { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: var(--r); background: var(--wood-50); color: var(--ink-2); }
.rm-how > .ic { flex: none; margin-top: 2px; color: var(--wood); }
.rm-how b { color: var(--ink); font-weight: 650; }
.rm-how .tag-synth { margin-left: 6px; white-space: nowrap; }
.room-mgmt { width: 100%; border-collapse: collapse; }
.room-mgmt th, .room-mgmt td { padding: 10px 18px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.room-mgmt thead th { padding-top: 8px; padding-bottom: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.room-mgmt thead th:first-child { width: 176px; }
.room-mgmt thead th:last-child { width: 1%; }
.room-mgmt tr.rm-type > * { padding-top: 12px; padding-bottom: 12px; background: var(--sub); border-top-color: var(--line-2); }
.room-mgmt tr.rm-type th b { display: block; font-size: 14.5px; font-weight: 700; }
.room-mgmt tr.rm-type th small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.room-mgmt tr.rm-room th b { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.room-mgmt tr.rm-room th small { display: block; margin-top: 1px; font-size: 12px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.room-mgmt tr.rm-bed > * { padding-top: 8px; padding-bottom: 8px; border-top-style: dashed; }
.room-mgmt tr.rm-bed th { padding-left: 36px; font-size: 13px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.room-mgmt tr.rm-empty td { padding-top: 14px; padding-bottom: 14px; font-size: 13px; color: var(--ink-3); }
.rm-acts { text-align: right; white-space: nowrap; }
/* 유연 객실 묶음: 판매 상품 목록, 방마다 도미토리로 팔 때의 방식 */
.rm-prods { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.rm-prod { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.rm-prod-t { flex: 1; min-width: 0; }
.room-mgmt tr.rm-type .rm-prod-t b { display: block; font-size: 13.5px; font-weight: 650; }
.room-mgmt tr.rm-type .rm-prod-t small { margin-top: 1px; font-size: 12px; }
.rm-prod-acts { flex: none; display: flex; gap: 4px; }
.rm-design-wrap { margin-top: 6px; }
.seg.seg-sm { padding: 2px; border-radius: 8px; }
.seg.seg-sm button { height: 26px; padding: 0 10px; font-size: 12.5px; border-radius: 6px; }
.fx-how { list-style: none; margin: 0; padding: 0 18px 14px; display: flex; flex-direction: column; gap: 8px; }
.fx-how li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.fx-how li > .ic { flex: none; margin-top: 2px; color: var(--wood); }
.fx-how b { color: var(--ink); font-weight: 650; margin-right: 4px; }
.fx-prot { display: flex; gap: 8px; flex: none; }
.rm-acts .btn + .btn { margin-left: 4px; }
.btn-xs.btn-icon { width: 28px; }
.rm-acts .btn-icon .ic { color: var(--ink-3); }
.rm-acts .btn-icon:hover { background: var(--red-bg); }
.rm-acts .btn-icon:hover .ic { color: var(--red); }
.tf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
/* 속성 사전 */
.attr-dict { border-top: 1px solid var(--line-2); }
.attr-dict > summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; list-style: none; cursor: pointer; border-radius: 0 0 var(--r-lg) var(--r-lg); transition: background-color 120ms; }
.attr-dict > summary::-webkit-details-marker { display: none; }
.attr-dict > summary:hover { background: var(--sub); }
.attr-dict[open] > summary { border-radius: 0; }
.ad-sum { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.ad-sum .ic { color: var(--wood); }
.ad-sum b { font-size: 14.5px; font-weight: 650; }
.ad-sum small { font-size: 12.5px; color: var(--ink-3); }
.ad-chev { flex: none; color: var(--ink-3); transition: transform 160ms var(--ease); }
.attr-dict[open] .ad-chev { transform: rotate(180deg); }
.ad-body { display: flex; flex-direction: column; gap: 18px; padding: 4px 18px 18px; }
.ad-h { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.ad-grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.ad-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); }
.ad-item dt { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; color: var(--ink); }
.ad-item dt .ic { color: var(--ink-3); }
.ad-item dd { margin: 0; }
.ad-hint { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.ad-where { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 2px !important; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.ad-auto { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; background: var(--wood-50); color: var(--wood-700); font-size: 12px; font-weight: 650; }
.ad-keys { font-size: 12px; color: var(--ink-3); }
.ad-keys span { margin-left: 4px; color: var(--ink-2); }
.ad-foot { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }

/* ───────── 배정 제안: 숙박객 속성 칩 ───────── */
.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: background-color 120ms, border-color 120ms, color 120ms; }
.tag-chip .ic { color: var(--ink-3); }
.tag-chip:hover { border-color: var(--line-3); color: var(--ink); }
.tag-chip[aria-pressed='true'] { border-color: var(--wood); background: var(--wood-50); color: var(--wood-700); }
.tag-chip[aria-pressed='true'] .ic { color: var(--wood); }
/* 붙은 속성(보기 전용) — 표에 수십 개가 모이므로 나무색 대신 차분한 회색 */
.tag-chip.is-on, .tag-chip.is-on:hover { border-color: var(--line); background: var(--sub); color: var(--ink-2); cursor: default; }
/* 속성 붙이기·편집 */
.tag-chip.is-add { border-style: dashed; border-color: var(--line-3); background: transparent; color: var(--ink-3); }
.tag-chip.is-add .ic { color: currentColor; }
.tag-chip.is-add:hover { border-color: var(--wood-300); background: var(--wood-50); color: var(--wood-700); }
/* 속성 고르기 팝오버 (예약 패널 · 설정 객실 관리 공용) */
.attr-pick .ap-group { display: flex; flex-direction: column; gap: 8px; }
.ap-desc { margin: 0; min-height: 40px; padding: 10px 12px; border-radius: var(--r); background: var(--sub); font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.ap-desc b { color: var(--ink); font-weight: 650; }
.ap-note { margin: 0; display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.ap-note .ic { flex: none; margin-top: 2px; }
.ap-note b { color: var(--ink-2); font-weight: 650; }
.tag-auto { width: 6px; height: 6px; border-radius: 50%; background: var(--wood); margin-left: 1px; }
.fit-now { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 12px; padding: 10px 12px; border-radius: var(--r); background: var(--sub); font-size: 13px; color: var(--ink-2); }
.fit-pct { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--sub-2); color: var(--ink); font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.fit-pct.is-full { background: var(--wood-50); color: var(--wood-700); box-shadow: inset 0 0 0 1px var(--wood-100); }
.fit-why { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; }
.fit-y { color: var(--ink); font-weight: 600; }
.fit-n { color: var(--ink-3); }
.fit-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fit-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line); }
.fit-room { display: inline-flex; align-items: center; gap: 8px; }
.fit-room b { font-size: 14px; font-variant-numeric: tabular-nums; }
.fit-empty { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.55; }
.fit-hint { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.fit-hint .ic { color: var(--wood); }
.fit-hint b { color: var(--ink); font-weight: 650; }

/* ───────── 모바일 탭바 ───────── */
.tabbar { display: none; }
.m-only { display: none; }

/* ───────── 반응형 ───────── */
@media (max-width: 1500px) {
  .gsearch { width: 220px; }
  .app.has-panel .hide-panel { display: none; }
}
@media (max-width: 1280px) {
  .gnb-in { gap: 16px; padding: 0 16px; }
  .gnb-a { padding: 0 9px; font-size: 14.5px; }
  .gsearch { display: none; }
  .td-grid, .td-grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mk-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'chart' 'side' 'fx'; }
  .side { display: grid; grid-template-columns: 1fr 1fr; }
  .sl-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sl-cell:nth-child(3) { border-left: 0; }
  .sl-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 1180px) {
  .au-layout, .bt-layout, .hs-layout { grid-template-columns: minmax(0, 1fr); }
  .bt-test, .hs-prev { position: static; }
  .msg-layout { grid-template-columns: 320px minmax(0, 1fr); }
  .ml-filters { -webkit-mask-image: linear-gradient(90deg, var(--ink) calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, var(--ink) calc(100% - 28px), transparent); padding-right: 32px; }
}
@media (max-width: 1080px) {
  .gnb-a .gnb-label { display: none; }
  .gnb-a { padding: 0 10px; }
  .prop-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps:nth-child(odd) { border-left: 0; }
  .ps:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hk-sum { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hk-prog { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .hk-sum > .hk-next { border-left: 0; }
}
@media (max-width: 760px) {
  :root { --roomcol: 88px; --row: 42px; --head-h: 54px; --gnb: 56px; }
  .app { grid-template-rows: var(--gnb) minmax(0, 1fr) auto; }
  .gnb-in { padding: 0 14px; }
  .gnb-nav, .gnb-right .avatar, .gnb-right .set-btn { display: none; }
  .m-only { display: inline-flex; }
  .page { padding: 14px 14px 10px; }
  .ph { margin-bottom: 14px; }
  .ph-title { font-size: 22px; }
  .ph-actions { margin-left: 0; width: 100%; }
  .hide-m { display: none !important; }
  .cal-tools { gap: 8px; }
  /* 휴대폰: 제목과 '새 예약'을 한 줄에, 조작은 그 아래 */
  .ph-cal .ph-actions { width: auto; margin-left: auto; order: 1; }
  .ph-cal .cal-tools { order: 2; width: 100%; }
  .prod-name .full { display: none; }
  .prod-name .short { display: inline; }
  /* 유연 객실 방 표시는 휴대폰에서 한 글자(혼·여) */
  .rm-mode .full { display: none; }
  .rm-mode .short { display: inline; }
  .rm-mode { padding: 0 5px; }
  .corner { padding: 0 8px 8px 10px; }
  .corner span + span { display: none; }
  .rl { padding: 0 6px 0 10px; gap: 6px; }
  .rm-sub, .grp-meta { display: none; }
  .row-ua .rl { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; }
  .row-ua .rm-no { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
  .row-ua .rm-sub { display: block; font-size: 12.5px; color: var(--ink); font-weight: 650; }
  .cal-strip { flex-wrap: nowrap; overflow-x: auto; }
  .grp-name .full { display: none; }
  .grp-name .short { display: inline; }
  .lst-filters { flex-wrap: nowrap; overflow-x: auto; margin-left: -14px; margin-right: -14px; padding: 0 14px 4px; }
  .lst-filters .input { flex: none; }
  /* 옆으로 미는 줄(거르기·탭)의 스크롤 막대: 평소엔 숨기고, 미는 동안만 얇게 보인다(2026-10-06 운영자). is-scrolling은 app.js가 붙였다 뗀다 */
  .lst-filters, .ml-filters, .sl-controls, .cal-strip, .rcl-tabs, .rc-root > .cal-tools { scrollbar-width: thin; scrollbar-color: transparent transparent; }
  :is(.lst-filters, .ml-filters, .sl-controls, .cal-strip, .rcl-tabs, .rc-root > .cal-tools)::-webkit-scrollbar { display: block; height: 3px; background: transparent; }
  :is(.lst-filters, .ml-filters, .sl-controls, .cal-strip, .rcl-tabs, .rc-root > .cal-tools)::-webkit-scrollbar-thumb { border-radius: 3px; background: transparent; }
  :is(.lst-filters, .ml-filters, .sl-controls, .cal-strip, .rcl-tabs, .rc-root > .cal-tools).is-scrolling { scrollbar-color: var(--line-3) transparent; }
  :is(.lst-filters, .ml-filters, .sl-controls, .cal-strip, .rcl-tabs, .rc-root > .cal-tools).is-scrolling::-webkit-scrollbar-thumb { background: var(--line-3); }
  .row-group .rl { padding-left: 4px; }
  .grp-name { font-size: 12.5px; }
  .side-panel { position: fixed; left: 0; right: 0; top: var(--gnb); bottom: 64px; width: 100% !important; transform: translateY(105%); transition: transform 240ms var(--ease); border: 0; }
  .app.has-panel .side-panel { transform: none; box-shadow: none; border: 0; }
  .sp { width: 100%; }
  .selbar { left: 10px; right: 10px; transform: none; bottom: 10px; flex-wrap: wrap; white-space: normal; }
  .ph-title.is-display { font-size: 24px; }
  .prop { grid-template-columns: minmax(0, 1fr); }
  .prop-photo { min-height: 120px; }
  .prop-head { padding: 14px 16px 12px; }
  .prop-occ { margin-left: 0; width: 100%; }
  .occ-bar { flex: 1; width: auto; }
  .ps { padding: 12px 16px; }
  .ps-n { font-size: 20px; }
  .td-grid, .td-grid2 { grid-template-columns: minmax(0, 1fr); }
  .li { padding: 12px 14px; gap: 10px; }
  .li-sub { white-space: normal; }
  .li-act .btn-sm { height: 34px; }
  .lst-search input { height: 50px; font-size: 15px; padding-right: 20px; }
  .lst-search .lst-clear { display: none; }
  .tbl-wrap { display: none; }
  .lst-cards { display: flex; flex-direction: column; }
  .lc { display: flex; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); cursor: pointer; }
  .lc:first-child { border-top: 0; }
  .lc-main { flex: 1; min-width: 0; }
  .lc-top { display: flex; align-items: center; gap: 8px; }
  .lc-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lc-sub { margin-top: 3px; font-size: 13px; color: var(--ink-3); }
  .lc-sub b { color: var(--ink); font-weight: 600; }
  .side { display: flex; }
  .mk-grid { grid-template-columns: minmax(0, 1fr); }
  .fitem { grid-template-columns: 32px minmax(0, 1fr) auto auto; }
  .fitem-date, .fitem-kind { display: none; }
  .rg-scroll { max-height: none; }
  .rg-corner small { display: none; }
  .rc-hint { font-size: 12.5px; }
  .sl-controls { flex-wrap: nowrap; overflow-x: auto; margin-left: -14px; margin-right: -14px; padding: 0 14px 4px; }
  .sl-controls > * { flex: none; }
  .sl-sum { grid-template-columns: minmax(0, 1fr); }
  .sl-cell + .sl-cell { border-left: 0; border-top: 1px solid var(--line); }
  .sl-v { font-size: 22px; }
  /* 휴대폰 매출 표: 날짜(첫 열)와 순매출(마지막 열)은 옆으로 넘겨도 늘 보이게 */
  .sl-table th:first-child, .sl-table td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
  .sl-table th:last-child, .sl-table td:last-child { position: sticky; right: 0; z-index: 1; background: var(--surface); box-shadow: -1px 0 0 var(--line); }
  .sl-table thead th:first-child, .sl-table thead th:last-child { z-index: 3; background: var(--sub); }
  .sl-table tfoot td:first-child, .sl-table tfoot td:last-child { z-index: 3; background: var(--sub); }
  .sl-table tr.is-today td:first-child, .sl-table tr.is-today td:last-child { background: var(--today); }
  .rc-layout.side-open { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  /* 휴대폰 객실 관리: 표 대신 줄마다 '이름 · 버튼' 위, 속성 칩 아래 */
  .rm-intro { padding: 0 14px 12px; }
  .room-mgmt, .room-mgmt tbody { display: block; }
  .room-mgmt thead { display: none; }
  .room-mgmt tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-top: 1px solid var(--line); }
  .room-mgmt tbody tr > * { border-top: 0; padding: 8px 14px; }
  .room-mgmt tbody tr > td:not(.rm-acts) { grid-column: 1 / -1; padding-top: 0; padding-bottom: 12px; }
  .room-mgmt tbody tr > td.rm-acts { grid-column: 2; grid-row: 1; }
  .room-mgmt tbody tr > td:empty { display: none; }
  .room-mgmt tr.rm-type { background: var(--sub); border-top-color: var(--line-2); }
  .room-mgmt tr.rm-type > * { padding-top: 12px; padding-bottom: 12px; }
  .room-mgmt tr.rm-type > th { grid-column: 1 / -1; padding-bottom: 6px; }
  .room-mgmt tr.rm-type > td.rm-acts { grid-column: 1 / -1; grid-row: 2; padding-top: 0; text-align: left; white-space: normal; }
  .room-mgmt tr.rm-room > th { padding-top: 12px; }
  .room-mgmt tr.rm-bed { border-top-style: dashed; }
  .room-mgmt tr.rm-bed > th { padding-left: 26px; padding-top: 10px; }
  .room-mgmt tr.rm-bed > td:not(.rm-acts) { padding-left: 26px; }
  .room-mgmt tbody tr.rm-empty > td { padding-top: 14px; padding-bottom: 14px; }
  .ad-body { padding: 4px 14px 16px; }
  .attr-dict > summary { padding: 14px; }
  .fit-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .fit-list .fit-why { grid-column: 1 / -1; grid-row: 2; }
  .page > .set-grid { grid-template-columns: minmax(0, 1fr); }
  .set-nav { display: none; }
  .opt-cards { grid-template-columns: minmax(0, 1fr); }
  .hk-sum { grid-template-columns: minmax(0, 1fr); }
  .hk-prog { border-bottom: 0; }
  .hk-sum > div { padding: 14px 16px 16px; }
  .hk-sum > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .hk-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  /* 휴대폰: 큰 요약 카드 대신 두 줄 요약 */
  .hk-sum { display: none; }
  .hk-mini { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
  .hk-mini-top { display: flex; align-items: baseline; gap: 6px; }
  .hk-mini-top b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
  .hk-mini-top span { font-size: 13px; color: var(--ink-3); font-weight: 600; }
  .hk-mini-top .hk-bar { flex: 1; margin: 0 0 0 8px; align-self: center; }
  .hk-mini-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--ink-2); }
  .hk-mini-row > span { display: inline-flex; align-items: center; gap: 5px; }
  .hk-mini-row .btn { margin-left: auto; }
  /* 가로로 넘치는 필터 줄: 오른쪽 끝을 흐리게 해서 더 있다는 걸 알린다 */
  .lst-filters, .ml-filters, .sl-controls { -webkit-mask-image: linear-gradient(90deg, var(--ink) calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, var(--ink) calc(100% - 28px), transparent); padding-right: 32px; }
  .hk-floor { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hk-floor-h { flex-direction: row; align-items: baseline; gap: 8px; padding-top: 0; }
  .hk-floor-h b { font-size: 18px; }
  .hk-bed, .hk-room { min-height: 56px; }
  .hk-cfg { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; padding: 14px 16px; }
  .hk-cfg-room { padding-top: 0; display: flex; align-items: baseline; gap: 8px; }
  .hk-cfg-room b { display: inline; }
  .hk-cfg-main { grid-column: 1 / -1; grid-row: 2; }
  .hk-cfg-sw { padding-top: 0; }
  .set-row .hk-sel { min-width: 104px; }
  .logo-img { height: 28px; }
  .msg-page .ph { margin-bottom: 8px; }
  .msg-page .tabs { margin-bottom: 10px; overflow-x: auto; margin-left: -14px; margin-right: -14px; padding: 0 8px; }
  .msg-page .tab-a { padding: 10px; font-size: 14px; white-space: nowrap; flex: none; }
  /* 휴대폰: 목록과 대화창이 화면 높이를 다 쓰고 각자 스크롤. 대화를 열면 화면 제목·탭을 접는다 */
  .page > .msg-body { margin: 0 -14px; padding: 0; }
  .msg-page:not(.is-inbox) > .msg-body { padding: 2px 14px 8px; }
  .msg-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ml, .mt { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .msg-page.has-thread > .ph, .msg-page.has-thread > .tabs { display: none; }
  /* 목록·대화창이 화면 끝까지 닿게 — 위아래 회색 띠 없이 */
  .msg-page.is-inbox { padding-bottom: 0; }
  .msg-page.has-thread { padding-top: 0; }
  .cp { margin-top: 8px; box-shadow: 0 -6px 16px rgba(28, 26, 24, .06); }
  .msg-layout.has-thread .ml { display: none; }
  .msg-layout:not(.has-thread) .mt { display: none; }
  .ml { border-right: 0; }
  .ml-filters { flex-wrap: nowrap; overflow-x: auto; }
  .ml-filters .pill { flex: none; }
  .th-back { display: inline-grid; margin-left: -6px; }
  .th-head { padding: 10px 12px; gap: 8px; }
  .th-head > .av { display: none; }
  .th-acts { width: 100%; }
  .th-acts .btn { flex: 1; }
  .th-scroll { padding: 6px 12px 12px; }
  .mg-col { max-width: 88%; }
  .th-card { grid-template-columns: auto minmax(0, 1fr); margin: 8px 12px 0; }
  .tc-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .cp { padding: 10px 12px 12px; }
  .cp-hint { display: none; }
  .opt-cards.is-3 { grid-template-columns: minmax(0, 1fr); }
  .kb-row { grid-template-columns: 32px minmax(0, 1fr) auto; padding: 12px 14px; }
  .kb-row .btn { grid-column: 2; justify-self: start; grid-row: 2; }
  .kb-row .switch { grid-row: 1; grid-column: 3; }
  .kb-ans { padding: 0 14px 14px; }
  .hf-grid { grid-template-columns: minmax(0, 1fr); padding: 2px 14px 16px; }
  .hx-list { padding: 0 14px 12px; }
  .hx-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .hx-row [data-hx$=".en"] { grid-column: 2; }
  .au-card { padding: 12px 14px; }
  .bt-log { max-height: 360px; }
  .tab { position: relative; }
  .tab-n { position: absolute; top: 7px; left: calc(50% + 5px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--wood); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); height: 64px; padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line); position: relative; z-index: 20; }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); border: 0; background: transparent; }
  .tab.is-active { color: var(--wood-700); }
  .tab.is-active .ic { color: var(--wood); }
  /* 휴대폰: 토스트는 위에 — 아래쪽 결제·체크인 버튼과 선택 바를 가리지 않게 */
  .toasts { top: 64px; bottom: auto; width: calc(100% - 24px); }
  .toast { width: 100%; }
  .pop { left: 10px !important; right: 10px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* ───────── 사업장 고르기 · 계정 메뉴 · 역할로 미리 보기 (2026-10-04 운영자: 게스트하우스 2곳, 사업장별 직원 권한) ───────── */
.prop-sw { display: inline-flex; align-items: center; gap: 7px; height: 36px; max-width: 230px; margin-left: -12px; padding: 0 9px 0 11px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 650; flex: none; transition: border-color 120ms, background-color 120ms; }
.prop-sw:hover { border-color: var(--line-3); background: var(--sub); }
.prop-sw > .ic:first-child { color: var(--wood); }
.prop-sw-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prop-sw { position: relative; }
/* 다른 사업장에 확인할 일이 있으면 단추 귀퉁이에 우드 점 — 숫자는 사업장 목록에서(지금 사업장의 숫자로 오해하지 않게) */
.prop-sw-n { position: absolute; top: -4px; right: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--wood); box-shadow: 0 0 0 2px var(--surface); }
.prop-sw-chev { color: var(--ink-3); }
.view-as { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px dashed var(--wood-300); border-radius: 999px; background: var(--wood-50); color: var(--wood-700); font-size: 13px; font-weight: 650; white-space: nowrap; }
.view-as:hover { border-style: solid; }
button.avatar { padding: 0; cursor: pointer; transition: box-shadow 120ms; }
button.avatar:hover { box-shadow: 0 0 0 3px var(--wood-100); }
.ps-list { padding: 4px 8px 8px; display: flex; flex-direction: column; gap: 4px; }
.ps-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; text-align: left; color: inherit; transition: background-color 120ms; }
.ps-item:hover { background: var(--sub-2); }
.ps-item.is-on, .ps-item.is-on:hover { border-color: var(--wood-100); background: var(--wood-50); }
.ps-item:disabled { opacity: .5; cursor: not-allowed; }
.ps-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--sub-2); color: var(--ink-2); }
.ps-item.is-on .ps-ic { background: var(--surface); color: var(--wood); }
.ps-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ps-main > b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; }
.ps-main small { font-size: 12.5px; color: var(--ink-3); }
.ps-stats { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 3px; font-size: 12.5px; color: var(--ink-2); }
.ps-stats b { font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
.ps-stats .is-warn, .ps-stats .is-warn b { color: var(--warn); }
.ps-check { color: var(--wood); }
.me-head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; }
.me-head .avatar { width: 40px; height: 40px; flex: none; }
.menu-label { padding: 8px 10px 4px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.menu-label small { display: block; margin-top: 2px; font-weight: 400; color: var(--ink-3); line-height: 1.5; }
.menu-item[role=menuitemradio] > .ic { color: var(--ink-4); align-self: flex-start; margin-top: 2px; }
.menu-item.is-on > .ic { color: var(--wood); }
.ch-mark.is-grad { background: var(--chg); }

/* 설정: 사업장 · 직원·권한 · 고객 홈페이지 · 홈페이지 소개 편집 */
.set-nav-h { padding: 16px 12px 4px; font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; }
.set-nav-h:first-child { padding-top: 2px; }
.prp-list { display: flex; flex-direction: column; gap: 8px; padding: 0 18px 16px; }
.prp { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.prp.is-on { border-color: var(--wood-100); background: var(--wood-50); }
.prp-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--sub-2); color: var(--ink-2); }
.prp.is-on .prp-ic { background: var(--surface); color: var(--wood); }
.prp-main { min-width: 0; }
.prp-main b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; }
.prp-main small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
.prp-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.stf-wrap { overflow-x: auto; }
.stf, .perm { width: 100%; border-collapse: collapse; }
.stf th, .stf td, .perm th, .perm td { padding: 10px 18px; border-top: 1px solid var(--line); font-size: 14px; text-align: left; vertical-align: middle; }
.stf thead th, .perm thead th { padding-top: 8px; padding-bottom: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); background: var(--sub); white-space: nowrap; }
.stf tbody th { font-weight: 400; white-space: nowrap; }
.stf .av { display: inline-grid; vertical-align: middle; width: 32px; height: 32px; margin-right: 10px; font-size: 12px; }
.stf-who { display: inline-block; vertical-align: middle; }
.stf-who b { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; }
.stf-who small { display: block; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.stf td select { min-width: 124px; }
.stf-acts { width: 52px; text-align: right; }
.stf-acts .btn-icon .ic { color: var(--ink-3); }
.stf-acts .btn-icon:hover { background: var(--red-bg); }
.stf-acts .btn-icon:hover .ic { color: var(--red); }
.set-row .stf-wrap { border: 1px solid var(--line); border-radius: var(--r); }
.set-row .perm th, .set-row .perm td { padding: 9px 14px; }
.set-row .perm thead th { border-top: 0; }
.perm tbody th { font-weight: 400; }
.perm tbody th b { display: block; font-size: 14px; font-weight: 650; }
.perm tbody th small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.perm thead th:not(:first-child), .perm td { width: 88px; text-align: center; }
.room-mgmt tr.rm-type th .rm-site { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.room-mgmt tr.rm-type th .rm-site.is-off { color: var(--warn); }
.se { gap: 16px; }
.se-show { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.se-show b { display: block; font-size: 14px; font-weight: 650; }
.se-show small { display: block; font-size: 12.5px; color: var(--ink-3); }
.se-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.se-ph { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--sub-2); border: 1px solid var(--line); }
.se-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.se-ph.is-cover { box-shadow: 0 0 0 2px var(--wood); border-color: var(--wood); }
.se-cover { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 6px; background: rgba(28, 26, 24, .72); color: #fff; font-size: 11px; font-weight: 700; }
.se-ph-acts { position: absolute; right: 5px; bottom: 5px; display: flex; gap: 3px; }
.se-pb { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 7px; background: rgba(255, 255, 255, .94); color: var(--ink); display: grid; place-items: center; box-shadow: var(--sh-1); }
.se-pb:disabled { opacity: .4; cursor: default; }
.se-pb.is-del:hover { background: var(--red-bg); color: var(--red); }
.se-empty { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 0; padding: 16px; border: 1px dashed var(--line-3); border-radius: 10px; font-size: 13px; color: var(--ink-3); }
.se-up { align-self: flex-start; margin-top: 8px; cursor: pointer; }
.tf-grid.se-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 96px; }
.se-note { display: flex; gap: 6px; margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.se-note .ic { flex: none; margin-top: 2px; }

/* 메시지: 24시간 답장 창, WhatsApp 안내 문안, 웹 대화창 링크 */
.cp.is-locked { display: flex; align-items: flex-start; gap: 10px; }
.cp.is-locked > .ic { flex: none; margin-top: 2px; color: var(--ink-3); }
.cp.is-locked b { display: block; font-size: 14px; font-weight: 650; }
.cp.is-locked span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.cp-tpl { display: flex; gap: 6px; margin-bottom: 8px; padding: 8px 10px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); font-size: 12.5px; line-height: 1.5; }
.cp-tpl .ic { flex: none; margin-top: 2px; }
.hx-chat { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--sub); }
.hx-lock { width: 30px; display: grid; place-items: center; color: var(--ink-3); }
.hx-ch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hx-ch-l { display: inline-flex; align-items: center; gap: 5px; margin-right: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.hx-ch-l code { padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); font: 600 12px var(--font); }
.hx-ch .pill { height: 28px; padding: 0 10px 0 6px; font-size: 12.5px; }
.hx-ch .pill .ch-mark { width: 17px; height: 17px; border-radius: 4px; font-size: 9.5px; }
.hx-ch .pill:disabled { cursor: default; }
.hx-note { display: flex; gap: 6px; margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.hx-note .ic { flex: none; margin-top: 2px; }
.cl-url { display: flex; gap: 6px; }
.cl-url .input { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
.grp-item.is-static, .grp-item.is-static:hover { cursor: default; background: var(--surface); }
.prop-photo.is-empty { display: grid; place-content: center; justify-items: center; gap: 6px; background: var(--sub-2); color: var(--ink-3); }
.prop-photo.is-empty a { font-size: 13px; font-weight: 650; color: var(--wood-700); }

@media (max-width: 1280px) {
  .prop-sw { margin-left: -6px; }
}
@media (max-width: 760px) {
  .gnb-in { gap: 10px; }
  .prop-sw { margin-left: 0; max-width: 132px; height: 34px; padding: 0 7px 0 9px; font-size: 13.5px; }
  .view-as span { display: none; }
  .prp { grid-template-columns: 40px minmax(0, 1fr); }
  .prp-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .tf-grid.se-3 { grid-template-columns: minmax(0, 1fr); }
  .hx-chat .hx-row { grid-template-columns: auto minmax(0, 1fr); }
  .hx-chat .hx-row .input + .input { grid-column: 2; }
}

/* ───────── 직원 로그인(실제 데이터, live.js) ───────── */
.boot { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: var(--bg); }
.boot-card { width: min(100%, 380px); display: flex; flex-direction: column; gap: 14px; padding: 28px 26px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.boot-card.is-msg { align-items: center; text-align: center; }
.boot-logo { width: 150px; height: auto; align-self: center; }
.boot-t { margin: 4px 0 0; text-align: center; font-size: 20px; font-weight: 750; letter-spacing: -.03em; }
.boot-s { margin: 0; font-size: 14px; color: var(--ink-3); line-height: 1.6; text-align: center; }
.boot-err { margin: 0; font-size: 13.5px; color: var(--red); }
.boot-go { width: 100%; justify-content: center; }
.boot-demo { align-self: center; font-size: 13px; color: var(--ink-3); }
.menu-note { margin-left: auto; font-size: 12px; color: var(--ink-3); }

/* ───────── 캘린더: 침대 줄의 방 번호는 방마다 한 번(2026-10-05 운영자: "701-1, 701-2… 헷갈려 — 병합") ───────── */
.cal-canvas { --rmw: 46px; }
.rl-bed { padding-left: calc(var(--rmw) + 10px); border-bottom-color: transparent; }
.rl-bed::after { content: ''; position: absolute; left: var(--rmw); right: 0; bottom: -1px; height: 1px; background: var(--line); pointer-events: none; }
.rl-bed:not(.is-first) { background: linear-gradient(to right, transparent var(--rmw), var(--surface) var(--rmw)); }
.cal-room { position: absolute; z-index: 1; left: 0; top: 0; width: var(--rmw); height: calc(var(--row) * var(--rows)); display: grid; place-items: center; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line-2); }
.cal-room b { font-size: 14px; font-weight: 750; color: var(--ink); letter-spacing: -.01em; }
.rm-bedno { min-width: 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
/* 방 순서 창 */
.ro-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 10px 18px 0; max-height: min(48vh, 440px); overflow: auto; }
.ro-sec { min-width: 0; }
.ro-h { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.ro-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.ro-item { display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 4px 0 10px; border-radius: 8px; }
.ro-item.is-on { background: var(--wood-50); }
.ro-name { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; padding: 0; border: 0; background: none; text-align: left; font-size: 13.5px; font-weight: 650; color: var(--ink); }
.ro-name small { font-size: 12px; font-weight: 500; color: var(--ink-3); }
button.ro-name { cursor: pointer; }
.ro-btns { display: inline-flex; gap: 2px; }
@media (max-width: 720px) {
  .cal-canvas { --rmw: 38px; }
  .ro-body { grid-template-columns: minmax(0, 1fr); }
}

/* 직원 초대 결과: 임시 비밀번호 */
.tmp-pw { margin: 0; display: grid; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--sub); }
.tmp-pw div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.tmp-pw dt { font-size: 12.5px; color: var(--ink-3); }
.tmp-pw dd { margin: 0; font-size: 14px; font-weight: 650; color: var(--ink); overflow-wrap: anywhere; }
.tmp-pw code { font: inherit; font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: .06em; color: var(--wood-700); }

/* 사진 올리는 중 */
.se-ph.is-busy { display: grid; place-items: center; background: var(--sub); }
.se-busy { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.se-up.is-busy { opacity: .6; pointer-events: none; }

/* ───────── 휴대폰 시트(2026-10-06 운영자: "작은 화면 컨트롤 — 모달이 낫다") ───────── */
.sheet-grab { display: none; }
.rc-scrim { display: none; }
.sg-x, .sg-swipe { display: none; }
@media (max-width: 720px) {
  .pop-scrim { position: fixed; inset: 0; z-index: 69; background: rgba(28, 26, 24, .38); animation: scrim-in 180ms var(--ease); }
  @keyframes scrim-in { from { opacity: 0; } to { opacity: 1; } }
  .pop.is-sheet { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto !important; max-width: none; max-height: 88vh; max-height: 88dvh; border-radius: 18px 18px 0 0; border-width: 1px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); animation: sheet-in 220ms var(--ease); transition: transform 200ms var(--ease); outline: none; }
  @keyframes sheet-in { from { transform: translateY(40%); opacity: .4; } to { transform: none; opacity: 1; } }
  .sheet-grab { display: flex; justify-content: center; padding: 8px 0 2px; position: sticky; top: 0; z-index: 2; background: var(--surface); cursor: grab; touch-action: none; }
  .sheet-grab i { width: 40px; height: 5px; border-radius: 999px; background: var(--line-3); }
  .pop.is-sheet .pop-head { padding: 6px 20px 8px; }
  .pop.is-sheet .pop-title { font-size: 18px; }
  .pop.is-sheet .pop-body { padding: 10px 20px 8px; }
  /* 확인·저장 단추는 시트 맨 아래 엄지 닿는 곳에, 크게 */
  .pop.is-sheet .pop-foot { position: sticky; bottom: 0; z-index: 2; padding: 12px 20px 14px; background: var(--surface); border-top: 1px solid var(--line); }
  .pop.is-sheet .pop-foot .btn { height: 46px; padding: 0 18px; font-size: 15px; }
  .pop.is-sheet .pop-foot .btn-primary { flex: 1; justify-content: center; }
  .pop.is-sheet .input, .pop.is-sheet select.input { height: 46px; font-size: 16px; }
  .pop.is-sheet .input-sm { height: 42px; font-size: 16px; }
  .pop.is-sheet textarea.input { height: auto; }
  .pop.is-sheet .btn-sm, .pop.is-sheet .btn-xs { min-height: 38px; }
  .pop.is-sheet .seg button { height: 38px; }
  .pop.is-sheet .menu-item { min-height: 48px; }
  .pop.is-sheet.is-info .info-body { padding: 4px 20px 20px; font-size: 14.5px; }

  /* AI 가격 제안: 요금표 아래 대신 시트로 */
  .rc-layout.side-open { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .rc-layout.side-open > .rc-scrim { display: block; position: fixed; inset: 0; z-index: 71; border: 0; padding: 0; background: rgba(28, 26, 24, .38); animation: scrim-in 180ms var(--ease); }
  .rc-layout.side-open > .rc-side { position: fixed; left: 0; right: 0; bottom: 0; z-index: 72; max-height: 90vh; max-height: 90dvh; overflow: auto; border-radius: 18px 18px 0 0; background: var(--surface); box-shadow: var(--sh-3); padding-bottom: env(safe-area-inset-bottom, 0px); animation: sheet-in 220ms var(--ease); transition: transform 200ms var(--ease); }
  .rc-side .sg { border: 0; border-radius: 0; box-shadow: none; }
  .rc-side .sg-x { display: inline-flex; order: 9; margin-left: auto; margin-right: -8px; }
  .rc-side .card-head { position: sticky; top: 21px; z-index: 2; background: var(--surface); }
  .sg-item { position: relative; padding: 14px 20px; background: var(--surface); transition: transform 160ms var(--ease), background-color 160ms; touch-action: pan-y; }
  .sg-item.is-ok { background: var(--wood-50); }
  .sg-item.is-no { background: var(--sub-2); }
  .sg-top { font-size: 15px; }
  .sg-price { font-size: 17px; }
  .sg-why { font-size: 13px; }
  .sg-acts .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
  .sg-swipe { display: inline; margin-left: auto; align-self: center; font-size: 12px; color: var(--ink-4); }
  .rc-side .sg-foot { position: sticky; bottom: 0; z-index: 2; background: var(--surface); padding: 12px 20px 14px; }
  .rc-side .sg-foot .btn { min-height: 44px; font-size: 14.5px; }
  .rc-side .sg-foot .btn-primary { flex: 1; justify-content: center; }
}

/* ───────── 휴대폰 캘린더: 날짜별 목록 · 짧은 머리(2026-10-06) ───────── */
.cal-list { display: none; }
@media (max-width: 720px) {
  :root { --roomcol: 72px; }
  .cal-canvas { --rmw: 32px; }
  .rl-bed .bulb { display: none; }
  .ph-cal { gap: 8px; margin-bottom: 8px; }
  .ph-cal .ph-title { font-size: 20px; margin-right: auto; }
  .ph-cal .cal-view { order: 0; }
  .ph-cal .ph-actions { width: auto; margin-left: 0; order: 0; }
  .ph-cal .ph-actions .btn-primary { width: 36px; padding: 0; justify-content: center; }
  .ph-cal .cal-tools { order: 2; width: 100%; flex-wrap: nowrap; }
  .ph-cal .cal-range { flex: 1; min-width: 0; }
  .ph-cal .cal-range span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ph-cal .cal-nav [data-act-cal="today"] { display: none; }
  .page:not(.is-list) .cal-strip:not(.is-in-sheet) { display: none; }
  .cal-strip.is-in-sheet { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
  .cal-strip.is-in-sheet .pill { height: 40px; font-size: 14px; }
  .cal-view button { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 0 10px; }
  /* 접힌 판매 현황 줄: 오른쪽 칸이 비어 있으니 이름이 그 위로 이어져도 된다 */
  .row-prod.is-fold .rl { overflow: visible; border-right-color: transparent; z-index: 5; }
  .row-prod.is-fold .prod-name { overflow: visible; white-space: nowrap; text-overflow: clip; }
  .cl-done { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
  /* 목록 보기 */
  .page.is-list .ph-cal .cal-tools, .page.is-list .cal-strip, .page.is-list .cal-card { display: none; }
  .page.is-list .cal-list { display: flex; flex-direction: column; gap: 14px; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding-bottom: 24px; }
  /* '오늘' 단추는 늘 같은 자리에 — 오늘이면 흐리게(2026-10-06 운영자: 단추가 생겼다 사라지며 › 자리가 움직이면 안 된다) */
  /* 목록 머리 = 표 머리와 같은 모양·자리(32px 단추, 날짜 칩) — 오른쪽만 보기·거르기 대신 오늘 */
  .cl-nav.cal-tools { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin: 0; padding: 0 0 8px; background: var(--bg); }
  .cl-nav .cal-nav { gap: 4px; flex: none; }
  .cl-nav .cal-range { flex: 1; min-width: 0; height: 32px; padding: 0 11px; gap: 6px; font-size: 13.5px; border-radius: 7px; }
  .cl-date b { font-weight: 700; white-space: nowrap; }
  .cl-date small { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
  .cl-today { flex: none; }
  .cl-today:disabled { opacity: .4; }
  .cl-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .cl-sum span { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
  .cl-sum b { font-size: 20px; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
  .cl-sum .is-warn b { color: var(--red); }
  .cl-sec { display: flex; flex-direction: column; gap: 8px; }
  .cl-h { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink-3); }
  .cl-frees { display: flex; flex-wrap: wrap; gap: 6px; }
  .cl-free { display: inline-flex; align-items: baseline; gap: 6px; height: 34px; padding: 0 12px; align-items: center; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); }
  .cl-free b { font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
  .cl-free.is-full b, .cl-free.is-closed b { color: var(--red); }
  .cl-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
  .cl-li { display: flex; align-items: center; gap: 8px; padding: 0 12px 0 0; border-top: 1px solid var(--line); }
  .cl-li:first-child { border-top: 0; }
  .cl-li-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 0 12px 14px; border: 0; background: none; text-align: left; color: inherit; }
  .cl-li-name { font-size: 15px; font-weight: 700; color: var(--ink); }
  .cl-li-sub { font-size: 12.5px; color: var(--ink-3); }
  .cl-li-sub b { color: var(--ink-2); }
  .cl-li-act .btn { min-height: 38px; }
  .cl-group { display: flex; flex-direction: column; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
  .cl-gh { margin: 0; padding: 9px 12px; font-size: 13px; font-weight: 700; background: var(--sub); border-bottom: 1px solid var(--line); }
  .cl-room { display: grid; grid-template-columns: 52px minmax(0, 1fr); border-top: 1px solid var(--line); }
  .cl-gh + .cl-room { border-top: 0; }
  .cl-rno { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 0; border-right: 1px solid var(--line); }
  .cl-rno b { font-size: 14px; font-weight: 750; }
  .cl-rno .rm-mode { padding: 0 5px; }
  .cl-slots { display: flex; flex-direction: column; gap: 4px; padding: 6px; min-width: 0; }
  .cl-slots.is-beds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-slot { display: flex; align-items: center; gap: 6px; min-height: 38px; min-width: 0; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; text-align: left; color: var(--ink); }
  .cl-slot > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
  .cl-slot i { flex: none; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ink-4); }
  .cl-slot small { flex: none; font-size: 12px; color: var(--ink-3); }
  .cl-slot em { flex: none; margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; color: var(--green); }
  .cl-slot.is-occ { background: var(--oak); border-color: var(--oak-line); }
  .cl-slot.is-in { background: var(--in); border-color: transparent; }
  .cl-slot.is-hold { background: var(--surface); border-style: dashed; border-color: var(--wood-300); }
  .cl-slot.is-free { border-style: dashed; color: var(--ink-4); background: transparent; }
  .cl-slot.is-free > span { font-weight: 500; }
  .cl-slot.is-block { background: var(--sub-2); color: var(--ink-3); }
}

/* ───────── 휴대폰 요금: 타입 탭 + 날짜 세로 목록(2026-10-06) ───────── */
@media (max-width: 720px) {
  .rc-root > .cal-tools { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px 8px; padding: 0 14px 2px; gap: 6px; }
  .rc-root > .cal-tools > * { flex: none; }
  .rc-root > .cal-tools > span[style*="flex:1"], .rc-root > .cal-tools [data-rc="today"], .rc-root > .cal-tools .info-btn { display: none; }
  .rc-root > .cal-tools .btn { height: 36px; padding: 0 12px; font-size: 13.5px; }
  .rc-root > .cal-tools .btn-icon { width: 36px; padding: 0; }
  .rc-root > .cal-tools .cal-range { height: 36px; font-size: 13.5px; }
  .rc-root.is-mlist .rg-scroll { overflow-x: hidden; }
  .rcl { display: flex; flex-direction: column; }
  .rcl-tabs { position: sticky; top: 0; z-index: 3; display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .rcl-tabs button { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
  .rcl-tabs button[aria-selected='true'] { border-color: var(--wood); background: var(--wood); color: #fff; }
  .rcl-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
  .rcl-min { font-size: 12.5px; color: var(--ink-3); }
  .rcl-bar .btn.is-on { border-color: var(--wood-300); background: var(--wood-50); color: var(--wood-700); }
  .rcl-hint { margin: 0; padding: 8px 12px; font-size: 12.5px; color: var(--ink-3); background: var(--sub); border-bottom: 1px solid var(--line); }
  .rcl-list { margin: 0; padding: 0 0 120px; list-style: none; }
  .rcl-row { width: 100%; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: 'date price sug' 'date meta sug'; align-items: center; gap: 2px 10px; min-height: 60px; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); text-align: left; color: var(--ink); }
  .rcl-row.is-past { opacity: .55; }
  .rcl-row.is-today { background: var(--wood-50); }
  .rcl-row.is-closed .rcl-price { color: var(--ink-4); text-decoration: line-through; }
  .rcl-row.is-sel { background: var(--wood-100); box-shadow: inset 3px 0 0 var(--wood); }
  .rcl-date { grid-area: date; display: flex; flex-direction: column; line-height: 1.25; }
  .rcl-date b { font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; }
  .rcl-date span { font-size: 12.5px; color: var(--ink-3); }
  .rcl-date small { font-size: 11px; font-weight: 700; color: var(--wood-700); }
  .rcl-row.is-sat .rcl-date span { color: var(--blue); }
  .rcl-row.is-red .rcl-date span, .rcl-row.is-red .rcl-date small { color: var(--red); }
  .rcl-price { grid-area: price; display: inline-flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; }
  .rcl-ovr { width: 7px; height: 7px; border-radius: 50%; background: var(--wood); }
  .rcl-meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
  .rcl-av { font-size: 12.5px; color: var(--ink-3); }
  .rcl-sug { grid-area: sug; padding: 3px 8px; border-radius: 7px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .rcl-sug.up, .rcl-sug.down { background: var(--wood-50); color: var(--ink); }
  .rcl-sug:empty { padding: 0; }
  /* 하루 고치기 시트 */
  .rd-step { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; gap: 8px; }
  .rd-step .btn-icon { width: 52px; height: 52px; }
  .pop.is-sheet .rd-val { height: 52px; font-size: 24px; font-weight: 750; text-align: center; font-variant-numeric: tabular-nums; }
  .rd-sug { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--wood-50); font-size: 14px; }
  .rd-sug span { display: inline-flex; align-items: center; gap: 6px; }
  .rd-sug small { color: var(--ink-3); font-weight: 600; }
  .rd-sale-row { display: flex; align-items: center; gap: 8px; height: 46px; font-size: 15px; }
}

/* 셀프 체크인 QR 미리보기 */
.ckqr { display: grid; place-items: center; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }

/* 채널 연결(Channex) 결과 */
.cx-msg { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-weight: 650; font-size: 14px; }
.cx-msg.is-ok { color: var(--green); }
.cx-msg.is-bad { color: var(--red); align-items: flex-start; overflow-wrap: anywhere; }
.cx-msg svg { flex-shrink: 0; }
.cx-prop { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 4px; }
.cx-prop + .cx-prop { margin-top: 8px; }
.cx-prop-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.cx-prop-h span { color: var(--ink-3); font-size: 13px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.cx-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.cx-field .input { max-width: 360px; }
.cx-map { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cx-mr { display: grid; grid-template-columns: minmax(0, 1.1fr) 64px minmax(0, 2fr); gap: 12px; align-items: start; padding: 10px 12px; }
.cx-mr + .cx-mr { border-top: 1px solid var(--line); }
.cx-mr > span { min-width: 0; }
.cx-mr > span:first-child { padding-top: 6px; }
.cx-mr .num { padding-top: 6px; font-variant-numeric: tabular-nums; font-weight: 650; }
.cx-mh { background: var(--sub); font-size: 12.5px; font-weight: 650; color: var(--ink-3); }
.cx-mh > span { padding-top: 0 !important; }
.cx-sts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cx-sts:empty { display: none; }
.cx-st { font-size: 12.5px; color: var(--ink-3); }
.cx-st.is-ok { color: var(--green); }
.cx-st.is-bad { color: var(--red); overflow-wrap: anywhere; }
.cx-st.is-warn { color: var(--warn); }
.cx-acts { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.cx-out .set-desc { margin-top: 10px; }
@media (max-width: 720px) {
  .cx-mr { grid-template-columns: minmax(0, 1fr) auto; }
  .cx-mr > span:last-child { grid-column: 1 / -1; }
  .cx-mh > span:last-child { display: none; }
}
.cx-acts .spacer { flex: 1; }
.cx-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; }
@media (max-width: 720px) { .set-row:has(> .cx-btns) { flex-wrap: wrap; } .set-row:has(> .cx-btns) > .set-txt { flex-basis: 100%; } .cx-btns { justify-content: flex-start; } }
/* 예약 캘린더: 방이 끝나는 줄 아래 선을 진하게(같은 방 침대 사이는 연하게) — 2026-10-06 운영자 "방마다 구분이 쉽게" */
.row-room.is-room-end > .rl, .row-room.is-room-end > .rt { border-bottom-color: var(--ink-4); }
.cal-room { border-bottom-color: var(--ink-4); }
/* 메모 대상(침대·방 전체) */
.hk-memo-to { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
/* 청소 설정 › 상태 표시 */
.hk-looks { display: flex; flex-direction: column; gap: 8px; padding: 0 18px 16px; }
.hk-look-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 150px 160px 92px 32px; align-items: center; gap: 12px; }
.hk-look-prev { min-height: 40px; padding: 6px 10px; justify-content: center; pointer-events: none; }
.hk-look-what { font-size: 13px; color: var(--ink-2); min-width: 0; }
.hk-look-color { display: flex; align-items: center; gap: 6px; }
.hk-look-pick { flex: none; width: 34px; height: 34px; padding: 2px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); cursor: pointer; }
.hk-look-hex { font-variant-numeric: tabular-nums; text-transform: uppercase; }
@media (max-width: 720px) {
  .hk-looks { padding: 0 16px 14px; }
  .hk-look-row { grid-template-columns: 96px minmax(0, 1fr); gap: 8px 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .hk-look-row:last-child { border-bottom: 0; }
  .hk-look-name, .hk-look-color { grid-column: span 1; }
}
.hk-look-name { width: 100%; min-width: 0; }
.hk-look-color .hk-look-hex { flex: 1; min-width: 0; width: auto; }
.hk-look-row.is-off .hk-look-prev { opacity: .45; }
.hk-look-todo { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.hk-look-act { display: flex; justify-content: flex-end; }
.hk-look-add { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 6px; }
.hk-look-add .set-desc { margin: 0; }
@media (max-width: 720px) { .hk-look-act { justify-content: flex-start; } }
/* 설정 묶음 목차: 고른 묶음 표시. 휴대폰에서는 위쪽 가로 알약 줄 */
.set-nav a .ic { color: var(--ink-3); flex: none; }
.set-nav a[aria-current="page"] { background: var(--oak); color: var(--wood-700); }
.set-nav a[aria-current="page"] .ic { color: var(--wood); }
@media (max-width: 760px) {
  .page > .set-grid { grid-template-rows: auto minmax(0, 1fr); gap: 12px; }
  .set-nav { display: flex; flex-direction: row; overflow-x: auto; overflow-y: hidden; gap: 6px; max-height: none; padding-bottom: 2px; scrollbar-width: none; }
  .set-nav::-webkit-scrollbar { display: none; }
  .set-nav-h { display: none; }
  .set-nav a { flex: none; white-space: nowrap; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 13.5px; }
  .set-nav a[aria-current="page"] { background: var(--wood); border-color: var(--wood); color: #fff; }
  .set-nav a[aria-current="page"] .ic { color: #fff; }
}
.hk-look-on { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.hk-look-on input:disabled + span { color: var(--ink-4); }
.hk-look-row.is-off .hk-look-what, .hk-look-row.is-off .hk-look-name, .hk-look-row.is-off .hk-look-color { opacity: .55; }
@media (max-width: 720px) { .hk-look-on { grid-column: 1; } }
/* 병합된 방 번호 칸: 번호 아래 혼성·여성 배지. 방이 끝나는 줄의 침대 칸 밑줄도 진하게 */
.cal-room { align-content: center; gap: 5px; }
.cal-room .rm-mode { margin: 0; }
.row-room.is-room-end > .rl-bed::after { background: var(--ink-4); left: 0; }
/* 자동 메시지: 함께 보낼 그림 */
.au-att { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.au-att-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.au-att-h .ic { color: var(--ink-3); }
.au-att-h small { color: var(--ink-3); font-size: 12.5px; }
.au-imgs { display: flex; flex-wrap: wrap; gap: 8px; }
.au-img { position: relative; margin: 0; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--sub); }
.au-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.au-img .bed-x { position: absolute; top: 4px; right: 4px; background: var(--surface); box-shadow: var(--sh-1); }
.au-img.is-busy { display: grid; place-items: center; font-size: 12px; color: var(--ink-3); }
.au-img-add { width: 96px; height: 96px; border-radius: 8px; border: 1.5px dashed var(--line-3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; background: var(--surface); }
.au-img-add:hover { border-color: var(--wood); color: var(--wood-700); }
.mg-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; max-width: 320px; }
.mg-imgs .mg-photo { width: 150px; max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
/* 숙박 연장: 옮길 예약 제안과 추가 요금 받기 */
.dt-moves { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding: 12px; border-radius: var(--r-lg); background: var(--warn-bg); border: 1px solid var(--warn-line); }
.dt-moves-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; }
.dt-moves-h .ic { color: var(--warn); }
.dt-moves-h small { flex-basis: 100%; color: var(--ink-3); font-size: 12.5px; }
.dt-move { display: grid; grid-template-columns: minmax(0, 1fr) auto 168px; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--surface); }
.dt-move-who { display: flex; flex-direction: column; min-width: 0; }
.dt-move-who b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-move-who small { font-size: 12.5px; color: var(--ink-3); }
.dt-move-arrow { color: var(--ink-3); display: inline-flex; }
.dt-pay { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.dt-pay-on { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.dt-pay-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dt-pay-row .input { width: 130px; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .dt-move { grid-template-columns: minmax(0, 1fr) auto; } .dt-move select { grid-column: 1 / -1; } }
.status-table .st-color { width: 196px; }
.status-table .st-color .hk-look-hex { width: 110px; flex: none; }
@media (max-width: 720px) { .status-table .st-color { width: auto; } .status-table .st-color .hk-look-hex { width: 92px; } }
@media (max-width: 720px) {
  .status-table, .status-table tbody { display: block; }
  .status-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "b sw" "d d" "c c"; gap: 6px 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
  .status-table td { padding: 0 !important; border: 0 !important; width: auto !important; }
  .status-table td:nth-child(1) { grid-area: b; }
  .status-table td:nth-child(2) { grid-area: d; }
  .status-table td.st-color { grid-area: c; }
  .status-table td:last-child { grid-area: sw; }
}
/* 캘린더 [예약 | 잔여]: 예약 보기는 타입 줄이 이름만 얇게, 잔여 보기는 판매 상품마다 날짜별 잔여 한 줄 */
.cal-canvas.is-noavail .row-group { height: 30px; }
.row-group.row-av { height: 40px; }
.row-group.row-av .rl { padding-left: 16px; }
.row-group.row-av .grp-cell { font-size: 14px; }
.row-group.row-av.is-last > .rl, .row-group.row-av.is-last > .rt { border-bottom-color: var(--ink-4); }
/* 사업장 고르기 위 회사 이름 */
.ps-co { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 4px; font-size: 12.5px; font-weight: 700; color: var(--wood-700); letter-spacing: .02em; }
.ps-co .ic { color: var(--wood); }
.cx-key { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cx-key .input { width: 220px; }
@media (max-width: 720px) { .set-row:has(> .cx-key) { flex-wrap: wrap; } .set-row:has(> .cx-key) > .set-txt { flex-basis: 100%; } .cx-key { width: 100%; } .cx-key .input { flex: 1; width: auto; min-width: 0; } }
/* 결제 줄: [수단][금액 원][빼기] / 아래에 그 줄까지 내고 남는 잔금(위에서 아래로) */
.pr-rows { display: flex; flex-direction: column; gap: 10px; }
.pr-row { display: grid; grid-template-columns: auto minmax(110px, 1fr) 24px; grid-template-areas: "m a x"; align-items: center; gap: 4px 8px; }
.pr-row .seg { grid-area: m; }
.pr-row .seg button { white-space: nowrap; }
.pr-amt { grid-area: a; display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.pr-amt .input { width: 100%; min-width: 0; text-align: right; font-variant-numeric: tabular-nums; }
.pr-amt em { font-style: normal; color: var(--ink-3); font-size: 13px; }
.pr-row .bed-x { grid-area: x; position: static; }
.pr-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pr-left { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.pr-fit { font-size: 12.5px; font-weight: 600; }
.pr-left.ok { color: var(--green); }
.pr-left.bad { color: var(--red); }
.bill-pay { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.bill-pay-go { align-self: flex-end; }
@media (max-width: 720px) { .pr-row { grid-template-columns: minmax(0, 1fr) 24px; grid-template-areas: "m x" "a a"; } }

/* ── 설정 › 자동 배정(4인 도미토리, alloc-ui.js) ── */
.al-rooms { display: flex; flex-wrap: wrap; gap: 4px; max-width: 420px; justify-content: flex-end; }
.al-room { min-width: 44px; height: 30px; padding: 0 8px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); font: inherit; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--ink-2); cursor: pointer; }
.al-room:hover { border-color: var(--line-3); }
.al-room[aria-pressed="true"] { background: var(--mode-female); border-color: var(--mode-female-ink); color: var(--mode-female-ink); font-weight: 650; }
.al-pair, .al-checks { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; justify-content: flex-end; font-size: 13px; color: var(--ink-2); }
.al-pair label, .al-checks label { display: inline-flex; align-items: center; gap: 6px; }
.al-checks input { width: 16px; height: 16px; accent-color: var(--wood); }
.al-draft { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 16px 0; padding: 10px 12px; border-radius: var(--r); background: var(--wood-50); font-size: 13px; font-weight: 600; color: var(--wood-700); }
.al-draft > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.al-draft.is-calm { background: none; padding: 4px 0 0; }
.al-prev { margin: 10px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.al-prev-h { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.al-moves { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.al-moves li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.al-moves span { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.al-moves small { color: var(--ink-3); }
.al-moves .ic { color: var(--ink-4); }
.al-more { color: var(--ink-3); }
.al-tw { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.al-inv { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.al-inv caption { text-align: left; padding: 8px 10px; font-size: 12px; color: var(--ink-3); caption-side: top; }
.al-inv th, .al-inv td { padding: 6px 10px; border-top: 1px solid var(--line); text-align: left; white-space: nowrap; }
.al-inv thead th { background: var(--sub); font-weight: 650; color: var(--ink-3); }
.al-inv .r, .al-inv td { text-align: right; }
.al-inv tbody th { font-weight: 500; color: var(--ink-2); }
.al-diff { color: var(--wood-700); font-weight: 650; }
.al-diff s { color: var(--ink-4); font-weight: 400; }
.al-log { margin: 12px 16px 14px; font-size: 13px; }
.al-log summary { cursor: pointer; font-weight: 650; color: var(--ink-2); }
.al-log summary .num { color: var(--ink-4); font-weight: 500; }
.al-log ol { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.al-log li { display: grid; grid-template-columns: 96px minmax(80px, auto) minmax(0, 1fr) auto; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); align-items: baseline; }
.al-log li span { color: var(--ink-2); }
.al-log li small { color: var(--ink-3); }
.al-none { margin: 8px 0 0; color: var(--ink-3); }
@media (max-width: 720px) {
  .al-rooms, .al-pair, .al-checks { justify-content: flex-start; }
  .al-log li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
/* 자동 배정 설정 줄: 조작이 넓어도 글자가 꺾이지 않게 — 좁으면 조작이 아래 줄로 */
#set-alloc .set-row { flex-wrap: wrap; }
#set-alloc .set-txt { flex: 1 1 180px; min-width: 0; }
@media (max-width: 720px) { #set-alloc .al-rooms { max-width: none; } }

/* Channex 작업 번호(인증 신청서용) */
.cx-tasks { margin-top: 8px; font-size: 12.5px; }
.cx-tasks summary { cursor: pointer; font-weight: 650; color: var(--ink-2); }
.cx-tasks ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cx-tasks li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 3px 0; border-top: 1px solid var(--line); }
.cx-tasks code { font-family: var(--font); font-variant-numeric: tabular-nums slashed-zero; font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
@media (max-width: 720px) { .cx-tasks li { grid-template-columns: minmax(0, 1fr) auto; } .cx-tasks li > span:first-child { grid-column: 1 / -1; } }

/* 요금 › 일괄 수정: 상품 · 기간 · 요금 · 최소 숙박 · 판매 한 줄씩 */
.bk-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.bk-row { display: grid; grid-template-columns: 104px auto minmax(110px, 1fr) 132px 112px 24px; grid-template-areas: "t d p m s x"; align-items: center; gap: 6px; }
.bk-row > [data-bkf="tid"] { grid-area: t; } .bk-row > .bk-dates { grid-area: d; } .bk-row > [data-bkf="price"] { grid-area: p; }
.bk-row > [data-bkf="ms"] { grid-area: m; } .bk-row > [data-bkf="sale"] { grid-area: s; } .bk-row > .bed-x { grid-area: x; position: static; transform: none; }
.bk-dates { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); }
.bk-dates .input { width: 130px; }
.bk-n { min-width: 30px; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 720px) {
  .bk-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 24px; grid-template-areas: "t p x" "d d d" "m s s"; padding: 10px 0; border-top: 1px solid var(--line); }
  .bk-row .bk-dates .input { flex: 1; width: auto; min-width: 0; }
}

.bk-dows { margin-top: 12px; }
/* 요금제(같은 방을 쓰고 요금만 다른 상품): 기본 상품 머리 아래 한 줄 */
.room-mgmt tr.rm-plan > * { padding-top: 9px; padding-bottom: 9px; background: var(--sub); }
.room-mgmt tr.rm-plan th { padding-left: 28px; font-weight: 500; color: var(--ink-3); }
.rm-plan-t { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.room-mgmt tr.rm-plan th b { font-size: 13.5px; font-weight: 650; color: var(--ink); }
.room-mgmt tr.rm-plan th small { font-size: 12px; }
.room-mgmt tr.rm-plan td.rm-acts { text-align: right; white-space: nowrap; }
.cx-mr.is-plan > span:first-child { padding-left: 14px; }
.cx-mr.is-plan > span:first-child small { display: block; font-size: 11.5px; color: var(--ink-3); }
.cx-mr select + select { margin-top: 6px; }
@media (max-width: 760px) {
  .room-mgmt tbody tr.rm-plan { background: var(--sub); }
  .room-mgmt tr.rm-plan > th { padding-left: 16px; }
}
.ooo-rooms { display: flex; flex-wrap: wrap; gap: 6px 14px; max-height: 132px; overflow-y: auto; }

/* ───────── 달력(날짜 칸, util.js) ───────── */
.dp { position: fixed; z-index: 90; width: 292px; padding: 12px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-3); box-shadow: var(--sh-3); animation: pop-in 120ms var(--ease); }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-title { font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dp-nav { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.dp-nav:hover { border-color: var(--line-3); color: var(--ink); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.dp-dow { height: 26px; display: grid; place-items: center; font-size: 11.5px; font-weight: 650; color: var(--ink-3); }
.dp-d { height: 36px; border: 0; border-radius: var(--r); background: none; font: inherit; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); cursor: pointer; }
.dp-dow.is-red, .dp-d.is-red { color: var(--red); }
.dp-dow.is-sat, .dp-d.is-sat { color: var(--blue); }
.dp-d.is-out { opacity: .42; }
.dp-d:hover:not(:disabled) { background: var(--wood-50); }
.dp-d.is-today { box-shadow: inset 0 0 0 1.5px var(--wood-300); }
.dp-d.is-in { background: var(--wood-50); border-radius: 0; }
.dp-d.is-a { border-radius: var(--r) 0 0 var(--r); }
.dp-d.is-b { background: var(--wood-100); border-radius: 0 var(--r) var(--r) 0; }
.dp-d.is-sel, .dp-d.is-sel:hover { background: var(--wood); color: #fff; opacity: 1; }
.dp-d:disabled { color: var(--ink-4); opacity: .35; cursor: default; text-decoration: line-through; text-decoration-color: var(--line-3); }
.dp-d.is-a:disabled { opacity: 1; color: var(--wood-700); text-decoration: none; }   /* 체크인 날(끝 칸에서는 고를 수 없지만 기간의 시작으로 보인다) */
.dp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); min-height: 28px; }
.dp-sum { display: flex; flex-direction: column; gap: 1px; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dp-sum small { font-size: 11.5px; color: var(--ink-3); }
.input.is-dp-on { border-color: var(--wood); box-shadow: 0 0 0 3px var(--wood-50); }   /* 기간 달력에서 지금 고르는 칸 */
.dp-sum b { color: var(--wood-700); }
/* 마우스로 쓰는 화면: 브라우저 기본 달력 아이콘 대신 같은 자리에 아이콘만(누르면 우리 달력) */
@media (pointer: fine) {
  input[type=date]::-webkit-calendar-picker-indicator { display: none; }
  input.input[type=date] { padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%236F6962' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; cursor: pointer; }
}

/* ───────── 이름으로 본 여성 가능성(AI) ───────── */
.bar-ic.is-low { background: var(--red); color: #fff; }
.g-ai { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-top: 8px; padding: 8px 10px; border-radius: var(--r); background: rgba(255, 255, 255, .6); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.g-ai b { font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--ink); }
.g-ai small { flex-basis: 100%; font-size: 12px; color: var(--ink-3); }
.g-ai .btn { margin-top: 4px; }
.g-ai.is-low { border-color: var(--red-line); }
.g-ai.is-low b { color: var(--red); }
.ai-eval { margin-top: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--bg); font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.ai-eval ul { margin: 6px 0 0; padding-left: 18px; }
.ai-eval b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ai-miss, .ai-cost { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.g-ai.is-ok { border-color: var(--green-line, var(--line)); }
.g-ai.is-ok b { color: var(--green, var(--ink)); }
