/* 크루발렛 앱 CSS v2 · 소프트 화이트 — 디자인 패키지 crewvalet.css(토큰 + 공통 컴포넌트)를 그대로 이식하고, 앱 프레임·화면 전용 규칙을 뒤에 붙였다.
   토큰 값은 docs/02-설계/화면-기능-명세서.md §8 과 같다. 화면 코드(ui.js, screens/*.js)는 여기 있는 클래스만 쓴다. */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

:root {
  /* 브랜드 */
  --color-primary: #2D5BD7;
  --color-primary-pressed: #2449B8;
  --color-primary-tint: #EEF2FD;
  --color-navy: #1A1D29;
  /* 중립 */
  --color-bg: #F3F5F9;
  --color-bg-top: #F8F9FC;
  --color-surface: #FFFFFF;
  --color-line: #ECEFF4;
  --color-line-strong: #E3E7EE;
  --color-text: #1A1D29;
  --color-text-body: #3A4152;
  --color-text-sub: #6F7789;
  --color-text-faint: #9AA1B2;
  --color-disabled: #C8CDD8;
  /* 상태 */
  --color-success: #1F9D74; --color-success-tint: #E8F6F0;
  --color-warning: #B7740A; --color-warning-tint: #FFF4E0;
  --color-danger: #E04F5F;  --color-danger-tint: #FDECEE;
  --color-accent: #FFB547;
  /* 파생 */
  --color-navy-tint: #EEF0F5;
  --color-neutral-tint: #F4F5F8;
  /* 소셜 */
  --color-kakao: #FEE500; --color-naver: #03C75A; --color-google-line: #DADCE0;
  /* 서체 */
  --font: "Poppins", "Pretendard", -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --text-display: 24px; --text-title: 20px; --text-heading: 16px; --text-body: 14px; --text-caption: 12px; --text-label: 10.5px;
  /* 간격 */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 22px; --space-6: 24px; --space-7: 32px; --space-8: 40px;
  --radius-sm: 9px; --radius-md: 14px; --radius-lg: 22px; --radius-sheet: 28px; --radius-pill: 999px;
  --shadow-1: 0 2px 6px rgba(40,60,100,.06);
  --shadow-card: 0 10px 30px rgba(40,60,100,.06);
  --shadow-float: 0 12px 30px rgba(40,60,100,.10);
  --shadow-icon: 0 6px 16px rgba(40,60,100,.08);
  --shadow-primary: 0 6px 14px rgba(45,91,215,.35);
  --shadow-primary-lg: 0 14px 30px rgba(45,91,215,.32);
  --topbar-h: 64px; --tabbar-h: 64px; --safe-bottom: 16px;
  --app-max: 430px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: var(--text-body); line-height: 1.5; color: var(--color-text); background: var(--color-bg); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; min-height: 100vh; }
