/* Trip Stock v2 — playful lake-house theme.
   Lake blues + warm sunset accents. Chunky, bouncy, friendly. */
:root {
  --lake: #0e7c8c;
  --lake-dark: #0a5c68;
  --deep: #073f47;
  --sunset: #ff7a59;
  --sun: #ffc53d;
  --sky: #eaf6f7;
  --card: #ffffff;
  --ink: #233640;
  --muted: #6b828a;
  --line: #d7e8ea;
  --green: #1d9d5f;
  --red: #d64545;
  --radius: 18px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--sky);
  color: var(--ink);
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

/* ---------- Gate ---------- */
#gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(160deg, var(--deep) 0%, var(--lake) 55%, var(--lake-dark) 100%);
}
#gate[hidden] { display: none; }
.gate-card {
  background: #fff;
  border-radius: 26px;
  padding: 34px 28px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .3);
  border: 3px solid var(--sun);
}
.gate-bear { font-size: 64px; animation: bear-bob 2.4s ease-in-out infinite; }
@keyframes bear-bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}
.gate-card h1 { margin: 8px 0 4px; font-size: 26px; }
#gate-form { display: flex; gap: 8px; margin-top: 14px; }
#gate-form input {
  flex: 1;
  padding: 13px;
  font-size: 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  min-width: 0;
}
#gate-form input:focus { outline: 2px solid var(--sunset); border-color: var(--sunset); }
#gate-form button {
  padding: 13px 20px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: var(--sunset);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform .15s var(--spring);
}
#gate-form button:active { transform: scale(.93); }
.error { color: var(--red); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- App shell ---------- */
#app[hidden] { display: none; }
#app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 760px;
  margin: 0 auto;
}
#topbar {
  background: linear-gradient(120deg, var(--lake-dark) 0%, var(--lake) 70%, #1290a0 100%);
  color: #fff;
  padding: 10px 16px calc(10px + env(safe-area-inset-top, 0px));
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 3px solid var(--sun);
}
.tb-bear {
  font-size: 34px;
  background: var(--sun);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .15);
}
.tb-title { font-size: 20px; font-weight: 800; }
.tb-sub { font-size: 12.5px; opacity: .93; }

#view {
  flex: 1;
  padding: 14px 12px 110px;
}

#tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: #fff;
  border-top: 2px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 30;
}
#tabs .tab {
  flex: 1;
  border: none;
  background: none;
  padding: 10px 2px 8px;
  font-size: 23px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: transform .15s var(--spring);
}
#tabs .tab:active { transform: scale(.88); }
#tabs .tab span { font-size: 11px; font-weight: 800; }
#tabs .tab.active { color: var(--lake); }

