/* PC 셸 — 사이드바 + 메인영역 공유 (chat01 / exploreP / savedP). design-pc.md 토큰. */
/* PC 기본 서체 = Wanted Sans(소유자 확정 2026-07-31, tripDetail·chat02 비교 테스트 후 "pc는 얘로").
   자체 호스팅(/Form/fonts/wanted-sans/, 가변 폰트 92 서브셋 분할) — CDN 의존 금지, 자산 커밋 필수(Pretendard 누락 사고 전례). Pretendard 는 폴백. */
@import url('/Form/fonts/wanted-sans/WantedSansVariable.min.css');
:root {
	/* flat Bezier(Channel Talk) 중립 워크스페이스 — 그레이 램프 + 퍼플 액센트 (design-pc.md §4). 옛 쿨/Stripe 팔레트에서 이관 */
	--pc-sidebar-w:62px; --accent:#533afd; --accent-strong:#4434d4; --tint:rgba(83,58,253,.10);
	--ink:#000000; --text:rgba(0,0,0,.85); --sub:rgba(0,0,0,.55); --muted:#767676; /* MT식 순수 뉴트럴 위계 — tripsP와 통일(소유자 B안, 2026-07-18) */
	--line:#efeff0; --line-soft:#f3f3f4; --surface:#f7f7f8; --surface2:#efeff0; --bg:#ffffff;
	/* 컨트롤(버튼·입력) 테두리 — 구분선(--line)보다 진하게. design-pc.md §5(2026-08-02).
	   --line 은 divider 헤어라인이라 흰 버튼에 쓰면 대비 1.15:1 로 사실상 안 보인다 */
	--ctrl-line:#d8d8dd;
	/* 좌측 본문 거터 — trips·savedP·guides 3표면 공통(옛 125px 하드코딩을 변수로 통합, 2026-07-28).
	   사이드바(62px) + 이 값 = 본문 시작 x.
	   고정 px(54·68)을 버리고 화면 폭 비율로 잡는다(소유자 2026-07-28 "비율로 판단해서 더 띄우자").
	   고정값은 큰 모니터에서 본문만 넓어지고 여백은 그대로라 화면이 꽉 차 보였다 — 여백도 같이 자라야 한다.
	   7.2vw → 1280:92 / 1440:104 / 1920:138px(레일 62px 다음 간격). MT는 같은 자리에 66~70px — 우리가 더 넉넉하게 간다(소유자 2026-07-28 "좀 더 떨어뜨리자").
	   값이 5곳에 흩어져 있어 한쪽만 바뀌면 표면끼리 어긋났었다 → 반드시 이 변수만 고칠 것(guides는 폴백값도 같이). */
	--pc-gutter:clamp(64px, 7.2vw, 152px);
	/* 페이지 최상단 여백 — 제목 윗공간. 26~28은 헤더에 붙어 있었다(MT 64px 실측).
	   6vw → 1280:77 / 1440:86 / 1920:96(상한). 좌거터와 같은 비율 계열이라 넓은 화면에서 같이 자란다.
	   '페이지가 시작되는 자리'에만 쓴다(.pcBody 처럼 헤더 아래 간격은 26 유지). */
	--pc-top:clamp(48px, 6vw, 96px);
	/* flat depth = 1px 보더 알파, 드롭섀도우 없음(모달 스크림만 예외) */
	--pc-shadow:0 0 0 1px rgba(0,0,0,.05);
	--shadow-soft:0 0 0 1px rgba(0,0,0,.05);
}
/* 숫자는 1급 시민 — 탭형 숫자로 자릿수 정렬(평점·카운트·금액·시간) */
.sbItem .badge, .pcTab .cnt, .placeCard .pm, .ccard .cmeta, .fcard .fct, .triphd .sub, .item .tm, .item .ct { font-feature-settings:'tnum'; font-variant-numeric:tabular-nums; }
/* Pretendard 웹폰트 4종 — common.css(모바일)와 동일 굵기 구성. PC 셸 페이지는 common.css를 안 물어
   이게 없으면 로컬 폴백 한 굵기로만 렌더돼 500~550이 전부 Regular로 보임(소유자 "연해 보여" 2026-07-24 원인).
   @font-face 선언은 css/pretendard.css 로 분리(2단 base/ext + 긴 unicode-range라 여기 두면 파일이 95KB로 불어남).
   → 이 CSS를 쓰는 페이지는 pretendard.css 를 **먼저** link 해야 한다. */