a { color: var(--color-primary); text-decoration: none; } a:hover { color: var(--color-primary-pressed); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg.lucide, .lucide, l-i { width: 20px; height: 20px; stroke-width: 1.75; flex: none; }
.ic24 { width: 24px; height: 24px; }
l-i { display: inline-flex; flex: none; line-height: 0; }
l-i.ic24 { width: 24px; height: 24px; }
body.no-scroll { overflow: hidden; }

/* ── 앱 프레임: 모바일은 꽉 차게, PC(768px 이상)는 같은 모양을 가운데 ── */
.shell { min-height: 100vh; display: flex; justify-content: center; }
.app { position: relative; width: 100%; max-width: var(--app-max); min-height: 100vh; background: linear-gradient(180deg, var(--color-bg-top), var(--color-bg)); display: flex; flex-direction: column; }
@media (min-width: 768px) {
  body { background: #E4E8F0; }
  .app { box-shadow: 0 30px 80px rgba(30,50,90,.16); }
}
.content { flex: 1; padding: var(--space-4) var(--space-5) var(--space-8); display: flex; flex-direction: column; gap: var(--space-3); }
.with-tabbar .content { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 40px); }
.boot { flex: 1; min-height: 60vh; display: flex; align-items: center; justify-content: center; color: var(--color-text-sub); font-size: var(--text-caption); gap: 8px; }

.topbar { height: var(--topbar-h); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; flex: none; position: sticky; top: 0; z-index: 30; background: rgba(248,249,252,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.topbar.logo-bar { grid-template-columns: 1fr auto; }
.topbar-title { margin: 0; text-align: center; font-size: var(--text-heading); font-weight: 600; }
.topbar-back { height: 40px; width: 40px; margin-left: 22px; display: flex; align-items: center; justify-content: center; background: var(--color-surface); border: 0; border-radius: 12px; box-shadow: var(--shadow-icon); color: var(--color-text-body); }
.topbar-back .lucide, .topbar-back l-i { width: 20px; height: 20px; }
.topbar-logo { padding-left: 22px; display: flex; align-items: center; }
.topbar-logo img { height: 24px; width: auto; display: block; }
.icon-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--color-surface); border: 0; border-radius: 12px; box-shadow: var(--shadow-icon); color: var(--color-text-body); flex: none; }
.icon-btn:active { transform: scale(.96); }
.topbar-right { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding-right: 22px; white-space: nowrap; }
.topbar-right .btn-text { font-size: var(--text-body); }
.topbar-right .btn-sm { height: 40px; box-shadow: none; }

.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: var(--safe-bottom); width: calc(100% - 32px); max-width: calc(var(--app-max) - 32px); height: var(--tabbar-h); padding: 0 6px; background: var(--color-surface); border-radius: 24px; box-shadow: var(--shadow-float); display: flex; z-index: 40; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--color-text-faint); font-size: var(--text-label); font-weight: 500; background: none; border: 0; }
.tab .lucide, .tab l-i { width: 24px; height: 24px; }
.tab.active { color: var(--color-primary); }
/* 시트·가이드가 열리면 탭바를 숨긴다 (시트가 항상 탭바 위) */
.app:has(.sheet-backdrop) .tabbar, .app:has(.guide-backdrop) .tabbar, .app:has(.splash) .tabbar { visibility: hidden; }

