/* ==========================================================================
   스페이스웍 성수 — DREXLY 템플릿
   정본: 29/00-디자인보드.png (색·활자·사이트맵) · 02-페이지시안.png (면별 세부)
   구조: 홈은 다크 몰입면, 하위 4면은 라이트 콘솔면. 헤더·푸터는 5면 동일 마크업.
   ========================================================================== */

:root {
  /* 색 — 디자인보드 COLOR 5종 */
  --k0: #0a0a0a;          /* 기본 배경 */
  --k1: #121214;          /* 한 단 밝은 바닥 */
  --k2: #1e1e20;          /* 카드 표면 */
  --k3: #2d2d30;          /* 경계선·구획선 */
  --w1: #d9d9db;          /* 밝은 글자 */
  --brand: #0d6cff;       /* 전기 블루 */
  --brand-2: #0a57d6;
  --brand-soft: rgba(13, 108, 255, 0.14);

  /* 라이트면 (02-페이지시안 실측) */
  --l-bg: #e4e4e6;
  --l-card: #eeeef0;
  --l-raise: #f7f7f8;
  --l-line: #d5d5d9;
  --l-line2: #e3e3e6;
  --l-ink: #17181a;
  --l-ink2: #5c5f64;
  --l-mute: #85888e;

  /* 다크면 글자 */
  --d-ink: #edeef0;
  --d-ink2: #a2a5aa;
  --d-mute: #74777d;

  /* 상태 — 색만으로 전하지 않는다(항상 글자 병기) */
  --ok: #2fbf71;
  --hold: #e8a33d;
  --busy: #e5484d;

  /* 도면 범례 */
  --z-office: #2f6df0;
  --z-meet: #34c77b;
  --z-lounge: #e8d9a8;
  --z-common: #9aa3ad;

  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;

  --wrap: 1240px;
  --gutter: 36px;
  --section: 112px;
  --head-h: 68px;
  --r: 6px;
  --r-lg: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ------------------------------------------------------------------ 기본 */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 16px);
}

body {
  margin: 0;
  background: var(--l-bg);
  color: var(--l-ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.012em;
  /* 한국어는 어절 단위로 끊는다 — 「2층」·「성수점」이 갈라지지 않게 */
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
body[data-page="home"] { background: var(--k0); color: var(--d-ink); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.3; letter-spacing: -0.024em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
table { border-collapse: collapse; width: 100%; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--brand); color: #fff; padding: 12px 20px; font-size: 14px;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.frame { display: block; overflow: hidden; background: var(--k2); }

.ico {
  width: 20px; height: 20px; flex: none; fill: none;
  stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.ico-sm { width: 15px; height: 15px; stroke-width: 1.6; }
.ico-lg { width: 26px; height: 26px; stroke-width: 1.25; }

/* 표는 자릿수가 흔들리면 못 읽는다 */
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* -------------------------------------------------------- 활자 계층 §디자인보드 */
.t-h1 { font-size: clamp(32px, 5.4vw, 56px); line-height: 1.3; letter-spacing: -0.03em; }
.t-h2 { font-size: clamp(24px, 3.2vw, 40px); line-height: 1.3; letter-spacing: -0.028em; }
.t-h3 { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.4; letter-spacing: -0.024em; }
.t-h4 { font-size: 20px; line-height: 1.5; }
.t-cap { font-size: 12px; line-height: 1.5; letter-spacing: 0.04em; }

.eyebrow {
  font-size: 12px; line-height: 1.5; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--l-mute); font-weight: 600;
}
body[data-page="home"] .eyebrow { color: var(--d-mute); }

/* ------------------------------------------------------------------ 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: var(--r);
  font-size: 15px; font-weight: 600; letter-spacing: -0.015em;
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.12s var(--ease);
}
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 6px 20px rgba(13, 108, 255, 0.22);
}
.btn-primary:hover { background: var(--brand-2); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { border-color: var(--l-line); color: var(--l-ink); background: transparent; }
.btn-ghost:hover { border-color: var(--l-ink); }
body[data-page="home"] .btn-ghost { border-color: rgba(217, 217, 219, 0.34); color: var(--d-ink); }
body[data-page="home"] .btn-ghost:hover { border-color: var(--w1); background: rgba(217, 217, 219, 0.08); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-wide { width: 100%; }
.btn-quiet {
  background: var(--l-card); color: var(--brand); border-color: transparent;
  font-weight: 600;
}
.btn-quiet:hover { background: #e6e6e9; }
.btn[aria-disabled="true"] { opacity: 0.62; pointer-events: none; }

.btn-text {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--brand); min-height: 44px;
}
.btn-text:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ 헤더 */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--head-h);
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid rgba(45, 45, 48, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--d-ink);
  transition: background-color 0.28s var(--ease), border-color 0.28s var(--ease);
}
/* 홈 히어로 위에서는 투명하게 얹힌다 — 스크롤하면 굳는다 */
body[data-page="home"] .site-header { background: transparent; border-bottom-color: transparent; }
body[data-page="home"] .site-header.is-stuck {
  background: rgba(10, 10, 10, 0.92); border-bottom-color: rgba(45, 45, 48, 0.9);
}

.nav { display: flex; align-items: center; gap: 30px; height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -0.03em; }
.brand .ico { color: var(--brand); width: 22px; height: 22px; }
.brand small {
  display: block; font-size: 9px; letter-spacing: 0.24em; font-weight: 600;
  color: var(--d-mute); margin-top: 2px;
}
.brand b { font-weight: 700; }

.navlinks { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.navlinks a {
  position: relative; font-size: 14.5px; font-weight: 500; color: var(--d-ink2);
  padding: 6px 0; transition: color 0.18s var(--ease);
}
.navlinks a:hover { color: var(--d-ink); }
.navlinks a[aria-current="page"] { color: #fff; }
.navlinks a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--brand);
}

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-tel {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--d-ink2); letter-spacing: 0.01em;
}
.nav-tel:hover { color: var(--d-ink); }
.menu-btn {
  display: none; width: 46px; height: 46px; align-items: center; justify-content: center;
  border: 1px solid rgba(217, 217, 219, 0.28); border-radius: var(--r); color: var(--d-ink);
}

