/* ========================================================================
   ShareBoB — Apple HIG 스타일 디자인 시스템
   ===================================================================== */

:root {
  --sf: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display',
        'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;

  --pink: #ff5f8f;
  --pink-soft: #ff8ac4;
  --violet: #7b5cff;
  --mint: #39d4c4;
  --amber: #ffb02e;

  --grad: linear-gradient(135deg, #ff8ac4 0%, #ff5f8f 45%, #7b5cff 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 138, 196, .18), rgba(123, 92, 255, .18));

  --bg: #f6f4f9;
  --bg-2: #ffffff;
  --card: rgba(255, 255, 255, .72);
  --card-solid: #ffffff;
  --stroke: rgba(10, 8, 20, .07);
  --text: #15121c;
  --sub: #6d6880;
  --faint: #a6a1b4;

  --r-xl: 30px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;

  --shadow-s: 0 2px 10px rgba(22, 16, 40, .05);
  --shadow-m: 0 10px 30px rgba(22, 16, 40, .09);
  --shadow-l: 0 22px 60px rgba(22, 16, 40, .16);

  --tab-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0b16;
    --bg-2: #171026;
    --card: rgba(38, 30, 54, .66);
    --card-solid: #1d1629;
    --stroke: rgba(255, 255, 255, .09);
    --text: #f3f0fa;
    --sub: #a79fba;
    --faint: #6f6883;
    --shadow-s: 0 2px 10px rgba(0, 0, 0, .3);
    --shadow-m: 0 10px 30px rgba(0, 0, 0, .4);
    --shadow-l: 0 22px 60px rgba(0, 0, 0, .55);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overscroll-behavior-y: none;
}

body {
  font-family: var(--sf);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.01em;
  overflow-x: hidden;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
input, textarea { -webkit-user-select: text; user-select: text; }

/* ── 유리(liquid glass) ─────────────────────────────────────── */
.glass, .glass-bar {
  background: var(--card);
  -webkit-backdrop-filter: saturate(180%) blur(26px);
  backdrop-filter: saturate(180%) blur(26px);
  border: 1px solid var(--stroke);
}
.glass { border-radius: var(--r-xl); box-shadow: var(--shadow-m); }

/* ── 배경 오로라 ────────────────────────────────────────────── */
.aurora { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.aurora i {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(62px); opacity: .55;
  animation: float 16s var(--ease) infinite alternate;
}
.aurora i:nth-child(1) { width: 62vw; height: 62vw; left: -18vw; top: -12vh; background: var(--pink-soft); }
.aurora i:nth-child(2) { width: 54vw; height: 54vw; right: -16vw; top: 18vh; background: var(--violet); animation-delay: -5s; }
.aurora i:nth-child(3) { width: 58vw; height: 58vw; left: 8vw; bottom: -18vh; background: var(--pink); animation-delay: -9s; }

@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, -6vh, 0) scale(1.14); }
}

/* ========================= 로그인 ========================= */
.login-screen {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: calc(var(--safe-t) + 24px) 22px calc(var(--safe-b) + 24px);
  background: var(--bg);
  transition: opacity .55s var(--ease);
}
.login-screen.leaving { opacity: 0; pointer-events: none; }
.login-inner { position: relative; z-index: 1; width: 100%; max-width: 420px; }

.login-brand { text-align: center; margin-bottom: 26px; }
.brand-mark {
  width: 104px; height: 104px; display: block; margin: 0 auto 16px;
  filter: drop-shadow(0 16px 32px rgba(255, 95, 143, .32));
  transform-origin: 50% 50%;
  animation: popIn .8s var(--spring) both;
}
.brand-mark.zoom { animation: logoZoom .85s var(--ease) forwards; }
@keyframes popIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes logoZoom {
  0%   { transform: scale(1); opacity: 1; }
  45%  { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(14); opacity: 0; }
}
.brand-title {
  font-size: 34px; font-weight: 800; letter-spacing: -.035em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise .7s var(--ease) .1s both;
}
.brand-sub { margin-top: 6px; color: var(--sub); font-size: 15px; animation: rise .7s var(--ease) .18s both; }

