/* 화면 기준(docs/ui-standard.md)의 뿌리와, 모든 화면에 뜨는 공통 영역(혜택 띠 · 머리줄 · 내 메뉴)에 얹는 한 겹.
   11/21 대표 "전부 한 뿌리에서 나온 것같이". 값은 아래 :root 한 곳에만 적고, 새로 짜는 화면은 전부 이 변수만 쓴다.
   이 파일은 html.ui2 일 때만 실린다(lib/ui2.lib.php). 옛 마크업·옛 CSS 는 건드리지 않았으므로 스위치를 끄면 예전 모양 그대로다.
   규칙: 선택자는 전부 html.ui2 로 시작한다. 모양만 바꾼다(자리·크기를 크게 옮기지 않는다: 스크립트가 높이를 재는 곳이 있다). */

:root {
  /* 글자색 4단계 */
  --na-ink: #191f28; --na-ink2: #4e5968; --na-ink3: #6b7684; --na-ink4: #8b95a1; --na-ink5: #b0b8c1;
  /* 바탕 · 선 */
  --na-bg: #fff; --na-bg2: #f2f4f6; --na-bg3: #f7f8fa; --na-line: #eef0f3; --na-line2: #e5e8eb;
  /* 강조색은 하나. 빨강은 되돌릴 수 없는 일과 새 알림에만 */
  --na-brand: #2563eb; --na-brand-d: #1d54d4; --na-brand-soft: #eaf1ff;
  --na-danger: #e5372b;
  /* 모서리 넷 */
  --na-r-sheet: 20px; --na-r-btn: 14px; --na-r-field: 12px; --na-r-sm: 10px;
  /* 글자 크기(px/줄높이): 28/38 26/36 20/28 17/25 16/24 15/23 14/21 13/20 */
  --na-font: 'Pretendard', 'pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

/* ───────── 1. 혜택 띠: 꾸밈(노란 원 아이콘 · 파란 알약 · 노란 글자 · 테두리 단추)을 빼고 글자 한 줄 ───────── */
html.ui2 #ev-strip { background: var(--na-ink); font-family: var(--na-font); letter-spacing: -.2px; }
html.ui2 #ev-strip .ev-strip-link { min-height: 40px; padding: 6px 44px 6px 16px; gap: 10px; font-size: 14px; line-height: 21px; }
html.ui2 #ev-strip .ev-strip-ic { display: none; }
html.ui2 #ev-strip .ev-strip-tag { padding: 0; border-radius: 0; background: none; font-size: 13px; font-weight: 600; line-height: 20px; color: var(--na-ink4); }
html.ui2 #ev-strip .ev-strip-tag::after { content: ""; display: inline-block; width: 1px; height: 10px; margin-left: 10px; background: #4e5968; }
html.ui2 #ev-strip .ev-strip-txt { opacity: 1; font-weight: 500; color: #e5e8eb; }
html.ui2 #ev-strip .ev-strip-txt b { font-weight: 700; color: #fff; }
html.ui2 #ev-strip .ev-strip-btn { padding: 0; border: 0; border-radius: 0; font-size: 13px; font-weight: 600; line-height: 20px; color: var(--na-ink4); }
html.ui2 #ev-strip .ev-strip-btn::after { content: " ›"; }
html.ui2 #ev-strip .ev-strip-link:hover .ev-strip-btn { background: none; color: #fff; }
html.ui2 #ev-strip .ev-strip-x { width: 40px; height: 40px; font-size: 20px; font-weight: 300; color: var(--na-ink4); opacity: 1; }
html.ui2 #ev-strip .ev-strip-x:hover { color: #fff; }
@media (max-width: 768px) {
  html.ui2 #ev-strip .ev-strip-link { min-height: 38px; padding: 6px 40px 6px 20px; justify-content: flex-start; font-size: 13.5px; }
}

/* ───────── 2. 머리줄: 그림자·그라데이션·장식 원을 빼고 같은 높이·같은 굵기 ───────── */
html.ui2 .new_header { font-family: var(--na-font); }
/* 제보하기 단추: 알약 + 그림자 → 채운 단추 하나(모서리 12) */
html.ui2 #hdrPick .pk-btn { height: 40px; padding: 0 16px; border-radius: var(--na-r-field); background: var(--na-brand); box-shadow: none; font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
html.ui2 #hdrPick .pk-btn:hover { background: var(--na-brand-d); box-shadow: none; transform: none; }
/* 포인트: 파란 원 'P' 장식을 빼고 숫자만 */
html.ui2 .h-point { padding: 0 12px; height: 40px; border: 0; border-radius: var(--na-r-sm); background: none; box-shadow: none; gap: 0; }
html.ui2 .h-point::before { display: none; }
html.ui2 .h-point:hover { background: var(--na-bg2); border: 0; box-shadow: none; transform: none; }
html.ui2 .h-point-icon { display: none; }
html.ui2 .h-point-val { font-size: 15px; font-weight: 600; letter-spacing: -.2px; color: var(--na-ink); }
html.ui2 .h-point-val small { font-size: 13px; font-weight: 500; color: var(--na-ink4); }
/* 알림 종 · 메뉴 */
html.ui2 .notice_btn_wr { border-radius: var(--na-r-sm); }
html.ui2 .notice_btn_wr:hover { background: var(--na-bg2); }
html.ui2 .h-avatar-wrap { border-radius: var(--na-r-sm); box-shadow: none; }
html.ui2 .h-avatar-wrap:hover { background: var(--na-bg2); box-shadow: none; }
html.ui2 .h-menu-word { font-size: 14px; font-weight: 500; color: var(--na-ink2); }
html.ui2 .h-avatar { background: var(--na-ink) !important; background-image: none !important; box-shadow: none !important; color: #fff; font-weight: 700; }

/* ───────── 3. 내 메뉴 ───────── */
html.ui2 .pnl { font-family: var(--na-font); color: var(--na-ink); }
/* 위 줄의 세 단추: MCP 만 짙은 그라데이션·빛이던 것을 셋 다 같은 모양으로 */
html.ui2 .pnl .cm-sw, html.ui2 .pnl .p-ai-pill, html.ui2 .pnl .p-sns-pill {
  height: 32px; padding: 0 12px; gap: 6px; border: 0; border-radius: var(--na-r-sm); background: var(--na-bg2) !important; box-shadow: none !important;
  font-size: 13px; font-weight: 600; line-height: 20px; letter-spacing: -.2px; color: var(--na-ink2) !important; }
html.ui2 .pnl .p-ai-pill::before, html.ui2 .pnl .p-ai-pill::after { display: none !important; }
html.ui2 .pnl .p-ai-pill span { color: inherit !important; background: none !important; -webkit-text-fill-color: currentColor !important; }
html.ui2 .pnl .p-ai-pill svg, html.ui2 .pnl .p-sns-pill svg { width: 15px; height: 15px; }
html.ui2 .pnl .p-ai-pill svg *, html.ui2 .pnl .p-sns-pill svg { stroke: var(--na-ink3) !important; color: var(--na-ink3) !important; }
html.ui2 .pnl .cm-sw:hover, html.ui2 .pnl .p-ai-pill:hover, html.ui2 .pnl .p-sns-pill:hover { background: var(--na-line2) !important; }
html.ui2 .p-x button { border-radius: var(--na-r-sm); background: var(--na-bg2); }
/* 지갑 */
html.ui2 .p-wallet { border: 0; border-radius: 16px; background: var(--na-bg3); box-shadow: none; }
html.ui2 .p-w-label { font-size: 13px; font-weight: 500; color: var(--na-ink4); }
html.ui2 .p-w-val { font-size: 26px; font-weight: 700; color: var(--na-ink); }
html.ui2 .p-w-val small, html.ui2 .p-w-mval small { font-weight: 500; color: var(--na-ink4); }
html.ui2 .p-w-mval { font-size: 17px; font-weight: 700; color: var(--na-ink); }
html.ui2 .p-w-charge { height: 32px; padding: 0 12px; border-radius: var(--na-r-sm); background: var(--na-brand); color: #fff !important; font-size: 13px; font-weight: 600; line-height: 32px; }
html.ui2 .p-w-charge:hover { background: var(--na-brand-d); color: #fff !important; }
/* 바로가기 셋 */
html.ui2 .p-link { border-radius: var(--na-r-field); background: var(--na-bg2); font-size: 14px; font-weight: 600; color: var(--na-ink2); }
html.ui2 .p-link:hover { background: var(--na-line2); color: var(--na-ink); }
html.ui2 .p-link svg { color: var(--na-ink3); }
html.ui2 .p-link-attend .p-dot, html.ui2 .p-link-dot { background: var(--na-danger); box-shadow: none; }
/* 추천 캐시: 금색 그라데이션 판·동전 그림 → 다른 줄과 같은 흰 줄, 오른쪽에 작은 단추 */
html.ui2 .p-cashcard, html.ui2 .p-cashcard:hover { background: var(--na-bg) !important; border-top: 1px solid var(--na-line); border-bottom: 0; box-shadow: none; }
/* 글자 크기는 숫자 카드(is-num)에서만 바꾼다. 안내 카드는 장면이 높이 66px 안에서 돌아가므로 크기를 건드리면 아랫줄이 잘린다(색만 바꾼다) */
html.ui2 .p-cashcard .cnew-l { font-weight: 500; color: var(--na-ink4); }
html.ui2 .p-cashcard .cnew-v { font-weight: 700; color: var(--na-ink); }
html.ui2 .p-cashcard .cnew-v small, html.ui2 .p-cashcard .cnew-v span { font-weight: 500; color: var(--na-ink4); }
html.ui2 .p-cashcard .cnew-h { color: var(--na-ink4); }
html.ui2 .p-cashcard.is-num .cnew-l { font-size: 13px; }
html.ui2 .p-cashcard.is-num .cnew-v { font-size: 22px; letter-spacing: -.5px; }
html.ui2 .p-cashcard.is-num .cnew-h { font-size: 13px; }
html.ui2 .p-cashcard .cnew-coin { display: none !important; }
html.ui2 .p-cashcard .cnew-btn { height: 32px; padding: 0 12px; border-radius: var(--na-r-sm); background: var(--na-bg2); box-shadow: none; font-size: 13px; font-weight: 600; line-height: 32px; color: var(--na-ink2); white-space: nowrap; }
html.ui2 .p-cashcard:hover .cnew-btn { background: var(--na-line2); color: var(--na-ink); }
/* 이용 가이드 띠 */
html.ui2 .p-guide { margin: 0; padding: 16px 20px; border-top: 1px solid var(--na-line); background: var(--na-bg); font-size: 15px; }
html.ui2 .p-guide b { font-weight: 600; color: var(--na-ink); }
html.ui2 .p-guide > span:not(.p-guide-ic):not(.p-item-r) { font-size: 13px; color: var(--na-ink4); }
html.ui2 .p-guide-ic { width: 24px; height: 24px; border-radius: 7px; background: var(--na-ink); }
html.ui2 .p-guide .p-item-r, html.ui2 .p-item .p-item-r { color: var(--na-ink5); }
/* 서비스 목록 */
html.ui2 .p-sec-t { font-size: 13px; font-weight: 600; color: var(--na-ink4); letter-spacing: 0; }
html.ui2 .p-svc-label { font-size: 16px; font-weight: 600; letter-spacing: -.2px; color: var(--na-ink); }
html.ui2 .p-svc-sub { font-size: 13px; color: var(--na-ink4); }
html.ui2 .p-new { padding: 0; border-radius: 0; background: none !important; box-shadow: none; font-size: 11px; font-weight: 700; letter-spacing: .2px; color: var(--na-brand) !important; }
/* 제보하기 줄: 그라데이션·그림자 판 → 기준 파랑으로 채운 한 줄 */
html.ui2 .p-item.p-cta { border-radius: var(--na-r-btn); background: var(--na-brand) !important; box-shadow: none !important; }
html.ui2 .p-item.p-cta:hover { background: var(--na-brand-d) !important; }
html.ui2 .p-item.p-cta .p-svc-label, html.ui2 .p-item.p-cta .p-svc-sub, html.ui2 .p-item.p-cta .p-item-r { color: #fff; }
html.ui2 .p-item.p-cta .p-svc-sub { opacity: .8; }
html.ui2 .p-item.p-cta .p-svc-icon { background: rgba(255,255,255,.16) !important; box-shadow: none !important; }
html.ui2 .p-svc-icon.ai-bg { background: var(--na-bg2) !important; box-shadow: none !important; }
html.ui2 .p-svc-icon.ai-bg .p-q-orb { filter: grayscale(1) brightness(.55); box-shadow: none !important; }
html.ui2 .p-svc-icon { border-radius: var(--na-r-field); box-shadow: none; }
/* 지갑 바꾸기(회사 직원): 지갑 판 맨 위 한 줄 */
html.ui2 .p-w-who { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 0; font-size: 13px; font-weight: 500; line-height: 20px; color: var(--na-ink4); }
html.ui2 .p-w-who .cm-sw { margin: 0; padding: 0; background: none !important; border-radius: 0; height: auto; }
html.ui2 .p-w-who .cm-sw > summary { max-width: 200px; height: 30px; padding: 0 10px; border-radius: var(--na-r-sm); background: var(--na-bg) !important; box-shadow: 0 0 0 1px var(--na-line2); font-size: 13px; font-weight: 600; color: var(--na-ink) !important; }
html.ui2 .p-w-who .cm-sw.on > summary { color: var(--na-brand) !important; box-shadow: 0 0 0 1px var(--na-brand); }
/* 비회원 머리줄: 로그인(테두리 알약 + 그림자) · 무료로 시작하기(그라데이션 알약 + 빛)를 같은 높이·같은 모서리의 단추 둘로 */
html.ui2 .member_login_new { gap: 8px; }
html.ui2 .login-outline-wrap { padding: 0; border: 0; border-radius: var(--na-r-field); background: none; box-shadow: none; }
html.ui2 .login-outline-wrap::before, html.ui2 .login-outline-wrap::after { display: none; }
html.ui2 .login-outline-inner { height: 40px; padding: 0 14px; gap: 6px; border: 0; border-radius: var(--na-r-field); background: var(--na-bg2); box-shadow: none; font-family: var(--na-font); font-size: 15px; font-weight: 600; letter-spacing: -.2px; color: var(--na-ink2); }
html.ui2 .login-outline-wrap:hover .login-outline-inner { background: var(--na-line2); color: var(--na-ink); }
html.ui2 .login-outline-inner svg { width: 16px; height: 16px; }
html.ui2 .v1-wrap { border-radius: var(--na-r-field); box-shadow: none; filter: none; }
html.ui2 .v1-glow { display: none; }
html.ui2 .v1-btn { height: 40px; padding: 0 16px; border: 0; border-radius: var(--na-r-field); background: var(--na-brand) !important; background-image: none !important; box-shadow: none !important; font-family: var(--na-font); font-size: 15px; font-weight: 600; letter-spacing: -.2px; color: #fff; transform: none !important; }
html.ui2 .v1-btn::before, html.ui2 .v1-btn::after { display: none !important; }
html.ui2 .v1-wrap:hover .v1-btn, html.ui2 .v1-btn:hover { background: var(--na-brand-d) !important; }
/* 추천 캐시(숫자 카드): 설명이 한 줄로 버티며 오른쪽 단추를 화면 밖으로 밀어냈다(폭 360 폰, 11/21). 글 칸은 줄어들 수 있게, 설명은 두 줄로 */
html.ui2 .p-cashcard .cnew-inner { min-width: 0; }
html.ui2 .p-cashcard .cnew-txt { min-width: 0; flex: 1 1 0; }
html.ui2 .p-cashcard.is-num .cnew-h { white-space: normal; word-break: keep-all; line-height: 19px; }
html.ui2 .p-cashcard .cnew-side { flex: none; }
/* 맨 아래 묶음 셋(고객 지원 · 알아보기 · 뉴스옥션): 글자 링크 아홉 개를 흩어 놓던 것을 목록으로. 서비스 줄보다 작고 가볍게(아이콘 칸 없음, 줄 높이 48) */
html.ui2 .p-more { padding: 4px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
html.ui2 .p-more-g { padding: 8px 0 4px; }
/* 11/22 대표 폰 캡처: 묶음 이름·줄의 왼쪽 선과 화살표 자리가 위쪽 서비스·혜택 줄(이름 16, 줄 30)과 4~10px 어긋나 있었다. 위와 같은 숫자를 쓴다 */
html.ui2 .p-mi { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 36px; font-size: 14px; font-weight: 500; line-height: 21px; letter-spacing: -.2px; color: var(--na-ink2) !important; text-decoration: none !important; transition: background .1s; }
html.ui2 .p-mi:hover, html.ui2 .p-mi:active { background: var(--na-bg3); color: var(--na-ink) !important; }
html.ui2 .p-mi span { flex: 1; min-width: 0; }
html.ui2 .p-mi em { flex: none; font-style: normal; font-size: 13px; font-weight: 600; color: var(--na-ink4); }
html.ui2 .p-mi i { flex: none; font-style: normal; font-size: 15px; line-height: 21px; color: var(--na-ink5); }
html.ui2 .p-secst.on { color: var(--na-brand); }
/* 내려 읽을 때 닫기 단추가 줄의 오른쪽 값(예: 이벤트의 '11월 이달의 혜택')을 덮고 있었다. 떠 있는 단추 대신 흰 머리줄로 */
html.ui2 .p-x.is-scrolled { background: #fff; box-shadow: 0 1px 0 var(--na-line); padding-bottom: 8px; margin-bottom: -8px; }
html.ui2 .p-x.is-scrolled button { box-shadow: none; background: var(--na-bg2); }

/* 서비스 줄(11/22 대표와 정함): 제보하기 맨 위·AI 모드 바로 아래, 강조색은 제보하기 파랑 하나. 보라색 아이콘·NEW 딱지·준비중 딱지는 뺀다.
   순서는 여기서만 바꾼다(옛 모양은 head.php 의 원래 순서 그대로) */
html.ui2 .pnl .p-svc { display: flex; flex-direction: column; }
html.ui2 .pnl .p-svc > .p-sec-t { order: 0; }
html.ui2 .pnl .p-svc > .p-cta { order: 1; }
html.ui2 .pnl .p-svc > .p-item-ai { order: 2; }
html.ui2 .pnl .p-svc > .p-i-pkg { order: 3; }
html.ui2 .pnl .p-svc > .p-i-mil { order: 4; }
html.ui2 .pnl .p-svc > .p-i-es, html.ui2 .pnl .p-svc > style { order: 5; }
html.ui2 .pnl .p-svc > .p-soon { order: 6; }
html.ui2 .pnl .p-svc > .p-soonmsg { order: 7; }
html.ui2 .pnl .p-item .p-new, html.ui2 .pnl .p-item .p-soon-chip { display: none !important; }
html.ui2 .pnl .p-item.p-item-ai .p-svc-icon.ai-bg { background: var(--na-bg2) !important; background-image: none !important; box-shadow: none !important; border: 0 !important; }
html.ui2 .pnl .p-item.p-item-ai .p-svc-icon.ai-bg::before, html.ui2 .pnl .p-item.p-item-ai .p-svc-icon.ai-bg::after, html.ui2 .pnl .p-item-ai .p-q-orb { display: none !important; }
html.ui2 .pnl .p-item.p-item-ai .p-q-spark { color: var(--na-ink3) !important; fill: currentColor !important; animation: none !important; }
html.ui2 .pnl .p-item.p-item-ai .p-q-spark * { animation: none !important; }
html.ui2 .pnl .p-svc-icon.es-ic { background: var(--na-bg2) !important; box-shadow: none !important; }
html.ui2 .pnl .p-svc-icon.es-ic svg { filter: grayscale(1); }
html.ui2 .pnl .p-item.p-soon { background: none !important; }
html.ui2 .pnl .p-item.p-soon .p-svc-label { color: var(--na-ink4) !important; }
/* 아래 목록 줄의 왼쪽·오른쪽 여백은 위쪽 서비스 줄(.p-item)과 화면 폭마다 같게: 기본 36, 폰 30, 작은 폰 28 */
html.ui2 .p-more .p-sec-t { padding-left: 20px; padding-right: 20px; }
@media (max-width: 500px) { html.ui2 .p-mi { padding: 0 30px; } html.ui2 .p-more .p-sec-t { padding-left: 16px; padding-right: 16px; } }
@media (max-width: 360px) { html.ui2 .p-mi { padding: 0 28px; } }