/* 모바일 서랍 */
.scrim {
  position: fixed; inset: 0; z-index: 95; background: rgba(0, 0, 0, 0.62);
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.scrim.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 96;
  width: min(340px, 86vw); background: var(--k0); color: var(--d-ink);
  border-left: 1px solid var(--k3);
  opacity: 0;
  transform: translateX(101%); transition: transform 0.34s var(--ease), opacity 0.34s var(--ease);
  padding: 20px 22px 32px; overflow-y: auto; overscroll-behavior: contain;
}
.drawer.open { transform: none; opacity: 1; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.drawer-close {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--k3); border-radius: var(--r);
}
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  padding: 15px 2px; font-size: 18px; font-weight: 600; color: var(--d-ink2);
  border-bottom: 1px solid var(--k3);
}
.drawer nav a[aria-current="page"] { color: #fff; }
.drawer-cta { margin-top: 24px; display: grid; gap: 10px; }
.drawer-cta .btn { justify-content: flex-start; }
.drawer-note { margin-top: 22px; font-size: 12.5px; line-height: 1.7; color: var(--d-mute); }

/* ------------------------------------------------------------------ 히어로 */
.hero {
  position: relative; overflow: hidden;
  background: var(--k0); color: var(--d-ink);
  min-height: min(92vh, 780px);
  display: flex; align-items: flex-end;
  padding: calc(var(--head-h) + 72px) 0 60px;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0 0 0 34%; z-index: -2;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 42%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(96deg, var(--k0) 4%, rgba(10, 10, 10, 0.86) 26%, rgba(10, 10, 10, 0.42) 62%, rgba(10, 10, 10, 0.62) 100%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0) 46%);
}
/* 절제된 ambient glow — 전기 블루 한 점 */
.hero-glow {
  position: absolute; z-index: -1; width: 58vw; height: 58vw; max-width: 720px; max-height: 720px;
  right: -12vw; top: -18vw; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(13, 108, 255, 0.2) 0%, rgba(13, 108, 255, 0) 62%);
}
.hero-inner { position: relative; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  font-size: 12px; letter-spacing: 0.1em; font-weight: 600; color: var(--w1);
  border: 1px solid rgba(217, 217, 219, 0.3); border-radius: 999px; padding: 7px 14px;
  background: rgba(10, 10, 10, 0.4);
}
.hero-eyebrow .ico { color: var(--brand); }
.hero-title { font-size: clamp(38px, 7.4vw, 76px); line-height: 1.1; letter-spacing: -0.04em; font-weight: 700; color: #fff; }
.hero-lead { margin-top: 20px; font-size: clamp(17px, 2.1vw, 22px); line-height: 1.62; color: var(--w1); font-weight: 400; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-facts {
  margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px 34px;
  padding-top: 22px; border-top: 1px solid rgba(217, 217, 219, 0.16);
}
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts b { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.hero-facts span { font-size: 12.5px; color: var(--d-mute); letter-spacing: 0.01em; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 10px; letter-spacing: 0.28em; color: var(--d-mute); min-height: 44px; justify-content: center;
}
.hero-scroll span.mouse {
  width: 20px; height: 31px; border: 1px solid rgba(217, 217, 219, 0.4); border-radius: 12px;
  position: relative; display: block;
}
.hero-scroll span.mouse::after {
  content: ""; position: absolute; left: 50%; top: 6px; width: 2px; height: 6px;
  margin-left: -1px; border-radius: 2px; background: var(--w1);
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }

/* --------------------------------------------------------- 하위면 페이지 머리 */
.page-head {
  position: relative; overflow: hidden;
  background: var(--k0); color: var(--d-ink);
  padding: calc(var(--head-h) + 62px) 0 62px;
}
.page-head::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(45, 45, 48, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 45, 48, 0.55) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 120% at 78% 0%, #000 12%, transparent 72%);
  mask-image: radial-gradient(120% 120% at 78% 0%, #000 12%, transparent 72%);
}
.page-head .wrap { position: relative; }
.page-head h1 { margin-top: 14px; color: #fff; }
.page-head .lead { margin-top: 18px; max-width: 46ch; color: var(--d-ink2); font-size: 17px; }
.page-head .head-meta {
  margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px 10px;
}
.chip-static {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--k3); border-radius: 999px; padding: 6px 13px;
  font-size: 12.5px; color: var(--d-ink2); background: rgba(30, 30, 32, 0.7);
}
.chip-static .ico { color: var(--brand); }

/* ------------------------------------------------------------------ 섹션 */
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * 0.62) 0; }
.sec-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 42px; max-width: 60ch; }
.sec-index {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em; color: var(--brand);
}
.sec-index::after { content: ""; width: 46px; height: 1px; background: currentColor; opacity: 0.5; }
.sec-note { color: var(--l-ink2); font-size: 15.5px; }
body[data-page="home"] .sec-note { color: var(--d-ink2); }

.sec-head-row { display: flex; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; max-width: none; }

/* 다크 섹션(홈) 공통 카드 */
body[data-page="home"] .card {
  background: var(--k2); border: 1px solid var(--k3); border-radius: var(--r-lg);
}
.card { background: var(--l-card); border: 1px solid var(--l-line); border-radius: var(--r-lg); }

/* ------------------------------------------------- 01 실시간 공간 현황(도크) */
.live { background: var(--k1); position: relative; }
.live::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
  background-image: linear-gradient(90deg, rgba(45, 45, 48, 0.4) 1px, transparent 1px);
  background-size: 92px 100%;
}
.live .wrap { position: relative; }
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }

.dock {
  position: sticky; top: calc(var(--head-h) + 14px); z-index: 20;
  background: rgba(18, 18, 20, 0.96);
  border: 1px solid var(--k3); border-radius: var(--r-lg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}
.dock-top {
  display: flex; align-items: center; gap: 18px 24px; flex-wrap: wrap;
  padding: 18px 22px; border-bottom: 1px solid var(--k3);
}
.dock-title { display: flex; flex-direction: column; }
.dock-title h3 { font-size: 17px; color: #fff; }
.dock-time { font-size: 12px; color: var(--d-mute); letter-spacing: 0.01em; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-left: auto; }
.legend li { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--d-ink2); }
.dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block;
  background: var(--d-mute);
}
.dot-ok { background: var(--ok); }
.dot-hold { background: var(--hold); }
.dot-busy { background: var(--busy); }

