/* ============ HomeCrush prototype ============ */
:root {
  --bg: #0d0e12;
  --panel: #16181f;
  --panel-2: #1d2029;
  --line: #2a2e3a;
  --text: #f4f5f7;
  --muted: #9aa1b0;
  --crush-1: #ff4d6d;
  --crush-2: #ff8e53;
  --crush-grad: linear-gradient(135deg, #ff4d6d, #ff8e53);
  --pass: #6b7280;
  --super: #ffc24b;
  --ok: #34d399;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: #07080b;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
}

/* Phone frame on desktop; full-bleed on small screens */
#phone {
  position: relative;
  width: min(430px, 100vw);
  height: min(880px, 100vh);
  background: var(--bg);
  overflow: hidden;
  display: flex; flex-direction: column;
}
@media (min-width: 500px) and (min-height: 920px) {
  #phone { border-radius: 40px; box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 0 10px #17181c, 0 0 0 12px #2c2e35; }
}

.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.hidden { display: none !important; }
.hint { color: var(--muted); font-weight: 400; font-size: .78rem; }

/* ---------- Onboarding ---------- */
#screen-onboarding { overflow-y: auto; padding: 40px 26px 30px; }
.ob-hero { text-align: center; margin-bottom: 26px; }
.logo-mark { display: inline-block; filter: drop-shadow(0 8px 24px rgba(255, 77, 109, .35)); }
.brand { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; margin-top: 10px; }
.brand span, .topbar-brand span {
  background: var(--crush-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { color: var(--muted); margin-top: 6px; font-size: .95rem; }

.ob-form { display: flex; flex-direction: column; gap: 22px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: #c8cdd8; margin-bottom: 10px; letter-spacing: .02em; }

.seg { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.seg-btn {
  flex: 1; padding: 11px 0; border: 0; border-radius: 11px; background: transparent;
  color: var(--muted); font-size: .95rem; font-weight: 700; cursor: pointer; transition: all .18s;
}
.seg-btn.active { background: var(--crush-grad); color: #fff; box-shadow: 0 4px 14px rgba(255, 77, 109, .35); }

.budget-row { display: flex; align-items: center; gap: 14px; }
.budget-row output { font-weight: 800; font-size: 1.05rem; min-width: 84px; text-align: right; font-variant-numeric: tabular-nums; }
input[type="range"] { flex: 1; appearance: none; -webkit-appearance: none; height: 6px; border-radius: 3px; background: var(--panel-2); outline: none; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--crush-grad); border: 3px solid #fff; box-shadow: 0 2px 10px rgba(255,77,109,.5); cursor: grab;
}

.chip-row { display: flex; gap: 8px; }
.chip-row.wrap { flex-wrap: wrap; }
.chip {
  padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--muted); font-size: .84rem; font-weight: 600; cursor: pointer; transition: all .15s;
}
.chip.active { background: rgba(255, 77, 109, .16); border-color: var(--crush-1); color: #ff8ba0; }

.cta {
  display: block; width: 100%; padding: 16px; border: 0; border-radius: 16px;
  background: var(--crush-grad); color: #fff; font-size: 1.05rem; font-weight: 800;
  cursor: pointer; box-shadow: 0 8px 26px rgba(255, 77, 109, .38); transition: transform .12s;
}
.cta:active { transform: scale(.97); }
.cta.slim { padding: 12px 22px; width: auto; font-size: .95rem; }
.ghost-btn {
  padding: 12px 22px; border-radius: 14px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font-weight: 600; font-size: .9rem; cursor: pointer;
}
.ob-note { text-align: center; font-size: .74rem; color: var(--muted); line-height: 1.5; }
.ob-note b { color: #c8cdd8; font-weight: 600; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 10px; z-index: 5;
}
.topbar-brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 13px;
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  display: grid; place-items: center; cursor: pointer; transition: color .15s;
}
.icon-btn:hover { color: var(--text); }
.badge {
  position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--crush-grad); color: #fff; font-size: .68rem;
  font-weight: 800; display: grid; place-items: center;
}

.feedmeta { padding: 0 20px 8px; font-size: .78rem; color: var(--muted); }

/* ---------- Deck ---------- */
.deck { position: relative; flex: 1; margin: 2px 16px 10px; }
.card {
  position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--panel-2) center/cover no-repeat; box-shadow: var(--shadow);
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
  transition: transform .28s cubic-bezier(.2, .8, .3, 1.1), opacity .28s;
}
.card.dragging { transition: none; cursor: grabbing; }
.card.behind-1 { transform: scale(.955) translateY(14px); filter: brightness(.75); }
.card.behind-2 { transform: scale(.91) translateY(28px); filter: brightness(.55); }
.card.flyout { transition: transform .42s ease-out, opacity .42s; opacity: 0; }

.card .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,14,.42) 0%, transparent 26%, transparent 46%, rgba(8,8,12,.94) 100%);
}
.card .toprow { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: flex-start; }
.src-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  background: rgba(12, 13, 18, .72); backdrop-filter: blur(8px); font-size: .72rem; font-weight: 700; color: #e8eaf0;
}
.src-dot { width: 8px; height: 8px; border-radius: 50%; }
.tag-new {
  padding: 6px 11px; border-radius: 999px; background: var(--ok); color: #06281c;
  font-size: .7rem; font-weight: 800; letter-spacing: .05em;
}

