/* PC 셸 — 사이드바 + 메인영역 공유 (chat01 / exploreP / savedP). design.md 토큰. */
:root {
	/* Stripe HDS 기반 — Deep Violet #533afd · Deep Navy 헤딩 · 소프트블루 보더 */
	--accent:#533afd; --accent-strong:#4434d4; --tint:rgba(83,58,253,.06);
	--ink:#061b31; --text:#64748d; --sub:#64748d; --muted:#94a3b8;
	--line:#e5edf5; --line-soft:#eef3f8; --surface:#f6f9fc; --surface2:#eef3f8; --bg:#ffffff;
	/* Stripe 시그니처 — 블루틴트 멀티레이어 섀도(chromatic depth) */
	--pc-shadow:rgba(50,50,93,.25) 0 30px 45px -30px, rgba(0,0,0,.1) 0 18px 36px -18px;
}
/* 숫자는 1급 시민 — 탭형 숫자로 자릿수 정렬(평점·카운트·금액·시간) */
.fchip, .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; }
* { box-sizing:border-box; -webkit-font-smoothing:antialiased; }
html,body { height:100%; margin:0; }
body { font-family:'Pretendard',sans-serif; background:var(--bg); color:var(--text); }
.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; }
}

/* 좌측 사이드바 (Mindtrip 구조) */
/* 아이콘 전용 레일 (Mindtrip 구조) — 라벨은 호버 툴팁으로 노출 */
.sidebar { width:64px; flex-shrink:0; background:#fff; border-right:1px solid var(--line); display:flex; flex-direction:column; align-items:center; padding:16px 0 14px; }
.sbLogo { display:flex; align-items:center; justify-content:center; padding:2px 0 18px; color:var(--ink); text-decoration:none; }
.sbLogo .m { color:var(--accent); display:flex; }
.sbLogo .m svg { width:24px; height:24px; }
.sbLogo span:not(.m) { display:none; }
.sbNav { display:flex; flex-direction:column; align-items:center; gap:10.4px; width:100%; }
.sbItem { position:relative; display:flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:8px; color:var(--sub); 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:none; color:var(--ink); }
.sbItem.on .i { color:var(--ink); }
.sbItem.on .i svg { fill:var(--ink); }
.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:12px 0 0; border:none; border-radius:8px; background:transparent; color:var(--sub); cursor:pointer; text-decoration:none; transition:background .12s ease, color .12s ease; }
.sbNew svg { width:20px; height:20px; }
.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 2px; border-top:1px solid var(--line-soft); }
.sbProfile .av2 { width:32px; height:32px; border-radius:50%; background:var(--surface2); color:var(--sub); 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:28px 40px 18px; background:#fff; border-bottom:1px solid var(--line); position:relative; }
.topActs { position:absolute; top:28px; right:40px; display:flex; gap:9px; }
.topAct { display:inline-flex; align-items:center; gap:6px; padding:9px 14px; border-radius:4px; font-size:13px; font-weight:500; cursor:pointer; font-family:inherit; transition:background .12s ease; }
.topAct svg { width:15px; height:15px; }
.topAct.ghost { background:#fff; border:1px solid var(--line); color:var(--text); }
.topAct.ghost:hover { background:var(--surface); }
.topAct.primary { background:var(--accent); border:1px solid var(--accent); color:#fff; }
.topAct.primary:hover { background:var(--accent-strong); }
.pcTop h1 { font-size:38px; font-weight:300; letter-spacing:-0.8px; line-height:1.08; color:var(--ink); margin:0; }
.pcTop .desc { font-size:15px; font-weight:300; 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(--line); border-radius:6px; 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(--line); border-radius:6px; padding:9px 12px; font-family:inherit; font-size:13.5px; color:var(--ink); background:#fff; cursor:pointer; }

/* 저장됨 서브탭 (컬렉션/장소/크리에이터) */
.pcTabs { display:flex; gap:28px; border-bottom:1px solid var(--line); margin-top:20px; }
.pcTab { padding:10px 0; border:none; background:none; font-size:14px; font-weight:600; color:var(--sub); cursor:pointer; border-bottom:2px solid transparent; display:inline-flex; align-items:center; gap:6px; font-family:inherit; }
.pcTab .cnt { font-size:11.5px; color:var(--muted); font-weight:600; }
.pcTab.on { color:var(--accent); border-bottom-color:var(--accent); }
.pcTab.on .cnt { color:var(--accent); }
/* 저장 장소 카드 */
.placeCard { display:flex; align-items:center; gap:12px; background:#fff; border:1px solid var(--line); border-radius:8px; 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:30px 40px 72px; }
.grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(258px, 1fr)); gap:26px 24px; max-width:1180px; margin-inline:0; }
/* 새 폴더 고스트 타일 — 희소 상태가 '고장'처럼 안 보이게 + 폴더 생성 어포던스 */
.fcard.ghost { border:1.5px dashed #362baa; border-radius:8px; background:transparent; box-shadow:none; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; aspect-ratio:1/1; 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:8px; 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:5px; flex:1; }
.ccard .cre { display:flex; align-items:center; gap:5px; 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:5px; padding:8px; border-radius:8px; font-size:12px; font-weight:600; cursor:pointer; border:1px solid var(--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); }

/* 폴더 카드 */
/* 이미지-퍼스트 갤러리 타일 — 흰 카드 크롬 제거, 모자이크가 곧 타일 */
.fcard { background:transparent; border:none; cursor:pointer; }
.fcard .fcovwrap { position:relative; border-radius:8px; overflow:hidden; box-shadow:rgba(23,23,23,.06) 0 3px 6px; transition:box-shadow .2s ease, transform .2s ease; }
.fcard:hover .fcovwrap { transform:translateY(-3px); box-shadow:var(--pc-shadow); }
.fcard .fcov { width:100%; aspect-ratio:1/1; 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:1/1; 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 .fchip { position:absolute; left:10px; bottom:10px; display:inline-flex; align-items:center; gap:4px; padding:5px 9px 5px 8px; border-radius:4px; background:rgba(6,27,49,.78); color:#fff; font-size:11.5px; font-weight:600; }
.fcard .fchip svg { width:13px; height:13px; }
.fcard .fbody { padding:12px 3px 2px; }
.fcard .fnm { font-size:14px; font-weight:700; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fcard .fct { font-size:12px; color:var(--sub); margin-top:3px; }

/* 스켈레톤 로딩 (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:8px; overflow:hidden; }
.skcard .skt { width:100%; aspect-ratio:1/1; }
.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:4px; background:var(--accent); color:#fff; font-weight:500; 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(33,33,33,.45); display:none; align-items:center; justify-content:center; z-index:50; }
.modalBg.on { display:flex; }
.modal { background:#fff; border-radius:16px; width:380px; max-width:92vw; max-height:78vh; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 10px 40px rgba(0,0,0,.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(--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(33,33,33,.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; }
