/* cdu-trip.css — 새 여행 플랜 화면(#journey). 간결한 텍스트 + 여백·얇은 구분선 + 시간 축.
 * 버튼색: 모든 채움 버튼은 --cdu-btn(첫 페이지 히어로 버튼과 같은 톤 다운 핑크) 하나를 참조. 링크·강조 글자·체크 표시는 #c0486c. */
:root{--cdu-btn:#b05a74}
#cdu-trip,.tp-sheetwrap{--tp-ink:#3b2030;--tp-mut:#766b71;--tp-line:#efe3e8;--tp-pt:#c0486c;--tp-warn:#96600f;--tp-soft:#fbeef2;--tp-bg:#fff}
#cdu-trip{color:var(--tp-ink);font-size:15px;line-height:1.6;padding-bottom:28px;min-width:0;overflow-wrap:anywhere}
#cdu-trip *{box-sizing:border-box}
#cdu-trip h1,#cdu-trip h2,#cdu-trip h3{overflow-wrap:anywhere}
.tp-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tp-gap{height:14px}.tp-mt{margin-top:22px}.tp-mt8{margin-top:8px}

/* 상단 */
.tp-top{display:flex;align-items:center;gap:4px;padding:6px 0 12px;border-bottom:1px solid var(--tp-line)}
.tp-h1{font-size:18px;font-weight:600;margin:0;flex:1;min-width:0;letter-spacing:-.01em;outline:none}
.tp-back{width:44px;height:44px;display:grid;place-items:center;color:var(--tp-ink);margin-left:-10px;border-radius:50%}
.tp-h2{font-weight:600;font-size:15px;line-height:1.4;margin:26px 0 6px;display:flex;flex-wrap:wrap;gap:4px 8px;align-items:baseline}
.tp-h2 small{font-weight:400;font-size:12px;color:var(--tp-mut)}
.tp-no{color:var(--tp-pt);font-size:13px;font-variant-numeric:tabular-nums}
.tp-saved{font-weight:400;font-size:12px;color:#2f7d5b}
.tp-note{font-size:12.5px;color:var(--tp-mut);line-height:1.55}
.tp-err{margin:18px 0 0;padding:12px 0;border-top:1px solid var(--tp-ink);border-bottom:1px solid var(--tp-line);font-size:14px}

/* 입력: 밑줄형 */
.tp-in,.tp-sel,.tp-ta{width:100%;border:0;border-bottom:1px solid var(--tp-line);background:none;color:var(--tp-ink);font:inherit;font-size:15px;padding:10px 2px;min-height:44px;border-radius:0;outline:none}
.tp-ta{border:1px solid var(--tp-line);border-radius:8px;padding:10px;resize:vertical;font-size:14.5px}
.tp-in:focus,.tp-sel:focus,.tp-ta:focus{border-color:var(--tp-pt)}
.tp-in:focus-visible,.tp-sel:focus-visible,.tp-ta:focus-visible{outline:2px solid #e79db4;outline-offset:2px}
.tp-sel{width:auto;max-width:60%;text-align:right;padding:8px 2px}

/* 버튼: 모두 --cdu-btn */
.tp-btn{display:inline-flex;align-items:center;justify-content:center;text-align:center;min-height:44px;min-width:44px;padding:11px 18px;border:0;border-radius:10px;background:var(--cdu-btn);color:#fff;font:inherit;font-weight:600;font-size:15px;line-height:1.3;cursor:pointer}
.tp-btn:disabled{opacity:.4;cursor:not-allowed}
.tp-full{display:flex;width:100%}
.tp-grow{flex:1}
.tp-btn:focus-visible,.tp-act:focus-visible,.tp-link:focus-visible,.tp-nb:focus-visible,.tp-back:focus-visible,.tp-day-b:focus-visible,.tp-jump button:focus-visible,.tp-x:focus-visible,.tp-rb:focus-visible,.tp-ck input:focus-visible{outline:3px solid #e79db4;outline-offset:2px}
/* 링크·텍스트 버튼 */
.tp-link{border:0;background:none;color:var(--tp-pt);font:inherit;font-size:14px;padding:0 2px;cursor:pointer}
.tp-lk44{min-height:44px;display:inline-flex;align-items:center}
.tp-pastlink{margin-top:46px}
.tp-nb{width:44px;height:44px;display:grid;place-items:center;font-size:20px;color:var(--tp-ink);border-radius:50%}
.tp-nb:disabled{opacity:.3;cursor:not-allowed}

/* 체크: 작은 15px 체크 + 44px 높이의 라벨 */
.tp-ck{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;user-select:none;font-size:14.5px}
.tp-ck input{appearance:none;-webkit-appearance:none;width:15px;height:15px;border:1.5px solid var(--tp-mut);border-radius:3px;margin:0;display:grid;place-content:center;flex:0 0 auto;cursor:pointer;background:#fff}
.tp-ck input[type=radio]{border-radius:50%}
.tp-ck input:checked{background:var(--tp-pt);border-color:var(--tp-pt)}
.tp-ck input:checked::after{content:"";width:6px;height:3px;border-left:1.5px solid #fff;border-bottom:1.5px solid #fff;transform:rotate(-45deg) translate(1px,-1px)}
.tp-ck input[type=radio]:checked::after{width:5px;height:5px;border:0;border-radius:50%;background:#fff;transform:none}
.tp-ck span{min-width:0}
.tp-cols{display:grid;grid-template-columns:1fr 1fr;column-gap:12px}
.tp-cols1{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);column-gap:12px;align-items:center}
.tp-subind{padding-left:24px}
.tp-money{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tp-cny{max-width:130px}
.tp-step{display:flex;align-items:center;gap:14px}
.tp-me{margin-top:4px}
.tp-r{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:2px 0;border-bottom:1px solid var(--tp-line);font-size:14px;min-height:44px}
.tp-r>span,.tp-r>label{color:var(--tp-mut);white-space:nowrap}
.tp-r>b{text-align:right;font-weight:500;min-width:0}

/* 달력 */
.tp-calhd{display:flex;justify-content:space-between;align-items:center}
.tp-calhd b{font-weight:600}
.tp-grid{display:grid;grid-template-columns:repeat(7,1fr);text-align:center}
.tp-dow{font-size:11px;color:var(--tp-mut);padding:3px 0}
.tp-day-b{height:44px;border:0;background:none;color:var(--tp-ink);font:inherit;font-variant-numeric:tabular-nums;cursor:pointer;border-radius:8px;position:relative}
.tp-day-b:disabled{opacity:.3;cursor:not-allowed}
.tp-day-b.in{background:var(--tp-soft);box-shadow:inset 0 -2px 0 var(--tp-pt)}
.tp-day-b.edge{background:var(--tp-pt);color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:3px}

/* 요약(박스 대신 구분선) */
.tp-sum{margin:6px 0 0}
.tp-sum .tp-r:last-child{border-bottom:0}

/* 고정 점프 내비 */
.tp-jump{display:flex;gap:4px 14px;flex-wrap:wrap;padding:6px 0 0;margin-top:10px;font-size:13px;position:sticky;top:0;background:var(--tp-bg);z-index:4;border-bottom:1px solid var(--tp-line)}
.tp-jump button{border:0;background:none;color:var(--tp-mut);font:inherit;font-size:13px;min-height:44px;min-width:44px;padding:0 4px;margin-bottom:-1px;border-bottom:2px solid transparent;cursor:pointer}
.tp-jump button.on{color:var(--tp-ink);border-bottom-color:var(--cdu-btn);font-weight:700}

/* 큰 구획 */
.tp-sec{margin-top:28px;scroll-margin-top:56px}
.tp-sh{font-weight:600;font-size:17px;letter-spacing:-.01em;margin:0 0 4px;padding:0 0 10px;border-bottom:1px solid var(--tp-ink);display:flex;align-items:baseline;gap:10px;outline:none}
.tp-ix{font-weight:300;font-size:13px;color:var(--tp-mut);font-variant-numeric:tabular-nums;letter-spacing:.06em}
.tp-sh small{margin-left:auto;font-weight:400;color:var(--tp-mut);font-size:12px;text-align:right}

/* 시간 축: 3열 (시각 | 제목+보조 | 작업) */
.tp-rows{position:relative;margin-left:4px;border-left:1px solid var(--tp-line)}
.tp-line{display:grid;grid-template-columns:50px minmax(0,1fr) auto;column-gap:10px;align-items:start;position:relative;padding:8px 0 8px 16px;font-size:14.5px}
.tp-rows .tp-line::before{content:"";position:absolute;left:-3.5px;top:1.1em;width:6px;height:6px;border-radius:50%;background:var(--tp-bg);border:1px solid var(--tp-mut)}
.tp-rows .tp-line.fixed::before{background:var(--tp-ink);border-color:var(--tp-ink)}
.tp-t{color:var(--tp-mut);font-size:12.5px;font-variant-numeric:tabular-nums;letter-spacing:.02em;padding-top:2px;overflow-wrap:normal;word-break:keep-all}
.tp-n{min-width:0}
.tp-n b{font-weight:500;letter-spacing:-.005em}
.tp-s{display:block;color:var(--tp-mut);font-size:12.5px;line-height:1.5;margin-top:1px}
.tp-sind{padding-left:25px}
.tp-a{display:flex;gap:0;align-items:flex-start;white-space:nowrap;justify-content:flex-end;min-width:0}
.tp-act{border:0;background:none;color:var(--tp-mut);font:inherit;font-size:12.5px;min-height:44px;min-width:44px;padding:0 6px;margin-top:-10px;cursor:pointer;text-decoration:underline;text-decoration-color:var(--tp-line);text-underline-offset:3px}
.tp-act:hover{color:var(--tp-pt);text-decoration-color:var(--tp-pt)}
.tp-line.tp-plain{grid-template-columns:minmax(0,1fr) auto;padding-left:0;border-bottom:1px solid var(--tp-line)}
.tp-rows.tp-plain{border-left:0;margin-left:0}
.tp-plain.tp-line::before{display:none}
.tp-line.chg .tp-n b{text-decoration:underline;text-decoration-color:var(--tp-pt);text-underline-offset:3px}
.tp-in2{margin:6px 0 8px}
.tp-in2 .tp-line{grid-template-columns:44px minmax(0,1fr)}

/* 상태 라벨: 박스 없는 작은 글자 */
.tp-tag{font-size:11.5px;color:var(--tp-mut);margin-left:8px;white-space:nowrap;letter-spacing:.02em}
.tp-tag.fix{color:var(--tp-ink);font-weight:700}
.tp-tag.chk{color:var(--tp-warn)}
.tp-tag.chg{color:var(--tp-pt);font-weight:700}
.tp-legend{font-size:12px;color:var(--tp-mut);margin:14px 0 0;line-height:1.9}
.tp-legend .tp-tag{margin-left:0}

/* 날짜 헤더 */
.tp-day{display:flex;justify-content:space-between;align-items:baseline;margin:22px 0 4px;font-size:12px;color:var(--tp-mut);letter-spacing:.08em;font-variant-numeric:tabular-nums;outline:none}
.tp-day b{font-size:15px;color:var(--tp-ink);letter-spacing:-.01em;font-weight:600}
.tp-undo{margin:2px 0 0}

/* 진행선 */
.tp-prog{list-style:none;margin:14px 0 0;padding:0}
.tp-prog>li{display:grid;grid-template-columns:22px minmax(0,1fr);column-gap:8px;padding:10px 0;border-bottom:1px solid var(--tp-line);color:var(--tp-mut)}
.tp-prog>li.cur{color:var(--tp-ink)}
.tp-pm{font-size:14px;text-align:center;line-height:1.6}
.tp-prog .tp-state{margin-left:8px;font-size:11.5px;letter-spacing:.02em}
.tp-prog>li.cur .tp-state{font-weight:700}

/* 일지 */
.tp-vis{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2px 10px;padding:6px 0;border-bottom:1px solid var(--tp-line)}
.tp-vis b{font-weight:500;min-width:0;font-size:14.5px}
.tp-rate{display:flex;flex-wrap:wrap}
.tp-rb{border:0;background:none;color:var(--tp-mut);font:inherit;font-size:12.5px;min-height:44px;min-width:44px;padding:0 8px;cursor:pointer;text-decoration:underline;text-decoration-color:var(--tp-line);text-underline-offset:3px}
.tp-rb.on{color:var(--tp-ink);font-weight:700;text-decoration-color:var(--tp-pt)}

/* 계산 중 */
.tp-spin{text-align:center;padding:90px 0;color:var(--tp-mut)}
.tp-spin i{display:block;width:26px;height:26px;border:3px solid var(--tp-line);border-top-color:var(--tp-pt);border-radius:50%;margin:0 auto 12px;animation:tpr .9s linear infinite}
@keyframes tpr{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.tp-spin i{animation:none}.tp-sheet{transition:none!important}}

/* 하단 고정 바: 앱 하단 탭 위 */
.tp-bar{position:sticky;bottom:calc(var(--tp-nav,72px) + 6px);z-index:5;margin-top:22px;padding:14px 0 6px;background:linear-gradient(rgba(255,255,255,0),#fff 28%)}
.tp-barin{display:flex;flex-direction:column;gap:6px}
.tp-barin.tp-two{flex-direction:row;flex-wrap:wrap;gap:8px}
.tp-barin.tp-two .tp-btn{flex:0 0 auto}.tp-barin.tp-two .tp-grow{flex:1 1 150px}

/* 언니에게 말하기 시트 */
.tp-sheetwrap{position:fixed;inset:0;z-index:90}
.tp-scrim{position:absolute;inset:0;background:rgba(36,27,33,.28)}
.tp-sheet{position:absolute;left:50%;bottom:0;width:100%;max-width:560px;transform:translate(-50%,105%);transition:transform .22s;background:#fff;border-radius:18px 18px 0 0;box-shadow:0 -10px 30px rgba(0,0,0,.14);max-height:78vh;display:flex;flex-direction:column;padding:0 16px max(14px,env(safe-area-inset-bottom));color:var(--tp-ink);font-size:14px}
.tp-sheetwrap.open .tp-sheet{transform:translate(-50%,0)}
.tp-shhd{display:flex;justify-content:space-between;align-items:center;padding:8px 0 4px;font-weight:600}
.tp-x{width:44px;height:44px;border:0;background:none;font-size:24px;color:var(--tp-mut);cursor:pointer}
.tp-log{overflow:auto;min-height:60px;flex:1;max-height:38vh}
.tp-msg{margin:8px 0;font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.tp-msg.u{color:var(--tp-pt)}
.tp-who{display:block;font-size:11px;color:var(--tp-mut);letter-spacing:.04em}
.tp-qs{display:flex;flex-wrap:wrap;gap:0 14px;margin:2px 0}
.tp-sf{display:flex;gap:8px;margin-top:6px;align-items:center}
.tp-sf .tp-in{border:1px solid var(--tp-line);border-radius:10px;padding:8px 12px}
.tp-sf .tp-btn{flex:none}

@media(max-width:370px){.tp-line{grid-template-columns:44px minmax(0,1fr) auto;column-gap:6px;padding-left:12px}.tp-act{padding:0 4px}}

/* ── 풀어 쓴 플랜(2026-10-13): 도입부 · 미션 · 날짜별 오전/오후 · 마무리 ── */
.tp-story{margin:6px 0 4px}
.tp-p{margin:0 0 14px;font-size:15px;line-height:1.85;color:var(--tp-ink);letter-spacing:-.005em}
.tp-story .tp-p:first-child{font-size:16px}
.tp-outro{margin-top:26px;padding-top:18px;border-top:1px solid var(--tp-line)}
.tp-outro .tp-p:last-child{font-weight:600;color:var(--tp-pt);margin-bottom:6px}
.tp-ms{margin:14px 0 6px;padding:14px 0 4px;border-top:1px solid var(--tp-line);border-bottom:1px solid var(--tp-line)}
.tp-msh{font-size:13px;font-weight:600;color:var(--tp-mut);margin:0 0 6px;letter-spacing:.02em}
.tp-m{padding:8px 0 10px}
.tp-mt1{display:flex;justify-content:space-between;align-items:center;gap:10px}
.tp-mt1 b{font-weight:600;font-size:14.5px;min-width:0}
.tp-mh{display:block;font-size:12.5px;color:var(--tp-mut);line-height:1.55;margin-top:2px}
.tp-stamps{display:inline-flex;gap:5px;flex:0 0 auto}
.tp-stamps i{width:12px;height:12px;border-radius:50%;border:1.5px solid var(--tp-pt);display:block}
.tp-stamps i.on{background:var(--tp-pt)}
.tp-dt{font-size:17px;font-weight:600;margin:2px 0 4px;letter-spacing:-.01em}
.tp-lead{margin:0 0 10px;font-size:14px;line-height:1.7;color:var(--tp-mut)}
.tp-part{margin:0 0 6px}
.tp-ph{font-size:12.5px;font-weight:600;color:var(--tp-pt);margin:12px 0 4px;letter-spacing:.06em}
.tp-sps{display:flex;flex-wrap:wrap;gap:2px 10px;margin:-6px 0 10px}
.tp-sp{display:inline-flex;align-items:center;gap:2px;font-size:12.5px;color:var(--tp-mut)}
.tp-sp em{font-style:normal;max-width:12em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tp-sp .tp-act{margin-top:0}
.tp-sp.chg em{text-decoration:underline;text-decoration-color:var(--tp-pt);text-underline-offset:3px}
.tp-tt{margin:2px 0 14px;font-size:13px;color:var(--tp-mut)}
.tp-tt summary{cursor:pointer;min-height:44px;display:flex;align-items:center}
.tp-amb-q{display:flex;flex-wrap:wrap;gap:0 14px;margin:2px 0 6px}
#tp-amb{display:block;width:100%;margin-top:6px}

/* 이 플랜으로 여행하기 — 축하 */
.tp-cele{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;background:rgba(59,32,48,.55);opacity:0;transition:opacity .3s;padding:24px}
.tp-cele.on{opacity:1}
.tp-cele-in{background:#fff;border-radius:18px;padding:30px 24px;max-width:340px;text-align:center;box-shadow:0 12px 40px rgba(0,0,0,.25);transform:translateY(8px);transition:transform .3s}
.tp-cele.on .tp-cele-in{transform:none}
.tp-cele-ic{font-size:30px;color:var(--tp-pt);margin-bottom:6px}
.tp-cele-in b{display:block;font-size:19px;line-height:1.4;color:var(--tp-ink)}
.tp-cele-in p{margin:10px 0 0;font-size:14px;color:var(--tp-mut);line-height:1.6}
@media (prefers-reduced-motion:reduce){.tp-cele,.tp-cele-in{transition:none}}