.match-ring {
  position: absolute; top: 52px; right: 14px; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; font-size: .78rem; font-weight: 800; color: #fff;
  background: conic-gradient(var(--crush-1) calc(var(--pct) * 1%), rgba(255,255,255,.14) 0);
}
.match-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: rgba(12,13,18,.82); }
.match-ring b { position: relative; }

.card .info { position: absolute; left: 18px; right: 18px; bottom: 16px; }
.card .price { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.card .price small { font-size: 1rem; font-weight: 600; color: #cfd4de; }
.card .addr { color: #d8dce4; font-size: .92rem; margin-top: 2px; }
.card .hood { color: var(--muted); font-size: .8rem; }
.specs { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.spec {
  padding: 6px 11px; border-radius: 10px; background: rgba(255,255,255,.1);
  backdrop-filter: blur(6px); font-size: .76rem; font-weight: 700;
}

.stamp {
  position: absolute; top: 84px; padding: 8px 18px; border-radius: 10px;
  font-size: 1.7rem; font-weight: 900; letter-spacing: .06em; opacity: 0;
  border: 4px solid; transform: rotate(-14deg); text-transform: uppercase;
}
.stamp.like { left: 18px; color: #3ee08f; border-color: #3ee08f; }
.stamp.pass { right: 18px; color: #ff5c5c; border-color: #ff5c5c; transform: rotate(14deg); }
.stamp.super { left: 50%; top: auto; bottom: 130px; transform: translateX(-50%) rotate(-6deg); color: var(--super); border-color: var(--super); }

.deck-empty {
  position: absolute; inset: 0; border-radius: var(--radius); border: 1.5px dashed var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; padding: 30px; color: var(--muted);
}
.deck-empty h3 { color: var(--text); font-size: 1.2rem; }

/* ---------- Action bar ---------- */
.actionbar { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 4px 0 6px; }
.act {
  border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  transition: transform .12s; box-shadow: 0 8px 22px rgba(0,0,0,.45);
}
.act:active { transform: scale(.88); }
.act-undo { width: 46px; height: 46px; background: var(--panel); color: var(--muted); border: 1px solid var(--line); }
.act-pass { width: 62px; height: 62px; background: var(--panel); color: #ff5c5c; border: 1px solid var(--line); }
.act-super { width: 50px; height: 50px; background: var(--panel); color: var(--super); border: 1px solid var(--line); }
.act-like { width: 66px; height: 66px; background: var(--crush-grad); color: #fff; box-shadow: 0 10px 28px rgba(255,77,109,.45); }
.keys-hint { text-align: center; color: #565d6b; font-size: .68rem; padding-bottom: 12px; }

/* ---------- Crushes (Tinder-matches pattern) ---------- */
.crush-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 16px 24px; }
.cr-label { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 16px 4px 10px; }
.cr-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.cr-row::-webkit-scrollbar { display: none; }
.cr-mini {
  position: relative; flex: 0 0 108px; height: 148px; border-radius: 14px; overflow: hidden;
  background-color: var(--panel-2); background-size: cover; background-position: center;
  cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.cr-mini .cm-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8,8,12,.9)); }
.cr-mini .cm-price { position: absolute; left: 9px; right: 9px; bottom: 7px; font-size: .78rem; font-weight: 800; }
.cr-mini .cm-star { position: absolute; top: 6px; left: 6px; color: var(--super); filter: drop-shadow(0 2px 5px rgba(0,0,0,.6)); }
.cr-thread {
  display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 16px;
  cursor: pointer; transition: background .15s;
}
.cr-thread:hover { background: var(--panel); }
.ct-thumb { width: 58px; height: 58px; border-radius: 14px; background-size: cover; background-position: center; background-color: var(--panel-2); flex-shrink: 0; position: relative; }
.ct-thumb .cm-star { position: absolute; top: -5px; left: -5px; color: var(--super); filter: drop-shadow(0 2px 4px rgba(0,0,0,.7)); }
.ct-main { flex: 1; min-width: 0; }
.ct-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ct-price { font-weight: 800; font-size: .95rem; flex-shrink: 0; }
.ct-addr { color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-preview { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.ct-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.ct-pct { font-size: .7rem; font-weight: 800; color: #ff8ba0; background: rgba(255,77,109,.13); padding: 3px 8px; border-radius: 999px; }
.ct-remove { border: 0; background: none; color: #565d6b; cursor: pointer; padding: 2px 4px; line-height: 1; }
.ct-remove:hover { color: #ff5c5c; }
.crush-empty { text-align: center; color: var(--muted); padding: 60px 20px; line-height: 1.6; }

/* ---------- Move stack (affiliate hooks) ---------- */
.move-stack { margin-top: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.ms-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ms-head h4 { font-size: .95rem; font-weight: 800; }
.ms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ms-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left;
  padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2);
  color: var(--text); cursor: pointer; transition: border-color .15s, transform .12s;
}
.ms-tile:hover { border-color: var(--crush-1); }
.ms-tile:active { transform: scale(.97); }
.ms-icon { font-size: 1.25rem; }
.ms-t { font-size: .82rem; font-weight: 800; }
.ms-s { font-size: .72rem; color: var(--muted); }

/* ---------- Sheets ---------- */
.backdrop { position: absolute; inset: 0; background: rgba(4,5,8,.6); backdrop-filter: blur(3px); z-index: 20; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88%; overflow-y: auto;
  background: var(--panel); border-radius: 26px 26px 0 0; z-index: 30; padding: 14px 22px 30px;
  box-shadow: 0 -16px 50px rgba(0,0,0,.55);
  animation: sheetUp .32s cubic-bezier(.2, .9, .3, 1);
}
@keyframes sheetUp { from { transform: translateY(60%); opacity: .4; } to { transform: none; opacity: 1; } }
.sheet-grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 2px auto 14px; }
.sheet-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 16px; }
.sheet-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 12px; }
#filters-body { display: flex; flex-direction: column; gap: 20px; }

/* Detail sheet */
.d-photos { position: relative; margin: 0 -22px; height: 300px; overflow: hidden; }
.d-track { display: flex; height: 100%; transition: transform .3s ease; }
.d-track img { width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; }
.d-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.d-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.4); }
.d-dot.on { background: #fff; }
.d-nav { position: absolute; top: 0; bottom: 0; width: 50%; cursor: pointer; }
.d-nav.left { left: 0; } .d-nav.right { right: 0; }
.d-head { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 16px; gap: 10px; }
.d-price { font-size: 1.7rem; font-weight: 800; }
.d-price small { font-size: .95rem; color: var(--muted); font-weight: 600; }
.d-addr { color: #c8cdd8; font-size: .92rem; margin-top: 2px; }
.d-matchpill { flex-shrink: 0; padding: 8px 13px; border-radius: 999px; background: rgba(255,77,109,.14); border: 1px solid rgba(255,77,109,.4); color: #ff8ba0; font-weight: 800; font-size: .82rem; }
.d-specrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.d-spec { padding: 8px 13px; border-radius: 12px; background: var(--panel-2); font-size: .8rem; font-weight: 700; color: #d5dae4; }
.d-desc { color: #b9bfcc; font-size: .92rem; line-height: 1.65; margin-top: 16px; }
.d-sec { margin-top: 20px; }
.d-sec h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.d-feats { display: flex; flex-wrap: wrap; gap: 8px; }
.d-feat { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .8rem; color: #c8cdd8; }
.d-cost { background: var(--panel-2); border-radius: 16px; padding: 16px; }
.d-cost-row { display: flex; justify-content: space-between; font-size: .88rem; color: #c0c6d2; padding: 4px 0; }
.d-cost-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-weight: 800; color: var(--text); }
.d-cost-note { font-size: .7rem; color: var(--muted); margin-top: 8px; }
.d-ctas { display: flex; gap: 10px; margin-top: 22px; }
.d-ctas .cta { flex: 1.4; }
.d-ctas .ghost-btn { flex: 1; }
.d-srcline { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .76rem; color: var(--muted); }

/* ---------- Match overlay ---------- */
.match-overlay {
  position: absolute; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 50% 0%, rgba(255,77,109,.32), rgba(7,8,11,.96) 60%);
  animation: fadeIn .3s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.match-inner { text-align: center; padding: 30px; width: 100%; }
.match-inner h2 { font-size: 2.4rem; font-weight: 900; letter-spacing: -.02em; }
.match-inner h2 em { font-style: normal; background: var(--crush-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.match-inner p { color: var(--muted); margin: 8px 0 18px; }
.match-inner img { width: 78%; max-width: 300px; aspect-ratio: 4/3; object-fit: cover; border-radius: 20px; box-shadow: 0 20px 60px rgba(255,77,109,.35); margin-bottom: 22px; }
.match-inner .cta { max-width: 300px; margin: 0 auto 12px; }
.match-burst { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.heart-p { position: absolute; font-size: 22px; animation: floatUp linear forwards; }
@keyframes floatUp { from { transform: translateY(0) scale(.6) rotate(0); opacity: 1; } to { transform: translateY(-110vh) scale(1.3) rotate(40deg); opacity: 0; } }

/* ---------- Lead modal ---------- */
.lead-modal { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(4,5,8,.7); backdrop-filter: blur(4px); }
.lead-card { width: 84%; max-width: 340px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 26px; text-align: center; }
.lead-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.lead-card p { color: var(--muted); font-size: .87rem; line-height: 1.6; margin-bottom: 18px; }
.lead-card .cta { margin: 0 auto; }

/* like-burst on button */
@keyframes heartPop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.act-like.pop { animation: heartPop .35s ease; }

::-webkit-scrollbar { width: 0; height: 0; }

/* ---------- v2: lifestyle criteria chips ---------- */
.chip.life.must { background: var(--crush-grad); border-color: transparent; color: #fff; }
.chip.life.must b { font-weight: 800; }

/* ---------- v2: place ("near somewhere") ---------- */
.place-form { display: flex; flex-direction: column; gap: 8px; }
.place-form input {
  padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font-size: .9rem; outline: none;
}
.place-form input:focus { border-color: var(--crush-1); }
.pf-row { display: flex; align-items: center; gap: 8px; }
.pf-min { width: 64px; text-align: center; }
.pf-add { margin-left: auto; }
.pf-err { min-height: 1em; }
.place-chiprow { display: flex; gap: 8px; align-items: center; }
.place-remove { padding: 9px 12px; }

/* ---------- v2: card badges ---------- */
.badge-col { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.tag-build {
  padding: 6px 11px; border-radius: 999px; background: #7C5CFF; color: #fff;
  font-size: .66rem; font-weight: 800; letter-spacing: .05em;
}
.tag-cut {
  padding: 6px 11px; border-radius: 999px; background: var(--ok); color: #06281c;
  font-size: .7rem; font-weight: 800;
}
b.down { color: var(--ok); } b.up { color: #ff8ba0; }

/* ---------- v2: toasts ---------- */
#toasts {
  position: absolute; top: 14px; left: 14px; right: 14px; z-index: 70;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  pointer-events: auto; background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 13px 16px; font-size: .84rem; color: var(--text);
  box-shadow: 0 14px 40px rgba(0,0,0,.55); opacity: 0; transform: translateY(-16px);
  transition: opacity .3s, transform .3s; position: relative; line-height: 1.45;
}
.toast.in { opacity: 1; transform: none; }
.toast.out { opacity: 0; transform: translateY(-16px); }
.toast.tappable { cursor: pointer; border-color: rgba(255,77,109,.45); }
.toast-tag {
  position: absolute; top: -8px; right: 12px; font-size: .6rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  background: var(--bg); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line);
}

/* ---------- v2: compare ---------- */
#btn-compare.on { color: var(--crush-1); border-color: var(--crush-1); }
.ct-check {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line);
  display: grid; place-items: center; flex-shrink: 0; font-size: .8rem; font-weight: 800; color: #fff;
}
.cr-thread.selected .ct-check { background: var(--crush-grad); border-color: transparent; }
.cr-thread.selected { background: rgba(255, 77, 109, .08); }
.compare-bar {
  padding: 10px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--panel);
  display: flex; justify-content: center;
}
.compare-bar .cta { width: 100%; }
.compare-bar .cta:disabled { opacity: .45; cursor: default; }
.cmp-scroll { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.cmp-table { border-collapse: collapse; min-width: 100%; font-size: .82rem; }
.cmp-table th {
  text-align: left; padding: 8px 10px; font-size: .72rem; color: var(--muted);
  border-bottom: 1px solid var(--line); max-width: 120px; vertical-align: bottom;
}
.cmp-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); color: #c8cdd8; vertical-align: middle; }
.cmp-table td:first-child { color: var(--muted); font-size: .74rem; white-space: nowrap; }
.cmp-thumb { width: 84px; height: 60px; border-radius: 10px; background-size: cover; background-position: center; }
.d-maps { text-align: center; flex: 1; text-decoration: none; display: block; }

/* ---------- v2: safe areas / small polish ---------- */
#screen-onboarding { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
.keys-hint { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) {
  .card, .toast, .sheet, .mini-card { transition: none !important; animation: none !important; }
  .heart-p { display: none; }
}

/* ---------- v2.1: review fixes ---------- */
#phone { height: min(880px, 100dvh); }
body { min-height: 100dvh; }
.topbar { padding-top: calc(16px + env(safe-area-inset-top)); }
#screen-onboarding { padding-top: calc(40px + env(safe-area-inset-top)); }
#toasts { top: calc(72px + env(safe-area-inset-top)); }
.chip:disabled { opacity: .5; pointer-events: none; }
.place-form input { font-size: 16px; }
.card .addr { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feedmeta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn.labeled { width: auto; padding: 0 12px; gap: 6px; display: inline-flex; align-items: center; font-size: .78rem; font-weight: 700; }
.badge-col.left { align-items: flex-start; }
.photo-note { font-size: .62rem; opacity: .85; }
@media (pointer: coarse) { .keys-hint { display: none; } }
@media (max-height: 560px) {
  .keys-hint, .feedmeta { display: none; }
  .actionbar { padding: 2px 0 4px; gap: 12px; }
  .act-pass, .act-like { width: 50px; height: 50px; }
  .act-super, .act-undo { width: 42px; height: 42px; }
}