.dock-body { position: relative; overflow-x: auto; }
.avail { min-width: 620px; }
.avail th, .avail td {
  padding: 13px 18px; text-align: right; font-size: 14.5px; border-bottom: 1px solid rgba(45, 45, 48, 0.8);
}
.avail thead th { color: var(--d-mute); font-size: 12px; letter-spacing: 0.09em; font-weight: 600; }
.avail th:first-child, .avail td:first-child { text-align: left; color: var(--d-ink2); font-weight: 500; }
.avail tbody tr:last-child th, .avail tbody tr:last-child td { border-bottom: 0; }
.avail td b { font-weight: 600; color: #fff; }
.avail td.is-zero b { color: var(--busy); }
.avail td small { display: block; font-size: 11px; color: var(--d-mute); letter-spacing: 0.02em; }

.dock-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 12px 22px; border-top: 1px solid var(--k3); font-size: 12.5px; color: var(--d-mute);
}
/* 스크롤이 진행되면 도크가 한 줄로 접힌다 — 시그니처 연출 */
.dock.is-compact .dock-body,
.dock.is-compact .dock-foot { display: none; }
.dock.is-compact .dock-top { padding: 12px 18px; }
.dock.is-compact .dock-sum { display: flex; }
.dock-sum {
  display: none; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 13px; color: var(--d-ink2); width: 100%;
}
.dock-sum b { color: #fff; font-weight: 600; }

/* 층별 카드 */
.floor-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.floor-card { padding: 20px 18px 18px; }
.floor-card h4 { font-size: 15px; color: #fff; display: flex; align-items: baseline; gap: 8px; }
.floor-card h4 em { font-style: normal; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.floor-card p { margin-top: 6px; font-size: 13px; color: var(--d-ink2); }
.floor-card .bars { margin-top: 16px; display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) 62px; align-items: center; gap: 9px; font-size: 12px; color: var(--d-mute); }
.bar { height: 6px; border-radius: 3px; background: rgba(45, 45, 48, 0.9); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--brand); }
.bar-row b { text-align: right; color: var(--d-ink); font-weight: 600; font-size: 12px; }

/* 피드백 3종 — 디자인보드 FEEDBACK */
.fb {
  display: none; padding: 26px 22px; border-radius: var(--r-lg); text-align: center;
  border: 1px solid var(--k3); background: rgba(18, 18, 20, 0.7);
}
.fb.show { display: block; }
.fb-empty { border-color: rgba(13, 108, 255, 0.45); }
.fb-error { border-color: rgba(229, 72, 77, 0.55); }
.fb .ico { color: var(--d-mute); margin: 0 auto 10px; }
.fb-error .ico { color: var(--busy); }
.fb p { font-size: 14px; color: var(--d-ink2); }
.fb .btn { margin-top: 14px; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%; display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.28); border-top-color: #fff;
  animation: spin 0.72s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------ 02 월 비용 계산(Split) */
.calc { background: var(--k0); }
.calc-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 26px; align-items: start; }
.calc-panel { padding: 30px 30px 34px; }
.fieldrow + .fieldrow { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--k3); }
.fieldrow > .flabel {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: 13px; font-weight: 600; color: var(--d-ink); margin-bottom: 13px;
}
.fieldrow > .flabel span { font-size: 12px; font-weight: 400; color: var(--d-mute); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input {
  position: absolute; opacity: 0; width: 100%; height: 100%; left: 0; top: 0; margin: 0; cursor: pointer;
}
.chip label {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 16px; border-radius: var(--r); cursor: pointer;
  border: 1px solid var(--k3); color: var(--d-ink2); font-size: 14px; font-weight: 500;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.chip label:hover { border-color: rgba(217, 217, 219, 0.4); color: var(--d-ink); }
.chip input:checked + label {
  border-color: var(--brand); color: #fff; background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.chip input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }

.receipt { padding: 30px 30px 34px; position: sticky; top: calc(var(--head-h) + 18px); }
.receipt h3 { font-size: 16px; color: #fff; }
.receipt .rc-sub { margin-top: 4px; font-size: 12.5px; color: var(--d-mute); }
.rc-table { margin-top: 20px; }
.rc-table th, .rc-table td { padding: 10px 0; font-size: 14px; border-bottom: 1px solid rgba(45, 45, 48, 0.8); }
.rc-table th { text-align: left; font-weight: 400; color: var(--d-ink2); }
.rc-table td { text-align: right; color: var(--d-ink); font-weight: 600; }
.rc-table td small, .rc-table th small { display: block; font-weight: 400; font-size: 11.5px; color: var(--d-mute); }
.rc-table tr.rc-sum th, .rc-table tr.rc-sum td { border-bottom: 0; padding-top: 16px; font-size: 15px; }
.rc-table tr.rc-sum td { font-size: 24px; letter-spacing: -0.03em; color: #fff; }
.rc-table tr.rc-off td { color: var(--ok); }
.rc-deposit {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--r);
  background: rgba(13, 108, 255, 0.1); border: 1px solid rgba(13, 108, 255, 0.3);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--d-ink);
}
.rc-deposit b { font-weight: 700; }
.rc-note { margin-top: 14px; font-size: 12px; line-height: 1.65; color: var(--d-mute); }
.receipt .btn { margin-top: 18px; }

/* ---------------------------------------------------- 03 시설 · 파노라마 */
.fac { background: var(--k1); }
.pano {
  position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--k3);
  background: var(--k2);
}
.pano-stage { position: relative; overflow: hidden; height: clamp(210px, 30vw, 320px); }
.pano-stage img {
  width: auto; height: 100%; max-width: none; position: absolute; left: 0; top: 0;
  /* §4-C 7 — 기본 이미지 드래그가 포인터를 가로채면 회전이 네 번에 한 번 죽는다 */
  pointer-events: none; -webkit-user-drag: none; user-select: none;
}
.pano-scrim {
  position: absolute; inset: 0; display: grid; place-items: center; gap: 12px;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.62), rgba(10, 10, 10, 0.88));
  text-align: center; padding: 20px;
}
.pano.is-live .pano-scrim { display: none; }
.pano-scrim p { font-size: 13px; color: var(--w1); max-width: 34ch; }
.pano-badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: 0.18em;
  color: var(--w1); border: 1px solid rgba(217, 217, 219, 0.35); border-radius: 999px; padding: 5px 12px;
}
.pano-bar {
  display: none; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 12px 18px; border-top: 1px solid var(--k3); font-size: 12.5px; color: var(--d-mute);
}
.pano.is-live .pano-bar { display: flex; }
.pano-hint { display: inline-flex; align-items: center; gap: 7px; }
.pano-range { width: min(280px, 54vw); accent-color: var(--brand); }

