/* ── 토큰 ───────────────────────────────────────── */
:root {
  --bg: #ffffff;
  --bg-2: #f3f4f6;
  --bg-3: #e8eaee;
  --text: #16181d;
  --text-2: #4b515c;
  --text-3: #8b919b;
  --line: #eceef1;
  --accent: #3d4cf5;
  --accent-press: #2f3cd6;
  --accent-weak: #eef0ff;
  --accent-ink: #ffffff;
  --accent-rgb: 61, 76, 245;
  --danger: #e5484d;
  --ok: #129a5c;
  --radius-l: 20px;
  --radius-m: 14px;
  --radius-s: 10px;
  --shadow-float: 0 6px 24px rgba(16, 24, 40, .12);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101114;
    --bg-2: #18191d;
    --bg-3: #24262b;
    --text: #f2f3f5;
    --text-2: #b6bbc4;
    --text-3: #7e848e;
    --line: #26282d;
    --accent: #6672ff;
    --accent-press: #5562f0;
    --accent-weak: #1f2347;
    --accent-ink: #ffffff;
    --accent-rgb: 102, 114, 255;
    --shadow-float: 0 6px 24px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101114; --bg-2: #18191d; --bg-3: #24262b; --text: #f2f3f5; --text-2: #b6bbc4; --text-3: #7e848e;
  --line: #26282d; --accent: #6672ff; --accent-press: #5562f0; --accent-weak: #1f2347; --accent-rgb: 102, 114, 255;
  --shadow-float: 0 6px 24px rgba(0, 0, 0, .5); color-scheme: dark;
}

/* ── 기본 ───────────────────────────────────────── */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); }
body {
  color: var(--text);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px; line-height: 1.5; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.screen {
  position: relative; max-width: 480px; margin: 0 auto; min-height: 100dvh;
  display: flex; flex-direction: column; background: var(--bg);
}
.screen.enter { animation: enter .28s cubic-bezier(.2, .8, .2, 1); }
.screen.enter-back { animation: enterBack .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes enter { from { opacity: 0; transform: translateX(24px); } }
@keyframes enterBack { from { opacity: 0; transform: translateX(-24px); } }
@media (prefers-reduced-motion: reduce) { .screen.enter, .screen.enter-back { animation: none; } }

/* ── 상단 바 ─────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20; height: 56px; padding: 0 8px;
  display: flex; align-items: center; justify-content: space-between; background: var(--bg);
}
.topbar .title { font-size: 17px; font-weight: 700; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px;
  background: transparent; color: var(--text);
}
.icon-btn:active { background: var(--bg-2); }
.icon-btn:disabled { color: var(--bg-3); cursor: default; background: transparent; }
.progress-line { height: 3px; background: var(--bg-2); margin: 0 20px; border-radius: 3px; overflow: hidden; }
.progress-line > i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .3s; }

.body { flex: 1; padding: 20px 20px calc(120px + var(--safe-b)); }
.body.flush { padding: 0; display: flex; flex-direction: column; }

.h1 { font-size: 26px; line-height: 1.35; font-weight: 700; letter-spacing: -0.03em; margin: 8px 0 8px; }
.sub { color: var(--text-2); font-size: 15px; margin: 0 0 28px; }
.caption { color: var(--text-3); font-size: 13px; }

/* ── 하단 고정 버튼 ──────────────────────────────── */
.bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px 20px calc(16px + var(--safe-b));
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}
.bottom-inner { max-width: 440px; margin: 0 auto; display: flex; gap: 10px; }
.bottom-note { max-width: 440px; margin: 0 auto 10px; text-align: center; font-size: 14px; color: var(--text-2); font-weight: 600; }

.btn {
  flex: 1; height: 56px; padding: 0 18px; border: 0; border-radius: var(--radius-m);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 17px; font-weight: 700; transition: transform .08s, background .15s;
  background: var(--bg-2); color: var(--text);
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:active { background: var(--accent-press); }
.btn:disabled { background: var(--bg-2); color: var(--text-3); transform: none; cursor: default; }
.btn.sm { height: 40px; font-size: 14px; border-radius: var(--radius-s); padding: 0 14px; flex: none; }
.btn.weak { background: var(--accent-weak); color: var(--accent); }
.text-btn { border: 0; background: none; color: var(--text-2); font-size: 14px; font-weight: 600; padding: 8px 4px; }
.text-btn.accent { color: var(--accent); }

/* ── 홈 ──────────────────────────────────────────── */
.home { justify-content: space-between; }
.home-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 24px 40px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 40px; font-weight: 800; letter-spacing: -0.045em; }
.logo-mark { width: 44px; height: 44px; border-radius: 13px; background: var(--accent); display: grid; place-items: center; }
.home-tagline { margin-top: 12px; color: var(--text-3); font-size: 15px; }
.home-actions { display: flex; gap: 10px; padding: 0 20px calc(24px + var(--safe-b)); }
.home-actions .btn { height: 60px; }

/* ── 입력 ────────────────────────────────────────── */
.field { margin-bottom: 28px; }
.field-label { display: block; font-size: 14px; color: var(--text-2); font-weight: 600; margin-bottom: 8px; }
.input {
  width: 100%; height: 56px; padding: 0 16px; border: 1.5px solid transparent; border-radius: var(--radius-m);
  background: var(--bg-2); font-size: 17px; outline: none; transition: border-color .15s, background .15s;
}
.input:focus { border-color: var(--accent); background: var(--bg); }
.input::placeholder { color: var(--text-3); }
.input.big { height: 60px; font-size: 20px; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 44px; padding: 0 18px; border-radius: 22px; border: 1.5px solid var(--line);
  background: var(--bg); font-weight: 600; font-size: 15px; color: var(--text-2);
}
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-weak); color: var(--accent); }

