/* NURISTAY 화면 디자인 (2026-10-25, 1.512, 주인의 결정: 디자인 시안 C "산뜻한 앱"의 밝은·어두운 한 쌍 — 그 전의 Light·Dark
   (네이비 위쪽 줄)·Cream·Wine 모양은 뺌). base.html이 화면 메뉴의 Light → <html data-skin="fresh">, Dark → <html data-bs-theme="dark"
   data-skin="fresh-dark">로 정함. Auto(처음)는 기기 설정을 따라감. 색 변수(--skin-*)는 pms.css의 html[data-skin] 틀이 Bootstrap에 넘겨서
   버튼·입력칸·메뉴가 저절로 맞음. 여기서는 그 위에 모양: 그라데이션 위쪽 줄, 둥근 카드·그림자, 알약 모양 버튼, Today의 머리 부분·
   숫자 타일·새 예약 단추, 예약 화면의 손님 카드·빠른 버튼, 달력의 둥근 예약 칸, 휴대폰·태블릿의 아래 메뉴 바.
   .fresh-only = 화면에서만 보임, .classic-only = 화면에서 숨음. 인쇄할 때는 data-skin이 빠져서(base.html의 beforeprint) 반대: 예전의
   밝은 기본 모양 (제목·"rooms tonight" 등, 숫자 타일·손님 카드·아래 메뉴 바 없이).
   예약 색의 뜻(노랑 완납, 초록 결제 대기, 분홍 일부 결제, 빨강 Hold, 하늘 보증금)과 체크인·체크아웃 테두리는 그대로.
   시안 그림: test-results/2026-10-25-design (git 밖) */

html:not([data-skin^="fresh"]) .fresh-only { display: none !important; }
html[data-skin^="fresh"] .classic-only { display: none !important; }
.qa-icon { display: none; }

/* --- 색 --- */
/* 1.913 (2026-11-16, 주인의 결정 T66 "모든 페이지 배경색 흰색으로" — 가 ① · 나 ① · 다 ①): 밝은 화면의 바탕 --skin-bg는 흰색 (그 전
   옅은 파랑빛 회색 241·245·251), 흰 카드가 묻히지 않게 얇은 테두리 (--fresh-card-border)와 옅은 그림자 (--fresh-shadow — 그 전에는 테두리
   없이 넓은 파란 그림자 0 6px 22px). 위쪽 파란 머리와 어두운 화면 (fresh-dark)은 그대로. Admin은 admin.css의 같은 값 */