.login-form { padding: 20px; display: grid; gap: 14px; animation: rise .7s var(--ease) .26s both; }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.who button {
  padding: 13px 10px; border-radius: var(--r-md); font-weight: 650; font-size: 15px;
  background: rgba(127, 127, 140, .1); color: var(--sub);
  border: 1.5px solid transparent; transition: all .25s var(--ease);
}
.who button.on {
  background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(255, 95, 143, .35);
  transform: translateY(-1px);
}
.field { display: grid; gap: 7px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--sub); padding-left: 4px; }
.field input, .field textarea, .field select {
  padding: 14px 16px; border-radius: var(--r-md); border: 1.5px solid var(--stroke);
  background: var(--bg-2); outline: none; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 95, 143, .14);
}
.login-error { min-height: 18px; font-size: 13px; color: #ff3b5c; text-align: center; }

.btn-primary {
  padding: 15px; border-radius: var(--r-md); font-weight: 700; font-size: 16px;
  background: var(--grad); color: #fff; box-shadow: 0 12px 26px rgba(255, 95, 143, .34);
  transition: transform .18s var(--ease), opacity .2s;
}
.btn-primary:active { transform: scale(.97); }
.btn-primary[disabled] { opacity: .55; }

/* ========================= 앱 셸 ========================= */
.app { position: relative; min-height: 100%; z-index: 1; }

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  height: calc(52px + var(--safe-t)); padding: var(--safe-t) 16px 0;
  display: flex; align-items: center; justify-content: space-between;
  border-width: 0 0 1px;
}
.topbar-left { display: flex; align-items: center; gap: 9px; }
.topbar-logo { width: 26px; height: 26px; }
.topbar-title { font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.topbar-right { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  position: relative; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text);
  background: rgba(127, 127, 140, .1); transition: transform .18s var(--ease);
}
.icon-btn:active { transform: scale(.9); }
.badge {
  position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%;
  background: #ff3b5c; box-shadow: 0 0 0 2px var(--bg);
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 750; font-size: 15px;
  background: var(--grad); box-shadow: 0 6px 16px rgba(255, 95, 143, .35);
  transition: transform .18s var(--ease);
}
.avatar:active { transform: scale(.9); }

.view {
  position: relative;
  padding: calc(52px + var(--safe-t) + 14px) 16px calc(var(--tab-h) + var(--safe-b) + 28px);
  min-height: 100vh;
}

/* ── 탭바 ───────────────────────────────────────────────────── */
.tabbar {
  position: fixed; left: 10px; right: 10px; bottom: calc(var(--safe-b) + 8px); z-index: 30;
  height: var(--tab-h); border-radius: 26px; box-shadow: var(--shadow-l);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
}
.tab {
  position: relative; z-index: 1;
  display: grid; justify-items: center; gap: 2px;
  color: var(--faint); font-size: 10.5px; font-weight: 600;
  transition: color .28s var(--ease), transform .28s var(--spring);
}
.tab svg { width: 23px; height: 23px; }
.tab.on { color: var(--pink); transform: translateY(-1px); }
.tab:active { transform: scale(.92); }
.tab-dot {
  position: absolute; top: 2px; right: calc(50% - 16px);
  width: 7px; height: 7px; border-radius: 50%; background: #ff3b5c;
}
.tab-highlight {
  position: absolute; top: 7px; height: calc(var(--tab-h) - 14px); width: calc(20% - 10px);
  border-radius: 20px; background: var(--grad-soft);
  transition: transform .42s var(--spring); pointer-events: none;
}