.segment { display: flex; background: var(--bg-2); border-radius: 12px; padding: 4px; gap: 4px; }
.segment button {
  flex: 1; height: 40px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; font-size: 15px; color: var(--text-3);
}
.segment button[aria-pressed="true"] { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

.option {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; margin-bottom: 10px; text-align: left;
  border: 1.5px solid var(--line); border-radius: var(--radius-m); background: var(--bg);
}
.option[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-weak); }
.option .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--bg-3); flex: none; display: grid; place-items: center; }
.option[aria-pressed="true"] .radio { border-color: var(--accent); }
.option[aria-pressed="true"] .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.option b { display: block; font-size: 16px; }
.option span.desc { display: block; font-size: 14px; color: var(--text-3); margin-top: 2px; }

.disclosure { border: 0; background: none; padding: 4px 0; font-size: 14px; color: var(--text-3); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* ── 지도 단계 ───────────────────────────────────── */
.map-stage { position: relative; flex: 1; min-height: 360px; }
.map-canvas { position: absolute; inset: 0; background: var(--bg-2); z-index: 0; }
.map-pin {
  position: absolute; left: 50%; top: 50%; z-index: 5; pointer-events: none;
  transform: translate(-50%, -100%); transition: transform .15s;
}
.map-pin.lift { transform: translate(-50%, calc(-100% - 10px)); }
.map-pin-shadow {
  position: absolute; left: 50%; top: 50%; z-index: 4; width: 14px; height: 6px; border-radius: 50%;
  background: rgba(0, 0, 0, .25); transform: translate(-50%, -50%); pointer-events: none;
}
.map-search {
  position: absolute; top: 12px; left: 16px; right: 16px; z-index: 10;
}
.map-search-box {
  display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 8px 0 16px;
  background: var(--bg); border-radius: var(--radius-m); box-shadow: var(--shadow-float);
}
.map-search-box input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16px; height: 100%; }
.map-results { margin-top: 8px; background: var(--bg); border-radius: var(--radius-m); box-shadow: var(--shadow-float); overflow: hidden; max-height: 280px; overflow-y: auto; }
.map-result { display: block; width: 100%; text-align: left; padding: 14px 16px; border: 0; border-top: 1px solid var(--line); background: var(--bg); }
.map-result:first-child { border-top: 0; }
.map-result:active { background: var(--bg-2); }
.map-result b { display: block; font-size: 15px; }
.map-result span { font-size: 13px; color: var(--text-3); }
.locate-btn {
  position: absolute; right: 16px; bottom: 16px; z-index: 10; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--bg); box-shadow: var(--shadow-float); display: grid; place-items: center; color: var(--text);
}
.map-sheet {
  position: relative; z-index: 15; background: var(--bg); border-radius: 22px 22px 0 0; margin-top: -20px;
  padding: 24px 20px calc(100px + var(--safe-b)); box-shadow: 0 -4px 20px rgba(0, 0, 0, .06);
}
.map-sheet .caption { margin-bottom: 4px; }
.place-name-input {
  width: 100%; border: 0; border-bottom: 1.5px solid var(--line); background: transparent; outline: none;
  font-size: 22px; font-weight: 700; padding: 6px 0 10px; letter-spacing: -0.02em;
}
.place-name-input:focus { border-bottom-color: var(--accent); }
.leaflet-container { font-family: inherit; }
.leaflet-control-attribution { font-size: 10px !important; }