.fac-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fac-card { padding: 22px 20px; display: flex; gap: 14px; align-items: flex-start; }
.fac-card .ico { color: var(--brand); margin-top: 2px; }
.fac-card h4 { font-size: 15.5px; color: #fff; }
.fac-card p { margin-top: 5px; font-size: 13.5px; color: var(--d-ink2); }
.fac-photos { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 190px)); justify-content: start; gap: 14px; }
.fac-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--k3); }
.fac-photo img { width: 100%; height: 144px; object-fit: cover; }
.fac-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px;
  font-size: 12px; color: var(--w1);
  background: linear-gradient(180deg, rgba(10, 10, 10, 0), rgba(10, 10, 10, 0.85));
}

/* -------------------------------------------------------- 04 멤버 이야기 */
.stories { background: var(--k0); }
.rail {
  position: relative;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 33%);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
.story { padding: 28px 26px 24px; display: flex; flex-direction: column; gap: 16px; }
.story-mark {
  width: 44px; height: 44px; border-radius: var(--r); display: grid; place-items: center;
  background: var(--brand-soft); border: 1px solid rgba(13, 108, 255, 0.4);
  font-weight: 700; font-size: 14px; color: #7fb0ff; letter-spacing: 0.02em;
}
.story blockquote { margin: 0; font-size: 16.5px; line-height: 1.66; color: var(--d-ink); }
.story-who { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--k3); }
.story-who b { display: block; font-size: 14px; color: #fff; font-weight: 600; }
.story-who span { font-size: 12.5px; color: var(--d-mute); }
.rail-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.rail-dots button {
  width: 30px; height: 44px; position: relative; cursor: pointer;
}
.rail-dots button::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 22px; height: 3px; border-radius: 2px; background: rgba(217, 217, 219, 0.3);
  transition: background-color 0.2s var(--ease);
}
.rail-dots button[aria-current="true"]::after { background: var(--brand); }
/* ::scroll-marker 를 아는 브라우저에서는 표식 자체를 브라우저가 만든다 */
@supports (selector(::scroll-marker)) {
  .rail.has-marker { scroll-marker-group: after; }
  .rail.has-marker::scroll-marker-group { display: flex; justify-content: center; align-items: center; }
  .rail.has-marker > *::scroll-marker {
    content: ""; width: 22px; height: 3px; border-radius: 2px;
    background: rgba(217, 217, 219, 0.3); margin: 22px 4px 0;
  }
  .rail.has-marker > *::scroll-marker:target-current { background: var(--brand); }
  .rail.has-marker + .rail-dots { display: none; }
}

/* ------------------------------------------------------------ 05 투어 예약 */
.tour { background: var(--k1); }
.tour-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 26px; align-items: start; }
.tour-form { padding: 30px 30px 34px; }
.slot-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; width: 100%; height: 100%; left: 0; top: 0; margin: 0; cursor: pointer; }
.slot label {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 62px; border-radius: var(--r); border: 1px solid var(--k3); cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--d-ink2);
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.slot label small { font-size: 11px; font-weight: 500; color: var(--d-mute); letter-spacing: 0.02em; }
.slot input:checked + label { border-color: var(--brand); background: var(--brand-soft); color: #fff; }
.slot input:checked + label small { color: #9dc4ff; }
.slot input:disabled + label { opacity: 0.4; cursor: not-allowed; }
.slot input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }
.time-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.time-grid .slot label { min-height: 48px; font-size: 14.5px; }

.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--d-ink2); }
.field label .req { color: var(--brand); }
.control {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 15px;
  background: rgba(10, 10, 10, 0.6); border: 1px solid var(--k3); border-radius: var(--r);
  color: var(--d-ink); transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.control::placeholder { color: var(--d-mute); }
.control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13, 108, 255, 0.18); outline: none; }
textarea.control { min-height: 108px; resize: vertical; line-height: 1.65; }
select.control { appearance: none; background-image: none; cursor: pointer; }
.field.invalid .control { border-color: var(--busy); box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.16); }
.field .err { display: none; font-size: 12px; color: var(--busy); }
.field.invalid .err { display: block; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-grid .full { grid-column: 1 / -1; }
.form-block + .form-block { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--k3); }
.form-block > .flabel { display: block; font-size: 13px; font-weight: 600; color: var(--d-ink); margin-bottom: 12px; }
.agree { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; }
.agree input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.agree label { font-size: 13px; color: var(--d-ink2); line-height: 1.6; }
.agree a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.form-submit { margin-top: 22px; }
.counter { font-size: 11.5px; color: var(--d-mute); text-align: right; }

.tour-side { padding: 28px 26px; display: grid; gap: 20px; }
.tour-side h3 { font-size: 16px; color: #fff; }
.info-rows { display: grid; gap: 12px; }
.info-rows div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; font-size: 13.5px; }
.info-rows b { font-weight: 500; color: var(--d-mute); }
.info-rows span { color: var(--d-ink2); }
.info-rows a { color: var(--d-ink); }
.tour-steps { display: grid; gap: 10px; counter-reset: st; }
.tour-steps li {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px;
  font-size: 13.5px; color: var(--d-ink2); counter-increment: st;
}
.tour-steps li::before {
  content: counter(st); width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: var(--brand-soft); color: #7fb0ff; border: 1px solid rgba(13, 108, 255, 0.4);
}

/* ══════════════════════════════════════════════ 라이트 콘솔면 (하위 4면) */
.lightsec { background: var(--l-bg); }
.lightsec-alt { background: var(--l-card); }
.panel { background: var(--l-raise); border: 1px solid var(--l-line); border-radius: var(--r-lg); }
.lightsec .sec-note, .lightsec-alt .sec-note { color: var(--l-ink2); }

/* 탭 (시안: 밑줄형) */
.tabs {
  display: flex; gap: 26px; border-bottom: 1px solid var(--l-line); overflow-x: auto;
  position: relative; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  position: relative; padding: 14px 2px; min-height: 48px; white-space: nowrap;
  font-size: 15px; font-weight: 600; color: var(--l-mute); cursor: pointer;
}
.tabs button:hover { color: var(--l-ink); }
.tabs button[aria-selected="true"] { color: var(--brand); }
.tabs button[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand);
}

