:root {
  --ink: #151516;
  --ink2: #3c3d42;
  --muted: #7d7e85;
  --faint: #b0b1b7;
  --line: #ececef;
  --soft: #f3f3f5;
  --bg: #ffffff;
  --accent: #ec5530;
  --accent-d: #c8411d;
  --accent-soft: #fff1ec;
  --stage: #131416;
  --top: env(safe-area-inset-top, 0px);
  --bot: env(safe-area-inset-bottom, 0px);
  --tab: 58px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
input::placeholder { color: #a3a4aa; }
input[type="search"]::-webkit-search-cancel-button { display: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- shell */
.side { display: none; }
.device { position: fixed; inset: 0; }
.app { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
.statusbar { display: none; }
.view { position: relative; flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.view.is-map { overflow: hidden; }

.tabbar { position: relative; z-index: 30; flex: none; display: flex; height: calc(var(--tab) + var(--bot)); padding-bottom: var(--bot); background: #fff; border-top: 1px solid var(--line); }
.app.no-tabs .tabbar { display: none; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 600; color: #9c9da3; }
.tab.on { color: var(--ink); }
.tab svg { width: 24px; height: 24px; }
.tab.on svg { stroke-width: 2.1; }
.tab-upload svg { width: 42px; height: 28px; padding: 3px 10px; border-radius: 10px; background: var(--accent); color: #fff; stroke-width: 1.9; }
.tab-upload.on svg { background: var(--accent-d); }

.layer { position: absolute; inset: 0; z-index: 80; pointer-events: none; }
.layer > * { pointer-events: auto; }
.toast {
  position: absolute; left: 50%; top: calc(var(--top) + 64px); z-index: 90;
  width: max-content; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 14px;
  background: rgba(22, 22, 24, 0.94); color: #fff; font-size: 13.5px; font-weight: 550; line-height: 1.45; text-align: center;
  opacity: 0; transform: translate(-50%, -10px); transition: opacity 0.22s, transform 0.22s; pointer-events: none;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.app[data-v="is-map"] .toast { top: calc(var(--top) + 112px); }

/* ---------------------------------------------------------------- common */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: 12px; background: var(--soft); color: var(--ink); font-size: 14.5px; font-weight: 650; white-space: nowrap; }
.btn svg { width: 19px; height: 19px; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.accent { background: var(--accent); color: #fff; }
.btn.small { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.btn.small svg { width: 16px; height: 16px; }
.btn.block { width: 100%; height: 52px; border-radius: 14px; font-size: 16px; }
.btn.icon { width: 44px; padding: 0; }
.btn:disabled { opacity: 0.32; cursor: default; }
.round { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, 0.94); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14); }
.round svg { width: 20px; height: 20px; }
.round.light { background: transparent; box-shadow: none; }
.round.dark { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: none; }
.round-sp { width: 38px; flex: none; }
.link { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.link svg { width: 15px; height: 15px; }

.av { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: var(--c); color: #fff; font-size: 14px; font-weight: 700; }
.av.sm { width: 26px; height: 26px; font-size: 11.5px; }
.av.lg { width: 68px; height: 68px; font-size: 26px; }

.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: calc(54px + var(--top)); padding: var(--top) 16px 0; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bar > b { font-size: 16px; font-weight: 700; }
.wordmark { font-size: 21px; font-weight: 800; letter-spacing: -0.055em; }

.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; height: 32px; padding: 0 13px; border-radius: 999px; background: #fff; color: var(--ink2); font-size: 13.5px; font-weight: 600; }
.chips button.on { background: var(--ink); color: #fff; }

.search { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 8px 0 14px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 6px 22px rgba(0, 0, 0, 0.09); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 16px; }
.s-ico { display: flex; color: var(--muted); }
.s-ico svg { width: 20px; height: 20px; }
.s-cancel { padding: 0 8px; font-size: 14.5px; font-weight: 600; color: var(--ink2); }
.search.in { height: 44px; border-radius: 12px; background: var(--soft); box-shadow: none; }

.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row-img { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--soft); color: #c3c4c9; }
.row-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row-img svg { width: 22px; height: 22px; }
.row-main { flex: 1; min-width: 0; }
.row-main b { display: block; font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-side { flex: none; font-size: 12.5px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; border-radius: 14px; overflow: hidden; }
.g { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--soft); }
.g img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s; }
.g:hover img { transform: scale(1.04); }
.g-like { position: absolute; left: 6px; bottom: 5px; display: flex; align-items: center; gap: 2px; color: #fff; font-size: 11.5px; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55); }
.g-like svg { width: 13px; height: 13px; fill: #fff; stroke: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)); }
.g-cafe { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 7px 5px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.58)); color: #fff; font-size: 11px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- map markers */
.gm { background: none; border: 0; }
.pm { position: relative; width: 52px; height: 60px; }
.pm .ph { position: absolute; left: 2px; top: 0; z-index: 1; width: 48px; height: 48px; overflow: hidden; border: 2.5px solid #fff; border-radius: 14px; background: #e3e3e6; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28); transform-origin: 50% 100%; transition: transform 0.18s; }
.pm .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm::after { content: ""; position: absolute; left: 50%; top: 40px; width: 11px; height: 11px; border-radius: 2px; background: #fff; transform: translateX(-50%) rotate(45deg); box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.16); }
.pm b { position: absolute; top: -7px; right: -4px; z-index: 2; min-width: 21px; height: 21px; padding: 0 5px; border: 2px solid #fff; border-radius: 11px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 750; line-height: 17px; text-align: center; }
.pm:hover .ph { transform: scale(1.06); }
.pm.sel .ph { border-color: var(--accent); transform: scale(1.16); }
.pm.sel::after { background: var(--accent); }
.pm em, .dm em, .cm em, .cd em { position: absolute; font-style: normal; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--ink); pointer-events: none; text-shadow: 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff, 0 0 6px #fff; }
.pm em { top: 58px; left: 50%; transform: translateX(-50%); }
.dm { position: relative; width: 18px; height: 18px; display: grid; place-items: center; }
.dm i { width: 12px; height: 12px; border: 2.5px solid #fff; border-radius: 50%; background: #2b2b2f; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); transition: transform 0.15s; }
.dm:hover i { transform: scale(1.25); }
.dm em { left: 19px; top: 50%; transform: translateY(-50%); color: var(--ink2); font-weight: 600; }
.dm.sel i { width: 17px; height: 17px; background: var(--accent); }
.cm { position: relative; width: 60px; height: 62px; }
.cm .card { position: absolute; left: 5px; top: 3px; width: 50px; height: 50px; border: 2.5px solid #fff; border-radius: 14px; background: #ddd center / cover no-repeat; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.24); }
.cm .k1 { transform: rotate(-9deg) translate(-4px, 1px); }
.cm .k2 { transform: rotate(9deg) translate(4px, 1px); }
.cm b { position: absolute; top: -6px; right: -3px; z-index: 3; min-width: 24px; height: 24px; padding: 0 6px; border: 2px solid #fff; border-radius: 12px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 750; line-height: 20px; text-align: center; }
.cm em { top: 57px; left: 50%; transform: translateX(-50%); font-size: 12.5px; }
.cd { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border: 2.5px solid #fff; border-radius: 50%; background: rgba(32, 32, 35, 0.9); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.cd b { font-size: 13px; font-weight: 750; }
.cd em { top: 37px; left: 50%; transform: translateX(-50%); }
.me-dot { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(47, 123, 255, 0.2); }
.me-dot i { width: 13px; height: 13px; border: 2.5px solid #fff; border-radius: 50%; background: #2f7bff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }

/* ---------------------------------------------------------------- map screen */
.mapv { position: absolute; inset: 0; overflow: hidden; --below: 86px; }
.map { position: absolute; inset: 0; z-index: 0; background: #eceeed; }
.leaflet-container { font-family: inherit; }
.leaflet-tile-pane { filter: saturate(0.22) contrast(0.94) brightness(1.04); }
.mapv::before { content: ""; position: absolute; top: 0; left: 0; right: 0; z-index: 1; height: calc(var(--top) + 120px); background: linear-gradient(#fff, rgba(255, 255, 255, 0.82) 40%, rgba(255, 255, 255, 0)); pointer-events: none; }
.mapv .leaflet-bottom { bottom: var(--below); transition: bottom 0.3s; }
.leaflet-control-attribution { font-size: 10px; background: rgba(255, 255, 255, 0.78) !important; border-radius: 6px 0 0 0; }
.map-top { position: absolute; top: 0; left: 0; right: 0; z-index: 20; padding: calc(var(--top) + 8px) 14px 0; }
.map-top .chips { padding: 10px 0 4px; }
.map-top .chips button { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 3px 10px rgba(0, 0, 0, 0.07); }
.mapv.searching .chips { display: none; }
.mapv.searching::before { display: none; }
.search-panel { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 19; padding: calc(var(--top) + 64px) 0 24px; overflow-y: auto; background: #fff; }
.sp-label { margin: 0; padding: 14px 18px 6px; font-size: 12.5px; font-weight: 650; color: var(--muted); }
.sp-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 18px; text-align: left; }
.sp-row:hover { background: #fafafb; }
.sp-row > i, .sp-img { width: 42px; height: 42px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: var(--soft); color: var(--ink2); }
.sp-img { color: #c3c4c9; }
.sp-img img { width: 100%; height: 100%; object-fit: cover; }
.sp-row > span { min-width: 0; }
.sp-row b { display: block; font-size: 15px; font-weight: 650; }
.sp-row span span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-empty { padding: 30px 24px; text-align: center; color: var(--muted); font-size: 14px; }
.locate { position: absolute; right: 14px; bottom: calc(var(--below) + 14px); z-index: 15; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16); transition: bottom 0.3s; }
.locate svg { width: 21px; height: 21px; }

.sheet { position: absolute; top: 0; left: 0; right: 0; z-index: 16; height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -4px 26px rgba(0, 0, 0, 0.1); transform: translateY(100%); transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: transform; }
.sheet-head { flex: none; padding: 8px 18px 10px; cursor: grab; touch-action: none; user-select: none; }
.grip { display: block; width: 38px; height: 4.5px; margin: 0 auto 10px; border-radius: 3px; background: #d8d8dc; }
.sheet-title b { display: block; font-size: 16.5px; font-weight: 700; letter-spacing: -0.02em; }
.sheet-title span { font-size: 13px; color: var(--muted); }
.sheet-body { overflow-y: auto; padding: 0 18px 16px; overscroll-behavior: contain; }
.sheet-more { margin: 12px 0; text-align: center; font-size: 13px; color: var(--muted); }

.cafe-card { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 17; padding: 12px; border-radius: 22px; background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2); animation: rise 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.card-x { position: absolute; top: 18px; right: 18px; z-index: 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(18, 18, 20, 0.55); color: #fff; }
.card-x svg { width: 16px; height: 16px; }
.card-strip { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; border-radius: 14px; }
.card-strip::-webkit-scrollbar { display: none; }
.card-strip img { width: 92px; height: 92px; flex: none; object-fit: cover; border-radius: 12px; display: block; }
.card-strip img:only-child { width: 100%; height: 124px; }
.card-strip img:first-child:nth-last-child(2), .card-strip img:first-child:nth-last-child(2) ~ img { width: calc(50% - 3px); height: 112px; }
.card-empty { display: flex; align-items: center; gap: 10px; margin: 0 40px 12px 0; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-d); font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.card-empty svg { width: 24px; height: 24px; }
.card-info { padding: 0 4px; }
.card-name { font-size: 18px; font-weight: 750; letter-spacing: -0.03em; }
.card-info p { margin: 1px 0 0; font-size: 13px; color: var(--muted); }
.card-info .card-meta { margin-top: 4px; color: var(--ink2); }
.card-btns { display: flex; gap: 8px; margin-top: 12px; }
.card-btns .btn { flex: 1; }

/* ---------------------------------------------------------------- feed */
.feed-bar .seg { display: flex; padding: 3px; border-radius: 10px; background: var(--soft); }
.seg a { padding: 5px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 650; color: var(--muted); }
.seg a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.feed-chips { padding: 2px 16px 8px; }
.feed-chips button { background: var(--soft); }
.post { padding: 14px 0 20px; }
.post + .post { border-top: 1px solid var(--line); }
.post-h { display: flex; align-items: center; gap: 10px; padding: 0 16px 10px; }
.post-who { flex: 1; min-width: 0; }
.post-who .nm { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.post-who .at { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-who .at:hover { color: var(--ink); }
.post-h time { font-size: 12px; color: var(--faint); }
.post-img { position: relative; margin: 0 12px; overflow: hidden; border-radius: 18px; background: var(--soft); user-select: none; -webkit-user-select: none; cursor: pointer; }
.post-img img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.burst { position: absolute; left: 50%; top: 50%; opacity: 0; transform: translate(-50%, -50%) scale(0); pointer-events: none; }
.burst svg { width: 92px; height: 92px; fill: #fff; stroke: none; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.35)); }
.burst-on .burst { animation: burst 0.85s ease-out; }
.post-act { display: flex; align-items: center; gap: 16px; padding: 10px 16px 2px; }
.like, .cmt { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 650; color: var(--ink); }
.like svg, .cmt svg { width: 25px; height: 25px; }
.like.on { color: var(--accent); }
.like.on svg { fill: var(--accent); }
.like.pop svg { animation: pop 0.35s; }
.onmap { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); }
.onmap svg { width: 17px; height: 17px; }
.cap { margin: 6px 16px 0; font-size: 14.5px; }
.cap b { margin-right: 2px; font-weight: 700; }
.cmts { margin: 3px 16px 0; }
.more { display: block; margin: 2px 0; font-size: 13.5px; color: var(--muted); }
.cline { margin: 2px 0 0; font-size: 14px; color: var(--ink2); }
.cline a { font-weight: 700; color: var(--ink); }
.cmt-form { display: flex; align-items: center; gap: 8px; margin: 8px 16px 0; }
.cmt-form input { flex: 1; min-width: 0; height: 38px; border: 0; outline: 0; background: transparent; font-size: 16px; }
.cmt-form button { font-size: 14px; font-weight: 700; color: var(--accent); opacity: 0.35; }
.cmt-form input:not(:placeholder-shown) + button { opacity: 1; }
.av-me { display: flex; }
.feed-end, .empty { padding: 14px 0 30px; text-align: center; font-size: 13px; color: var(--faint); }

/* ---------------------------------------------------------------- cafe */
.cafe-hero { position: relative; aspect-ratio: 1 / 0.8; background: var(--soft); }
.cafe-hero > a, .cafe-hero img { display: block; width: 100%; height: 100%; }
.cafe-hero img { object-fit: cover; }
.cafe-hero.no-photo { aspect-ratio: 1 / 0.62; }
.hero-map { position: absolute; inset: 0; z-index: 0; }
.cafe-hero::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: calc(var(--top) + 70px); background: linear-gradient(rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0)); pointer-events: none; }
.cafe-hero.no-photo::after { display: none; }
.cafe-top { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 10px; height: calc(var(--top) + 54px); margin-bottom: calc(-1 * (var(--top) + 54px)); padding: var(--top) 12px 0; transition: background 0.2s, box-shadow 0.2s; }
.cafe-top b { flex: 1; min-width: 0; text-align: center; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity 0.2s; }
.cafe-top.solid { background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.cafe-top.solid b { opacity: 1; }
.cafe-top.solid .round { background: transparent; box-shadow: none; }
.cafe-head { padding: 18px 18px 4px; }
.cafe-area { margin: 0 0 2px; font-size: 13px; font-weight: 700; color: var(--accent); }
.cafe-head h1 { margin: 0; font-size: 27px; font-weight: 800; line-height: 1.25; letter-spacing: -0.04em; }
.cafe-addr { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.cafe-stats { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13.5px; color: var(--ink2); }
.stack { display: flex; }
.stack .av { margin-left: -8px; border: 2px solid #fff; }
.stack .av:first-child { margin-left: 0; }
.cafe-first { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-d); font-size: 14px; font-weight: 550; }
.cafe-btns { display: flex; gap: 8px; margin-top: 16px; }
.cafe-btns .btn.primary { flex: 1; }
.cafe-sec { padding: 22px 18px 4px; }
.cafe-sec h2 { margin: 0 0 10px; font-size: 17px; letter-spacing: -0.02em; }
.cafe-sec h2 span { margin-left: 2px; color: var(--muted); font-weight: 600; }
.mini-map { position: relative; z-index: 0; height: 150px; overflow: hidden; border-radius: 14px; }
.loc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; font-size: 13.5px; color: var(--ink2); }
.owner { display: flex; align-items: center; gap: 12px; margin: 24px 18px 30px; padding-top: 16px; border-top: 1px solid var(--line); }
.owner-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--soft); color: var(--ink2); }
.owner-ico svg { width: 20px; height: 20px; }
.owner div { flex: 1; min-width: 0; }
.owner b { display: block; font-size: 14px; }
.owner span { display: block; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

.modal { position: absolute; inset: 0; display: flex; align-items: flex-end; background: rgba(0, 0, 0, 0.42); animation: fade 0.2s; }
.msheet { width: 100%; padding: 10px 20px calc(20px + var(--bot)); border-radius: 22px 22px 0 0; background: #fff; animation: rise 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.msheet h3 { margin: 6px 0 8px; font-size: 19px; letter-spacing: -0.02em; }
.msheet p { margin: 0 0 18px; font-size: 14.5px; color: var(--ink2); }

/* ---------------------------------------------------------------- photo viewer */
.view.is-pv { background: #0e0e0f; color: #f2f2f3; }
.pv { min-height: 100%; display: flex; flex-direction: column; }
.pv-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: calc(var(--top) + 6px) 12px 8px; background: rgba(14, 14, 15, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pv-cafe { flex: 1; min-width: 0; text-align: center; }
.pv-cafe b { display: block; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-cafe span { font-size: 12.5px; color: #9c9da3; }
.pv-img { position: relative; display: flex; align-items: center; justify-content: center; background: #000; user-select: none; -webkit-user-select: none; }
.pv-img img { display: block; width: 100%; max-height: min(66vh, 560px); object-fit: contain; -webkit-user-drag: none; }
.pv-nav { position: absolute; top: 50%; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, 0.38); color: #fff; transform: translateY(-50%); }
.pv-nav.l { left: 8px; }
.pv-nav.r { right: 8px; }
.pv-nav svg { width: 20px; height: 20px; }
.pv-body { flex: 1; padding: 14px 16px 10px; }
.pv-who { display: flex; align-items: center; gap: 10px; }
.pv-who > div { flex: 1; min-width: 0; }
.pv-who .nm { display: block; font-size: 15px; font-weight: 700; color: #fff; }
.pv-who time { font-size: 12.5px; color: #8e8f95; }
.like.big { padding: 8px 13px 8px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 14.5px; }
.like.big svg { width: 22px; height: 22px; }
.like.big.on { background: var(--accent); color: #fff; }
.like.big.on svg { fill: #fff; }
.pv-cap { margin: 12px 0 0; font-size: 15.5px; color: #f2f2f3; }
.pv-ch { margin: 24px 0 6px; font-size: 13.5px; font-weight: 650; color: #a9aab0; }
.cf { display: flex; gap: 10px; padding: 7px 0; }
.cf p { margin: 0; font-size: 14.5px; color: #e4e4e7; }
.cf a { margin-right: 2px; font-weight: 700; color: #fff; }
.cf time { display: block; font-size: 12px; color: #7e7f85; }
.pv-none { font-size: 14px; color: #7e7f85; }
.pv-form { position: sticky; bottom: 0; margin: 0; padding: 10px 14px calc(10px + var(--bot)); background: #0e0e0f; border-top: 1px solid #232326; }
.pv-form input { padding: 0 14px; border-radius: 999px; background: #1d1d20; color: #fff; }
.pv-form input::placeholder { color: #75767c; }

/* ---------------------------------------------------------------- upload */
.up { padding: 4px 16px 12px; }
.up-pick { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 1 / 0.66; border: 1.5px dashed #d5d6da; border-radius: 20px; background: var(--soft); color: var(--ink2); text-align: center; cursor: pointer; }
.up-pick input, .up-re input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.up-pick svg { width: 38px; height: 38px; color: var(--accent); stroke-width: 1.6; }
.up-pick b { font-size: 16.5px; }
.up-pick span { font-size: 13px; color: var(--muted); }
.up-pick:hover { border-color: #b9bac0; }
.up-pick.busy { cursor: default; border-style: solid; }
.spin { width: 30px; height: 30px; border: 3px solid #e1e1e4; border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
.up-sample { margin: 10px 2px 0; font-size: 13px; color: var(--muted); }
.up-sample button { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.up-prev { position: relative; overflow: hidden; border-radius: 20px; background: #111; }
.up-prev img { display: block; width: 100%; max-height: 330px; object-fit: contain; }
.up-re { position: absolute; right: 10px; bottom: 10px; padding: 7px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.62); color: #fff; font-size: 13px; font-weight: 650; cursor: pointer; }
.up-info { margin: 8px 2px 0; font-size: 12.5px; color: var(--muted); }
.up-sec { margin-top: 24px; }
.up-sec h3 { margin: 0 0 10px; font-size: 16px; letter-spacing: -0.02em; }
.opt { margin-left: 4px; font-size: 12.5px; font-weight: 600; color: var(--faint); }
.basis { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 2px 2px; font-size: 12.5px; color: var(--muted); }
.pick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; }
.pick:last-child { border-bottom: 0; }
.pick .row-img, .pick-on .row-img { width: 44px; height: 44px; border-radius: 10px; }
.pick:hover .row-main b { color: var(--accent-d); }
.pick-on { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--accent); border-radius: 14px; background: var(--accent-soft); }
.pick-none { padding: 12px 0; font-size: 13px; color: var(--muted); }
.cap-in { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 12px; background: var(--soft); }
.cap-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; }
.cap-in span { font-size: 12px; color: var(--faint); }
.up-foot { position: sticky; bottom: 0; padding: 14px 16px calc(12px + var(--bot)); background: linear-gradient(rgba(255, 255, 255, 0), #fff 16px); }
.up-foot p { margin: 8px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }

/* ---------------------------------------------------------------- profile */
.prof { padding: 4px 18px 0; }
.prof-head { display: flex; align-items: center; gap: 14px; }
.prof-head h1 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.prof-head p { margin: 0; font-size: 13.5px; color: var(--muted); }
.bio { margin: 12px 0 0; font-size: 14.5px; color: var(--ink2); }
.stats { display: flex; gap: 24px; margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.stats span { display: flex; flex-direction: column; }
.stats b { font-size: 19px; font-weight: 750; letter-spacing: -0.02em; color: var(--ink); }
.prof-map-wrap { padding: 16px 18px 0; }
.prof-map { position: relative; z-index: 0; height: 250px; overflow: hidden; border-radius: 18px; }
.areas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.areas button { height: 30px; padding: 0 11px; border-radius: 999px; background: var(--soft); color: var(--ink2); font-size: 13px; font-weight: 600; }
.areas b { margin-left: 2px; color: var(--accent); }
.ptabs { display: flex; margin: 20px 18px 12px; border-bottom: 1px solid var(--line); }
.ptabs button { flex: 1; height: 42px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14.5px; font-weight: 650; }
.ptabs .on { color: var(--ink); border-color: var(--ink); }
.prof-grid { margin: 0 18px; }
.vlist { padding: 0 18px; }
.empty-me { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 24px; text-align: center; color: var(--muted); font-size: 14px; }
.empty-me svg { width: 34px; height: 34px; color: var(--accent); }
.empty-me b { color: var(--ink); font-size: 16px; }
.empty-me .btn { margin-top: 10px; }
.demo-reset { margin: 28px 0 30px; text-align: center; }
.demo-reset button { font-size: 12.5px; color: var(--faint); text-decoration: underline; text-underline-offset: 3px; }

@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 40% { transform: scale(1.3); } }
@keyframes burst {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
  15% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
  30% { transform: translate(-50%, -50%) scale(0.96); }
  70% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* ---------------------------------------------------------------- wide screens: phone frame + side panel */
@media (min-width: 900px) {
  body { background: var(--stage); }
  .page { display: flex; align-items: center; justify-content: center; gap: 76px; height: 100vh; padding: 24px; }
  .side { display: block; width: 340px; max-height: calc(100vh - 48px); overflow-y: auto; scrollbar-width: none; color: #d8d9dc; }
  .side::-webkit-scrollbar { display: none; }
  .device { position: relative; inset: auto; flex: none; width: 390px; height: min(844px, calc(100vh - 48px)); overflow: hidden; border-radius: 50px; background: #fff; box-shadow: 0 0 0 11px #0a0a0b, 0 0 0 12.5px #33353a, 0 40px 90px rgba(0, 0, 0, 0.55); transform: translateZ(0); }
  .app { --top: 48px; --bot: 20px; }
  .view, .sheet-body, .search-panel { scrollbar-width: none; }
  .view::-webkit-scrollbar, .sheet-body::-webkit-scrollbar, .search-panel::-webkit-scrollbar { display: none; }
  .statusbar { position: absolute; top: 0; left: 0; right: 0; z-index: 70; display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 2px 30px 0 40px; color: var(--ink); font-size: 15px; font-weight: 650; pointer-events: none; }
  .sb-island { position: absolute; top: 11px; left: 50%; width: 120px; height: 34px; border-radius: 20px; background: #000; transform: translateX(-50%); }
  .sb-icons { display: flex; align-items: center; gap: 6px; }
  .sb-icons svg { width: auto; height: 12px; fill: currentColor; stroke: none; }
  .app.dark .statusbar, .app.on-photo .statusbar { color: #fff; }
  .app::after { content: ""; position: absolute; bottom: 7px; left: 50%; z-index: 70; width: 134px; height: 5px; border-radius: 3px; background: #121213; transform: translateX(-50%); pointer-events: none; }
  .app.dark::after { background: #f2f2f3; }

  .brand { display: flex; align-items: center; gap: 11px; }
  .mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--accent); color: #fff; }
  .mark svg { width: 24px; height: 24px; stroke-width: 1.9; }
  .brand b { font-size: 27px; font-weight: 800; letter-spacing: -0.06em; color: #fff; }
  .lead { margin: 22px 0 10px; font-size: 21px; font-weight: 650; line-height: 1.45; letter-spacing: -0.03em; color: #fff; }
  .hint { margin: 0 0 26px; font-size: 14.5px; color: #9fa1a7; }
  .jump a { display: block; padding: 10px 0 10px 16px; border-left: 2px solid #2b2d32; transition: border-color 0.15s; }
  .jump a b { display: block; font-size: 15.5px; font-weight: 650; color: #fff; }
  .jump a span { display: block; font-size: 13px; line-height: 1.45; color: #8c8e94; }
  .jump a:hover { border-left-color: #5b5d63; }
  .jump a.on { border-left-color: var(--accent); }
  .jump a.on span { color: #b9bbc0; }
  .side-foot p { margin: 28px 0 12px; font-size: 12px; line-height: 1.6; color: #75777d; }
  .side-reset { padding: 7px 14px; border: 1px solid #3a3c42; border-radius: 999px; color: #d8d9dc; font-size: 13px; }
  .side-reset:hover { border-color: #5b5d63; }
}
@media (min-width: 900px) and (max-height: 840px) {
  .lead { font-size: 19px; margin-top: 16px; }
  .hint { margin-bottom: 16px; }
  .jump a { padding: 7px 0 7px 16px; }
  .side-foot p { margin-top: 18px; }
}
@media (min-width: 900px) and (max-height: 720px) {
  .hint { display: none; }
  .jump a span { font-size: 12.5px; }
  .side-foot p { margin-top: 14px; }
}