/* ── 달력 ────────────────────────────────────────── */
.cal { user-select: none; -webkit-user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-title { font-size: 18px; font-weight: 700; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-wd div { text-align: center; font-size: 13px; color: var(--text-3); padding: 6px 0 10px; font-weight: 600; }
.cal-days { touch-action: none; row-gap: 4px; }
.cal-cell { position: relative; height: 48px; display: grid; place-items: center; }
.cal-cell[data-date] { cursor: pointer; }
.cal-day {
  position: relative; z-index: 1; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-size: 16px; font-weight: 600;
}
.cal-day.sun, .cal-wd .sun { color: #e5484d; }
.cal-day.sat, .cal-wd .sat { color: #3b82f6; }
.cal-cell.is-past .cal-day { color: var(--bg-3); }
.cal-cell.is-today .cal-day::after { content: ''; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); }
.cal-cell.in-range::before { content: ''; position: absolute; inset: 3px 0; background: var(--accent-weak); }
.cal-cell.is-start::before { left: 50%; }
.cal-cell.is-end::before { right: 50%; }
.cal-cell.is-start.is-end::before { display: none; }
.cal-cell.is-start .cal-day, .cal-cell.is-end .cal-day, .cal-cell.is-pending .cal-day { background: var(--accent); color: var(--accent-ink); }
.cal-cell.in-range:not(.is-start):not(.is-end) .cal-day { color: var(--accent); }
.cal-hint { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-m); background: var(--bg-2); color: var(--text-2); font-size: 14px; }
.shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ── 완료 / 코드 ─────────────────────────────────── */
.done-hero { text-align: center; padding-top: 40px; }
.check-circle { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.code-boxes { display: flex; justify-content: center; gap: 6px; margin: 28px 0 10px; }
.code-box {
  width: 46px; height: 58px; border-radius: 12px; background: var(--bg-2);
  display: grid; place-items: center; font-size: 26px; font-weight: 800; letter-spacing: 0;
}
.code-box.gap { width: 10px; background: none; }
.code-box.filled { background: var(--accent-weak); color: var(--accent); }
.code-box.active { box-shadow: inset 0 0 0 2px var(--accent); background: var(--bg); }
.code-entry { position: relative; }
.code-entry input { position: absolute; inset: 0; opacity: 0; width: 100%; font-size: 16px; text-transform: uppercase; }
.err { color: var(--danger); font-size: 14px; text-align: center; min-height: 20px; margin-top: 4px; }

/* ── 목록 ────────────────────────────────────────── */
.section-title { display: flex; align-items: center; justify-content: space-between; font-size: 18px; font-weight: 700; margin: 36px 0 8px; }
.list-item {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 0; border: 0; border-top: 1px solid var(--line);
  background: none; text-align: left;
}
.list-item:first-of-type { border-top: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .meta { font-size: 14px; color: var(--text-3); margin-top: 2px; }
.avatar-dot { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-weak); color: var(--accent); display: grid; place-items: center; font-weight: 800; flex: none; }
.empty { padding: 32px 0; text-align: center; color: var(--text-3); font-size: 15px; }
.skeleton { height: 64px; border-radius: 12px; background: linear-gradient(90deg, var(--bg-2), var(--bg-3), var(--bg-2)); background-size: 200% 100%; animation: sk 1.2s infinite; margin-bottom: 10px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ── 모임 페이지 ─────────────────────────────────── */
.meet-top { padding: 4px 20px 20px; }
.status-label { font-size: 14px; font-weight: 700; color: var(--accent); }
.meet-title { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.3; margin: 6px 0; }
.meet-meta { color: var(--text-2); font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.meet-meta .dot { color: var(--bg-3); }
.code-chip { border: 0; background: var(--bg-2); border-radius: 8px; padding: 3px 9px; font-weight: 700; font-size: 14px; letter-spacing: .06em; color: var(--text); }
.divider { height: 12px; background: var(--bg-2); }
.sec { padding: 24px 20px; }
.sec-title { font-size: 18px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: baseline; gap: 8px; }
.sec-title small { font-size: 14px; color: var(--text-3); font-weight: 600; }

.status-box { background: var(--bg-2); border-radius: var(--radius-l); padding: 18px; }
.status-box p { margin: 0; font-size: 16px; line-height: 1.55; }
.status-box b { color: var(--accent); }
.bar { height: 6px; background: var(--bg-3); border-radius: 6px; overflow: hidden; margin: 14px 0 10px; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 6px; transition: width .4s; }
.status-foot { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--text-3); }

.chat { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow-y: auto; }
.bubble { max-width: 84%; padding: 11px 14px; border-radius: 18px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; }
.bubble.assistant { background: var(--bg-2); border-bottom-left-radius: 6px; align-self: flex-start; }
.bubble.user { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; align-self: flex-end; }
.bubble.typing { color: var(--text-3); }
.typing-dots { display: inline-flex; gap: 4px; }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: blink 1.2s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .2s; }
.typing-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .25; } }
.composer { display: flex; gap: 8px; margin-top: 14px; align-items: center; }
.composer .input { height: 50px; font-size: 16px; }
.send-btn { width: 50px; height: 50px; flex: none; border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.send-btn:disabled { background: var(--bg-2); color: var(--text-3); }

.grid-wrap { overflow-x: auto; }
table.grid { border-collapse: separate; border-spacing: 5px; width: 100%; margin: 0 -5px; }
table.grid th { font-size: 13px; font-weight: 600; color: var(--text-3); padding: 0 2px; white-space: nowrap; }
table.grid th.date { text-align: left; color: var(--text); font-weight: 600; font-size: 14px; }
table.grid th.date.weekend { color: #e5484d; }
table.grid td { padding: 0; }
.cell { width: 100%; min-width: 56px; height: 44px; border-radius: 10px; border: 0; background: var(--bg-2); font-size: 14px; font-weight: 700; color: var(--text-2); }
.cell.sel { background: var(--accent); color: var(--accent-ink); }
.cell.heat { cursor: default; }
.cell.heat.pickable { cursor: pointer; }
.cell.best { box-shadow: inset 0 0 0 2px var(--text); }
.cell.picked { box-shadow: inset 0 0 0 2px var(--accent); }
.legend { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); margin-top: 10px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.rank { list-style: none; margin: 18px 0 0; padding: 0; }
.rank li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.rank li:first-child { border-top: 0; }
.rank .n { width: 24px; height: 24px; border-radius: 8px; background: var(--bg-2); font-size: 13px; font-weight: 800; display: grid; place-items: center; color: var(--text-2); }
.rank li:first-child .n { background: var(--accent); color: var(--accent-ink); }
.rank .grow { flex: 1; font-weight: 600; }
.rank .who { font-size: 13px; color: var(--text-3); text-align: right; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 6px 12px; border-radius: 99px; background: var(--bg-2); font-size: 14px; font-weight: 600; }
.tag.like { background: var(--accent-weak); color: var(--accent); }
.tag.avoid { color: var(--text-3); text-decoration: line-through; }

.place { padding: 16px; border-radius: var(--radius-m); border: 1.5px solid var(--line); margin-bottom: 10px; }
.place.voted { border-color: var(--accent); background: var(--accent-weak); }
.place-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.place h3 { margin: 0; font-size: 17px; }
.place .meta { font-size: 14px; color: var(--text-3); margin-top: 2px; }
.place .reason { font-size: 14px; color: var(--text-2); margin: 10px 0 12px; }
.place-actions { display: flex; gap: 8px; align-items: center; }
.place-actions .grow { flex: 1; }
.votes { font-size: 14px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.link-btn { font-size: 14px; font-weight: 600; color: var(--text-2); background: var(--bg-2); border-radius: 9px; padding: 8px 12px; white-space: nowrap; }
.place-actions .btn.sm { white-space: nowrap; }

.result { text-align: center; padding: 36px 20px 28px; }
.result .caption { font-weight: 600; }
.result .when { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 6px; }
.result .where { font-size: 18px; font-weight: 700; }
.result .addr { font-size: 14px; color: var(--text-3); margin-top: 2px; }
.result .actions { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }

.people { display: flex; flex-wrap: wrap; gap: 8px; }
.person { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; background: var(--bg-2); font-size: 14px; font-weight: 600; color: var(--text-3); }
.person.done { color: var(--text); }
.person.done::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

.host-box { border: 1.5px dashed var(--bg-3); border-radius: var(--radius-l); padding: 18px; }
.host-box p { margin: 0 0 14px; font-size: 14px; color: var(--text-2); }

/* ── 토스트 ──────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); z-index: 100;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: .22s;
  background: rgba(22, 24, 29, .92); color: #fff; padding: 12px 18px; border-radius: 14px;
  font-size: 15px; font-weight: 600; max-width: calc(100% - 40px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── 사진첩 ──────────────────────────────────────── */
.album { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.album-add, .album-item { aspect-ratio: 1; border: 0; border-radius: 10px; overflow: hidden; padding: 0; }
.album-add { background: var(--bg-2); color: var(--text-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; }
.album-add:disabled { cursor: default; }
.album-item { background: var(--bg-2); }
.album-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.viewer { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .94); display: flex; flex-direction: column; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.viewer-top { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 20px; color: #fff; font-size: 14px; font-weight: 600; }
.viewer-top .icon-btn { color: #fff; }
.viewer-top .icon-btn:active { background: rgba(255, 255, 255, .1); }
.viewer img { flex: 1; min-height: 0; width: 100%; object-fit: contain; padding-bottom: var(--safe-b); }

/* ── 지도 마커 ───────────────────────────────────── */
.mk-wrap { background: none; border: 0; }
.mk {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-size: 13px; font-weight: 800; color: #fff; background: #2b2f38; border: 2.5px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25); flex: none; line-height: 1;
}
.mk-wrap .mk { transform: translate(-50%, -50%); }
.mk-mine { background: var(--accent); }
.mk-place { background: #ff7a45; border-radius: 9px; }
.mk-center { width: 18px; height: 18px; background: var(--accent); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .25), 0 2px 6px rgba(0, 0, 0, .25); }
.pin-list .mk, .place-head .mk { box-shadow: none; border: 0; width: 24px; height: 24px; font-size: 12px; }

/* ── 출발 위치 목록 ──────────────────────────────── */
.sheet-row { display: flex; align-items: flex-end; gap: 12px; }
.sheet-row .grow { flex: 1; min-width: 0; }
.sheet-row .btn.sm { height: 44px; gap: 4px; }
.pin-list { margin-top: 8px; }
.pin-row { display: flex; align-items: center; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--line); }
.pin-row:last-child { border-bottom: 0; }
.pin-row .grow { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pin-row .by { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--text-3); }
.icon-btn.sm { width: 36px; height: 36px; color: var(--text-3); }

/* ── 장소 종류 / 스위치 ──────────────────────────── */
.type-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 28px; }
.type-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 112px;
  border: 1.5px solid var(--line); border-radius: var(--radius-l); background: var(--bg); color: var(--text-2); font-size: 16px; font-weight: 700;
  transition: border-color .15s, background .15s, transform .08s;
}
.type-tile:active { transform: scale(.97); }
.type-tile[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-weak); color: var(--accent); }
.switch-row {
  display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px; text-align: left;
  border: 0; border-radius: var(--radius-l); background: var(--bg-2);
}
.switch-row .grow { flex: 1; }
.switch-row b { display: block; font-size: 16px; }
.switch-row .desc { display: block; font-size: 14px; color: var(--text-3); margin-top: 2px; }
.switch { position: relative; width: 50px; height: 30px; border-radius: 15px; background: var(--bg-3); flex: none; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch-row[aria-pressed="true"] .switch { background: var(--accent); }
.switch-row[aria-pressed="true"] .switch::after { transform: translateX(20px); }

/* ── 모임 페이지 위치 지도 / 시트 ─────────────────── */
.mini-map { height: 200px; border-radius: var(--radius-l); overflow: hidden; background: var(--bg-2); z-index: 0; position: relative; }
.place-head { gap: 12px; align-items: center; }
.place-head .grow { flex: 1; min-width: 0; }
.notice { margin: 28px auto 12px; padding: 18px; border-radius: var(--radius-l); background: var(--bg-2); color: var(--text-2); font-size: 15px; line-height: 1.6; }
.sheet-modal { position: fixed; inset: 0; z-index: 150; background: var(--bg); overflow-y: auto; animation: up .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
.star { color: #f59e0b; font-weight: 800; }
.attribution { margin-top: 6px; text-align: right; font-size: 12px; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