/* 세그먼트 (시안: 알약형 층 선택) */
.segmented {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: var(--l-card); border: 1px solid var(--l-line); overflow-x: auto;
  position: relative; max-width: 100%; scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented button {
  min-height: 44px; padding: 0 20px; border-radius: 999px; white-space: nowrap;
  font-size: 14.5px; font-weight: 600; color: var(--l-ink2); cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.segmented button:hover { color: var(--l-ink); }
.segmented button[aria-selected="true"] { background: var(--l-raise); color: var(--brand); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }

/* 라이트면 칩 */
.lightsec .chip label, .lightsec-alt .chip label { border-color: var(--l-line); color: var(--l-ink2); background: var(--l-raise); }
.lightsec .chip label:hover, .lightsec-alt .chip label:hover { border-color: var(--l-ink2); color: var(--l-ink); }
.lightsec .chip input:checked + label,
.lightsec-alt .chip input:checked + label {
  border-color: var(--brand); color: var(--brand); background: rgba(13, 108, 255, 0.08);
  box-shadow: inset 0 0 0 1px var(--brand);
}

/* ------------------------------------------------------- 공간 찾기(공간면) */
.finder-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.filters { padding: 24px 24px 20px; }
.filters .fieldrow + .fieldrow { border-top-color: var(--l-line2); }
.filters .flabel { color: var(--l-ink); }
.filters .flabel span { color: var(--l-mute); }
.f-foot {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--l-line2);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.f-count { font-size: 14px; color: var(--l-ink2); }
.f-count b { color: var(--brand); font-weight: 700; }

.floor-bar { margin: 30px 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.viewtoggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r); background: var(--l-card); border: 1px solid var(--l-line); }
.viewtoggle button { min-height: 44px; padding: 0 14px; border-radius: 4px; font-size: 13.5px; font-weight: 600; color: var(--l-ink2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.viewtoggle button[aria-selected="true"] { background: var(--l-raise); color: var(--brand); }

.finder-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.plan-pane { padding: 20px; }
.plan-wrap { position: relative; }
.plan { display: none; width: 100%; height: auto; }
.plan.is-on { display: block; }
.plan .rm { cursor: pointer; }
.plan .rm rect { fill: var(--l-card); stroke: #b9bcc2; stroke-width: 1.1; transition: fill 0.18s var(--ease); }
.plan .rm.z-office rect { fill: rgba(47, 109, 240, 0.16); }
.plan .rm.z-meet rect { fill: rgba(52, 199, 123, 0.18); }
.plan .rm.z-lounge rect { fill: rgba(232, 217, 168, 0.42); }
.plan .rm.z-common rect { fill: rgba(154, 163, 173, 0.16); }
.plan .rm:hover rect, .plan .rm:focus-visible rect { fill: rgba(13, 108, 255, 0.3); }
.plan .rm.is-picked rect { stroke: var(--brand); stroke-width: 2.4; }
.plan .rm text { font-size: 10.5px; fill: var(--l-ink2); font-weight: 600; pointer-events: none; }
.plan .rm .st { r: 4.2; }
.plan .st-ok { fill: var(--ok); }
.plan .st-hold { fill: var(--hold); }
.plan .st-busy { fill: var(--busy); }
.plan .wallline { stroke: #a9adb4; stroke-width: 1.4; fill: none; }
.plan .hatch { fill: none; stroke: #c8cbd0; stroke-width: 0.8; }
.plan .lbl { font-size: 10px; fill: var(--l-mute); font-weight: 500; }

/* 좌석 툴팁 — CSS Anchor Positioning 이 있으면 그것으로, 없으면 절대배치 폴백 */
.seat-tip {
  position: absolute; z-index: 30; left: 0; top: 0; min-width: 168px; max-width: 240px;
  padding: 11px 13px; border-radius: var(--r); background: var(--k0); color: var(--d-ink);
  border: 1px solid var(--k3); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  font-size: 12.5px; line-height: 1.55; pointer-events: none; opacity: 0; visibility: hidden;
  transition: opacity 0.16s var(--ease), visibility 0.16s;
}
.seat-tip.show { opacity: 1; visibility: visible; }
.seat-tip b { display: block; color: #fff; font-size: 13.5px; margin-bottom: 3px; }
.seat-tip .st-line { display: flex; align-items: center; gap: 6px; color: var(--d-ink2); }
@supports (anchor-name: --a) {
  .plan .rm { anchor-name: --seat; }
  .seat-tip.anchored {
    position: absolute; position-anchor: --seat;
    position-area: block-start span-inline-end; position-try-fallbacks: flip-block, flip-inline;
    left: auto; top: auto; margin-bottom: 8px;
  }
}

.plan-legend { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px 18px; padding-top: 14px; border-top: 1px solid var(--l-line2); }
.plan-legend li { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--l-ink2); }
.sw { width: 12px; height: 12px; border-radius: 3px; flex: none; border: 1px solid rgba(0, 0, 0, 0.12); }
.sw-office { background: rgba(47, 109, 240, 0.55); }
.sw-meet { background: rgba(52, 199, 123, 0.6); }
.sw-lounge { background: rgba(232, 217, 168, 0.9); }
.sw-common { background: rgba(154, 163, 173, 0.5); }

/* 상세 카드 */
.detail-pane { padding: 22px 22px 24px; position: sticky; top: calc(var(--head-h) + 18px); }
.detail-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.detail-top h3 { font-size: 20px; }
.detail-media { margin-top: 16px; display: flex; gap: 14px; align-items: flex-start; }
.detail-photo, .detail-glyph {
  width: 176px; flex: none; margin: 0; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--l-line); background: var(--l-card);
}
.detail-photo img { width: 176px; height: 132px; object-fit: cover; }
.detail-glyph svg { display: block; width: 100%; height: auto; }
.detail-media .tagrow { margin-top: 0; flex: 1 1 auto; align-content: flex-start; }
.spec-rows { margin-top: 16px; }
.spec-rows div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--l-line2); font-size: 14.5px; }
.spec-rows div:last-child { border-bottom: 0; }
.spec-rows b { color: var(--l-ink2); font-weight: 500; }
.spec-rows span { font-weight: 600; }
.tagrow { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500;
  padding: 5px 10px; border-radius: 999px; background: var(--l-card); color: var(--l-ink2);
  border: 1px solid var(--l-line);
}
.detail-pane .btn { margin-top: 18px; }
.detail-hint { margin-top: 10px; font-size: 12px; color: var(--l-mute); text-align: center; }

/* 상태 배지 — 색만이 아니라 글자로도 구분한다 */
.stat {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  padding: 5px 11px; border-radius: 999px; letter-spacing: -0.01em; white-space: nowrap;
}
.stat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.stat-ok { color: #1c8b4f; background: rgba(47, 191, 113, 0.16); }
.stat-hold { color: #9a6712; background: rgba(232, 163, 61, 0.2); }
.stat-busy { color: #b3282d; background: rgba(229, 72, 77, 0.14); }
body[data-page="home"] .stat-ok { color: #56d894; background: rgba(47, 191, 113, 0.16); }
body[data-page="home"] .stat-hold { color: #f0bd6d; background: rgba(232, 163, 61, 0.18); }
body[data-page="home"] .stat-busy { color: #ff8286; background: rgba(229, 72, 77, 0.16); }

/* 공간 목록 */
.room-list { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.room {
  padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 12px; text-align: left;
  cursor: pointer; width: 100%;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.room:hover { border-color: var(--brand); box-shadow: 0 8px 22px rgba(13, 108, 255, 0.12); }
.room.is-picked { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.room[hidden] { display: none; }
.room-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.room-name { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.room-sub { display: block; font-size: 12.5px; color: var(--l-mute); margin-top: 2px; }
.room-glyph { width: 54px; height: 40px; flex: none; }
.room-glyph rect { fill: rgba(13, 108, 255, 0.1); stroke: #b9bcc2; stroke-width: 1; }
.room-glyph line { stroke: #c8cbd0; stroke-width: 1; }
.room-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--l-ink2); }
.room-meta span { display: inline-flex; align-items: center; gap: 5px; }
.room-price { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--l-line2); display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.room-price b { font-size: 18px; font-weight: 700; letter-spacing: -0.025em; }
.room-price small { font-size: 12px; color: var(--l-mute); }

/* 선택 tray */
.tray {
  position: sticky; bottom: 14px; z-index: 40; margin-top: 22px;
  background: var(--k0); color: var(--d-ink); border: 1px solid var(--k3); border-radius: var(--r-lg);
  padding: 14px 18px; display: none; align-items: center; gap: 14px; flex-wrap: wrap;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.26);
}
.tray.show { display: flex; }
.tray-label { font-size: 12.5px; color: var(--d-mute); }
.tray-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tray-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 12px;
  border-radius: 999px; background: var(--k2); border: 1px solid var(--k3); font-size: 13px;
}
.tray-chip .hold-left { font-size: 11.5px; color: var(--hold); font-variant-numeric: tabular-nums; }
.tray-chip button {
  position: relative; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(217, 217, 219, 0.12); cursor: pointer;
}
/* 보이는 원은 작아도 실제로 눌리는 면은 44px 이다 */
.tray-chip button::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; }
.tray-sum { margin-left: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tray-sum span { font-size: 12.5px; color: var(--d-mute); }
.tray-sum b { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -0.025em; }

/* 라이트면 피드백 */
.lightsec .fb, .lightsec-alt .fb { background: var(--l-raise); border-color: var(--l-line); }
.lightsec .fb p, .lightsec-alt .fb p { color: var(--l-ink2); }
.lightsec .fb .ico, .lightsec-alt .fb .ico { color: var(--l-mute); }
.lightsec .fb-error, .lightsec-alt .fb-error { border-color: rgba(229, 72, 77, 0.5); }
.lightsec .fb-error .ico, .lightsec-alt .fb-error .ico { color: var(--busy); }
.lightsec .fb-empty, .lightsec-alt .fb-empty { border-color: rgba(13, 108, 255, 0.4); }

/* 층 안내 */
.floor-guide { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.floor-guide article { padding: 22px 20px; }
.floor-guide h3 { font-size: 15px; display: flex; align-items: baseline; gap: 8px; }
.floor-guide h3 em { font-style: normal; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; color: var(--brand); }
.floor-guide p { margin-top: 8px; font-size: 13.5px; color: var(--l-ink2); }
.floor-guide ul { margin-top: 12px; display: grid; gap: 5px; }
.floor-guide li { font-size: 12.5px; color: var(--l-mute); display: flex; gap: 7px; }
.floor-guide li::before { content: "—"; color: var(--l-line); }

/* -------------------------------------------------------------- 멤버십면 */
.plan-cards { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan-card { padding: 26px 24px 24px; display: flex; flex-direction: column; }
.plan-card.is-best { border-color: var(--brand); box-shadow: 0 10px 30px rgba(13, 108, 255, 0.12); }
.plan-badge {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  color: #fff; background: var(--brand); border-radius: 999px; padding: 4px 10px; margin-bottom: 12px;
}
.plan-card h3 { font-size: 17px; }
.plan-card .p-desc { margin-top: 6px; font-size: 13px; color: var(--l-mute); }
.plan-price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; }
.plan-price b { font-size: 27px; font-weight: 700; letter-spacing: -0.035em; }
.plan-price span { font-size: 13px; color: var(--l-mute); }
.plan-vat { margin-top: 4px; font-size: 12px; color: var(--l-mute); }
.plan-feats { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--l-line2); display: grid; gap: 10px; }
.plan-feats li { display: grid; grid-template-columns: 17px minmax(0, 1fr); gap: 9px; font-size: 13.5px; color: var(--l-ink2); }
.plan-feats .ico { color: var(--brand); width: 17px; height: 17px; margin-top: 3px; }
.plan-card .btn { margin-top: 22px; }
.plan-panel[hidden] { display: none; }

.table-box { position: relative; overflow-x: auto; border: 1px solid var(--l-line); border-radius: var(--r-lg); background: var(--l-raise); }
.ptable { min-width: 760px; font-size: 14px; }
.ptable th, .ptable td { padding: 14px 16px; border-bottom: 1px solid var(--l-line2); text-align: right; }
.ptable thead th { background: var(--l-card); font-size: 12.5px; letter-spacing: 0.02em; color: var(--l-ink); font-weight: 700; position: sticky; top: 0; }
.ptable th:first-child, .ptable td:first-child { text-align: left; }
/* 좁은 화면에서 좌우로 밀어도 어느 항목인지 잃지 않도록 첫 칸을 고정한다 */
.ptable tbody th {
  font-weight: 500; color: var(--l-ink2); white-space: nowrap;
  position: sticky; left: 0; z-index: 1; background: var(--l-raise);
}
.ptable thead th:first-child { left: 0; z-index: 3; }
.ptable .row-total th { background: #e7eefc; }
.table-hint {
  margin-top: 10px; font-size: 12.5px; color: var(--l-mute);
  display: flex; align-items: center; gap: 7px;
}
.ptable tbody tr:last-child th, .ptable tbody tr:last-child td { border-bottom: 0; }
.ptable td b { font-weight: 700; }
.ptable td small, .ptable th small { display: block; font-size: 11.5px; color: var(--l-mute); font-weight: 400; }
.ptable .row-total th, .ptable .row-total td { background: rgba(13, 108, 255, 0.06); }
.ptable .yes { color: #1c8b4f; font-weight: 700; }
.ptable .no { color: var(--l-mute); }

.term-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.term-card { padding: 22px 20px; }
.term-card h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.term-off { font-size: 12px; font-weight: 700; color: var(--brand); background: rgba(13, 108, 255, 0.1); border-radius: 999px; padding: 3px 9px; }
.term-card p { margin-top: 10px; font-size: 13.5px; color: var(--l-ink2); }
.term-card dl { margin: 14px 0 0; display: grid; gap: 8px; }
.term-card .dl-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.term-card dt { color: var(--l-mute); }
.term-card dd { margin: 0; font-weight: 700; }

.note-list { display: grid; gap: 9px; }
.note-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; font-size: 13.5px; color: var(--l-ink2); }
.note-list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); margin: 9px 0 0 5px; }

/* ------------------------------------------------------------- 프로그램면 */
.prog-feature { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.prog-card { overflow: hidden; padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.prog-card[hidden] { display: none; }
.prog-head { display: flex; gap: 14px; align-items: flex-start; }
.prog-thumb { width: 92px; flex: none; border-radius: var(--r); overflow: hidden; background: var(--l-card); }
.prog-thumb img { width: 92px; height: 116px; object-fit: cover; }
.prog-headtext { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; min-width: 0; }
.prog-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prog-cat {
  align-self: flex-start; font-size: 11.5px; font-weight: 700; color: var(--brand);
  border: 1px solid rgba(13, 108, 255, 0.4); border-radius: 999px; padding: 4px 10px;
}
.prog-card h3 { font-size: 17px; }
.prog-when { font-size: 13px; color: var(--l-ink2); display: flex; align-items: center; gap: 7px; }
.prog-desc { font-size: 13.5px; color: var(--l-ink2); }
.prog-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--l-line2); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.prog-foot b { font-weight: 700; }

.sched { margin-top: 26px; border: 1px solid var(--l-line); border-radius: var(--r-lg); overflow: hidden; background: var(--l-raise); }
.sched li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--l-line2); }
.sched li:last-child { border-bottom: 0; }
.sched li[hidden] { display: none; }
.sched-date { text-align: center; }
.sched-date b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -0.03em; }
.sched-date span { font-size: 11.5px; color: var(--l-mute); }
.sched-main h3 { font-size: 15.5px; }
.sched-main p { margin-top: 4px; font-size: 13px; color: var(--l-ink2); }
.sched-side { text-align: right; display: grid; gap: 5px; justify-items: end; }
.sched-side .seats { font-size: 12.5px; color: var(--l-ink2); }
.sched-more { margin-top: 22px; text-align: center; }

/* ------------------------------------------------------------ 고객센터면 */
.help-search { margin-top: 26px; display: flex; gap: 10px; max-width: 620px; }
.help-search .control { background: var(--l-raise); border-color: var(--l-line); color: var(--l-ink); }
.help-search .control::placeholder { color: var(--l-mute); }
.quick { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 620px; }
.quick a {
  display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 20px 12px;
  border: 1px solid var(--k3); border-radius: var(--r-lg); background: rgba(30, 30, 32, 0.6);
  font-size: 13.5px; font-weight: 600; color: var(--d-ink); min-height: 44px;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.quick a:hover { border-color: var(--brand); background: rgba(13, 108, 255, 0.1); }
.quick .ico { color: var(--brand); }

.accordion { border: 1px solid var(--l-line); border-radius: var(--r-lg); overflow: hidden; background: var(--l-raise); }
.acc-item { border-bottom: 1px solid var(--l-line2); }
.acc-item:last-child { border-bottom: 0; }
.acc-item[hidden] { display: none; }
.acc-trigger {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 18px 22px; min-height: 60px; cursor: pointer; font-size: 15.5px; font-weight: 600;
}
.acc-trigger .q { color: var(--brand); font-weight: 700; flex: none; }
.acc-trigger .ico { margin-left: auto; color: var(--l-mute); transition: transform 0.28s var(--ease); flex: none; }
.acc-item.open .acc-trigger .ico { transform: rotate(180deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; }
.acc-inner > div { padding: 0 22px 20px 56px; font-size: 14.5px; color: var(--l-ink2); line-height: 1.75; }

.notice-list { border: 1px solid var(--l-line); border-radius: var(--r-lg); overflow: hidden; background: var(--l-raise); }
.notice-list li { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--l-line2); }
.notice-list li:last-child { border-bottom: 0; }
.notice-tag {
  font-size: 11.5px; font-weight: 700; color: var(--brand); background: rgba(13, 108, 255, 0.1);
  border-radius: 4px; padding: 3px 8px; flex: none;
}
.notice-list p { font-size: 14.5px; flex: 1; min-width: 0; }
.notice-list time { font-size: 12.5px; color: var(--l-mute); flex: none; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 26px; align-items: start; }
.light-form { padding: 28px 28px 32px; }
.light-form .control { background: var(--l-raise); border-color: var(--l-line); color: var(--l-ink); }
.light-form .control::placeholder { color: var(--l-mute); }
.light-form .field label { color: var(--l-ink2); }
.light-form .agree label { color: var(--l-ink2); }
.light-form .form-block + .form-block { border-top-color: var(--l-line2); }
.light-form .flabel { color: var(--l-ink); }
.light-form .counter { color: var(--l-mute); }

.access { padding: 26px 24px; display: grid; gap: 20px; }
.access h3 { font-size: 16px; }
.access .info-rows b { color: var(--l-mute); }
.access .info-rows span, .access .info-rows a { color: var(--l-ink2); }
.mapfig { border-radius: var(--r); overflow: hidden; border: 1px solid var(--l-line); background: var(--l-card); }
.mapfig svg { display: block; width: 100%; height: auto; }
.route-list { display: grid; gap: 10px; }
.route-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 13.5px; color: var(--l-ink2); }
.route-list .ico { color: var(--brand); width: 18px; height: 18px; margin-top: 3px; }

/* ------------------------------------------------------------------ 푸터 */
.site-footer { background: var(--k0); color: var(--d-ink2); border-top: 1px solid var(--k3); padding: 66px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.2fr 1fr 1.2fr; gap: 40px; }
.footer-brand p { margin-top: 16px; font-size: 13.5px; line-height: 1.75; }
.footer-brand .brand small { color: var(--d-mute); }
.footer-col h3 { font-size: 11.5px; letter-spacing: 0.16em; color: var(--d-mute); font-weight: 700; margin-bottom: 16px; }
.footer-info { display: grid; gap: 11px; }
.footer-info div { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; font-size: 13px; }
.footer-info b { font-weight: 500; color: var(--d-mute); }
.footer-col ul { display: grid; gap: 10px; }
.footer-col ul a { font-size: 13.5px; }
.footer-col ul a:hover { color: #fff; }
.social { display: flex; gap: 8px; }
.social a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--k3); border-radius: var(--r); color: var(--d-ink2);
}
.social a:hover { border-color: var(--brand); color: #fff; }
.foot-cta { margin-top: 16px; }
.footer-bottom {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--k3);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--d-mute);
}
.footer-bottom nav { display: flex; gap: 20px; }
.biz { margin-top: 10px; font-size: 12px; color: var(--d-mute); line-height: 1.7; }

/* --------------------------------------------------------- 맨 위로 · 토스트 */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--k2); color: var(--d-ink); border: 1px solid var(--k3); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 130; transform: translate(-50%, 18px);
  min-width: 268px; max-width: calc(100vw - 36px);
  display: flex; align-items: center; gap: 11px; padding: 14px 20px;
  background: var(--k2); color: var(--d-ink); border: 1px solid var(--k3);
  border-radius: var(--r); font-size: 14px; line-height: 1.5;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
  opacity: 0; visibility: hidden;
  /* 폭 전체 제출 버튼을 덮어 클릭을 삼키지 않게 한다 */
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .ico { color: var(--brand); flex: none; }
.toast.is-warn .ico { color: var(--hold); }
.toast.is-error .ico { color: var(--busy); }

/* 하단 시트(모바일 예약) */
.sheet-scrim {
  position: fixed; inset: 0; z-index: 110; background: rgba(0, 0, 0, 0.6);
  opacity: 0; visibility: hidden; transition: opacity 0.28s var(--ease), visibility 0.28s;
}
.sheet-scrim.open { opacity: 1; visibility: visible; }
.sheet {
  position: fixed; left: 50%; bottom: 0; z-index: 111; width: min(560px, 100%);
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 102%); transition: transform 0.34s var(--ease), opacity 0.34s var(--ease);
  background: var(--k0); color: var(--d-ink); border: 1px solid var(--k3);
  border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 20px 22px 26px;
  max-height: 86vh; overflow-y: auto; overscroll-behavior: contain;
}
.sheet.open { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.sheet-grab { width: 44px; height: 4px; border-radius: 2px; background: var(--k3); margin: 0 auto 16px; }
.sheet h3 { font-size: 18px; color: #fff; }
.sheet-sub { margin-top: 4px; font-size: 13px; color: var(--d-mute); }
.sheet-list { margin-top: 18px; display: grid; gap: 10px; }
.sheet-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border: 1px solid var(--k3); border-radius: var(--r); font-size: 14px; }
.sheet-list b { color: #fff; font-weight: 600; }
.sheet-total { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--k3); display: flex; align-items: baseline; justify-content: space-between; }
.sheet-total b { font-size: 22px; color: #fff; font-weight: 700; letter-spacing: -0.03em; }
.sheet-actions { margin-top: 20px; display: grid; gap: 10px; }
.sheet-note { margin-top: 14px; font-size: 12px; color: var(--d-mute); line-height: 1.65; }

/* ------------------------------------------------------------------ 등장 */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================ 반응형 */
@media (max-width: 1180px) {
  :root { --wrap: 1024px; --section: 96px; --gutter: 30px; }
  .floor-cards, .floor-guide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1.2fr 1fr; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .social { justify-content: flex-start; }
}

@media (max-width: 1024px) {
  :root { --head-h: 60px; --section: 84px; }
  .navlinks, .nav-tel { display: none; }
  .menu-btn { display: inline-flex; }
  .nav { gap: 16px; }
  .nav-actions { margin-left: auto; }
  .calc-split, .tour-grid, .finder-body, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .receipt, .detail-pane { position: static; }
  .hero-media { inset: 0; }
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0.5) 40%, rgba(10, 10, 10, 0.94) 100%);
  }
  .room-list, .plan-cards, .prog-feature, .term-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail { grid-auto-columns: minmax(270px, 78%); }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; --section: 66px; --r-lg: 12px; }
  .hero { min-height: 0; padding: calc(var(--head-h) + 54px) 0 46px; }
  .hero-facts { gap: 14px 24px; }
  .hero-facts b { font-size: 18px; }
  .hero-scroll { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-actions .btn + .btn { flex: 1 1 calc(50% - 5px); }

  /* 모바일에서 도크가 화면을 먹지 않도록 고정 해제 */
  .dock { position: static; }
  .dock.is-compact .dock-body, .dock.is-compact .dock-foot { display: block; }
  .dock.is-compact .dock-sum { display: none; }
  .floor-cards, .floor-guide, .fac-grid, .fac-photos, .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-list, .plan-cards, .prog-feature, .term-cards { grid-template-columns: minmax(0, 1fr); }
  .calc-panel, .receipt, .tour-form, .light-form, .filters { padding: 22px 18px 24px; }
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .slot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .time-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-media { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .footer-col:last-child { grid-column: auto; }
  .sched li { grid-template-columns: 62px minmax(0, 1fr); gap: 14px; }
  .sched-side { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .sec-head { margin-bottom: 28px; }

  /* 모바일 기본은 층별 「목록」 — 도면은 선택해서 본다 */
  .finder-body .plan-pane { display: none; }
  .finder-body.show-plan .plan-pane { display: block; }
  .finder-body.show-plan .detail-pane { order: 2; }

  /* 예약은 하단 시트로 */
  .tray { position: fixed; left: 12px; right: 12px; bottom: 12px; margin: 0; }
  .tray-sum { margin-left: 0; width: 100%; justify-content: space-between; }
  .to-top { display: none; }
  .toast { bottom: 16px; }
}

@media (max-width: 420px) {
  .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .floor-cards, .floor-guide, .fac-grid, .fac-photos, .quick { grid-template-columns: minmax(0, 1fr); }
  .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick a { padding: 14px 6px; font-size: 12px; }
  .hero-facts { gap: 12px 18px; }
}

/* 모션을 끈 사용자에게는 최종 상태를 곧바로 보인다 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero-scroll span.mouse::after { animation: none; opacity: 1; }
}

@media print {
  .site-header, .drawer, .scrim, .to-top, .toast, .tray, .sheet, .sheet-scrim, .hero-scroll { display: none !important; }
  body { background: #fff; color: #000; }
}