/* ---------- Buttons, chips ---------- */
.btn {
  border: none;
  border-radius: 14px;
  padding: 12px 15px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s var(--spring);
}
.btn:active { transform: scale(.95); }
.btn.primary { background: var(--sunset); color: #fff; flex: 1; box-shadow: 0 3px 0 #d65a3c; }
.btn.ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.btn.danger { background: #fee2e2; color: var(--red); }
.btn.small { padding: 8px 11px; font-size: 13px; }
.btn:disabled { opacity: .5; }
.spacer { flex: 1; }

.chips { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; }
.chip {
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s var(--spring);
}
.chip:active { transform: scale(.93); }
.chip.active { background: var(--lake); border-color: var(--lake); color: #fff; }

/* ---------- Trip tab ---------- */
.hero {
  background: linear-gradient(140deg, var(--lake) 0%, var(--lake-dark) 100%);
  border-radius: 24px;
  padding: 22px 18px;
  color: #fff;
  text-align: center;
  border: 3px solid var(--sun);
  box-shadow: 0 8px 20px rgba(14, 124, 140, .25);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.hero-bear { font-size: 56px; animation: bear-bob 2.4s ease-in-out infinite; }
.hero h2 { margin: 6px 0 2px; font-size: 24px; }
.hero p { margin: 2px 0; opacity: .93; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.hero-stat {
  background: rgba(255, 255, 255, .18);
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}
.place-card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.place-card h3 { margin: 0 0 4px; font-size: 18px; }
.place-addr { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.place-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.place-fact {
  background: var(--sky);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}
.place-fact .big { font-size: 20px; display: block; }
.mini-map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--line);
  margin-bottom: 14px;
}
#trip-minimap { height: 210px; background: #dceef0; z-index: 0; }

/* ---------- Map tab ---------- */
.route-bar {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.route-bar .go {
  margin-left: auto;
  background: var(--sun);
  border-radius: 10px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}
.map-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--line);
}
#trip-map { height: 62vh; height: 62dvh; min-height: 380px; background: #dceef0; z-index: 0; }
.map-full-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 500;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 12px;
  font-size: 20px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.map-legend {
  background: rgba(255, 255, 255, .92);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}
.map-pin {
  font-size: 32px;
  line-height: 1;
  text-align: center;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35));
}
/* Fullscreen map */
#app.map-full #view > *:not(.map-fs-keep),
#app.map-full #topbar,
#app.map-full #tabs { display: none; }
#app.map-full #view { padding: 0; max-width: none; }
#app.map-full .map-wrap {
  position: fixed;
  inset: 0;
  z-index: 100;
  border: none;
  border-radius: 0;
}
#app.map-full #trip-map { height: 100vh; height: 100dvh; }
#app.map-full .route-bar {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 12px;
  right: 68px;
  z-index: 101;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

