/* Rental Finder. Calm and premium, light only (the owner's call, 2026-11-03).
   Layout: full-screen map, search and places on top, a photo sheet at the bottom (a side panel on wide screens). */
:root{
  --bg:#F4F4F5; --surface:#FFFFFF; --fg:#111214; --muted:#6B6F76; --line:#E4E5E8; --brand:#1F5BFF; --brand-ink:#FFFFFF; --accent:var(--brand);
  --tile:#F1F3F4; --scrim:rgba(10,12,14,.38); --shadow:rgba(18,21,24,.14);
  --great:#2F7D55; --good:#6FA650; --fair:#B08F2E; --high:#C2593B;
  --ring:#111214; --sweet:rgba(31,91,255,.13); --need:#4B5563; --bar:#3B3F46;
  --pinbg:#FFFFFF; --pinline:#D3D8DB; --pinink:#121518; --pinsel:var(--brand); --pinselink:var(--brand-ink);
  --display:var(--ui);
  --ui:"Plus Jakarta Sans", "Avenir Next", system-ui, -apple-system, sans-serif;
  --safe-t:env(safe-area-inset-top, 0px); --safe-b:env(safe-area-inset-bottom, 0px);
  color-scheme:light only;
}
*{box-sizing:border-box; -webkit-tap-highlight-color:transparent}
html,body{height:100%; margin:0; overflow-x:hidden; -webkit-text-size-adjust:100%}
body{background:var(--bg); color:var(--fg); font:15px/1.45 var(--ui); overflow:hidden}
button{font:inherit; color:inherit; cursor:pointer}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--fg); outline-offset:2px}
#app{position:fixed; inset:0; overflow:hidden}
#map{position:absolute; inset:0; background:var(--tile)}
.leaflet-container{font-family:var(--ui); background:var(--tile)}
.leaflet-control-attribution{font-size:10px; background:color-mix(in srgb, var(--surface) 75%, transparent)!important; color:var(--muted)}
.leaflet-control-attribution a{color:var(--muted)}
.leaflet-control-zoom{display:none}

/* top */
.top{position:absolute; z-index:500; left:0; right:0; top:0; padding-top:calc(var(--safe-t) + 10px); display:flex; flex-direction:column; gap:8px; pointer-events:none}
.top > *{pointer-events:auto}
.row{display:flex; gap:8px; padding:0 14px; align-items:center}
.searchbox{flex:1; min-width:0; display:flex; align-items:center; gap:10px; background:var(--surface); border-radius:18px; padding:3px 6px 3px 14px; box-shadow:0 6px 22px var(--shadow)}
.searchbox input{flex:1; min-width:0; border:0; background:none; font:500 16px var(--ui); color:var(--fg); padding:10px 0; outline:none; -webkit-appearance:none}
.searchbox input::placeholder{color:var(--muted)}
.searchbox input::-webkit-search-cancel-button,.dbox input::-webkit-search-cancel-button{display:none; -webkit-appearance:none}
.ibtn{width:42px; height:42px; flex:none; border-radius:14px; border:0; background:var(--surface); display:grid; place-items:center; position:relative; box-shadow:0 6px 22px var(--shadow)}
.ibtn[aria-pressed="true"]{background:var(--fg); color:var(--bg)}
#app.v-home:not(.results) .backbtn{display:none} /* the map has a way back to where you came from, top left, where a phone expects it */
.ibtn .n{position:absolute; top:-4px; right:-4px; min-width:18px; height:18px; border-radius:9px; background:var(--accent); color:var(--bg); font-size:10.5px; font-weight:700; display:grid; place-items:center; padding:0 4px}
.chips{display:flex; gap:7px; overflow-x:auto; scrollbar-width:none; padding:2px 14px; align-items:center}
.chips::-webkit-scrollbar{display:none}
.top .chips .chip,.top .chips .modes{box-shadow:0 3px 12px var(--shadow)}
.chip{flex:none; display:inline-flex; align-items:center; gap:6px; border-radius:999px; padding:7px 12px; font-size:13px; font-weight:600; border:1px solid var(--line); background:var(--surface); white-space:nowrap; line-height:1.2}
.chip.parsed{background:var(--fg); color:var(--bg); border-color:var(--fg)}
.chip.nice{background:var(--surface); border:1.5px solid var(--fg)}
.chip.mode{gap:7px}
.chip .x{opacity:.55; font-size:15px; line-height:1}
.chip.place{border:1.5px solid var(--fg)}
.chip.place .pdot{width:16px; height:16px; border-radius:4px; background:var(--fg); color:var(--bg); font-size:10px; font-weight:700; display:grid; place-items:center}
.chip.ghost{border-style:dashed; color:var(--muted)}
.modes{display:inline-flex; flex:none; background:var(--surface); border-radius:999px; padding:3px; border:1px solid var(--line)}
.modes button{border:0; background:none; font-size:12.5px; font-weight:600; padding:5px 10px; border-radius:999px; color:var(--muted)}
.modes button[aria-pressed="true"]{background:var(--fg); color:var(--bg)}

/* layers panel */
.layers{position:absolute; z-index:600; right:14px; top:calc(var(--safe-t) + 112px); width:230px; background:var(--surface); border-radius:18px; box-shadow:0 10px 30px var(--shadow); padding:6px 14px}
.tog{display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 0; border:0; background:none; font-size:14px; text-align:left; width:100%}
.tog + .tog{border-top:1px solid var(--line)}
.swt{width:44px; height:26px; border-radius:13px; background:var(--line); position:relative; flex:none; transition:background .2s}
.swt::after{content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.25); transition:left .2s}
.tog[aria-pressed="true"] .swt{background:var(--accent)} .tog[aria-pressed="true"] .swt::after{left:21px}