* { box-sizing:border-box; }
html,body { height:100%; margin:0; }
body { font-family:'Wanted Sans Variable','Wanted Sans','Pretendard',sans-serif; background:var(--bg); color:var(--text); -webkit-font-smoothing:auto; text-rendering:auto; }
button, input, select, textarea { font-family:inherit; } /* 폼 컨트롤은 폰트를 상속 안 받아 UA 기본(Arial)로 새던 것 교정(2026-08-02) */
html:root .maplibregl-map, html:root .maplibregl-map * { font-family:inherit; } /* 지도 내부 UI 도 본문 서체로 — maplibre-gl.css 가 런타임에 늦게 로드돼 특이도로 이긴다 */
.pcApp { display:flex; height:100vh; }
svg { display:block; }
/* 키보드 포커스 링(일관) */
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:6px; }
/* 모션 최소화 존중 (design.md §15) */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}
/* 커스텀 스크롤바 (design-pc.md §12) — 10px 투명 트랙 + pill thumb, 버튼 없음. scrollbar-width/color는 지정 안 함(Chromium이 OS 화살표 바로 폴백) */
::-webkit-scrollbar { width:10px; height:10px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:rgba(0,0,0,.16); border-radius:999px; border:2px solid transparent; background-clip:padding-box; }
::-webkit-scrollbar-thumb:hover { background:rgba(0,0,0,.28); background-clip:padding-box; }
::-webkit-scrollbar-button { display:none; }
::-webkit-scrollbar-corner { background:transparent; }

