/* 리셋 · 앱 셸 · 공통 프리미티브 */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  /* App-wide touch policy: native scrolling stays available, browser pinch/double-tap zoom does not. */
  touch-action: pan-x pan-y;
}

body {
  background: var(--app-bg);
  color: var(--text-strong);
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

/* color: inherit 은 필수 — button 은 색을 상속하지 않고 UA 기본값(buttontext=검정)을 씁니다.
   그러면 stroke="currentColor" 로 그린 아이콘이 다크 배경 위에서 검정으로 찍혀 안 보입니다. */
input, select, textarea, button { font-family: inherit; color: inherit; }

/* 날짜 칸 전체가 달력 버튼입니다. 숨긴 기본 편집 칸은 터치나 블록 선택을 받지 않습니다. */
.date-picker { position: relative; min-width: 0; }
.date-picker__native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; color-scheme: dark; }
.date-picker__button { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; cursor: pointer; user-select: none; -webkit-user-select: none; }

/* 앱처럼 — 일반 표시 글자는 길게 누르거나 끌어도 선택되지 않게(2026-09-30). 글을 입력·수정하는 칸(메모·검색·
   스팟 직접 입력·로그인 등)은 선택·커서 이동을 그대로 둡니다. 관리자 페이지는 이 파일을 쓰지 않아 영향 없음 */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable]:not([contenteditable="false"]) { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent-forecast); }

::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; }