/* sheet */
.sheet{position:absolute; z-index:700; left:0; right:0; bottom:0; background:var(--surface); border-radius:28px 28px 0 0; box-shadow:0 -8px 30px var(--shadow); display:flex; flex-direction:column; transition:height .32s cubic-bezier(.2,.8,.2,1); touch-action:none}
.sheet[data-d="peek"]{height:calc(150px + var(--safe-b))} .sheet[data-d="half"]{height:48%} .sheet[data-d="full"]{height:calc(100% - var(--safe-t) - 72px)}
/* sheet fully up: the map's own bits step aside, only back and search stay on top */
#app.sheet-full .top .prow,#app.sheet-full .mapcredit,#app.sheet-full #layersBtn,#app.sheet-full .legend,#app.sheet-full .layers{display:none!important}
.sheet.dragging{transition:none}
#app.sheet-drag .viewpill,#app.sheet-drag .fab,#app.sheet-drag .mapcredit{transition:none} /* follow the finger, no lag */
.handle{border:0; background:none; padding:10px 0 6px; display:flex; justify-content:center; width:100%; cursor:grab; touch-action:none}
.handle span{width:40px; height:5px; border-radius:3px; background:var(--line)}
.shead{display:flex; justify-content:space-between; align-items:center; gap:10px; padding:0 20px 10px}
.shead b{font-size:19px; font-weight:700; letter-spacing:-.02em} .shead span{font-size:19px; font-weight:500; letter-spacing:-.02em; color:var(--muted)}
.regbtn{border:0; background:none; padding:0; font:500 19px var(--ui); letter-spacing:-.02em; color:var(--muted); display:inline-flex; align-items:center; gap:2px}
.shead .sub{display:block; font-size:13px; letter-spacing:0; font-weight:500; color:var(--muted); margin-top:2px}
.shead .sub.sw{color:var(--brand); font-weight:700}
/* the list follows the map: "Show all" brings the whole search back (his ask, 2026-11-04) */
/* "Search this area" floats at the top of the map after you move it; a tap narrows the list to what you can see */
.areabtn{position:absolute; z-index:820; left:50%; transform:translateX(-50%); display:inline-flex; align-items:center; gap:7px; height:40px; padding:0 16px 0 13px; border:0; border-radius:999px; background:var(--surface); color:var(--fg); font:700 14px var(--ui); box-shadow:0 6px 22px var(--shadow); white-space:nowrap; animation:areain .18s ease-out}
.areabtn svg{width:17px; height:17px; color:var(--brand)}
@keyframes areain{from{opacity:0; transform:translate(-50%, -6px)}}
@media (min-width:900px){ #app:not(.v-home) .areabtn{left:calc(452px + (100% - 452px) / 2)} }
#app.v-home .areabtn{display:none}
.shead .maparea .sw{color:var(--brand); font-weight:700; font-size:13px; letter-spacing:0}
.shead .maparea button{border:0; background:none; padding:6px 0; margin:-6px 0; font:700 13px var(--ui); color:var(--brand); text-decoration:underline; text-underline-offset:3px}
.bell{display:inline-flex; gap:6px; align-items:center; border:1px solid var(--line); background:none; border-radius:999px; padding:7px 12px; font-size:13px; font-weight:600; white-space:nowrap}
.sheet .chips{padding:0 20px 12px}
.sheetscroll{flex:1; overflow-y:auto; overscroll-behavior:contain; padding:4px 20px calc(30px + var(--safe-b)); display:flex; flex-direction:column; gap:26px; touch-action:pan-y}
.more-btn{border:1px solid var(--line); background:none; border-radius:14px; padding:12px; font-weight:600}

/* cards */
.card{display:flex; flex-direction:column; gap:7px; text-align:left; cursor:pointer; position:relative; content-visibility:auto; contain-intrinsic-size:auto 330px}
.card.picked{outline:2.5px solid var(--brand); outline-offset:6px; border-radius:20px} /* the home you tapped on the map */
.card.seen:not(:has(.heart.on)) .ph{filter:saturate(.45) brightness(.97)}
.ph{position:relative; display:block; width:100%; aspect-ratio:16/10; border-radius:18px; overflow:hidden; background:var(--tile)}
.ph img{width:100%; height:100%; object-fit:cover; display:block}
.heart{position:absolute; top:10px; right:10px; width:38px; height:38px; border-radius:50%; border:0; background:rgba(255,255,255,.92); color:#121518; display:grid; place-items:center}
.heart svg{width:18px; height:18px}
.heart.on{color:#111214}
.badges{position:absolute; left:10px; top:10px; display:flex; gap:6px}
.badge{background:rgba(12,14,16,.72); color:#fff; font-size:11.5px; font-weight:700; padding:4px 8px; border-radius:8px; -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px)}
.badge.new{background:#fff; color:#111214}
.badge.drop{background:var(--great); color:#fff}
.nphotos{position:absolute; right:10px; bottom:10px; background:rgba(12,14,16,.62); color:#fff; font-size:11px; font-weight:700; padding:3px 7px; border-radius:7px}
.crow1{display:flex; justify-content:space-between; align-items:flex-start; gap:10px}
.crow1 .price{flex:1; min-width:0} .crow1 .match{margin-top:4px}
.price{font-family:var(--display); font-size:21px; font-weight:700; letter-spacing:-.02em; line-height:1.1}
.price small{font-family:var(--ui); font-size:12px; font-weight:500; color:var(--muted); margin-left:3px}
.price .eq{display:block; font-size:12px; font-weight:500; letter-spacing:0; color:var(--muted); margin-top:2px}
.match{font-size:13px; font-weight:700; display:inline-flex; align-items:center; gap:7px; white-space:nowrap}
.m3{color:var(--great)} .m2{color:var(--good)} .m1{color:var(--high)} .m0{color:var(--muted)}
.bars{display:inline-flex; gap:3px; align-items:center}
.bars i{display:block; width:13px; height:6px; border-radius:3px; background:var(--line)}
.bars.l1 i:nth-child(1){background:var(--high)}
.bars.l2 i:nth-child(-n+2){background:var(--good)}
.bars.l3 i{background:var(--great)}
.bars.big{gap:5px} .bars.big i{width:38px; height:10px; border-radius:5px}
/* match lab (?match=dial|count) */
.dial{width:22px; height:13px; flex:none; fill:none; stroke-width:3.4; stroke-linecap:round} .dial path{stroke:var(--line)}
.dial.l1 .on{stroke:var(--high)} .dial.l2 .on{stroke:var(--good)} .dial.l3 .on{stroke:var(--great)} .dial.big{width:72px; height:42px; stroke-width:3}
.pin .dial{width:14px; height:8px}
.tdots{display:inline-flex; gap:3px; align-items:center} .tdots i{width:7px; height:7px; border-radius:50%; background:var(--line)} .tdots i.y{background:var(--great)}
.tdots.big{gap:6px} .tdots.big i{width:14px; height:14px}
/* match lab round 2 (?match=ring|gauge|wish): gradients from the rating colours, a soft track, and on the listing the number inside */
.rg,.ws{width:24px; height:24px; flex:none; fill:none; overflow:visible}
.rg .trk{stroke:color-mix(in srgb, var(--line) 80%, var(--muted)); stroke-width:5; opacity:.55}
.rg .arc{stroke-width:5; stroke-linecap:round}
.ws circle{stroke-width:5} .ws .n{stroke:color-mix(in srgb, var(--line) 80%, var(--muted)); opacity:.55}
.rg text,.ws text{fill:var(--fg); stroke:none; font:800 12px var(--ui); text-anchor:middle; letter-spacing:-.04em}
.rg.big,.ws.big{width:88px; height:88px} .rg.big .trk,.rg.big .arc,.ws.big circle{stroke-width:4}
.gg{width:44px; height:27px; flex:none; fill:none; overflow:visible}
.gg .zn{stroke-width:6.5; opacity:.38} .gg .zn.on{opacity:1}
.gg .nd{stroke:var(--fg); stroke-width:2.6; stroke-linecap:round} .gg .kb{fill:var(--fg); stroke:var(--surface); stroke-width:1.6}
.gg.big{width:132px; height:80px} .gg.big .zn{stroke-width:5.5} .gg.big .nd{stroke-width:2}
.pin .rg,.pin .ws{width:13px; height:13px} .pin .gg{width:24px; height:15px} .pin .gg .nd{stroke-width:3.4}
.mhead:has(svg.big){flex-direction:row-reverse; justify-content:flex-end; align-items:center; gap:16px}
.mhead:has(.gg.big){flex-direction:column-reverse; align-items:flex-start; gap:4px}
.ctitle{font-size:15px; font-weight:600; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
.cmeta{font-size:13px; color:var(--muted); display:flex; flex-wrap:wrap; gap:3px 10px}
.cmeta .sw{color:var(--accent); font-weight:700}
.cmeta .over{color:var(--high); font-weight:700}
.csrc{font-size:12.5px; color:var(--muted)}
.empty{color:var(--muted); font-size:14px; padding:10px 0 30px; display:flex; flex-direction:column; gap:12px}
.empty b{color:var(--fg); font-size:16px}

/* floating map button */
.fab{position:absolute; z-index:650; right:14px; width:44px; height:44px; border-radius:14px; border:0; background:var(--surface); box-shadow:0 6px 22px var(--shadow); display:grid; place-items:center; transition:bottom .32s cubic-bezier(.2,.8,.2,1)}
/* map markers */
.pin{display:flex; flex-direction:column; align-items:center; gap:2px; background:var(--pinbg); color:var(--pinink); border:1px solid var(--pinline); border-radius:10px; padding:4px 8px 5px; font:700 12.5px var(--ui); white-space:nowrap; box-shadow:0 2px 8px var(--shadow); transform:translate(-50%,-50%); width:max-content; cursor:pointer}
.pin .bars{gap:2px} .pin .bars i{width:7px; height:3px; border-radius:1.5px}
.pin.in{border:2px solid var(--accent)}
.pin.seen{background:var(--tile)}
.pin.sel{background:var(--pinsel); color:var(--pinselink); border-color:var(--pinsel); z-index:1000; transform:translate(-50%,-50%) scale(1.08)}
.pin.approx{border-style:dashed; border-color:var(--muted)}
.pin.approx.in{border-color:var(--accent)}
.pin{position:relative}
.dotm{width:10px; height:10px; border-radius:50%; border:2px solid var(--surface); box-shadow:0 1px 4px var(--shadow); transform:translate(-50%,-50%)}
.dotm.in{box-shadow:0 0 0 2.5px var(--brand), 0 1px 4px var(--shadow)}
/* lab (?dots=): calmer marks for homes in the sweet spot */
[data-dots="solid"] .dotm.in{background:var(--brand); box-shadow:0 1px 4px var(--shadow); width:9px; height:9px; opacity:1}
[data-dots="thin"] .dotm.in{box-shadow:0 0 0 1.5px color-mix(in srgb, var(--brand) 55%, transparent), 0 1px 3px var(--shadow)}
[data-dots="plain"] .dotm.in{box-shadow:0 1px 4px var(--shadow)}
.dotm.l3{background:var(--great)} .dotm.l2{background:var(--good)} .dotm.l1,.dotm.l0{background:var(--muted); opacity:.55; width:8px; height:8px}
.placem{display:flex; align-items:center; gap:4px; transform:translate(-9px,-9px); width:max-content; pointer-events:none}
.placem b{width:20px; height:20px; border-radius:6px; background:var(--fg); color:var(--bg); font-size:11px; display:grid; place-items:center; box-shadow:0 2px 6px var(--shadow)}
.placem span{font-size:11.5px; font-weight:700; color:var(--fg); text-shadow:0 0 3px var(--bg),0 0 3px var(--bg),0 0 3px var(--bg)}
.leaflet-div-icon{background:none; border:0}

/* detail */
.detail{position:absolute; inset:0; z-index:900; background:var(--bg); overflow-y:auto; overscroll-behavior:contain; animation:up .3s cubic-bezier(.2,.8,.2,1)}
@keyframes up{from{transform:translateY(40px)} to{transform:none}}
.gallery{position:relative; height:min(46vh,360px); background:var(--tile)}
/* no photo that loads: the box keeps its place and size, plain light grey, a shade deeper than the page so it reads as a
   box (his note 2026-11-13); a card's box the same */
.gallery.empty,.ph:not(:has(img)){background:#E7E8EA}
.gallery .strip{display:flex; height:100%; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none}
.gallery .strip::-webkit-scrollbar{display:none}
.gallery img{flex:none; width:100%; height:100%; object-fit:cover; scroll-snap-align:center}
.gcount{position:absolute; right:14px; bottom:12px; background:rgba(12,14,16,.62); color:#fff; font-size:12px; font-weight:700; padding:3px 8px; border-radius:8px; font-variant-numeric:tabular-nums}
.garrow{position:absolute; top:50%; transform:translateY(-50%); width:38px; height:38px; border-radius:50%; border:0; background:rgba(255,255,255,.92); color:#111214; display:none; place-items:center; box-shadow:0 2px 10px rgba(0,0,0,.18)}
.garrow svg{width:18px; height:18px} .garrow.l{left:12px} .garrow.r{right:12px}
@media (hover:hover){ .garrow{display:grid} }
.dbtns{position:absolute; top:calc(var(--safe-t) + 12px); left:14px; right:14px; display:flex; gap:8px}
.dbtns button{flex:none; width:40px; height:40px; border-radius:50%; border:0; background:rgba(255,255,255,.94); color:#121518; display:grid; place-items:center; box-shadow:0 2px 10px rgba(0,0,0,.18)}
.dbtns .sp{flex:1}
.dbtns svg{width:18px; height:18px}
.dbtns .on{color:#111214}
.din{padding:18px 16px 28px; display:flex; flex-direction:column; gap:12px; max-width:640px; margin:0 auto}
.dprice{font-family:var(--display); font-size:32px; font-weight:700; letter-spacing:-.025em; line-height:1}
.dprice small{font-family:var(--ui); font-size:13px; font-weight:500; color:var(--muted); margin-left:4px}
.dtitle{font-size:19px; font-weight:700; letter-spacing:-.015em; line-height:1.25; margin:8px 0 10px}
.dsub{font-size:13.5px; color:var(--muted); margin-top:3px}
.inc{display:flex; flex-wrap:wrap; gap:6px; margin-top:12px}
.inc span{font-size:12.5px; font-weight:600; padding:5px 10px; border-radius:9px; background:var(--tile)}
.inc span.no{background:none; border:1px dashed var(--line); color:var(--muted)}
.inc span.q{background:none; border:1px solid var(--line); color:var(--muted); font-weight:500}
.sect{display:flex; flex-direction:column; gap:12px}
.sect h4{margin:0; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); font-weight:700}
.bigmatch{font-family:var(--display); font-size:24px; font-weight:700; letter-spacing:-.02em; line-height:1.1}
.why{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; font-size:15px}
.why li{display:flex; gap:10px; align-items:baseline}
.why li span{width:20px; flex:none; font-weight:700; text-align:center}
.why .y span{color:var(--great)} .why .n span{color:var(--high)} .why .m span{color:var(--muted)}
.vword{font-size:17px; font-weight:700}
.v-great{color:var(--great)} .v-good{color:var(--good)} .v-fair{color:var(--fair)} .v-high{color:var(--high)} .v-unknown{color:var(--muted)}
.scale{position:relative; height:4px; border-radius:2px; background:var(--line); margin:10px 8px 0}
.scale b{position:absolute; top:50%; width:18px; height:18px; border-radius:50%; transform:translate(-50%,-50%); background:currentColor; box-shadow:0 0 0 3px var(--surface)}
.scalelbl{display:grid; grid-template-columns:repeat(4,1fr); font-size:11px; color:var(--muted); text-align:center; margin-top:6px}
.note{font-size:13.5px; color:var(--muted)}
.summary{margin:0; padding-left:18px; display:flex; flex-direction:column; gap:6px; font-size:15px}
.linkbtn{border:0; background:none; padding:0; color:var(--fg); font-weight:700; font-size:13.5px; text-align:left; text-decoration:underline; text-underline-offset:3px}
.orig{font-size:13.5px; background:var(--tile); border-radius:12px; padding:12px; color:var(--muted); white-space:pre-line}
.around{display:grid; grid-template-columns:1fr 1fr; gap:8px}
.around div{background:var(--tile); border-radius:14px; padding:11px 12px; font-size:12.5px; color:var(--muted)}
.around b{display:block; font-size:15px; color:var(--fg); font-weight:600}
.around .in b::after{content:" ✓"; color:var(--great)}
.spark{width:100%; height:52px; display:block; color:var(--brand)}
.sparkd{display:flex; justify-content:space-between; font-size:11.5px; color:var(--muted); margin-top:2px}
details.more summary{cursor:pointer; font-size:13.5px; font-weight:700; color:var(--fg); padding:4px 0; list-style:none; text-decoration:underline; text-underline-offset:3px}
details.more summary::-webkit-details-marker{display:none}
details.more[open] summary{margin-bottom:10px}
.season{display:grid; grid-template-columns:repeat(12,1fr); gap:3px; align-items:end; height:44px}
.season div{background:var(--line); border-radius:3px}
.season div.hi{background:var(--fair)}
.months{display:grid; grid-template-columns:repeat(12,1fr); font-size:10px; color:var(--muted); text-align:center}
.srcs{display:flex; flex-direction:column; border-top:1px solid var(--line)}
.srcs a{display:flex; align-items:center; gap:10px; padding:13px 0; border-bottom:1px solid var(--line); font-size:15px; color:inherit; text-decoration:none}
.srcs .p{margin-left:auto; font-weight:700; font-variant-numeric:tabular-nums}
.srcs .go{border:1px solid var(--line); border-radius:999px; padding:6px 12px; font-size:12.5px; font-weight:700}
.fresh{font-size:13px; color:var(--muted); display:flex; gap:12px; flex-wrap:wrap}
.cta{display:block; text-align:center; text-decoration:none; border:0; border-radius:16px; padding:16px; font-size:16px; font-weight:700; background:var(--brand); color:var(--brand-ink)}
.quiet{border:0; background:none; color:var(--muted); font-size:14px; font-weight:600; padding:6px}
.fine{font-size:12px; color:var(--muted)}
.credit{text-align:center; padding:6px 0 0} .credit a{color:var(--muted)}

/* listing page: a header, a facts row, then one white card per topic */
.dhead{padding:4px 4px 6px}
.dloc{display:inline-flex; align-items:center; gap:6px; border:0; background:none; padding:0; font-size:13.5px; font-weight:700; color:var(--fg)}
.dloc .ic{width:16px; height:16px}
.dloc em{font-style:normal; font-weight:600; font-size:11.5px; color:var(--muted); border:1px dashed var(--muted); border-radius:999px; padding:1px 7px; margin-left:2px}
.pills{display:flex; flex-wrap:wrap; gap:6px; margin-top:12px}
.pills span{display:inline-flex; align-items:center; gap:5px; font-size:12.5px; font-weight:600; color:var(--muted); background:var(--surface); border-radius:999px; padding:5px 10px}
.pills span.ok{color:var(--great)}
.pills .ic{width:14px; height:14px}
.facts{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px}
.facts div{background:var(--surface); border-radius:16px; padding:12px 6px 10px; display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center}
.facts .ic{width:22px; height:22px}
.facts b{font-size:12.5px; font-weight:700; line-height:1.2}
.facts small{display:block; font-size:11px; font-weight:500; color:var(--muted)}
.dcard{background:var(--surface); border-radius:22px; padding:18px; display:flex; flex-direction:column; gap:12px}
.dcard h4{margin:0; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); font-weight:700}
.dcard h4:not(:first-child){margin-top:6px}
.mhead{display:flex; flex-direction:column; gap:8px}
.mtiles{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px}
.mt{position:relative; display:flex; gap:9px; align-items:flex-start; background:var(--bg); border:0; border-radius:14px; padding:11px 26px 11px 11px; text-align:left; font-size:12.5px; color:var(--muted); line-height:1.3}
button.mt{cursor:pointer; border:1px dashed var(--line); background:none}
.mt .ic{width:18px; height:18px; flex:none; color:var(--fg); margin-top:1px}
.mt b{display:block; font-size:13px; color:var(--fg); margin-bottom:1px}
.mk{position:absolute; top:9px; right:9px; width:17px; height:17px; border-radius:50%; font-style:normal; font-size:10px; font-weight:800; display:grid; place-items:center; color:#fff}
.mk.y{background:var(--great)} .mk.n{background:var(--high)} .mk.u{background:var(--line); color:var(--muted)}
.vhead{display:flex; justify-content:space-between; align-items:flex-end; gap:10px}
.vword{font-size:22px; font-weight:800; letter-spacing:-.02em}
.vmid{text-align:right; font-size:15px; font-weight:700; line-height:1.2}
.vmid small{font-size:11.5px; font-weight:500; color:var(--muted)} .vmid small:first-child{display:block}
.dmap{isolation:isolate; z-index:0; position:relative; height:180px; border-radius:16px; overflow:hidden; background:var(--tile); cursor:pointer}
.dmap .leaflet-container{background:var(--tile)}
.dmaptag{position:absolute; z-index:500; left:10px; top:10px; background:var(--surface); border-radius:999px; padding:4px 10px; font-size:12px; font-weight:700; box-shadow:0 2px 8px var(--shadow)}
.dpin{display:grid; place-items:center; width:38px; height:38px; border-radius:50%; background:var(--fg); color:var(--bg); transform:translate(-50%,-50%); box-shadow:0 0 0 5px rgba(17,18,20,.12)}
.dpin .ic{width:19px; height:19px}
.trips{display:flex; flex-direction:column; gap:6px}
.trip{display:flex; align-items:center; gap:10px; background:var(--bg); border-radius:12px; padding:9px 12px; font-size:14px; position:relative}
.trip .pdot{width:22px; height:22px; border-radius:6px; background:var(--fg); color:var(--bg); font-size:11px; font-weight:700; display:grid; place-items:center; flex:none}
.trip .tn{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.trip b{font-weight:700; font-variant-numeric:tabular-nums}
.trip .mk{position:static}
.addp{display:flex; gap:12px; align-items:center; border:1px dashed var(--line); background:none; border-radius:14px; padding:12px 14px; text-align:left; font-size:13px; color:var(--muted)}
.addp b{display:block; color:var(--fg); font-size:14px}
.addp .ic{width:22px; height:22px; color:var(--fg); flex:none}
.dcard .btn{display:flex; align-items:center; justify-content:center; gap:8px}
.dcard .btn .ic{width:18px; height:18px}
.feats{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px}
.feats.f4{grid-template-columns:repeat(4,minmax(0,1fr))} .feats.f4 .feat{padding:10px 8px}
.nobills{display:flex; gap:10px; align-items:center; background:var(--bg); border-radius:14px; padding:12px; font-size:13px; color:var(--muted)}
.nobills .ic{width:20px; height:20px; flex:none; color:var(--muted)}
.feat{background:var(--bg); border-radius:14px; padding:11px 10px; display:flex; flex-direction:column; gap:4px; font-size:12px; color:var(--muted)}
.feat .ic{width:20px; height:20px; color:var(--fg); margin-bottom:2px}
.feat b{font-size:13px; color:var(--fg)} .feat b small{font-weight:500; color:var(--muted)}
.feat.y span{color:var(--great); font-weight:700}
.feat.n span{color:var(--fg); font-weight:600}
.feat.n .ic{color:var(--muted)}
.feat.u{background:none; border:1px dashed var(--line)} .feat.u .ic,.feat.u b{color:var(--muted)}
.dcard .tog{padding:6px 0}
.dbar{position:sticky; bottom:0; z-index:5; margin:0 -16px -28px; display:flex; align-items:center; gap:12px; justify-content:space-between; background:var(--surface); border-top:1px solid var(--line); padding:12px 16px calc(12px + var(--safe-b))}
.dbp{display:flex; flex-direction:column; gap:3px; min-width:0; font-size:18px; font-weight:800; letter-spacing:-.02em; line-height:1.1}
.dbp small{font-size:12px; font-weight:500; color:var(--muted); margin-left:2px; letter-spacing:0}
.dbp .match{font-size:12px; letter-spacing:0; white-space:normal; line-height:1.2} .dbp .bars i{width:10px; height:5px}
.dbar .cta{flex:none; padding:14px 18px; font-size:15px; border-radius:14px}

/* listing page on a wide screen: split screen. The photos fill the left half and scroll on their own;
   the cards scroll on the right, with the price bar fixed along the bottom (his pick, 2026-11-03) */
@media (min-width: 900px){
  .detail,#app.v-home .detail{inset:0; width:auto; border-radius:0; box-shadow:none; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,600px); grid-template-rows:100%; overflow:hidden}
  .gallery{grid-column:1; height:100%; margin:0; border-radius:0}
  .gallery .strip{flex-direction:column; overflow-y:auto; overflow-x:hidden; gap:6px; scroll-snap-type:y proximity}
  .gallery .strip img{height:auto; aspect-ratio:3/2; flex:none; scroll-snap-align:start}
  .gallery .garrow{display:none!important}
  .din{grid-column:2; overflow-y:auto; overscroll-behavior:contain; max-width:none; margin:0; gap:14px; padding:28px 28px 0}
  .din > .dbar{z-index:700; margin:8px -28px 0; padding:16px 28px; box-shadow:0 -8px 24px var(--shadow); border-top:0} /* above the small map's layers */
  .dbar .dbp{font-size:22px}
  .dtitle{font-size:26px}
}

/* adding a place: a search for a specific spot, then any of a kind */
.dbox.tall{height:min(88%, 680px)} .dbox.tall .results{flex:none}
.dsearch{display:flex; align-items:center; gap:10px; border:1px solid var(--line); background:var(--bg); border-radius:14px; padding:0 12px}
.dsearch svg{width:18px; height:18px; flex:none; color:var(--muted)}
.dbox .dsearch input{border:0; background:none; padding:12px 0; border-radius:0}
.dsec{display:flex; flex-direction:column; gap:1px; margin-top:4px} .dsec b{font-size:15px} .dsec span{font-size:13px; color:var(--muted)}
.chip.catc{gap:7px; padding:6px 12px 6px 6px} .chip.catc i{width:22px; height:22px; border-radius:7px; background:var(--tile); font-style:normal; font-size:11px; font-weight:800; display:grid; place-items:center}
.btn .ic{width:17px; height:17px; vertical-align:-3px; margin-right:6px}
.chip.place.any{border-style:dashed}
.catm{width:20px; height:20px; border-radius:6px; background:var(--surface); border:1.5px solid var(--fg); display:grid; place-items:center; transform:translate(-50%,-50%); box-shadow:0 1px 4px var(--shadow)} .catm .ic{width:12px; height:12px}
.chip.catc i .ic{width:14px; height:14px} .pdot .ic,.trip .pdot .ic{width:12px; height:12px}
/* tap a pin on the map: a small preview card above the sheet */
.pinpeek{position:absolute; z-index:760; left:12px; right:12px; bottom:calc(150px + var(--safe-b) + 12px); animation:pkup .22s cubic-bezier(.2,.8,.2,1)}
@keyframes pkup{from{transform:translateY(16px); opacity:0} to{transform:none; opacity:1}}
@media (prefers-reduced-motion: reduce){ .pinpeek{animation:none} }
.pk{position:relative; display:flex; gap:12px; align-items:stretch; background:var(--surface); border-radius:20px; padding:8px; box-shadow:0 12px 34px rgba(0,0,0,.2); cursor:pointer}
.pkph{flex:none; width:104px; height:88px; border-radius:14px; overflow:hidden; background:var(--tile)} .pkph img{width:100%; height:100%; object-fit:cover; display:block}
.pkin{flex:1; min-width:0; display:flex; flex-direction:column; justify-content:center; gap:4px; padding-right:38px}
.pkpr{font-size:18px; font-weight:800; letter-spacing:-.02em} .pkpr small{font-size:12px; font-weight:500; color:var(--muted); margin-left:2px}
.pkt{font-size:13px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.pk .match{font-size:12px} .pk .bars i{width:10px; height:5px}
.pk .heart{top:8px; right:8px; width:32px; height:32px; background:var(--bg)} .pk .heart svg{width:16px; height:16px}
#app.v-home .pinpeek{display:none}
@media (min-width: 900px){ .pinpeek{left:auto; right:24px; bottom:24px; width:380px} }
/* dialog */
.dialog{position:absolute; inset:0; z-index:950; background:var(--scrim); display:flex; align-items:flex-end; justify-content:center}
.dbox{width:100%; max-width:520px; background:var(--surface); border-radius:26px 26px 0 0; padding:20px 20px calc(24px + var(--safe-b)); display:flex; flex-direction:column; gap:14px; max-height:86%; overflow-y:auto; animation:up .28s cubic-bezier(.2,.8,.2,1)}
.dbox{position:relative; transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.dbox > *{flex-shrink:0} /* a long sheet scrolls; it never squashes what's in it (his note: the × on Filters was squashed to half its height) */
.dgrab{display:block; width:40px; height:5px; border-radius:3px; background:var(--line); margin:-8px auto 0}
.dx{position:sticky; top:0; float:right; align-self:flex-end; margin:-10px -6px -38px 0; z-index:2; width:36px; height:36px; border-radius:50%; border:0; background:var(--bg); color:var(--fg); display:grid; place-items:center}
.dx svg{width:16px; height:16px}
.dbox h3{padding-right:40px} .dbox h3{margin:0; font:700 21px var(--display); letter-spacing:-.02em}
.dbox p{margin:0; color:var(--muted); font-size:14px}
.dbox input,.dbox textarea{width:100%; border:1px solid var(--line); background:var(--bg); color:var(--fg); border-radius:14px; padding:12px 14px; font:500 16px var(--ui); outline:none} /* 16px: smaller makes iPhone Safari zoom in */
.dbox textarea{min-height:130px; resize:vertical}
.dbox .opts{display:flex; flex-wrap:wrap; gap:8px}
.dbox .results{display:flex; flex-direction:column}
.dbox .results button{border:0; border-bottom:1px solid var(--line); background:none; text-align:left; padding:12px 2px; font-size:14px}
.dbox .results button small{display:block; color:var(--muted); font-size:12px}
.dbox .acts{display:flex; gap:10px}
.dbox .acts button{flex:1}
.btn{border:1px solid var(--line); background:none; border-radius:14px; padding:13px; font-weight:700}
.btn.primary{background:var(--fg); color:var(--bg); border-color:var(--fg)}
#app.pinning .sheet,#app.pinning .viewpill,#app.pinning .fab,#app.pinning .top,#app.pinning .legend,#app.pinning .mapcredit{display:none!important}
.tapbar{position:absolute; z-index:960; left:14px; right:14px; top:calc(var(--safe-t) + 12px); background:var(--fg); color:var(--bg); border-radius:16px; padding:14px 16px; font-weight:600; display:flex; justify-content:space-between; align-items:center; gap:10px}
.tapbar button{border:0; background:var(--bg); color:var(--fg); border-radius:10px; padding:6px 12px; font-weight:700}

.toast{position:absolute; left:50%; bottom:calc(24px + var(--safe-b)); transition:opacity .25s, transform .25s; transform:translate(-50%,16px); z-index:1000; background:var(--fg); color:var(--bg); padding:11px 16px; border-radius:14px; font-size:14px; font-weight:600; opacity:0; transition:.25s; pointer-events:none; width:max-content; max-width:88%; text-align:center}
.toast.show{opacity:1; transform:translate(-50%,0)}
.toast.act{pointer-events:auto}
.toast button{margin-left:10px; border:0; background:var(--bg); color:var(--fg); border-radius:9px; padding:4px 10px; font-weight:700}
.empty .opts{display:flex; flex-wrap:wrap; gap:8px}
a.bm{color:var(--fg); font-weight:700}
.mapcredit{position:absolute; z-index:640; left:10px; bottom:calc(150px + 4px); font-size:10px; color:var(--muted); background:color-mix(in srgb, var(--surface) 70%, transparent); padding:1px 6px; border-radius:6px; transition:bottom .32s cubic-bezier(.2,.8,.2,1)}
.mapcredit a{color:inherit; text-decoration:none}
.legend{position:absolute; z-index:640; right:14px; top:calc(var(--safe-t) + 112px); display:flex; gap:12px; background:var(--surface); border-radius:12px; padding:6px 10px; font-size:12px; font-weight:600; box-shadow:0 3px 12px var(--shadow)}
.legend i{display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; vertical-align:0}
.legend .lg-bar{background:var(--bar)} .legend .lg-shop{border:2px solid var(--need); width:9px; height:9px}
.layers:not([hidden]) ~ .legend{display:none}
.layers .sw-dot{display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:8px; vertical-align:1px}
.loading{position:absolute; inset:0; z-index:2000; background:var(--bg); display:grid; place-items:center; color:var(--muted); font-size:15px}

/* ---------- home page: a hero to say what you want, then shelves; a search turns into an answer and results ---------- */
.home{position:absolute; inset:0; z-index:450; background:var(--bg); overflow-y:auto; overflow-x:hidden; overscroll-behavior:none; display:none} /* no rubber-band: pulling down past the top opened a gap (his note) */
#app.v-home .home{display:block}
#app.v-home .sheet,#app.v-home #fitBtn,#app.v-home #layersBtn,#app.v-home .mapcredit,#app.v-home .legend,#app.v-home .layers,#app.v-home #placesRow{display:none!important}
#app.v-home .top{background:var(--bg); padding-bottom:10px; transition:transform .25s cubic-bezier(.2,.8,.2,1), opacity .2s}
#app.v-home:not(.results):not(.hero-gone) .top{transform:translateY(-100%); opacity:0; pointer-events:none}
#app.v-home:not(.results):not(.hero-gone) .top > *{pointer-events:none}
#app.v-home .top .searchbox{box-shadow:0 2px 10px var(--shadow)}
#app.results .home{padding-top:var(--hdr,66px)}
#app.results .hero{display:none}

/* The start page: the live map shows through, your rings on it; the headline answers you, the card holds the sentence */
#app.v-home:not(.results) .home{background:transparent}
.below{background:var(--bg); position:relative}
#app.results .below{background:none}
/* the map melts into the page below instead of stopping at a hard line (his note) */
/* the map fades into the page on an eased curve over 160px (his note: a straight 70px fade ended in a visible line above Filters) */
.hero::after{content:""; position:absolute; left:0; right:0; bottom:-1px; height:160px; background:linear-gradient(180deg, color-mix(in srgb, var(--bg) 0%, transparent) 0%, color-mix(in srgb, var(--bg) 1.3%, transparent) 8.1%, color-mix(in srgb, var(--bg) 4.9%, transparent) 15.5%, color-mix(in srgb, var(--bg) 10.4%, transparent) 22.5%, color-mix(in srgb, var(--bg) 17.5%, transparent) 29%, color-mix(in srgb, var(--bg) 25.9%, transparent) 35.3%, color-mix(in srgb, var(--bg) 35.2%, transparent) 41.2%, color-mix(in srgb, var(--bg) 45.0%, transparent) 47.1%, color-mix(in srgb, var(--bg) 55.0%, transparent) 52.9%, color-mix(in srgb, var(--bg) 64.8%, transparent) 58.8%, color-mix(in srgb, var(--bg) 74.1%, transparent) 64.7%, color-mix(in srgb, var(--bg) 82.5%, transparent) 71%, color-mix(in srgb, var(--bg) 89.6%, transparent) 77.5%, color-mix(in srgb, var(--bg) 95.1%, transparent) 84.5%, color-mix(in srgb, var(--bg) 98.7%, transparent) 91.9%, color-mix(in srgb, var(--bg) 100%, transparent) 100%); pointer-events:none; z-index:0}
.hero > *{position:relative; z-index:1}
.hero{position:relative; height:100svh; min-height:620px; display:flex; flex-direction:column; justify-content:space-between; padding:calc(var(--safe-t) + 14px) 12px calc(var(--safe-b) + 12px);
  background:linear-gradient(180deg, color-mix(in srgb, var(--bg) 97%, transparent) 0%, color-mix(in srgb, var(--bg) 95%, transparent) 27%, color-mix(in srgb, var(--bg) 0%, transparent) 40%, transparent 55%, color-mix(in srgb, var(--bg) 70%, transparent) 100%)}
.hmap{position:absolute; inset:0; border:0; background:none; padding:0; cursor:pointer}
/* the map area sits over the page below, so the card's shadow fades out instead of being cut where the page starts (his note:
   a shadow line above Filters); the lab scroll looks slide the page over the map, so they keep the old order */
html:not([data-scroll]) .hero{z-index:6} /* over the Filters row (5), whose own fill would cut the shadow */
.htop{position:relative; display:flex; justify-content:space-between; align-items:center; padding:0 4px}
.glassw{display:inline-flex; align-items:center; gap:6px; height:38px; padding:0 13px 0 10px; border:0; border-radius:999px; background:var(--surface); box-shadow:0 4px 16px var(--shadow); font-size:14px; font-weight:700}
.glassw .ic{width:16px; height:16px}
.ibw{position:relative; width:40px; height:40px; border:0; border-radius:50%; background:var(--surface); box-shadow:0 4px 16px var(--shadow); display:grid; place-items:center}
.ibw svg{width:18px; height:18px}
.ibw .n{position:absolute; top:-4px; right:-4px; min-width:18px; height:18px; border-radius:9px; background:var(--fg); color:var(--bg); font-size:10.5px; font-weight:800; display:grid; place-items:center; padding:0 4px}
.hhead{position:relative; padding:14px 8px 0; pointer-events:none; margin-bottom:auto}
.hhead h1{margin:0; font-size:clamp(27px, 7.2vw, 60px); line-height:1.06; letter-spacing:-.035em; font-weight:800; text-wrap:balance}
.hhead p{margin:6px 0 0; font-size:clamp(14.5px, 3.8vw, 20px); font-weight:600; color:var(--muted); max-width:34ch}
.hcard{position:relative; background:var(--surface); border-radius:28px; padding:16px 16px 14px; box-shadow:0 18px 50px rgba(0,0,0,.16); display:flex; flex-direction:column; gap:12px}
.hplaces .chips{padding:0; flex-wrap:wrap}
.addp.big{width:100%}
.sent{margin:0; font-size:17px; line-height:1.85; font-weight:600; letter-spacing:-.01em; color:var(--muted)}
.slot{display:inline-block; vertical-align:baseline; white-space:nowrap; line-height:1.3; border:0; font:inherit; font-weight:700; color:var(--fg); background:var(--tile); border-radius:8px; padding:3px 7px; margin:2px 1px; cursor:pointer} /* inline-block: iPhone Safari tapped one line low on inline buttons */
.slot::after{content:""; display:inline-block; width:6px; height:6px; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); transform:translateY(-3px) rotate(45deg); margin-left:6px}
.slot.add{background:none; border:1.5px dashed var(--line); color:var(--muted); font-weight:600} .slot.add::after{display:none}
.say{display:flex; align-items:center; gap:10px; border:1px solid var(--line); border-radius:16px; padding:0 12px}
.say .spk{width:18px; height:18px; color:var(--brand); flex:none}
.say input{flex:1; min-width:0; border:0; background:none; outline:none; font:500 16px var(--ui); color:var(--fg); padding:12px 0; -webkit-appearance:none}
.say input::placeholder{color:var(--muted)} .say input::-webkit-search-cancel-button{display:none}
.cta2{display:flex; align-items:center; justify-content:center; gap:8px; width:100%; border:0; border-radius:18px; padding:15px; background:var(--brand); color:var(--brand-ink); font-size:16px; font-weight:700}
.cta2 .ic{width:19px; height:19px}
.cta2[data-none="1"]{background:var(--fg); color:var(--bg)}
#app.v-home:not(.results):not(.hero-gone) .viewpill{opacity:0; pointer-events:none}

.addrow{display:flex; align-items:center; gap:10px; width:100%; border:0; background:var(--tile); border-radius:14px; padding:11px 12px; font-size:15px; color:var(--fg); text-align:left}
.addrow .ic{width:18px; height:18px; flex:none} .addrow b{flex:1} .addrow .plus{font-size:20px; line-height:1; color:var(--muted)}
.hcard .say{border-color:transparent; background:var(--bg)} .hcard .say input{padding:10px 0}
.hhead p{max-width:28ch}
.used{display:flex; flex-wrap:wrap; gap:6px; align-items:center; font-size:12.5px}
.used span{font-weight:700; color:var(--muted); margin-right:2px}
.used i{font-style:normal; font-weight:600; background:var(--bg); border-radius:999px; padding:4px 10px}
.usednote{margin:0; padding-left:18px; font-size:13.5px; color:var(--muted); display:flex; flex-direction:column; gap:3px}
.addnudge.strong{border-style:solid; border-color:var(--brand); color:var(--brand); font-weight:700}
/* card lab (?card=): the sentence leads; being near is a word in it; typing hides until asked for */
[data-card] .hcard .say{display:none} [data-card] .hcard.typing .say{display:flex} [data-card] .hcard.typing .sent{display:none}
[data-card] .hcard.typing .say input{font-size:17px; padding:14px 0}
[data-card] .sent{position:relative}
.ctype{position:absolute; right:-4px; bottom:-2px; width:34px; height:34px; border-radius:50%; border:0; background:color-mix(in srgb, var(--brand) 10%, transparent); color:var(--brand); display:grid; place-items:center}
.ctype .ic{width:17px; height:17px}
[data-card="inline"] .sent{padding-right:30px}
.clinks:empty{display:none}
.clinks .cback{display:none} .hcard.typing .clinks .cback{display:inline-flex} .hcard.typing .clinks .cpick{display:none}
.clinks .cback svg{width:14px; height:14px}
[data-card="inline"] .clinks:not(:has(.cback:not([style]))){} 
.clinks{display:flex; justify-content:center; align-items:center; gap:10px; margin-top:-2px}
.clinks button{display:inline-flex; align-items:center; gap:5px; border:0; background:none; font:600 13.5px var(--ui); color:var(--muted); padding:4px 2px}
.clinks .ic{width:15px; height:15px} .clinks span{width:3px; height:3px; border-radius:50%; background:var(--line)}
.ctabs{display:inline-flex; gap:3px; padding:3px; border-radius:999px; background:var(--tile)}
.ctabs button{border:0; background:none; border-radius:999px; padding:7px 14px; font:700 13.5px var(--ui); color:var(--muted)}
.ctabs button.on{background:var(--surface); color:var(--fg); box-shadow:0 1px 4px var(--shadow)}
/* fold (?card=fold): on a phone the card folds to one summary line; tap it to open the full sentence */
.cfold{display:none}
@media (max-width: 899px){
  [data-card="fold"] .cfold{display:flex; align-items:center; gap:8px; width:100%; padding:2px 0; color:var(--fg)}
  .fchips{flex:1; min-width:0; display:flex; flex-wrap:wrap; gap:6px}
  .fchips button{display:inline-flex; align-items:center; gap:5px; border:0; font:700 13.5px var(--ui); padding:7px 11px 7px 9px; border-radius:999px;
    background:color-mix(in srgb, var(--brand) 9%, var(--surface)); color:var(--fg)}
  .fchips button .ic{width:15px; height:15px; color:var(--brand)}
  .fchips button.fadd{background:none; border:1.5px dashed color-mix(in srgb, var(--brand) 40%, transparent); color:var(--brand)}
  .fchevb{flex:none; display:grid; place-items:center; width:40px; height:40px; margin:-8px -8px -8px 0; border:0; background:none; color:var(--muted)}
  .fchev{width:20px; height:20px; flex:none; transition:transform .2s}
  [data-card="fold"] .hcard.open .fchev{transform:rotate(180deg)}
  [data-card="fold"] .hcard.open .fchips{display:none}
  [data-card="fold"] .hcard.open .cfold{position:absolute; right:14px; top:10px; width:auto}
  [data-card="fold"] .hcard.open{padding-top:38px}
  [data-card="fold"] .hcard:not(.open) .sent,[data-card="fold"] .hcard:not(.open) .clinks,[data-card="fold"] .hcard:not(.open) #heroType{display:none}
}
/* typing box lab (?type=box|examples|first): the box is always there, labelled, never a mode you switch into */
[data-type] .hcard .say{display:flex; border:1.5px solid var(--line); background:var(--surface)} [data-type] .hcard .say input{font-size:16px; padding:13px 0}
[data-type] .hcard .say:focus-within{border-color:var(--brand)}
.saylab{margin:0 0 -4px; font:700 14px var(--ui); color:var(--fg)}
.sayex{display:flex; flex-wrap:wrap; gap:6px; margin-top:-4px} .sayex:empty{display:none}
.sayex button{border:1px solid var(--line); background:var(--surface); border-radius:999px; padding:7px 12px; font:600 13.5px var(--ui); color:var(--fg)}
[data-type="first"] #heroType{order:-3} [data-type="first"] .say{order:-2} [data-type="first"] #heroEx{order:-1} [data-type="first"] .hplaces{margin-top:4px}
[data-type="first"] .hplaces .saylab{color:var(--muted); font-weight:600}
#heroType:empty{display:none} .hcard.typing #heroType{display:none}
.tpill{display:inline-flex; align-items:center; gap:8px; border:1.5px solid color-mix(in srgb, var(--brand) 35%, transparent); background:color-mix(in srgb, var(--brand) 7%, transparent); color:var(--brand); border-radius:999px; padding:8px 14px 8px 11px; font:700 14px var(--ui)}
.tpill .ic{width:17px; height:17px}
.tpill.tell{width:100%; border-radius:16px; padding:10px 12px; gap:12px; text-align:left}
.tpill.tell .ic{width:20px; height:20px; padding:8px; box-sizing:content-box; border-radius:50%; background:var(--brand); color:var(--brand-ink)}
.tpill.tell span{display:flex; flex-direction:column; font-weight:500; font-size:12.5px; color:var(--muted)} .tpill.tell b{font-size:15px; color:var(--fg)}
/* scroll cue lab (?scroll=) */
.scrollcue{display:none}
[data-scroll="peek"] .hero{height:calc(100svh - 118px); min-height:540px}
[data-scroll="peek"] #below{border-radius:24px 24px 0 0; margin-top:-6px; box-shadow:0 -10px 30px rgba(0,0,0,.08)}
[data-scroll="cue"] .scrollcue{display:flex; align-self:center; align-items:center; gap:6px; margin-top:10px; border:0; background:var(--surface); color:var(--fg); border-radius:999px; padding:8px 14px; font:700 13px var(--ui); box-shadow:0 4px 14px var(--shadow); animation:bob 2.4s ease-in-out infinite}
.scrollcue svg{width:16px; height:16px; color:var(--brand)}
@keyframes bob{0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)}}
@media (prefers-reduced-motion: reduce){ .scrollcue{animation:none} }
[data-scroll="cue"] .hero{padding-bottom:calc(var(--safe-b) + 8px)}
[data-scroll="sheet"] .hero{height:calc(100svh - 128px); min-height:530px}
[data-scroll="sheet"] .hero::after{display:none}
[data-scroll="photos"] .hero,[data-scroll="nudge"] .hero{height:calc(100svh - 118px); min-height:540px}
[data-scroll="photos"] #app:not(.results) .hfilters,[data-scroll="nudge"] #app:not(.results) .hfilters,[data-scroll="strip"] #app:not(.results) .hfilters{display:none}
[data-scroll="photos"] #app:not(.results) .hbody{padding-top:4px}
[data-scroll="strip"] .scrollcue{display:flex; align-self:stretch; justify-content:center; align-items:center; gap:8px; margin:10px 4px 0; border:0; background:none; color:var(--muted); font:700 13px var(--ui); padding:6px 0}
[data-scroll="strip"] .scrollcue::before,[data-scroll="strip"] .scrollcue::after{content:""; flex:1; height:1px; background:var(--line)}
[data-scroll="strip"] .scrollcue span::after{content:" · great prices"}
[data-scroll="strip"] .hero{padding-bottom:calc(var(--safe-b) + 6px)}
[data-scroll="sheet"] #below{border-radius:28px 28px 0 0; margin-top:-10px; padding-top:10px; box-shadow:0 -12px 34px rgba(0,0,0,.12); background:var(--surface)}
[data-scroll="sheet"] #below::before{content:""; display:block; width:40px; height:5px; border-radius:3px; background:var(--line); margin:0 auto 6px}
[data-scroll="sheet"] #below .hbody{background:var(--surface)}
/* the sentence already holds the filters, so on the start page the peek shows homes, not chips */
[data-scroll="peek"] #app:not(.results) .hfilters,[data-scroll="sheet"] #app:not(.results) .hfilters{display:none}
[data-scroll="peek"] #app:not(.results) .hbody,[data-scroll="sheet"] #app:not(.results) .hbody{padding-top:16px}
/* lab looks for the start page (?hero=) */
.hhead h1 em{font-style:normal} [data-hero] .hhead h1 em{color:var(--brand)}
.hpulse{position:absolute; left:50%; top:calc(100% + 120px); width:0; height:0; pointer-events:none}
.hpulse i{position:absolute; left:-90px; top:-90px; width:180px; height:180px; border-radius:50%; border:2px solid var(--brand); opacity:0; animation:hp 3.6s cubic-bezier(.2,.6,.3,1) infinite}
.hpulse i:nth-child(2){animation-delay:1.2s} .hpulse i:nth-child(3){animation-delay:2.4s}
.hpulse b{position:absolute; left:-9px; top:-9px; width:18px; height:18px; border-radius:50%; background:var(--brand); box-shadow:0 0 0 6px color-mix(in srgb, var(--brand) 22%, transparent)}
@keyframes hp{0%{transform:scale(.15); opacity:.75} 100%{transform:scale(1.2); opacity:0}}
@media (prefers-reduced-motion: reduce){ .hpulse i{animation:none; opacity:.35} .hpulse i:nth-child(2){transform:scale(.6)} .hpulse i:nth-child(3){display:none} }
.phpin{transform:translate(-50%,-100%); display:flex; flex-direction:column; align-items:center; gap:3px; cursor:pointer}
.phpin img,.leaflet-container .phpin img{width:46px; height:46px; border-radius:14px; object-fit:cover; border:3px solid var(--surface); box-shadow:0 6px 16px rgba(0,0,0,.22); display:block}
.phpin b{font-size:11.5px; font-weight:800; background:var(--surface); border-radius:999px; padding:2px 7px; box-shadow:0 2px 6px var(--shadow)}
.hfan{display:flex; margin:0 0 16px -2px; height:74px; pointer-events:auto}
.hf{position:relative; flex:none; width:66px; height:74px; margin-right:-14px; border:0; padding:0; background:none; transform:rotate(calc((var(--i) - 1.5) * 5deg)); transform-origin:50% 100%}
.hf img{width:66px; height:74px; object-fit:cover; border-radius:14px; border:3px solid var(--surface); box-shadow:0 8px 18px rgba(0,0,0,.18); display:block}
.hf b{position:absolute; left:50%; bottom:-6px; transform:translateX(-50%); font-size:10.5px; font-weight:800; background:var(--surface); border-radius:999px; padding:1px 6px; box-shadow:0 2px 6px var(--shadow); white-space:nowrap}
.segs{display:inline-flex; gap:4px; padding:4px; border-radius:999px; background:var(--bg); align-self:flex-start}
.segs button{display:inline-flex; align-items:center; gap:6px; border:0; background:none; border-radius:999px; padding:7px 13px; font:700 13.5px var(--ui); color:var(--muted)}
.segs button svg{width:14px; height:14px} .segs button b{font-weight:800}
.segs button.on{background:var(--surface); color:var(--fg); box-shadow:0 1px 4px var(--shadow)}
.chip.nearc{border:1.5px dashed color-mix(in srgb, var(--brand) 45%, transparent); color:var(--brand)} .chip.nearc .ic{width:15px; height:15px}
/* the card glows green as it heads for "keep", red for "not for me" (his note) */
.dcrd::after{content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; z-index:2;
  box-shadow:inset 0 0 0 calc(var(--k) * 5px) var(--great), inset 0 0 calc(var(--k) * 90px) color-mix(in srgb, var(--great) 55%, transparent);
  background:linear-gradient(90deg, transparent 55%, color-mix(in srgb, var(--great) calc(var(--k) * 35%), transparent))}
.dcrd.passing::after,.dcrd.out-l::after{box-shadow:inset 0 0 0 calc(var(--p) * 5px) var(--high), inset 0 0 calc(var(--p) * 90px) color-mix(in srgb, var(--high) 55%, transparent);
  background:linear-gradient(270deg, transparent 55%, color-mix(in srgb, var(--high) calc(var(--p) * 35%), transparent))}
.dcrd.out-r{--k:1} .dcrd.out-l{--p:1}
.dkb.yes:active{box-shadow:0 0 0 6px color-mix(in srgb, var(--great) 35%, transparent)} .dkb.no:active{box-shadow:0 0 0 6px color-mix(in srgb, var(--high) 35%, transparent)}
.passm{width:14px; height:14px; border-radius:50%; background:var(--surface); border:1.5px solid var(--muted); color:var(--muted); font:800 9px/11px var(--ui); text-align:center; transform:translate(-50%,-50%); opacity:.75; cursor:pointer}
/* card stack lab (?deck=): more of the home on the card */
.dkbody{flex:1; min-height:0; display:flex; flex-direction:column; gap:12px}
.dkbody .dkstack{flex:1; min-height:0}
.kdet{display:flex; flex-direction:column; gap:10px; font-size:13.5px}
.kfacts{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px}
.kfacts span{display:flex; flex-direction:column; align-items:center; gap:3px; background:var(--bg); border-radius:12px; padding:8px 4px; font-weight:700; font-size:12px; text-align:center}
.kfacts .ic{width:18px; height:18px}
.kfair{display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:4px 12px} .kfair > b{font-size:15px} .kfair small{grid-column:1/-1; color:var(--muted); font-size:12px}
.kfair .scale{margin:0 6px}
.kwhy{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px}
.kwhy li{display:grid; grid-template-columns:20px 86px minmax(0,1fr); align-items:center; gap:6px; font-size:13px; color:var(--muted)} .kwhy li b{color:var(--fg); font-size:13px}
.kwhy .mk{position:static}
.kinc{display:flex; flex-wrap:wrap; gap:5px} .kinc span{font-size:12px; font-weight:700; padding:4px 9px; border-radius:999px; background:var(--bg)} .kinc .y{color:var(--great)} .kinc .n{color:var(--muted)}
.kfresh{margin:0; font-size:12px; color:var(--muted)}
/* A: details beside (computer) or under (phone) the stack */
.dkside{display:none}
[data-deck="side"] .dkside{display:block; background:var(--surface); border-radius:22px; padding:14px; overflow:auto; max-height:36%; flex:none}
[data-deck="side"] .dkside .kdet{min-height:0}
[data-deck="side"] .dwhy{display:none}
/* B: photo on top, the facts underneath, on the card */
.dcrd .kdet,.kflip{display:none}
[data-deck="below"] .dcrd > img{height:52%; bottom:auto}
[data-deck="below"] .dcrd .dinfo{bottom:48%; padding-bottom:14px} [data-deck="below"] .dcrd .dwhy{display:none}
[data-deck="below"] .dcrd .kdet{display:flex; position:absolute; left:0; right:0; bottom:0; height:48%; background:var(--surface); padding:12px 14px 14px; overflow:auto; z-index:3}
/* C: a Details button turns the card over */
[data-deck="flip"] .kflip{display:inline-flex; position:absolute; right:14px; bottom:14px; z-index:4; align-items:center; gap:6px; border:0; border-radius:999px; padding:8px 13px; background:var(--surface); color:var(--fg); font:700 13px var(--ui); box-shadow:0 4px 14px rgba(0,0,0,.2)}
[data-deck="flip"] .kflip .ic{width:15px; height:15px}
[data-deck="flip"] .dcrd .dinfo{padding-bottom:58px}
.kfull{margin-top:auto} .dcrd.flipped .dmatch,.dcrd.flipped .dbars{visibility:hidden}
.upnext{margin-top:16px; border-top:1px solid var(--line); padding-top:14px} .upnext h4{margin:0 0 10px; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted)}
.upnext > div{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px}
.upnext button{border:0; background:none; padding:0; text-align:left; display:flex; flex-direction:column; gap:2px; cursor:pointer} .upnext img{width:100%; aspect-ratio:1; object-fit:cover; border-radius:10px; background:var(--tile)}
.upnext b{font-size:12.5px} .upnext small{font-size:11px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
[data-deck="tap"] .dcrd.flipped .kdet,[data-deck="flip"] .dcrd.flipped .kdet{display:flex; position:absolute; inset:0; z-index:3; background:var(--surface); padding:18px 16px; overflow:auto; animation:kflip .25s ease}
[data-deck="flip"] .dcrd.flipped .kflip{display:none}
@keyframes kflip{from{transform:rotateY(-12deg); opacity:.4} to{transform:none; opacity:1}}
@media (min-width: 900px){
  .dkbody{flex-direction:row; justify-content:center; align-items:stretch; gap:24px}
  .dkbody .dkstack{flex:none; width:min(520px,48vw); margin:16px 0 0}
  [data-deck="side"] .dkside{max-height:none; width:380px; margin-top:16px; padding:20px} [data-deck="side"] .kdet{gap:14px; font-size:14px}
  [data-deck="below"] .dkbody .dkstack,[data-deck="flip"] .dkbody .dkstack{width:min(880px,90vw)}
  [data-deck="below"] .dcrd > img{height:100%; width:56%; right:auto} [data-deck="below"] .dcrd .dinfo{bottom:0; right:44%}
  [data-deck="below"] .dcrd .kdet{left:56%; top:0; height:auto; padding:20px}
}
.maprow{padding:2px 14px} #app.sheet-full .maprow{display:none!important}
.shbtns{display:flex; gap:6px; flex:none} .flickb svg{width:15px; height:15px} .flickb{color:var(--brand); border-color:color-mix(in srgb, var(--brand) 35%, transparent)}
@media (max-width: 899px){ #addBtn{display:none} } /* Add listing stays on the start page and the computer */
/* account */
.heart.theirs,.dbtns .theirs{color:var(--great)} /* only your partner kept it: tap to add yours */
.accbtn{font:800 14px var(--ui); color:var(--brand)} .ibw.accbtn svg{width:19px; height:19px}
.accwho{display:flex; align-items:center; gap:10px} .accwho .av{width:42px; height:42px; border-radius:50%; display:grid; place-items:center; font-weight:800; background:var(--tile); color:var(--muted); margin-right:-16px; border:3px solid var(--surface); flex:none}
.accwho .av.me{background:color-mix(in srgb, var(--brand) 14%, var(--surface)); color:var(--brand)} .accwho > span:last-child{margin-left:22px; min-width:0} .accwho small{display:block; color:var(--muted); font-size:12.5px}
.accstat{display:grid; grid-template-columns:repeat(3,1fr); gap:8px} .accstat button{border:0; background:var(--bg); border-radius:14px; padding:10px; text-align:left; font:500 12.5px var(--ui); color:var(--muted)} .accstat b{display:block; font-size:21px; color:var(--fg)}
.accstat button:disabled{opacity:.45}
.accthumbs{display:flex; align-items:center; gap:8px} .accthumbs img{width:54px; height:54px; border-radius:12px; object-fit:cover} .accthumbs small{color:var(--muted); font-size:12.5px; margin-left:4px}
.accrow{background:var(--bg); border-radius:14px; padding:11px 13px} .accrow small{display:block; color:var(--muted); font-size:12.5px}
.badge.both{display:inline-flex; align-items:center; gap:4px; background:var(--great); color:#fff} .badge.both svg{width:11px; height:11px}
.keptby{position:absolute; left:14px; bottom:14px; z-index:3; display:inline-flex; align-items:center; gap:6px; background:var(--surface); border-radius:999px; padding:6px 11px; font-size:12.5px; font-weight:700; color:var(--great); box-shadow:0 2px 10px rgba(0,0,0,.18)} .keptby svg{width:13px; height:13px}
/* the way into the card stack */
.flick{display:flex; align-items:center; gap:14px; border:0; background:var(--surface); border-radius:20px; padding:12px 14px; text-align:left; font-size:13px; color:var(--muted); width:100%}
.flick b{display:block; color:var(--fg); font-size:15px; margin-bottom:1px}
.flick > .ic{width:20px; height:20px; flex:none; margin-left:auto; color:var(--fg)}
.answer .flick{background:var(--bg)}
.stack{position:relative; width:64px; height:52px; flex:none}
.stack img{position:absolute; width:44px; height:52px; object-fit:cover; border-radius:10px; border:2px solid var(--surface); box-shadow:0 2px 8px var(--shadow)}
.stack img:nth-child(1){left:0; transform:rotate(-8deg)} .stack img:nth-child(2){left:10px; transform:rotate(-2deg)} .stack img:nth-child(3){left:20px; transform:rotate(5deg)}

/* the card stack itself */
.deck{position:absolute; inset:0; z-index:880; background:var(--bg); display:flex; flex-direction:column; padding:calc(var(--safe-t) + 12px) 16px calc(var(--safe-b) + 16px); gap:14px}
.dkhead{display:flex; align-items:center; justify-content:space-between; font-weight:700; font-size:15px}
.dkhead .dkn{min-width:40px; text-align:right; color:var(--great)}
.dkx{width:40px; height:40px; border:0; border-radius:50%; background:var(--surface); display:grid; place-items:center; box-shadow:0 2px 10px var(--shadow)} .dkx svg{width:18px; height:18px}
.dkstack{position:relative; flex:1; min-height:0; margin-top:16px}
.dcrd{position:absolute; inset:0; border-radius:30px; overflow:hidden; background:var(--tile); box-shadow:0 14px 40px var(--shadow); touch-action:none; user-select:none; transition:transform .22s cubic-bezier(.2,.8,.2,1), opacity .22s; --k:0; --p:0}
.dcrd.drag{transition:none}
.dcrd > img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; pointer-events:none}
.dcrd.b1{transform:translateY(-12px) scale(.95); transform-origin:50% 0; opacity:.75} .dcrd.b2{transform:translateY(-24px) scale(.9); transform-origin:50% 0; opacity:.45}
/* Safari hit-tests the cards behind (they have their own layers) unless the order is explicit: only the front card takes touches */
.dcrd.front{z-index:3} /* not .top: that name is the page's header bar */ .dcrd.b1{z-index:2; pointer-events:none} .dcrd.b2{z-index:1; pointer-events:none}
.dcrd.b1 .dinfo,.dcrd.b2 .dinfo,.dcrd.b1 .dmatch,.dcrd.b2 .dmatch,.dcrd.b1 .dbars,.dcrd.b2 .dbars{visibility:hidden}
.dcrd.out-r{transform:translateX(120%) rotate(14deg); opacity:0} .dcrd.out-l{transform:translateX(-120%) rotate(-14deg); opacity:0}
.dbars{position:absolute; top:10px; left:14px; right:14px; display:flex; gap:4px} .dbars i{flex:1; height:3px; border-radius:2px; background:rgba(255,255,255,.45)} .dbars i.on{background:#fff}
.dmatch{position:absolute; top:24px; left:14px; display:inline-flex; align-items:center; gap:7px; background:var(--surface); border-radius:999px; padding:6px 11px; font-size:12.5px; font-weight:700}
.dinfo{position:absolute; left:0; right:0; bottom:0; padding:70px 18px 18px; background:linear-gradient(180deg, transparent, rgba(0,0,0,.74)); color:#fff; display:flex; flex-direction:column; gap:6px; pointer-events:none}
.dpr{font-size:27px; font-weight:800; letter-spacing:-.02em} .dpr small{font-size:13px; font-weight:600; opacity:.8; margin-left:3px}
.dt{font-size:15px; font-weight:600; text-transform:none}
.dwhy{display:flex; flex-wrap:wrap; gap:6px} .dwhy span{display:inline-flex; align-items:center; gap:5px; background:rgba(255,255,255,.18); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border-radius:999px; padding:4px 10px 4px 8px; font-size:12px; font-weight:700} .dwhy .ic{width:13px; height:13px}
.kp,.ps{position:absolute; top:70px; padding:6px 14px; border-radius:12px; font-size:18px; font-weight:800; border:3px solid; pointer-events:none}
.kp{left:18px; color:#fff; border-color:#fff; background:var(--great); opacity:var(--k); transform:rotate(-10deg)}
.ps{right:18px; color:#fff; border-color:#fff; background:var(--high); opacity:var(--p); transform:rotate(10deg)}
.dkacts{display:flex; justify-content:center; align-items:center; gap:18px}
.dkb{width:62px; height:62px; border:0; border-radius:50%; background:var(--surface); box-shadow:0 6px 20px var(--shadow); display:grid; place-items:center}
.dkb svg{width:26px; height:26px} .dkb.info{width:48px; height:48px} .dkb.info svg{width:20px; height:20px}
.dkb.yes{background:var(--fg); color:var(--bg)}
.dkfoot{text-align:center; min-height:24px}
.dkend{flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:12px; padding:0 10px}
.dkend h2{margin:0; font-size:28px; letter-spacing:-.03em} .dkend p{margin:0; color:var(--muted); max-width:30ch}
.dkend .acts{display:flex; flex-direction:column; gap:10px; width:100%; max-width:360px; margin-top:8px}
.stackbig{height:120px; display:grid; place-items:center} .stackbig .stack{transform:scale(1.8)}

.hanswer:empty{display:none}
.hanswer{padding:14px 16px 4px; position:relative}
.answer{background:var(--surface); border-radius:24px; padding:18px 18px 16px; display:flex; flex-direction:column; gap:10px}
.answer h2{margin:0; font-size:24px; font-weight:800; letter-spacing:-.03em}
.answer p{margin:0; font-size:15px; color:var(--muted); line-height:1.45} .answer p b{color:var(--fg)}
.aq{display:flex; gap:10px; align-items:flex-start; font-size:19px; font-weight:700; letter-spacing:-.02em; line-height:1.3}
.aq .ic{width:22px; height:22px; flex:none; color:var(--brand); margin-top:2px}
.addnudge{display:inline-flex; align-items:center; gap:8px; align-self:flex-start; text-align:left; border:1px dashed var(--line); background:none; border-radius:999px; padding:8px 13px; font-size:13px; font-weight:600}
.addnudge .ic{width:16px; height:16px}
.startover{position:absolute; top:24px; right:28px; border:0; background:none; padding:4px 0; font-size:13px; font-weight:600; color:var(--muted); text-decoration:underline; text-underline-offset:3px}
.startover svg{width:14px; height:14px}
.answer:has(.aq) .aq, .answer h2{padding-right:100px}

.hfilters{position:sticky; top:var(--hdr,66px); z-index:5; background:var(--bg); padding:12px 0 12px}
#app.v-home:not(.results):not(.hero-gone) .hfilters,#app.results .hfilters{top:0} /* in results the page's own top padding already clears the bar */
.hfilters .chips{padding:2px 16px}
.hbody{padding:6px 16px 20px; display:flex; flex-direction:column; gap:30px}
.hfoot{display:flex; justify-content:center; padding:0 16px calc(110px + var(--safe-b))}
.hfeed{display:grid; grid-template-columns:minmax(0,1fr); gap:30px}
.hfeed .card .ph{aspect-ratio:4/3; border-radius:20px}
.hgrid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 12px}
.best{display:flex; flex-direction:column; gap:14px}
.why3{display:flex; flex-wrap:wrap; gap:6px}
.why3 span{display:inline-flex; align-items:center; gap:5px; background:var(--surface); border-radius:999px; padding:4px 10px 4px 8px; font-size:12px; font-weight:600; color:var(--great)}
.why3 .ic{width:14px; height:14px}
.yourplaces{display:flex; flex-direction:column; gap:10px; margin:0 -16px} .yourplaces h3{margin:0; padding:0 16px; font-size:19px; font-weight:700; letter-spacing:-.02em}
.yourplaces .chips{padding:0 16px}
.viewpill{position:absolute; z-index:800; left:50%; bottom:calc(22px + var(--safe-b)); transform:translateX(-50%); display:inline-flex; align-items:center; gap:8px; border:0; border-radius:999px; padding:12px 20px; background:var(--fg); color:var(--bg); font-size:14.5px; font-weight:700; box-shadow:0 8px 24px var(--shadow); transition:bottom .32s cubic-bezier(.2,.8,.2,1)}
.viewpill .ic{width:18px; height:18px}

/* photos that swipe on a card */
.pstrip{position:absolute; inset:0; display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; touch-action:pan-x pan-y}
.pstrip::-webkit-scrollbar{display:none}
.pstrip img{flex:none; width:100%; height:100%; object-fit:cover; scroll-snap-align:center; scroll-snap-stop:always}
.pdots{position:absolute; left:50%; bottom:10px; transform:translateX(-50%); display:flex; gap:5px; pointer-events:none}
.pdots i{width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.55); box-shadow:0 0 2px rgba(0,0,0,.3)}
.pdots i.on{background:#fff}

/* compact tile: grid and shelves */
.tile{display:flex; flex-direction:column; gap:4px; text-align:left; cursor:pointer; min-width:0; content-visibility:auto; contain-intrinsic-size:auto 260px}
.tile .ph{aspect-ratio:1/1; border-radius:16px; margin-bottom:4px}
.tile .heart{width:32px; height:32px; top:8px; right:8px} .tile .heart svg{width:16px; height:16px}
.tile .badges{left:8px; top:8px}
.tile.seen:not(:has(.heart.on)) .ph{filter:saturate(.45) brightness(.97)}
.tprice{font-size:16px; font-weight:700; letter-spacing:-.02em; line-height:1.15}
.tprice small{font-size:11.5px; font-weight:500; color:var(--muted); margin-left:2px}
.tile .match{font-size:12px; gap:6px} .tile .bars i{width:10px; height:5px}
.tmeta{font-size:12.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

/* shelves */
.shelf{display:flex; flex-direction:column; gap:12px; margin:0 -16px}
.shtitle{display:flex; justify-content:space-between; align-items:baseline; padding:0 16px}
.hbody > .shtitle,.best .shtitle{padding:0}
.shtitle h3{margin:0; font-size:19px; font-weight:700; letter-spacing:-.02em}
.shtitle button{border:0; background:none; font-size:13.5px; font-weight:700; text-decoration:underline; text-underline-offset:3px; padding:4px 0}
.srow{display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x proximity; scrollbar-width:none; padding:0 16px; scroll-padding:0 16px}
.srow::-webkit-scrollbar{display:none}
.srow .tile{flex:none; width:min(44vw,200px); scroll-snap-align:start}
.area{flex:none; width:132px; border:0; background:none; padding:0; text-align:left; display:flex; flex-direction:column; gap:2px; scroll-snap-align:start}
.aph{display:block; width:132px; height:96px; border-radius:16px; overflow:hidden; background:var(--tile); margin-bottom:6px}
.aph img{width:100%; height:100%; object-fit:cover; display:block}
.area b{font-size:14.5px; font-weight:700}
.area small{font-size:12px; color:var(--muted)}

/* wide screens: the sheet becomes a side panel */
@media (min-width: 900px){
  .sheet,.sheet[data-d]{left:16px; right:auto; top:16px; bottom:16px; width:420px; height:auto; border-radius:26px}
  .handle{display:none}
  .shead{padding-top:18px}
  .top{left:452px; padding-top:16px}
  .layers{top:120px}
  .mapcredit{left:auto; right:10px; bottom:8px!important}
  .fab{bottom:24px!important}
  .dialog{align-items:center}
  .dbox{border-radius:26px}
  #app.v-home .top{left:0}
  #app.v-home .top .row,.hanswer,.hfilters .chips,.hbody{max-width:1240px; margin-left:auto; margin-right:auto; width:100%}
  .hero{height:100vh; padding:28px 40px 40px; justify-content:center; gap:24px;
    background:linear-gradient(90deg, color-mix(in srgb, var(--bg) 96%, transparent) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 30%, transparent 48%)}
  .htop{position:absolute; left:40px; right:40px; top:28px; padding:0}
  .hhead{width:520px; margin:0; padding:0 0 0 16px} .hhead h1{font-size:56px}
  .hcard{width:540px; padding:24px 24px 20px; border-radius:32px; gap:16px}
  .sent{font-size:24px}
  .deck{padding:28px 40px 32px} .dkstack{width:min(560px,100%); margin:16px auto 0}
  .dkhead,.dkfoot{width:min(560px,100%); margin:0 auto}
  .hfeed{grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:34px 22px}
  .hgrid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:28px 18px}
  .shelf{margin:0}
  .shtitle,.srow{padding:0}
  /* on a computer a row shows only whole cards, as many as fit; "See all" has the rest (his note: looked cut off) */
  .srow{display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); grid-template-rows:auto; grid-auto-rows:0; row-gap:0; column-gap:16px; overflow:hidden; scroll-snap-type:none}
  .srow .tile{width:auto}
  .srow.areas{grid-template-columns:repeat(auto-fill, minmax(128px, 1fr))}
  .srow .area{width:auto} .srow .area .aph{width:100%; height:auto; aspect-ratio:4/3}
  .viewpill{bottom:28px!important}
  #app:not(.v-home) .viewpill{left:calc(452px + (100% - 452px) / 2)}
}
@media (prefers-reduced-motion: reduce){ .sheet,.toast,.detail,.dbox,.swt,.swt::after{transition:none; animation:none} }

/* the currency button sits beside the heart; it says what prices are shown in */
.hright{display:flex; gap:8px}
.curbtn{font:800 13.5px var(--ui); letter-spacing:-.02em; color:var(--fg)}
.curs button{display:flex; align-items:center; gap:12px}
.curs .csym{flex:none; width:34px; height:34px; border-radius:50%; background:var(--tile); display:grid; place-items:center; font-weight:800; font-size:13px}
.curs button small{margin-left:auto}
.cnote{margin:10px 2px 0; font-size:13px; color:var(--muted)}


/* the start page's top bar: the mark beside the island, currency and saved on the right (his call, 2026-11-03) */
.hleft{display:flex; align-items:center; gap:8px}
.hmark{width:38px; height:38px; border-radius:11px; display:block; box-shadow:0 4px 16px var(--shadow)}
/* on a phone the headline leaves the map: the welcome says it, and an answer becomes the card's own title */
.htitle{display:none}
@media (max-width: 899px){
  .hhead{display:none}
  .hero{background:linear-gradient(180deg, color-mix(in srgb, var(--bg) 80%, transparent) 0%, transparent 14%, transparent 55%, color-mix(in srgb, var(--bg) 70%, transparent) 100%)}
  .htitle{display:block; margin:2px 0 0; font:800 20px/1.15 var(--ui); letter-spacing:-.03em; text-wrap:balance}
  .htitle em{font-style:normal; color:var(--brand)}
  .htitle:empty,.hcard.open .htitle{display:none}
}

/* the welcome: the link-preview card's look, while the homes load */
.welcome{display:block; overflow:hidden; transition:opacity .45s ease}
.welcome.out{opacity:0; pointer-events:none}
.wmap{position:absolute; inset:0; -webkit-mask-image:linear-gradient(180deg, transparent 30%, #000 50%); mask-image:linear-gradient(180deg, transparent 30%, #000 50%)}
.wmap svg{display:block}
.wmap .pin{position:absolute; font-size:15px; padding:6px 11px 7px; border-radius:12px}
.wmap .pin .bars i{width:9px; height:4px}
.wmap .dpin{position:absolute}
.wtop{position:absolute; left:0; right:0; top:calc(var(--safe-t) + 14px); height:40px; display:flex; align-items:center; justify-content:center; gap:9px; font:600 24px 'Outfit', var(--ui); letter-spacing:-.01em; color:var(--fg)}
.wtop img{width:30px; height:30px; border-radius:8px}
.wwords{position:absolute; left:24px; right:24px; top:calc(var(--safe-t) + 96px); display:flex; flex-direction:column; gap:12px}
.wwords h1{margin:0; font:800 clamp(34px, 9.4vw, 72px)/1.04 var(--ui); letter-spacing:-.045em; color:var(--fg); text-wrap:balance}
.wwords h1 em{font-style:normal; color:var(--brand)}
.wwords p{margin:0; font:600 clamp(16px, 4.3vw, 22px)/1.35 var(--ui); color:var(--muted); letter-spacing:-.01em}
.wload{position:absolute; left:0; right:0; bottom:calc(var(--safe-b) + 22px); margin:0; text-align:center; font:600 13px var(--ui); color:var(--muted)}
@media (min-width: 900px){
  .wmap{-webkit-mask-image:linear-gradient(90deg, transparent 38%, #000 55%); mask-image:linear-gradient(90deg, transparent 38%, #000 55%)}
  .wtop{left:64px; right:auto; top:48px; justify-content:flex-start}
  .wwords{left:64px; right:auto; top:50%; transform:translateY(-50%); width:min(560px, 42vw)}
  .wwords h1{font-size:68px}
  .wload{left:64px; right:auto; bottom:48px; text-align:left}
}
@media (prefers-reduced-motion: reduce){ .welcome{transition:none} }

/* ---------- the start card's assisted steps (?card=steps, the default): one word lit, big answers under it (docs/plan-start-steps.md) ---------- */
[data-card="steps"] .hcard:not(.typing) .say{display:none}
[data-card="steps"] .hcard.typing .hsteps{display:none}
[data-card="steps"] .sent{font-size:18.5px; line-height:1.8; padding-right:34px}
.ss{display:inline-block; vertical-align:baseline; white-space:nowrap; line-height:1.3; border:0; font:inherit; font-weight:700; color:var(--fg); background:var(--tile); border-radius:9px; padding:3px 8px; margin:2px 1px; cursor:pointer} /* inline-block: iPhone Safari tapped one line low on inline buttons */
.ss.blank{background:none; border:1.5px dashed color-mix(in srgb, var(--fg) 16%, transparent); color:var(--muted); font-weight:600; padding:1.5px 7px; transition:border-color .2s} /* dashed as before, a bit darker than the old line colour (his pick 2 of 3 after trying solid, 2026-11-16) */
@media (hover:hover){.ss.blank:hover{border-color:color-mix(in srgb, var(--fg) 38%, transparent)}}
.ss.on{background:var(--brand); color:var(--brand-ink); border:0; padding:3px 8px; box-shadow:0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); animation:sslit 1.6s ease-in-out infinite}
@keyframes sslit{50%{box-shadow:0 0 0 7px color-mix(in srgb, var(--brand) 10%, transparent)}}
@media (prefers-reduced-motion:reduce){.ss.on{animation:none}}
.nw{white-space:nowrap}
.hsteps{border-top:1px solid var(--line); padding-top:12px; display:flex; flex-direction:column; gap:8px}
.hsteps[data-step="done"]{border-top:0; padding-top:0}
.hsteps:empty{display:none} /* a fresh card is just the sentence */
.ss .sschev{display:inline-block; width:.62em; height:.62em; margin:0 -1px 0 5px; vertical-align:.08em; opacity:.6; transition:transform .2s}
.ss.on .sschev{opacity:1; transform:rotate(180deg)} /* lit: open, so the chevron points up */
.ss.blank .sschev{opacity:.9}
@media (prefers-reduced-motion:reduce){.ss .sschev{transition:none}}
.hsteps button{font:inherit; color:inherit; cursor:pointer}
.hsteps button[disabled]{opacity:.35; cursor:default}
.hsteps .picked{outline:3px solid var(--brand); outline-offset:-3px}
.sdone,.sask{margin:0; font-size:14px; font-weight:600; color:var(--muted)}
.sask{color:var(--fg); font-weight:700}
/* where: a strip of area photos, swiped sideways */
.sstrip{display:flex; gap:10px; overflow-x:auto; scrollbar-width:none; margin:0 -16px; padding:0 16px 2px; scroll-snap-type:x mandatory}
.sstrip::-webkit-scrollbar{display:none}
.sstrip.drag{cursor:grabbing; scroll-snap-type:none} .sstrip.drag .stile{pointer-events:none}
@media (hover:hover){ .sstrip{cursor:grab} }
.stile{position:relative; flex:none; width:132px; height:144px; border-radius:20px; overflow:hidden; border:0; padding:0; background:var(--tile); text-align:left; scroll-snap-align:start}
.stile img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.stile::after{content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.82))}
.stile .t{position:absolute; z-index:1; left:11px; right:9px; bottom:10px; color:#fff; display:flex; flex-direction:column; gap:1px}
.stile b{font-size:16.5px; letter-spacing:-.015em} .stile i{font-style:normal; font-size:12.5px; font-weight:600; opacity:.92; line-height:1.25} .stile small{font-size:12px; font-weight:700; opacity:.8; margin-top:2px}
.stile.any{background:var(--bg)} .stile.any::after{display:none} .stile.any .t{color:var(--fg)} .stile.any i,.stile.any small{color:var(--muted); opacity:1}
.stile.any > .ic{position:absolute; top:14px; left:13px; width:30px; height:30px; color:var(--brand)}
/* bedrooms and how far: big squares */
.sbeds{display:grid; grid-template-columns:repeat(4,1fr); gap:8px}
.sfar{display:grid; grid-template-columns:repeat(5,1fr); gap:6px}
.sbed{height:96px; border-radius:20px; border:0; background:var(--bg); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px}
.sbed b{font-size:30px; font-weight:800; letter-spacing:-.03em; line-height:1} .sbed b.w{font-size:19px}
.sbed span{font-size:12px; font-weight:700; color:var(--muted)}
.sfar .sbed{height:88px; gap:1px} .sfar .sbed b{font-size:24px} .sfar .sbed span{font-size:12px} .sfar .sbed small{font-size:11px; font-weight:700; color:var(--fg); margin-top:3px}
.sremove{align-self:flex-start; border:0; background:none; font-weight:700 !important; font-size:14px; color:var(--muted) !important; padding:6px 2px}
/* budget: the money you think in, then four ceilings two by two */
.scurs{display:flex; gap:6px}
.scurs button{min-width:44px; height:36px; padding:0 10px; border-radius:999px; border:1.5px solid var(--line); background:var(--surface); font-size:14px; font-weight:800; color:var(--muted) !important}
.scurs button.on{background:var(--fg); border-color:var(--fg); color:var(--bg) !important}
.sbands{display:grid; grid-template-columns:1fr 1fr; gap:8px}
.sband{border:0; border-radius:18px; background:var(--bg); padding:12px 14px; text-align:left; display:flex; flex-direction:column; gap:4px}
.sband b{font-size:17px; letter-spacing:-.01em} .sband span{font-size:12.5px; font-weight:700; color:var(--muted)}
/* a place you go: a search box, then any of a kind */
.spls{display:grid; grid-template-columns:repeat(3,1fr); gap:6px}
.spl{height:80px; border-radius:20px; border:0; background:var(--bg); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; font-size:14.5px; font-weight:700}
.spl .ic{width:24px; height:24px} .spl span{font-size:11.5px; color:var(--muted); font-weight:700}
.spl.no{background:none; border:2px dashed var(--line); color:var(--muted)}
.spl b{font-weight:inherit} /* the word is its own piece for the two-column answers below; here it reads as before */
/* The answers like the budget's, everywhere (round 21, his pick D, 2026-11-06; ?answers=old keeps the rules above): two wide
   columns, the answer in words on the left and its count under it, one rule for bedrooms, budget, places and distance
   (four distance answers since his ask the same day) */
html:not([data-answers="old"]) .hcard :is(.sbeds,.sbands,.spls,.sfar){display:grid; grid-template-columns:1fr 1fr; gap:8px}
html:not([data-answers="old"]) .hcard :is(.sbeds,.sbands,.spls,.sfar) > button{height:auto; min-height:60px; border:0; border-radius:16px; background:var(--bg); padding:11px 14px;
  display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:2px; text-align:left; font-size:16px; font-weight:700}
html:not([data-answers="old"]) .hcard :is(.sbeds,.sbands,.spls,.sfar) > button b{font-size:16px; font-weight:700; letter-spacing:-.01em; line-height:1.2}
html:not([data-answers="old"]) .hcard :is(.sbeds,.sbands,.spls,.sfar) > button :is(span,small){font-size:12.5px; font-weight:500; color:var(--muted); margin:0; line-height:1.3}
html:not([data-answers="old"]) .hcard .spls > button{display:grid; grid-template-columns:auto 1fr; column-gap:10px; align-content:center; align-items:center}
html:not([data-answers="old"]) .hcard .spls > button .ic{grid-row:1 / 3; width:20px; height:20px}
html:not([data-answers="old"]) .hcard .spls > button :is(b,span){grid-column:2}
html:not([data-answers="old"]) .hcard .spls > button.no{color:var(--muted)}
html:not([data-answers="old"]) .hcard.finding .spls{display:none} /* typing a place still hides the cards, as above */
@media (min-width:900px){ html:not([data-answers="old"]) .hcard .spls{grid-template-columns:repeat(3,1fr)} } /* the wider card: places in two rows, so the headline still clears it */
.sfind{display:flex; flex-direction:column; gap:8px}
.sfq{display:flex; align-items:center; gap:10px; border:1.5px dashed var(--line); border-radius:16px; padding:0 6px 0 14px; height:46px; cursor:text}
.sfq:focus-within{border:1.5px solid var(--brand)}
.sfq .ic{width:20px; height:20px; color:var(--brand); flex:none}
.sfq input{flex:1; min-width:0; border:0; outline:none; background:none; font:600 16px var(--ui); color:var(--fg); -webkit-appearance:none}
.sfq input::placeholder{color:var(--fg); font-weight:700} .sfq:focus-within input::placeholder{color:var(--muted); font-weight:600}
.sfx{display:none; border:0; background:none; font-size:15px; font-weight:700; color:var(--brand) !important; padding:8px}
.sfres:empty{display:none} .sfres{display:flex; flex-direction:column; gap:6px}
.sres{display:flex; align-items:center; gap:10px; border:0; border-radius:14px; background:var(--bg); padding:10px 14px; text-align:left; min-height:54px}
.sres > span:first-child{flex:1; min-width:0; display:flex; flex-direction:column}
.sres b{font-size:15px} .sres small{font-size:12.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.sres .n{font-size:12.5px; font-weight:700; color:var(--muted); white-space:nowrap}
/* while typing a place, the sentence, the tiles and the button step aside so the matches fit above the keyboard */
.hcard.finding .sent,.hcard.finding .spls,.hcard.finding #heroGo,.hcard.finding .clinks{display:none}
.hcard.finding .hsteps{border-top:0; padding-top:0}
.hcard.finding .sfx{display:block}
@media (min-width:900px){ .stile{width:150px; height:160px} [data-card="steps"] .sent{font-size:22px} }

/* the row above the start card: Clear once anything is answered, and in the lab (?ai=) a small pill to describe it in your own words */
.hpills{display:flex; flex-direction:column; gap:8px; margin:auto 2px 10px} /* auto: sits right on the card, wherever the hero puts its spare room */
.hpbar{display:flex; align-items:center; gap:8px}
.hpbar:empty{display:none}
/* Reset, in the tray's top corner */
.sreset{float:right; display:inline-flex; align-items:center; gap:5px; height:32px; margin:-2px -4px 4px 10px; padding:0 11px 0 9px; border:0; border-radius:999px; background:var(--tile); font:700 13.5px var(--ui); color:var(--muted); cursor:pointer; line-height:1}
.sreset svg{width:14px; height:14px}
.aipill,.clearpill{display:inline-flex; align-items:center; gap:7px; height:40px; padding:0 15px 0 12px; border:0; border-radius:999px; background:var(--surface); box-shadow:0 6px 20px var(--shadow); font:700 14px var(--ui); color:var(--fg); cursor:pointer; min-width:0}
.aipill .ic{width:17px; height:17px; color:var(--brand); flex:none}
.aipill .ait{white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.clearpill{flex:none; color:var(--muted); padding:0 14px 0 11px} /* beside the pill, clear of the talk tab on the right edge */
.clearpill svg{width:15px; height:15px}
[data-ai] .ctype{display:none}
[data-ai] [data-card="steps"] .sent,[data-ai][data-card="steps"] .sent{padding-right:0}
/* pill and float: the pill becomes the box, in place above the card */
[data-ai]:not([data-ai="circle"]) .hpills .say{display:none}
.hero.aiopen .hpills .say{display:flex; background:var(--surface); border:1.5px solid var(--brand); border-radius:18px; height:52px; padding:0 6px 0 14px; box-shadow:0 8px 26px var(--shadow)}
.hero.aiopen .aipill,.hero.aiopen .clearpill{display:none}
.hpills .say input{font-size:16px; padding:0}
.aisend,.aix{flex:none; width:38px; height:38px; border-radius:50%; border:0; display:grid; place-items:center; cursor:pointer}
.aisend{background:var(--brand); color:var(--brand-ink)} .aix{background:none; color:var(--muted)}
.aisend svg,.aix svg{width:18px; height:18px}
.aiex{display:none; flex-wrap:wrap; gap:7px}
.aiex button{border:1.5px solid var(--line); background:var(--surface); border-radius:999px; height:38px; padding:0 13px; font:600 13.5px var(--ui); color:var(--fg); cursor:pointer}
.hero.aiopen .hpills .aiex{display:flex}
/* float: the box floats over the map with examples, and the card steps back */
[data-ai="float"] .hero.aiopen .hpills{background:var(--surface); border-radius:24px; padding:12px; box-shadow:0 18px 50px rgba(0,0,0,.18)}
[data-ai="float"] .hero.aiopen .hpills .say{box-shadow:none}
[data-ai="float"] .hero.aiopen .hcard{opacity:.4} /* a tap on it closes the box (app.js), it never reaches the map */
/* flip: the card itself turns into the typing box, with examples under it */
[data-ai="flip"] #heroEx{display:none}
[data-ai="flip"] .hcard.typing #heroEx{display:flex}
[data-ai="flip"] .hero.aiopen .aipill{display:none}
/* circle (the default): a round sparkle button above the tray on the right, opening out into the box */
[data-ai="circle"] .hpills .say{display:flex; align-self:flex-end; width:46px; height:46px; padding:0 0 0 14px; gap:0; border:0; border-radius:23px; background:var(--surface); box-shadow:0 6px 20px var(--shadow); overflow:hidden; cursor:pointer; transition:width .32s cubic-bezier(.2,.8,.2,1)}
[data-ai="circle"] .hpills .say .spk{width:19px; height:19px}
[data-ai="circle"] .hpills .say input{flex:1 1 0; width:0; min-width:0; opacity:0; transition:opacity .2s .12s}
[data-ai="circle"] .hpills .say .aisend,[data-ai="circle"] .hpills .say .aix{display:none}
[data-ai="circle"] .hero.aiopen .hpills .say{width:100%; gap:10px; padding:0 6px 0 14px; border:1.5px solid var(--brand); border-radius:18px; height:52px; cursor:text}
[data-ai="circle"] .hero.aiopen .hpills .say input{opacity:1}
[data-ai="circle"] .hero.aiopen .hpills .say .aisend,[data-ai="circle"] .hero.aiopen .hpills .say .aix{display:grid}
@media (prefers-reduced-motion:reduce){[data-ai="circle"] .hpills .say{transition:none}}
@media (min-width:900px){
  .hpills{width:540px; margin:0 0 -14px} /* the round button sits just above the card, not floating halfway up (his note) */
  /* the card sits at the bottom left, as far from the bottom as from the side, and grows upwards; the headline stays at the top
     under the logo, and steps aside only while an open question needs its room (his notes, 2026-11-03; .tight is set in app.js) */
  [data-card="steps"] .hero{justify-content:flex-end; padding:92px 40px 40px}
  [data-card="steps"] .hhead{position:absolute; left:40px; top:92px; transition:opacity .2s, visibility .2s}
  [data-card="steps"] .hero.tight .hhead{opacity:0; visibility:hidden}
  [data-htop="shrink"] [data-card="steps"] .hhead,[data-htop="shrink"][data-card="steps"] .hhead{transform-origin:0 0; transition:transform .35s cubic-bezier(.2,.8,.2,1), opacity .2s, visibility .2s}
  [data-htop="shrink"] [data-card="steps"] .hero.shrunk .hhead,[data-htop="shrink"][data-card="steps"] .hero.shrunk .hhead{transform:scale(.62)}
  [data-htop="shrink"] .hero.shrunk .hhead p{opacity:0; transition:opacity .15s}
  [data-htop="small"] .hhead h1{font-size:38px} [data-htop="small"] .hhead p{font-size:16px}
  /* round three of the headline (his note, 2026-11-04: evenly spaced between the top bar and the card; four or five ideas). The headline
     takes two lines on a computer so it fits the gap; ?htop=beside|glide|incard|wide|drop, set in app.js */
  :is([data-htop="beside"],[data-htop="glide"],[data-htop="wide"],[data-htop="drop"],[data-htop="compact"],[data-htop="widen"],[data-htop="swap"])[data-card="steps"] .hhead{width:min(800px, calc(100vw - 80px))}
  :is([data-htop="beside"],[data-htop="glide"],[data-htop="wide"],[data-htop="drop"],[data-htop="compact"],[data-htop="widen"],[data-htop="swap"])[data-card="steps"] .hhead h1{font-size:clamp(36px, 3.45vw, 50px)} /* "Find your next home in minutes," fits one line at any computer width */
  :is([data-htop="beside"],[data-htop="glide"],[data-htop="wide"],[data-htop="drop"],[data-htop="compact"],[data-htop="widen"],[data-htop="swap"])[data-card="steps"] .hhead p{font-size:18px; max-width:none}
  :is([data-htop="beside"],[data-htop="glide"],[data-htop="wide"],[data-htop="compact"],[data-htop="widen"],[data-htop="swap"])[data-card="steps"] .hhead{top:var(--headtop, 160px)}
  .hero.placed .hhead{transition:top .45s cubic-bezier(.2,.8,.2,1)}
  /* beside: the answers open in their own panel to the right of the card; the card never grows */
  [data-htop="beside"][data-card="steps"] .hcard{overflow:visible; max-height:none}
  [data-htop="beside"][data-card="steps"] .hsteps{position:absolute; left:calc(100% + 16px); bottom:0; width:470px; max-height:calc(100vh - 150px); overflow-y:auto; overscroll-behavior:contain;
    background:var(--surface); border-radius:32px; padding:22px; border-top:0; box-shadow:0 18px 50px rgba(0,0,0,.16); animation:bside .22s cubic-bezier(.2,.8,.2,1)}
  [data-htop="beside"][data-card="steps"] .hsteps .sstrip{margin:0 -22px; padding:0 22px 2px}
  [data-htop="beside"][data-card="steps"] .hcard.finding .sent{display:block} [data-htop="beside"][data-card="steps"] .hcard.finding #heroGo{display:flex}
  /* wide: one long bar along the bottom, the answers in one short row */
  [data-htop="wide"][data-card="steps"] .hcard,[data-htop="wide"][data-card="steps"] .hpills{width:min(1180px, 100%)}
  [data-htop="wide"][data-card="steps"] .sbands{grid-template-columns:repeat(4,1fr)}
  [data-htop="wide"][data-card="steps"] .spls{grid-template-columns:repeat(6,1fr)}
  [data-htop="wide"][data-card="steps"] .sbeds{max-width:700px}
  [data-htop="wide"][data-card="steps"] #heroGo{width:auto; align-self:flex-end; padding:15px 28px}
  /* drop: the headline under the top bar, the card right under it, and the answers open downwards */
  [data-htop="drop"][data-card="steps"] .hero{justify-content:flex-start; padding-top:84px}
  [data-htop="drop"][data-card="steps"] .hhead{position:relative; left:auto; top:auto; margin:20px 0 22px; padding:0 0 0 16px}
  [data-htop="drop"][data-card="steps"] .hpills{margin:0 0 -14px}
  [data-htop="drop"][data-card="steps"] .hcard{max-height:var(--cardmax, calc(100vh - 360px))}
  /* round four (his note: glide, and try other options), each gliding less far.
     compact: the answers in one short row inside the same card */
  :is([data-htop="compact"],[data-htop="drop"])[data-card="steps"] .stile{width:118px; height:118px}
  :is([data-htop="compact"],[data-htop="drop"])[data-card="steps"] .sbed{height:70px} :is([data-htop="compact"],[data-htop="drop"])[data-card="steps"] .sfar .sbed{height:70px}
  :is([data-htop="compact"],[data-htop="drop"])[data-card="steps"] .sbands{grid-template-columns:repeat(4,1fr); gap:6px}
  :is([data-htop="compact"],[data-htop="drop"])[data-card="steps"] .sband{padding:10px; border-radius:16px; font-size:13px}
  :is([data-htop="compact"],[data-htop="drop"])[data-card="steps"] .spls{grid-template-columns:repeat(6,1fr); gap:5px}
  :is([data-htop="compact"],[data-htop="drop"])[data-card="steps"] .spl{height:66px; font-size:12.5px; border-radius:16px}
  :is([data-htop="compact"],[data-htop="drop"])[data-card="steps"] .spl span{font-size:10.5px}
  /* the answers like the budget's (his pick D) on a short screen: one short row each, so the headline still clears the card.
     Places drop their icon here to fit six across; their word and count stay */
  html:not([data-answers="old"]):is([data-htop="compact"],[data-htop="drop"])[data-card="steps"] .hcard :is(.sbeds,.sbands,.sfar){grid-template-columns:repeat(4,1fr); gap:6px}
  html:not([data-answers="old"]):is([data-htop="compact"],[data-htop="drop"])[data-card="steps"] .hcard .spls{grid-template-columns:repeat(6,1fr); gap:6px}
  html:not([data-answers="old"]):is([data-htop="compact"],[data-htop="drop"])[data-card="steps"] .hcard :is(.sbeds,.sbands,.spls,.sfar) > button{height:auto; min-height:52px; padding:8px 10px; border-radius:14px}
  html:not([data-answers="old"]):is([data-htop="compact"],[data-htop="drop"])[data-card="steps"] .hcard :is(.sbeds,.sbands,.spls,.sfar) > button b{font-size:14px}
  html:not([data-answers="old"]):is([data-htop="compact"],[data-htop="drop"])[data-card="steps"] .hcard :is(.sbeds,.sbands,.spls,.sfar) > button :is(span,small){font-size:11.5px}
  html:not([data-answers="old"]):is([data-htop="compact"],[data-htop="drop"])[data-card="steps"] .hcard .spls > button{display:flex}
  html:not([data-answers="old"]):is([data-htop="compact"],[data-htop="drop"])[data-card="steps"] .hcard .spls > button .ic{display:none}
  html:not([data-answers="old"]):is([data-htop="compact"],[data-htop="drop"])[data-card="steps"] .hcard .spls > button{padding:8px 7px}
  html:not([data-answers="old"]):is([data-htop="compact"],[data-htop="drop"])[data-card="steps"] .hcard .spls > button span{white-space:nowrap; font-size:11px}
  /* widen: the card grows sideways, its answers in a column to the right */
  [data-htop="widen"][data-card="steps"] .hcard{transition:width .3s cubic-bezier(.2,.8,.2,1)}
  [data-htop="widen"][data-card="steps"] .hcard:has(#heroSteps:not(:empty)){width:1020px; display:grid; grid-template-columns:492px minmax(0,1fr); grid-template-rows:auto auto 1fr auto; column-gap:28px; row-gap:16px; align-items:start}
  [data-htop="widen"][data-card="steps"] .hcard:has(#heroSteps:not(:empty)) > *{grid-column:1}
  [data-htop="widen"][data-card="steps"] .hcard:has(#heroSteps:not(:empty)) #heroPlaces{grid-row:1}
  [data-htop="widen"][data-card="steps"] .hcard:has(#heroSteps:not(:empty)) #heroSentence{grid-row:2}
  [data-htop="widen"][data-card="steps"] .hcard:has(#heroSteps:not(:empty)) #heroGo{grid-row:3; align-self:end}
  [data-htop="widen"][data-card="steps"] .hcard:has(#heroSteps:not(:empty)) #heroLinks{grid-row:4}
  [data-htop="widen"][data-card="steps"] .hcard:has(#heroSteps:not(:empty)) #heroSteps{grid-column:2; grid-row:1 / span 4; align-self:stretch; border-top:0; padding:0 0 0 26px; border-left:1px solid var(--line); min-width:0}
  [data-htop="widen"][data-card="steps"] #heroSteps .sstrip{margin:0 -24px 0 0; padding:0 24px 2px 0}
  [data-htop="widen"][data-card="steps"] .hcard.finding .sent{display:block} [data-htop="widen"][data-card="steps"] .hcard.finding #heroGo{display:flex}
  /* swap: the open question takes the sentence's place, under a back arrow */
  [data-htop="swap"][data-card="steps"] .hcard:has(#heroSteps .sback) .sent{display:none}
  [data-htop="swap"][data-card="steps"] .hcard:has(#heroSteps .sback) #heroSteps{border-top:0; padding-top:0}
  .sback{display:none}
  [data-htop="swap"][data-card="steps"] .sback{display:inline-flex; align-items:center; gap:6px; align-self:flex-start; border:0; background:none; padding:4px 8px 4px 0; font:700 22px var(--ui); letter-spacing:-.02em; color:var(--fg); cursor:pointer}
  [data-htop="swap"][data-card="steps"] .sback svg{width:22px; height:22px; color:var(--brand)}
  /* incard: the headline is the card's own title */
  [data-htop="incard"][data-card="steps"] .hcard .hhead{position:static; width:auto; padding:0 0 2px; margin:0}
  [data-htop="incard"][data-card="steps"] .hcard .hhead h1{font-size:36px}
  [data-htop="incard"][data-card="steps"] .hcard .hhead p{font-size:16px; margin-top:6px; max-width:none}
  [data-htop="stay"] [data-card="steps"] .hcard,[data-htop="stay"][data-card="steps"] .hcard{max-height:var(--cardmax, calc(100vh - 160px))}
  [data-card="steps"] .hcard{max-height:calc(100vh - 160px); overflow-y:auto; overscroll-behavior:contain}
}

/* ---------- filters: one button, one sheet (docs/plan-filters.md) ---------- */
.chip.fbtn{gap:7px; padding:7px 12px 7px 10px; font-weight:700}
.chip.fbtn .ic{width:16px; height:16px}
.chip.fbtn.on{border-color:var(--fg)}
.chip.fsort{gap:6px; padding:7px 12px 7px 10px; font-weight:600} .chip.fsort .ic{width:15px; height:15px} .chip.fsort.on{border-color:var(--fg); font-weight:700}
.shtitle.island{margin:22px 0 10px} .shtitle.island:first-child{margin-top:0}
.fn{display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 6px; border-radius:10px; background:var(--brand); color:var(--brand-ink); font-size:11.5px; font-weight:800}
/* ?filters=bar: one line that reads out what's on */
.fline{flex:none; display:inline-flex; align-items:center; gap:8px; max-width:calc(100vw - 32px); height:38px; padding:0 8px 0 12px; border:1px solid var(--line); border-radius:999px; background:var(--surface); font:700 13.5px var(--ui); color:var(--fg); cursor:pointer}
.fline .ic{width:16px; height:16px; flex:none}
.fline > span:first-of-type{min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.fline .fedit{color:var(--muted); font-weight:600; padding-right:4px}
/* the sheet */
.dbox.fsheet{gap:18px; padding-bottom:0; scroll-padding-bottom:96px} /* a choice scrolled into view never sits under the Reset / Show bar */
.fsec{display:flex; flex-direction:column; gap:8px}
.fsec > b{font-size:15.5px; letter-spacing:-.01em}
.fsec > span{margin-top:-6px; font-size:13px; color:var(--muted)}
.fopts{display:flex; flex-wrap:wrap; gap:7px}
.fopts .chip{padding:8px 12px; font-size:14px}
/* how many homes a choice leaves: quieter than the choice itself (his note: '1' and '41' read alike) */
.fopts .chip small{font-size:11px; font-weight:500; color:color-mix(in srgb, var(--muted) 75%, transparent); margin-left:5px; font-variant-numeric:tabular-nums}
.fopts .chip.parsed small{color:color-mix(in srgb, var(--bg) 60%, transparent)}
.fopts .chip[disabled]{opacity:.35}
.fsec .scurs{margin-bottom:2px}
.fsec .tog{margin-top:2px}
.fbar{position:sticky; bottom:0; display:flex; gap:10px; margin:0 -20px; padding:12px 20px calc(14px + var(--safe-b)); background:var(--surface); border-top:1px solid var(--line)}
.fbar .btn{flex:none} .fbar .btn.primary{flex:1}

/* the budget in the filters sheet: a price chart, a slider and a box to type it (his note, 2026-11-03) */
.bslide{display:flex; flex-direction:column; gap:6px; margin-top:4px}
.bhist{display:flex; align-items:flex-end; gap:2px; height:56px; padding:0 9px}
.bhist i{flex:1; min-width:0; border-radius:3px 3px 0 0; background:var(--line)}
.bhist i.in{background:var(--brand)}
/* two handles on one track (lowest and top price): both inputs sit on top of each other, and only their handles take a tap */
.brange{position:relative; height:28px; margin-top:-14px}
.brange::before{content:""; position:absolute; left:13px; right:13px; top:12px; height:4px; border-radius:2px; background:linear-gradient(to right, var(--line) var(--a,0%), var(--brand) var(--a,0%) var(--b,100%), var(--line) var(--b,100%))}
.brange input{position:absolute; inset:0; -webkit-appearance:none; appearance:none; width:100%; height:28px; margin:0; background:none; padding:0; border:0; pointer-events:none}
.brange input::-webkit-slider-runnable-track{height:4px; background:none}
.brange input::-moz-range-track{height:4px; background:none}
.brange input::-webkit-slider-thumb{-webkit-appearance:none; pointer-events:auto; width:26px; height:26px; margin-top:-11px; border-radius:50%; background:var(--surface); border:2px solid var(--brand); box-shadow:0 2px 8px var(--shadow); cursor:grab}
.brange input::-moz-range-thumb{pointer-events:auto; width:22px; height:22px; border-radius:50%; background:var(--surface); border:2px solid var(--brand); box-shadow:0 2px 8px var(--shadow)}
.bends{display:flex; justify-content:space-between; font-size:12px; font-weight:600; color:var(--muted); padding:0 2px}
.bvals{display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:4px}
.bin{display:flex; align-items:center; gap:6px; height:46px; padding:0 12px; border:1.5px solid var(--line); border-radius:14px; background:var(--surface); flex:1 1 0; min-width:0}
.bto{font-size:13px; font-weight:600; color:var(--muted)}
.bin:focus-within{border-color:var(--brand)}
.bin span{font-size:12.5px; font-weight:600; color:var(--muted); white-space:nowrap}
.bin b{font-size:16px; font-weight:700}
.dbox .bin input{flex:1; min-width:0; width:auto; border:0; background:none; padding:0; border-radius:0; font:700 17px var(--ui); color:var(--fg)}
.bn{font-size:13px; font-weight:700; color:var(--muted); margin-left:auto; white-space:nowrap}

/* a home's standouts as plain pills (?match=best before you've asked for anything, and ?match=tags) */
.match.hl,.dmatch.hl{display:inline-flex; flex-wrap:wrap; gap:5px; white-space:normal}
.match.hl span,.dmatch.hl span{display:inline-flex; align-items:center; height:24px; padding:0 9px; border-radius:999px; background:color-mix(in srgb, var(--great) 12%, var(--surface)); color:var(--great); font-size:12px; font-weight:700; white-space:nowrap}
.tile .match.hl span{height:22px; font-size:11.5px; padding:0 8px}

/* the list's home cards, cleaned up (his note, 2026-11-03: too much going on, the ≈): one price a month with its lease beside it,
   the title as a sentence on one line, one line of facts, the match only once you've asked for something. Looks: ?cards=card|photo|side */
.card.c2{flex:none; gap:0; contain-intrinsic-size:auto 400px} /* flex:none: a card with overflow:hidden in a column list would shrink to nothing */
.c2 .cbody{display:flex; flex-direction:column; gap:5px; padding:10px 2px 0; min-width:0}
.c2 .crow1{align-items:baseline; justify-content:flex-start; gap:8px}
.c2 .crow1 .price{flex:none}
.c2 .lease{font-size:12.5px; font-weight:500; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.c2 .ctitle{font-size:14.5px; font-weight:500; -webkit-line-clamp:1}
.c2 .cmeta{display:block; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.c2 .cflag{display:flex; gap:4px 12px; align-items:center; flex-wrap:wrap; font-size:12.5px}
.c2 .cflag .match{font-size:12.5px; font-weight:600; gap:6px}
.c2 .cflag .bars i{width:10px; height:5px}
.c2 .cflag .sw{color:var(--accent); font-weight:600} .c2 .cflag .over{color:var(--high); font-weight:600}
.c2 .why3{margin-top:2px}
.c2 .why3 span{background:var(--tile); color:var(--fg); font-weight:500; padding:3px 9px 3px 7px}
.c2 .why3 .ic{color:var(--great)}
.c2 .csrc{font-size:12px}
/* card (the default): a white card with the photo along its top */
[data-cards="card"] .card.c2{background:var(--surface); border-radius:20px; box-shadow:0 0 0 1px var(--line), 0 2px 8px color-mix(in srgb, var(--shadow) 50%, transparent); overflow:hidden}
[data-cards="card"] .c2 .ph,[data-cards="card"] .hfeed .c2 .ph{border-radius:0}
[data-cards="card"] .c2 .cbody{padding:12px 14px 14px}
[data-cards="card"] .hfeed{gap:18px}
/* photo: the price sits on the photo */
.phprice{position:absolute; left:10px; bottom:10px; background:rgba(255,255,255,.95); color:#121518; font:700 16px var(--display); letter-spacing:-.01em; padding:6px 10px; border-radius:12px; box-shadow:0 2px 10px rgba(0,0,0,.18)}
.phprice small{font:500 11.5px var(--ui); color:#5d6168; margin-left:2px}
/* side: the photo beside the words */
[data-cards="side"] .card.c2{flex-direction:row; gap:12px; align-items:flex-start}
[data-cards="side"] .c2 .ph,[data-cards="side"] .hfeed .c2 .ph{width:40%; flex:none; aspect-ratio:1; border-radius:16px}
[data-cards="side"] .c2 .cbody{padding:2px 0 0; flex:1}
[data-cards="side"] .c2 .ctitle{-webkit-line-clamp:2}
[data-cards="side"] .c2 .heart{width:32px; height:32px; top:6px; right:6px} [data-cards="side"] .c2 .heart svg{width:15px; height:15px}
[data-cards="side"] .c2 .pdots{display:none}
[data-cards="side"] .hfeed{gap:18px}
/* a short computer screen (a laptop): the headline is set smaller and without its second line, once, by the screen, never while you tap */
@media (min-width:900px) and (max-height:820px){
  :is([data-htop="beside"],[data-htop="glide"],[data-htop="wide"],[data-htop="drop"],[data-htop="compact"],[data-htop="widen"],[data-htop="swap"])[data-card="steps"] .hhead h1{font-size:34px}
  :is([data-htop="beside"],[data-htop="glide"],[data-htop="wide"],[data-htop="drop"],[data-htop="compact"],[data-htop="widen"],[data-htop="swap"])[data-card="steps"] .hhead p{display:none}
}
/* on a computer the headline is three lines, "Find your next / home in minutes, / not weeks." (his note, 2026-11-04); a phone wraps it as it fits */
.hbr{display:none}
@media (min-width:900px){ .hhead .hbr{display:inline} .hhead h1{text-wrap:wrap} } /* the welcome's narrow column already ends "in minutes, / not weeks." */
@keyframes bside{from{opacity:0; transform:translateX(-10px)}}

/* Filters as a calm list (his pick A, 2026-11-04; ?fsheet=old is the chip sheet): a plain header, thin lines between
   sections, no count on each choice, rooms by minus and plus, one bar each for home type and lease, size/land/area folded */
.dbox.fcalm{gap:0; padding:0; padding-bottom:0}
.fcalm .dgrab{position:absolute; top:7px; left:50%; margin:0 0 0 -20px; z-index:3}
.fcalm .dx{position:sticky; top:8px; float:none; align-self:flex-end; margin:8px 10px -44px 0; background:none; z-index:4}
.fcalm .dx svg{width:18px; height:18px}
.fcalm > h3{position:sticky; top:0; z-index:3; margin:0; padding:16px 56px 14px; text-align:center; font:700 16px var(--ui); letter-spacing:0; background:var(--surface); border-bottom:1px solid var(--line)}
.csec{display:flex; flex-direction:column; gap:14px; padding:22px 20px 24px; border-bottom:1px solid var(--line)}
.chd{display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:30px}
.chd b{font-size:18px; font-weight:700; letter-spacing:-.015em}
.csec > p, .ffbd > p{margin:-8px 0 0; font-size:13.5px; color:var(--muted)}
.fcur{display:inline-flex; align-items:center; gap:3px; height:30px; padding:0 9px 0 12px; border:1px solid var(--line); border-radius:999px; background:none; font-size:13.5px; font-weight:700}
.fcur .ic{width:15px; height:15px; transition:transform .2s} .fcur[aria-expanded="true"] .ic{transform:rotate(180deg)}
.fcalm .scurs{flex-wrap:wrap}
.fcalm .bhist{height:64px; gap:3px; padding:0 13px}
.fcalm .bhist i{border-radius:2px 2px 0 0}
.fcalm .bhist i.in{background:var(--bar)}
.fcalm .brange::before{height:2px; top:13px; background:linear-gradient(to right, var(--line) var(--a,0%), var(--fg) var(--a,0%) var(--b,100%), var(--line) var(--b,100%))}
.fcalm .brange input::-webkit-slider-thumb{width:28px; height:28px; margin-top:-12px; border:1px solid #CFD2D6; box-shadow:0 2px 6px var(--shadow)}
.fcalm .brange input::-moz-range-thumb{width:26px; height:26px; border:1px solid #CFD2D6}
.fcalm .bends{display:none}
.fcalm .bvals{gap:12px; margin-top:10px}
.fcalm .bto{display:none}
.fcalm .bin{flex-direction:row; height:48px; border:1px solid var(--line); border-radius:999px; padding:0 16px}
.fcalm .bin:focus-within{border-color:var(--fg)}
.fany{align-self:flex-start; border:0; background:none; padding:2px 0; font-size:14px; font-weight:600; text-decoration:underline; text-underline-offset:3px}
.fstep{display:flex; justify-content:space-between; align-items:center; min-height:44px}
.fstep > span:first-child{font-size:16px}
.fstep > span:last-child{display:flex; align-items:center; gap:12px}
.fstep b{min-width:56px; text-align:center; font-size:15.5px; font-weight:500}
.fstep button{width:36px; height:36px; padding:0; border-radius:50%; border:1px solid #BFC3C8; background:none; display:grid; place-items:center; color:var(--fg)}
.fstep button svg{width:16px; height:16px; display:block}
.fstep button[disabled]{border-color:var(--line); color:#C9CCD1; cursor:default}
.fseg{display:flex; gap:2px; padding:3px; border:1px solid var(--line); border-radius:14px}
.fseg button{flex:1 1 0; min-width:0; border:0; background:none; border-radius:11px; padding:11px 4px; font-size:14.5px; font-weight:500; white-space:nowrap; color:var(--fg)}
.fseg button.on{background:var(--fg); color:var(--bg); font-weight:600}
.fseg button[disabled]{color:#C9CCD1; cursor:default}
.fcalm .fopts{gap:10px}
.fcalm .fopts .chip{padding:10px 15px; font-size:14.5px; font-weight:500}
.fcalm .fopts .chip.parsed{font-weight:600}
.fcalm .fopts .chip[disabled]{opacity:.35}
.fnice .chip{gap:9px} .fnice .chip .ic{width:19px; height:19px; flex:none}
.fmore{align-self:flex-start; display:inline-flex; align-items:center; gap:4px; border:0; background:none; padding:0; font-size:14.5px; font-weight:600; text-decoration:underline; text-underline-offset:3px}
.fmore .ic{width:16px; height:16px}
.ffold{border-bottom:1px solid var(--line)}
.ffold:last-of-type{border-bottom:0}
.ffhd{display:flex; width:100%; justify-content:space-between; align-items:center; gap:12px; padding:22px 20px; border:0; background:none; text-align:left}
.ffhd b{font-size:17px; font-weight:700; letter-spacing:-.01em}
.ffhd span{display:inline-flex; align-items:center; gap:8px; font-size:14.5px; color:var(--muted); min-width:0}
.ffhd .ic{width:20px; height:20px; color:var(--fg); transition:transform .2s} .ffold.open .ffhd .ic{transform:rotate(180deg)}
.ffbd{display:flex; flex-direction:column; gap:14px; padding:0 20px 24px}
.fcalm .fbar{margin:0; padding:12px 16px calc(12px + var(--safe-b)); justify-content:space-between; align-items:center}
.fcalm .fbar .btn.primary{flex:none; padding:14px 24px; font-size:15.5px}
.freset{border:0; background:none; padding:8px 4px; font-size:15px; font-weight:600; text-decoration:underline; text-underline-offset:3px}
/* a scrollbar drawn by the browser (a Mac with a mouse) sat on top of the round corners and squared the right side (his note):
   clip the sheet to its own corners, and keep the bar thin */
.dbox.fcalm{clip-path:inset(0 round 26px 26px 0 0); scrollbar-width:thin; scrollbar-color:#C9CCD1 transparent}
@media (min-width:900px){ .dbox.fcalm{max-width:600px; clip-path:inset(0 round 26px)} }

/* Cards: price first (his pick, look 9, 2026-11-04; ?cards=card keeps the white card). No box: the photo carries the edge
   and the words sit on the page. Price, then our own title, then rooms and size, then the lease, all one quiet type size
   below the price. ?tags=on adds up to two small grey tags at the bottom. */
[data-cards="clean"] .hfeed .c9 .ph{aspect-ratio:20/19; border-radius:16px}
.c9 .ph{border-radius:16px}
.c9 .heart{background:none; box-shadow:none; color:#fff; filter:drop-shadow(0 1px 3px rgba(0,0,0,.45))}
.c9 .heart svg{width:26px; height:26px}
.c9 .heart.on svg, .c9 .heart.on svg path{fill:var(--brand); stroke:#fff; stroke-width:1.6}
.c9 .heart.theirs svg path{fill:var(--great); stroke:#fff}
.c9 .badges{left:12px; top:12px}
.c9 .badge{background:#fff; color:var(--fg); font-size:12.5px; font-weight:600; padding:5px 11px; border-radius:999px; box-shadow:0 2px 8px rgba(0,0,0,.18); -webkit-backdrop-filter:none; backdrop-filter:none}
.c9 .badge.both,.c9 .badge.drop{color:var(--great)!important} .c9 .badge.both svg{width:12px; height:12px}
.c9 .cbody{gap:1px; padding:11px 2px 0; font-size:15px; line-height:1.4}
.c9top{display:flex; justify-content:space-between; align-items:baseline; gap:10px; min-width:0}
.c9 .price{font-size:18px; flex:none; white-space:nowrap}
.c9 .price s{font-family:var(--ui); font-size:14px; font-weight:500; color:var(--muted); margin-right:6px; letter-spacing:0}
.c9 .price small{font-size:14px; margin-left:1px}
.ctag{flex:0 1 auto; min-width:0; overflow:hidden; display:inline-flex; align-items:center; gap:4px; font-size:13.5px; font-weight:600; color:var(--great); white-space:nowrap} /* gives way before the price does on a narrow phone */
.ctag .ic,.ctag .bars{flex:none}
.ctag .ic{width:14px; height:14px}
.ctag.ask{color:var(--fg); gap:6px} .ctag .bars i{width:10px; height:5px}
.c9 .ctitle{font-size:15px; font-weight:600; -webkit-line-clamp:1; margin-top:3px}
.cunits{font-weight:500; color:var(--muted)} /* identical units of one development, folded into one home (his note) */
.c9 .cmeta, .cwhen{display:block; font-size:14.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.c9 .cflag{font-size:13.5px; margin-top:2px; flex-wrap:nowrap; overflow:hidden}
.cnear{color:var(--fg); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.ctags{display:flex; gap:6px; margin-top:7px; overflow:hidden}
.ctags span{flex:none; font-size:12.5px; color:var(--muted); background:#EBECEE; border-radius:6px; padding:2px 8px}

/* Spacing B (his pick, 2026-11-04: "more breathing room", like Airbnb). One page edge, --gut, that the search row, the answer,
   the filter row, the list and the side-scrolling rows all follow, so their left edges always line up; the air comes from the
   gaps between things, not from bigger cards. On a computer the page goes wider (1400) with a 48 edge and 4 cards across.
   ?space=old keeps the old spacing. */
html:not([data-space="old"]){--gut:24px}
html:not([data-space="old"]) #app.v-home .top .row,html:not([data-space="old"]) .hfilters .chips,html:not([data-space="old"]) .hanswer{padding-left:var(--gut); padding-right:var(--gut)}
html:not([data-space="old"]) .hfilters{padding:16px 0}
html:not([data-space="old"]) .hbody{padding:8px var(--gut) 32px; gap:48px}
html:not([data-space="old"]) .hfeed{gap:48px}
html:not([data-space="old"]) .best{gap:22px}
html:not([data-space="old"]) .yourplaces,html:not([data-space="old"]) .shelf{margin:0 calc(-1 * var(--gut))}
html:not([data-space="old"]) .yourplaces .chips,html:not([data-space="old"]) .shelf .shtitle,html:not([data-space="old"]) .yourplaces h3,html:not([data-space="old"]) .srow{padding-left:var(--gut); padding-right:var(--gut)}
html:not([data-space="old"]) .srow{scroll-padding:0 var(--gut)}
html:not([data-space="old"]) .c9 .cbody{padding-top:14px; gap:4px}
html:not([data-space="old"]) .c9 .ctitle{margin-top:4px}
@media (min-width:900px){
  html:not([data-space="old"]){--gut:48px}
  html:not([data-space="old"]) #app.v-home .top .row,html:not([data-space="old"]) .hanswer,html:not([data-space="old"]) .hfilters .chips,html:not([data-space="old"]) .hbody{max-width:1400px}
  html:not([data-space="old"]) .hfeed{grid-template-columns:repeat(auto-fill,minmax(270px,1fr)); gap:48px 24px}
  html:not([data-space="old"]) .shelf{margin:0}
  html:not([data-space="old"]) .shelf .shtitle,html:not([data-space="old"]) .srow{padding-left:0; padding-right:0}
}
/* Google place search (docs/plan-google-places.md): Google's box sits inside our own search row, borderless, with our icon;
   its suggestion list and its place card take the site's colours and font. Google's logo and links stay as Google draws them. */
.gform{flex:1; min-width:0; display:flex}
.gbox{flex:1; min-width:0; color-scheme:light; background-color:transparent; border:0; border-radius:0; color:var(--fg); font:500 16px var(--ui)}
.sfq .gbox{font:600 16px var(--ui)}
.gbox::part(input){padding:12px 0; background:transparent; color:var(--fg); font:inherit}
.gbox::part(focus-ring){display:none}
.gbox::part(prediction-list){background:var(--surface); border-radius:14px; box-shadow:0 12px 32px var(--shadow); color:var(--fg); font-family:var(--ui)}
.gbox::part(prediction-item-main-text){color:var(--fg)} .gbox::part(prediction-item-secondary-text){color:var(--muted)}
.gbox::part(prediction-item-selected){background:var(--bg)}
.gosm{align-self:flex-start; border:0; background:none; padding:2px 0; font:600 13.5px var(--ui); color:var(--brand)}
.gpick{display:flex; flex-direction:column; gap:10px; padding-top:4px}
.gcard{color-scheme:light; width:100%; border:1px solid var(--line); border-radius:16px; --gmp-mat-color-surface:var(--surface); --gmp-mat-color-on-surface:var(--fg);
  --gmp-mat-color-on-surface-variant:var(--muted); --gmp-mat-color-primary:var(--brand); --gmp-mat-color-outline-decorative:var(--line); --gmp-mat-font-family:var(--ui)}
.gname{display:flex; flex-direction:column; gap:5px} .gname span{font-size:12.5px; font-weight:700; color:var(--muted)}
.gname input{width:100%; border:1px solid var(--line); background:var(--bg); color:var(--fg); border-radius:14px; padding:11px 14px; font:600 16px var(--ui); outline:none} /* 16px: smaller makes iPhone Safari zoom in */
.gname input:focus{border-color:var(--brand)}
.guse{display:flex} .guse > *{flex:1}
.gwait{margin:0; font-size:13px; color:var(--muted)}
.dbox .results .guse .btn{border:1px solid var(--fg); background:var(--fg); color:var(--bg); text-align:center; padding:13px; font-size:15px} /* not a result row */
.dbox .results .guse .btn:disabled{opacity:.35}
#app:has(.hcard.finding) .viewpill{opacity:0; pointer-events:none} /* searching for a place hides Show homes, which read as "scrolled past the card" and floated Map over the tray */
.sfq .gbox::part(input)::placeholder{color:var(--fg); font-weight:700} .sfq:focus-within .gbox::part(input)::placeholder{color:var(--muted); font-weight:600}
.gpick:focus{outline:none}
/* On a computer Google's list opens below its box, only as tall as the room left; the steps' tray sits at the bottom, so it
   makes the room while you type (the list showed one row, 2026-11-04). On a phone Google opens its own full-screen search. */
@media (min-width:900px){ .hcard.finding .sfind:has(.gform[data-q]:not([data-q=""])) .sfres:empty{display:block; height:min(330px, 45vh)} }

/* Round 22, every area (app/areas.js, ?areas=a|b|c; his note 2026-11-06: Seseh and Cemagi were missing) */
.stile.amore{background:var(--surface); box-shadow:inset 0 0 0 1.5px var(--line)}
.szone{flex:none; display:flex; flex-direction:column; justify-content:flex-end; gap:1px; min-width:86px; max-width:112px; height:144px; padding:0 4px 10px 12px; border-left:1.5px solid var(--line); scroll-snap-align:start}
.szone b{font-size:14px; line-height:1.2; letter-spacing:-.01em} .szone small{font-size:12px; color:var(--muted); font-weight:600}
.sstrip.zoned .stile.any + .szone{margin-left:4px}
@media (min-width:900px){ .szone{height:160px} }
.aqbox{margin-bottom:10px}
.alist{max-height:min(46vh, 360px); overflow-y:auto; margin:0 -4px; padding:0 4px; overscroll-behavior:contain}
.anone{margin:6px 2px; color:var(--muted); font-size:14px}
.asub{margin:-4px 0 6px; color:var(--muted); font-size:14px}
.azone h4{margin:18px 0 2px; font-size:13px; font-weight:700; color:var(--muted); letter-spacing:.01em}
.alist .azone:first-child h4{margin-top:2px}
.arow{display:flex; align-items:center; gap:10px; width:100%; padding:11px 2px; border:0; border-bottom:1px solid var(--line); background:none; text-align:left; color:var(--fg); font:inherit; cursor:pointer}
.azone .arow:last-child{border-bottom:0}
.arow > span{flex:1; min-width:0; display:flex; flex-direction:column; gap:1px}
.arow b{font-size:15.5px; font-weight:700; letter-spacing:-.01em} .arow i{font-style:normal; font-size:13px; color:var(--muted)}
.arow small{font-size:13px; font-weight:600; color:var(--muted); white-space:nowrap}
.arow .ic{width:20px; height:20px; color:var(--brand); flex:none}
.arow.any{border-bottom:1px solid var(--line); margin-top:4px}
.arow:disabled{opacity:.4; cursor:default}
.fzone{margin:14px 0 7px; font-size:13px; font-weight:700; color:var(--muted)}
.asheet{padding:6px 20px calc(20px + var(--safe-b))}
.asheet .asub{margin:4px 0 6px}
