@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');
:root {
  --bg: #FFFFFF; --surface: #F6F5F3; --ink: #1A1816; --muted: #77716B; --line: #ECEAE6;
  --accent: #D9481C; --accent-ink: #FFFFFF; --accent-soft: #FDEEE8;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110; --surface: #1C1B1A; --ink: #F3F1EE; --muted: #9F9A94; --line: #2C2A28;
    --accent: #F0622F; --accent-ink: #FFFFFF; --accent-soft: #3A2219;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  font-size: 15px; line-height: 1.5; -webkit-text-size-adjust: 100%;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }

.page { padding: 16px 16px calc(84px + env(safe-area-inset-bottom)); max-width: 720px; margin: 0 auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: env(safe-area-inset-top); }
.title { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; margin: 0; }
.icons { display: flex; gap: 4px; }
.icon-btn { border: 0; background: none; padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.icon-btn:active { background: var(--line); }
.sub { color: var(--muted); margin: 2px 0 0; font-size: 14px; }
.couple { color: var(--accent); font-weight: 700; margin: 2px 0 0; font-size: 14px; }
.back { border: 0; background: none; padding: 8px 0; font-size: 15px; color: var(--muted); }

.memory, .card {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  margin-top: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
}
.memory b { font-weight: 600; }

.controls { margin-top: 14px; display: grid; gap: 10px; }
.segment { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--line); width: max-content; }
.segment button { border: 0; background: none; padding: 6px 16px; border-radius: 8px; font-weight: 600; color: var(--muted); }
.segment button.on { background: var(--surface); color: var(--ink); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.input {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
}
.input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
textarea.input { min-height: 80px; resize: vertical; }

.list { margin-top: 12px; display: grid; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
}
.row-main { flex: 1; min-width: 0; }
.row-name { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.count { text-align: center; min-width: 44px; }
.count-num { color: var(--accent); font-size: 22px; font-weight: 800; line-height: 1.1; }
.count-label { color: var(--muted); font-size: 11px; }
.tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; vertical-align: 1px; }
.empty { color: var(--muted); text-align: center; padding: 40px 12px; }

.fab {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom));
  border: 0; border-radius: 999px; padding: 14px 26px; background: var(--accent); color: var(--accent-ink);
  font-size: 16px; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.btn {
  display: block; width: 100%; border: 0; border-radius: 12px; padding: 14px; font-size: 16px; font-weight: 700;
  background: var(--accent); color: var(--accent-ink); text-align: center; text-decoration: none;
}
.btn.outline { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost { background: none; color: var(--muted); font-weight: 600; }
.btn:disabled { opacity: .5; }
.stack { display: grid; gap: 10px; }

.map { height: 62vh; min-height: 320px; margin-top: 12px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.map.small { height: 200px; min-height: 0; }
.pin {
  position: relative; display: flex; align-items: center; gap: 5px; max-width: 150px; padding: 5px 10px;
  border-radius: 999px; background: #fff; border: 1.5px solid #D9481C; color: #1E1A16; cursor: pointer;
  font: 600 13px/1.2 -apple-system, sans-serif; box-shadow: 0 1px 4px rgba(0,0,0,.2); transform: translateY(-7px); white-space: nowrap;
}
.pin span { overflow: hidden; text-overflow: ellipsis; }
.pin b { color: #D9481C; }
.pin.sel { background: #D9481C; color: #fff; }
.pin.sel b { color: #fff; }

h2 { font-size: 24px; margin: 6px 0 2px; letter-spacing: -0.3px; }
h3 { font-size: 13px; color: var(--muted); margin: 22px 0 8px; font-weight: 600; }
.notice { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-weight: 600; }
.visit { padding: 12px 0; border-bottom: 1px solid var(--line); }
.visit-top { display: flex; justify-content: space-between; gap: 8px; }
.visit-date { font-weight: 600; }
.visit-meta { color: var(--muted); font-size: 13px; }
.visit-note { margin-top: 2px; }
.visit-note.muted { color: var(--muted); }
.visit-actions { display: flex; gap: 12px; margin-top: 4px; }
.link { border: 0; background: none; padding: 0; color: var(--muted); font-size: 13px; text-decoration: underline; }
.link.danger { color: #C0392B; }

.login { max-width: 420px; margin: 0 auto; padding: 56px 20px; }
.login h1 { font-size: 40px; margin: 0 0 6px; letter-spacing: -1px; }
.login p { color: var(--muted); margin: 0 0 28px; }
.err { color: #C0392B; font-size: 14px; min-height: 20px; }
.help { color: var(--muted); font-size: 13px; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.code { font-size: 28px; font-weight: 800; letter-spacing: 4px; }

#toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.us { display: grid; gap: 4px; width: 100%; text-align: left; margin-top: 12px; padding: 14px; border: 0; border-radius: 14px; background: var(--accent-soft); }
.us.invite { background: var(--surface); border: 1px solid var(--line); }
.us-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 16px; }
.us-days { color: var(--accent); font-size: 20px; font-weight: 800; }
.us-action { color: var(--accent); font-weight: 700; margin-top: 4px; }
.news { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 6px 0; text-align: left; }
.news i { width: 6px; height: 6px; border-radius: 3px; background: var(--accent); flex: none; }
.news span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news small { color: var(--muted); font-size: 12px; }
.pin.together { background: #FBE6DC; border-width: 2px; }
.pin.wish { border-style: dashed; border-color: #7A7168; color: #4A433C; }
.sheet-wrap { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; justify-content: center; z-index: 20; }
.sheet { display: grid; gap: 12px; width: 100%; max-width: 560px; background: var(--bg); padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }
.sheet .field-row .btn { flex: 1; }

.row.picked { border-color: var(--accent); }
.check { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; }
.check.on { background: var(--accent); border-color: var(--accent); }
.pickbar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.pickbar .btn { flex: 1; }

/* 2026-11-08 v8: 그라데이션·이모지 없이 평평하게, 첫 화면은 대시보드 */
:root { --bg: #F7F6F4; --card: #FFFFFF; --surface: #F1EFEC; --line: #E8E5E1; --ink: #1E1B18; --muted: #86807A; --accent: #E2552B; --accent-soft: #FCEDE7; }
@media (prefers-color-scheme: dark) { :root { --bg: #121110; --card: #1C1B19; --surface: #262421; --line: #2E2B28; --ink: #F2EFEB; --muted: #9C968F; --accent-soft: #3A2219; } }
body { font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', sans-serif; letter-spacing: -0.2px; }
.top { align-items: flex-end; padding-top: calc(8px + env(safe-area-inset-top)); }
.today { color: var(--muted); font-size: 13px; font-weight: 600; }
.title { font-size: 26px; }
h2 { font-size: 22px; } .muted-num { color: var(--muted); font-weight: 600; }
.icon-btn { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }

.row, .card, .memory, .stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.list { gap: 8px; margin-top: 0; }
.kind { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--ink); }
.row.picked { border-color: var(--accent); background: var(--accent-soft); }
.tag { border-radius: 999px; padding: 0 7px; font-size: 11px; }
.count-num { font-size: 20px; font-variant-numeric: tabular-nums; }
.count.zero .count-num { color: var(--muted); }

.couple-line { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-align: left; font-size: 14px; color: var(--ink); }
.couple-line b { margin-left: auto; color: var(--accent); }
.couple-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
@media (max-width: 480px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { display: grid; gap: 0; text-align: left; padding: 10px 14px; }
.stat b { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }
.sec { margin-top: 22px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.sec-head h3 { margin: 0; font-size: 15px; color: var(--ink); font-weight: 700; }
.card.col { display: grid; gap: 0; padding: 4px 14px; margin-top: 0; }
.rank { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 10px 0; text-align: left; }
.rank + .rank { border-top: 1px solid var(--line); }
.rank em { font-style: normal; font-weight: 800; color: var(--accent); width: 14px; }
.rank span { flex: 1; font-weight: 600; } .rank small { color: var(--muted); }
.card.col .news + .news { border-top: 1px solid var(--line); }
.news { padding: 10px 0; }
.memory { margin-top: 10px; }

.input, .chip { background: var(--card); border: 1px solid var(--line); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.segment { background: var(--surface); }
.segment button.on { background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.fab { background: var(--ink); color: var(--bg); box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.btn.outline { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.btn.danger { background: var(--card); color: #C0392B; border: 1px solid #E8C4BE; }
.map { border: 1px solid var(--line); }
.sheet, .pickbar { background: var(--bg); }
.login-mark { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; background: var(--accent); color: #fff; font-size: 26px; font-weight: 800; }
#list { margin-top: 14px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.photos .help { grid-column: 1 / -1; margin: 0; }
.ph { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 15px; line-height: 1; }
.btn.sns { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; }
.btn.kakao { background: #FEE500; color: #191919; }
.btn.google { background: #FFFFFF; color: #1F1F1F; border: 1px solid #DADCE0; }
.or { display: flex; align-items: center; gap: 10px; margin: 22px 0 12px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
/* v11: 목록은 한 덩어리 카드 + 구분선, 업종 색, 대시보드 달력·업종 막대 */
.list { gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.list:has(> .empty) { background: none; border: 0; }
.list .row { border: 0; border-radius: 0; background: none; box-shadow: none; }
.list .row + .row { border-top: 1px solid var(--line); }
.list .row:active { background: var(--surface); transform: none; }
.list .row.picked { background: var(--accent-soft); }
.kind { background: var(--kb, var(--surface)); }
@media (prefers-color-scheme: dark) { .kind { background: var(--surface); } }
.card.pad { padding: 14px; }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 10px; }
.dash-grid .card { margin-top: 0; }
@media (max-width: 520px) { .dash-grid { grid-template-columns: 1fr; } .nums { grid-template-columns: repeat(2, 1fr) !important; grid-auto-flow: row !important; } .nums button + button { border-top: 0 !important; border-left: 1px solid var(--line); padding-left: 12px !important; } }
.month-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.month-head b { font-size: 17px; } .month-head span { color: var(--muted); font-size: 13px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal em { font-style: normal; font-size: 11px; color: var(--muted); padding-bottom: 2px; }
.cal i { font-style: normal; font-size: 12px; line-height: 28px; height: 28px; border-radius: 8px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal i.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.cal i.on.both { background: var(--accent); color: #fff; }
.cal i.today { outline: 1.5px solid var(--ink); outline-offset: -1.5px; }
.cal-key { display: flex; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.cal-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; background: var(--accent-soft); }
.cal-key i.both { background: var(--accent); }
.nums { display: grid; grid-auto-flow: row; align-content: stretch; padding: 4px 14px !important; }
.nums button { display: flex; flex-direction: column; justify-content: center; border: 0; background: none; text-align: left; padding: 10px 0; }
.nums button + button { border-top: 1px solid var(--line); }
.nums b { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.nums span { color: var(--muted); font-size: 13px; }
.bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.legend b { color: var(--muted); font-weight: 600; }
.visit { position: relative; }
.visit-note { display: block; width: 100%; border: 0; background: none; padding: 2px 0 0; text-align: left; }
.visit .link { margin-top: 4px; text-decoration: none; color: var(--accent); font-weight: 600; }
.visit-del { position: absolute; right: 0; bottom: 12px; border: 0; background: none; padding: 0; color: var(--muted); font-size: 12px; }
/* 설정: 큰 버튼 대신 한 줄짜리 묶음 목록 */
.group { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.gr { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px; border: 0; background: none; text-align: left; color: var(--ink); text-decoration: none; font-size: 15px; }
.group > * + * { border-top: 1px solid var(--line); }
.gr > span { flex: 1; }
.gr b { font-weight: 600; color: var(--muted); }
.gr i { font-style: normal; color: var(--muted); font-size: 18px; }
.gr small { color: var(--muted); font-size: 12px; }
button.gr:active, a.gr:active { background: var(--surface); }
.gr.danger { color: #C0392B; }
.gr-date { border: 0; background: none; color: var(--muted); font: inherit; text-align: right; }
.gr-input { flex: 1; border: 0; background: none; padding: 12px 0; outline: none; letter-spacing: 1px; }
.gr-btn { border: 0; background: var(--ink); color: var(--bg); border-radius: 8px; padding: 6px 14px; font-weight: 700; font-size: 14px; }
.group-help { color: var(--muted); font-size: 12.5px; margin: 6px 4px 0; }
.month-head { align-items: center; gap: 4px; }
.month-head span { margin-left: auto; }
.mnav { border: 0; background: var(--surface); width: 28px; height: 28px; border-radius: 8px; font-size: 18px; line-height: 1; color: var(--ink); }
.mnav:disabled { opacity: .3; }
.cal button { font: inherit; font-size: 12px; line-height: 28px; height: 28px; border: 0; border-radius: 8px; padding: 0; font-variant-numeric: tabular-nums; }
.cal .on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.cal .on.both { background: var(--accent); color: #fff; }
.cal .today { outline: 1.5px solid var(--ink); outline-offset: -1.5px; }
.cal .pick { outline: 2px solid var(--ink); outline-offset: 1px; }
.day-list { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.day-list small { color: var(--muted); }
.day-list button { border: 0; background: none; padding: 6px 0; text-align: left; font-weight: 600; }
.cal .on { background: var(--accent); color: #fff; }
/* 직접 만든 모달 (기본 confirm 대체) */
.modal-wrap { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(20,16,12,.42); animation: fade .15s ease-out; }
.modal { width: 100%; max-width: 360px; display: grid; gap: 12px; padding: 22px 20px 16px; border-radius: 18px; background: var(--card); box-shadow: 0 20px 50px rgba(0,0,0,.25); animation: pop .18s ease-out; }
.modal-title { font-size: 17px; line-height: 1.4; }
.modal-body { margin: -4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.modal-body b { color: var(--ink); }
.modal-phrase { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.modal-phrase b { color: #C0392B; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.mbtn { border: 0; border-radius: 12px; padding: 12px; font-weight: 700; font-size: 15px; background: var(--surface); color: var(--ink); }
.mbtn.primary { background: var(--ink); color: var(--bg); }
.mbtn.danger { background: #D63A2B; color: #fff; }
.mbtn:disabled { opacity: .35; cursor: not-allowed; }
@keyframes fade { from { opacity: 0 } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98) } }
/* 지도 핀: 빨간 테두리 대신 흰 알약 + 업종 색 점 */
.pin { border: 1px solid rgba(0,0,0,.12); color: #1E1B18; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.pin i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.pin b { color: #6B645D; font-weight: 700; }
.pin.wish { background: rgba(255,255,255,.92); border: 1px dashed #A39A91; color: #6B645D; }
.pin.together { background: #fff; border-width: 1px; }
.pin.sel { background: #1E1B18; color: #fff; border-color: #1E1B18; }
.pin.sel b { color: #fff; }
/* 날짜 고르기 모달 */
.dp { border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-title { border: 0; background: none; font-weight: 800; font-size: 16px; padding: 4px 8px; border-radius: 8px; }
.dp-title small { color: var(--muted); font-size: 11px; }
.dp-title:active { background: var(--surface); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dp-grid em { font-style: normal; font-size: 11px; color: var(--muted); padding: 2px 0 4px; }
.dp-grid button { border: 0; background: none; height: 36px; border-radius: 10px; font-size: 14px; font-variant-numeric: tabular-nums; }
.dp-grid button:hover:not(:disabled) { background: var(--surface); }
.dp-grid button.now { font-weight: 800; color: var(--accent); }
.dp-grid button.on, .dp-grid button.on:hover { background: var(--ink); color: var(--bg); font-weight: 700; }
.dp-grid button:disabled { color: var(--line); cursor: default; }
.dp-years { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; max-height: 236px; overflow-y: auto; }
.dp-years button { border: 0; background: none; padding: 10px 0; border-radius: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dp-years button.on { background: var(--ink); color: var(--bg); }
.dp-picked { margin: 0; text-align: center; font-size: 14px; font-weight: 600; }
/* 달력 선택·오늘: 검은 테두리 대신 */
.cal .today { outline: none; color: var(--accent); font-weight: 800; }
.cal .on.today { color: #fff; }
.cal .pick { outline: none; background: var(--ink) !important; color: var(--bg) !important; }
/* 고른 날: 검정 대신 주황 그대로 살짝 띄우기 */
.cal .pick { background: var(--accent) !important; color: #fff !important; transform: scale(1.12); box-shadow: 0 4px 12px rgba(226,85,43,.35); position: relative; z-index: 1; }
/* 달력: 간 날은 주황 테두리, 고른 날은 주황으로 칠하기 */
.cal .on { background: none; color: var(--accent); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal .today { color: var(--ink); font-weight: 800; }
.cal .on.today { color: var(--accent); }
.cal .pick { background: var(--accent) !important; color: #fff !important; transform: none; box-shadow: none; }
/* 저장 버튼: 오른쪽 아래 동그란 + 하나, 설정은 톱니 아이콘 */
.fab { left: auto; right: 20px; transform: none; width: 56px; height: 56px; padding: 0; border-radius: 50%; display: grid; place-items: center; bottom: calc(24px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { .fab { right: calc(50% - 360px + 8px); } }
.icon-round { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; padding: 0; }
.icon-round:active { background: var(--surface); }
.nums > div { display: flex; flex-direction: column; justify-content: center; padding: 10px 0; }
.nums > * + * { border-top: 1px solid var(--line); }
.nums button span { color: var(--muted); }
.visit .link + .visit-del { }
@media (max-width: 520px) { .nums > * + * { border-top: 0 !important; border-left: 1px solid var(--line); padding-left: 12px !important; } }
.cal i.today, .cal button.today { outline: none !important; }
@media (max-width: 520px) { .nums > * + * { border-left: 1px solid var(--line) !important; } }
/* 방문 줄: 글은 왼쪽, 메모·날짜·삭제 아이콘은 오른쪽 */
.visit { display: flex; align-items: flex-start; gap: 8px; }
.visit-main { flex: 1; min-width: 0; }
.visit-note { margin-top: 2px; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.visit-tools { display: flex; gap: 2px; flex: none; }
.tool { width: 34px; height: 34px; border: 0; border-radius: 10px; background: none; color: var(--muted); display: grid; place-items: center; padding: 0; }
.tool svg { width: 18px; height: 18px; }
.tool:hover, .tool:active { background: var(--surface); color: var(--ink); }
.tool.danger:hover, .tool.danger:active { color: #C0392B; }
.search-row { display: flex; gap: 8px; margin-top: 12px; }
.search-row .input { flex: 1; }
.search-btn { flex: none; display: flex; align-items: center; gap: 6px; border: 0; border-radius: 12px; padding: 0 16px; background: var(--ink); color: var(--bg); font-weight: 700; }
#res { margin-top: 14px; }
.dp-unknown { border: 1px dashed var(--line); background: none; border-radius: 12px; padding: 10px; color: var(--muted); font-weight: 600; }
/* 검색: 입력칸 안 오른쪽에 돋보기만 */
.search-row { position: relative; gap: 0; }
.search-row .input { padding-right: 44px; }
.search-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; padding: 0; justify-content: center; background: none; color: var(--muted); border-radius: 10px; }
.search-btn:active { background: var(--surface); color: var(--ink); }

/* 여행 일정 */
.trip-row { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; padding: 12px 0; text-align: left; color: var(--ink); }
.card.col .trip-row + .trip-row { border-top: 1px solid var(--line); }
.trip-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.trip-main b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-main small { color: var(--muted); font-size: 13px; }
.trip-row em { flex: none; font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 8px; border-radius: 999px; background: var(--surface); }
.trip-row em.live { color: var(--accent); background: var(--accent-soft); }
.trip-row.more { justify-content: center; color: var(--muted); font-size: 13px; }
.trip-empty { width: 100%; display: grid; gap: 2px; text-align: left; padding: 14px; border: 1px dashed var(--line); border-radius: 16px; background: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.trip-empty span { color: var(--muted); font-weight: 400; font-size: 13px; }
.trip-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-top: 4px; }
.trip-head h2 { margin: 0; }
.trip-head .sub { margin: 4px 0 0; }
.trip-head .sub b { color: var(--accent); }
.tools { display: inline-flex; gap: 2px; flex: none; }
.tool:disabled { opacity: .25; background: none; }
.day-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 14px; padding-bottom: 2px; }
.day-tabs::-webkit-scrollbar { display: none; }
.day-tab { flex: none; display: grid; gap: 1px; text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 7px 12px; color: var(--ink); }
.day-tab b { font-size: 14px; }
.day-tab small { font-size: 12px; color: var(--muted); }
.day-tab.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.day-tab.on b { color: var(--accent); }
.trip-map { height: 240px; min-height: 0; }
.stops { margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.stops:has(.empty) { background: none; border-style: dashed; }
.stop { display: flex; align-items: center; gap: 10px; padding: 10px 6px 10px 12px; }
.stop + .stop { border-top: 1px solid var(--line); }
.stop > em { flex: none; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-style: normal; font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.stop-main { flex: 1; min-width: 0; display: grid; gap: 2px; border: 0; background: none; padding: 0; text-align: left; color: var(--ink); }
.stop-name { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stop-name i { font-style: normal; color: var(--accent); font-weight: 700; margin-right: 6px; font-variant-numeric: tabular-nums; }
.stop-main small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stop-memo { font-size: 13px; color: var(--ink); opacity: .8; white-space: pre-wrap; }
.stop .tools .tool { width: 30px; height: 30px; }
.add-stop { margin-top: 12px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; }
.add-stop svg { width: 18px; height: 18px; }
.tpin { display: flex; align-items: center; gap: 4px; background: #fff; color: #1E1B18; border-radius: 999px; padding: 2px 8px 2px 2px; font-size: 12px; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.25); white-space: nowrap; max-width: 140px; }
.tpin span { overflow: hidden; text-overflow: ellipsis; }
.tpin em { flex: none; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.trip-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trip-dates button { display: grid; gap: 2px; text-align: left; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 10px 12px; color: var(--ink); }
.trip-dates small, .stop-fields small { color: var(--muted); font-size: 12px; }
.trip-dates b { font-size: 15px; }
.stop-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stop-fields label { display: grid; gap: 4px; }
.modal textarea.input { resize: vertical; min-height: 72px; font: inherit; }
.add-sheet { max-height: 86vh; grid-template-rows: auto auto 1fr; }
.add-head { display: flex; align-items: center; justify-content: space-between; }
.add-head .btn { width: auto; padding: 6px 10px; min-height: 0; }
.add-list { overflow-y: auto; display: grid; gap: 6px; align-content: start; min-height: 120px; }
.add-label { color: var(--muted); font-size: 12px; margin-top: 6px; }
.add-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; }
.add-row .row-main { flex: 1; min-width: 0; }
.kind-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.add-mark { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: var(--accent); background: var(--accent-soft); }
.add-row.done { opacity: .55; }
.add-row.done .add-mark { font-size: 11px; width: auto; padding: 0 8px; border-radius: 999px; color: var(--muted); background: var(--surface); }

/* 휴대폰 키보드가 올라오면 보이는 영역(visualViewport)에 맞춰 모달·시트를 줄인다 */
.sheet-wrap, .modal-wrap { top: var(--vvt, 0px); bottom: auto; height: var(--vvh, 100dvh); }
.modal-wrap { overflow-y: auto; }
.modal-wrap .modal { max-height: calc(var(--vvh, 100dvh) - 24px); overflow-y: auto; }
.add-sheet { display: flex; flex-direction: column; gap: 10px; height: min(86dvh, calc(var(--vvh, 100dvh) - 24px)); max-height: none; }
.add-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.add-list { display: block; }
.add-list > * { display: block; }
.add-list > .list { display: grid; overflow: visible; margin: 6px 0 10px; }
.add-label { display: block; }
.stop.end > em { width: auto; padding: 0 8px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 11px; }
.end-adds { display: flex; gap: 8px; margin-top: 8px; }
.end-add { flex: 1; border: 1px dashed var(--line); background: none; border-radius: 12px; padding: 10px; color: var(--muted); font-size: 14px; font-weight: 600; }
.tpin.end em { width: auto; padding: 0 6px; border-radius: 999px; background: #1E1B18; }
.stop.end.approx > em { background: #3567C9; }
.approx-btn { border: 1px dashed #3567C9; color: #3567C9; background: none; border-radius: 12px; padding: 10px; font-weight: 600; font-size: 14px; }
.approx-map { height: 260px; border-radius: 12px; overflow: hidden; background: var(--line); }
.shared-top { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; }
.shared-top b { color: var(--accent); font-size: 16px; }
.shared-top span { color: var(--muted); font-size: 13px; }
.page.ro .stop-main { cursor: pointer; }
.tpin.approx em { background: #3567C9; }
.same-btn { display: grid; gap: 2px; text-align: left; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--ink); border-radius: 12px; padding: 10px 12px; }
.same-btn b { font-size: 15px; color: var(--accent); }
.same-btn small { color: var(--muted); font-size: 13px; }
.hours { margin-top: 6px; }
.hours:empty { display: none; }
.hours-head { display: flex; align-items: baseline; gap: 8px; border: 0; background: none; padding: 2px 0; font-size: 14px; color: var(--ink); }
.hours-head b.on { color: #2F8F5B; }
.hours-head b.warn { color: #C77A12; }
.hours-head b.off { color: var(--muted); }
.hours-head span { color: var(--muted); }
.hours-head i { font-style: normal; color: var(--muted); font-size: 11px; }
.hours ul { list-style: none; margin: 6px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); display: grid; gap: 4px; font-size: 13px; }
.hours li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.hours li.today { color: var(--ink); font-weight: 700; }
.stop-hours:empty { display: none; }
.stop-hours { color: #2F8F5B !important; }
.stop-hours.off { color: #C0392B !important; }
.stop-hours.unk, .hours-unk { color: var(--muted) !important; font-size: 13px; }

/* 여행: 탭·날씨·거리·하트 */
.trip-seg { display: flex; width: 100%; margin-top: 14px; }
.trip-seg button { flex: 1; padding: 7px 4px; font-size: 13px; white-space: nowrap; }
.day-tab .wx { display: flex; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); min-height: 0; }
.day-tab .wx:empty { display: none; }
.day-tab .wx svg { width: 13px; height: 13px; }
.day-wx { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.day-wx:empty { display: none; }
.day-wx svg { width: 18px; height: 18px; color: var(--ink); }
.day-wx b { color: var(--ink); font-size: 14px; }
.leg { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 12px 4px 46px; font-size: 12px; color: var(--muted); text-decoration: none; background: var(--surface); }
.leg b { color: var(--accent); font-weight: 600; }
.stops > .leg + .stop { border-top: 0; }
.stop-by { color: var(--muted); }
.tool.heart { position: relative; }
.tool.heart.on { color: #E0475B; }
.tool.heart.on svg { fill: #E0475B; }
.tool.heart b { position: absolute; right: 1px; top: 1px; font-size: 9px; color: #E0475B; }
.trip-sum { display: grid; gap: 10px; margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--accent-soft); }
.trip-sum > div { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.trip-sum span { color: var(--muted); font-size: 13px; }
.trip-sum small { color: var(--muted); }
.log-list { display: grid; gap: 4px; max-height: 50vh; overflow-y: auto; }
.log-list label { display: flex; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.log-list input { width: 18px; height: 18px; accent-color: var(--accent); }
.log-list span { display: grid; }
.log-list small { color: var(--muted); font-size: 12px; }
.near-btn { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px; font-weight: 600; font-size: 14px; color: var(--ink); }
/* 준비물 */
.checklist { margin-top: 14px; }
.pack { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.pack + .pack { border-top: 1px solid var(--line); }
.pack > span { flex: 1; font-size: 15px; }
.pack > span small { margin-left: 6px; color: var(--muted); font-size: 12px; }
.pack.done > span { color: var(--muted); text-decoration: line-through; }
.ck { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line); background: var(--card); display: grid; place-items: center; padding: 0; color: #fff; }
.pack.done .ck { background: var(--accent); border-color: var(--accent); }
.ck svg { width: 16px; height: 16px; }
/* 가계부 */
.money-total { margin-top: 14px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 2px; }
.money-total span, .money-total small { color: var(--muted); font-size: 13px; }
.money-total b { font-size: 26px; font-variant-numeric: tabular-nums; }
.money-day { margin-top: 14px; }
.money-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.money-head span { color: var(--accent); font-weight: 700; }
.money-line { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.money-line span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.money-line b { font-variant-numeric: tabular-nums; }
.money-line .tool { width: 28px; height: 28px; }
.money-day .end-add { width: 100%; margin-top: 6px; padding: 8px; font-size: 13px; }
.album-day { margin-top: 16px; }
.album-day > b { display: block; margin-bottom: 6px; }
/* 대시보드 */
.today-trip { width: 100%; display: grid; gap: 4px; text-align: left; margin-top: 12px; padding: 16px; border: 1.5px solid var(--accent); border-radius: 16px; background: var(--card); color: var(--ink); }
.today-trip small { color: var(--accent); font-weight: 700; font-size: 12px; }
.today-trip b { font-size: 18px; }
.today-trip .next { font-size: 14px; color: var(--muted); }
.today-trip .next em { font-style: normal; color: var(--ink); font-weight: 700; }
.chips-line { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.chips-line i { font-style: normal; font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--surface); }
.anniv { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font-size: 14px; text-align: left; }
.anniv b { color: var(--accent); }
.anniv em { flex: none; font-style: normal; color: var(--accent); font-weight: 700; font-size: 13px; }
.region-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.region-chips::-webkit-scrollbar { display: none; }
.region-chips button { flex: none; display: grid; gap: 1px; text-align: left; min-width: 104px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); }
.region-chips b { font-size: 15px; }
.region-chips span { color: var(--muted); font-size: 12px; }
.region-chips em { font-style: normal; color: var(--accent); font-size: 12px; font-weight: 700; margin-top: 4px; }
.muted-s { color: var(--muted); font-size: 12px; }
.sido-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.sido { aspect-ratio: 1.15; border-radius: 10px; display: grid; place-items: center; align-content: center; gap: 0; background: var(--surface); color: var(--muted); }
.sido b { font-size: 13px; }
.sido small { font-size: 11px; min-height: 13px; }
.sido.l1 { background: #FCE3D8; color: #8A3A1A; }
.sido.l2 { background: #F7B89D; color: #6E2B10; }
.sido.l3 { background: #EC7A4E; color: #fff; }
.sido.l4 { background: #D9481C; color: #fff; }
@media (prefers-color-scheme: dark) { .sido.l1 { background: #4A2A1E; color: #F3C6B2; } .sido.l2 { background: #7A3B22; color: #FBE2D6; } }
.year-nav { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 14px; }
.year-nav h2 { margin: 0; }
.year-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.year-grid div { padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 2px; }
.year-grid b { font-size: 28px; color: var(--accent); font-variant-numeric: tabular-nums; }
.year-grid span { color: var(--muted); font-size: 13px; }
.year-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 110px; margin-top: 8px; }
.year-bars div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.year-bars i { width: 100%; min-height: 2px; background: var(--accent); border-radius: 4px 4px 0 0; }
.year-bars small { font-size: 10px; color: var(--muted); }
.year-line { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.year-line b { color: var(--ink); }
.year-grid + .card { margin-top: 12px; }

/* 여행 일정: 날짜를 세로로 */
.map-wrap { position: relative; margin-top: 12px; }
.map-wrap .trip-map { margin-top: 0; }
.map-tag { position: absolute; left: 10px; top: 10px; z-index: 2; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.days { display: grid; gap: 18px; margin-top: 16px; }
.day-sec { display: grid; gap: 8px; padding-left: 12px; border-left: 2px solid var(--line); }
.day-sec.focus { border-left-color: var(--accent); }
.day-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; border: 0; background: none; padding: 0; text-align: left; color: var(--ink); }
.day-head b { font-size: 16px; }
.day-sec.focus .day-head b { color: var(--accent); }
.day-head > span { color: var(--muted); font-size: 13px; }
.day-head em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.day-sec.focus .day-head em { color: var(--accent); font-weight: 700; }
.day-head .wx { flex-basis: 100%; display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.day-head .wx:empty { display: none; }
.day-head .wx svg { width: 15px; height: 15px; color: var(--ink); }
.day-head .wx span { color: var(--ink); }
.day-head .wx small { color: var(--muted); }
.day-sec .stops { margin-top: 0; }
.day-empty { margin: 0; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 13px; text-align: center; }
.day-sec .end-adds { margin-top: 0; flex-wrap: wrap; }
.end-add.solid { border-style: solid; color: var(--ink); background: var(--card); }
.days.one .day-sec { border-left: 0; padding-left: 0; }
.day-tab.all small { white-space: nowrap; }
.days.one .day-head em { display: none; }
.day-pick { position: relative; margin-top: 14px; }
.day-pick-btn { display: flex; align-items: baseline; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 9px 12px; color: var(--ink); }
.day-pick-btn b { font-size: 15px; }
.day-pick-btn small { color: var(--muted); font-size: 12px; }
.day-pick-btn i { font-style: normal; color: var(--muted); font-size: 11px; margin-left: 4px; }
.day-menu { position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; min-width: 200px; max-height: 320px; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: 4px; display: grid; }
.day-menu[hidden] { display: none; }
.day-menu button { display: flex; align-items: baseline; gap: 8px; border: 0; background: none; padding: 10px 12px; border-radius: 10px; text-align: left; color: var(--ink); }
.day-menu button small { color: var(--muted); font-size: 12px; }
.day-menu button.on { background: var(--accent-soft); }
.day-menu button.on b { color: var(--accent); }
/* 전체 일정: 지도를 위에 붙여 두고 스크롤 따라 날짜를 바꾼다 */
.plan .map-wrap { position: sticky; top: 0; z-index: 5; background: var(--bg); padding-top: 6px; margin-top: 6px; }
.plan .map-wrap .trip-map { height: 210px; }
.map-wrap .map-tag { top: 16px; }
.day-sec, .day-sec.focus { border-left: 0; padding-left: 0; }
.day-map { height: 180px; min-height: 0; margin-top: 0; }
.plan .map-wrap { position: static; padding-top: 0; }
.plan .map-wrap .trip-map { height: 240px; }
.days { gap: 28px; }
.day-sec.focus .day-head b { color: var(--ink); }
[hidden] { display: none !important; }
#tab-body { margin-top: 14px; }
#tab-body > .checklist, #tab-body > .money-total { margin-top: 0; }
.sub-head { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.sub-head b { font-size: 17px; }
.sub-head small { color: var(--accent); font-size: 14px; margin-left: 4px; }
.tool.on { background: var(--accent-soft); color: var(--accent); }
.tool { position: relative; }
.tbadge { position: absolute; top: 1px; right: 0; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10px; line-height: 15px; text-align: center; }
.trip-head .tools .tool { width: 32px; }
.stop-pics { display: flex; gap: 4px; margin-top: 4px; }
.stop-pics:empty { display: none; }
.stop-pics img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
.stop-pics i { width: 44px; height: 44px; border-radius: 8px; background: var(--surface); display: grid; place-items: center; font-style: normal; font-size: 12px; color: var(--muted); }
label.tool { cursor: pointer; }
.album-day .ph small { position: absolute; left: 4px; bottom: 4px; right: 4px; font-size: 10px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stop .tools { flex-wrap: wrap; justify-content: flex-end; max-width: 96px; }

/* 로고 + 장소/여행 스위치 */
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { display: flex; align-items: center; gap: 3px; margin: 0; font-size: 25px; font-weight: 900; letter-spacing: -1.2px; color: var(--ink); line-height: 1; }
.logo-mark { flex: none; transform: translateY(-1px); }
.space-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 0; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; }
.space-switch i { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--ink); transition: transform .18s ease; }
.space-switch.trip i { transform: translateX(100%); }
.space-switch.food.flip i { transform: translateX(100%); }
.space-switch.trip.flip i { transform: none; }
.space-switch span { position: relative; padding: 6px 12px; font-size: 13px; font-weight: 800; color: var(--muted); transition: color .17s; }
.space-switch.food span:first-of-type, .space-switch.trip span:last-of-type { color: var(--bg); }
.space-switch.flip span { color: var(--muted); }
.space-switch.food.flip span:last-of-type, .space-switch.trip.flip span:first-of-type { color: var(--bg); }

/* 최근 다녀온 곳: 가로 카드 */
.r-strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; }
.r-strip::-webkit-scrollbar { display: none; }
.r-card { position: relative; flex: none; width: 128px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px; border: 0; border-radius: 16px; background: var(--kb); color: var(--ink); text-align: left; scroll-snap-align: start; font: inherit; cursor: pointer; }
.r-stamp { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; align-items: center; font-size: 10px; font-weight: 700; color: var(--kc); line-height: 1.1; transform: rotate(6deg); padding: 3px 6px; border: 1.5px solid var(--kc); border-radius: 8px; }
.r-stamp b { font-size: 15px; }
.r-ico { color: var(--kc); margin-bottom: 26px; }
.r-name { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r-card small { font-size: 12px; color: var(--muted); }

/* 자주 간 곳: 차오르는 막대 */
.t-bars { padding: 6px; gap: 4px; }
.t-bar { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 0; border-radius: 10px; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; overflow: hidden; }
.t-bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--kc); border-radius: 10px; }
.t-bar > *:not(i) { position: relative; }
.t-bar em { font-style: normal; font-weight: 900; font-size: 13px; color: var(--muted); width: 14px; }
.t-bar span { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-bar b { font-size: 17px; font-weight: 900; }
.t-bar b small { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 1px; }

/* 가고 싶은 곳: 티켓 */
.w-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.w-ticket { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 96px; padding: 12px 14px 12px 16px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--card); text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.w-ticket small { font-size: 11px; font-weight: 800; color: var(--kc); }
.w-ticket b { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.w-ticket span { margin-top: auto; font-size: 12px; color: var(--muted); }

/* 가고 싶은 곳 투표 */
.w-heart { position: absolute; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 3px; padding: 6px 8px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.w-heart.on { color: var(--accent); }
.w-heart em { font-style: normal; font-size: 12px; font-weight: 800; }
.w-ticket.both { border: 1.5px solid var(--accent); background: var(--accent-soft); }
.w-ticket.both small { color: var(--accent); }
.like-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.like-row.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.like-row small { margin-left: auto; font-weight: 600; color: var(--muted); }
