/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.26_@types+node@22.20.4_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.26_@types+node@22.20.4_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* userend 셸: 모바일 우선, 하단 GNB 고정 */
* { box-sizing: border-box; }
/* 다낭집사 강조색(공통 부품 packages/app-core 가 이 변수를 씀 — MAX 는 기본값 파랑) */
:root { --ue-accent: #1f8a6c; --ue-link: #4fc9a2; --ue-accent-text: #a6e8d3; --ue-accent-bg: #16352d; }
/* 글자 배율(lib/textsize.ts): 기본 '크게'. 프로필 > 글자 크기에서 바꾸면 head 스크립트·설정 화면이 덮어쓴다 */
:root { --ue-fs: 1.15; }
html, body { margin: 0; background: #0f1a17; color: #e7ecf4; font-family: system-ui, -apple-system, sans-serif; }
body { font-size: calc(16px * var(--ue-fs)); }
/* 크기를 따로 주지 않은 버튼·입력칸도 배율을 따르게 */
button, input, select, textarea { font-size: calc(13.333px * var(--ue-fs)); }
a { -webkit-tap-highlight-color: transparent; }
/* 모바일 오버스크롤(안드로이드 크롬 스트레치 · iOS 바운스) 끔 → 고정 하단 GNB 가 늘었다 줄지 않게.
   (브라우저 탭의 당겨서 새로고침도 함께 꺼짐) */
html, body { overscroll-behavior-y: none; }
/* 입력칸(특히 date/select)의 기본 최소폭이 그리드·플렉스 칸을 밀어내지 않게 */
input, select, textarea { min-width: 0; max-width: 100%; }

.ue-public { max-width: 420px; margin: 0 auto; padding: calc(28px + env(safe-area-inset-top)) 18px 28px; }
/* 앱 틀(로그인 후): 화면에 고정된 세로 3단 — 상단바 / 본문(이 안에서만 스크롤) / 하단 GNB.
   문서 전체가 스크롤되지 않으므로 iOS 가 키보드를 띄울 때 페이지 전체를 밀어 올리지 않는다.
   키보드가 열리면 AppShell 이 이 틀을 '보이는 영역'(visualViewport) 크기·위치에 맞추고 GNB 를 숨긴다(html.ue-kb). */
.ue-app {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column;
}
.ue-scroll {
  flex: 1 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.ue-main { max-width: 480px; margin: 0 auto; padding: 12px 18px 24px; }
/* 대화방처럼 본문 바닥에 입력창을 붙이는 화면: 아래 여백 없이 본문 높이를 꽉 채움 */
.ue-main.flush { padding-bottom: 0; min-height: 100%; display: flex; flex-direction: column; }

/* 상단바: 좌 제목 / 우 알림·프로필 */
.ue-topbar {
  flex: none; position: relative; z-index: 30;
  display: flex; align-items: center; gap: 4px;
  padding: calc(8px + env(safe-area-inset-top)) 10px 8px 18px;
  background: #0f1a17;
}
.ue-top-title { flex: 1 1; font-size: calc(19px * var(--ue-fs)); font-weight: 680; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ue-top-btn {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 0; background: none; color: #c5cdda; text-decoration: none; cursor: pointer; border-radius: 10px;
}
.ue-top-btn:first-child { margin-left: -10px; }

/* 통화 구분 색 */
.cur { display: inline-block; font-size: calc(11px * var(--ue-fs)); font-weight: 700; padding: 1px 6px; border-radius: 5px; font-family: ui-monospace, Menlo, monospace; }
.cur-USD { color: #7fb2ff; background: rgba(90, 150, 255, 0.14); }
.cur-HKD { color: #f2b45a; background: rgba(240, 170, 70, 0.14); }
.cur-KRW { color: #c49bff; background: rgba(170, 120, 255, 0.14); }
.cur-VND { color: #6fd6b5; background: rgba(80, 200, 160, 0.14); }

.ue-bottomnav {
  flex: none; position: relative; z-index: 30;
  display: flex; justify-content: center;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  /* 본문과 같은 색·경계선 없이 불투명하게: 스크롤된 본문이 GNB 아래로 비치지 않고, iOS 하단 틈과도 이어져 보임 */
  background: #0f1a17;
}
/* iOS 홈 화면 앱(black-translucent 상태바): 레이아웃 뷰포트가 실제 화면보다 상단 안전영역만큼 짧게 잡혀
   (실측 iPhone 13 Pro·iOS 18.7: 100lvh 844 / 100dvh 797) GNB 아래에 공백이 생긴다 → 그 차이만큼 내려 화면 바닥에 붙인다.
   CSS 값이라 뷰포트가 바뀌면 즉시 재계산(JS 측정의 일시값 문제 없음). 차이가 없는 기기는 0.
   브라우저 모드에선 lvh−dvh 가 툴바 높이이므로 standalone 에서만 적용. dvh/lvh 미지원 브라우저는 선언 무시 → bottom:0 */
/* ↑ 이 보정은 iOS 홈 화면 앱에서만(html.ios-standalone — 머리 스크립트가 navigator.standalone 으로 표시).
   안드로이드는 설치 앱이어도 상단에 크롬 표시줄(주소)이 나오는 경우가 있는데, 그때 lvh>dvh 라 이 값을 쓰면
   GNB 가 화면 아래로 밀려 사라진다(2026-10-28 발견). */
html.ios-standalone .ue-app { bottom: calc(100dvh - 100lvh); }
/* 키보드가 열려 있는 동안: GNB·새 버전 안내 숨김 (틀 크기는 AppShell 이 보이는 영역에 맞춤) */
html.ue-kb .ue-bottomnav, html.ue-kb .ue-update { display: none; }

.ue-tab {
  flex: 1 1; max-width: 96px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 0; color: #727d90; text-decoration: none; font-size: calc(11px * var(--ue-fs));
}
.ue-tab.active { color: #4fc9a2; }
.ue-tab-icon { position: relative; display: flex; }
.ue-badge {
  position: absolute; top: -4px; right: -10px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: #e5534b; color: #fff; font-size: calc(10px * var(--ue-fs)); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.ue-page-title { font-size: calc(20px * var(--ue-fs)); font-weight: 640; margin: 0; }

/* 새 버전 안내 (하단 GNB 위) */
.ue-update {
  position: fixed; z-index: 35; left: 50%; transform: translateX(-50%);
  bottom: calc(76px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; white-space: nowrap;
  padding: 10px 12px 10px 16px; border-radius: 12px;
  background: #16352d; border: 1px solid #1f8a6c; color: #e7ecf4; font-size: calc(13px * var(--ue-fs));
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}
html.ios-standalone .ue-update { bottom: calc(76px + env(safe-area-inset-bottom) + 100dvh - 100lvh); }
.ue-update button { border: 0; border-radius: 8px; padding: 7px 12px; background: #1f8a6c; color: #fff; font-weight: 600; cursor: pointer; }

/* 대화방 입력창: 본문(스크롤 영역) 바닥에 붙음 — 키보드가 열리면 키보드 바로 위 */
.ue-chat-input {
  position: -webkit-sticky;
  position: sticky; bottom: 0; z-index: 5;
  display: flex; align-items: flex-end; gap: 8px; padding: 8px 0 10px; margin-top: auto; background: #0f1a17;
}

/* ── 터치 피드백: 누르는 순간 반응(앱이 입력을 받았다는 표시) ── */
a, button, [role="button"], label { -webkit-tap-highlight-color: transparent; }
a, button { transition: opacity 0.12s, transform 0.12s, background-color 0.12s; }
a:active, button:not(:disabled):active { opacity: 0.55; }
.ue-tab:active, .ue-top-btn:active { transform: scale(0.9); }
/* 화면 이동을 요청한 링크: 새 화면이 뜰 때까지 눌린 상태 유지 */
.ue-pressed { opacity: 0.55; }
.ue-tab.ue-pressed { opacity: 1; color: #4fc9a2; transform: scale(0.94); }
/* 화면 이동 중 표시: 상단바 아래 가는 진행 막대 */
.ue-progress {
  position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; overflow: hidden; pointer-events: none;
}
.ue-progress::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%;
  background: linear-gradient(90deg, transparent, #4fc9a2, transparent);
  animation: ue-progress 0.9s ease-in-out infinite;
}
@keyframes ue-progress { to { left: 100%; } }

/* ── 텍스트 선택 막기: 길게 누르거나 탭할 때 글자가 선택되며 '구글 검색' 등이 뜨지 않게.
   입력칸은 그대로 선택·편집 가능 ── */
body { -webkit-user-select: none; -moz-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable="true"] { -webkit-user-select: text; -moz-user-select: text; user-select: text; -webkit-touch-callout: default; }

/* 앱 내 배너(앱 사용 중 알림): 상단바 아래로 내려옴 */
.ue-banner {
  position: absolute; top: calc(100% + 6px); left: 10px; right: 10px; max-width: 460px; margin: 0 auto; z-index: 40;
  padding: 10px 14px; border-radius: 14px; background: rgba(36, 43, 58, 0.97); border: 1px solid #3a4458;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45); cursor: pointer;
  animation: ue-banner-in 0.22s ease-out;
}
.ue-banner-title { font-size: calc(13px * var(--ue-fs)); font-weight: 700; color: #a6e8d3; }
.ue-banner-body { font-size: calc(14px * var(--ue-fs)); color: #e7ecf4; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@keyframes ue-banner-in { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* 알림 꺼짐 안내 바: 상단바 바로 아래(본문이 그만큼 줄어듦). 누르면 알림 설정으로. 키보드가 열리면 숨김 */
.ue-pushbar {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 18px;
  background: #2a2412; color: #f2d48a; border-bottom: 1px solid #4a3d1a; text-decoration: none;
  font-size: calc(13px * var(--ue-fs)); font-weight: 600;
}
html.ue-kb .ue-pushbar { display: none; }