html[data-skin="fresh"] {
  --skin-head: #06b6d4; --skin-headtext: #ffffff; --skin-bg: #ffffff; --skin-surface: #ffffff; --skin-surface2: #eef3fa;
  --skin-border: #dbe4f0; --skin-text: #14213d; --skin-muted: #64748b; --skin-primary: #2563eb; --skin-primary-hover: #1d4ed8;
  --skin-primarytext: #ffffff; --skin-soft: #e3edff;
  --skin-surface-rgb: 255, 255, 255; --skin-surface2-rgb: 238, 243, 250; --skin-text-rgb: 20, 33, 61; --skin-primary-rgb: 37, 99, 235;
  --skin-muted-rgb: 100, 116, 139;
  --fresh-head: linear-gradient(110deg, #06b6d4, #3b82f6);
  --fresh-hero: linear-gradient(120deg, #06b6d4, #3b82f6);
  --fresh-shadow: 0 1px 3px rgba(15, 23, 42, .08);
  --fresh-card-border: 1px solid #dbe4f0;
  --fresh-occupancy: #6366f1; --fresh-arrive: #10b981; --fresh-depart: #f97316; --fresh-stay: #0ea5e9; --fresh-danger: #f43f5e;
  --fresh-check: #f59e0b; --fresh-quiet: #94a3b8;
  --fresh-tile-bg: #ffffff; --fresh-tile-shadow: 0 8px 22px rgba(15, 23, 42, .12);
  --fresh-fab: linear-gradient(135deg, #06b6d4, #3b82f6); --fresh-fab-shadow: 0 10px 24px rgba(37, 99, 235, .45);
  --fresh-tab-bg: rgba(255, 255, 255, .96); --fresh-tab-line: #e2e8f2; --fresh-tab-text: #64748b; --fresh-tab-on: #2563eb;
  --fresh-tab-on-bg: #e3edff;
  --fresh-cal-line: #e9eef6; --fresh-cal-cell: #fbfcfe; --fresh-cal-head: #ffffff; --fresh-today: #cbdffc; --fresh-today-text: #1d4ed8;
  --fresh-booking-shadow: 0 2px 6px rgba(15, 23, 42, .10); --fresh-due-in: #059669; --fresh-due-out: #f97316;
}
html[data-skin="fresh-dark"] {
  --skin-head: #0e7490; --skin-headtext: #ffffff; --skin-bg: #0b1222; --skin-surface: #141d33; --skin-surface2: #1b2640;
  --skin-border: #263252; --skin-text: #e8eef9; --skin-muted: #93a1b8; --skin-primary: #3b82f6; --skin-primary-hover: #2563eb;
  --skin-primarytext: #ffffff; --skin-soft: #1e2d4d;
  --skin-surface-rgb: 20, 29, 51; --skin-surface2-rgb: 27, 38, 64; --skin-text-rgb: 232, 238, 249; --skin-primary-rgb: 59, 130, 246;
  --skin-muted-rgb: 147, 161, 184;
  --fresh-head: linear-gradient(110deg, #0e7490, #1d4ed8);
  --fresh-hero: linear-gradient(120deg, #0e7490, #1d4ed8);
  --fresh-shadow: 0 8px 26px rgba(0, 0, 0, .40);
  --fresh-card-border: 1px solid #1f2a44;
  --fresh-occupancy: #818cf8; --fresh-arrive: #34d399; --fresh-depart: #fb923c; --fresh-stay: #38bdf8; --fresh-danger: #fb7185;
  --fresh-check: #fbbf24; --fresh-quiet: #64748b;
  --fresh-tile-bg: #141d33; --fresh-tile-shadow: 0 10px 26px rgba(0, 0, 0, .45);
  /* 새 예약 단추 (1.711, 주인의 말: 어두운 화면에서 눈부심): 한 단계 어두운 색, 파란 빛 대신 그림자 */
  --fresh-fab: linear-gradient(135deg, #0891b2, #2563eb); --fresh-fab-shadow: 0 8px 20px rgba(0, 0, 0, .45);
  --fresh-tab-bg: rgba(17, 25, 45, .96); --fresh-tab-line: #1f2a44; --fresh-tab-text: #7d8aa3; --fresh-tab-on: #93c5fd;
  --fresh-tab-on-bg: rgba(96, 165, 250, .18);
  --fresh-cal-line: #1c2740; --fresh-cal-cell: #0d1527; --fresh-cal-head: #111a2e; --fresh-today: rgba(96, 165, 250, .27);
  --fresh-today-text: #93c5fd;
  --fresh-booking-shadow: 0 2px 8px rgba(0, 0, 0, .45); --fresh-due-in: #86efac; --fresh-due-out: #fdba74;
}
html[data-skin="fresh"] { --pms-navy: #1e3a8a; }
html[data-skin="fresh-dark"] { --pms-navy: #2c5596; }
html[data-skin^="fresh"] {
  --bs-body-font-family: "Segoe UI Variable Text", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-border-radius: .75rem; --bs-border-radius-sm: .6rem; --bs-border-radius-lg: 1rem;
  --fresh-radius: 20px;
}
/* 위쪽의 은은한 파란 빛은 맨 위에 한 번만 (2026-10-26 화면 점검: no-repeat가 바탕색 쪽에 붙어 있어서 빛이 화면 높이마다
   되풀이되어 중간에 띠와 선이 생겼음) */
html[data-skin="fresh-dark"] body {
  background: radial-gradient(900px 420px at 50% -120px, rgba(29, 78, 216, .25), transparent 70%) no-repeat, var(--skin-bg);
}
/* 로그인 화면은 흰 바탕 (1.889, 2026-11-16, 주인의 요청 T56 "로그인 페이지 배경을 흰색으로"): 로그인·PIN·비밀번호 찾기·바꾸기·이메일
   확인 화면, 1.893부터 로그인 직후 "아이디를 이메일로" 화면 (바깥 칸에 login-screen). 흰 카드가 묻히지 않게 얇은 테두리와 옅은 그림자. 어두운 화면(fresh-dark)은 그대로 */
html[data-skin="fresh"]:has(.login-screen) { --skin-bg: #ffffff; }
html[data-skin="fresh"] .login-screen .card { border: 1px solid #dde3ec; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 20px rgba(15, 23, 42, .06); }
html[data-skin="fresh"] .login-screen #login-logo { box-shadow: none; }
/* 로그인 화면의 PIN | Password (T85, 2026-11-22, 주인의 요청: 고른 탭이 헷갈리지 않게) — 회색 바탕의 두 칸 스위치. 고른 칸은 파란 바탕에
   흰 굵은 글자와 그림자, 다른 칸은 흐린 글자 (눌러서 바꿀 수 있게 마우스를 올리면 진해짐). 밝은·어두운 화면 모두 */
.login-screen .login-tabs-head { background: transparent; border-bottom: 0; padding: 1rem 1rem 0; }
.login-screen .login-tabs { background: rgba(var(--skin-muted-rgb, 100, 116, 139), .14); border-radius: 999px; padding: 4px; gap: 4px; }
.login-screen .login-tabs .nav-link { border-radius: 999px; padding: .55rem .75rem; font-weight: 500; color: var(--skin-muted, #64748b); }
.login-screen .login-tabs .nav-link:hover { color: var(--skin-text, #0f172a); }
.login-screen .login-tabs .nav-link.active { background: var(--skin-primary, #2563eb); color: #fff; font-weight: 700;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .15), 0 2px 8px rgba(var(--skin-primary-rgb, 37, 99, 235), .35); }
html[data-skin="fresh-dark"] .text-muted { color: var(--skin-muted) !important; }
/* 작은 표시(text-bg-light: 영수증 번호·사진 수·Keep this room …)는 어두운 화면에서 흰 알약이 아니라 카드에 맞는 색 (2026-11-03
   코드 리뷰: Bootstrap의 흰 바탕 + 검은 글자가 그대로였음) */
html[data-skin="fresh-dark"] .text-bg-light { background-color: var(--bs-tertiary-bg) !important; color: var(--bs-body-color) !important; }
/* 어두운 화면의 링크 글자는 단추의 파랑보다 밝게 (어두운 바탕에서 잘 읽히게) */
html[data-skin="fresh-dark"] { --bs-link-color: #7cb3fb; --bs-link-color-rgb: 124, 179, 251; --bs-link-hover-color: #a5cbfc;
                               --bs-link-hover-color-rgb: 165, 203, 252; }

/* 예약 색 (뜻은 그대로): 조금 더 선명한 파스텔 + 진한 글자 (pms.css). 어두운 화면도 똑같이 (2026-10-26, 주인의 결정 "헷갈리지
   않게" — 그 전 어두운 화면은 진한 색 + 흰 글자: Paid #ca8a04 (그날 잠깐 주황 #ea580c), Pending #16a34a, Partial #db2777,
   Hold #dc2626, 보증금 #0284c7).
   Hold: 1.593 (2026-10-30, 주인의 결정 A안 "Hold만 더 진한 빨강") #fda4af → #f87171 — Partially paid 분홍(#f9a8d4)과 밝기가
   같고 색만 조금 달라 달력에서 거의 같아 보였음 (색 차이 ΔE2000 10 → 22, 다른 짝들은 25 이상). 진한 글자와의 대비 5.6:1 */
html[data-skin^="fresh"] .booking-paid { --status-colour: #fcdc6a; }  /* T128 (2.69): 예약 색을 조금 진하게 (전: #fde68a #86efac #f9a8d4 #f87171 #cbd5e1 #7dd3fc) */
html[data-skin^="fresh"] .booking-pending { --status-colour: #6ee39a; }
html[data-skin^="fresh"] .booking-partial { --status-colour: #f597c9; }
html[data-skin^="fresh"] .booking-hold { --status-colour: #f46262; }
html[data-skin^="fresh"] .booking-block { --status-colour: #bcc8d6; }  /* 방 막기 (1.659): 회색 점선 (pms.css) */
html[data-skin^="fresh"] .booking-security-deposit { --status-colour: #5fc7f8; }

/* --- 위쪽 줄: 그라데이션, 금색 밑줄 대신 그림자, 고른 메뉴는 알약 모양 --- */
html[data-skin^="fresh"] .navbar.bg-dark { background-image: var(--fresh-head) !important; border-bottom: 0;
                                           box-shadow: 0 4px 18px rgba(37, 99, 235, .22); }
html[data-skin="fresh-dark"] .navbar.bg-dark { box-shadow: 0 4px 18px rgba(0, 0, 0, .45); }
html[data-skin^="fresh"] #app-header .property-brand:not(:has(.header-logo))::before {
  content: ""; display: inline-block; width: 1.15rem; height: 1.15rem; margin-right: .4rem; vertical-align: -.2rem; border-radius: 50%;
  background: #ffffff; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55), inset 0 0 0 6px #22d3ee; }
html[data-skin="fresh-dark"] #app-header .property-brand:not(:has(.header-logo))::before {
  background: #0b1222; box-shadow: inset 0 0 0 3px rgba(103, 232, 249, .35), inset 0 0 0 6px #22d3ee; }
/* 이름 앞 동그라미만큼 넓어져서, 달력처럼 위쪽 줄이 꽉 찬 화면에서 이름 칸이 줄면 이름도 함께 줄어 …로 (옆 표시와 겹치지 않게) */
html[data-skin^="fresh"] .property-switch .property-brand { max-width: min(22rem, 100%); }
@media (min-width: 992px) {
  /* 넓은 화면은 위쪽 줄에 메뉴가 다 있어서 이름 앞 동그라미는 빼고 (달력의 날짜 단추가 위쪽 줄에 들어가게, calendar.js placeNav) */
  html[data-skin^="fresh"] #app-header .property-brand:not(:has(.header-logo))::before { display: none; }
  html[data-skin^="fresh"] #app-header .navbar-nav .nav-link { border-radius: 999px; }  /* 여백은 예전 그대로 (달력의 단추가 위쪽 줄에 들어가게) */
  html[data-skin^="fresh"] #app-header .navbar-nav .nav-link.active { background: rgba(255, 255, 255, .22); }
}
html[data-skin^="fresh"] #app-header .form-control { background-color: rgba(255, 255, 255, .95); }
html[data-skin="fresh-dark"] #app-header .form-control { background-color: rgba(11, 18, 34, .45); color: #ffffff; }

/* --- 카드·목록·버튼 --- */
html[data-skin^="fresh"] .card { --bs-card-border-width: 0; --bs-card-border-radius: var(--fresh-radius);
  --bs-card-inner-border-radius: var(--fresh-radius); --bs-card-cap-bg: transparent; border: var(--fresh-card-border);
  box-shadow: var(--fresh-shadow); }
html[data-skin^="fresh"] .card-header { font-weight: 600; padding-top: .75rem; padding-bottom: .75rem; }
html[data-skin^="fresh"] .modal-content { border-radius: var(--fresh-radius); border: var(--fresh-card-border); }
html[data-skin^="fresh"] .btn:not(.btn-close):not(.btn-link) { --bs-btn-border-radius: 999px; }
html[data-skin^="fresh"] .badge { border-radius: 999px; }
html[data-skin^="fresh"] dl.dl-tight dt { font-weight: 500; color: var(--bs-secondary-color); }

/* --- Today: 머리 부분 (today.html), 숫자 타일 (_today_live.html), 접는 목록, 새 예약 단추 --- */
html[data-skin^="fresh"] .today-hero { background: var(--fresh-hero); color: #ffffff; border-radius: 0 0 28px 28px;
  margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -.5); padding: .9rem 1rem 3.4rem; }
html[data-skin^="fresh"] main > .today-hero:first-of-type { margin-top: -1rem; }
@media (min-width: 768px) {
  html[data-skin^="fresh"] .today-hero { border-radius: 28px; margin: 0; padding: 1.3rem 1.5rem 3.6rem; }
  html[data-skin^="fresh"] main > .today-hero:first-of-type { margin-top: 0; }
}
html[data-skin^="fresh"] .today-hello-name { font-size: 1.4rem; font-weight: 800; line-height: 1.2; margin-bottom: .7rem; }
/* 다른 화면의 머리 부분 (1.735, 주인의 요청: Bookings·Housekeeping·Rates & channels도 Today처럼 제목을 파란 칸 안에, _hero_head.html):
   큰 제목 (모텔 이름 줄은 1.746·1.748부터 없음 — 맨 위 줄에 있음), 오른쪽 버튼 (흰 바탕의 큰 버튼 하나 + 둥근 아이콘 버튼). 타일이 겹치지 않는 화면은 hero-plain */
html[data-skin^="fresh"] .today-hero h1.today-hello-name { font-size: 1.4rem; font-weight: 800; color: #ffffff; margin-bottom: 0; }
html[data-skin^="fresh"] .hero-head { margin-bottom: .7rem; }
/* 페이지 제목 없이 (1.886, 2026-11-16, 주인의 요청 T54 "모든 각 페이지 타이틀 빼줘"): 위쪽 메뉴가 있는 직원 화면(#app-header ~ main)의
   큰 제목(h1)은 화면에서만 숨김 — 화면 읽기 프로그램은 그대로 읽음 (Bootstrap의 visually-hidden과 같은 방법, 1.866의 Rates처럼).
   제목 뒤에 me-auto가 있던 줄은 다음 칸이 그 자리를 받아 오른쪽 버튼(Print·Edit …)이 그대로 오른쪽에. 남기는 것은 h1.keep-title
   (Today의 날짜, 문서 보기의 문서 이름, 받은 이메일의 제목, 오류 안내, 청소 작업표, 1.891부터 "아이디를 이메일로" 안내). 인쇄하면 skin이 없어 예전처럼 제목이 나옴.
   손님 화면·로그인 화면에는 위쪽 메뉴가 없어서 이 규칙이 닿지 않음 */
html[data-skin^="fresh"] #app-header ~ main h1:not(.keep-title, .page-name) { position: absolute !important; width: 1px !important;
  height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
html[data-skin^="fresh"] #app-header ~ main h1.me-auto:not(.keep-title, .page-name) + * { margin-left: auto; }
/* 제목만 있던 줄 (뒤에 아무것도 없음)은 여백도 없앰 — 빈 줄의 아래 여백이 남지 않게. 단 버튼을 오른쪽으로 미는 칸(me-auto,
   파란 머리의 제목 칸)은 그대로 */
html[data-skin^="fresh"] #app-header ~ main :is(div, header):not(.me-auto):has(> h1:not(.keep-title, .page-name):only-child) { margin: 0 !important; }
/* 한 건의 화면은 큰 제목 대신 작은 이름 줄 (1.891, 2026-11-16, 주인의 답 T54 나 ①: 예 "Edit booking #8906 Grace Evans") — 뒤로 버튼
   옆(줄이 없는 화면은 맨 위)에. 제목이 빠져 무엇의 화면인지 알 수 없던 곳: 회사 페이지, Payslip, 예약의 Edit·Cancel·Email·Text, 사고,
   직원 한 명의 화면, 단체 예약, 카드 번호·손님 사진. 그 h1에 page-name */
html[data-skin^="fresh"] #app-header ~ main h1.page-name { font-size: 1rem; font-weight: 600; line-height: 1.35;
  color: var(--bs-secondary-color); min-width: 0; overflow-wrap: anywhere; }
html[data-skin^="fresh"] .today-hero .btn.hero-action { width: auto; padding: 0 1.1rem; font-weight: 600; white-space: nowrap; }
html[data-skin^="fresh"] .today-hero .btn.hero-primary { --bs-btn-bg: #ffffff; --bs-btn-color: var(--skin-primary-hover);
  --bs-btn-hover-bg: rgba(255, 255, 255, .88); --bs-btn-hover-color: var(--skin-primary-hover);
  --bs-btn-active-bg: #ffffff; --bs-btn-active-color: var(--skin-primary-hover); }
html[data-skin^="fresh"] .today-hero.hero-plain { padding-bottom: 1rem; margin-bottom: 1rem; }
/* Housekeeping의 진행 막대·Service 수 (1.736, 주인의 요청: 파란 칸 안에, _housekeeping_summary.html): 흰 글자, 흰 막대 */
html[data-skin^="fresh"] .today-hero .hk-summary { margin-top: .8rem; }
html[data-skin^="fresh"] .today-hero .hk-summary > div:last-child { margin-bottom: 0 !important; }
html[data-skin^="fresh"] .today-hero .hk-summary .progress { background: rgba(255, 255, 255, .25); }
html[data-skin^="fresh"] .today-hero .hk-summary .progress-bar { background: #ffffff !important; }

@media (min-width: 768px) { html[data-skin^="fresh"] .today-hero.hero-plain { padding-bottom: 1.2rem; } }
/* 날짜 머리의 한 주 줄 (1.934, T102 — 2026-11-18 주인이 고른 시안 3; _day_strip.html, bookings/day_strip.py): 옅은 흰 칸 안에
   윗줄 ← · 달력 (달 이름) · (Print) · →, 아랫줄 월 – 일 일곱 칸 (보는 날 = 흰 칸, 오늘 = 노란 칸 — 주인의 답 "오늘에 해당하는 날 칸은
   바탕색을 다른 색으로 채워 주세요": 흰 칸과 헷갈리지 않게, 오늘을 보고 있으면 노란 칸에 흰 테두리 —, 갈 수 없는 날 = 흐리게).
   Today 단추는 같은 답으로 뺌 (오늘로는 노란 칸). 달 이름은 줄의 한가운데 (양쪽 칸이 같은 너비). 줄이 640px보다 좁으면 (휴대폰 ·
   좁은 옆 칸 — 화면이 아니라 줄의 폭으로) 남는 자리의 가운데로, Housekeeping의 Print는 동그란 단추에 인쇄 그림만 (1.924, 주인의 말
   "여기로 옮겨줘" — → 바로 왼쪽). 그 전 (1.736 ~ 1.933)은 "Wed ▾ / 25 Nov 2026" 두 줄과 그 위에 얹은 Print (hero-day-actions) */
html[data-skin^="fresh"] #housekeeping-hero .hero-head { margin-bottom: 0; }
html[data-skin^="fresh"] .today-hero .day-strip { background: rgba(255, 255, 255, .16); border-radius: 18px; padding: .5rem .55rem .55rem;
  margin-bottom: 0 !important; container-type: inline-size; }
.day-strip-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; margin-bottom: .45rem; }
.day-strip-top > :first-child { justify-self: start; }
.day-strip-mid { display: flex; align-items: center; justify-content: center; gap: .45rem; min-width: 0; }
.day-strip-end { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; }
.day-strip-month { display: inline-flex; align-items: center; gap: .4rem; height: 2.3rem; margin: 0; padding: 0 .95rem;
  border-radius: 999px; font-weight: 700; white-space: nowrap; text-decoration: none; }
html[data-skin^="fresh"] .day-strip-month { background: rgba(255, 255, 255, .22); color: #ffffff; font-size: 1rem; }
html[data-skin^="fresh"] .day-strip-month:is(:hover, :focus-within) { background: rgba(255, 255, 255, .34); }
.day-strip-month:focus-within { outline: 2px solid #ffffff; outline-offset: 2px; }
.day-strip-month .menu-icon { width: 1.05em; height: 1.05em; margin: 0; flex: none; }
.day-strip-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; }
.day-strip-day { display: flex; flex-direction: column; align-items: center; padding: .3rem 0 .35rem; border-radius: 14px; line-height: 1.15;
  text-decoration: none; }
.day-strip-day small { font-size: .72rem; }
.day-strip-day b { font-size: 1.05rem; }
html[data-skin^="fresh"] .day-strip-day { background: rgba(255, 255, 255, .16); color: #ffffff; }
html[data-skin^="fresh"] a.day-strip-day:is(:hover, :focus-visible) { background: rgba(255, 255, 255, .3); color: #ffffff; }
html[data-skin^="fresh"] .day-strip-day.sel, html[data-skin^="fresh"] a.day-strip-day.sel:is(:hover, :focus-visible) { background: #ffffff; color: #1d4ed8; }
/* 오늘: 노란 바탕에 짙은 글자 (파란 머리 · 흰 칸 어느 쪽과도 다른 색). 오늘을 보고 있으면 그 노란 칸에 흰 테두리 (보는 날의 흰색) */
html[data-skin^="fresh"] .day-strip-day.now, html[data-skin^="fresh"] a.day-strip-day.now:is(:hover, :focus-visible) { background: #fcd34d; color: #1e293b; }
html[data-skin^="fresh"] a.day-strip-day.now:not(.sel):is(:hover, :focus-visible) { background: #fde68a; }
html[data-skin^="fresh"] .day-strip-day.now.sel { box-shadow: inset 0 0 0 3px #ffffff; }
html[data-skin^="fresh"] .day-strip-day.off { opacity: .45; }
.hero-print-icon { display: none; }
@container (max-width: 639.98px) {
  .day-strip-top { grid-template-columns: auto 1fr auto; gap: .35rem; }
  .day-strip-end { gap: .35rem; }
  .day-strip-month { padding: 0 .7rem; }
  .day-strip-days { gap: .3rem; }
  html[data-skin^="fresh"] .today-hero .day-strip .btn.hero-action { width: 2.6rem; padding: 0; }
  .day-strip .hero-print-icon { display: block; width: 1.15rem; height: 1.15rem; }
  .day-strip .hero-print-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 767.98px) {
    .day-strip-top { grid-template-columns: auto 1fr auto; gap: .35rem; }
    .day-strip-end { gap: .35rem; }
    .day-strip-month { padding: 0 .7rem; }
    .day-strip-days { gap: .3rem; }
    html[data-skin^="fresh"] .today-hero .day-strip .btn.hero-action { width: 2.6rem; padding: 0; }
    .day-strip .hero-print-icon { display: block; width: 1.15rem; height: 1.15rem; }
    .day-strip .hero-print-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  }
}
html[data-skin^="fresh"] .today-hero h1, html[data-skin^="fresh"] .today-hero h2 { color: #ffffff; font-size: 1.05rem; font-weight: 700; }
html[data-skin^="fresh"] .today-hero .text-muted { color: rgba(255, 255, 255, .86) !important; }
html[data-skin^="fresh"] .today-hero .btn { --bs-btn-color: #ffffff; --bs-btn-bg: rgba(255, 255, 255, .22); --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #ffffff; --bs-btn-hover-bg: rgba(255, 255, 255, .34); --bs-btn-hover-border-color: transparent;
  width: 2.6rem; height: 2.6rem; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
html[data-skin^="fresh"] .today-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem;
  position: relative; z-index: 1; margin: -2.7rem .25rem 1.1rem; }
@media (max-width: 575.98px) { html[data-skin^="fresh"] .today-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-left: 0; margin-right: 0; } }
/* 숫자는 아이콘 오른쪽 한 줄, 그 아래에 이름·나눔·막대 (1.742, 2026-11-11 주인의 요청 "카드 높이를 줄여줘" — Today·Bookings·
   Housekeeping의 숫자 상자 모두. 그 전에는 아이콘 밑에 숫자) */
.today-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .6rem; align-items: center; align-content: start;
  min-width: 0; padding: .75rem .95rem; border-radius: var(--fresh-radius);
  background: var(--fresh-tile-bg); border: var(--fresh-card-border); box-shadow: var(--fresh-tile-shadow); color: var(--bs-body-color);
  text-decoration: none; }
a.today-tile:hover { color: var(--bs-body-color); transform: translateY(-1px); }
.today-tile .tile-icon { grid-column: 1; grid-row: 1; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; background: var(--tile-colour); color: #ffffff; }
.today-tile .tile-icon .menu-icon { width: 1.1rem; height: 1.1rem; margin: 0; }
.today-tile .tile-number { grid-column: 2; grid-row: 1; min-width: 0; font-size: 1.65rem; font-weight: 800; line-height: 1.1; }
.today-tile .tile-number small { font-size: .95rem; font-weight: 500; color: var(--bs-secondary-color); }
.today-tile .tile-label, .today-tile .tile-parts, .today-tile .tile-bar { grid-column: 1 / -1; }
.today-tile .tile-label { margin-top: .4rem; font-size: .8rem; color: var(--bs-secondary-color); }
/* 상자 안의 작은 나눔 (1.739, Housekeeping의 Service 1: Checkout 8 · Stayover 1) */
.today-tile .tile-parts { display: flex; flex-wrap: wrap; gap: 0 .3rem; font-size: .72rem; color: var(--bs-secondary-color); margin-top: .1rem; }
.today-tile .tile-parts > span { white-space: nowrap; }
.today-tile .tile-parts > span + span::before { content: "· "; }
.today-tile .tile-bar { align-self: stretch; height: 5px; border-radius: 3px; background: var(--bs-tertiary-bg); margin-top: .5rem; overflow: hidden; }
.today-tile .tile-bar > span { display: block; height: 100%; border-radius: 3px; background: var(--tile-colour); }
.tile-occupancy { --tile-colour: var(--fresh-occupancy); }
.tile-arrivals { --tile-colour: var(--fresh-arrive); }
.tile-departures { --tile-colour: var(--fresh-depart); }
.tile-staying { --tile-colour: var(--fresh-stay); }
/* 수가 정해지지 않은 상자 (1.736, Housekeeping의 Service 수): 넓으면 한 줄에, 좁으면 두세 개씩 */
html[data-skin^="fresh"] .today-tiles.today-tiles-auto { grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
.tile-new { --tile-colour: var(--fresh-arrive); }
.tile-updated { --tile-colour: var(--fresh-occupancy); }
.tile-cancelled { --tile-colour: var(--fresh-depart); }
.tile-moved { --tile-colour: #4285f4; }  /* Bookings의 Moved (1.903 Moved by NURISTAY, T63) — 넷째 타일 */
/* Bookings의 타일 넷 (1.906, T63 추가): New · Updated · Cancelled · Moved — 휴대폰에서도 한 줄에 넷 (이름이 짧음) */
html[data-skin^="fresh"] .today-tiles.changes-tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Rates & channels → Dashboard의 숫자 상자 다섯 (1.745, 2026-11-11 주인이 샘플 A를 고름): Today 상자와 같은 모양. 파란 칸에
   걸치지 않고 (그 아래에 탭 줄이 있어서), PC 한 줄에 다섯, 태블릿 셋, 휴대폰 둘 — 태블릿·휴대폰에서는 마지막 Channel bookings
   to check가 두 칸 (빈 자리 없이). 인쇄(스킨 없음)에서도 칸으로 */
.today-tiles.dash-tiles, html[data-skin^="fresh"] .today-tiles.dash-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem; margin: 0 0 1rem; }
/* 1.823 (주인의 결정 — 시안 ②): 상자 5개 → 4개 (취소 수는 새 예약 상자 안에) — PC·태블릿 한 줄에 넷, 휴대폰 2 × 2 */
@media (max-width: 575.98px) {
  .today-tiles.dash-tiles, html[data-skin^="fresh"] .today-tiles.dash-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; } }
/* 휴대폰의 숫자 상자를 작게 (T19 — 1.813 Housekeeping, 1.814 모든 화면, 2026-11-14 주인의 결정 "다른 페이지도 똑같이 작게"):
   아이콘 없이 작은 숫자·이름, 한 줄에 여러 개 — 첫 화면에 목록이 보이게. 한 줄에 Today 넷, Bookings·Housekeeping 셋, Inventory 셋
   (마지막 Channel bookings to check는 두 칸, 위의 규칙), Companies 둘 (금액이 길어서). 이 파일이 pms.css 뒤라서 여기에 */
@media (max-width: 575.98px) {
  html[data-skin^="fresh"] .today-tiles, html[data-skin^="fresh"] .today-tiles.today-tiles-auto { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
  html[data-skin^="fresh"] .today-tiles.dash-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
  html[data-skin^="fresh"] .today-tiles:not(.dash-tiles) { margin-bottom: .8rem; }
  html[data-skin^="fresh"] .today-tiles:has(> #rooms-tonight-tile) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html[data-skin^="fresh"] #companies-tiles.today-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-skin^="fresh"] .today-tile { column-gap: .3rem; padding: .45rem .6rem .5rem; border-radius: 14px; }
  html[data-skin^="fresh"] .today-tile .tile-icon { display: none; }
  html[data-skin^="fresh"] .today-tile .tile-number { grid-column: 1 / -1; font-size: 1.2rem; }
  html[data-skin^="fresh"] .today-tile .tile-number small { font-size: .78rem; }
  html[data-skin^="fresh"] .today-tile .tile-label { margin-top: 0; font-size: .7rem; line-height: 1.2; }
  html[data-skin^="fresh"] .today-tile .tile-parts { margin-top: 0; font-size: .62rem; }
  html[data-skin^="fresh"] .today-tile .tile-bar { margin-top: .3rem; height: 4px; }
}
.tile-check { --tile-colour: var(--fresh-check); }
.tile-check.tile-zero { --tile-colour: var(--fresh-quiet); }
.today-tile .tile-number.tile-alert { color: var(--fresh-danger); }
/* Companies의 대시보드 상자 (1.750, 2026-11-11 주인의 요청, companies.html): 누르면 목록을 거르는 버튼 — 링크 상자와 같은 모양 */
button.today-tile { width: 100%; text-align: start; font: inherit; cursor: pointer; }
button.today-tile:hover { transform: translateY(-1px); }
.tile-companies { --tile-colour: var(--fresh-occupancy); }
.tile-owing { --tile-colour: var(--fresh-check); }
/* 1.777 (주인이 고른 상자): To invoice = 할 일 (없으면 회색), This month = 이번 달 회사 매출 */
.tile-invoice { --tile-colour: var(--fresh-depart); }
.tile-invoice.tile-zero { --tile-colour: var(--fresh-quiet); }
.tile-month { --tile-colour: var(--fresh-arrive); }
.today-tile.tile-chosen { outline: 2px solid var(--tile-colour); outline-offset: -2px; }
.changes-back:empty { display: none; }
/* 오늘이면 → 없음 (앞날에는 바뀐 것이 없음): 자리만 흐리게 */
html[data-skin^="fresh"] .today-hero .btn.disabled { --bs-btn-disabled-color: #ffffff; --bs-btn-disabled-bg: rgba(255, 255, 255, .12);
  --bs-btn-disabled-border-color: transparent; --bs-btn-disabled-opacity: .45; }
/* 접는 목록: 둥근 카드, 왼쪽 삼각형 대신 오른쪽 꺾쇠 */
html[data-skin^="fresh"] details.today-fold { border: var(--fresh-card-border) !important; border-radius: var(--fresh-radius) !important;
  box-shadow: var(--fresh-shadow); overflow: hidden; margin-bottom: .8rem !important; }
html[data-skin^="fresh"] details.today-fold > summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem;
  padding: .8rem 1rem !important; }
html[data-skin^="fresh"] details.today-fold > summary::-webkit-details-marker { display: none; }
html[data-skin^="fresh"] details.today-fold > summary::marker { content: ""; }
/* 제목 줄: 제목(h2)이 남는 폭을 차지하고 꺾쇠는 오른쪽 끝. Booking emails 카드처럼 h2 없이 아이콘·글자·배지가 바로 오는 줄은 그대로
   (2026-10-25: 첫 칸을 늘렸더니 그 카드의 아이콘이 납작한 타원이 됐음) */
html[data-skin^="fresh"] details.today-fold > summary > h2 { flex: 1; min-width: 0; }
html[data-skin^="fresh"] details.today-fold > summary h2 { font-size: 1rem; font-weight: 700; }
html[data-skin^="fresh"] details.today-fold > summary::after { content: ""; width: .5rem; height: .5rem; flex-shrink: 0; margin: 0 .25rem 0 auto;
  border-right: 2px solid var(--bs-secondary-color); border-bottom: 2px solid var(--bs-secondary-color); transform: rotate(-45deg); }
html[data-skin^="fresh"] details.today-fold[open] > summary::after { transform: rotate(45deg); }
html[data-skin^="fresh"] details.today-fold .page-icon.sm { width: 2rem; height: 2rem; border-radius: 50%; margin-right: .45rem; }
html[data-skin^="fresh"] details.today-fold summary .badge.text-bg-secondary { background: var(--bs-tertiary-bg) !important;
  color: var(--bs-secondary-color) !important; }
/* 다른 화면으로 가는 한 줄 카드 (1.734: Booking emails to check → Bookings의 To check): 접는 카드와 같은 모양, 꺾쇠는 오른쪽 */
html[data-skin^="fresh"] a.today-link { border: var(--fresh-card-border) !important; border-radius: var(--fresh-radius) !important;
  box-shadow: var(--fresh-shadow); margin-bottom: .8rem !important; padding: .8rem 1rem !important; }
html[data-skin^="fresh"] a.today-link h2 { font-size: 1rem; font-weight: 700; }
html[data-skin^="fresh"] a.today-link .page-icon.sm { width: 2rem; height: 2rem; border-radius: 50%; margin-right: .45rem; }
html[data-skin^="fresh"] a.today-link::after { content: ""; width: .5rem; height: .5rem; flex-shrink: 0; margin: 0 .25rem 0 auto;
  border-right: 2px solid var(--bs-secondary-color); border-bottom: 2px solid var(--bs-secondary-color); transform: rotate(-45deg); }
html[data-skin^="fresh"] .list-group-item { padding-top: .8rem; padding-bottom: .8rem; }
html[data-skin^="fresh"] .room-badge { border: 0; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
/* 새 예약 단추: 오른쪽 아래에 떠 있음 (휴대폰은 동그라미 ＋, 넓은 화면은 글자도) */
.fresh-fab { position: fixed; right: 1rem; bottom: 1.4rem; z-index: 1031; display: flex; align-items: center; justify-content: center;
  gap: .4rem; width: 3.6rem; height: 3.6rem; border-radius: 50%; color: #ffffff; text-decoration: none; font-weight: 700;
  background: var(--fresh-fab, linear-gradient(135deg, #06b6d4, #3b82f6)); box-shadow: var(--fresh-fab-shadow, 0 10px 24px rgba(37, 99, 235, .45)); }
.fresh-fab:hover { color: #ffffff; filter: brightness(1.06); }
.fresh-fab .menu-icon { width: 1.6rem; height: 1.6rem; margin: 0; stroke-width: 2.5; }
.fresh-fab span { display: none; }
@media (min-width: 768px) {
  .fresh-fab { width: auto; height: 3.2rem; padding: 0 1.4rem 0 1.1rem; border-radius: 999px; right: 1.6rem; bottom: 1.6rem; }
  .fresh-fab span { display: inline; }
}
/* Bookings 화면의 것 (1.917, 주인의 결정 T72 다 ②): 휴대폰에서는 조금 작게 — 목록의 오른쪽 아래를 덜 가리게 (Today의 것은 그대로) */
@media (max-width: 575.98px) { .fresh-fab.fresh-fab-small { width: 2.9rem; height: 2.9rem; } }
html.in-panel .fresh-fab { display: none !important; }
/* 윗줄 메뉴의 Booking emails: 1.925 (2026-11-17 주인의 말 "Booking Emails 아이콘만 표시하지말고 데스크탑 버전에서 Email 아이콘 오른쪽에
   글자로")부터 PC에서도 아이콘 옆에 이름 — 1280px부터 (그보다 좁은 PC 창은 메뉴가 한 줄에 들어가지 않아 아이콘과 수만, 이름은 화면 읽기
   프로그램과 마우스를 올렸을 때). 그 전 1.917~1.924 (주인의 결정 T72 가 ①)에는 PC에서 늘 아이콘과 수만. More 판 (992px 아래)에서는
   다른 타일처럼 이름이 보임 */
@media (min-width: 992px) and (max-width: 1279.98px) {
  #menu-booking-emails .menu-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  #menu-booking-emails .menu-icon { margin-right: 0; }
  #menu-booking-emails { height: 100%; }  /* 글자가 없어 줄이 낮아지지 않게: 옆의 Inbox와 같은 높이 */
}
/* 끝까지 내리면 맨 아래 줄(Today의 Staying ›)이 떠 있는 단추 위로 올라오게 단추 높이만큼 빈자리 (2026-10-26 화면 점검: 단추가 그 줄을
   덮었음). main의 py-3이 !important라 여기도 */
html[data-skin^="fresh"]:not(.in-panel) main:has(.fresh-fab) { padding-bottom: 5.5rem !important; }

/* --- 예약 화면: 손님 카드, 빠른 버튼 (booking_detail.html), 온라인 체크인 링크 --- */
.guest-card { display: flex; gap: 1rem; align-items: flex-start; margin: .35rem 0 .9rem; padding: 1.1rem 1.2rem; border-radius: var(--fresh-radius);
  background: var(--fresh-hero); color: #ffffff; box-shadow: 0 10px 26px rgba(37, 99, 235, .28); }
html[data-skin="fresh-dark"] .guest-card { box-shadow: 0 10px 28px rgba(0, 0, 0, .5); }
.guest-card .guest-main { min-width: 0; flex: 1; }
.guest-card .guest-number { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .85; }
.guest-card .guest-name { font-size: 1.45rem; font-weight: 800; line-height: 1.15; margin: .1rem 0 0; overflow-wrap: anywhere; }
.guest-card .guest-room { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .88rem; opacity: .92; margin-top: .25rem; }
.guest-card .guest-room .menu-icon { width: 1rem; height: 1rem; margin: 0; }
.guest-card .guest-status { font-size: .75rem; font-weight: 700; padding: .12rem .6rem; border-radius: 999px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
html[data-skin="fresh"] .guest-card .guest-status { color: #212529; }
.guest-card .guest-dates { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .7rem 1.1rem; margin-top: .8rem; padding-top: .75rem;
  border-top: 1px solid rgba(255, 255, 255, .28); }
.guest-card .guest-dates span { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .82; }
.guest-card .guest-dates b { font-size: .95rem; font-weight: 600; white-space: nowrap; }
.guest-card .guest-arrow { opacity: .8; }
.guest-card .guest-arrow .menu-icon { width: 1rem; height: 1rem; margin: 0; }
@media (max-width: 575.98px) {
  .guest-card { padding: 1rem; gap: .85rem; }
  .guest-card .guest-name { font-size: 1.3rem; }
}
/* 손님 카드 (T416, bookings/guests.py): 이름 옆 표 (⚠ Caution · ⛔ Do not book · ★ VIP · 4th stay)와 그 밑 "Guest card – …" 한 줄.
   표는 Guest 상자·손님 카드 화면에서도 씀 */
.guest-tag { display: inline-block; font-size: .72rem; font-weight: 700; line-height: 1.3; padding: .16rem .55rem; border-radius: 999px;
  vertical-align: middle; margin-left: .35rem; letter-spacing: .02em; white-space: nowrap; }
.guest-tag-caution { background: #dc3545; color: #ffffff; }
.guest-tag-vip { background: #ffc107; color: #3b2a00; }
.guest-tag-stays { background: rgba(255, 255, 255, .92); color: #0b5ed7; }
.guest-card .guest-name a.guest-file-name { color: inherit; text-decoration: none; border-bottom: 2px dotted rgba(255, 255, 255, .7); }
.guest-card .guest-file-link { display: inline-block; margin-top: .15rem; font-size: .85rem; font-weight: 600; color: #ffffff; opacity: .95;
  text-decoration: none; }
.guest-card .guest-file-link:hover { text-decoration: underline; }
/* 손님 카드 화면의 숫자 칸·메모 (guest_card.html) */
.guest-stat { border: 1px solid var(--bs-border-color); border-radius: .6rem; padding: .45rem .6rem; height: 100%; }
.guest-stat span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bs-secondary-color);
  font-weight: 700; }
.guest-stat b { font-size: 1.05rem; }
.guest-note { border-left: 3px solid var(--bs-border-color); padding: .15rem .6rem; margin-bottom: .7rem; }
/* 들어온 예약의 줄: 표 칸의 바탕은 칸(td)마다라서 Bootstrap의 상태 바탕 변수로 */
.guest-stays tr.guest-stay-this > * { --bs-table-bg-state: rgba(13, 110, 253, .1); }
.guest-stays tr.guest-stay-this a { font-weight: 700; }
.guest-stays tr.guest-stay-cancelled td.guest-stay-struck { color: var(--bs-secondary-color); text-decoration: line-through; }
/* 빠른 버튼: Documents·Email 줄과 Edit·Book again·Cancel을 한 카드의 아이콘 칸으로. 줄(#document-actions, #email-actions)은
   display: contents로 풀어서 그 안의 버튼이 카드의 칸이 됨. "Documents:"·"Email:" 글자는 숨김 */
html[data-skin^="fresh"] .quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.4rem, 1fr)); gap: .35rem;
  margin-bottom: .9rem; padding: .85rem 1rem 1rem; border-radius: var(--fresh-radius); background: var(--bs-body-bg);
  border: var(--fresh-card-border); box-shadow: var(--fresh-shadow); }
@media (max-width: 575.98px) { html[data-skin^="fresh"] .quick-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; } }
/* 휴대폰 (T29 카, 1.852, 주인의 결정 T25 보충 카 ①): Quick actions 한 줄에 5개, 짧은 이름 (Deposit form, Confirmation, Email, Text, Cancel) —
   그 전에는 4개씩 3줄에 Cancel 혼자. 손님 카드의 날짜는 연도 없이 한 줄 (booking_detail.html) */
.quick-actions .qa-short { display: none; }
@media (max-width: 575.98px) {
  html[data-skin^="fresh"] .quick-actions { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .15rem; padding-inline: .6rem; }
  html[data-skin^="fresh"] .quick-actions .btn { font-size: .72rem; padding-inline: 0; }
  html[data-skin^="fresh"] .quick-actions .qa-long { display: none; }
  html[data-skin^="fresh"] .quick-actions .qa-short { display: inline; }
  .guest-card .guest-dates { flex-wrap: nowrap; gap: .6rem .8rem; }
}
html[data-skin^="fresh"] .quick-actions > .booking-actions { display: contents !important; }
html[data-skin^="fresh"] .quick-actions > .booking-actions > span { display: none; }
html[data-skin^="fresh"] .quick-actions .quick-title { grid-column: 1 / -1; margin: 0 0 .4rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--bs-secondary-color); }
html[data-skin^="fresh"] .quick-actions form { display: contents; }
html[data-skin^="fresh"] .quick-actions .btn { display: flex; flex-direction: column; align-items: center; gap: .35rem; width: auto;
  padding: .45rem .15rem; border: 0; background: transparent; color: var(--bs-body-color); font-size: .74rem; font-weight: 500;
  line-height: 1.15; white-space: normal; text-align: center; box-shadow: none; }
html[data-skin^="fresh"] .quick-actions .btn:is(:hover, :focus-visible, :active) { background: var(--bs-tertiary-bg); color: var(--bs-body-color); }
html[data-skin^="fresh"] .quick-actions:not(:has(.btn)) { display: none; }
/* 위쪽 줄: 제목과 Edit·Book again·Cancel booking은 손님 카드·빠른 버튼으로 (booking_detail.html). Back은 왼쪽, 결제 상태·체크인은 오른쪽.
   !important: 체크인한 손님의 Cancel booking 폼(#cancel-stayed)은 Bootstrap의 d-inline(!important)이라 그냥은 숨지 않아 두 번
   보였음 (2026-10-26 화면 점검) */
html[data-skin^="fresh"] #booking-top > :is(h1, a.btn-outline-primary, a.btn-outline-danger, #cancel-stayed) { display: none !important; }
html[data-skin^="fresh"] #booking-top > #back-button { margin-right: auto; }
html[data-skin^="fresh"] .qa-icon { display: flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem;
  border-radius: 50%; color: #ffffff; background: var(--qa-colour, var(--fresh-stay));
  box-shadow: 0 4px 10px color-mix(in srgb, var(--qa-colour, var(--fresh-stay)) 35%, transparent); }
html[data-skin^="fresh"] .qa-icon .menu-icon { width: 1.2rem; height: 1.2rem; margin: 0; }
/* 서명 표시 (1.601, 2026-10-31, 주인의 결정): 체크인 양식·보증금 양식 아이콘의 오른쪽 위 — 초록 ✓ = 서명함, 주황 점 = 체크인했는데
   체크인 양식 서명이 없음 (예약 화면의 "✓ … signed" 줄 대신). 테두리는 카드 바탕색이라 아이콘에서 떨어져 보임 */
html[data-skin^="fresh"] .qa-icon { position: relative; }
.qa-badge { position: absolute; top: -.2rem; right: -.3rem; display: flex; align-items: center; justify-content: center;
  width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 2px solid var(--bs-body-bg); color: #ffffff; font-size: .66rem;
  font-weight: 800; line-height: 1; }
.qa-badge-done { background: #16a34a; }
.qa-badge-todo { top: -.1rem; right: -.15rem; width: .85rem; height: .85rem; background: #f97316; }
/* 다음 할 일 하나 (1.670, 주인의 선택 — UX 리뷰 R-13c, bookings/next_step.py): 파란 아이콘에 파란 테두리, 이름은 굵은 파랑 */
html[data-skin^="fresh"] .quick-actions .btn.qa-next { --qa-colour: #2563eb; color: #2563eb; font-weight: 700; }
html[data-skin^="fresh"][data-bs-theme="dark"] .quick-actions .btn.qa-next { color: #60a5fa; }
html[data-skin^="fresh"] .qa-next .qa-icon { box-shadow: 0 0 0 3px var(--bs-body-bg), 0 0 0 5px #2563eb; }
.qa-edit { --qa-colour: #2563eb; }
.qa-steps { --qa-colour: #0d9488; }  /* Auto steps (T200) */
/* Auto steps의 창 (T200): 고를 수 없는 줄은 회색, ! = 켜는 방법 (주인의 덧붙임), 금액 칸 */
.auto-step-off { background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); }
.auto-step-off label { color: var(--bs-secondary-color); }
.auto-step-help { display: inline-flex; align-items: center; justify-content: center; width: 1.25rem; height: 1.25rem; margin-left: .25rem;
  padding: 0; border: 0; border-radius: 50%; background: #f59e0b; color: #fff; font-size: .8rem; font-weight: 800; line-height: 1;
  vertical-align: text-bottom; }
.auto-step-help-text { color: var(--bs-body-color); }
.auto-step-amount { width: 7.5rem; align-self: flex-start; }
.qa-document { --qa-colour: var(--fresh-stay); }
.qa-email { --qa-colour: var(--fresh-occupancy); }
.qa-danger { --qa-colour: var(--fresh-danger); }
html[data-skin^="fresh"] #check-in-documents { padding: .8rem 1rem; border-radius: var(--fresh-radius); background: var(--bs-body-bg);
  border: var(--fresh-card-border); box-shadow: var(--fresh-shadow); margin-bottom: .9rem !important; }
html[data-skin^="fresh"] #check-in-documents > span.small:first-child { width: 100%; font-size: .72rem !important; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; }
/* 1.862 (2026-11-15, 주인이 고른 시안 test-results/2026-11-15-review/mock/booking): 손님 카드에 Total·Paid·Balance (PC는 날짜 줄 오른쪽,
   휴대폰은 날짜 아래 한 줄, 받을 돈이 남았으면 잔액을 흰 바탕에 빨강), 휴대폰은 인원을 방 이름 아래 한 줄 (날짜 줄에서는 화면 밖으로
   나갔음). 그룹 화면(group_detail.html)도 guest-card를 쓰므로 새 칸만 (guest-money, guest-people, guest-keep) */
.guest-card .guest-keep { font-size: .72rem; font-weight: 700; padding: .1rem .55rem; border-radius: 999px; background: rgba(255, 255, 255, .22); }
/* T174 (2.93): 예약 화면의 Keep this room 켜고 끄기 — 파란 머리 칸 안에서 흰 글자, (i)는 수정 화면과 같은 단추 */
.guest-card .guest-keep-form { display: flex; align-items: center; gap: .35rem; margin-top: .4rem; font-size: .9rem; font-weight: 600; }
.guest-card .guest-keep-form .form-check-input { cursor: pointer; }
.guest-card .guest-keep-info { font-size: .8rem; margin-top: .25rem; opacity: .95; }
.guest-card .guest-keep-form .info-button { color: #fff; border-color: rgba(255, 255, 255, .85); }
/* T196 (2.99, 주인의 지시): 인원은 Nights 오른쪽 칸 (#guest-count) — 따로 있던 휴대폰 줄(.guest-people)은 없앰. 괄호 안의
   어른·아이는 큰 숫자 옆의 보통 글자 (날짜 줄 span의 작은 대문자 모양을 되돌림), 휴대폰에서는 숨김 (d-none d-sm-inline) */
.guest-card .guest-dates b .guest-mix { font-size: .8rem; font-weight: 500; letter-spacing: normal; text-transform: none; opacity: .9; }
.guest-card .guest-money { display: flex; gap: 1.1rem; margin-left: auto; }
.guest-card .guest-money b { font-size: 1.05rem; font-weight: 700; }
.guest-card .guest-balance.guest-owed { display: inline-block; padding: 0 .5rem; border-radius: 10px; background: #ffffff; color: #b91c1c; }
@media (max-width: 575.98px) {
  .guest-card .guest-dates { flex-wrap: wrap; }
  .guest-card .guest-money { flex-basis: 100%; justify-content: space-between; margin: .05rem 0 0; padding-top: .6rem;
    border-top: 1px solid rgba(255, 255, 255, .28); }
}
/* Quick actions 카드 맨 아래의 온라인 체크인 링크 한 줄 (1.862): 위 .quick-actions .btn(아이콘 칸) 모양을 보통 버튼으로 되돌림 */
html[data-skin^="fresh"] .quick-actions .qa-link { grid-column: 1 / -1; margin-top: .45rem; padding-top: .6rem; border-top: 1px solid var(--bs-border-color-translucent); }
.qa-link-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.qa-link-name { font-size: .88rem; font-weight: 700; }
.qa-link .info-button { margin-left: 0; }
.qa-link-buttons { display: flex; flex-wrap: wrap; gap: .35rem; margin-left: auto; }
html[data-skin^="fresh"] .quick-actions .qa-link .btn { display: inline-block; padding: .2rem .75rem; border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
  background: var(--bs-btn-bg); color: var(--bs-btn-color); font-size: .8rem; font-weight: 500; line-height: 1.4; white-space: nowrap; }
html[data-skin^="fresh"] .quick-actions .qa-link .btn:is(:hover, :focus-visible, :active) { background: var(--bs-btn-hover-bg); color: var(--bs-btn-hover-color);
  border-color: var(--bs-btn-hover-border-color); }
html[data-skin^="fresh"] .quick-actions .qa-link .btn-check:checked + .btn { background: var(--bs-btn-active-bg); color: var(--bs-btn-active-color);
  border-color: var(--bs-btn-active-border-color); }
.qa-link-buttons .btn { border-radius: 999px; }
html[data-skin^="fresh"] .quick-actions .qa-link .info-text { padding-top: .35rem; }
@media (max-width: 575.98px) {
  html[data-skin^="fresh"] .quick-actions .qa-link .btn { padding-inline: .6rem; font-size: .78rem; }
  .qa-link-buttons { gap: .25rem; }
}
/* 접는 카드 (Extra charges·Files·History)는 한 카드처럼 붙임 (시안: 줄마다 오른쪽에 요약) */
html[data-skin^="fresh"] .booking-fold + .booking-fold { margin-top: 0 !important; border-top: 1px solid var(--bs-border-color-translucent);
  border-top-left-radius: 0; border-top-right-radius: 0; }
html[data-skin^="fresh"] .booking-fold:has(+ .booking-fold) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
html[data-skin^="fresh"] .booking-fold > summary.card-header { border-radius: 0; }
html[data-skin^="fresh"] .booking-fold:not(:has(+ .booking-fold)):not([open]) > summary.card-header { border-bottom-left-radius: var(--bs-card-inner-border-radius);
  border-bottom-right-radius: var(--bs-card-inner-border-radius); }

/* --- 달력: 옅은 선, 둥근 예약 칸과 그림자 (체크인·체크아웃할 손님의 테두리는 그대로) --- */
/* 달력의 ← · Today · 달 이름 · → 묶음의 모양은 Rates와 함께 쓰는 date-nav (1.922, pms.css). 그 전 (1.912~1.921): 여기에 따로 */
/* 달 이름 줄의 바탕은 Rates처럼 옅은 회색 (주인의 결정 — 날짜 줄의 fresh-cal-head가 아니라) */
html[data-skin^="fresh"] .calendar tr.calendar-months th { background: var(--bs-tertiary-bg); }
html[data-skin^="fresh"] .calendar th, html[data-skin^="fresh"] .calendar td { border-color: var(--fresh-cal-line); }
html[data-skin^="fresh"] .calendar thead th { background: var(--fresh-cal-head); }
/* 공휴일 (1.941, 2026-11-18, 주인의 요청 "Inventory처럼" — 시안 test-results/2026-11-18-holidays/holiday-mock-2): 날짜 칸에 연한 분홍
   바탕 + 빨간 글자 (토·일 공휴일은 연한 주황 그대로 — pms.css의 weekend), 요일·날짜는 칸의 가운데 높이. 그 전: 빨간 글자만, 위쪽 */
html[data-skin^="fresh"] .calendar thead th.holiday:not(.weekend):not(.today) { background: var(--pms-holiday-bg); }
html[data-skin^="fresh"] .calendar thead th[data-date] { vertical-align: middle; }
/* 1.941 (같은 날 주인의 요청 "토·일처럼 각각 바탕"): 공휴일은 그 아래 칸까지 연한 분홍 (토·일 공휴일은 연한 주황 — 날짜 칸과 같게) */
html[data-skin^="fresh"] .calendar td.day.holiday:not(.weekend),
html[data-skin^="fresh"] .calendar tfoot td.holiday:not(.weekend):not(.today) { background-color: var(--pms-holiday-bg); }
html[data-skin^="fresh"] .calendar .room { background: var(--fresh-cal-head); }
html[data-skin^="fresh"] .calendar td.day { background-color: var(--fresh-cal-cell); }
html[data-skin^="fresh"] .calendar td.day.weekend, html[data-skin^="fresh"] .calendar td.weekend { background-color: var(--pms-weekend); }
html[data-skin^="fresh"] .calendar th.today { background: var(--fresh-today); color: var(--fresh-today-text); }
html[data-skin^="fresh"] .calendar td.day > .booking { border-radius: 10px; box-shadow: var(--fresh-booking-shadow); }
html[data-skin^="fresh"] .calendar td.day > .booking.due-in { box-shadow: inset 0 0 0 2px var(--fresh-due-in), var(--fresh-booking-shadow); }
html[data-skin^="fresh"] .calendar td.day > .booking.due-out { box-shadow: inset 0 0 0 2px var(--fresh-due-out), var(--fresh-booking-shadow); }
html[data-skin^="fresh"] .calendar .booking-label { font-weight: 700; }  /* 글자·체크 칸은 두 화면 모두 밝은 화면처럼 (위 예약 색) */
html[data-skin^="fresh"] .calendar .checkin-toggle { border-radius: 50%; }

/* --- 아래 메뉴 바 (base.html): 위쪽 메뉴가 ☰ 안에 접히는 폭에서만, 이때 ☰ 단추 대신 More --- */
.tab-bar { display: none; }
@media (max-width: 991.98px) {
  html[data-skin^="fresh"]:not(.in-panel) .tab-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; justify-content: space-around;
    padding: .4rem .25rem calc(.5rem + env(safe-area-inset-bottom)); background: var(--fresh-tab-bg);
    border-top: 1px solid var(--fresh-tab-line); box-shadow: 0 -4px 16px rgba(15, 23, 42, .06); backdrop-filter: blur(12px); }
  html[data-skin^="fresh"]:not(.in-panel) body { padding-bottom: calc(4.3rem + env(safe-area-inset-bottom)); }
  html[data-skin^="fresh"]:not(.in-panel) #app-header .navbar-toggler { display: none; }
  html[data-skin^="fresh"]:not(.in-panel) .fresh-fab { bottom: calc(5.1rem + env(safe-area-inset-bottom)); }
  html[data-skin^="fresh"]:not(.in-panel) .busy-note { bottom: calc(5.1rem + env(safe-area-inset-bottom)); }
  /* 알림 창 (check_in_alerts.js)도 메뉴 바 위로 (2026-11-03 코드 리뷰: 알림이 있는 동안 Calendar·Bookings·More를 누를 수
     없었음). 아래쪽 자리는 그대로 (주인의 결정 2026-10-24). Bootstrap의 bottom-0이 !important라서 */
  html[data-skin^="fresh"]:not(.in-panel) #check-in-alerts {
    bottom: calc(4.3rem + env(safe-area-inset-bottom)) !important;
    max-height: calc(100dvh - var(--pms-header-height, 0px) - 4.3rem - env(safe-area-inset-bottom)); }
}
.tab-bar > a, .tab-bar > button { flex: 1 1 0; min-width: max-content; display: flex; flex-direction: column; align-items: center; gap: .15rem;
  padding: .2rem 0; border: 0; background: none; color: var(--fresh-tab-text); font-size: .75rem; font-weight: 600; text-decoration: none;
  white-space: nowrap; }
.tab-bar .menu-icon { width: 1.45rem; height: 1.45rem; margin: 0; box-sizing: content-box; padding: .15rem 1rem; border-radius: 999px; }
.tab-bar > .active { color: var(--fresh-tab-on); }
/* 아래 메뉴 바의 숫자 (1.903, T63 — Bookings의 Moved by NURISTAY): 아이콘의 오른쪽 위 */
.tab-bar > a { position: relative; }
.tab-bar .tab-badge { position: absolute; top: .05rem; left: calc(50% + .45rem); font-size: .68rem; padding: .2em .5em; }
.tab-bar > .active .menu-icon { background: var(--fresh-tab-on-bg); }
@media print { .tab-bar, .fresh-fab { display: none !important; } }

/* --- 제목 + 탭 한 줄 (1.818, 2026-11-14, 주인의 결정 "A + C", templates/_section_bar.html — 시안: test-results/2026-11-14-tidy):
   위쪽 메뉴 바로 아래, Inventory·Payments의 모든 화면에 같은 모양. PC: 제목 + 밑줄 탭 + 오른쪽 끝 채널 상태 (Rates).
   휴대폰·태블릿: 제목 없이 옆으로 미는 밑줄 탭 (1.838부터, 그 전에는 알약 — 지금 탭이 화면 안에 오게 하는 것은 _section_bar.html의 스크립트) --- */
.section-bar { display: flex; align-items: center; column-gap: 1.25rem; min-height: 2.75rem; padding: 0 1rem;
  background: var(--skin-surface, var(--bs-body-bg));
  /* 아래 선 = 이 줄과 화면 안 탭 사이의 구분선 (T28 다, 1.842: 1px 연한 선은 거의 안 보였음 — 2px, 글자색의 45%) */
  border-bottom: 2px solid color-mix(in srgb, var(--bs-body-color) 45%, transparent); }
.section-tabs { display: flex; align-self: stretch; gap: .1rem; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.section-tabs::-webkit-scrollbar { display: none; }
.section-tab { display: flex; align-items: center; padding: .2rem .8rem 0; border-bottom: 3px solid transparent; white-space: nowrap;
  color: var(--skin-muted, var(--bs-secondary-color)); font-size: .9rem; text-decoration: none; }
.section-tab:hover { color: var(--skin-text, var(--bs-body-color)); }
.section-tab.active { color: var(--skin-primary, var(--bs-primary)); border-bottom-color: currentColor; font-weight: 600; }
.section-state { margin-left: auto; }
html.in-panel .section-bar { display: none; }
@media print { .section-bar { display: none !important; } }
/* 휴대폰·태블릿 (T28 다, 1.838, 주인의 결정 T25 2차 다 ① + 덧붙임 "반대로"): 이 위쪽 줄은 밑줄 탭 — 화면 안의 두 번째 줄
   (Connections… / Getting paid…)이 알약이라 어느 것이 위 메뉴인지 헷갈리지 않게. 두 줄 사이는 이 줄의 아래 선 (구분선). 그 전
   (1.818~1.837)에는 이 줄도 알약 */
@media (max-width: 991.98px) {
  .section-bar { flex-wrap: wrap; row-gap: .35rem; padding: 0 .75rem; }
  .section-tabs { flex: 1 1 100%; gap: .25rem; margin: 0 -.75rem; padding: 0 .75rem; }
  .section-tab { padding: .7rem .75rem .55rem; font-size: .95rem; }
  /* 1.855 (T29 하, 주인의 결정 T25 보충 하 ①): Inventory 탭 5개가 412·360px에 다 들어오게 (그 전에는 첫 탭이 "rview"로 잘려 보였음).
     Team 탭(7개)은 그대로 옆으로 밀기 — 오른쪽이 흐려져 더 있음을 알림 */
  #section-tabs { justify-content: space-between; gap: 0; }
  #section-tabs .section-tab { padding-inline: .45rem; font-size: .9rem; }
  #team-tabs { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .section-state { margin-left: 0; flex-basis: 100%; padding-bottom: .5rem; }
}
/* 1.868 (주인이 고른 Rates 시안): 휴대폰은 Rates의 채널 아이콘을 표 아래 (rates.html의 #rates-state-phone) — 위쪽 줄에서는 숨김.
   1.935: Channel Manager 상태 표시바(.cm-state)는 휴대폰에서도 위쪽 줄에 늘 보임 (주인의 요청 "항상") */
@media (max-width: 575.98px) { .section-state .selling-inline { display: none !important; } }  /* d-inline-flex가 !important라서 */
/* Channex 속성의 정보 확인 (1.936, T106 — bookings/_channex_property_check.html): ✓ 초록 · ✗ 빨강 (꼭 필요 — 모두) */
.cm-check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: .15rem 1.25rem; }
.cm-check-item { display: flex; gap: .45rem; align-items: baseline; }
.cm-check-mark { width: 1rem; flex: 0 0 auto; font-weight: 700; text-align: center; }
.cm-check-item.ok .cm-check-mark { color: #15803d; }
.cm-check-item.needed .cm-check-mark { color: #b91c1c; }
/* Channel Manager 상태 표시바 (1.935, 2026-11-18, 주인의 요청: On 초록 · Off 회색 · Issue 빨강 — bookings/_cm_state.html) */
.section-state { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.cm-state { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .7rem; border: 1px solid; border-radius: 999px;
  font-size: .8rem; font-weight: 600; line-height: 1.4; white-space: nowrap; text-decoration: none; }
a.cm-state:hover { filter: brightness(.96); }
.cm-dot { width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.cm-on { color: #15803d; background: #dcfce7; border-color: #86efac; }
.cm-off { color: #475569; background: #f1f5f9; border-color: #cbd5e1; }
.cm-issue { color: #b91c1c; background: #fee2e2; border-color: #fca5a5; }
html[data-bs-theme="dark"] .cm-on { color: #4ade80; background: rgba(22, 163, 74, .16); border-color: rgba(74, 222, 128, .45); }
html[data-bs-theme="dark"] .cm-off { color: #cbd5e1; background: rgba(148, 163, 184, .14); border-color: rgba(148, 163, 184, .4); }
html[data-bs-theme="dark"] .cm-issue { color: #f87171; background: rgba(220, 38, 38, .16); border-color: rgba(248, 113, 113, .45); }
/* 1.855 (T29 하): 작은 휴대폰(400px 아래)은 Inventory 탭 글자·여백을 조금 더 작게 */
@media (max-width: 399.98px) {
  #section-tabs .section-tab { padding-inline: .3rem; font-size: .84rem; }
}

/* --- More 판 (1.818, 주인의 결정 "A + C"): 휴대폰·태블릿에서 아래 메뉴 바의 More를 누르면 위쪽 메뉴(#main-menu — PC와 같은 항목·
   같은 권한, base.html에 한 번만 있음)가 화면 아래에서 올라오는 판으로, 항목은 묶음 제목(.more-head: Selling · Money · Property ·
   자기 이름) 아래 큰 단추로 — 아이콘 색은 묶음마다 (1.819, --more-tint: 파랑 · 초록 · 주황 · 보라). 자리(--more-order)는 여기서 id·아이콘으로 정함 — 정하지 않은 항목은 자기 이름 묶음 (42)에 base.html의
   순서대로 (base.html의 글자는 그대로: 시험들이 그 글자를 봄). 아래 메뉴 바에 있는 것(Today·Calendar·Bookings, 1.858부터 넷째 자리 Rates —
   Rates를 볼 수 없으면 Housekeeping: base.html의 in-tab-bar)은 판에 없음, Inventory는
   이름 대신 그 화면들 (#rates-menu-list). 그 전 (1.512~1.817): 위쪽 줄이 아래로 길게 펼쳐지는 목록 + Inventory 옆의 두 번째 More --- */
.more-head, .more-backdrop, .more-sub, .theme-seg { display: none; }
@media (max-width: 991.98px) {
  html[data-skin^="fresh"]:not(.in-panel) #app-header:has(#main-menu.show, #main-menu.collapsing) { z-index: 1032; }
  html[data-skin^="fresh"]:not(.in-panel) #app-header:has(#main-menu.show, #main-menu.collapsing) .more-backdrop {
    display: block; position: fixed; inset: 0 0 calc(4.3rem + env(safe-area-inset-bottom)) 0; background: rgba(15, 23, 42, .45); }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu {
    position: fixed; left: 0; right: 0; bottom: calc(4.3rem + env(safe-area-inset-bottom));
    max-height: calc(100dvh - 7.5rem - env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain;
    padding: .4rem .9rem 1rem; background: var(--skin-bg); border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, .25); grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr)); gap: .5rem;
    align-content: start; }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu.show, html[data-skin^="fresh"]:not(.in-panel) #main-menu.collapsing { display: grid; }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu.collapsing { overflow: hidden; }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu :is(.navbar-nav, .navbar-nav > li:not(.more-head), .more-sub, .more-sub > li, .dropdown, .dropdown-menu) {
    display: contents !important; }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu :is(.more-parent > .nav-link, #account-menu, .dropdown-divider),
  html[data-skin^="fresh"]:not(.in-panel) #main-menu .navbar-nav > li:has(> a > svg > use:is([href="#icon-today"], [href="#icon-calendar"], [href="#icon-bookings"])),
  html[data-skin^="fresh"]:not(.in-panel) #main-menu .navbar-nav li.in-tab-bar {
    display: none !important; }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu :is(#menu-rates, #rates-menu-list a) { --more-order: 11; --more-tint: var(--skin-primary); }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu #menu-companies { --more-order: 22; --more-tint: var(--fresh-arrive); }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu .dropdown-menu > a:has(use[href="#icon-stats"]) { --more-order: 23; --more-tint: var(--fresh-arrive); }
  /* 1.858 (주인의 요청 T35): 아래 바의 넷째 자리가 Rates일 때 Housekeeping은 Property 묶음 맨 앞 — Housekeeping · Inbox · Team · Settings */
  html[data-skin^="fresh"]:not(.in-panel) #main-menu #menu-housekeeping { --more-order: 31; --more-tint: var(--fresh-depart); }
  /* Booking emails (1.917, 주인의 결정 T72 나 ①): Inbox와 같은 자리 번호 — base.html에서 Inbox 바로 앞이라 그 앞 타일 */
  html[data-skin^="fresh"]:not(.in-panel) #main-menu #menu-booking-emails { --more-order: 32; --more-tint: var(--fresh-depart); }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu #menu-inbox { --more-order: 32; --more-tint: var(--fresh-depart); }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu .dropdown-menu > a:has(use[href="#icon-property"]) { --more-order: 34; --more-tint: var(--fresh-depart); }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu #menu-team { --more-order: 33; --more-tint: var(--fresh-depart); }  /* 1.820: Inbox · Team · Settings */
  html[data-skin^="fresh"]:not(.in-panel) #main-menu #menu-document-texts { --more-order: 35; --more-tint: var(--fresh-depart); }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu .dropdown-menu > a:has(use[href="#icon-admin"]) { --more-order: 36; --more-tint: var(--fresh-depart); }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu #menu-board { --more-order: 37; --more-tint: var(--fresh-depart); }  /* 2.78 (T122): Admin 다음 */
  html[data-skin^="fresh"]:not(.in-panel) #main-menu a.dropdown-item#menu-board.disabled { opacity: .55; }  /* 이 서버에 비밀이 없음: 눌리지 않음 */
  html[data-skin^="fresh"]:not(.in-panel) #main-menu .more-head { display: block; grid-column: 1 / -1; order: var(--more-order);
    margin: .6rem .25rem 0; color: var(--skin-muted); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu :is(a.nav-link, a.dropdown-item):not(#menu-version) {
    order: var(--more-order, 42); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    gap: .35rem; min-width: 0; padding: .65rem .15rem .55rem; border-radius: 1rem; background: var(--skin-surface); color: var(--skin-text);
    font-size: .75rem; font-weight: 600; line-height: 1.15; text-align: center; white-space: normal; text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06); }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu :is(a.nav-link, a.dropdown-item):not(#menu-version) > .menu-icon {
    box-sizing: content-box; width: 1.25rem; height: 1.25rem; margin: 0; padding: .55rem; border-radius: .8rem;
    background: color-mix(in srgb, var(--more-tint, var(--fresh-occupancy)) 15%, transparent); color: var(--more-tint, var(--fresh-occupancy)); }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu :is(a.nav-link, a.dropdown-item).active:not(#menu-version) {
    box-shadow: inset 0 0 0 2px var(--skin-primary); color: var(--skin-primary); }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu :is(a.nav-link, a.dropdown-item):not(#menu-version) > .badge {
    position: absolute; top: .3rem; right: .3rem; font-size: .62rem; }
  /* My work (1.888, 주인의 결정 T57 — More 판은 주인의 말 "버튼 말고 제목으로, 그 아래에 My 들"): PC 메뉴에서는 접는 한 줄이지만
     여기서는 묶음 제목 (.more-head와 같은 모양, 누르는 것이 아님)이고 그 아래에 My … 타일이 늘 보임 — 이름 묶음 (Help · Support …) 다음.
     서명할 문서 수는 My documents 타일에 */
  html[data-skin^="fresh"]:not(.in-panel) #main-menu .my-work-items { display: contents; }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu .my-work-items > a.dropdown-item { --more-order: 44; }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu a.dropdown-item#menu-my:not(#menu-version) { order: 43; grid-column: 1 / -1; display: block; margin: .6rem .25rem 0; padding: 0;
    border-radius: 0; background: none; box-shadow: none; color: var(--skin-muted); font-size: .7rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; text-align: left; pointer-events: none; }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu a.dropdown-item#menu-my:not(#menu-version) > :is(.menu-icon, .badge, .my-work-arrow) { display: none; }
  /* 1.913 (주인의 결정 T66 가 ①): 흰 바탕에서 More 판의 타일과 Log out 단추도 얇은 테두리 — 밝은 화면만 (어두운 화면은 그대로) */
  html[data-skin="fresh"]:not(.in-panel) #main-menu :is(a.nav-link, a.dropdown-item):not(#menu-version, #menu-my),
  html[data-skin="fresh"]:not(.in-panel) #main-menu .dropdown-menu > form > .dropdown-item { border: 1px solid #dbe4f0; }
  /* 맨 아래의 줄들: 화면 (Auto·Light·Dark), Log out, 버전 */
  /* 맨 아래 한 줄 (1.819, 주인의 결정 — 시안처럼): Log out | Auto · Light · Dark 단추, 그 아래 버전 */
  html[data-skin^="fresh"]:not(.in-panel) #main-menu .dropdown-menu > form { order: 50; grid-column: 1 / span 2; margin-top: .6rem; }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu .dropdown-menu > form > .dropdown-item {
    height: 2.75rem; padding: 0 .9rem; border-radius: 1rem; background: var(--skin-surface); color: var(--skin-text); font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 2px 8px rgba(15, 23, 42, .06); }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu .dropdown-menu > .dropdown-item-text { order: 51; grid-column: 3 / -1; margin-top: .6rem; padding: 0; }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu .dropdown-menu > .dropdown-item-text > .form-select { display: none; }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu .theme-seg { display: flex; width: 100%; height: 2.75rem; padding: .2rem; border-radius: 1rem; background: var(--skin-surface2); }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu .theme-seg > button { flex: 1 1 0; border: 0; border-radius: .8rem; background: none; color: var(--skin-muted);
    font-size: .8rem; font-weight: 600; }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu .theme-seg > button.active { background: var(--skin-surface); color: var(--skin-text); box-shadow: 0 1px 3px rgba(15, 23, 42, .18); }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu #menu-version { grid-column: 1 / -1; }
  html[data-skin^="fresh"]:not(.in-panel) #main-menu #menu-version { order: 52; padding: .1rem .25rem; background: none; }
  html[data-skin^="fresh"]:not(.in-panel) .tab-bar > button[aria-expanded="true"] { color: var(--fresh-tab-on); }
  html[data-skin^="fresh"]:not(.in-panel) .tab-bar > button[aria-expanded="true"] .menu-icon { background: var(--fresh-tab-on-bg); }
}