/* ---------- Inventory ---------- */
.toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  position: sticky;
  top: 76px;
  z-index: 10;
  background: var(--sky);
  padding: 6px 0;
}
.cat-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--lake-dark);
  margin: 18px 4px 8px;
}
.item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  margin-bottom: 8px;
  transition: transform .12s var(--spring), opacity .2s;
}
.item:active { transform: scale(.985); }
.item.done { opacity: .55; }
.item.done .item-name { text-decoration: line-through; }
/* swipe-to-remove (Pack tab bag rows) */
.bag-card .pack-item { touch-action: pan-y; }
.bag-card .pack-item.swiping { transition: none; user-select: none; -webkit-user-select: none; }
.bag-card .pack-item.swipe-armed { background: #fecaca; border-color: #f87171; }
.bag-card .pack-item.swipe-out { transition: transform .24s ease-in, opacity .24s ease-in; }
.opt-pill {
  display: inline-block; font-size: 10.5px; font-weight: 800;
  background: #e0f2fe; color: #0369a1; border-radius: 999px;
  padding: 1px 8px; margin-left: 6px; vertical-align: 2px; white-space: nowrap;
}
/* toast (swipe-remove Undo) */
#toast {
  position: fixed; left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #1f2937; color: #fff; border-radius: 14px;
  padding: 12px 16px; display: flex; gap: 12px; align-items: center;
  font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 9999;
  max-width: calc(100vw - 32px); box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
#toast.show { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
#toast-undo {
  background: #fbbf24; border: none; border-radius: 10px; color: #1f2937;
  font-weight: 800; padding: 8px 14px; cursor: pointer; font-size: 14px; flex: none;
}
.check {
  width: 30px; height: 30px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  flex: none;
  margin-top: 1px;
  padding: 0;
  transition: transform .15s var(--spring), background .15s;
}
.check:active { transform: scale(.85); }
.item.done .check { background: var(--green); border-color: var(--green); color: #fff; }
.item-body { flex: 1; min-width: 0; }
.item-name { font-weight: 700; font-size: 15px; }
.item-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  border-radius: 8px;
  padding: 2px 8px;
  margin-right: 5px;
  vertical-align: 1px;
}
.tag.buy { background: #dbeafe; color: #1d4ed8; }
.tag.bring { background: #fef3c7; color: #92400e; }
.item-edit {
  border: none; background: none; font-size: 18px; cursor: pointer;
  color: var(--muted); padding: 2px 4px; flex: none;
}
.empty { text-align: center; color: var(--muted); padding: 36px 16px; }
.empty .big { font-size: 44px; display: block; margin-bottom: 8px; }

/* confetti burst */
.confetti {
  position: fixed;
  z-index: 200;
  font-size: 20px;
  pointer-events: none;
  animation: confetti-fly 1.3s ease-out forwards;
}
@keyframes confetti-fly {
  to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

/* ---------- Expenses ---------- */
.total-card {
  background: linear-gradient(140deg, var(--lake) 0%, var(--lake-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
  border: 3px solid var(--sun);
}
.total-card .t-label { font-size: 13px; opacity: .9; font-weight: 700; }
.total-card .t-amount { font-size: 36px; font-weight: 800; }
.total-card .t-sub { font-size: 13px; opacity: .9; }
.expense-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  margin-bottom: 8px;
}
.expense-row .who { flex: 1; min-width: 0; font-weight: 700; }
.expense-row .nums { text-align: right; font-size: 12.5px; color: var(--muted); }
.balance { font-weight: 800; font-size: 15px; text-align: right; }
.balance.pos { color: var(--green); }
.balance.neg { color: var(--red); }
.balance.zero { color: var(--muted); }
.balance .small { font-weight: 400; font-size: 11px; display: block; }
.section-title { font-size: 16px; font-weight: 800; margin: 20px 4px 10px; }
.settle-row {
  background: #ecfdf5;
  border: 2px solid #a7f3d0;
  border-radius: var(--radius);
  padding: 13px;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}
.settle-row .amt { font-weight: 800; color: var(--lake-dark); }
.all-set {
  background: #ecfdf5;
  border: 2px solid #a7f3d0;
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  font-weight: 700;
  color: var(--green);
}
.all-set .big { font-size: 36px; display: block; margin-bottom: 6px; }
.hint {
  background: #fffbeb;
  border: 2px solid #fde68a;
  border-radius: var(--radius);
  padding: 11px 13px;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 12px;
}

/* ---------- Roster (inside Costs tab) ---------- */
.roster-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 8px;
}
.roster-name {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 16px;
  padding: 7px 9px;
  border-radius: 10px;
  cursor: text;
}
.roster-name[contenteditable="true"]:focus {
  outline: 2px solid var(--sunset);
  background: #fff7ed;
  cursor: text;
}
.roster-name .guest-badge {
  font-size: 11px; font-weight: 800; color: #92400e;
  background: #fef3c7; border-radius: 6px; padding: 1px 6px; margin-left: 6px;
}
.split-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
}
.split-toggle input { width: 22px; height: 22px; accent-color: var(--lake); cursor: pointer; }
.roster-del {
  border: none; background: none; font-size: 17px; color: var(--muted);
  cursor: pointer; padding: 4px 6px; flex: none;
}

/* ---------- Chat ---------- */
.chat-wrap { display: flex; flex-direction: column; height: calc(100dvh - 230px); min-height: 380px; }
.room-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; }
.room-chip {
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  flex: none;
  transition: transform .15s var(--spring);
}
.room-chip:active { transform: scale(.93); }
.room-chip.sel { background: var(--lake); border-color: var(--lake); color: #fff; }
.room-chip.new { border-style: dashed; color: var(--lake); }
.chat-list {
  flex: 1;
  overflow-y: auto;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
}
.chat-empty { text-align: center; padding: 30px 10px; }
.chat-empty .big { font-size: 44px; display: block; margin-bottom: 8px; }
.chat-msg { margin-bottom: 12px; }
.chat-meta { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.chat-meta b { color: var(--ink); margin-right: 6px; }
.chat-meta em { font-style: normal; }
.chat-text {
  display: inline-block;
  background: var(--sky);
  border-radius: 4px 16px 16px 16px;
  padding: 9px 13px;
  font-size: 15px;
  max-width: 92%;
  overflow-wrap: break-word;
}
.chat-text a { color: var(--lake-dark); }
.chat-msg.local .chat-text { background: #fff7ed; border: 1px dashed var(--sunset); }
.chat-composer { display: flex; gap: 8px; }
.chat-composer input {
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  font-size: 16px;
  background: #fff;
  color: var(--ink);
}
.chat-composer input:focus { outline: 2px solid var(--sunset); border-color: var(--sunset); }
#chat-name { width: 110px; flex: none; }
#chat-text { flex: 1; min-width: 0; }
#chat-send {
  background: var(--sunset);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 0 #d65a3c;
  transition: transform .15s var(--spring);
  flex: none;
}
#chat-send:active { transform: scale(.93); }
#chat-send:disabled { opacity: .5; }
.chat-note { margin-top: 8px; }

/* ---------- Modals ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 63, 71, .55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
}
.modal[hidden] { display: none; }
.modal-card {
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 22px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  border-top: 4px solid var(--sun);
}
.modal-card h2 { margin: 0 0 12px; font-size: 20px; }
.modal-card label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.modal-card input[type="text"],
.modal-card input[type="number"],
.modal-card select {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 12px;
  font-size: 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.modal-card input:focus, .modal-card select:focus { outline: 2px solid var(--sunset); border-color: var(--sunset); }
.row2 { display: flex; gap: 10px; }
.row2 label { flex: 1; min-width: 0; }
.modal-actions { display: flex; gap: 8px; margin-top: 6px; }
#scan-video-wrap {
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
#scan-video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Leaflet tweaks */
.leaflet-container { font-family: inherit; }

/* ---------- Pack tab ---------- */
.bag-card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
}
.bag-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.bag-name {
  flex: 1;
  min-width: 0;
  font-weight: 800;
  font-size: 18px;
  padding: 7px 9px;
  border-radius: 10px;
  cursor: text;
}
.bag-name[contenteditable="true"]:focus {
  outline: 2px solid var(--sunset);
  background: #fff7ed;
  cursor: text;
}
.bag-kind {
  font-size: 12px;
  font-weight: 800;
  background: var(--sky);
  border-radius: 10px;
  padding: 6px 10px;
  white-space: nowrap;
  color: var(--lake-dark);
}
.bag-progress {
  height: 12px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}
.bag-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lake) 0%, var(--green) 100%);
  border-radius: 999px;
  transition: width .3s var(--spring);
}