/* ── 글자 ── */
.t-display { font-size: var(--text-display); font-weight: 600; line-height: 1.3; letter-spacing: -.4px; }
.t-display-light { font-size: var(--text-display); font-weight: 400; line-height: 1.3; letter-spacing: -.4px; color: var(--color-text-body); }
.t-title { font-size: var(--text-title); font-weight: 600; line-height: 1.3; letter-spacing: -.3px; }
.t-heading { font-size: var(--text-heading); font-weight: 600; line-height: 1.3; }
.t-body { font-size: var(--text-body); }
.t-caption { font-size: var(--text-caption); color: var(--color-text-sub); }
.t-label { font-size: var(--text-label); font-weight: 600; }
.sub { color: var(--color-text-sub); }
.navy { color: var(--color-navy); }
.strong { color: var(--color-text); font-weight: 600; }
.danger-text { color: var(--color-danger); }
.success-text { color: var(--color-success); }
.center { text-align: center; }
.fine { font-size: var(--text-caption); color: var(--color-text-sub); line-height: 1.5; }
.pre { white-space: pre-line; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
.stack { display: flex; flex-direction: column; gap: var(--space-3); }
.stack-sm { display: flex; flex-direction: column; gap: var(--space-2); }
.stack-lg { display: flex; flex-direction: column; gap: 18px; }
.hrow { display: flex; align-items: center; gap: var(--space-2); }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.divider { height: 1px; background: var(--color-line); }
.half { flex: 1; }

/* ── 카드 ── */
.card { background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--space-4); border: 0; box-shadow: var(--shadow-card); }
.card-flush { padding: 0; overflow: hidden; }
.card-tint { background: var(--color-primary-tint); box-shadow: none; }
.card-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-primary-lg); }
.card-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 40px 20px; }
.pill-row { height: 50px; border-radius: 16px; background: var(--color-surface); box-shadow: 0 6px 18px rgba(40,60,100,.05); display: flex; align-items: center; gap: 10px; padding: 0 16px; font-size: var(--text-body); font-weight: 500; color: var(--color-text-body); border: 0; width: 100%; text-align: left; }
.pill-row .lucide, .pill-row l-i { width: 18px; height: 18px; color: var(--color-text-faint); }
.pill-row .hint { font-size: var(--text-caption); color: var(--color-text-faint); font-weight: 400; }
.pill-row .arrow { color: var(--color-primary); }
.sec-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 2px 0; }
.sec-head .t-heading { font-weight: 600; }
.sec-head .btn-text { font-size: var(--text-caption); font-weight: 500; }
.card-title { font-size: var(--text-heading); font-weight: 600; margin-bottom: var(--space-3); display: flex; align-items: center; gap: 8px; }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 50px; padding: 0 18px; border-radius: var(--radius-md); border: 1px solid transparent; font-size: 15px; font-weight: 600; white-space: nowrap; position: relative; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:active { transform: scale(.98); }
.btn-sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 12px; }
.btn-lg { height: 56px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-primary); }
.btn-primary:active, .btn-primary.pressed { background: var(--color-primary-pressed); }
.btn-secondary { background: var(--color-primary-tint); color: var(--color-primary); }
.btn-secondary:active, .btn-secondary.pressed { background: #E1E8FB; }
.btn-ghost { background: var(--color-neutral-tint); color: var(--color-text-body); }
.btn-danger { background: var(--color-neutral-tint); color: var(--color-danger); }
.btn-danger:active, .btn-danger.pressed { background: var(--color-danger-tint); }
.btn-text { background: none; border: 0; height: auto; padding: 0; color: var(--color-primary); font-size: var(--text-body); font-weight: 600; border-radius: 0; cursor: pointer; }
.btn-text.pressed { color: var(--color-primary-pressed); }
.btn-text.sub { color: var(--color-text-sub); font-weight: 400; font-size: var(--text-caption); }
.btn:disabled, .btn.disabled { background: var(--color-neutral-tint); color: var(--color-disabled); border-color: transparent; box-shadow: none; cursor: not-allowed; }
.on-primary .btn-secondary { background: #fff; color: var(--color-primary); }
.on-primary .btn-danger, .on-primary .btn-ghost { background: rgba(255,255,255,.16); color: #fff; }
.on-primary .t-caption, .on-primary .sub { color: rgba(255,255,255,.78); }
.btn-text:disabled, .btn-text.disabled { background: none; color: var(--color-text-faint); }
.btn.loading { color: transparent; pointer-events: none; }
.btn.loading l-i { visibility: hidden; }
.btn.loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn-secondary.loading::after, .btn-ghost.loading::after { border-color: rgba(45,91,215,.25); border-top-color: var(--color-primary); }
.btn-danger.loading::after { border-color: rgba(224,79,95,.25); border-top-color: var(--color-danger); }
.btn-sm.loading::after { width: 14px; height: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 소셜 */
.btn-social { height: 48px; width: 100%; border-radius: var(--radius-md); border: 1px solid transparent; display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; padding: 0 14px; font-size: var(--text-body); font-weight: 600; cursor: pointer; }
.btn-social .social-logo { width: 20px; height: 20px; display: block; }
.btn-social span { text-align: center; }
.btn-kakao { background: var(--color-kakao); color: rgba(0,0,0,.85); }
.btn-naver { background: var(--color-naver); color: #fff; }
.btn-google { background: #fff; color: #1F1F1F; border-color: var(--color-google-line); }
.btn-social.disabled, .btn-social:disabled { opacity: .45; cursor: not-allowed; filter: saturate(.6); }

/* ── 칩 ── */
.chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: var(--radius-pill); font-size: var(--text-label); font-weight: 600; white-space: nowrap; }
.chip-xs { height: 20px; padding: 0 6px; }
.chip-success { background: var(--color-success-tint); color: var(--color-success); }
.chip-warning { background: var(--color-warning-tint); color: var(--color-warning); }
.chip-danger  { background: var(--color-danger-tint); color: var(--color-danger); }
.chip-primary { background: var(--color-primary-tint); color: var(--color-primary); }
.chip-navy    { background: var(--color-navy-tint); color: var(--color-navy); }
.chip-neutral { background: var(--color-neutral-tint); color: var(--color-text-sub); }
.dday { font-size: var(--text-label); font-weight: 700; color: var(--color-primary); background: var(--color-primary-tint); padding: 0 6px; height: 20px; border-radius: 6px; display: inline-flex; align-items: center; }

/* ── 안내(Notice) ── */
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md); font-size: var(--text-caption); line-height: 1.5; color: var(--color-text); background: var(--color-neutral-tint); }
.notice .lucide, .notice l-i { width: 18px; height: 18px; margin-top: 1px; }
.notice b, .notice a { font-weight: 600; }
.notice-primary { background: var(--color-primary-tint); } .notice-primary l-i { color: var(--color-primary); }
.notice-success { background: var(--color-success-tint); } .notice-success l-i { color: var(--color-success); }
.notice-warning { background: var(--color-warning-tint); } .notice-warning l-i { color: var(--color-warning); }
.notice-danger  { background: var(--color-danger-tint); color: var(--color-danger); } .notice-danger l-i { color: var(--color-danger); }
.notice-neutral l-i { color: var(--color-text-sub); }
.notice > div { flex: 1; min-width: 0; }

/* ── 토스트 ── */
.toast-stack { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--app-max); padding: 0 20px; display: flex; flex-direction: column; gap: 8px; z-index: 90; pointer-events: none; }
.toast { background: var(--color-navy); color: #fff; font-size: 13px; font-weight: 500; padding: 13px 16px; border-radius: var(--radius-md); display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 16px rgba(22,48,95,.18); animation: fadeUp .25s ease both; }
.toast .lucide, .toast l-i { width: 18px; height: 18px; }
.toast-success l-i { color: #7FE0B6; }
.toast-danger l-i { color: #FF9A9A; }

/* ── 입력 ── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: var(--text-caption); font-weight: 600; }
.field-label em { color: var(--color-danger); font-style: normal; margin-left: 2px; }
.field-hint { font-size: var(--text-caption); color: var(--color-text-sub); }
.field-error { font-size: var(--text-caption); color: var(--color-danger); }
.input, .select { height: 50px; width: 100%; padding: 0 16px; border: 1px solid var(--color-line-strong); border-radius: var(--radius-md); background: var(--color-surface); font-size: var(--text-body); outline: none; transition: border-color .12s, box-shadow .12s; }
.input::placeholder { color: var(--color-text-faint); }
.input:focus, .select:focus, .input.focus { border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(45,91,215,.10); }
.input.error { border-color: var(--color-danger); }
.input:disabled, .input.readonly, .input:read-only, .select:disabled { background: var(--color-neutral-tint); color: var(--color-text-sub); }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7684' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.input-row .btn { height: 50px; box-shadow: none; }
.datetime-row { display: grid; grid-template-columns: 1fr 120px; gap: 8px; }
.datetime-row .input, .datetime-row .select { padding: 0 12px; }
textarea.input { height: auto; min-height: 140px; padding: 12px 14px; resize: vertical; line-height: 1.5; }

/* 체크 행 */
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 16px; border: 1px solid var(--color-line); border-radius: 16px; background: var(--color-surface); align-items: start; cursor: pointer; text-align: left; width: 100%; }
.check.on { border-color: var(--color-primary); background: var(--color-primary-tint); }
.check.off-disabled { opacity: .5; cursor: not-allowed; }
.check .box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--color-disabled); background: #fff; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.check.on .box { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.check .box .lucide, .check .box l-i { width: 14px; height: 14px; }
.check-title { font-size: var(--text-body); font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.check-desc { font-size: var(--text-caption); color: var(--color-text-sub); margin-top: 2px; }
.check.all { border-color: transparent; background: var(--color-neutral-tint); }
.check.all.on { background: var(--color-primary-tint); }
/* 토글 */
.toggle { width: 44px; height: 26px; border-radius: 13px; background: var(--color-disabled); position: relative; flex: none; border: 0; padding: 0; cursor: pointer; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle.on { background: var(--color-primary); } .toggle.on::after { left: 21px; }
.toggle:disabled { opacity: .6; cursor: wait; }

/* 세그먼트 */
.segs { display: flex; gap: 4px; padding: 4px; background: #E9ECF2; border-radius: 16px; }
.seg { flex: 1; height: 36px; border: 0; background: none; border-radius: 12px; font-size: var(--text-caption); font-weight: 600; color: var(--color-text-sub); display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 6px; }
.seg.active { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-1); }
.seg .count { font-size: var(--text-label); color: var(--color-primary); }

/* 목록 행 */
.list { display: flex; flex-direction: column; }
.item { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 16px; min-height: 56px; border-top: 1px solid var(--color-line); background: transparent; text-align: left; width: 100%; border-left: 0; border-right: 0; border-bottom: 0; }
.list > .item:first-child { border-top: 0; }
.item.noblock { grid-template-columns: 1fr auto; }
.item.tap { cursor: pointer; }
.date-block { width: 48px; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 14px; background: var(--color-primary-tint); line-height: 1.1; flex: none; }
.date-block .d { font-size: 19px; font-weight: 600; color: var(--color-primary); display: block; order: 2; }
.date-block .m { font-size: var(--text-label); font-weight: 500; color: var(--color-primary); display: block; order: 1; }
.on-primary .date-block { background: #fff; }
.date-block.past { opacity: .6; }
.item-title { font-size: var(--text-body); font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.item-sub { font-size: var(--text-caption); color: var(--color-text-sub); margin-top: 2px; }
.item-chips { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.item-right { display: flex; align-items: center; gap: 8px; }
.item-right .lucide, .item-right l-i { color: var(--color-text-faint); }
.kv-row { display: flex; align-items: baseline; gap: 8px; }
.kv-row .k { font-size: var(--text-caption); color: var(--color-text-sub); width: 28px; flex: none; }
.kv-row .v { font-size: var(--text-body); font-weight: 600; }

/* 키-값 */
.kv { display: grid; grid-template-columns: 88px 1fr; row-gap: 10px; column-gap: 12px; font-size: var(--text-body); margin: 0; }
.kv dt { color: var(--color-text-sub); margin: 0; }
.kv dd { margin: 0; font-weight: 500; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* 달력 */
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; margin-bottom: 12px; }
.cal-head .t-heading { font-size: 14px; font-weight: 600; }
.cal-nav { width: 28px; height: 28px; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1px var(--color-line-strong); background: var(--color-surface); display: flex; align-items: center; justify-content: center; color: var(--color-text-body); }
.cal-nav .lucide, .cal-nav l-i { width: 15px; height: 15px; }
.cal-nav:disabled { opacity: .4; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); row-gap: 2px; }
.cal-dow { text-align: center; font-size: var(--text-label); font-weight: 500; color: var(--color-text-faint); height: 26px; line-height: 26px; }
.cell { height: 54px; margin: 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: none; border: 0; border-radius: 12px; position: relative; cursor: pointer; transition: background .12s; padding: 0; }
.cell .n { font-size: 14px; font-weight: 600; line-height: 1.1; color: var(--color-text-body); }
.cell .badge { font-size: 10px; line-height: 12px; font-weight: 600; color: var(--color-primary); }
.cell.avail { background: var(--color-primary-tint); }
.cell.avail .n, .cell.avail .badge { color: var(--color-primary); }
.cell.full { background: var(--color-danger-tint); }
.cell.full .n { color: #B23A48; }
.cell.full .badge { color: var(--color-danger); }
.cell.off { cursor: default; background: none; } .cell.off .n { color: var(--color-disabled); font-weight: 500; } .cell.off .badge, .cell.off .dot { display: none; }
.cell.today { box-shadow: inset 0 0 0 1.5px var(--color-text-faint); }
.cell.selected { background: var(--color-primary); box-shadow: var(--shadow-primary); }
.cell.selected .n, .cell.selected .badge { color: #fff; }
.cell.mine { box-shadow: inset 0 0 0 2px var(--color-accent); }
.cell.mine.selected { box-shadow: inset 0 0 0 2px var(--color-accent), var(--shadow-primary); }
.cell .dot, .legend .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--color-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 8-2 2-1.5-3.7A2 2 0 0 0 15.6 5H8.4a2 2 0 0 0-1.9 1.3L5 10 3 8'/%3E%3Crect width='18' height='8' x='3' y='10' rx='2'/%3E%3Cpath d='M5 18v2M19 18v2'/%3E%3C/svg%3E") center / 10px 10px no-repeat; box-shadow: 0 0 0 2px #fff; }
.cell .dot { position: absolute; top: -5px; right: -5px; }
.legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; font-size: var(--text-label); color: var(--color-text-sub); margin-top: 10px; align-items: center; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legend .sw.avail { background: var(--color-primary-tint); box-shadow: inset 0 0 0 1px rgba(45,91,215,.35); }
.legend .sw.full { background: var(--color-danger-tint); box-shadow: inset 0 0 0 1px rgba(224,79,95,.35); }
.legend .dot { display: inline-block; box-shadow: none; }

/* 진행 단계 */
.steps { display: flex; align-items: center; gap: 6px; }
.step { display: flex; align-items: center; gap: 6px; font-size: var(--text-caption); color: var(--color-text-sub); white-space: nowrap; }
.step .num { width: 24px; height: 24px; border-radius: 50%; background: var(--color-neutral-tint); color: var(--color-text-sub); font-size: var(--text-label); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step.current { color: var(--color-text); font-weight: 600; } .step.current .num { background: var(--color-primary); color: #fff; }
.step.done .num { background: var(--color-primary-tint); color: var(--color-primary); } .step.done .num .lucide, .step.done .num l-i { width: 14px; height: 14px; }
.step-line { flex: 1; height: 1px; background: var(--color-line); }
.step-head { display: flex; flex-direction: column; gap: 6px; padding: 8px 0 4px; }
.step-head .t-title { color: var(--color-navy); }
.optional { font-size: 11px; font-weight: 600; color: var(--color-text-sub); background: var(--color-neutral-tint); padding: 2px 8px; border-radius: 6px; margin-left: 6px; vertical-align: middle; }

/* 스피너·빈 상태 */
.spinner { width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid #DCE3F7; border-top-color: var(--color-primary); animation: spin .8s linear infinite; flex: none; display: inline-block; }
.spinner.lg { width: 40px; height: 40px; border-width: 3px; }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; }
.loading-row { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 32px 0; color: var(--color-text-sub); font-size: var(--text-caption); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 20px; gap: 6px; }
.empty .lucide, .empty l-i { width: 32px; height: 32px; color: var(--color-disabled); margin-bottom: 6px; }
.empty-title { font-size: var(--text-body); font-weight: 600; }
.empty-desc { font-size: var(--text-caption); color: var(--color-text-sub); }

/* 바텀시트 (앱 컬럼 너비에 맞춰 고정) */
.sheet-backdrop { position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--app-max); background: rgba(26,29,41,.32); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: flex-end; z-index: 70; }
.sheet { width: 100%; background: var(--color-surface); border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; box-shadow: 0 -10px 40px rgba(26,29,41,.12); padding: 10px 22px calc(24px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 12px; max-height: 92%; overflow: auto; animation: sheetUp .22s ease both; }
@keyframes sheetUp { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--color-line-strong); margin: 0 auto 8px; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.sheet-title { font-size: var(--text-heading); font-weight: 600; }
.sheet-close { width: 32px; height: 32px; border: 0; background: var(--color-neutral-tint); display: flex; align-items: center; justify-content: center; color: var(--color-text-sub); border-radius: 50%; }
.sheet-close.hidden { visibility: hidden; }
.sheet .list { margin: 0 -22px; border-top: 1px solid var(--color-line); }

/* 표·타일 */
.table-wrap { overflow-x: auto; border: 0; box-shadow: var(--shadow-card); border-radius: var(--radius-lg); background: var(--color-surface); }
table.table { border-collapse: collapse; font-size: var(--text-caption); white-space: nowrap; min-width: 100%; }
.table th { text-align: left; font-weight: 600; color: var(--color-text-sub); padding: 10px 12px; border-bottom: 1px solid var(--color-line); background: var(--color-neutral-tint); font-size: var(--text-label); }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--color-line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.code { background: var(--color-navy); color: #DCE6FB; font: 13px/1.5 ui-monospace, "SF Mono", Menlo, monospace; padding: 12px 14px; border-radius: var(--radius-md); white-space: pre; overflow-x: auto; margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile { background: var(--color-surface); border: 0; box-shadow: var(--shadow-card); border-radius: 18px; padding: 12px 14px; }
.tile .num { font-size: var(--text-title); font-weight: 600; color: var(--color-navy); line-height: 1.3; }
.tile .lbl { font-size: var(--text-label); color: var(--color-text-sub); font-weight: 600; margin-top: 2px; }

/* 히어로(로그인·가입) */
.hero { padding: 72px 22px 28px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.hero.compact { padding-top: 40px; padding-bottom: 16px; }
.hero img { display: block; }
.or { display: flex; align-items: center; gap: 12px; font-size: var(--text-caption); color: var(--color-text-sub); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--color-line); }
.close-fab { position: absolute; top: 14px; left: 0; z-index: 5; }

/* ── 다가오는 내 예약 카드 (홈·내 예약) ── */
.bks { display: flex; flex-direction: column; gap: 12px; }
.bk { display: flex; gap: 14px; padding: 16px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-card); text-align: left; border: 0; width: 100%; }
.bks > .bk:first-child { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-primary-lg); }
.bk .t1 { font-size: 14px; font-weight: 600; } .bk .t2 { font-size: 12px; color: var(--color-text-sub); } .bk .t3 { font-size: 12px; color: var(--color-text-faint); }
.bks > .bk:first-child .t2, .bks > .bk:first-child .t3 { color: rgba(255,255,255,.78); }
.bks > .bk:first-child .date-block { background: #fff; }
.bks > .bk:first-child .btn-secondary { background: #fff; color: var(--color-primary); }
.bks > .bk:first-child .btn-danger { background: rgba(255,255,255,.16); color: #fff; }
.bks > .bk:first-child .spinner { border-color: rgba(255,255,255,.3); border-top-color: #fff; }
.bks > .bk:first-child .chip { background: rgba(255,255,255,.18); color: #fff; }
.bk-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bk-actions { display: flex; gap: 8px; margin-top: 10px; }
.bk-actions .btn { flex: 1; }
.bk-busy { display: flex; align-items: center; gap: 6px; margin-top: 8px; }

/* ── 사용방법 가이드 ── */
.guide-backdrop { position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--app-max); background: rgba(26,29,41,.7); z-index: 60; }
.guide-backdrop.clear { background: transparent; pointer-events: none; }
.guide-card { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: var(--app-max); background: #fff; border-radius: 28px 28px 0 0; padding: 20px 20px 28px; z-index: 62; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 -8px 32px rgba(0,0,0,.2); max-height: 90vh; overflow: auto; }
.guide-card .btn-row { display: flex; gap: 8px; margin-top: 4px; }
.guide-card .btn-row .btn-ghost { flex: 1; } .guide-card .btn-row .btn-primary { flex: 2; }
@media (max-height: 700px) { .guide-card .mini { zoom: .82; } .guide-card { gap: 10px; padding-top: 14px; } }
.guide-inline { position: relative; z-index: 62; background: #fff; border-radius: 22px; padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 96px; box-shadow: 0 8px 32px rgba(0,0,0,.25); }
.guide-inline::before { content: ""; position: absolute; top: -7px; left: 50%; margin-left: -7px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.guide-inline .btn-row { display: flex; gap: 8px; } .guide-inline .btn-row .btn { height: 44px; } .guide-inline .btn-row .btn-ghost { flex: 1; } .guide-inline .btn-row .btn-primary { flex: 2; }
.guide-dots { display: flex; gap: 6px; }
.guide-dots i { width: 6px; height: 6px; border-radius: 50%; background: #D5DBE5; display: block; transition: width .2s; }
.guide-dots i.on { background: var(--color-primary); width: 18px; border-radius: 3px; }
.guide-head { display: flex; align-items: center; gap: 12px; }
.spot { position: relative; z-index: 61; box-shadow: 0 0 0 4px rgba(255,255,255,.95), 0 0 0 9999px rgba(26,29,41,.7); }
.mini { background: var(--color-neutral-tint); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.mini .fake { height: 12px; border-radius: 6px; background: #E1E6EF; }
.mini .hl { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 8px; }
.mini .input { height: 32px; font-size: 13px; padding: 0 10px; background: #fff; }
.mini .field { gap: 2px; } .mini .field-label { font-size: 11px; }
.mini.form { gap: 6px; pointer-events: none; }
.mini .fixed-head { background: #fff; border-radius: 10px; padding: 6px 10px; opacity: .55; }
.cs-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--color-primary-tint); color: var(--color-primary); display: flex; align-items: center; justify-content: center; flex: none; }
.cs-ic.danger { background: var(--color-danger-tint); color: var(--color-danger); }

/* ── 고객센터 ── */
.cs-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-top: 1px solid var(--color-line); cursor: pointer; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; }
.cs-row:first-child { border-top: 0; }
.cs-row .chev { color: #A3ABB8; }

/* ── 마이 ── */
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--color-navy-tint); color: var(--color-navy); display: flex; align-items: center; justify-content: center; flex: none; }
.social-mark { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; border: 1px solid transparent; font-size: var(--text-label); font-weight: 700; }
.social-mark.kakao { background: #FEE500; color: #000; }
.social-mark.naver { background: #03C75A; color: #fff; }
.social-mark.google { background: #fff; color: #1F1F1F; border-color: #DADCE0; }
.result-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--color-success-tint); color: var(--color-success); display: flex; align-items: center; justify-content: center; }

/* ── 인트로 ── */
.intro { min-height: 100vh; display: flex; flex-direction: column; background: #fff; position: relative; }
.intro-img { position: relative; height: 56vh; min-height: 340px; max-height: 480px; background: #E3E7EE; border-radius: 0 0 32px 32px; overflow: hidden; flex: none; }
.intro-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.intro-skip { position: absolute; top: 16px; right: 16px; z-index: 3; height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(255,255,255,.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13px; font-weight: 500; color: #3A4152; cursor: pointer; }
.intro-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 30px 26px 0; animation: fadeUp .45s ease both; }
.intro-step { font-size: 12px; font-weight: 600; color: var(--color-primary); letter-spacing: .3px; }
.intro-title { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.4; letter-spacing: -.4px; color: var(--color-text); text-wrap: pretty; word-break: keep-all; }
.intro-title em { font-style: normal; color: var(--color-primary); }
.intro-desc { margin: 0; font-size: 15px; line-height: 1.6; color: var(--color-text-sub); text-wrap: pretty; word-break: keep-all; }
.intro-foot { padding: 20px 22px 28px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.intro-dots { display: flex; gap: 6px; }
.intro-dots i { width: 6px; height: 6px; border-radius: 3px; background: #D5DBE5; display: block; transition: width .2s; }
.intro-dots i.on { width: 20px; background: var(--color-primary); }
.intro-cal { position: absolute; left: 50%; top: 52%; transform: translate(-50%,-50%); width: 296px; background: #fff; border-radius: 22px; padding: 14px 14px 12px; box-shadow: 0 20px 40px rgba(26,29,41,.18); z-index: 2; }
.intro-cal .head { display: flex; justify-content: space-between; align-items: center; padding: 0 2px 10px; }
.intro-cal .head b { font-size: 13px; font-weight: 600; color: #1A1D29; }
.intro-cal .head span { font-size: 10px; color: #9AA1B2; }
.intro-cal .g { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 4px; text-align: center; }
.intro-cal .w { font-size: 10px; color: #9AA1B2; padding-bottom: 2px; }
.intro-cal .c { height: 32px; border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #3A4152; line-height: 1.1; }
.intro-cal .c small { font-size: 8.5px; font-weight: 600; }
.intro-cal .c.a { background: #EEF2FD; color: #2D5BD7; }
.intro-cal .c.f { background: #FDECEE; color: #B23A48; }
.intro-cal .c.s { background: #2D5BD7; color: #fff; box-shadow: 0 6px 14px rgba(45,91,215,.35); }
.intro-ticket { position: absolute; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: 22px; z-index: 3; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: 0 12px 28px rgba(26,29,41,.16); white-space: nowrap; animation: fadeUp .5s ease .35s both; }
.intro-ticket .ok { width: 28px; height: 28px; border-radius: 50%; background: #2D5BD7; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.intro-ticket .ok l-i { width: 16px; height: 16px; }
.intro-ticket b { font-size: 13px; font-weight: 600; color: #1A1D29; display: block; }
.intro-ticket span.s { font-size: 11px; color: #6F7789; display: block; }

/* ── 스플래시 ── */
@keyframes carRun { 0% { transform: translateX(-80px); } 100% { transform: translateX(360px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }
.splash { position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--app-max); background: var(--color-primary); z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; color: #fff; animation: splashOut .6s ease 2.6s forwards; }
.splash .road { width: 300px; height: 56px; position: relative; overflow: hidden; border-bottom: 1.5px dashed rgba(255,255,255,.35); }
.splash .car { position: absolute; left: 0; bottom: 6px; width: 44px; height: 44px; color: #fff; animation: carRun 1.5s cubic-bezier(.45,0,.2,1) .25s both; }
.splash .car l-i { width: 44px; height: 44px; }
.splash .txt { text-align: center; display: flex; flex-direction: column; gap: 6px; animation: fadeUp .7s ease .9s both; }
.splash .txt .t-caption { color: rgba(255,255,255,.75); }
.splash .txt img { height: 40px; width: auto; margin: 4px auto 0; display: block; filter: brightness(0) invert(1); }
@media (prefers-reduced-motion: reduce) {
  .splash .car, .intro-body, .intro-ticket, .toast, .sheet { animation-duration: 0s !important; animation-delay: 0s !important; }
  .splash .car { transform: translateX(128px); }
}
