/* 맵도사 — 구름바다 위 항공권: 남색 잉크, 하늘색·빨강 포인트, 손글씨 제목 */
:root {
  --bg: #f1f5fa;            /* 구름 아래 옅은 하늘빛 */
  --sky-top: #9fcbf2;       /* 화면 맨 위 하늘 */
  --sky-low: #dcecfb;       /* 구름바다 바로 위 하늘 */
  --surface: #ffffff;
  --paper: #ffffff;
  --ink: #13294b;
  --muted: #6f7a8c;
  --line: #e2e8f0;
  --line-strong: #c9d3e2;
  --primary: #2f74f0;       /* 하늘색 */
  --primary-2: #6fa6ff;
  --primary-deep: #13294b;  /* 남색 */
  --primary-soft: #e3edff;
  --accent: #ff7a59;        /* 하트 */
  --accent-soft: #ffeee8;
  --sky: #3a86ff;
  --plus: #1e9e6a;
  --minus: #e5484d;
  --red: #d64545;           /* 디데이·비행기 */
  --band: #13294b;          /* 항공권 윗띠 */
  --band-tex: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%27320%27%20height=%27320%27%3E%3Cfilter%20id=%27f%27%3E%3CfeTurbulence%20type=%27fractalNoise%27%20baseFrequency=%27.012%20.35%27%20numOctaves=%273%27%20seed=%277%27%20stitchTiles=%27stitch%27/%3E%3CfeColorMatrix%20values=%270%200%200%200%201%200%200%200%200%201%200%200%200%200%201%200%200%200%200.16%20-0.056%27/%3E%3C/filter%3E%3Cfilter%20id=%27s%27%3E%3CfeTurbulence%20type=%27fractalNoise%27%20baseFrequency=%27.8%27%20numOctaves=%272%27%20stitchTiles=%27stitch%27/%3E%3CfeColorMatrix%20values=%270%200%200%200%201%200%200%200%200%201%200%200%200%200%201%20-0.09%200%200%200.09%200%27/%3E%3C/filter%3E%3Crect%20width=%27100%25%27%20height=%27100%25%27%20filter=%27url%28%23f%29%27/%3E%3Crect%20width=%27100%25%27%20height=%27100%25%27%20filter=%27url%28%23s%29%27/%3E%3C/svg%3E"); /* 남색 띠의 종이 결 */
  --radius: 18px;
  --shadow: 0 1px 2px rgba(19, 41, 75, .05), 0 6px 18px rgba(19, 41, 75, .06);
  --glow: 0 8px 20px rgba(19, 41, 75, .18);
  --sans: 'Pretendard Variable', Pretendard, -apple-system, sans-serif;  /* 본문 */
  --display: 'Gaegu', 'Pretendard Variable', Pretendard, -apple-system, sans-serif;  /* 제목: 손글씨 */
  --body: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: light;  /* 지금은 밝은 모드만 써요 */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  /* 비행기에서 내려다본 하늘: 위는 파란 하늘, 그 아래로 구름바다가 화면 폭만큼 이어집니다 */
  background:
    url(sky-plane.svg) center top / min(100%, 560px) auto no-repeat,
    url(cloud-sea.svg) center -34px / 400px 380px repeat-x,
    linear-gradient(180deg, var(--sky-top) 0, var(--sky-low) 256px) center top / 100% 256px no-repeat,
    var(--bg);
  color: var(--ink);
  font: 16px/1.45 var(--body);
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  word-break: keep-all;       /* 한국어 문장이 낱말 중간에서 끊기지 않게 */
  overflow-wrap: break-word;  /* 아주 긴 링크·아이디는 그래도 줄바꿈 */
  text-wrap: pretty;          /* 마지막 줄에 낱말 하나만 덩그러니 남지 않게 (지원하는 브라우저에서) */
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
a { color: inherit; text-decoration: none; }
button:active, a:active { transform: scale(.98); }
#app { max-width: 560px; margin: 0 auto; min-height: 100dvh; }

.muted { color: var(--muted); }
.small { font-size: 14px; }
.xsmall { font-size: 12px; }
.center { text-align: center; }
.splash { min-height: 100dvh; display: grid; place-items: center; animation: float 2s ease-in-out infinite; }
.splash svg, .splash img { border-radius: 16px; }
.boot-error { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; }
.boot-error small { color: var(--muted); font-size: 13px; word-break: break-all; }
.boot-error button { margin-top: 6px; padding: 12px 20px; border-radius: 14px; background: var(--primary-deep); color: #fff; font: inherit; font-weight: 700; border: 0; }

/* ---------- 헤더 ---------- */
.hero { position: relative; color: var(--ink); padding: calc(env(safe-area-inset-top) + 10px) 20px 18px; }
.hero-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.logo { display: block; flex-shrink: 0; }
.hero-bar .logo { border-radius: 10px; }
.hero-avatar .avatar { width: 38px; height: 38px; font-size: 15px; box-shadow: 0 0 0 2px var(--surface), var(--shadow); }
.hero-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.hero-chip { padding: 7px 12px; border-radius: 99px; background: var(--primary-deep); color: #fff; font: 600 13px/1 var(--mono); letter-spacing: .06em; }
.hero-sub { margin: 18px 0 4px; font-size: 14px; color: var(--muted); }
.hero-title { font-family: var(--display); font-weight: 700; font-size: 33px; line-height: 1.15; letter-spacing: 0; margin: 0; word-break: keep-all; }
.hero-big { font-size: 50px; color: var(--red); }

/* 여행 화면 위쪽: 항공권 한 장. 절취선 양 끝의 홈은 mask로 뚫어 하늘 배경이 비쳐요. */
/* 항공권 종이: 미색 바탕에 은은한 섬유 결 + 살짝 도톰한 표면 */
.trip-pass, .ticket, .inapp-pass {
  --surface: #fcfbf7; --line: #e8e4da; --line-strong: #d3cbbb;
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='b' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.4' numOctaves='3' stitchTiles='stitch'/%3E%3CfeDiffuseLighting lighting-color='%23fff' surfaceScale='.9'%3E%3CfeDistantLight azimuth='45' elevation='62'/%3E%3C/feDiffuseLighting%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .3 0 0 0 0 .32 -.16 0 0 0 .16'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .35' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .32 0 0 0 0 .28 0 0 0 .13 -.02'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"), #fcfbf7;
}
/* 항공권 글씨: 타자기체 */
.trip-pass, .ticket, .inapp-pass { --mono: 'Courier Prime', 'IBM Plex Mono', ui-monospace, monospace; }
.trip-pass .rt-code, .ticket .rt-code, .trip-pass .f-val, .ticket .f-val { font-weight: 700; }
.trip-pass { margin-top: 14px; filter: drop-shadow(0 6px 14px rgba(19, 41, 75, .12)); }
.tp-top, .tp-bottom { background: var(--paper); }
.tp-top {
  border-radius: 16px 16px 0 0; overflow: hidden;
  -webkit-mask: radial-gradient(circle 8px at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 8px at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.tp-bottom {
  padding: 10px 14px 12px; border-radius: 0 0 16px 16px; border-top: 1.5px dashed var(--line-strong);
  -webkit-mask: radial-gradient(circle 8px at 0 0, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 8px at 0 0, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
}
.trip-pass .rt-name.big { font-size: 30px; }
.trip-pass .ticket-fields { padding-bottom: 14px; }

.hero-crew { display: flex; align-items: center; gap: 8px; }
.crew-count { font-size: 13px; font-weight: 700; color: var(--muted); }
.crew { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; background: var(--bg); }
.crew-add {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 99px;
  background: var(--primary-deep); color: #fff; font-size: 13px; font-weight: 700;
}

.page { padding: 4px 16px 40px; }
.page.with-nav { padding-bottom: calc(160px + env(safe-area-inset-bottom)); } /* 마지막 항목이 + 버튼에 가리지 않게 */


/* ---------- 공통 ---------- */
.card { display: block; width: 100%; background: var(--surface); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 20px; border-radius: 16px;
  background: var(--surface); font-weight: 700; text-align: center;
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn.primary { background: var(--primary-deep); color: #fff; box-shadow: var(--glow); }
.btn.danger { color: var(--minus); margin-top: 16px; box-shadow: none; background: transparent; }
.btn.block { width: 100%; }
.btn.big { height: 56px; font-size: 17px; width: 100%; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 700; vertical-align: middle; }
.section-title { font-size: 15px; font-weight: 800; margin: 0 0 10px; }
.section-title.pad { margin: 18px 4px 12px; }
/* 여행이 많아도 스크롤 없이 누르게, 새 여행 버튼은 '내 여행' 제목 옆에 둬요 */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 4px 12px; }
.section-head .section-title { margin: 0; }
.empty { text-align: center; color: var(--muted); padding: 48px 20px 32px; }
.empty b { color: var(--ink); font-size: 17px; }
.empty-icon { font-size: 52px; margin-bottom: 10px; animation: float 3s ease-in-out infinite; }
.empty .btn { margin-top: 12px; }
.demo-banner { margin: 8px 0 4px; padding: 10px 14px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 600; }
.demo-note { font-size: 13px; color: var(--muted); max-width: 320px; margin: 16px auto 0; text-align: center; }

.avatar {
  --h: 200;
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-grid; place-items: center; flex-shrink: 0;
  font-size: 13px; font-weight: 600; color: #fff;
  background: hsl(var(--h) 55% 52%); object-fit: cover;
}
/* 이름 글씨를 글꼴의 위아래 여백과 상관없이 동그라미 정중앙에 (대문자 높이~바닥선 기준으로 맞춰요) */
.avatar, .avatar > small { line-height: 1; text-box: trim-both cap alphabetic; }
/* 두 글자 이름은 조금 작게 */
.avatar > small { font-size: .9em; letter-spacing: -.04em; }
.avatar.xs { width: 22px; height: 22px; font-size: 10px; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg { width: 52px; height: 52px; font-size: 22px; }
.avatars { display: inline-flex; }
.avatars .avatar { box-shadow: 0 0 0 2px var(--surface); }
.avatars .avatar + .avatar { margin-left: -4px; } /* 두 글자 이름(가빈)이 다음 동그라미에 가려지지 않게 조금만 겹쳐요 */

/* ---------- 로그인 ---------- */
.login { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px calc(32px + env(safe-area-inset-bottom)); text-align: center; }
.login-hero { display: flex; flex-direction: column; align-items: center; }
.login:has(.login-hero) { padding-top: 56px; } /* 처음 화면: 로고부터 버튼까지 한 덩어리로 화면 가운데에 */
.brand-wrap { position: relative; display: inline-block; margin-top: 30px; }
/* 좁은 휴대폰(폭 380 이하)에서는 말풍선을 조금 작게, 이름은 살짝 왼쪽으로 옮겨 화면 밖으로 안 나가요 */
@media (max-width: 380px) { .brand-wrap { left: -16px; } .slogan.bubble { font-size: 14px; padding: 15px 19px; top: -50px; } }
/* 말풍선: '사'의 오른쪽 위 45도 대각선으로 작은 점 → 큰 점 → 파란 구름이 이어져요. 이름을 다 쓰고 나면 차례로 톡톡 튀어나와요 */
.slogan.bubble { position: absolute; left: calc(100% + 18px); top: -58px; margin: 0; padding: 18px 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 84'%3E%3Cg fill='%232f74f0'%3E%3Ccircle cx='22' cy='45' r='18'/%3E%3Ccircle cx='40' cy='26' r='19'/%3E%3Ccircle cx='60' cy='21' r='19'/%3E%3Ccircle cx='80' cy='26' r='19'/%3E%3Ccircle cx='98' cy='45' r='18'/%3E%3Ccircle cx='80' cy='62' r='18'/%3E%3Ccircle cx='60' cy='64' r='18'/%3E%3Ccircle cx='40' cy='62' r='18'/%3E%3Crect x='24' y='28' width='72' height='40'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; color: #fff; font-size: 16px; line-height: 1.2; letter-spacing: -.02em; white-space: nowrap; text-align: center; transform: rotate(-6deg) scale(0); transform-origin: 20% 90%; }
.brand-wrap .dot { position: absolute; border-radius: 50%; background: var(--primary); transform: scale(0); }
.brand-wrap .d1 { width: 7px; height: 7px; left: 100%; top: 8px; }
.brand-wrap .d2 { width: 12px; height: 12px; left: calc(100% + 9px); top: -5px; }
.brand-wrap.pop .dot { animation: dot-pop .28s cubic-bezier(.34, 1.56, .64, 1) both; }
.brand-wrap.pop .d2 { animation-delay: .1s; }
.brand-wrap.pop .slogan.bubble { animation: bubble-pop .7s ease-out .2s both; } /* 말랑 착지: 나타나며 한 번 눌렸다 펴지고 멈춰요 */
@keyframes dot-pop { 0% { transform: scale(0); } 60% { transform: scale(1.5); } 100% { transform: scale(1); } }
@keyframes bubble-pop { 0% { transform: rotate(-6deg) scale(0); } 45% { transform: rotate(-6deg) scale(1.08, .94); } 70% { transform: rotate(-6deg) scale(.97, 1.03); } 100% { transform: rotate(-6deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .brand-wrap.pop .dot { animation: none; transform: scale(1); } .brand-wrap.pop .slogan.bubble { animation: none; transform: rotate(-6deg) scale(1); } }
.login-logo { margin-bottom: 20px; animation: float 3s ease-in-out infinite; }
.login-logo .logo { border-radius: 26px; box-shadow: 0 18px 36px rgba(19, 41, 75, .25); }
.brand { font-family: var(--display); font-weight: 700; font-size: 46px; margin: 0; color: var(--primary-deep); }
/* 처음 화면 이름: 맵도사 → (타자) → map도사. 커서는 자리를 차지하지 않게 겹쳐 그려요. */
.brand .typebox { display: inline-block; white-space: nowrap; text-align: left; }
.brand .tw { position: relative; display: inline-block; vertical-align: baseline; }
.brand .t { display: inline-block; vertical-align: baseline; } /* 글자 기준선에 맞춰야 iPhone에서도 map과 도사가 한 줄에 앉아요 */
.brand .car { position: absolute; right: -2px; top: 18%; width: 3px; height: 68%; border-radius: 2px; background: var(--primary); opacity: 0; transition: opacity .4s; }
.brand .car.solid { opacity: 1; transition: none; }
.brand .car.blink { opacity: 1; animation: caret-blink 1s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }
.slogan { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--primary); margin: 2px 0 0; }
.tagline { color: var(--muted); margin: 4px 0 0; }
/* 처음 화면: 앱 안 탭(일정·장소·정산)과 같은 아이콘으로, 정산까지 된다는 걸 한눈에 보여줘요 */
.login-hero + .login-form { margin-top: 36px; }
.feature-chips { display: flex; justify-content: center; gap: 6px; margin: 12px 0 0; }
.feature-chips span { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px 5px 9px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; color: var(--primary-deep); }
.feature-chips svg { color: var(--primary); }
.login-form { width: 100%; max-width: 330px; margin-top: 44px; display: grid; gap: 10px; }
.login-form input { background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.inapp-pass { width: 100%; max-width: 330px; margin-top: 28px; border-radius: 18px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 10px 26px rgba(19, 41, 75, .14); text-align: left; }
.inapp-pass-band { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; background: var(--primary-deep); color: #fff; font: 700 11px/1 var(--mono); letter-spacing: .14em; }
.inapp-pass-band span:last-child { font-family: inherit; font-weight: 600; letter-spacing: 0; opacity: .75; }
.inapp-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 8px; padding: 14px 16px 12px; }
.inapp-route div { min-width: 0; }
.inapp-route div:last-child { text-align: right; }
.inapp-route small { display: block; margin-bottom: 3px; font: 700 10px/1 var(--mono); letter-spacing: .14em; color: #8a8170; }
.inapp-route b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 clamp(16px, 5.4vw, 20px)/1.1 var(--mono); color: var(--ink); }
.inapp-route .ic { margin-bottom: 2px; color: var(--red); }
.inapp-pass-body { display: grid; gap: 6px; padding: 14px 16px 16px; border-top: 2px dashed var(--line-strong); }
.inapp-pass-body > b { font-size: 16px; color: var(--ink); }
.inapp-pass-body > p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: var(--muted); word-break: keep-all; }
.inapp-pass-body > .inapp-help { margin: 6px 0 0; text-align: center; font-size: 13px; }
.inapp-steps { margin: 0; padding: 12px 14px 12px 32px; border-radius: 12px; background: var(--surface); font-size: 15px; line-height: 1.5; color: var(--ink); }
.inapp-steps li + li { margin-top: 8px; }
.inapp-steps .ic-more { font-size: 15px; }
/* 인스타 ••• 버튼이 있는 오른쪽 위를 가리키는 화살표 */
.inapp-arrow { position: fixed; top: 8px; right: 12px; color: var(--primary); animation: inapp-point 1.2s ease-in-out infinite; pointer-events: none; }
@keyframes inapp-point { 50% { translate: 4px -4px; } }
.home-first { width: 100%; max-width: 330px; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); text-align: center; }
.home-first > b { font-size: 14px; color: var(--ink); }
.home-first > p { margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.home-first > .home-first-steps { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.notice { background: var(--primary-soft); color: var(--primary); padding: 10px 14px; border-radius: 14px; font-size: 14px; font-weight: 700; margin-top: 20px; }
.g { font-weight: 900; background: #fff; color: #4285f4; width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; }

/* ---------- 첫 화면: 여권 ---------- */
.passport {
  position: relative; margin-top: 6px; padding: 18px 20px 20px; border-radius: 22px;
  background: var(--primary-deep); color: #f3fbf6;
  box-shadow: 0 14px 34px rgba(19, 41, 75, .28);
}
.passport::before { content: ''; position: absolute; inset: 8px; border: 1.5px solid rgba(243, 251, 246, .35); border-radius: 16px; pointer-events: none; }
.passport-emblem { display: flex; justify-content: center; margin: 6px 0 8px; }
.passport-emblem .logo { border-radius: 16px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .25); }
.passport-title { font-family: var(--display); font-weight: 700; font-size: 24px; text-align: center; margin: 0 0 16px; }
.steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; background: rgba(255, 255, 255, .08); }
.steps li > span:last-child { display: flex; flex-direction: column; }
.steps li > span:last-child span { font-size: 13px; opacity: .75; }
.step-stamp {
  width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%;
  border: 2px dashed #f3fbf6; font-family: var(--display); font-weight: 700; font-size: 17px; transform: rotate(-10deg);
}
.passport .btn.primary { background: #f3fbf6; color: var(--primary-deep); box-shadow: none; }

/* ---------- 항공권 (홈 목록 · 여행 화면 위쪽) ---------- */
.ticket {
  --stub: 78px;
  position: relative; display: flex; margin-bottom: 14px;
  filter: drop-shadow(0 6px 14px rgba(19, 41, 75, .12));
  /* 절취선 양 끝의 반원 홈 */
  -webkit-mask: radial-gradient(circle 8px at calc(100% - var(--stub)) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 8px at calc(100% - var(--stub)) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 8px at calc(100% - var(--stub)) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 8px at calc(100% - var(--stub)) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket-main { flex: 1; min-width: 0; background: var(--paper); border-radius: 14px 0 0 14px; overflow: hidden; }
.ticket-band { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; background: var(--band-tex), var(--band); color: #fff; font: 600 9px/1 var(--mono); letter-spacing: .2em; }
.ticket-band .logo { border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }
.ticket-band em { margin-left: auto; font-style: normal; color: #9cc3ff; letter-spacing: .14em; }
.route-row { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px 0; }
.rt { display: flex; flex-direction: column; min-width: 0; }
.rt { flex: 1 1 0; } /* 양쪽 칸 너비를 같게 해서 길 그림이 늘 가운데 와요 */
.rt.to { align-items: flex-end; text-align: right; }
.rt-label, .f-label { font: 600 8px/1 var(--mono); letter-spacing: .14em; color: var(--muted); }
.rt-label { margin-bottom: 5px; }
.rt-code { font: 600 25px/1 var(--mono); color: var(--ink); }
.rt-name { margin: 3px 0 0; max-width: 100%; font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.1; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-name.big { margin: 0; font-size: 26px; color: var(--ink); }
.ticket-title { display: block; margin: 12px 14px -2px; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.15; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-pass .ticket-title { font-size: 30px; margin-top: 16px; }
.rt-city { margin-top: 3px; max-width: 100%; font-size: 12px; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 도시 이름이 없는 쪽도 한 줄 자리를 지켜서, 출발·도착 이름 높이가 어긋나지 않게 해요. */
.rt-city:empty::before { content: '\00a0'; }
.rt-arc { width: 54px; height: 18px; flex-shrink: 0; margin-bottom: 6px; overflow: visible; }
.rt-arc > path { fill: none; stroke: #9aa3b2; stroke-width: 1.4; stroke-dasharray: 2 3; }
.rt-arc > path.ln { stroke-width: 1.1; stroke-dasharray: none; }
.rt-arc > path.tie { stroke-width: 5; stroke-dasharray: 1.3 3.2; }
.rt-arc > path.wave { stroke-width: 1.3; }
.rt-arc > path.dash { stroke-width: 1.2; stroke-dasharray: 3 2.5; }
.rt-arc g { fill: var(--red); }
.ticket-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 14px 0; padding: 9px 0 12px; border-top: 1px solid var(--line); }
.ticket-fields > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.f-val { font: 500 12px/1.2 var(--mono); color: var(--ink); white-space: nowrap; }
.ticket-fields .avatars .avatar { box-shadow: 0 0 0 1.5px var(--surface); }
.ticket-wait { margin: -4px 14px 10px; font-size: 12px; color: var(--primary); font-weight: 600; }
.ticket-stub {
  width: var(--stub); flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 6px;
  padding: 0 0 8px; border-radius: 0 14px 14px 0; overflow: hidden;
  background: var(--paper); border-left: 2px dashed #a99d86;
}
/* 꼬리 위쪽도 본문 띠와 같은 높이로 이어져서, 절취선이 띠까지 자르고 지나가요. */
.stub-band { align-self: stretch; flex: none; height: 32px; background: var(--band-tex), var(--band); }
.pass-stamp { margin: auto 0; width: 68px; height: 68px; overflow: visible; color: var(--red); }
.pass-stamp text { fill: currentColor; text-anchor: middle; }
.ps-top { font: 800 9.5px var(--body); }
.ps-big { font-family: var(--mono); font-weight: 700; letter-spacing: -.03em; }
.ticket.now .pass-stamp { color: var(--primary); }
.ticket.past .pass-stamp, .ticket.tbd .pass-stamp { color: var(--muted); }
.ticket.past { opacity: .62; }
.code-input { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; }

/* ---------- 일정 ---------- */
.pass {
  position: relative; display: block; width: 100%; overflow: hidden;
  margin: 6px 0 22px; padding: 16px 18px 18px; border-radius: var(--radius); color: #fff;
  background: var(--primary-deep);
  box-shadow: var(--glow);
}
.pass::after { content: '✈'; position: absolute; right: 14px; bottom: -14px; font-size: 92px; opacity: .12; transform: rotate(-20deg); }
.pass-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; letter-spacing: .08em; opacity: .85; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1.5px dashed rgba(255, 255, 255, .35); }
.pass-title { font-family: var(--display); font-weight: 700; font-size: 25px; line-height: 1.2; }
.pass-place { font-size: 14px; opacity: .88; margin-top: 4px; }

.day { margin-bottom: 26px; }
.day-head { display: flex; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 700; margin: 0 2px 10px; }
.day-num { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--primary); }
.day.today .day-head { color: var(--primary); }

/* 점선 여정 라인 위에 정류장(일정)이 놓입니다 */
.route { position: relative; padding-left: 22px; }
.route::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 24px; border-left: 2px dashed var(--line); }
.stop { position: relative; display: flex; align-items: flex-start; gap: 10px; width: 100%; margin-bottom: 10px; }
.stop::before {
  content: ''; position: absolute; left: -22px; top: 16px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--primary);
}
.stop-card { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--surface); padding: 15px 50px 15px 16px; border-radius: 16px; box-shadow: var(--shadow); }
/* 일정은 홈과 같은 손글씨(노트에 적은 느낌). 이름은 크게 쓰되, 길면 fitNames()가 한 줄에 들어가게 글자를 줄여요 */
.stop-time { display: flex; align-items: center; gap: 6px; min-height: 18px; font-family: var(--sans); font-size: 13.5px; line-height: 1; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.stop-title { font-family: var(--sans); font-size: 16.5px; font-weight: 700; line-height: 1.3; letter-spacing: -0.2px; margin-top: 5px; }
.stop-title > .ic { margin-right: 1px; color: var(--muted); }
/* 핀은 첫 줄 가운데에 맞추고, 이름이 길어 줄이 바뀌면 둘째 줄도 핀 오른쪽에서 시작해요 */
.stop-title.has-pin { display: flex; align-items: flex-start; gap: 4px; }
.stop-title.has-pin > .ic { height: 1.2em; margin: 0; }
.stop-meta { font-size: 13px; color: var(--muted); margin-top: 5px; }
.stop-meta.note { white-space: pre-wrap; font-size: 13.5px; font-weight: 500; line-height: 1.4; }
.stop-meta.note { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); } /* 메모는 점선 아래 따로 */
/* 프로필과 길찾기 버튼은 카드 오른쪽에 나란히, 세로 가운데에 둬요 */
.stop .avatar { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.stop .avatar { pointer-events: none; }
/* 지도에 있는 일정은 왼쪽 타임라인 동그라미 자리에 지도 핀과 같은 번호를 넣어요 */
.stop.numbered::before { content: none; }
.stop > .stop-pin { position: absolute; left: -26px; top: 12px; width: 22px; height: 22px; font-size: 12px; box-shadow: 0 0 0 3px var(--bg); }
.stop.has-go .avatar { right: 48px; }
.stop.has-go .stop-card { padding-right: 86px; }
.stop-go { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e8f0fe; color: #1a73e8; }
/* 보이는 크기는 프로필과 같게, 손가락으로 누르는 범위는 넓게 */
.stop-go::before { content: ''; position: absolute; inset: -8px; }
.stop-go .ic { fill: currentColor; }
.stop-go:active { transform: translateY(-50%) scale(.98); } /* 눌렀을 때 줄어드는 효과가 가운데 맞춤을 덮어쓰지 않게 */
/* 도시 안 이동: 장소 일정 사이 점선 위에 작은 알약 하나 */
.via { position: relative; display: inline-flex; align-items: center; gap: 4px; margin: -2px 0 6px -22px; padding: 4px 10px 4px 8px; border: 1.5px dashed var(--line); border-radius: 99px; background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 700; opacity: .75; }
.via.on { border-style: solid; border-color: transparent; background: var(--primary-soft); color: var(--primary-deep); opacity: 1; }
.add-inline { display: block; width: 100%; padding: 10px; text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; border: 1.5px dashed var(--line); border-radius: 16px; }

/* ---------- 장소: 엽서 ---------- */
.chips { display: flex; gap: 6px; }
.chips.scroll { overflow-x: auto; padding: 6px 16px 14px; margin: 0 -16px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; }
.chip { flex-shrink: 0; padding: 8px 14px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.chip.on, .chip:has(input:checked) { background: var(--primary); color: #fff; box-shadow: none; }
.chip input { display: none; }

.postcard {
  background: var(--paper); border-radius: var(--radius); padding: 14px 16px 12px; margin-bottom: 12px; box-shadow: var(--shadow);
  background-image: repeating-linear-gradient(90deg, var(--primary) 0 12px, transparent 12px 18px, var(--accent) 18px 30px, transparent 30px 36px);
  background-size: 100% 4px; background-repeat: no-repeat; background-position: top;
}
.postcard-main { display: flex; gap: 14px; width: 100%; }
.stamp {
  --h: 20;
  width: 52px; height: 58px; flex-shrink: 0; display: grid; place-items: center; font-size: 28px;
  background: hsl(var(--h) 70% 93%); border-radius: 6px;
  outline: 2px dashed hsl(var(--h) 45% 65%); outline-offset: -5px;
  transform: rotate(-4deg);
}
.postcard-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.postcard-name { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.25; }
.postcard-note { font-size: 14px; color: var(--muted); white-space: pre-wrap; }
.postcard-from { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 2px; }
.postcard-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.pill, .like { padding: 7px 12px; border-radius: 99px; background: var(--bg); font-size: 13px; font-weight: 700; }
.pill.accent { color: var(--primary); background: var(--primary-soft); margin-left: auto; }
.like { color: var(--muted); min-width: 52px; text-align: center; }
.like.on { background: var(--accent-soft); color: var(--accent); }

/* ---------- 정산: 영수증 ---------- */
.receipt {
  background: var(--paper); padding: 18px 18px 26px; margin: 6px 0 14px; border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow);
  /* 아래쪽 톱니 */
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
}
.receipt-head { display: flex; justify-content: space-between; font: 700 11px/1 var(--mono); letter-spacing: .15em; color: var(--muted); padding-bottom: 12px; border-bottom: 1.5px dashed var(--line); }
.receipt-total-label { margin-top: 14px; font-size: 13px; color: var(--muted); font-weight: 600; }
.receipt-total { font-family: var(--display); font-weight: 700; font-size: 38px; line-height: 1.15; margin-bottom: 10px; color: var(--primary-deep); }
.receipt-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--line); }
.rr-name { flex: 1; font-weight: 700; min-width: 0; }
.rr-paid { font-weight: 800; font-variant-numeric: tabular-nums; }
.transfer { display: flex; align-items: center; gap: 6px; padding: 9px 0; flex-wrap: wrap; }
.transfer + .transfer { border-top: 1px dashed var(--line); }
.transfer .arrow { color: var(--primary); font-weight: 800; padding: 0 2px; }
.transfer-amt { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.expense { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.expense-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.expense-title { font-weight: 700; }
.expense-amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.expense-amt small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-align: right; }

/* ---------- 하단 버튼 & 탭 ---------- */
.fab {
  position: fixed; z-index: 20;
  right: max(18px, calc(50% - 262px));
  bottom: calc(84px + env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  font-size: 28px; font-weight: 700; color: #fff;
  background: var(--primary);
  box-shadow: var(--glow);
}
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: center;
  padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
}
.tabbar a { flex: 1; max-width: 187px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 7px; font-size: 11px; font-weight: 700; color: var(--muted); }
.tabbar a.on { color: var(--primary); }

/* ---------- 입력 시트 ---------- */
#sheet-root { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
#sheet-root:empty { display: none; }
#sheet-root.open { pointer-events: auto; }
.backdrop { position: absolute; inset: 0; background: rgba(12, 26, 20, .45); opacity: 0; transition: opacity .2s; }
#sheet-root.open .backdrop { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 560px; max-height: 92dvh; overflow-y: auto;
  background: var(--surface); border-radius: 24px 24px 0 0;
  padding: 0 18px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
#sheet-root.open .sheet { transform: none; }
.sheet.tall { height: 92dvh; }
.grabber { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 0; }
.sheet-head { position: sticky; top: 0; z-index: 1; background: var(--surface); display: flex; align-items: center; justify-content: space-between; padding: 10px 0 14px; }
.sheet-head h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 20px; }
.link { color: var(--primary); font-size: 16px; font-weight: 600; min-width: 48px; }
.link.strong { font-weight: 800; text-align: right; }

input, select, textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--bg); border: 1.5px solid transparent; border-radius: 14px; outline: none;
  -webkit-appearance: none; appearance: none;
}
input[type="date"], input[type="time"] { display: block; }
select { background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313294b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 14px; padding-right: 36px; } /* 통화 고르기 버튼과 같은 꺾쇠 */
input:focus, select:focus, textarea:focus { border-color: var(--primary); background-color: var(--surface); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
textarea { resize: none; }
.field { display: block; flex: 1; min-width: 0; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.row { display: flex; gap: 10px; }

.invite-hero { font-size: 56px; text-align: center; margin-top: 4px; animation: float 3s ease-in-out infinite; }
.invite-link { padding: 12px 14px; background: var(--bg); border-radius: 14px; font: 13px/1.4 var(--mono); word-break: break-all; margin: 14px 0; }
.section-title.crew { margin-top: 24px; }
.account { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }

#toast {
  position: fixed; left: 50%; bottom: calc(160px + env(safe-area-inset-bottom)); z-index: 100;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: .22s;
  /* left: 50%라서 그냥 두면 폭이 화면 절반으로 묶여 짧은 문장도 두 줄이 돼요. 문장 길이만큼 넓히고 화면 밖으로는 안 나가게 해요. */
  width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box; word-break: keep-all; padding: 11px 18px; border-radius: 20px;
  background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 700; text-align: center;
  white-space: pre-line; line-height: 1.45;  /* 문구 속 \n에서 줄을 바꿔요 */
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 아이콘 & 작은 버튼 ---------- */
.ic { flex-shrink: 0; vertical-align: -0.2em; }
.btn .ic, .btn-sm .ic, .pill .ic, .like .ic, .badge .ic { vertical-align: middle; }
.btn-sm {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 34px; padding: 0 12px; border-radius: 99px; white-space: nowrap;
  background: var(--bg); color: var(--ink); font-size: 13px; font-weight: 800;
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-sm.primary { background: var(--primary); color: #fff; box-shadow: none; }
.btn-sm.soft { background: var(--primary-soft); color: var(--primary); box-shadow: none; }
.btn-sm.subtle { background: transparent; color: var(--muted); }
.btn-sm.subtle-danger { background: transparent; color: var(--minus); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--minus) 35%, transparent); }
.btn.ghost { background: transparent; }
.btn.ghost-light { margin-top: 8px; background: transparent; color: #f3fbf6; box-shadow: inset 0 0 0 1.5px rgba(243, 251, 246, .45); }
.btn.subtle-danger { color: var(--minus); background: transparent; box-shadow: none; }
.btn.danger-outline { margin-top: 18px; color: var(--minus); background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--minus) 40%, transparent); }
.btn-row { display: flex; gap: 8px; margin-top: 14px; }
.btn-row .btn { flex: 1; height: 46px; white-space: nowrap; padding: 0 10px; }
.btn-row + .btn, .btn-row + p { margin-top: 10px; } /* 버튼 줄 바로 아래 큰 버튼이 붙어 겹쳐 보이지 않게 */
.badge.soft { background: var(--bg); color: var(--muted); }
.badge .ic { margin-right: 2px; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 800; vertical-align: 1px; }
.like .ic { margin-right: 2px; }
.like.on .ic { fill: currentColor; }
.pill { display: inline-flex; align-items: center; gap: 4px; }
.stop-meta .ic, .pass-place .ic { vertical-align: -2px; }
.tabbar a .ic { opacity: .55; transition: .15s; }
.tabbar a.on .ic { opacity: 1; transform: translateY(-1px); }
.fab .ic { stroke-width: 2.5; }
.hero-icon.ghost { visibility: hidden; }
.hero-avatar { position: relative; }
.hero-avatar .dot { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--primary-deep); }

/* ---------- 사람 목록 ---------- */
.list { padding: 4px 14px; }
.list.flat { box-shadow: none; background: var(--bg); margin-bottom: 18px; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.person + .person { border-top: 1px solid var(--line); }
.person-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.person-body b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-body span { font-size: 13px; color: var(--muted); }
.person-actions { display: flex; align-items: center; gap: 6px; }
.avatar.md { width: 40px; height: 40px; font-size: 16px; }
.avatar.xl { width: 84px; height: 84px; font-size: 34px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .85); }
.empty-mini { padding: 18px; border-radius: 16px; background: var(--bg); color: var(--muted); font-size: 14px; text-align: center; margin-bottom: 12px; }
.empty-mini .btn { margin-top: 12px; color: var(--primary); }
.card .empty-mini, .sheet .empty-mini { background: var(--bg); }
.page > .empty-mini, .me-sec > .empty-mini { background: var(--surface); }

/* ---------- 홈: 초대 · 알림 ---------- */
.invite-card { background: var(--surface); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); border: 1.5px solid var(--primary-soft); }
.invite-card-from { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.invite-card-from b { color: var(--ink); }
.invite-card-from .btn-sm { margin-left: auto; flex: none; }
.invite-card-name { font-family: var(--display); font-weight: 700; font-size: 22px; margin: 8px 0 2px; }
.notice-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 12px 0; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.notice-card > span:nth-child(2) { flex: 1; }
.notice-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.notice-go { color: var(--muted); }

/* ---------- 프로필 ---------- */
.me-card { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 8px; }
.me-name { font-family: var(--display); font-weight: 700; font-size: 26px; margin-top: 6px; }
.handle-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--surface); color: var(--ink); font: 600 13px/1.2 var(--mono); box-shadow: var(--shadow); }
.me-hero { padding-bottom: 8px; }
.me-footer { display: grid; gap: 8px; margin-top: 28px; }

.onboard-badge { width: 92px; height: 92px; border-radius: 28px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; background: var(--primary); box-shadow: var(--glow); }
.brand.sm { font-size: 30px; }
.handle-input { display: flex; align-items: center; gap: 4px; padding-left: 16px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.sheet .handle-input { background: var(--bg); box-shadow: none; margin-bottom: 10px; }
.handle-input span { font-weight: 800; color: var(--primary); font-size: 18px; }
.handle-input input { background: transparent !important; box-shadow: none !important; text-align: left !important; padding-left: 4px; border: 0; }

.search-box { display: flex; align-items: center; gap: 6px; margin: 14px 0; padding: 6px 6px 6px 16px; border-radius: 16px; background: var(--bg); border: 1.5px solid transparent; }
.search-box:focus-within { border-color: var(--primary); }
.search-box > span { font-weight: 800; color: var(--primary); font-size: 18px; }
.search-box input { min-height: 40px; padding: 0 4px; background: transparent !important; border: 0; }
.search-box .btn-sm { height: 40px; padding: 0 14px; }
.search-result { min-height: 64px; }
.search-msg { text-align: center; color: var(--muted); font-size: 14px; padding: 18px 0; margin: 0; }
.search-msg .ko-spin { display: inline-block; vertical-align: -1px; margin-right: 4px; }
.search-msg small { display: block; margin-top: 6px; font-size: 12.5px; }
.my-handle { display: flex; align-items: center; gap: 6px; padding: 14px; margin-top: 8px; border-radius: 14px; background: var(--primary-soft); }
.my-handle b { flex: 1; color: var(--primary); }

@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes drift { from { translate: -40px 0; } to { translate: 260px 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- 지도 ---------- */
.map-slot { margin: 0 16px 14px; }
.map { position: relative; margin: 0 16px 14px; height: 240px; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(19, 41, 75, .12); background: var(--primary-soft); z-index: 0; }
.map-pin i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--primary); box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(0, 0, 0, .25); }
.map-pin span { display: block; transform: rotate(45deg); font-size: 16px; line-height: 1; }
.map-hint { margin: 0 16px 14px; padding: 14px 16px; border-radius: 16px; border: 1.5px dashed var(--line); color: var(--muted); font-size: 13px; display: flex; gap: 10px; align-items: center; }
.gmap { height: 260px; border-radius: 16px; overflow: hidden; background: var(--primary-soft); }
.gmap iframe { display: block; width: 100%; height: 100%; border: 0; }
.igpost { margin: 14px 0 4px; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.igpost iframe { display: block; width: 100%; height: 520px; border: 0; }
.igpost.fixed { margin: 0 0 8px; }
.igpost.fixed iframe { height: 420px; }
.ig-hint { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.ig-hint .ic { flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.ig-hint span { white-space: pre-line; } /* 안내 속 \n에서 줄을 바꿔요 */
.ig-from { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 12px; line-height: 1.5; }
.ig-from .ic { flex-shrink: 0; margin-top: 2px; }
.pick-list { display: flex; flex-direction: column; gap: 8px; }
.pick-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--bg); }
.pick-item input { width: 22px; height: 22px; min-height: 0; padding: 0; margin: 9px 0 0; flex-shrink: 0; accent-color: var(--primary); -webkit-appearance: checkbox; appearance: auto; }
.pick-item .stamp { flex-shrink: 0; }
.pick-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pick-body b { font-size: 16px; font-weight: 720; line-height: 1.35; }
.pick-body small { font-size: 12px; color: var(--muted); line-height: 1.45; }
.pick-body small.warn { color: var(--accent); }
.pick-body small.has-pin { display: flex; align-items: flex-start; gap: 3px; }
.pick-body small.has-pin > .ic { height: 1.45em; }
.pick-item:has(input:not(:checked)) { opacity: .5; }
.url-row { display: flex; gap: 8px; align-items: center; }
.url-row input { flex: 1; min-width: 0; }
.url-row .btn-sm { flex-shrink: 0; min-height: 50px; border-radius: 14px; }

.place-addr { display: flex; gap: 6px; align-items: flex-start; margin: 12px 0 4px; font-size: 14px; color: var(--muted); }
.place-addr .addr-local { display: block; margin-top: 2px; font-size: 12px; opacity: .8; }
.place-note { margin: 8px 0; white-space: pre-wrap; font-size: 15px; }

/* 장소 시트의 위치 찾기 */
.loc-box { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
/* 이름 칸이 곧 위치 찾기 칸이에요. 이름을 적고 오른쪽 버튼으로 찾아요. */
.field > label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.name-box { padding: 5px 7px 5px 0; box-shadow: inset 0 0 0 1.5px var(--line); }
.name-box:focus-within { box-shadow: inset 0 0 0 1.5px var(--primary); }
.name-box input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; }
.name-box .btn-sm { flex-shrink: 0; }
.loc-current { display: flex; gap: 6px; align-items: center; margin: 8px 4px 0; font-size: 14px; }
.loc-current:empty { display: none; }
.loc-current .loc-clear { flex: none; margin-left: auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); }
.loc-current .loc-clear:active { background: var(--bg); }
.loc-current span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-current .ic { color: var(--primary); flex-shrink: 0; }
.ap-field { position: relative; }
.ap-box { display: flex; align-items: center; gap: 8px; padding-left: 14px; border: 1.5px solid transparent; border-radius: 14px; background: var(--bg); }
.ap-box:focus-within { border-color: var(--primary); background: var(--surface); }
.ap-box .ic { color: var(--muted); flex-shrink: 0; }
.ap-box .ap-q { flex: 1; min-width: 0; border: 0 !important; padding-left: 0; background: transparent !important; }
.ap-results { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.ap-results:empty { display: none; }
.ap-item { display: flex; gap: 12px; align-items: center; text-align: left; padding: 9px 12px; border-radius: 12px; background: var(--primary-soft); color: inherit; }
.ap-item > b { font: 600 16px/1 var(--mono); color: var(--primary-deep); width: 40px; flex-shrink: 0; }
.ap-item span { min-width: 0; font-size: 14px; }
.ap-item small { display: block; color: var(--muted); font-size: 12px; }
.ap-results .search-msg { margin: 0; font-size: 13px; color: var(--muted); }
.ap-item > .st-ic { display: flex; justify-content: center; width: 40px; flex-shrink: 0; color: var(--primary-deep); }
.geo-results { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.geo-results:empty { display: none; }
.geo-item { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--primary-soft); color: inherit; }
.geo-item .ic { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.geo-item span { display: flex; flex-direction: column; min-width: 0; }
.geo-item small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.geo-item .geo-addr { display: inline; }
.geo-item small.geo-orig { font-size: 11px; opacity: .8; } /* 한국어로 바꾼 후보의 원래 현지 이름 */
/* 한국어 이름을 받는 중인 후보: 현지어를 흐리게 깜빡여 곧 바뀐다는 걸 알려요 */
.geo-item.ko-wait > span { animation: ko-wait 1.2s ease-in-out infinite; }
@keyframes ko-wait { 50% { opacity: .45; } }
.ko-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 2px 0 10px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.ko-spin { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--primary-soft); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.geo-results .search-msg { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.field .hint { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }

/* 통화 */
.currency-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 4px 10px; margin: -6px 0; border-radius: 99px; font: inherit; letter-spacing: .08em; color: var(--primary-deep); background: var(--primary-soft); }
.receipt-note { margin: 12px 0 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
/* 통화 고르기: 검색칸 + 목록(자주 쓰는 통화 → 모든 통화) */
.cur-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 14px; background: var(--bg); color: var(--muted); margin-bottom: 8px; }
.cur-picker .cur-search input { flex: 1; min-width: 0; height: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; font: inherit; font-size: 16px; font-weight: 500; text-align: left; color: var(--ink); outline: none; -webkit-appearance: none; appearance: none; }
.cur-list { display: flex; flex-direction: column; }
/* 통화 창에서는 목록을 내려도 검색칸이 제목 아래에 붙어 있어요 */
.sheet-body > .cur-picker > .cur-search { position: sticky; top: 56px; z-index: 1; box-shadow: 0 0 0 6px var(--surface); }
.cur-sec { margin: 10px 4px 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.cur-row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 8px; border-radius: 12px; color: var(--ink); }
.cur-row[hidden], .cur-sec[hidden], .cur-none[hidden] { display: none; }
.cur-row.on { background: var(--primary-soft); color: var(--primary); }
.cur-sym { display: grid; place-items: center; flex: none; min-width: 36px; height: 36px; padding: 0 6px; border-radius: 11px; background: var(--bg); font-size: 14px; font-weight: 800; }
.cur-row.on .cur-sym { background: #fff; }
.cur-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; }
.cur-row small { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.cur-none { margin: 16px 4px; font-size: 13px; color: var(--muted); text-align: center; }
/* 지출 기록·환율 계산기의 통화 칸: 누르면 아래로 목록이 떠요 */
.cur-field { position: relative; }
.cur-btn { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; height: 52px; padding: 0 14px; border-radius: 14px; background: var(--bg); font-weight: 700; white-space: nowrap; }
.cur-btn span { overflow: hidden; text-overflow: ellipsis; }
.cur-pop { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(330px, calc(100vw - 32px)); max-height: 340px; overflow-y: auto; overscroll-behavior: contain; padding: 8px; border-radius: 18px; background: var(--surface); box-shadow: 0 12px 32px rgba(19, 41, 75, .2); }
.cur-pop[hidden] { display: none; }
.cur-field.right .cur-pop { left: auto; right: 0; }
.cur-pop .cur-search { position: sticky; top: -8px; z-index: 1; margin: -8px -8px 6px; border-radius: 18px 18px 0 0; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.expense-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }

/* 프로필 꾸미기 */
.me-hero[style*="--me"] .avatar.xl { box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--me); }
.me-style { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 6px 12px; border-radius: 99px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 13px; }
.style-preview { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 12px 18px; margin-bottom: 16px; border-radius: 18px; color: #fff;
  background: var(--me); }
.style-preview span { opacity: .85; font-size: 13px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 10px; }
.swatch { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.swatch.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px currentColor; color: #fff; outline: 2px solid var(--ink); outline-offset: 3px; }
.swatch.auto { background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); }
.swatch.auto.on { color: var(--ink); }
.toggle-row { display: flex; width: 100%; align-items: center; gap: 12px; text-align: left; margin: 16px 0 8px; padding: 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: inherit; }
.toggle-row > span:first-child { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.toggle-row small { color: var(--muted); font-size: 12px; }
.switch { position: relative; width: 46px; height: 28px; border-radius: 99px; background: var(--line); transition: background .2s; flex-shrink: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch.on { background: var(--primary); }
.switch.on::after { transform: translateX(18px); }

/* 확인 창 */
.dialog-root { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(10, 20, 15, 0); transition: background .2s; }
.dialog-root.open { background: rgba(10, 20, 15, .45); }
.dialog { width: 100%; max-width: 320px; background: var(--surface); border-radius: 20px; padding: 22px 18px 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); transform: scale(.94); opacity: 0; transition: transform .2s, opacity .2s; }
.dialog-root.open .dialog { transform: none; opacity: 1; }
.dialog-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.dialog-title { margin: 0 0 6px; text-align: center; font-size: 17px; font-weight: 800; }
.dialog-title + p { font-size: 15px; color: var(--muted); }
.btn.sky { background: var(--primary); color: #fff; }
.dialog p { margin: 0 0 18px; text-align: center; font-size: 16px; line-height: 1.5; word-break: keep-all; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dialog-actions .btn { margin: 0; height: 46px; justify-content: center; }
/* 창이 뜰 때 확인 버튼에 커서를 두는데, 빨간·남색 버튼에 파란 테두리가 겹쳐 보여서 테두리는 숨겨요 */
.dialog-actions .btn:focus { outline: none; }
.dialog-actions .btn[data-answer=no] { background: var(--bg); color: var(--ink); box-shadow: none; }
.dialog-actions .btn.danger { background: var(--minus); color: #fff; }
/* 하나를 고르는 목록(같이 쓸 숙소 고르기) */
.dialog-choices { display: grid; gap: 8px; margin: -6px 0 16px; }
/* 계정 삭제처럼 '지워지는 것 / 남는 것'을 나눠 보여줄 때 */
.dialog-facts { display: grid; gap: 8px; margin: -8px 0 12px; }
.dialog-facts > div { display: grid; gap: 3px; padding: 11px 14px; border-radius: 14px; background: var(--bg); text-align: left; font-size: 14px; line-height: 1.45; }
.dialog-facts b { font-size: 13px; }
.dialog-facts .gone b { color: var(--minus); }
.dialog-facts .kept b { color: var(--primary); }
.dialog-facts span { position: relative; padding-left: 11px; word-break: keep-all; }
.dialog-facts span::before { content: '·'; position: absolute; left: 1px; color: var(--muted); }
.dialog .dialog-note { margin: 0 0 16px; font-size: 13.5px; color: var(--muted); }
.dialog-choice { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: var(--bg); border: 1.5px solid transparent; cursor: pointer; }
.dialog-choice input { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; flex: none; -webkit-appearance: radio; appearance: radio; accent-color: var(--primary); }
.dialog-choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.dialog-choice span { display: grid; gap: 2px; min-width: 0; text-align: left; }
.dialog-choice b { font-size: 15px; }
.dialog-choice small { font-size: 12px; color: var(--muted); white-space: pre-line; }
/* 설명이 붙은 선택지(신고·차단)는 한 줄씩, 그림은 글 앞에 */
.dialog-choices:not(.icons) .dialog-choice > svg { flex: none; color: var(--muted); }
.dialog-choices:not(.icons) .dialog-choice:has(input:checked) > svg { color: var(--primary); }
/* 그림이 있는 선택지(도시 안 이동 수단)는 칩처럼 한 줄에 네 개 */
.dialog-choices.icons { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dialog-choices.icons .dialog-choice { position: relative; flex-direction: column; gap: 6px; padding: 12px 4px 10px; color: var(--muted); }
.dialog-choices.icons input { position: absolute; opacity: 0; pointer-events: none; }
.dialog-choices.icons .dialog-choice:has(input:checked) { color: var(--primary); }
.dialog-choices.icons span { text-align: center; }
.dialog-clear { display: block; margin: -6px auto 14px; padding: 6px 10px; border: 0; background: none; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.dialog-choices.icons b { font-size: 13px; color: var(--ink); white-space: nowrap; }
.hero-clock { display: inline-flex; align-items: center; gap: 5px; margin: 12px 0 0; padding: 5px 10px; border-radius: 99px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 600; box-shadow: var(--shadow); }
.pick-all { margin: -4px 0 10px; }
.handle-status { min-height: 18px; margin: 6px 4px 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.handle-status.ok { color: #1f9d55; }
.handle-status.bad { color: var(--red); }
.sheet .handle-status { margin: -4px 4px 10px; }

/* ---------- 일정 지도 ---------- */
.map-bar { display: flex; align-items: center; gap: 6px; margin: 0 16px 10px; }
.gmaps-btn { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; margin-bottom: 2px; border-radius: 99px; background: var(--surface); color: #1a73e8; font-size: 13px; font-weight: 700; text-decoration: none; box-shadow: var(--shadow); }
/* 일정 지도 날짜 고르기: 버튼을 누르면 모든 날 목록이 펼쳐져요 */
.map-bar { position: relative; justify-content: space-between; }
.day-drop { display: inline-flex; align-items: center; gap: 6px; border: 0; font: inherit; font-size: 14px; font-weight: 800; padding: 8px 12px 8px 15px; border-radius: 99px; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.day-drop .ic { transition: transform .2s; }
.day-drop.open .ic { transform: rotate(180deg); }
.day-menu-back { position: fixed; inset: 0; z-index: 20; }
.day-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 21; width: min(300px, 100%); max-height: 320px; overflow-y: auto; padding: 6px; border-radius: 16px; background: var(--surface); box-shadow: 0 12px 32px rgba(19, 41, 75, .22); }
.day-menu button { display: flex; align-items: center; width: 100%; gap: 8px; padding: 11px 12px; border: 0; border-radius: 11px; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); text-align: left; }
.day-menu button.on { background: var(--primary-soft); color: var(--primary-deep); }
.day-menu button span { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); }
.map-wrap { position: relative; }
.map-empty { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; gap: 4px; text-align: center; padding: 20px; border-radius: var(--radius); background: rgba(241, 245, 250, .82); color: var(--ink); font-size: 14px; font-weight: 700; pointer-events: none; }
.map-empty small { color: var(--muted); font-weight: 600; }
.route-map { height: 260px; }
.route-pin.wide { border-radius: 13px; font-size: 11.5px; }
.route-pin { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 5px; border-radius: 50%; background: var(--c); color: #fff; font: 800 13px/1 -apple-system, sans-serif; box-shadow: 0 0 0 2.5px #fff, 0 3px 8px rgba(0, 0, 0, .3); }
.stop-pin { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--c); color: #fff; font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: 0; }
.ev-day { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 10px 14px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); font-size: 14px; }
.ev-day b { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
/* 날짜 칩은 시트 끝까지 밀어 스크롤해요. 스크롤 막대는 칩과 겹쳐 보여서 숨겨요 */
.day-chips { display: flex; gap: 6px; overflow-x: auto; flex-wrap: nowrap; margin: 0 -18px; padding: 2px 18px 4px; scroll-padding: 0 18px; scrollbar-width: none; }
.day-chips::-webkit-scrollbar { display: none; }
.day-chips .chip { flex: none; }
.day-chips .chip span { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.day-chips .chip small { font-size: 11px; font-weight: 500; opacity: .75; }

.home-logo { display: inline-flex; }
/* 일정의 장소 칸 · 시간 두 칸이 아이폰에서 넘치지 않게 */
.place-field .place-suggest { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.place-field .place-suggest:empty { display: none; }
.place-field .ps-icon { font: 400 18px/1 var(--body); width: 26px; text-align: center; }
.row > .field { flex: 1; min-width: 0; }
input[type="time"], input[type="date"] { min-width: 0; max-width: 100%; }

/* ---------- 지도 (MapLibre) ---------- */
.map .maplibregl-ctrl-group { border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(19, 41, 75, .15); }
.map .maplibregl-ctrl-group button { width: 32px; height: 32px; }
.map .map-home { display: grid; place-items: center; color: #333; }
.map .maplibregl-cooperative-gesture-screen { font-size: 15px; font-weight: 500; background: rgba(19, 41, 75, .45); transition: opacity .3s ease .6s; }
.map.two-fingers .maplibregl-cooperative-gesture-screen, .place-map.two-fingers .maplibregl-cooperative-gesture-screen { opacity: 0; transition: none; }
.map .maplibregl-ctrl-attrib.maplibregl-compact { min-height: 22px; margin: 0 8px 8px 0; background: rgba(255, 255, 255, .85); }
.map .maplibregl-ctrl-attrib.maplibregl-compact-show { padding: 2px 26px 2px 8px; border-radius: 11px; }
.map .maplibregl-ctrl-attrib-inner { font-size: 9px; line-height: 18px; white-space: nowrap; color: #6b7a90; }
.map .maplibregl-ctrl-attrib-inner a { color: inherit; }
.map .maplibregl-marker { cursor: pointer; }
.drop-pin { padding: 3px 3px 6px; }
.drop-pin i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg); background: color-mix(in srgb, var(--c) 14%, #fff); border: 2px solid #fff; box-shadow: 0 4px 12px rgba(19, 41, 75, .28); }
.drop-pin .ic { transform: rotate(45deg); color: var(--c); stroke-width: 2.3; }

/* ---------- 장소 목록 (아이콘 + 한 줄) ---------- */
.cat-tile { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); }
.place-list { display: flex; flex-direction: column; gap: 10px; }
.place-row { display: flex; align-items: center; gap: 4px; padding: 10px 8px 10px 12px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.pr-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.pr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
/* 장소 이름은 자르지 않고 두 줄까지 보여줘요(일정 카드 이름과 같은 굵기) */
.pr-body b { font-size: 16px; font-weight: 720; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; word-break: keep-all; overflow-wrap: anywhere; }
.pr-body small { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); overflow: hidden; white-space: nowrap; }
.pr-body small i { font-style: normal; opacity: .6; }
.pr-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pr-on, .pr-sched { flex: none; }
.pr-on { display: inline-flex; align-items: center; gap: 2px; color: var(--primary); font-weight: 600; }
.pr-sched { color: var(--plus); font-weight: 600; }
.pr-like { flex: none; display: flex; flex-direction: column; align-items: center; gap: 1px; width: 44px; padding: 4px 0; color: #b4bccb; font-size: 11px; font-weight: 700; }
.pr-like.on { color: #e5484d; }
.pr-like.on .ic { fill: currentColor; }
.chip .ic { vertical-align: -3px; }
.place-suggest .cat-tile, .pick-item .cat-tile { width: 36px; height: 36px; border-radius: 11px; }

/* 종류 버튼: 아이콘은 그 종류 색, 고르면 그 색으로 채워요 (지도 핀·장소 카드와 같은 색) */
.cat-chip { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); box-shadow: none; }
.cat-chip .ic { color: var(--c); }
.cat-chip.on, .cat-chip:has(input:checked) { background: var(--c); color: #fff; }
.cat-chip.on .ic, .cat-chip:has(input:checked) .ic { color: #fff; }

/* 일정 순서 바꾸기 */
.stop { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.stop.dragging { z-index: 5; }
.stop.dragging .stop-card { transform: scale(1.03); box-shadow: 0 14px 30px rgba(19, 41, 75, .22); transition: transform .15s; }
.route.sorting .stop:not(.dragging) { transition: none; }

/* 지도에서 위치 고르기 */
.pick-hint { margin: 0 0 10px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.pick-hint b { color: var(--ink); }
.pick-map { position: relative; }
.pick-map .map { height: 46vh; min-height: 260px; border-radius: 18px; overflow: hidden; }
.place-found { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.place-found:empty { display: none; }
.place-found .pick-map .map { height: 240px; min-height: 0; }
.place-found .search-msg { margin: 0; }
.pf-head { margin: 4px 2px 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.geo-item.map-pick { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.place-chosen { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #e9f7ef; color: #2f9e44; }
.place-chosen span { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--ink); font-size: 14px; }
.place-chosen small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place-chosen .btn-sm { flex: none; }
.pick-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); pointer-events: none; z-index: 2; }
.need-loc { margin-top: 6px; color: #c2410c; background: #fff4e6; }
.no-loc { font-style: normal; font-size: 11px; font-weight: 700; color: #c2410c; background: #fff4e6; padding: 1px 6px; border-radius: 99px; margin-left: 4px; }

/* 정산: 원화 환산, 보냈어요, 복사 */
.receipt-krw { margin: -8px 0 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.sent-btn { margin-left: 8px; padding: 6px 10px; font-size: 12px; }
.copy-settle { width: 100%; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.sent-list { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line); }
.sent-list p { margin: 0 0 4px; }
.sent-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; color: var(--muted); }
.sent-row > .ic { color: #2f9e44; flex: none; }
.sent-row span { flex: 1; min-width: 0; }
.sent-row b { color: var(--ink); }
.sent-undo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); }

/* 환율 계산기 */
/* 환율 계산기: 위아래 두 칸(통화는 왼쪽, 숫자는 오른쪽) 사이에 위아래 화살표 */
.fx-row { display: flex; gap: 10px; align-items: center; padding: 10px 12px 10px 10px; border-radius: 14px; background: var(--bg); border: 1.5px solid transparent; }
.fx-row:focus-within { border-color: var(--primary); background: var(--surface); }
.fx-row input { flex: 1; min-width: 0; padding: 0; border: 0 !important; background: transparent !important; text-align: right; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fx-cur { flex: none; display: inline-flex; align-items: center; height: 34px; border-radius: 99px; font-size: 13px; font-weight: 800; }
.fx-cur.krw { padding: 0 12px; background: var(--surface); color: var(--muted); }
.fx-eq { position: relative; z-index: 1; display: flex; justify-content: center; height: 0; }
.fx-eq span { display: grid; place-items: center; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: var(--surface); color: var(--primary); box-shadow: 0 0 0 1.5px var(--line-strong); }
.fx-eq + .fx-row { margin-top: 6px; }
.fx-rate { margin: 10px 2px 0; }

/* DAY 옆 날씨 */
.day-wx { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.day-wx > .ic { color: var(--wx); }
.day-wx b { color: var(--ink); font-weight: 800; }
.wx-rain { display: inline-flex; align-items: center; gap: 1px; margin-left: 4px; font-style: normal; font-size: 12px; color: #3a86ff; }

/* 지도에서 고르기: 검색·구글맵 링크 칸 */
.pick-box { display: flex; flex-direction: column; gap: 8px; }
.pick-search { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 14px; background: var(--field, #f1f5fa); }
.pick-search > .ic { color: var(--muted); flex: none; }
.pick-search input { flex: 1; min-width: 0; padding: 8px 0; border: 0; background: transparent; box-shadow: none; font-size: 15px; }
.pick-search .btn-sm { flex: none; }
.pick-results { display: flex; flex-direction: column; gap: 6px; }
.pick-results:empty { display: none; }
.pick-msg { margin: 0; padding: 4px 2px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.pick-msg.ok { color: #2f9e44; }
.pick-msg .ic { vertical-align: -2px; }
.fx-hint { display: block; margin: -4px 2px 12px; color: var(--muted); font-size: 13px; }
.fx-hint:empty { display: none; }

/* ---------- 사용법 안내 ---------- */
.guide { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(19, 41, 75, .55); animation: fade .2s; }
.guide-card { position: relative; width: min(360px, 100%); padding: 44px 24px 22px; border-radius: 26px; background: var(--surface); text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.guide-skip { position: absolute; top: 14px; right: 14px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); padding: 6px; }
.guide-art { width: 150px; height: 150px; margin: 0 auto 18px; border-radius: 36px; background: var(--primary-soft); display: grid; place-items: center; }
.guide-title { margin: 0 0 8px; font: 700 26px/1.2 var(--display); color: var(--ink); }
.guide-text { margin: 0 0 22px; min-height: 7.4em; font-size: 14px; line-height: 1.6; color: var(--muted); word-break: keep-all; }
.guide-text p { margin: 0; }
.guide-text p + p { margin-top: 10px; }
.guide-text .guide-note { font-size: 12.5px; color: var(--muted); opacity: .85; }
.guide-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
.guide-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px; background: var(--line-strong); transition: width .2s; }
.guide-dots button.on { width: 20px; background: var(--ink); }
.guide-nav { display: flex; gap: 8px; }
.ic-more { position: relative; top: -.05em; display: inline-flex; align-items: center; justify-content: center; gap: .12em; width: 1.4em; height: 1.4em; margin: -.3em .15em; border-radius: 50%; background: #2b3a55; vertical-align: middle; }
.ic-more i { width: .2em; height: .2em; border-radius: 50%; background: #fff; }
.ic-more.col { flex-direction: column; gap: .1em; }
.ic-more.share { background: var(--primary); color: #fff; border-radius: .35em; }
.ic-more.share .ic { width: .95em; height: .95em; }
.guide-install { margin-top: 10px; }
.guide-nav .btn:not(.primary) { flex: none; padding: 0 18px 0 14px; gap: 4px; }
@keyframes fade { from { opacity: 0; } }

.tab-tip { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; padding: 12px 12px 12px 14px; border-radius: 16px; background: #fff8e6; border: 1px solid #f3e1ad; font-size: 13px; line-height: 1.5; color: #6b5a2e; }
.tab-tip-ico { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #ffe7a3; color: #9a7413; }
.tab-tip-body { flex: 1; min-width: 0; word-break: keep-all; text-wrap: balance; }
.tab-tip-body b { display: block; color: var(--ink); font-size: 14px; }
.tab-tip-x { flex: none; border: 0; background: none; padding: 4px; color: #b39a5c; }
.tip-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--primary); text-decoration: underline; }

/* 프로필: 지난 여행 기록 · 사용법 다시 보기 */
.me-links { display: grid; gap: 8px; margin-top: 18px; }
.share-card { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 14px; border-radius: 18px; background: var(--primary-soft); color: var(--primary-deep); }
.share-card-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; }
.share-card-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.share-card-text b { font-size: 15px; }
.share-card-text small { font-size: 12.5px; color: var(--muted); }
.idea-item { padding: 12px 14px; border-radius: 16px; background: var(--bg); margin-bottom: 10px; }
.idea-item p { margin: 6px 0; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.idea-top { display: flex; align-items: center; gap: 8px; }
.idea-top small { flex: 1; color: var(--muted); font-size: 12px; }
.idea-kind { padding: 2px 8px; border-radius: 8px; font-size: 12px; font-weight: 700; background: var(--primary-soft); color: var(--primary-deep); }
.idea-kind.pain { background: #fff1db; color: #9a5b00; }
.idea-kind.bug { background: #ffe3e3; color: #b42318; }
.share-card > .ic:last-child { color: var(--primary); }
.past-page .ticket.past { opacity: 1; }

/* 새 버전 알림 */
.update-pill { position: fixed; top: calc(env(safe-area-inset-top) + 10px); left: 50%; transform: translateX(-50%); z-index: 95; display: inline-flex; gap: 6px; align-items: center; padding: 9px 16px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 13px; font-weight: 800; white-space: nowrap; box-shadow: 0 10px 30px rgba(19, 41, 75, .3); animation: fade .2s; }
.update-pill:active { transform: translateX(-50%) scale(.98); } /* 눌러도 제자리에서 살짝만 줄어들게 */

/* 직접 복사하기 창 */
.copy-box { width: 100%; margin-top: 10px; resize: none; font: 14px/1.55 var(--body); user-select: text; -webkit-user-select: text; }

/* 환율 계산기의 통화 칸은 작은 알약 모양 */
.fx-card .cur-field { flex: none; }
.fx-card .cur-pop { width: min(300px, calc(100vw - 80px)); }
.fx-card .cur-btn { height: 34px; padding: 0 10px 0 12px; border-radius: 99px; background: var(--primary-soft); color: var(--primary-deep); font-size: 13px; font-weight: 800; }

/* ---------- 숙소 ---------- */
/* 일정 탭 맨 위 숙소 칸. 비어 있으면 점선 한 줄 안내예요. */
.stay-card { display: block; width: 100%; margin: 0 0 16px; padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); text-align: left; }
.stay-card.empty { display: flex; align-items: center; gap: 12px; background: transparent; box-shadow: none; border: 1.5px dashed var(--line-strong); color: var(--ink); }
.stay-card.empty .stay-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.stay-card.empty b { font-size: 15px; display: flex; align-items: center; gap: 6px; }
.stay-card.empty small { font-size: 13px; color: var(--muted); line-height: 1.45; }
.stay-card.empty > .ic { color: var(--muted); }
.stay-card .cat-tile { width: 40px; height: 40px; border-radius: 12px; }
.opt { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--line); border-radius: 6px; padding: 2px 6px; }
.stay-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.stay-head b { font-size: 15px; }
.stay-head .link { font-size: 14px; min-width: 0; display: inline-flex; align-items: center; gap: 2px; }
.stay-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 0; text-align: left; }
.stay-item + .stay-item { border-top: 1px solid var(--line); }
.stay-item .stay-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.stay-item b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stay-item small { font-size: 13px; color: var(--muted); }
.stay-mode { display: block; margin: 6px auto 0; padding: 6px; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
/* 하루 일정 속 숙소 줄: 연한 청록 점선 카드에 침대 핀 */
.stay-stop .stop-card { background: #eaf7f9; box-shadow: inset 0 0 0 1.5px #a9dbe3; }
.stay-stop .stop-time { color: #0b7285; }
.stay-pin { --c: #1098ad; }
.stop > .stay-pin { display: grid; place-items: center; background: #1098ad; color: #fff; border-radius: 50%; }
.route-pin.stay-pin { background: #1098ad; padding: 0; }
.stay-picks { margin-bottom: 8px; }
.stay-chip { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; font-size: 13.5px; color: #0b5563; background: #dff3f6; box-shadow: none; }
.stay-hint { display: block; margin: -4px 0 14px; font-size: 12px; color: var(--muted); }
.stay-cost { margin-top: 4px; }

/* 만든 사람·저작권, 약관 링크, 계정 삭제 */
.app-info { margin-top: 28px; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.7; }
.app-info p { margin: 0; }
.app-info a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.link-quiet { display: block; margin: 10px auto 0; padding: 6px 10px; border: 0; background: none; font: inherit; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* 애플 로그인 버튼(애플 규칙: 검정 바탕·흰 로고, 구글 버튼과 같은 크기) */
.btn.apple { background: #000; color: #fff; gap: 8px; }
.login-form .btn.big { position: relative; }
.recent-tag { position: absolute; top: -9px; right: 12px; padding: 2px 8px; border-radius: 99px; background: #fff; color: var(--primary); border: 1.5px solid currentColor; font-size: 11px; font-weight: 700; line-height: 1.3; }
/* 처음 화면: 이름·아이디 */
.onboard-label, .field-label { display: block; text-align: left; font-size: 13px; font-weight: 700; color: var(--muted); margin: 6px 0 -2px 4px; }
.sheet .field-label { margin: 0 0 6px; }
.login-form .onboard-name { background: var(--surface); box-shadow: var(--shadow); text-align: left; } /* 아래 아이디 칸과 같이 왼쪽 정렬 */

/* 이동수단: 여행 설정·이동 일정의 수단 고르기 (다섯 개가 한 줄에 들어가게 그림 위·글자 아래) */
.mode-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.mode-chips .chip { padding: 9px 0 8px; border-radius: 14px; text-align: center; font-size: 13px; }
.mode-chips .chip span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.sheet:has(.mode-chips input[name=mode][value=plane]:checked) .route-text,
.sheet:has(.mode-chips input[name=mode]:not([value=plane]):checked) .route-plane { display: none; }
/* 여행 설정의 이동 수단: '왕복 같은 수단'이면 한 줄, '오는 편 다르게'면 가는 편·오는 편 두 줄 */
.round-seg { margin-bottom: 10px; }
.round-seg label { position: relative; display: flex; align-items: center; justify-content: center; height: 38px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.round-seg input { position: absolute; opacity: 0; pointer-events: none; }
.round-seg label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.leg-label { display: block; margin: 2px 2px 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.back-leg.leg-label { margin-top: 12px; }
.sheet:not(:has(input[name=round][value=split]:checked)) :is(.trip-modes .leg-label, .back-leg) { display: none; }
.back-wrap { margin-top: 4px; }
.sheet:has(input[name=backMode][value=plane]:checked) .back-text,
.sheet:has(input[name=backMode]:not([value=plane]):checked) .back-plane { display: none; }
.ret-row { display: flex; align-items: center; gap: 10px; margin: 10px 14px 0; padding-top: 8px; border-top: 1px dashed var(--line); }
.ret-path { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); }
.ret-path .ic, .ret-path svg { color: var(--red); }
/* 이동 칸: 자동차를 고르면 '내 차 / 렌터카'를 고를 수 있고, 렌터카면 돌려주는 날 칸이 생겨요 */
.rent-seg { margin-top: -6px; margin-bottom: 16px; }
.sheet:not(:has(.mode-chips input[name=mode][value=car]:checked)) .rent-seg,
.sheet:not(:has(.mode-chips input[name=mode][value=car]:checked)) .rent-only,
.sheet:not(:has(input[name=rent][value="1"]:checked)) .rent-only { display: none; }
.ret-mode { display: inline-flex; vertical-align: -2px; margin-left: 4px; color: var(--red); }
/* 새 일정: 장소 / 이동 */
.kind-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 14px; background: var(--bg); }
.kind-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--muted); cursor: pointer; }
.kind-seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
/* 탑승권: 공항 코드 대신 이름(부산항)일 때 */
/* 배·기차·버스는 코드 대신 이름이라 양쪽을 같은 너비로 두고, 긴 이름(부산항국제여객터미널)은 두 줄까지 보여줘요. */
.rt:has(.rt-code.name) { flex: 1 1 0; }
.rt-code.name { font-family: inherit; font-size: 20px; font-weight: 800; line-height: 1.2; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
/* 티켓 아래 GO / BACK 줄(가는 편·오는 편 시간과 편명) */
.leg-lines { display: flex; flex-direction: column; gap: 5px; margin: 10px 14px 0; padding-top: 8px; border-top: 1px dashed var(--line); }
.leg-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; font: 600 12px/1.3 var(--mono); color: var(--ink); }
.leg-tag { flex: none; min-width: 38px; padding: 2px 6px; border-radius: 6px; background: #e3edff; color: #1d4fa8; font: 700 9px/1.4 var(--mono); letter-spacing: .12em; text-align: center; }
.leg-when { min-width: 0; }
.leg-line .ret-path { margin-left: auto; font: 600 12px/1.3 var(--sans); }
.leg-line .ret-path b { font-weight: 700; }
.leg-row .leg-num[hidden] { display: none; }
.rt-city.rt-rest { color: var(--ink); opacity: .75; }
.rt-arc g.arc-ic { fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* 이동 카드 */
.stop > .move-pin { display: grid; place-items: center; background: var(--primary-deep); color: #fff; border-radius: 50%; }
.route-pin.move-pin { background: var(--primary-deep); padding: 0; }
.mv-arrow { color: var(--muted); font-weight: 600; margin: 0 2px; }
.next-day { font-style: normal; font-size: 11px; color: var(--muted); }
.mv-found { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.mv-found:empty { display: none; }
.mv-found .search-msg { margin: 0; }
.mv-dur { margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: var(--primary-soft); color: var(--primary-deep); font-size: 11.5px; font-weight: 700; vertical-align: 1px; }
.mv-fare-hint { margin: -4px 2px 12px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* 티켓 모양: 'stripe'면 남색 띠 아래에 이동 수단 색 줄이 들어가요.
   색은 채도를 낮춘 '빈티지 잉크'라 남색 띠·종이 질감과 어울리고 튀지 않아요 */
[data-mode] { --mode-c: #5a7fb3; }
[data-mode="train"] { --mode-c: #5d8f74; }
[data-mode="ship"] { --mode-c: #4f8f99; }
[data-mode="car"] { --mode-c: #b98463; }
[data-mode="bus"] { --mode-c: #82729f; }
.ticket-band, .stub-band { position: relative; }
[data-ticket="stripe"] .ticket-band::after, [data-ticket="stripe"] .stub-band::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--mode-c);
}
.tt-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tt-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 8px 12px; border-radius: 16px; background: var(--card, #fff); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; text-align: center; }
.tt-opt input { position: absolute; opacity: 0; pointer-events: none; }
.tt-opt:has(input:checked), .tt-opt.on { box-shadow: inset 0 0 0 2px var(--primary); background: color-mix(in srgb, var(--primary) 6%, var(--card, #fff)); }
.tt-opt b { margin-top: 6px; font-size: 14px; color: var(--ink); }
.tt-opt small { font-size: 12px; color: var(--muted); }
.tt-mini { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 132px; border-radius: 8px; overflow: hidden; background: #f4f1ea; box-shadow: 0 1px 3px rgba(19, 41, 75, .15); }
.tt-band { position: relative; height: 12px; background: #13294b; }
[data-ticket-mini="stripe"] .tt-band::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--mode-c); }
.tt-body { grid-column: 1 / -1; display: grid; place-items: center; height: 30px; }
.tt-body svg { width: 40px; height: 14px; overflow: visible; }
.tt-body svg > path { fill: none; stroke: #9aa3b2; stroke-width: 1.4; stroke-dasharray: 2 3; }
.tt-body svg g { fill: var(--red); }
.tt-note { margin-top: 12px; text-align: center; }
.onboard .tt-pick { margin-bottom: 14px; }

/* 내 프로필: 국내 길찾기 지도 고르기 */
.map-pref { padding: 12px 14px 2px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.map-pref-txt { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; margin-bottom: 10px; }
.map-pref-txt .ic { color: var(--primary); }
.map-pref-txt b { font-size: 15px; }
.map-pref-txt small { grid-column: 2; font-size: 12.5px; color: var(--muted); }
.map-pref .kind-seg { margin-bottom: 10px; }

/* ---------- 준비물 ---------- */
.pack-add { margin: 0 0 14px; }
.pack-to { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 8px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); }
.pack-to button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); }
.pack-to button[aria-checked="true"] { background: var(--primary-deep); color: #fff; }
.pack-field { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 16px; background: var(--surface); border: 2px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); transition: border-color .15s; }
.pack-field:focus-within { border-color: var(--primary); }
.pack-in { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; padding: 0; font-family: var(--display); font-size: 21px; font-weight: 700; color: var(--ink); }
.pack-in::placeholder { color: #a3adbd; }
.pack-plus { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--primary); color: #fff; }
.pack-progress { display: grid; gap: 7px; margin: 0 4px 14px; font-size: 14px; color: var(--muted); }
.pack-progress b { color: var(--ink); }
.pack-progress i { display: block; height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.pack-progress i::before { content: ''; display: block; height: 100%; width: var(--p); border-radius: inherit; background: var(--primary); transition: width .3s; }
.pack-progress.full span { color: var(--plus); font-weight: 800; }
.pack-progress.full i::before { background: var(--plus); }
.pack-list { padding: 14px 10px 6px 14px; }
.pack-list .section-title { display: flex; align-items: center; gap: 8px; margin: 0 4px 4px 0; }
.pack-list .section-title small { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--muted); }
.pack-count { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.pack-row { display: flex; align-items: center; gap: 4px; min-height: 52px; border-top: 1px solid var(--line); }
.pack-row:first-of-type { border-top: 0; }
.pack-check { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-left: -8px; border: 0; background: none; color: transparent; }
.pack-check::before { content: ''; grid-area: 1 / 1; width: 24px; height: 24px; border: 2px solid var(--line-strong); border-radius: 8px; background: var(--surface); transition: .15s; }
.pack-check .ic { grid-area: 1 / 1; position: relative; stroke-width: 3; }
.pack-row.done .pack-check::before { border-color: var(--plus); background: var(--plus); }
.pack-row.done .pack-check { color: #fff; }
.pack-name { flex: 1; min-width: 0; padding: 8px 0; border: 0; background: none; text-align: left; font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.pack-row.done .pack-name { color: #a3adbd; text-decoration: line-through; text-decoration-thickness: 2px; }
.pack-who { flex: none; display: inline-flex; align-items: center; gap: 5px; max-width: 108px; min-height: 32px; padding: 3px 10px 3px 4px; border: 0; border-radius: 16px; background: var(--bg); font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); }
.pack-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pack-who.me { background: var(--primary-soft); color: var(--primary); }
.pack-who.open { padding: 3px 11px; border: 1.5px dashed var(--line-strong); background: none; color: var(--muted); }
.pack-row.done .pack-who { opacity: .55; }
.pack-more { flex: none; display: grid; place-items: center; width: 36px; height: 44px; border: 0; background: none; color: var(--muted); }
.pack-none { display: grid; justify-items: center; gap: 8px; padding: 10px 0 16px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted); }
.pack-none p { margin: 0; }
.pack-none b { color: var(--ink); font-size: 15px; }
.pack-empty { padding-top: 28px; }
.pack-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0 18px; }
.pack-foot .btn-sm { display: inline-flex; align-items: center; gap: 5px; }

/* 여행 목록을 받기 전: 빈 화면('첫 여행을 계획해볼까요?') 대신 티켓 자리만 보여줘요 */
.trips-loading { display: grid; gap: 12px; }
.trips-loading > * { border-radius: var(--radius); background: linear-gradient(90deg, #e6ecf4 0, #f4f7fb 50%, #e6ecf4 100%) 0 0 / 200% 100%; animation: sk-wave 1.2s linear infinite; }
.sk-title { width: 96px; height: 20px; margin: 4px 4px 0; border-radius: 8px; }
.sk-ticket { height: 168px; }
@keyframes sk-wave { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .trips-loading > * { animation: none; } }
.hero-title .sk-line { display: inline-block; width: 220px; height: .8em; border-radius: 10px; background: rgba(255, 255, 255, .55); animation: ko-wait 1.2s ease-in-out infinite; }
.hero-title .sk-line.short { width: 120px; }

/* 비행기 편명: 항공사 이름 안내와 실시간 운항 정보 버튼 */
.mv-air { display: flex; align-items: center; gap: 4px; min-height: 0; margin-top: 6px; font-size: 13px; color: var(--muted); }
.mv-air:empty { display: none; }
.mv-air b { color: var(--ink); }
.stop-go.flight { background: #fff1ec; color: var(--accent); }
.stop-go.flight .ic { fill: currentColor; stroke: none; }

/* ===== 내 프로필: 친구 · 내 여행 · 도움말 ===== */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 6px 4px 12px; }
.sec-head .section-title { margin: 0; }
.friends-peek { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; margin-bottom: 12px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); color: var(--primary-deep); text-align: left; }
.friends-peek > .ic { color: var(--muted); flex: none; }
.peek-av { display: flex; flex: none; }
.peek-av .avatar { width: 34px; height: 34px; margin-left: -6px; font-size: 11px; box-shadow: 0 0 0 2px var(--surface); }
.peek-av .avatar:first-child { margin-left: 0; }
.peek-av .avatar:nth-child(n+4) { display: none; }
.peek-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.peek-txt b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peek-txt small { font-size: 12.5px; color: var(--muted); }
.set-group { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 8px; }
.set-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 16px; font-size: 15.5px; font-weight: 600; color: var(--primary-deep); text-align: left; text-decoration: none; }
.set-row + .set-row { border-top: 1px solid var(--line); }
.set-row > .ic:first-child { color: var(--primary); flex: none; }
.set-row > span:not(.count) { flex: 1; }
.set-row > .ic:last-child { color: var(--muted); flex: none; }
.set-row small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 4px; }

/* 내 친구 시트: 찾는 칸은 위에 붙어 있고 목록만 움직여요 */
.friends-sheet .sheet-head h3 { display: flex; align-items: center; gap: 6px; }
.friends-sheet .sheet-head .link.strong { display: inline-flex; align-items: center; gap: 4px; }
.fl-search { position: sticky; top: 56px; z-index: 1; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 14px; background: var(--bg); color: var(--muted); box-shadow: 0 0 0 6px var(--surface); }
.fl-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); outline: none; padding: 0; }
.fl-list { margin-top: 8px; }
.fl-list .empty-mini { margin-top: 8px; }
.peek-av .avatar small { font-size: 10px; letter-spacing: -.04em; }
.friends-sheet .sheet-head .count { font-family: var(--sans); font-size: 12px; }

/* ===== 보기 전용 링크 ===== */
.hero-acts { display: flex; gap: 8px; }
.share-lead { margin: 4px 0 14px; font-size: 15px; line-height: 1.55; text-align: center; }
.share-can { display: grid; gap: 8px; margin: 12px 0; }
.share-can > div { display: grid; gap: 3px; padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.share-can b { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--primary-deep); }
.share-can b .ic { color: var(--primary); }
.share-can span { font-size: 13px; color: var(--muted); line-height: 1.45; padding-left: 22px; }
.share-url { padding: 12px 14px; border-radius: 14px; background: var(--bg); font-size: 13.5px; color: var(--primary-deep); word-break: break-all; font-family: var(--mono, monospace); }
.share-btns { margin-top: 10px; }
.share-btns .btn { flex: 1; }
.link-quiet.danger { color: var(--danger, #e5484d); display: block; margin: 8px auto 4px; }
.shared-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 14px; border-radius: 16px; background: var(--primary-soft); color: var(--primary-deep); font-size: 13.5px; line-height: 1.5; }
.shared-note .ic { flex: none; margin-top: 2px; color: var(--primary); }
.shared-view .stop-card, .shared-view .pr-main, .shared-view .pr-like { cursor: default; }
.shared-view .add-inline, .shared-view .via:not(.on), .shared-view .empty .btn { display: none; }
.shared-view .pr-like { pointer-events: none; }
.shared-cta { display: flex; align-items: center; gap: 12px; margin: 26px 0 8px; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); color: var(--primary-deep); text-decoration: none; }
.shared-cta > span { flex: 1; display: grid; gap: 2px; }
.shared-cta b { font-size: 15px; }
.shared-cta small { font-size: 12.5px; color: var(--muted); }
.shared-cta > .ic { color: var(--muted); }
.shared-tabs { grid-template-columns: repeat(2, 1fr); }
.shared-gone .empty { margin-top: 18vh; }
.shared-gone .empty .logo { margin-bottom: 12px; }
.shared-view .stay-card.empty, .shared-view [data-action=add-stay], .shared-view .stay-mode { display: none; }
.shared-gone .empty .logo { display: block; margin: 0 auto 14px; }

/* 루트 자동 짜기 */
.day-auto { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border: 0; border-radius: 14px; background: #e3edff; color: var(--primary); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.day-wx + .day-auto { margin-left: 4px; }
.auto-route .field > span { display: block; margin-bottom: 6px; }
/* 숙소로 안 돌아와요: 아이폰식 스위치. 진짜 체크박스는 숨기고 칸 전체를 눌러요. */
.ar-toggle { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 16px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; transition: .2s; }
.ar-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.ar-toggle .tile { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #e3edff; color: var(--primary); }
.ar-toggle .tx { flex: 1; min-width: 0; }
.ar-toggle .tx b { display: block; font-size: 15px; color: var(--ink); }
.ar-toggle .tx small { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ar-toggle .sw { flex: none; position: relative; width: 50px; height: 30px; border-radius: 15px; background: #d5dce6; transition: .2s; }
.ar-toggle .sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: .2s; }
.ar-toggle:has(input:checked) { border-color: var(--primary); background: #f4f8ff; }
.ar-toggle:has(input:checked) .sw { background: var(--primary); }
.ar-toggle:has(input:checked) .sw::after { left: 23px; }
.ar-toggle .if-on, .ar-toggle:has(input:checked) .if-off { display: none; }
.ar-toggle .if-off, .ar-toggle:has(input:checked) .if-on { display: block; }
.ar-sum { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #e3edff; color: var(--ink); font-size: 14px; }
.ar-sum > .ic { color: var(--primary); }
.ar-sum small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); font-weight: 600; }
.ar-list { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: ar; }
.ar-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ar-row:not(.anchor)::before { counter-increment: ar; content: counter(ar); flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; }
.ar-row.fixed::before { background: var(--primary-deep); }
.ar-row.anchor { color: var(--muted); }
.ar-row.anchor > .ic { flex: none; width: 22px; color: var(--primary-deep); }
.ar-row.anchor small { display: block; font-size: 11px; font-weight: 600; }
.ar-row.anchor b { color: var(--ink); }
.ar-row.loose::before { background: #9aa3b2; }
.ar-row > span { min-width: 0; flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ar-time { order: 2; flex: none; font: 600 12px var(--mono); font-style: normal; color: var(--muted); }
.ar-time:empty { display: none; }
.ar-tag { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 8px; background: var(--bg); font-size: 11px; font-style: normal; font-weight: 600; color: var(--muted); }
.ar-note { margin: 10px 2px 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.ar-note.warn { color: var(--minus); font-weight: 600; }
#toast.has-undo { display: flex; align-items: center; gap: 14px; pointer-events: auto; padding-right: 8px; }
.toast-undo { border: 0; padding: 6px 12px; border-radius: 14px; background: rgba(255, 255, 255, .16); color: #9cc3ff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }

/* 루트 짜기 전: 위치 없는 일정 안내 */
.ar-miss-head { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: #fff4e5; color: var(--ink); }
.ar-miss-head > .ic { flex: none; color: #e07b00; margin-top: 1px; }
.ar-miss-head b { display: block; font-size: 16px; }
.ar-miss-head small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--muted); }
.ar-miss-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ar-miss-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); font: inherit; text-align: left; cursor: pointer; }
.ar-miss-list .nm { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-miss-list .go { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; color: var(--primary); }

/* 일정 여러 개 고르기: 꾸욱 → 메뉴 → 여러 개 선택 */
.stop.menu-on .stop-card { box-shadow: 0 0 0 2.5px var(--primary), var(--shadow); }
.stop-menu { position: fixed; z-index: 60; min-width: 190px; background: var(--surface); border-radius: 16px; box-shadow: 0 14px 36px rgba(19, 41, 75, .25); overflow: hidden; animation: pop-in .14s ease-out; }
.stop-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; font-size: 15px; font-weight: 700; color: var(--ink); text-align: left; }
.stop-menu button + button { border-top: 1px solid var(--line); }
.stop-menu .ic { color: var(--primary); }
@keyframes pop-in { from { opacity: 0; transform: scale(.96); } }
.sel-dot { position: absolute; left: -26px; top: 12px; z-index: 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2.2px var(--line-strong), 0 0 0 3px var(--bg); color: transparent; }
.stop.picked .sel-dot { background: var(--primary); box-shadow: 0 0 0 3px var(--bg); color: #fff; }
.selecting .route .stop[data-id] .stop-card { transition: box-shadow .12s; }
.selecting .route .stop.picked .stop-card { box-shadow: 0 0 0 2.5px var(--primary), var(--shadow); }
.selecting .fab, .selecting .route .add-inline { visibility: hidden; }
#pick-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 2px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--ink); color: #fff; animation: bar-up .18s ease-out; }
#pick-bar .pick-n { flex: none; min-width: 64px; padding: 0 6px; font-size: 14px; font-weight: 800; color: #9fc2ff; }
#pick-bar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: #fff; font-size: 12px; font-weight: 700; }
#pick-bar button[disabled] { opacity: .35; }
#pick-bar .pick-done { flex: none; padding: 10px 14px; font-size: 15px; color: #9fc2ff; }
@keyframes bar-up { from { transform: translateY(100%); } }

/* 바우처 · 티켓 */
/* 바우처가 있는 일정: 카드 아래를 절취선으로 잘라 티켓처럼 보여요. 누르면 바로 크게 봐요. */
.v-stub { position: relative; display: flex; align-items: center; gap: 7px; margin: 14px -50px -15px -16px; padding: 11px 16px 13px; border-top: 2px dashed #dfe5ee; color: var(--ink, #13294b); font-family: var(--sans); font-size: 13px; letter-spacing: 0; text-align: left; }
.stop.has-go .v-stub { margin-right: -86px; }
.v-stub::before, .v-stub::after { content: ''; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); }
.v-stub::before { left: -8px; } .v-stub::after { right: -8px; }
.v-stub > svg { color: #e2552f; flex: none; }
.v-stub b { font-weight: 800; }
.v-go { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; color: var(--primary); font-size: 12.5px; font-weight: 700; }
.v-row { display: flex; flex-wrap: wrap; gap: 8px; }
.v-th { position: relative; width: 74px; height: 74px; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.v-th img { width: 100%; height: 100%; object-fit: cover; }
.v-x { position: absolute; right: 4px; top: 4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(19, 41, 75, .75); color: #fff; }
.v-busy { display: grid; place-items: center; }
.v-busy .spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--primary); animation: v-spin .8s linear infinite; }
@keyframes v-spin { to { transform: rotate(360deg); } }
.v-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 74px; height: 74px; border-radius: 12px; border: 2px dashed var(--line-strong); color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
#voucher-view { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: #0d1b31; color: #fff; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); animation: pop-in .16s ease-out; }
.vv-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; }
.vv-close { display: flex; align-items: center; gap: 4px; padding: 8px 6px; color: #cfe0ff; font-size: 16px; font-weight: 700; }
.vv-count { font-size: 15px; font-weight: 700; color: #9fb6dc; padding-right: 6px; }
.vv-head { text-align: center; padding: 4px 20px 14px; }
.vv-head b { display: block; font-size: 19px; }
.vv-head small { display: block; margin-top: 4px; font-size: 13px; color: #9fb6dc; }
.vv-pages { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.vv-pages::-webkit-scrollbar { display: none; }
.vv-page { flex: none; width: 100%; scroll-snap-align: center; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 0 14px; }
.vv-img { max-width: 100%; max-height: 100%; border-radius: 10px; background: #fff; transition: filter .2s; }
.vv-img.loading { filter: blur(6px); }
.vv-page.zoom { display: block; padding: 0; }
.vv-page.zoom .vv-img { max-width: none; max-height: none; width: 200%; border-radius: 0; }
.vv-dots { display: flex; justify-content: center; gap: 6px; padding: 12px; }
.vv-dots i { width: 8px; height: 8px; border-radius: 4px; background: #ffffff55; transition: .2s; }
.vv-dots i.on { width: 22px; background: #fff; }
.vv-tip { text-align: center; font-size: 12px; color: #7f93b5; padding: 4px 0 14px; }

/* 루트 짜기 미리보기: 손잡이로 순서 바꾸기 */
.ar-row.movable { position: relative; touch-action: none; }
.ar-grip { margin-left: auto; display: grid; place-items: center; width: 34px; height: 34px; margin-right: -6px; border-radius: 10px; color: var(--muted); cursor: grab; touch-action: none; }
.ar-row.ar-drag { z-index: 3; background: var(--surface); border-radius: 12px; box-shadow: 0 10px 24px rgba(19, 41, 75, .2); }
.ar-row.ar-drag .ar-grip { color: var(--primary); }
.ar-reset { padding: 0; font: inherit; color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.ar-undo { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: #eef4ff; color: var(--primary); text-align: left; }
.ar-undo span { display: flex; flex-direction: column; gap: 2px; }
.ar-undo b { font-size: 15px; color: var(--ink); }
.ar-undo small { font-size: 12.5px; color: var(--muted); }

/* ---------- 내 프로필 도사 (모두) + VIP 꾸밈 (VIP 본인만) ---------- */
.me-card.has-dosa { margin-top: 58px; }
.me-av { position: relative; }
.dosa { position: absolute; left: calc(100% + 2px); top: -58px; width: 70px; height: 140px; pointer-events: none; animation: dz-float 3.2s ease-in-out infinite; }
.dosa svg { position: absolute; left: 0; top: 64px; width: 62px; height: 74px; overflow: visible; }
.dosa-dot { position: absolute; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(19, 41, 75, .2); }
.dosa-dot.d1 { width: 6px; height: 6px; left: 40px; top: 54px; }
.dosa-dot.d2 { width: 10px; height: 10px; left: 50px; top: 40px; }
.dosa-say { position: absolute; left: 30px; bottom: 106px; width: max-content; padding: 5px 13px; border-radius: 99px; background: #fff; color: var(--ink); font: 700 15px/1.3 var(--display); white-space: nowrap; box-shadow: 0 2px 6px rgba(19, 41, 75, .2); }
@keyframes dz-float { 50% { transform: translateY(-5px); } }
.dz-blink { animation: dz-blink 4.4s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes dz-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.dz-wave { animation: dz-wave 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 15% 90%; }
@keyframes dz-wave { 50% { transform: rotate(-24deg); } }
.dz-glow { animation: dz-glow 1.8s ease-in-out infinite; }
@keyframes dz-glow { 50% { opacity: .25; } }
.dz-z { animation: dz-z 2.4s ease-in-out infinite; }
@keyframes dz-z { 0% { opacity: 0; transform: translateY(4px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
.dz-nod { animation: dz-nod 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 90%; }
@keyframes dz-nod { 50% { transform: rotate(-7deg); } }

.vip-ring { display: inline-flex; padding: 4px; border-radius: 50%; background: linear-gradient(135deg, #f6ecd2, #d6bd8a, #f6ecd2); }
.vip-ring .avatar.xl, .me-hero[style*="--me"] .vip-ring .avatar.xl { box-shadow: none; }
.me-name { display: flex; align-items: center; gap: 6px; }
.vip-tag { padding: 2px 7px; border-radius: 6px; background: #f1e4c3; color: #7a5a1e; font: 700 11px/1.4 var(--body); letter-spacing: .02em; }
.vip-crown { display: inline-flex; color: #c9a35a; }
.vip-crown svg { fill: #f1e4c3; }
.vip-card { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 13px 16px; border-radius: 16px; background: linear-gradient(135deg, #13294b, #2f4f86); color: #fff; }
.vip-card-ic { display: inline-flex; color: #f1e4c3; }
.vip-card small { display: block; font-size: 11px; color: #f1e4c3; }
.vip-card b { font-size: 15px; }
.set-row .vip-new { margin-left: auto; padding: 2px 7px; border-radius: 6px; background: #f1e4c3; color: #7a5a1e; font: 600 11px/1.5 var(--body); font-style: normal; white-space: nowrap; }
.set-row .vip-new b { color: #e8513f; }
.set-row .vip-new + svg { margin-left: 6px; }

/* VIP 전용 티켓 '반짝 종이': 아이보리 종이에 빛이 천천히 스쳐 지나가요(내 화면에서만) */
.tt-pick.three { grid-template-columns: repeat(3, 1fr); gap: 8px; }
[data-ticket="vip"] .ticket-main, [data-ticket="vip"] .ticket-stub { position: relative; background: #fbf6ea; }
[data-ticket="vip"] .ticket-stub { border-left-color: #c9ad74; }
[data-ticket="vip"] .ticket-band em { color: #e6cf9a; }
[data-ticket="vip"] .ticket.soon .pass-stamp { color: #b08a3e; }
[data-ticket="vip"] .ticket-main::after, [data-ticket="vip"] .ticket-stub::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .8) 48%, rgba(246, 236, 210, .67) 52%, transparent 65%) 0 0 / 250% 100%;
  animation: vip-sheen 4s ease-in-out infinite;
}
[data-ticket="vip"] .ticket-stub::after { animation-delay: .35s; }
@keyframes vip-sheen { 0% { background-position: 120% 0; } 60%, 100% { background-position: -60% 0; } }
[data-ticket-mini="vip"] { position: relative; background: #fbf6ea; box-shadow: 0 0 0 1px #d6bd8a, 0 1px 3px rgba(19, 41, 75, .15); }
[data-ticket-mini="vip"]::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .85) 48%, rgba(246, 236, 210, .7) 52%, transparent 65%) 0 0 / 250% 100%; animation: vip-sheen 4s ease-in-out infinite; }
[data-ticket-mini="vip"] .tt-band { background: #13294b; box-shadow: inset 0 -2px 0 #d6bd8a; }
.tt-pick.three .tt-opt small { word-break: keep-all; }
/* VIP: 홈 오른쪽 위 내 사진에도 샴페인 띠(내 화면에서만) */
.hero-avatar.vip { display: inline-flex; padding: 3px; border-radius: 50%; background: linear-gradient(135deg, #f6ecd2, #d6bd8a, #f6ecd2); box-shadow: var(--shadow); }
.hero-avatar.vip .avatar { box-shadow: none; }

/* ---------- 컴퓨터 화면 (넓은 웹, 앱은 해당 없음) ----------
   하늘에서 내려오는 바탕 위에 '내 여행' 카드와 여행 카드 두 장이 떠 있어요. */
body.desk { background: linear-gradient(180deg, #cfe4fa 0, #e6f0fb 220px, var(--bg) 420px) no-repeat, var(--bg); }
#app.desk { max-width: none; padding: 0 20px 20px; }
.dk-top { display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 6px; }
.dk-top { height: 72px; }
.dk-brand { display: flex; align-items: center; gap: 11px; font: 700 31px/1 var(--display); color: var(--ink); letter-spacing: .02em; }
.dk-brand .logo { flex: none; border-radius: 0; filter: drop-shadow(0 3px 8px rgba(19, 41, 75, .18)); }
.dk-user { display: flex; align-items: center; gap: 10px; padding: 4px 16px 4px 4px; border-radius: 99px; background: var(--surface); box-shadow: 0 3px 12px rgba(19, 41, 75, .08); }
.dk-user:hover { box-shadow: 0 5px 16px rgba(19, 41, 75, .14); }
.dk-user .avatar { box-shadow: none; }
.dk-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 700; color: var(--ink); }
.dk-main { display: flex; align-items: flex-start; gap: 16px; }
.dk-rail { position: sticky; top: 16px; width: 272px; flex: none; max-height: calc(100dvh - 104px); overflow-y: auto; display: flex; flex-direction: column; background: var(--surface); border-radius: 20px; box-shadow: 0 4px 18px rgba(19, 41, 75, .08); transition: width .3s cubic-bezier(.4, 0, .2, 1); }
.dk-rh { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px; }
.dk-rh b { font: 700 21px/1 var(--display); white-space: nowrap; }
.dk-fold { width: 32px; height: 32px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-deep); display: grid; place-items: center; flex: none; }
.dk-tks { display: flex; flex-direction: column; gap: 12px; padding: 0 14px; }
.dk-tk { display: flex; border-radius: 12px; filter: drop-shadow(0 4px 10px rgba(19, 41, 75, .1)); }
.dk-tm { flex: 1; min-width: 0; background: var(--paper); border-radius: 12px 0 0 12px; overflow: hidden; display: flex; flex-direction: column; }
.dk-band { display: block; height: 22px; padding: 0 10px; font: 600 8px/22px var(--mono); letter-spacing: .18em; color: #fff; }
.dk-tm b { display: block; padding: 7px 10px 0; font: 700 17px/1.2 var(--display); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-rt { display: flex; align-items: center; gap: 6px; padding: 2px 10px 9px; font: 700 13px/1.2 var(--mono); color: var(--ink); }
.dk-rt span { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-rt i { flex: 1; border-top: 1.5px dashed #9aa3b2; }
.dk-ts { width: 58px; flex: none; display: flex; flex-direction: column; align-items: center; background: var(--paper); border-left: 2px dashed #a99d86; border-radius: 0 12px 12px 0; overflow: hidden; }
.dk-ts .dk-band { align-self: stretch; padding: 0; }
.dk-ts em { margin: auto 0; font: 700 12px/1.1 var(--mono); font-style: normal; color: var(--red); text-align: center; padding: 0 4px; }
.dk-tk.now .dk-ts em { color: var(--primary); }
.dk-tk.tbd .dk-ts em { color: var(--muted); }
.dk-tk.on .dk-tm, .dk-tk.on .dk-ts { box-shadow: inset 0 0 0 2px var(--primary); }
.dk-tk:hover { filter: drop-shadow(0 6px 14px rgba(19, 41, 75, .18)); }
.dk-empty { margin: 4px 4px 0; color: var(--muted); font-size: 14px; }
.dk-new { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px; padding: 11px; border-radius: 12px; border: 1.5px dashed var(--line-strong, #c9d3e2); color: var(--primary); font-weight: 700; font-size: 14px; }
.dk-pastlink { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 13px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
/* 접힌 '내 여행' */
.dk-main.folded .dk-rail { width: 76px; }
.dk-main.folded .dk-rh { justify-content: center; padding: 16px 0 12px; }
.dk-main.folded .dk-rh b, .dk-main.folded .dk-tm b, .dk-main.folded .dk-rt, .dk-main.folded .dk-tm, .dk-main.folded .dk-new span, .dk-main.folded .dk-pastlink span { display: none; }
.dk-main.folded .dk-tks { padding: 0 12px; }
.dk-main.folded .dk-ts { width: 52px; border-left: 0; border-radius: 10px; }
.dk-main.folded .dk-ts em { padding: 8px 2px; }
.dk-main.folded .dk-new { margin: 14px 12px; padding: 11px 0; }
.dk-main.folded .dk-pastlink { justify-content: center; padding: 13px 0; }
/* 오른쪽 여행 카드 */
.dk-work { flex: 1; min-width: 0; min-height: calc(100dvh - 88px); border-radius: 20px; overflow: clip; box-shadow: 0 4px 18px rgba(19, 41, 75, .08);
  background: url(cloud-sea.svg) center -34px / 400px 380px repeat-x, linear-gradient(180deg, var(--sky-top) 0, var(--sky-low) 256px) center top / 100% 256px no-repeat, var(--bg); }
.dk-work.dk-trip { background: var(--bg); }
.dk-work > .hero, .dk-work > .page { max-width: 760px; margin-left: auto; margin-right: auto; }
.dk-work .hero { padding-top: 14px; }
.dk-work .hero-bar .hero-avatar, .dk-work .hero-bar .home-logo { visibility: hidden; } /* 위 줄에 이미 있어요 */
.dk-work .tabbar { display: none; }
.dk-work .page.with-nav { padding-bottom: 120px; }
.desk .fab { right: 40px; bottom: 36px; }
.dk-work.dk-home { background: var(--bg); }
/* 화면 폭을 다 써요: 넓을수록 티켓이 한 줄에 더 많이(1440px이면 4개) */
.dk-home > .hero, .dk-home > .page { max-width: none; margin-left: 28px; margin-right: 28px; }
.dk-home > .page { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 20px; align-content: start; padding: 4px 0 40px; }
.dk-home > .page > :not(.ticket) { grid-column: 1 / -1; }
/* 홈 위쪽 하늘은 얇은 띠 한 줄로: 인사·D-day 왼쪽, 시계 오른쪽 */
.dk-home > .hero { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 16px; margin-top: 22px; padding: 20px 28px 30px; border-radius: 20px; overflow: hidden;
  background: url(cloud-sea.svg) center calc(100% + 300px) / 300px 380px repeat-x, linear-gradient(180deg, var(--sky-top), var(--sky-low)); }
.dk-home > .hero .hero-bar { display: none; }
.dk-home > .hero .hero-sub { grid-column: 1; margin: 0 0 4px; }
.dk-home > .hero .hero-title { grid-column: 1; font-size: 30px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dk-home > .hero .hero-title br { display: none; }
.dk-home > .hero .hero-big { font-size: 40px; line-height: 1; }
.dk-home > .hero .hero-clock { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
/* 여행 위쪽 줄 */
.dk-work .trip-hero { display: none; }
.dk-tbar { display: flex; align-items: flex-end; gap: 18px; padding: 16px 22px 0; background: #fff; border-bottom: 1px solid var(--line); }
.dk-tt { padding-bottom: 13px; min-width: 0; }
.dk-tt b { display: flex; align-items: center; gap: 10px; font: 700 30px/1.05 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-dd { font: 700 14px/1 var(--mono); color: var(--red); background: var(--bg); border-radius: 8px; padding: 4px 8px; flex: none; }
.dk-tt small { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; font-weight: 600; }
.dk-tabs { display: flex; gap: 2px; margin-left: auto; }
.dk-tabs a { display: flex; align-items: center; gap: 6px; padding: 12px 14px; font-size: 15px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.dk-tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.dk-acts { display: flex; gap: 8px; padding-bottom: 12px; }
.dk-btn { display: flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 99px; background: var(--bg); font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.dk-btn.icon { padding: 8px; }
/* 일정·장소: 목록 + 지도 */
.dk-split { display: flex; align-items: flex-start; }
.dk-split > .page { width: 440px; flex: none; max-width: none; margin: 0; padding-top: 14px; }
.dk-mapcol { position: sticky; top: 16px; flex: 1; min-width: 0; height: calc(100dvh - 32px); display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.dk-mapcol .map-bar { margin: 12px 14px 10px; }
.dk-mapcol .map-wrap { flex: 1; min-height: 0; }
.dk-mapcol .map-slot, .dk-mapcol .map { height: 100%; margin: 0; border-radius: 0; box-shadow: none; }
.dk-mapcol .map-hint, .dk-nomap { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; border: 0; }
.dk-mapcol > .map-slot, .dk-mapcol > .map { flex: 1; }
/* 입력 창은 가운데 뜨는 창으로 */
body.desk .sheet { top: 50%; bottom: auto; left: 50%; right: auto; width: min(560px, 92vw); max-height: 86dvh; border-radius: 24px; padding-bottom: 24px; transform: translate(-50%, -46%); opacity: 0; transition: transform .22s ease, opacity .22s ease; }
body.desk #sheet-root.open .sheet { transform: translate(-50%, -50%); opacity: 1; }
body.desk .sheet.tall { height: 86dvh; }

/* ---------- 컴퓨터 화면: 화면마다 넓게 다시 배치 ---------- */
/* 프로필: 위는 하늘 띠(사진·도사 왼쪽, 이름·아이디 오른쪽), 아래는 메뉴 두 줄 */
.dk-work.dk-me { background: var(--bg); }
/* 화면을 확대해 좁아져도 양옆 여백이 남게 */
.dk-me > .hero, .dk-me > .page { max-width: none; margin-left: max(28px, calc((100% - 1200px) / 2)); margin-right: max(28px, calc((100% - 1200px) / 2)); }
.dk-me > .hero { margin-top: 22px; padding: 16px 32px 26px; border-radius: 20px; overflow: hidden;
  background: url(cloud-sea.svg) center calc(100% + 290px) / 340px 380px repeat-x, linear-gradient(180deg, var(--sky-top), var(--sky-low)); }
.dk-me > .hero .hero-bar { min-height: 40px; }
/* 프로필 하늘 띠: [큰 사진] [이름·아이디·꾸미기] [도사] 한 줄로, 사이사이 여백 */
.dk-me > .hero .hero-bar { display: none; } /* 왼쪽 목록이 있어 뒤로 버튼은 필요 없어요 */
.dk-me > .hero { padding: 26px 34px; }
/* 프로필 하늘 띠 E-1: [사진] [이름·아이디·꾸미기] [숫자 세 개] [도사] 한 줄 */
.dk-me > .hero .me-card.has-dosa { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-rows: auto auto auto; justify-items: start; align-items: center; column-gap: 26px; row-gap: 8px; margin: 0; }
.dk-me > .hero .me-av { display: contents; }
.dk-me > .hero .me-av > :first-child { grid-column: 1; grid-row: 1 / span 3; }
.dk-me > .hero .avatar.xl { width: 100px; height: 100px; font-size: 38px; }
.dk-me > .hero .me-name, .dk-me > .hero .handle-chip, .dk-me > .hero .me-style { grid-column: 2; }
.dk-me > .hero .me-name { grid-row: 1; align-self: end; margin: 0; font-size: 28px; }
.dk-me > .hero .handle-chip { grid-row: 2; }
.dk-me > .hero .me-style { grid-row: 3; align-self: start; }
.dk-me > .hero .me-stats { grid-column: 3; grid-row: 1 / span 3; justify-self: stretch; display: flex; justify-content: center; align-items: center; gap: clamp(18px, 4vw, 56px); margin: 6px 0; padding: 4px 16px; border-left: 1px solid rgba(19, 41, 75, .14); border-right: 1px solid rgba(19, 41, 75, .14); }
.dk-me > .hero .me-stats > * { display: grid; justify-items: center; gap: 2px; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.dk-me > .hero .me-stats b { color: var(--ink); font: 800 26px/1.1 var(--display); }
.dk-me > .hero .me-stats a:hover b { color: var(--primary); }
/* 도사는 오른쪽 끝, 생각방울·말풍선은 모자 끝에서 왼쪽 위로 */
.dk-me > .hero .dosa { position: relative; left: auto; top: auto; grid-column: 4; grid-row: 1 / span 3; align-self: end; margin: -70px 0 -10px; }
.dk-me > .hero .dosa-dot.d1 { left: 22px; top: 54px; }
.dk-me > .hero .dosa-dot.d2 { left: 8px; top: 40px; }
.dk-me > .hero .dosa-say { left: auto; right: 58px; bottom: 112px; }
.dk-me > .page > .vip-card { display: none; } /* VIP 표시는 위 띠의 배지·왕관으로 충분해요 */
@media (max-width: 1180px) { .dk-me > .hero .me-stats { gap: 18px; padding: 4px 10px; } .dk-me > .hero .me-card.has-dosa { column-gap: 18px; } }
.dk-me > .page { padding: 18px 0 60px; }
.dk-me > .page > .vip-card { margin-bottom: 4px; }
.dk-me .me-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; align-items: start; }
.dk-me .me-sec { margin-bottom: 6px; }

/* 지난 여행: 홈처럼 화면 폭에 맞춘 티켓 */
.dk-work.dk-past { background: var(--bg); }
.dk-past > .hero, .dk-past > .page { max-width: none; margin-left: 28px; margin-right: 28px; }
.dk-past > .page { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 20px; align-content: start; }
.dk-past > .page > :not(.ticket) { grid-column: 1 / -1; }

/* 정산: 일정 화면처럼 왼쪽은 지출 내역(길게 내려가요), 오른쪽은 영수증·정산(따라 내려와요) */
.dk-work > .page.dk-tab-expenses { max-width: 1080px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 28px; align-items: start; padding: 22px 28px 120px; }
.dk-tab-expenses > :not(.ex-side):not(.ex-list) { grid-column: 1 / -1; grid-row: 1; }
.dk-tab-expenses .ex-list { grid-column: 1; grid-row: 2; }
.dk-tab-expenses .ex-side { grid-column: 2; grid-row: 2; position: sticky; top: 16px; }
.dk-tab-expenses .ex-side > :first-child { margin-top: 0; }
.dk-tab-expenses .ex-list > .section-title.pad:first-child { margin: 2px 4px 12px; }
.dk-tab-expenses .ex-list > .dk-nolist:first-child { margin-top: 0; }
.dk-nolist { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; padding: 60px 20px; border-radius: 18px; border: 1.5px dashed var(--line-strong, #c9d3e2); color: var(--muted); font-size: 14px; font-weight: 600; text-align: center; }

/* 준비물: 공용 짐 | 내 짐 나란히 */
/* 준비물: 정산처럼 왼쪽은 공용 짐·내 짐 두 목록, 오른쪽은 요약 상자 */
.dk-work > .page.dk-tab-packs { max-width: 1180px; padding: 22px 28px 120px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 300px; gap: 0 22px; align-items: start; }
.dk-tab-packs > * { grid-column: 1 / 3; }
.dk-tab-packs > #pack-head { grid-column: 3; grid-row: 1 / span 6; position: sticky; top: 16px; }
.dk-tab-packs > #pack-body { display: contents; }
.dk-tab-packs #pack-body > * { grid-column: 1 / 3; }
.dk-tab-packs #pack-body > .pack-list:first-child { grid-column: 1; }
.dk-tab-packs #pack-body > .pack-list + .pack-list { grid-column: 2; }
.dk-tab-packs #pack-body > .pack-list:first-child:not(:has(+ .pack-list)) { grid-column: 1 / 3; }
.dk-work > .page.dk-tab-packs:has(> #pack-head:empty) { max-width: 760px; grid-template-columns: minmax(0, 1fr); }
.dk-tab-packs:has(> #pack-head:empty) > *, .dk-tab-packs:has(> #pack-head:empty) #pack-body > * { grid-column: 1 / -1; }
.pk-box { --pk-bg: #d6e7fb; --pk-ink: var(--ink); --pk-key: #4a6aa8; --pk-track: #fff; --pk-fill: var(--primary);
  background: var(--pk-bg); color: var(--pk-ink); border-radius: 20px; padding: 20px 22px; display: grid; gap: 10px; }
.pk-k { color: var(--pk-key); font: 800 12px/1 var(--display); letter-spacing: .12em; }
.pk-n { font: 800 30px/1.1 var(--display); }
.pk-n em { font-style: normal; font-size: 16px; font-weight: 700; margin-left: 2px; }
.pk-bar { display: block; height: 9px; border-radius: 9px; background: var(--pk-track); overflow: hidden; }
.pk-bar::before { content: ''; display: block; height: 100%; width: var(--p); border-radius: inherit; background: var(--pk-fill); transition: width .3s; }
.pk-ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.pk-ul li { display: flex; justify-content: space-between; }
.pk-ul b { font-weight: 800; }
.pk-note { margin: 2px 0 0; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; opacity: .85; }
.pk-note.ok { color: #1e9e6a; opacity: 1; }
.dk-me .me-col > .me-sec:first-child > :first-child { margin-top: 14px; }

/* 좁은 컴퓨터 화면(확대 포함): 여행 위쪽 줄이 넘치면 탭·버튼이 아랫줄로 내려가요 */
.dk-tbar { flex-wrap: wrap; row-gap: 0; }
.dk-tt { flex: 1 1 220px; min-width: 0; }
.dk-tabs { margin-left: auto; }
/* 지도에 찍을 게 없을 때는 지도 칸 없이 가운데 한 줄로 */
.dk-trip > .page.dk-tab-timeline, .dk-trip > .page.dk-tab-places { max-width: 760px; padding-top: 18px; }
.dk-trip > .page.dk-tab-timeline > .empty, .dk-trip > .page.dk-tab-places > .empty { margin-top: 60px; }
.dk-acts { margin-left: auto; }
.dk-me > .hero .hero-chip { visibility: hidden; } /* 위 줄·사진으로 충분해요(좁은 화면에서 말풍선과 겹치지 않게) */
/* 일정이 없을 때(컴퓨터): 시작 체크리스트 */
.dk-start { max-width: 520px; margin: 70px auto 0; padding: 26px 26px 18px; background: var(--surface); border-radius: 22px; box-shadow: 0 6px 22px rgba(19, 41, 75, .08); }
.dk-start h2 { margin: 0 0 16px; font: 700 26px/1.2 var(--display); color: var(--ink); }
.dk-start ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dk-start li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--bg); }
.dk-step-n { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 800; font-size: 14px; }
.dk-start li.done .dk-step-n { background: #1e9e6a; }
.dk-step-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dk-step-t b { font-size: 15px; color: var(--ink); }
.dk-step-t small { font-size: 13px; color: var(--muted); }
.dk-start li.done .dk-step-t b { color: var(--muted); text-decoration: line-through; }
.dk-step-go { flex: none; padding: 8px 16px; border-radius: 99px; background: var(--primary-deep); color: #fff; font-size: 13px; font-weight: 700; }
.dk-step-ok { flex: none; font-size: 13px; font-weight: 700; color: #1e9e6a; }
.dk-start li.ic .dk-step-n { background: var(--primary-soft); color: var(--primary); }
/* 화면을 확대해 폭이 좁아지면 정산 요약 칸을 줄여 지출 목록이 접히지 않게 */
@media (min-width:1024px) and (max-width:1280px){
  .dk-work > .page.dk-tab-expenses{grid-template-columns:minmax(0,1fr) 320px;gap:0 20px;padding-left:20px;padding-right:20px}
}
/* 확대해서 좁아지면 준비물 두 목록을 위아래로 쌓고 요약 상자는 오른쪽에 그대로 */
@media (min-width:1024px) and (max-width:1280px){
  .dk-work > .page.dk-tab-packs{grid-template-columns:minmax(0,1fr) 260px;gap:0 18px;padding-left:20px;padding-right:20px}
  .dk-tab-packs > *, .dk-tab-packs #pack-body > *, .dk-tab-packs #pack-body > .pack-list:first-child, .dk-tab-packs #pack-body > .pack-list + .pack-list{grid-column:1}
  .dk-tab-packs > #pack-head{grid-column:2;grid-row:1 / span 8}
}

.pk-box .pk-hint { display: block; line-height: 1.6; font-weight: 600; }

/* 컴퓨터로도 쓰기 안내 */
.pc-guide { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 6px 4px 4px; }
.pc-guide-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.pc-guide p { margin: 0; line-height: 1.6; color: var(--ink); }
.pc-guide-url { padding: 10px 18px; border-radius: 14px; background: var(--bg); font: 800 20px/1.2 var(--display); color: var(--primary-deep); letter-spacing: .02em; user-select: all; }
.pc-guide-btns { display: flex; gap: 8px; width: 100%; }
.pc-guide-btns .btn { flex: 1; }
.pc-guide small { color: var(--muted); font-size: 12.5px; }
.shared-pc { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.login-pc { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .7); color: var(--primary-deep); font-size: 13px; font-weight: 700; }

/* 새 버전 안내: 도사가 구름 타고 내려와요 */
.upd { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(19, 41, 75, .45); animation: upd-dim .3s ease-out; }
.upd.out { opacity: 0; transition: opacity .25s; }
.upd-card { position: relative; width: min(100%, 320px); box-sizing: border-box; padding: 78px 22px 20px; border-radius: 26px; background: #fff; color: var(--ink); text-align: center; word-break: keep-all; animation: upd-card .45s .35s ease-out both; }
.upd-dosa { position: absolute; left: 50%; top: -84px; width: 112px; height: 150px; margin-left: -56px; animation: upd-down .9s cubic-bezier(.2, .9, .3, 1.15) both, dz-float 2.6s 1s ease-in-out infinite; }
.upd-dosa svg { width: 100%; height: 100%; overflow: visible; }
.upd-spark { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #ffd84a; animation: upd-spark 1.6s ease-in-out infinite; }
.upd-spark.s1 { left: -8px; top: 34px; } .upd-spark.s2 { right: -4px; top: 14px; animation-delay: .5s; } .upd-spark.s3 { right: -14px; top: 70px; width: 6px; height: 6px; animation-delay: 1s; }
.upd-title { margin: 0; font: 700 26px/1.2 var(--display); letter-spacing: 0; }
.upd-sub { margin: 10px 0 20px; color: var(--muted, #5b6b82); font-size: 14.5px; line-height: 1.55; }
.upd-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.upd-btns button { display: flex; align-items: center; justify-content: center; height: 48px; padding: 0; border: 0; outline: none; border-radius: 16px; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.upd-later { background: var(--bg, #f1f5fb); color: var(--muted, #5b6b82); }
.upd-go { background: var(--primary); color: #fff; }
@keyframes upd-dim { from { opacity: 0; } }
@keyframes upd-card { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes upd-down { from { transform: translateY(-70vh) rotate(-10deg); } 70% { transform: translateY(8px) rotate(2deg); } }
@keyframes upd-spark { 50% { transform: scale(1.8); opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .upd, .upd-card, .upd-dosa, .upd-spark { animation: none; } }

/* 메일로 바우처 받기 */
.hint-link { padding: 0; border: 0; background: none; color: var(--primary); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.v-mail { background: #eef4ff; border-style: solid; border-color: #cfe0ff; color: var(--primary); font-family: inherit; }
.mail-renew { display: block; margin: 0 auto 14px; padding: 6px 14px; border: 1px solid #d6e2f5; border-radius: 99px; background: none; color: var(--primary); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
/* 새 기능 소개: 제목이 한 줄이든 두 줄이든 제목·설명이 늘 같은 자리에 오게 칸 높이를 고정해요 */
.guide-card.news .guide-title { min-height: 2.4em; display: flex; align-items: center; justify-content: center; }
.guide-card.news .guide-text { display: flex; flex-direction: column; justify-content: center; }
.guide-badge { position: absolute; top: 16px; left: 18px; padding: 4px 10px; border-radius: 99px; background: #fff3e0; color: #e2552f; font-size: 12px; font-weight: 800; }
.v-tip { display: flex; align-items: flex-end; gap: 6px; margin: 2px 0 10px; padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.v-tip-dosa { flex: none; width: 46px; height: 64px; animation: dz-float 3.2s ease-in-out infinite; }
.v-tip-dosa svg { width: 100%; height: 100%; overflow: visible; }
.v-tip-say { position: relative; margin-bottom: 26px; padding: 9px 14px; border-radius: 16px; background: var(--ink); color: #fff; font: 700 15px/1.35 var(--display); box-shadow: 0 4px 12px rgba(19, 41, 75, .2); }
.v-tip-say::after { content: ''; position: absolute; left: -7px; bottom: 12px; border: 7px solid transparent; border-right-color: var(--ink); border-left: 0; }
.v-mail { position: relative; }
.v-mail.pulse { animation: v-pulse 1.8s ease-in-out infinite; }
@keyframes v-pulse { 50% { box-shadow: 0 0 0 5px rgba(47, 116, 240, .18); } }
.v-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #e2552f; color: #fff; font-size: 11px; font-style: normal; font-weight: 800; line-height: 20px; }
.msheet { position: fixed; inset: 0; z-index: 95; } /* 일정 창(50) 위, 확인 창·알림(100) 아래 */
.msheet-dim { position: absolute; inset: 0; background: rgba(19, 41, 75, .45); opacity: 0; transition: opacity .2s; }
.msheet-card { position: absolute; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; box-sizing: border-box; padding: 8px 22px calc(18px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--surface); color: var(--ink); transform: translateY(100%); transition: transform .24s ease-out; word-break: keep-all; }
.msheet.open .msheet-dim { opacity: 1; }
.msheet.open .msheet-card { transform: none; }
.msheet-head { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; }
.msheet-ic { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft, #eef4ff); color: var(--primary); }
.msheet-head h3 { margin: 0; font: 700 22px/1.25 var(--display); }
.msheet-head p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.msheet-steps { margin: 0; padding: 0; list-style: none; }
.msheet-steps li { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; }
.msheet-steps i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft, #eef4ff); color: var(--primary); font-style: normal; font-size: 13px; font-weight: 800; }
.msheet-steps .msheet-addr { display: block; margin: -2px 0 14px 38px; padding: 12px; border-radius: 12px; background: var(--bg); font: 700 15.5px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; word-break: break-all; user-select: all; -webkit-user-select: all; }
.msheet-note { margin: 2px 0 14px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.msheet-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-bottom: 10px; }
.msheet-btns .btn { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .v-mail.pulse { animation: none; } }