/* Packing planner wizard */
.stepper-row { display: flex; gap: 10px; margin: 12px 0; }
.stepper {
  flex: 1;
  background: var(--sky);
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 10px 12px;
  text-align: center;
}
.stepper-label { font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.stepper-ctl { display: flex; align-items: center; justify-content: center; gap: 12px; }
.stepper-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
  font-size: 22px; font-weight: 800; line-height: 1;
  cursor: pointer; color: var(--ink);
  transition: transform .15s var(--spring);
}
.stepper-btn:active { transform: scale(.92); background: var(--sun); }
.stepper-val { font-size: 24px; font-weight: 800; min-width: 36px; }
.pl-tip {
  background: #fff8e6;
  border: 2px dashed var(--sun);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 14px;
  margin: 4px 0 10px;
}
.pl-nudge { text-align: center; padding: 18px 10px; font-size: 15px; font-weight: 700; }
.pl-lineup { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.modal-card label.pl-row {
  display: flex; align-items: center; gap: 8px; margin: 0;
}
.pl-emoji { font-size: 20px; flex: none; }
.pl-row input[type="text"] { flex: 1; min-width: 0; }
.pl-summary {
  text-align: center; font-weight: 800; font-size: 14px;
  background: var(--sky); border: 2px solid var(--line);
  border-radius: 12px; padding: 10px; margin-bottom: 4px;
}
.bag-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}
.bag-sec {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--lake-dark);
  margin: 14px 4px 8px;
}
.checkline {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 15px !important;
  color: var(--ink) !important;
  cursor: pointer;
  user-select: none;
}
.checkline input { width: 22px; height: 22px; accent-color: var(--lake); cursor: pointer; }

@media (min-width: 700px) {
  .modal { align-items: center; padding: 20px; }
  .modal-card { border-radius: 24px; padding-bottom: 22px; }
  #view { padding: 18px 18px 110px; }
  .place-grid { grid-template-columns: repeat(6, 1fr); }
  .chat-wrap { height: calc(100dvh - 250px); }
}
