:root {
  --ground: #F4F1EC;
  --card: #FFFFFF;
  --ink: #14211D;
  --muted: #5B6661;
  --line: #E4DED4;
  --line2: #D6CFC3;
  --teal: #0F6E5C;
  --teal-ink: #0B5446;
  --teal-soft: #DCEFE9;
  --coral: #C23B21;
  --coral-soft: #F6D9CF;
  --blue-soft: #DDE3F7;
  --sand-soft: #EFE6CF;
  --r: 20px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); font-family: Manrope, system-ui, sans-serif; font-size: 15px; -webkit-font-smoothing: antialiased; }
body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
main { max-width: 560px; margin: 0 auto; padding: 20px 16px 24px; display: flex; flex-direction: column; gap: 16px; }
h1 { margin: 0; font-family: Unbounded, sans-serif; font-weight: 600; font-size: 25px; line-height: 1.15; }
h2 { margin: 0; font-family: Unbounded, sans-serif; font-weight: 600; font-size: 18px; line-height: 1.25; }
h3 { margin: 0; font-size: 16px; font-weight: 700; }
p { margin: 0; line-height: 1.45; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-ink); }
.logo { font-family: Unbounded, sans-serif; font-weight: 700; font-size: 22px; }
.logo span { color: var(--coral); }
.row { display: flex; gap: 8px; align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.card { background: var(--card); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); }
.card.accent { border: 2px solid var(--teal); }
.card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.card.dark .muted { color: #C9D3CF; }
.card.coral { background: var(--coral); color: #fff; border-color: var(--coral); }
.fact { background: var(--ground); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 3px; }
.fact b { font-size: 12px; color: var(--muted); }
.dots { letter-spacing: 2px; color: var(--teal); font-size: 12px; }
.badge { font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 10px; background: var(--ground); white-space: nowrap; }
.badge.top { background: var(--teal-soft); color: var(--teal-ink); }
button, .btn { font-family: inherit; font-size: 15px; font-weight: 700; min-height: 46px; border-radius: 14px; border: none; padding: 0 16px; cursor: pointer; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
button.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line2); }
button.coral { background: var(--coral); }
button.teal { background: var(--teal); }
button.white { background: #fff; color: var(--ink); }
button.small { min-height: 40px; font-size: 13px; padding: 0 12px; border-radius: 12px; }
button.icon { width: 44px; min-height: 44px; padding: 0; background: var(--card); color: var(--ink); border: 1px solid var(--line2); }
button:disabled { opacity: .55; cursor: default; }
button.block { width: 100%; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 20px; font-size: 14px; font-weight: 600; background: var(--card); color: var(--ink); border: 1px solid var(--line2); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
.chips.scroll .chip { white-space: nowrap; }
input, textarea, select { font-family: inherit; font-size: 16px; width: 100%; border-radius: 14px; border: 1px solid var(--line2); background: #fff; color: var(--ink); padding: 12px 14px; min-height: 46px; }
textarea { resize: vertical; min-height: 92px; line-height: 1.4; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
label.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; cursor: pointer; }
label.check input { width: 22px; height: 22px; min-height: 0; accent-color: var(--teal); flex-shrink: 0; }
label.check.done span { text-decoration: line-through; color: var(--muted); }
ul.list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; line-height: 1.45; }
.place { background: var(--card); border-radius: 16px; padding: 12px; display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); }
.tag { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; text-align: center; line-height: 1.1; padding: 2px; }
.place .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.place .name { font-weight: 700; }
.place select { min-height: 38px; padding: 6px 10px; font-size: 13px; border-radius: 10px; }
.timeline { display: flex; flex-direction: column; }
.leg { display: flex; gap: 12px; }
.leg .rail { width: 18px; display: flex; flex-direction: column; align-items: center; }
.leg .dot { width: 14px; height: 14px; border-radius: 7px; background: var(--teal); margin-top: 4px; }
.leg .line { flex: 1; width: 2px; background: var(--line2); }
.leg .txt { flex: 1; padding-bottom: 16px; display: flex; flex-direction: column; gap: 4px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-family: Unbounded, sans-serif; font-size: 26px; }
.country { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.country .flag { font-size: 24px; width: 32px; text-align: center; }
.country .nm { flex: 1; }
.seg { display: flex; gap: 4px; }
.seg button { min-height: 36px; font-size: 12px; padding: 0 10px; border-radius: 10px; background: var(--ground); color: var(--ink); border: 1px solid var(--line2); }
.seg button.on-been { background: var(--teal); color: #fff; border-color: var(--teal); }
.seg button.on-wish { background: var(--coral); color: #fff; border-color: var(--coral); }
.draft-body { white-space: pre-wrap; line-height: 1.5; font-size: 14px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-card { align-items: center; text-align: center; padding: 28px 16px; }
.empty { text-align: center; padding: 24px 12px; color: var(--muted); }
nav#tabs { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: space-around; padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); z-index: 10; }
nav#tabs button { background: none; color: var(--muted); flex-direction: column; gap: 3px; font-size: 11px; font-weight: 600; min-height: 52px; padding: 0 6px; min-width: 60px; }
nav#tabs button.on { color: var(--teal); font-weight: 700; }
nav#tabs svg { width: 22px; height: 22px; }
#toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; opacity: 0; transition: .25s; pointer-events: none; z-index: 20; max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
a { color: var(--teal); }