/* ========================= 공통 컴포넌트 ========================= */
.card {
  background: var(--card); -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--stroke); border-radius: var(--r-lg);
  box-shadow: var(--shadow-s); padding: 18px;
}
.section-title {
  font-size: 13px; font-weight: 700; color: var(--sub); letter-spacing: .01em;
  padding: 0 4px 9px; display: flex; align-items: center; justify-content: space-between;
}
.muted { color: var(--sub); font-size: 14px; }
.empty { text-align: center; color: var(--faint); padding: 34px 10px; font-size: 14px; }
.empty b { display: block; font-size: 30px; margin-bottom: 8px; }

/* staggered 등장 */
.stagger > * { animation: rise .62s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: .02s; }
.stagger > *:nth-child(2) { animation-delay: .08s; }
.stagger > *:nth-child(3) { animation-delay: .14s; }
.stagger > *:nth-child(4) { animation-delay: .2s; }
.stagger > *:nth-child(5) { animation-delay: .26s; }
.stagger > *:nth-child(6) { animation-delay: .32s; }
.stagger > *:nth-child(7) { animation-delay: .38s; }
.stagger > *:nth-child(8) { animation-delay: .44s; }
.stagger > *:nth-child(n+9) { animation-delay: .5s; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 세그먼트 컨트롤 */
.segmented {
  display: grid; grid-auto-flow: column; gap: 4px; padding: 4px;
  background: rgba(127, 127, 140, .12); border-radius: 15px; margin-bottom: 14px;
}
.segmented button {
  padding: 9px 6px; border-radius: 11px; font-size: 14px; font-weight: 650; color: var(--sub);
  transition: all .28s var(--ease);
}
.segmented button.on { background: var(--card-solid); color: var(--text); box-shadow: var(--shadow-s); }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 650;
  background: rgba(127, 127, 140, .12); color: var(--sub);
}
.chip.pink { background: rgba(255, 95, 143, .14); color: var(--pink); }
.chip.violet { background: rgba(123, 92, 255, .14); color: var(--violet); }
.chip.mint { background: rgba(57, 212, 196, .16); color: #15a797; }
.chip.amber { background: rgba(255, 176, 46, .18); color: #c97f00; }

.btn {
  padding: 11px 16px; border-radius: 14px; font-weight: 650; font-size: 14px;
  background: rgba(127, 127, 140, .12); color: var(--text);
  transition: transform .16s var(--ease);
}
.btn:active { transform: scale(.95); }
.btn.grad { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(255, 95, 143, .3); }
.btn.ghost { background: transparent; border: 1.5px solid var(--stroke); }
.btn.danger { background: rgba(255, 59, 92, .12); color: #ff3b5c; }
.btn.block { width: 100%; }

.fab {
  position: fixed; right: 18px; bottom: calc(var(--tab-h) + var(--safe-b) + 22px); z-index: 25;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 28px; font-weight: 300;
  box-shadow: 0 14px 30px rgba(255, 95, 143, .42);
  animation: popIn .5s var(--spring) .3s both;
  transition: transform .18s var(--ease);
}
.fab:active { transform: scale(.9); }

/* ── 시트 / 모달 ─────────────────────────────────────────────── */
.scrim {
  position: fixed; inset: 0; z-index: 60; background: rgba(12, 8, 22, .4);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fadeIn .28s var(--ease) both;
  display: flex; align-items: flex-end; justify-content: center;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.scrim.closing { animation: fadeOut .25s var(--ease) both; }
@keyframes fadeOut { to { opacity: 0; } }

.sheet {
  width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--card-solid); border-radius: 28px 28px 0 0;
  padding: 10px 20px calc(24px + var(--safe-b));
  box-shadow: var(--shadow-l);
  animation: sheetUp .42s var(--spring) both;
}
.scrim.closing .sheet { animation: sheetDown .25s var(--ease) both; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetDown { to { transform: translateY(100%); } }
.sheet-grip { width: 38px; height: 5px; border-radius: 3px; background: var(--faint); opacity: .4; margin: 6px auto 14px; }
.sheet h3 { font-size: 20px; font-weight: 750; margin-bottom: 14px; }
.sheet .form { display: grid; gap: 13px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; padding: 4px 2px; }
.check input { width: 22px; height: 22px; accent-color: var(--pink); }

.dialog {
  margin: auto; width: calc(100% - 56px); max-width: 360px;
  background: var(--card-solid); border-radius: 26px; padding: 22px; text-align: center;
  box-shadow: var(--shadow-l); animation: popIn .34s var(--spring) both;
}
.dialog h3 { font-size: 18px; font-weight: 750; margin-bottom: 8px; }
.dialog p { color: var(--sub); font-size: 14.5px; line-height: 1.5; }
.dialog .actions { display: grid; grid-auto-flow: column; gap: 10px; margin-top: 18px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 28px); z-index: 80;
  transform: translateX(-50%);
  padding: 12px 18px; border-radius: 18px; font-size: 14px; font-weight: 600;
  background: rgba(22, 16, 36, .92); color: #fff; box-shadow: var(--shadow-l);
  animation: toastIn .4s var(--spring) both;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.toast.out { animation: toastOut .3s var(--ease) both; }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, 10px); } }

/* ========================= 홈 ========================= */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.person { padding: 16px 14px; text-align: center; position: relative; }
.big-avatar {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 10px;
  display: grid; place-items: center; color: #fff; font-size: 23px; font-weight: 750;
  box-shadow: 0 10px 22px rgba(255, 95, 143, .3);
}
.person .name { font-weight: 700; font-size: 15px; }
.person .status { margin-top: 5px; font-size: 13px; color: var(--sub); min-height: 34px; line-height: 1.35; }
.person .mood { font-size: 26px; margin-top: 4px; }
.gauge { height: 7px; border-radius: 4px; background: rgba(127, 127, 140, .16); margin-top: 10px; overflow: hidden; }
.gauge i { display: block; height: 100%; border-radius: 4px; background: var(--grad); transition: width .7s var(--ease); }
.online-dot {
  position: absolute; top: 14px; right: 14px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--faint);
}
.online-dot.on { background: #30d158; box-shadow: 0 0 0 4px rgba(48, 209, 88, .18); }

.heart-card { margin-top: 12px; text-align: center; padding: 22px 18px; }
.heart-btn {
  width: 92px; height: 92px; border-radius: 50%; margin: 6px auto 12px; display: grid; place-items: center;
  font-size: 42px; background: var(--grad); box-shadow: 0 16px 34px rgba(255, 95, 143, .4);
  transition: transform .2s var(--spring);
}
.heart-btn:active { transform: scale(.88); }
.heart-btn.pulse { animation: heartPulse .5s var(--spring); }
@keyframes heartPulse { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.stat { padding: 16px; display: grid; gap: 3px; }
.stat .n { font-size: 27px; font-weight: 800; letter-spacing: -.03em; }
.stat .l { font-size: 12.5px; color: var(--sub); font-weight: 600; }
.stat .ic { font-size: 19px; margin-bottom: 2px; }

.request-card { margin-top: 12px; border: 1.5px solid rgba(255, 95, 143, .35); }
.request-card .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; }

/* 하트 비 */
.heart-rain { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
.heart-rain span {
  position: absolute; top: -8vh; font-size: 26px;
  animation: fall linear forwards;
  will-change: transform;
}
@keyframes fall {
  0%   { transform: translate3d(0, -10vh, 0) rotate(0deg) scale(.6); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: translate3d(var(--dx, 0), 112vh, 0) rotate(var(--rot, 180deg)) scale(1.1); opacity: .1; }
}

/* ========================= 캘린더 ========================= */
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 12px; }
.cal-head h3 { font-size: 21px; font-weight: 780; letter-spacing: -.02em; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { width: 34px; height: 34px; border-radius: 50%; background: rgba(127, 127, 140, .12); font-size: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--faint); padding: 4px 0 8px; }
.cal-dow.sun { color: #ff5f6d; }
.cal-cell {
  aspect-ratio: 1 / 1.08; border-radius: 14px; display: grid; place-items: center; align-content: center;
  gap: 3px; font-size: 14px; font-weight: 600; position: relative;
  transition: background .2s var(--ease), transform .2s var(--spring);
}
.cal-cell.other { color: var(--faint); opacity: .45; }
.cal-cell.today { color: var(--pink); font-weight: 800; }
.cal-cell.sel { background: var(--grad); color: #fff; box-shadow: 0 8px 18px rgba(255, 95, 143, .35); }
.cal-cell:active { transform: scale(.9); }
.cal-dots { display: flex; gap: 3px; height: 5px; }
.cal-dots i { width: 5px; height: 5px; border-radius: 50%; display: block; }

.ev-item { display: flex; gap: 12px; align-items: flex-start; padding: 13px 4px; border-bottom: 1px solid var(--stroke); }
.ev-item:last-child { border-bottom: 0; }
.ev-bar { width: 4px; align-self: stretch; border-radius: 3px; background: var(--grad); flex: none; }
.ev-main { flex: 1; min-width: 0; }
.ev-title { font-weight: 680; font-size: 15px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ev-meta { font-size: 12.5px; color: var(--sub); margin-top: 3px; }
.ev-item.pending { opacity: .95; }
.ev-item.declined .ev-title { text-decoration: line-through; color: var(--faint); }

/* ========================= 장소/지도 ========================= */
.map-wrap {
  position: relative; height: 46vh; min-height: 300px; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-m); border: 1px solid var(--stroke); background: var(--bg-2);
}
#map { position: absolute; inset: 0; }
.leaflet-container { font: inherit; background: var(--bg-2); }
.leaflet-control-attribution { font-size: 9px; opacity: .6; }
.map-hint {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 500;
  background: rgba(22, 16, 36, .86); color: #fff; padding: 9px 15px; border-radius: 14px;
  font-size: 12.5px; font-weight: 600; pointer-events: none; white-space: nowrap;
  transition: opacity .5s var(--ease);
}
.map-hint.hide { opacity: 0; }
.pin {
  width: 26px; height: 26px; border-radius: 50% 50% 50% 4px; transform: rotate(45deg);
  border: 2.5px solid #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
}
.pin.visited { background: var(--pink); }
.pin.planned { background: var(--violet); }

.fallback-map { position: absolute; inset: 0; display: grid; place-items: center; }
.fallback-map svg { width: 100%; height: 100%; }
.fallback-note {
  position: absolute; top: 10px; left: 10px; z-index: 5;
  background: rgba(22, 16, 36, .78); color: #fff; padding: 6px 11px; border-radius: 11px; font-size: 11px;
}

.place-item { display: flex; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--stroke); }
.place-item:last-child { border-bottom: 0; }
.place-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 19px; flex: none; }
.place-ic.visited { background: rgba(255, 95, 143, .15); }
.place-ic.planned { background: rgba(123, 92, 255, .15); }
.place-main { flex: 1; min-width: 0; }
.place-main .t { font-weight: 670; font-size: 15px; }
.place-main .s { font-size: 12.5px; color: var(--sub); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.search-row { display: flex; gap: 8px; margin-bottom: 10px; }
.search-row input { flex: 1; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--stroke); background: var(--bg-2); outline: none; font-size: 15px; }
.search-results { display: grid; gap: 2px; max-height: 190px; overflow-y: auto; }
.search-results button { text-align: left; padding: 11px 12px; border-radius: 12px; background: rgba(127, 127, 140, .08); font-size: 14px; }
.search-results button b { display: block; font-weight: 670; }
.search-results button span { font-size: 12px; color: var(--sub); }

/* ========================= 위시리스트 ========================= */
.board { position: relative; display: flex; flex-wrap: wrap; gap: 10px 8px; padding: 10px 2px; justify-content: center; }
.postit {
  position: relative; width: calc(50% - 14px); min-height: 134px; padding: 15px 13px 30px;
  border-radius: 3px; box-shadow: 4px 7px 16px rgba(22, 16, 40, .18);
  font-size: 14.5px; line-height: 1.42; color: #2d2410; word-break: break-word;
  transition: transform .3s var(--spring), box-shadow .3s var(--ease);
  animation: rise .5s var(--ease) both;
}
.postit:active { transform: rotate(0deg) scale(1.04) !important; box-shadow: 6px 12px 26px rgba(22, 16, 40, .26); }
.postit::after {
  content: ''; position: absolute; top: -7px; left: 50%; transform: translateX(-50%) rotate(-4deg);
  width: 46px; height: 17px; background: rgba(255, 255, 255, .5); border-radius: 2px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .12);
}
.postit .who-tag { position: absolute; left: 13px; bottom: 9px; font-size: 11px; font-weight: 700; opacity: .55; }
.postit .time-tag { position: absolute; right: 13px; bottom: 9px; font-size: 10.5px; opacity: .45; }
.postit.done { opacity: .56; }
.postit.done .txt { text-decoration: line-through; }
.postit.yellow { background: linear-gradient(160deg, #fff3a8, #ffe878); }
.postit.pink   { background: linear-gradient(160deg, #ffd3e2, #ffb9d2); }
.postit.mint   { background: linear-gradient(160deg, #c8f7ea, #a5eeda); }
.postit.blue   { background: linear-gradient(160deg, #cfe5ff, #b0d4ff); }
.postit.peach  { background: linear-gradient(160deg, #ffe0c7, #ffcaa3); }
.postit.lilac  { background: linear-gradient(160deg, #e6d9ff, #d2bdff); }

/* ========================= 사진첩 ========================= */
.masonry { column-count: 2; column-gap: 10px; }
@media (min-width: 560px) { .masonry { column-count: 3; } }
.masonry figure {
  margin: 0 0 10px; break-inside: avoid; border-radius: 18px; overflow: hidden;
  position: relative; box-shadow: var(--shadow-s); background: rgba(127, 127, 140, .1);
  animation: rise .55s var(--ease) both;
}
.masonry img { width: 100%; display: block; }
.masonry figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 11px 9px;
  font-size: 12px; color: #fff; font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, .6));
}
.upload-bar { display: flex; gap: 10px; margin-bottom: 14px; }
.progress { height: 4px; border-radius: 3px; background: rgba(127, 127, 140, .18); overflow: hidden; margin-bottom: 12px; }
.progress i { display: block; height: 100%; background: var(--grad); transition: width .3s var(--ease); }

.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(8, 5, 14, .94);
  display: grid; place-items: center; animation: fadeIn .25s var(--ease) both;
}
.lightbox img { max-width: 100%; max-height: 78vh; border-radius: 14px; animation: popIn .4s var(--spring) both; }
.lightbox .lb-bar {
  position: absolute; left: 0; right: 0; bottom: calc(var(--safe-b) + 18px);
  display: flex; gap: 10px; justify-content: center;
}

/* 알림 목록 */
.noti-item { padding: 13px 4px; border-bottom: 1px solid var(--stroke); }
.noti-item:last-child { border-bottom: 0; }
.noti-item .t { font-weight: 670; font-size: 14.5px; }
.noti-item .b { font-size: 13px; color: var(--sub); margin-top: 3px; }
.noti-item .d { font-size: 11px; color: var(--faint); margin-top: 4px; }
.noti-item.unread .t::before {
  content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--pink); margin-right: 7px; vertical-align: 1px;
}

.skeleton {
  border-radius: var(--r-lg); background: linear-gradient(100deg, rgba(127,127,140,.1) 30%, rgba(127,127,140,.18) 50%, rgba(127,127,140,.1) 70%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite linear; height: 92px; margin-bottom: 12px;
}
@keyframes shimmer { to { background-position: -200% 0; } }
