/* 색·간격·대비를 한 곳에.
   본문 대비 4.5:1 이상을 지킨다. 글자 크기는 rem 이라 브라우저 설정을 따른다 —
   큰 글씨를 쓰는 사람이 적지 않고, px 로 박으면 그 설정이 무시된다. */
/* ⚠️ 제목용 NanumSquareRoundEB — Naver CDN(nanum-square-round.css)의 @font-face 에는
   font-display 가 전혀 없다(= 기본값 block, 최대 3초 숨겼다가 받아지면 바꿔 그린다).
   본문(IBM Plex Sans KR)은 display=optional 로 고쳐 바뀌어 그리지 않는데, 제목만
   따로 늦게 바뀌어 그려져 — 본문은 가만있고 제목만 글꼴이 "툭" 바뀌는 걸로 보였다
   (2026-11-15 Bearstar: "웹 안에서도 좀 다른 폰트가 있다던데"). 같은 family 이름에
   font-display 를 다시 선언하면 더 나중 규칙이 이긴다 — optional 로 덮어써 본문과
   같은 전략으로 맞춘다(받아 둔 게 있으면 바로, 없으면 이번 판은 바탕 글꼴로 — 바뀌어
   그리지 않는다). src 주소는 Naver 쪽 파일 그대로. */
@font-face {
  font-family: "NanumSquareRoundEB"; font-display: optional; font-weight: 700; font-style: normal;
  src: url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareRound/NanumSquareRoundEB.woff2) format("woff2"),
       url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareRound/NanumSquareRoundEB.woff) format("woff");
}
/* ⚠️ 본문용 Pretendard 도 같은 함정 — jsdelivr 가 주는 CSS 의 @font-face 가 font-display:swap 으로
   박혀 있다(URL 쿼리로 못 바꾼다, Google Fonts 와 다르다). 같은 family·weight·src 로 다시 선언해
   optional 로 덮어쓴다(2026-11-15, 위 NanumSquareRoundEB 와 같은 이유 — 받아 둔 게 있으면 바로
   쓰고, 없으면 이번 판은 바탕 글꼴로 가고 바뀌어 그리지 않는다). */
@font-face {
  font-family: "Pretendard Variable"; font-display: optional; font-weight: 45 920; font-style: normal;
  src: url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@latest/packages/pretendard/dist/web/variable/woff2/PretendardVariable.woff2) format("woff2-variations");
}
/* 팔레트: 엽서 · 모래와 하늘(docs/brandkit/DESIGN-SYSTEM.md, 2026-10-25 D-021~D-024) — 흰 바탕, 흰 카드(가는 베이지 선), 모래색·하늘색 카드, 남색 잉크, 하늘색 도장 하나. (D-025: 바탕은 흰색, 모래는 카드·칸에만)
   홈(D-020)에서 시작한 엽서 톤을 앱 전체로 넓혔다. 깊이는 가는 선 + 옅은 갈색 그림자.
   (2026-10-21 ~ 10-25 는 apple 팔레트였다 — docs/design-md/apple/DESIGN.md) */
:root {
  --css-ver: "v1990";   /* app.js APP_VER 와 같게 — 다르면 화면이 캐시를 비우고 한 번 새로 받는다(배포 중 JS · CSS 섞임) */
  --bg:#ffffff; --surface:#fff; --sunken:#f7f7f7; --line:#ebebeb; --line-strong:#9cc7e6;
  --fg:#1e3a5f; --muted:#56708d; --accent:#0369a1; --accent-fg:#fff;
  --accent-soft:#e0f2fe; --hi:#d9480f;
  --warn:#b45309; --warn-soft:#fdf1e7; --ok:#1f8a4c; --ok-soft:#e6f6ec;
  /* 진짜 빨강. --warn 은 주황(호박색)이라 "멈춤" 이 아니라 "주의" 로 읽힌다 —
     다 써서 더 못 쓰는 자리에는 빨강이 맞다. */
  --stop:#c0272d; --stop-soft:#fdecec;
  --info:#0369a1; --info-soft:#e0f2fe;
  /* 숙소는 **주황**, 이동은 **파랑**. 나머지는 그대로 둔다.
     이 넷은 줄 왼쪽 띠·아이콘·**지도 핀**이 같이 쓰는 색이라, 한 곳만
     바꾸면 줄은 주황인데 핀은 보라가 된다 — 같은 것을 가리키는 표시가
     서로 다른 색이면 둘이 다른 것인 줄 안다. app.js 의 KIND_PIN 과 짝이다. */
  /* ⚠️ 색은 **셋**이다 — 숙소 주황, 이동 파랑, 나머지는 전부 초록.
     다섯 갈래를 다섯 색으로 칠했더니 줄마다 색이 달라 "무슨 뜻인지" 가
     안 읽혔다. 색이 뜻을 가지려면 **가짓수가 적어야** 한다. 사람이
     가리는 것도 결국 셋이다: 자는 곳 · 움직이는 것 · 그 밖의 할 일.
     지도 핀과 선도 같은 색을 쓴다(app.js 의 KIND_PIN). */
  /* ⚠️ **기타는 검정 계열**이다(2026-10-25). 전에는 관광·식사와 같은
     초록이라, 줄을 훑을 때 "무엇인지 정해진 것" 과 "아직 아무것도 아닌 것" 이
     같은 무게로 보였다. 기타는 **아직 안 정한 자리**라 색이 말을 걸면 안 된다. */
  /* 갈래 색(불편사항 #5) — 숙소 연한 빨강 · 이동 파랑 · 관광지 초록 · 티켓(투어) 연보라 · 맛집 주황 · 기타 검정 · 선명하게 */
  /* 갈래 색은 늘(승주 · 무색 시안 D 되돌림) — 숙소 주황 · 관광지 초록 · 투어 · 이벤트 보라 · 기타 검정(애매한 것만) · 이동 파랑 · 식당 청록 */
  --stay:#f76707; --move:#1f6feb; --eat:#0fa5a5; --see:#18a957; --etc:#1b1f24; --tour:#9a6bf0; --shop:#18a957;
  /* 같은 색의 **옅은 짝.** 확정한 줄의 바탕에 쓴다 — 진한 쪽은 왼쪽 띠와
     아이콘에, 옅은 쪽은 바탕에. 둘이 같은 색이라 한 덩이로 읽힌다.
     ⚠️ 짙기를 눈으로 고르지 않았다. 바탕 위에 글자가 읽히려면 대비가
        4.5:1 이상이어야 해서, 본색을 8% 만 섞었다(#111 글자 기준 13:1). */
  --stay-bg:#fff1e6; --move-bg:#eaf2fe; --see-bg:#e8f7ee; --etc-bg:#eef0f2; --eat-bg:#e3f8f8; --tour-bg:#f4eefe; --shop-bg:#e8f7ee;
  /* 교통 줄을 **확정했을 때**의 색 — 디자인 키트(docs/design-md/notion) brand-teal.
     ⚠️ 보라(--move)로 확정 바탕을 깔았더니 "안 어울린다"(태인, 2026-11-02). 확정은
        오래 가는 상태라 차분한 청록으로. 파랑 강조·주황 숙소·초록 관광과 안 겹친다. */
  --fix:#2a9d99; --fix-bg:#eaf5f5; --fix-ink:#1a6d6a;   /* ink = 옅은 바탕 위 글자(대비 5:1 이상) */
  --b:"Pretendard Variable","IBM Plex Sans KR","Malgun Gothic",system-ui,sans-serif;
  --m:ui-monospace,Consolas,monospace;
  --r:14px;
  /* "둥근 박스" 유틸 — 준비물 · 예산 소카드 · 세부일정 · 예산 카테고리가 같은 모양을
     각자 하드코딩하고 있어 토큰으로 뺌(2026-11-26 베어스타 지시 리팩토링) */
  --box-r:12px; --box-pad:.5rem .75rem;
  /* 지도 핀 삭제버튼(.pinpop-del) 기본(빨강) 색 — del 전용 자리만 토큰화(2026-11-26).
     add/info 와 같이 쓰는 kind(stay/move)별 색은 명시도 경쟁으로 얽혀 있어 손대지 않음(theme.css ~5178 주석 참고). */
  --pin-del-fg:#c92a2a; --pin-del-fg-soft:#e8b4b4; --pin-del-hover-bg:#fff5f5;
  /* 폰트 크기 토큰 — font-size 553곳이 전부 매직넘버였다. 당장 전부 바꾸진 않고
     새로 쓰는 곳부터 이 변수를 쓴다(기존 값을 한 번에 치환하면 위험이 크다) */
  --fs-xs:.68rem; --fs-sm:.76rem; --fs-base:.82rem; --fs-md:.88rem; --fs-lg:.95rem;
  color-scheme: light;
}
/* 어두운 테마는 사용자가 ☀/🌙 버튼으로 골랐을 때만. 기본은 밝은 카드형이다(설계 1.3 "따뜻한 카드형").
   data-theme 가 없는 첫 순간에는 기기 설정을 따르고, app.js 가 바로 저장된 값(기본 light)을 넣는다. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#0b1726; --surface:#13223a; --sunken:#0f1d30; --line:#22354d; --line-strong:#3a5273;
    --fg:#eaf2fa; --muted:#9fb3c8; --accent:#5ab8f5; --accent-fg:#0b1726;
    --accent-soft:#163a5a; --hi:#ff8c5a;
    --warn:#ff9f0a; --warn-soft:#3a2a10; --ok:#30d158; --ok-soft:#10331c;
    --stop:#ff6b6b; --stop-soft:#3a1618;
    --info:#5ab8f5; --info-soft:#163a5a;
    --stay:#ff922b; --move:#5b9dff; --eat:#4fd1c5; --see:#3ddc84; --etc:#d0d4da; --tour:#b794ff; --shop:#3ddc84;
    /* 어두울 때는 **섞는 방향이 반대**다. 밝은 바탕에 색을 섞어 옅게 만드는
       대신, 어두운 바탕에 색을 조금 섞어 살짝 들뜨게 한다 — 밝은 쪽 값을
       그대로 쓰면 글자가 안 읽힌다(흰 글자 위 연주황). */
    --stay-bg:#2e1d10; --move-bg:#13223a; --see-bg:#11291b; --etc-bg:#1c1f23; --eat-bg:#10292a; --tour-bg:#221a36; --shop-bg:#11291b;
    --fix:#4fc4bf; --fix-bg:#10282a; --fix-ink:#7fd9d4;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:#0b1726; --surface:#13223a; --sunken:#0f1d30; --line:#22354d; --line-strong:#3a5273;
  --fg:#eaf2fa; --muted:#9fb3c8; --accent:#5ab8f5; --accent-fg:#0b1726;
  --accent-soft:#163a5a; --hi:#ff8c5a;
  --warn:#ff9f0a; --warn-soft:#3a2a10; --ok:#30d158; --ok-soft:#10331c;
  --stop:#ff6b6b; --stop-soft:#3a1618;
  --info:#5ab8f5; --info-soft:#163a5a;
  --stay:#ff922b; --move:#5b9dff; --eat:#4fd1c5; --see:#3ddc84; --etc:#d0d4da; --tour:#b794ff; --shop:#3ddc84;
  --stay-bg:#2e1d10; --move-bg:#13223a; --see-bg:#11291b; --etc-bg:#1c1f23; --eat-bg:#10292a; --tour-bg:#221a36; --shop-bg:#11291b;
  --fix:#4fc4bf; --fix-bg:#10282a; --fix-ink:#7fd9d4;
  color-scheme: dark;
}

[hidden] { display: none !important }   /* display:flex 같은 규칙이 hidden 을 이기지 않게 */

* { box-sizing: border-box }
html { font-size: 100% }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--b); font-size: 1rem; line-height: 1.55;
  padding-bottom: 12rem;                 /* 채팅 시트 자리. app.js 가 실제 높이로 다시 잡는다 */
  word-break: keep-all; overflow-wrap: break-word;   /* 줄바꿈은 낱말 단위(「서 / 울」 처럼 낱말 중간에서 안 끊김 · 불편사항 #1123) · 긴 주소는 그래도 끊음 */
}
/* 첫 화면에는 채팅 시트가 없다 — 위 12rem 은 일정 화면(app.js 가 쓰는) 몫인데 첫 화면도
   그대로 물려받아, 카드 밑에 아무것도 없는 12rem 짜리 빈 공간이 하단 고정 탭바 아래까지
   이어졌다(2026-11-23 베어스타: "메뉴바는 고정이라 그 공간은 못 쓰는 거야" — 탭바는
   position:fixed 라 그 뒤의 빈 공간을 채우지 않는다). 탭바 자리는 index.html 의
   `main { padding-bottom: 5.2rem }` 이 이미 챙기므로 body 쪽은 더 필요 없다. */
body[data-page="home"] { padding-bottom: 0 }
/* 글이 놓이는 폭. 떠 있는 단추도 이 폭을 기준으로 서므로 **한 곳에서**
   정한다 — 둘이 따로 적혀 있으면 한쪽만 고치는 일이 생긴다. */
:root { --wrap: 44rem }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: .9rem 1rem 2rem }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-fg);
        padding: .5rem 1rem; border-radius: 0 0 var(--r) 0; z-index: 10 }
.skip:focus { left: 0 }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap }

/* ── 머리말 ── */
/* ⚠️ align-items 를 baseline 으로 두면 **로고가 글자 밑줄에 맞춰 내려앉는다.**
   그림과 글자를 한 줄에 둘 때는 가운데 정렬이어야 한다.
   그리고 왼쪽 묶음이 줄어들 수 있어야 한다(flex 1 1 auto + min-width 0) —
   안 그러면 제목 밑줄 글이 길어서 묶음이 통째로 넓어지고, 오른쪽
   더보기가 **다음 줄로 밀려난다.** 머리말이 세 줄이 되는 까닭이 이것이다. */
.top { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; justify-content: space-between; margin-bottom: .6rem }
/* 머리줄과 첫 카드 사이를 넉넉히 — 붙어 있으면 제목이 머리줄의 일부로 읽힌다 */
.top { margin-bottom: 2.5rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line) }
@media (max-width: 40rem) { .top { margin-bottom: 1.5rem; padding-bottom: .6rem } }
/* 첫 화면만 — 탭 셋(.pagehd.hometabs)이 하단 고정 탭바로 빠지면서(2026-11-23) 그 사이에
   있던 "제목과 분리" 여백이 머리줄과 카드 사이 빈 공간으로 그대로 남았다(베어스타: "여기 공간이
   너무 넓어"). 첫 화면은 머리줄 바로 아래가 카드라 좁게 둔다. */
body[data-page="home"] .top { margin-bottom: .9rem; padding-bottom: .5rem }
@media (max-width: 40rem) { body[data-page="home"] .top { margin-bottom: .7rem; padding-bottom: .45rem } }
/* 머리줄 안의 진행 글은 일정 위 띠(workbar)와 같은 말이라 숨긴다 — 두 번 적히면 머리줄만 길어진다 */
.fillbar { display: none }
/* 저장 안내 설명은 넓은 화면에서만 — 그래야 로고·상태·로그인이 한 줄에 선다 */
@media (max-width: 64rem) { .savestate .hint { display: none } }
/* ⚠️ basis 를 auto 로 두면 소용없다. 줄을 바꿀지 말지는 **내용 너비**로
   정해지므로, min-width:0 을 줘도 "원래 넓은 묶음" 이라 먼저 줄을 바꾼다.
   basis 0 이어야 "자리를 안 차지하다가 남는 만큼 벌어지는" 묶음이 된다. */
.top > .row { flex: 1 1 0%; min-width: 0; align-items: center; flex-wrap: nowrap }
.top > .row > h1 { min-width: 0 }
/* ⚠️ nowrap 인 줄 안에서 h1 이 눌리면 **"일정" 이 "일/정" 으로 쪼개진다.**
   글자가 세로로 끊기는 것만큼 싸구려로 보이는 것이 없다. 제목은 줄바꿈을
   막고, 좁아지면 밑줄 설명을 먼저 접는다 — 설명은 아래 화면에도 있다. */
.top > .row > h1 { white-space: nowrap }
.top > .row > h1 .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
@media (max-width: 600px) { .top > .row > h1 .sub { display: none } }
/* ── 로고 ──────────────────────────────────────────────────────
   누르면 이 일정을 닫고 목록으로 나간다. 로고만 두면 "나간다" 가 안 읽혀서
   옆에 ‹ 목록 을 붙였다. 좁은 화면에서는 그 글자를 접는다 — 로고와 제목이
   한 줄에 들어가는 것이 먼저다. */
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  text-decoration: none; color: var(--fg);
  padding: .25rem .5rem .25rem .25rem; border-radius: 999px;
  border: 1px solid transparent; transition: background .12s, border-color .12s;
}
.brand:hover, .brand:focus-visible { background: var(--surface); border-color: var(--line) }
.brand .mark { width: 30px; height: 30px; flex: none; display: block }
.brand .word { font-size: 1rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap }
.brand .word b { font-weight: 800 }
.brand .word i { font-style: normal; color: var(--accent); margin: 0 .05em; font-weight: 800 }
.brand .leave {
  font-size: .68rem; color: var(--muted); white-space: nowrap;
  border-left: 1px solid var(--line); padding-left: .5rem; margin-left: .125rem;
}
/* ⚠️ 좀다고 숨기지 않는다. 전에는 480px 아래에서 "‹ 목록" 을
   접었는데, 그러면 폰에서는 **나가는 길이 아예 안 보인다** —
   정작 닮기 어려운 쪽이 작은 화면인데 거기서 지우면 거꾸로 된다.
   대신 글자를 줄이고 여백을 좁혀 한 줄에 넣는다. */
@media (max-width: 480px) {
  .brand { gap: .25rem; padding-right: .35rem }
  .brand .mark { width: 26px; height: 26px }
  .brand .word { font-size: .92rem }
  .brand .leave { font-size: .68rem; padding-left: .35rem }

  /* ⚠️ 구글 단추는 **200px 고정**이라 360px 화면에서 로고와 한 줄에
     못 들어간다(157 + 200 > 328). 그런데 .top > .row 가 flex: 1 1 0%
     에 min-width: 0 이라 **0까지 줄고**, 그 안의 .brand 는 flex: 0 0 auto 라
     안 줄어서 행 밖으로 샐져나왔다 — 구글 단추 밑에 깔려 "TripChat" 이
     "TripCha" 로 잘려 보였다. 내용보다 작게 못 줄이게 막으면 flex-wrap 이
     제 일을 해서 로그인 칸이 다음 줄로 내려간다.
     줄이고 숙이는 대신 **두 줄을 쓴다** — 둘 다 온전히 보여야 하는 것이다. */
  .top > .row { flex: 1 1 auto; min-width: min-content }
}

h1 { font-size: 1.05rem; margin: 0; font-weight: 600; letter-spacing: -.015em }
h1 .sub { display: block; font-size: .76rem; color: var(--muted); font-weight: 400; margin-top: .1rem }
h2, .h2 { font-size: 1rem; margin: 1rem 0 .5rem; font-weight: 600 }
/* 줄이 바뀌어도 **오른쪽에 남는다.** margin-left:auto 가 없으면 줄바꿈된
   순간 왼쪽으로 떨어져 제목 밑에 끼어든다(실제로 그랬다). */
.headright { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; margin-left: auto; flex: 0 0 auto }
.headright > .row { flex-wrap: wrap; justify-content: flex-end }
.themebtn { background: transparent; border: 1px solid var(--line); border-radius: 999px; min-height: 0; padding: .125rem .5rem; font-size: .85rem }

/* 일정에 쓸 말. 테마 단추와 같은 키로 맞춘다 — 둘 다 '화면을 어떻게 볼까' 다. */
.langsel {
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  min-height: 0; padding: .125rem 1.5rem .125rem .5rem; font-size: .82rem;
  color: var(--muted); width: auto; cursor: pointer;
}
.langsel:hover { color: var(--fg) }

/* 목록으로 돌아가는 길. 그림 대신 글자로 둔다 — 집 모양은 '홈' 으로도
   '숙소' 로도 읽혀서, 숙소가 잔뜩 나오는 화면에서는 헷갈린다. */
.btn.back {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  border-radius: 999px; padding: .25rem .75rem; font-size: .82rem; font-weight: 600;
  white-space: nowrap; text-decoration: none;
}
.btn.back:hover { color: var(--fg); border-color: var(--muted) }


/* ── 알아두실 것 ──────────────────────────────────────
   전에는 다섯 문단이 쭉 깔려 있었다. 아무도 안 읽는다 — 길면 '약관' 으로
   보이고 눈이 건너뛴다. **손해를 볼 수 있는 한 줄만** 밖에 두고 나머지는
   접는다. 접어 둔 것은 숨긴 것이 아니라 찾으면 있는 것이다. */
.guide { margin: .5rem 0 0; font-size: .82rem; color: var(--muted) }
.guide > summary { cursor: pointer; list-style: none; padding: .2rem 0 }
.guide > summary::-webkit-details-marker { display: none }
.guide > summary::before { content: "▸"; display: inline-block; font-size: .8em; margin-right: .25rem; transition: transform .15s ease }
.guide[open] > summary::before { transform: rotate(90deg) }
.guide > summary:hover { color: var(--fg) }
.guide ul { margin: .25rem 0 0; padding-left: 1rem; line-height: 1.7 }

/* ── 일정 짜기 물어보기 ────────────────────────────────
   바로 짜지 않고 묻는 까닭: 날짜별로 하나씩 부르느라 몇십 초가 걸린다.
   조건을 더 적으려던 사람의 말을 가로채면 그 시간을 통째로 버린다. */
.setupask {
  margin: 0 0 .75rem; padding: .75rem 1rem;
  border: 1px solid var(--accent); border-radius: var(--r);
  background: var(--surface);
}
.setupask[hidden] { display: none }
.setupask .l { font-weight: 700; font-size: .95rem }
.setupask .st { margin: .25rem 0 .5rem; font-size: .82rem; color: var(--muted) }

/* 짜는 동안 잠긴 조건 칸 — 왜 안 눌리는지 보이게 한다. */
#headerForm.locked { opacity: .5; pointer-events: none }
@media (prefers-reduced-motion: reduce) { .guide > summary::before { transition: none } }

/* ── 로그인 ────────────────────────────────────────────
   구글 단추는 구글이 그린다(상표 규칙). 우리가 하는 일은 자리를 내주고,
   들어온 뒤에 이름과 로그아웃을 같은 키로 세우는 것뿐이다. */
.loginbox { display: inline-flex; align-items: center; gap: .35rem }
.loginbox .gbtn { display: inline-flex; align-items: center; min-height: 1.9rem }
/* ⚠️ 여기 overflow:hidden 을 두면 **계정 메뉴가 잘린다.** 메뉴는 이 단추에
   매달린 absolute 라, 단추가 제 밖을 자르면 메뉴도 같이 잘려 아무것도
   안 보인다(실제로 그랬다 — DOM 에는 있는데 화면에는 없었다).
   긴 이름을 줄이는 일은 **안쪽 글자 칸**이 맡는다. */
.loginbox .who {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .82rem; color: var(--muted); max-width: 9rem;
  white-space: nowrap;
}
.loginbox .who > span { overflow: hidden; text-overflow: ellipsis; min-width: 0 }
.loginbox .face { width: 1.3rem; height: 1.3rem; border-radius: 999px; flex: none }
/* ⚠️ 자리가 좁으면 **단추 글자가 먼저 접혔다** ("로그/아웃"). 이름은 이미
   말줄임이 걸려 있으니, 줄어드는 쪽은 이름이어야 한다. */
/* ⚠️ 로그아웃을 ⋯ 안으로 옮겨 머리말은 '누구로 들어와 있나' 만
   보여 준다. 전에는 로고·이름·단추·테마·⋯ 를 한 줄에 세우다
   글자가 잘렸다. 폭을 짜내는 것보다 덜 쓰는 것을 치우는 쪽이 낫다. */
.loginbox .who { flex: 0 1 auto; min-width: 0; max-width: 7rem }
.loginbox .gbtn { flex: none }

/* 언어 고르개 — 머리말에서 조용히. 고르는 칸은 테두리 없이
   아이콘 옆에 붙여, 단추와 같은 키로 보이게 한다. */
.langpick {
  display: inline-flex; align-items: center; gap: .25rem; flex: none;
  border: 1px solid var(--line); border-radius: 999px;
  padding: .125rem .5rem .125rem .5rem; margin: 0; font-size: .82rem; color: var(--muted);
}
.langpick:hover { border-color: var(--line-strong) }
.langpick > select {
  border: 0; background: none; padding: 0 .125rem; min-height: 0; font-size: .82rem;
  color: var(--fg); cursor: pointer;
}
.langpick > select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }


/* 공유 상자는 머리말 안, 누른 단추 바로 아래 줄을 통째로 쓴다.
   ⚠️ 비어 있을 땐 **없는 셈**이어야 한다. 빈 채로 100% 를 먹으면 거기서
      줄이 끊겨 언어·테마 단추가 아래로 밀렸다. */
#shareHere { flex-basis: 100%; }
#shareHere:empty { display: none; flex-basis: auto }

/* ── 공유 링크 상자 ────────────────────────────────────
   링크를 **보여 주고** 복사한다. 복사만 하면 됐는지 모르고, 보여 주기만
   하면 긴 주소를 손으로 옮겨야 한다. 머리말 아래에 붙어 나온다. */
.sharebox {
  margin: .5rem 0 0; padding: .5rem .75rem; width: 100%;
  background: var(--surface); border: 1px solid var(--accent); border-radius: var(--r);
  display: flex; flex-direction: column; gap: .5rem;
}
.sharebox .l { font-size: .82rem; font-weight: 600 }
.sharebox .linkbox { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; background: var(--sunken); overflow: hidden }
.sharebox .linktxt { flex: 1 1 auto; min-width: 0; padding: .5rem .5rem; font-family: var(--m); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  user-select: all; -webkit-user-select: all; color: var(--fg) }
.sharebox .copybtn { flex: none; display: grid; place-items: center; width: 2.6rem; min-height: 0; padding: 0; border: 0; border-left: 1px solid var(--line);
  border-radius: 0; background: var(--surface); color: var(--muted); cursor: pointer }
.sharebox .copybtn:hover, .sharebox .copybtn.done { color: var(--accent) }
.sharebox .shareacts { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .3rem }
.sharebox .row { gap: .35rem }
.sharebox .st { margin: 0; font-size: .76rem; color: var(--muted) }

/* 작은 화면에서는 첫 화면 단추의 글자를 접고 집 모양만 남긴다. */
@media (max-width: 30rem) { .hidesm { display: none } }
a.btn.get { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); font-weight: 600 }
.apkmeta { font-size: .68rem; font-weight: 400; opacity: .85; margin-left: .15rem }

/* ── 입력 ── */
label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .25rem }
input, select, textarea, button {
  font-family: inherit; font-size: 1rem; color: var(--fg);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .75rem;
}
input, select, textarea { width: 100% }
/* 단추는 알약(pill) — 2026-11-08 Bearstar 요청, Apple 디자인(popular-web-designs) 모양만 차용.
   색은 우리 강조색(--accent)을 그대로 쓴다(상표색을 가져오지 않는다는 apply-design 원칙). */
button { width: auto; cursor: pointer; background: var(--sunken); font-weight: 500; border-radius: 999px; padding: .5rem 1.1rem }
button:hover { border-color: var(--muted) }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); font-weight: 600 }
button.sm { font-size: .82rem; padding: .3rem .85rem }
button[disabled] { opacity: .5; cursor: default }
button, a.btn { min-height: 2.25rem }
button.back { background: transparent; border: 0; color: var(--accent); font-weight: 700; padding-left: 0; border-radius: 0 }
a { color: var(--accent); text-underline-offset: .15em }
a.btn { display: inline-flex; align-items: center; gap: .25rem; text-decoration: none; background: var(--sunken);
        border: 1px solid var(--line); border-radius: 999px; padding: .25rem .75rem; font-size: .82rem; color: var(--fg) }
a.btn:hover { border-color: var(--muted) }

/* ── 상자 ── */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1rem; margin-bottom: .9rem }
.row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center }
.row.end { justify-content: flex-end }
.grow { flex: 1 }
.grid { display: grid; gap: .75rem }
.grid.two { grid-template-columns: 1fr 1fr }
/* 한 줄을 다 쓰는 칸(여행 제목) — 짝이 없으므로 옆을 비워 두지 않는다. */
.grid.two > .wide { grid-column: 1 / -1 }
@media (max-width: 30rem) { .grid.two { grid-template-columns: 1fr } }
.note { font-size: .82rem; color: var(--muted) }
.note.warn { color: var(--warn) }
.muted { color: var(--muted) }
.ok { color: var(--ok) } .warn { color: var(--warn) }
/* ── 아직 일정이 없을 때 ────────────────────────────────────────
   전에는 흐린 한 줄만 있어서, 여기서 무엇을 해야 하는지가 안 보였다.
   할 일을 둘로 나눠 보여 준다 — 말로 하거나, 날짜를 직접 넣거나. */
.empty { color: var(--muted); text-align: center; padding: 1.75rem 0 2.25rem; font-size: .92rem }
.empty .bigl { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--fg) }
.empty .subl { margin: .25rem 0 0; font-size: .88rem; color: var(--muted) }
/* ⚠️ `.orline`('또는' 가로줄)과 `.empty button.ghost` 를 걷었다. 빈 화면
   아래에 있던 '틀 만들기' 안내를 통째로 없앴기 때문이다(app.js 참고) —
   쓰는 데가 없어진 모양새를 남겨 두면, 다음에 읽는 사람이 어디에 쓰이나
   찾아 헤맨다. */

/* ── 알림(토스트) ───────────────────────────────────
   ⚠️ 본문 맨 아래 한 줄이었다. 긴 일정 아래라 대개 화면 밖이었고,
      사라지지 않아 한참 전 말이 그대로 남아 있었다. 떠 있어야 할 것은
      화면 위에 띄우고, 할 일이 끝나면 치운다.
   ⚠️ pointer-events: none — 알림이 떠 있는 동안 그 아래 단추가 안 눌리면
      그게 더 큰 고장이다. 알림은 읽는 것이지 누르는 것이 아니다. */
.say {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(.4rem);
  bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px));
  z-index: 1001; max-width: min(28rem, calc(100vw - 2rem));
  padding: .5rem 1rem; border-radius: 16px;
  /**
   * ⚠️ **채우지 않는다.** 전에는 알약을 통째로 칠했다 — 바탕이 var(--fg),
   *    좋은 소식은 var(--ok) 였다. 밝은 화면에서는 그럭저럭이었지만
   *    **어두운 화면에서는 눈을 찌른다**: --fg 는 거의 흰색(#f5f5f7)이고
   *    --ok 는 쨍한 초록(#30d158)이라, 까만 바탕에 그 덩어리가 뜬다.
   *    안내 한 줄이 화면에서 가장 밝은 것이 되는 셈이다.
   * 이 화면의 다른 알림들(workbar · 조건 모자람 · 끝난 칩)은 이미
   * **옅은 바탕 + 색 글자 + 가는 테두리**로 말한다. 토스트만 혼자 달랐다.
   * 같은 말을 하는 것들은 같은 모습이어야 한다.
   */
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--line-strong);
  font-size: .88rem; line-height: 1.45; text-align: center;
  /**
   * **낱말 단위로 끊는다.**
   *
   * ⚠️ 한국어는 기본값(word-break: normal)에서 **글자 사이 아무 데나**
   *    끊긴다. 그래서 "잠시 뒤 다시 눌러 주세요" 가 "…눌러 주 / 세요" 로
   *    갈라졌다. 영어라면 안 일어날 일이라, 영어로 보면 멀쩡해 보인다.
   *    keep-all 이면 **띄어쓰기에서만** 끊는다 — 사람이 읽는 단위와 같다.
   * ⚠️ 그래도 빠져나갈 길은 둔다(overflow-wrap). 긴 주소처럼 띄어쓰기가
   *    하나도 없는 글이 오면, keep-all 만으로는 상자를 **뚫고 나간다.**
   * ⚠️ 모서리를 알약(999px)에서 낮췄다. 한 줄일 때는 여전히 알약으로
   *    보이고(높이가 그만큼이라), 두세 줄로 늘어났을 때 양 끝이
   *    **반달처럼 부풀지 않는다.**
   */
  word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty;
  box-shadow: 0 6px 24px rgba(0,0,0,.22);
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.say.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0) }

/* 새 판이 깔렸을 때 뜨는 띠 — .say 와 달리 **스스로 안 사라진다**(2026-11-17).
   ⚠️ 전에는 #say 에 className 만 바꿔 줬는데 .show 클래스가 빠져 있어 **한 번도 안 보였다**
   (베어스타: "계속 이전버전으로 보인다는거잖아 웹유저는" — 맞는 지적, 실제 버그였다) —
   화면이 새로 깔려도 알아챌 길이 없어 캐시 지우기를 매번 사람이 짐작으로 해야 했다.
   눌러야 없어지는 띠로 따로 만들어 "새로고침" 단추까지 붙인다. */
.swupdate {
  position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%); z-index: 1002; max-width: min(24rem, calc(100vw - 2rem));
  display: flex; align-items: center; gap: .6rem; padding: .6rem .6rem .6rem 1rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-fg); box-shadow: 0 8px 26px rgba(0,0,0,.28);
  font-size: .86rem; font-weight: 600;
}
.swupdate button { flex: none; padding: .4rem .9rem; border-radius: 999px; border: 0; background: var(--accent-fg);
  color: var(--accent); font-weight: 700; font-size: .84rem; cursor: pointer }
html.is-app .swupdate { bottom: calc(1rem + max(var(--app-bottom), env(safe-area-inset-bottom, 0px))) }
.say:empty { display: none }
/* 좋은 소식·나쁜 소식은 색으로도 가른다 — 글만으로는 훑을 때 안 읽힌다.
   다만 **옅은 바탕에 색 글자**로. 채운 색은 어두운 화면에서 너무 밝다.

   ⚠️ **잘됐다는 말은 초록이 아니라 파랑이다.** 초록은 어두운 화면에서
      옅게 깔아도 눈에 튄다(#30d158 은 이 팔레트에서 가장 쨍한 색이다).
      게다가 여기 뜨는 말은 대개 "했습니다" 지 "성공!" 이 아니다 —
      알려 주는 말에는 알려 주는 색(파랑)이 맞다. 초록은 줄 왼쪽 띠처럼
      **갈래를 가리키는** 자리에 남겨 둔다.
      빨강은 그대로 둔다 — 잘못된 것은 눈에 띄어야 한다. */
.say.ok { background: var(--info-soft); color: var(--info); border-color: var(--info) }
.say.bad { background: var(--stop-soft); color: var(--stop); border-color: var(--stop) }
/* 움직임을 꺼 둔 사람에게는 그냥 뜨고 사라진다. */
@media (prefers-reduced-motion: reduce) {
  .say { transition: opacity .01s; transform: translateX(-50%) }
  .say.show { transform: translateX(-50%) }
}

/* ── 알약 ── */
.pill { display: inline-block; font-size: .76rem; font-weight: 600; border-radius: 999px; padding: .125rem .5rem;
        background: var(--sunken); color: var(--fg); text-decoration: none; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.pill.accent { background: var(--accent); color: var(--accent-fg) }
.pill.ok { background: var(--ok-soft); color: var(--ok) }
.pill.info { background: var(--info-soft); color: var(--info) }
.pill.warn { background: var(--warn-soft); color: var(--warn) }
.pill.ghost { background: var(--sunken); color: var(--muted) }

/* 여행 종료 도장 — 첫 화면 카드의 D-day 점선 동그라미(index.html .tile .dd)와 같은 생김새.
   베어스타: "초기화면의 여행종료처럼 여행종료표시가 나왔으면해". 살짝 기울여 우표 느낌. */
.ddstamp { display: inline-flex; flex: none; align-items: center; justify-content: center; text-align: center;
           width: 2.55rem; height: 2.55rem; border-radius: 50%; border: 2px dashed var(--muted); color: var(--muted);
           background: var(--surface); font-size: .6rem; font-weight: 800; letter-spacing: .01em; line-height: 1.05;
           transform: rotate(8deg); font-variant-numeric: tabular-nums; padding: 0 .15rem; word-break: keep-all }

/* ── 한눈에 보기 ──
   누를 수 있는 네모(.card)는 button 이다. 키보드로도 열리고, 눌렀다는 것이 분명하다. */
.overview { display: flex; flex-direction: column; gap: .6rem }
.card { display: block; width: 100%; text-align: left; background: var(--surface); border: 2px solid transparent;
        box-shadow: 0 1px 3px rgba(0,0,0,.06); border-radius: var(--r); padding: .75rem 1rem;
        position: relative; font: inherit; color: inherit; line-height: 1.45;
        transition: background-color .1s ease;
        -webkit-tap-highlight-color: transparent }
.card:hover { border-color: var(--line) }
/* 모든 열기 카드가 같은 색 테두리만 쓴다(2026-12-02 베어스타: "테두리만 파랗게 되던 게 전체가 파래져 고쳐줘" —
   배경 전체 물들임을 걷고 안쪽 테두리만 남긴다). 크기·화면 전환은 바꾸지 않는다. */
.cardpress { --card-press-bg: var(--accent-soft); --card-press-color: var(--accent); --card-press-width: 2px; isolation: isolate }
.cardpress.pressing::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: inset 0 0 0 var(--card-press-width) var(--card-press-color); pointer-events: none }
.card.hi { border-color: var(--hi) }
/**
 * '방금 변경' 쪽지 — 카드 **위쪽 테두리에 걸터앉는다.**
 *
 * ⚠️ 오른쪽 위에 두었더니 카드 모서리와 겹쳐 안 보였고, 좁은 화면에서는
 *    옆 단추에 가렸다. 가운데는 무엇에도 안 가린다.
 * ⚠️ 그런데 **위쪽 절반이 잘려 글자를 못 읽었다.** 카드가 `overflow:hidden`
 *    이라(왼쪽 사진의 둥근 모서리를 그 규칙으로 만들고 있었다) 카드 밖으로
 *    나간 부분이 통째로 잘린 것이다. 자르는 규칙은 **자를 것**(사진)에만
 *    걸어야 한다 — 상자에 걸면 그 상자가 품은 모든 것이 같이 잘린다.
 * ⚠️ **맨 위에 세운다**(z-index). 쪽지가 뜨는 때는 카드가 막 바뀐 때라
 *    바로 위 단추 줄과 겹치기 쉽고, 겹치면 또 안 읽힌다.
 * ⚠️ 그림자를 한 겹 둔다. 뒤에 무엇이 오든 글자와 바탕의 경계가 살아 있어야
 *    읽힌다 — 흰 바탕 위에서도, 사진 위에서도.
 */
.card .justnow {
  position: absolute; top: -.62rem; left: 50%; transform: translateX(-50%);
  z-index: 3; background: var(--hi); color: #fff;
  font-size: .68rem; font-weight: 700; line-height: 1.45;
  border-radius: 999px; padding: .125rem .5rem; white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.card .label { font-size: .76rem; color: var(--muted); font-weight: 600; margin-bottom: .2rem }
.card .v { font-size: .95rem; font-weight: 700 }
.card .st { font-size: .76rem; color: var(--muted); margin-top: .15rem }

.card.head { padding: .9rem 1rem }
.card.head .title { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em }
/* 여행 제목은 홈 타일과 같은 글꼴(D-020·D-021 → 2026-11-08 교체). 다른 글은 본문 글꼴 그대로.
   2026-11-08 승주: "삿포로 폰트가 왜 들쭉날쭉" — Gaegu(손글씨)는 "포"·"로" 같은 특정 글자의
   글리프 크기가 다른 글자보다 작게 디자인돼 있다(직접 렌더링해 확인 — 버그 아니라 폰트 자체 특성).
   많은 손글씨 폰트의 흔한 특징이라 CSS로 고칠 수 없다 — "저작권 안 걸리면서 여행 느낌 나되
   맑은고딕처럼 정갈한" 폰트로 바꿔 달라는 지침에 따라 Nanum Square Round(NAVER, 무료 상업용)로
   교체. 아래 "손글씨" 관련 서술(①②③ 실험 기록)은 Gaegu 시절 기록이라 지금 폰트와는 안 맞지만,
   같은 자리에서 또 글꼴 실험을 반복하지 않도록 역사 기록으로 남겨 둔다. */
/**
 * 여행 제목 — **손글씨, 산뜻하게**(2026-10-25).
 *
 * 세 번 만졌다. 그 자취를 적어 둔다:
 *   ① 700 / 1.6rem / 자간 0 — 예쁘지만 **너무 자유로웠다.** 차분한 화면에서
 *      이 한 줄만 다른 데서 온 글처럼 보였다.
 *   ② 400 / 1.42rem / -.012em — 들뜸은 빠졌는데 **으시시해졌다.** Gaegu 의
 *      400 은 획이 가늘고 끝이 떨려서, 큰 크기로 깔면 **흐릿하고 서늘하다.**
 *      손으로 쓴 느낌이 아니라 **지워져 가는 글씨**로 읽힌다.
 *   ③ 700 / 1.34rem / -.015em — 지금. **굵기는 되돌리고 크기로 재운다.**
 *
 * 배운 것: 손글씨를 얌전하게 만들려고 **가늘게 하면 안 된다.** 가는 획은
 * 차분한 것이 아니라 **약한 것**이고, 약한 글씨는 읽는 사람을 불안하게
 * 한다. 얌전함은 **크기와 자간**에서 와야 한다 — 획은 또렷하게 두고
 * 덩치만 줄이면, 손글씨다움은 남고 들뜸만 빠진다.
 * ⚠️ 그래서 글꼴 링크의 400 도 뺀다. 쓰지 않는 굵기를 받아 올 까닭이 없다.
 */
.card.head .title { font-family: "NanumSquareRoundEB", var(--b); font-size: 1.34rem; font-weight: 700; letter-spacing: -.015em }
.card.head .sub { font-size: .82rem; color: var(--muted); margin-top: .15rem }
.card.head .acts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem }
.card.head .hleft { min-width: 0 }
.card.head .hright { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; flex: none; margin-left: auto }   /* 제목이 길어 다음 줄로 내려가도 늘 오른쪽(불편사항 #1420) */
.companion { text-align: right; background: var(--sunken); border-radius: 8px; padding: .25rem .75rem; min-width: 6rem }
.companion .cnum { font-size: .95rem; font-weight: 700; white-space: nowrap }
.companion .crel { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 10rem }
.act { display: inline-block; font-size: .76rem; font-weight: 600; border: 1px solid var(--line); border-radius: 999px;
       padding: .25rem .5rem; background: var(--sunken); cursor: pointer }
.act:hover { border-color: var(--muted) }

/* **첫 화면 탭 전환 애니메이션**(2026-11-24 베어스타: "탭 넘어갈때도 애니메이션 없어? 먼가 팍팍넘어가서") —
   더보기 바텀시트처럼 탭(내 여행 · 함께하는 여행 · 여행 스토리) · 게시물/저장됨 세그먼트를 바꿀 때
   content 영역(#list)이 살짝 올라오며 페이드인. home.js 가 실제 탭 전환일 때만 `render(true)` 로
   클래스를 다시 붙여 재생시킨다(데이터 자동 새로고침 때는 안 켠다 — 매번 깜빡이면 거슬린다). */
#list.tabswap { animation: tabFadeIn .18s ease both }
@keyframes tabFadeIn { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: translateY(0) } }
@media (prefers-reduced-motion: reduce) { #list.tabswap { animation: none } }

/* 홈 ↔ 일정: 이전 스냅샷을 유지한 채 새 스냅샷을 포개 흰 바탕 노출을 피한다.
   실제 #wrap에는 transform/animation을 주지 않아 fixed 자식의 기준을 보존한다.
   opt-in은 두 HTML에만 둔다. 미지원 엔진은 이 규칙을 무시하고 바로 이동한다. */
::view-transition-group(root) { animation-duration: .15s; animation-timing-function: cubic-bezier(.22,1,.36,1) }
::view-transition-old(root) { animation: none; mix-blend-mode: normal }
/* **새 화면이 끝까지 불투명해야 한다**(2026-11-26 베어스타: "숙소 카드 눌렀을 때 위에서 뚜둑하면서
   내려와" — 1차 수정 뒤에도 "아직 그래" 로 재현 영상까지 받음). 1차 시도(new(root)에 --bg 배경만
   추가)는 틀렸다 — `opacity` 는 그 요소 전체(배경 포함)를 통째로 반투명하게 만들어 합성하므로, 배경을
   줘도 opacity:0→1 로 fade-in 하는 동안에는 그 배경 자체도 비쳐서 옛 화면이 그대로 새어 보였다(재현
   영상으로 확인 — 중간 프레임에서 머리글 · 글자가 흐릿하게 겹쳐 보임). **opacity 애니메이션을 아예
   없애고 위치(transform)만 움직인다** — new(root) 스냅샷은 애초에 완전 불투명한 이미지라, opacity를
   건드리지 않으면 그 뒤의 old(root) 를 전환 내내 완전히 가린다(두 장 겹쳐 보일 틈이 없다). */
::view-transition-new(root) { animation: pageReveal .15s cubic-bezier(.22,1,.36,1) both; mix-blend-mode: normal }
@keyframes pageReveal { from { transform: translateY(6px) } to { transform: none } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(root), ::view-transition-old(root), ::view-transition-new(root) { animation: none }
}

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem }
.card.tile { min-height: 5.6rem; padding: .6rem .7rem; position: relative }
.card.tile .v { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical }

/* 교통 · 숙소 · 예산 타일 — 끌어서 순서 바꾸기(2026-11-18 베어스타) */
.card.tile .tilegrip {
  position: absolute; top: .3rem; right: .3rem; width: 1.1rem; height: 1.1rem;
  min-width: 0 !important; min-height: 0 !important; padding: 0; border: 0; background: none;
  color: var(--muted); opacity: .55; font-size: .85rem; line-height: 1; cursor: grab;
  touch-action: none; transform: rotate(90deg); z-index: 2;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.card.tile .tilegrip::after { content: ""; position: absolute; inset: -6px }
.card.tile .tilegrip:hover, .card.tile .tilegrip:active { opacity: 1; color: var(--accent) }
.card.tile.dragging { opacity: .45 }
.card.tile.over { box-shadow: inset 2px 0 0 var(--accent) }
/* 카드 "들어올림" 효과 공통 선언 — .item.lifted(세부 일정) · .bpB .cat.lifted.catdrag(예산 카테고리)와 값을 공유한다.
   전엔 여기(홈 타일)만 transition 이 빠져 있어 다른 둘과 달리 애니메이션 없이 순간 이동했다
   (2026-11-26 베어스타 지시로 "카드류 공통 클래스 추출" 리팩토링하며 셀렉터를 묶어 한 선언으로 통일) */
.card.tile.lifted, .item.lifted, .bpB .cat.lifted.catdrag {
  position: relative; z-index: 20; background: var(--card, #fff);
  box-shadow: 0 0 0 2px var(--accent), 0 10px 28px rgba(0,0,0,.22);
  scale: 1.02; transition: scale .08s !important; will-change: transform;
}
.card.tile.lifted, .card.tile.lifted *,
.item.lifted, .item.lifted *,
.bpB .cat.lifted.catdrag, .bpB .cat.lifted.catdrag * {
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}

/* 전체 일정 제목 줄 + 준비 요약 */
.sechead { display: flex; align-items: baseline; gap: .25rem; cursor: pointer; border-radius: 8px }
.sechead .h2 { margin: 0 }
/* 전체 일정 상자(시안 B, 2026-11-02) — 제목 줄과 날 카드를 한 덩이로 묶는다.
   테두리 + 오른쪽 위 ⤢ 가 "통째로 열린다" 를 글 없이 말한다.
   2026-11-08 승주: "타일 간격이 일정하지 않은거 다 찾아서 고쳐줘" — margin-top 을 지웠다.
   부모 .overview 가 이미 flex gap: .6rem 으로 머리 · 타일 · 이 상자 사이를 맞춘다.
   여기 또 margin-top: .6rem 을 더해 타일↔이 상자 간격만 머리↔타일의 두 배(1.2rem)였다. */
.daysbox { display: flex; flex-direction: column; gap: .5rem; padding: .5rem;
  border: 1.5px solid transparent; border-radius: calc(var(--r) + 4px);
  background: color-mix(in srgb, var(--sunken) 55%, transparent);
  box-shadow: 0 1px 2px rgba(30,58,95,.05), 0 4px 10px rgba(30,58,95,.07); cursor: pointer;
  /* 부모 클릭 위임의 기본 터치 덮개 대신 Day 카드의 pressing 강조만 쓴다. */
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s, box-shadow .15s }
.daysbox .sechead .expand { order: 100; margin-left: auto; align-self: center; flex: none; width: 1.75rem; height: 1.75rem;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  transition: color .15s, border-color .15s }
/* 2026-11-08 승주: "시계랑 지도가 왼쪽으로 왔냐 오른쪽정렬" — 시계(.timeswitch)·지도(.tripmapbtn)가 있는
   줄은 그 시계 단추가 이미 margin-left:auto 로 그룹 전체를 오른쪽으로 민다. 여기 .expand 도 자기 몫의
   margin-left:auto 를 또 가지면 남은 공간이 둘로 쪼개져 시계·지도가 가운데쯤, ⤢ 만 더 오른쪽으로
   떨어져 보인다 — 시계·지도·자물쇠가 있을 때는 .expand 자신의 auto 여백을 꺼서 하나의 오른쪽 덩어리로 붙인다. */
.daysbox .sechead .timeswitch ~ .expand, .daysbox .sechead .tripmapbtn ~ .expand, .daysbox .sechead .lockall ~ .expand { margin-left: 0 }
/* 2026-11-25: 좁은 화면에서 단추를 아랫줄로 내리던 규칙 — 걷었다. '전체 AI 돌리기'(.sm.redo)는
   이미 없고, '전체 확정'(.lockall)도 알약(.sm)에서 시계 옆 원형 아이콘 단추로 바뀌어
   더는 글자가 줄바꿈될 만큼 넓지 않다. 아래 .daysbox .sechead .lockall 이 자리를 정한다. */
/* 날 카드·단추 위에 있을 때는 상자를 강조하지 않는다 — 그건 그 카드를 여는 손짓이다 */
.daysbox:hover:not(:has(.card:hover, button:hover)), .daysbox:has(.sechead:focus-visible) {
  border-color: var(--accent); box-shadow: 0 4px 14px rgba(3,105,161,.14) }
.daysbox:hover:not(:has(.card:hover, button:hover)) .expand, .daysbox:has(.sechead:focus-visible) .expand {
  color: var(--accent); border-color: var(--accent) }
.daysbox:active:not(:has(.card:active, button:active)) { border-color: var(--accent) }
@media (prefers-reduced-motion: reduce) { .daysbox, .daysbox .expand { transition: none } }
.prepsum { font-size: .82rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
           padding: .25rem .75rem; width: fit-content; max-width: 100%; cursor: pointer; margin-bottom: .1rem }

/* Day 카드: 사진 | 일정 | 할 일(오른쪽). 좁은 화면에선 할 일이 아래로 내려간다 */
/* ⚠️ `overflow: hidden` 을 **걷었다.** 그것으로 왼쪽 사진의 둥근 모서리를
   만들고 있었는데, 그 바람에 카드 밖으로 나가는 '방금 변경' 쪽지까지 같이
   잘렸다(위쪽 절반이 사라져 글자를 못 읽었다). 자르는 규칙은 **자를
   것**에만 건다 — 아래에서 사진이 제 모서리를 스스로 둥글린다. */
.card.daycard { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr) minmax(8.5rem, 11rem); gap: 0 .75rem; padding: 0 }
.card.daycard.notodos { grid-template-columns: 6.2rem minmax(0, 1fr) }   /* 준비할 게 없으면 칸 자체를 두지 않는다 */
/* 2026-11-09 태인: "일정 비움 · 일정 다시 짜기" 단추가 **카드 오른쪽 위에 절대 위치**로 떠 있는데(4170줄),
   할 일 칸이 바로 그 칸(3열째)이라 단추 바로 밑에서 체크박스가 시작해 붙어 보였다.
   단추 줄 높이(top .45rem + 단추 약 1.1rem)만큼 위를 비운다. */
.daycard .todos { padding: 2.1rem .75rem .5rem 0; border-left: 1px dashed var(--line); padding-left: .75rem; min-width: 0 }
.daycard .todos .label { margin-bottom: .15rem }
.daycard .todos .label { font-size: .68rem }
.daycard .todos .check { font-size: .68rem; padding: 0 0; gap: .25rem; align-items: center; line-height: 1.3 }
.daycard .todos .check input { width: .85rem; height: .85rem }
.daycard .todos .check span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0 }   /* 한 줄, 넘치면 … */
.daycard .todos .st { font-size: .72rem }
@media (max-width: 36rem) {
  .card.daycard { grid-template-columns: 6.2rem minmax(0, 1fr) }
  /* 할 일 칸이 아래로 내려가면 사진 밑에 한 줄이 더 생긴다 — 그때 사진의
     아래 모서리는 **카드 모서리가 아니라 속**이므로 안 둥글린다. */
  .daycard .photo { border-radius: calc(var(--r) - 2px) 0 0 0 }
  .daycard .todos { grid-column: 1 / -1; border-left: 0; border-top: 1px dashed var(--line); padding: .5rem .8rem .6rem }
  /* 2026-11-08 승주: "버튼이랑 텍스트 붙어 있는 거는 좀 띄워야" — 위 padding 한 줄이 bottom 도 .6rem 으로
     같이 정해서, 본문(데스크톱)에서 올린 3rem 이 폰(이 미디어 쿼리)에서는 적용이 안 됐다. 따로 다시 준다. */
  .daycard .todos { padding-bottom: 3rem }
}
.todosbox .st { font-size: .82rem; color: var(--muted) }
/* 왼쪽 사진이 **제 모서리를 스스로** 둥글린다(전에는 카드의 overflow 가
   대신 해 줬다). 2px 은 카드 테두리 몫이라 그만큼 덜 둥글린다 — 같은 값을
   쓰면 테두리와 사진 사이에 얇은 틈이 보인다. */
.daycard .photo { width: 6.2rem; flex: none; background: var(--sunken); position: relative; min-height: 7rem; display: flex; align-items: center; justify-content: center; font-size: 2rem;
                  border-radius: calc(var(--r) - 2px) 0 0 calc(var(--r) - 2px); overflow: hidden }
.daycard .photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0 }
.daycard .photo.noimg { background: linear-gradient(135deg, #ffe0bf, #bcd7ff) }
/* 사진 바이트를 받는 동안 반짝이는 표시 — 빈 배경이 "고장" 처럼 보이지
   않게(2026-11-29 베어스타: "로딩중 느낌이 나야 하는데"). img 가 load·error
   되면 바로 떼어 낸다(app.js). */
.daycard .photo.loading {
  background: linear-gradient(100deg, var(--sunken) 35%, color-mix(in srgb, var(--sunken) 40%, #fff) 50%, var(--sunken) 65%);
  background-size: 250% 100%;
  animation: ph-shimmer 1.3s ease-in-out infinite;
}
@keyframes ph-shimmer { 0% { background-position: 150% 0 } 100% { background-position: -50% 0 } }
/**
 * "사진 고르는 중…" — 아직 **더 나은 사진을 기다리는** 자리.
 *
 * ⚠️ 이 표시가 없을 때는, 관광지 사진이 들어오기 전까지 도시 사진이나
 *    대체 사진이 걸려 있었고 사람은 그것을 **정해진 답**으로 읽었다.
 *    그러다 몇 초 뒤 그림이 바뀌면 "왜 갑자기 바뀌지" 가 된다.
 *    바뀔 것이라고 **미리 말해 두면** 같은 일이 기다림이 된다.
 * ⚠️ 사진을 가리지 않는다 — 위쪽에 작게, 글만 읽히게. 가리면 정작
 *    그 사진이 어떤지를 못 본다.
 */
.daycard .settling {
  position: absolute; left: .2rem; top: .2rem; z-index: 1;
  font-size: .6rem; line-height: 1.5; color: #fff;
  background: rgba(0,0,0,.45); border-radius: 999px; padding: 0 .25rem;
  white-space: nowrap; pointer-events: none;
}
.daycard .credit { position: absolute; left: 0; right: 0; bottom: 0; font-size: .6rem; color: #fff; background: rgba(0,0,0,.4); padding: 0 .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.daycard .credit a { color: #fff; text-decoration: underline }
.daycard .body { padding: .5rem .75rem .5rem 0; min-width: 0 }
.daycard .dayhd { font-size: .76rem; color: var(--muted) }
.daycard .dayhd b { color: var(--accent) }
.daycard .daytitle { font-size: 1rem; font-weight: 700; margin: 0 0 .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.daycard .lines { list-style: none; margin: 0; padding: 0; font-size: .85rem }
.daycard .lines li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5 }
.daycard .lines .time { color: var(--muted); font-family: var(--m); font-size: .78rem }
.daycard .warnline { font-size: .76rem; color: var(--warn); margin-top: .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem }
.card.half { padding: .7rem .8rem }
.check { display: flex; align-items: center; gap: .5rem; font-size: .82rem; padding: .125rem 0; cursor: pointer }
.check input[type="checkbox"] { width: 1rem; height: 1rem; margin: 0; accent-color: var(--accent) }
.check .done { color: var(--muted); text-decoration: line-through }
.checkrow { display: flex; align-items: center; gap: .5rem; padding: .2rem 0 }
.checkrow .check { flex: 1 }
/* 예산 카테고리 카드(.bpB .cat)와 같은 생김새로 맞춤(2026-11-21 베어스타: "예산처럼 준비물쪽도 디자인 다 맞춰줘") —
   테두리 있는 카드 · 아이콘 동그라미 · 접기 화살표 · 오른쪽 N/N */
.preplist { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; margin-top: .9rem }
.prepgroup { border: 1px solid var(--line); border-radius: var(--box-r); padding: var(--box-pad); min-width: 0 }
.prepgroup > summary.bpgk { display: flex; align-items: center; gap: .5rem; cursor: pointer; list-style: none; font-weight: 700; font-size: .88rem;
  margin: -.1rem -.2rem; padding: .1rem .2rem; border-radius: 8px; min-height: 0 }
.prepgroup > summary::-webkit-details-marker { display: none }
.prepgroup > summary .ico { width: 1.6rem; height: 1.6rem; border-radius: 8px; display: grid; place-items: center; font-size: .82rem; flex: none }
.prepgroup > summary .ico.see { background: color-mix(in srgb, var(--see) 16%, transparent) }
.prepgroup > summary .ico.move { background: color-mix(in srgb, var(--move) 16%, transparent) }
.prepgroup > summary .ico.etc { background: color-mix(in srgb, var(--eat) 16%, transparent) }
.prepgroup > summary .chev { flex: none; font-size: .7rem; color: var(--muted); transition: transform .15s }
.prepgroup[open] > summary .chev { transform: rotate(180deg) }
.prepgroup > summary .k { margin-left: auto; color: var(--muted); font-weight: 400 }
.prepgroup > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.prepgroup:not([open]) > .prepbody { display: none }
.prepgroup > .prepbody { padding-top: .35rem }


/* ── 블록 상세 ── */
.detail .dtitle { font-size: 1.15rem; margin: 0 }
/* 옆으로 밀어 날을 넘길 때 — 들어오는 쪽에서 살짝 미끄러져 들어온다 */
.detail.slide-l, .overview.slide-l { animation: dslide-l .22s ease-out }
.detail.slide-r, .overview.slide-r { animation: dslide-r .22s ease-out }
@keyframes dslide-l { from { transform: translateX(36px); opacity: .4 } to { transform: none; opacity: 1 } }
@keyframes dslide-r { from { transform: translateX(-36px); opacity: .4 } to { transform: none; opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .detail.slide-l, .detail.slide-r, .overview.slide-l, .overview.slide-r { animation: none } }
/* 옆으로 밀기(날 넘기기 · 여행 넘기기)를 브라우저가 "뒤로 가기" 로 가로채지 않게 —
   크롬은 가로로 밀면 앞 페이지로 돌아간다(밀어서 여행을 넘기다 앱 밖으로 나갔다). */
html:has(#view-plan), html:has(#view-plan) body { overscroll-behavior-x: none }
/**
 * 상세 머리말 — **제목과 칩이 한 줄**, 아래끝을 맞춘다.
 *
 * ⚠️ 전에는 h2 와 .chips 가 그냥 위아래 형제였다. 칩이 한 칸 아래로
 *    떨어지면서 날짜·제목·칩이 **석 줄**을 먹었고, 그 사이 빈 자리가
 *    화면 맨 위에 넓게 남았다.
 * ⚠️ align-items 는 **flex-end** 다. baseline 로 맞추면 칩의 글줄과
 *    제목의 글줄이 맞느라 칩이 제목 위로 떠오른다 — 우리가 맞추려는
 *    것은 글줄이 아니라 **상자의 아래끝**이다.
 */
.detail .dhead {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: .5rem .75rem; flex-wrap: wrap; margin: 0 0 .5rem;
}
.detail .dhead .dtitle { flex: 1 1 12rem; min-width: 0 }
.detail .dhead .chips { flex: none; margin: 0; justify-content: flex-end }
/* 날짜는 **Day 와 한 식구**다 — 같은 파랑으로 묶고 크기만 낮춘다.
   회색 note 였을 때는 화면 구석의 딴 글처럼 보여, 이 날이 며칠인지가
   제목과 이어지지 않았다. */
.detail #detailMeta {
  color: var(--accent); font-weight: 700; font-size: .82rem; letter-spacing: .01em;
}
.detail img.hero { width: 100%; height: 10rem; object-fit: cover; border-radius: var(--r); margin-bottom: .6rem }
.detail .rowitem { padding: .75rem 1rem; margin-bottom: .5rem }
.detail .rowitem .v { font-size: 1rem; font-weight: 700 }
.detail .rowitem button { margin-top: .4rem }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .25rem 0 .75rem; align-items: center }
.chips:empty, .chips[hidden] { display: none }
/* 질문 글과 고르개가 한 줄에 선다. 지금까지 이 .st 에만 규칙이 없어
   본문 크기(1rem)로 뜨고 칩은 .8rem 이라, 같은 줄인데 글자키가 달라
   줄이 울퍼불퍼해 보였다. 묻는 말과 고를 말은 같은 줄의 식구다. */
.chips > .st { font-size: .82rem; color: var(--muted); margin: 0; line-height: 1.4 }
.chip { font-size: .82rem; font-weight: 600; border-radius: 999px; padding: .25rem .75rem; background: var(--accent-soft);
        border: 1px solid transparent; color: var(--accent); white-space: nowrap; min-height: 0 }
.chip:hover { border-color: var(--accent) }
.chip.ghost { background: var(--sunken); color: var(--muted) }

/* ── Day 편집기 ── */
/* 위에 색 띠를 둘러 **장이 바뀌는 느낌**을 준다. 모든 날을 한 번에 펴면
   상자 테두리만으로는 어디서 하루가 끝나는지 안 보인다. */
.day {
  border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--r); background: var(--surface);
  padding: .75rem 1rem; margin-bottom: 1.25rem;
}
.day > header { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .6rem }
/* 날이 바뀌는 자리를 알리는 **표지**다. 회색 작은 글씨로 두었더니 모든 날을
   한 번에 펴 놓고 볼 때 어디서 하루가 끝나는지 안 보였다. */
.day .num {
  font-family: var(--b); font-size: .82rem; font-weight: 700; letter-spacing: .01em;
  color: var(--accent-fg); background: var(--accent);
  border-radius: 999px; padding: .25rem .75rem; flex: none;
}
.day .daytitle { flex: 1; min-width: 8rem; font-weight: 600 }
/* 줄 사이 선은 **진한 쪽**을 쓴다. --line 은 상자 테두리용이라 줄 사이에
   쓰면 거의 안 보이고, 그러면 어디서 한 줄이 끝나는지 눈으로 못 가른다. */
.item { border-top: 1px solid var(--line-strong); padding: .5rem .5rem; margin: 0 -.5rem; border-radius: 8px; cursor: pointer }
.item:first-child { border-top: 0 }
/**
 * 짚어 둔 줄(지금 말 걸고 있는 줄).
 *
 * ⚠️ **바탕색을 걷었다**(2026-10-25). 바탕은 이 화면에서 **확정** 하나만
 *    뜻한다(.item.locked). 짚은 줄까지 바탕을 칠하니, 확정하지도 않은
 *    줄이 칠해져 "왜 색이 들었지" 가 됐다 — 색이 두 가지를 말하면 둘 다
 *    못 읽는다.
 *    짚은 것은 **잠깐**이고 확정은 **오래 가는 상태**다. 잠깐인 것은
 *    테두리로 말한다.
 */
/* 짚은 줄 외곽선 = 그 줄 갈래 색(--k · 숙소 주황 · 이동 파랑 …) — 강조 파랑이 펼친 카드 테두리(갈래 색)를 덮어 숙소 카드만 파랗게 보였다(불편사항 #275) */
.item.on { outline: 2px solid var(--k, var(--accent)); outline-offset: -2px;
           border-top-color: transparent }
/* ⚠️ grid 로 칸을 못 박아 두면 안 된다. 손잡이(⠿)와 자물쇠를 줄에 더한 순간
   칸 수가 넘쳐 **입력칸마다 한 줄씩 쌓였다** — 폰에서 상세가 여섯 줄이 됐다.
   flex 로 두면 무엇을 더해도 한 줄에 들어가고, 좁으면 장소칸만 줄어든다. */
.item .line1 { display: flex; gap: .25rem; align-items: center; flex-wrap: nowrap }
.item .line1 > .grip, .item .line1 > .sm { flex: none }
.item .line1 > input.time { width: 4.2rem; flex: none; padding: .4rem .2rem }
.item .line1 input.place { flex: 1; min-width: 0 }
.item .line1 > .fw { flex: 1; min-width: 0 }
.item .line1 > select.kind { width: 4.6rem; flex: none; padding: .5rem .25rem; font-size: .85rem }
.item .line2 { display: flex; gap: .5rem; align-items: center; margin-top: .35rem }
.item .line3 { display: flex; gap: .5rem; align-items: center; margin-top: .35rem }
.item .line3 input.link { font-size: .82rem; padding: .4rem .6rem }
.item .line3 a.btn { flex: none }
/* 좁은 화면에서는 **장소를 제 줄로 내린다.**
   한 줄에 손잡이·확정·시각·장소·종류·수단·빼기를 다 세우면, 늘어날 수
   있는 칸이 장소뿐이라 장소만 짜부라진다. 390px 에서 14px 까지 줄어
   "新宿 (신…" 으로 잘렸다. 나머지는 폭이 정해져 있어 양보할 줄 모른다.

   ⚠️ 앞서 적혀 있던 grid-template-columns 는 아무 일도 하지 않았다 —
      .line1 은 flex 라 grid 속성이 무시된다. 지우고 flex 로 고친다. */
@media (max-width: 40rem) {
  .item .line1 { flex-wrap: wrap; row-gap: .35rem }
  /**
   * 장소·종류·휴지통은 **한 줄에서 갈라지지 않는다.**
   *
   * ⚠️ `flex: 1 1 60%` 였다. 기준 너비가 60% 라, 제목 옆의 종류 동그라미와
   *    휴지통까지 더하면 100% 를 넘는 날이 있었다 — 그때 **휴지통만 다음
   *    줄로 떨어졌다.** 앱에서 "가끔" 인 까닭은 글꼴·화면 폭에 따라 그
   *    합계가 아슬아슬하게 넘거나 안 넘기 때문이다. 아슬아슬한 값은
   *    언젠가 넘는다.
   * ⚠️ 기준을 **0 으로** 두면 제목은 "남는 자리를 쓰는 칸" 이 된다. 옆의
   *    둘은 제 크기를 지키고, 좁아지면 **제목이 줄어든다** — 제목은 줄어도
   *    읽히지만(줄임표) 휴지통은 줄 밖으로 나가면 못 찾는다.
   * ⚠️ 그래도 바닥은 둔다(min-width). 제목 칸이 글자 한 자 폭으로
   *    쪼그라들면 그것도 못 쓰는 칸이다.
   */
  .item .line1 > .fw { order: 9; flex: 1 1 0; min-width: 4.5rem }
  /* 종류 동그라미는 **제목과 휴지통 사이**(order 9~10). 차례를 안 주면
     첫 줄에 남아 둘째 줄의 제목과 휴지통 사이를 끊는다. */
  .item .line1 > .kindwrap { order: 10; flex: none }
  .item .line1 > input.time { width: 3.9rem }
  .item .line1 > select.kind { width: 4.2rem }
  .item .line1 > select.movekind { width: 4.6rem }
  /* ⚠️ 🔍 는 **장소와 휴지통 사이**에 선다(order 9 과 10 사이).
     차례를 안 주면 첫 줄에 남아, 둘째 줄로 내려온 장소와 휴지통 사이를
     끊는다 — 그러면 휴지통이 혼자 한 줄을 차지한다. */
  .item .line1 > .sm.x { order: 11; flex: none }

  /* 링크 칸이 최소폭 때문에 상자를 비집고 나갔다. 좁은 화면에서는 제 줄로. */
  .linkfold .line3 { flex-wrap: wrap }
  .linkfold .line3 > input.link { flex: 1 0 100%; min-width: 0 }
  .item .line3 input.link { min-width: 0 }
}
.item input.time { font-family: var(--m); text-align: center }
.iteminfo { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .35rem }
.aff { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .4rem }
.aff a { font-size: .82rem; padding: .25rem .5rem }
.aff .mark { font-size: .68rem; color: var(--muted); align-self: center }

/* ── 예약 기록 ── */
.booking { margin-top: .35rem }
.booking .book-add { font-size: .8rem }
.book-sum { display: block; width: 100%; text-align: left; font-size: .82rem; padding: .25rem .5rem;
            background: var(--sunken); border: 1px solid var(--ok); border-radius: 8px; color: var(--fg) }
.book-sum::before { content: "✓ "; color: var(--ok); font-weight: 700 }
.book { margin-top: .5rem; padding: .75rem; background: var(--sunken); border: 1px solid var(--line); border-radius: 8px }
.book-grid { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)) }
.book-grid label { font-size: .78rem }
.book-grid input { font-size: .88rem; padding: .4rem .5rem }
.book .row { margin-top: .5rem }
.item:has(.booking[data-booked="1"]) .place { font-weight: 600 }

/* ── 보관함 ── */
details.archive > summary { cursor: pointer; font-weight: 600; font-size: .95rem }
.trips { display: flex; flex-direction: column; gap: .4rem }
.trip { display: flex; gap: .5rem; align-items: center; width: 100%; text-align: left; background: var(--surface);
        border: 1px solid var(--line); border-radius: 8px; padding: .5rem .75rem; font-size: .9rem }
.trip[aria-current="true"] { border-color: var(--accent); background: var(--sunken) }
.trip .when { font-family: var(--m); font-size: .76rem; color: var(--muted) }

/* ── 채팅 시트 ──
   화면 아래에 붙어 있고, 손잡이를 끌면 커진다. 접힌 상태에서도 입력해 보낼 수 있다. */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; flex-direction: column;
         background: var(--surface); border-top: 1px solid var(--line); border-radius: 20px 20px 0 0;
         box-shadow: 0 -4px 18px rgba(0,0,0,.10); padding: 0 .75rem calc(.6rem + env(safe-area-inset-bottom, 0px));
         max-height: 92vh; margin: 0 auto; max-width: 44rem }
.sheet[hidden] { display: none }
/* position:relative 를 주면 안 된다 — 위의 position:fixed 를 덮어써서 시트가
   화면 아래가 아니라 **문서 끝**에 붙는다. fixed 도 절대 위치의 기준이 되므로
   relative 는 필요 없다. */
.sheet .handle { display: flex; flex-direction: column; align-items: center; padding: .5rem 0 .25rem; cursor: ns-resize;
                 user-select: none; touch-action: none }
.sheet .handle .bar { width: 2.6rem; height: 5px; border-radius: 4px; background: var(--line) }
.sheet .handle .hint { font-size: .82rem; color: var(--muted); margin-top: .25rem; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.sheet.open .handle .hint { display: none }
.focusbar { display: flex; align-items: center; gap: .5rem; background: var(--accent-soft); color: var(--accent);
            border-radius: 999px; padding: .25rem .5rem .25rem .75rem; font-size: .82rem; font-weight: 700; margin: .125rem auto .25rem; width: fit-content; max-width: 100% }
.focusbar button { min-height: 0; padding: .125rem .5rem; font-size: .75rem }
/* 말풍선 사이가 .5rem 이면 답이 끝났는지 아직 쓰는 중인지 구분이 안 됐다(태인, v187).
   턴 사이를 1rem 으로 벌리고, 마지막 말풍선 아래에도 입력창까지 숨 쉴 자리를 둔다. */
.chat { display: none; flex-direction: column; gap: 1rem; overflow-y: auto; padding: .5rem .125rem 1rem; flex: 1; min-height: 0 }
/* 대화창 안에서 굴린 것은 뒤 화면으로 넘기지 않는다 — 대화 목록 끝에 닿아도(overscroll) · 굴릴 것 없는 자리(입력칸 · 머리)는 app.js sheetScrollGuard 가 막음.
   대화창 **밖**(위쪽 일정)을 굴리면 뒤 화면이 그대로 굴러간다 */
.chat { overscroll-behavior: contain }
.sheet { overscroll-behavior: contain }
.sheet.open .chat { display: flex }
.turn { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem }
.turn.me { align-items: flex-end }
.turn .tag { font-size: .68rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: .05rem .5rem }
/* ⚠️ break-word 였다 — 한국어에서는 **글자 사이 아무 데나** 끊긴다는
   뜻이다("다시 눌러 주 / 세요"). 띄어쓰기에서만 끊고(keep-all), 띄어쓰기가
   없는 긴 주소만 빠져나가게 둔다(overflow-wrap). .say 와 같은 규칙이다. */
.bubble { max-width: 90%; padding: .5rem .75rem; border-radius: 12px; font-size: .95rem;
          line-height: 1.6; white-space: pre-wrap;
          word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty }
.turn.me .bubble { background: var(--accent); color: var(--accent-fg); border-bottom-right-radius: 4px }
.turn.ai .bubble { background: var(--sunken); border: 1px solid var(--line); border-bottom-left-radius: 4px }
/* 말풍선 속 주소 링크 — 내 말풍선은 배경이 --accent 라 글자색도 같으면 안 보인다(2026-11-18). */
.bubble a { text-decoration: underline; word-break: break-all }
.turn.me .bubble a { color: var(--accent-fg) }
.turn.ai .bubble a { color: var(--accent) }
.turn.sys .bubble { background: transparent; border: 1px dashed var(--line); color: var(--muted); font-size: .82rem; max-width: 100% }
/* ⚠️ **대화가 멈춘 까닭**은 다른 안내와 같은 옷을 입으면 안 된다.
   크레딧이 떨어졌다는 말이 흐린 회색으로 떠서, 왜 답이 없는지 모른 채
   같은 말을 다시 보내는 일이 있었다. 붉은 실선 + 옅은 바탕으로 세운다. */
.turn.sys.bad .bubble {
  border: 1px solid var(--stop); border-style: solid; color: var(--fg);
  background: var(--stop-soft); font-weight: 500;
}
.turn.sys.bad .bubble .errlogin { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .4rem }
.bubble .meta { display: block; margin-top: .25rem; font-size: .68rem; color: var(--muted) }
.turn.me .bubble .meta { color: rgba(255,255,255,.75) }
.dots span { display: inline-block; width: .35rem; height: .35rem; margin-right: .25rem; background: var(--muted); border-radius: 50%; animation: blink 1.2s infinite }
.dots span:nth-child(2) { animation-delay: .2s }
.dots span:nth-child(3) { animation-delay: .4s }

/* 하는 일 — 생각 중일 때만 떴다가, 답이 오면 통째로 사라진다.
   한 번 말을 걸면 여러 차례 오가기 때문에, 그동안 무엇을 보고 있는지
   적어 두지 않으면 멎은 것과 구별이 안 된다. */
.steps { margin: 0 0 .35rem }
.steps:empty { display: none }
.step { display: flex; gap: .5rem; align-items: flex-start;
  font-size: .45rem; line-height: 1.4; color: var(--muted);
  padding: 0; animation: stepin .18s ease-out }
.step i { font-style: normal; flex: none; opacity: .65 }
/* 지금 하는 일(점 옆) — 내부 경로 글이라 작게(2026-11-05 승주: "내부 글자 지금의 반") */
.stepnow { font-size: .45rem; color: var(--muted); margin-left: .3rem }

/* 줄 안에서 무언가를 겹쳐 띄울 때를 위해 기준만 남겨 둔다. */
.line1 { position: relative }

/* 좌표가 없어 지도에 못 찍는 줄. 거슬리지 않게 작고 흐리게 둔다 —
   잘못이 아니라 **알림**이다. 직접 적은 줄이 대부분이라 빨갛게 두면
   온 화면이 경고로 덮인다. */
.nomap {
  display: block; font-size: .72rem; font-weight: 600; color: #d40000; line-height: 1.35;
  margin: .3rem 0 0; padding: 0 .1rem;
}
.nomap[hidden] { display: none }

/* 한국 시각. **현지 시각이 기본**이고 이건 덧붙임이라, 작고 흐리게 둔다 —
   같은 크기로 두면 둘 중 어느 것이 기준인지 헷갈린다. */
.kst { font-size: .76rem; color: var(--muted); margin-left: .25rem; white-space: nowrap }
.step span { word-break: keep-all; overflow-wrap: anywhere }
@keyframes stepin { from { opacity: 0; transform: translateY(-2px) } to { opacity: 1 } }
@keyframes blink { 0%,60%,100% { opacity: .25 } 30% { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .dots { display: none } * { animation: none !important; transition: none !important } }
.sheet .chips { margin: .25rem 0 .5rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none }
.sheet .chips::-webkit-scrollbar { display: none }
/* 사진 첨부 */
.attachbtn { width: 2.6rem; height: 2.6rem; border-radius: 50%; padding: 0; font-size: 1.1rem; flex: none; background: var(--sunken) }
/* 답 아래 한 줄 — 토큰 · 부른 도구 · 걸린 시간. 누르면 도구가 펼쳐진다 */
.turn.ai .usage { margin: .25rem 0 0 .25rem; font-size: .68rem; color: var(--muted) }
.turn.ai .usagehead { all: unset; cursor: pointer; font-size: .68rem; color: var(--muted) }
.turn.ai .usagehead:hover { text-decoration: underline }
.turn.ai .usagelist { margin-top: .125rem; line-height: 1.5; word-break: break-all }
.attachstrip { display: flex; gap: .5rem; padding: .25rem 0 .25rem; overflow-x: auto }
.attach { position: relative; flex: none }
.attach img { width: 3.6rem; height: 3.6rem; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block }
.attach .x { position: absolute; top: -.35rem; right: -.35rem; min-height: 0; padding: 0 .25rem; font-size: .68rem; border-radius: 999px; background: var(--surface) }
.bubble .thumb { display: block; max-width: 12rem; max-height: 9rem; border-radius: 8px; margin-top: .35rem }
.chatbar { display: flex; gap: .5rem; align-items: flex-end }
.chatbar textarea { flex: 1; min-height: 2.6rem; max-height: 7.5rem; resize: none; font-size: 1rem; border-radius: 16px; padding: .5rem 1rem; background: var(--sunken) }
.chatbar button { width: 2.6rem; height: 2.6rem; border-radius: 50%; padding: 0; font-size: 1.2rem; font-weight: 800; flex: none }

/* ── 지도 ── */
#map { height: 60vh; min-height: 20rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--sunken) }
.leaflet-container { font-family: var(--b) }
/* **지도는 페이지에 붙는다 — 채팅 시트 · 창 위로 안 뜬다**(2026-11-04 승주: "상세 일정 지도가 ai 채팅과 겹칠 때 지도가 위에 보여서
   가려져 · 지도는 페이지에 붙는 구조로 · ai 채팅 올라오면 페이지는 가려지는 거지"). Leaflet 안쪽 층(타일 200 · 핀 600 · 단추 1000)이
   페이지 전체와 겨뤄 시트(20)를 이겼다. 지도 상자를 제 층으로 가둔다 — 안쪽 순서는 그대로, 밖에서는 페이지 한 조각. */
.leaflet-container { isolation: isolate; z-index: 0 }
.leaflet-popup-content { font-size: .88rem; line-height: 1.5 }
.pin { display: flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
       color: #fff; font-size: .76rem; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.4) }
.mapnote { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: 8px;
           padding: .75rem 1rem; margin-bottom: .75rem; font-size: .82rem; color: var(--muted) }
.pinlabel { position: absolute; left: 1.9rem; top: .1rem; white-space: nowrap; font-size: .68rem; font-weight: 600; color: var(--fg);
            background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 0 .25rem; pointer-events: none }
.pop { min-width: 13rem }
.pophead { font-weight: 700; font-size: .88rem; margin-bottom: .15rem }
.popsub { font-size: .76rem; color: var(--muted) }
.poprow { display: flex; gap: .25rem; align-items: center; margin-top: .45rem }
.pop a.btn.sm { padding: .25rem .5rem; font-size: .78rem }
:root[data-theme="dark"] .leaflet-tile-pane, .darkmap .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.5) }
.darkmap .leaflet-control-attribution { background: rgba(24,33,31,.85); color: var(--muted) }
.darkmap .leaflet-control-attribution a { color: var(--accent) }
.nolabel .pinlabel { display: none }


/* ── 숙소 ──
   일정 줄 안에 들어간다. 종류가 '숙소' 일 때만 보이고, 고른 뒤에만 카드가 펼쳐진다. */
.stay { margin-top: .4rem }
.stay[hidden] { display: none !important }

.stay-card {
  display: grid; grid-template-columns: 5rem 1fr auto; gap: .75rem; align-items: start;
  padding: .5rem; background: var(--sunken);
  border: 1px solid var(--line); border-left: 3px solid var(--stay); border-radius: 8px;
}
.stay-card img { width: 5rem; height: 3.6rem; object-fit: cover; border-radius: 4px;
                 background: var(--line) }
/* 고른 집은 **눌러서 다시 고를 수 있다**(stay.js). 단추이지만 단추처럼
   보이면 카드가 시끄러워지므로, 생김새는 글자 그대로 두고 손짓만 바꾼다. */
.stay-info { min-width: 0; background: none; border: 0; padding: 0; margin: 0;
             text-align: left; font: inherit; color: inherit; display: block; width: 100% }
button.stay-info { cursor: pointer }
button.stay-info:hover strong { text-decoration: underline; text-underline-offset: .15em }
button.stay-info:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: .3rem }
.stay-info strong { display: block; font-size: .95rem; overflow-wrap: anywhere }
.stay-meta { display: block; font-size: .76rem; color: var(--muted); margin-top: .15rem }
.stay-tools { display: flex; flex-direction: column; gap: .3rem }
.stay-tools .sm { font-size: .76rem; white-space: nowrap }

/* 출처 뱃지. 아주 작게 — 밝히되 읽기를 방해하지 않는다. */
.src {
  display: inline-block; font-size: .68rem; line-height: 1.5;
  padding: 0 .25rem; border: 1px solid var(--line); border-radius: 4px;
  color: var(--muted); vertical-align: 1px; white-space: nowrap;
}

/* 연동현황 */
.chips { display: flex; flex-wrap: wrap; gap: .25rem; margin: .25rem 0 0; justify-content: flex-end }
.chip { font-size: .68rem; padding: .125rem .5rem; border-radius: 999px;
        border: 1px solid var(--line); color: var(--muted) }
.chip.on { border-color: var(--ok); color: var(--ok) }
.chip.on::before { content: "● " }
.chip.off::before { content: "○ " }

.stay-panel { margin-top: .5rem; padding: .75rem; background: var(--sunken);
              border: 1px solid var(--line); border-radius: 8px }
.stay-find { display: flex; flex-wrap: wrap; gap: .4rem }
.stay-find .stay-where { flex: 1; min-width: 9rem }
.stay-count { font-size: .82rem; color: var(--muted); margin: .6rem 0 .4rem }

.stay-results { display: grid; gap: .4rem }
.stay-opt {
  display: grid; grid-template-columns: 4rem 1fr; gap: .5rem; align-items: center;
  width: 100%; text-align: left; padding: .5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  color: var(--fg); cursor: pointer;
}
.stay-opt:hover, .stay-opt:focus-visible { border-color: var(--stay) }
.stay-opt img { width: 4rem; height: 3rem; object-fit: cover; border-radius: 4px;
                flex: 0 0 auto; background: var(--line) }
.stay-opt-t { min-width: 0 }
.stay-opt-t strong { display: block; font-size: .88rem; overflow-wrap: anywhere }

/* 상세 */
.stay-detail { margin-top: .5rem; padding: .75rem; background: var(--sunken);
               border: 1px solid var(--line); border-radius: 8px }
.stay-photos { display: flex; gap: .25rem; overflow-x: auto; padding-bottom: .3rem }
.stay-photos img { width: 7rem; height: 5rem; object-fit: cover; border-radius: 4px;
                   flex: 0 0 auto; background: var(--line) }
.stay-facts { font-size: .82rem; margin: .5rem 0 0; font-weight: 600 }
.stay-fac { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none;
            padding: 0; margin: .45rem 0 0 }
.stay-fac li { font-size: .68rem; color: var(--muted);
               border: 1px solid var(--line); border-radius: 4px; padding: 0 .3rem }
.stay-over { font-size: .82rem; color: var(--muted); margin: .5rem 0 0; line-height: 1.6 }
.stay-imp { font-size: .76rem; color: var(--warn); margin: .45rem 0 0 }

/* hidden 속성은 display 를 지정한 규칙에 밀린다. 한 번 못박아 둔다. */
[hidden] { display: none !important }

@media (max-width: 30rem) {
  .stay-card { grid-template-columns: 3.5rem 1fr }
  .stay-card img { width: 3.5rem; height: 2.6rem }
  .stay-tools { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap }
}


/* 채팅 안의 숙소 선택지 */
.chat-stays { margin-top: .5rem; display: grid; gap: .35rem }
.chat-stays-h { font-size: .76rem; color: var(--muted); margin: 0 0 .1rem }
.chat-stay { border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
             background: var(--surface) }
.chat-stay-main {
  display: grid; grid-template-columns: 3.6rem 1fr; gap: .5rem; align-items: center;
  width: 100%; text-align: left; padding: .25rem; background: none; border: 0;
  color: var(--fg); cursor: pointer;
}
.chat-stay-main:hover, .chat-stay-main:focus-visible { background: var(--sunken) }
.chat-stay-main img { width: 3.6rem; height: 2.7rem; object-fit: cover; border-radius: 4px;
                      background: var(--line) }
.chat-stay-t { min-width: 0 }
.chat-stay-t strong { display: block; font-size: .82rem; overflow-wrap: anywhere }
.chat-stay .aff { padding: 0 .5rem .25rem; margin: 0 }
.chat-stay .aff a { font-size: .74rem }


/* ── 카드의 준비 체크: 좌측 일정 줄과 같은 줄 ──
   같은 <li> 안의 두 칸이라 어긋날 수가 없다. 오른쪽 칸의 점선이 예전의
   세로 구분선 노릇을 한다. */
/* 줄 높이는 **왼쪽 글자가 정한다.** 오른쪽 체크·아이콘이 더 크면 줄이 밀려
   카드가 길쭉해진다 — 그래서 오른쪽 것들은 줄 높이 안에 들어가게 묶어 둔다.
   (min-height 를 주면 그 자체가 줄을 밀어올린다. 주지 않는다.)

   칸 너비는 넉넉히 준다. 좁게 잡으면 이모지가 카드 밖으로 밀려나 잘린다
   (.card 가 overflow:hidden 이라 소리 없이 잘린다 — 3px 만 넘어도 그렇다).
   순서는 **무엇인지 → 했는지 → 하러 가기** 로 읽히게 뒀다. */
/* ── 줄 하나의 자리 나눔 ────────────────────────────
   왼쪽은 **글**, 오른쪽은 **단추 두 개**. 오른쪽 폭은 한 곳에서만 센다.

   ⚠️ 전에는 4.3rem·5.6rem 처럼 눈대중으로 적어 둔 숫자가 화면 폭마다
      따로 있었다. 거기 들어가는 것은 언제나 🔗(예약 링크) 와 📎(첨부)
      **둘뿐**인데, 자리는 그보다 훨씬 넓게 잡혀 있었다. 남는 자리는
      그냥 빈칸이 아니라 **왼쪽 글에서 빼앗은 자리**다 — 폰에서
      "김포공항(GMP) 출발 → 제주국제공항(CJU)(Gimpo Inter…" 처럼
      잘려 보이던 까닭이 이것이다.
   그래서 단추 크기(--act)에서 폭을 계산한다. 단추가 늘면 수식이 따라
   늘고, 늘 **꼭 필요한 만큼만** 차지한다. 셋째 단추를 넣고 싶어지면
   이 수식의 2 를 고치면 되고, 그때 왼쪽이 얼마나 줄어드는지도 보인다. */
.daycard .lines li {
  --act: 1.7rem;                 /* 네모 단추 한 변 — .act 와 같은 값 */
  --pgap: .25rem;                /* 단추 사이 */
  --ppad: .4rem;                 /* 점선과 단추 사이 */
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(var(--act) * 2 + var(--pgap) + var(--ppad));
  gap: .5rem; align-items: center; line-height: 1.5;
}
.daycard .lines li .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0 }
/* 오른쪽 끝에 가지런히 붙인다. 왼쪽으로 몰아 두면 칸 오른쪽이 휑하게 빈다.
   읽는 순서는 **무엇인지(아이콘) → 했는지(체크) → 하러 가기(＋/🔗)** 다. */
.daycard .lines li .p { border-left: 1px dashed var(--line); padding-left: var(--ppad);
                        align-self: stretch; display: flex; align-items: center;
                        justify-content: flex-end; gap: var(--pgap); line-height: 1 }


/* 폰에서는 글이 더 아쉽다 — 단추 사이만 한 번 더 좁힌다(폭은 수식이 따라온다). */
@media (max-width: 36rem) {
  .daycard .lines li { --pgap: .125rem; --ppad: .32rem }
}

/* ── 순서 바꾸기 손잡이 ── */
.item .line1 { position: relative }
.grip {
  background: none; border: 0; padding: 0 .25rem 0 0; cursor: grab;
  color: var(--muted); font-size: .95rem; line-height: 1; touch-action: none;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.grip:active { cursor: grabbing }
.grip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px }
.item.dragging { opacity: .45 }
.item.over { box-shadow: inset 0 2px 0 var(--accent) }
.item.overend { box-shadow: inset 0 -2px 0 var(--accent) }
/* .item.lifted 의 배경·그림자·scale·transition 은 theme.css 상단(.card.tile.lifted 근처) 공통 선언으로 옮김(2026-11-26) */
.item.lifted .grip, .grip:active { color: var(--accent) }
.item.lifted .grip { scale: 1.3 }


/* 줄 오른쪽: 링크버튼 + 체크박스 */
/* 전역 button 의 min-height:2.25rem 은 손가락으로 누르라고 둔 것인데, 이 촘촘한
   목록에서는 줄을 36px 로 밀어올려 카드가 길쭉해진다. 높이는 풀되 **누를 영역은
   그대로 둔다** — 가짜 레이어를 띄워 넓히면 레이아웃에는 영향이 없다. */
.plink {
  background: none; border: 0; padding: 0; cursor: pointer; font-size: .76rem;
  color: var(--muted); line-height: 1; flex: none;
  min-height: 0; position: relative; width: 1.05em; text-align: center;
  border-radius: 999px; transition: color .12s ease;
}
.plink:hover { color: var(--accent) }
.plink::after { content: ""; position: absolute; inset: -11px -7px }
.pcheck { position: relative }
.pcheck::after { content: ""; position: absolute; inset: -11px -4px }
.pcheck input, .pcheck .ic { position: relative; z-index: 1 }
.plink.has { color: var(--accent) }
.plink:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px }

/* 숙소 고르기 창 */
.modal-back {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 60;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  /**
   * ⚠️ **덮개 자체도 넘기면 움직인다.**
   *
   * 창 높이를 92dvh 로 묶어 두었는데, 폰에서는 주소창·상태줄이 오르내리며
   * dvh 가 실제 보이는 높이보다 커지는 때가 있다. 그러면 창 **머리(제목·
   * 닫기)가 화면 위로 잘려** 나가는데, 안쪽 목록만 스크롤되니 **올려 볼
   * 길이 없었다.** 덮개에 스크롤을 두면 그때 손가락으로 끌어 올릴 수 있다.
   * ⚠️ align-items 를 center 로 두면 넘칠 때 **위쪽이 잘린다**(중앙 정렬의
   *    오랜 함정이다). safe-center 로 두면 넘치는 순간 위 기준이 된다.
   */
  overflow-y: auto; overscroll-behavior: contain;
  align-items: safe center;
}
.modal {
  background: var(--surface); border-radius: var(--r); width: min(42rem, 100%);
  /* 머리와 바닥이 늘 보이도록 조금 줄인다 — 92dvh 는 폰에서 종종 넘쳤다. */
  max-height: 88dvh; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); margin: auto;
}
/* **열릴 때 애니메이션**(2026-11-26 베어스타: "숙소 카드 눌렀을 때 위에서 뚜둑하면서 내려와") —
   전에는 back.hidden 만 뗐다(display:none → flex). transition 이 탈 시간 없이 한 프레임에
   그대로 나타나 "뚝" 끊겨 보였다. 바탕은 페이드, 창은 살짝 아래서 떠오르듯 — 모바일 바텀시트는
   아래에서 위로(제자리에서 미끄러져), 데스크톱 가운데 창은 약간 커지며 뜬다. */
.modal-back.opening { animation: modalBackIn .18s ease-out both }
.modal-back.opening .modal { animation: modalSheetIn .22s cubic-bezier(.22,1,.36,1) both }
@keyframes modalBackIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes modalSheetIn { from { opacity: 0; transform: translateY(14px) scale(.98) } to { opacity: 1; transform: none } }
@media (max-width: 34rem) {
  @keyframes modalSheetIn { from { opacity: 0; transform: translateY(28px) } to { opacity: 1; transform: none } }
}
@media (prefers-reduced-motion: reduce) {
  .modal-back.opening, .modal-back.opening .modal { animation: none }
}
.modal-h { display: flex; align-items: center; justify-content: space-between;
           gap: .5rem; padding: .75rem .75rem; border-bottom: 1px solid var(--line) }
/* ── 찾기 줄 ─────────────────────────────────────────
   ⚠️ 칸 둘과 단추가 **높이가 제각기**였다. 단추는 알약(둥근 테두리)인데
      칸은 네모라, 셋이 한 줄에 서면 가운데 것만 떠 보였다. 게다가 폰에서는
      단추가 동그라미처럼 눌려 "이게 뭐지" 가 됐다.
   셋을 **같은 높이·같은 둥글기**로 맞추고, 단추에는 글자와 돋보기를 같이
   둔다 — 그림만 있으면 무엇을 하는 단추인지 매번 짐작해야 한다. */
.modal-find { display: flex; flex-wrap: nowrap; gap: .5rem; padding: .75rem .75rem;
              align-items: stretch }
/* 칸이 하나뿐이다 — '원하는 조건' 칸은 아무 데도 안 가는 말이라 걷어냈다
   (stay.js 참고). 남은 도시 칸이 남는 자리를 다 쓴다. */
.modal-find .stay-where { flex: 1 1 auto; min-width: 6rem }
.modal-find input {
  height: 2.5rem; border-radius: 8px; font-size: .88rem; padding: 0 .75rem;
}

/* ── 이 검색의 인원 ────────────────────────────────────────
   ⚠️ 몇 명이 묵는지가 **어디에도 안 적혀 있었다.** 값이 1인 기준인지
      방 전체인지 알 수 없고, 셋이 가는데 2인 값을 보고 있어도 몰랐다.
      검색에 실려 가는 것은 화면에 있어야 한다.
   도시 칸과 **같은 높이**로 세운다 — 한 줄에 선 것들의 키가 다르면
   눈이 먼저 그 어긋남을 본다. */
.paxpick { display: flex; align-items: center; flex: none; height: 2.5rem;
           border: 1px solid var(--line); border-radius: 8px;
           background: var(--card); overflow: hidden }
.paxbtn { width: 1.9rem; height: 100%; border: 0; background: transparent;
          color: var(--ink); font-size: 1rem; line-height: 1; cursor: pointer;
          display: flex; align-items: center; justify-content: center }
.paxbtn:hover:not(:disabled) { background: var(--line) }
/* 끝에 닿으면 흐리게 — 눌러도 아무 일 없는 단추는 고장으로 읽힌다. */
.paxbtn:disabled { opacity: .35; cursor: default }
.paxrow { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin: .1rem 0 .6rem }
.paxlab { display: flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 600; color: var(--muted) }
.paxrow .paxpick { height: 2.2rem }
.paxnote { font-size: .76rem; color: var(--warn, #b4530a) }
.paxnum { min-width: 2.4rem; text-align: center; font-size: .82rem;
          font-weight: 600; font-variant-numeric: tabular-nums }
.findbtn {
  flex: 0 0 auto; height: 2.5rem; min-height: 0; padding: 0 1rem;
  border-radius: 999px; font-size: .88rem; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; line-height: 1;
}
.findbtn.primary { background: var(--accent); color: #fff }
.findbtn.primary:hover { filter: brightness(1.06) }
.findbtn:disabled { opacity: .5; cursor: default; filter: none }
.findbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
/* 아주 좁은 폰에서는 글자를 접고 돋보기만 — 칸이 글자에 밀려 좁아지는 쪽이
   더 나쁘다(도시 이름이 두 글자만 보인다). */
@media (max-width: 24rem) {
  .findbtn { padding: 0 .5rem; font-size: 0 }
  .findbtn::before { content: "🔍"; font-size: 1rem }
}
/* ⚠️ grid 는 남은 높이에 줄을 **욱여넣는다.** 10개를 짧은 칸에 넣으면 각 줄이
   눌려 사진이 선으로 변하고 평점·주소가 잘린다 — 실제로 그렇게 보였다.
   align-content:start 로 줄을 제 키대로 쌓고, 넘치면 스크롤하게 둔다.
   flex:1·min-height:0 이 없으면 아래 칸에 밀려 목록이 더 납작해진다. */
/* ⚠️ grid 로 두면 안 된다.
   카드에 overflow:hidden 이 있으면 그 카드의 '최소 높이' 가 0 이 되고, grid 는
   남은 높이에 맞추려고 **내용보다 작게 줄여 버린다**. 실제로 105px 짜리 카드가
   47px 로 눌려 사진이 선이 되고 글자가 잘렸다. align-content:start 는 남는 공간이
   있을 때만 듣기 때문에 이걸 막지 못한다.

   flex 세로쌓기로 두고 각 카드에 flex:none 을 주면 줄어들 수가 없다.
   넘치면 그냥 스크롤된다. */
.modal-list { overflow-y: auto; padding: 0 .75rem .5rem;
              display: flex; flex-direction: column; gap: .25rem;
              flex: 1 1 auto; min-height: 0 }
.modal-list > * { flex: none }
/* 기다리는 글. **목록 칸은 그대로 두고** 글 모습만 바꾼다 —
   .modal-list 를 떼어 내면 스크롤이 통째로 사라진다. */
.modal-list.wait { font-size: .82rem; color: var(--muted); padding-top: .5rem }

.modal-f { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center;
           padding: .5rem .75rem .25rem; border-top: 1px solid var(--line); flex: none }
.modal-f .urlwrap { flex: 1 1 12rem; min-width: 7rem }
/* ⚠️ '예약 확인증 링크' 라벨도 제 줄을 썼다. 칸 바로 앞에 세우면 한
   줄이 준다 — 좁은 화면에서는 알아서 접힌다. */
.modal-f .st { font-size: .76rem; margin: 0; flex: none; white-space: nowrap }
.modal-h, .modal-top, .modal-find, .modal-why { flex: none }

/* ── 머리 줄 — 날짜 | 추린 내역 ─────────────────────────
   ⚠️ **열을 고정한다.** 둘 다 길이가 달라지는 글이라, 그냥 flex 로 두면
      오른쪽이 길어질 때 날짜를 밀어 두 줄이 된다. `auto 1fr` 이면 날짜는
      제 길이를 지키고(늘 같다) 남는 자리는 전부 오른쪽 몫이 된다.
   ⚠️ 오른쪽은 **한 줄로 접는다**(ellipsis). '○○ 둘레' 가 붙으면 길어질 수
      있는데, 그때 줄이 늘면 아래가 통째로 밀린다. 전체 글은 title 에 있다.
   ⚠️ 둘의 **글꼴을 맞춘다.** 같은 종류의 말(지금 무엇을 보고 있나)인데
      크기가 다르면 눈이 먼저 그 어긋남을 본다. */
/* 세 칸이다: **날짜 | 추린 내역 | 차례 고르개.** 가운데만 늘어나고
   양끝은 제 크기를 지킨다 — 고르개가 글자 수에 따라 움직이면 누르러 가는
   자리가 매번 달라진다. */
.modal-top {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: .125rem .5rem; padding: .25rem .75rem;
  background: var(--accent-soft); border-bottom: 1px solid var(--line);
}
.modal-top .modal-when, .modal-top .modal-count {
  margin: 0; font-size: .82rem; line-height: 1.35; min-width: 0;
}
.modal-top .modal-when { font-weight: 700; color: var(--accent); white-space: nowrap }
.modal-top .modal-count {
  color: var(--muted); text-align: right;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 인원만 고치고 아직 안 찾은 상태 — 눈에 띄어야 '찾기' 를 누른다. */
.modal-top .modal-count.stale { color: var(--warn); font-weight: 600 }

/**
 * 차례 고르개.
 *
 * ⚠️ 기본 <select> 그대로는 기기마다 **딴판으로** 생겼다(윈도우는 네모난
 *    회색, 맥은 파란 알약). 한 창 안에서 우리가 그린 단추들과 나란히 서면
 *    그것만 남의 화면에서 온 조각처럼 보인다.
 *    생김새는 우리가 그리고(appearance:none + 우리 화살표), **고르는 일은
 *    기기에 맡긴다** — 목록을 직접 그리면 폰의 휠 고르개를 잃고, 낭독기와
 *    키보드 다루기를 전부 다시 만들어야 한다.
 * ⚠️ 화살표는 배경 그림(SVG)으로 둔다. 조각을 하나 더 얹으면 그 조각이
 *    누르기를 가로채서, 화살표를 눌렀을 때만 안 열리는 일이 생긴다.
 */
.sortpick { display: inline-flex; align-items: center; flex: none }
.sortsel {
  appearance: none; -webkit-appearance: none;
  min-height: 0; padding: .25rem 1.25rem .25rem .5rem;
  font: inherit; font-size: .76rem; font-weight: 600; line-height: 1.5;
  color: var(--accent); background-color: var(--surface);
  border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; white-space: nowrap;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%230369a1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.75 6 7.75 9 4.75'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .4rem center; background-size: .7rem;
  transition: border-color .15s, background-color .15s;
}
.sortsel:hover { border-color: var(--accent) }
.sortsel:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px }
/* 어두운 화면에서는 화살표도 밝아야 한다 — 짙은 파랑은 안 보인다. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sortsel {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%235ab8f5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.75 6 7.75 9 4.75'/%3E%3C/svg%3E");
  }
}
:root[data-theme="dark"] .sortsel {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%235ab8f5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.75 6 7.75 9 4.75'/%3E%3C/svg%3E");
}
/* 펼친 목록은 기기가 그린다 — 글자색만 바탕과 맞춰 둔다(어두운 화면에서
   흰 바탕에 흰 글자가 되는 것을 막는다). */
.sortsel option { color: var(--fg); background: var(--surface) }

/* 좁은 화면에서는 머리 줄이 두 줄이 된다 — 고르개가 날짜를 밀어내지
   않게, 고르개를 아래로 내리고 양끝에 세운다. */
@media (max-width: 26rem) {
  .modal-top { grid-template-columns: 1fr auto }
  .modal-top .modal-count { grid-column: 1; grid-row: 2; text-align: left }
  .modal-top .sortpick { grid-column: 2; grid-row: 2 }
}
.modal-top .modal-when.warn { color: var(--warn); font-weight: 600 }

/* ── 예약 확인증 덮개 ────────────────────────────────
   링크와 파일을 한 자리에 모은 창. 설명을 **먼저** 두는 까닭: 무엇을 왜
   넣는지 모르면 빈 칸만 보고 닫는다. */
.ticketbox { width: min(30rem, 100%) }
.ticketbox .tklead { padding: .75rem 1rem 0; margin: 0; line-height: 1.5 }
.tkbody { padding: .5rem 1rem 1rem; display: flex; flex-direction: column; gap: .9rem }
.tkrow { display: flex; flex-direction: column; gap: .3rem }
.tklab { font-weight: 700; font-size: .92rem }
.tkrow .note { margin: 0; line-height: 1.5 }
.tkline { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .2rem }
.tkline .in { flex: 1 1 10rem; min-width: 0; height: 2.4rem; border-radius: .6rem }
.tkline .sm { flex: none }

/* 좁은 화면에서는 아래에서 올라오는 시트처럼 — 화면을 꽉 써야 목록이 보인다 */
@media (max-width: 34rem) {
  .modal-back { padding: 0; align-items: flex-end }
  .modal { width: 100%; max-height: 94dvh; border-radius: var(--r) var(--r) 0 0;
           border-bottom: 0 }
  .modal-why { max-height: 4.5rem; overflow-y: auto }
}

.pick {
  display: grid; grid-template-columns: 1.4rem 4.4rem 1fr; gap: .5rem; align-items: center;
  width: 100%; text-align: left; padding: .5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  color: var(--fg); cursor: pointer;
}
.pick:hover, .pick:focus-visible { border-color: var(--stay) }
.pick .rank { font-family: var(--m); font-size: .76rem; color: var(--muted); text-align: center }
.pick img { width: 4.4rem; height: 3.2rem; object-fit: cover; border-radius: 4px;
            background: var(--line) }
.pick-t { min-width: 0 }
.pick-t strong { display: block; overflow-wrap: anywhere }
.pick-t .why { display: block; font-size: .76rem; color: var(--accent) }
.modal-list .aff { margin: 0 0 .35rem 2rem }
.modal-list .aff a { font-size: .72rem }


/* ⚠️ 여기 있던 바탕·여백·테두리를 **걷었다.** 날짜가 이제 머리 줄
   (.modal-top) 안에 들어가는데, 둘 다 여백을 주면 **두 번 들여써져**
   한 줄짜리 글이 두 줄 높이를 먹는다. 감싼 줄이 한 번만 준다.
   한 사실(머리 줄의 생김새)은 한 곳에서. */
.modal-when { margin: 0 }
/* 대표 사진 하나를 크게 — 날짜와 사진으로 고르게 한다 */
.pick { grid-template-columns: 1.4rem 6.4rem 1fr }
.pick img { width: 6.4rem; height: 4.6rem }
.pick-t .pr { display: block; margin-top: .1rem }
@media (max-width: 30rem) {
  .pick { grid-template-columns: 1.2rem 4.6rem 1fr }
  .pick img { width: 4.6rem; height: 3.4rem }
}

/* ⚠️ **스크롤되는 칸이어야 한다.** 숙소 목록(.modal-list)과 달리 이 칸은
   그냥 쌓이기만 해서, 항공편이 여섯만 돼도 창을 넘겨 **아래 '예약완료' 가
   화면 밖으로 밀려났다** — '관심없음' 을 몇 번 눌러 목록을 줄여야 비로소
   보였다. 끝내는 단추가 안 보이면 끝낼 길이 없는 창이다.
   창은 88dvh 로 묶여 있으므로, 넘치는 몫은 **이 칸이 스크롤로 받는다.** */
.modal-move { padding: .25rem .75rem .5rem; flex: 1 1 auto; min-height: 0;
              overflow-y: auto; overscroll-behavior: contain }
.modal-move .st { margin: 0 0 .5rem; line-height: 1.6 }
.modal-move .aff { margin: 0 }


/* 고르기 팝업 — 카드 한 장에 '고르기' 와 '관심없음' 을 같이 둔다 */
.modal-why { margin: 0; padding: .5rem .75rem; font-size: .82rem; line-height: 1.6;
             color: var(--fg); background: var(--sunken);
             border-bottom: 1px solid var(--line) }
.pickcard { border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
            background: var(--surface) }
.pickcard .pick { border: 0; border-radius: 0 }
.pickcard:hover, .pickcard:focus-within { border-color: var(--stay) }
/* ⚠️ 단추 줄이 **제 줄을 통째로** 쓰고 있었다. 카드 하나에 그만큼
   (2.6rem)이 더 붙어, 다섯 곳만 보여 줘도 한 화면을 넘겼다 — 고르는 사람은
   값을 견주려고 왔는데 스크롤만 하게 된다. 글 옆으로 올려 **한 줄을 없앤다.**
   항공 카드(.pickcard.aircard)와 **같은 짜임**이다 — 같은 창에서 같은 일을 하는
   카드가 다르게 생기면 매번 다시 읽게 된다. */
.pickcard { display: grid; grid-template-columns: 1fr auto; align-items: center;
            column-gap: .5rem; padding-right: .45rem }
.pick-tools { display: flex; align-items: center; gap: .25rem; padding: .25rem 0;
              flex-wrap: wrap; justify-content: flex-end }
/* 카드의 단추는 둘이다: **예약진행**(예약처로) · **관심없음**(안 봄).
   끝내는 일('예약완료')은 창 맨 아래 한 자리에 있다.

   ⚠️ **글자 길이가 달라도 너비를 맞춘다.** '예약진행'(4자)과 '관심없음'(4자)
      은 같지만 글자가 바뀌면 바로 어긋난다. 들쭉날쭉한 단추는 줄이 다섯
      개쯤 쌓이면 **세로줄이 안 맞아** 눈이 피로해진다. 최소 너비를 같게
      두고, 모서리도 같은 둥글기로 맞춘다. */
.pick-tools { gap: .4rem }
/* 크기는 위 '한 벌 자' 가 정한다. */


/* 아래 '예약완료' 는 **이 창에서 끝내는 단추**라 조금 더 크게 선다. */
.modal-f .sm.wide { min-width: 6.4rem; border-radius: 8px; font-weight: 700 }
/* 숙소 목록의 '더 보기' — 항공 쪽(width:100% 인 .sm)과 같은 모습으로. */
.modal-list .morebtn { width: 100%; margin-top: .2rem }
.nope { font-size: .68rem; padding: .125rem .5rem; min-height: 0;
        background: none; border: 1px solid var(--line); color: var(--muted) }
.nope:hover { border-color: var(--warn); color: var(--warn) }
.modal-f { flex-wrap: wrap }

/**
 * 고른 카드.
 *
 * ⚠️ `box-shadow: inset 0 0 0 1px` 로 **테두리를 한 겹 더** 그리고 있었다.
 *    고른 카드만 선이 두 배로 두꺼워져, 옆 카드와 나란히 서면 **같은
 *    테두리인데 여기만 굵은** 줄로 보였다. 고른 것을 알리는 방법으로
 *    굵기를 쓰면, 굵기가 "고름" 과 "그냥 테두리" 두 가지를 말하게 된다.
 * 굵기는 **그대로 두고** 색과 바탕으로 말한다 — 숙소 갈래의 주황이다
 *    (줄에서 확정한 숙소와 같은 색이라, 고른 것이 어디로 가는지 이어진다).
 * ⚠️ ✓ 는 **굵게**. 1번·2번 옆에 작게 붙는 글자라, 가늘면 번호의 일부처럼
 *    보여 무엇이 고른 것인지 한눈에 안 들어왔다.
 */
.pickcard.chosen { border-color: var(--stay); background: var(--stay-bg) }
.pickcard.chosen .rank { color: var(--stay) }
.pickcard.chosen .rank::after { content: none }
/* 고름 표시 — 고른 곳 = 진한 ✓ · 안 고른 곳 = 회색 ✓(2026-11-08) */
.pickcard .pickcheck { flex: none; display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  border: 1.5px solid var(--line); color: var(--line); font-size: .82rem; font-weight: 900; line-height: 1; margin-right: .2rem }
.pickcard.chosen .pickcheck { background: var(--stay); border-color: var(--stay); color: #fff }


.fillbar { color: var(--accent); font-weight: 600; margin: .2rem 0 0 }

.styles { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center;
          margin: .5rem 0 0; justify-content: flex-end }
.styles .st { width: 100%; text-align: right; margin-bottom: .1rem }


/* 고정한 줄 — 다시 짜도 안 바뀐다 */
/* ⚠️ 여기 있던 옛 자물쇠 꾸밈(흐리게/진하게)을 걷었다. 아래 '확정
   스위치' 가 생김새를 모두 정한다 — 두 곳에서 말하면 어느 쪽이 사는지
   헷갈리고, 실제로 한쪽만 고쳐 어긋난 적이 있다. */
/* 바탕과 띠는 아래쪽 '확정한 줄' 규칙에서 한곳으로 정한다. 여기서는
   글자 굵기만 — 두 군데서 같은 바탕을 말하면 어느 쪽이 사는지 헷갈린다. */

/* '전체 확정' — 2026-11-25 베어스타: "확정 · 확정취소를 시계 옆에 자물쇠 모양으로" —
   글자 알약을 걷고, 시계(.timeswitch)·지도(.tripmapbtn)와 같은 원형 아이콘 단추로.
   생김새·자리는 theme.css 의 .daysbox .sechead .lockall 이 정한다(아래 시계 단추 옆). */

/* 날짜 후보 — 요금은 못 보여주므로 눌러서 검색으로 보낸다 */
.datepick { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .25rem; align-items: center }
.datepick .st { flex-basis: 100%; margin: 0 0 .125rem; font-size: .76rem }
.datepick .aff { flex-basis: 100%; margin: .2rem 0 0 }

/* 고르기 카드 글자가 아래로 잘리지 않게 */
.pick { padding: .45rem }
.pick-t { padding: .1rem 0 }



/* 한눈에 보기에서 바로 고정 */

/* 고정한 줄은 한눈에 보기에서도 보이게 */
.daycard .lines li:has(.lockline.on) .l { font-weight: 600 }
/* ⚠️ 여기서 5.6rem 으로 **덮어쓰고 있었다.** 위에서 2.8rem 로 좁혀 놓고
   아래에서 두 배로 되돌린 셈이라, 폰에서 오른쪽이 제일 넓었다. 폭은
   이제 한 곳(수식)에서만 정한다. */


/* 항공권 목록 */
.flightbox { margin-top: .5rem; border-top: 1px solid var(--line); padding-top: .6rem }
.flightbox .modal-find { padding: 0 0 .5rem }
.flightbox .modal-find input { flex: 1; min-width: 7rem }
.flightbox .modal-find input:disabled { background: var(--sunken); color: var(--muted); cursor: not-allowed }   /* 현지 쪽 공항 고정(2026-11-08) */
.flightlist { display: grid; gap: .3rem }
.flightlist .st { margin: .2rem 0 }
/* ⚠️ **격자가 아니라 줄로 세운다**(2026-10-25).
   `grid-template-columns: 2rem 1fr` 이었는데, 항공사 **로고가 없는 편**은
   글이 첫 칸(2rem)으로 들어가 **스무 줄로 접혔다** — 카드 하나가 380px 이
   됐다. 로고는 있을 수도 없을 수도 있는 것이라, 칸을 미리 파 두면 없는
   날에 어긋난다. 줄로 세우고 로고에만 크기를 못 박는다. */


/* ── 일정 줄 오른쪽 버튼들 ─────────────────────────────
   같은 크기, 같은 모양, 쓰임새별로 묶어 둔다. 크기가 제각각이면 눈이 줄마다
   다시 자리를 찾아야 하고, 섞여 있으면 무엇이 '보는 것' 이고 무엇이 '누르는 것'
   인지 매번 생각하게 된다.

     [🏨 ☐]      무엇인지 · 준비했는지   — 보는 것
     [선택]       숙소·항공 고르기        — 이 줄에서 할 일
     [🔓] [×]    고정 · 빼기             — 줄 자체를 다루는 것
*/
.daycard .lines li .p {
  display: flex; align-items: center; justify-content: flex-end;
  gap: var(--pgap); line-height: 1;
  border-left: 1px dashed var(--line); padding-left: var(--ppad); align-self: stretch;
}

/* 네모 버튼의 공통 크기. 손가락 영역은 가짜 레이어로 따로 넓힌다. */
.p .pcheck, .p .plink, .p .lockline {
  min-height: 0; line-height: 1; flex: none; position: relative;
  display: inline-flex; align-items: center; justify-content: center;
}
.p .pcheck::after, .p .plink::after, .p .lockline::after {
  content: ""; position: absolute; inset: -10px -4px;
}

/* ① 상태 — 아이콘과 체크 */
.p .pcheck {
  order: 1; gap: .25rem; cursor: pointer; margin: 0;
  flex-direction: row-reverse;            /* 아이콘 먼저, 체크 나중 */
}
.p .pcheck input {
  width: .82rem; height: .82rem; margin: 0; flex: none; accent-color: var(--accent);
}
.p .pcheck .ic { font-size: .76rem; width: 1.05em; text-align: center; flex: none }
.p .pcheck.done { opacity: .45 }

/* ② 할 일 — 하나뿐인 글자 버튼이라 알약으로 두어 눈에 띄게 */
.p .plink {
  order: 2; font-size: .68rem; padding: .125rem .25rem; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted); width: auto;
  margin-left: .125rem;
}
.p .plink.has { color: var(--accent); border-color: var(--accent) }
.p .plink:hover { border-color: var(--accent); color: var(--accent) }

/* ③ 줄 자체 — 고정·빼기. 앞의 둘과 살짝 떼어 둔다 */
.p .lockline {
  background: none; border: 0; padding: 0; cursor: pointer;
  width: 1.05rem; height: 1.05rem; font-size: .76rem; color: var(--muted);
}
.p .lockline { order: 3; opacity: .4; margin-left: .2rem }
.p .lockline.on { opacity: 1 }
.p .lockline:hover { opacity: .85 }
.p .plink:focus-visible, .p .lockline:focus-visible,
.p .pcheck:focus-within {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}

/* 고정한 줄은 한눈에 보기에서도 드러나게 */
.daycard .lines li:has(.lockline.on) .l { font-weight: 600 }

@media (max-width: 36rem) {
  .p .plink { font-size: .68rem; padding: .06rem .26rem }
}




/* 싼 날 후보 */
.dateopt {
  display: block; width: 100%; text-align: left; margin-top: .25rem;
  padding: .5rem .5rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--fg); cursor: pointer;
}
.dateopt:hover, .dateopt:focus-visible { border-color: var(--move) }
.dateopt strong { display: block; font-size: .86rem }
.dateopt.best { border-color: var(--ok) }
.dateopt.best strong::after { content: " · 가장 쌈"; color: var(--ok); font-size: .76rem }


/* ── 채팅 열기 버튼 ──
   시트를 늘 띄워 두면 화면 아래가 그만큼 줄어든다. 쓸 때만 올라오게 하고,
   평소에는 떠 있는 버튼 하나로 둔다. */
.chatfab {
  /* 화면 맨 구석에 붙여 두니 본문에서 너무 멀었다. 글이 놓인 폭(--wrap)
     안쪽 오른쪽에 세운다 — 넓은 화면에서는 글 옆에, 좁은 화면에서는
     예전처럼 구석에 선다(가운데 계산이 음수가 되면 right 가 1rem 으로). */
  position: fixed; z-index: 21;
  right: max(1rem, calc(50vw - (var(--wrap, 60rem) / 2) + 1rem));
  bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; border-radius: 999px; font-size: .95rem; font-weight: 600;
  background: var(--accent); color: var(--accent-fg); border: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); cursor: pointer;
}
.chatfab:hover { filter: brightness(1.06) }
.chatfab:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px }
.chatfab[hidden] { display: none }
.chatfab .ic { font-size: 1.05rem; line-height: 1 }

/* 좁은 화면에서는 동그란 버튼으로 — 글자까지 넣으면 화면을 가린다 */
@media (max-width: 30rem) {
  .chatfab { padding: 0; width: 3.1rem; height: 3.1rem; justify-content: center }
  .chatfab .tx { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }
}

/* 시트 오른쪽 위 — 크게/닫기 */
.sheettools { position: absolute; top: .4rem; right: .5rem; z-index: 2; display: flex; gap: .25rem }
/* 대화창 머리 단추. 그림이 들어가므로 가운데 정렬이 필요하다 —
   글자였을 때는 줄높이로 맞췄지만 svg 는 그게 안 통한다. */
.sheetbtn {
  width: 2.1rem; height: 2.1rem; min-height: 0; padding: 0; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
/* 선 굵기를 우리가 쥔다. 작은 동그라미 안이라 본문 아이콘(1.7)보다 조금
   굵게 — 얇으면 흐려 보이고, 더 굵으면 동그라미를 꽉 채워 답답하다. */
.sheetbtn svg { width: 1.05rem; height: 1.05rem; stroke-width: 1.9 }
/* 글자를 같이 단 단추는 동그라미가 아니라 **알약**이다. 어두운 화면에서
   그림만으로는 안 보였다 — 닫는 길은 눈에 보여야 한다. */
/* ⚠️ **글자 없이 그림만.** 처음엔 안 보여서 '닫기' 글자를 달았는데,
   안 보이던 진짜 까닭은 따로 있었다(#sheetClose 를 숨기는 규칙).
   그걸 걷고 나니 글자는 군더더기다 — 웹에서 쓰던 동그란 그림 단추로
   돌아간다. 대신 **맨 윗줄에**, 옆에 붙이기(⇥) 단추와 나란히 선다. */
.sheetbtn.wide { width: 2.1rem; padding: 0; gap: 0; border-radius: 50%;
                 color: var(--fg); border-color: var(--line-strong) }
.sheetbtn.wide .tx { display: none }
.sheetbtn:hover { color: var(--fg); border-color: var(--muted); background: var(--sunken) }
/* AI 초기화 — 글자 알약. 지우는 단추라 그림만으로 두지 않는다(무엇을 하는지 읽혀야 누른다). */
.sheetbtn.reset { width: auto; padding: 0 .75rem; border-radius: 999px; font-size: .76rem; font-weight: 600 }
.sheetbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }

/* 아래에서 올라오는 느낌. 움직임을 줄이도록 설정한 사람에게는 그냥 나타난다. */
.sheet:not([hidden]) { animation: sheetUp .18s ease-out }
@keyframes sheetUp { from { transform: translateY(14px); opacity: .6 } to { transform: none; opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .sheet:not([hidden]) { animation: none } }


/* 줄 안의 작은 버튼들 — 글자 대신 기호로 두어 한 줄에 들어가게 */
.item .line1 .sm.x {
  width: 1.6rem; height: 1.6rem; min-height: 0; padding: 0; border-radius: 50%;
  font-size: 1rem; line-height: 1; color: var(--muted); background: none;
  border: 1px solid var(--line);
}
.item .line1 .sm.x:hover { color: var(--warn); border-color: var(--warn) }

/* 지우기 생김새(공용 .xghost)는 아래 "펼친 일정 칸 오른쪽 위" 블록에서 정한다 —
   여기 있던 옛 정의(선택자 중복으로 파일 뒤쪽 블록에 늘 졌다)는 걷었다(2026-11-26). */
.item.open { padding-right: 1.4rem }      /* 오른쪽 위 × 자리 — 종류 단추와 안 겹치게 */

/* 예약 링크는 평소엔 접어 둔다. 고르기 창에도 같은 칸이 있어서 거의 안 쓴다. */
.item .line3 { margin-top: .3rem }

/* ── 예약 확인증 서랍 ──────────────────────────────────
   전에는 그냥 "＋ 예약 확인증" 한 줄이었다. ＋ 는 **더한다**는 뜻으로 읽혀서,
   눌렀을 때 아래가 열리는 것과 뜻이 어긋났고 아래 칸과 묶여 보이지도 않았다.
   그래서 ① 꺾쇠(▸)로 바꿔 "펼친다"로 읽히게 하고, ② 열면 테두리가 생겨
   머리와 몸이 **한 상자**가 되게 한다. 닫혀 있을 땐 테두리가 없어 조용하다. */
.item details.linkfold { margin-top: .5rem; border-radius: .45rem }
.item details.linkfold[open] {
  border: 1px solid var(--line); background: var(--sunken);
  padding: .25rem .5rem .5rem;
}
.item details.linkfold > summary {
  font-size: .76rem; color: var(--muted); cursor: pointer; list-style: none;
  padding: .125rem 0; display: flex; align-items: center; gap: .25rem;
  border-radius: 4px;
}
.item details.linkfold > summary:hover { color: var(--fg) }
.item details.linkfold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.item details.linkfold > summary::-webkit-details-marker { display: none }
/* 꺾쇠는 열리면 아래를 가리킨다 — 그 아래가 그 내용이라는 뜻이다. */
.item details.linkfold > summary::before {
  content: "▸"; display: inline-block; font-size: .7em;
  transition: transform .15s ease;
}
.item details.linkfold[open] > summary { color: var(--fg); font-weight: 600; margin-bottom: .15rem }
.item details.linkfold[open] > summary::before { transform: rotate(90deg) }
@media (prefers-reduced-motion: reduce) {
  .item details.linkfold > summary::before { transition: none }
}
.item details.linkfold > div { display: flex; gap: .5rem; align-items: center; margin-top: .3rem }

/* ── 늘 있는 링크(지도)는 작은 아이콘 버튼으로 ──────────
   줄마다 "지도에서 보기" 가 통째로 붙으면 그 글자만 눈에 띈다. */
.aff .btn.iconbtn { padding: .25rem .5rem; font-size: .76rem; gap: .25rem }

/* 그날 할 일 접기 */
.foldbox { margin: .6rem 0 }
.foldbox > summary { font-size: .88rem; font-weight: 600; cursor: pointer; padding: .3rem 0 }
/* 늘 펼쳐 두는 칸(그날 경로 지도) — 접는 표시와 손가락 모양을 걷는다 */
.foldbox.pinned > summary { cursor: default; list-style: none }
.foldbox.pinned > summary::-webkit-details-marker { display: none }

@media (max-width: 30rem) {
  .item .line1 > input.time { width: 3.6rem; font-size: .82rem }
  .item .line1 > select.kind { width: 3.9rem; font-size: .78rem }
}


/* ── 하루 머리글 — 넷이 **같은 높이**로 선다 ──
   ⚠️ 전에는 일차 표지(padding 으로)·제목칸(input 기본 높이로)·단추(sm 의
      제 셈으로) 가 저마다 다르게 높이를 잡아, 한 줄에 서면 계단처럼
      어긋났다. 나란히 선 것들의 높이가 다르면 그중 하나가 덜 중요해
      보인다 — 여기 넷은 전부 "이 날에 대한 일" 로 무게가 같다.
      한 값(--hd)으로 못 박고, 글자는 가운데에 둔다. */
.day > header { --hd: 2.15rem; gap: .25rem; align-items: center }
.day > header .num,
.day > header .sm {
  height: var(--hd); min-height: var(--hd); line-height: 1;
  padding-top: 0; padding-bottom: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.day > header .num { padding-left: .75rem; padding-right: .75rem; font-size: .78rem }
.day > header .sm { padding-left: .75rem; padding-right: .75rem; font-size: .76rem; flex: none }
/* 입력칸은 flex 로 가운데를 못 잡는다 — 높이와 좌우 여백만 맞춘다. */
.day > header .daytitle {
  flex: 1; min-width: 6rem; font-size: .95rem;
  height: var(--hd); min-height: var(--hd); line-height: 1;
  padding: 0 .75rem;
}
/* **날 이름은 한 줄 따로**(2026-11-18 승주 #829: "한 줄 별도로 · 여기 넣으면 N일차 옆 글자 · 편집 가능") — 첫 줄 = 날짜 뱃지 · 단추(오른쪽) · 둘째 줄 = 이름 칸 가득 */
.day > header .daybtns { margin-left: auto }
.day > header .daytitle { order: 3; flex: 1 1 100%; min-width: 0 }
/* 여기서 다시 줄이지 않는다 — 모든 날을 한 번에 보는 자리라
   일차 표지가 **가장 필요한 곳**이다. */

/* 줄 아래 링크는 작게 한 줄로. 줄마다 한 칸씩 차지하면 목록이 길어진다. */
.item .aff { gap: .25rem; margin-top: .25rem }
.item .aff a { font-size: .76rem; padding: .12rem .4rem }
.item .stay-bar .sm { font-size: .76rem; padding: .125rem .5rem; min-height: 0 }
.item .line2 .memo { font-size: .82rem; padding: .35rem .5rem }

@media (max-width: 30rem) {
  /* 좁은 화면에서도 **같은 높이**를 지킨다 — 높이만 한 칸 줄인다. */
  .day > header { --hd: 1.95rem }
  .day > header .daytitle { min-width: 0; font-size: .88rem; padding: 0 .5rem }
  .day > header .num { padding-left: .5rem; padding-right: .5rem; font-size: .74rem }
  .day > header .sm { padding-left: .5rem; padding-right: .5rem; font-size: .74rem }
}


/* 대화가 비어 있을 때 — 빈 상자 대신 무엇을 할 수 있는 곳인지 */
.chatempty {
  margin: auto 0; padding: 1.25rem .5rem; text-align: center;
  display: flex; flex-direction: column; gap: .25rem; color: var(--muted);
}
.chatempty strong { font-size: 1rem; color: var(--fg) }
.chatempty span { font-size: .82rem; line-height: 1.6 }

.datepick .st { flex-basis: 100%; margin: .1rem 0 .2rem }


/* ── AI 검색조건 줄 ──────────────────────────────────────
   입력창 바로 위. AI 가 무엇을 기준으로 찾는지 보여 주고, 누르면 뺀다. */
.condbar {
  display: flex; flex-wrap: wrap; gap: .25rem; align-items: center;
  width: 100%; padding: .125rem 0 .25rem;
}
.condlead {
  font-size: .68rem; font-weight: 700; color: var(--muted);
  letter-spacing: .02em; margin-right: .125rem; white-space: nowrap;
}
.condlead::after { content: " :" }
.cond {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .25rem .5rem; min-height: 0; border-radius: 999px;
  background: var(--sunken); border: 1px solid var(--line); color: var(--fg);
  font-size: .76rem; line-height: 1.3; cursor: pointer; max-width: 100%;
}
.cond:hover { border-color: var(--warn); color: var(--warn) }
.cond:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.cond .ic { font-size: .82rem; line-height: 1 }
.cond .lb { color: var(--muted) }
.cond .vl { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 9rem }
.cond .x { color: var(--muted); font-size: .68rem; margin-left: .05rem }
.cond:hover .x { color: var(--warn) }

@media (max-width: 30rem) {
  .cond .vl { max-width: 6.5rem }
}


/* 아직 안 정한 조건 — 점선으로 비워 두고 눌러서 고른다 */
.cond.need { border-style: dashed; color: var(--muted); background: transparent }
.cond.need:hover { color: var(--accent); border-color: var(--accent) }
.cond.need .lb { color: inherit; font-weight: 600 }
.cond.need[aria-expanded="true"] { color: var(--accent); border-color: var(--accent) }

/* 고르는 줄 — 조건 줄 바로 위에 펼쳐진다 */
.needpick {
  display: flex; flex-wrap: wrap; gap: .25rem; align-items: center;
  width: 100%; padding: .25rem .125rem; border-top: 1px solid var(--line);
}
.needpick .st { flex-basis: 100%; font-size: .68rem; color: var(--muted); margin: .1rem 0 0 }


/* 칩 안의 두 버튼 — 아이콘(고정) / ✕(삭제) */
.cond .ic, .cond .x {
  border: 0; background: none; padding: 0; min-height: 0; cursor: pointer;
  line-height: 1; border-radius: 999px;
}
.cond .ic { font-size: .82rem }
.cond .ic:hover { transform: scale(1.18) }
.cond .x { color: var(--muted); font-size: .68rem; padding: .1rem .15rem }
.cond .x:hover { color: var(--warn) }
.cond .ic:focus-visible, .cond .x:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px }

/* 고정된 조건 — 안 바뀐다 */
.cond.fixed { border-color: var(--accent); background: var(--surface) }
.cond.fixed .vl { color: var(--accent) }
.cond.fixed .x { display: none }


/* 처음 화면의 예시 — 대화 안에서 세로로 쌓는다. 가로로 늘어놓으면 넘친다. */
.starters { display: flex; flex-direction: column; gap: .25rem; margin-top: .75rem; width: 100% }
.starters .chip {
  width: 100%; text-align: left; white-space: normal; line-height: 1.4;
  padding: .5rem .75rem; font-size: .88rem;
}

/* 대화 안에서 아직 안 정한 것 묻기 */
.needbox { margin-top: .5rem; display: flex; flex-direction: column; gap: .5rem }
.needrow { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center }
.needq { flex-basis: 100%; font-size: .82rem; font-weight: 600; color: var(--fg); margin-bottom: .1rem }
.needbox .st { font-size: .76rem; color: var(--muted) }

/* 조건 줄은 접혀서 쌓인다 — 가로로 넘쳐 잘리지 않게 */
.chips { flex-wrap: wrap }


/* 묻는 줄의 칩은 글이 길 수 있다 — 잘리지 않게 줄바꿈을 허용한다 */
.needrow .chip { white-space: normal; text-align: left; line-height: 1.35 }


/* ── 고르는 카드 한 벌 — 숙소·항공이 **같은 자**를 쓴다 ────────
   ⚠️ 전에는 같은 창에서 고르는 두 카드가 글씨 크기·굵기·그림 크기·단추
      크기가 **제각각**이었다. 한 화면에 나란히 서면 눈이 먼저 "왜 다르지"
      를 묻고, 값을 견주는 데 써야 할 힘이 거기로 샌다.
      자를 **한 벌**로 둔다 — 아래 두 카드가 이 값만 쓴다. */
/* ⚠️ **제휴 고지는 누르는 자리에서.** 작게 두되 흐리게는 두지 않는다 —
   밝힐 것을 안 보이게 적으면 밝힌 것이 아니다. */
/* ⚠️ **바탕과 테두리를 걷었다**(2026-10-25). 칠해 둔 네모가 두 줄을
   먹어서, 숙소를 고르는 창에서 가장 큰 덩이가 고지문이었다. 밝히는 글은
   눈에 띄는 것이 아니라 **읽을 수 있으면** 되는 것이다. 글은 줄이되
   흐리게 숨기지는 않는다(--muted 까지, 더 옅게는 안 간다).
*/
.telling {
  flex: 1 1 100%; display: flex; align-items: baseline; justify-content: space-between;
  gap: .5rem; margin: .125rem 0 0; min-width: 0;
}
.telling .affline {
  font-size: .6rem; line-height: 1.35; color: var(--muted); margin: 0;
  background: none; border: 0; padding: 0;
}
.telling .affline { min-width: 0 }
.telling .affline[hidden] { display: none }

.pick-t strong { font-size: .82rem; font-weight: 700; line-height: 1.35 }
.pick-t .pr, .pick-t .stay-meta { font-size: .76rem; color: var(--muted); line-height: 1.4 }
.pick img { border-radius: 4px; background: var(--line); flex: none }

/* 단추는 **세로로 쌓아** 카드 높이 안에 들어가게. 가로로 두면 글이 밀려
   접히고(폰에서 특히), 카드가 되레 높아진다. */
.pick-tools { flex-direction: column; align-items: stretch; gap: .25rem }
.pick-tools .sm {
  min-width: 4.8rem; min-height: 1.75rem; padding: .25rem .5rem;
  font-size: .76rem; font-weight: 600; border-radius: 8px;
  text-align: center; justify-content: center;
}



/* ⚠️ **좁은 화면에서는 단추를 아래로 내린다.**
   글 옆에 두면 한 줄을 아끼지만, 폰(430px)에서는 단추가 가져가는 11rem
   때문에 **글이 대여섯 줄로 접혀** 카드가 오히려 두 배로 높아졌다(385px).
   아끼려던 한 줄 때문에 네 줄이 는 셈이다. 자리가 좁으면 원래대로 내린다. */
/* 2026-11-08 승주: "우측 끝으로 두 줄로 버튼 배치 · 앱 화면도 · 글자가 길면 … 잘리면 돼" — 좁은 화면에서도 **단추는 오른쪽 끝에 두 줄**(예약하기 / 관심없음) ·
   글은 한 줄 말줄임. 전에는 폰에서 단추를 아래로 내려 카드마다 두 줄이 더 붙었다. */
@media (max-width: 33rem) {
  .pick-tools .sm { min-width: 4.4rem; font-size: .72rem }
}
.pickcard .pick, .pickcard .pick-t { min-width: 0 }
.pickcard .pick-t strong, .pickcard .pick-t b, .pickcard .pick-t > span {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100% }
/* 항공 예약 창 목록 머리 · 제휴 고지 — 작게(2026-11-07 승주: "좀 작게 글씨 좀 · 특히 제휴 링크 설명은 좀 더 작게") */
.flightbox .flightlist > p.st { font-size: .76rem; margin: .25rem 0 .125rem; line-height: 1.35 }
.flightbox .flightlist > p.affline { font-size: .6rem; color: #9aa0a6; opacity: .85; margin: 0 0 .5rem; line-height: 1.3 }





/* ── 메인 일정 줄 ───────────────────────────────────────
   아이콘·시각·이름은 줄어들고, 오른쪽 버튼은 **절대 줄지 않는다.**
   글자가 길다고 버튼이 잘리면 열어 볼 길이 사라진다. */
.ovrow { display: flex; align-items: center; gap: .25rem; min-width: 0 }
.ovrow .l { display: flex; align-items: center; gap: .25rem; flex: 1; min-width: 0 }
.ovrow .l .ic { flex: none; font-size: .95rem; line-height: 1 }
.ovrow .l .time { flex: none; font-variant-numeric: tabular-nums }
.ovrow .l .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.ovrow .p { flex: none; display: flex; gap: .25rem; align-items: center }

/* 버튼이 하나도 없는 줄 — 칸 테두리까지 지운다.
   안 그러면 오른쪽에 점선만 덩그러니 남아, 비어 있는 자리를 무언가 있는
   자리처럼 보이게 한다. 없는 것은 자리도 없어야 한다. */
.ovrow .p:empty, .daycard .lines li .p:empty {
  border-left: 0; padding-left: 0; gap: 0;
}
/* AI 가 쓰고 있는 동안의 빈 날 — 가만히 있는 글씨와 구별되어야 한다.
   같은 회색으로 두면 "미정" 과 똑같아 보여서, 기다리면 되는 것을 모르고
   사람이 손을 댄다. 글씨가 숨 쉬게 해서 **돌고 있다**고 알린다. */
.daycard .lines li.writing {
  color: var(--accent); font-style: normal;
  animation: writing-pulse 1.4s ease-in-out infinite;
}
@keyframes writing-pulse { 0%, 100% { opacity: .45 } 50% { opacity: 1 } }
/* 움직임을 꺼 둔 사람에게는 또렷하게만 보여 준다. */
@media (prefers-reduced-motion: reduce) {
  .daycard .lines li.writing { animation: none; opacity: 1 }
}


/* 열어 보는 버튼 — 넣은 것이 있으면 또렷하게, 없으면 흐리게 */
.act {
  width: 1.7rem; height: 1.7rem; min-height: 0; padding: 0; border-radius: 8px;
  border: 1px solid var(--line); background: var(--sunken);
  font-size: .82rem; line-height: 1; cursor: pointer; opacity: .35;
}
.act.on { opacity: 1; border-color: var(--accent) }
.act:disabled { cursor: default }
.act.on:hover { background: var(--surface) }
.act:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px }

/* 확정된 줄 — 다시 짜도 안 바뀐다 */
/* 요약줄에서도 확정한 줄은 같은 초록으로. 왼쪽 띠까지 두면 좁은 줄이
   더 좁아 보여서, 여기는 바탕만 쓴다. */
/* (2026-11-02 태인) 확정 줄은 바탕을 칠하지 않는다 — 왼쪽 청록 띠 하나만. */
/* (2026-11-02 태인) 확정과 빼기는 같이 설 수 없다 — 같은 자리를 나눠 쓴다.
   확정 전: ✕ / 확정 뒤: 그 자리에 청록 세로 띠. 줄 바탕·줄 앞 여백 띠는 없다. */
.ovrow .l .fixmark {
  /* 자리를 차지하지 않는다 — 줄 앞 ✕ 를 걷고 그 공간을 돌려받았다(2026-11-07 승주: "공간 확보"). 띠만 왼쪽 여백에 겹쳐 그린다. */
  flex: none; position: relative; width: 0; height: 1.25rem; margin: 0;
}
.ovrow .l .fixmark::before {
  content: ""; position: absolute; left: -.45rem; top: -.1rem; bottom: -.1rem;
  width: 3px; border-radius: 4px; background: var(--fix);
}


/* ── 확정 버튼 ─────────────────────────────────────────
   그림만으론 뜻이 안 통해 글자를 적는다. 확정한 줄은 초록으로. */
/* ── 확정 스위치 ───────────────────────────────────────
   ⚠️ 자물쇠 그림(🔒/🔓)이었다. 작은 칸에서 두 그림이 너무 닮아 **잠긴
      건지 풀린 건지 헷갈렸다** — 모양을 견주어야 아는 표시는 한눈에 안
      읽힌다. 스위치는 **자리**로 말한다: 왼쪽 꺼짐, 오른쪽 켜짐.
   ⚠️ 크기는 전과 같게 둔다(2rem × 1.15rem 쯤). 줄의 다른 단추와 높이가
      어긋나면 줄이 들쭉날쭉해진다. */
/* ⚠️ 단추는 **누를 자리**다 — 생김새는 안쪽 .swt-t 가 맡는다.
   단추 자체를 스위치로 만들었더니 줄 높이 규칙(2.2rem)과 부딪혀
   찌그러졌다. 높이는 그 규칙에 맡기고 여기서는 바탕만 지운다. */
/**
 * 켜짐 — **초록이 꽉 찬다.**
 *
 * ⚠️ 처음에는 옅은 바탕에 손잡이만 색을 입혔다. 그랬더니 **눈에 안
 *    띄었다** — 꺼짐도 옅은 회색이라 둘이 멀리서 거의 같아 보였고,
 *    자리(왼쪽/오른쪽)를 일일이 봐야 알 수 있었다. 그러면 스위치로
 *    바꾼 뜻이 반쯤 사라진다.
 *    켜지면 **트랙을 진한 초록으로 채우고 손잡이를 희게** 둔다. 색이
 *    차고 비는 차이라 곁눈으로도 갈라지고, 손잡이가 흰색이라 어느
 *    쪽에 있는지도 더 또렷하다.
 * ⚠️ 초록인 까닭: 이 화면에서 초록은 줄곧 **됨·확정**을 뜻한다
 *    (확정한 줄의 바탕, 기타가 확정됐을 때의 색). 스위치만 다른 색을
 *    쓰면 같은 뜻에 두 색이 생긴다.
 */
/* 확정한 줄. 전에는 아주 옅은 초록 바탕뿐이라 **확정했는지 안 했는지가
   한눈에 안 보였다.** 바탕만으로 상태를 말하려면 색이 진해야 하는데,
   그러면 글자가 안 읽힌다. 그래서 바탕은 옅게 두고 **왼쪽에 굵은 띠**를
   둘러 멀리서도 어느 줄이 확정됐는지 세로로 훑어 알 수 있게 한다.
   띠는 테두리가 아니라 inset 그림자다 — 테두리로 두면 줄이 3px 밀린다. */
/**
 * ⚠️ 확정한 줄의 색을 **그 줄의 갈래 색**으로 바꾼다.
 *
 * 전에는 확정 줄이 전부 초록 바탕이었다. 그런데 초록은 이미 '볼거리·식사·
 * 기타' 의 색이라, 숙소를 확정하면 **주황 줄에 초록 바탕**이 깔렸다 —
 * 같은 줄이 두 가지 색을 말하는 꼴이다.
 * 이제 바탕·띠·아이콘·지도 핀이 한 줄에서 **같은 색** 하나를 쓴다:
 *   이동 파랑 · 숙소 주황 · 나머지(볼거리·식사·기타) 초록.
 * ⚠️ 왼쪽 띠는 그림자로 둔다(테두리로 두면 줄이 3px 밀린다). 갈래 테두리가
 *    이미 왼쪽에 3px 있으므로, 확정되면 그 자리를 그림자가 덮어 굵어진다.
 */
/* ⚠️ (2026-11-02 태인, D-086) 확정 색은 **갈래와 상관없이 청록 하나**. 갈래 색은 아이콘·점·지도 핀이
   말하고, 바탕·띠는 "확정" 만 말한다 — 한눈에 보기 · 세부 일정 · 교통/숙소 칸 · 배지 · 스위치 모두 --fix. */
/* 확정한 줄은 지울 수 없다 — 휴지통·✕ 를 감춘다(자리는 남겨 줄이 안 밀리게). */
/* 확정(예약완료) 줄도 × 는 보임 — 누르면 「예약완료를 풀고 삭제해 주세요」 안내만(2026-11-18 승주 · app.js deleteRow) */
/* ⚠️ 관광·식사는 **초록 바탕**(see-bg)이다. 전에는 기타와 같은 칸을
   썼는데, 기타가 검정으로 갈라지면서 둘이 어긋났다 — 색을 나눴으면
   바탕도 같이 나눠야 한다. */
/* ⚠️ 기타는 **확정하면 초록**이다. 다른 갈래는 확정해도 제 색을 지키지만
   (숙소는 주황, 이동은 청록 — 무엇인지가 이미 정해진 것들이다), 기타는
   본래 '아직 안 정한 자리' 라 회색이었다. 확정했다는 것은 **정해졌다**는
   뜻이므로, 그 회색이 그대로 남으면 말과 색이 어긋난다. */

/* 날 머리의 버튼 */
.day > header .sm.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent) }


/* 예약 확인증 칸 */
.linkfold .st { font-size: .76rem; color: var(--muted); margin: .2rem 0 .4rem }
.linkfold .line3 { display: flex; gap: .25rem; align-items: center; flex-wrap: wrap; margin-top: .3rem }
.linkfold .line3 > input.link { flex: 1; min-width: 10rem }
.linkfold .line3 > .st { flex: 1; min-width: 6rem; margin: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap }


/* 이동 수단 고르기 — 이동일 때만 보인다 */
.item .line1 > select.movekind { width: 6rem; flex: none; padding: .5rem .25rem; font-size: .82rem }
.item .line1 > select.movekind[hidden] { display: none }
@media (max-width: 30rem) { .item .line1 > select.movekind { width: 5rem; font-size: .76rem } }


/* ── ＋ 추가(원형 버튼 + 메뉴) ──────────────────────────
   일정 추가 · 관광지 추가를 버튼 둘에서 원형 버튼 하나로 합쳤다
   (2026-11-08 승주: "일정추가버튼이 좀 애매하게 붙어있어" → "3안"으로).
   줄 사이 레일 ＋(.plusrow)는 없앴다 — 끼워 넣을 자리는 맨 끝에 더한 뒤
   손잡이(⠿)로 끌어 옮긴다. */
.addwrap { position: relative; display: inline-flex }
.addfab {
  width: 2.5rem; height: 2.5rem; min-height: 0; padding: 0; border-radius: 50%;
  background: var(--accent); color: #fff; border: none; font-size: 1.3rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  box-shadow: 0 3px 8px rgba(3, 105, 161, .3);
  transition: transform .12s ease, box-shadow .12s ease;
}
.addfab:hover, .addfab:focus-visible { transform: translateY(-1px); box-shadow: 0 5px 12px rgba(3, 105, 161, .38) }
.addfab:active { transform: translateY(0); box-shadow: 0 2px 5px rgba(3, 105, 161, .3) }
.addmenu {
  position: absolute; left: 0; bottom: calc(100% + .4rem); z-index: 5;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 2px 10px rgba(30, 58, 95, .10); overflow: hidden; min-width: 9rem;
}
.addmenu button {
  display: block; width: 100%; text-align: left; border: none; background: none;
  border-radius: 0; padding: .5rem 1rem; font-size: .82rem; color: var(--fg);
  border-bottom: 1px solid var(--line);
}
.addmenu button:last-child { border-bottom: none }
.addmenu button:hover, .addmenu button:focus-visible { background: var(--accent-soft); color: var(--accent) }
/* ＋ 메뉴 = 종류 고르기 목록과 같은 꼴(그림 + 이름 · 같은 차례 · 같은 색) */
.addmenu:has(.pickitem) { padding: .25rem; display: flex; flex-direction: column; gap: .125rem; min-width: 10rem }
.addmenu .pickitem { display: flex; width: auto; padding: .5rem .5rem; border-bottom: none; border-radius: 8px; font-size: .88rem; white-space: nowrap }
.addmenu .pickitem:hover, .addmenu .pickitem:focus-visible { background: var(--sunken); color: var(--fg) }
.addmenu .ico[data-ico="see"] { color: var(--ic-see) }
.addmenu .ico[data-ico="tour"] { color: var(--ic-tour, var(--tour)) }
.addmenu .ico[data-ico="eat"] { color: var(--ic-eat) }
.addmenu .ico[data-ico="stay"] { color: var(--ic-stay) }
.addmenu .ico[data-ico="shop"] { color: var(--ic-shop) }
.addmenu .ico[data-ico="etc"] { color: var(--ic-etc) }
.addmenu .ico svg { stroke-width: 1.95 }

/* 날 끝 — 정렬과 날 이동 */
.daytail { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
           justify-content: space-between; margin-top: .75rem; padding-top: .5rem;
           border-top: 1px solid var(--line) }
/* 날 끝 단추 줄 — 넣기 · 정렬 · 초기화 · 2026-11-07. 날 이동 화살표(.daynav)는
   2026-11-08 승주 지침으로 걷었다("이전날 다음날도 좀 구려 걍 저버튼은 없애") */
.daytail:has(> .tailacts) { flex-direction: column; align-items: stretch; gap: .45rem }
.tailacts { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center }
.daytail button.sm.add { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); font-weight: 600 }


/* ── 그날 할 일 ────────────────────────────────────────
   ✕ 가 저 멀리 오른쪽에 떠 있으면 어느 줄 것인지 눈으로 이어야 한다.
   글자 바로 옆에 붙이고, 평소엔 흐리게 둔다. */
.todosbox { display: flex; flex-direction: column; gap: .3rem }
.todohead { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem }
.todohead .label { font-weight: 700; font-size: .92rem }
.todohead .st { font-size: .76rem; color: var(--muted) }

.todorow {
  display: flex; align-items: center; gap: .25rem;
  padding: .25rem .5rem; border-radius: 8px;
}
.todorow:hover { background: var(--sunken) }
.todorow .check { display: flex; align-items: center; gap: .5rem; flex: 1; min-width: 0; cursor: pointer }
.todorow .check .tx { flex: 1; min-width: 0; line-height: 1.4; cursor: text; border-radius: 4px }
.todorow .check .tx:hover { background: var(--surface) }
.todorow.done .check .tx { color: var(--muted); text-decoration: line-through }
.todotxedit {
  width: 100%; font-size: .9rem; line-height: 1.4; padding: .1rem .3rem;
  border: 1px solid var(--accent); border-radius: 4px; background: var(--card, #fff);
}

.todox {
  flex: none; width: 1.6rem; height: 1.6rem; min-height: 0; padding: 0;
  border: 0; background: none; color: var(--muted);
  font-size: .82rem; line-height: 1; border-radius: 50%; cursor: pointer; opacity: .4;
}
.todorow:hover .todox, .todox:focus-visible { opacity: 1 }
.todox:hover { color: var(--warn); background: var(--surface) }
.todox:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px }

/* ── 할 일 직접 추가 ────────────────────────────────
   ⚠️ 단추가 혼자 **파란 동그라미**였다. 알약 꼴(border-radius:999px)에
      전역 최소 높이(2.25rem)가 겹쳐 2 글자짜리 단추가 원이 됐고, 옆의
      입력칸은 1rem 글자에 더 높아서 둘이 서로 다른 물건처럼 보였다.
      이 자리는 "한 줄 적고 넣기" 하나를 하는 곳이다 — 칸과 단추가 같은
      높이, 같은 모서리여야 한 벌로 읽힌다. */
.todoadd { display: flex; gap: .5rem; margin-top: .5rem; align-items: stretch }
.todoadd input {
  flex: 1; min-width: 0; font-size: .88rem; padding: .5rem .5rem;
  min-height: 2.25rem; border-radius: 8px;
}
.todoadd .sm.primary {
  flex: none; border-radius: 8px; padding: .5rem 1rem; font-size: .88rem;
  min-height: 2.25rem; font-weight: 600;
  background: var(--accent); color: var(--accent-fg); border-color: var(--accent);
}


/* ── 일정 줄의 칸 높이·글자 맞추기 ──────────────────────
   장소 칸만 글자가 크고 높이도 달라 줄이 들쭉날쭉했다. 한 줄 안의 칸은
   **같은 크기**여야 눈이 가로로 미끄러진다. */
.item .line1 > input,
.item .line1 > select {
  height: 2.2rem; min-height: 0; font-size: .88rem; line-height: 1.2;
  padding: .25rem .5rem; border-radius: 8px;
}
.item .line1 input.place { font-size: .88rem; font-weight: 500 }
.item .line1 > input.time { text-align: center; font-variant-numeric: tabular-nums }
.item .line2 .memo { height: 2.1rem; min-height: 0; font-size: .82rem; padding: .3rem .45rem }

/* ── 작은 버튼 색감 ────────────────────────────────────
   베이지 덩어리처럼 커 보였다. 테두리만 두고 바탕은 비워 가볍게. */
.item .line3 button,
.item .line3 a.btn,
.item > .aff a.btn,
.item > .aff button {
  min-height: 0; height: 1.9rem; padding: .25rem .5rem; border-radius: 8px;
  font-size: .76rem; font-weight: 500;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
}
.item .line3 button:hover,
.item .line3 a.btn:hover,
.item > .aff a.btn:hover,
.item > .aff button:hover { background: var(--sunken); border-color: var(--muted); color: var(--fg) }

/* 확정 버튼은 줄 안의 다른 칸과 높이를 맞춘다 */
.item .line1 > .grip { height: 2.2rem; display: inline-flex; align-items: center }


/* 그날 경로 지도 */
.daymap { height: 18rem; border: 1px solid var(--line); border-radius: 8px; margin: .4rem 0 }
/* 가운데 위에 둔다 — 왼쪽 위는 지도 ＋/− 자리라, 손가락 크기(44px)로 커진 단추와 겹쳤다. */
.leaflet-container.map-on { outline: 2px solid var(--accent); outline-offset: -2px }
.daypin {
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-fg);
  border-radius: 50%; font-size: .76rem; font-weight: 700;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

/* 로그인은 머리말 **맨 윗줄 오른쪽**에 혼자 선다. 도구 단추들과 같은 줄에
   섞으면 "지금 누구로 들어와 있나" 가 그 사이에 묻힌다. */
.headright .loginrow { display: flex; justify-content: flex-end; margin-bottom: .35rem }
.headright .loginrow:empty { display: none }

/* 날짜 칸 — 글자 칸 + 달력 단추. 숨긴 date 칸이 달력을 띄운다. */
.datefield { display: flex; gap: .25rem; align-items: center }
.datefield > input[type=text] { flex: 1; min-width: 0; font-family: var(--m); letter-spacing: .04em }
.datefield > .themebtn { flex: none }
/* 눈에는 안 보이되 화면낭독기와 달력에는 살아 있어야 한다 —
   display:none 이면 showPicker() 가 안 뜬다. */
.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 중단 단추 — "생각 중" 줄 안에 작게. 눈에 띄되 먼저 눌리진 않게. */

/* ── 첫 화면(목록)은 상세와 다르게 보여야 한다 ──────────
   둘 다 흰 카드가 세로로 쌓여 있어서 "여기가 어디지" 가 됐다.
   같은 색을 쓰되 **바탕을 한 겹 깔고 카드에 색 띠**를 둘러, 글을 읽지
   않고도 어느 화면인지 알게 한다. */
body[data-page="home"] {
  background:
    radial-gradient(1200px 320px at 50% -120px, var(--accent-soft), transparent 70%),
    var(--bg);
}
body[data-page="home"] .wrap > h1 { letter-spacing: -.01em }

/* 목록(타일)·새 여행·공유받은 일정 카드의 규칙은 index.html 의 홈 전용 스타일에 있다
   (2026-10-25, D-018). 여기 있던 .tripcard / .newbtn 규칙은 그때 걷었다. */

/* ── 더보기 메뉴 ──────────────────────────────────────
   머리말에 늘 나와 있어야 하는 것은 **지금 저장됐나** 하나뿐이다.
   로그인·공유·언어·테마·앱은 가끔 쓰는 것이라 접어 둔다 — 여섯 개를
   늘 깔아 두면 정작 볼 것이 그 사이에 묻힌다. */
/* 제목 블록이 있던 때의 잔재(위에 붙이기)를 걷어낸다 — 로고와 **같은 높이 가운데**에 선다.
   빈 안내 문단(aiState·fillBar)은 자리를 먹지 않게 접는다. 그 여백이 오른쪽 묶음을 키워
   상태 줄이 로고보다 위로 떠 보였다. */
.headright { align-self: center; gap: 0 }
/* 상태 글은 **머리줄 전체**를 쓴다. 로고·로그인과 폭을 다투지 않는다. */
.top > .headnote { width: 100%; margin: .25rem 0 0; order: 9 }
.top > .headnote:empty, .top > .headnote[hidden] { display: none; margin: 0 }
.headright > .note:empty, .headright > .note[hidden] { display: none; margin: 0 }
.top { align-items: center }

/* 일정 상세 헤더의 공유·자랑하기 — 외곽선 아이콘 + 짧은 글자 라벨의 알약 단추(2026-11-30 베어스타:
   "이모지 원형이 로그인 박스랑 붙어 성의 없어 보인다" — 그 뒤로 로그인 박스 자체를 이 화면에서 뺐다(위 html 주석).
   ⚠️ 2026-11-30 베어스타 2차 지적: "버튼 크기도 다르고 색도 제각각이고" — 공유는 옅은 중립색, 자랑하기는
   진한 강조색 **통채움**으로 뒀더니(2026-11-28 결정의 "자랑하기를 더 눈에 띄게") 크기·색이 서로 다른
   단추 두 개로 보였다. 베어스타가 그 자리에서 다시 지적했으므로 **그 결정을 거둔다** — 둘을 완전히
   같은 생김새(같은 배경·테두리·글자색·폭)로 맞추고 아이콘·글자만 다르게 둔다. */
.hdicon {
  display: inline-flex; align-items: center; justify-content: center; gap: .32rem; flex: none;
  min-width: 5.4rem; height: 2.15rem; padding: 0 .75rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--sunken); color: var(--fg);
  font-size: .78rem; font-family: inherit; line-height: 1; cursor: pointer;
}
.hdicon-ic { width: 1.05rem; height: 1.05rem; flex: none; display: block }
.hdicon:hover { filter: brightness(.97) }
.hdicon:disabled { opacity: .4; cursor: default; pointer-events: none }   /* AI 가 쓰는 동안 「함께」 · 「스토리」 막힘(app.js paintHeadBtns) */

.moremenu { position: relative }
.moremenu > summary {
  list-style: none; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px;
  padding: .25rem .75rem; font-size: .82rem; color: var(--muted);
  background: var(--surface);
}
.moremenu > summary::-webkit-details-marker { display: none }
.moremenu > summary::after { content: " ▾"; opacity: .7 }
.moremenu[open] > summary { color: var(--fg); border-color: var(--muted) }
.moremenu[open] > summary::after { content: " ▴" }

.morepanel {
  position: absolute; right: 0; top: calc(100% + .35rem); z-index: 40;
  min-width: 14rem; padding: .5rem;
  display: flex; flex-direction: column; gap: .25rem; align-items: stretch;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: 0 2px 8px rgba(0,0,0,.08);
  -webkit-tap-highlight-color: transparent;
}
.morepanel hr { border: 0; border-top: 1px solid var(--line); margin: .25rem 0 }
.morepanel .moreitem {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  width: 100%; text-align: left; font-size: .82rem;
  padding: .5rem .5rem; border: 0; border-radius: 8px;
  background: transparent; color: var(--fg); text-decoration: none; cursor: pointer;
  /* 패널 자체의 터치 강조는 껐으니, 눌린 항목 자신은 평소와 같은 강조를 유지한다 */
  -webkit-tap-highlight-color: rgba(0, 0, 0, .18);
}
.morepanel .moreitem:hover { background: var(--sunken) }
/* 메뉴 아이콘 — 둥근 네모 안 이모지 · 글 왼쪽 정렬(2026-11-18 승주: "메뉴 트리에 글자 앞에 아이콘 · 적당히 예쁘게") */
.morepanel .moreitem .mi { flex: none; width: 1.75rem; height: 1.75rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--sunken); font-size: .92rem; line-height: 1 }
.morepanel .moreitem .mt { flex: 1 1 auto; min-width: 0 }
.morepanel .moreitem:hover .mi { background: var(--surface) }
.morepanel .moreitem.lbl { color: var(--fg); margin: 0 }
.morepanel .langsel { width: auto; min-width: 6rem; padding: .25rem .5rem; font-size: .82rem }
.morepanel .loginbox { display: flex; justify-content: flex-start; padding: .2rem .3rem }
/* 2026-11-30 베어스타: "더보기누르면 내정보 오른쪽에 보이게" — 「내 정보」 단추와 로그인 아바타를
   한 줄에, 아바타는 오른쪽 끝에. .who 는 이름 글자가 없는 사진 전용(관리자는 눌러서 계정 메뉴). */
.moreitem-row { display: flex; align-items: center; gap: .25rem }
.moreitem-row .moreitem { flex: 1 1 auto }
.moreitem-row .loginbox { flex: none; padding: 0 .4rem 0 0; min-width: 0 }
.moreitem-row .loginbox .who { padding: .2rem; border-radius: 999px; background: transparent; border: 0; cursor: default }
.moreitem-row .loginbox button.who { cursor: pointer }
.moreitem-row .loginbox button.who:hover { background: var(--sunken) }
.moreitem-row .loginbox .face { width: 1.6rem; height: 1.6rem }
.morepanel #shareHere:empty { display: none }

/* ── 첫 화면 "더보기" 탭(2026-11-23 베어스타: "메뉴바는 밑이 낫겠다 · 칸 하나 추가해서 ⋯ 기능을") —
   #moreMenu 가 하단 탭바(.hometabs) 안으로 들어오면서, 글자·동그라미 단추가 아니라 다른 탭과
   같은 「아이콘 위 · 글자 아래」 꼴이 되어야 한다 — summary 자체 박스를 없애고(display:contents)
   아이콘·글자 span 이 .hometabs .htab 규칙을 그대로 받게 한다. 패널은 드롭다운이 아니라
   탭바 위로 뜨는 바텀시트(2026-11-22 베어스타: "참고할만한 오픈소스" — suiss/ui TabBar · Material
   Bottom Navigation 의 "더보기 → 시트" 패턴). */
:is(.hometabs, .tc-bottom-nav) .moremenu.htab { flex: 1 1 0; min-width: 0; position: relative;
  /* 더보기 메뉴 항목(버튼·링크)을 눌러도 이 탭 버튼·패널 전체가 덮이지 않게(.daysbox 와 같은 원인) */
  -webkit-tap-highlight-color: transparent }
:is(.hometabs, .tc-bottom-nav) .moremenu.htab > summary { list-style: none; cursor: pointer; display: contents }
:is(.hometabs, .tc-bottom-nav) .moremenu.htab > summary::-webkit-details-marker { display: none }
:is(.hometabs, .tc-bottom-nav) .moremenu.htab[open] { border-color: var(--pc-stamp); background: var(--pc-peach); color: var(--pc-ink) }
:is(.hometabs, .tc-bottom-nav) .moremenu.htab[open] .h2 { font-weight: 800; color: var(--pc-stamp) }
/* "⋯" 글자는 이모지 아이콘들보다 눈에 작게 보인다(베어스타: "더보기도 크기 똑같이") — 키워서 맞춘다.
   2026-11-24 베어스타: "더보기 카드가 조금 작은데" → font-size·line-height 만 키웠더니(v1528) 줄 높이
   자체가 달라져 라벨이 다른 탭보다 아래로 밀리고 점이 위로 떠 보였다("아직도 이상하잖아", 2차 피드백).
   **다른 아이콘과 같은 줄 높이(1.2rem)를 그대로 예약**하고, 그 안에서 글자만 플렉스로 가운데 맞춰
   확대한다 — 박스 높이가 같아야 라벨 위치가 다른 탭과 맞는다. */
:is(.hometabs, .tc-bottom-nav) .moremenu.htab .ico {
  height: 1.2rem; display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; font-weight: 800; letter-spacing: .1em; line-height: 1;
}
:is(.hometabs, .tc-bottom-nav) .moremenu.htab > .morepanel {
  /* ⚠️ 2026-11-23 베어스타: "메뉴바 버튼 가리지마" — 4.6rem 은 탭 한 칸의 실측 높이(약 5.9rem:
     바탕 padding .45rem 위·아래 + 버튼 자체 79px)보다 짧아서, 패널 아래쪽이 탭바 아랫부분과 겹쳐
     글자가 가려졌다. 탭바 전체 높이만큼 띄운다. */
  position: fixed; left: 0; right: 0; top: auto; bottom: calc(5.95rem + max(var(--app-bottom), env(safe-area-inset-bottom, 0px)));
  /* 넓은 화면에서도 앱 본문 폭(--wrap) 가운데에(2026-11-29 승주 「모든 건 중간으로 · 왜 쏠려」) — 폰에서는 그대로 꽉 참 */
  width: 100%; min-width: 0; max-width: var(--wrap); margin: 0 auto; max-height: 70vh; overflow: auto;
  border: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.18); z-index: 36;
  /* ⚠️ 2026-12-04 베어스타: "여기 아직 공백이 있어" — 패널 bottom 위치는 bottom-nav.css 가
     탭바 실측 높이(--nav-space, 안전영역 이미 포함)로 덮어써서 탭바 바로 위에 딱 붙는데,
     여기서 안전영역을 또 더해 그만큼 패널 안쪽에 빈 여백이 생겼다(v1932·v1966과 같은
     이중 계산 패턴). 탭바가 이미 비워 둔 자리이므로 패널 자신은 더하지 않는다. */
  padding: .7rem .9rem .9rem;
}
/* 열고 닫기 — 그냥 뿅 나타나던 것을 바닥에서 슬라이드-업 + 서서히 보이게(2026-11-24 베어스타:
   "더보기 눌렀을때 목록나오는거 애니메이션이 있어야할것같아 너무 깜짝 이렇게나와"). 여는 쪽은
   native <details> 가 content 를 그릴 때 CSS 애니메이션만으로 된다(`[open]` 선택자 적용 시점에 재생).
   닫는 쪽은 브라우저가 open 속성을 떼는 즉시 그려주던 것을 끊어버리므로, home.js 가 클릭을
   가로채 `.closing` 클래스를 붙이고 애니메이션이 끝난 뒤에야 실제로 `open=false` 로 바꾼다. */
:is(.hometabs, .tc-bottom-nav) .moremenu.htab[open] > .morepanel { animation: moreSheetIn .22s cubic-bezier(.22,.9,.3,1) both }
:is(.hometabs, .tc-bottom-nav) .moremenu.htab.closing > .morepanel { animation: moreSheetOut .16s ease-in both }
/* 슬라이드-업 도중에는 안의 항목을 못 누르게(2026-11-24 베어스타: "더보기버튼 계속 누르면 이화면이
   갑자기 나와") — 첫 항목(내 정보)이 탭바 바로 위에 꽂혀 있어, 연타의 두 번째 탭이 막 나타난 그
   버튼을 눌러 버렸다. 애니메이션이 끝날 때까지(home.js 의 .opening, 220ms)는 패널을 클릭할 수 없다.
   ⚠️ 2026-11-24 베어스타 재신고: "더보기연타하니까 검정테마로 바뀌었어" — .opening 만 막고 .closing
   은 안 막아서, 닫히는 애니메이션(160ms) 동안에도 패널이 그대로 눌렸다. 연타 세 번째 탭이 닫히는
   중인 패널의 첫 항목(🌙 테마 전환)을 눌러 테마가 바뀌었다 — 여는 쪽만 막고 닫는 쪽은 안 막으면
   같은 종류의 구멍이 반쪽만 메워진다. 열고 닫는 애니메이션 둘 다 막는다. */
:is(.hometabs, .tc-bottom-nav) .moremenu.htab.opening > .morepanel,
:is(.hometabs, .tc-bottom-nav) .moremenu.htab.closing > .morepanel { pointer-events: none }
@keyframes moreSheetIn { from { transform: translateY(100%); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
@keyframes moreSheetOut { from { transform: translateY(0); opacity: 1 } to { transform: translateY(100%); opacity: 0 } }
@media (prefers-reduced-motion: reduce) {
  :is(.hometabs, .tc-bottom-nav) .moremenu.htab[open] > .morepanel,
  :is(.hometabs, .tc-bottom-nav) .moremenu.htab.closing > .morepanel { animation: none }
}
/* 시트 뒤 바탕 — 밖을 누르면 닫히는 자리만 두고 어둡게 깔지 않는다(2026-11-23 베어스타: "어둡게깔지마").
   ⚠️ 2026-11-23 베어스타: "시트는 뜨는데 안의 항목을 눌러도 안 됨" — .hometabs 가 position:fixed +
   z-index:30 으로 **제 쌓임 맥락(stacking context)** 을 만들기 때문에, 그 안의 .morepanel(z-index:36)은
   그 맥락 **안에서만** 36이고, body 바로 밑의 이 배경(전에는 z-index:35)과 비교할 때는 바깥 맥락 값인
   hometabs 의 30 으로 취급된다 — 결국 투명한 배경이 시트 전체보다 위에 떠서 탭을 전부 먹었다(눈에는
   시트가 보이는데 눌러도 그 뒤 배경이 받는다). hometabs 의 30 보다 낮게 둬야 시트가 진짜로 위에 선다. */
.morebackdrop { position: fixed; inset: 0; background: transparent; z-index: 29 }
.morebackdrop[hidden] { display: none }

/* ── Day 상세 간소화 (v53) ──────────────────────────────
   하루를 열면: "Day 1 · 제목" → 칩 → 사진 → 일정 줄들 → (아래) 지도·할 일.
   날 머리 줄은 숨기고, 줄마다 글자 단추 대신 그림 한 칸·단추 한 줄로. */
#detail.oneday .day > header { display: none }
#detail.oneday .day { border: 0; padding: 0; background: transparent; margin-bottom: .6rem }
.dtitle { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap }
.dtitle .dnum { color: var(--accent); font-weight: 800; flex: none }
.dtitle input.dtitlein {
  font: inherit; font-weight: 700; color: inherit; background: none;
  border: 0; border-bottom: 1px dashed transparent; border-radius: 0;
  padding: 0 .125rem; flex: 1; min-width: 8rem; min-height: 0;
}
.dtitle input.dtitlein:hover { border-bottom-color: var(--line-strong) }
.dtitle input.dtitlein:focus { outline: none; border-bottom-color: var(--accent) }

/* 시각은 알약 — 글자 상자보다 눈에 먼저 들어온다 */
.item .line1 > input.time {
  font-family: var(--m); font-weight: 700; font-size: .82rem; width: 3.9rem; min-height: 0;
  padding: .25rem .25rem; border-radius: 999px; text-align: center;
  background: var(--accent-soft); color: var(--accent); border: 1px solid transparent;
}
.item .line1 > input.time:focus { border-color: var(--accent); outline: none }

/* 종류·이동수단: 그림 한 칸. select 는 투명하게 겹쳐서 누르면 목록이 열린다 */
.kindwrap {
  position: relative; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--sunken); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; line-height: 1;
}
.kindwrap[hidden] { display: none }
/* ⚠️ select 는 숨겨 두기만 한다. 값을 읽는 곳이 여럿이라 지우지 않는다.
   전에는 투명하게 덮어 두어 **기기 고유의 고르기 목록**이 열렸다 —
   윈도우에서는 네모난 흰 상자에 파란 띠가 서서 앱과 따로 놀았다. */
.kindwrap select { position: absolute; width: 1px; height: 1px; opacity: 0;
                   pointer-events: none; padding: 0; margin: 0; min-height: 0; border: 0 }
.kindwrap { cursor: pointer }
.kindwrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px }

/* ── 고르는 메뉴 ──────────────────────────────────────
   동그라미 아래에 뜬다. 앱의 다른 메뉴(계정)와 같은 결로 — 테두리 하나,
   둥근 모서리, 옅은 그림자. 고른 것은 바탕을 깔아 **지금 무엇인지**를
   먼저 보이게 한다. */
.pickmenu {
  position: absolute; top: calc(100% + .35rem); left: 0; z-index: 60;
  min-width: 7.5rem; padding: .25rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
  display: flex; flex-direction: column; gap: .125rem;
}
.pickmenu.left { left: auto; right: 0 }
.pickitem {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .5rem; border: 0; border-radius: 8px;
  background: none; color: var(--fg); font-size: .88rem; line-height: 1.2;
  cursor: pointer; text-align: left; white-space: nowrap; min-height: 0;
}
.pickitem:hover, .pickitem:focus-visible { background: var(--sunken) }
.pickitem.on { background: var(--accent-soft, var(--sunken)); font-weight: 600 }
.pickitem .ico { width: 1.05rem; height: 1.05rem; flex: none }
.pickitem .tx { flex: 1 }
.kindwrap:focus-within { border-color: var(--accent) }

/* ⚠️ **여기가 자물쇠를 동그라미로 못 박고 있었다**(1.6rem 정사각형).
   스위치로 바꾸면서 위쪽에 2.1×1.15rem 을 적었는데, 이 줄이 더 구체적
   이라(`.item .line1 .lockbtn`) 그쪽을 덮어 **정사각형 스위치**가 됐다.
   재어 보고서야 알았다 — 눈으로는 "좀 작네" 로 보일 뿐이다.
   생김새는 '확정 스위치' 한 곳에서만 정한다. 여기서는 **줄 안에서의
   자리**만 손본다. */

/* 휴무·주의·공식 사이트: 일정 줄이 아니라는 게 보이게, 작은 회색 한 줄 */
.item .meta { display: flex; flex-wrap: wrap; gap: .125rem .5rem; margin-top: .25rem; font-size: .76rem; color: var(--muted) }
.item .meta .warn { color: var(--warn) }
.item .meta a { color: var(--muted); text-decoration: underline dotted }

/* 줄 아래 단추 한 줄: 🔗 📎 📍 + 예매처 링크 */
.itemfoot { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; margin-top: .4rem }
.itemfoot .acts2 { display: inline-flex; flex-wrap: wrap; gap: .25rem; align-items: center }
.itemfoot .act2 {
  display: inline-flex; align-items: center; gap: .25rem; min-height: 0; padding: .25rem .5rem;
  font-size: .76rem; line-height: 1.2; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--fg); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.itemfoot .act2:hover { border-color: var(--accent); color: var(--accent) }
/* 조건이 모자랄 때의 안내 — **붉은 글자**로. theme 의 .note.warn 은 주황
   계열(--warn)이라 "주의" 로 읽히는데, 여기는 "아직 못 넘어간다" 는 말이라
   더 또렷해야 한다. 굵게까지 둔다 — 바로 옆에 '완료' 단추가 있어서,
   흐리면 누르고 나서야 읽게 된다. */
#makeHint.warn { color: var(--stop); font-weight: 600 }

/* ── 조건이 모자란 카드 ──────────────────────────────
   ⚠️ **굵은 주황 점선.** 점선인 까닭: "아직 덜 됐다" 를 실선보다 잘 말한다
      (실선은 "틀렸다" 로 읽힌다). 다 채우면 저절로 사라진다.
   ⚠️ **빨강이 아니라 주황이다.** 빨강은 "잘못됐다 · 못 간다" 인데, 여기는
      아직 안 적었을 뿐 잘못된 것이 없다. 처음 들어온 사람이 보는 첫
      카드가 빨갛게 둘러져 있으면 시작부터 혼난 기분이 된다.
      주황은 "아직 할 일이 남았다" 를 말한다 — 빈 날 카드와 같은 색이다.
   ⚠️ 색으로만 말하지 않는다 — 카드 안에 무엇이 모자란지 글로 적혀 있다. */
.card.head.needcond {
  border: 2px dashed var(--warn);
  background: var(--warn-soft);
}
.card.head.needcond:hover { border-color: var(--warn) }

/* ── 숙소·항공만 모아 보는 화면 ───────────────────
   속은 날 카드를 **거른 것**이지만(한 벌만 두려고 그렇게 만들었다), 보는
   사람에게는 그렇게 보이면 안 된다. "날 카드인데 뭔가 빠진 것" 으로 읽히면
   빠진 것을 찾게 되기 때문이다. 날 카드의 **틀을 벗겨** 줄 하나하나가
   제 카드로 서게 하고, 그 위에 몇 일차인지를 붙인다.

   ⚠️ 그 날 **전체**에 걸리는 것은 모두 숨긴다 — 이 날만 새로 짜기 ·
      N일차 삭제 · 시간순 정렬 · 이전/다음 날 · 줄 사이 '여기에 일정 넣기' ·
      날 제목 칸. 보이는 것은 그 날의 일부뿐인데 단추는 날 전체에 걸려서,
      누르면 **화면에 없는 줄까지** 바뀐다. 그 일들은 날짜별 화면에서 한다. */
.day.filtered > header .sm,
.day.filtered > header .daytitle,
.day.filtered .daytail { display: none }

.day.filtered {
  border: 0; border-top: 0; background: none; padding: 0;
  margin-bottom: 1rem; border-radius: 0;
}
.day.filtered > header { border: 0; margin-bottom: .75rem; padding: 0 }
.day.filtered .items { display: flex; flex-direction: column; gap: .6rem }
/* 줄 하나가 **제 카드**로 선다 — 날 카드 안의 줄이 아니라.
   ⚠️ 뒤쪽(4097줄 근처)의 접힌 줄 공용 리셋 `.item[data-kind]:not(.open) { padding:0 ... }`
   이 이 규칙과 명시도(0,3,0)로 같아서 파일 순서상 그 규칙이 이겨 패딩이 0 으로 깎였다
   — 「시간 미정」 배지(점선)가 카드 패딩 없이 테두리에 바로 붙어 둥근 모서리 밖으로
   삐져나와 보였다(2026-11-25 베어스타: "파란배경이 카드크기랑 안맞는디? 파랑색이 튀어나와있어").
   조상 클래스(.items)를 하나 더 넣어 명시도를 (0,4,0)으로 올려 순서와 무관하게 이기게 한다. */
.day.filtered .items .item {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); padding: .75rem .75rem;
}

/* 몇 일차인지가 **이 화면의 뼈대**다 — 여러 날 것이 한자리에 모여 있으니,
   어느 날 것인지 흐리면 목록이 그냥 뭉텅이가 된다. 갈래 색으로 칠한다:
   숙소는 주황, 항공은 파랑(줄 왼쪽 띠·지도 핀과 같은 색이다).
   ⚠️ 색으로만 말하지 않는다 — "3일차 · 3/5(목)" 가 글로 적혀 있다. */
.day.filtered > header .num {
  font-size: .88rem; font-weight: 800; letter-spacing: -.01em;
  padding: .25rem .75rem; border-radius: 999px; color: #fff;
}
/* (2026-11-02 태인 "통일") 숙소도 강조 파랑 — 주황(--stay) 위 흰 글자는 3.1:1 이라 브랜드킷 2-5 위반. 갈래는 줄 아이콘이 말한다. */
.day.filtered.onlystay > header .num { background: var(--accent); color: var(--accent-fg) }
/* ⚠️ 항공은 **강조 파랑**(--accent). --move 가 보라로 바뀌면서 이 머리도 따라 보라가 됐었다 —
   위 주석대로 파랑으로 되돌린다(2026-11-02 태인: "이 보라색은 의도한 거니?"). */
.day.filtered.onlyair  > header .num { background: var(--accent); color: var(--accent-fg) }

/* 교통·숙소 거른 화면 — 줄마다 제 카드로 서 있어 레일 점·연결선이 필요 없다
   (2026-11-11 태인: "교통이랑 숙소에 저 동그라미 선은 필요 없을것 같아 없애줘"). */
.day.filtered .rv-n { display: none }
/* 모아보기는 개별 카드 — 전체 일정의 바탕 레일도 그리지 않는다. */
.day.filtered .items::before { content: none }
/* 개별 카드에는 줄 구분선도 불필요하다 — 시각 글자 뒤를 가로지르지 않게 한다. */
.day.filtered .items > .item:not(.open) .rv::before { content: none }
/* 시각이 작고 연해 잘 안 보인다는 지적(2026-11-11 태인) — 떠 있는 작은 알약 대신
   제목 **맨 앞에 굵게 한 줄로**(시안 3개 중 "안 2"). 둥근 배지·바탕을 걷고 칸으로 자리를 잡는다. */
.day.filtered .rv {
  grid-template-columns: auto minmax(0, 1fr) 1.4rem;
  column-gap: .5rem;
}
.day.filtered .rv > .rv-t {
  grid-column: 1; grid-row: 1; position: static; align-self: start; margin-top: .05rem;
  transform: none; padding: 0; border-radius: 0; background: none;
  font-family: var(--b); font-size: .95rem; font-weight: 800; line-height: 1.3;
  color: var(--accent); white-space: nowrap;
}
.day.filtered .rv > .rv-t.nodue { color: var(--muted); font-weight: 700 }
.day.filtered .rv > .rv-c { grid-column: 2 / 4; grid-row: 1 }   /* 2026-11-30 베어스타: "카드테두리는 저 빨간줄 밖에 있는데?" —
   3번째 칸(1.4rem, 옛 옮기기 손잡이 자리)을 아무도 안 써 rv-c 가 카드 끝까지 못 가고 그 앞에서 멈췄다. 2·3번 칸 다 차지하게. */
/* 시각과 제목 줄이 어긋난다는 지적(2026-11-25 베어스타: "시간이랑 텍스트랑 줄이 안맞냐 왜")
   — .rv-c 의 위 여백 .75rem(4130줄, 위 구분선 넘어가던 시절 몫)이 모아보기에도 그대로 남아,
   제목(.rv-l)이 그만큼 아래로 밀리는데 .rv-t(시각)는 이 칸 밖이라 안 밀렸다. 모아보기는 구분선이
   없으니(2502줄) 그 여백도 걷어 시각 자리(margin-top .05rem)와 맞춘다. */
.day.filtered .items > .item:not(.open) .rv-c { padding-top: .05rem }

/* 위치 찾기 팝업 — 줄 안에 있던 상자를 그대로 옮겨 띄운다(app.js 의 popBox).
   상자는 줄 안에서 쓰던 꼴 그대로라, 여기서는 **자리만** 잡아 준다. */
.modal.locmodal { width: min(30rem, 100%) }
.modal.locmodal .locfind { padding: .25rem 1rem 1rem; max-height: 60vh; overflow-y: auto }

/* '＋ Day' — 날 카드 아래에서 하루를 더한다. 파란 채움으로 **지금 할 수
   있는 일**임을 보인다(칩들은 말을 거는 것이고, 이것은 바로 일어난다). */
.adddaybtn {
  display: block; width: 100%; margin: .75rem 0 .25rem; min-height: 2.6rem;
  border-radius: 12px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-fg);
  font-size: .95rem; font-weight: 700;
}
.adddaybtn:hover { filter: brightness(1.08); border-color: var(--accent) }
/* 하단 고정(2026-11-18 승주 #830) — 날 카드를 내려 봐도 늘 아래에 · 오른쪽 아래 AI 단추와 안 겹치게 오른쪽을 비움 */
.adddaybtn { position: sticky; bottom: calc(.75rem + env(safe-area-inset-bottom, 0px)); z-index: 6; width: calc(100% - 4.75rem); box-shadow: 0 4px 14px rgba(0,0,0,.18) }

/* ── 아직 안 만든 날 ────────────────────────────────
   줄이 하나도 없는 날. 머리 카드의 '모자람' 과 **같은 말**을 하는 자리라
   같은 꼴(점선)을 쓰되, 색은 주황이다 — 빨강은 "못 간다", 주황은
   "아직 안 했다" 다. 둘을 같은 빨강으로 칠하면 급한 정도가 안 갈린다. */
.daycard.nodays {
  border: 2px dashed var(--warn);
  background: var(--warn-soft);
}
.daycard.nodays:hover { border-color: var(--warn) }

/* ── 끝난 칩 ─────────────────────────────────────────
   예약 확인증·위치처럼 **다 넣은 것**은 전부 이 모습이다: 파란 테두리·파란
   글자·옅은 파란 바탕, 그리고 글자 끝의 ✓.
   ⚠️ 색으로만 말하지 않는다 — ✓ 가 글자에 같이 들어 있다. 색을 못 가리는
      사람에게도 "끝났다" 가 가야 한다.
   ⚠️ 한 군데서만 정한다. 전에는 위치는 글자로("확인됨"), 예약은 ✓ 로 알려
      한 줄 안에 끝남을 말하는 방식이 둘이었다. */
.itemfoot .act2.has {
  border-color: var(--accent); color: var(--accent); background: var(--accent-soft);
  font-weight: 600;
}
.itemfoot .act2.approx { opacity: .55 }
.itemfoot .act2[hidden] { display: none }
.itemfoot .aff { margin: 0; gap: .25rem }
.itemfoot .aff a { font-size: .68rem; padding: .125rem .5rem; border-radius: 999px }
.item .line3.linkedit { display: flex; gap: .25rem; align-items: center; margin-top: .35rem }
.item .line3.linkedit input.link { flex: 1; min-width: 0; font-size: .82rem; padding: .35rem .6rem }
.item .line3.linkedit[hidden] { display: none }

/* 채팅 첨부 줄의 파일 칩(사진이 아닌 것) */
.attach.file { display: flex; align-items: center; height: 3.6rem; max-width: 12rem; padding: 0 .5rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--sunken) }
.attach.file .fname { font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.attach.file.bad { border-style: dashed; opacity: .7 }

/* 일정 화면 위 "지금 하는 일" 띠 */
.workbar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 0 0 1rem;
  padding: .5rem .75rem; border-radius: var(--r); font-size: .88rem; font-weight: 600;
  background: var(--accent-soft); color: var(--accent); border: 1px solid transparent }
.workbar[hidden] { display: none }
.workbar .tx { flex: 1; min-width: 0 }
.workbar .sec { font-family: var(--m); font-weight: 400; font-size: .82rem; opacity: .8 }
.workbar.busy .tx::before { content: ""; display: inline-block; width: .7rem; height: .7rem; margin-right: .5rem;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -1px;
  animation: workspin .8s linear infinite }
@keyframes workspin { to { transform: rotate(360deg) } }
@media (prefers-reduced-motion: reduce) { .workbar.busy .tx::before { animation: none } }
.workbar.ok { background: var(--ok-soft); color: var(--ok) }
.workbar.warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn) }
.workbar button { min-height: 0; padding: .25rem .5rem; font-size: .82rem; border-radius: 999px }

/* 헤더: 저장 상태 한 줄 + 더보기(⋯) */
/* ⚠️ 넘치면 **말줄임표로** 끊는다. 전에는 그냥 잘려서 글자 한가운데가
   사라졌는데("…이 기기에"), 그러면 잘린 것인지 원래 그런 글인지 알 수가
   없다. 말줄임표는 "뒤에 더 있다" 를 말해 준다(전문은 도움말에). */
.savestate { display: inline-flex; align-items: center; gap: 0; white-space: nowrap;
             max-width: 100%; overflow: hidden; text-overflow: ellipsis }
.savestate .w { font-weight: 600 }
.savestate .hint { color: var(--muted) }
@media (max-width: 40rem) { .savestate .hint { display: none } }
/* ⚠️ 머리줄 단추들과 **높이를 맞춘다.** 전에는 여기만 27px 이고 옆의
   테마·공유 단추는 34px 이라, 나란히 섰을 때 하나만 내려앉아 보였다.
   한 줄 안의 높이 차이는 글자 크기 차이보다 먼저 눈에 띈다. */
.moremenu > summary { display: inline-flex; align-items: center; justify-content: center;
                      width: 2.1rem; height: 2.1rem; padding: 0; border-radius: 50%;
                      font-size: 1.05rem; line-height: 1; letter-spacing: .05em }
.moremenu > summary::after, .moremenu[open] > summary::after { content: "" }
/* 현지 표기 — 우리말 이름 옆 작은 회색 */
.item .meta .local { font-weight: 500; color: var(--muted); opacity: .9 }

/* 항공·교통 타일: 가는 편·오는 편 두 줄 */
.card.tile .v.legs { display: block; -webkit-line-clamp: unset }
.card.tile .v.legs .leg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .86rem }

/* 동행 상자 — 사람 그림 한 줄 + 관계 */
/* ⚠️ 글자 크기로 재던 자리다(이모지였으므로). 이제는 그림이라 **높이**로
   잰다 — 폭은 수에 따라 달라지고, 높이는 늘 같아야 줄이 안 들썩인다.
   색은 **글자 색을 따른다**(currentColor). 노란 이모지와 달리 어두운
   화면에서도 저절로 맞는다. */
.companion .cppl { display: flex; justify-content: flex-end; line-height: 0 }
.companion .cppl svg.ppl { height: 1.5rem; width: auto; color: var(--accent); display: block }
.companion .cppl.dim svg.ppl { opacity: .4; color: var(--muted) }
.companion .crel { font-size: .76rem; color: var(--fg); max-width: 12rem }

/* 상세의 일정 줄: 마우스를 올리면 누를 영역이 음영으로 보인다 */
@media (hover: hover) {
  .item:hover { background: var(--sunken) }
  .item.on:hover { background: var(--accent-soft) }
  .item:hover .line1 input.place { background: var(--surface) }
}
/* 메인의 "↻ 다시 짜기" — 작고 조용하게, 올리면 또렷하게 */
.daycard .dayhd { display: flex; align-items: center; gap: .4rem }
.daycard .dayhd .redo, .sechead .redo { margin-left: auto; min-height: 0; padding: .125rem .5rem; font-size: .68rem;
  border-radius: 999px; color: var(--muted); background: var(--surface); border: 1px solid var(--line) }
.daycard .dayhd .redo:hover, .sechead .redo:hover { color: var(--accent); border-color: var(--accent) }
.sechead { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap }
.sechead .redo { margin-left: auto }

/* 좁은 화면에서는 단추를 **아래줄로** 내린다.
   전에는 제목(전체 일정)·설명(› 눌러서 전체 수정)·단추 둘이 한 줄에
   다 들어가려다, 남은 폭이 글자 하나보다 좁아져 "눌" "러" "서" 가
   세로로 쌓였다. 글이 세로로 서면 읽히지 않는다.

   제목 줄은 폭을 통째로 쓰고, 단추는 그 아래 한 줄에 나란히. 둘은
   서로 짝이라(하나는 AI 에게 맡기고 하나는 AI 를 막는다) 같은 줄에 둔다. */
/* 2026-11-25: 좁은 화면에서 단추를 아랫줄로 내리던 규칙 — 걷었다. '전체 AI 돌리기'(.sm.redo)는
   이미 없고, '전체 확정'(.lockall)도 알약(.sm)에서 시계 옆 원형 아이콘 단추로 바뀌어
   더는 글자가 줄바꿈될 만큼 넓지 않다. 아래 .daysbox .sechead .lockall 이 자리를 정한다. */
@media (max-width: 34rem) {
  .sechead > .h2 { flex: 1 1 auto }
}

/* ── 넓은 화면: 대화창을 오른쪽에 (body.dock) ──────────────
   64rem 이상에서만 뜻이 있다. 그보다 좁으면 선택과 무관하게 아래 시트다. */
.sheetbtn.dock { display: none }
@media (min-width: 64rem) {
  .sheetbtn.dock { display: inline-flex }
  :root { --dockw: min(30rem, 40vw) }
  body.dock .sheet {
    top: 0; bottom: 0; left: auto; right: 0; width: var(--dockw); max-width: none;
    height: 100vh !important; max-height: none; margin: 0; border-radius: 0;
    border-top: 0; border-left: 1px solid var(--line); box-shadow: -4px 0 18px rgba(0,0,0,.08);
    padding-top: .5rem; animation: none;
  }
  /* 옆에 붙어도 손잡이는 산다 — 좌/우로 끌어 쪽을 바꾸고, 아래로 끌어 내린다 */
  body.dock .sheet .handle { cursor: move }
  /* 왼쪽에 붙이기: 채팅이 왼쪽, 일정이 오른쪽 */
    body.dock.dock-left .sheet { left: 0; right: auto; border-left: 0; border-right: 1px solid var(--line); box-shadow: 4px 0 18px rgba(0,0,0,.08) }
    body.dock.dock-left .wrap { margin-left: var(--dockw) }
    body.dock.dock-left .chatfab { left: 1.2rem; right: auto }
    body.dock #sheetMax { display: none }
    /* 본문은 남은 폭 가운데에 */
    body.dock .wrap {
      max-width: none; margin: 0; width: calc(100vw - var(--dockw)); box-sizing: border-box;
      padding-left: max(1rem, calc((100vw - var(--dockw) - var(--wrap) ) / 2));
      padding-right: max(1rem, calc((100vw - var(--dockw) - var(--wrap) ) / 2));
    }
    body.dock .chatfab { right: 1.2rem }
    /* 옆에 붙인 넓은 화면은 채팅이 늘 옆에 떠 있으니, 아래 하단 바(.schedtabs)는 그대로 옛 떠있는 단추로 돌아간다 */
    body.dock .schedtabs { display: none }
    body.dock #chatFab { display: inline-flex }
  }

  /* ── 일정 화면 하단 고정 바(2026-11-30 베어스타: "바를 항상 모든 화면에 하단에 고정 · 채팅버튼을 바 맨 오른쪽에") ──
     첫 화면의 .pagehd.hometabs 와 같은 생김새(아이콘 위 · 글자 아래, 에어비앤비식 5탭)를 일정 화면에도 둔다.
     이름은 따로(.schedtabs/.stab) — index.html 의 FOUC 방지용 인라인 사본과 선택자가 엉키지 않게.
     채팅 탭만 색 채운 원형 아이콘으로 — 지금 떠 있던 💬 단추 자리를 대신한다(그 단추 자체는 숨기고 그대로 둠 · 데스크톱 "옆에 붙이기" 모드에서는 215줄 위 규칙이 되살린다). */
  .schedtabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; display: flex; align-items: stretch; gap: 7px;
               margin: 0; padding: .45rem 1rem calc(.45rem + env(safe-area-inset-bottom, 0px));
               background: var(--surface); border-top: 1px solid var(--line); overflow: visible; box-sizing: border-box }
  .schedtabs { max-width: var(--wrap); margin: 0 auto; left: 0; right: 0 }
  @media (min-width: 40rem) { .schedtabs { border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 14px 14px 0 0 } }
  .schedtabs .stab { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .7rem .3rem .6rem;
                     border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--muted);
                     text-decoration: none; cursor: pointer; font: inherit; transition: border-color .15s ease, background .15s ease, color .15s ease }
  .schedtabs .stab .ico { font-size: 1.2rem; line-height: 1 }
  .schedtabs .stab .lb { font-size: .78rem; line-height: 1.3; font-weight: 700; white-space: nowrap; letter-spacing: -.01em }
  .schedtabs .stab:hover { color: var(--fg) }
  /* 채팅 — 맨 오른쪽 · 색 채운 원형 강조(다른 네 탭과 다르게 눈에 띔) */
  .schedtabs .stab.chat .ico { display: inline-flex; align-items: center; justify-content: center; width: 2.15rem; height: 2.15rem;
                                border-radius: 50%; background: var(--accent); color: var(--accent-fg);
                                box-shadow: 0 4px 10px rgba(0,0,0,.18); font-size: 1.05rem }
  .schedtabs .stab.chat .lb { color: var(--accent); font-weight: 800 }
  .schedtabs .stab.chat.open .ico { filter: brightness(1.08) }
  /* 원래 떠 있던 단추는 숨긴다 — 아래 하단 바의 채팅 탭이 같은 일을 한다 */
  #chatFab { display: none }
  html.is-app .schedtabs { padding-bottom: calc(.45rem + max(var(--app-bottom), env(safe-area-inset-bottom, 0px))) }
  /* 하단 바가 새로 생겨 그 높이만큼 본문·시트 자리를 비운다 */
  #detail, #overview, #view-map { padding-bottom: 4.6rem }

/* 대화창 도구 줄(⇥ · —)은 글 위에 띄우지 않고 **제 줄**을 가진다 — 말풍선과 겹치지 않게 */
.sheettools { position: static; justify-content: flex-end; padding: .25rem .125rem 0; min-height: 2.2rem }
.sheet .handle { padding-top: .15rem }
body.dock .sheet .handle { padding-top: .15rem }

/* ── 로그인 문 ───────────────────────────────────────
   로그인 안 했으면 화면 전체를 **사진**으로 덮는다(P-009-2, 2026-10-24).
   사진은 여행지에서 지도를 든 사람 — "어디로 갈까" 를 로그인 전에 보여 준다.
   글은 늘 흰색이라 테마와 상관없다. 단추 가운데는 세로 기준 **밑에서 1/3**
   (엄지가 닿는 자리). 폰(세로)은 아래를, PC(가로)는 글 쪽을 어둡게 깐다. */
.logingate {
  position: fixed; inset: 0; z-index: 90; color: #fff;
  /* 2026-11-16 태인: 디스코드로 받은 새 역 사진(가로·세로 한 쌍)으로 교체 — 같은 구도(모자 쓴 사람 · 기차역 플랫폼).
     세로 위치 center 15%(얼굴·모자 쪽)는 v945 보정 그대로 — center 기준이면 코·입만 남고 모자·눈이 잘렸다. */
  background: #2b2b2e url(img/login-phone.jpg) center 15% / cover no-repeat;
  font-family: inherit;
}
.logingate::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 40%, rgba(0,0,0,.42) 58%, rgba(0,0,0,.78) 100%);
}
.logingate-brand {
  position: absolute; top: calc(7% + env(safe-area-inset-top, 0px)); left: 0; right: 0;
  text-align: center; font-weight: 800; letter-spacing: .06em; font-size: 1.1rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.logingate-brand small { display: block; font-weight: 500; letter-spacing: .16em; font-size: .6rem; opacity: .85; margin-top: .1rem }
.logingate-ui {
  /* 단추(32px)가 맨 아래 — 묶음의 아랫변을 1/3 + 16px 에 두면 단추 **가운데**가 밑에서 1/3 이다 */
  position: absolute; left: 0; right: 0; bottom: calc(33.33% - 16px);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  padding: 0 max(1.2rem, env(safe-area-inset-left, 0px)) 0 max(1.2rem, env(safe-area-inset-right, 0px)); text-align: center;
}
.logingate-title { margin: 0; font-size: 1.3rem; font-weight: 800; line-height: 1.3; text-shadow: 0 1px 10px rgba(0,0,0,.6); word-break: keep-all }
.logingate-text { margin: 0; font-size: .95rem; line-height: 1.5; text-shadow: 0 1px 10px rgba(0,0,0,.6); word-break: keep-all; overflow-wrap: normal }
/* 단추 자리: 구글 단추(200×32)가 그려지기 전에도 자리를 지켜 "뚜둑" 하지 않게 */
/* 단추는 글에서 한 줄쯤 떨어뜨린다(2026-10-25) — 붙어 있으면 글의 일부로 읽힌다 */
/* 단추 자리. 구글 large 단추(260×40)와 **같은 크기로 못 박는다** — min-height 가 아니라 height. 안에서 무엇이
   커져도 위의 글은 안 움직인다(2026-10-25 측정: 전에는 iframe 이 잡히는 동안 제목·소개가 32px 뛰었다 내려왔다).
   ⚠️ 위 .loginbox 의 흔들림 방지 규칙은 머리말에만 걸려 있었다 — 같은 부품이 두 자리에 서면 규칙도 둘 다 가리켜야 한다. */
.logingate-btn { position: relative; width: 260px; height: 40px; min-width: 0; margin-top: 1rem; filter: drop-shadow(0 2px 10px rgba(0,0,0,.35)) }
/* 두 겹: 밑에 우리가 그린 같은 꼴 알약(.gbrand, 바로 눌린다), 위에 구글이 그린 것(.gbtn). 구글 것이 내려와 크기를 다
   잡으면 서서히 나타나고 밑 알약은 같이 사라진다 — 바꿔 끼우는 순간이 없다. 전에는 대기 단추가 사라지고 ~0.5초 비었다가
   구글 단추가 떠서 "작아졌다 커지는" 것처럼 보였다(태인, 2026-10-25). 사진 위라 테마와 상관없이 흰 알약이다. */
.logingate-btn .gbrand, .logingate-btn .gbtn { position: absolute; inset: 0; width: 260px; height: 40px; box-sizing: border-box; margin: 0 }
.logingate-btn .gbrand { display: flex; align-items: center; cursor: pointer;
  border-radius: 999px; border: 1px solid #dadce0; background: #fff; color: #1f1f1f;
  /* 구글 large 단추와 **같은 자리**에 그린다(2026-10-25 측정): G 는 왼쪽 13px 에 18px, 글은 그 오른쪽 남은 폭 가운데
     (글 가운데 ≈ 142px). 가운데 정렬로 두었더니 덮이는 순간 G 가 30px 왼쪽으로 뛰고 글이 7px 밀렸다. */
  padding: 0 7px 0 31px;
  font: 500 14px/1 "Google Sans", "Roboto", "Noto Sans KR", system-ui, sans-serif; white-space: nowrap; transition: opacity .25s ease-out }
.logingate-btn .gbrand svg { position: absolute; left: 13px; top: 50%; margin-top: -9px; width: 18px; height: 18px; flex: none }
.logingate-btn .gbrand span { flex: 1 1 auto; text-align: center }
.logingate-btn .gbrand[disabled] { opacity: .6; cursor: default }
/* Google Play 앱 받기 — 구글 단추 아래 같은 폭 · 사진 위라 반투명 검은 알약 + 흰 글자 */
.logingate-play { display: flex; align-items: center; justify-content: center; width: 260px; height: 40px; box-sizing: border-box; margin-top: .6rem;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.7); background: rgba(0,0,0,.35); color: #fff !important; text-decoration: none;
  font-size: .9rem; font-weight: 600; letter-spacing: .01em; -webkit-tap-highlight-color: transparent }
.logingate-play:active { background: rgba(0,0,0,.5) }
.logingate-btn .gbtn { flex: none; transition: opacity .25s ease-out }
.logingate-btn .gbtn, .logingate-btn .gbtn > div, .logingate-btn .gbtn iframe { background: transparent !important; border-radius: 999px; overflow: hidden }
.logingate-btn .gbtn:empty, .logingate-btn .gbtn.pending { opacity: 0; pointer-events: none }   /* 비었거나 준비 중이면 밑 알약이 눌린다 */
.logingate-btn .gbtn.in { opacity: 1 }
.logingate-btn[data-in] .gbrand { opacity: 0; pointer-events: none; transition: opacity 0s linear .3s }   /* 밑 알약은 **서서히 빼지 않는다** — 둘 다 반투명한 중간에 단추가 한 번 흐려졌다(측정 1126ms). 구글 것이 다 나타난 뒤 한 번에 거둔다 */
@media (prefers-reduced-motion: reduce) { .logingate-btn .gbtn, .logingate-btn .gbrand { transition: none } }
/* 가로가 더 긴 화면(PC·태블릿 가로): 가로 사진. 인물이 왼쪽이라 글·단추는 오른쪽에 모은다. */
@media (min-aspect-ratio: 1/1) and (min-width: 40rem) {
  .logingate { background-image: url(img/login-wide.jpg); background-position: 20% center }
  .logingate::before { background: linear-gradient(to left, rgba(0,0,0,.66) 0%, rgba(0,0,0,.38) 42%, rgba(0,0,0,.05) 70%) }
  .logingate-brand { left: auto; right: 7%; text-align: right; top: calc(6% + env(safe-area-inset-top, 0px)) }
  .logingate-ui { left: auto; right: 7%; width: min(36rem, 46%); align-items: flex-start; text-align: left; padding: 0 }
  .logingate-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem) }
  .logingate-text { font-size: clamp(.95rem, 1.5vw, 1.2rem) }
  .logingate-btn { justify-content: flex-start }
}
/* 문이 서 있는 동안 뒤는 못 굴린다 — 굴러가면 막힌 느낌이 안 난다. */
body.gated { overflow: hidden }

/* ── 묻는 창(askConfirm) — 브라우저 confirm 대신 우리 카드 ── */
.cfm-back { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.38); display: flex; align-items: center; justify-content: center;
  padding: 1rem; animation: cfmin .14s ease-out }
.cfm { background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 16px; width: min(22rem, 100%);
  padding: 1rem 1rem 1rem; box-shadow: 0 12px 36px rgba(0,0,0,.18) }
.cfm-msg { margin: 0 0 1rem; font-size: 1rem; line-height: 1.55; word-break: keep-all }
.cfm-row { display: flex; gap: .5rem; justify-content: flex-end }
.cfm-btn { min-height: 2.4rem; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--fg); font-size: .95rem; font-weight: 600; cursor: pointer }
.cfm-btn:hover { border-color: var(--muted) }
.cfm-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg) }
.cfm-btn.primary.danger { background: var(--warn); border-color: var(--warn); color: #fff }
.cfm-btn:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 1px }
@keyframes cfmin { from { opacity: 0 } to { opacity: 1 } }
/* 닫을 때도 애니메이션(confirm.js closeFade, 2026-11-26) — 열 때만 있고 닫을 때는 즉시 사라지던 것을
   "더보기" 바텀시트와 같은 수준으로 맞춤. pointer-events:none 으로 사라지는 동안 재클릭을 막는다. */
@keyframes cfmout { from { opacity: 1 } to { opacity: 0 } }
.cfm-back.closing { animation: cfmout .15s ease-in both; pointer-events: none }
.cfm-back.closing .cfm { transform: translateY(6px); transition: transform .15s ease-in }
@media (prefers-reduced-motion: reduce) { .cfm-back { animation: none } .cfm-back.closing { animation: none } }
@media (max-width: 30rem) { .cfm-back { align-items: flex-end; padding: 0 } .cfm { width: 100%; border-radius: 16px 16px 0 0; padding-bottom: calc(.9rem + env(safe-area-inset-bottom, 0px)) } }

/* 시트 맨 위: 손잡이, 그 아래 단추 줄 */
.sheet .handle { padding-top: .55rem }
.sheettools { padding: 0 .125rem .125rem; min-height: 0 }

/* ── 일정 줄의 결에 띄 ──────────────────────────
   좌표가 없는 줄은 **아래 지도에 안 찍히는데** 그걸 알 길이 없었다.
   왼쪽에 가는 띄 하나를 세운다 — 글을 가리지 않으면서 한눈에 갈린다.
   ⚠️ 색만으로 가르지 않는다 — 배지(·띄 옆의 글)도 같이 둔다. */
/* ⚠️ **띄는 하나다.** 줄 왼쪽에 두 겹이 섰던 적이 있다 — 갈래 색(숙소
   주황·이동 파랑·나머지 초록) 띄 옆에 좌표 여부 띄(주황/초록)가 또 하나
   붙어, 숙소 줄이 주황-초록 두 줄로 보였다. 두 띄가 **서로 다른 것**을
   말하는데 생김새가 같아서, 어느 쪽이 무슨 뜻인지 가릴 길이 없었다.
   갈래 색 하나만 남긴다 — 좌표가 있는지는 줄 안의 '📍 위치 찾기 / 위치 ✓'
   가 글자로 말한다(색보다 분명하다). */
.item { position: relative }

/* 위치 단추 — 찾기 전과 뒤를 가른다 */
/* 사진 보기 단추의 그림은 글씨 크기에 맞춰 조금 작게. 단추가 .76rem 이라
   기본 1.1rem 을 그대로 쓰면 그림이 글씨보다 커 보인다. */
.act2 .shotic { width: .95rem; height: .95rem; color: inherit }
/* 좌표 없는 줄의 「📍 위치 찾기」 — **테두리만 빨간 점선으로 깜빡**(글자는 보통 · 따로 붙는 점 없음) · 찾은 뒤는 「📍 위치 ✓」 초록 · 움직임 줄이기면 빨간 점선만 */
.act2.loc.approx { border: 2.5px dotted #d40000; animation: loc-blink 1s steps(1, end) infinite }   /* 진한 빨간 점선 · 깜빡깜빡(승주) */
@keyframes loc-blink { 0%, 100% { border-color: #d40000 } 50% { border-color: transparent } }
@media (prefers-reduced-motion: reduce) { .act2.loc.approx { animation: none } }
.act2.loc:not(.approx) { color: var(--ok) }

/* 종류 고르개 — 네모라 거\ce60었다. 둥글게. */
select.kind, select.movekind {
  border-radius: 999px; padding: .25rem .5rem; font-size: .82rem;
  border: 1px solid var(--line); background: var(--surface); min-height: 0;
}
select.kind:hover, select.movekind:hover { border-color: var(--line-strong) }

/* ── 종류 그림 ───────────────────────────────────────────
   ⚠️ 이모지로 두었더니 두 가지가 한꺼번에 어긋났다. 🎟·🍽·⛴ 처럼 뒤에
      VS16 이 없는 글자는 윈도우가 **흑백 글자 모양**으로 그려서 무엇인지
      알아볼 수 없었고(세화해변 옆의 그 검은 빗금), 글자 모양과 그림 모양은
      폭이 달라 **줄마다 글씨 시작 자리가 들쭉날쭉**했다.
   직접 그린 선 그림을 **고정 폭 칸**에 앉힌다 — 폭이 같으니 글씨가
   저절로 한 줄로 선다. 색은 종류마다 달리 주되 글자는 늘 본문 색이다. */
.ic {
  flex: none; width: 1.1rem; height: 1.1rem;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--etc);
}
.ic svg { width: 100%; height: 100%; display: block }
.ic[data-ico="see"] { color: var(--see) }
.ic[data-ico="eat"] { color: var(--eat) }
.ic[data-ico="stay"] { color: var(--stay) }
.ic[data-ico="tour"] { color: var(--tour) }
.ic[data-ico="air"], .ic[data-ico="train"], .ic[data-ico="bus"],
.ic[data-ico="ferry"], .ic[data-ico="car"], .ic[data-ico="movex"] { color: var(--move) }

/* 고치는 줄의 동그란 칸 안에서도 같은 그림. */
.kindwrap .ico {
  width: 1.05rem; height: 1.05rem;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--etc); pointer-events: none;
}
.kindwrap .ico svg { width: 100%; height: 100%; display: block }
.kindwrap .ico[data-ico="see"] { color: var(--see) }
.kindwrap .ico[data-ico="tour"] { color: var(--tour) }
.kindwrap .ico[data-ico="eat"] { color: var(--eat) }
.kindwrap .ico[data-ico="stay"] { color: var(--stay) }
.kindwrap .ico[data-ico="shop"] { color: var(--shop) }
.kindwrap .ico[data-ico="air"], .kindwrap .ico[data-ico="train"],
.kindwrap .ico[data-ico="bus"], .kindwrap .ico[data-ico="ferry"],
.kindwrap .ico[data-ico="car"], .kindwrap .ico[data-ico="movex"] { color: var(--move) }

/* ── 줄맞춤 ──────────────────────────────────────────────
   글씨 시작 자리가 안 맞던 두 번째 까닭: 빼기(×)와 그림 사이의 틈을
   gap 하나로 주다 보니, 그림 폭이 흔들리면 그 뒤가 통째로 밀렸다.
   이제 **칸마다 폭을 박아** 둔다 — 시각·장소 글씨는 늘 같은 x 에서 시작한다. */
.ovrow .l { gap: 0 }
.ovrow .l .ic { margin-right: .3rem }
.ovrow .l .time {
  /* 시각 ↔ 장소 여백 절반(2026-11-08 승주: "여백 50% 줄여 줘 가로") — 칸 너비는 고정 · 날 넘김(+1)은 칸 밖 오른쪽 위에 겹쳐 */
  width: 2.95rem; flex: none; margin-right: .125rem; position: relative; white-space: nowrap;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
  /* 2026-11-11: AI 가 시각 대신 "체크아웃 후" 같은 글을 넣으면 고정폭을 넘쳐 다음 칸(장소 이름)
     글자와 겹쳐 찍혔다(Discord 제보 — "삿"·"후" 겹침). 칸 밖으로 못 넘치게 자른다. */
  overflow: hidden; text-overflow: ellipsis;
}
.ovrow .l .kst { margin-right: .35rem }

/* ── 여기가 어디인가 ─────────────────────────
   쳋 화면은 **목록**이고 /schedule/ 은 **상세**인데, 둘 다 하얀 네모가
   쌓여 있어서 들어갔다 나오면 헷갈렸다. 둘 다 머리에 자리 이름을 적는다.
   ⚠️ 둘 다 **카드가 아니라 글줄**로 둔다 — 네모를 하나 더 세우면
      같은 문제가 반복된다. */
.pagehd {
  display: flex; align-items: baseline; gap: .5rem;
  margin: .25rem 0 .125rem;
}
.pagehd .h2 { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em }
.pagehd .cnt {
  font-family: var(--m); font-size: .76rem; color: var(--muted);
  background: var(--sunken); border-radius: 999px; padding: 0 .5rem;
}
.pagehd .cnt:empty { display: none }

/* 상세의 길 표시 */
.crumb {
  display: flex; align-items: center; gap: .25rem; flex-wrap: wrap;
  font-size: .88rem; color: var(--muted); margin: .125rem 0 .5rem;
  min-width: 0;
}
.crumb a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent }
.crumb a:hover { color: var(--accent); border-bottom-color: var(--accent) }
.crumb .sep { opacity: .55 }
.crumb b {
  color: var(--fg); font-weight: 700; font-size: .95rem;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── 남은 크레딧 ────────────────────────────
   하루 30 을 긎아 쓰는데 얼마 남았는지 볼 길이 없었다. 다 쓰고 나서야
   "없다" 는 말을 듣는 셋이라, 그때는 이미 늘다. 얼마 안 남으면 색으로
   미리 알린다 — 색만으로 가르지 않게 숫자 자체가 들어 있다. */
.loginbox .credit {
  font-family: var(--m); font-size: .76rem; line-height: 1;
  padding: .25rem .5rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid transparent; white-space: nowrap; flex: none;
}
.loginbox .credit.low { background: var(--warn-soft); color: var(--warn); border-color: var(--warn) }

/* ── 말 고르기 ──────────────────────────────
   접는 칸(select)을 썼더니 지금 무엇이 골라져 있는지 흐렸다. 둘뿐인
   고르기에 접는 칸을 쓸 이유가 없다 — 둘 다 펴 놓고 고른 쪽을 칠한다. */
.langseg {
  display: inline-flex; flex: none; padding: 2px; gap: 2px;
  background: var(--sunken); border: 1px solid var(--line); border-radius: 999px;
}
.langseg button {
  min-height: 0; padding: .25rem .5rem; border: 0; border-radius: 999px;
  background: none; color: var(--muted); font-size: .76rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; font-family: inherit;
}
.langseg button:hover { color: var(--fg) }
.langseg button.on {
  background: var(--accent); color: var(--accent-fg);
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.langseg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }

/* ── 그림 색을 진하게 ─────────────────────────
   멀리서 보면 갈리지 않았다. 종류마다 색을 더 벌리고 선도 굵힌다.
   ⚠️ 색만으로 가르지 않는다 — 그림 꼴 자체가 이미 다르다. 색은
      멀리서 훑을 때 보태는 것일 뿐이다. */
:root {
  --ic-see:#0d5c3a; --ic-eat:#9c3d06; --ic-stay:#e8590c; --ic-move:#1c64d9; --ic-etc:#4a463e; --ic-shop:#0d5c3a; --ic-tour:#6b3fd1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ic-see:#4fd9a8; --ic-eat:#ffad5e; --ic-stay:#ff8a3d; --ic-move:#6ea8ff; --ic-etc:#b9bfcc; --ic-shop:#4fd9a8; --ic-tour:#b794ff;
  }
}
:root[data-theme="dark"] {
  --ic-see:#4fd9a8; --ic-eat:#ffad5e; --ic-stay:#ff8a3d; --ic-move:#6ea8ff; --ic-etc:#b9bfcc; --ic-shop:#4fd9a8; --ic-tour:#b794ff;
}

.ic svg, .kindwrap .ico svg { stroke-width: 1.95 }
.ic { width: 1.15rem; height: 1.15rem }

.ic[data-ico="see"], .kindwrap .ico[data-ico="see"] { color: var(--ic-see) }
.ic[data-ico="tour"], .kindwrap .ico[data-ico="tour"] { color: var(--ic-tour, var(--tour)) }
.ic[data-ico="eat"], .kindwrap .ico[data-ico="eat"] { color: var(--ic-eat) }
.ic[data-ico="stay"], .kindwrap .ico[data-ico="stay"] { color: var(--ic-stay) }
.ic[data-ico="shop"], .kindwrap .ico[data-ico="shop"] { color: var(--ic-shop) }
.ic[data-ico="etc"], .kindwrap .ico[data-ico="etc"] { color: var(--ic-etc) }
.ic[data-ico="air"], .kindwrap .ico[data-ico="air"],
.ic[data-ico="train"], .kindwrap .ico[data-ico="train"],
.ic[data-ico="bus"], .kindwrap .ico[data-ico="bus"],
.ic[data-ico="ferry"], .kindwrap .ico[data-ico="ferry"],
.ic[data-ico="car"], .kindwrap .ico[data-ico="car"],
.ic[data-ico="movex"], .kindwrap .ico[data-ico="movex"] { color: var(--ic-move) }

/* 수단 동그라미는 종류 동그라미와 **같아 보이면 안 된다.**
   속을 채워 ‘고른 값’ 임을 보인다 — 악사이 아니라 고른 것이다. */
.kindwrap.mvwrap { background: var(--accent-soft); border-color: var(--accent-soft) }

/* ── 지도 핀 ───────────────────────────────
   종류 그림을 넣고 숫자를 어깨에 단다. 일정 줄에서 쓰는 그림과
   같은 것이라, 색·꼴·숫자 셋이 함께 가리킨다. */
.pin2 {
  position: relative; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--pc, #0066cc); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.35); border: 2px solid #fff;
}
.pin2 svg { width: 62%; height: 62%; display: block }
.pin2 b {
  position: absolute; top: -.42rem; right: -.42rem;
  min-width: 1.05rem; height: 1.05rem; padding: 0 .125rem;
  border-radius: 999px; background: #fff; color: var(--pc, #0066cc);
  font-family: var(--m); font-size: .68rem; font-weight: 800; line-height: 1.05rem;
  text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.3);
}



/* ── 잠그고 나면 ──────────────────────────────
   ⚠️ `.item.locked select { opacity:.85 }` 가 **숨겨 둔 고르개까지** 되살렸다.
      .kindwrap 의 select 는 동그라미 위에 투명하게 격어 둔 것이라, 다시
      보이면 직접 그린 그림 위에 기기 기본 ⌄ 가 겹쳐 뜨고 그림은 흐려졌다.
      잠금은 칸을 못 고치게 하려는 것이지 그림을 숨기려는 것이 아니다. */

/* ── 떠도는 단추들도 같은 알약으로 ────────────────
   예매처·숙소 찾기·값 보기가 회색 네모라, 바로 옆의 🔗 예약 링크·📎 첨부와
   따로 놀았다. 한 줄에 서는 것끼리는 같은 꼴이어야 한 덭어리로 읽힌다. */
.itemfoot .sm,
.item .stay .sm,
.item .booking .sm {
  display: inline-flex; align-items: center; gap: .25rem; min-height: 0;
  padding: .25rem .5rem; font-size: .76rem; line-height: 1.2;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--fg);
}
.itemfoot .sm:hover,
.item .stay .sm:hover,
.item .booking .sm:hover { border-color: var(--accent); color: var(--accent) }

/* ── 위치 고르는 창 ───────────────────────────
   고려 넣는 창이다. 줄 아래에 붙어 열리고, 고르면 닫힌다. */
.locfind { width: 100%; margin-top: .5rem; padding: .5rem;
  background: var(--sunken); border: 1px solid var(--line); border-radius: 10px }
.locfind[hidden] { display: none }
.locrow { display: flex; gap: .25rem; align-items: center }
.locrow input { flex: 1; min-width: 0; font-size: .82rem; padding: .35rem .6rem }
.locout { display: flex; flex-direction: column; gap: .25rem; margin-top: .4rem }
.locout:empty { display: none }
.locnote { font-size: .76rem; color: var(--muted); padding: .2rem .1rem }
.lochit {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  width: 100%; text-align: left; min-height: 0; padding: .25rem .5rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  color: var(--fg); cursor: pointer; font: inherit;
}
.lochit:hover { border-color: var(--accent); background: var(--accent-soft) }
.lochit b { font-size: .82rem; font-weight: 700 }
.lochit .ad { font-size: .76rem; color: var(--muted) }
.lochit[disabled] { opacity: .5 }

/* 알약에 낱말이 들어가면서 조금 넓어졌다. 줄바꿈은 막는다. */
.loginbox .credit { font-family: var(--b); letter-spacing: -.01em }

/* 구글 단추 둘레에 하얀 띄가 남지 않게.
   단추 자체는 구글이 그리므로 색을 못 바꾼다 — 담긴 칸만은 비운다. */
.loginbox .gbtn, .loginbox .gbtn > div, .loginbox .gbtn iframe {
  background: transparent !important; border-radius: 999px; overflow: hidden;
}

/* 앱 안에서 로그인 자리에 들어가는 안내 */
.loginbox .appnote {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .76rem; color: var(--muted); white-space: nowrap;
}
.loginbox .appnote .sm { min-height: 0; padding: .25rem .5rem; font-size: .76rem; border-radius: 999px }

/* ── 로그인 칸 자리 미리 잡기 ─────────────────────
   재 보니 첫 페인트는 652ms 에 **한 번**이고(css 는 104ms 에 끝났다),
   흔들림은 1.3초·1.9초에 뒤늦게 생겼다. 범인은 #loginBox 였다 — 빈 칸으로
   그려졌다가 나중에 채워지면서 머리말이 커지고 본문이 두 번 밀렸다.
   그게 "화면이 두 번 불리는" 느낌의 정체다.
   미리 자리를 잡아 두면 무엇이 채워져도 아무것도 안 움직인다. */
.loginbox {
  min-width: 200px; min-height: 32px;        /* 구글 단추(medium = 200×32)와 같은 크기 — 채워져도 안 움직인다 */
  justify-content: flex-end;
}
/* ⚠️ **들어와 있으면 그 자리를 놓아 준다**(2026-11-02). 이름 + 토큰 알약은 105px 안팎인데
   200px 를 그대로 쥐고 있어서, 홈 머리말의 로고 글자가 390px 폰에서 "Trip…" 으로 잘렸다.
   토큰을 들고 있으면 첫 그림부터 들어온 꼴이라(login.js paint) 놓아도 흔들리지 않는다. */
.loginbox[data-lstate^="me:"] { min-width: 0 }
/* 구글 단추 틀도 크기를 못 박는다. iframe 이 제 크기로 커지며 옆 단추들을 밀던 것(529ms 흔들림)을 막는다.
   ⚠️ 폭은 login.js 가 화면에 맞춰 정한다(--gw). 좁으면 120px, 넓으면 200px.
      여기서 200 으로 못 박았더니 폰에서 로고 옆에 못 들어갔다. */
.loginbox .gbtn { width: var(--gw, 200px); height: 32px; flex: none }
/* ⚠️ 전에는 좁은 화면에서 **머리줄을 두 줄로 접었다.** 그러면 로고는 왼쪽
   위, 로그인은 그 아래 오른쪽에 떨어져 앱에서 "UI 가 깨졌다" 로 보인다.
   단추를 좁게 만들어 **한 줄에 같이 세운다** — 접는 것은 그보다 더 좁아
   정말 안 들어갈 때뿐이다. */
/* ── 배너는 **누를 만하게** ──────────────────────────
   ⚠️ 글자가 작고 화면 꼭대기에 바짝 붙어 있어 **눌리지 않는다**는 말을
      들었다. 손가락이 닿는 자리는 44px 이 바닥선이다 — 그보다 작으면
      맞히는 것이 일이 된다. 글자도 한 칸 키운다. */
.top .brand { min-height: 2.75rem; padding-left: .1rem }
.top .brand .mark { width: 2rem; height: 2rem }
.top .brand .word { font-size: 1.1rem }
.wrap { padding-top: 1.1rem }

/* ── 폰에서는 **한 줄에 다 선다** ──────────────────────
   ⚠️ 재어 보니 오른쪽이 374px 를 달라고 했다(구글 단추 200 + 공유 106 +
      테마 34 + 더보기 34). 로고 103 까지 더하면 490px 라, 390px 폰에서는
      접힐 수밖에 없었다. 접히면 로고는 왼쪽 위, 로그인은 그 아래 오른쪽에
      떨어져 **앱에서 "UI 가 깨졌다"** 로 보인다.
      자리를 줄여 한 줄로 되돌린다: 구글 단추 120 + 공유를 그림만 34
      → 240px 로 든다. */
/* ⚠️ **구글 단추는 줄이지 않는다.** 120px 로 눌러 담았더니 틀이
   overflow:hidden 이라 실제 단추(200px)가 잘린다 — 잘린 자리는 눌리지
   않는다. 구글은 200 아래를 받지 않는다(그쪽이 정한 것이다).
   줄일 수 있는 것은 **우리 여백**뿐이라, 그것만 줄여 한 줄을 만든다.
   재어 보니: 배너 103 + 로그인 200 + 더보기 34 = 337.
   390px 폰의 글 폭은 358 → 그대로 든다. 360px 은 여백을 줄여야 든다. */
@media (max-width: 30rem) {
  /* ⚠️ .5rem(8px) 까지 줄여 뒀었다. 머리줄에 손님 크레딧 알약을 끼워
     넣느라 짜낸 자리였는데, 그 알약을 뺐으니 돌려준다. 8px 이면 카드
     테두리가 **화면 끝에 붙어** 선이 있는지도 모르게 된다("새 여행"
     점선이 안 보인다는 말이 그 뜻이었다). */
  .wrap { padding-left: .75rem; padding-right: .7rem }
  /* ⚠️ **접지 않는다.** 접히면 배너는 왼쪽 위, 로그인은 그 아래 오른쪽에
     떨어져 "UI 가 깨졌다" 로 보인다. 자리가 모자라면 접는 대신 **배너
     글자를 줄인다** — 로그인은 구글이 200 아래를 안 받아 못 줄인다. */
  /* ── 머리줄은 **격자**로 짠다 ────────────────────
     ⚠️ 여기서 두 번 데었다.
        · flex + nowrap: 배너·로그인은 한 줄에 섰지만, 그 **아래**에 놓여야
          할 안내 한 줄(.headnote)까지 같은 줄로 끌려 나가 화면 밖
          (360~374)에 걸렸다. "접지 마라" 는 못은 자리를 가리지 않는다.
        · flex + wrap: 안내 줄은 제자리를 찾았지만, 이번엔 **배너와 로그인이
          위아래로 갈라졌다**(320·360·일정 390 에서 측정). 앱에서 "UI 가
          깨졌다" 로 보이는 바로 그 모습이다.
     접느냐 마느냐로는 둘 다 만족시킬 수 없다 — 어느 것이 어느 줄인지를
     **자리로 못 박아야** 한다. 격자가 그 일을 한다: 1행은 배너|로그인,
     2행은 안내. 누가 넓어지든 행이 바뀌지 않는다. */
  /* ⚠️ center 로 두면, 오른쪽이 두 줄(로그인 + 안내)일 때 배너만 **가운데로
     내려앉아** 로그인 단추와 눈높이가 어긋난다(41 vs 18 로 쟀다). 줄은
     같은데 보기에는 어긋나 있으니 그게 그거다. 위를 맞춘다. */
  .top { display: grid; grid-template-columns: minmax(0, 1fr) auto;
         align-items: start; column-gap: .25rem; row-gap: .25rem }
  .top > .brand, .top > .row { min-height: 2.75rem; align-items: center }
  .top > .brand, .top > .row { grid-column: 1; grid-row: 1 }
  .top > .headright { grid-column: 2; grid-row: 1 }
  .top > .headnote { grid-column: 1 / -1; grid-row: 2; width: auto; min-width: 0 }
  .headright > .row { gap: .25rem }
  .top .brand { min-width: 0 }
  .top .brand .word { min-width: 0; overflow: hidden; text-overflow: ellipsis }
  /* '‹ 첫화면' 은 화살표만 남긴다. 뜻은 aria-label 로 그대로 있다. */
  .top .brand .leave .tx { display: none }
  /* ⚠️ 화살표만 남으면 **화살표가 글자 크기**여야 한다. .68rem 그대로 두었더니
     10px 짜리 점처럼 보여 "나가는 길" 로 안 읽혔다(2026-11-02). */
  .top .brand .leave { font-size: 1.25rem; line-height: 1; font-weight: 600; padding-left: .4rem }
}
/* 이보다 더 좁으면 그제야 접는다 — 배너 글자를 다 줄여도 안 들어갈 때다.
   재어 보니 360px 까지는 한 줄로 든다(배너 44px 유지). */
@media (max-width: 20rem) {
  .top { flex-wrap: wrap }
  .top { flex-wrap: wrap }
  .top .headright { width: 100%; align-items: flex-end }
}

/* 바닥글 — 한 줄, 조용히. */
.foot { margin-top: 2.25rem; padding-top: .75rem; border-top: 1px solid var(--line);
        font-size: .82rem; color: var(--muted); text-align: center }
.foot a { color: var(--muted); text-decoration: none }
.foot a:hover { color: var(--accent); text-decoration: underline }


/* 구글 단추가 내려올 때까지 자리를 지키는 알약 — 같은 크기(200×32), 눌리지 않는다 */
.loginbox .gph { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 200px; height: 32px;
  box-sizing: border-box; pointer-events: none; border-radius: 999px; border: 1px solid #dadce0; background: #fff;
  color: #3c4043; font: 500 14px/1 "Roboto", "Noto Sans KR", system-ui, sans-serif; white-space: nowrap; box-sizing: border-box }
.loginbox .gph.dark { background: #131314; border-color: #8e918f; color: #e3e3e3 }
.loginbox .gph svg { flex: none }
.loginbox .gbtn[hidden] { display: none }

/* 트립챗 글자 로고: Trip 은 강조색, Chat 은 본문색 */
.brand .word b { color: var(--accent); font-weight: 800 }

/* ── 카드: 선 대신 그림자로 ──────────────────────
   2026-11-29 태인(베어스타 제보 "네모칸이 너무 많다 · 진행일정 테두리를 지우는 느낌"):
   D-004 의 "그림자 없이 1px 가는 선" 을 뒤집는다 — 선은 지우고 옅은 그림자 + 배경 대비로만
   깊이를 준다(호텔스닷컴식, docs/taein/일정-테두리-시안.html 안1). 테두리는 투명하게 남겨
   눌림(.cardpress)·강조(.hi)·포커스가 레이아웃 흔들림 없이 그대로 걸리게 한다.
   주 단추: 완전한 알약. 초점 고리는 2px 파랑. */
.card { border-color: transparent; box-shadow: 0 1px 2px rgba(30,58,95,.05), 0 4px 10px rgba(30,58,95,.08) }
.card:hover { border-color: transparent; box-shadow: 0 1px 2px rgba(30,58,95,.07), 0 6px 14px rgba(30,58,95,.12) }
button.primary, .cfm-btn.primary, .sm.primary { border-radius: 999px }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
:root[data-theme="dark"] :focus-visible { outline-color: #5ab8f5 }

/* 구글 단추가 내려올 때까지 서 있는 대기 단추.
   ⚠️ 전에는 themebtn 을 같이 쓰고 있어서 첫 화면의 2.1rem 동그라미
      규칙에 갇혀 글자가 찌그러졌다. 이제 제 모양을 따로 가진다.
   크기를 구글 단추(200×32)와 맞춘다 — 갈아 끼울 때 화면이 안 흔들리게. */
.loginbox .gwarm {
  display: inline-flex; align-items: center; justify-content: center;
  width: 200px; height: 32px; min-height: 0; padding: 0 1rem;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--fg); font-size: .82rem; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.loginbox .gwarm:hover { border-color: var(--accent); color: var(--accent) }
.loginbox .gwarm[disabled] { opacity: .6; cursor: default }
@media (max-width: 30rem) {
  .loginbox .gwarm { width: auto; min-width: 0 }
}

/* ── 머리줄 겁침 ──────────────────────────────
   "‹ 첫화면" 위에 "⚠ 서버 연결이 안 돼…" 가 겹쳐 찍혔다. 둘이 같은 줄에
   있는데 안내문에 폭 제한이 없어서, 길어지면 로고 쪽으로 넘어왔다.
   폭을 잡고 넘치면 말줄임표로 줄인다 — 긴 안내는 마우스를 올려 보면 된다. */
#draftState {
  max-width: 13rem; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 0 1 auto;
}
#draftState:empty { display: none }
@media (max-width: 40rem) {
  /* 좁은 화면에서는 아예 감춘다 — 로고·로그인·⋯ 만해도 자리가 빠들하다. */
  #draftState { display: none }
}
/* 로고는 줄어들지 않는다 — 줄어들면 글자가 깨져 보인다. */
.top .brand { flex: 0 0 auto; min-width: 0 }


/* ── 상세 패널의 줄 카드 ───────────────────────────────
   "N일차에서 고치기" 가 회색 네모라 옆의 알약(미예약·예약함)과 따로 놀았다.
   한 줄에 서는 것끼리는 같은 꼴이어야 한 덩어리로 읽힌다.
   ⚠️ 이건 **누르는 것**이고 옆의 알약은 **표시**다 — 같은 알약 꼴이되
      테두리와 색으로 "눌린다"는 것이 보이게 한다. */
.panel.rowitem {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
}
.panel.rowitem .label { flex: 1 0 100%; font-size: .76rem; color: var(--muted) }
.panel.rowitem .v { flex: 1 0 100%; font-weight: 700 }
.panel.rowitem .st { flex: 1 0 100%; font-size: .82rem; color: var(--muted); margin-bottom: .15rem }
.panel.rowitem .sm {
  min-height: 0; padding: .25rem .75rem; font-size: .82rem; font-weight: 600;
  border-radius: 999px; border: 1px solid var(--accent);
  background: var(--surface); color: var(--accent);
}
.panel.rowitem .sm:hover { background: var(--accent); color: var(--accent-fg) }
.panel.rowitem .sm:active { transform: translateY(1px) }

/* ── 예약 링크 줄 ─────────────────────────────────────
   넣기·열기·처음부터 다시가 넷이 나란히 서 있었다. 넷이 한 줄에 있으면
   무엇이 지금 할 일인지 안 보인다. 상태를 둘로 가르고 단추는 둘만 둔다.
     비어 있음 : [입력칸] [확인]
     넣은 뒤   : [넣은 주소] [열기] [삭제] */
.modal-f { padding: .5rem .75rem; gap: .3rem }
.modal-f .st { color: var(--muted); font-weight: 600; margin-bottom: .1rem }
/* ── 예약 확인증 링크 칸 ──────────────────────────────
   ⚠️ 칸이 **좁았다.** `flex: 1` 이 input 에 걸려 있었는데 실제 flex 칸은
      칸과 지우개를 감싼 .urlwrap 이라, 안쪽 input 은 제 내용 크기로만
      늘었다. 늘리는 규칙은 **자라야 하는 것**에 걸어야 한다.
   ⚠️ 오른쪽 안쪽을 **비워 둔다**(padding-right). 지우개가 거기 앉는다 —
      비워 두지 않으면 적은 주소 끝 글자가 × 밑에 깔린다. */
.modal-f .urlwrap { position: relative; display: block }
.modal-f .urlwrap input { width: 100%; padding-right: 1.7rem }
.modal-f input {
  min-height: 0; padding: .5rem .75rem; font-size: .82rem;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
}
.modal-f input:focus { border-color: var(--accent) }
.modal-f input[hidden] { display: none }

/**
 * 칸 **안쪽 오른쪽**의 지우개(×).
 *
 * ⚠️ 꾸밈이 **하나도 없었다.** 그래서 브라우저 기본 단추로 떠서 — 회색
 *    바탕에 테두리까지 둘린 네모가 — 칸 **밖 오른쪽**, '예약완료' 옆에
 *    덩그러니 서 있었다. 찾기 칸의 × 처럼 **칸 안에 흐린 글자**로 둔다.
 * ⚠️ 자리를 **미리 비워 둔다.** 적기 전에는 안 보이지만(visibility)
 *    자리는 차지한다 — display:none 으로 빼 두면 글자를 치는 순간 칸이
 *    짧아지면서 커서가 밀린다.
 */
.modal-f .wipe {
  position: absolute; top: 50%; right: .15rem; transform: translateY(-50%);
  width: 1.4rem; height: 1.4rem; min-height: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 50%;
  font-size: 1rem; line-height: 1; color: var(--muted); opacity: .55;
  cursor: pointer;
}
.modal-f .wipe:hover { opacity: 1; color: var(--fg); background: var(--sunken) }
/* 안 보여도 **자리는 지킨다.** `[hidden]` 은 못 쓴다 — 이 화면의
   `[hidden] { display:none !important }` 가 자리까지 없애서, 글자를 치는
   순간 칸이 짧아지며 커서가 밀린다. */
.modal-f .wipe.off { visibility: hidden }

/* 넣은 주소 — 눌리는 글줄. 길면 줄임표, 올리면 전체가 보인다. */
.modal-f .linkshown {
  flex: 1; min-width: 7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .82rem; color: var(--accent); text-decoration: none;
  padding: .25rem .75rem; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid transparent;
}
.modal-f .linkshown:hover { border-color: var(--accent) }
.modal-f .linkshown[hidden] { display: none }

.modal-f .sm {
  flex: none; min-height: 0; padding: .25rem .75rem; font-size: .82rem; font-weight: 600;
  border-radius: 999px; white-space: nowrap;
}
.modal-f .sm.primary { background: var(--accent); color: var(--accent-fg); border: 1px solid var(--accent) }
.modal-f .sm.primary:hover { filter: brightness(1.08) }
.modal-f .sm.ghost { background: none; border: 1px solid var(--line); color: var(--muted) }
.modal-f .sm.ghost:hover { border-color: var(--warn); color: var(--warn) }
.modal-f .sm[hidden] { display: none }

/* 하는 일이 다른 것은 단추로 두지 않는다 — 나란히 두면 같은 무게로 읽힌다.
   ⚠️ 다만 **눌리기는 해야 한다.** 0.74rem 글자에 여백 0 으로 바닥에 바짝
      붙여 두었더니 손가락이 못 맞혔다. 무게는 그대로(테두리 없는 글자)
      두되 **닿는 자리를 키우고 바닥에서 띄운다.**
   ⚠️ 오른쪽으로 보낸다 — 왼쪽 끝은 '확인·삭제' 가 서는 자리라, 되돌리는
      일이 거기 있으면 같은 줄로 읽힌다. */
/* ⚠️ **제 줄을 통째로 쓰던 자리다**(flex-basis:100%). 글자 넉 자짜리
   단추 하나가 한 줄을 다 먹고, 그 아래 여백까지 더해져 배너 위가 비었다.
   같은 줄 오른쪽 끝에 세운다 — 왼쪽 끝은 '예약완료·삭제' 자리라 되돌리는
   일이 거기 있으면 같은 줄로 읽힌다. 좁으면 알아서 다음 줄로 접힌다. */
.modal-f .linkreset {
  margin: 0 0 0 auto; padding: .25rem .25rem; min-height: 2.1rem;
  background: none; border: 0; text-align: right; white-space: nowrap;
  font-size: .76rem; color: var(--muted); text-decoration: underline dotted; cursor: pointer;
}
.modal-f .linkreset:hover { color: var(--accent) }
/* 날 지도 밑 「관심없음 초기화」(관광지 · 이벤트 · 숙소) — 창 아래 초기화와 같은 꼴(테두리 없는 글자) · 오른쪽 · 관심없음이 있을 때만 */
/* 지도 바로 밑 띠(크게 보기 줄) 오른쪽 끝 · 눈에 띄는 알약 단추 */
.placereset {
  margin-left: auto; align-self: center; padding: 0 .55rem; min-height: 0 !important; min-width: 0 !important; height: 1.5rem; border-radius: 999px;   /* 앱(터치) 44px 규칙에서 뺌 — 크게 보기(.mapbig)와 같게 · 2026-11-16 승주 */
  background: #ebfbee; border: 1px solid #8fd19e; color: #2b8a3e;   /* 관광지 세트 색(지도 정보 단추 · 선호 글자와 같은 초록 · 2026-11-16 승주) */
  font-size: .7rem; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer;
}
.placereset:hover, .placereset:focus-visible { background: #2b8a3e; border-color: #2b8a3e; color: #fff }
.placereset[hidden] { display: none }

/* 항공 예약 덮개는 아래에서 올라온다 — 바닥에 바짝 붙으면 손가락이 걸친다.
   폰의 아래 제스처 막대를 피해 한 칸 띄운다. */
.modal-f { padding-bottom: calc(.3rem + env(safe-area-inset-bottom, 0px)) }


/* 메뉴 맨 아래 부록. 약관·계정 삭제처럼 **닿을 수는 있어야 하지만 자주
   쓰지는 않는** 글을 여기 모은다. 메뉴 항목과 같은 키로 늘어서 있으면
   '일정 공유하기' 와 같은 무게로 읽혀서, 정작 자주 쓰는 것이 묻힌다.
   가는 선 하나로 위와 끊고, 글자를 줄이고, 색을 뺀다. */
.morepanel .morefoot {
  margin-top: .25rem; padding-top: .5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .125rem .75rem;
}
.morepanel .morefoot a {
  font-size: .68rem; color: var(--muted); text-decoration: none;
  padding: .25rem 0; line-height: 1.4;
}
.morepanel .morefoot a:hover { color: var(--fg); text-decoration: underline }

/* AI 가 지금 쓰고 있는 날. 흐리게만 두면 "왜 안 눌리지" 가 되므로
   띠를 둘러 **지금 여기가 작업 중**임을 말한다. 다른 날은 멀쩡히 열려 있어
   둘이 구별돼야 한다. */
/* ⚠️ **줄 안의 모든 것을 못 누르게.** disabled 가 안 먹는 것들이 있다 —
   위치 찾기는 <a>, 종류 동그라미는 <span role="button"> 이다. 하나만 눌리면
   사람은 '막힌 게 아니라 고장난 것' 으로 읽는다. 덮어서 한꺼번에 막는다.
   (키보드 쪽은 markDays 가 tabindex 를 빼서 막는다) */
/* 남 · AI 가 고치는 날 — **줄은 눌러 펼쳐 보기만**(2026-11-16 승주: "편집 중이어도 상세 보는 건 열리게 · 수정만 막으면") ·
   칸 · 단추 · 링크 · 종류 동그라미는 그대로 막힘(markDays 가 disabled · 여기서 눌림도) */
.day.writing .item a, .day.writing .item button, .day.writing .item [role="button"], .day.writing .item input, .day.writing .item select, .day.writing .item textarea { pointer-events: none }
.day.writing { position: relative; opacity: .62 }
/* (날 카드 위에 띄우던 까닭 글(::after)은 걷었다 — 첫 줄과 겹쳤다 · 2026-11-07 승주: "문구는 하나만 있으면 돼 · 위에 겹쳐 위 영역은 빼 줘".
   까닭은 누를 때 아래 알림 하나로만 · 누가 고치는 중인지는 머리 띠가 보여 준다.) */
.day.writing { outline: 2px dashed var(--accent); outline-offset: 2px; border-radius: .6rem }

/* ── 첫 화면다움 ──────────────────────────────────────
   바탕색과 띠만으로는 모자랐다. 눈은 색에 금방 익어서, 며칠 쓰고 나면
   "여기가 어디지" 가 다시 온다. **글 한 줄**은 읽히는 동안 계속 말해 준다. */
body[data-page="home"] .hero { margin: .2rem 0 1.1rem }
body[data-page="home"] .hero-l {
  margin: 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--fg); line-height: 1.25;
}
body[data-page="home"] .hero-s {
  margin: .25rem 0 0; font-size: .88rem; color: var(--muted); line-height: 1.5;
}
@media (max-width: 480px) {
  body[data-page="home"] .hero-l { font-size: 1.25rem }
  body[data-page="home"] .hero-s { font-size: .8rem }
}

/* 다녀온 여행 — 다 끝난 일이라 **조용히** 둔다. 지우는 것은 아니다.
   왼쪽 띠에서 색을 빼고 바탕을 한 톤 내려, 아직 갈 여행과 한눈에 갈린다. */
body[data-page="home"] .tripcard.done {
  border-left-color: var(--line-strong);
  background: var(--sunken);
}
body[data-page="home"] .tripcard.done .t { color: var(--muted) }
body[data-page="home"] .tripcard.done:hover { border-left-color: var(--muted) }
.tripcard .badge-done {
  font-size: .6rem; font-weight: 700; letter-spacing: .02em;
  color: var(--muted); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0 .5rem; white-space: nowrap;
}

/* 장소 이름 옆의 현지 원문. 한국어 이름보다 한 톤 흐리게 — 찾을 때 쓰는
   글자지 읽는 글자가 아니다. 같은 굵기로 붙이면 이름이 두 배로 길어 보여서,
   훑을 때 정작 한국어 이름이 눈에 안 들어온다. */
.ovrow .nm .nmlocal {
  color: var(--muted); font-weight: 400; font-size: .92em; margin-left: .12em;
}

/* 관리자만 보는 '넘긴 글 보기'. 답과 섞이지 않게 작고 흐리게 둔다 —
   쓰는 사람에게 보여 줄 것이 아니라 들여다볼 때만 누르는 것이다. */
.turn .tracebtn {
  display: inline-block; margin-top: .25rem;
  font-size: .68rem; font-weight: 600; line-height: 1.3;
  padding: .125rem .5rem; border-radius: 999px;
  border: 1px dashed var(--line-strong); background: transparent;
  color: var(--muted); cursor: pointer; min-height: 0;
}
.turn .tracebtn:hover { color: var(--accent); border-color: var(--accent) }

/* 채우는 띠 안의 단추(이어서 짜기). 글과 한 줄에 서도록. */
.fillbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem }
.fillbar .sm { min-height: 1.8rem; padding: .25rem .75rem; font-size: .76rem }

.loginbox .who { border: 0; background: none; padding: .125rem .25rem; min-height: 0; color: inherit; font: inherit }

/* ── AI 에게 넘긴 글 보기 ────────────────────────────
   새 창이 아니라 **화면 안 덮개**다. 앱(WebView)에는 주소창도 닫기 단추도
   없어서, 새 창으로 띄우면 빠져나올 길이 없다. */
.traceback {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.tracebox {
  background: #111113; color: #e6e6ea; border-radius: 12px;
  width: min(100%, 60rem); max-height: 90vh; display: flex; flex-direction: column;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.tracehd {
  display: flex; gap: .5rem; align-items: center;
  padding: .5rem .75rem; border-bottom: 1px solid #2c2c2e;
}
.tracehd h3 { flex: 1; margin: 0; font: 600 .88rem/1.4 system-ui; color: #a1a1a6 }
.tracehd .sm { background: #2c2c2e; color: #e6e6ea; border-color: #48484a }
.tracehd .sm.primary { background: var(--accent); border-color: var(--accent); color: #fff }
.tracepre {
  margin: 0; padding: 1rem; overflow: auto; flex: 1;
  font: .78rem/1.6 ui-monospace, Consolas, monospace;
  white-space: pre-wrap; word-break: break-word;
}

/* ── 공용 덮개 ────────────────────────────────────────
   새 창 대신 화면 안에 띄운다. 앱(WebView)에는 주소창도 닫기 단추도
   없어서, 새 창으로 띄우면 빠져나올 길이 없다. */
.ovback {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(0, 0, 0, .45);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.ovbox {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  width: min(100%, 30rem); max-height: 88vh; display: flex; flex-direction: column;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
}
.ovbox.wide { width: min(100%, 54rem) }
.ovhd {
  display: flex; align-items: center; gap: .5rem;
  padding: .75rem 1rem; border-bottom: 1px solid var(--line);
}
.ovhd h3 { flex: 1; margin: 0; font: 600 .95rem/1.4 inherit }
.ovx {
  width: 1.9rem; height: 1.9rem; border: 0; border-radius: 50%; padding: 0;
  background: none; color: var(--muted); font-size: 1rem; cursor: pointer;
}
.ovx:hover { background: var(--sunken); color: var(--fg) }
.ovbody { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; overflow: auto }
.ovhint { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.5 }
.ovbody .link { width: 100%; font-size: .95rem; padding: .6rem .7rem }
.ovfoot { display: flex; justify-content: flex-end; gap: .5rem }
/* 확인이 스크롤로 밀려 자판 밑에 가려지지 않게(2026-11-19 베어스타: "키보드가 올라와서 확인버튼이 안보이는데
   어떻게하지") — 만원 입력 팝업(.manpop)은 이름 · 유형 · 낸 사람 · 통화 · 금액 칸이 많아 좁은 화면 · 자판이
   뜬 상태에서 확인이 스크롤 아래로 밀린다. 스크롤 컨테이너(.ovbody) 바닥에 붙여 늘 보이게 한다. */
.manpop .ovfoot {
  position: sticky; bottom: -.75rem; margin: .15rem -.75rem -.75rem; padding: .5rem .75rem;
  background: var(--surface); border-top: 1px solid var(--line); z-index: 1;
}

/* ── 사진 넘겨 보기 ──────────────────────────────────
   가로로 밀어 본다. 세로로 쌓으면 다섯 장이 화면을 넘겨 스크롤이
   길어지고, 몇 장인지 한눈에 안 들어온다.
   scroll-snap 을 걸어 **한 장씩 딱딱 멈추게** 한다 — 어중간하게 걸친
   채로 멈추면 두 장이 반씩 보여 어느 것을 보는지 알 수 없다. */
.shotwrap { padding: 1rem; display: flex; flex-direction: column; gap: .5rem;
  overflow: auto; min-height: 0 }   /* 창(88vh)보다 길면 **창 안에서** 굴린다 — 전에는 아래 링크 · 번호가 하얀 창 밖으로 흘러넘쳤다(2026-11-08) */
/* ⚠️ **한 장이 한 칸을 꽉 채운다.** 전에는 86vw 라 다음 장이 옆에 반쯤
      걸쳐 보였는데, 그러면 한 장을 제대로 보는 것도 넘기는 것도 어중간하다.
      칸 너비(100%)에 맞추고 scroll-snap 으로 딱딱 끊어 넘어가게 한다.
   ⚠️ gap 을 0 으로 둔다. 틈이 있으면 한 장 넘길 때마다 그 틈만큼 어긋나,
      몇 장 지나면 사진이 가운데에서 벗어난다. */
.shotstrip {
  display: flex; gap: 0; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shotstrip::-webkit-scrollbar { display: none }
.shotstrip .shot {
  flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always;
  width: 100%;
}
.shotstrip .shot img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 8px; display: block; background: var(--sunken);
}
.shotstrip .shot figcaption {
  margin-top: .25rem; font-size: .76rem; color: var(--muted);
}
/* 몇 장 중 몇 번째인가. 손가락이 없는 기기를 위해 화살표도 둔다. */
.shotnav { display: flex; align-items: center; justify-content: center; gap: .5rem;
           margin-top: .45rem }
.shotarrow {
  min-height: 0; width: 1.9rem; height: 1.9rem; padding: 0; border: 1px solid var(--line);
  background: var(--surface); color: var(--fg); border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
  line-height: 1;
}
.shotarrow:hover { border-color: var(--line-strong) }
/* ⚠️ 끝에 닿으면 **흐리게 두되 숨기지 않는다.** 사라지면 자리가 움직여
      점이 좌우로 흔들린다. */
.shotarrow:disabled { opacity: .3; cursor: default }
.shotdots { display: inline-flex; gap: .25rem; align-items: center }
.shotdot {
  min-height: 0; width: .5rem; height: .5rem; padding: 0; border: 0; border-radius: 999px;
  background: var(--line-strong); cursor: pointer; position: relative; opacity: .5;
}
/* 점은 작아야 예쁘고 눌리기는 커야 한다 — 가짜 겹을 깔아 둘 다 얻는다. */
.shotdot::after { content: ""; position: absolute; inset: -7px }
.shotdot.on { background: var(--accent); opacity: 1; width: 1.1rem }
.shotdot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }

/* ── 채팅 시트 손잡이: 넓게, 잡으면 티 나게 ──────────────────
   전에는 막대 5px + 여백뿐이라 손가락이 빗나가 윗화면이 스크롤됐다.
   누르는 영역을 2.6rem 높이 전체 폭으로 넓히고(보이는 막대는 그대로),
   잡는 순간 막대가 파랗게·굵게 되어 "잡혔다" 가 보인다. */
.sheet .handle { min-height: 2.6rem; justify-content: center; position: relative; touch-action: none;
                 -webkit-tap-highlight-color: transparent }
.sheet .handle::before { content: ""; position: absolute; left: 0; right: 0; top: -.6rem; bottom: -.4rem }   /* 보이지 않는 여유 */
.sheet .handle .bar { width: 2.8rem; height: 5px; background: var(--line-strong); transition: width .12s, height .12s, background .12s }
.sheet .handle:hover .bar { background: var(--muted) }
.sheet .handle.grabbing .bar { width: 4.2rem; height: 7px; background: var(--accent) }
.sheet.grabbing { box-shadow: 0 -2px 0 var(--accent), 0 -4px 18px rgba(0,0,0,.14) }
body.sheet-drag { user-select: none; -webkit-user-select: none; overscroll-behavior: contain }
body.sheet-drag .wrap { pointer-events: none }        /* 끄는 동안 윗화면이 눌리거나 밀리지 않게 */
@media (prefers-reduced-motion: reduce) { .sheet .handle .bar { transition: none } }

/* 고정 띠는 쓰지 않는다 (2026-10-23) */
.focusbar { display: none !important }

/* 구글 단추: 자리는 미리 잡고, 내려오면 살짝 나타난다 (임시 단추 없음) */
.loginbox .gbtn { transition: opacity .25s ease-out }
.loginbox .gbtn.pending { opacity: 0; pointer-events: none }   /* 자리는 그대로, 보이지만 않게 — 구글이 크기를 잡을 수 있다 */
.loginbox .gbtn.in { opacity: 1 }
@media (prefers-reduced-motion: reduce) { .loginbox .gbtn { transition: none } }

/* ⚠️ 여기 `#sheetClose { display: none }` 이 있었다 — "손잡이를 끝까지
   끌어내리면 닫히니 단추는 필요 없다" 는 뜻이었다. 그런데 **끌어야만
   닫히는 창**은 끄는 법을 아는 사람에게만 닫힌다. 폰에서는 손잡이가 그저
   회색 막대라, 그걸 잡아 내릴 수 있다는 것을 아무 데도 안 알려 준다.
   실제로 "닫기 버튼이 없네, 스크롤 내려야 닫혀" 라는 말을 들었다.
   닫는 길은 **보여야** 한다 — 끄는 길은 그대로 두고 단추를 되살린다.
   (글자를 단 알약이라 어두운 화면에서도 읽힌다 — .sheetbtn.wide 참고.) */
/* 바닥에 닿아 "놓으면 닫힘" 인 상태: 막대가 흐려지고 시트가 살짝 가라앉는다 */
.sheet.willclose { opacity: .72 }
.sheet.willclose .handle .bar { background: var(--muted) !important; width: 2.2rem !important }

/* ⚠️ 장소 칸의 자동완성(돋보기 + 고르기 목록)을 걷었다. 찾는 길이
   '📍 위치 확인' 과 둘이어서, 쓰는 사람은 매번 어느 쪽인지 골라야
   했고 고치는 쪽은 두 벌을 맞춰 둬야 했다. 생김새도 같이 걷는다. */
/* 기준 자리에서 **몇 km** 인지. 이름 바로 옆이라야 같이 읽힌다. */

/* ── AI 가 도는 동안 ────────────────────────────────
   ⚠️ **숨기지 않는다.** 단추가 사라지면 사람은 그 기능이 없어진 줄 안다 —
      "있는데 지금은 못 쓴다" 와 "아예 없다" 는 다른 말이다. 뿌옇게 두고
      못 누르게만 한다.
   ⚠️ 표시는 몸통(body.ai-busy) 하나에만 건다. 단추마다 따로 끄면 그 사이에
      새로 그려진 단추는 멀쩡히 살아 있다 — 상세 화면의 "이 날만 다시
      짜기" 가 그래서 AI 가 도는 중에도 눌렸다. */
/* ⚠️ 날 안에 있는 것은 **그 날이 쓰이는 중일 때만** 막는다(.day.writing).
      몸통 표시 하나로 전부 막았더니, AI 가 3일차를 쓰는 동안 **다 끝난
      1일차의 지우기·더하기까지** 흐려져 눌리지 않았다. 끝난 날은 이미
      저장까지 됐으므로 고쳐도 덮일 것이 없다 — 기다리는 동안 할 수 있는
      일이 있어야 한다.
      반대로 일정을 통째로 건드리는 것(전체 돌리기·전체 확정·조건 칩)은
      날과 상관없으므로 그대로 몸통에 건다. */
body.ai-busy .lockall,
body.ai-busy .chip.redo,
body.ai-busy #detailChips .chip,
body.ai-busy .card .redo,
body.ai-busy .day.writing .redo,
body.ai-busy .day.writing .addfab,
body.ai-busy .day.writing .item .x,
body.ai-busy .day.writing > header .sm {
  opacity: .42;
  pointer-events: none;
  filter: grayscale(.4);
}
/* 왜 못 누르는지 손가락이 머무를 때라도 알려 준다. */
body.ai-busy .lockall, body.ai-busy .card .redo,
body.ai-busy .day.writing .redo { cursor: not-allowed }

/* ── 종류마다 테두리 색 ─────────────────────────────
   ⚠️ 그림만 다르면 **훑어볼 때 안 보인다.** 줄이 열 개쯤 쌓이면 아이콘은
      다 비슷한 크기의 회색 덩어리로 보인다. 왼쪽 선 하나에 색을 주면
      "숙소가 여기 있구나" 가 눈으로 바로 들어온다.
   ⚠️ 지도 핀과 **같은 색**을 쓴다(app.js 의 KIND_PIN). 줄과 지도가 다른
      색이면 같은 것을 두 번 외워야 한다. */
.item[data-kind="stay"] { border-left: 3px solid var(--stay); padding-left: .45rem }
.item[data-kind="move"] { border-left: 3px solid var(--move); padding-left: .45rem }
.item[data-kind="eat"]  { border-left: 3px solid var(--eat);  padding-left: .45rem }
.item[data-kind="see"]  { border-left: 3px solid var(--see);  padding-left: .45rem }
.item[data-kind="shop"] { border-left: 3px solid var(--shop); padding-left: .45rem }
/* ⚠️ **기타만 띠가 없었다.** 다른 갈래는 왼쪽 색으로 한눈에 갈라지는데
   기타는 맨몸이라, 훑을 때 그 줄만 갈래가 없는 것처럼 보였다.
   색은 **회색**이다 — 기타는 '아직 안 정한 자리' 라 색이 말을 걸면 안
   된다. 다만 **아무 표시도 없는 것**과 '정하지 않음' 은 다르다. */
.item[data-kind="etc"]  { border-left: 3px solid var(--etc);  padding-left: .45rem }
.item.isact { border-left-color: var(--tour) }
/* 티켓 그림 — 우리가 그린 SVG(이모지 그림은 기기 회사 것이라 쓰지 않는다 · 불편사항 #5) · 색 = 글자색(currentColor) */
.tkico { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.15em; margin-right: .25em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v2.2a2.8 2.8 0 0 0 0 5.6V17a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2.2a2.8 2.8 0 0 0 0-5.6Z M9 7v2 M9 11v2 M9 15v2' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v2.2a2.8 2.8 0 0 0 0 5.6V17a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2.2a2.8 2.8 0 0 0 0-5.6Z M9 7v2 M9 11v2 M9 15v2' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat }
.item.isact .tkico, .tourfind .tkico { color: var(--tour) }
.stay-card.tourcard { border-left: 1px solid var(--line) }   /* 투어 카드엔 왼쪽 굵은 띠 없음 — 숙소 띠와 헷갈렸다 */
/* 투어 그림 칸 — 그림이 없거나 못 불러오면 티켓 그림(받은 그림 크기가 700×700 · 940×662 · 1600×1067 제각각 → 칸에 꽉 차게 cover) */
.pick img.tourimg, .stay-card img.tourimg { object-fit: cover }
.tkimg { display: flex; align-items: center; justify-content: center; border-radius: 4px; color: var(--tour);
  background: color-mix(in srgb, var(--tour) 12%, var(--sunken)); flex: none }
.tkimg .tkico { width: 1.8rem; height: 1.8rem; margin: 0; vertical-align: 0 }
.pick .tkimg { width: 6.4rem; height: 4.6rem }
.stay-card .tkimg { width: 5rem; height: 3.6rem }
@media (max-width: 30rem) {
  .pick .tkimg { width: 4.6rem; height: 3.4rem }
  .stay-card .tkimg { width: 3.5rem; height: 2.6rem }
}
/* 항공은 이동 중에서도 더 또렷하게 — 되돌릴 수 없는 예약이 걸리는 줄이다. */
.item[data-move="air"] { border-left-width: 4px }


/* ── 로그인 전에도 머리줄이 화면 안에 들어오게 ───────────
   ⚠️ "로그인하기 전에만 화면이 좌우로 흔들린다" 는 말을 들었고, 재어 보니
      그대로였다: 손님 크레딧 알약(68) + 구글 단추(200) + 배너(103) +
      ⋯(34) = 화면(358)을 넘는다. 넘친 만큼 페이지가 옆으로 끌린다.
      로그인하면 알약이 작은 이름표로 바뀌어 딱 맞으니, 로그인 뒤에는
      멀쩡해 보였던 것이다.
   구글 단추는 200 아래로 못 줄인다(그쪽이 정한 크기이고, 줄이면 잘려서
   눌리지도 않는다). 그래서 **알약을 아래 줄로 내린다** — 폭은 그대로고
   줄만 하나 는다. */
.loginbox { flex-wrap: wrap; row-gap: .15rem }
/* 알약에게 **한 줄을 통째로** 준다(기준폭 100%). 그냥 wrap 만으로는 안 된다 —
   이 상자는 폭이 내용에 맞춰 늘어나는 자리라, 접을 일이 생기지 않고 그냥
   옆으로 길어졌다(재어 보니 275px 그대로였다). 한 줄을 차지하게 하면
   상자의 폭은 구글 단추(200) 그대로고 줄만 하나 는다. */
.loginbox[data-guest] { max-width: 200px }          /* 구글 단추 폭. 이만큼만 쓰고 접는다 */
.loginbox .credit.guest { flex: 0 0 100%; text-align: right; font-size: .68rem;
                          padding-top: 0; padding-bottom: 0 }

/* 그래도 한 자리가 또 넘치면, 넘치더라도 **끌리지는 않게** 막아 둔다.
   ⚠️ hidden 이 아니라 clip 이다 — hidden 은 안쪽 position:sticky 를 같이
      망가뜨린다(머리말·시트가 안 붙는다). */
html { overflow-x: clip }
/**
 * ⚠️ **세로 스크롤 자리를 늘 비워 둔다.**
 *
 * 대화창을 끌어 올리면 본문이 그만큼 짧아진다. 그러다 **세로 스크롤막대가
 * 사라지는 순간** 본문 너비가 막대 두께(보통 15px)만큼 넓어지고, 다시
 * 내리면 좁아진다 — 위 화면이 **좌우로 흔들리는** 것처럼 보인 까닭이다.
 * 막대가 있든 없든 그 자리를 비워 두면 너비가 안 바뀐다.
 * (폰에는 자리를 차지하는 막대가 없어 아무 일도 안 일어난다.)
 */
html { scrollbar-gutter: stable }
body { overflow-x: clip; max-width: 100% }

/* ── 손가락이 닿는 자리 ─────────────────────────────
   ⚠️ 안드로이드는 화면 **맨 아래에 제 단추들**(뒤로·홈·최근)이, 맨 위에
      상태 표시줄이 있다. 거기 바짝 붙은 것은 눌러도 안 눌린다 — 손가락이
      시스템 쪽을 먼저 맞힌다. 그만큼 띄우고, 단추 자체도 키운다. */
/* ⚠️ 여기에 env(safe-area-inset-bottom) 을 또 넣으면 **두 번 더해진다** —
   좁은 화면에서 이 창은 아래에 붙는 시트라, `.cfm` 이 이미 그만큼 띄우고
   있다. 여기서는 단추만 키운다. */
.cfm-row .cfm-btn { min-height: 2.9rem; padding-left: 1rem; padding-right: 1.1rem }
/* 시트 바닥을 한 번 더 띄운다. 안드로이드 뒤로·홈·최근 단추가 바로 밑에
   있어서, 바짝 붙은 '확인·삭제' 는 손가락이 그쪽을 먼저 맞힌다. */
@media (max-width: 30rem) {
  .cfm { padding-bottom: calc(1.7rem + env(safe-area-inset-bottom, 0px)) }
}
/* ⚠️ 머리줄이 화면 꼭대기(상태 표시줄·노치)에 **바짝 붙어** 있었다.
   안전영역 값은 앱 WebView 에서 0 으로 오는 일이 많아, 그것만 믿으면
   아무것도 안 띄운 것과 같다. 눈에 보이는 만큼을 직접 준다. */
.top { padding-top: calc(.75rem + env(safe-area-inset-top, 0px)) }

/* 묻는 창 — 첫 줄은 무슨 일인가, 다음 줄은 누르면 어떻게 되나. */
.cfm-msg.lead { font-weight: 700 }
.cfm-msg + .cfm-msg { margin-top: .5rem; color: var(--muted) }
.cfm-msg + .cfm-msg strong { color: var(--fg) }

/* ── 알림 줄이 머리줄 폭을 정하지 않게 ──────────────────
   ⚠️ 일정 화면에서 **⋯ 단추가 화면 밖(399~433)에 나가** 아예 안 보였다.
      범인은 "AI 연결 안 됨 — 일정 직접 입력·저장은 됩니다" 한 줄이었다.
      이 글이 285px 를 달라고 하는 바람에 오른쪽 묶음 전체가 그만큼
      넓어졌고, 로그인·⋯ 가 그 밖으로 밀렸다. 고장 안내 한 줄이 멀쩡한
      단추를 가린 셈이다.
   width:0 + min-width:100% — 폭을 **요구하지는 않고**(0), 정해진 폭만큼
   **받아 쓴다**(100%). 글은 그대로 다 보이고, 줄 폭은 로그인·⋯ 가 정한다. */
.headright > .note { width: 0; min-width: 100%; margin: 0 }
.headright > .note:empty, .headright > .note[hidden] { display: none }
/* 첫 화면의 같은 글(.headnote)도 마찬가지 — 제 폭을 요구하지 않는다. */
.top > .headnote { width: 0; min-width: 100% }

/* 배너는 자리가 모자라면 줄어든다 — 안 줄어들면 오른쪽이 잘린다.
   (360px 폰에서 ⋯ 가 10px 밖으로 나가 있었다.) */
.top > .row { min-width: 0 }
.top .brand { min-width: 0; overflow: hidden }
.top .brand .word { flex: 0 1 auto }

/* 360px 안팎의 작은 폰 — 배너를 한 치수 줄여 ⋯ 를 화면 안으로 들인다.
   재어 보니 10px 이 모자랐다. 구글 단추(200)와 ⋯(34)는 못 줄이므로
   줄일 수 있는 것은 배너뿐이다. */
@media (max-width: 23rem) {
  .wrap { padding-left: .5rem; padding-right: .55rem }
  .top .brand .mark { width: 1.7rem; height: 1.7rem }
  .top .brand .word { font-size: .98rem }
  .top .brand { gap: .35rem }
}

/* ── 크레딧을 다 썼을 때 ────────────────────────────
   ⚠️ 0 이 되어도 알약은 회색이고 로그인 단추는 평소와 같았다. 그래서
      "다 쓰셨어요" 를 듣고도 **어디를 눌러야 하는지**가 화면에 없었다.
      막힌 사람에게는 막혔다는 말보다 **다음 한 걸음**이 먼저다. */
.loginbox .credit.out {
  background: var(--stop-soft); color: var(--stop);
  border-color: var(--stop); font-weight: 700;
}
/* 구글 단추는 구글이 그린 것이라 안을 못 건드린다 — 틀에 빨간 테를 두른다. */
.loginbox[data-out] .gbtn, .loginbox[data-out] .gph, .loginbox[data-out] .gwarm {
  outline: 2px solid var(--stop); outline-offset: 2px; border-radius: 4px;
}

/* ── 구글 로그인 단추(앱 안에서 우리가 그리는 것) ─────────
   ⚠️ 앱 WebView 에서는 구글이 그려 주는 단추가 돌지 않는다. 그렇다고 우리
      파란 알약에 "Google 로그인" 이라고만 적어 두면 **구글 로그인인 줄
      알아보지 못한다** — 사람들은 글자보다 그 하얀 단추와 G 마크를 보고
      안다. 구글 지침의 생김새(흰 바탕·회색 테·네 색 G·Roboto)를 그대로
      따른다. 색과 비례는 상표 규정이라 임의로 고치지 않는다. */
.loginbox .gbrand {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 200px; height: 32px; box-sizing: border-box; cursor: pointer;
  border-radius: 999px; border: 1px solid #dadce0; background: #fff; color: #3c4043;
  font: 500 14px/1 "Roboto", "Noto Sans KR", system-ui, sans-serif; white-space: nowrap;
}
.loginbox .gbrand:hover { background: #f8f9fa; border-color: #d2e3fc }
.loginbox .gbrand:active { background: #f1f3f4 }
.loginbox .gbrand[disabled] { opacity: .6; cursor: default }
.loginbox .gbrand.dark { background: #131314; border-color: #8e918f; color: #e3e3e3 }
.loginbox .gbrand.dark:hover { background: #1c1c1d }
.loginbox .gbrand:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px }

/* ── 관광지 정보 한 장 ──────────────────────────────
   사진 → 한 줄 요약 → 좋아요·아쉬워요 → 사람들 평 → 출처.
   위에서 아래로 한 번만 읽히게 쌓는다.

   ⚠️ 쪽을 나누지 않는다(사진 쪽 / 글 쪽). 나누면 둘을 번갈아 보려고
      손가락이 왔다 갔다 하고, 그러다 그냥 닫는다. 가야 할지 정하려면
      사진과 평을 **같이** 봐야 한다. */

/* 한 장뿐이면 옆으로 밀 것이 없다 — 꽉 채워 보여 준다. */
.shotstrip.one { overflow: visible }
.shotstrip.one .shot { width: 100% }
/* 빌려 온 사진이면 어디 것인지 밝힌다 — 안 밝히면 그 곳 사진인 줄 안다. */
.shotstrip .shot .nearby {
  display: inline-block; margin-top: .25rem; padding: .125rem .5rem;
  font-size: .68rem; border-radius: 999px;
  background: var(--sunken); color: var(--muted); border: 1px solid var(--line);
}

.pinfo { display: flex; flex-direction: column; gap: .7rem }
.pinfo .lead { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--fg) }

/* 좋은 점 · 아쉬운 점 — 나란히. 좁으면 위아래로.
   ⚠️ 아쉬운 점을 접거나 아래로 밀지 않는다. 가야 할지 정하는 데 가장
      쓸모 있는 쪽인데, 보기 좋으라고 숨기면 결정을 못 돕는다. */
.pinfo .pros { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem }
@media (max-width: 34rem) { .pinfo .pros { grid-template-columns: 1fr } }
.pinfo .procol {
  border: 1px solid var(--line); border-radius: 8px; padding: .5rem .75rem;
  background: var(--surface);
}
.pinfo .procol .h { font-size: .76rem; font-weight: 700; margin-bottom: .3rem }
.pinfo .procol.good { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)) }
.pinfo .procol.good .h { color: var(--ok) }
.pinfo .procol.bad { border-color: color-mix(in srgb, var(--warn) 35%, var(--line)) }
.pinfo .procol.bad .h { color: var(--warn) }
.pinfo .procol ul { margin: 0; padding-left: 1.05rem }
.pinfo .procol li { font-size: .88rem; line-height: 1.55; margin: .12rem 0 }

/* 한 줄짜리 사실들 — 제목은 작고 조용하게, 내용이 읽히게. */
.pinfo .pfact { display: flex; gap: .5rem; align-items: baseline; font-size: .88rem; line-height: 1.55 }
.pinfo .pfact .h { flex: none; width: 5.2rem; color: var(--muted); font-size: .78rem }
.pinfo .pfact .t { min-width: 0 }

/* 출처 — 어디서 읽은 것인지. 이게 없으면 AI 가 지어낸 말과 구별할 수 없다. */
.pinfo .psrc { display: flex; flex-wrap: wrap; gap: .25rem .5rem; align-items: baseline;
               padding-top: .5rem; border-top: 1px solid var(--line) }
.pinfo .psrc .h { color: var(--muted); font-size: .76rem }
.pinfo .psrc a { font-size: .76rem; color: var(--muted); text-decoration: none;
                 max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.pinfo .psrc a:hover { color: var(--accent); text-decoration: underline }

/* ── '정보' 단추의 상태 ──────────────────────────────
   AI 가 다 쓰면 정보를 저절로 받아 둔다. 그 동안 **무엇이 되고 있는지**
   보여야, 잠시 뒤 글자가 바뀌는 것이 고장으로 안 읽힌다.
   ⚠️ 돌아가는 그림은 안 쓴다 — 줄이 스무 개면 스무 개가 같이 돌아 어지럽다.
      글자와 옅은 색만으로 충분하다. */
.act2.infobtn[data-info="busy"] { opacity: .62; font-style: italic }
.act2.infobtn[data-info="ready"] { border-color: var(--accent) }
.act2.infobtn[data-info="none"] { opacity: .45 }

/* ── 이어서 짜기 · 날 지우기 ─────────────────────────
   ⚠️ "이어서 짤까요?" 를 묻는 창으로만 물었더니, 한 번 지나가면 이어서 짤
      길이 사라졌다. 남은 날은 빈 카드로 있는데 어디를 눌러야 채워지는지
      아무 데도 없었다. 묻는 창은 지나가고, 자리는 남는다. */
.moredays {
  display: flex; flex-direction: column; align-items: center; gap: .125rem;
  width: 100%; margin: .25rem 0 1rem; padding: 1rem 1rem;
  border: 1.5px dashed var(--accent); border-radius: var(--r);
  background: var(--surface); color: var(--accent); cursor: pointer;
  font: inherit; text-align: center;
}
.moredays:hover { background: var(--accent-soft) }
.moredays .ic { font-size: 1.05rem; line-height: 1 }
.moredays .t { font-weight: 700; font-size: 1rem }
.moredays .s { font-size: .82rem; color: var(--muted); font-weight: 400 }

/* 카드 오른쪽 아래 끝 단추 줄 — "일정 비움 / 일정 다시 짜기".
   할 일 칸까지 넘어 카드 오른쪽 끝에 붙인다. */
.card.daycard { position: relative }
/* Day 카드는 터치 중에도 눌림을 보여 준다. 안쪽 단추·입력 조작은 별도다. */
.card.daycard:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
/* Day만 사진이 공통 내용 덮개 위를 가린다. 사진/내용 경계도 공통 토큰을 따른다. */
.card.daycard.pressing .photo { box-shadow: var(--card-press-width) 0 0 var(--card-press-color) }
@media (max-width: 36rem) { .card.daycard.pressing:not(.notodos) .photo { box-shadow: var(--card-press-width) 0 0 var(--card-press-color), 0 var(--card-press-width) 0 var(--card-press-color), var(--card-press-width) var(--card-press-width) 0 var(--card-press-color) } }
.card.daycard .photo.phpress::after { content: ""; position: absolute; inset: 0; z-index: 2; box-shadow: inset 0 0 0 var(--card-press-width) var(--card-press-color); background: color-mix(in srgb, var(--card-press-bg) 12%, transparent); border-radius: inherit; pointer-events: none }
/* 비움 · 삭제 · 다시 단추가 목록 카드에서 날 상세로 옮겨가 .dayacts 자리를 걷었다(2026-11-25). */
.daycard .body, .daycard .todos { padding-bottom: 3rem }
.dayacts .redo, .dayacts .daydrop {
  min-height: 0; padding: .125rem .5rem; font-size: .68rem; line-height: 1.5; flex: none;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); cursor: pointer; position: relative;
}
.dayacts .redo::after, .dayacts .daydrop::after { content: ""; position: absolute; inset: -5px }
.dayacts .redo:hover { color: var(--accent); border-color: var(--accent) }
/* 비움은 지우는 쪽이라 올렸을 때만 붉게 — 평소엔 눈에 먼저 띄면 안 된다. */
.dayacts .daydrop:hover { color: var(--stop); border-color: var(--stop) }
.dayacts .redo:focus-visible, .dayacts .daydrop:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px }

/* AI 가 고를 것을 줬을 때 — **단추로 늘어놓는다**(2026-11-07 승주: "선택지 박스 잘 만들어 줘").
   고르기 칸(select)은 "답 고르기 (4)" 를 펼쳐야 보였다. 2~4개라 한눈에 · 누르면 바로 보내고 상자는 사라진다. */
.picker { display: flex; gap: .5rem; align-items: center; margin-top: .5rem; flex-wrap: wrap }
.picker .pickopt {
  flex: 0 1 auto; min-height: 2.1rem; padding: .25rem .75rem; max-width: 100%;
  border: 1.5px solid var(--accent); border-radius: 999px;
  background: var(--surface); color: var(--accent); font: inherit; font-size: .88rem; font-weight: 600;
  line-height: 1.3; text-align: left; cursor: pointer; transition: background .12s, color .12s;
}
.picker .pickopt:hover, .picker .pickopt:focus-visible { background: var(--accent); color: var(--accent-fg, #fff); outline: 0 }
.picker .pickopt:active { transform: scale(.98) }
/* 「직접 입력할게요」(늘 5번째) — 고르는 답이 아니라 입력칸으로 가는 길이라 점선 · 흐리게 */
.picker .pickopt.own { border-style: dashed; color: var(--muted); font-weight: 500 }

/* AI 가 도는 동안 잠긴 그릇 — 뿌옇게.
   ⚠️ 칸을 하나씩 끄는 방식은 반드시 하나를 빠뜨린다(3일차 장소 칸이 그랬다).
      담는 그릇에 inert 를 걸면 그 안에 무엇이 새로 그려지든 같이 잠긴다.
      inert 는 글쇠질까지 막는다 — pointer-events 만으로는 Tab 으로 들어가
      타자를 칠 수 있어 막은 셈이 안 된다. */
#headerForm[inert], #days[inert], #detailChips[inert] {
  opacity: .5; filter: saturate(.6); cursor: not-allowed;
}

/* ── 숙소 찾기 칸의 그림 단추 ────────────────────────
   ⚠️ '찾기' · '닫기' 글자 단추 둘이 칸 옆에 서니 좁은 화면에서 칸이
      그만큼 좁아졌고, 두 글자짜리 알약이 동그라미처럼 보였다.
      칸과 같은 높이·같은 모서리의 네모로 둔다. */
.stay-find .iconbtn2 {
  flex: none; width: 2.3rem; min-height: 2.3rem; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; background: var(--sunken);
  font-size: .95rem; line-height: 1; cursor: pointer;
}
.stay-find .iconbtn2.primary {
  background: var(--accent); border-color: var(--accent); color: var(--accent-fg);
}
.stay-find .iconbtn2:hover { border-color: var(--muted) }
.stay-find .iconbtn2[disabled] { opacity: .5; cursor: default }

/* 기다리는 글 — 작고 흐리게. 본문과 같은 굵기면 거기가 결과인 줄 안다. */
.stay-wait { font-size: .82rem; color: var(--muted); padding: .5rem .1rem }
/* needBox 가 덧붙이는 표시. 목록 칸(.modal-list)에도 붙으므로 **글 모습만**
   바꾼다 — overflow·flex 는 건드리지 않는다. */
.wait { font-size: .82rem; color: var(--muted) }
.wait .sm { font-size: .82rem; margin-top: .4rem }

/* ── 메모: 누르면 고치고, 벗어나면 저장 ──────────────
   ⚠️ 비어 있는 메모 칸이 줄마다 **커다란 흰 네모**로 서 있었다. 적은 것이
      없는데도 자리를 차지하니 화면이 칸 천지로 보였고, 정작 적힌 메모와
      빈 칸이 구별되지 않았다.
   단추를 더 달지 않고 **칸 자체가 두 모습**을 갖게 한다 —
     · 평소: 테두리 없는 글 한 줄 (적힌 것이 없으면 거의 안 보인다)
     · 누르면: 테두리와 바탕이 생겨 고치는 칸이 된다
   저장은 따로 누를 것이 없다. 벗어나면 그대로 남는다(이미 자동 저장). */
.item .line2 .memo {
  border-color: transparent; background: transparent;
  transition: background .12s ease, border-color .12s ease;
}
.item .line2 .memo:hover { background: var(--sunken) }
.item .line2 .memo:focus {
  background: var(--surface); border-color: var(--accent);
}
/* 빈 칸은 더 조용하게 — 있는 줄 모르게 두되, 누를 수는 있어야 한다. */
.item .line2 .memo:placeholder-shown { opacity: .5 }
.item .line2 .memo:placeholder-shown:hover,
.item .line2 .memo:focus { opacity: 1 }

/* ── 손잡이 줄 하나에 다 담는다 (2026-10-24, 태인) ──
   닫기·붙이기 단추가 제 줄을 차지하던 것을 손잡이 줄 **오른쪽 끝**에 올린다.
   막대는 가운데 그대로, 단추가 겹치지 않게 양옆을 비운다. */
.sheet { position: fixed }
.sheettools { position: absolute; top: .5rem; right: .6rem; z-index: 3; display: flex; gap: .25rem; padding: 0; min-height: 0; justify-content: flex-end }
.sheet .handle { padding-left: 6.5rem; padding-right: 6.5rem; min-height: 2.6rem }
body.dock .sheet .handle { padding-top: .55rem }
/* 좌/우로 끌 때 "여기에 붙는다" 미리보기 띠 */
.dockpreview { position: fixed; top: 0; bottom: 0; width: var(--dockw, 40vw); z-index: 19; pointer-events: none;
  background: var(--accent-soft); border: 2px dashed var(--accent); opacity: .85; box-sizing: border-box }
.dockpreview.left { left: 0 } .dockpreview.right { right: 0 }
/* 옆에 붙은 채 아래로 끌 때: 돌아갈 아래 시트 자리 */
.dockpreview.bottom { top: auto; bottom: 0; left: 0; right: 0; width: auto; height: min(42vh, 26rem); border-radius: 1rem 1rem 0 0 }

/* ── 헤더 오른쪽 칸: 동행 얼굴 · 날씨 · 환율 (2026-10-26, 시안 C1) ── */
.companion.tripbox { min-width: 7.2rem; padding: .5rem .5rem; display: flex; flex-direction: column; gap: .2rem }
.tripbox .faces { display: flex; justify-content: flex-end; align-items: center; padding-left: .35rem }
.tripbox .face { width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center;
  font-size: .82rem; font-weight: 700; margin-left: -.5rem; border: 2px solid var(--sunken);
  background: var(--accent-soft); color: var(--accent); flex: none; box-sizing: border-box }
.tripbox .face.me { background: var(--fg); color: var(--bg) }
.tripbox .face.who { background: var(--accent); color: var(--accent-fg) }
.tripbox .face.add { background: var(--surface); color: var(--muted); border: 1.5px dashed var(--muted); font-weight: 500 }
.companion.tripbox { cursor: pointer }
.tripbox .crel { font-size: .76rem; color: var(--muted) }
.tripbox .tsep { height: 1px; background: var(--line); margin: .25rem 0 .1rem }
.tripbox .tline { display: flex; justify-content: flex-end; align-items: center; gap: .25rem; white-space: nowrap; font-size: .8rem }
.tripbox .tline .tic svg { width: 1rem; height: 1rem; display: block; color: var(--accent) }
.tripbox .tline .tv { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--fg) }
.tripbox .tline .tt { font-size: .68rem; color: var(--muted) }
.tripbox .tline.dim .tv { font-weight: 500; color: var(--muted) }
.tripbox .tline.fxwho { font-size: .66rem; color: var(--muted); margin-top: -.2rem; white-space: normal; text-align: right; max-width: 10rem; margin-left: auto }   /* 구간 여행 — 그 통화를 쓰는 도시 */
.tripbox .tline.dim .tic svg { color: var(--muted) }
/* 교통 타일 줄 앞 수단 그림 */
.card.tile .v.legs .leg { display: flex; align-items: center; gap: .3rem }
.card.tile .v.legs .leg .lic { flex: none; width: 1rem; display: inline-grid; place-items: center; color: var(--move) }
.card.tile .v.legs .leg .lic svg { width: 1rem; height: 1rem; display: block }
.card.tile .v.legs .leg .lic.none { color: var(--muted) }
.card.tile .v.legs .leg .ltx { min-width: 0; overflow: hidden; text-overflow: ellipsis }

/* ── 여행 정보 창 — 탑승권 (2026-10-26, D-027) ──
   새 여행 양식의 탑승권과 같은 모양. 칸은 진짜 입력 칸이고, 테두리 대신
   점선 밑줄로 '눌러서 고친다' 를 보인다. 제목·도시는 손글씨(브랜드킷 4장). */
#headerForm.tripinfo { background: transparent; border: none; padding: 0 }
.tripinfo .bp { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 6px 16px rgba(30,58,95,.10) }
.tripinfo .bpband { background: var(--accent); color: var(--accent-fg); display: flex; justify-content: space-between;
  padding: .5rem 1rem; font-size: .68rem; font-weight: 700; letter-spacing: .18em }
.tripinfo input { border: none; border-bottom: 1.5px dotted var(--line-strong); border-radius: 0; background: transparent;
  padding: .25rem .125rem; box-shadow: none; color: var(--fg) }
.tripinfo input:focus { outline: none; border-bottom: 2px solid var(--accent) }
.tripinfo .bptitle { padding: .9rem 1rem 0 }
.tripinfo .bptitle input { font-family: "NanumSquareRoundEB", var(--b); font-weight: 700; font-size: 1.45rem }
.tripinfo .bproute { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: .5rem; padding: .8rem 1rem .9rem }
.tripinfo .bpend { min-width: 0 }
.tripinfo .bpend.to, .tripinfo .bpend.to input { text-align: right }
.tripinfo .bpend input { font-family: "NanumSquareRoundEB", var(--b); font-weight: 700; font-size: 1.35rem; line-height: 1.15; text-overflow: ellipsis }
.tripinfo .bpk { font-size: .68rem; font-weight: 600; letter-spacing: .1em; color: var(--muted); margin: 0 0 .15rem }
.tripinfo .bpplane { color: var(--accent); padding-bottom: .5rem; white-space: nowrap }
.tripinfo .bpplane::before, .tripinfo .bpplane::after { content: ""; display: inline-block; width: 1.4rem;
  border-top: 1.5px dashed var(--line-strong); vertical-align: middle; margin: 0 .3rem }
.tripinfo .bptear { border-top: 1.5px dashed var(--line-strong); margin: 0 .7rem }
.tripinfo .bpcells { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; padding: .85rem 1rem 1rem }
.tripinfo .bpcell { min-width: 0 }
.tripinfo .bpcell input { font-weight: 600; font-size: .95rem }
.tripinfo .datefield > input[type=text] { font-weight: 600 }
.tripinfo .datefield > .themebtn { padding: .125rem .5rem; min-height: 0 }
.tripinfo .bpnote { margin: .5rem .25rem 0; min-height: 1.1em }
.tripinfo .bpnote.warn { color: var(--stop) }
.tripinfo .tibtns { display: flex; flex-direction: column; gap: .5rem; margin-top: .6rem }
.tripinfo .tibtn { display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left; border-radius: 12px;
  padding: .75rem 1rem; font-weight: 700; font-size: .95rem; min-height: 3.2rem; cursor: pointer }
.tripinfo .tibtn svg { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round }
.tripinfo .tibtn .tx { flex: 1; min-width: 0 }
.tripinfo .tibtn small { display: block; font-weight: 400; font-size: .76rem; opacity: .85 }
.tripinfo .tibtn.pri { background: var(--accent); color: var(--accent-fg); border: 1.5px solid var(--accent) }
.tripinfo .tibtn.pri:hover { filter: brightness(1.06) }
.tripinfo .tibtn .aipill { font-size: .68rem; font-weight: 700; padding: 0 .5rem; border-radius: 999px;
  background: color-mix(in srgb, var(--accent-fg) 22%, transparent) }
.tripinfo .tibtn.clr { background: var(--surface); color: var(--stop); border: 1.5px dashed var(--stop) }
.tripinfo .tibtn.clr small { color: var(--muted); opacity: 1 }
.tripinfo .tibtn.clr:hover { background: var(--stop-soft) }

/* ── 예산·준비 타일 · 상세 (2026-10-26, D-028) ── */
.card.tile.bptile .lshort { display: none }
.card.tile.bptile .bpsplit { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr); gap: .5rem; align-items: center; margin-top: .25rem }
.card.tile.bptile .bpl, .card.tile.bptile .bprt { min-width: 0 }
.card.tile.bptile .bpl .v { -webkit-line-clamp: 1; white-space: nowrap }
.card.tile.bptile .st { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.card.tile.bptile .st.strong { color: var(--fg); font-weight: 600 }
.card.tile.bptile .bpnext { margin-top: .25rem; padding-top: .25rem; border-top: 1px dashed var(--line) }
.card.tile.bptile .bpvr { width: 1px; align-self: stretch; background: var(--line) }
.card.tile.bptile .bpr { display: flex; align-items: center; gap: .5rem; min-width: 0 }
/* 예산·준비 타일 — 막대 두 개 (2026-11-02, 태인 — 시안 B). 숫자는 막대 오른쪽 끝, 아래 한 줄. */
.card.tile.bptile .bpbars { display: grid; gap: .5rem; margin-top: .15rem }
.card.tile.bptile .bpm2 { min-width: 0 }
.card.tile.bptile .bphd { display: flex; justify-content: space-between; align-items: baseline; gap: .25rem;
  font-size: .76rem; color: var(--muted); font-weight: 600 }
.card.tile.bptile .bphd .tabn { color: var(--fg); font-size: .95rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap }
.card.tile.bptile .bphd .tabn.over { color: var(--stop) }
.card.tile.bptile .bphd .tabn .of { color: var(--muted); font-weight: 500 }
.card.tile.bptile .bpbar2 { position: relative; height: .45rem; margin-top: .25rem; border-radius: 999px; background: var(--line); overflow: hidden }
.card.tile.bptile .bpbar2 i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--accent) }
.card.tile.bptile .bpbar2.ok i { background: var(--ok) }
.card.tile.bptile .bpbar2.over i { background: var(--stop) }
.card.tile.bptile .bpbar2.tbd { background: repeating-linear-gradient(135deg, var(--line) 0 3px, transparent 3px 6px);
  box-shadow: inset 0 0 0 1px var(--line-strong) }
.card.tile.bptile .bpm2 .st { font-size: .68rem; margin-top: .15rem }
.card.tile.bptile .label > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0 }
@media (max-width: 40rem) {
  .card.tile.bptile .bphd .tabn { font-size: .84rem }
  .card.tile.bptile .bphd .tabn .of { display: none }
}
/* 폰(타일 폭 ~115px): 예산 위, 준비 아래 */
@media (max-width: 40rem) {
  .card.tile.bptile .bpsplit { grid-template-columns: minmax(0, 1fr); gap: .35rem }
  .card.tile.bptile .bpvr { width: auto; height: 1px }
  .card.tile.bptile .lfull, .card.tile.bptile .bpnext { display: none }
  .card.tile.bptile .lshort { display: inline }
  .card.tile.bptile .bprt .st:not(.strong) { display: none }
  .card.tile.bptile .pring { width: 1.9rem; height: 1.9rem }
  .card.tile.bptile .pring b { width: 1.45rem; height: 1.45rem; font-size: .58rem }
}
.pring { --p: 0; width: 2.75rem; height: 2.75rem; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--ok) calc(var(--p) * 1%), var(--line) 0) }
.pring b { width: 2.15rem; height: 2.15rem; border-radius: 50%; background: var(--surface); display: grid; place-items: center;
  font-size: .68rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--fg) }
.pring.dim b { color: var(--muted) }

.panel.bpsec { display: flex; flex-direction: column; gap: .6rem }
.bpsec .bpsh { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.05rem; color: var(--fg);
  padding-bottom: .5rem; border-bottom: 1px solid var(--line); margin-bottom: .1rem }   /* 예산 · 준비는 큰 카테고리 — 아래 카드들과 더 또렷이 구분(2026-11-21 베어스타: "조금더 구분되게 찐하게가능해?") */
.bpsec .bpsh .k { margin-left: auto; font-size: .82rem; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums }
/* 출발 전 준비 ↻ 기본으로 되돌리기 — 글자 없는 아이콘 단추 */
.bpsec .bpsh .preprst { flex: none; width: 2rem; height: 2rem; min-height: 2rem !important; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 1rem; line-height: 1; cursor: pointer }
.bpsec .bpsh .preprst:hover { color: var(--fg) }
.bpsec .bpmoney { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem }
.bpsec .bpm { background: var(--sunken); border-radius: 8px; padding: .5rem .5rem; min-width: 0; display: flex; flex-direction: column; gap: .125rem; margin: 0 }
.bpsec .bpm .l { font-size: .68rem; color: var(--muted) }
.bpsec .bpm .m { font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap }
.bpsec .bpm.edit { border: 1.5px dashed var(--line-strong); cursor: text }
.bpsec .bpm.edit input { border: none; background: transparent; padding: 0; font-weight: 700; font-size: 1rem; color: var(--fg); min-width: 0 }
.bpsec .bpm.edit input:focus { outline: none }
.bpsec .bpm.edit:focus-within { border-style: solid; border-color: var(--accent) }
.bpsec .bpbar { height: .4rem; border-radius: 4px; background: var(--line); overflow: hidden }
.bpsec .bpbar i { display: block; height: 100%; background: var(--accent); border-radius: 3px }
.bpsec .bpbar.ok i { background: var(--ok) }
.bpsec .bpbar.over i { background: var(--stop) }
.bpsec .warnline { color: var(--stop) }
.bpsec .bprow { display: flex; align-items: center; gap: .5rem; font-size: .88rem; min-width: 0 }
.bpsec .bprow .d { flex: none; width: 3.2rem; font-size: .76rem; color: var(--muted) }
.bpsec .bprow .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.bpsec .bprow .p { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums }
.bpsec .bprow .p.none { color: var(--muted); font-weight: 400 }
.bpsec .bpgk { font-size: .68rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); margin-top: .2rem }
.bpsec .bptag { margin-left: auto; font-size: .76rem; color: var(--muted); white-space: nowrap }
.bpsec > label.check { display: flex; align-items: center; gap: .55rem }

/* ── 교통·숙소 상세 위 요약 칸 (2026-10-26, D-029) — 예산·준비(.bpsec)와 같은 틀 ── */
/* 예약함(글자 3개)·예약 전(글자 3개+띄어쓰기)이 너비가 달라, 바로 앞 배지(나·낸 사람)가
   줄마다 좌우로 들쭉날쭉 밀렸다(2026-11-20 베어스타: "줄이 안맞아") — 폭을 고정해 글자 길이와
   무관하게 늘 같은 자리에 서게 한다. */
.bkpill { font-size: .68rem; font-weight: 600; padding: 0 .5rem; border-radius: 999px; white-space: nowrap; flex: none;
          min-width: 3.2rem; text-align: center; box-sizing: border-box }
.bkpill.ok { background: var(--ok-soft); color: var(--ok) }
.bkpill.no { background: var(--warn-soft); color: var(--warn) }
/* 교통 칸도 숙소 칸처럼 한 줄에 한 장(2026-11-02 통일) */
.bpsec .mvlegs { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem }
.bpsec .mvleg, .bpsec .stcard { background: var(--sunken); border-radius: var(--box-r); padding: var(--box-pad); min-width: 0; display: flex; flex-direction: column; gap: .3rem }
.bpsec .stcard.holder { background: var(--surface); border: 1.5px dashed var(--line-strong) }
.bpsec .mvtop { display: flex; align-items: center; gap: .5rem; min-width: 0 }
.bpsec .mvk { font-size: .76rem; font-weight: 700; color: var(--muted); letter-spacing: .04em }
.bpsec .mvtop .bkpill { margin-left: auto }
.bpsec .stname { font-weight: 700; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.bpsec .mvroute { display: flex; align-items: center; gap: .25rem; font-weight: 700; min-width: 0 }
.bpsec .mvroute .lic { flex: none; width: 1.1rem; color: var(--move) }
.bpsec .mvroute .lic.st { color: var(--stay) }
.bpsec .mvroute .lic svg { width: 1.1rem; height: 1.1rem; display: block }
.bpsec .mvroute .ltx { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.bpsec .mvmeta { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums }
.bpsec .mvmeta b { margin-left: auto; color: var(--fg) }
.bpgk.rowsk { font-size: .68rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); margin: .9rem .2rem .4rem }

/* ── 세부 일정 — 타임라인 레일 (2026-11-01, 태인 B안) ──────────────
   줄마다 편집 칸이 늘 펼쳐져 번잡했다. 평소엔 읽는 줄(.rv)만 보이고,
   짚은 줄(.open)만 편집 칸이 펼쳐진다. 레일 선은 목록(.items)에 하나로
   긋는다. 점·카드 색은 뜻색(지도 핀과 같은 변수). */
/* 레일 x = 맨 앞 칸 + 틈 + 시각 칸 + 틈 + 점 칸 반(2026-11-07 승주: "시간 가로 여백 살짝 줄여도 돼" — 시각 칸 3 → 2.5rem · 틈 .4 → .25rem) */
.items:has(> .item) { position: relative; --rail-x: .55rem }   /* 레일 x = 점 칸 반(시각은 이름 위로 올라가 왼쪽 칸이 없다) */
.items:has(> .item)::before {
  content: ""; position: absolute; left: var(--rail-x); top: 1.2rem; bottom: 1.2rem;
  width: 2px; margin-left: -1px; background: var(--line); pointer-events: none
}
.item:not(.open) > :not(.rv) { display: none !important }
.item.open > .rv { display: none }
.item:not(.open), .item.on:not(.open), .item[data-kind]:not(.open) {
  border-top: 0; border-left: 0; padding: 0; margin: 0; background: none; box-shadow: none; outline: 0
}
.item.open { position: relative; z-index: 1; background: var(--surface); border: 1.5px solid var(--accent);
             border-radius: var(--r); padding: .5rem; margin: .25rem 0; box-shadow: 0 6px 16px rgba(30,58,95,.14) }
.rv { position: relative; display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: .25rem; align-items: start; cursor: pointer }
/* 칸 = 레일 점 · 내용 · 옮기기 손잡이(오른쪽 끝 · 세로로 길게) — 왼쪽 시각 칸 없음 · **줄 높이는 그대로**(불편사항 #15) */
.rv > .rv-n { grid-column: 1; grid-row: 1 }
.rv > .rv-c { grid-column: 2; grid-row: 1 }
/* 시각 = 위 구분선에 걸쳐 「──── 02:33 ────」 꼴(내용 칸 왼쪽 · 선을 끊고 바탕색) — 칸을 차지하지 않아 줄 높이가 안 늘어난다 */
.rv-t { position: absolute; top: .35rem; left: calc(1.1rem + .25rem + .4rem); transform: translateY(-50%); z-index: 2;
  padding: .05rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--k, var(--see)) 16%, var(--bg));   /* 갈래 색 연한 동그라미 바탕(펼친 칸 시각과 같은 꼴 · 불편사항 #21) */
  font-family: var(--m); font-size: .72rem; line-height: 1.2; color: var(--muted); font-variant-numeric: tabular-nums }
.rv-t:empty { display: none }
.rv-t.nodue, .rv-t.nodue.inlocal, .rv-t.nodue.inkst { color: var(--muted); font-weight: 400; font-family: inherit }
.rv-n { display: grid; justify-items: center; align-content: center; align-self: stretch; position: relative; z-index: 1 }   /* 점 = 줄 가운데 */
/* **레일 선은 한 색(2026-11-27 베어스타: "선색은 통일하고 동그라미만 카테고리색상으로")** — 줄 위 끝부터 아래 끝까지 --line-strong 한 색 · 점만 갈래 색(--k).
   전체 레일(.items::before · 회색)은 밑바탕으로 남고, 그 위에 줄마다 덧칠한다. */
.items > .item:not(.open) .rv-n::after { content: ""; position: absolute; left: 50%; width: .28rem; margin-left: -.14rem;
  top: 0; bottom: -.1rem; background: var(--line); opacity: 1; z-index: -1; border-radius: 999px }   /* 2026-11-27 베어스타: 선은 한 색 · 굵은 트랙(시안 C) · 점과 같은 left:50% 축으로 정렬 */
.items > .item:not(.open):first-of-type .rv-n::after { top: 50% }
.items > .item:not(.open):last-of-type .rv-n::after { bottom: 50% }
/* 시각을 위한 비대칭 여백의 절반만큼 점도 내려 제목 중심에 맞춘다. 레일 끝도 같은 중심을 따른다. */
.items > .item:not(.open) .rv-n i { transform: translateY(.3rem) }
.items > .item:not(.open):first-of-type .rv-n::after { top: calc(50% + .3rem) }
.items > .item:not(.open):last-of-type .rv-n::after { bottom: calc(50% - .3rem) }
.rv-n i { width: 1rem; height: 1rem; border-radius: 50%; background: var(--k, var(--see)); border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--line) }   /* 시안 C: 속을 갈래 색으로 채움 · 흰 테두리로 트랙과 분리 */
/* × 지우기 단추 — 테두리·바탕 없는 작은 회색 원(공용 .xghost). 어디 쓰이든 같은 생김새(2026-11-26 베어스타:
   "회색으로 하기로했던거같은데.. 카드 삭제버튼도 클래스로 만들어져있어? 만들어서 회색으로 통일해" —
   접힌 줄(.rv-x) · 펼친 줄(.sm.x.del) · 예산 카드(.spdel)가 각자 따로 정의돼 있어 펼친 줄만 사각 버튼으로 떠 있었다.
   자리(position·크기)만 쓰는 자리마다 다르고 생김새(모양·색·흐림·눌렀을 때)는 이 한 클래스로 통일한다. */
.xghost { border: 0; background: none; border-radius: 50%; padding: 0; font: inherit; line-height: 1;
  color: var(--muted); opacity: .5; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; touch-action: manipulation }
.xghost:hover, .xghost:focus-visible { opacity: 1; color: var(--warn); background: var(--warn-soft); outline: 0 }
/* 줄 지우기 × 자리 — **카드 우상단 모서리에 고정**(2026-11-26 베어스타: "배치도 조정하고" — 전에는 제목 줄
   안에 inline 으로 끼어 있어 배지·× 가 같이 밀렸다). 배지(.rv-bd)와 함께 .rv-pin 하나로 묶어 rv-c 기준 절대위치. */
.rv-c { position: relative }
/* 실제 카드(.daysbox)는 패딩 .5rem(8px)을 두고 있어, rv-c 기준 right:0 은 카드 테두리에서
   한 뼘 떨어져 보인다(2026-11-30 베어스타: "카드 우측으로 더 붙어야지") — 그 패딩만큼 밀어
   카드 테두리에 거의 닿게. */
.rv-pin { position: absolute; top: .05rem; right: -.4rem; z-index: 2; display: flex; align-items: center; gap: .3rem }
/* 접힌 줄에서는 카드 안쪽(rv-c padding-top 1.05rem, 4235줄) 보다도 위, 구분선(.35rem)·시각 알약 자리에 겹쳐
   올라왔다(2026-12-02 베어스타: "버튼들이 그 선을 뚫고 올라와있어") — pin 이 rv-c 의 패딩 상자가 아니라
   테두리 상자 기준으로 top:.05rem 에 고정돼, 제목이 시작하는 자리(1.05rem)보다 한참 위인 구분선 높이에
   그대로 얹혔다. 제목과 같은 높이(=패딩이 끝나는 자리)로 내린다. */
.items > .item:not(.open) .rv-pin { top: 1.05rem }
/* **모아보기(.day.filtered)는 다른 패딩을 쓴다** — 구분선이 없어 `.rv-c` 의 위 패딩이 .05rem 뿐이다(2580줄) ·
   위 전역 규칙(1.05rem)을 그대로 물려받으면 모아보기에서는 반대로 제목보다 한참 아래로 떨어진다(2026-12-02 확인:
   "다른데도 이런버그 있는지 점검" — pin top:49.8px vs 제목 top:33.8px, 16px 어긋남). 모아보기는 원래 값(.05rem)으로 되돌린다. */
.day.filtered .items > .item:not(.open) .rv-pin { top: .05rem }
/* × 글자(U+00D7)는 글꼴 눈금 상 상자 가운데보다 살짝 위에 그려져, 박스는 가운데 맞아도
   눈으로는 📎·🔒 보다 떠 보인다(2026-11-30 베어스타: "여기 살짝 떠있는데?") — 글자만 살짝 내려 광학 보정. */
.rv-pin .rv-x { transform: translateY(1px) }
.rv-l { padding-right: 4.6rem }   /* 제목이 📎·배지·× 밑으로 안 들어가게 자리를 비워 둔다(2026-11-30: 📎 도 pin 에 합류해 셋 몫) */
.rv-l .rv-x { width: 1.2rem; height: 1.2rem; min-width: 0; min-height: 0; font-size: .82rem }
.rv-l .rv-name { margin-right: auto }   /* 이름은 왼쪽 · 배지(예약 전 등)와 × 는 오른쪽 모서리에 고정 */
/* (2026-11-02 태인) 세부 일정 카드에 갈래 색 바탕을 깔지 않는다 — 갈래는 아이콘·레일 점이 말한다. */
.rv-c { background: none; border-radius: var(--box-r); padding: var(--box-pad); margin: .25rem 0; min-width: 0 }
.rv:hover .rv-c { background: var(--sunken) }
/* (2026-11-02 태인, 시안 A) 카드 대신 **줄 사이 가는 선** 하나로 위아래를 가른다. 둥글기·위아래 틈은 걷는다. */
.items > .item:not(.open) .rv-c { border-radius: 0; margin: 0; padding: 1.05rem .5rem .45rem }   /* 위 1.05 = 시각 자리 + 제목과 간격(2026-11-30 베어스타: "너무 붙어있어" — .75rem 이면 시각 알약과 제목이 거의 닿음) */
/* 구분선 = 줄 **안** 위쪽(.35rem) · 내용 칸부터 손잡이 칸 끝까지 — 시각이 이 선에 걸친다(「--02:33------」 · 줄 밖으로 안 나감) */
.items > .item ~ .item:not(.open) .rv::before { content: ""; position: absolute; left: calc(1.1rem + .25rem); right: 0; top: .35rem; border-top: 1px solid var(--line); pointer-events: none }
.rv-l { display: flex; align-items: center; gap: .5rem; justify-content: space-between }
.rv-name { font-size: .95rem; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.rv-name.empty { color: var(--muted); font-weight: 500 }
/* 접힌 카드는 **가장 중요한 실정보 한 줄만**(2026-11-30 베어스타: "실정보는 중요한것 한줄만 표시되게했음 좋겠어") —
   메모에 여러 사실이 「·」로 나열돼 있어도 접힌 줄에는 한 줄만 보이고 줄임표(…)로 자른다.
   나머지는 카드를 눌러 펼치면(.open, 편집 칸의 memo textarea) 그대로 다 보인다. */
.rv-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; color: var(--muted); line-height: 1.35 }
/* 접힌 줄에서는 설명 자체를 아예 숨긴다(2026-11-30 베어스타: "설명을 눌러야보이게하자")
   — 한 줄도 지저분하다는 지적 뒤라, 접힌 카드엔 이름 · 시각 · 배지만 두고 설명은 카드를 눌러 펼쳐야(.open) 보이게 한다. */
.items > .item:not(.open) .rv-sub { display: none }
.rv-bd { display: flex; gap: .25rem; flex: none }
.rbd { font-size: .68rem; font-weight: 700; border-radius: 999px; padding: .125rem .5rem; white-space: nowrap }
.rbd.ok { background: var(--ok-soft); color: var(--ok) }
.rbd.need { background: var(--accent-soft); color: var(--accent) }
.rbd.warn { background: var(--warn-soft); color: var(--warn) }
.rbd.info { background: var(--accent-soft); color: var(--fg) }
/* 숙소·이동 줄의 예약 체크 배지 — 눌러서 켜고 끈다 */
button.rbd.tap { border: 0; font-family: inherit; cursor: pointer; line-height: 1.4 }
.item[data-kind="stay"] { --k: var(--stay); --kb: var(--stay-bg) }
/* 이동 카드는 바탕색 없음(2026-11-02 태인 "색깔 그냥 없애") — 확정이면 메인과 같은 청록 왼쪽 띠만 남는다 */
.item[data-kind="move"] { --k: var(--move); --kb: transparent }
.item[data-kind="see"] { --k: var(--see); --kb: var(--see-bg) }
.item[data-kind="eat"] { --k: var(--eat); --kb: var(--eat-bg) }
.item[data-kind="shop"] { --k: var(--shop); --kb: var(--shop-bg) }
.item.isact { --k: var(--tour); --kb: var(--tour-bg) }   /* 티켓 · 투어 줄 = 연보라 */
.item[data-kind="etc"] { --k: var(--etc); --kb: var(--etc-bg) }
/* 펼친 카드 테두리 · 그림자 · 시각 칸 = **그 일정 색**(2026-11-08 승주: "클릭 시 해당 일정 색상과 테두리 맞춰 줘 · 숙소는 주황 · 관광지는 초록") */
.items > .item.open { border-color: var(--k, var(--accent)); box-shadow: 0 6px 16px color-mix(in srgb, var(--k, var(--accent)) 22%, transparent) }
.items > .item.open .line1 > input.time { background: color-mix(in srgb, var(--k, var(--accent)) 12%, var(--surface)); color: var(--k, var(--accent)) }
/* 확정 줄 — **줄을 하나 더 긋지 않고 원래 레일 선을 굵고 진하게**(2026-11-08 승주: "확정시 한 줄 더 긋지 말고, 원래 있던 줄을 두껍게").
   전에는 카드 왼쪽에 청록 띠(.rv-c inset)를 따로 그어 선이 둘로 보였다. 시안 C(2026-11-27)로 기본 트랙이 굵어져
   기본값(.28rem)보다 한 단계 더 굵게(.4rem) · 중심축(left:50%/margin-left)은 똑같이 맞춘다. */
/* 이동(항공 말고)은 카드가 아니라 장소 사이의 작은 글씨 */

/* 교통 타일 — 편마다 두 줄 "ICN → CTS" / "11/18 08:30" (2026-11-02, 태인 — 시안 C).
   예약 여부는 제목 줄 오른쪽 점(✓ 초록 / ! 노랑).
   2026-11-09 승주: "교통칸이 글자수가 더 작은데 생략되고 호텔칸은 보이고" — 전엔 출발지·도착지를
   따로 떼어(.lc 두 개) 한 줄에 나눠 두어서, 글자가 길면 둘 다 몫이 반 토막 나 금방 잘렸다.
   숙소 칸(.snm .ltx)처럼 **문장 하나**로 합쳐 한 글 상자에 담아, 줄 전체 폭을 다 쓰고 나서야
   잘리게 통일한다. */
.card.tile .v.legs { display: grid; gap: .35rem }
.card.tile .v.legs .leg2 { display: grid; gap: 0; min-width: 0 }
.card.tile .v.legs .lroute { display: flex; align-items: center; font-weight: 700; font-size: .95rem;
  white-space: nowrap; overflow: hidden; min-width: 0; letter-spacing: .01em }
.card.tile .v.legs .lroute .ltx { min-width: 0; overflow: hidden; text-overflow: ellipsis }
.card.tile .v.legs .lwhen { font-size: .76rem; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums }
.card.tile .v.legs.guess .lroute { color: var(--muted) }

/* 숙소 타일 — 곳마다 두 줄 "숙소 이름" / "11/18–20 · 2박"(2026-11-02, 태인 — 시안 A).
   교통 타일과 같은 크기·간격. 이름 앞 점: 초록 예약함 / 노랑 미예약 / 점선 숙소 미정. */
.card.tile .v.stays { display: grid; gap: .25rem; -webkit-line-clamp: unset }
.card.tile .v.stays .srow { display: grid; gap: 0; min-width: 0 }
.card.tile .v.stays .snm { display: flex; align-items: center; gap: .25rem; font-weight: 700; font-size: .95rem; min-width: 0 }
.card.tile .v.stays .snm.tbd { color: var(--muted) }
.card.tile .v.stays .snm .ltx { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.card.tile .v.stays .sd { flex: none; width: .45rem; height: .45rem; border-radius: 50% }
.card.tile .v.stays .sd.ok { background: var(--ok) }
.card.tile .v.stays .sd.no { background: var(--warn) }
.card.tile .v.stays .sd.tbd { border: 1.5px dashed var(--muted) }
.card.tile .v.stays .lwhen { padding-left: .75rem; font-size: .76rem; color: var(--muted); font-weight: 500;
  font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.card.tile .v.stays .smore { color: var(--muted); font-weight: 700 }
.card.tile .v.stays .smore .lshort { display: none }
/* 폰(타일 폭 ~115px): 점·박수는 걷고 이름과 날짜만 */
@media (max-width: 40rem) {
  .card.tile .v.stays .sd, .card.tile .v.stays .snn { display: none }
  .card.tile .v.stays .lwhen { padding-left: 0 }
  .card.tile .v.stays .snm { font-size: .84rem }
  .card.tile .v.stays .smore .lfull { display: none }
  .card.tile .v.stays .smore .lshort { display: inline }
  /* 2026-11-09 태인: 교통 칸(.lroute)에는 이 폭 축소가 빠져 있어 숙소 칸(.snm)보다 커 보였다 — 맞춘다 */
  .card.tile .v.legs .lroute { font-size: .84rem }
}

/* 단추(🔗·📎)가 없는 줄은 오른쪽 칸을 **아예 안 잡는다** (2026-11-02, 태인 —
   "공간 있는데 왜 잘리냐"). 빈 칸도 폭을 차지해 장소 이름이 그만큼 일찍 잘렸다. */
.daycard .lines li:has(> .p:empty) { grid-template-columns: minmax(0, 1fr) }
.daycard .lines li > .p:empty { display: none }

/* '＋N곳' 넘친 일정 줄은 걷었다(2026-11-25 베어스타: "더보기하지말고 그냥 다 펼치자") — Day 카드는 늘 전부 보여준다. */
.morepill { display: inline-flex; align-items: center; gap: .5rem; padding: .125rem .75rem;
  border-radius: 999px; background: var(--accent-bg, color-mix(in srgb, var(--accent) 12%, transparent));
  color: var(--accent); font-size: .76rem; font-weight: 700; line-height: 1.4; cursor: pointer }
.morepill:hover { background: color-mix(in srgb, var(--accent) 20%, transparent) }
/* 할 일 칸은 숫자만 작게. 글 대신 '＋2' 하나. */
.morepill.mini { margin-top: .25rem; padding: 0 .5rem; font-size: .68rem;
  background: var(--chip-bg, color-mix(in srgb, var(--muted) 14%, transparent)); color: var(--muted) }

/* 예산 상세 — 도넛 + 갈래별 묶음 + 만원 숫자판 (2026-11-02, 태인 — 시안 B) */
.bpB .bpsh .k { display: inline-flex; align-items: center; gap: .3rem }
.bpB .amtbtn { font: inherit; font-weight: 700; font-size: .88rem; border: 1px solid var(--line); background: var(--sunken);
  color: var(--fg); border-radius: 8px; padding: .125rem .5rem; cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums; flex: none;
  min-width: 4.6rem; text-align: right }
.bpB .amtbtn:hover { border-color: var(--accent) }
/* 금액칸 칸 크기·색 통일(2026-11-16, Bearstar 시안 B) — 폭은 min-width 로 맞추고, 아직 안 정한 칸은
   모래색 배경을 비워 테두리만 남겨 "정해진 금액" 과 뚜렷이 구분한다 */
.bpB .amtbtn.empty { background: transparent; color: var(--accent); border: 1px dashed var(--line-strong); font-weight: 600 }
.bpB .amtbtn.est { color: var(--muted); font-weight: 600 }
.bpB .bphero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; margin-top: .3rem }
.bpB .donut { width: 7.2rem; height: 7.2rem; border-radius: 50%; position: relative; flex: none }
.bpB .donut::after { content: ''; position: absolute; inset: .8rem; border-radius: 50%; background: var(--surface) }
.bpB .donut .c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; z-index: 1 }
.bpB .donut .c small { font-size: .68rem; color: var(--muted); font-weight: 600 }
.bpB .donut .c b { font-size: 1.12rem; font-variant-numeric: tabular-nums }
.bpB .donut .c b.over { color: var(--stop) }
.bpB .kv { display: grid; gap: .25rem; min-width: 0 }
.bpB .kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-size: .84rem }
.bpB .kv > div b { font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap }
.bpB .kv > .tot { padding-bottom: .25rem; border-bottom: 1px solid var(--line) }
.bpB .kv > .plan { font-size: .76rem } .bpB .kv > .plan b { font-size: .82rem; color: var(--muted); font-weight: 600 }
.bpB .kv .cdot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .35rem }
.bpB .muted { color: var(--muted) }
/* 총예산(입력) 과 사용 내역(조회)을 라벨 + 박스로 가른다 — 베어스타: "밑에 바로 사용내역이 붙으니까 헷갈려" (2026-11-21, 시안 1)
   ⚠️ bp-usagebox 는 .kv 의 직계 자식이라 ".bpB .kv > div"(명시도 0,2,1)가 ".bpB .bp-usagebox"(0,2,0)보다 세서
   display:flex 로 덮어썼다 — 세로로 안 쌓이고 한 줄에 몰린 진짜 원인. ".bpB .kv > .bp-usagebox" 로 명시도를 올려 이긴다. */
.bpB .bp-usagelbl { font-size: .7rem; font-weight: 700; color: var(--muted); margin: .4rem 0 .15rem; letter-spacing: .01em }
.bpB .kv > .bp-usagebox { display: grid; grid-template-columns: 1fr; gap: .2rem; background: var(--sunken); border-radius: 10px; padding: .4rem .55rem }
.bpB .kv > .bp-usagebox > div { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-size: .82rem }
.bpB .kv > .bp-usagebox > div b { font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap }
/* 사용 내역 합계 — 베어스타: "총 사용금액 합계도 나왔으면 좋겠어"(2026-11-22). 박스 맨 아래, 점선으로 구분해 강조 */
.bpB .kv > .bp-usagebox > .bp-usagesum { margin-top: .2rem; padding-top: .35rem; border-top: 1px dashed var(--line-strong); font-weight: 700 }
.bpB .kv > .bp-usagebox > .bp-usagesum b { color: var(--accent) }
/* ⚠️ minmax(0, 1fr) — 그냥 1fr 이면 긴 공항 이름만큼 칸이 늘어 폰에서 금액 단추가 화면 밖으로 밀렸다 */
.bpB .cats { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; margin-top: .9rem }
.bpB .cat { border: 1px solid var(--line); border-radius: var(--box-r); padding: var(--box-pad); min-width: 0 }
.bpB .cat.dragging { opacity: .45 }
/* .bpB .cat.lifted.catdrag 의 배경·그림자·scale·transition 은 theme.css 상단(.card.tile.lifted 근처) 공통 선언으로 옮김(2026-11-26) */
.bpB .cat .hd { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .88rem;
  cursor: grab; margin: -.1rem -.2rem; padding: .1rem .2rem; border-radius: 8px }
.bpB .cat .hd:hover { background: var(--sunken) }
.bpB .cat .hd:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px }
/* 위 패딩 상쇄(-.75rem)로 금액을 카드 테두리에 바짝 붙였더니, 왼쪽(아이콘·라벨)은 카드 패딩만큼
   떨어져 있는데 오른쪽만 붙어 양쪽 간격이 달라 보였다(2026-11-26 베어스타: "폰트가 카드에 이렇게
   붙으면 안돼 · 카드와 폰트간격 왼쪽이랑 맞춰 · 정렬은 유지해줘"). 패딩을 상쇄하지 않고 그대로 둬
   오른쪽 간격도 왼쪽과 같은 .75rem 으로 — 오른쪽 정렬(margin-left:auto)은 그대로 유지한다. */
.bpB .cat .hd .sum { margin-left: auto; font-variant-numeric: tabular-nums }
/* 칸 접기/펼치기 화살표(2026-11-20 베어스타: "예산준비쪽에 교통 숙소 투어 이런거 그룹을 접을수있게 해줘") —
   접으면 머리줄만 남고 아래 줄 목록이 숨는다. 상태는 기기 localStorage(budgetCollapsed). */
.bpB .cat .hd .chev { flex: none; font-size: .7rem; color: var(--muted); transition: transform .15s }
.bpB .cat.collapsed .hd .chev { transform: rotate(-90deg) }
.bpB .cats > .cat.collapsed > .it.spenditem { display: none }
.bpB .cat .ico { width: 1.6rem; height: 1.6rem; border-radius: 8px; display: grid; place-items: center; font-size: .82rem; flex: none }
.bpB .cat .ico.stay { background: color-mix(in srgb, var(--stay) 16%, transparent) }
.bpB .cat .ico.move { background: color-mix(in srgb, var(--move) 16%, transparent) }
.bpB .cat .ico.see { background: color-mix(in srgb, var(--see) 16%, transparent) }
.bpB .cat .ico.eat { background: color-mix(in srgb, var(--eat) 16%, transparent) }
.bpB .cat .ico.etc { background: color-mix(in srgb, var(--etc) 16%, transparent) }
/* 사용 내역 — ✕(카드 오른쪽 위 모서리 삭제) · ＋ 항목 추가(숙소 금액 칸과 같은 팝업) */
.bpB .cat .spdel { flex: none; width: 1.8rem; height: 1.8rem; font-size: .85rem }
.bpB .spadd { display: block; width: 100%; margin-top: .4rem; padding: .55rem; border: 1px dashed var(--line); border-radius: 10px; background: none; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer }
.manpop .manname { display: block; width: 100%; box-sizing: border-box; margin-bottom: .5rem; font: inherit; padding: .55rem .7rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg) }
.bpB .cat .it { display: flex; align-items: center; gap: .5rem; padding: .25rem 0 0 2rem; font-size: .82rem }
.bpB .cat .it .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
/* 낸 사람 — 이름 뒤 작은 알약 배지로(2026-11-19 베어스타 A안 선택: "누가썼는지 보여주는거 가독성이 구려") */
.bpB .cat .it .who { flex: none; font-size: .7rem; font-weight: 700; color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: .1rem .5rem; white-space: nowrap }
/* 기타 항목 끌어다 카테고리 옮기기(2026-11-19 베어스타: "기타에서 항목추가한거 다른 카테고리로 드래그앤드랍해서
   카테고리 변경할수있게해줘") — 손잡이(⠿)로 끌어 다른 칸에 놓는다 */
/* 예산 항목은 승인된 B 시안과 같은 3열 카드. 공용 버튼의 모래색 배경과
   터치 기기의 최소 폭이 카드 열을 밀지 않도록 이 카드 안에서만 초기화한다. */
.bpB .cat .it.spenditem { padding: 1.85rem .6rem .55rem .6rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); margin-top: .5rem; display: grid; position: relative;
  grid-template-columns: 1.9rem minmax(0, 1fr) auto; align-items: center; gap: .55rem;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none }
.bpB .cat .it.spenditem .mid:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.bpB .cat .it.spenditem .spgrip.dot { width: 1.9rem; height: 1.9rem; min-width: 0 !important;
  min-height: 0 !important; box-sizing: border-box; border-radius: 9px; background: var(--sunken);
  color: var(--muted); border: 0; display: grid; place-items: center; font-size: .8rem;
  cursor: grab; padding: 0; touch-action: none }
.bpB .cat .it.spenditem .mid { min-width: 0 }
.bpB .cat .it.spenditem .mid .nm { font-weight: 700; font-size: .85rem;
  overflow-wrap: anywhere; white-space: normal; flex: none }
.bpB .cat .it.spenditem .mid .who { font-size: .68rem; color: var(--muted); font-weight: 400;
  background: none; padding: 0; border-radius: 0; margin-top: .1rem }
.bpB .cat .it.spenditem .right { text-align: right; display: flex; flex-direction: column;
  align-items: flex-end; gap: .15rem; min-width: 0 }
.bpB .cat .it.spenditem .right .amtbtn { min-width: 0 !important; min-height: 0 !important;
  padding: 0; border: 0; background: none; border-radius: 0; font-weight: 800;
  font-size: .86rem; line-height: 1.55; color: var(--fg); white-space: nowrap }
.bpB .cat .it.spenditem .right .amtbtn.empty { color: var(--accent); font-weight: 600 }
/* 예약 상태는 카드 위쪽 전용 띠에서 작은 회색 × 왼쪽에 나란히 둔다. 금액은 본문 오른쪽에 유지한다. */
.bpB .cat .it.spenditem.entrycard .right .bkpill { position: absolute; top: .3rem; right: 1.8rem;
  box-sizing: border-box; height: 1.2rem; display: flex; align-items: center; justify-content: center; white-space: nowrap }
/* 카드 삭제 단추 — 공용 .xghost(2026-11-26 베어스타: "카드 삭제버튼도 클래스로 만들어져있어? 만들어서
   회색으로 통일해") · 자리(카드 오른쪽 위 모서리 · 금액과 안 겹치는 띠)만 여기서 정한다. */
.bpB .cat .it.spenditem .spdel {
  position: absolute; top: .3rem; right: .3rem; z-index: 2;
  width: 1.2rem; height: 1.2rem; min-width: 0 !important; min-height: 0 !important;
  font-size: .82rem }
.bpB .cat.over { box-shadow: inset 0 0 0 2px var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent) }
/* 일정 묶음 항목 카드 — 기타 카드와 생김새는 같지만 끌어 옮기지 않으므로 손잡이 표시만 빼고
   커서를 손가락(탭)으로 바꾼다(불편사항 — 베어스타: "예산쪽 기타처럼 다른쪽도 디자인 기능 통일해줘") */
.bpB .cat .it.spenditem.entrycard { cursor: pointer }
.bpB .cat .it.spenditem.entrycard .spgrip.dot { cursor: default }
.bpB .cat .it.spenditem.dragging { opacity: .45 }
.bpB .cat .it.spenditem.spenddrag { background: var(--card, #fff); box-shadow: 0 10px 28px rgba(0,0,0,.22); border-radius: 10px; z-index: 999 }
.bpB .bppad { margin-top: .75rem; border: 1px solid var(--accent); border-radius: var(--box-r); padding: var(--box-pad); background: var(--sunken); outline: none }
.bpB .bppad[hidden] { display: none }
.bpB .bppad .q { font-size: .82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
/* 만원 입력 팝업 — 칸 · 만원 단위(확인은 덮개 아래 · 불편사항 #36 · #37 · 2026-11-18 베어스타: +10 · +50 버튼은 없앰) */
.manpop .manrow { display: flex; gap: .4rem; align-items: stretch }
.manpop .manrow input { flex: 1 1 0; min-width: 0; font: inherit; font-size: 1.2rem; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums;
  padding: .55rem .7rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg) }
.manpop .manrow .unit { align-self: center; color: var(--muted); font-size: .9rem }
/* 현지금액 ↔ 원화 토글(2026-11-19 — "현지에서는 현지금액만 쓰니까 현지금액 입력하고 원화로 합계되게") */
/* 유형 · 낸 사람은 한 카드 안 두 묶음. 같은 44px 선택 단추와 테두리 강조,
   얼굴은 단추 안 동그라미 그대로 유지한다(2026-11-20 베어스타 승인). */
.manpop { background: var(--sunken); gap: 0; padding: .75rem }
.manpop .grp { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .65rem .7rem; margin-bottom: .5rem }
.manpop .grp .manname { margin-bottom: 0 }
.manpop .seclabel { font-size: .76rem; color: var(--muted); font-weight: 600; margin: 0 0 .3rem }
.manpop .pickrow + .pickrow { margin-top: .55rem; padding-top: .55rem; border-top: 1px solid var(--line) }
.manpop .catpick, .manpop .whopick { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: 0 }
.manpop .catpick .chip, .manpop .whopick .whochoice {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  flex: none; height: 44px; min-height: 44px; min-width: 44px; padding: 0 .5rem;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--sunken);
  color: var(--muted); font: inherit; font-size: .76rem; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer }
.manpop .catpick .chip.on, .manpop .whopick .whochoice.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent) }
.manpop .catpick .chip.on::before, .manpop .catpick .chip.off::before { content: none }
.manpop .whopick .whochoice { padding: 0 .3rem }
.manpop .whopick .face { width: 1.9rem; height: 1.9rem; padding: 0; border-radius: 50%; display: grid; place-items: center;
  font-size: .76rem; font-weight: 700; border: 0; background: var(--accent-soft); color: var(--accent);
  flex: none; box-sizing: border-box; margin: 0 }
.manpop .whopick .face.me { background: var(--fg); color: var(--bg) }
.manpop .whopick .face.pic { position: relative; overflow: hidden; color: transparent }
.manpop .whopick .face.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50% }
.manpop .whopick .whochoice.add { border-style: dashed; background: var(--surface); font-size: 1.15rem; font-weight: 400 }
.manpop .whofree { display: block; width: 100%; box-sizing: border-box; margin-top: .5rem; font: inherit; font-size: .85rem;
  padding: .55rem .7rem; border-radius: 10px; border: 1.5px solid var(--accent); background: var(--surface); color: var(--fg) }
.manpop .whofree[hidden] { display: none }
.manpop .cursel { width: 100%; margin-bottom: .5rem; padding: .45rem .6rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text, inherit); font: inherit; font-size: .86rem; font-weight: 600 }   /* 통화 드롭다운 — 원화 + 여행 나라 통화(1 ≈ ○원) · 고르면 원화로 환산해 저장 */
.manpop .amtgrp .manrow { margin: 0 }
@media (max-width: 40rem) {
  .bpB .bphero { grid-template-columns: 1fr; justify-items: center }
  .bpB .kv { width: 100% }
  .bpB .cat .it { padding-left: .2rem }
}

/* ── 손가락 크기 44px (D-096, 2026-11-03 태인 "권장크기로 다") ─────────
   손가락으로 쓰는 기기(pointer: coarse)에서만. 마우스 화면은 그대로다.
   ① 따로 서 있는 단추·칸은 **실제로** 44px 로 키운다.
   ② 줄 안에 붙은 작은 단추(지우기 ✕ 등)는 보이는 크기를 두고 **누르는 자리만**
      ::after 로 44px 까지 넓힌다 — 이웃과 겹치지 않는 자리에만.
   ⚠️ !important 를 쓴다. 자리마다 min-height: 0 으로 줄여 둔 규칙이 50곳이 넘어
      하나씩 고치면 반드시 빠진다. 이 블록 한 곳이 손가락 크기의 기준이다.
   ⚠️ 예외(일부러 두지 않음): 한눈에 보기 Day 카드 줄의 준비 체크 — 줄 간격이 20px 남짓이라 넓히면 옆 줄을 누른다.
      지도 핀(겹치는 게 본래 모양). (Day 카드 줄 앞 ✕ 는 걷었다 · 2026-11-07 — 지우기는 날 상세에서만) */
@media (pointer: coarse) {
  button, a.btn, summary, select,
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]) {
    min-height: 44px !important;
  }
  button, a.btn, summary { min-width: 44px !important }
  .moremenu > summary { display: inline-flex; align-items: center; justify-content: center }
  .home-tools .themebtn { width: auto !important; min-width: 44px; height: 44px !important }
  .attachbtn, #sendBtn { width: 44px !important; height: 44px !important }
  .todox { width: 44px !important; height: 44px !important }
  /* 줄 앞 × 는 보이는 크기를 두고 누르는 자리만 넓힌다(44px 로 키우면 레일 칸 · 시각 칸이 밀려 ×가 아래로 떨어졌다 · 2026-11-07) */
  .items .rv-l button.rv-x { min-height: 0 !important; min-width: 0 !important }
  /* 접힌 줄 첨부(📎) 단추 — rv-x 와 같은 이유(2026-11-25 베어스타: "시간이랑 텍스트랑 줄이 안맞냐 왜")
     min-height:44px 가 그대로 걸려 rv-l(제목 줄) 전체가 44px 로 부풀고, 시각(.rv-t)은 그 위에 고정이라
     제목이 아래로 처져 보였다. 보이는 크기는 그대로 두고 누르는 자리만 ::after 로 넓힌다. */
  .items .rv-l button.rv-ab { min-height: 0 !important; min-width: 0 !important; position: relative }
  /* ⚠️ 2026-12-02 베어스타: "버튼 눌림 영역이 이상함 · 확정이 안눌림" — 📎 와 바로 오른쪽 🔒 배지(.rbd) 사이 간격(.rv-pin gap .3rem ≈ 4.8px)이
     이 누르는 자리(10px 확장)보다 좁아, 📎 오른쪽 확장이 🔒 배지 왼쪽 일부를 먹어 그 자리를 누르면 📎(첨부 열기)가 대신 눌렸다 —
     🔒 는 버튼이 아니라 상태 배지(자동 확정 표시)라 그 자체는 원래도 안 눌리는 게 맞지만, 바로 옆 📎·× 의 숨은 터치존이 침범해 더 헷갈렸다.
     오른쪽(배지 쪽)만 좁혀 겹치지 않게 — 왼쪽 · 위 · 아래는 그대로 넓게 둔다. */
  .items .rv-l button.rv-ab::after { content: ""; position: absolute; top: -10px; bottom: -10px; left: -10px; right: -2px }
  /* 전체 일정 머리 단추(전체 확정 · 현지/한국 · 지도) — 보이는 높이는 2rem 그대로(⤢ 와 같게 · 2026-11-08 승주: "크기 신경 · 높이 동일하게") ·
     누르는 자리만 ::after 로 넓힌다. 위 44px 규칙이 이 셋만 키워 ⤢ 와 높이가 달랐다. */
  .daysbox .sechead .tripmapbtn, .daysbox .sechead .lockall, .daysbox .sechead .timeswitch { min-height: 0 !important; min-width: 0 !important }
  /* 숙소 · 항공 고르기 카드 단추(예약하기 · 관심없음) — 오른쪽 두 줄 그대로 · 누르는 자리만 넓힘(2026-11-08) */
  .pick-tools .sm { min-height: 1.9rem !important; min-width: 4.4rem !important; position: relative }
  .pick-tools .sm::after { content: ""; position: absolute; inset: -4px -2px }
  .daysbox .sechead .tripmapbtn, .daysbox .sechead .lockall, .daysbox .sechead .timeswitch { position: relative }
  .daysbox .sechead .tripmapbtn::after, .daysbox .sechead .lockall::after, .daysbox .sechead .timeswitch::after { content: ""; position: absolute; inset: -6px -3px }
  .items .rv-l button.rv-x { position: relative }
  /* 2026-12-02: 📎 쪽과 같은 겹침 — 🔒 배지 오른쪽을 ×(지우기)의 숨은 터치존이 먹어 그 자리를 누르면 지우기가 대신 눌렸다.
     왼쪽(배지 쪽)만 좁혀 겹치지 않게 — 오른쪽(카드 모서리 바깥) · 위 · 아래는 그대로 넓게 둔다. */
  .items .rv-l button.rv-x::after { content: ""; position: absolute; top: -10px; bottom: -10px; left: -2px; right: -10px }
  .check:not(.daycard .todos .check) { min-height: 44px }
  a.moreitem { display: flex; align-items: center; min-height: 44px }
  .morefoot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .3rem }
  .leaflet-touch .leaflet-bar a { width: 30px; height: 30px; line-height: 30px; font-size: 18px }   /* 확대 · 축소는 작게(불편사항 #45) */
  /* ② 누르는 자리만 넓히기 */
  .tile button.del, .turn.ai .usagehead { min-width: 0 !important; min-height: 0 !important }   /* .del 은 제자리(absolute) 그대로 */
  .tile .del::after { content: ""; position: absolute; inset: -10px }
  .turn.ai .usagehead { display: inline-block; position: relative }
  .turn.ai .usagehead::after { content: ""; position: absolute; inset: -14px -14px }
}

/* ── 일정 상세 줄 아래 단추는 전부 '📍 위치 찾기' 크기 하나로 (2026-11-04 승주) ──
   "숙소 찾기 버튼 등 위치별 버튼 크기 동일하게 · 위치 확인 버튼 크기로 · 앱에서 들쭉날쭉".
   까닭: 위치 찾기는 <a class="act2"> 라 손가락 규칙(pointer: coarse 의 button 44px)에서 빠지고,
   숙소 찾기(button.sm) · 이동 찾기(button.act2) · 예매처(a.btn) 는 44px 로 커졌다. 웹에서도
   갈래마다 글자 · 여백이 .72 ~ .85rem 으로 달랐다.
   ⚠️ 보이는 크기는 하나로 두고, 터치 화면에서 **누르는 자리만** ::after 로 44px 까지 넓힌다(위 손가락 규칙 ②와 같은 방식). */
.item .itemfoot .act2,
.item .itemfoot .sm,
.item .itemfoot .aff a,
.item .itemfoot .aff button {
  display: inline-flex; align-items: center; justify-content: center; gap: .25rem;
  box-sizing: border-box; height: 1.75rem; min-height: 0; min-width: 0;
  padding: 0 .5rem; font-size: .76rem; line-height: 1.2; font-weight: 500;
  border-radius: 999px; white-space: nowrap; text-decoration: none;
}
.item .itemfoot .act2[hidden],
.item .itemfoot .sm[hidden],
.item .itemfoot .aff a[hidden],
.item .itemfoot .aff button[hidden] { display: none }
@media (pointer: coarse) {
  .item .itemfoot .act2,
  .item .itemfoot .sm,
  .item .itemfoot .aff a,
  .item .itemfoot .aff button {
    height: 1.75rem !important; min-height: 0 !important; min-width: 0 !important; position: relative;
  }
  .item .itemfoot .act2::after,
  .item .itemfoot .sm::after,
  .item .itemfoot .aff a::after,
  .item .itemfoot .aff button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%) }
  .item .itemfoot { row-gap: .5rem }
}

/* ── 날 끝의 「🕘 시간순 정렬 · ← 이전 날 · 다음 날 →」 살짝 작게 (2026-11-04 승주) ──
   button.sm(글자 .85rem · 높이 2.25rem · 터치 44px)이라 줄 아래 단추보다 커서 눈에 걸렸다.
   보이는 크기만 줄이고, 터치 화면에서 누르는 자리는 ::after 로 44px 를 지킨다(위 줄 아래 단추와 같은 방식). */
.daytail button.sm {
  box-sizing: border-box; height: 1.95rem; min-height: 0; padding: 0 .75rem;
  font-size: .76rem; line-height: 1.2; display: inline-flex; align-items: center; gap: .25rem;
}
@media (pointer: coarse) {
  .daytail button.sm { height: 1.95rem !important; min-height: 0 !important; min-width: 0 !important; position: relative }
  .daytail button.sm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%) }
}

/* ── 확정 스위치 안의 흐린 「AI」 (2026-11-04 승주: "확정 버튼에는 AI 글자가 흐리게 · 좌우 스위치인데 뭐 하는 건지 모르겠어 ·
   모양은 심플해서 좋아") — 모양은 그대로 두고 트랙 빈 쪽에 작은 글자만 얹는다.
   꺼짐: 손잡이 왼쪽 · 「AI」 오른쪽(AI 가 고칠 수 있음) / 켜짐(확정): 손잡이 오른쪽 · 「AI」 왼쪽에 줄 그음(AI 가 못 고침). */
/* 2026-11-08 승주: "AI 확정 버튼 안에 AI 글자 말고 확정으로" — 글자를 「확정」 으로. 켜지면(확정됨) 흰 글자 · 줄 긋지 않는다(확정이 맞는 상태라). */

/* ── 대화 입력줄의 📎 클립 — 글자 크기만큼 작게 (2026-11-05 승주: "앱에서 클립 버튼 너무 커 · 글자 크기만큼") ──
   동그란 2.6rem(터치 44px) 바탕을 걷고 글자 한 자 크기로 둔다. 누르는 자리는 ::after 로 44px 를 지킨다. */
.chatbar #attachBtn, #attachBtn.attachbtn {
  width: auto !important; height: auto !important; min-width: 0 !important; min-height: 0 !important;
  padding: 0 .125rem; font-size: 1rem; line-height: 1; background: transparent; border: 0; border-radius: 0;
  position: relative; align-self: center;
}
#attachBtn.attachbtn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%) }

/* 비움 · 삭제 · 다시 단추 자리를 상세 화면으로 옮겼다(2026-11-25) — 카드 위 .dayacts 좌표 규칙 걷음. */
.dayacts .redo, .dayacts .daydrop { padding: 0 .5rem; font-size: .68rem; line-height: 1.6; height: auto }
.daycard .dayhd { padding-right: 0; min-height: 1.2rem; white-space: nowrap }   /* 단추가 상세로 옮겨가 글 자리 예약은 걷었다(2026-11-25) — 나중의 .daycard .dayhd 규칙이 레이아웃을 마저 맞춘다 */
.daycard .lines li .p .act {
  min-width: 0; min-height: 0; width: 1.45rem; height: 1.45rem; padding: 0; font-size: .76rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; position: relative; flex: none;
}
.daycard .lines li .p .act::after { content: ""; position: absolute; inset: -8px -3px }
@media (pointer: coarse) {
  .dayacts .redo, .dayacts .daydrop { min-height: 0 !important; min-width: 0 !important }
  .daycard .lines li .p .act { min-height: 0 !important; min-width: 0 !important; width: 1.45rem !important; height: 1.45rem !important }
}

/* ── 지도 크게 보기(전체 화면 덮개) — 2026-11-05 ──
   그날 경로 지도 상자(#daymap)를 그대로 옮겨 화면 가득. 채팅 시트(20) · 창(60~210) 위에 뜬다.
   지도 상자는 isolation 으로 제 층에 갇혀 있으므로(위 규칙) 덮개 z-index 하나로 충분하다. */
.mapfull { position: fixed; inset: 0; z-index: 400; background: var(--bg, #fff); display: flex; flex-direction: column }
.mapfull > .daymap, .mapfull > #daymap { flex: 1 1 auto; height: auto !important; min-height: 0; width: 100%; margin: 0; border-radius: 0 }
.mapfull-x {
  position: absolute; top: max(.6rem, env(safe-area-inset-top)); right: .6rem; z-index: 1001;
  min-height: 0; padding: .25rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
body.mapfull-open { overflow: hidden }

/* ── Day 카드 사진 저작권 표기 — 잘리지 않게 (2026-11-05 승주: "표기할 때 글자 작아져야 할 듯 · 잘려") ──
   한 줄 · 말줄임(…)이라 저자 이름 · 라이선스가 잘렸다. 글자를 더 작게 · 최대 2줄까지 줄바꿈(2026-11-07 승주: "더 작게 2줄로"). */
.daycard .photo .credit, .daycard .credit {
  font-size: .45rem; line-height: 1.25; padding: .125rem .25rem;
  white-space: normal; word-break: break-word; overflow: hidden; text-overflow: clip;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* 관광지 「정보」 창 사진 저작권 표기(2026-11-05) — 사진 아래 작은 글 · 2줄까지(2026-11-07) */
.shot .shotcredit { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: .6rem; line-height: 1.3; color: var(--muted); margin-top: .25rem; word-break: break-word }
.shot .shotcredit a { color: inherit; text-decoration: underline }

/* 줄 사이 (+) 오터치 막기(2026-11-05 승주: "중간 줄 선택 시 더하기 버튼이 눌려 행 추가가 막 돼서").
   줄 사이 띠 전체가 눌리던 것을 → 띠는 안 눌리고 동그라미(+)만 눌린다.
   손가락(터치)에서는 중간 (+) 를 아예 숨기고 맨 끝 "여기에 일정 넣기" 하나만 둔다 — 넣은 뒤 시각을 고치면 시간순 정렬로 제자리. */

/* ── 사진 저작권 표기 — 흰 글자 · 작게 · 안 거슬리게(2026-11-07 승주: "글자 크기 색상 상관없으면 글자는 흰색으로 작게 · 가능한 안 거슬리게") ──
   법적으로 필요한 것은 **알아볼 수 있게 적는 것**(저자 · 라이선스 · 원본 링크)이지 크기 · 색이 아니다(CC BY 4.0 3(a)(2): 매체에 맞는 합리적 방식).
   그래서 띠(검은 반투명 바탕)를 걷고 흰 글자 + 옅은 그림자로 사진 위에 얹는다 — 밝은 사진에서도 읽히게 그림자는 남긴다.
   2026-11-07 승주: "더 작게 2줄로 · 완전 하양 말고 살짝 흐린 하양 회색빛" — 약 4px(같은 날 "글자 1 더 작게" 두 번) · 2줄 · 회색(#b8b8b8 · 같은 날 "그냥 회색 · 줄 간격 더 적게 · 바닥에 붙게") · 줄 간격 1 · 아래 여백 0.
   ⚠️ **글자 크기가 아니라 transform: scale 로 줄인다**(같은 날 승주: "transform: scale 좋아") — 브라우저 · 휴대폰의 최소 글자 크기(크롬 등) 설정이
   font-size 4~5px 을 더 크게 끌어올려서다. 8px(.5rem)로 적고 줄인다 — 줄이면 폭도 줄므로 폭을 1/배율로 잡고 왼쪽 아래를 축으로.
   **웹 · 앱 같게 약 5px(.625)** — 한때 앱만 4px 로 나눴다가(html.native) 같은 날 승주 "앱으로 보니 작아 · 하나만 크게" 로 앱도 5px → 나눔을 걷음. */
.daycard .photo .credit, .daycard .credit {
  background: transparent; color: #b8b8b8;
  text-shadow: 0 0 2px rgba(0, 0, 0, .7), 0 1px 1px rgba(0, 0, 0, .5);
  font-size: .45rem; line-height: 1; padding: 0 .5rem 0;
  right: auto; width: 160%; transform: scale(.625); transform-origin: left bottom;
}
.daycard .credit a { color: inherit }
/* 관광지 「정보」 창 — 사진 아래 회색 글 → 사진 아래쪽 위에 흰 글자로 얹는다.
   사진이 16:10 이라 위에서 너비의 62.5% 자리가 사진 아래 끝 — margin-top % 는 너비 기준이라 그 자리에 붙인 뒤 제 높이만큼 끌어올린다. */
.shotstrip .shot { position: relative }
.shot .shotcredit {
  /* **사진 안 왼쪽 아래**(2026-11-08 승주: "저작권 표기도 사진에서 나가 있어 · 사진 안에") — 전에는 16:10 을 가정한 margin % 로 자리를 셌는데
     사진 위로 튀어 나갔다. 그림(figure)의 바닥에 붙인다. 약 6px = 8px(.5rem) × .75 — 최소 글자 크기에 안 막히게 scale · 폭은 1/배율 · 왼쪽 아래 축.
     오른쪽 아래는 사진 테이블 이름(.phsrc) 자리라 폭을 그만큼 남긴다. */
  position: absolute; left: 0; right: auto; top: auto; bottom: 0; margin: 0;
  width: 100%; transform: scale(.75); transform-origin: left bottom;
  padding: .125rem 7rem .125rem .5rem; font-size: .45rem; line-height: 1.1; color: #b8b8b8;
  text-shadow: 0 0 2px rgba(0, 0, 0, .75), 0 1px 1px rgba(0, 0, 0, .5);
  text-align: left; box-sizing: border-box;
}
.shot .shotcredit a { color: inherit }

/* AI 답 신고 링크(2026-11-07 · Google Play AI 생성 콘텐츠 정책) — 말풍선 아래 작게 · 안 거슬리게 */
.turn.ai .aireport { display: inline-block; margin: .125rem 0 0 .25rem; font-size: .68rem; color: var(--muted); text-decoration: none; opacity: .75 }
.turn.ai .aireport:hover { text-decoration: underline; opacity: 1 }

/* 관광지 정보 창 맨 아래 — 관련 검색 링크(왼쪽) · 내부 관광지 번호(오른쪽 아래 · 흐린 회색 · 검증용) · 2026-11-07 */
.shotfoot { display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; margin-top: .75rem; flex-wrap: wrap }
.shotfoot .shotlinks { display: flex; gap: .75rem; flex-wrap: wrap; font-size: .76rem }
.shotfoot .shotlinks a { color: var(--accent); text-decoration: underline }
.shotfoot .shotpid { margin-left: auto; font-size: .6rem; color: #9aa0a6; opacity: .8; font-family: var(--m) }

/* 정보 단추 = 선호도 %(2026-11-07) — 50 미만 연붉은 · 이상 연파랑 */
/* Day 카드 사진의 출처 사진 테이블 — 오른쪽 아래 작게(점검용) */
/* 사진을 가져온 사진 테이블 — **모든 사진 안 오른쪽 아래** · 아주 흐린 회색(2026-11-08 승주: "어느 테이블 조회해서 온 건지 · 아주 흐린 회색 · 사진 우하단") */
.daycard .phsrc, .shot .phsrc, .tile .cv .phsrc { position: absolute; right: .3rem; bottom: .15rem; z-index: 2; font-size: .45rem; line-height: 1; color: rgba(220,220,220,.55);
  text-shadow: 0 0 2px rgba(0,0,0,.6); font-family: var(--m); pointer-events: none }
.tile .cv { position: relative }

/* ── 잠금 · 공유(D-117 · D-118 · 2026-11-07 승주) ───────────────────────────
   남이 잡은 날 · AI 가 쓰는 날은 위 .day.writing(점선 띠 · 흐리게). 함께하는 여행도 내 일정처럼 다 고친다 — '보기만' 은 걷었다. */
/* 머리 띠 — 누가 같이 보고 · 고치는 중인가(3초마다) */
.presence { margin: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 0; font-size: .76rem; color: var(--accent); max-width: 22rem }
.presence[hidden] { display: none }
.presence .pline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100% }
/* 공유 상자 — 함께하는 사람 */
.sharebox .sharepeople { display: grid; gap: .25rem; margin: .3rem 0 .2rem }
.sharebox .sharepeople .row { gap: .5rem; align-items: center }
.sharebox .sharepeople .who { font-size: .82rem; font-weight: 600 }
.sharebox .sharepeople .note { font-size: .74rem }
.sharebox .sharepeople .sm { margin-left: auto }
/* 첫 화면 — 공유받은 일정 칸(내 칸 아래 줄을 갈라) */
/* 여행 스토리 — 소제목(내 게시물 · 찜한 게시물), 위아래로 쌓는다(2026-12-02 베어스타: "토글 그냥 없애고
   위아래로 펼치자" — 토글(.storyseg)이 .tiles 그리드 안에서 카드 행 높이에 맞춰 거대한 알약으로 뭉개졌다). */
.tiles .storysub { grid-column: 1 / -1; display: flex; align-items: baseline; gap: .4rem; margin: .5rem .15rem .1rem; font-size: .95rem }
.tiles .storysub b { font-weight: 800 }
.tiles .storysub span { font-size: .78rem; color: var(--pc-ink2, var(--muted)); font-weight: 400 }
.tile.shared .own { font-size: .68rem; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
/* 함께하는 여행 타일 — 내 여행으로 복사(D-118) */
/* 카드 아래 한 줄 단추(내 여행 · 함께하는 여행 · 스토리) — 작은 알약 · 같은 폭으로 나눔 · 손가락 크기 규칙(44px)을 이김 */
.tacts { display: flex; gap: .3rem; margin-top: .45rem; padding: 0 .1rem }
.tacts .tact { flex: 1 1 0; min-width: 0; height: 1.75rem; min-height: 1.75rem !important; padding: 0 .3rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--accent); font-size: .68rem; font-weight: 700; line-height: 1; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
  transition: background .15s, border-color .15s }
.tacts .tact:hover, .tacts .tact:active { background: var(--accent-soft, #eef4ff); border-color: var(--accent) }
.tacts .tact:disabled { opacity: .5 }
/* 전체 일정 — 남이 고치는 날 카드(D-117 · 2026-11-07 승주: "누가 수정 중 보여 주고 흐리게 · 그 날만").
   카드만 흐리게 · 다시 짜기 · 일정 비움은 눌러도 알림 하나로 막음(heldByOther) · 오른쪽 빈자리에 누가 고치는지. 카드를 눌러 들어가 보는 것은 된다. */
.daycard.heldcard > .photo, .daycard.heldcard .lines, .daycard.heldcard .daytitle, .daycard.heldcard .todos { opacity: .45 }
/* 카드 맨 위 한 줄(그리드 전체 폭) — 고치는 중일 때만 생긴다 */
.daycard > .heldby {
  grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .82rem; font-weight: 700; color: var(--accent); background: var(--accent-soft);
  padding: .25rem .75rem; border-bottom: 1px dashed var(--accent); border-radius: inherit;
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
}
/* AI 가 쓰는 중 — 띠에 빛이 흘러 진행 중인 게 보이게 · 카드는 덜 흐리게(쓴 것이 바로 보이니) */
.daycard > .heldby.ai {
  background: linear-gradient(90deg, var(--accent-soft) 0%, color-mix(in srgb, var(--accent) 22%, var(--accent-soft)) 50%, var(--accent-soft) 100%);
  background-size: 200% 100%; animation: heldby-flow 1.6s linear infinite;
}
@keyframes heldby-flow { from { background-position: 200% 0 } to { background-position: 0 0 } }
.daycard.heldcard:has(> .heldby.ai) > .photo, .daycard.heldcard:has(> .heldby.ai) .lines, .daycard.heldcard:has(> .heldby.ai) .daytitle { opacity: .8 }
@media (prefers-reduced-motion: reduce) { .daycard > .heldby.ai { animation: none } }
/* 잠긴 날의 상세 칩(이 날만 새로 짜기 AI 등) · 잠긴 「예산 · 준비」 화면 — 흐리게(D-117) */
#detailChips.heldchips button { opacity: .45 }
#detailBody.heldpanel { opacity: .5 }
#detailFoot[inert] { opacity: .5 }
/* 남이 어느 날이든 고치는 중 — 전체에 걸친 단추는 흐리게(D-118 · 2026-11-07 승주: "전체 확정 · 취소 · AI 에게 말하기 · 모든 필드 버튼 점검").
   누르면 app.js tripHeld() 가 까닭을 알린다. 열린 날 안의 단추는 그대로. */
body.tripheld .lockall, body.tripheld .moredays, body.tripheld .adddaybtn,
body.tripheld #optimize, body.tripheld #sheetReset,
body.tripheld .chip[aria-pressed], body.chatheld #chatFab { opacity: .45; filter: grayscale(.4) }

/* 함께하는 사람 — 보딩패스 아래 같은 모양(D-118 · 2026-11-07 승주: "함께하는 사람 이름 추가 · 예쁘게 디자인 맞춰서").
   띠 · 둥근 모서리 · 그림자를 보딩패스(.tripinfo .bp)와 맞춘다. 사람마다 첫 글자 동그라미(색은 이름에서) · 이름 · 「나」. */
.folks { margin-top: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 6px 16px rgba(30,58,95,.10) }
.folks .folksband { background: var(--accent); color: var(--accent-fg); display: flex; justify-content: space-between;
  padding: .5rem 1rem; font-size: .68rem; font-weight: 700; letter-spacing: .18em }
.folks .folksband .n { letter-spacing: .04em }
.folks .folkslist { display: flex; flex-wrap: wrap; gap: .5rem .5rem; padding: .9rem 1rem .5rem }
.folks .folk { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .75rem .25rem .25rem;
  border: 1px dotted var(--line-strong); border-radius: 999px; background: var(--bg) }
.folks .folk.me { border-style: solid; border-color: var(--accent) }
.folks .folk .av { width: 1.9rem; height: 1.9rem; border-radius: 50%; color: #fff; display: inline-flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: .88rem; flex: none }
.folks .folk .nm { font-family: "NanumSquareRoundEB", var(--b); font-weight: 700; font-size: 1.1rem; color: var(--fg) }
.folks .folk .tag { font-size: .68rem; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 0 .4rem }
.folks .folksnone { margin: 0; font-size: .82rem; color: var(--muted) }
.folks .folksfoot { display: flex; align-items: center; gap: .5rem; padding: .5rem 1rem .75rem; border-top: 1.5px dashed var(--line); margin-top: .3rem }
.folks .folksfoot .sm { margin-left: auto }
/* 계정 사진 얼굴(D-118 · 2026-11-07 승주: "계정 아이콘 여기에 전부 보여 주면 좋아") — 사진이 글자를 덮는다 · 못 받으면 글자 그대로 */
.tripbox .face.pic, .folks .folk .av.pic { position: relative; overflow: hidden; color: transparent }
.tripbox .face.pic img, .folks .folk .av.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50% }
/* 공유하기 팝업(D-118 · 2026-11-07 승주: "＋ 버튼 누르면 공유하기 팝업") — 머리 카드 ＋ · ⋯ 메뉴 · 함께하는 사람 카드 어디서든 같은 창 */
.sharebox.sharepop { margin: 0; width: min(28rem, 100%); max-height: 88vh; overflow: auto; padding: 1rem 1rem;
  border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0,0,0,.18); gap: .55rem }
.sharebox .sharehead { font-weight: 700; font-size: .95rem; color: var(--accent) }

/* 좁은 화면 = 아래에 붙는 시트 — 맨 아래 단추(닫기 · 나가기)를 **한 줄 위로**(2026-11-08 승주: "팝업 버튼이 너무 아래 · 한 줄 위로 · 닫기 버튼이
   앱 취소 버튼 위치랑 겹쳐"). 안드로이드 뒤로 · 홈 단추 자리를 피한다(안전영역 값은 앱 WebView 에서 0 으로 오는 일이 많아 눈에 보이는 만큼 직접). */
@media (max-width: 36rem) { .sharebox.sharepop { border-radius: 16px 16px 0 0; width: 100% } }

/* ── 현지 시간 / 한국 시간 스위치(전체 일정 머리 · 2026-11-07) ──
   2026-11-08 승주: "위치가 너무 정중앙이야 마이너 기능인데 지도 옆에 시계버튼으로 · 버튼 디자인은
   지도 디자인이랑 비슷하게" — 두 단어 알약을 걷고, 지도 단추(.tripmapbtn)와 똑같은 원형 아이콘
   단추 하나로. 지도 단추 바로 왼쪽에 나란히 앉도록 order 를 지도 단추(98)보다 하나 작게 두고,
   오른쪽으로 미는 margin-left:auto 를 지도 단추 대신 이 단추가 맡는다. */
.daysbox .sechead .timeswitch {
  order: 97; margin-left: auto; align-self: center; flex: none;
  box-sizing: border-box; width: 2rem; height: 2rem; min-width: 0; min-height: 0; padding: 0;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); cursor: pointer; line-height: 1;
}
.daysbox .sechead .timeswitch:hover { color: var(--accent); border-color: var(--accent) }
.daysbox .sechead .timeswitch svg { width: 17px; height: 17px }
/* 한국 시간이 켜진 상태만 강조색(--t-kst) — 기본(현지)은 중립, 켜면 티 나게(2026-11-07 승주 색 구분 지침 유지) */
/* 2026-11-08 승주: "빨강 파랑 말고 · 현지 한국 시간다우면서 여행 느낌 나는 색" — 현지 = 노을빛 앰버(해 지는 여행지) · 한국 = 깊은 청록(우리 바다) */
:root { --t-kst: #1565c0; --t-local: #e05a5a }   /* 현지 = 조금 연한 빨강 · 한국 = 푸른색 */
:root[data-theme=dark] { --t-kst: #82b4ff; --t-local: #ff9e9e }
/* 지금 어느 시각인지 단추 색으로 — 현지 = 연한 빨강 · 한국 = 연한 파랑(시각 글자색과 같은 계열 · 불편사항 #40) */
.daysbox .sechead .timeswitch { background: color-mix(in srgb, var(--t-local) 12%, var(--surface)); border-color: color-mix(in srgb, var(--t-local) 45%, var(--line)); color: var(--t-local) }
.daysbox .sechead .timeswitch.on { background: color-mix(in srgb, var(--t-kst) 12%, var(--surface)); border-color: color-mix(in srgb, var(--t-kst) 45%, var(--line)); color: var(--t-kst) }
.daysbox .sechead .timeswitch:hover { color: var(--t-local); border-color: var(--t-local) }
.daysbox .sechead .timeswitch.on:hover { color: var(--t-kst); border-color: var(--t-kst) }
/* 시계 단추 왼쪽 시차 글씨(「한국시간 -8시간」 · 2026-11-16 승주) — 작게 · 검정 글씨 · 현지 시각 모드에서만 · 오른쪽으로 미는 일은 이 글씨가 맡고 시계는 바로 옆에 붙음 */
.daysbox .sechead .tzgap { order: 96; margin-left: auto; align-self: center; flex: none; font-size: .68rem; font-weight: 700; color: var(--fg); background: none; padding: 0; white-space: nowrap; margin-right: .3rem; line-height: 1.3 }
.daysbox .sechead .tzgap + .timeswitch { margin-left: 0 }
.daysbox .sechead .tzgap .kr { color: var(--t-kst) }
.daysbox .sechead .tzgap .sgn { font-weight: 800; color: var(--fg) }

/* ── 전체 확정 단추(2026-11-25 베어스타: "확정 · 확정취소를 시계 옆에 자물쇠 모양으로") ──
   시계(.timeswitch) 바로 옆에 앉는 같은 크기의 원형 아이콘 단추. 색만 확정 색(--fix)으로
   달라 다른 둘(시계·지도)과 구분된다. 시계가 있으면(timeswitch 뒤) margin-left:auto 를 끈다 —
   시계가 없을 때(시간대가 한국과 같아 시계를 안 그릴 때)만 이 단추가 그룹을 오른쪽으로 민다. */
.daysbox .sechead .lockall {
  order: 98; margin-left: auto; align-self: center; flex: none;
  box-sizing: border-box; width: 2rem; height: 2rem; min-width: 0; min-height: 0; padding: 0;
  border-radius: 50%; border: 1px solid var(--fix); background: var(--surface); color: var(--fix-ink); cursor: pointer;
}
.daysbox .sechead .timeswitch ~ .lockall { margin-left: 0 }
.daysbox .sechead .lockall svg { width: 16px; height: 16px }
.daysbox .sechead .lockall:hover { background: var(--fix-bg) }
.daysbox .sechead .lockall.on { background: var(--fix-bg) }   /* 다 확정됨 — 채워서 "누르면 반대 일" 을 표시 */
.ovrow .time.inkst { color: var(--t-kst) }
.ovrow .time.inlocal { color: var(--t-local) }
.kst { color: var(--t-kst) }
/* 맨 위 줄이 생겨도 .dayacts 좌표 보정은 더 안 쓴다 — 단추가 상세 화면으로 옮겨갔다(2026-11-25) */
/* 맨 위 띠 — 전체 수정이 막힌 동안만(D-118) */
.heldbar { margin: 0 0 .75rem; padding: .5rem 1rem; border-radius: 12px; border: 1px dashed var(--accent);
  background: var(--accent-soft); color: var(--accent); font-size: .88rem; font-weight: 700; line-height: 1.4 }

/* ── 앱(html.is-app)은 위아래 한 줄씩 없는 자리(2026-11-08 승주: "위와 아래 앱에서는 한 줄씩 없다 생각해야 돼 · 세부 일정 나가기가 위에 가려져 ·
   팝업 닫기가 앱 취소 단추 자리와 겹쳐") — 상태 표시줄 · 뒤로 · 홈 단추. 안전영역 값은 앱 WebView 에서 0 으로 오는 일이 많아 눈에 보이는 만큼 직접 준다. */
:root { --app-top: 0px; --app-bottom: 0px }
html.is-app { --app-top: 2.4rem; --app-bottom: 2.6rem }
/* Capacitor 8 edge-to-edge 부터 env(safe-area-inset-top)이 실제 상태표시줄 높이를 돌려준다 —
   --app-top(2.4rem 고정 추정값)과 둘 다 더하면 하단과 같은 이중 계산이 난다(2026-11-?? 하단 고침과 같은 패턴).
   max() 로 큰 쪽 하나만 쓴다 — 옛 WebView(env=0)는 --app-top 그대로, 새 WebView는 실제 값만 */
html.is-app body { padding-top: max(var(--app-top), env(safe-area-inset-top, 0px)) }
/* body 가 이미 상태표시줄 자리를 비웠으므로, 머리줄(.top) 은 시각적 여백(.75rem)만 더하고
   env(safe-area-inset-top) 을 또 더하지 않는다 — 안 그러면 머리줄 위에 빈 공간이 두 번 쌓인다 */
html.is-app .top { padding-top: .75rem }
html.is-app #detail { scroll-margin-top: calc(var(--app-top) + .4rem) }       /* 세부 일정 들어가면 「‹ 세부일정 나가기」 가 보이게 */
/* 교통·숙소 모아보기 — 숙소처럼 줄이 적은 갈래는 내용이 한 화면보다 짧아
   scrollIntoView 가 끝까지 못 올라가 위 머리글(TripChat 줄)이 안 가려졌다
   (2026-11-28 베어스타: "교통카드를 누르면 맨위가 세부일정나가기로 · 숙소는 트립챗이나와
   맨위가 … 통일하자구"). #detail 을 적어도 한 화면 높이로 — 어느 갈래든 머리글을
   끝까지 스크롤해 가릴 수 있다. */
#detail { min-height: 100vh }
html.is-app .sheet { padding-bottom: calc(.6rem + max(var(--app-bottom), env(safe-area-inset-bottom, 0px))) }
html.is-app .chatfab { bottom: calc(1.4rem + max(var(--app-bottom), env(safe-area-inset-bottom, 0px))) }
html.is-app .say { bottom: calc(5.2rem + max(var(--app-bottom), env(safe-area-inset-bottom, 0px))) }
html.is-app .modal-back, html.is-app .cfm-back, html.is-app .traceback, html.is-app .ovback { padding-top: var(--app-top); padding-bottom: var(--app-bottom) }
html.is-app .mapfull { padding-top: var(--app-top); padding-bottom: var(--app-bottom) }

/* ── 당겨서 새로고침(assets/pulltorefresh.js) — 네이티브 앱엔 이 제스처가 없어서 직접 그린다.
   웹 브라우저 기본 당겨서-새로고침과 같은 원형 로딩 링("동글뱅이")으로 — 2026-12-01 베어스타 지적 ── */
#ptr-bar {
  position: fixed; left: 50%; top: calc(var(--app-top, 0px) + .2rem); transform: translateX(-50%) translateY(-2.2rem);
  z-index: 500; opacity: 0; width: 2.4rem; height: 2.4rem; border-radius: 999px;
  background: var(--surface); box-shadow: 0 2px 10px rgba(0,0,0,.18);
  display: flex; align-items: center; justify-content: center; pointer-events: none;
  transition: opacity .12s linear;
}
#ptr-svg { transform: rotate(-90deg); transition: transform .15s ease }   /* -90deg = 링이 12시 방향에서 채워지기 시작 */
#ptr-svg.ptr-spin { animation: ptr-rotate 1s linear infinite }
.ptr-track { fill: none; stroke: var(--border, rgba(0,0,0,.12)); stroke-width: 2 }
.ptr-ring {
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round;
  stroke-dashoffset: 56.55; transition: stroke-dashoffset .05s linear, stroke .15s ease;
}
.ptr-ring.ptr-ready { stroke: var(--accent) }
.ptr-ring.ptr-spin { animation: ptr-dash 1.4s ease-in-out infinite; transition: none }
@keyframes ptr-rotate { to { transform: rotate(270deg) } }
@keyframes ptr-dash {
  0%   { stroke-dashoffset: 54; }
  50%  { stroke-dashoffset: 12; }
  100% { stroke-dashoffset: 54; }
}
@media (prefers-reduced-motion: reduce) { #ptr-svg.ptr-spin, .ptr-ring.ptr-spin { animation: none } }

/* ── 항공 ↔ 도착 줄 한 카드(D-120 · 2026-11-08 승주: "도착 공항은 삭제 버튼 없애고 · 위 출발 → 도착 항공과 같은 카드로 묶인다는 식") ── */
.item.airhead, .item.airarr { background: var(--bg) }   /* 2026-11-27 베어스타: 바탕 색은 아예 없음 — 흰 바탕 그대로 */
.items > .item.airarr .rv-c, .items > .item.airarr .rv:hover .rv-c { background: transparent !important }
/* 항공 · 도착 줄은 접혀 있어도 늘 같은 푸른 바탕(누를 일 · 노란 바탕 없음 · 불편사항 #22) */
.items > .item.airhead:not(.open), .items > .item.airarr:not(.open), .items > .item.airarr:not(.open):hover { background: var(--bg) }
/* 일정 줄 바탕은 색을 아예 쓰지 않는다(2026-11-27 베어스타: 톤다운·강조색 통일로도 안 됨 — "빨간 동그라미 친 데가
   배경색이잖아 지우라구") — 카테고리 구분은 점 색만, 카드 바탕은 전부 흰색(var(--bg)) */
.items > .item[data-kind="stay"]:not(.open) { background: var(--bg) }
.items > .item[data-kind="stay"].open { background: var(--bg) }
/* 항공 · 숙소 줄은 제 바탕이 있다 — 누르거나 올려도 회색(--sunken) 덧칠 없음(불편사항 #34 · 파란 카드 안에 다른 색 상자가 보였다) */
.items > .item.airhead .rv:hover .rv-c, .items > .item[data-kind="stay"] .rv:hover .rv-c, .day.filtered .item .rv:hover .rv-c { background: transparent }
.items > .item.airhead.open { background: var(--bg) }
.item.airhead { border-radius: 8px 8px 0 0 }
.item.airarr { border-top: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 0 0 8px 8px }
.item.airhead + .item.airarr { margin-top: 0 }
/* 항공 줄을 펼치면 도착 줄도 같은 카드 안처럼 — 테두리를 이어 붙인다(불편사항 #13) */
.item.airhead.open { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; box-shadow: none }
.item.airhead.open + .item.airarr { position: relative; z-index: 1; margin: 0 0 .25rem; padding: 0 .5rem .25rem; background: var(--surface);
  border: 1.5px solid var(--accent); border-top: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 0 0 var(--r) var(--r) }
.item.airarr .rv-sub { color: var(--accent) }
/* 도착 줄 — 시각은 다른 줄과 같은 크기 · 설명 줄 없이 높이만 낮게(내용이 안 들어감) */
.items > .item.airarr .rv-sub { display: none }
.items > .item.airarr:not(.open) .rv-c { padding-bottom: .25rem }
/* 2026-11-08 승주: "도착 카드에는 동그라미가 없이 출발카드에서 쭈욱 다음카드까지 선이 이어지게" —
   도착 줄 점을 숨기고, 도착 줄 자신의 색띠를 제 박스 맨 위(top:0)부터 시작시켜 출발 줄 색띠와
   끊김 없이 이어붙인다(출발 줄 색띠는 기본값대로 제 박스 바로 밑까지 — 서로 맞닿는다). */
.items > .item.airarr .rv-n i { display: none }
.items > .item.airarr:not(.open) .rv-n::after { top: 0 }
/* 전체 일정 카드 — 도착 줄은 항공 줄 밑에 딸린 줄로(왼쪽 꺾쇠) */
.ovrow.ovarr .l .nm { color: var(--muted) }
.ovrow.ovarr-join .l { position: relative }
.ovrow.ovarr-join .l::before { content: "└"; color: var(--muted); font-size: .68rem; position: absolute; left: -.75rem; top: .05rem; line-height: 1 }   /* 들여쓰기 없이 왼쪽 여백에(2026-11-08 · 줄 칸이 밀렸다) */

/* 세부 일정 레일 — **모든 줄 최소 높이** · 도착 줄도 다른 줄과 같은 글자 · 점(2026-11-08 승주: "글자 크기 다른 거랑 달라 · 높이 문제면 높이 최소치")
   (옛 「이동 · 기타」 작은 줄 .gapline 은 걷었다 — 모든 줄이 같은 카드.) */
.items > .item:not(.open) .rv { min-height: 2.6rem }
/* 2026-11-08 승주: "2개 카드의 크기나 넓이 이런걸 동일하게 맞춰" — 도착 줄에 줬던 압축 규칙(작은 min-height ·
   padding · 가로 묶음 레이아웃)을 전부 걷는다. 이제 출발·도착 두 줄은 패딩·줄바꿈 전부 일반 줄과 같다 —
   "붙은 한 카드" 느낌은 점선 윗테두리(border-top) · 옅은 배경(위)만으로 남긴다. */
.rv-t.inkst { color: var(--t-kst) }
.rv-t.inlocal { color: var(--t-local); font-weight: 700 }

/* ── 팝업이 떠 있으면 뒤 화면은 안 굴린다 · 팝업 글은 하얀 창 안에만(2026-11-08 승주: "팝업에서 스크롤했더니 뒤가 밀려 · 글자 뒤로 밀리는 건 아직 · 하얀 배경 안에") ──
   :has 로 열린 덮개가 있으면 문서 굴림을 잠근다(앱 WebView · 크롬 105+) · 창 안 굴림이 끝에 닿아도 뒤로 넘기지 않는다(overscroll-behavior). */
html:has(body > .ovback), html:has(.modal-back:not([hidden])), html:has(.cfm-back:not([hidden])) { overflow: hidden }
html:has(body > .ovback) body, html:has(.modal-back:not([hidden])) body, html:has(.cfm-back:not([hidden])) body { overflow: hidden }
.ovback, .modal-back, .cfm-back { overscroll-behavior: contain }
.ovbox { overflow: hidden }                                  /* 창 밖으로는 아무것도 안 그린다 */
.ovbox > :not(.ovhd) { overflow-y: auto; min-height: 0; overscroll-behavior: contain }   /* 긴 글은 창 안에서 굴린다 */
.modal, .sharebox.sharepop { overscroll-behavior: contain }

/* ── 전체 일정 지도(2026-11-08) — ⤢ 왼쪽 지도 그림 단추 · 팝업 ── */
.daysbox .sechead .tripmapbtn { order: 99; align-self: center; flex: none; width: 1.75rem; height: 1.75rem; min-height: 0; padding: 0;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer }
.daysbox .sechead .tripmapbtn:hover { color: var(--accent); border-color: var(--accent) }
/* 2026-11-08 승주: "시계랑 지도랑 전체보기 간격이 다른데" — 플렉스 gap(.25rem)은 셋 다 같게 주는데
   이 줄이 지도~⤢ 사이에만 .3rem 을 더 얹어서 시계~지도 간격보다 넓어 보였다. 지운다 — gap 하나로 통일. */
/* 지도 단추 · ⤢ 단추 **같은 크기**(2026-11-08 승주) — span(⤢)은 테두리가 바깥에 붙어 2px 컸다 · 그림도 13px 로 같게 */
.daysbox .sechead .tripmapbtn, .daysbox .sechead .expand { box-sizing: border-box; width: 2rem; height: 2rem; min-width: 0; min-height: 0; padding: 0; line-height: 1 }
/* 전체 일정 머리의 단추 넷 **높이 같게** — 전체 확정 · 현지/한국 스위치 · 지도 · ⤢ 모두 2rem(2026-11-08 승주: "크기 신경 · 높이 동일하게").
   단추 기본 min-height(2.25rem)가 지도 단추만 키우고 있었다. */
.daysbox .sechead .lockall { box-sizing: border-box; height: 2rem; min-height: 0; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; align-self: center }
.daysbox .sechead .lockall { justify-content: center; line-height: 1 }   /* 그림을 단추 한가운데(2026-11-25 — 알약에서 아이콘으로 바뀜) */
.daysbox .sechead .tripmapbtn svg, .daysbox .sechead .expand svg { width: 13px; height: 13px }
.mapfull > .tripmap { flex: 1 1 auto; min-height: 0; width: 100%; margin: 0; border-radius: 0 }
.tmwrap { position: relative; width: 26px; height: 26px }
.tmtag { position: absolute; left: 50%; top: -11px; transform: translateX(-50%); padding: 0 3px; border-radius: 4px; color: #fff;
  font: 700 8px/11px var(--m, monospace); letter-spacing: -.02em; white-space: nowrap; border: 1px solid #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); pointer-events: none }
.tripmapleg { display: flex; gap: .25rem; flex-wrap: wrap; padding: .5rem .5rem; background: var(--surface); border-top: 1px solid var(--line) }
.tmchip { min-height: 0; padding: .25rem .5rem; border-radius: 999px; font-size: .76rem; font-weight: 700; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; opacity: .55 }
.tmchip.on { opacity: 1; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--fg) }   /* 지금 보는 쪽 */

/* ── 사진 표기 자리 정책(D-121 · 2026-11-08 승주: "저작권이랑 테이블명이 겹쳐 · 저작권 좌하단 덜 흐리게 · 사진 key 와 테이블명 우상단 아주 흐리게") ──
   모든 사진(Day 카드 · 관광지 정보 창 · 첫 화면 타일) 같은 자리. */
.daycard .photo .credit, .daycard .credit, .shot .shotcredit { color: #e4e4e4 }          /* 저작권 — 왼쪽 아래 · 덜 흐리게 */
.daycard .phsrc, .shot .phsrc, .tile .cv .phsrc { top: .2rem; bottom: auto; right: .3rem; color: rgba(255,255,255,.38);
  text-shadow: 0 0 2px rgba(0,0,0,.45); max-width: calc((100% - .6rem) * 1.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transform: scale(.625); transform-origin: right top }   /* 테이블 · 키 — 오른쪽 위 · 아주 흐리게 · 저작권(.credit)과 같은 약 5px(2026-11-08 승주: "테이블명 키값 너무 커 · 위키데이터 출처만큼 작게") */   /* 테이블 · 키 — 오른쪽 위 · 아주 흐리게 */
.shot .shotcredit { padding-right: .53rem }                                           /* 오른쪽 아래가 비었으니 표기가 끝까지 */

/* 세부 일정 줄 — 이름 · 설명 글만 눌러 펼친다(2026-11-08) · 나머지는 손가락 모양 없음 */
.items > .item:not(.open) .rv { cursor: default }
.items > .item:not(.open) .rv-c { cursor: pointer }

/* 지도 핀을 누르면 뜨는 작은 칸 — 이름 + 같은 높이의 휴지통(2026-11-08 승주 · app.js pinDelPop) */
.pinpopwrap .leaflet-popup-content-wrapper { border-radius: 8px; padding: 0 }
.pinpopwrap .leaflet-popup-content { margin: 6px 6px 6px 10px; line-height: 1.3 }
.pinpop { display: flex; align-items: center; gap: 8px; max-width: 360px }   /* 관광지 이름이 덜 잘리게(2026-11-08 승주: "관광지면 좀 더 길게") */
.pinpop-name { font-size: .82rem; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.pinpop-del { flex: 0 0 auto; width: 28px; height: 28px; padding: 4px; border-radius: 8px; border: 1px solid var(--line, #e5e0d8);
  background: transparent; color: var(--muted, #7a8794); cursor: pointer; display: inline-flex; align-items: center; justify-content: center }
.pinpop-del svg { width: 18px; height: 18px }
.pinpop-del:hover, .pinpop-del:focus-visible { color: var(--pin-del-fg); border-color: var(--pin-del-fg) }

/* 날 지도 안 오른쪽 아래 단추 — 일정 순서 변경 · 순서 변경 완료 · 변경 취소(app.js mapacts) · 출처 글자 위로 띄운다 */
.daymap { position: relative }
/* 아래 일정 줄을 누른 핀 — 키우고 앞으로(2026-11-08 승주: "밑에 클릭한 게 어디 위치인지") */
.leaflet-marker-icon.pinfocus { z-index: 2000 !important }
.leaflet-marker-icon.pinfocus > * { transform: scale(1.35); transform-origin: center; filter: drop-shadow(0 0 4px rgba(0,0,0,.45)) }
/* 「지도로 일정 변경」 중 — 지도에 색 테두리(2026-11-08 승주: "변경 중인 거 티 나게") · 이때는 지도 위 휠 · 두 손가락으로 확대 · 축소(ordMode) */
/* 순서 변경 중 누른 곳 정보 칸 — 오른쪽 위 「표시하기」 아래(말풍선 대신 · 핀을 안 가림) */
.daymap.ordering { border: 2px solid var(--accent, #056aa6); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, #056aa6) 18%, transparent) }
.mapacts { position: absolute; right: 8px; bottom: 22px; z-index: 1000; display: flex; gap: 6px }
.mapacts button { box-shadow: 0 1px 4px rgba(0,0,0,.25); background: var(--bg, #fff); border: 1px solid var(--line) }
.mapacts button.primary { background: var(--accent, #056aa6); color: #fff; border-color: var(--accent, #056aa6) }
/* 작게(2026-11-08 승주: "변경 취소 · 변경 완료 버튼 조금 작게") — 지도를 덜 가린다 · 손가락 자리는 ::after 로 넓힌다 */
.mapacts { gap: 4px }
/* 2026-11-08 승주 피드백(ERP): "하양네모 · 파랑동그라미 -> 버튼 좀 깔끔하고 모양 일관되게" —
   앱 전체가 알약(999px, v711)으로 맞춰지는 동안 이 두 버튼만 .5rem 각짐으로 남아 있었다. 같은 알약으로 통일. */
.mapacts button { min-height: 0 !important; height: 1.75rem; padding: 0 .75rem; font-size: .76rem; font-weight: 700; border-radius: 8px; position: relative;
  display: inline-flex; align-items: center; gap: 4px }
/* 「지도로 일정 변경」 — 「표시」(.mapshowbtn)와 같은 꼴 · 색만 일정 쪽(파랑) */
.mapacts button.mapord { color: var(--accent, #056aa6); border-color: color-mix(in srgb, var(--accent, #056aa6) 35%, transparent) }
.mapacts button.mapord:hover { background: color-mix(in srgb, var(--accent, #056aa6) 8%, var(--bg, #fff)) }
@media (pointer: coarse) { .mapacts button::after { content: ""; position: absolute; inset: -6px -2px } }
/* 순서 고르는 중 — 안 고른 핀은 흐리게 · 고른 핀은 또렷 · 항공은 회색 */
.ordpin { opacity: .78 }   /* 순서 설정 중 안 고른 핀 — 덜 흐리게(2026-11-08 승주: "관광지 너무 흐려 · 지도에서") */
.ordpin.picked { opacity: 1 }
/* 지도 덮개 — 두 손가락은 지도만 키운다(쪽 확대 막기 · app.js pageZoomLock 과 짝) */
.mapfull { touch-action: none }
.mapfull .tripmapleg { touch-action: pan-x }

/* 도착 줄은 눌러도 안 펼친다 — 손가락 모양도 없게(2026-11-08) */
.items > .item.airarr .rv, .items > .item.airarr .rv-c { cursor: pointer }

/* 펼친 일정 칸 **오른쪽 위 [– 접기][× 지우기]**(불편사항 #1025) · 접힌 줄 ✕ 는 아주 조금 크게.
   × 는 공용 .xghost(2026-11-26 베어스타: "회색으로 하기로했던거같은데.. 카드 삭제버튼도 클래스로 만들어서
   회색으로 통일해" — 2026-11-18 승주가 정한 "바탕색 있는 사각 버튼"을 다시 걷고, 접힌 줄·예산 카드와
   같은 회색 원으로 되돌린다). 「– 접기」는 지우기와 다른 동작이라 바탕 있는 사각 버튼 그대로 둔다. */
.item > .sm.x.mini { display: none }
.item.open > .sm.x.mini {
  display: inline-flex !important; align-items: center; justify-content: center; position: absolute; top: .15rem; right: 1.95rem; z-index: 3;
  width: 1.4rem; height: 1.4rem; min-width: 0 !important; min-height: 0 !important; padding: 0; border-radius: 7px;
  border: 1px solid var(--line); background: var(--sunken); color: var(--ink, inherit); opacity: 1; font-size: 1.05rem; font-weight: 700; line-height: 1 }
.item > .sm.x.del { display: none }
.item.open > .sm.x.del {
  display: inline-flex !important; position: absolute; top: .15rem; right: .3rem; z-index: 3;
  width: 1.4rem; height: 1.4rem; min-width: 0 !important; min-height: 0 !important; font-size: 1.05rem; font-weight: 700 }
.item > .sm.x.edit { display: none }
.item.open > .sm.x.edit { display: inline-flex !important; align-items: center; position: absolute; top: .15rem; right: 3.6rem; z-index: 3; height: 1.4rem; min-width: 0 !important; min-height: 0 !important;
  padding: 0 .55rem; border-radius: 7px; border: 1px solid var(--line); background: var(--sunken); color: var(--ink, inherit); font-size: .78rem; font-weight: 700; line-height: 1; opacity: 1 }
.item.open.editing > .sm.x.edit { background: var(--accent); border-color: var(--accent); color: #fff }
.item.open.editing .fw > input, .item.open.editing .fw > textarea { background: var(--surface, #fff) !important; border: 1.5px solid color-mix(in srgb, var(--accent) 55%, var(--line)) !important; border-radius: 8px; box-shadow: none; outline: 0 }   /* 편집 = 제목 · 내용 둘 다 같은 입력 칸(2026-11-18 승주: "제목만 수정 가능해 보여") */
.item.open.editing .fw > input:focus, .item.open.editing .fw > textarea:focus { border-color: var(--accent) !important }
.item.open > .sm.x.mini:hover, .item.open > .sm.x.mini:focus-visible { background: var(--line); outline: 0 }
.item.open > .sm.x.del[hidden], .item.open > .sm.x.mini[hidden] { display: none !important }
.item.open { padding-top: 1.85rem }   /* 오른쪽 위 단추 셋 자리 — 한 줄까지는 아니게 · 편집 칸 테두리와 안 겹치게 */
.item.open { padding-right: .6rem }
/* 접힌 줄 ✕ 는 위 4166줄의 기본값(1.2rem)보다 의도적으로 조금 크게 — 같은 .rv-l .rv-x 를 여기서
   !important 로 다시 덮어쓰는 캐스케이드다(크기만 바꾸려면 이 줄도 같이 봐야 한다, 2026-11-26 정리) */
.rv-l .rv-x { width: 1.45rem !important; height: 1.45rem !important; font-size: 1.05rem; position: relative }
.rv-l .rv-x::after { content: ""; position: absolute; inset: -8px }

/* 투어 고르기 창(2026-11-08) */
.tourlist { display: grid; gap: .35rem }   /* 투어 고르기 — 숙소 · 항공과 같은 .pickcard(2026-11-08) */

/* 제목 · 내용 칸 묶음(.fw) — 고치기는 오른쪽 위 「편집」(2026-11-18) */
.item .fw { display: flex; align-items: center; gap: .125rem; min-width: 0 }
.item .line2 > .fw { flex: 1 }
.item .fw > input, .item .fw > textarea { flex: 1 1 auto; min-width: 0; width: auto }
/* 읽기 전용(연필 누르기 전) — 글자가 든 칸은 눌러도 카드가 눌린다(칸이 안 잡는다) · 빈 칸은 눌러서 바로 적는다 */
.item input.ro:not(:placeholder-shown), .item textarea.ro:not(:placeholder-shown) { pointer-events: none }
.item input.ro, .item textarea.ro { cursor: default; caret-color: transparent }

/* 인원 바뀜 안내 — 숙소 · 항공 창 같은 자리(찾기 줄 아래) · 같은 말(2026-11-08) */
.paxstale { margin: .125rem 0 .5rem; padding: .25rem .5rem; border-radius: 8px; background: var(--warn-soft, #fff3e0); color: var(--warn, #b4530a); font-size: .82rem; font-weight: 600; line-height: 1.4 }

/* 옮기기 손잡이(⠿) — 접힌 줄 왼쪽 칸 · 잘 보이는 크기(2026-11-10 승주: "너무 작아") · 누르는 자리는 더 넓게 */
/* 손잡이 = 세로로 긴 점 두 줄(줄 높이 거의 전부 · 글자 ⠿ 대신 그림) */

/* 접힌 줄 시각 두 번 눌러 고치기 칸(2026-11-08) */
/* 항공 카드 그림 칸 — ✈ (숙소 · 투어 카드와 같은 자리) */
.tkimg.airimg { font-size: 1.6rem; color: var(--move, var(--accent)) }

/* 고르기 카드 한 줄 — ✓ · 순번 · 그림 · 글(2026-11-08). 숙소 · 항공 · 투어가 **같은 카드**를 쓴다.
   grid(3칸)에 ✓ 까지 네 조각이 들어가 글이 아래로 밀리던 것을 flex 로 — 그림이 없는 카드(로고 없는 항공)도 같은 자리. */
.pickcard .pick { display: flex; align-items: center; gap: .45rem }
.pickcard .pick .rank { flex: none; width: 1.1rem }
.pickcard .pick img { flex: none }
.pickcard .pick-t { flex: 1 1 auto }
.pickcard.aircard .pick img { width: 2.8rem; height: 2.8rem; object-fit: contain; background: none }

/* 날 지도 오른쪽 위 「표시 ▾」 — 단추 하나 + 드롭다운 라디오(관광 · 숙소 · 이벤트 중 하나 · 기본 관광 · 2026-11-27 승주) */
.mapshow { position: absolute; top: 8px; right: 8px; z-index: 1000; display: flex; flex-direction: column; align-items: flex-end; gap: 6px }
.mapshowbtn { display: inline-flex; align-items: center; gap: 5px; height: 1.75rem; min-height: 0 !important; padding: 0 .55rem;
  border-radius: 8px; border: 1.5px solid #51cf66; background: #fff; color: #2b8a3e; font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.25) }
.mapshowbtn.on { background: #d3f9d8; border-color: #2f9e44; color: #1b6e2f }   /* 하나라도 켜짐 = 연한 채움(옛 단추 켜짐 색 그대로) */
.mapshowbtn .dots { display: inline-flex; gap: 3px }
.mapshowbtn .dot { width: 7px; height: 7px; border-radius: 50%; display: block; box-shadow: 0 0 0 1.5px #fff }
.mapshowbtn .dot.see { background: #2f9e44 } .mapshowbtn .dot.stay { background: #e8590c } .mapshowbtn .dot.ev { background: #9775fa }
.mapshowbtn .undated { font-size: .6rem; font-weight: 700; color: #868e96; background: #f1f3f5; border-radius: 4px; padding: 0 .25rem; line-height: 1.3 }   /* 그날 예약 가능 숙소 답이 없어 전체 숙소를 보일 때 */
/* 지도 숙소 핀 팝업의 1박 값 · 확인 줄 — 관광지 카드 글과 같은 작은 글씨(불편사항 #1750 「숙소 글씨체 이상 · 관광지 폰트랑 달라」) */
.pinpop .need { flex-basis: 100%; font-family: inherit; font-size: .74rem; font-weight: 500; line-height: 1.4; color: var(--muted); word-break: keep-all }
.pinpop .need.dayok { color: #2b8a3e; font-weight: 700 }
.mapshowbtn .chev { font-size: .62rem; opacity: .75; transition: transform .15s ease }
.mapshow.open .mapshowbtn .chev { transform: rotate(180deg) }
@media (pointer: coarse) { .mapshowbtn { position: relative } .mapshowbtn::after { content: ""; position: absolute; inset: -6px -2px } }
.mapshowmenu { min-width: 11.5rem; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid #dee2e6;
  box-shadow: 0 6px 20px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 2px; animation: mapshowin .14s ease-out }
.mapshowmenu[hidden] { display: none }
@keyframes mapshowin { from { opacity: 0; transform: translateY(-4px) } to { opacity: 1; transform: none } }
.mapshowopt { display: flex; align-items: center; gap: .55rem; width: 100%; min-height: 0 !important; padding: .45rem .55rem; border: 0; border-radius: 9px;
  background: transparent; font: inherit; text-align: left; cursor: pointer; color: var(--text, #212529) }
.mapshowopt:hover { background: #f8f9fa }
.mapshowopt.stay { margin-top: 0 }   /* 전역 .stay(숙소 칸 위 여백 .4rem)가 메뉴 숙소 칸에도 걸려 관광 · 숙소 사이만 벌어지던 것(불편사항 1552) */
.mapshowopt .box { flex: none; width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 1.5px solid #adb5bd; box-sizing: border-box; display: flex; align-items: center; justify-content: center; background: #fff; transition: border-color .12s }   /* 라디오 — 동그라미 · 켜짐 = 테두리 색 + 가운데 점 */
.mapshowopt.on .box::after { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor }
.mapshowopt.on { background: #f8f9fa }
.mapshowopt .ic { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: flex; align-items: center; justify-content: center }
.mapshowopt .ic svg { width: 58%; height: 58% }
.mapshowopt .tx { display: flex; flex-direction: column; line-height: 1.2 }
.mapshowopt .tx b { font-size: .8rem; font-weight: 700 }
.mapshowopt .tx small { font-size: .66rem; color: var(--muted, #868e96) }
/* 종류 색 = 지도 핀 색(관광 초록 · 숙소 주황 · 이벤트 보라) */
.mapshowopt.see .ic { background: #ebfbee; color: #2b8a3e; border: 1.5px solid #8ce99a }
.mapshowopt.see.on .box { border-color: #2f9e44; color: #2f9e44 }
.mapshowopt.stay .ic { background: #ffe8cc; color: #d9480f; border: 1.5px solid #fd7e14 }
.mapshowopt.stay.on .box { border-color: #e8590c; color: #e8590c }
.mapshowopt.avail .ic { background: #ffe8cc; color: #d9480f; border: 1.5px solid #fd7e14 }   /* 예약 가능 = 숙소와 같은 주황 */
.mapshowopt.avail.on .box { border-color: #e8590c; color: #e8590c }
.mapshowbtn .dot.avail { background: #e8590c }
.mapshowopt.ev .ic { background: #f3e8ff; color: #7048e8; border: 1.5px solid #9775fa }   /* 이벤트 = 투어 그림 · 보라(지도 핀과 같게) */
.mapshowopt.ev.on .box { border-color: #7950f2; color: #7950f2 }
@media (pointer: coarse) { .mapshowopt { min-height: 44px !important } }
/* 숙소 핀 — 연한 보라 동그라미 · 침대 그림 */
.staypin { position: relative; width: 22px; height: 22px; border-radius: 50%; background: #ffe8cc; border: 1.5px solid #fd7e14; color: #d9480f; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.25) }
.staypin svg { width: 62%; height: 62% }
.staypin.picked { background: #ffc078; border-color: #e8590c }
.staypin b { position: absolute; top: -.42rem; right: -.42rem; min-width: 1.05rem; height: 1.05rem; padding: 0 .125rem; border-radius: 999px; background: #e8590c; color: #fff; font-size: .62rem; line-height: 1.05rem; text-align: center }
.staypin .pinname { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 2px; white-space: nowrap; font-size: .62rem; font-weight: 700; color: #d9480f; text-shadow: 0 0 2px #fff, 0 0 2px #fff }
.staypop, .pinpop.withcard { flex-wrap: wrap; max-width: 17rem }
/* 핀 카드 — 일정 숙소 카드와 같은 꼴(왼쪽 작은 사진 · 오른쪽 이름 · 한 줄) */
.pincard { flex-basis: 100%; display: grid; grid-template-columns: 3.6rem 1fr; gap: .55rem; align-items: center; min-width: 0 }
.pincard .pcth { width: 3.6rem; height: 2.7rem; border-radius: 8px; border: 0; padding: 0; min-height: 0; background: var(--sunken, #eee) center / cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: 1.1rem }
button.pcth { cursor: zoom-in }
.pincard .pctx { display: grid; gap: .1rem; min-width: 0 }
.pincard .pctx b { font-size: .88rem; line-height: 1.3; word-break: keep-all; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical }
.pincard .pctx span { font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.staypop .need { flex-basis: 100%; font-size: .72rem; color: #c2410c; background: #fff7ed; border-radius: 6px; padding: .3rem .45rem; word-break: keep-all }
/* 주변 관광지 핀 — **아주 연한 초록**(일정 핀과 갈라 보이게 · 작게) · 순서 설정에서 고르면 번호 */
.evpin { position: relative; width: 24px; height: 24px; border-radius: 50%; background: #f3e8ff; border: 1.5px solid #9775fa; color: #7048e8; display: flex; align-items: center; justify-content: center; font-size: 12px; line-height: 1; box-shadow: 0 1px 3px rgba(0,0,0,.25) }   /* 이벤트 핀(place_events) — 투어와 같은 보라 · 투어 그림 */
.evpin > svg { width: 14px; height: 14px }
.evpin.clinic { font-size: 12px }   /* 병원 이벤트(kind clinic) — 🏥 모양 · 색은 이벤트와 같은 보라 */
.evpin .pinname { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 700; color: #5f3dc4; text-shadow: 0 0 3px #fff, 0 0 3px #fff }
.pinpop.evpop .mi-tag.ev, .mapinfobar .mi-tag.ev { background: #f3e8ff; color: #5f3dc4 }
.pinpop.evpop .evwhen { font-size: .76rem; font-weight: 700; color: #5f3dc4; flex: 1 0 100% }
.pinpop.evpop .evsum { font-size: .72rem; color: var(--muted); flex: 1 0 100%; display: flex; flex-direction: column; gap: .28rem; text-align: left; max-height: 15rem; overflow-y: auto; line-height: 1.4 }
.mapinfobar .pinpop.evpop .evsum { max-height: 8.5rem }   /* 그날 지도 위 띠 — 지도를 다 가리지 않게 · 안에서 밀어 봄 */
.pinpop.evpop .evvenue { font-size: .7rem; color: var(--muted); flex: 1 0 100%; text-align: left }
.pinpop.evpop .evline { color: var(--fg); font-weight: 600 }
.pinpop.evpop .evrow { display: grid; grid-template-columns: 3.6em 1fr; gap: .45rem; align-items: start }
.pinpop.evpop .evlab { font-weight: 700; color: #5f3dc4; white-space: nowrap }
.pinpop.evpop .evval { display: flex; flex-direction: column; gap: .1rem; color: var(--fg); overflow-wrap: anywhere }
.pinpop.evpop .evdoses { display: flex; flex-wrap: wrap; gap: .15rem .3rem }
.pinpop.evpop .evdose { font-variant-numeric: tabular-nums; background: #f3f0ff; color: #3b2a7a; border-radius: 5px; padding: 0 .3rem; white-space: nowrap }
.pinpop.evpop .evpx { color: var(--muted) }   /* 이벤트 · 병원 설명 = 라벨 칸 + 값 · 가격은 용량마다 한 줄(승주: "문구 공백 등 예쁘게") */
.nearpin { position: relative; width: 22px; height: 22px; border-radius: 50%; background: #d3f9d8; border: 1.5px solid #69db7c;
  color: #2f9e44; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 2px rgba(0,0,0,.18); cursor: pointer }
.nearpin svg { width: 62%; height: 62% }
.nearpin.picked { background: #b2f2bb; border-color: #40c057; color: #2b8a3e }
.nearpin b { position: absolute; top: -.42rem; right: -.42rem; min-width: 1.05rem; height: 1.05rem; padding: 0 .125rem; border-radius: 999px;
  background: #fff; color: #2b8a3e; font-family: var(--m); font-size: .68rem; font-weight: 800; line-height: 1.05rem; text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.3) }
.pinpop-add { flex: 0 0 auto; min-height: 0 !important; height: 28px; padding: 0 .5rem; border-radius: 8px; border: 1px solid #b2f2bb;
  background: #ebfbee; color: #2b8a3e; font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer }

/* 글 받는 창(askText · 불편사항 접수 · 2026-11-08) */
.cfm-ask { width: min(26rem, 100%) }
.cfm-text { display: block; width: 100%; box-sizing: border-box; margin: 0 0 1rem; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg, var(--surface)); color: var(--fg); font: inherit; font-size: .95rem; line-height: 1.5; resize: vertical; min-height: 7rem }
.cfm-text:focus { outline: none; border-color: var(--accent) }
.cfm-shots { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: -.5rem 0 1rem }
.cfm-shots .cfm-hint { font-size: .78rem; color: var(--muted) }
.cfm-thumbs { display: flex; gap: .4rem; flex-wrap: wrap; width: 100% }
.cfm-thumb { position: relative; width: 4.5rem; height: 4.5rem; border-radius: 8px; overflow: hidden; border: 1px solid var(--line) }
.cfm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block }
.cfm-thumb button { position: absolute; top: 2px; right: 2px; width: 1.4rem; height: 1.4rem; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; cursor: pointer }
.cfm-btn:disabled { opacity: .5; cursor: default }
/* 지도 주변 관광지 이름 = 정보 창 열기 단추(2026-11-08) · 정보 창 아래 「닫기 · ＋ 일정에 추가」 */
.pinpop-link { border: 0; background: none; padding: 0; min-height: 0 !important; min-width: 0 !important; font: inherit; font-size: .82rem; font-weight: 600;
  color: var(--fg, #172b4d); text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; text-align: left }
.pinpop-link:hover { color: #2b8a3e }
.shotacts { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .75rem; padding-top: .5rem; border-top: 1px solid var(--line) }
/* 말풍선 선호도 · 차례 — 이름 옆 작게(2026-11-08 승주: "선호도 표시도 이름 옆에") */
.pinpop-score { flex: 0 0 auto; font-size: .76rem; font-weight: 700; color: #2b8a3e; background: #ebfbee; border-radius: 999px; padding: .125rem .5rem; white-space: nowrap }
/* 선호 N% — 정보 단추와 같은 색(50 미만 연붉은 · 이상 연파랑) · 누르면 정보 창 */
.pinpop-score.pref-lo { color: #a33a3a; background: #fdecec }
.pinpop-score.pref-hi { color: #2c5d9b; background: #e8f1fd }
button.pinpop-score { border: 0; cursor: pointer; min-height: 0 !important; min-width: 0 !important; font-family: inherit; line-height: 1.3 }
:root[data-theme="dark"] .pinpop-score.pref-lo { color: #f2b8b8; background: #3a2223 }
:root[data-theme="dark"] .pinpop-score.pref-hi { color: #b9d3f5; background: #1d2c40 }
/* 투어 카드 — 숙소 카드(.stay-card)와 같은 꼴(2026-11-08) */
.item .tourbox { margin-top: .5rem }
.item .tourbox[hidden] { display: none }
/* 장소(제목) 칸도 메모처럼 — 연필을 누르기 전(.ro)에는 테두리 · 바탕 없이 글만(2026-11-08 승주: "제목 인풋 라인 말고 메모처럼 · 연필 누르기 전엔 테두리 없애") */
.item .line1 input.place.ro, .item .line1 input.place.ro:hover { border-color: transparent !important; background: transparent !important; box-shadow: none !important; padding-left: .2rem }

/* 메모 = 여러 줄 칸 — 1~2줄 높이(길면 줄바꿈 · 넘치면 칸 안에서 굴림) · 손으로 크기 안 바꿈(2026-11-08) */
.item .line2 textarea.memo { height: auto; min-height: 2.1rem; max-height: 4rem; line-height: 1.45; resize: none; overflow-y: auto; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; font-family: inherit }

/* 펼친 칸 오른쪽 아래 옮기기 손잡이(2026-11-08) — 접힌 줄에서는 숨김(.item:not(.open) 규칙) · 항공 · 도착 줄은 숨김 */
.item.open > .grip2 { position: absolute; right: .45rem; bottom: .4rem; width: 1.6rem; height: 1.6rem; min-width: 0 !important; min-height: 0 !important;
  padding: 0; border: 0; background: none; color: var(--muted); opacity: .75; font-size: 1.3rem; line-height: 1; cursor: grab; touch-action: none; z-index: 2 }
.item.open > .grip2:hover { opacity: 1; color: var(--accent) }
.item.open > .grip2::after { content: ""; position: absolute; inset: -8px }
.item.airpin > .grip2 { display: none !important }
/* 항공 · 도착 줄은 순서가 고정이라 접힌 줄의 끌기 손잡이(⠿)도 안 보인다(2026-11-08 승주: "항공은 이동 표시 없애 줘") — 자리는 둬서 줄 칸이 안 밀린다 */

/* 숙소 창 — AI 숙소 고르기 내 취향 한 줄(작게 · 흐리게 · 화면을 가리지 않게) */
.paxrow .stay-cap { margin-left: auto; display: inline-flex; align-items: center; gap: .25rem; font-size: .82rem; font-weight: 600; color: var(--muted); white-space: nowrap }   /* 숙소 창 1박 금액대 — 어른 · 아이 줄 오른쪽 */
.paxrow .stay-cap input { width: 4.4em; height: 2rem; padding: 0 .5rem; text-align: center; border: 1px solid var(--line); border-radius: 999px; font: inherit; color: var(--ink, inherit); background: var(--surface) }

/* 숙소 창 — 지역 후보(칸 아래 · 누르면 그 지역으로 찾기) */
.modal-find { position: relative; z-index: 6 }
.region-sug { position: absolute; z-index: 20;
  display: flex; flex-direction: column; max-height: min(18rem, 50vh); overflow-y: auto;
  border: 1px solid var(--line); border-top: 0; border-radius: 0 0 1.1rem 1.1rem; padding: .2rem .25rem .45rem; background: var(--surface, #fff);
  box-shadow: 0 10px 20px rgba(0,0,0,.10) }
.modal-find input.sug-open { border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important }
.region-sug[hidden] { display: none }
.region-sug .region-opt { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; width: 100%;
  text-align: left; border: 0; background: none; padding: .5rem .65rem; border-radius: 8px;
  font-family: inherit; color: var(--ink, inherit); cursor: pointer; min-height: 0; line-height: 1.3 }
.region-sug .region-opt .nm { font-size: .9rem; font-weight: 700 }
.region-sug .region-opt .sub { font-size: .75rem; color: var(--muted) }
.region-sug .region-opt:hover, .region-sug .region-opt:focus-visible { background: var(--accent-soft, rgba(0,0,0,.06)); outline: 0 }
/* 취향 한 줄 · 인원 줄은 목록에 눌려 줄지 않게(글자 위가 잘렸다) */
.modal > .paxrow, .modal > .paxstale { flex: none }

/* 카드 단추(예약하기 · 지우기 · 다음 날도) — 줄 단추(act2)보다 살짝 큰 2rem · 손가락 44px 규칙에서 빼고 누르는 자리만 넓힘(불편사항 #18) */
.stay-card .stay-tools .sm { display: inline-flex; align-items: center; height: 2rem; min-height: 0; padding: 0 .9rem; position: relative }
.stay-card .stay-tools .sm::after { content: ""; position: absolute; inset: -6px -2px }
/* 지도 위 선택 띠의 단추(휴지통 · 일정추가) — 옆 「선호 %」 와 같은 높이(불편사항 #20) */
.mapinfobar .pinpop-del svg { width: 15px; height: 15px }
.mapinfobar .pinpop-del::after, .mapinfobar .pinpop-add::after { content: none }   /* 넓힌 누르는 자리가 초록 칸 전체를 덮어 아무 데나 누르면 삭제됐다 */
@media (pointer: coarse) {
  .stay-card .stay-tools .sm, .mapinfobar .pinpop-del, .mapinfobar .pinpop-add { min-height: 0 !important; min-width: 0 !important }
}
/* 짠 여행의 출발지 · 도착지 · 날짜 — 읽기만(누르면 「지우고 새로 만들어 주세요」) */
input.corelock { background: var(--sunken); color: var(--muted); cursor: not-allowed }

/* **도착 줄을 펼치면 이름 · 시각만 고친다**(불편사항 #25 · #26) — 다른 칸 · 단추는 숨김 · 같은 푸른 바탕 */
.items > .item.airarr.open { background: var(--bg) }
.item.airarr.open > :not(.rv):not(.line1) { display: none !important }
.item.airarr.open .line1 > .kindwrap, .item.airarr.open .line1 > .sm { display: none !important }
/* 항공 줄을 펼친 동안 아래 도착 줄은 들여쓰기 없이(레일 점 칸 없음 · 카드 안쪽과 같은 왼쪽 · #25) */
.item.airhead.open + .item.airarr:not(.open) .rv > .rv-n { display: none }
.item.airhead.open + .item.airarr:not(.open) .rv > .rv-c { grid-column: 1 / span 2 }
.item.airhead.open + .item.airarr:not(.open) .rv-t { left: .5rem }
/* 펼친 칸 시각 알약 — 오른쪽 이름과 같은 글자 크기 · 낮게(손가락 44px 규칙에서 뺌 · #24)
   ⚠️ 글자만 키우고 폭(width)은 그대로 두면 네이티브 time 입력칸(HH:MM)이 다 안 들어가 잘려 보인다
   ("12:30" 이 "12:3" 처럼 잘림 · 2026-12-04 베어스타 제보) — 폭도 같이 늘린다. */
.item .line1 > input.time { font-size: .95rem; height: 2rem; width: 4.5rem }
@media (pointer: coarse) { .item .line1 > input.time { min-height: 0 !important } }
/* 새 여행 출발 공항 칩 순위(1순위 …) — 작은 글씨 */
.chips .c .rank { font-size: .7rem; font-weight: 600; margin-left: .2rem; opacity: .9 }

/* 펼친 칸 옮기기 손잡이 — 오른쪽 끝 세로 · 위쪽 같은 높이(아래에 무엇이 붙든) · 접힌 줄 손잡이와 같은 점 꼴(불편사항 #30 · #33) */
.item.open > .grip2 { top: 3.2rem; bottom: auto; right: .3rem; width: 12px; height: 2.4rem; font-size: 0; border-radius: 3px;
  background: radial-gradient(circle, currentColor 1.4px, transparent 1.9px) center / 6px 6px repeat; opacity: .6 }
.item.open > .grip2::after { inset: -6px -10px }
/* 옮길 줄이 하나뿐인 날 — 손잡이 숨김(#29) */
.items.nomove > .item > .grip2 { visibility: hidden; pointer-events: none }
.items > .item.open:not(.airarr) { padding-right: 1.3rem }   /* 오른쪽 끝 칸은 손잡이만 */

/* ── 고르기 창 정리(숙소 · 항공 · 투어 · 불편사항 #39) — 글자는 세 단계: 제목 .95 · 본문 .88 · 안내 .8 · 줄 왼쪽 끝을 하나로(.75rem) ── */
.modal > .paxrow, .modal > .paxstale { margin-left: .75rem; margin-right: .75rem }
.modal > .paxrow { margin-top: 0; margin-bottom: .4rem }
.modal-move .st { font-size: .8rem; color: var(--muted); line-height: 1.45; margin: 0 0 .4rem }
.modal-move .st.locknote { margin: -.25rem 0 .5rem }
.modal-move .aff { margin: 0 0 .25rem }
.flightbox { margin-top: .4rem; padding-top: .5rem }
.flightbox .paxrow { margin: 0 0 .5rem }
.flightbox .paxstale { margin: 0 0 .5rem }
.tourpick { padding: .75rem 1rem 1rem; display: flex; flex-direction: column; gap: .5rem }
.tourpick .ovhint { font-size: .8rem; line-height: 1.45 }
.tripbox .face.more { background: var(--sunken); color: var(--muted); font-size: .7rem; border-color: var(--line) }   /* 7번째부터 +N */

/* 숙소 · 교통 모아 보기(.day.filtered)에는 순서 옮기기 손잡이가 필요 없다(불편사항 #43 · #44 — 날마다 따로 선 줄이라 옮길 데가 없음) */
.day.filtered .grip2 { display: none !important }

/* 확대 · 축소 — 흐리게(70%) · 좌상단에 여백 적게(불편사항 #48) */
.daymap .leaflet-top.leaflet-left .leaflet-control { margin: 6px 0 0 6px; opacity: .7 }
.daymap .leaflet-top.leaflet-left .leaflet-control:hover { opacity: 1 }

/* 크게 보기 지도(불편사항 #49) — 오른쪽 위 「닫기」 와 안 겹치게 표시하기를 그 아래로 · 단추는 15% 크게 */
.mapfull .mapshow { top: 3rem }
.mapfull .mapshowbtn { height: 2rem; font-size: .875rem; padding: 0 .6rem }
.mapfull .mapacts button { font-size: 1.15em; padding: .35rem .8rem }
.mapfull .leaflet-touch .leaflet-bar a, .mapfull .leaflet-bar a { width: 34px; height: 34px; line-height: 34px; font-size: 20px }


/* 지도 「고정 / 이동」 두 칸(불편사항 #54) — 지금 상태 쪽을 갈색 굵게 · 칸을 눌러 바꾼다 */

/* ── 누른 곳 정보 탭 — 「그날 경로 지도」 글자 줄 오른쪽 · 조금 아래로 지도 위에 붙음 · 오른쪽 정렬 · 진한 초록(모드 상관없이 같은 꼴) ──
   글자 너비만큼 비켜서 넓어진다 · 넘치면 다음 줄 */
.mapinfobar { display: flex; align-items: center; width: fit-content; max-width: calc(100% - 7.5rem); position: absolute !important; right: 0; top: 0; margin: 0; padding: .2rem .6rem;
  border-radius: 10px; background: #dcf1e2; border: 1px solid #b6dfc1; color: #1f4d2b; position: relative; z-index: 1 }
.mapinfobar[hidden] { display: none }
details.foldbox:has(> .daymap) { position: relative }   /* 정보 탭이 떠 있을 자리(지도를 밀지 않음) */
.mapinfobar > .pinpop { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .3rem .4rem; max-width: none; min-width: 0 }
.mapinfobar .pinpop-name, .mapinfobar .pinpop-link { font-size: .86rem; font-weight: 800; color: #1f4d2b; white-space: normal; text-decoration: none }
.mapinfobar .pinpop-link::after { content: " ›"; color: #2f9e44; font-weight: 700 }
.mapinfobar .pinpop-score, .mapinfobar .mi-tag { font-size: .7rem; font-weight: 700; height: 1.4rem; display: inline-flex; align-items: center; padding: 0 .5rem; border-radius: 999px; line-height: 1; border: 0 }
.mapinfobar .pinpop-score { background: #fff; color: #2b8a3e }
.mapinfobar .pinpop-score.pref-hi { background: #fff; color: #2c5d9b; border: 1px solid #bcd4f3 }   /* 선호 높음 = 파랑 글자 */
.mapinfobar .pinpop-score.pref-lo { background: #fff; color: #c92a2a; border: 1px solid #f3c4c4 }   /* 선호 낮음 = 빨강 글자 */
.mapinfobar .mi-tag { background: #fff; color: #2b8a3e }
.mapinfobar .mi-tag.lock { background: #fff3e0; color: #b4530a }
/* ⚠️ 2026-11-26 검토: .pinpop-del 의 최종 색은 이 줄이 아니라 더 아래(약 5422줄)의
   ".pinpop-del, .mapinfobar .pinpop-del { color:var(--pin-del-fg) }" 가 같은 명시도로 뒤에서 이겨 빨강이 된다
   (2026-11-26 재작업: 그 del 전용 자리는 --pin-del-fg 토큰으로 바꿈 — 값은 그대로 #c92a2a, 명세·순서도 안 바꿔 위험 없음).
   여기 color:#2b8a3e(초록)는 .pinpop-add 쪽에만 실제로 적용된다 — del/add 를 분리하지 않은 건
   의도적 복붙이 아니라 당시 공용 알약 스타일이었고, kind(=stay/move)별 색은 더 뒤의
   .mapinfobar.stay/.move 규칙이 명시도로 덮는다. 색을 고치려면 이 네 자리(여기·stay·move·기본)를 다 봐야 한다 —
   아직 공통 토큰화는 안 함(지도 핀 색 체계가 복잡해 실측 없이 건드리면 깨질 위험이 큼, phase2 로 미룸). */
.mapinfobar .pinpop-del, .mapinfobar .pinpop-add { height: 1.4rem; padding: 0 .5rem; border-radius: 999px; border: 1px solid #b6dfc1; background: #fff; color: #2b8a3e; font-size: .7rem; font-weight: 700 }
.mapfull > .mapinfobar { left: 3.6rem; right: 6.4rem; top: .6rem !important; width: auto; z-index: 1002; max-width: none; border-radius: 10px; justify-content: center }   /* 크게 보기 — 위 가운데(＋ − 와 닫기 · 관광 · 숙소 단추 사이 · 단추를 안 가림 · 불편사항 #1453) */
.mapfull > .mapinfobar > .pinpop { flex-direction: column; flex-wrap: nowrap; align-items: center; gap: .3rem }
.mapfull > .mapinfobar .pinpop-name, .mapfull > .mapinfobar .pinpop-link { white-space: normal; max-width: none; text-align: center }
/* 순서 변경 중 설명 — 지도 바로 아래 빨간 글씨 */

.ordhint { margin: .35rem 0 0; font-size: .8rem; font-weight: 700; color: #d6336c }
.mapinfobar .mi-tag.near { background: #c9f2d3; color: #1f4d2b }
/* **카드 팝업은 좁게 · 오른쪽**(2026-11-18 승주: "너무 좌측 · 글자 두 줄 돼도 되니 너비 작게") — 재는 폭(인라인 width)을 덮어 17rem · 이름은 두 줄까지 */
.mapinfobar:has(> .pinpop.withcard) { width: 17rem !important; max-width: calc(100% - 1rem) !important; padding: .45rem .55rem }
.mapinfobar > .pinpop.withcard { flex-wrap: wrap; justify-content: flex-end; gap: .35rem }
.mapinfobar > .pinpop.withcard .pincard { flex-basis: 100% }
/* 숙소 카드 = 주황 탭(관광지 = 초록) — 지도 숙소 핀 · 일정 숙소 핀 같이 */
.mapinfobar:has(> .pinpop[data-kind="stay"]) { background: #fff4e6; border-color: #ffc078; color: #7a3410 }
.mapinfobar:has(> .pinpop[data-kind="stay"]) .pincard .pctx b { color: #7a3410 }
.mapinfobar:has(> .pinpop[data-kind="stay"]) .pinpop-del, .mapinfobar:has(> .pinpop[data-kind="stay"]) .pinpop-add, .mapinfobar:has(> .pinpop[data-kind="stay"]) .pinpop-info { border-color: #ffc078; color: #c2410c }
/* 알림 — 두 줄까지 · 넓게(불편사항 #57) */
.say { white-space: pre-line; width: max-content }
/* 누른 곳 이름 — 탭 맨 위에 작게 한 줄(그 아래 꼬리표 · 단추) */
.mapinfobar > .pinpop { flex-direction: row; flex-wrap: nowrap }   /* 이름 · 선호 · 꼬리표 · 단추를 한 줄로(불편사항 #60) */
.mapinfobar .pinpop-name, .mapinfobar .pinpop-link { flex-basis: auto; font-size: .78rem; font-weight: 800; color: #1f4d2b; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 12rem }

/* 「지도로 일정 변경」 · 완료 · 취소 — 오른쪽 아래 더 아래로(저작권 표시는 왼쪽 아래로 옮김) */
.daymap .mapacts { bottom: 8px }
.daymap .leaflet-control-attribution { font-size: 9px; opacity: .75 }
/* 「⤢ 크게 보기」 — 낮고 가볍게(지도 단추들과 같은 꼴) */
.mapbig { min-height: 0 !important; height: 1.9rem; padding: 0 .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--fg); font-size: .8rem; font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.08) }
.mapbig:hover { border-color: var(--accent); color: var(--accent) }
/* 투어 · 티켓 줄 — 다른 줄과 같은 강조색 바탕(펼치면 살짝 진하게) */
.items > .item.isact:not(.open) { background: var(--bg) }
.items > .item.isact.open { background: var(--bg) }
.items > .item.isact .rv:hover .rv-c { background: transparent }
/* 투어 카드 이름 — 숙소 카드 글자만큼 작게 · 두 줄까지(긴 상품 이름이 크게 세 줄로 퍼졌다) */
.stay-card.tourcard .stay-info strong { font-size: .86rem; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.stay-card.tourcard .stay-meta { font-size: .76rem }
/* 정보 탭은 제목 줄 높이 안에 — 낮게 */
.mapinfobar .pinpop-score, .mapinfobar .mi-tag, .mapinfobar .pinpop-del, .mapinfobar .pinpop-add { height: 1.3rem }

/* 「정보」 단추 — 정보 있는 곳에만 · 작고 또렷하게 */
.pinpop-info { flex: none; min-height: 0 !important; min-width: 0 !important; height: 1.3rem; padding: 0 .55rem; border-radius: 999px; border: 1px solid #8fd19e;
  background: #fff; color: #2b8a3e; font: inherit; font-size: .7rem; font-weight: 800; cursor: pointer }
/* 숙소를 누르면 주황 탭(핀 색과 같은 계열) */
.mapinfobar.stay { background: #ffe8d6; border-color: #ffc9a3; color: #7a3a0b }
.mapinfobar.stay .pinpop-name, .mapinfobar.stay .pinpop-link { color: #7a3a0b }
.mapinfobar.stay .pinpop-score, .mapinfobar.stay .mi-tag { color: #c25e0a }
.mapinfobar.stay .pinpop-del, .mapinfobar.stay .pinpop-add { border-color: #ffc9a3; color: #c25e0a }
.mapinfobar.stay .pinpop-info { background: #fff; color: #c25e0a; border-color: #ffc9a3 }
/* 관광지 정보 팝업 — 작고 가볍게 */
.ovbox.placepop { width: min(100%, 26rem) }
.ovbox.placepop .ovhd h3 { font-size: .9rem }
.ovbox.placepop .shotwrap { padding: .7rem; gap: .4rem; font-size: .86rem }
.ovbox.placepop .shotstrip .shot img { max-height: 11rem; object-fit: cover }
/* 이동(기차 · 버스 · 자동차 …) 줄 — 일반 카드 · 색만 항공과 같게(펼치면 살짝 진하게 · 도착 카드는 항공만 · 불편사항 #67) */
.items > .item[data-kind="move"]:not(.airhead):not(.airarr):not(.open) { background: var(--bg) }
.items > .item[data-kind="move"]:not(.airhead):not(.airarr).open { background: var(--bg) }
.items > .item[data-kind="move"] .rv:hover .rv-c { background: transparent }
.card.tile .v.stays .smore .lshort { white-space: nowrap; font-weight: 600 }
/* 지도 정보 칸 단추 — 제 크기 안에서만 눌림 · 휴지통은 정보 단추와 띄움 */
.mapinfobar .pinpop-del, .mapinfobar .pinpop-add, .mapinfobar .pinpop-info { position: relative }
.mapinfobar .pinpop-del { margin-left: .5rem }


/* **입력칸은 늘 고르기 · 붙여 넣기가 되게**(불편사항 #74 「AI 채팅에 붙여 넣기」) — 위의 user-select:none(손잡이 · 끄는 중 body.sheet-drag · 줄 들기)이
   어떤 경로로든 입력칸까지 내려오면 길게 눌러도 붙여 넣기 메뉴가 안 뜬다(앱 WebView). 입력칸만은 늘 기본 동작으로 되돌린다. */
input, textarea, [contenteditable="true"],
body.sheet-drag input, body.sheet-drag textarea {
  user-select: text; -webkit-user-select: text; -webkit-touch-callout: default;
}

/* **전체 일정 지도 단추 — 지도처럼 · 누르고 싶게**(불편사항 #72) — 색 지도 그림 + 「지도」 · 연한 지도 바탕 알약 · 살짝 떠 있게 */
.daysbox .sechead .tripmapbtn {
  width: auto !important; height: 2rem !important; padding: 0 .65rem 0 .45rem !important; gap: .3rem; display: inline-flex; align-items: center;
  border-radius: 999px; border: 1.5px solid #74c0fc; color: #1864ab; font-size: .8rem; font-weight: 800;
  background: linear-gradient(135deg, #ebfbee 0%, #e7f5ff 55%, #fff9db 100%);
  box-shadow: 0 2px 6px rgba(28, 126, 214, .18); transition: transform .12s ease, box-shadow .12s ease;
}
.daysbox .sechead .tripmapbtn svg { width: 18px !important; height: 18px !important }
.daysbox .sechead .tripmapbtn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(28, 126, 214, .28); color: #1864ab; border-color: #339af0 }
.daysbox .sechead .tripmapbtn:active { transform: translateY(0); box-shadow: 0 1px 3px rgba(28, 126, 214, .2) }
:root[data-theme="dark"] .daysbox .sechead .tripmapbtn { background: linear-gradient(135deg, #1b3a24 0%, #14304a 55%, #3a3416 100%); color: #a5d8ff; border-color: #1c7ed6 }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .daysbox .sechead .tripmapbtn { background: linear-gradient(135deg, #1b3a24 0%, #14304a 55%, #3a3416 100%); color: #a5d8ff; border-color: #1c7ed6 } }

/* **지도 위 정보가 바뀌면 티 나게**(불편사항 #71 「지워졌다 순식간에 뜨는 느낌」) — 잠깐 사라졌다 커지며 뜨고 테두리가 한 번 빛난다 */
@keyframes mapinfo-pop { 0% { opacity: 0; transform: translateY(-4px) scale(.94) } 60% { opacity: 1; transform: translateY(0) scale(1.03) } 100% { transform: none } }
@keyframes mapinfo-ring { 0% { box-shadow: 0 0 0 0 rgba(47, 158, 68, .55) } 100% { box-shadow: 0 0 0 8px rgba(47, 158, 68, 0) } }
.mapinfobar.flash { animation: mapinfo-pop .32s ease-out, mapinfo-ring .7s ease-out }
@media (prefers-reduced-motion: reduce) { .mapinfobar.flash { animation: none } }
/* 이름이 잘리지 않게 — 「그날 경로 지도」 글자 바로 뒤부터 오른쪽 끝까지 쓴다(넘치면 줄바꿈) */
.mapinfobar { max-width: calc(100% - 6.6rem) }

/* **핀 아래 이름**(불편사항 #71 「좌표에 이름 작게」) — 작은 글씨 · 흰 테두리 글자 · 너무 길면 두 줄까지 */
.pinname { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 1px; width: max-content; max-width: 7.5rem;
  font-size: .62rem; font-weight: 800; line-height: 1.15; color: #212529; text-align: center; pointer-events: none; white-space: normal;
  text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.nearpin .pinname { color: #2b8a3e; font-weight: 700 }

/* **웹 검색으로 찾은 숙소** — 사진 칸에 집 그림(투어 티켓 그림과 같은 꼴 · 우리 SVG) */
.stay-card .tkimg.hsimg { color: var(--stay); background: color-mix(in srgb, var(--stay) 12%, var(--sunken)) }
.hsico { display: inline-block; width: 1.8rem; height: 1.8rem; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11.5 12 4l9 7.5 M5.5 9.8V20h13V9.8 M10 20v-5h4v5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11.5 12 4l9 7.5 M5.5 9.8V20h13V9.8 M10 20v-5h4v5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat }

/* **마이리얼트립에 편이 없는 날의 항공 카드** — 시각 단계(확정 · 예상 · 가정)를 작은 꼬리표로 */
.airtier { display: inline-block; margin-left: .35rem; padding: 0 .45rem; border-radius: 999px; font-size: .7rem; font-weight: 700; line-height: 1.5; vertical-align: .1em }
.airtier.t-ok { background: color-mix(in srgb, #2b8a3e 14%, transparent); color: #2b8a3e }
.airtier.t-est { background: color-mix(in srgb, #e8590c 14%, transparent); color: #c2410c }
.airtier.t-guess { background: color-mix(in srgb, #c92a2a 12%, transparent); color: #c92a2a }

/* **항공 줄 + 짝 도착 줄 = 바깥 테두리 하나**(불편사항 #102 — 고른 항공 카드가 가운데 진한 선으로 둘로 나뉘어 보임).
   가운데(항공 줄 아래 · 도착 줄 위)는 연한 점선만 · 진한 테두리 · 고른 표시(.on 바깥선)는 두 줄 바깥만 감싼다. 파일 맨 끝 — 앞의 같은 선택자보다 이긴다. */
.items > .item.airhead.open, .items > .item.airhead.on { border-bottom-color: transparent }
.items > .item.airhead.on, .items > .item.airarr.on { outline: none }
.items > .item.airhead.on { box-shadow: inset 2px 0 0 var(--accent), inset -2px 0 0 var(--accent), inset 0 2px 0 var(--accent) }
.items > .item.airhead.on + .item.airarr { box-shadow: inset 2px 0 0 var(--accent), inset -2px 0 0 var(--accent), inset 0 -2px 0 var(--accent) }
.items > .item.airarr.on { box-shadow: inset 2px 0 0 var(--accent), inset -2px 0 0 var(--accent), inset 0 -2px 0 var(--accent) }
.items > .item.airhead:has(+ .item.airarr.on) { box-shadow: inset 2px 0 0 var(--accent), inset -2px 0 0 var(--accent), inset 0 2px 0 var(--accent); border-bottom-color: transparent }
.items > .item.airhead.open + .item.airarr { border-top: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent) }

/* **전체 지도 핀 카드 = 위 가운데 고정**(불편사항 #133 핀 위 말풍선이 둘레 핀을 가림 · #1453 단추를 안 가리게) — 누를 때마다 사라졌다 나타남(fullCard) */
.mapfull .mapcard { position: absolute; top: max(.6rem, env(safe-area-inset-top)); left: 3.6rem; right: 6.4rem; margin: 0 auto; width: auto; z-index: 1001;   /* 위 가운데 — ＋ − 와 닫기 · 관광 · 숙소 단추 사이(불편사항 #1453) */
  max-width: 17rem; padding: 6px 6px 6px 10px; border-radius: 10px; background: var(--surface); color: var(--fg);
  border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,.2); line-height: 1.3;
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; visibility: hidden }
.mapfull .mapcard.show { opacity: 1; transform: none; pointer-events: auto; visibility: visible }
@media (prefers-reduced-motion: reduce) { .mapfull .mapcard { transition: none } }

/* **날 단추 셋**(🧹 비움 · 🗑 삭제 · ↻ 다시 — 한눈 보기 · 날 상세 같은 단추) — 같은 높이 알약 · 가로 한 줄 · 폰 400px 에서도 한 줄.
   한눈 보기에서는 Day · 날짜 줄 바로 아래 줄(제목 · 날짜와 안 겹침) — 옛 오른쪽 위 겹침 자리(.dayacts absolute)를 덮는다. 파일 맨 끝. */
.daybtns { display: flex; flex-wrap: nowrap; align-items: center; gap: .35rem }
.daybtns .sm { flex: none; min-height: 0; min-width: 0; height: 1.75rem; padding: 0 .65rem; border-radius: 999px; font-size: .74rem; font-weight: 600;
  line-height: 1; white-space: nowrap; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; position: relative }
.daybtns .sm::after { content: ""; position: absolute; inset: -6px -2px }   /* 누르는 칸 넉넉히 */
.daybtns .db-del { color: var(--stop); border-color: color-mix(in srgb, var(--stop) 45%, var(--line)) }
.daybtns .db-del:hover { background: var(--stop-soft) }
.daybtns .db-redo { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)) }
.daybtns .db-redo:hover { background: var(--accent-soft) }
.daybtns .db-clear:hover { color: var(--fg); border-color: var(--fg) }
.daybtns .sm:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px }
@media (pointer: coarse) { .daybtns .sm { min-height: 0 !important; min-width: 0 !important } }
/* Day · 날짜 줄 = 한 줄(#167) — 단추는 날 상세 화면으로 옮겨가 .dayacts 변형 규칙은 걷었다(2026-11-25) */
.daycard .dayhd { padding-right: 0; display: flex; align-items: center; gap: .3rem; flex-wrap: nowrap; min-width: 0 }
.daycard .dayhd > b { flex: none }
.daycard .dayhd .dhd-date { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400 }
.dhd-date.inkst, #detailMeta.inkst { color: var(--t-kst) }   /* 날 머리 날짜 — 시계 단추를 따라 한국 파랑 · 현지 빨강 */
.dhd-date.inlocal, #detailMeta.inlocal { color: var(--t-local) }
.daycard .body, .daycard .todos { padding-bottom: .6rem }
.day > header .daybtns { margin-left: auto }
.daybtns-row { margin: .5rem 0 0 }   /* 날 상세 — 제목 바로 아래, 비움 · 삭제 · 다시 줄(2026-11-25) */
body.tripheld .daybtns .db-del { opacity: .45; filter: grayscale(.4) }

/* 예약하기 팝업(사이트 고르기) — 큰 단추 목록 · 준비 중은 흐리게 */
.bookpicklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .5rem; margin: .6rem 0 }
.bookpicka { display: flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 .9rem; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-weight: 700; text-decoration: none }
.bookpicka:hover { border-color: var(--accent); color: var(--accent) }
.act2.bookpick { white-space: nowrap }

/* 제휴 단추 줄 — 조회 창 맨 위(머리 바로 아래) **한 줄 작은 알약**(기존 목록 · 카드를 밀지 않게 높이 고정 · 줄바꿈 없음 · 넘치면 옆으로 밀기)
   · 「🔗 예약하기」 팝업에서는 큰 단추 · 못 채운 단추는 흐리게(그래도 열림) */
.bookbarhost:empty { display: none }
.bookbarhost { flex: none; padding: .35rem .75rem; border-bottom: 1px solid var(--line); background: var(--surface) }
.bookbarhost .bookbar { display: flex; align-items: center; gap: .5rem; min-width: 0 }
.bookbarhost .bookpicklist { display: flex; flex-wrap: nowrap; gap: .35rem; margin: 0; overflow-x: auto; scrollbar-width: none; min-width: 0 }
.bookbarhost .bookpicklist::-webkit-scrollbar { display: none }
.bookbarhost .bookpicka { flex: none; min-height: 0; height: 1.9rem; padding: 0 .75rem; border-radius: 999px; font-size: .78rem; font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent); background: var(--surface) }
.bookbarhost .bookpicka.dim { color: var(--muted); border-color: var(--line); opacity: .7 }
.bookbarhost .bookbarnote { display: none }      /* 창 안에선 툴팁만 — 한 줄을 지킨다 */
.bookpicka.dim { opacity: .45; font-weight: 600 }
.bookbarnote { margin: .1rem 0 0; font-size: .72rem; color: var(--muted) }

/* 「🔗 예약하기」 팝업 안쪽 — 다른 고르기 창(.tourpick)과 같은 여백 · 단추 두 줄이면 고르게 · 설명은 작게 */
.bookpickbox { padding: .75rem 1rem 1rem }
.bookpickbox .bookpicklist { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 .5rem }
.bookpickbox .bookbarnote { line-height: 1.45; word-break: keep-all }

/* 숙소 창 — 다른 사이트 행(부킹닷컴 · 아고다 · 트립닷컴)을 숙소 카드 꼴로 · 카드는 눌러도 아무 일 없음 · 「예약하기」 만 · 못 채운 건 흐리게 */
.partnercard .pick { cursor: default }
.partnercard .partnerlogo { flex: none; width: 4.6rem; height: 3.4rem; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  padding: 0 .3rem; text-align: center; line-height: 1.15; word-break: break-all; letter-spacing: -.01em;
  background: linear-gradient(135deg, #ffb35c 0%, #ff8a3d 55%, #f26b2a 100%); color: #fff; font-weight: 800; font-size: .72rem;
  text-shadow: 0 1px 1px rgba(160, 60, 0, .25); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25) }
.partnercard .partnergo { text-decoration: none; display: inline-flex; align-items: center; justify-content: center }
.partnercard.dim .pick-t, .partnercard.dim .partnerlogo { opacity: .55 }
.partnercard a.partnergo { min-height: 0; padding: .45rem 1rem; border-radius: 999px; font-size: .82rem; font-weight: 700; line-height: 1.2;
  border: 1px solid var(--line); color: var(--accent); background: var(--surface) }
.partnercard a.partnergo.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent) }

/* **현지 시각은 중립색**(불편사항 #174 · #176 — 앱이 현지 모드로 보면 시각 · 「저녁 · 체크인」 이 빨강 · 분홍이라 화려했다) —
   깔끔하게: 현지 = 보통 글자색 · 한국 시각만 파랑으로 표시. 시각 칸은 조금 넓혀 앱 글꼴에서도 「08:30」 이 안 잘리게(#173 · #175). 파일 맨 끝. */
:root, :root[data-theme=dark] { --t-local: var(--fg) }
.daysbox .sechead .timeswitch { background: var(--surface); border-color: var(--line); color: var(--muted) }
.daysbox .sechead .timeswitch:hover { color: var(--accent); border-color: var(--accent) }
.rv-t.inlocal { font-weight: 600 }
.ovrow .l .time { width: 3.35rem }
/* 크게 보기(전체 지도)는 보기 전용 — 「지도로 일정 변경」 · 완료 · 취소 단추 없음(그날 지도에서만) */
/* 「🔗 예약하기」 팝업 · 항공 창 끝 다른 사이트 행 — 숙소 창 카드와 같은 꼴(#171) */
.bookcards { display: grid; gap: .4rem; margin-top: .5rem }
.bookcards .pickcard .pick { grid-template-columns: 4.6rem 1fr; cursor: default }
.bookpickbox .bookcards { margin-top: 0 }
/* 숙소 창 다른 사이트 행은 고를 수 있다(누르면 그 줄에 세팅) · 일정 숙소 카드의 사이트 로고(#172) */
.partnercard button.pick { cursor: pointer }
.stay-card .cardlogo { flex: none; width: 5rem; height: 3.6rem; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  padding: 0 .3rem; text-align: center; line-height: 1.15; word-break: break-all;
  background: linear-gradient(135deg, #ffb35c 0%, #ff8a3d 55%, #f26b2a 100%); color: #fff; font-weight: 800; font-size: .7rem }
/* 관광지 정보 창 — 선호도 한 줄 · 관련 링크 머리(#178) */
.pinfo .pinfo-pref { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .35rem }
.pinfo .pinfo-pref .h { font-size: .78rem; color: var(--muted) }
.pinfo .pinfo-pref b { font-size: 1.05rem; color: var(--accent) }
.shotfoot .shotlinks .h { color: var(--muted); font-weight: 600 }
/* 다른 사이트 로고 — 숙소 사진과 **같은 너비** · 높이는 낮게 · 이름 한 줄(「Booking.com」 이 둘로 갈리던 것) */
.partnercard .partnerlogo { width: 6.4rem; height: 2.1rem; word-break: keep-all; white-space: nowrap; font-size: .78rem; padding: 0 .25rem; align-self: center }
@media (max-width: 30rem) { .partnercard .partnerlogo { width: 4.6rem; height: 1.8rem; font-size: .66rem } }
.stay-card .cardlogo { height: 2.1rem; white-space: nowrap; word-break: keep-all; align-self: center }
.bookcards .pickcard .pick { grid-template-columns: 6.4rem 1fr }
@media (max-width: 30rem) { .bookcards .pickcard .pick { grid-template-columns: 4.6rem 1fr } }
/* 관광지 정보 창 — 장점 위 · 단점 아래 한 칸씩 넓게 · 창은 아주 조금 크게 */
.pinfo .pros.stacked { grid-template-columns: 1fr }
.ovbox.placepop { width: min(100%, 28.5rem) }
.ovbox.placepop .shotstrip .shot img { max-height: 12rem }
/* 지도 위 정보 탭 — 테두리 조금 진하게(승주) */
.mapinfobar { border-color: #7fbf91 }
.mapinfobar .pinpop-del, .mapinfobar .pinpop-add { border-color: #7fbf91 }
.mapinfobar.stay, .mapinfobar.stay .pinpop-del, .mapinfobar.stay .pinpop-add, .mapinfobar.stay .pinpop-info { border-color: #f0a46c }
/* 일정 줄 숙소 카드의 사이트 로고 = 실제 숙소 사진과 같은 크기(승주) — 숙소 창 행만 낮게 */
.stay-card .cardlogo { width: 5rem; height: 3.6rem; align-self: auto; border-radius: 4px }
@media (max-width: 30rem) { .stay-card .cardlogo { width: 3.5rem; height: 2.6rem; font-size: .6rem } }

/* 다른 사이트 행 = **한 줄**(승주 — 설명 두 줄 걷고 높이를 「예약하기」 단추에 맞춤 · 조건은 단추 툴팁) */
.partnercard { padding-top: .3rem !important; padding-bottom: .3rem !important; min-height: 0 }
.partnercard .pick { padding-top: 0; padding-bottom: 0; align-items: center; min-height: 0 }
.partnercard .pick-t .stay-meta, .partnercard .pick-t .pr { display: none }
.partnercard .pick-t strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.partnercard .partnerlogo { height: 1.9rem }
.partnercard .pick-tools { padding-top: 0; padding-bottom: 0; align-self: center }
.partnercard a.partnergo { padding: .35rem .95rem }
/* 핀 정보 「삭제」 — 「정보」 · 「＋ 일정추가」 와 같은 높이 · 글자 크기의 알약(휴지통 동그라미 걷음) */
.pinpop-del, .mapinfobar .pinpop-del { width: auto; min-width: 0; height: 1.4rem; padding: 0 .55rem; border-radius: 999px; font-size: .7rem; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; background: #fff; color: var(--pin-del-fg); border: 1px solid var(--pin-del-fg-soft) }
.pinpop-del:hover, .mapinfobar .pinpop-del:hover { background: var(--pin-del-hover-bg); border-color: var(--pin-del-fg) }
.mapinfobar .pinpop-name { cursor: default }
/* 좁은 폭 · 큰 글자 — 한눈 보기 시각 글자를 조금 줄여 안 잘리게(#173 · #175) */
@media (max-width: 26rem) { .ovrow .l .time { font-size: clamp(.68rem, 3.1vw, .78rem) } }

/* **전체 지도 위 정보 창** — 창(.ovback z 210)이 전체 지도(z 400) 밑에 깔려 「정보」를 눌러도 안 보였다 → 지도 · 카드 위로 */
body.mapfull-open > .ovback, body.mapfull-open > .modal-back, body.mapfull-open > .cfm-back { z-index: 1100 }
/* 넓은 화면 전체 지도 — 관광지 정보 창을 오른쪽 카드 아래에 크게 · 지도는 어둡게 덮지 않음(지도 덜 가림 · 지도는 그대로 움직임) */
@media (min-width: 48rem) {
  body.mapfull-open > .ovback:has(.placepop) { background: transparent; pointer-events: none; justify-content: flex-end; align-items: flex-start;
    padding: calc(max(.6rem, env(safe-area-inset-top)) + 9rem) .6rem 3.4rem }
  body.mapfull-open > .ovback .ovbox.placepop { pointer-events: auto; width: min(34rem, 44vw); max-height: 100%; box-shadow: 0 8px 28px rgba(0,0,0,.28) }
  body.mapfull-open > .ovback .ovbox.placepop .ovhd h3 { font-size: 1.02rem }
  body.mapfull-open > .ovback .ovbox.placepop .shotwrap { font-size: .95rem }
  body.mapfull-open > .ovback .ovbox.placepop .shotstrip .shot img { max-height: 16rem }
}
/* 전체 지도 핀 카드 — Day N / 차례 · 시각을 세로로 쌓은 그날 색 칸 */
.pinpop-day { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 auto;
  padding: 3px 8px; border-radius: 8px; color: #fff; line-height: 1.15; font-size: .72rem; white-space: nowrap; text-shadow: 0 1px 1px rgba(0,0,0,.25) }
.pinpop-day b { font-size: .8rem; font-weight: 800 }
.pinpop:has(.pinpop-day) { align-items: center; gap: 8px }
/* 전체 일정 확정 띠 — 작게(승주: "확정되면 왼쪽 세로줄 작게") · 가늘고 짧게 줄 가운데 */
.ovrow .l .fixmark::before { left: -.32rem; top: .18rem; bottom: .18rem; width: 3px; opacity: 1; background: var(--fix-ink) }   /* 2px · 옅게는 안 보였다(승주) → 굵기 그대로 · 짧게 · 진하게 */
/* 확정 띠가 **잘려 안 보였다** — 줄(li) · 왼쪽 칸(.l)이 overflow:hidden 이라 왼쪽 여백에 그린 띠가 깎였다. 확정 줄만 넘침 보이게(이름 말줄임은 .nm 이 한다) */
.daycard .lines li.ovrow.fixed, .daycard .lines li.ovrow.fixed .l { overflow: visible }

/* **확정 = ✓ 표시**(승주: "확정 v 표시로 · 누르면 초록 v 로") — 좌우 스위치(손잡이)를 걷고 「✓ 확정」 작은 알약.
   꺼짐: 흐린 회색 ✓ · 테두리만 / 켜짐: 초록 바탕 · 흰 ✓ · 흰 글자 */
/* 옆 시각 알약과 어울리게(승주: "시간 입력칸 디자인과 어울리게 · 크기 적당") — 같은 높이 2rem · 둥근 알약 · 굵은 글자 · 테두리 없이 옅은 바탕 */

/* **전체 일정 지도 핀 카드 = 세로로**(승주: "세로로 나열 · 화면이 크잖아 · 내용을 가장 밑으로") —
   위 Day 칸(가로 꽉) → 가운데 선호 · 정보 · 삭제 한 줄 → 맨 밑 이름(줄바꿈 · 안 잘림) */
.tripmapfull .mapcard { width: auto; max-width: 17rem; padding: 8px }
.tripmapfull .mapcard .pinpop { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; max-width: none }
.tripmapfull .mapcard .pinpop-day { order: 0; flex: 1 0 100%; flex-direction: column; justify-content: center; gap: 0; padding: 5px 8px; font-size: .78rem }
.tripmapfull .mapcard .pinpop-day b { font-size: .9rem }
.tripmapfull .mapcard .pinpop-score { order: 1 }
.tripmapfull .mapcard .pinpop-info { order: 2; margin-left: auto }
.tripmapfull .mapcard .pinpop-del { order: 3 }
.tripmapfull .mapcard .pinpop-name { order: 4; flex: 1 0 100%; white-space: normal; overflow: visible; text-overflow: clip; max-width: none;
  font-size: .95rem; font-weight: 800; line-height: 1.35; padding-top: 4px; border-top: 1px solid var(--line) }

/* **불편사항 #181** — ① 핀 카드 「삭제」 = 「정보」 와 같은 작은 알약(폰에서 44px 동그라미로 커지던 것) ② 그날 지도 크게 보기도 전체 일정 지도와 같은 세로 카드 */
.mapcard .pinpop-del, .mapcard .pinpop-info, .mapfull > .mapinfobar .pinpop-del, .mapfull > .mapinfobar .pinpop-info {
  min-height: 0 !important; min-width: 0 !important; width: auto; height: 1.4rem; padding: 0 .55rem; border-radius: 999px; font-size: .7rem; font-weight: 700; line-height: 1 }
.mapcard .pinpop-del::after, .mapcard .pinpop-info::after { content: none }
.mapinfobar .pinpop-day { display: none }                         /* 작은 그날 지도 띠 — 이름만(지금 그대로) */
.mapfull > .mapinfobar[data-kind="pin"] { width: auto; max-width: 17rem; margin: 0 auto; padding: 8px; border-radius: 10px }   /* 위 가운데 칸(left · right) 안에서 · 넓은 화면에선 17rem 까지 가운데(불편사항 #1453) */
.mapfull > .mapinfobar[data-kind="pin"] .pinpop { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; max-width: none }
.mapfull > .mapinfobar[data-kind="pin"] .pinpop-day { display: inline-flex; order: 0; flex: 1 0 100%; flex-direction: column; justify-content: center; gap: 0; padding: 5px 8px; font-size: .78rem }
.mapfull > .mapinfobar[data-kind="pin"] .pinpop-day b { font-size: .9rem }
.mapfull > .mapinfobar[data-kind="pin"] .pinpop-score { order: 1 }
.mapfull > .mapinfobar[data-kind="pin"] .pinpop-info { order: 2; margin-left: auto }
.mapfull > .mapinfobar[data-kind="pin"] .pinpop-del { order: 3; margin-left: 0 }
.mapfull > .mapinfobar[data-kind="pin"] .pinpop-name { order: 4; flex: 1 0 100%; white-space: normal; overflow: visible; text-overflow: clip; max-width: none; text-align: left;
  font-size: .95rem; font-weight: 800; line-height: 1.35; padding-top: 4px; border-top: 1px solid var(--line); color: var(--fg) }
/* 전체 일정 지도 이동 방향 화살표(tripArrows) — 선 색 삼각형 · 흰 테 */
.tmarrow { pointer-events: none }
.tmarrow span { display: block; width: 0; height: 0; margin: 2px; border-left: 10px solid #555; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  transform-origin: 5px 5px; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) }
/* 그날 지도 크게 보기 띠 = 전체 일정 지도 카드와 같은 흰 카드 */
.mapfull > .mapinfobar[data-kind="pin"] { background: var(--surface); color: var(--fg); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,.2); align-items: stretch }
.mapfull > .mapinfobar[data-kind="pin"] > .pinpop { align-items: center }
/* 「삭제」 = 「정보」 와 같은 작은 알약(모든 지도 띠 · 카드 · 폰 44px 규칙도 덮음 · 승주) · 「정보」 에 창 열림 아이콘 */
.pinpop .pinpop-del, .pinpop .pinpop-info, .pinpop .pinpop-add { min-height: 0 !important; min-width: 0 !important; width: auto !important; height: 1.4rem !important;
  padding: 0 .55rem !important; border-radius: 999px !important; font-size: .7rem; font-weight: 700; line-height: 1; margin-left: 0;
  display: inline-flex; align-items: center; gap: .2rem; flex: none }
.pinpop .pinpop-del::after, .pinpop .pinpop-info::after, .pinpop .pinpop-add::after { content: none }
.pinpop .pinpop-info svg { width: .75rem; height: .75rem; flex: none }
/* 예약확인 창 안내의 「완료」 — 단추와 같은 진한 색 */
/* 새 여행 창 인원 칸 ▲▼ — 마우스를 올려야만 보이던 것을 늘 보이게(승주) */
.ob input[type="number"]::-webkit-inner-spin-button, .ob input[type="number"]::-webkit-outer-spin-button { opacity: 1; -webkit-appearance: inner-spin-button }
/* 기차 · 버스 카드 그림 — 수단마다 다른 바탕(항공 파랑 · 기차 초록 · 버스 주황) */
.stay-card .tkimg.landimg { font-size: 1.7rem }
.stay-card .tkimg.landimg.train { background: color-mix(in srgb, #2b8a3e 14%, var(--sunken)) }
.stay-card .tkimg.landimg.bus { background: color-mix(in srgb, #e8590c 14%, var(--sunken)) }
.stay-card.aircard2:not(.landcard) .tkimg.airimg { background: color-mix(in srgb, #1c7ed6 12%, var(--sunken)) }
/* 날짜 뱃지 = 누르면 여행 날짜 옮기기 */
.day > header .num[role="button"] { cursor: pointer }
.day > header .num[role="button"]:hover { filter: brightness(1.12) }
.shiftbox .ovfoot { display: flex; gap: .5rem; justify-content: flex-end }
/* 기차 · 버스 카드 종류 꼬리표(고속버스 · 시외버스 · KTX · SRT …) · AI 가 찾은 편 */
.landcard .landtags { display: flex; gap: .3rem; flex-wrap: wrap; margin: .15rem 0 }
.landcard .landtag { display: inline-flex; align-items: center; height: 1.3rem; padding: 0 .5rem; border-radius: 999px; font-size: .72rem; font-weight: 800; color: #fff }
.landcard .landtag.bus { background: #e8590c }
.landcard .landtag.train { background: #2b8a3e }
.landcard .landtag.ai { background: var(--sunken); color: var(--muted); font-weight: 700; border: 1px solid var(--line) }
/* 교통편 찾기 창 머리 — 숙소 창의 날짜 띠와 같은 꼴 */
.bookpickbox .bookpickhead { margin: 0 0 .6rem; padding: .55rem .75rem; border-radius: 10px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent); font-weight: 700; font-size: .88rem }

/* **불편사항 #234** — 그날 지도 정보 칸: 이름만 아랫줄로 빼서 다 보이게(폰에서 「로마 국립 오페…」 로 잘림) · 꼬리표 · 단추는 윗줄 한 줄(「2번째」 줄바꿈 막음) */
.mapinfobar > .pinpop { flex-wrap: wrap !important; row-gap: 4px }
.mapinfobar > .pinpop > .pinpop-name, .mapinfobar > .pinpop > .pinpop-link { order: 9; flex: 1 0 100%; max-width: none !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important;
  text-decoration: none; line-height: 1.3 }   /* 밑줄 없음 — 링크처럼 보였다(이름은 누르지 않는다) */
.mapinfobar .mi-tag, .mapinfobar .pinpop-score, .mapinfobar .pinpop-info, .mapinfobar .pinpop-del, .mapinfobar .pinpop-add { white-space: nowrap }
/* 새 여행 창 — 「일정 만들기 (직접)」 = 테두리 단추(AI 단추가 기본) */
.ob .nav .next.mine { background: var(--surface, #fff); color: var(--accent); border: 1.5px solid var(--accent); box-shadow: none }
.ob .nav { flex-wrap: wrap; gap: .5rem }
/* 불편사항 #267 · #268 — 그날 지도 정보 칸: 이름도 오른쪽 붙이기 · 「선호 N%」 는 누를 수 없으면 단추 꼴 없이 글만(누를 수 있을 때만 단추 꼴) */
.mapinfobar > .pinpop > .pinpop-name, .mapinfobar > .pinpop > .pinpop-link { text-align: right }
span.pinpop-score, .mapinfobar span.pinpop-score, .mapinfobar span.pinpop-score.pref-hi, .mapinfobar span.pinpop-score.pref-lo { background: none !important; border: 0 !important; padding: 0 !important; border-radius: 0; height: auto }
/* 불편사항 #276 — 그날 지도 정보 칸은 다크 모드에서도 연초록 바탕이라, 다크용 연한 글자색(#f2b8b8 · #b9d3f5)이 묻혀 안 보였다 → 이 칸에선 테마 상관없이 진한 글자 */
.mapinfobar .pinpop-score.pref-lo, :root[data-theme="dark"] .mapinfobar .pinpop-score.pref-lo { color: #b02525 }
.mapinfobar .pinpop-score.pref-hi, :root[data-theme="dark"] .mapinfobar .pinpop-score.pref-hi { color: #1f4f8c }

/* **그날 경로 지도의 핀은 작게**(불편사항 #271 · #272 「아이콘이 큼 · 지도 크기에 비해 가림」) — 띠 지도(18rem)에서 1.75rem 핀이 길 · 이름을 덮었다.
   작은 띠에서만 1.3rem · 번호 · 고른 핀 키움도 줄인다. 크게 보기(.mapfull) · 전체 일정 지도(.tripmap)는 그대로. 아이콘 칸(26px) 가운데에 오도록 margin. */
:not(.mapfull) > .daymap:not(.tripmap) .pin2 { width: 1.3rem; height: 1.3rem; margin: 2.6px; border-width: 1.5px }
:not(.mapfull) > .daymap:not(.tripmap) .pin2 b { top: -.38rem; right: -.42rem; min-width: .88rem; height: .88rem; font-size: .58rem; line-height: .88rem }
:not(.mapfull) > .daymap:not(.tripmap) .pinname { font-size: .58rem }
:not(.mapfull) > .daymap:not(.tripmap) .leaflet-marker-icon.pinfocus > * { transform: scale(1.15) }
/* 확정 · 예약 완료 줄 — 위치 찾기 단추를 못 누름(흐리게) */
.item button.lockedloc, .item button.lockedloc:hover { opacity: .45; cursor: not-allowed; filter: grayscale(.6) }
/* 그날 지도 정보 칸 — 지도에 붙지 않게 **위로 띄움**(앱처럼 여백) · 칸 아래끝을 「그날 경로 지도」 글자 줄 안에 두고 위로 자란다(두 줄이어도 지도를 안 가림) */
details.foldbox:has(> .daymap) > .mapinfobar { top: auto !important; bottom: calc(100% - 1.75rem); box-shadow: 0 4px 14px rgba(20, 60, 35, .14) }
/* 폰(불편사항 #430 「모바일에서는 많이 떠 있는 느낌 · 여백 줄여」) — 칸 아래끝을 지도 윗선 가까이로 내린다 */
@media (max-width: 40rem) { details.foldbox:has(> .daymap) > .mapinfobar { bottom: calc(100% - 2.6rem) } }

/* **숙소 창 줄 맞춤**(불편사항 #331 「줄 맞춰 · 크기 높이랑 여백 줄이게」) —
   ① 선호 고르개(평점 좋은 곳 / 싼 곳)는 좁은 폰에서도 날짜와 **같은 줄 오른쪽** · 곳 수 글은 있을 때만 아래 줄(비면 줄 안 생김)
   ② 어른 · 아이 · 1박 금액대를 **한 줄**에 — 고르개 · 금액 칸을 같은 높이(2rem)로 낮추고 간격을 줄인다 */
@media (max-width: 26rem) {
  .modal-top .sortpick { grid-column: 2; grid-row: 1 }
  .modal-top .modal-count { grid-column: 1 / -1; grid-row: 2 }
  .modal-top .modal-count:empty { display: none }
}
.modal > .paxrow.staypax { gap: .4rem .5rem; margin-bottom: .5rem }   /* 줄바꿈은 그대로(wrap) — 404px 폭이면 한 줄에 든다 · 더 좁으면 금액대만 아래로 */
.paxrow.staypax .paxlab { gap: .25rem; white-space: nowrap }
.paxrow.staypax .paxpick { height: 2rem }
.paxrow.staypax .paxbtn { width: 1.4rem; min-width: 0; padding: 0 }
.paxrow.staypax .paxnum { min-width: 1.7rem }
.paxrow.staypax .stay-cap { gap: .2rem }
.paxrow.staypax .stay-cap { flex: 1 1 12rem; justify-content: flex-end }
.paxrow.staypax .stay-cap input { flex: 1 1 0; width: auto; min-width: 4em; max-width: 7em; height: 2rem; border-radius: 999px; padding: 0 .6rem; text-align: center }   /* 금액대 칸 — 남는 폭만큼 넓게(좁은 폰이면 금액대만 아래 줄) */
.paxrow .stay-cap.bad input { border-color: #c0392b }   /* 최소 > 최대 — 거르지 않음 */

/* **고른 핀 진한 테두리**(불편사항 #332 · #333 「아래 클릭한 거는 진한 테두리 · 커지는 건 지금이 적당」) —
   아래 일정 줄을 누른 핀(.pinfocus)에 흰 테두리 대신 짙은 테두리 + 바깥 흰 고리 · 키우는 크기는 그대로 */
.daymap .leaflet-marker-icon.pinfocus .pin2 { border: 2.5px solid #111; box-shadow: 0 0 0 2px #fff, 0 1px 6px rgba(0,0,0,.5) }

/* 위치 찾기 — 구글 후보 출처 표시(약관) */
.locout .locsrc { text-align: right; font-size: .7rem; color: var(--muted); margin-top: .25rem }

/* 핀 카드 「관심없음」 단추 — 단추 줄 맨 오른쪽 · 일정추가 · 삭제와 같은 알약 꼴(빨강 글자) */
.pinpop-nope { flex: 0 0 auto; height: 28px; padding: 0 .55rem; border-radius: 999px; border: 1px solid #f1c0c0; background: #fff; color: #c92a2a;
  font-size: .72rem; font-weight: 700; white-space: nowrap; cursor: pointer; min-height: 0; min-width: 0 }
.pinpop-nope:hover, .pinpop-nope:focus-visible { background: #fff1f1; border-color: #c92a2a }
.mapinfobar .pinpop-nope { height: 1.4rem; padding: 0 .5rem; font-size: .7rem }
.mapinfobar .pinpop-nope::after { content: none }
/* 총예산 0원(안 정함) 「!」 — 예산 · 준비 머리 */
.zwarn { display: inline-flex; align-items: center; justify-content: center; width: 1.1rem; height: 1.1rem; margin-right: .35rem; border-radius: 50%;
  background: #c92a2a; color: #fff; font-size: .72rem; font-weight: 800; line-height: 1; vertical-align: middle }

/* 자동완성 공통 — 기다리는 동안 목록 자리에 돌아가는 표시(login.js TC_acSkel · 새 여행 도착지와 같은 꼴) */
.acskel-row { display: flex; align-items: center; gap: 8px; padding: 9px 12px }
.acskel-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(30, 58, 95, .18); flex: none }
.acskel-bar { height: 10px; border-radius: 5px; background: linear-gradient(90deg, rgba(30, 58, 95, .08) 25%, rgba(30, 58, 95, .15) 37%, rgba(30, 58, 95, .08) 63%);
  background-size: 400% 100%; animation: acskel-shimmer 1.3s infinite }
@keyframes acskel-shimmer { 0% { background-position: 100% 50% } 100% { background-position: 0 50% } }
@media (prefers-reduced-motion: reduce) { .acskel-bar { animation: none } }
/* 해외여행 준비사항 「구매 링크 ↗」 — 단추 말고 글자 링크(줄 높이 그대로) */
.checkrow .buylink { font-size: .8rem; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; align-self: center }
/* 고정 준비 줄 — 품목 글자 자체가 제휴 링크 · ✕ 는 작은 둥근 빈 단추 */
.checkrow .check.cbonly { flex: none }
.checkrow .preplink { flex: 1; min-width: 0; align-self: center; font-size: .82rem; color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere }
.checkrow .preplink.done { color: var(--muted); text-decoration-line: underline line-through }
.checkrow .preprm { flex: none; align-self: center; width: 1.9rem; height: 1.9rem; min-height: 1.9rem !important; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: .85rem; line-height: 1; cursor: pointer }
.checkrow .preprm:hover, .checkrow .preprm:active { background: var(--line) }
/* 쿠팡 파트너스 고지(준비사항 · 쿠팡 줄이 있을 때만) — 작은 회색 한 줄 */
.cpgnote { margin: .6rem .2rem 0; font-size: .62rem; color: var(--muted, #888); opacity: .7; line-height: 1.4 }
/* 체크리스트 ✕ — 글자 크기에 맞춘 작은 단추(승주) */
.checkrow > button.sm { min-height: 0; min-width: 0; width: auto; height: auto; padding: .05rem .4rem; font-size: .8rem; line-height: 1.3; border-radius: 6px; flex: none; align-self: center }
/* 숙소 · 이동 · 투어 줄의 확정 단추 = 「예약완료」(2026-11-16 승주 · 두 단추 통합) */
/* 숙소 · 이동 · 투어도 「확정」 하나(2026-11-19 승주: 「예약완료」 · 「확정」 통일) */
/* 일정 줄 선호 글자 · 「정보」 단추 = 지도 핀 정보 단추와 같은 꼴(2026-11-16 승주) */
.itemfoot .preftxt { align-self: center; font-size: .72rem }
.itemfoot .preftxt[hidden] { display: none }
.itemfoot .act2.infobtn.pinpop-info { height: auto; padding: .2rem .55rem; gap: .2rem; border: 1px solid #8fd19e; background: #fff; color: #2b8a3e; font-size: .72rem; font-weight: 800 }
.itemfoot .act2.infobtn.pinpop-info svg { width: .75rem; height: .75rem; flex: none }
/* 확정(예약완료) 줄 — 찾기 · 지우기 단추 흐리게 · 못 누름(2026-11-16 승주: "예약완료면 아래 버튼도 흐리게 비활성 · 숙소 · 티켓도 같게") · 예약하기(링크 열기)는 그대로 */
/* 관광지 줄 단추 = 정보확인 · 위치 · 관광지 찾기 붙여서(숙소 줄과 같게 · 오른쪽으로 밀던 늘림 걷음 · 2026-11-18) */
/* 확정(예약완료) 줄 — 종류 · 이동 수단 동그라미 흐리게(못 바꿈 · 2026-11-16 승주) */
/* 접힌 줄 첨부 바로 열기(📎 · 🔗) — 제목 바로 옆 */
.rv-l .rv-att { display: inline-flex; gap: .1rem; flex: none }   /* 2026-11-30: 더는 rv-l 의 flex 자식이 아니라 rv-pin 안(우상단 고정) — margin-right:auto 필요 없음 */
.rv-l .rv-att[hidden] { display: none }
.rv-l .rv-ab { border: 0; background: none; padding: 0 .15rem; min-height: 0; min-width: 0; font-size: .85rem; line-height: 1; cursor: pointer }
/* 관광지 줄 = 숙소 · 이동 · 티켓과 같은 강조색 바탕(2026-11-27 베어스타 — 종류별 바탕색 폐지, 점 색으로만 구분) */
.items > .item[data-kind="see"]:not(.isact):not(.open) { background: var(--bg) }
.items > .item[data-kind="see"]:not(.isact).open { background: var(--bg) }
.items > .item[data-kind="see"] .rv:hover .rv-c { background: transparent }
/* 지도 정보 칸 단추 — 앱(터치) 44px 규칙에서 뺌 · 모두 같은 높이(불편사항 #496) · 칸 왼쪽 여백 살짝 */
.mapinfobar button, .mapinfobar a { min-height: 0 !important; min-width: 0 !important }
.mapinfobar .pinpop-info, .mapinfobar .pinpop-nope, .mapinfobar .pinpop-del, .mapinfobar .pinpop-add { height: 1.4rem }
.mapinfobar { padding: .25rem .5rem .25rem .55rem; box-sizing: border-box }
/* 일정 불러오는 중(날을 아직 안 받은 여행을 열 때) — 뼈대 줄이 깜빡 */
.overview .triploading .tlsk { height: 3.2rem; margin: .5rem 0; border-radius: 12px; background: var(--sunken, #eef0f2); animation: tlsk-blink 1.1s ease-in-out infinite }
.overview .triploading .tlsk:nth-child(3) { animation-delay: .15s } .overview .triploading .tlsk:nth-child(4) { animation-delay: .3s }
@keyframes tlsk-blink { 0%, 100% { opacity: .45 } 50% { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .overview .triploading .tlsk { animation: none } }
/* 날 지도 아래 안내(크게 보기 옆) — 작게 · 흐리게 · 가운데 줄 맞춤(불편사항 #497) */
p.st.mapnote { margin: 0 .2rem !important; font-size: .78rem; color: var(--muted); align-self: center; flex: 1 1 auto; min-width: 0; line-height: 1.3 }
p.st.mapnote:empty { display: none }
/* 첨부 사진 보기 — 화면 폭 · 높이에 맞춤(앱에서 스크롤로 헤매지 않게) · 두 손가락 확대는 기기 그대로 */
.imgviewbox { width: min(96vw, 720px) }
.imgview { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .25rem 0 }
.imgview img { display: block; max-width: 100%; max-height: 72vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; touch-action: pinch-zoom }
/* 펼친 줄 메모 — 글이 길면 줄 수만큼(불편사항 #499) */
.item.open textarea.memo { max-height: none; overflow: hidden }
/* 고른 것이 있을 때 찾기 단추 — 흐리게(누르면 「지우기 후」 안내) */
.needclear { opacity: .45; filter: grayscale(1) }
/* 국내(시간 단추 없음)도 해외처럼 지도 · ⤢ 를 오른쪽 끝에(불편사항 #502) */
.daysbox .sechead:not(:has(.timeswitch)) .tripmapbtn { margin-left: auto }
/* 줄 안 「예약 기록」 칸(예약처 · 체크인 · 예약번호 · 금액)은 숨김 — 예약확인(링크 · 파일) · 「예약완료」 단추가 같은 일을 한다(불편사항 #505) · 기록 값은 그대로(준비 화면 · AI 판단) */
.item .booking { display: none !important }
/* 위치 안내 — 모바일에서도 가로 한 줄(잘리지 않게 화면 폭에 맞춘 작은 글자) */
.nomap { white-space: nowrap; font-size: min(.72rem, 2.9vw); overflow: hidden; text-overflow: clip; letter-spacing: -.01em }
/* 드롭다운은 늘 맨 위 층(＋ 메뉴 · ⋯ 메뉴) — 종류 · 수단 메뉴(.pickmenu)는 화면 기준으로 띄움(app.js pickMenu) */
.addmenu { z-index: 1500 }
.morepanel { z-index: 1500 }
/* 지도에서 누른 핀 — 크게 · 맨 위 · 테두리 고리(정보 칸이 닫히거나 다른 핀을 누르면 원래대로) */
/* 누른 핀(.pinsel) = 일정 줄 선택(.pinfocus)과 **같은 모양 하나**(둘이 겹쳐 이중으로 커지던 것) — 조금 크게 · 짙은 테두리 + 흰 고리 · 맨 위 */
.leaflet-marker-icon.pinsel { z-index: 99999 !important }
.leaflet-marker-icon.pinsel > * { transform: scale(1.25); transform-origin: center }
.leaflet-marker-icon.pinsel.pinfocus > * { transform: scale(1.25) }
.leaflet-marker-icon.pinsel .pin2, .leaflet-marker-icon.pinsel .nearpin, .leaflet-marker-icon.pinsel .staypin { border: 2.5px solid #111; box-shadow: 0 0 0 2px #fff, 0 1px 6px rgba(0,0,0,.5) }
/* 관심없음(↻)으로 바뀐 관광지 — 살짝 새로 뜨는 느낌(흐렸다가 아래에서 올라오며) · 찾는 동안 ↻ 회전 */
@keyframes reroll-in { 0% { opacity: .15; transform: translateY(8px) scale(.985) } 60% { opacity: 1 } 100% { opacity: 1; transform: none } }
.item.rerolled { animation: reroll-in .55s cubic-bezier(.2, .7, .2, 1) }
@keyframes reroll-spin { to { transform: rotate(360deg) } }
.stay-tools .sm.spin { opacity: .7 }   /* 자동추천 찾는 중 */
@media (prefers-reduced-motion: reduce) { .item.rerolled { animation: none } }
:not(.mapfull) > .daymap:not(.tripmap) .leaflet-marker-icon.pinsel > * { transform: scale(1.15) }
/* 누른 핀 = 일정 줄로 고른 핀(.pinfocus)과 완전히 같은 모양(그림자까지) */
.leaflet-marker-icon.pinsel > * { filter: drop-shadow(0 0 4px rgba(0,0,0,.45)) }
/* 시간 미정 — 위치 등록처럼 빨간 굵은 점선이 깜빡(접힌 줄 시각 알약 · 펼친 칸 시각) */
.rv-t.needtime, .item .line1 input.time.needtime { outline: 2px dotted #d40000; outline-offset: 1px; animation: loc-blink-o 1s steps(1, end) infinite }
@keyframes loc-blink-o { 0%, 100% { outline-color: #d40000 } 50% { outline-color: transparent } }
@media (prefers-reduced-motion: reduce) { .rv-t.needtime, .item .line1 input.time.needtime { animation: none } }
.item .line1 input.time::placeholder { color: var(--muted); opacity: .55 }
/* 순서 변경 중 고른 주변 관광지 핀 — 조금 더 진하게(안 고른 연한 초록과 구별) */
.nearpin.picked { background: #8ce99a; border: 2px solid #2b8a3e; color: #1b5e20 }
/* 날 지도 아래 빈 날 안내 — 네모 없이 빨간 글씨 · 둘째 줄에 「아래 ＋ 버튼으로 …」(2026-11-16 승주) */
p.st.mapnote { background: none !important; border: 0 !important; border-radius: 0 !important; padding: 0 .2rem !important; color: #d40000 !important; white-space: pre-line; font-size: .8rem; font-weight: 600 }
/* 항공권 찾기 출발 공항 자동완성(1 ~ 4순위) — 출발 칸 바로 아래 */
.oacbox { position: absolute; left: 0; top: calc(100% + 4px); z-index: 2000; min-width: 16rem; max-width: 90vw; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: .25rem; display: flex; flex-direction: column }
.oacbox[hidden] { display: none }
.oacbox .acitem { text-align: left; border: 0; background: none; padding: .45rem .6rem; border-radius: 8px; font: inherit; font-size: .88rem; color: var(--fg); cursor: pointer; min-height: 0 }
.oacbox .acitem:hover, .oacbox .acitem:focus-visible { background: var(--accent-soft) }
/* 교통 칸 — 한국 시각인 편(가는 편 출발)은 파랑 고정(2026-11-16 승주) */
.lwhen.inkst { color: var(--t-kst) }
/* 채팅 칸 안내 글은 한 줄 — 넘치면 … (불편사항 #529 · 막힘 안내가 두 줄로 넘쳐 잘림) */
#chatInput::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
/* 순서 변경 — 확정 줄을 다 고르기 전 「순서 변경 완료」 비활성(2026-11-16 승주) */
.mapacts .orddone:disabled { opacity: .45; cursor: not-allowed }
/* 「＋ 뒤에 하루」 걷음(불편사항 #564 추가 → 2026-11-17 베어스타: "뒤에 하루 이거 버튼 빼버려") */
/* ── 공유하기 메뉴(함께하기 · 자랑하기) · 자랑하기(스토리 만들기) · 첫 화면 여행 이야기 — 2026-11-17 ── */
.storybox { box-sizing: border-box; max-height: 88vh; overflow-y: auto; overflow-x: hidden; width: min(32rem, 100%) }
.storybox > * { min-width: 0; max-width: 100% }
.storybox input[type="checkbox"] { flex: none; width: auto; min-width: 0; height: auto; margin: 0; padding: 0 }
.storybox .storyopt label, .storyday .sdh { display: flex; align-items: center; gap: .35rem }
.storybox .storytitle, .storybox .sdnote { max-width: 100% }
.storybox .storydays, .storyday .sdb { grid-template-columns: minmax(0, 1fr) }
.storyday, .storyday .sitem { min-width: 0 }
/* 폰 — 아래에서 올라오는 시트(앱 화면처럼) · 머리 · 공개 단추는 늘 보임 · 가로로 넘치지 않음(2026-11-17 승주: "화면이 너무 고정으로 커 · 앱 전용 화면 아닌 것처럼 깨져") */
@media (max-width: 640px) {
  .storyback.modal-back { align-items: flex-end; padding: 0 }
  .storybox.sharebox.sharepop { width: 100%; max-height: 90dvh; border-radius: 18px 18px 0 0; padding: 0 .8rem calc(.8rem + env(safe-area-inset-bottom, 0px)); gap: .45rem }
  .storybox .sharehead { position: sticky; top: 0; z-index: 2; margin: 0 -.8rem; padding: .8rem .8rem .5rem; background: var(--surface); border-bottom: 1px solid var(--line) }
  .storybox .storyacts { position: sticky; bottom: calc(-.8rem - env(safe-area-inset-bottom, 0px)); z-index: 2; margin: 0 -.8rem; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line) }
  .storybox .l { font-size: .78rem }
  .storyday { padding: .45rem .5rem }
  .storyday .sdh { font-size: .84rem }
}
.storybox .sharehead { display: flex; align-items: center; justify-content: space-between }
.storyx { border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: var(--muted); min-height: 0 }
.storytitle { width: 100%; box-sizing: border-box; margin: .4rem 0 .6rem; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 700 }
.storyolds { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .3rem }
.storydays { display: grid; gap: .55rem }
.storyday { border: 1px solid var(--line); border-radius: 12px; padding: .5rem .6rem; background: var(--surface) }
.storyday.off { opacity: .45 }
.storyday .sdh { display: flex; align-items: center; gap: .3rem; font-weight: 700; font-size: .88rem; cursor: pointer }
.storyday .sdb { display: grid; gap: .4rem; margin-top: .4rem }
.storyday .sdphs { display: flex; flex-wrap: wrap; gap: .35rem }
.storyday .sdph { position: relative; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 8px; background: #eef2f6 center / cover no-repeat }
.storyday .spmenu { flex: 1 1 100%; display: flex; gap: .4rem; justify-content: flex-end }
.storypick .spgroups { display: grid; gap: .4rem }
.storypick .spg { font-size: .8rem; font-weight: 700; margin-top: .3rem }
.storypick .spgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .35rem }
.storypick .spph { position: relative; aspect-ratio: 1 / 1; min-height: 0; padding: 0; border: 2px solid transparent; border-radius: 8px; background: #eee center / cover no-repeat; cursor: pointer }
/* 고른 차례 번호(카카오 사진 고르기처럼) — 오른쪽 위 노란 동그라미 · 고른 칸은 테두리 + 살짝 어둡게 */
.storypick .spph::after { content: ""; position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.18); box-shadow: 0 1px 3px rgba(0,0,0,.3) }
.storypick .spph.on { border-color: #fee500; box-shadow: inset 0 0 0 999px rgba(0,0,0,.18) }
.storypick .spph.on::after { display: none }
.storypick .spn { position: absolute; top: 5px; right: 5px; z-index: 1; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: #fee500; color: #191919; font: 800 .74rem/18px var(--font, sans-serif); text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.3) }
.storypick .spfoot { position: sticky; bottom: 0; display: flex; gap: .5rem; justify-content: flex-end; padding: .6rem 0 .2rem; background: var(--surface); border-top: 1px solid var(--line); margin-top: .5rem }
.storypick .spfoot .pri { background: var(--accent); color: #fff; border-color: var(--accent) }
.storypick .spfoot .pri:disabled { opacity: .45 }
.storyday .sitem { flex-wrap: wrap }
.storyday .sitem { display: flex; align-items: center; gap: .5rem; padding: .35rem 0; border-top: 1px dashed var(--line) }
.storyday .sitem .sdphs { flex: 0 0 100%; order: 3; padding-left: .1rem }
.storyday .sinm { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .1rem }
.storyday .sinm b { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.storyday .sinm small { font-size: .68rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.storyday .spick { flex: 0 0 auto; white-space: nowrap }
.storyday .sdrm { position: absolute; top: -5px; right: -5px; width: 18px !important; height: 18px !important; min-height: 0 !important; min-width: 0 !important; padding: 0 !important; border-radius: 50%; border: 1.5px solid #fff; background: rgba(0,0,0,.62); color: #fff; font-size: .6rem; line-height: 1; cursor: pointer }
.storyday .sdr { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center }
.storyday .sdnote { flex: 1 1 auto; width: 100%; box-sizing: border-box; min-width: 0; padding: .35rem .55rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .85rem }
.storyopt { display: flex; gap: 1rem; margin: .6rem 0; font-size: .85rem; flex-wrap: wrap }
.storyacts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem }
.storyacts .primary { flex: 1 1 auto }
/* 게시된 여행(여행 스토리) 카드 — 「내 여행」·「함께하는 여행」과 같은 .tile 틀(index.html 인라인 스타일)을 그대로
   쓴다(2026-12-02 베어스타: "카드크기가 이상해 다른 카드크기랑 디자인 똑같이 맞춰줘 · 카드클래스가 하나가 아니면
   통일해줘") — 세로 4:5 표지 · 자체 그리드(.storyrow)를 쓰던 전용 .storycard 틀은 걷는다(home.js card()).
   .tile 공용 규칙(.cv·.dd·.tb·.t·.d·.tf·.tacts·.del)을 그대로 물려받고, 아래는 스토리 전용 덧장식만. */
.tile.story.off .dd { border-color: #8a8f99; color: #8a8f99 }   /* 비공개 — .tile.done .dd 와 같은 톤 */
.tile.story .sccr { position: absolute; left: .3rem; bottom: .15rem; z-index: 2; max-width: 70%; font-size: .5rem;
  color: rgba(255,255,255,.75); text-shadow: 0 0 2px rgba(0,0,0,.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none }   /* 표지 사진 출처 — .tile .cv .phsrc(우하단)와 반대쪽 */
.tiles .tabempty { grid-column: 1 / -1; margin: .3rem 0; font-size: .8rem; color: var(--muted) }
.tiles .tabempty { padding: 1.5rem 0; text-align: center; white-space: pre-line; word-break: keep-all; line-height: 1.6 }   /* 두 줄로(#859) */


/* 관광지 카드 · 관광지 찾기(2026-11-18) — 숙소 카드와 같은 꼴 · 사진 없으면 관광 그림 */
.stay-card .tkimg.seeimg { color: var(--see); background: color-mix(in srgb, var(--see) 12%, var(--sunken)) }
.seeimg .seeico, .seeimg .seeico svg { display: block; width: 1.8rem; height: 1.8rem }
.seefind .ic { display: inline-flex; color: var(--see) } .seefind .ic svg { width: 1em; height: 1em }
.seepick input.link { width: 100%; box-sizing: border-box; margin-bottom: .5rem }
.seepicklist { display: flex; flex-direction: column; gap: .4rem; max-height: 60vh; overflow-y: auto }
.stay-card.seecard { border-left-color: var(--see) }
.seecard .stay-info { min-width: 0 }
.seecard .seesum { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted) }
.heldbar.aiwait { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--ink, inherit); font-weight: 700; animation: aiwait-pulse 1.6s ease-in-out infinite }
@keyframes aiwait-pulse { 50% { opacity: .72 } }
@media (prefers-reduced-motion: reduce) { .heldbar.aiwait { animation: none } }
.ordhint:not(.ordwarn) { color: var(--muted) }
.item.arrnoico .kindwrap { display: none !important }   /* 항공 · 기차 · 버스 도착 칸 — 종류 · 수단 그림 없음(2026-11-18) */
.seepicklist { display: block !important }
.seepicklist { border: 1px solid var(--line); border-radius: 10px; background: var(--surface, var(--bg)) }
.seepickrow { display: block; padding: .55rem .75rem; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left }   /* 자동완성 목록 꼴(2026-11-18 승주: "자동완성처럼 이쁘게") */
.seepickrow:last-child { border-bottom: 0 }
.seepickrow:hover, .seepickrow:focus-visible { background: color-mix(in srgb, var(--see) 10%, transparent); outline: 0 }
.seepicktx { display: block; min-width: 0 }
.seepicktx strong { display: block; font-size: .92rem; font-weight: 700; line-height: 1.35 }
.seepickmeta { display: block; margin-top: .1rem; font-size: .74rem; line-height: 1.35; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }

/* 정산 확인 팝업(2026-11-18 · 2026-11-22 디자인 다듬음 · 2026-11-22 한 화면 폭 고정 + 제목 안 잘림 —
   베어스타: "디자인이 좀 구려서 디자인만 이쁘게해봐" / "한화면에 안들어오는데 들어오게해줘 제목은 잘리면 안돼") */
.settlebtn { margin-top: .4rem }
.settle { min-width: 0; overflow-x: hidden }
.settle .seclabel { font-size: .78rem; color: var(--muted); font-weight: 600; margin: 0 0 .4rem }
.settle .whofree {
  display: block; width: 100%; box-sizing: border-box; font: inherit; font-size: .88rem;
  padding: .6rem .75rem; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--fg); transition: border-color .15s, box-shadow .15s;
}
.settle .whofree:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft) }
.settleout { margin-top: .9rem; display: grid; gap: .65rem; max-height: 55vh; overflow-y: auto; overflow-x: hidden; min-width: 0 }
.settlegrp {
  padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 14px; background: var(--sunken);
  min-width: 0; overflow-x: hidden;
}
.settlegrp.none { border-style: dashed; background: transparent }
.settlehd { display: flex; align-items: flex-start; gap: .55rem; margin-bottom: .45rem }
.settleav {
  flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; background: var(--accent); color: var(--accent-fg);
  font-size: .78rem; font-weight: 700; line-height: 1; margin-top: .05rem;
}
.settlenm {
  flex: 1 1 auto; min-width: 0; font-size: .92rem; font-weight: 700; color: var(--fg);
  white-space: normal; word-break: break-word; overflow-wrap: anywhere; line-height: 1.35;
}
.settlesum { flex: none; font-size: .9rem; font-weight: 700; color: var(--accent); white-space: nowrap; align-self: flex-start }
.settlegrp.none > b { display: block; font-size: .88rem; font-weight: 700; color: var(--muted); margin-bottom: .3rem }
.settleit {
  display: grid; grid-template-columns: 1fr auto; column-gap: .6rem; align-items: baseline;
  font-size: .82rem; color: var(--muted); line-height: 1.5; padding: .22rem 0;
  border-top: 1px dashed var(--line); min-width: 0;
}
.settleit:first-of-type { border-top: 0 }
.settleitnm { min-width: 0; white-space: normal; word-break: break-word; overflow-wrap: anywhere }
.settleitamt { white-space: nowrap; text-align: right; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums }
.settleitamt.muted { color: var(--muted); font-weight: 500 }
.settleit.none2 { border-top: 0; display: block; text-align: center; color: var(--muted); font-size: .85rem; padding: .3rem 0 }
.settleres {
  padding: .85rem .9rem; border-radius: 16px; border: 1.5px solid var(--accent);
  background: linear-gradient(165deg, var(--accent-soft), var(--sunken)); min-width: 0; overflow-x: hidden;
}
.settlereshd { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; flex-wrap: wrap }
.settleresttl { font-size: .82rem; font-weight: 700; color: var(--muted) }
.settlerestotal { font-size: 1.35rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -.01em }
.settleresmeta { margin-top: .1rem; font-size: .8rem; color: var(--muted) }
.settletxwrap { margin-top: .7rem; display: grid; gap: .4rem; padding-top: .6rem; border-top: 1px solid var(--line); min-width: 0 }
.settletx {
  display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto; align-items: center; gap: .35rem;
  font-size: .9rem; font-weight: 700; padding: .5rem .65rem; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); min-width: 0;
}
.settletxfrom { color: var(--hi); min-width: 0; white-space: normal; word-break: break-word; overflow-wrap: anywhere }
.settletxarrow { color: var(--muted); font-weight: 400 }
.settletxto { color: var(--ok); min-width: 0; white-space: normal; word-break: break-word; overflow-wrap: anywhere }
.settletxamt { text-align: right; white-space: nowrap; color: var(--fg); font-variant-numeric: tabular-nums }
@media print {
  body.printsettle > *:not(.ovback) { display: none !important }
  body.printsettle .ovback { position: static !important; background: none !important; height: auto !important }
  body.printsettle .ovbox { box-shadow: none !important; max-height: none !important; width: auto !important; border: 0 !important }
  body.printsettle .settleout { max-height: none !important; overflow: visible !important }
  body.printsettle .ovfoot, body.printsettle .ovx { display: none !important }
}
/* 이야기 전용 고치기(?story=) — 원본 여행 화면은 가리고 편집 창 · 알림 · 고르기 창만(2026-11-18) */
body.storyonly > :not(.storyback):not(#say):not(.ovback):not(.modal-back):not(script) { visibility: hidden !important }
/* 지도 정보 칸 — 이동(항공 · 기차 · 버스) = 파랑(2026-11-18) */
.mapinfobar.move { background: #e7f0ff; border-color: #a9c6f5; color: #1c3f7a }
.mapinfobar.move .pinpop-name, .mapinfobar.move .pinpop-link { color: #1c3f7a }
.mapinfobar.move .pinpop-score, .mapinfobar.move .mi-tag { color: #1f6feb }
.mapinfobar.move .pinpop-del, .mapinfobar.move .pinpop-add, .mapinfobar.move .pinpop-info { border-color: #a9c6f5 }
/* ＋ 메뉴 이동 그림(버스 · 기차 · 자동차 · 이동) = 파랑(2026-11-18 승주: "좀 더 파랑 · 검정 같아") */
.addmenu .pickitem .ico[data-ico="bus"], .addmenu .pickitem .ico[data-ico="train"], .addmenu .pickitem .ico[data-ico="car"], .addmenu .pickitem .ico[data-ico="move"] { color: var(--move) }
/* 펼친 카드 「✥ 옮기기」 = 끌기 손잡이를 편집 왼쪽으로(2026-11-18 승주: "편집 왼쪽에 이동 버튼 · 누른 채 끌면 위치 변경") — 잡는 손(grab) · 누르면 진하게 */
/* 옮기기도 편집 · – · × 와 같은 옷(실선 테두리 · 중립 회색)으로 — 전에는 점선 + 파란 강조로 따로 놀았다
   (2026-11-30 베어스타: "디자인이 따로놀아" — 같은 단추 줄 안에서 하나만 점선 · 파랑이라 눈에 튀었다). */
.items > .item.open > .grip2 { top: .15rem !important; bottom: auto !important; right: 6.85rem !important; width: auto !important; height: 1.4rem !important;
  padding: 0 .5rem !important; font-size: 0 !important; border-radius: 7px !important; border: 1px solid var(--line) !important;
  background: var(--sunken) !important; color: var(--ink, inherit) !important; opacity: 1 !important; display: inline-flex !important; align-items: center; z-index: 3; cursor: grab; touch-action: none }
.items > .item.open > .grip2::before { content: "✥ 옮기기"; font-size: .76rem; font-weight: 700; line-height: 1; white-space: nowrap }
.items > .item.open > .grip2:active { cursor: grabbing; background: var(--accent) !important; color: #fff !important; border-style: solid !important }
.items > .item.open.airpin > .grip2 { display: none !important }
/* 펼친 카드 높이 줄임(2026-11-18 승주: "버튼 여백 없애고 · 내용은 줄바꿈 · 한 줄 이어서") — 오른쪽 위 단추 넷(옮기기 · 편집 · – · ×)과 첫 줄(확정 · 시각 · 제목 · 그림)을 같은 높이에 ·
   첫 줄은 단추 자리만큼 오른쪽을 비우고 길면 줄바꿈 · 오른쪽 세로 손잡이 자리는 없앰(옮기기 단추로) */
.items > .item.open { padding-top: .45rem !important; padding-right: .6rem !important }
.items > .item.open > .line1 { padding-right: 10.9rem; flex-wrap: wrap; row-gap: .3rem }
.items > .item.open.airarr > .line1 { padding-right: 0 !important; padding-top: 0 !important }   /* 도착 칸 = 단추 없음 */
.items > .item.open .fw > input.place { min-width: 0 }
@media (max-width: 520px) {
  .items > .item.open:not(.airarr) > .line1 { padding-right: 0; padding-top: 1.75rem }   /* 좁은 폰 — 단추 줄 바로 아래 첫 줄(겹치지 않게) */
}
/* 관광지 카드 — 선호 % 진한 색 · 단추 글자 가운데(2026-11-18) */
.seecard .seepref { font-weight: 800 }
.seecard .seepref.pref-lo { color: #c92a2a }
.seecard .seepref.pref-hi { color: #1f6feb }
.stay-card .stay-tools .sm { display: inline-flex; align-items: center; justify-content: center; text-align: center }
/* 편집 중 「취소」(저장 왼쪽) · 「✥ 옮기기」 는 카드 왼쪽 위(2026-11-18 승주) */
.item > .sm.x.edcancel { display: none }
.item.open.editing > .sm.x.edcancel { display: inline-flex !important; align-items: center; position: absolute; top: .15rem; right: 7rem; z-index: 3; height: 1.4rem; min-width: 0 !important; min-height: 0 !important;
  padding: 0 .55rem; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--ink, inherit); font-size: .78rem; font-weight: 700; line-height: 1; opacity: 1 }
.items > .item.open > .grip2 { right: auto !important; left: .5rem !important }
.items > .item.open:not(.airarr) > .line1 { padding-top: 1.6rem }   /* 왼쪽 위 옮기기 · 오른쪽 위 단추 아래로 첫 줄 */
.items > .item.open > .line1 { padding-right: 0 }
.item.open.editing .fw > textarea.memo { min-height: 3.1em }   /* 편집 중 내용 칸 2행부터 · 평소는 글 길이만큼(2026-11-19) */
/* 편집 중 시간 칸도 열린 표시(2026-11-18) · 평소엔 읽기만 */
.item.open.editing .line1 > input.time { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 1px; background: var(--surface, #fff) !important; caret-color: auto }
.item .line1 > input.time.ro { cursor: default }
.holdpin { font-size: 26px; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); animation: holdpin-drop .25s ease-out }
@keyframes holdpin-drop { from { transform: translateY(-14px); opacity: 0 } to { transform: none; opacity: 1 } }   /* 꾹 눌러 찍은 자리(2026-11-19) */
/* 되돌리기 띠(2026-11-19) */
.say .sayundo { pointer-events: auto; margin-left: .4rem; padding: .15rem .6rem; min-height: 0; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; font: inherit; font-weight: 800; cursor: pointer }
/* 위치 창 — 검색 아래 늘 지도(2026-11-20) */
.locmapwrap[hidden] { display: none }
.locmap { margin-top: .6rem; height: min(42vh, 300px); border-radius: 10px; overflow: hidden; border: 1px solid var(--line) }
.locmapbar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .5rem }
.locmapbar .note { font-size: .8rem; color: var(--muted) }
.locout .lochit.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)) }   /* 지도에 표시 중인 결과 */
/* 위치 창 「적용」 줄은 늘 보임 — 창 아래에 붙음(2026-11-20 승주: "스크롤 내려야 보여서") */
.locmodal .locmapbar { position: sticky; bottom: -1px; z-index: 5; margin: .5rem -.2rem 0; padding: .55rem .2rem; background: var(--surface, #fff); border-top: 1px solid var(--line) }
.locmodal .locmapbar .sm.primary { min-width: 5rem }
.locout[hidden] { display: none }   /* 결과 고른 뒤 목록 접음(2026-11-20) */
/* 위치 창 결과 = 검색칸 아래 드롭다운(지도 위 · 2026-11-20) */
.locmodal .locrow { position: relative }
.locmodal .locrow > .locout { position: absolute; left: 0; right: 0; top: calc(100% + .25rem); z-index: 1200; margin: 0; max-height: min(45vh, 18rem); overflow-y: auto;
  padding: .3rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface, #fff); box-shadow: 0 8px 22px rgba(0,0,0,.18) }
.locmodal .locrow > .locout:empty, .locmodal .locrow > .locout[hidden] { display: none }
/* 위치 창 한 화면에(2026-11-20 승주: "드롭다운 상관없이 적용 단추 한 화면에") — 지도 높이 = 화면에 맞춰 줄임 · 아래 줄 고정 */
.modal.locmodal { max-height: 92dvh; display: flex; flex-direction: column }
.locmodal .locmap { height: clamp(150px, calc(92dvh - 13.5rem), 300px) }
.locmodal .locmapbar { gap: .4rem }
.locmodal .locmapbar .note { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.locmodal .locmapbar .locreset { flex: none }
/* 고른 숙소 카드 = 지도 숙소 카드(.pincard)와 같은 꼴(2026-11-21) — 작은 사진 · 이름 두 줄까지 · 한 줄(성급 · 평점 · 지역) */
.stay-card.staypick { grid-template-columns: 3.6rem 1fr; gap: .55rem; align-items: center }
.stay-card.staypick > img, .stay-card.staypick > .tkimg, .stay-card.staypick > .cardlogo { width: 3.6rem; height: 2.7rem; border-radius: 8px }
.stay-card.staypick .stay-info strong { font-size: .88rem; line-height: 1.3; word-break: keep-all; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical }
.stay-card.staypick .stay-meta { font-size: .72rem; margin-top: .1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.stay-card.staypick .stay-tools { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap }
/* 위치 찾기 — 「위치 초기화 · 적용」 줄을 팝업 맨 아래에 딱 붙임(2026-11-21 승주: "그 밑 여백 사이로 지도가 보여 지저분") — 아래 여백 없음 · 팝업 폭 끝까지 · 안전 영역은 줄 안쪽 */
.modal.locmodal .locfind { padding-bottom: 0 }
.locmodal .locmapbar { bottom: 0; margin: .5rem -1rem 0; padding: .55rem 1rem calc(.55rem + env(safe-area-inset-bottom, 0px)); border-radius: 0 0 var(--r, 14px) var(--r, 14px) }
@media (max-width: 34rem) { .locmodal .locmapbar { border-radius: 0 } }   /* 폰은 팝업이 아래에 붙어 아래 모서리가 각짐 */
/* 짝 도착 시각 칸 — 출발 줄 「편집」 중에만(2026-11-21) */
.item .line1:has(> .arrfield:not([hidden])) { flex-wrap: wrap }
.item .line1 > .arrfield { display: flex; align-items: center; gap: .4rem; flex: 0 0 100%; order: 9; margin-top: .1rem }   /* 출발 줄 아래 한 줄 — 「도착 [11:40] 다음 날」 */
.item .line1 > .arrfield[hidden] { display: none }
.arrfield .arrlab { font-size: .74rem; color: var(--muted); font-weight: 700 }
.arrfield .arrt { width: 4.6rem; flex: none; text-align: center }
/* 자동완성 후보는 내용만큼(이름 · 주소 · 거리 세 줄 · 긴 주소 줄바꿈) — 목록(세로 flex · max-height)이 칸을 눌러 마지막 줄이 잘리던 것(2026-11-21) */
.droplayer > * { flex-shrink: 0 }
.locout .lochit, .region-sug .region-opt, .oacbox .acitem { height: auto; min-height: 0; max-height: none; overflow: visible; white-space: normal; line-height: 1.35; padding-bottom: .5rem }
.locout .lochit .ad { white-space: normal; overflow-wrap: anywhere }
/* 기차 · 버스 도착 칸 — 펼치면 아래 줄에 「📍 위치」 하나만(도착 역 · 터미널 좌표 따로 · 2026-11-21) */
.item.airarr.landarr.open > .itemfoot { display: block !important; padding: 0 0 .35rem }
.item.airarr.landarr.open > .itemfoot > :not(.acts2) { display: none !important }
.item.airarr.landarr.open > .itemfoot .acts2 > :not(.loc) { display: none !important }
.arrfield .arrloc { flex: none; min-height: 0; padding: .2rem .55rem; font-size: .74rem }
.arrfield .arrloc.has { color: var(--accent); border-color: var(--accent) }
/* 「관심없음」 도 정보 · 삭제와 같은 알약 높이(전체 지도 카드 · 핀 카드 어디서나 · 2026-11-21 승주: "관심없음만 너무 커") */
.pinpop .pinpop-nope, .mapcard .pinpop-nope, .mapfull > .mapinfobar .pinpop-nope { min-height: 0 !important; min-width: 0 !important; width: auto !important; height: 1.4rem !important;
  padding: 0 .55rem !important; border-radius: 999px !important; font-size: .7rem; font-weight: 700; line-height: 1; margin-left: 0;
  display: inline-flex; align-items: center; flex: none }
.mapcard .pinpop-nope::after, .pinpop .pinpop-nope::after { content: none }
/* 자랑하기 항목 이름 고치기 ✏️(이야기에만 · 2026-11-21) */
.sitem .snrow { display: flex; align-items: center; gap: .3rem; min-width: 0 }
.sitem .snrow > b { min-width: 0; overflow-wrap: anywhere }
.sitem .snpen { flex: none; min-height: 0 !important; min-width: 0 !important; height: 1.5rem; padding: 0 .35rem; font-size: .72rem; border-radius: 999px; background: none }
.sitem .snin { width: 100%; font: inherit; font-weight: 700; font-size: .88rem; padding: .25rem .45rem; border: 1px solid var(--accent); border-radius: 8px }
/* 자랑하기 곳 빼기(이야기에서만 · 2026-11-22) */
.sitem .sndrop { flex: none; margin-left: auto; min-height: 0 !important; min-width: 0 !important; height: 1.5rem; padding: 0 .55rem; font-size: .72rem; border-radius: 999px; color: #c92a2a; border-color: #f1c0c0; background: #fff }
.sitem.dropped { opacity: .45 }
.sitem.dropped .snrow > b { text-decoration: line-through }
.sitem.dropped .sndrop { opacity: 1; color: var(--accent); border-color: var(--accent) }
.storybox.upbusy .sndrop, .storybox.upbusy .snpen, .storybox.upbusy .spick, .storybox.upbusy .sdrm, .storybox.upbusy .sdh input { pointer-events: none; opacity: .4 }   /* 사진 올리는 중엔 막음 */

/* ── 📷 카드 사진 창 ── */
.picbox .picgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-bottom: 10px }
.picbox .piccell { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--sunken); aspect-ratio: 1 / 1 }
.picbox .piccell img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in }
.picbox .piccell.gone img { visibility: hidden }
/* ✕ = 오른쪽 위 작은 동그라미(버튼은 이것 하나) · 번호 = 왼쪽 위(1 = 대표 · 고르는 중엔 누른 차례) · 손가락 44px 규칙(D-096)을 이 둘만 풂 */
.picbox .picx { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; min-width: 0 !important; min-height: 0 !important; padding: 0; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.5); color: #fff; font-size: 10px; line-height: 20px; text-align: center; cursor: pointer; box-shadow: none }
.picbox .picx:disabled { opacity: .35; cursor: default }
.picbox .picno { position: absolute; top: 4px; left: 4px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: rgba(0,0,0,.5); color: #fff;
  font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; pointer-events: none }
.picbox .picno.main { background: #f59f00 }
.picbox .piccell.picked { outline: 2.5px solid var(--accent); outline-offset: -2.5px }
.picbox .piccell.picked .picno { background: var(--accent) }
.picbox .piccell.dim img { opacity: .55 }
.picbox .piccell img { -webkit-touch-callout: none; user-select: none }
.picbox .picgrid > .ovhint { grid-column: 1 / -1 }

/* 관광지 카드 = 고른 숙소 카드(staypick)와 같은 배치 — 작은 사진 · 이름 · 아래 단추 한 줄(정보확인 맨 앞) */
.stay-card.seepick { grid-template-columns: 3.6rem 1fr; gap: .55rem; align-items: center }
.stay-card.seepick > img, .stay-card.seepick > .tkimg { width: 3.6rem; height: 2.7rem; border-radius: 8px }
.stay-card.seepick .stay-info strong { font-size: .88rem; line-height: 1.3; word-break: keep-all; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical }
.stay-card.seepick .stay-meta { font-size: .72rem; margin-top: .1rem }
.stay-card.seepick .stay-tools { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap }
.stay-card.seepick .stay-tools .infobtn { display: inline-flex; align-items: center; gap: .25rem }
.stay-card.seepick .stay-tools .infobtn svg { width: .85rem; height: .85rem }

/* ── 📷 사진 창 안내 · 순서 고르기 줄 ── */
.picbox .piccover { margin: 0 0 .5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem }
.daycard .photo.phedit { cursor: pointer }

/* ── 관광지 정보 창 · 일정 줄 설명 = 나눔스퀘어라운드(Regular · Bold · 네이버 무료 OFL) ──
   CDN css(nanum-square-round.css)의 @font-face 는 font-display 가 없어(block) 늦게 바뀌어 그려진다 — 위 NanumSquareRoundEB 처럼 optional 로 덮고,
   schedule/index.html 이 미리 받아(preload) 처음 열 때도 이 글꼴 · 못 받으면 --b */
@font-face {
  font-family: "NanumSquareRound"; font-display: optional; font-weight: 400; font-style: normal;
  src: url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareRound/NanumSquareRoundR.woff2) format("woff2");
}
@font-face {
  font-family: "NanumSquareRound"; font-display: optional; font-weight: 700; font-style: normal;
  src: url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareRound/NanumSquareRoundB.woff2) format("woff2");
}
.pinfo, .pinfo *:not(svg):not(path) { font-family: "NanumSquareRound", var(--b) }
.pinfo .procol .h { font-weight: 700 }
.item .rv-sub, .item textarea.memo { font-family: "NanumSquareRound", var(--b) }
.storybox .sdday { align-items: center }
.storybox .sdday .sddl { font-size: .76rem; color: var(--muted); margin-right: .3rem }
.storybox .sdday .sdph.main { outline: 2px solid #f59f00; outline-offset: 1px }
/* 날 카드 사진 — 눌러 사진 올리는 자리(왼쪽 아래 붙임 · 올린 사진이 있으면 장 수 · 저작권 표기는 그 오른쪽) */
.daycard .photo .phup { position: absolute; bottom: .35rem; left: .35rem; z-index: 3; display: inline-flex; align-items: center; gap: 2px; height: 1.55rem; min-width: 1.55rem; padding: 0 .32rem; box-sizing: border-box; justify-content: center;
  border-radius: 999px; background: rgba(255,255,255,.88); color: #34495e; box-shadow: 0 1px 4px rgba(0,0,0,.18); pointer-events: none; transition: transform .15s }
.daycard .photo .phup svg { width: .9rem; height: .9rem; display: block }
.daycard .photo .phup b { font-size: .68rem; font-weight: 800; line-height: 1 }
.daycard .photo.phedit:hover .phup { transform: scale(1.1) }
.daycard .photo:has(.phup) .credit { padding-left: 3.4rem }   /* 카메라는 맨 아래 왼쪽에 붙이고 저작권 글은 그 오른쪽으로 */
/* 지도 칸 찾기 받는 중 — 켜 둔 관광 · 숙소 단추 테두리가 살짝 숨쉬듯 */
.daymap.gridbusy .mapshowbtn.on { animation: gridblink .8s ease-in-out infinite alternate }
@keyframes gridblink { from { box-shadow: 0 0 0 0 rgba(47,158,68,.0) } to { box-shadow: 0 0 0 4px rgba(47,158,68,.35) } }
.settle .settlefx { font-size: .78rem; color: var(--muted); margin: .45rem 0 .2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem }
.picbox .picmode { display: block; width: 100%; margin-top: .5rem }
.picbox .picmode[hidden] { display: none }

/* 줄을 다른 날로 끌어 옮길 때 — 놓을 날 카드를 밝힘(moveRowToDay) */
.day.dropday { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: .6rem; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent) }