@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
/* 중앙 모달은 등장 중에도 중앙 정렬용 -50% 이동을 유지합니다. */
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, calc(-50% + 10px)); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin   { to { transform: rotate(360deg); } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ── 앱 셸 ── */
.app {
  max-width: var(--app-max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--app-bg);
  position: relative;
}

.page { padding-bottom: calc(var(--tabbar-reach) + env(safe-area-inset-bottom)); min-height: 100vh; }

/* ── 탭별 상단 유틸리티 바 ── */
/* 헤더 높이는 탭마다 같아야 합니다(2026-08-26 확정).
   예전에는 padding + 내용물로 높이가 정해져서, `+ 트립 시작` 버튼(40px)이나
   시설 배지(32px)가 든 탭만 헤더가 두꺼워졌습니다(51 / 59 / 68 / 74px로 제각각).
   Marketplace 기준인 51px로 고정하고, 안의 요소는 그 안에서 가운데 정렬만 합니다.
   상태바 영역은 노치 기기 표준 방식을 따릅니다 — 그 줄엔 아무것도 그리지 않고,
   딱 env(safe-area-inset-top)만큼만 배경색으로 채워 자연스럽게 이어붙입니다.
   여백을 임의로 더 주지 않고 시스템이 알려주는 실제 값만 씁니다(값 없는 기기에선 0). */
/* 2026-09-28: 본문을 스크롤해도 헤더는 위에 고정(sticky — 제자리를 차지하므로 본문 첫 항목이 가려지지 않음).
   z-index 30은 로그 선택창(40)·FAB(40)·하단 탭(50)·시트(100)보다 아래라 팝오버·시트를 가리지 않습니다.
   글자 선택 막기는 헤더에만 — 제목을 톡 눌렀을 때 Chrome 「탭하여 검색」이 뜨지 않게(앱 전체 선택은 그대로). */
.topbar {
  position: sticky; top: 0; z-index: 30;
  -webkit-user-select: none; user-select: none;
  background: var(--chrome-bg);
  height: calc(var(--topbar-h) + env(safe-area-inset-top));
  box-sizing: border-box;
  padding: env(safe-area-inset-top) var(--pad-screen) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar, .pool__head { box-shadow: inset 0 -1px var(--line-12); }
.topbar__left  { display: flex; align-items: center; gap: 6px; min-width: 0; }
.topbar__title { font-size: 14.5px; font-weight: 700; color: var(--text-strong); letter-spacing: .3px; }
.topbar__right { display: flex; align-items: center; gap: 14px; color: var(--text-muted); }
.topbar__icon  { display: flex; background: none; border: none; padding: 0; color: inherit; cursor: pointer; }

/* 알림 아이콘은 기능이 없어 전부 뺐습니다(2026-08-26) — 스타일도 함께 지웁니다.
   알림을 실제로 만들 때 다시 세우면 됩니다. */

/* ── 하단 탭 바 ── */
/* 아이콘·라벨은 위쪽에 바짝 붙이고, 홈 인디케이터 몫은 그 아래 별도 영역(env)으로만
   내줍니다 — 예전엔 그 여유분(6px)을 안전영역과 상관없이 항상 깔아둬서 아이콘이
   필요 이상으로 아래로 처져 있었고, 그러면서도 실제 홈 인디케이터(노치 기기 약 34px)는
   전혀 못 피하고 있었습니다(--tabbar-height 참고). */
/* 2026-10-01 가운데 원형 Home(집 아이콘) — 바 68px, 원(56px)이 바 위로 10px 나와 전체 80px(+안전영역은 한 번만).
   양쪽 바는 원 둘레 6px을 띄워 U자로 파인 한 장(곡선은 chrome.js shapeTabbar가 실제 폭으로 clip-path).
   바·원은 청록색. 선택된 일반 탭은 파란색(--accent-forecast), Home 아이콘은 항상 흰색(2026-10-07 승인). */
.tabbar {
  --chrome-bg: var(--nav-bg);
  --text-muted: var(--nav-text);
  position: fixed; left: 0; right: 0; bottom: 0;
  -webkit-user-select: none; user-select: none;   /* 탭 라벨을 눌러도 「탭하여 검색」이 뜨지 않게 */
  max-width: var(--app-max-width); margin: 0 auto;
  height: calc(var(--tabbar-reach) + env(safe-area-inset-bottom));
  padding: 0 0 env(safe-area-inset-bottom); box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(64px, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  isolation: isolate;
  pointer-events: none;            /* 바 위 투명한 자리(원 양옆)는 본문 누르기를 막지 않게 — 버튼만 받음 */
  z-index: 50;
}
.tabbar__surface {
  position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--tabbar-reach) - var(--tabbar-height));
  z-index: -1; pointer-events: none;   /* 테두리·반사·그림자 없이 짙은 단색으로 평평하게(2026-10-01) */
}
.tabbar__fill { position: absolute; inset: 0; background: var(--chrome-bg); }
/* 하단 바 배경 레이어(2026-10-01 개정) — 바 전체 폭의 직사각형, 윗선은 검정 바의 직선 상단과 같은 높이(원 위로 솟지 않음).
   앱 배경색 20% — 이 레이어에만 투명도. 검정 바(U자로 파임) 뒤에 깔려 원 둘레 파인 자리에서만 보입니다. 원형 링·마스크 없음.
   틈을 눌러도 뒤의 본문이 눌리지 않게 터치를 받습니다(아무 동작 없음). 워터마크 아래 검정 50% 레이어와는 별개. */
.tabbar__gap  { position: absolute; inset: 0; background: rgba(28, 28, 30, .2); pointer-events: auto; }
.tabbar__btn {
  align-self: end; height: var(--tabbar-height); min-height: 44px; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px;
  padding: 0 0 16px; box-sizing: border-box;      /* 옆 아이콘을 조금 올려 집 아이콘과 높이 차이를 줄임 */
  background: none; border: none; pointer-events: auto; cursor: pointer;
  font-size: 11px; line-height: 1.3; letter-spacing: .2px;
  color: var(--text-muted); font-weight: 500;
  -webkit-tap-highlight-color: transparent;
}
.tabbar__icon { display: grid; place-items: center; height: 24px; }
.tabbar__btn.is-active { color: var(--accent-forecast); font-weight: 700; }
.tabbar__home { height: var(--tabbar-reach); padding: 0; justify-content: flex-start; position: relative; }   /* 원 전체가 이 버튼 안 */
.tabbar__circle {
  position: absolute; left: 50%; top: 2px; transform: translateX(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent;   /* Keep cutout geometry fixed while the inner face compresses. */
  color: var(--nav-home);
}
.tabbar__home.is-active { color: var(--text-muted); }
.tabbar__home.is-active .tabbar__circle { color: var(--nav-home); }
.tabbar__home-face {
  position: absolute; inset: 0; display: grid; place-items: center;
  border-radius: 50%; background: var(--chrome-bg); color: var(--nav-home);
  pointer-events: none; transform: scale(1);
  transition: transform 240ms cubic-bezier(.4,0,.2,1);
}
.tabbar__home:active .tabbar__home-face { transform: scale(.952); transition-duration: 130ms; }
.tabbar__home-symbol,.tabbar__fit-symbol { position:absolute;inset:0;display:grid;place-items:center;transition:opacity 180ms ease-in-out; }
.tabbar__fit-symbol { color:var(--accent-report);opacity:0; }
.tabbar__home.is-fit .tabbar__home-symbol { opacity:0; }
.tabbar__home.is-fit .tabbar__fit-symbol { opacity:.85; }
.tabbar__home:not(.is-fit) .tabbar__home-symbol,.tabbar__home:not(.is-fit) .tabbar__fit-symbol { transition:none; }
.tabbar__home.is-fit .tabbar__fit-corner { animation:fit-corner-notice 800ms ease-in-out 650ms 1; }
@keyframes fit-corner-notice {
  0% { transform:translate(0,0); animation-timing-function:ease-in-out; }
  35% { transform:translate(var(--fit-x),var(--fit-y)); animation-timing-function:cubic-bezier(.2,.7,.3,1); }
  100% { transform:translate(0,0); }
}
@media (prefers-reduced-motion: reduce) {
  .tabbar__home .tabbar__home-face,.tabbar__home-symbol,.tabbar__fit-symbol { transition: none; }
  .tabbar__home.is-fit .tabbar__fit-corner { animation:none; }
}

/* ── 세그먼트 컨트롤 ── */
.segmented {
  display: flex; gap: 4px;
  -webkit-user-select: none; user-select: none;   /* 탭 라벨 — 선택·「탭하여 검색」 방지 */
  background: rgba(255, 255, 255, .04);
  border-radius: var(--r-pill);
  padding: 4px;
}
.segmented__btn {
  flex: 1; padding: 9px 0; border: none; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 700; cursor: pointer;
  background: transparent; color: var(--text-muted);
  min-height: 44px;
}
.segmented__btn.is-active { background: rgba(255, 255, 255, .10); color: var(--text-strong); }

/* ── 바텀시트 ── */
.sheet-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  width: 100%; max-width: var(--app-max-width);
  background: var(--surface-sheet);
  border-radius: var(--r-sheet);
  border: 1px solid var(--line-10); border-bottom: none;
  max-height: 86vh; display: flex; flex-direction: column;
}
/* 등장 애니메이션은 "새로 열릴 때"만 재생합니다.
   렌더는 화면을 통째로 다시 그리므로, 무조건 붙여두면 시트가 떠 있는 동안
   다른 상태가 바뀔 때마다 팝업이 아래에서 다시 올라옵니다. */
.sheet-overlay.is-entering { animation: fadeIn .16s ease; }
.sheet.is-entering { animation: sheetUp .22s cubic-bezier(.22, .8, .3, 1); }
.modal.is-entering { animation: modalIn .2s ease; }

.sheet__head {
  padding: 16px 18px 12px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line-10); flex-shrink: 0;
}
.sheet__title { font-size: 15.5px; font-weight: 700; color: var(--text-strong); }
.sheet__head--subtitle { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
.sheet__subtitle { grid-column: 1 / -1; font-size: 12px; line-height: 1.5; font-weight: 400; color: var(--text-dim); }
.sheet__close { background: none; border: none; font-size: 17px; color: var(--text-sub); cursor: pointer; padding: 4px 8px; }
/* 본문 끝에서 더 밀어도 뒤 페이지로 스크롤이 넘어가지 않게. 하단 시스템 영역이 겹치는 기기면 그만큼 띄운다 */
.sheet__body { padding: 16px 18px calc(24px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; }
/* 긴 시트(프로필) — 상단 상태바 아래 16px까지 올라온다(제목·닫기는 늘 보임). 넘치면 본문만 스크롤 */
.sheet--tall { max-height: calc(100vh - env(safe-area-inset-top, 0px) - 16px); max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 16px); }
/* 시트가 떠 있는 동안 뒤 페이지는 스크롤되지 않는다(닫으면 풀리고 위치는 그대로) */
html.is-sheet-open, html.is-sheet-open body { overflow: hidden; }
.sheet__foot {
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-10); display: flex; gap: 10px; flex-shrink: 0;
}
/* 본문이 이미 선으로 끝나는 시트에서는 버튼 위 선을 지웁니다 — 선이 두 줄로 겹쳐 보입니다.
   본문 아래·버튼 위의 기본 여백도 걷어내, 마지막 문단이 자기 위아래 여백을
   직접 정할 수 있게 합니다(그러지 않으면 아래쪽만 38px로 벌어집니다). */
