/* Atlas.
   Light is the default — he said he isn't a dark-mode fan — but the toggle keeps both.
   Warm paper rather than flat white: this is a page full of photographs of rooms, and a
   cold grey chrome makes every interior look worse than it is. */
:root{
  --bg:#f6f3ec; --sunk:#efeae0; --card:#fffdfa; --line:#e4ddd1; --line2:#d6cdbe;
  --ink:#221e19; --ink2:#4a4339; --mut:#877d6d;
  --see:#1d6b4f; --see-bg:#e6f2eb; --maybe:#9a6a15; --maybe-bg:#f7efdd;
  --no:#7c7264; --no-bg:#eeeae2; --gone:#a09686; --fav:#b8801c; --fav-bg:#fbf1dc;
  --accent:#1d6b4f;
  --sh:0 1px 2px rgba(60,48,30,.05), 0 6px 18px -8px rgba(60,48,30,.14);
  --sh2:0 2px 6px rgba(60,48,30,.08), 0 18px 40px -14px rgba(60,48,30,.24);
  --r:14px;
  --disp:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;
}
body.dark{
  --bg:#14120f; --sunk:#1a1714; --card:#1e1a16; --line:#2f2a24; --line2:#3b352d;
  --ink:#f3eee6; --ink2:#ddd5c9; --mut:#9c9285;
  --see:#63d3a0; --see-bg:#16281f; --maybe:#e0ab55; --maybe-bg:#2a2114;
  --no:#93897b; --no-bg:#221f1a; --gone:#7a7166; --fav:#ffc857; --fav-bg:#2b2214;
  --accent:#63d3a0;
  --sh:0 1px 2px rgba(0,0,0,.35); --sh2:0 10px 34px -12px rgba(0,0,0,.7);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{background:var(--bg);color:var(--ink);font:16px/1.55 var(--sans);
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  padding-bottom:calc(58px + env(safe-area-inset-bottom))}
.hidden{display:none !important}
.muted{color:var(--mut)}
button,select,input{font-family:inherit}

/* ---------- header ---------- */
/* Stacking order, highest last: map 1 (contained) · controls 25 · tabs 28 ·
   header 30 · detail drawer 2000 · slideshow 3000. */
.top{display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:calc(11px + env(safe-area-inset-top)) 16px 11px;
  border-bottom:1px solid var(--line);position:sticky;top:0;z-index:30;
  background:color-mix(in srgb, var(--bg) 90%, transparent);backdrop-filter:blur(12px)}
.brand{min-width:0}
h1{margin:0;font:600 21px/1.1 var(--disp);letter-spacing:-.005em}
.swept{margin:3px 0 0;font-size:11.5px;color:var(--mut);letter-spacing:.01em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.swept.stale{color:var(--maybe)}
.swept b{font-weight:600;color:var(--ink2)}
.right{display:flex;align-items:center;gap:7px;flex-shrink:0}
.chip{background:var(--card);color:var(--ink2);border:1px solid var(--line2);
  border-radius:999px;padding:6px 13px;font-size:12.5px;font-weight:550;cursor:pointer;
  box-shadow:var(--sh);transition:background .12s,color .12s}
.chip:hover{border-color:var(--accent)}
.chip.on{background:var(--accent);border-color:var(--accent);
  color:var(--card);box-shadow:none}
body.dark .chip.on{color:#0c1a14}
.link{background:none;border:0;color:var(--mut);text-decoration:underline;
  font-size:12.5px;padding:0 2px;cursor:pointer}
.link:hover{color:var(--ink)}
@media(max-width:600px){
  /* On a phone the freshness line matters more than fitting on one row, and the pane
     toggle is meaningless — there is only ever one pane. */
  .top{flex-wrap:wrap;gap:8px}
  .swept{white-space:normal;font-size:11px}
  #layout{display:none}
  .chip{padding:6px 11px}
}

/* ---------- the knobs ---------- */
.controls{display:flex;flex-wrap:wrap;gap:14px 20px;align-items:flex-end;
  padding:14px 16px;background:var(--sunk);border-bottom:1px solid var(--line);
  position:sticky;top:0;z-index:25}
.ctrl{display:flex;flex-direction:column;gap:5px;min-width:0}
.ctrl>label{font-size:10.5px;text-transform:uppercase;letter-spacing:.09em;color:var(--mut);
  font-weight:600}
.ctrl.end{margin-left:auto;flex-direction:row;align-items:center;gap:12px}
.count{font-size:12.5px;color:var(--mut);font-variant-numeric:tabular-nums}
select,.controls input[type=number]{background:var(--card);color:var(--ink);
  border:1px solid var(--line2);border-radius:9px;padding:7px 10px;font-size:13.5px;
  box-shadow:var(--sh)}
.pair{display:flex;align-items:center;gap:6px;color:var(--mut);font-size:13px}
.pair input{width:82px}
.toggles{gap:7px}
.cb{display:flex;align-items:center;gap:7px;font-size:13.5px;color:var(--ink2);cursor:pointer}
.cb input{accent-color:var(--accent);width:15px;height:15px}

/* ---------- panes ---------- */
.stage{max-width:780px;margin:0 auto;padding:14px 14px 0}
.pane-detail{position:relative}
body:not(.three) .pane{display:none}
body:not(.three) .pane.on{display:block}
body:not(.three) .pane-detail{background:var(--bg);min-height:60vh}

/* three-pane: list · map · detail, side by side, each scrolling on its own */
body.three{height:100dvh;display:flex;flex-direction:column;overflow:hidden;padding-bottom:0}
body.three .stage{flex:1;min-height:0;max-width:none;margin:0;padding:0;
  display:grid;grid-template-columns:minmax(330px,430px) minmax(0,1fr) minmax(330px,400px)}
body.three .pane{display:block;min-height:0;overflow-y:auto;
  border-right:1px solid var(--line);background:var(--bg)}
body.three .pane-list{padding:14px 12px 30px;background:var(--sunk)}
/* THE FIX for "the map stays over the photos".
   Leaflet's own controls sit at z-index 1000, and my overlays were at 45 and 60 — so on a
   laptop, where the map is always on screen, the zoom buttons and attribution painted over
   the full-screen slideshow and the detail drawer. Escalating my numbers is a race I'd lose
   the next time Leaflet changes; giving the map pane its own stacking context traps
   Leaflet's 1000 INSIDE it, so it can never outrank a sibling again. */
.pane-map{position:relative;z-index:1;isolation:isolate}
body.three .pane-map{overflow:hidden;padding:0}
body.three .pane-detail{border-right:0;padding-bottom:30px}
body.three #map{height:100%;border-radius:0;border:0}
body.three .tabs,body.three #dclose{display:none}
@media(max-width:1339px){
  /* not enough room for three real columns — drop the detail into an overlay drawer */
  body.three .stage{grid-template-columns:minmax(320px,390px) minmax(0,1fr)}
  body.three .pane-detail{position:fixed;top:0;right:0;bottom:0;width:min(420px,92vw);
    z-index:2000;box-shadow:var(--sh2);border-left:1px solid var(--line2);
    overflow-y:auto;padding-bottom:24px}
  body.three .pane-detail:not(.on){display:none}
  body.three #dclose{display:block}
}

/* ---------- list ---------- */
.card{display:grid;grid-template-columns:150px 1fr;background:var(--card);
  border:1px solid var(--line);border-radius:var(--r);overflow:hidden;margin-bottom:11px;
  cursor:pointer;text-align:left;width:100%;color:inherit;font:inherit;padding:0;
  box-shadow:var(--sh);transition:box-shadow .14s,border-color .14s,transform .14s}
.card:hover{box-shadow:var(--sh2);transform:translateY(-1px)}
.card.sel{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 28%,transparent)}
/* RANK, VISIBLE AT A GLANCE. Sheer, 2026-09-13: "maybe we should color code listings that
   get starred? or have a toggle to view the short list."
   A single amber border said "rated" but not "rated WHAT" — his scale is 0-3 and all three
   looked identical. Now a left spine whose weight and colour carry the number, plus a warm
   card tint so a rated flat reads as rated while scrolling past. The numeral stays too;
   colour is the shortcut, not the only signal — same rule as the feature glyphs. */
.card.fav{border-color:var(--fav)}
.card.r1,.card.r2,.card.r3{position:relative}
.card.r1::before,.card.r2::before,.card.r3::before{content:"";position:absolute;
  left:0;top:0;bottom:0;width:5px;background:var(--fav);border-radius:var(--r) 0 0 var(--r)}
.card.r1::before{opacity:.42}
.card.r2::before{opacity:.72}
.card.r3::before{opacity:1;width:7px}
.card.r2{background:color-mix(in srgb,var(--fav-bg) 45%,var(--card))}
.card.r3{background:var(--fav-bg);border-color:var(--fav)}
/* The map should agree with the list: a rated pin is amber already, and a 3 gets a ring so
   his own top picks are findable among several hundred priced pills. */
.pin.fav.r3{box-shadow:0 0 0 3px color-mix(in srgb,var(--fav) 55%,transparent),var(--sh)}
.card.hide{opacity:.45}
.card.gone{opacity:.6}
/* PHOTOS ARE THE POINT. This was a 106px thumbnail next to an 887px map, on a search whose
   whole method is "judge the photographs, not the copy" — the smallest element on screen
   was the one carrying the decision. Wider, and taller, so a room is legible without
   opening anything. Still a strip rather than a hero, because he scans a list of them.
   150px, not the 168 I tried first: at 168 the address truncated to "Great Percy Street,…"
   and the commute row lost its last figure ("STN 3…"). A bigger photo that eats the price
   and the commute is not a better card, so the list column widened as well. */
.card img{width:150px;height:100%;min-height:132px;object-fit:cover;display:block;background:var(--sunk)}
.card .noimg{width:150px;min-height:132px;background:var(--sunk)}
@media (max-width:520px){
  /* On a phone 168px would leave too little room for the name and price, so the photo and
     the GRID COLUMN come down together — setting only the image width would have left the
     column at 168px and cropped the photo against a gap. */
  .card{grid-template-columns:132px 1fr}
  .card img,.card .noimg{width:132px;min-height:124px}
}
.cbody{padding:10px 12px;min-width:0}
.ctop{display:flex;justify-content:space-between;align-items:baseline;gap:7px}
.cname{font:600 14.5px/1.28 var(--disp);letter-spacing:.002em;display:-webkit-box;
  -webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cprice{font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap;font-size:14.5px}
.cmeta{color:var(--mut);font-size:12px;margin-top:5px;display:flex;flex-wrap:wrap;gap:7px;
  align-items:center}
@media (max-width:520px){
  /* THE ADDRESS WAS TRUNCATING ON EVERY PHONE CARD. Looked at a real 390px screenshot
     rather than trusting the "cards fit the viewport" test, and every single one read
     "Great Percy Street, WC1X…", "Thornhill Crescent,…" — because the price shares the
     line and takes its width first. The street is the thing he recognises; the price can
     have its own line. Score badge floats up beside the price so nothing else moves. */
  .ctop{display:block}
  .cname{-webkit-line-clamp:2;font-size:15px}
  .cprice{display:inline-block;margin-top:2px;font-size:15px}
  .cmeta{margin-top:4px}
}
.score{display:inline-block;font-size:10px;text-transform:uppercase;letter-spacing:.08em;
  font-weight:650;border-radius:999px;padding:2.5px 8px}
.score.see{color:var(--see);background:var(--see-bg)}
.score.maybe{color:var(--maybe);background:var(--maybe-bg)}
.score.no{color:var(--no);background:var(--no-bg)}
.score.gone{color:var(--gone);background:var(--no-bg)}
.zone{display:inline-block;font-size:10px;font-weight:650;border-radius:999px;
  padding:2.5px 8px;letter-spacing:.04em;background:var(--sunk);
  color:var(--mut);border:1px solid var(--line)}
.zone.z-walk{background:#e8eef7;color:#2a5f9e;border-color:#c7d6ea}
.zone.z-corridor{background:#efe9f7;color:#5b3f96;border-color:#d8cbec}
body.dark .zone.z-walk{background:#152130;color:#8fbcf0;border-color:#26384f}
body.dark .zone.z-corridor{background:#1e1830;color:#b79cf0;border-color:#352a52}
.zoneline{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:9px 0 0;font-size:12px}
.new{color:var(--mut);background:var(--sunk);font-size:10px;font-weight:650;
  border-radius:999px;padding:2.5px 8px;letter-spacing:.03em;border:1px solid var(--line)}
.new.fresh{color:var(--see);background:var(--see-bg);border-color:transparent}
.new.stale{color:var(--maybe);background:var(--maybe-bg);border-color:transparent}
.cstar{color:var(--fav)}
.ccom{margin-top:5px;font-size:11px;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;color:var(--mut);font-variant-numeric:tabular-nums}
.ccom b{color:var(--ink2);font-weight:600}
.ico{width:1.15em;height:1.15em;vertical-align:-0.2em;flex:none;opacity:.8}
.ccom .ico{margin-right:2px}
.zoneline .ico{margin-right:2px}
.crow .ico{margin-right:5px;opacity:.6}
.walkrow b{white-space:nowrap}
.nothing{padding:26px 4px;color:var(--mut);font-size:14px}

/* ---------- map ---------- */
#map{height:calc(100dvh - 200px);min-height:340px;border-radius:var(--r);
  border:1px solid var(--line);overflow:hidden;box-shadow:var(--sh)}
.leaflet-container{background:var(--sunk);font:inherit}
.pin{background:var(--card);color:var(--ink);border:1px solid var(--line2);
  border-radius:999px;padding:2px 8px;font-weight:650;font-size:11px;white-space:nowrap;
  box-shadow:var(--sh);font-variant-numeric:tabular-nums}
.pin.see{background:var(--see);color:#fff;border-color:var(--see)}
.pin.fav{background:var(--fav);color:#fff;border-color:var(--fav)}
.pin.no,.pin.gone{background:var(--no-bg);color:var(--mut)}
/* THE SELECTED PIN. Sheer, 2026-09-12: "A pretty big design flaw is that when I select an
   apt in the left hand pane or by clicking on it I have no way to see which it is in the
   map. Is there a way to maybe center it when I click on it and also put e.g. a red or
   other outline around the price on the map?"
   A translucent 3px accent outline on a pale pill in a field of 500 pale pills is not
   findable — it was technically present and practically invisible, the same failure as the
   campus pin. Now: red ring, red text, bigger, raised, and it pulses once on selection so
   the eye is drawn to it even if the map didn't move. */
.pin.sel{outline:3px solid #d0342c;outline-offset:1px;border-color:#d0342c;color:#d0342c;
  font-size:12.5px;padding:3px 10px;box-shadow:0 0 0 6px rgba(208,52,44,.18),var(--sh2);
  animation:pinpop .45s ease-out}
.pin.sel.see,.pin.sel.fav{color:#fff}
@keyframes pinpop{0%{transform:scale(.8)}55%{transform:scale(1.22)}100%{transform:scale(1)}}
.pin.work{background:#2a5f9e;color:#fff;border-color:#2a5f9e}
.pin.airport{background:#6b4b9e;color:#fff;border-color:#6b4b9e}
/* 2026-09-10. Sheer: "It doesn't show where the uni is on the map (I asked for that)."
   The marker was there all along — app.js does pin(a.kind, a.name) for every anchor — but
   only .work and .airport had styles, so the campus rendered in the DEFAULT pin colours:
   a pale pill identical to an unjudged listing. Present but unreadable is the same as
   absent to the person looking at it, and it is a worse failure than missing, because
   nothing looks broken. The uni is the one fixed point the whole app is measured against,
   so it gets the loudest treatment on the map. */
.pin.uni{background:#b4342b;color:#fff;border-color:#b4342b;font-weight:700;
  padding:4px 9px;box-shadow:0 0 0 3px color-mix(in srgb,#b4342b 28%,transparent)}
.pin.landmark{background:var(--mut);color:#fff;border-color:var(--mut);opacity:.85}
.leaflet-popup-content-wrapper{background:var(--card);color:var(--ink);border-radius:11px}
.leaflet-popup-tip{background:var(--card)}

/* ---------- detail ---------- */
.empty{padding:40px 24px;color:var(--mut);font-size:14px;text-align:center;line-height:1.7}
.sheetclose{position:absolute;top:10px;right:12px;z-index:3;background:rgba(20,16,10,.55);
  border:0;color:#fff;font-size:24px;line-height:1;padding:1px 11px 5px;border-radius:999px;
  cursor:pointer}
.hero{width:100%;aspect-ratio:3/2;object-fit:cover;display:block;background:var(--sunk)}
body:not(.three) .hero{border-radius:var(--r) var(--r) 0 0}
.dpad{padding:15px 17px}
.dtop{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.dtop h2{margin:0;font:600 20px/1.25 var(--disp)}
.dprice{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.acts{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0}
/* 2026-09-11. Sheer sent a screenshot: "better layout of the 1, 2, 3 stuff". The rating
   buttons live INSIDE .acts, so `.acts button` matched them too and gave each one
   `flex:1 1 44%` — which is why 1 and 2 sat side by side and 3 wrapped onto its own line.
   The direct-child selector stops the action styling leaking into the segmented control. */
.acts > button,.acts > a{flex:1 1 44%;text-align:center;background:var(--card);
  border:1px solid var(--line2);color:var(--ink);border-radius:10px;padding:10px 8px;
  font-size:13px;font-weight:600;text-decoration:none;cursor:pointer;box-shadow:var(--sh)}
.acts .on{background:var(--fav);color:#fff;border-color:var(--fav)}
.acts .hideon{background:var(--no-bg);color:var(--mut)}
.dnote{font-size:14px;line-height:1.65;color:var(--ink2);margin:0 0 12px}
.tagrow{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0}
.tag{font-size:11.5px;color:var(--ink2);background:var(--sunk);border:1px solid var(--line);
  border-radius:999px;padding:3px 9px}
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:8px;margin:13px 0}
.fact{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:9px 11px;
  font-size:13.5px}
.fact b{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.08em;
  color:var(--mut);margin-bottom:2px;font-weight:650}
.commute{margin:13px 0;background:var(--card);border:1px solid var(--line);
  border-radius:var(--r);padding:4px 13px}
.crow{display:flex;justify-content:space-between;gap:10px;padding:9px 0;
  border-bottom:1px solid var(--line);font-size:13.5px}
.crow:last-child{border:0}
.crow .via{color:var(--mut);font-size:12px}
.crow b{font-variant-numeric:tabular-nums;white-space:nowrap}
.pc{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:13px 0}
@media(max-width:600px){.pc{grid-template-columns:1fr}}
body.three .pc{grid-template-columns:1fr}
.pc>div{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:11px 13px}
.pc h4{font-size:10px;text-transform:uppercase;letter-spacing:.09em;margin:0 0 6px;font-weight:650}
.pc ul{margin:0;padding-left:16px;font-size:13.5px;line-height:1.65;color:var(--ink2)}
.pro h4{color:var(--see)} .con h4{color:var(--maybe)}
.notes{margin-top:15px;border-top:1px solid var(--line);padding-top:13px}
.nhead{font-size:10px;text-transform:uppercase;letter-spacing:.09em;color:var(--mut);
  margin:0 0 8px;font-weight:650}
.nrow{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:9px 11px;
  margin-bottom:8px;font-size:13.5px}
.nrow span{display:block;font-size:11px;color:var(--mut);margin-bottom:3px}
.nbox{display:flex;gap:8px}
.nbox input{flex:1;background:var(--card);border:1px solid var(--line2);color:var(--ink);
  border-radius:10px;padding:10px 12px;font-size:14px;min-width:0}
.nbox button{background:var(--accent);border:0;color:#fff;border-radius:10px;
  padding:0 16px;cursor:pointer;font-weight:600;font-size:13.5px}
body.dark .nbox button{color:#0c1a14}

/* ---------- login ---------- */
main.login,.login-wrap{max-width:380px;margin:0 auto;padding:60px 20px}
input[type=text],input[type=password]{width:100%;background:var(--card);
  border:1px solid var(--line2);color:var(--ink);border-radius:10px;padding:11px 12px;
  margin:8px 0;font:inherit}
.primary{background:var(--accent);color:#fff;border:0;border-radius:10px;padding:12px 18px;
  font-weight:650;width:100%;margin-top:8px;font:inherit;cursor:pointer}
body.dark .primary{color:#0c1a14}
.hint{font-size:13px;color:var(--mut);min-height:18px}

/* ---------- slideshow ---------- */
.slides{position:fixed;inset:0;background:#100d09;z-index:3000;display:flex;align-items:center}
.strip{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;width:100%;height:100%;
  -webkit-overflow-scrolling:touch;scrollbar-width:none}
.strip::-webkit-scrollbar{display:none}
.strip img{flex:0 0 100%;width:100%;height:100%;object-fit:contain;scroll-snap-align:center}
.sclose{position:absolute;top:calc(12px + env(safe-area-inset-top));right:16px;z-index:2;
  background:rgba(255,255,255,.16);border:0;color:#fff;font-size:26px;line-height:1;
  padding:2px 12px 7px;border-radius:999px;cursor:pointer}
.scount{position:absolute;bottom:calc(18px + env(safe-area-inset-bottom));left:0;right:0;
  text-align:center;color:#fff;font-size:13px;text-shadow:0 1px 4px #000}

/* ---------- tabs (phone only) ---------- */
.tabs{position:fixed;left:0;right:0;bottom:0;display:flex;z-index:28;
  background:color-mix(in srgb, var(--bg) 94%, transparent);backdrop-filter:blur(12px);
  border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
.tabs button{flex:1;background:none;border:0;color:var(--mut);padding:13px 2px;
  font-size:12.5px;font-weight:550;border-top:2px solid transparent;cursor:pointer}
.tabs button.on{color:var(--accent);border-top-color:var(--accent)}

/* 2026-09-03. Sheer: "it says 12 photos but when I click on the photo link it only opens
   one and I can't scroll". The strip is a horizontal scroll-snap carousel AND the
   scrollbar is hidden by design just above — so on a laptop there was no affordance at
   all: a vertical wheel does nothing to a horizontal scroller, and there were no buttons
   and no key handling. It worked only by touch swipe. Built on a phone, tested on a
   phone, broken everywhere else. */
.snav{position:absolute;top:50%;transform:translateY(-50%);z-index:1100;
  width:56px;height:56px;border:0;border-radius:50%;cursor:pointer;
  background:rgba(0,0,0,.55);color:#fff;font-size:34px;line-height:1;
  display:flex;align-items:center;justify-content:center}
.snav:hover{background:rgba(0,0,0,.78)}
.snav[disabled]{opacity:.25;cursor:default}
.sprev{left:14px}
.snext{right:14px}
@media (max-width:600px){.snav{width:44px;height:44px;font-size:26px}}

/* A floor plan is line art on white; object-fit:contain on a dark backdrop makes it
   unreadable, so give it its own background. */
.strip img.plan{background:#fff;padding:12px}

/* 2026-09-04. His 0-3 rating replaces the binary star: "star is basically binary whereas
   here we'll get 0-3 with 0 meaning no ranking". Segmented, so the whole scale is visible
   and the current value is obvious without opening anything. */
/* One row, equal cells, whole scale visible at a glance — and NOT wrapping. */
.rankset{flex:1 1 100%;display:flex;align-items:center;gap:8px}
.ranklab{font-size:13px;opacity:.7;white-space:nowrap}
.rankcells{display:flex;flex:1;gap:0;border:1px solid var(--line2);border-radius:9px;
  overflow:hidden;background:var(--card)}
.rankcells .rankbtn{flex:1;min-width:0;border:0;border-left:1px solid var(--line2);
  border-radius:0;height:36px}
.rankcells .rankbtn:first-child{border-left:0}
/* Rank 0 is "not rated", not a choice he made — so it must not be the loudest thing on the
   panel. In the screenshot it was a full-width blue bar, louder than the ratings themselves,
   because 0 counted as the selected state. It is now a quiet clear affordance. */
.rankbtn[data-rank="0"]{max-width:44px;color:var(--mut);font-size:17px;line-height:1}
.rankbtn[data-rank="0"].on{background:var(--card);color:var(--mut)}
.rankbtn{min-width:38px;height:34px;border:1px solid var(--line,#d4d4d8);background:#fff;
  border-radius:8px;cursor:pointer;font-size:15px;font-weight:600;color:#3f3f46}
.rankbtn:hover{border-color:#a1a1aa}
.rankbtn.on{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
.crank{display:inline-flex;align-items:center;justify-content:center;min-width:19px;
  height:19px;border-radius:5px;background:#1d4ed8;color:#fff;font-size:12px;
  font-weight:700;margin-left:6px;vertical-align:middle}


/* Feature glyphs on the list card. Sheer, 2026-09-10: small icons for balcony, furnished,
   bed count. Deliberately quiet — they sit under the meta row and read as a fingerprint of
   the flat you can scan down the column, not as another row of badges competing with the
   price and the verdict. Anything genuinely wanted (outdoor space) is tinted; anything
   genuinely absent (unfurnished) is muted; everything else is plain ink. */
.cfeat{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px;align-items:center}
.feat{display:inline-flex;align-items:center;gap:3px;padding:2px 6px;border-radius:999px;
  border:1px solid var(--line2);background:var(--card);color:var(--mut);line-height:1}
.feat .ico{width:13px;height:13px}
.feat b{font-size:11.5px;font-weight:650;color:var(--ink)}
.feat.good{border-color:color-mix(in srgb,var(--see) 45%,var(--line2));
  background:color-mix(in srgb,var(--see) 9%,var(--card));color:var(--see)}
.feat.on{color:var(--ink)}
/* An unverified claim, drawn as one: dashed border, muted ink. The label spells it out
   ('outdoor space claimed, not verified') — a hedged glyph has to read as a hedge. */
.feat.claim{border-style:dashed;border-color:var(--line2);color:var(--mut)}
.feat.claim .ico{opacity:.55}

.feat.off{opacity:.62}
.dfeat{margin:8px 0 2px}
.dfeat .feat{padding:3px 8px}
.dfeat .feat .ico{width:15px;height:15px}


/* The aggregate score. Sheer asked for one number he can visually cue on, so it sits right
   beside the price and is colour-graded — the colour is the thing you scan, the digit is
   the confirmation. Breakdown is in the tooltip rather than on the card, because a visible
   breakdown is precisely what he said he did not want. */
.sc{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;
  margin-left:7px;padding:0 5px;border-radius:7px;font-size:12.5px;font-weight:750;
  font-variant-numeric:tabular-nums;border:1px solid transparent;vertical-align:middle}
/* A score held down by the no-outdoor-space cap: dotted underline, so the digit is
   honest about being bounded rather than computed. */
.sc.capped{border-bottom:2px dotted currentColor}
.sc.hi{background:var(--see);color:#fff}
.sc.mid{background:color-mix(in srgb,var(--see) 26%,var(--card));color:var(--ink);
  border-color:color-mix(in srgb,var(--see) 45%,var(--line2))}
.sc.lo{background:var(--card);color:var(--mut);border-color:var(--line2)}
.sc.vlo{background:var(--no-bg);color:var(--mut);border-color:var(--line2)}
.dprice .sc{min-width:26px;height:26px;font-size:14px}


/* Inline photo strip in the detail pane (Sheer, 2026-09-11: scroll photos "without having
   to open them up"). Scroll-snap like the lightbox, but with its controls always visible —
   the hidden scrollbar is exactly what made the full-screen one unusable on a laptop. */
.dshot{position:relative;background:var(--no-bg)}
.dstrip{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;
  scrollbar-width:none}
.dstrip::-webkit-scrollbar{display:none}
.dstrip:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.dstrip img{flex:0 0 100%;width:100%;aspect-ratio:4/3;object-fit:cover;scroll-snap-align:start;
  cursor:zoom-in;display:block}
.dnav{position:absolute;top:50%;transform:translateY(-50%);width:34px;height:34px;
  border-radius:50%;border:0;background:rgba(20,20,22,.55);color:#fff;font-size:20px;
  line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.dnav:hover{background:rgba(20,20,22,.78)}
.dnav:disabled{opacity:.28;cursor:default}
.dnav.prev{left:8px} .dnav.next{right:8px}
.dcount{position:absolute;right:10px;bottom:9px;background:rgba(20,20,22,.6);color:#fff;
  font-size:11.5px;padding:2px 7px;border-radius:999px;font-variant-numeric:tabular-nums}

/* Shown only when the app had to widen the default filters to avoid opening on an empty
   board (see render() in app.js). Deliberately conspicuous: the whole failure it guards
   against is a screen that looks confidently, wrongly empty. */
.relaxed {
  margin: .5rem 0 0; padding: .55rem .8rem; border-radius: 8px;
  background: #fdf3d8; border: 1px solid #e8cf8f; color: #6b5314;
  font-size: .86rem; line-height: 1.35;
}