/* 좌측 사이드바 (Mindtrip 구조) */
/* 아이콘 전용 레일 — 브랜드 마크와 활성 인디케이터만 남겨 콘텐츠와 경쟁하지 않게 한다. */
/* 사이드바 = 전역 chrome. 페이지별 :root 팔레트(웜/쿨)가 새어들지 않게 중립 토큰을 여기서 로컬 재선언(design-pc.md §6) */
.sidebar { --ink:#20212a; --line:#efeff0; --surface:#f7f7f8; --surface2:#efeff0; --sub:rgba(0,0,0,.6); width:var(--pc-sidebar-w); flex-shrink:0; background:#fff; border-right:1px solid var(--line); display:flex; flex-direction:column; align-items:center; padding:14px 0 16px; position:relative; }
.sidebar > * { position:relative; z-index:1; }
.sbLogo { width:44px; height:44px; display:flex; align-items:center; justify-content:center; padding:0; margin:0 0 17px; border-radius:8px; color:var(--accent); text-decoration:none; transition:background .12s ease; }
.sbLogo:hover { background:var(--surface); }
.sbLogo .m { color:var(--accent); display:flex; }
.sbLogo .m svg, .sbLogo .travelassiMark { width:29px; height:29px; }
.sbLogo .cordixMark { display:none; }
.sbLogo span:not(.m) { display:none; }
.sbNav { display:flex; flex-direction:column; align-items:center; gap:10px; width:100%; }
.sbItem { position:relative; display:flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:8px; color:#b6b9c3; cursor:pointer; user-select:none; transition:background .12s ease, color .12s ease; text-decoration:none; }
.sbItem .i { display:flex; color:inherit; }
.sbItem .i svg { width:22px; height:22px; }
.sbItem .lbl { display:none; }
.sbItem:hover { background:var(--surface); color:var(--ink); }
.sbItem.on { background:transparent; color:var(--ink); box-shadow:none; }
.sbItem.on::before { content:''; position:absolute; right:-10px; top:50%; width:3px; height:24px; border-radius:999px; background:var(--ink); transform:translateY(-50%); }
.sbItem.on .i { color:var(--ink); }
.sbItem.on .i svg { fill:currentColor; }
.sbItem .badge { position:absolute; top:2px; right:2px; min-width:16px; height:16px; display:flex; align-items:center; justify-content:center; padding:0 4px; font-size:9px; font-weight:700; line-height:1; color:#fff; background:var(--accent); border-radius:8px; box-shadow:0 0 0 2px #fff; }
.sbItem .badge:empty { display:none; }
.sbItem::after, .sbNew::after { content:attr(aria-label); position:absolute; left:calc(100% + 12px); top:50%; transform:translateY(-50%); background:var(--ink); color:#fff; font-size:12px; line-height:1; padding:6px 9px; border-radius:6px; white-space:nowrap; opacity:0; pointer-events:none; transition:opacity .12s ease; z-index:60; box-shadow:0 4px 12px -4px rgba(0,0,0,.18); }
.sbItem:hover::after, .sbNew:hover::after { opacity:1; }
.sbNew { position:relative; display:flex; align-items:center; justify-content:center; width:44px; height:44px; margin:10px 0 0; border:none; border-radius:8px; background:transparent; color:#b6b9c3; cursor:pointer; text-decoration:none; transition:background .12s ease, color .12s ease; }
.sbNew svg { width:22px; height:22px; }
.sbNew .lbl { display:none; }
.sbNew:hover { background:var(--surface); color:var(--ink); }
.sbSpacer { flex:1; min-height:12px; }
.sbProfile { display:flex; align-items:center; justify-content:center; width:100%; padding:12px 0 0; }
.sbProfile .av2 { width:32px; height:32px; border-radius:50%; background:var(--surface2); color:#1f2b3d; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.sbProfile .av2 svg { width:17px; height:17px; }
.sbProfile > div { display:none; }
.sbFooter { display:none; }

/* 메인 영역 */
.pcMain { flex:1; min-width:0; display:flex; flex-direction:column; background:var(--bg); }
.pcTop { padding:var(--pc-top) 36px 18px var(--pc-gutter); background:#fff; position:relative; max-width:1220px; } /* tripsP 랩(1220)과 동일 컴포지션 — 구분은 탭 밑줄만(§1 여백>헤어라인) */
.topActs { position:absolute; top:var(--pc-top); right:36px; display:flex; gap:9px; } /* 제목과 같은 선에서 시작 — .pcTop 상단 패딩과 반드시 같은 값(옛 28px 하드코딩이라 --pc-top 늘렸을 때 버튼만 위에 남았음) */
/* MT /saved 상단 액션 정합(소유자 2026-07-20 "3버튼 촌스러워, MT처럼") — pill + 주 액션 솔리드 위계 */
.topAct { display:inline-flex; align-items:center; gap:7px; padding:0 17px; min-height:40px; border-radius:999px; font-size:14px; font-weight:500; cursor:pointer; font-family:inherit; transition:background .12s ease, border-color .12s ease; }
.topAct svg { width:15px; height:15px; }
.topAct.ghost { background:#fff; border:1px solid var(--ctrl-line); color:var(--text); }
.topAct.ghost:hover { background:var(--surface); border-color:var(--muted); }
/* primary = 솔리드 퍼플(MT Create=솔리드 블랙 위계, 색은 우리 액센트) — 조용한 아웃라인으로 되돌리지 말 것 */
.topAct.primary { background:var(--accent); border:1px solid transparent; color:#fff; }
.topAct.primary:hover { background:var(--accent-strong); }
.topAct.primary svg { color:#fff; }
.pcTop h1 { font-size:36px; font-weight:700; letter-spacing:normal; line-height:1.2; color:var(--ink); margin:0; } /* 36/700·자간 normal — MyRealTrip 정합(2026-07-28). 한글에 음수 자간은 조여 보임 */ /* MT 타이틀 실측 36/600 정합(tripDetail 드로어 h2와 동급) — tripsP도 추후 동기화 */
.pcTop .desc { font-size:14px; font-weight:400; color:var(--text); margin-top:6px; line-height:1.45; }
.pcTools { display:flex; align-items:center; gap:10px; margin-top:16px; flex-wrap:wrap; }
.pcSearch { display:flex; align-items:center; gap:8px; flex:1; min-width:200px; max-width:380px; background:#fff; border:1px solid var(--ctrl-line); border-radius:12px; padding:9px 13px; }
.pcSearch:focus-within { border-color:var(--accent); background:#fff; }
.pcSearch svg { width:17px; height:17px; color:var(--muted); flex-shrink:0; }
.pcSearch input { flex:1; border:none; background:none; outline:none; font-family:inherit; font-size:13.5px; color:var(--ink); }
.pcSel { border:1px solid var(--ctrl-line); border-radius:12px; padding:9px 12px; font-family:inherit; font-size:13.5px; color:var(--ink); background:#fff; cursor:pointer; }

/* 저장됨 서브탭 (컬렉션/장소/크리에이터) */
/* 언더라인 탭 — tripsP(.tlTab)와 동일 스펙: 17px/500, 활성=잉크 700+잉크 밑줄(퍼플 아님) */
.pcTabs { display:flex; gap:20px; border-bottom:1px solid var(--line-soft); margin-top:24px; } /* 18 → 24: 좌·상 여백이 커진 만큼 제목 블록도 같이 벌린다(trips .tlTabs와 동기) */
/* 탭 = MT처럼 타이틀(36px)보다 한참 조용하게 — 위계 평탄(17px)으로 되돌리지 말 것 */
.pcTab { padding:8px 2px 11px; border:none; background:none; font-size:17px; font-weight:500; line-height:1.3; color:var(--sub); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px; display:inline-flex; align-items:center; gap:6px; font-family:inherit; letter-spacing:0; } /* 17px = 소유자 +2px(2026-07-20), guides .gTab·trips .tlTab과 동기 */
.pcTab .cnt { font-size:12.5px; line-height:inherit; color:var(--muted); opacity:1; letter-spacing:0; }
.pcTab.on { color:var(--ink); border-bottom-color:var(--ink); font-weight:600; }
.pcTab.on .cnt { color:var(--sub); opacity:1; }
/* 저장 장소 카드 */
.placeCard { display:flex; align-items:center; gap:12px; background:#fff; border:1px solid var(--line); border-radius:16px; padding:15px 16px; cursor:pointer; transition:box-shadow .15s ease; }
.placeCard:hover { box-shadow:var(--pc-shadow); }
.placeCard .pdot { width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.placeCard .pbody { min-width:0; flex:1; }
.placeCard .pn { font-size:14px; font-weight:600; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.placeCard .pm { font-size:12px; color:var(--sub); margin-top:3px; }
.placeCard .pm .star { color:var(--sub); font-weight:600; }
.placeCard .pgo { flex-shrink:0; color:var(--muted); }
.placeCard .pgo svg { width:16px; height:16px; }
.pcBody { flex:1; overflow-y:auto; padding:26px 36px 72px var(--pc-gutter); }
.grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:18px; max-width:1108px; margin-inline:0; } /* tripsP 그리드(3열·gap18·1108)와 동일 */
/* 새 폴더 고스트 타일 — 희소 상태가 '고장'처럼 안 보이게 + 폴더 생성 어포던스 */
.fcard.ghost { border:1.5px dashed var(--accent); border-radius:16px; background:transparent; box-shadow:none; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; aspect-ratio:4/3; min-height:0; align-self:start; color:var(--accent); font-weight:500; font-size:13px; }
.fcard.ghost:hover { border-color:var(--accent); background:var(--tint); transform:none; box-shadow:none; }
.fcard.ghost svg { width:24px; height:24px; }

/* 콘텐츠 카드 */
.ccard { background:#fff; border:1px solid var(--line); border-radius:16px; overflow:hidden; cursor:pointer; display:flex; flex-direction:column; transition:box-shadow .15s ease, transform .15s ease; }
.ccard:hover { box-shadow:var(--pc-shadow); transform:translateY(-2px); }
.ccard .thumb { width:100%; aspect-ratio:1/1; object-fit:cover; background:var(--surface2); display:block; }
.ccard .cbody { padding:13px 14px 14px; display:flex; flex-direction:column; gap:7px; flex:1; }
.ccard .cre { display:flex; align-items:center; gap:7px; font-size:11.5px; color:var(--sub); font-weight:600; }
.ccard .cre .pf { width:14px; height:14px; border-radius:4px; flex-shrink:0; }
.ccard .ctit { font-size:13.5px; font-weight:600; color:var(--ink); line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.ccard .cmeta { font-size:11.5px; color:var(--muted); margin-top:auto; }
.cacts { display:flex; gap:7px; padding:0 12px 12px; }
.cact { flex:1; display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:8px; border-radius:8px; font-size:12px; font-weight:600; cursor:pointer; border:1px solid var(--ctrl-line); background:#fff; color:var(--text); transition:background .12s ease; }
.cact svg { width:14px; height:14px; }
.cact:hover { background:var(--surface); }
.cact.primary { background:var(--accent); color:#fff; border-color:var(--accent); }
.cact.primary:hover { background:var(--accent-strong); }

/* 폴더 카드 */
/* 이미지-퍼스트 갤러리 타일 — 흰 카드 크롬 제거, 모자이크가 곧 타일 */
/* 폴더 카드 = tripsP 여행 카드(.tCard)와 동일 언어 — 4:3, 라운드 16, 하단 스크림 위 흰 제목 */
.fcard { background:transparent; border:none; cursor:pointer; position:relative; }
.fcard .fcovwrap { position:relative; border-radius:16px; overflow:hidden; box-shadow:0 1px 3px rgba(15,23,42,.06); transition:box-shadow .14s ease, transform .14s ease; }
.fcard:hover .fcovwrap, .fcard:focus-visible .fcovwrap { transform:translateY(-2px); box-shadow:0 16px 34px rgba(15,23,42,.14); }
.fcard .fcovwrap::after { content:''; position:absolute; inset:0; background:linear-gradient(180deg, rgba(6,23,39,0) 46%, rgba(6,23,39,.66) 100%); pointer-events:none; }
.fcard .fcov { width:100%; aspect-ratio:4/3; object-fit:cover; background:var(--surface2); display:block; }
/* 2×2 모자이크 커버(폴더 내용 미리보기) */
.fcard .fmosaic { display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; gap:2px; aspect-ratio:4/3; overflow:hidden; min-height:0; background:var(--surface2); }
.fcard .fmosaic img { width:100%; height:100%; min-width:0; min-height:0; object-fit:cover; display:block; background:var(--surface2); }
.fcard .fmosaic img:only-child { grid-column:1/3; grid-row:1/3; }
.fcard .fbody { position:absolute; z-index:1; left:16px; right:16px; bottom:14px; padding:0; }
.fcard .fnm { font-size:14px; line-height:1.35; font-weight:600; color:#fff; text-shadow:0 1px 8px rgba(6,23,39,.4); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fcard .fct { font-size:10.5px; line-height:1.35; font-weight:500; color:rgba(255,255,255,.86); margin-top:3px; font-variant-numeric:tabular-nums; }

/* 스켈레톤 로딩 (design.md §14: 스피너 단독 금지) */
@keyframes shimmer { 0% { background-position:200% 0; } 100% { background-position:-200% 0; } }
.skel { background:linear-gradient(90deg,#e8e8e8 25%,#f0f0f0 50%,#e8e8e8 75%); background-size:200% 100%; animation:shimmer 1.8s ease-in-out infinite; border-radius:8px; }
.skcard { border:1px solid var(--line-soft); border-radius:16px; overflow:hidden; }
.skcard .skt { width:100%; aspect-ratio:4/3; }
.skcard .skb { padding:12px 13px 14px; }
.skcard .skl { height:13px; border-radius:5px; margin-top:7px; }
/* 재시도 */
.retryBtn { display:inline-flex; align-items:center; gap:6px; margin-top:14px; padding:9px 16px; border:none; border-radius:12px; background:var(--accent); color:#fff; font-weight:600; font-size:13px; cursor:pointer; }
.retryBtn:hover { background:var(--accent-strong); }

/* 상태 */
.pcLoading, .pcEmpty { color:var(--sub); text-align:center; padding:64px 24px; font-size:14px; line-height:1.7; }
.pcEmpty b { color:var(--ink); display:block; font-size:16px; margin-bottom:6px; }

/* 담기 모달 */
.modalBg { position:fixed; inset:0; background:rgba(6,27,49,.42); display:none; align-items:center; justify-content:center; z-index:50; }
.modalBg.on { display:flex; }
.modal { background:#fff; border-radius:14px; width:380px; max-width:92vw; max-height:78vh; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 10px 40px rgba(6,27,49,.18); }
.modalHd { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid var(--line); }
.modalHd b { font-size:16px; font-weight:700; color:var(--ink); }
.modalHd .mx { border:none; background:none; cursor:pointer; color:var(--muted); width:30px; height:30px; display:flex; align-items:center; justify-content:center; }
.modalHd .mx svg { width:19px; height:19px; }
.modalBody { flex:1; overflow-y:auto; padding:8px; }
.frow { display:flex; align-items:center; gap:11px; padding:10px 12px; border-radius:10px; cursor:pointer; }
.frow:hover { background:var(--surface); }
.frow .fth { width:44px; height:44px; border-radius:8px; object-fit:cover; background:var(--surface2); flex-shrink:0; }
.frow .fn { font-size:14px; font-weight:600; color:var(--ink); }
.frow .fc { font-size:12px; color:var(--sub); margin-top:1px; }
.newFolderRow { display:flex; gap:8px; padding:12px; border-top:1px solid var(--line-soft); margin-top:4px; }
.newFolderRow.standalone { border-top:none; margin-top:0; }
.newFolderRow input { flex:1; border:1px solid var(--ctrl-line); border-radius:9px; padding:9px 12px; font-family:inherit; font-size:13.5px; outline:none; color:var(--ink); }
.newFolderRow input:focus { border-color:var(--accent); }
.newFolderRow button { padding:9px 14px; border:none; border-radius:9px; background:var(--accent); color:#fff; font-weight:600; font-size:13px; cursor:pointer; white-space:nowrap; }
.pcToast { position:fixed; bottom:28px; left:50%; transform:translateX(-50%); background:var(--ink); color:#fff; padding:11px 18px; border-radius:10px; font-size:13.5px; z-index:60; opacity:0; transition:opacity .2s; pointer-events:none; }
.pcToast.on { opacity:1; }

/* 폰 패널 — 모바일 플로우를 의도된 430px 시트로 임베드(데스크톱 프레임 점프 방지) */
.phoneBg { position:fixed; inset:0; background:rgba(6,27,49,.5); display:none; align-items:center; justify-content:center; z-index:70; }
.phoneBg.on { display:flex; }
.phone { width:430px; max-width:96vw; height:86vh; max-height:880px; background:#fff; border-radius:20px; overflow:hidden; display:flex; flex-direction:column; box-shadow:0 16px 50px rgba(0,0,0,.28); }
.phoneHd { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 10px 12px 16px; border-bottom:1px solid var(--line); flex-shrink:0; }
.phoneHd b { font-size:14px; font-weight:700; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.phoneHd .px { border:none; background:none; cursor:pointer; color:var(--muted); width:32px; height:32px; flex-shrink:0; display:flex; align-items:center; justify-content:center; border-radius:8px; }
.phoneHd .px:hover { background:var(--surface); }
.phoneHd .px svg { width:20px; height:20px; }
.phone iframe { flex:1; width:100%; border:none; display:block; }