.sheet--noFootLine .sheet__body { padding-bottom: 0; }
.sheet--noFootLine .sheet__foot { border-top: none; padding-top: 0; }

/* 중앙 모달 (Pool 상세 — 스펙 §8 규격) */
.modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: calc(100% - 48px); max-width: 380px; max-height: 74vh; overflow-y: auto;
  background: var(--surface-card); border-radius: 18px; border: 1px solid var(--line-10);
  padding: 20px 18px; z-index: 101;
  display: flex; flex-direction: column; gap: 12px;
}

/* ── 서비스 준비 중 워터마크 — 콘텐츠 영역(헤더 아래~하단 메뉴 위) 가운데 고정된 노란 삼각형 느낌표와 안내.
   시트(100)·모달(101) 위, 토스트(200) 아래. 터치·스크롤·스와이프는 통과. 켜고 끄기: js/config/service-preview.js */
.preview-wm {
  position: fixed; left: 0; right: 0; margin: 0 auto; max-width: var(--app-max-width);
  top: calc(var(--topbar-h) + env(safe-area-inset-top));
  bottom: calc(var(--tabbar-reach) + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 150;
  -webkit-user-select: none; user-select: none;
}
/* 워터마크 영역 어둡게(검정 40%) — 헤더 아래부터 화면 바닥까지. 하단 메뉴(50)·시트(100)보다 아래, 본문·FAB(40)보다 위.
   메뉴 뒤까지 깔아 가운데 원 둘레의 파인 자리로 밝은 본문이 비치지 않게 합니다. */
.preview-wm-dim {
  position: fixed; left: 0; right: 0; margin: 0 auto; max-width: var(--app-max-width);
  top: calc(var(--topbar-h) + env(safe-area-inset-top)); bottom: 0;
  background: rgba(0, 0, 0, .40); pointer-events: none; z-index: 45;
}
/* Market의 모든 시트·모달은 맨 아래 선택·결제 버튼까지 검정 레이어 아래에 둡니다.
   창이 없을 때는 기존 순서로 돌아가 헤더·하단 메뉴를 어둡게 하지 않습니다. */
.app:has(.sheet-overlay, .modal) > .preview-wm-dim--market { top: 0; z-index: 140; }
.preview-wm__mark { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #f5c542; opacity: .53; font-family: var(--font-body); text-align: center; }
.preview-wm__icon { display: block; width: 66px; height: 66px; }
.preview-wm__label { font-size: 16px; font-weight: 500; line-height: 1.5; white-space: nowrap; }

/* 직접 입력 중에만 보이는 키보드 접기 꺾쇠. 배경·원 없이 아이콘만 보이며 터치 영역은 44px입니다. */
.input-is-writing { padding-right: 48px !important; }
.input-complete {
  position: fixed; z-index: 110; width: 44px; height: 44px; padding: 8px; border: 0;
  background: transparent; color: var(--text-strong); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.input-complete[hidden] { display: none; }
.input-complete svg { position: relative; }
.input-complete:focus-visible { outline: 2px solid var(--accent-forecast); outline-offset: -5px; border-radius: 4px; }

/* ── 토스트 ── */
.toast {
  position: fixed; bottom: calc(var(--tabbar-reach) + env(safe-area-inset-bottom) + 12px); left: 50%;   /* 가운데 원 위로 */
  transform: translateX(-50%);
  background: rgba(28, 28, 30, .96);
  border: 1px solid var(--line-12);
  color: var(--text-strong);
  font-size: 14px; font-weight: 600;
  padding: 12px 18px; border-radius: 12px;
  z-index: 200; max-width: calc(var(--app-max-width) - 40px);
  text-align: center; line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  animation: toastIn .2s ease;
}
.toast.is-error { border-color: rgba(226, 104, 90, .5); color: #ffb9b0; }
/* 여러 줄 안내(특보: 지역명 / 특보명, 2026-10-01) — 줄마다 가운데 정렬. 지역명은 단어 단위로만 넘기고(넘칠 때만 글자 단위),
   특보명은 한 덩어리로(풍랑주의 / 보처럼 끊기지 않게). 좁은 화면에서도 화면 밖으로 나가지 않게 폭을 제한합니다 */
.toast--lines { display: flex; flex-direction: column; align-items: center; gap: 2px; width: max-content; max-width: min(calc(var(--app-max-width) - 40px), calc(100vw - 32px)); }
.toast__line { display: block; text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
.toast__line--key { white-space: nowrap; }

/* ── 공통 카드/버튼 ── */
.card {
  background: var(--surface-header);
  border: 1px solid var(--line-10);
  border-radius: var(--r-mid);
  padding: 18px;
}

.btn-primary {
  width: 100%; padding: 14px; border: none; border-radius: 12px;
  font-size: 15.5px; font-weight: 700; cursor: pointer;
  background: var(--cta-grad); color: #fff;
  box-shadow: 0 4px 14px rgba(26, 138, 175, .35);
  min-height: 44px;
}
.btn-primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

.btn-ghost {
  padding: 13px; border: 1.5px solid var(--line-10); border-radius: 12px;
  background: var(--surface-header); color: var(--text-strong);
  font-size: 15.5px; font-weight: 700; cursor: pointer; min-height: 44px;
}

/* Phase 1 전용 "준비 중" 인라인 배지 — README 스펙 그대로.
   Phase 2에서 기능이 켜지면 이 배지만 제거하면 됩니다(카드 레이아웃 유지). */
.pending-badge {
  word-break: keep-all;   /* 「준 / 비」처럼 단어 가운데서 줄이 바뀌지 않게(2026-09-28) */
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-mid-2);
  border-radius: var(--r-inline-badge);
  padding: 6px 10px;
  margin-top: 10px;
}
.pending-badge--pool   { background: rgba(255, 90, 69, .16); }
.pending-badge--market { background: rgba(240, 180, 0, .16); }

/* 탭 전체가 준비 중인 화면 (Pool/Market 상단 안내) */
.pending-banner {
  margin: 0 var(--pad-screen) 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px dashed var(--line-12);
  border-radius: var(--r-mid);
  padding: 14px 16px;
  font-size: 13.5px; line-height: 1.6; color: var(--text-quiet);
}
.pending-banner b { color: var(--text-mid-2); font-weight: 700; }

.empty-state {
  text-align: center; padding: 40px 16px;
  color: var(--text-muted); font-size: 14.5px; line-height: 1.7;
}

/* 터치 타깃 최소 44px — 아이콘의 시각 크기는 그대로 두고 누를 수 있는 영역만 넓힙니다.
   (레이아웃에 영향을 주지 않도록 가상 요소로 확장) */
.tap44 { position: relative; }
.tap44::after {
  content: '';
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
}

.topbar__icon,
.hero__star,
.board-add,
.field-head .kebab,
.duo-card__ins,
.spotsheet__fav,
.ppost__menu,
.sheet__close { position: relative; }
.topbar__icon::after,
.hero__star::after,
.board-add::after,
.field-head .kebab::after,
.duo-card__ins::after,
.spotsheet__fav::after,
.ppost__menu::after,
.sheet__close::after {
  content: '';
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
}
/* 리스트 항목 전체가 이미 넓은 경우엔 세로만 보장 */
.duo-card__ins::after { width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* 이전 주소 안내(surflog.pages.dev에서만 표시) */
.move-notice {
  position: fixed; left: 12px; right: 12px; top: calc(env(safe-area-inset-top) + 10px); z-index: 1000;
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 12px 12px 14px; border-radius: 12px;
  background: #13212a; border: 1px solid rgba(94, 198, 240, .35); color: var(--text-strong);
  font-size: 13px; line-height: 1.55; box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
}
.move-notice__text { flex: 1; }
.move-notice__text a { color: var(--accent-forecast); font-weight: 600; word-break: break-all; }
.move-notice__close { flex: none; background: none; border: 0; color: var(--text-muted); font-size: 20px; line-height: 1; padding: 2px 4px; cursor: pointer; }

/* ── 정보 안내 상세 창 공통 양식(2026-10-01) — Insights·수트 가이드·왁스 가이드(chrome.js infoSheet) ──
   제목·× → 분리선(헤더 아래 선) → 결과·근거 카드 → 보조 정보 → 상세 설명 → 추가 안내 → 공통 참고 → 닫기.
   간격: 분리선→카드 16px(본문 위 여백) · 카드→보조 12px · 보조→설명 16px · 문단 사이 9px. 없는 항목은 여백까지 함께 빠집니다.
   입력·선택용 창에는 영향 없음(.sheet--info로만 겁니다). 긴 설명은 본문 영역만 스크롤되고 제목·닫기는 그대로. */
.sheet--info .sheet__title { font-weight: 700; }
.sheet--info .sheet__body > :first-child { margin-top: 0; }
.isheet__card {
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-10); border-radius: 12px;
  padding: 12px 14px;
}
.isheet__kicker { font-size: 12px; color: #9a9aa0; margin-bottom: 4px; }
.isheet__result {
  font-size: 16px; font-weight: 700; color: var(--text-strong); line-height: 1.45;
  display: flex; align-items: center; gap: 8px; word-break: keep-all; overflow-wrap: anywhere;
}
.isheet__cap { font-size: 12px; color: #9a9aa0; margin: 10px 0 4px; }
.isheet__facts { margin: 0; display: grid; gap: 5px; font-size: 13.5px; }
.isheet__result + .isheet__facts { margin-top: 10px; }
.isheet__facts > div { display: flex; justify-content: space-between; gap: 12px; }
.isheet__facts dt { color: #9a9aa0; margin: 0; font-weight: 400; flex: 0 0 auto; }
.isheet__facts dd { margin: 0; font-weight: 600; color: var(--text-strong); text-align: right; word-break: keep-all; overflow-wrap: anywhere; }
.isheet__meta { font-size: 12.5px; color: #8e8e93; margin-top: 12px; line-height: 1.5; }
.isheet__card + .isheet__meta { margin-top: 12px; }
.isheet__body { margin-top: 16px; }
.isheet__p { margin: 0; font-size: 14px; font-weight: 400; line-height: 1.6; color: #d1d1d6; white-space: pre-line; word-break: keep-all; overflow-wrap: anywhere; }
.isheet__p + .isheet__p { margin-top: 9px; }
.isheet__notes {
  margin: 14px 0 0; padding: 10px 12px 10px 28px;
  background: rgba(255, 255, 255, .06); border-radius: 10px;
  font-size: 13.5px; line-height: 1.55; color: #d1d1d6;
}
.isheet__notes li + li { margin-top: 5px; }
.isheet__foot {
  margin: 14px 0 0; font-size: 12px; line-height: 1.55; color: #8e8e93;
  padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08);
}

/* 홈 카드·예보 즐겨찾기 배지 재배치(2026-10-09, ui/reorder.js) */
/* 길게 누르는 동안 글자 선택·길게 누름 메뉴가 끼어들지 않게(보이는 모양은 그대로) */
[data-reorder-id] { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* 편집 중 흔들림(2026-10-09 조정) — 이동 가능한 항목만. 작은 회전(rotate)에 상하좌우 위치 흔들림(translate)을 섞고, 크기는 바꾸지 않음.
   한 주기 안에서 네 점을 돌며 방향이 엇갈리고, 항목마다 시작 시점(--wph, ui/reorder.js가 ID로 정함)과 방향이 달라 함께 같은 쪽으로 움직이지 않음.
   속성 분리: 흔들림 = rotate·translate, 배지가 비켜나는 움직임 = transform(인라인), 홈 카드의 위치·크기 전환 = 겹쳐 그린 복사본
   (.reorder-ghost, 그동안 실제 카드는 숨김), 끄는 복사본 = translate·scale(흔들림 없음). 규격은 1×1·2×1·1×2.
   카드: 한 주기 0.416s, 진폭은 직전 값의 75%(회전 반폭 카드 .45°·큰 카드 .25°, 위치 ±1.125px·±.9px).
   배지: 회전 .35°, 위치 ±1px·±.8px, 한 주기 0.34s(그대로). All ▾은 대상 아님. */
@keyframes reorder-wiggle {
  0%, 100% { rotate: calc(-1 * var(--wr)); translate: calc(-.6 * var(--wx)) calc(.4 * var(--wy)); }
  25% { rotate: calc(.4 * var(--wr)); translate: var(--wx) calc(-1 * var(--wy)); }
  50% { rotate: var(--wr); translate: calc(.4 * var(--wx)) var(--wy); }
  75% { rotate: calc(-.4 * var(--wr)); translate: calc(-1 * var(--wx)) calc(-.5 * var(--wy)); }
}
.is-editing [data-reorder-id]:not([data-reorder-fixed]) { --wr: .45deg; --wx: 1.125px; --wy: .9px; --wt: .416s;
  animation: reorder-wiggle var(--wt) ease-in-out calc(var(--wph, 0) * -1 * var(--wt)) infinite; }
.is-editing [data-reorder-id][data-wiggle-rev] { animation-direction: reverse; }
.is-editing .fav-hero, .is-editing .recent, .is-editing .is-wide, .is-editing .g-1x2 { --wr: .25deg; }
.is-editing .fc__chip { --wr: .35deg; --wx: 1px; --wy: .8px; --wt: .34s; }
/* 편집이 끝날 때는 ui/reorder.js가 지금 흔들린 자리·각도를 붙잡고 0.2초 동안 제자리로 되돌린 뒤 다시 그립니다 */
/* 편집 중 가로 넘침 잘라내기 — 줄 전체로 넓어지는 카드가 옆 칸에서 옮겨 오는 동안 화면 오른쪽 밖으로 나가면 모바일 브라우저가
   화면 폭을 넓혀(하단 탭 위치까지 바뀜) 화면이 흔들렸습니다(2026-10-09 확인). 스크롤 영역을 만들지 않는 clip */
[data-reorder-scope].is-editing { overflow-x: clip; }
/* 들어갈 자리 — 놓으면 들어갈 위치·규격 그대로 점선 칸(옮겨 가는 동안의 복사본 포함, 손가락을 따라가는 복사본 제외) */
[data-reorder-scope] .is-placeholder:not(.reorder-clone) {
  animation: none; background: rgba(255, 255, 255, .04); border-color: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3);
}
[data-reorder-scope] .is-placeholder:not(.reorder-clone), [data-reorder-scope] .is-placeholder:not(.reorder-clone) > * { color: transparent; }
[data-reorder-scope] .is-placeholder:not(.reorder-clone) > * { visibility: hidden; }
/* 홈 카드의 위치·크기 전환 — 대시보드 안에 겹쳐 그린 복사본이 450ms 동안 옮겨 가는 동안 실제 카드는 숨김 */
.reorder-morph { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.reorder-ghost { animation: none; pointer-events: none; }
[data-reorder-id].is-morphing { visibility: hidden; }
/* 끄는 복사본의 층 — 화면에 고정, 화면 밖은 잘림(문서 크기·화면 폭에 영향 없음) */
.reorder-drag-layer { position: fixed; inset: 0; z-index: 40; overflow: hidden; pointer-events: none; }
/* 끄는 항목 — 손가락을 따라가는 살짝 뜬 복사본 */
.reorder-clone { pointer-events: none; animation: none; scale: 1.04; opacity: .97;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .55); transition: scale .14s ease-out; }
.reorder-clone.is-dropping { scale: 1; box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
html.is-reorder-drag, html.is-reorder-drag * { cursor: grabbing; }
/* 움직임 줄이기 — 흔들림 대신 점선 테두리, 큰 이동·크기 애니메이션 없음(ui/reorder.js) */
@media (prefers-reduced-motion: reduce) {
  .is-editing [data-reorder-id]:not([data-reorder-fixed]) { animation: none; outline: 1.5px dashed rgba(255, 255, 255, .4); outline-offset: 2px; }
  .reorder-clone { transition: none; }
}
/* 편집 끝내기 — 헤더 오른쪽의 작은 「완료」(트립 버튼 자리). 채움 없이 하단 탭과 같은 청록(--nav-bg) 외곽선, 밝은 글자.
   높이·터치 여유(위아래 5px)는 그대로 */
.reorder-done {
  position: relative; min-height: 34px; padding: 5px 14px; border-radius: var(--r-pill);
  border: 1.5px solid var(--nav-bg); background: transparent; color: var(--text-strong);
  font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.reorder-done::before { content: ''; position: absolute; inset: -5px 0; }
/* 배치 기본: 위젯 격자 + 되돌림 화살표 아이콘 26px · 선 1.8. 터치 영역은 44px. */
.reorder-reset {
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; width: 44px; height: 44px; padding: 0; border: none; background: none;
  color: var(--text-sub); cursor: pointer; flex-shrink: 0;
}
/* 키보드 사용자용 「… 순서 편집」 — 평소에는 보이지 않고, 포커스가 오면 헤더 아래 가운데에 나타남 */
.reorder-kbd {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.reorder-kbd:focus-visible {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 64px); translate: -50% 0; z-index: 45;
  width: auto; height: auto; margin: 0; padding: 8px 14px; overflow: visible; clip: auto;
  border: 1px solid var(--accent-forecast); border-radius: var(--r-pill); background: #141416;
  color: var(--text-strong); font-size: 14px; font-weight: 600;
}

/* ── 서프 트립(2026-10-09 개편 최종) — 헤더 알약 · 트립 시트. 색: 주 버튼 #17799b(흰 글자) · 포인트(켜짐) #7cd4f7(넓은 면에 안 씀)
   · 꺼짐 = 헤더 프로필 아이콘과 같은 색(상속) · 보조 면 #26262a · 글자 #d6d6da/#86868a/#5d5d62 · 선 #2e2e33/#232326 · 위험 #e2685a ── */
/* 알약 3단계: 꺼짐(트립 없음, 프로필 아이콘 색) → 보드만 켜짐(예정) → 테두리·배경·D-day까지 켜짐(진행 중) */
.trip-pill { position: relative; display: flex; align-items: center; gap: 6px; padding: 6px 13px 6px 9px; border: 1px solid #2e2e33; border-radius: 999px;
  background: transparent; color: inherit; cursor: pointer; white-space: nowrap; flex-shrink: 0; font-family: inherit; min-width: 0; }
.trip-pill::before { content: ''; position: absolute; inset: -7px 0; }   /* 보이는 크기는 그대로, 누르는 높이 44px 이상 */
.trip-pill__icon { display: inline-flex; color: inherit; }
.trip-pill--upcoming .trip-pill__icon,
.trip-pill--active .trip-pill__icon { color: #7cd4f7; filter: drop-shadow(0 0 4px rgba(124, 212, 247, .7)); }
.trip-pill__trip { font-family: var(--font-num); font-size: 13px; font-weight: 700; letter-spacing: 1px; color: inherit; }
.trip-pill__dest { font-size: 13.5px; font-weight: 700; color: inherit; max-width: 7em; overflow: hidden; text-overflow: ellipsis; }
.trip-pill__d { font-family: var(--font-num); font-size: 12.5px; font-weight: 800; color: #86868a; }
.trip-pill--active { border-color: rgba(124, 212, 247, .4); background: rgba(124, 212, 247, .06); }
.trip-pill--active .trip-pill__dest { color: #e8e8ea; }
.trip-pill--active .trip-pill__d { color: #7cd4f7; }
/* 종료 알림(종료일 다음 날 하루) — 테두리·배경은 평소처럼, 보드만 시안(빛 없음) · 목적지 밝게 · 「종료」 회색 · 우상단 시안 점(헤더 바탕색 2px 고리) */
.trip-pill--ended .trip-pill__icon { color: #7cd4f7; }
.trip-pill--ended .trip-pill__dest { color: #e8e8ea; }
.trip-pill--ended .trip-pill__d { font-family: inherit; font-weight: 700; color: #86868a; }
.trip-pill__dot { position: absolute; top: -3px; right: -1px; width: 8px; height: 8px; border-radius: 50%; background: #7cd4f7;
  box-shadow: 0 0 0 2px var(--chrome-bg); }
/* 시트 — 예전 하단 시트 그대로, 모양만: 바탕 #141416 · 위 테두리 #2a2a2e · 위 모서리 26px · 아래 안전 영역 포함 */
.sheet--trip { background: #141416; border: 1px solid #2a2a2e; border-bottom: none; border-radius: 26px 26px 0 0; }
.sheet--trip .sheet__body { padding: 0 0 env(safe-area-inset-bottom, 0px); }
.trip-head { display: flex; align-items: flex-start; gap: 14px; padding: 22px 20px 18px; border-bottom: 1px solid #232326; }
.trip-head--active { border-bottom: none; }   /* 진행 중은 진행 막대 아래에 구분선 */
.trip-head__tile { width: 46px; height: 46px; border-radius: 14px; background: #26262a; color: #7cd4f7; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; }
.trip-head__tile.is-none { color: #b5b5ba; }
.trip-head__tile.is-active { background: #14262d; }
.trip-head__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.trip-head__label { font-family: var(--font-num); font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px; color: #8a8a90; }
.trip-head--active .trip-head__label { color: #7cd4f7; }
.trip-head--flush { border-bottom: none; }   /* 바로 아래 진행 막대가 구분선을 가짐 */
.trip-head--lit .trip-head__label { color: #7cd4f7; }
.trip-head__title { font-size: 20px; font-weight: 800; line-height: 1.3; color: #f2f2f3; }
.trip-head__phrase { display: inline-block; max-width: 100%; vertical-align: top; word-break: keep-all; overflow-wrap: anywhere; }
.trip-head__sub { font-size: 13.5px; line-height: 1.5; color: #86868a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-right: -36px; }   /* 셋째 줄은 닫기 × 아래 빈칸(× 22px + 간격 14px)까지 써서 360px 폭에서도 한 줄 */
.trip-head__close { position: relative; flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  padding: 0; border: none; background: none; cursor: pointer; }
.trip-head__close::before { content: ''; position: absolute; inset: -11px; }   /* 누르는 영역 44px */
.trip-progress { padding: 0 20px 18px; border-bottom: 1px solid #232326; }
.trip-progress__cells { display: grid; gap: 4px; }
.trip-progress__cells > span { height: 5px; border-radius: 3px; background: #2a2a2e; }
.trip-progress__cells > span.is-on { background: #7cd4f7; }
.trip-progress__bar { height: 5px; border-radius: 3px; background: #2a2a2e; overflow: hidden; }
.trip-progress__fill { height: 100%; border-radius: 3px; background: #7cd4f7; }
.trip-progress--done .trip-progress__cells > span, .trip-progress--done .trip-progress__fill { background: #3a3a3f; }   /* 끝난 일정 */
.trip-progress__cap { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: #6b6b70; }
.trip-form { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 0; }
.trip-form__label { font-size: 13.5px; color: #86868a; margin-bottom: 8px; }
.trip-form > .trip-form__label { margin-bottom: -4px; }
.trip-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.trip-chip { padding: 9px 15px; border-radius: 999px; border: 1.5px solid #2e2e33; background: none; color: #d6d6da;
  font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer; }
.trip-chip.is-on { color: #7cd4f7; font-weight: 700; border-color: rgba(124, 212, 247, .5); background: rgba(124, 212, 247, .08); }
.trip-input, .trip-dates .date-picker__button { width: 100%; box-sizing: border-box; padding: 13px 16px; border: 1.5px solid #2e2e33; border-radius: 14px;
  background: none; font-size: 15px; font-family: inherit; color: #d6d6da; outline: none; color-scheme: dark; }
.trip-input::placeholder { color: #5d5d62; }
.trip-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trip-dates .date-picker__button.trip-field--empty { color: #5d5d62; }
.trip-actions { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 22px; }
.trip-actions__pair { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.trip-btn { height: 54px; border: none; border-radius: 16px; font-family: inherit; cursor: pointer; }
.trip-btn--primary { width: 100%; background: #17799b; color: #fff; font-size: 16px; font-weight: 800; }
.trip-btn--primary:disabled { background: #26262a; color: #5d5d62; cursor: default; }
.trip-btn--secondary { background: #26262a; color: #d6d6da; font-size: 15px; font-weight: 700; }
.trip-actions__pair--even { grid-template-columns: 1fr 1fr; }
/* 이어가기 — 시작일은 읽기 전용, 종료일만 시안 테두리 */
.trip-static { box-sizing: border-box; padding: 13px 16px; border: 1.5px solid #2e2e33; border-radius: 14px; font-size: 15px; color: #d6d6da; }
.trip-form__label--lit { color: #7cd4f7; }
.trip-dates .date-picker__button.trip-field--lit { border-color: #7cd4f7; background: rgba(124, 212, 247, .06); }
.trip-extend { display: flex; flex-direction: column; gap: 4px; }
.trip-extend__msg { font-size: 15px; font-weight: 700; color: #7cd4f7; }
.trip-extend__sub { font-size: 13.5px; line-height: 1.5; color: #86868a; }
/* 종료 알림 시트 본문 */
.trip-notice { display: flex; flex-direction: column; gap: 18px; padding: 20px 20px 22px; }
.trip-notice__text { font-size: 15px; line-height: 1.6; color: #d6d6da; }
.trip-notice__hint { text-align: center; font-size: 13px; color: #6b6b70; }
/* 「오늘로 종료」 확인 창 */
.modal.trip-confirm { background: #1c1c1f; border: 1px solid #2e2e33; border-radius: 22px; padding: 28px 24px 24px; gap: 12px; }
.trip-confirm__title { font-size: 20px; font-weight: 800; line-height: 1.3; color: #f2f2f3; }
.trip-confirm__text { font-size: 14.5px; line-height: 1.6; color: #86868a; }
.trip-confirm .trip-actions__pair { margin-top: 12px; }
.trip-del { align-self: center; padding: 6px 0; border: none; background: none; font-family: inherit; font-size: 13.5px; cursor: pointer; }
.trip-del__go { color: #e2685a; font-weight: 600; }
.trip-del__note { color: #6b6b70; font-weight: 500; }
