/* 2Volt mobile v2 — rent or buy, 4 optional steps, results, detail */
:root {
  --bg: #F4F5F7; --card: #FFFFFF; --ink: #16181D; --ink2: #4A4F57; --muted: #6A7078; --faint: #7A8088;
  --line: #E6E8EC; --line2: #EFF0F3; --chip: #D9DCE1;
  --accent: #16181D; --accent-soft: #ECEEF1; --accent-tint: #F2F3F5; --accent-ink: #16181D; --accent-line: #C9CDD3; --amber: #D9A441; --amber-ink: #8F6A1E; --amber-soft: #FBF3E2;
  --bad: #9A4B1E; --bad-soft: #FBEFE8; --good: #2F6B3F; --good-soft: #E9F3EC; --fav: #C2410C;
  --radius: 16px; --shadow-card: 0 1px 2px rgba(16,18,22,.04), 0 6px 18px rgba(16,18,22,.05);
  --shadow-lift: 0 1px 2px rgba(16,18,22,.04), 0 8px 22px rgba(16,18,22,.05); --on-amber: #16181D; --amber-line: #EBD9B4; --s-d: #D6453D;
  --bg2: #F2F3F6; --thumb: #E8ECF1; --ink3: #5F6B7A; --ink4: #B4B8BF; --on-accent: #FFFFFF; --on-good: #FFFFFF;
  color-scheme: light;
}

/* dark theme — data-theme="dark" forces it, data-theme="system" follows the OS */
:root[data-theme="dark"] {
  --bg: #101216; --card: #171A20; --ink: #E9EBEF; --ink2: #C4C9D2; --muted: #9AA1AC; --faint: #8B929C;
  --line: #2B303A; --line2: #232833; --chip: #3A414D;
  --accent: #E9EBEF; --on-accent: #16181D; --on-good: #123524; --accent-soft: #262C37; --accent-tint: #1D222B; --accent-ink: #E9EBEF; --accent-line: #4A5261;
  --amber: #E0B45F; --amber-ink: #EBBF72; --amber-soft: #33291A;
  --bad: #E58A6D; --bad-soft: #3A231D; --good: #7CC08F; --good-soft: #1E3325; --fav: #F08A5D;
  --bg2: #1B1F27; --thumb: #242B36; --ink3: #A9B1BD; --ink4: #4A5260;
  --shadow-card: 0 1px 2px rgba(0,0,0,.35), 0 6px 18px rgba(0,0,0,.4);
  --shadow-lift: 0 1px 2px rgba(0,0,0,.35), 0 8px 22px rgba(0,0,0,.4);
  --amber-line: #54401F;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --bg: #101216; --card: #171A20; --ink: #E9EBEF; --ink2: #C4C9D2; --muted: #9AA1AC; --faint: #8B929C;
    --line: #2B303A; --line2: #232833; --chip: #3A414D;
    --accent: #E9EBEF; --on-accent: #16181D; --on-good: #123524; --accent-soft: #262C37; --accent-tint: #1D222B; --accent-ink: #E9EBEF; --accent-line: #4A5261;
    --amber: #E0B45F; --amber-ink: #EBBF72; --amber-soft: #33291A;
    --bad: #E58A6D; --bad-soft: #3A231D; --good: #7CC08F; --good-soft: #1E3325; --fav: #F08A5D;
    --bg2: #1B1F27; --thumb: #242B36; --ink3: #A9B1BD; --ink4: #4A5260;
    --shadow-card: 0 1px 2px rgba(0,0,0,.35), 0 6px 18px rgba(0,0,0,.4);
    --shadow-lift: 0 1px 2px rgba(0,0,0,.35), 0 8px 22px rgba(0,0,0,.4);
    --amber-line: #54401F;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body { font-family: system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif; font-size: 15px; color: var(--ink); -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.mono { font-variant-numeric: tabular-nums; }

.app { max-width: 480px; margin: 0 auto; height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--bg); position: relative; overflow: hidden; }
@media (min-width: 520px) { .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }

/* header */
.top { flex: none; min-height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 14px; padding-top: env(safe-area-inset-top); background: var(--card); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; font-size: 16px; color: var(--accent); flex: none; }
.top-title { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.icon-btn { flex: none; width: 36px; height: 40px; margin-left: -8px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--accent); }
.lang { margin-left: auto; flex: none; display: flex; border: 1px solid var(--chip); border-radius: 999px; overflow: hidden; font-size: 12px; }
.top-utils { margin-left: auto; flex: none; display: flex; align-items: center; gap: 0; }
.top-utils .icon-btn { margin-left: 0; color: var(--ink2); }
.top-utils .i { width: 20px; height: 20px; }
.lang button { border: 0; background: var(--card); color: var(--ink2); padding: 6px 9px; font-weight: 700; min-height: 32px; display: flex; align-items: center; gap: 5px; }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.flag { flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); display: block; }
.burger { flex: none; width: 40px; height: 40px; margin-right: -6px; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.burger span { width: 20px; height: 2px; border-radius: 1px; background: var(--ink); }

/* layout */
.view { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 14px; outline: none; }
.bottom { flex: none; }
.bottom:empty { display: none; }
.bar { display: flex; gap: 10px; padding: 10px 14px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); }
.tabs { flex: none; height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--card); border-top: 1px solid var(--line); }
.tabs button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 11px; font-weight: 500; min-width: 0; padding: 0; letter-spacing: -.1px; white-space: nowrap; overflow: hidden; }
.tabs button .ic { font-size: 19px; line-height: 1.1; position: relative; }
.tabs button[aria-current="page"] { color: var(--accent); font-weight: 700; }

h1 { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
h1.xl { font-size: 26px; line-height: 1.25; margin-top: 4px; }
h2 { margin: 0; font-size: 16px; font-weight: 700; }
p { margin: 0; line-height: 1.5; }
.sub { color: var(--muted); font-size: 14px; line-height: 1.5; }
.small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.4; }
.label { font-weight: 600; font-size: 14px; color: var(--ink2); }
.group { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dots { display: flex; gap: 6px; }
.dots span { flex: 1; height: 5px; border-radius: 3px; background: var(--chip); }
.dots span.on { background: var(--accent); }

/* controls */
.chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chips.fill > button { flex: 1; }
.chip { padding: 6px 11px; min-height: 38px; border-radius: 999px; background: var(--card); border: 1px solid var(--chip); font-weight: 600; font-size: 13px; color: var(--muted); }
.chips.fill .chip { border-radius: 10px; font-weight: 700; padding: 6px 4px; }
.chip[aria-pressed="true"] { background: var(--amber-soft); border: 1px solid var(--amber); color: var(--ink); box-shadow: 0 1px 2px rgba(16,18,22,.08); }
.chip:disabled { opacity: .55; cursor: default; }
/* The post form's four location tabs sit below a search box; tighten them so all four
   stay on one row on a narrow phone and none looks dropped from the picker. */
.wp-tabs { gap: 4px; flex-wrap: nowrap; }
.wp-tabs .chip { flex: 1 1 0; min-width: 0; padding: 5px 6px; min-height: 34px; font-size: 12.5px; white-space: nowrap; }
.wp-tabs .chip .i { width: 14px; height: 14px; }
.chip .soon { font-size: 10.5px; font-weight: 700; color: var(--muted); margin-left: 4px; }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kind { text-align: left; padding: 9px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--chip); min-height: 52px; display: flex; flex-direction: column; gap: 2px; }
.kind b { font-size: 15px; }
.kind span { font-size: 12px; color: var(--muted); line-height: 1.3; }
.kind[aria-pressed="true"] { background: var(--amber-soft); border: 2px solid var(--amber); color: var(--ink); box-shadow: 0 1px 2px rgba(16,18,22,.08); }
.pill-btn { border: 0; background: var(--accent-tint); color: var(--accent); font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; min-height: 28px; }
.info-btn { position: relative; top: -2px; border: 0; background: none; color: var(--muted); padding: 0; margin: 0 0 0 7px; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.info-btn::after { content: ''; position: absolute; inset: -11px -8px; }
.info-btn .i { width: 15px; height: 15px; color: var(--muted); transform: translateY(-1px); }
.info-btn:hover .i, .info-btn:active .i { color: var(--accent); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-card); }
.btn { border: 0; border-radius: 12px; padding: 0 16px; min-height: 52px; font-size: 15px; font-weight: 700; background: var(--accent); color: var(--on-accent); flex: 1; -webkit-tap-highlight-color: transparent; }
.btn:focus { outline: none; }
.btn:focus-visible { outline: 2px solid var(--accent); }
.btn.ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--chip); flex: 0 0 auto; }
.btn.small { min-height: 44px; font-size: 13.5px; border-radius: 10px; }
.btn.link { background: none; color: var(--accent); min-height: 44px; flex: none; font-weight: 600; padding: 10px 4px; }
.btn:disabled { opacity: .45; cursor: default; }
.dashed { min-height: 48px; border-radius: 12px; border: 1.5px dashed var(--accent-line); background: var(--card); color: var(--accent); font-weight: 700; }
.skipbtn { min-height: 50px; border-radius: 14px; border: 1.5px dashed var(--ink4); background: var(--card); font-weight: 700; color: var(--ink2); }

/* slider */
input[type=range] { width: 100%; accent-color: var(--amber); height: 28px; margin: 0; }
.dual { position: relative; height: 28px; }
.dual .track, .dual .fillbar { position: absolute; top: 11px; height: 6px; border-radius: 3px; }
.dual .track { left: 0; right: 0; background: var(--line); }
.dual .fillbar { background: linear-gradient(90deg, var(--amber-ink), var(--amber)); }
.dual input { position: absolute; left: 0; top: 0; pointer-events: none; background: none; -webkit-appearance: none; appearance: none; }
.dual input::-webkit-slider-runnable-track { height: 6px; background: transparent; }
.dual input::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--card); border: 3px solid var(--amber); box-shadow: 0 2px 6px rgba(0,0,0,.18); margin-top: -10px; }
.dual input::-moz-range-thumb { pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 3px solid var(--amber); box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.price-dist { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 11px; line-height: 1.2; }
.price-dist-bars { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); align-items: end; gap: 3px; height: 34px; border-bottom: 1px solid var(--line); }
.price-dist-bars i { display: block; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--line2); }
.price-dist-bars i.on { background: var(--amber); }
.val { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--accent); }
.val.lg { font-size: 20px; }
.ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

.money { display: flex; align-items: center; background: var(--card); border: 1px solid var(--chip); border-radius: 12px; padding: 0 12px; min-height: 48px; }
.money span { color: var(--muted); font-weight: 600; margin-right: 6px; }
.money input { border: 0; outline: none; flex: 1; font-size: 17px; font-weight: 600; background: transparent; min-width: 0; padding: 10px 0; }
.money:focus-within, .text:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); outline: none; }
.text { border: 1px solid var(--chip); border-radius: 12px; padding: 11px 12px; font-size: 16px; background: var(--card); min-height: 46px; width: 100%; }
textarea.text { min-height: 70px; resize: vertical; font-size: 16px; }
.afford { background: var(--accent); color: var(--on-accent); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.afford .amt { font-variant-numeric: tabular-nums; font-size: 30px; font-weight: 600; }
.afford .why { font-size: 12.5px; opacity: .92; line-height: 1.45; }
.afford.empty { background: var(--card); color: var(--muted); border: 1.5px dashed var(--chip); }

/* folded groups */
.fold { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.fold > div { border-bottom: 1px solid var(--line2); }
.fold > div:last-child { border-bottom: 0; }
.fold .head { width: 100%; border: 0; background: var(--card); padding: 0 12px; min-height: 46px; display: flex; align-items: center; gap: 8px; text-align: left; }
.fold .head b { font-size: 14px; flex: none; }
.fold .head .sum { flex: 1; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.fold .head .sum.on { color: var(--accent-ink); }
/* head that also carries an ⓘ: the toggle and the info button are siblings, never nested buttons */
.fold .head2 { display: flex; align-items: center; gap: 4px; padding: 0 8px 0 12px; }
.fold .head2 > .tgl { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 46px; display: flex; align-items: center; gap: 8px; padding: 0; text-align: left; font: inherit; color: inherit; }
.fold .head2 > .tgl b { font-size: 14px; flex: none; }
.fold .head2 > .tgl .sum { flex: 1; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.fold .head2 > .tgl .sum.on { color: var(--accent-ink); }
.fold .body { padding: 0 12px 12px; }
.section-note { font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: -4px; }

/* hub */
.intent { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; gap: 12px; align-items: center; min-height: 84px; width: 100%; }
.intent .ico { flex: none; width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.intent .txt { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.intent .txt b { font-size: 20px; }
.intent .txt span { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.intent .go { color: var(--accent); font-size: 22px; }

/* places */
.place { background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.place.on { border-color: var(--accent); }
.place .p-head { display: flex; align-items: center; gap: 10px; }
.tick { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 1.5px solid var(--chip); background: var(--card); color: #fff; font-weight: 700; font-size: 15px; padding: 0; }
.place.on .tick { border-color: transparent; background: var(--accent); color: var(--on-accent); }
.place .p-name { font-size: 16px; flex: 1; min-width: 0; }
.place .p-edit { flex: none; border: 0; background: none; color: var(--muted); padding: 6px; min-height: 0; display: flex; align-items: center; }
.place .p-edit .i { width: 18px; height: 18px; }
.place .p-edit:hover { color: var(--accent); }
.place .p-rm { flex: none; border: 0; background: none; color: var(--bad); font-weight: 700; padding: 6px 4px; min-height: 0; border-radius: 8px; font-size: 15px; line-height: 1; }
.place .p-rm.sure { background: var(--bad-soft); font-size: 11px; padding: 4px 8px; }
.place .p-addr { font-size: 13px; color: var(--muted); line-height: 1.4; }
.place .meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; }
.place .meta span { padding: 6px 12px; border-radius: 8px; background: var(--line2); }
.place .meta span.max { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.txt-btn { border: 0; background: none; color: var(--accent); font-weight: 600; padding: 8px 4px; min-height: 40px; }
.rm-btn { border: 0; background: none; color: var(--bad); font-weight: 700; padding: 6px 8px; min-height: 36px; border-radius: 8px; font-size: 17px; }
.rm-btn.sure { background: var(--bad-soft); font-size: 12px; }
.area-card { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; width: 100%; }
.area-card .chipset { display: flex; gap: 5px; flex-wrap: wrap; }
.mini { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--bg); font-size: 12.5px; font-weight: 600; }
.mini i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

/* area picker */
.seg-tabs { position: relative; display: flex; background: var(--line); border-radius: 12px; padding: 3px; gap: 4px; touch-action: pan-y; }
.seg-tabs button { flex: 1; min-height: 40px; border-radius: 10px; border: 0; background: transparent; font-weight: 500; }
.seg-ink { position: absolute; z-index: 0; border-radius: 10px; background: var(--card); box-shadow: 0 1px 3px rgba(22,24,29,.14); transition: transform .26s cubic-bezier(.2,.9,.3,1), width .26s cubic-bezier(.2,.9,.3,1); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .seg-ink { transition: none; } }
.seg-tabs > button, .bd-mode > button, .bd-seg > button { position: relative; z-index: 1; }
.seg-tabs button[aria-pressed="true"] { font-weight: 700; }
/* The area picker has four icon + label tabs on one row; keep the 4-char Draw label from wrapping on narrow phones. */
.area-tabs { gap: 2px; padding: 3px; }
.area-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 0 3px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.area-tabs button .i { width: 15px; height: 15px; }
@media (max-width: 380px) {
  .area-tabs { gap: 1px; padding: 2px; }
  .area-tabs button { gap: 1px; padding: 0 1px; font-size: 11px; }
  .area-tabs button .i { width: 12px; height: 12px; }
}
.picked { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.picked button { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid transparent; background: var(--ink); color: var(--on-accent); font-size: 13px; font-weight: 600; min-height: 34px; }
.picked button i { width: 8px; height: 8px; border-radius: 50%; }
.lines-group { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.line { background: var(--card); }
.line + .line { border-top: 1px solid var(--line2); }
.line .lh { width: 100%; text-align: left; border: 0; background: var(--card); padding: 12px 14px; min-height: 52px; display: flex; align-items: center; gap: 12px; }
.line .code { flex: none; width: 34px; height: 24px; border-radius: 6px; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.line .lb { border-top: 1px solid var(--line2); padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.st { font-size: 13.5px; padding: 6px 11px; border-radius: 999px; min-height: 38px; background: var(--card); border: 1px solid var(--chip); font-weight: 500; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--chip); min-height: 58px; display: flex; flex-direction: column; gap: 1px; }
.tile span { font-size: 12px; color: var(--muted); line-height: 1.3; }
.tile[aria-pressed="true"] { background: var(--accent-soft); border: 2px solid var(--accent); }
.note-box { background: var(--card); border: 1.5px dashed var(--chip); border-radius: 14px; padding: 16px; color: var(--ink2); line-height: 1.5; }

/* who */
.who-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.who { padding: 6px 4px; min-height: 58px; border-radius: 12px; background: var(--card); border: 1px solid var(--chip); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 600; font-size: 13.5px; text-align: center; }
.who .e { font-size: 20px; }
.who[aria-pressed="true"] { background: var(--accent-soft); border: 2px solid var(--accent); }
.count { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--chip); background: var(--card); font-size: 20px; }
.stepper b { min-width: 36px; text-align: center; font-size: 15px; }

/* results */
.res-bar { flex: none; display: flex; align-items: center; gap: 8px; }
.res-bar b { flex: 1; font-size: 15px; }
.tool { border: 1px solid var(--chip); background: var(--card); border-radius: 10px; padding: 6px 9px; min-height: 40px; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.tool.on { background: var(--accent-tint); color: var(--accent); }
.vt { display: flex; background: var(--line); border-radius: 10px; padding: 3px; }
.vt button { border: 0; border-radius: 8px; padding: 6px 10px; min-height: 34px; font-size: 13.5px; font-weight: 700; background: transparent; }
.vt button[aria-pressed="true"] { background: var(--card); }
.fchips { flex: none; display: flex; gap: 6px; overflow-x: auto; margin: -2px -14px 0; padding: 0 14px 2px; }
.fchips button { flex: none; padding: 5px 10px; min-height: 34px; border-radius: 999px; border: 1px solid var(--accent-line); background: var(--accent-tint); color: var(--accent-ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.home { flex: none; text-align: left; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.hc-listing { color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.hc-title { display: flex; align-items: baseline; gap: 6px; }
.hc-title b { font-size: 15.5px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.kv2 > div { background: var(--bg); border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; }
.kv2 span { font-size: 11px; color: var(--muted); }
.kv2 b { font-size: 14px; }
.kv2 b.p { font-variant-numeric: tabular-nums; color: var(--accent); }
.tags { display: flex; gap: 5px; flex-wrap: wrap; font-size: 12px; }
.tags span { padding: 3px 7px; border-radius: 6px; background: var(--accent-tint); color: var(--accent-ink); font-weight: 600; }
.tags span.g { background: var(--line2); color: var(--ink); font-weight: 500; }
.tags span.more { background: none; color: var(--faint); font-weight: 600; padding: 3px 2px; }
.est { font-size: 10.5px; font-weight: 700; color: var(--muted); background: var(--line2); padding: 1px 5px; border-radius: 4px; margin-left: 4px; vertical-align: 1px; }
.mapbox { position: relative; height: 470px; border-radius: 16px; overflow: hidden; background: var(--line2); border: 1px solid var(--line); flex: none; }
.mapbox .lm-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapbox .msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); padding: 20px; text-align: center; }
.pinned { text-align: left; background: var(--card); border: 1.5px solid var(--accent); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; width: 100%; }
.empty { text-align: center; color: var(--muted); padding: 36px 10px; line-height: 1.6; }
.empty-act { margin-top: 12px; }
.empty-suggestions { margin-top: 12px; }
.empty-suggestions p { margin: 0 0 8px; font-size: 12px; }
.empty-suggestions > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
/* No-results page (prototype): icon hero card, loosen suggestions, near-match teasers */
.e2 { display: flex; flex-direction: column; gap: 14px; padding: 8px 0 20px; }
.e2-card { text-align: center; padding: 26px 16px 18px; }
.e2-art { position: relative; width: 76px; height: 76px; margin: 0 auto 14px; }
.e2-art::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--amber-soft); }
.e2-ic { position: absolute; inset: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--amber), var(--amber-ink)); color: var(--on-amber); display: grid; place-items: center; box-shadow: 0 6px 14px rgba(217,164,65,.35); }
.e2-ic .i { width: 26px; height: 26px; }
.e2-x { position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--card); border: 1px solid var(--amber); color: var(--amber-ink); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(16,18,22,.12); }
.e2-x .i { width: 13px; height: 13px; }
.e2-card h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.e2-sub { margin: 0 0 16px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.e2-sugs { display: flex; flex-direction: column; gap: 8px; text-align: left; margin-bottom: 14px; }
.e2-sug { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.e2-sug:active { transform: scale(.97); }
.e2-si { flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--amber-soft); color: var(--amber-ink); display: grid; place-items: center; }
.e2-si .i { width: 16px; height: 16px; }
.e2-si.hot { background: var(--amber); color: var(--on-amber); }
.e2-st { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.e2-st b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.e2-st small { font-size: 11px; color: var(--faint); }
.e2-n { flex: none; font-style: normal; font-size: 11px; font-weight: 700; color: var(--good); background: var(--good-soft); border-radius: 8px; padding: 3px 7px; font-variant-numeric: tabular-nums; }
.e2-clear { align-self: center; padding: 8px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.e2-pop { display: flex; flex-direction: column; gap: 8px; }
.e2-pop-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 0 2px; }
.e2-pop-h h3 { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.e2-pop-h p { margin: 2px 0 0; font-size: 11px; color: var(--muted); }
.e2-pop-h .txt-btn { flex: none; font-size: 12px; font-weight: 700; color: var(--amber-ink); }
.teaser { display: flex; gap: 12px; align-items: stretch; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.teaser:active { transform: scale(.97); }
.teaser-ph { position: relative; flex: none; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--line2); }
.teaser-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.teaser-ph i { position: absolute; left: 5px; bottom: 5px; font-style: normal; font-size: 9.5px; font-weight: 700; color: #fff; background: rgba(16,18,22,.72); border-radius: 6px; padding: 2px 6px; }
.teaser-ph i:empty { display: none; }
.teaser-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 2px 0; }
.teaser-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.teaser-top b { font-size: 15px; font-weight: 800; color: var(--ink); }
.teaser-top em { flex: none; font-style: normal; font-size: 11px; font-weight: 700; color: var(--amber-ink); background: var(--amber-soft); border-radius: 8px; padding: 2px 7px; }
.teaser-n { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.teaser-m { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.teaser-c { margin-top: auto; display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--good); }
.teaser-c .i { width: 12px; height: 12px; }
.teaser-c b { color: var(--ink2); font-weight: 600; }
.loading { color: var(--muted); text-align: center; padding: 30px 0; }

/* detail */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts > div { background: var(--card); border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 11px 10px; display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.facts span { font-size: 11px; color: var(--muted); }
.facts b { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.utable .uh, .utable .ur { display: grid; grid-template-columns: 1.3fr .8fr 1.2fr .8fr; gap: 4px; padding: 7px 0; border-bottom: 1px solid var(--line2); }
.utable .uh { font-size: 11.5px; color: var(--muted); font-weight: 700; padding: 4px 0; }
.utable .ur { font-size: 13.5px; }
.utable .ur:last-child { border-bottom: 0; }
.utable .ur b, .utable .ur .m { font-variant-numeric: tabular-nums; }
.rows > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line2); font-size: 14px; }
.rows > div:last-child { border-bottom: 0; }
.rows .k { color: var(--ink2); }
.rows .v { font-weight: 700; text-align: right; }
.rows .v.m { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rows .wk-n { font-weight: 700; color: var(--ink); }
.rows .wk-trip { margin-left: 8px; font-size: 12px; }
.rows .wk-a { color: var(--muted); }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; }
.total b.m { font-variant-numeric: tabular-nums; color: var(--accent); font-size: 17px; }
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.links a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 12px; border: 1px solid var(--chip); background: var(--card); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; text-align: center; padding: 0 6px; }
.links a.wide { grid-column: 1 / -1; }
.near > div { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line2); }
.near > div:last-child { border-bottom: 0; }
.near .e { font-size: 18px; width: 24px; text-align: center; }
.near .n { flex: 1; font-size: 13.5px; font-weight: 600; }
.near .d { font-size: 12.5px; text-align: right; display: flex; flex-direction: column; }
.near .d span { color: var(--muted); }
.days { display: flex; gap: 6px; overflow-x: auto; margin: 0 -12px; padding: 0 12px 2px; }
.day { flex: none; width: 52px; min-height: 56px; border-radius: 12px; background: var(--card); border: 1px solid var(--chip); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.day span { font-size: 11px; color: var(--muted); }
.day b { font-size: 17px; }
.day[aria-pressed="true"] { background: var(--accent-soft); border: 2px solid var(--accent); }
.ok-tag { font-size: 12px; color: var(--accent-ink); font-weight: 700; }
.photos { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.photos .ph { position: relative; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--line2); }
.photos .ph img, .rec img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos .ph button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 0; }
.addph { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 8px; border: 1.5px dashed var(--ink4); color: var(--ink2); font-size: 11px; font-weight: 600; cursor: pointer; }
.addph input { display: none; }
.tagadd { display: inline-flex; align-items: center; border: 1.5px dashed var(--ink4); border-radius: 999px; padding: 0 4px 0 10px; min-height: 36px; }
.tagadd input { border: 0; outline: none; width: 76px; background: transparent; font-size: 16px; }
.tagadd button { border: 0; background: var(--accent); color: var(--on-accent); width: 26px; height: 26px; border-radius: 50%; font-weight: 700; padding: 0; }
.rec { border-top: 1px solid var(--line2); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.rec .rt { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12.5px; }
.rec .rt em { font-style: normal; font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-ink); font-weight: 600; }
.rec .imgs { display: flex; gap: 6px; flex-wrap: wrap; }
.rec .imgs div { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--line2); }
.rec .acts { display: flex; gap: 14px; }
.rec .acts button { border: 0; background: none; font-weight: 700; font-size: 13px; padding: 4px 0; min-height: 32px; color: var(--accent); }
.rec .acts button.del { color: var(--bad); }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.src { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.src a, .vf-note a { display: inline-block; padding: 4px 2px; margin: -4px -2px; }

/* lists */
.list-item { text-align: left; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.vrow { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; gap: 12px; align-items: center; }
.vdate { flex: none; width: 52px; border-radius: 10px; background: var(--accent-tint); color: var(--accent-ink); display: flex; flex-direction: column; align-items: center; padding: 6px 0; }
.vdate span { font-size: 11px; font-weight: 700; }
.vdate b { font-size: 18px; }
.vdate small { font-size: 10.5px; }
.srow { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.srow > button:first-child { flex: 1; text-align: left; border: 0; background: none; padding: 0; display: flex; flex-direction: column; gap: 3px; }

/* sheets, menu, toast */
.overlay { position: absolute; inset: 0; background: rgba(30,35,40,.38); z-index: 20; animation: ovIn .18s ease-out; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92%; overflow-y: auto; overscroll-behavior: contain; background: var(--card); border-radius: 20px 20px 0 0; z-index: 21; padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; animation: shIn .24s cubic-bezier(.2,.9,.3,1); }
#layer.noanim .overlay, #layer.noanim .sheet, #layer.noanim .menu { animation: none; }
.grip { width: 40px; height: 4px; border-radius: 2px; background: var(--chip); align-self: center; }
.sugg { position: relative; z-index: 5; margin-top: 6px; background: var(--card); border: 1px solid var(--chip); border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.14); overflow: hidden; }
.sugg button { width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line2); background: var(--card); padding: 9px 12px; min-height: 48px; display: flex; flex-direction: column; gap: 1px; }
.sugg button span { font-size: 12px; color: var(--muted); }
.sugg button.sugg-login b { color: var(--accent-ink); }
.sugg .src { padding: 6px 12px; background: var(--bg2); }
.modes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mode { min-height: 60px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--chip); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 600; color: var(--muted); }
.mode .e { font-size: 20px; }
.mode[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.sort-opt { text-align: left; border: 0; border-radius: 10px; background: var(--card); padding: 0 12px; min-height: 48px; display: flex; align-items: center; justify-content: space-between; font-size: 15.5px; width: 100%; }
.sort-opt[aria-pressed="true"] { background: var(--accent-tint); font-weight: 700; }
.info-sheet { gap: 12px; }
.info-blk { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.info-list { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.info-list li b { color: var(--ink); font-weight: 700; margin-right: 6px; }
.info-figbox { margin: 2px 0 0; color: var(--muted); }
.info-blk.quota .info-figbox { margin-top: 4px; }
.info-fig { display: block; width: 100%; height: auto; }
.fig-row { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.fig-row .info-fig { flex: 1; width: auto; min-width: 0; color: var(--ink); }
.fig-row > span { flex: none; width: 68px; font-size: 12px; line-height: 1.3; color: var(--muted); text-align: right; }
.seg-quick { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.seg-quick .chip { min-height: 32px; padding: 4px 10px; font-size: 12.5px; letter-spacing: .3px; }
.seg-quick .chip span { font-size: 11px; }
/* Two different jobs sit next to each other on the area maps: the two chips directly above the map
   move the map (labelled, plain pills), while the CCR / RCR / OCR chips under it filter what the
   map offers (their own bordered block, dashed pills). Keep the two from reading as one row of tabs. */
.pick-scope { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.pick-scope .ctl-lb { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 11.5px; font-weight: 700; letter-spacing: .3px; color: var(--muted); }
.pick-scope .ctl-lb .i { width: 14px; height: 14px; }
.pick-scope .chip { min-height: 32px; padding: 4px 10px; font-size: 12.5px; }
.pick-filter { margin: 10px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.pick-filter .pf-h { display: flex; align-items: center; gap: 5px; margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .3px; color: var(--ink); }
.pick-filter .pf-h .i { width: 14px; height: 14px; color: var(--ink2); }
.pick-filter .seg-quick { margin: 0; }
.pick-filter .seg-quick .chip { border-style: dashed; border-color: var(--accent-line); }
.pick-filter p.hint { margin: 8px 0 0; }
.seg-why { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 0; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.seg-why p { margin: 0; }
.seg-why b { color: var(--ink); font-size: 12px; letter-spacing: .3px; }
.info-blk h3 { margin: 0; font-size: 14px; font-weight: 700; }
.info-blk.tip { background: var(--accent-tint); border-color: var(--accent-line); }
.info-blk.quota { background: var(--accent-tint); border-color: var(--accent-line); border-left-width: 3px; }
.info-tbl { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.info-tr { display: grid; grid-template-columns: 86px 58px 1fr; gap: 8px; padding: 8px 10px; font-size: 12.5px; border-top: 1px solid var(--line2); }
.info-tr > span:first-child, .info-tr > span:nth-child(2) { white-space: nowrap; }
.info-tr:first-child { border-top: 0; }
.info-th { font-weight: 700; font-size: 11.5px; color: var(--muted); background: var(--bg); }
.menu { position: absolute; top: 0; right: 0; bottom: 0; width: min(310px, 86%); background: var(--card); z-index: 21; display: flex; flex-direction: column; box-shadow: -8px 0 24px rgba(0,0,0,.12); animation: menuIn .2s ease-out; }
.menu .mh { height: 52px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line); }
.menu .mb { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 0 8px; }
.menu .now { margin: 0 16px 4px; background: var(--accent-tint); border: 1px solid var(--accent-line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.menu .gt { padding: 14px 20px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }
.menu .mi { width: 100%; text-align: left; border: 0; background: var(--card); padding: 6px 20px; min-height: 50px; display: flex; align-items: center; gap: 14px; font-size: 15.5px; }
.menu .mi[aria-current="page"] { background: var(--accent-tint); font-weight: 700; }
.menu .mi .e { width: 22px; text-align: center; color: var(--accent); font-size: 17px; }
.menu .mi .l { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.menu .mi .l small { font-size: 12px; color: var(--muted); font-weight: 400; }
.menu .mi .c { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.menu .langs { display: flex; gap: 8px; padding: 6px 20px; }
.menu .langs button { flex: 1; min-height: 44px; border-radius: 12px; font-weight: 700; background: var(--card); border: 1.5px solid var(--chip); display: flex; align-items: center; justify-content: center; gap: 8px; }
.menu .langs button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.menu .mf { flex: none; padding: 12px 20px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.toast { position: absolute; left: 16px; right: 16px; top: calc(60px + env(safe-area-inset-top)); background: var(--ink); color: var(--on-accent); border-radius: 12px; padding: 12px 14px; font-size: 14px; z-index: 45; box-shadow: 0 10px 26px rgba(0,0,0,.26); animation: toastIn .2s ease-out; transition: opacity .16s ease, transform .16s ease; }
.toast.is-out { opacity: 0; transform: translateY(-8px); }
.a2hs { position: fixed; left: 12px; right: 12px; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 35; display: flex; align-items: center; gap: 10px; max-width: 560px; margin-left: auto; margin-right: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; box-shadow: 0 8px 24px rgba(22,24,29,.16); animation: shIn .24s cubic-bezier(.2,.9,.3,1); }
.a2hs-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; }
.a2hs-ic .i { width: 18px; height: 18px; }
.a2hs-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.a2hs-t b { font-size: 14px; }
.a2hs-t span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.a2hs-go { flex: none; min-height: 36px; padding: 6px 14px; font-size: 13px; }
.a2hs-x { flex: none; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.a2hs-x .i { width: 15px; height: 15px; }
a { color: var(--accent); }

/* account */
.menu .acct { width: calc(100% - 32px); margin: 0 16px 10px; padding: 10px 12px; min-height: 58px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--card); display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.menu .acct .e { font-size: 17px; }
.menu .acct .l { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.menu .acct .l b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu .acct small { font-size: 12px; color: var(--muted); }
.menu .acct .c { font-size: 20px; color: var(--muted); }
.menu .acct .btn { padding: 0 12px; min-height: 40px; }
.au-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); }
.au-tab-ink { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc(50% - 6px); border-radius: 10px; background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.12); transition: transform .26s cubic-bezier(.2,.9,.3,1); pointer-events: none; }
.au-tabs button { position: relative; z-index: 1; min-height: 44px; border: 0; border-radius: 10px; background: none; font-size: 15px; font-weight: 600; color: var(--ink2); }
.au-tabs button[aria-pressed="true"] { color: var(--accent-ink); font-weight: 700; }
.au-g { width: min(100%, 400px, calc(100vw - 44px)); height: 44px; margin: 2px auto 4px; display: flex; justify-content: center; }
.au-g:empty { display: none; }
.au-g iframe { display: block; max-width: 100%; color-scheme: normal; margin: 0 auto !important; }
.au-g > div > div:first-child { display: none; }
.au-g > div { width: 100% !important; }
.au-g.au-slot { display: flex; }
.gsi-float { position: fixed; z-index: 25; margin: 0; left: 0; top: 0; }
.gsi-float::before { content: ''; position: absolute; inset: 0; border-radius: 999px; pointer-events: none;
  background: linear-gradient(100deg, var(--chip) 30%, var(--line) 50%, var(--chip) 70%); background-size: 220% 100%;
  animation: gsiShimmer 1.15s linear infinite; }
.gsi-float.gsi-on::before { display: none; }
@keyframes gsiShimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.au-g > div > iframe { max-width: 100% !important; }
.au-oauth { display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(100%, 510px); margin: 0 auto 10px; }
.au-oauth:empty { display: none; }
.au-or { display: flex; align-items: center; gap: 10px; margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.sheet.auth-pg > .au-or { width: min(100%, 380px, calc(100vw - 64px)); align-self: center; }
.au-or i { flex: 1; height: 1px; background: var(--chip); }
.au-prov { display: flex; align-items: center; justify-content: center; gap: 8px; width: min(100%, 380px, calc(100vw - 64px)); min-width: 0; height: 40px; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; }
.au-prov svg { width: 18px; height: 18px; flex: none; }
.au-prov.au-ico { width: auto; min-width: 52px; padding: 0 16px; }
.au-prov span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-form { display: flex; flex-direction: column; gap: 12px; }
.au-form .btn { flex: none; }
.au-hint { margin-top: -8px; }
.au-vld { display: block; margin-top: 2px; min-height: 15px; }
.au-vld.ok { color: var(--good); }
.au-vld.bad { color: var(--bad); }
.text.au-bad { border-color: var(--bad); }
.au-msg { margin: 0; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.4; background: var(--bad-soft); color: var(--bad); }
.au-msg.good { background: var(--accent-soft); color: var(--accent-ink); }
.au-msg[hidden] { display: none; }
.au-cap { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.au-cap svg { display: block; max-width: 180px; height: auto; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
.sheet.auth-pg { height: 100%; max-height: 100%; border-radius: 0; padding-top: calc(12px + env(safe-area-inset-top)); animation: none; overflow: hidden; }
.sheet.auth-pg .au-form { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.au-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.au-track { position: absolute; top: 0; bottom: 0; left: 0; width: 200%; display: flex; transition: transform .26s cubic-bezier(.2,.9,.3,1); will-change: transform; }
.au-track.reg { transform: translateX(-50%); }
.au-pane { width: 50%; flex: none; height: 100%; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
.sheet.auth-pg .au-pane .au-form { flex: none; min-height: 0; overflow: visible; }
.au-pane > .au-or { width: min(100%, 380px, calc(100vw - 64px)); align-self: center; }
.au-pane .au-f { width: min(100%, 380px, calc(100vw - 64px)); align-self: center; }
.sheet.auth-pg .au-bar { display: flex; align-items: center; justify-content: space-between; }
.sheet.auth-pg .au-bar .brand { font-size: 17px; font-weight: 800; color: var(--accent-ink); }
.sheet.auth-pg .sheet-x { flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--chip); color: var(--muted); cursor: pointer; }
.sheet.auth-pg .sheet-x .i { width: 16px; height: 16px; }

/* social comments */
.cm { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line2); }
.cm:first-of-type { border-top: 0; padding-top: 2px; }
.cm-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; }
.cm-t { font-size: 13.5px; line-height: 1.4; }
.cm p { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.cm-blur { display: inline-block; width: 55%; max-width: 220px; height: 1em; margin-left: 4px; border-radius: 4px; vertical-align: -0.15em; background: linear-gradient(90deg, var(--chip) 0%, var(--line) 55%, var(--chip) 100%); filter: blur(1.5px); opacity: .8; }
.cm-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; }
.cm-f a { font-size: 13px; font-weight: 600; color: var(--accent-ink); min-height: 28px; display: inline-flex; align-items: center; }
.cm-lock { min-height: 54px; padding: 10px 12px; border: 1px dashed var(--accent-line); border-radius: 12px; background: var(--accent-tint); color: var(--accent-ink); font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }

/* step 1: rent or buy, keyword search */
.seg-tabs.goal button { min-height: 44px; font-size: 16px; }
.seg-tabs.goal button[aria-pressed="true"] { color: var(--accent-ink); }
.kw-box { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border: 1px solid var(--chip); border-radius: 12px; background: var(--card); }
.kw-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.kw-box input { flex: 1; align-self: stretch; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); }
.kw-list { border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.kw-list button { width: 100%; min-height: 50px; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line2); background: none; text-align: left; display: flex; flex-direction: column; gap: 1px; font-size: 14.5px; }
.kw-list button b { font-weight: 600; }
.kw-list button span { font-size: 12px; color: var(--muted); }
.kw-list button.all { min-height: 46px; border-bottom: 0; justify-content: center; font-weight: 700; color: var(--accent-ink); }

/* listing type label */
.tags span.pt { background: var(--ink); color: var(--on-accent); }

/* floor plans */
.fps { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
.fp-item { flex: none; width: 150px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; display: flex; flex-direction: column; scroll-snap-align: start; }
.fp-item img { display: block; width: 100%; height: 130px; object-fit: contain; background: var(--thumb); }
.fp-item span { padding: 6px 8px; font-size: 12px; font-weight: 600; text-align: left; border-top: 1px solid var(--line2); }
.fpv { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; background: var(--card); touch-action: none; }
.fpv-h { flex: none; min-height: 56px; padding: 6px 8px 6px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.fpv-h > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fpv-h small, .fpv-h a { font-size: 12.5px; color: var(--muted); }
.fpv-h a { color: var(--accent-ink); font-weight: 600; }
.fpv-h button { flex: none; width: 44px; height: 44px; border: 0; background: none; font-size: 20px; color: var(--ink2); }
.fpv-b { flex: 1; min-height: 0; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 8px; touch-action: pan-x pan-y pinch-zoom; }
.fpv-b img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fpv-f { flex: none; display: flex; justify-content: center; gap: 16px; padding: 8px 8px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.fpv-f button { width: 72px; height: 44px; border-radius: 12px; border: 1px solid var(--chip); background: var(--card); font-size: 24px; color: var(--ink); }
.fpv-f2 { flex: 1; min-height: 0; width: 100%; border: 0; }
.fpv.pv { background: #000; }
.fpv.pv .fpv-h { position: absolute; top: 0; left: 0; right: 0; z-index: 2; border-bottom: 0; background: transparent; color: #fff; padding-top: calc(6px + env(safe-area-inset-top)); }
.fpv.pv .fpv-h b, .fpv.pv .fpv-h button { color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.fpv.pv .fpv-b { position: absolute; inset: 0; padding: calc(60px + env(safe-area-inset-top)) 8px calc(44px + env(safe-area-inset-bottom)); }
.fpv.pv .fpv-b.has-tagbar { padding-top: calc(142px + env(safe-area-inset-top)); }
.fpv.pv .fpv-n { position: absolute; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 2; padding: 4px 11px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12.5px; font-weight: 700; pointer-events: none; }

/* detail map */
.dm-slot { height: 300px; }
.dm { position: relative; height: 100%; border-radius: 12px; overflow: hidden; background: var(--line2); }
.dm.full { position: absolute; inset: 0; z-index: 15; height: auto; border-radius: 0; }
.dm .dm-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.dm-map .msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); padding: 20px; text-align: center; }
.dm-ui { position: absolute; left: 8px; right: 8px; top: 8px; bottom: 8px; z-index: 3; pointer-events: none; display: flex; flex-direction: column; gap: 6px; }
.dm.full .dm-ui { top: calc(8px + env(safe-area-inset-top)); bottom: calc(8px + env(safe-area-inset-bottom)); }
.dm-corner { position: absolute; right: 0; top: 8px; }
.dm-bar { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.dm-bar .dm-grp:last-child { margin-left: 0; }
.dm-grp { pointer-events: auto; display: inline-flex; align-items: center; gap: 2px; padding: 3px; background: var(--card); border-radius: 14px; box-shadow: 0 1px 6px rgba(30,35,40,.18); }
.dm-grp i { width: 1px; height: 20px; margin: 0 2px; background: var(--line); }
.dm-grp button { min-width: 38px; height: 38px; padding: 0 6px; border: 0; border-radius: 10px; background: none; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 1px; font-size: 13.5px; }
.dm-grp button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); }
.dm-grp svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dm-grp svg.ch { width: 13px; height: 13px; color: var(--muted); }
.dm-pop { pointer-events: auto; align-self: flex-start; width: min(250px, 100%); max-height: 216px; overflow-y: auto; padding: 4px; background: var(--card); border-radius: 14px; box-shadow: 0 2px 12px rgba(30,35,40,.22); }
.dm.full .dm-pop { max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); }
.dm-row { width: 100%; min-height: 42px; padding: 4px 8px; border: 0; border-radius: 10px; background: none; display: flex; align-items: center; gap: 9px; text-align: left; font-size: 14px; color: var(--ink); }
.dm-row span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dm-row small { font-size: 11.5px; color: var(--bad); }
.dm-row b { color: var(--accent); }
.dm-row .dot { flex: none; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--chip); }
.sw { flex: none; position: relative; width: 36px; height: 22px; border-radius: 12px; background: var(--chip); transition: background .15s; }
.sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.sw.on { background: var(--accent); }
.sw.on::after { transform: translateX(14px); }
.dm-pin { max-width: 170px; padding: 3px 8px; border-radius: 8px; background: var(--ink); color: var(--on-accent); font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.dm-p { display: flex; flex-direction: column; gap: 3px; font-family: inherit; font-size: 13px; color: var(--ink); padding-right: 12px; }
.dm-p small { font-size: 11px; font-weight: 700; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .03em; }
.dm-p > b { font-size: 14.5px; line-height: 1.3; }
.dm-p span:not(.dm-tag):not(.dm-p-k) { color: var(--ink2); line-height: 1.35; }
.dm-p .btn { margin-top: 5px; min-height: 38px; width: 100%; }

/* current-home price tag on the detail map + cleaner popup cards */
.dm-ptag { position: absolute; top: calc(100% + 5px); left: 50%; transform: translateX(-50%); padding: 2px 8px 3px; border-radius: 8px; background: #16181D; color: #fff; font: 700 11px/1.5 "IBM Plex Sans", Arial, sans-serif; white-space: nowrap; box-shadow: 0 1px 5px rgba(0,0,0,.35); pointer-events: none; }
.dm-ptag::before { content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 5px solid #16181D; }
.dm-ptag:empty { display: none; }
.dm-me.tagonly { background: none; border-color: transparent; box-shadow: none; }
.dm-me.tagonly > span[aria-hidden], .dm-me.tagonly .dm-pin { display: none; }
.dm-me.tagonly .dm-ptag { top: 50%; transform: translate(-50%, -50%); }
.dm-me.tagonly .dm-ptag::before { display: none; }
.dm-p { gap: 6px; }
.dm-p-h { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.dm-p-h > b { font-size: 14.5px; line-height: 1.3; }
.dm-p-k { flex: none; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-ink); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.dm-p-m { color: var(--ink2); font-size: 12px; line-height: 1.4; }
.dm-p-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 1px; }
.dm-tag { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1.3; }
.dm-tag small { font-size: 10px; font-weight: 600; opacity: .75; }
.dm-tag-p { background: #D9A441; color: #16181D; }
.dm-tag-t { background: #2D6FD1; color: #fff; }
.dm-tag-n { background: var(--bg2); color: var(--ink2); border: 1px solid var(--line2); font-weight: 600; }

/* market snapshot rows (Sales tab) + green/red delta tags */
.mk-snap { display: flex; flex-direction: column; gap: 5px; }
.ms-l { color: var(--ink2); line-height: 1.3; }
.ms-l .ms-top { font-style: normal; font-size: 10px; font-weight: 700; color: var(--amber); text-transform: uppercase; letter-spacing: .04em; margin-left: 4px; }
.ms-row b { font-weight: 700; white-space: nowrap; }
.ms-n { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.ms-near { border-top: 1px dashed var(--line2); border-radius: 0 0 10px 10px; }
.dm-tag-g { background: #2F855A; color: #fff; }
.dm-tag-r { background: #C0392B; color: #fff; }


.maplibregl-popup .maplibregl-popup-content { border-radius: 12px; padding: 10px 12px; background: var(--card); color: var(--ink); }
.maplibregl-popup .maplibregl-popup-close-button { width: 28px; height: 28px; font-size: 18px; color: var(--ink2); }
.maplibregl-popup.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--card); }
.maplibregl-popup.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--card); }
.maplibregl-popup.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--card); }
.maplibregl-popup.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--card); }

/* page sections keep their full height so .view scrolls instead of clipping them */
.view > * { flex-shrink: 0; }

/* results map */
.lm-ui { position: absolute; top: 8px; right: 8px; z-index: 3; }
.mapbox.full { position: absolute; inset: 0; z-index: 15; height: auto; border: 0; border-radius: 0; }
.mapbox.full .lm-ui { top: calc(8px + env(safe-area-inset-top)); }
.dm-row .emo { flex: none; width: 22px; text-align: center; font-style: normal; font-size: 16px; }

/* renter reminders */
.tips { display: flex; flex-direction: column; gap: 10px; }
.tip { display: flex; flex-direction: column; gap: 2px; }
.tip b { font-size: 14px; }
.tip span { font-size: 13.5px; line-height: 1.45; color: var(--ink2); }
.tip-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12.5px; color: var(--muted); }
.tip-links a { min-height: 28px; display: inline-flex; align-items: center; font-weight: 600; color: var(--accent-ink); }

/* reference style: quiet surfaces, large titles, black actions */
.eyebrow { font-size: 13px; color: var(--muted); }
.kind { border-color: var(--line); }
.vt button[aria-pressed="true"] { background: var(--card); box-shadow: 0 1px 3px rgba(22,24,29,.14); }
.lang button[aria-pressed="true"] { background: var(--ink); }
.tags span { background: var(--accent-tint); color: var(--ink2); }
.tags span.g { background: var(--accent-tint); }
.pinned { border: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; }
.i { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.near .e, .menu .mi .e, .menu .acct .e { color: var(--ink2); }
.near .e .i, .menu .mi .e .i { width: 21px; height: 21px; }
.mode .e { color: var(--ink2); }
.kw-box > span { color: var(--muted); }
.sw.on { background: var(--ink); }
.cm-lock { border: 1px solid var(--line); background: var(--accent-tint); }
.mapbox { border-radius: var(--radius); }

/* selected options: amber tint with amber rim — main actions keep the dark fill */
.tile[aria-pressed="true"], .who[aria-pressed="true"], .day[aria-pressed="true"], .mode[aria-pressed="true"], .menu .langs button[aria-pressed="true"] { background: var(--amber-soft); border-color: var(--amber); color: var(--ink); box-shadow: 0 1px 2px rgba(16,18,22,.08); }
.lang button[aria-pressed="true"] { background: var(--accent-soft); color: var(--ink); }
.picked button { background: var(--amber-soft); color: var(--ink); border: 1px solid var(--amber); }
.sw.on { background: var(--amber); }
.place.on .tick { background: var(--amber); color: var(--on-amber); }
.who .e { color: var(--ink2); }
.who .e .i { width: 24px; height: 24px; }
.who[aria-pressed="true"] .e, .mode[aria-pressed="true"] .e { color: var(--ink); }
.label .i { color: var(--ink2); }
.chip .i { color: var(--muted); }
/* selected options show the amber accent on their icons too */
.chip[aria-pressed="true"] .i, .mode[aria-pressed="true"] .e, .who[aria-pressed="true"] .e { color: var(--amber-ink); }
/* Landed is not available yet: dashed, muted, clearly not selectable */
.chip[data-act="landedSoon"] { border-style: dashed; color: var(--muted); opacity: .75; }
.chip[data-act="landedSoon"] .e, .chip[data-act="landedSoon"] .e .i { color: var(--muted); }
.chip[data-act="landedSoon"] .soon { color: var(--amber-ink); }

/* Wanted Board */
.dot-new { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--fav); }
.tabs .ic .dot-new { position: absolute; top: 0; right: -4px; }
.tags span.wt { background: var(--amber-soft); color: var(--ink); }
.wp { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line2); }
.card > .wp:first-of-type, .wp-list > .wp:first-child { border-top: 0; padding-top: 2px; }
.wp-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.wp-h b { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-t { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 13.5px; color: var(--ink2); }
.wp-t .pt { padding: 3px 7px; border-radius: 6px; background: var(--ink); color: var(--on-accent); font-size: 12px; font-weight: 600; margin-right: 3px; }
.wp-n { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; }
.wp-a { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.wp-a .btn { flex: 0 0 auto; }
.link-btn { min-height: 40px; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; padding: 0 4px; }
.wp-share { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.4; }
.wp-share input { width: 20px; height: 20px; flex: none; accent-color: var(--amber); margin: 0; }
.res-bar .chips { flex: 1; min-width: 0; }
.ib { width: 100%; flex: none; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.ib-h { display: flex; justify-content: space-between; gap: 8px; }
.ib-l { font-size: 13.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-l .dot-new { margin-right: 6px; }
.msg-safe { padding: 8px 10px; border-radius: 10px; background: var(--amber-soft); font-size: 12.5px; line-height: 1.45; color: var(--ink2); }
.msgs { flex: 1 0 auto; display: flex; flex-direction: column; gap: 8px; }
.bar .text { flex: 1; min-width: 0; }
.wp-w { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }

/* named nearby places, routes, Google Maps */
.near .n { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.near .n a { font-size: 13px; color: var(--ink2); text-decoration: underline; text-decoration-color: var(--chip); text-underline-offset: 2px; overflow-wrap: anywhere; }
.near .d { flex: none; }
.gm-btn { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--chip); border-radius: 12px; background: var(--card); color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.rt { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--amber-soft); }
.rt > b { font-size: 16px; }
.rt-leg { display: flex; flex-direction: column; gap: 1px; padding-left: 10px; border-left: 2px solid var(--amber); font-size: 13.5px; }
.dm-pin.dest { background: var(--amber); color: var(--ink); }

/* compact header: brand and place on two lines, small language switch */
.top { gap: 6px; }
.brand-logo { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #101216; display: grid; place-items: center; }
.brand-logo svg { display: block; width: 18px; height: 18px; }
.brand-logo path { fill: #FFD54D; stroke: #FFD54D; stroke-width: 1.4; stroke-linejoin: round; }
.top-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 0; line-height: 1.2; }
.top-txt .brand { font-size: 16px; }
.top-txt .top-title { font-size: 12px; }
.lang { margin-left: 0; font-size: 12px; }
.lang button { min-height: 30px; min-width: 30px; padding: 0 6px; justify-content: center; gap: 0; }

/* buyer condo page */
.mk { display: flex; flex-direction: column; gap: 6px; }
.mk > div { display: grid; grid-template-columns: 38px 1fr 58px 66px; gap: 6px; align-items: center; font-size: 12.5px; }
.mk .y { color: var(--muted); }
.mk .mk-bar { height: 8px; border-radius: 4px; background: var(--line2); overflow: hidden; }
.mk .mk-bar i { display: block; height: 100%; border-radius: 4px; background: var(--amber); }
.mk b { font-weight: 600; text-align: right; }
.mk .p { color: var(--muted); text-align: right; }
.mk-tx > div { display: grid; grid-template-columns: 52px 34px 40px 1fr 48px 54px; gap: 4px; padding: 6px 0; border-bottom: 1px solid var(--line2); font-size: 12px; }
.mk-tx > div:last-child { border-bottom: 0; }
.mk-tx .head { color: var(--muted); font-weight: 600; font-size: 11.5px; padding: 3px 0; }
.card .facts { border-radius: 12px; }
.card .facts b { font-size: 14px; white-space: nowrap; overflow: visible; text-overflow: clip; }
.card .facts > div { padding: 9px 8px; }
.top-home { flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; text-align: left; }

/* listing sites keep their own colours; slightly deeper red so white text stays readable */
.links a.pg { background: #D8362A; border-color: #D8362A; color: #fff; }
.links a.n99 { background: #216BFF; border-color: #216BFF; color: #fff; }

/* hide a home */
.d-acts { flex: none; display: flex; gap: 6px; }
.hide-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--ink4); }
.hide-btn .i { width: 20px; height: 20px; }
.hide-btn.solo { border: 1px solid var(--chip); border-radius: 12px; background: var(--card); }
.hide-btn[aria-pressed="true"] { color: var(--amber); }
.hd-note { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 34px; padding: 2px 0; font-size: 13px; color: var(--muted); }
.hd-note .i { width: 16px; height: 16px; }
.toast { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toast[hidden] { display: none; }
.toast button { flex: none; border: 0; background: none; color: #fff; font-weight: 700; text-decoration: underline; min-height: 32px; padding: 0 2px; }

/* floor plan size */
.fp-item span small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }

/* neighbourhood score */
.card.ns { gap: 8px; }
.ns-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; border: 0; background: none; text-align: left; min-height: 44px; }
.ns-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ns-t b { font-size: 16px; }
.ns-t small { font-size: 12.5px; color: var(--muted); }
.ns-v { flex: none; display: flex; align-items: baseline; gap: 2px; }
.ns-v b { font-size: 26px; font-weight: 700; line-height: 1; }
.ns-v small { font-size: 12px; color: var(--muted); }
.ns-c { flex: none; color: var(--muted); font-size: 13px; }
.ns-rows { display: flex; flex-direction: column; }
.ns-row { padding: 7px 0; border-bottom: 1px solid var(--line2); }
.ns-row:last-child { border-bottom: 0; }
.ns-l { display: grid; grid-template-columns: 22px 1fr 72px 26px; align-items: center; gap: 8px; font-size: 13.5px; }
.ns-l .e { color: var(--ink2); display: flex; }
.ns-l .e .i { width: 19px; height: 19px; }
.ns-l b { text-align: right; }
.ns-l .mk-bar { display: block; height: 8px; border-radius: 4px; background: var(--line2); overflow: hidden; }
.ns-l .mk-bar i { display: block; height: 100%; border-radius: 4px; background: var(--amber); }
.ns-w { display: grid; grid-template-columns: 1fr minmax(0, 2.4fr) 26px; align-items: center; gap: 8px; padding: 4px 0 0 30px; font-size: 12.5px; color: var(--muted); }
.ns-w b { color: var(--ink); text-align: right; }
.ns-acts { display: flex; justify-content: space-between; gap: 8px; }

/* noise */
.near .n small { font-size: 13px; font-weight: 400; color: var(--ink2); }
.ns-w input { -webkit-appearance: none; appearance: none; background: none; height: 32px; }
.ns-w input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--line2); }
.ns-w input::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line2); }
.ns-w input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border: 0; border-radius: 50%; background: var(--amber); box-shadow: 0 1px 3px rgba(22,24,29,.25); }
.ns-w input::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--amber); }

/* post forms */
.sheet.post { max-height: 100%; height: 100%; border-radius: 0; padding-top: 12px; display: flex; flex-direction: column; gap: 14px; }
.sheet.post > * { flex-shrink: 0; }
.post-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.post-h h2 { margin: 0; min-width: 0; }
.post-h button { flex: none; width: 44px; height: 44px; margin-right: -8px; border: 0; background: none; font-size: 20px; color: var(--ink2); }
.post-f { position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom)); margin: 0 -16px calc(-16px - env(safe-area-inset-bottom)); padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); }
.post-f .btn { width: 100%; }
.sheet.offer-post {
  --offer-ink: #14161B; --offer-ink2: #5B616E; --offer-ink3: #9AA1AD; --offer-line: #E8EAEF;
  --offer-bg: #F2F3F6; --offer-brand: #101216; --offer-gold: #C9982F; --offer-gold-soft: #F3E6C4;
  --offer-ok: #12A06A; --offer-warn: #D9534F; --offer-brand-ink: #FFFFFF;
  gap: 0; padding: 14px 16px 0; color: var(--offer-ink); background: var(--offer-bg);
}
.offer-post .post-h { position: sticky; top: -14px; z-index: 4; margin: -2px -16px 0; padding: 2px 16px 0; background: var(--offer-bg); }
.offer-post .post-h h2 { font-size: 19px; font-weight: 800; letter-spacing: -.2px; }
.offer-post .post-h button { width: 38px; height: 38px; margin-right: -6px; border-radius: 12px; }
.offer-steps { position: sticky; top: 38px; z-index: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 -16px 0; padding: 12px 16px 10px; background: var(--offer-bg); }
.offer-step { min-width: 0; border: 0; background: none; padding: 0; text-align: left; color: var(--muted); }
.offer-step i { display: block; height: 4px; margin-bottom: 6px; border-radius: 999px; background: var(--line); }
.offer-step.current i { background: var(--offer-gold); }
.offer-step.done i { background: var(--offer-brand); }
.offer-step span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; color: var(--offer-ink3); }
.offer-step.current span { color: var(--offer-ink); font-weight: 700; }
.offer-step.done span { color: var(--offer-ink2); }
.offer-panel { display: flex; flex: 1 0 auto; flex-direction: column; gap: 12px; padding: 8px 0 14px; }
.offer-card { padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow-lift); }
.offer-card > h3 { margin: 0 0 5px; font-size: 15px; font-weight: 800; }
.offer-card > h3 > b, .offer-required, .offer-required-label b { color: var(--offer-warn); }
.offer-card > .hint { margin: 0 0 10px; }
.offer-card .hint { color: var(--offer-ink2); font-size: 12.5px; line-height: 1.45; }
.offer-card > h3 .offer-optional { margin-left: 5px; color: var(--offer-ink3); font-size: 12px; font-weight: 500; }
.offer-card .group { gap: 8px; margin: 0 0 14px; }
.offer-card .group:last-child { margin-bottom: 0; }
.offer-card .label { font-size: 13px; font-weight: 700; }
.offer-card .text { width: 100%; min-height: 48px; padding: 12px 13px; border: 1.5px solid var(--offer-line); border-radius: 12px; background: var(--card); font-size: 15px; outline: none; }
.offer-card .text:focus { border-color: var(--offer-brand); }
.offer-card .text::placeholder { color: var(--offer-ink3); }
.offer-card textarea.text { min-height: 96px; }
.offer-card .offer-owner-family { margin: 12px 0 2px; padding: 13px; border: 1px solid var(--offer-line); border-radius: 14px; background: var(--bg2); }
.offer-card .offer-owner-family .hint { margin: -3px 0 2px; }
.offer-card .offer-owner-family textarea.text { min-height: 76px; border-color: var(--line); background: var(--card); }
.offer-card .chips { gap: 8px; }
.offer-card .chip { min-height: 38px; padding: 8px 14px; border: 1px solid var(--offer-line); border-radius: 999px; background: var(--card); font-size: 13.5px; font-weight: 600; }
.offer-card .chips.fill > .chip { border-radius: 10px; }
.offer-card .chip[aria-pressed="true"] { border-color: var(--offer-brand); background: var(--offer-brand); color: var(--offer-brand-ink); }
.offer-card input[type="range"] { accent-color: var(--offer-gold); }
.offer-rent-control input[type="range"] { width: 100%; margin: 5px 0 2px; }
.offer-rent-set { min-height: 36px; padding: 5px 10px; border: 1px solid #E8D6AB; border-radius: 999px; background: #FBF7EC; color: var(--offer-ink); font: inherit; font-size: 13px; font-weight: 700; }
.offer-ask-entry { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; color: var(--offer-ink2); font-size: 12.5px; font-weight: 600; }
.offer-ask-field { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 10px; border: 1.5px solid var(--offer-line); border-radius: 12px; background: var(--card); color: var(--offer-ink); }
.offer-ask-field:focus-within { border-color: var(--offer-brand); }
.offer-ask-field i { color: var(--offer-ink3); font-size: 12px; font-style: normal; }
.offer-ask-field input { width: 88px; min-height: 40px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--offer-ink); font: inherit; font-size: 16px; font-weight: 700; }
.offer-ask-field small { color: var(--offer-ink3); font-size: 11px; white-space: nowrap; }
.offer-ask-hint { display: block; margin-top: 5px; color: var(--offer-ink3); font-size: 11.5px; }
.offer-ask-hint.invalid { color: var(--offer-warn); }
.offer-rent-est { margin-top: 5px; }
.offer-rent-est .chip { border-color: #E8D6AB; background: #FBF7EC; color: var(--offer-ink); }
.offer-post .mcal { border-color: var(--offer-line); border-radius: 14px; background: var(--card); }
.offer-post .mcal-h b { color: var(--offer-ink); font-size: 15px; font-weight: 700; }
.offer-post .mcal-h button { color: var(--offer-ink2); }
.offer-post .mcal-m { background: var(--bg2); font-size: 13px; }
.offer-post .mcal-m.now:not([aria-pressed="true"]) { color: var(--offer-ink); box-shadow: inset 0 0 0 1.5px var(--offer-gold); }
.offer-post .mcal-m.in-r { background: var(--offer-gold-soft); }
.offer-post .mcal-m[aria-pressed="true"] { border-color: var(--offer-gold); background: var(--offer-gold); color: #14161B; }
.offer-post .mcal-flex { border-color: var(--offer-line); background: var(--card); }
.offer-post .mcal-flex[aria-pressed="true"] { border-color: var(--offer-gold); background: var(--offer-gold-soft); }
.offer-post .offer-lease { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.offer-post .offer-lease .chip { min-width: 0; padding: 8px 5px; font-size: 12px; line-height: 1.35; }
.offer-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.offer-type { display: flex; align-items: flex-start; gap: 10px; min-width: 0; min-height: 84px; padding: 13px 12px; border: 1.5px solid var(--offer-line); border-radius: 14px; background: var(--card); text-align: left; }
.offer-type[aria-pressed="true"] { border-color: var(--offer-brand); background: #FBF8EF; box-shadow: inset 0 0 0 1px var(--offer-brand); }
.offer-type > .i { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--offer-ink2); }
.offer-type[aria-pressed="true"] > .i { color: var(--offer-gold); }
.offer-type > span { min-width: 0; }
.offer-type b, .offer-type small { display: block; }
.offer-type b { font-size: 14px; font-weight: 800; }
.offer-type small { margin-top: 2px; color: var(--offer-ink2); font-size: 12px; line-height: 1.4; }
.offer-post .wp-adds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.offer-post .wp-adds .addph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 0; aspect-ratio: 1; padding: 8px; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--bg2); color: var(--offer-ink2); font-size: 12px; font-weight: 600; }
.offer-post .wp-adds .addph:active { border-color: var(--offer-gold); background: var(--bg2); }
.offer-post .wp-adds .addph .i { width: 22px; height: 22px; color: var(--offer-ink2); }
.offer-post .wp-up { gap: 9px; }
.offer-post .wp-th { border-radius: 12px; background: var(--bg2); }
.offer-post .wp-th .offer-cover { right: auto; bottom: 5px; left: 5px; background: var(--offer-brand); color: var(--offer-brand-ink); font-size: 10px; font-weight: 700; }
.offer-post .picked { border: 1.5px solid var(--offer-brand); border-radius: 14px; background: #FBF8EF; }
.offer-post .picked > button { display: flex; align-items: center; gap: 7px; width: 100%; min-height: 42px; padding: 8px 10px; border: 0; background: none; color: var(--offer-ink); text-align: left; font-weight: 700; }
.offer-post .picked > button .i:last-child { margin-left: auto; color: var(--offer-ink2); }
.offer-post .sug-g-seen { margin-top: 12px; }
.offer-post .sug-g-seen .sug-gl { padding: 4px 2px 6px; color: var(--offer-ink3); font-size: 14px; }
.offer-post .sug-g-seen .sug-seen-chips { flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 1px 1px 5px; scrollbar-width: none; }
.offer-post .sug-g-seen .sug-seen-chips::-webkit-scrollbar { display: none; }
.offer-post .sug-seen-chip { flex: 0 0 auto; max-width: 70%; overflow: hidden; color: var(--ink3); text-overflow: ellipsis; white-space: nowrap; }
.offer-post .sug-seen-chip[aria-pressed="true"] { border-color: var(--offer-brand); background: var(--offer-brand); color: var(--offer-brand-ink); }
.offer-post .sug-g-seen .sug { gap: 11px; min-height: 52px; padding: 10px 2px; color: var(--offer-ink2); border-bottom-color: var(--offer-line); }
.offer-post .sug-g-seen .sug > .i { width: 20px; height: 20px; color: var(--offer-ink3); }
.offer-post .sug-seen-name { flex: 1; min-width: 0; overflow: hidden; color: var(--ink3); font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.offer-post .sug-g-seen .sug-m { max-width: 43%; overflow: hidden; color: var(--offer-ink3); font-size: 12px; text-overflow: ellipsis; }
.offer-post .sug.sug-near > .i, .offer-post .sug-manual > .i { color: var(--offer-gold); }
.offer-post .sug-manual { min-height: 48px; }
.offer-post .sug-manual b { font-size: 15px; font-weight: 600; }
.offer-plan-group { border-top-color: var(--offer-line); }
.offer-plan-group .fpg-h { min-height: 50px; }
.offer-plan-group .fpg-h b { color: var(--offer-ink); }
.offer-plan-group .fpg-h span:nth-child(2) { color: var(--offer-ink3); }
.offer-plan-group .fps.grid { max-height: 340px; overflow-y: auto; align-content: start; padding: 0 0 12px; gap: 10px; }
.offer-plan-tile { position: relative; min-width: 0; }
.offer-plan-group .fps.grid .offer-plan-tile .fp-item { width: 100%; }
.offer-plan-group .fps.plan-row { max-height: none; overflow-x: auto; overflow-y: hidden; padding: 0 0 12px; scrollbar-width: none; }
.offer-plan-group .fps.plan-row .offer-plan-tile { flex: none; width: 148px; }
.offer-plan-group .fps.plan-row .offer-plan-tile .fp-item { width: 100%; }
.offer-plan-preview { position: absolute; top: 8px; right: 8px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(20,22,27,.12); border-radius: 12px; background: var(--card); color: var(--offer-ink); box-shadow: 0 1px 5px rgba(20,22,27,.14); }
.offer-plan-preview .i { width: 19px; height: 19px; }
.wp-plan-hint { display: flex; align-items: center; gap: 7px; margin: -2px 0 10px; font-size: 12.5px; color: var(--offer-ink3); }
.wp-plan-hint .i { width: 15px; height: 15px; flex: none; color: var(--offer-brand-ink); }
.offer-plan-group .fp-item { border-color: var(--offer-line); }
.offer-plan-group .fp-item img { height: 138px; }
.offer-plan-group .fp-item span { min-height: 36px; border-top-color: var(--offer-line); color: var(--offer-ink2); font-size: 11.5px; }
.offer-count { display: flex; align-items: center; gap: 5px; margin: 9px 0 0; color: var(--offer-warn); font-size: 12px; }
.offer-count.ready { color: var(--offer-ok); }
.offer-count.optional { color: var(--offer-ink2); }
.offer-count.optional.ready { color: var(--offer-ok); }
.offer-count .i { width: 15px; height: 15px; }
.offer-required { font-size: 12px; }
.offer-preview { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow-lift); }
.offer-preview-photo { display: grid; grid-template-columns: 2fr 1fr; gap: 3px; height: 150px; background: var(--line2); }
.offer-preview-main, .offer-preview-secondary > div { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--line2); }
.offer-preview-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.offer-preview-main > span, .offer-preview-count { position: absolute; right: 6px; bottom: 6px; padding: 2px 6px; border-radius: 5px; background: rgba(16,18,22,.72); color: #fff; font-size: 10px; font-weight: 700; }
.offer-preview-photo.has-more .offer-preview-count { z-index: 1; }
.offer-preview-secondary { display: grid; grid-template-rows: 1fr 1fr; gap: 3px; min-height: 0; }
.offer-preview-count { right: 8px; bottom: 8px; font-size: 11px; }
.offer-preview-empty { display: grid; width: 100%; height: 100%; place-items: center; background: var(--good-soft); }
.offer-preview-empty .offer-default-art { display: block; width: 100%; height: 100%; object-fit: cover; }
.offer-preview-body { padding: 14px 16px 16px; }
.offer-preview-rent { color: var(--offer-ink); font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.offer-preview-rent small { margin-left: 4px; color: var(--offer-ink3); font-size: 13px; font-weight: 600; }
.offer-preview-body h3 { margin: 5px 0 2px; font-size: 15px; font-weight: 800; }
.offer-preview-body p { margin: 5px 0; color: var(--offer-ink2); font-size: 12.5px; }
.offer-preview-specs, .offer-preview-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.offer-preview-specs span { padding: 4px 9px; border-radius: 8px; background: var(--bg2); color: var(--offer-ink2); font-size: 12px; font-weight: 600; }
.offer-preview-tags { gap: 5px; margin-top: 8px; }
.offer-preview-tags span { padding: 4px 8px; border-radius: 999px; background: var(--offer-gold-soft); color: var(--offer-ink); font-size: 11px; }
.offer-preview-body .offer-preview-note { margin-top: 10px; color: var(--offer-ink2); white-space: pre-wrap; }
.offer-preview-body .offer-preview-note b { color: var(--offer-ink); }
.wp-owner-family { margin: 12px 0; padding: 11px 13px; border-left: 3px solid var(--offer-gold); border-radius: 0 10px 10px 0; background: var(--offer-gold-soft); color: var(--offer-ink2); font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.wp-owner-family b { color: var(--offer-ink); }
.offer-checklist { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.offer-check-row { display: flex; align-items: center; gap: 10px; min-height: 43px; border-bottom: 1px solid var(--offer-line); font-size: 13px; }
.offer-check-row > span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--bad-soft); color: var(--offer-warn); }
.offer-check-row > span.ok { background: var(--good-soft); color: var(--offer-ok); }
.offer-check-row > span .i { width: 12px; height: 12px; }
.offer-post .offer-check-row .offer-check-edit { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border: 1px solid var(--offer-line); border-radius: 12px; background: var(--bg2); color: var(--offer-ink2); }
.offer-post .offer-check-row .offer-check-edit:active { border-color: var(--offer-gold); background: var(--offer-gold-soft); color: var(--offer-ink); }
.offer-check-edit .i { width: 17px; height: 17px; }
.offer-check-row:last-child { border-bottom: 0; }
.offer-check-row b { flex: 1; font-weight: 600; }
.offer-foot { z-index: 2; }
.offer-post .offer-foot { margin-top: auto; }
.offer-post .post-f.offer-foot { position: sticky; bottom: calc(-1px - env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; margin: 0 -16px calc(-1px - env(safe-area-inset-bottom)); padding: 11px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--offer-line); background: var(--card); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.offer-foot-row { display: contents; }
.offer-progress { display: flex; flex: 0 0 64px; flex-direction: column; gap: 4px; margin: 0; color: var(--offer-ink3); font-size: 11px; }
.offer-progress > span { display: flex; flex-direction: column; }
.offer-progress b { color: var(--offer-ink); font-size: 14px; }
.offer-progress small { font-size: 11px; }
.offer-progress > i { height: 4px; overflow: hidden; border-radius: 999px; background: var(--line2); }
.offer-progress em { display: block; height: 100%; border-radius: inherit; background: var(--offer-gold); }
.offer-foot-actions { display: flex; flex: 1; gap: 8px; }
.offer-foot-actions .btn { flex: 1; width: auto; min-height: 50px; border-radius: 14px; background: var(--offer-brand); color: var(--offer-brand-ink); font-size: 15px; font-weight: 800; }
.offer-foot-actions .btn:disabled { background: var(--chip); color: var(--ink2); }
.offer-foot-actions .btn.ghost { flex: 0 0 auto; min-width: 72px; border: 0; background: var(--line2); color: var(--offer-ink2); }
.offer-preview-photo:not(.has-more) .offer-preview-main { grid-column: 1 / -1; }
/* "Post what you want" and "Find flatmates" share the rent-out wizard: extra pieces inside its cards */
.offer-post .chips.offer-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.offer-post .chips.offer-grid2 .chip { justify-content: center; min-width: 0; border-radius: 10px; }
.offer-post .chips.wp-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.offer-post .wp-tabs .chip { justify-content: center; min-width: 0; padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.offer-post .sug .sug-m { min-width: 0; max-width: 48%; overflow: hidden; text-overflow: ellipsis; }
.offer-card .fold { margin: 2px 0 0; border-color: var(--offer-line); border-radius: 14px; background: var(--card); }
.offer-card .fold > div { border-bottom-color: var(--offer-line); }
.offer-card .fold .head { min-height: 48px; background: var(--card); }
.offer-card .fold .head b { color: var(--offer-ink); font-size: 13.5px; }
.offer-card .fold .head .sum.on { color: var(--offer-gold); font-weight: 700; }
.offer-card .fold .body { padding-top: 4px; }
.offer-post .mt-home { border: 1.5px solid var(--offer-brand); background: #FBF8EF; }
.offer-post .mt-ic { background: var(--offer-gold-soft); color: var(--offer-gold); }
.offer-post .mt-hb b { color: var(--offer-ink); }
.offer-post .mt-pre { margin: 10px 0 0; color: var(--offer-ok); }
.offer-post .mt-match, .offer-post .mt-note { margin: 10px 0 0; }
.offer-post .mr-row { border-color: var(--offer-line); background: var(--bg2); }
.offer-post .mr-in { border: 1.5px solid var(--offer-line); background: var(--card); }
.offer-post .mr-in:focus-within { border-color: var(--offer-brand); box-shadow: none; }
.offer-post .mr-add { border-color: var(--chip); background: var(--card); color: var(--offer-ink2); }
.offer-post .mt-est { margin: 8px 0 0; }
.offer-post .wp-share { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--bg2); color: var(--offer-ink2); }
.offer-post .wp-share input { accent-color: var(--offer-gold); }
.offer-check-row > span.opt { background: var(--line2); color: var(--offer-ink3); }
.offer-check-row b small { margin-left: 5px; color: var(--offer-ink3); font-size: 11.5px; font-weight: 500; }
.wiz-preview-h { display: flex; align-items: center; gap: 10px; padding: 16px 16px 0; }
.wiz-preview-h small { color: var(--offer-ink3); font-size: 12px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
.wiz-preview-ic { display: grid; flex: none; width: 42px; height: 42px; place-items: center; border-radius: 14px; background: var(--offer-gold-soft); color: var(--offer-gold); }
.wiz-preview-ic .i { width: 21px; height: 21px; }
.wiz-preview-h + .offer-preview-body { padding-top: 10px; }
.wiz-prof-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.wiz-prof-h h3 { margin: 0; font-size: 15px; font-weight: 800; }
.wiz-prof-h h3 .offer-optional { margin-left: 5px; color: var(--offer-ink3); font-size: 12px; font-weight: 500; }
.wiz-switch { position: relative; display: inline-flex; flex: none; align-items: center; gap: 8px; min-height: 36px; color: var(--offer-ink2); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.wiz-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.wiz-switch i { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--chip); transition: background .15s; }
.wiz-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 2px rgba(16,18,22,.25); transition: transform .15s; }
.wiz-switch input:checked + i { background: var(--offer-gold); }
.wiz-switch input:checked + i::after { transform: translateX(16px); }
.wiz-switch input:focus-visible + i { outline: 2px solid var(--offer-brand); outline-offset: 2px; }
.wiz-switch input:checked ~ span { color: var(--offer-ink); }
.wiz-prof > .hint { margin: 0 0 12px; }
.wiz-prof textarea.text { min-height: 76px; }
.offer-preview-body .wiz-pf { margin-top: 10px; }
.offer-card .chip[aria-pressed="true"] .i { color: var(--offer-brand-ink); }
.sugs { display: flex; flex-direction: column; }
.sug { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 2px; border: 0; border-bottom: 1px solid var(--line2); background: none; text-align: left; font-size: 14px; color: var(--ink); }
.sug .i { width: 18px; height: 18px; flex: none; color: var(--ink2); }
.sug .sug-m { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.fp-item[aria-pressed="true"] { border-color: var(--amber); box-shadow: 0 0 0 2px var(--amber); }
.wp-adds { display: flex; flex-wrap: wrap; gap: 8px; }
.wp-adds .addph { flex: 1 1 140px; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; border: 1.5px dashed var(--chip); border-radius: 12px; font-size: 13.5px; font-weight: 600; position: relative; overflow: hidden; width: auto; height: auto; }
.wp-adds .addph .i { width: 18px; height: 18px; }
.wp-adds input { position: absolute; inset: 0; opacity: 0; }
.wp-up { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.wp-th { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--line2); }
.wp-th img, .wp-th video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wp-th span { position: absolute; left: 4px; bottom: 4px; padding: 1px 5px; border-radius: 5px; background: rgba(22,24,29,.72); color: #fff; font-size: 11px; }
.wp-th button { position: absolute; top: 2px; right: 2px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(22,24,29,.62); color: #fff; font-size: 13px; }
.draw { position: absolute; inset: 0; z-index: 31; display: flex; flex-direction: column; background: var(--card); }
.draw-map { flex: 1; min-height: 0; }
.draw-f { flex: none; display: flex; gap: 8px; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.draw-f .btn { flex: 1; }

/* posts */
.wp-v { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--ink2); }
.wp-v .i { width: 14px; height: 14px; }
.wp-m { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wp-m button { flex: none; width: 112px; height: 112px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--line2); }
.wp-m > .offer-default-art { flex: none; width: 112px; height: 112px; overflow: hidden; border-radius: 10px; }
.wp-m img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wp-m video { flex: none; height: 112px; max-width: 200px; border-radius: 10px; background: #000; }
.wp-f span { display: inline-flex; align-items: center; gap: 3px; }
.wp-f .i { width: 13px; height: 13px; }
.wp-open { display: inline-flex; align-items: center; justify-content: center; gap: 6px; align-self: flex-start; text-decoration: none; }
.wp-open .i { width: 16px; height: 16px; }
.wp-safe { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--amber-soft); font-size: 13px; line-height: 1.45; }
.wp-safe .btn { align-self: flex-start; }
.wp-scam { margin: 10px 0 0; font-size: 12px; font-weight: 600; line-height: 1.45; color: var(--amber-ink); }

/* viewing workflow */
.v-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.v-acts.vw-acts .btn { flex: 1 1 auto; min-width: 0; min-height: 52px; justify-content: center; padding: 0 12px; }
.v-acts .btn { display: inline-flex; align-items: center; gap: 6px; flex: 0 1 auto; }
.v-acts .btn .i { width: 16px; height: 16px; }
.btn.ghost[aria-pressed="true"] { background: var(--amber-soft); border-color: var(--amber); }
.fi { gap: 6px; }
.fi-2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; }
.fi-n { display: flex; align-items: center; gap: 8px; }
.fi-n .text { flex: 1; min-width: 0; }
.chips.rate .chip { flex: 1; justify-content: center; min-width: 0; }
.ed-list { display: flex; flex-direction: column; }
.ed-row { display: flex; align-items: center; gap: 4px; min-height: 46px; border-bottom: 1px solid var(--line2); }
.ed-row > span { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.ed-row small { font-size: 12px; color: var(--muted); }
.ed-row > button:not(.link-btn) { flex: none; width: 40px; height: 40px; border: 0; background: none; color: var(--ink2); font-size: 15px; }
.ed-row > button:disabled { opacity: .3; }

/* structured notes */
.kvs { display: flex; flex-direction: column; }
.kv { display: flex; justify-content: space-between; gap: 12px; min-height: 40px; align-items: center; padding: 4px 0; border: 0; border-bottom: 1px solid var(--line2); background: none; font-size: 13.5px; text-align: left; color: var(--ink2); }
.kv b { color: var(--ink); text-align: right; overflow-wrap: anywhere; }

/* compare */
.cmp { overflow-x: auto; margin: 0 -16px; padding: 0 16px; -webkit-overflow-scrolling: touch; flex-shrink: 0; }
.cmp table { border-collapse: separate; border-spacing: 0; font-size: 13px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.cmp th, .cmp td { padding: 8px 10px; border-bottom: 1px solid var(--line2); vertical-align: top; text-align: left; min-width: 112px; max-width: 150px; overflow-wrap: anywhere; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp tbody th { position: sticky; left: 0; z-index: 1; background: var(--card); font-weight: 600; color: var(--ink2); min-width: 96px; max-width: 96px; font-size: 12.5px; border-right: 1px solid var(--line2); }
.cmp thead th { position: relative; padding-right: 30px; }
.cmp thead th:first-child { position: sticky; left: 0; z-index: 2; background: var(--card); min-width: 96px; max-width: 96px; border-right: 1px solid var(--line2); }
.cmp-n { border: 0; background: none; padding: 0; text-align: left; font-weight: 700; font-size: 13px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--chip); text-underline-offset: 2px; }
.cmp-x { position: absolute; top: 2px; right: 0; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); font-size: 13px; }
.cmp td button { display: block; width: 100%; min-height: 28px; padding: 0; border: 0; background: none; text-align: left; color: inherit; font: inherit; }
.cmp td.best { background: var(--amber-soft); font-weight: 700; }
.cmp-add { color: var(--muted); }

/* full-width version of the add-a-tag box, for longer hints */
.tagadd.wide { display: flex; width: 100%; min-height: 44px; padding: 0 6px 0 14px; gap: 8px; }
.tagadd.wide input { flex: 1; min-width: 0; width: auto; font-size: 16px; }
.tagadd.wide button { flex: none; width: 32px; height: 32px; }

/* market insights */
.art-c { display: flex; gap: 12px; width: 100%; padding: 14px; flex-shrink: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-align: left; }
.art-i { flex: none; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--amber-soft); color: var(--ink); }
.art-i .i { width: 20px; height: 20px; }
.art-t { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.art-t b { font-size: 15px; line-height: 1.3; }
.art-t span { font-size: 13px; line-height: 1.45; color: var(--ink2); }
.art-lead { font-size: 16px; line-height: 1.5; font-weight: 500; }
.art-m { display: flex; align-items: center; gap: 8px; min-height: 44px; flex-shrink: 0; padding: 6px 2px; border: 0; border-bottom: 1px solid var(--line2); background: none; font-size: 14px; text-align: left; color: var(--ink); }
.art-m .i { width: 18px; height: 18px; flex: none; color: var(--ink2); }
.ac-seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; margin: 0 -16px; padding: 1px 16px; }
.ac-seg::-webkit-scrollbar { display: none; }
.ac-seg .chip { flex: none; }
.fig { display: flex; flex-direction: column; gap: 6px; }
.ac-read { min-height: 18px; font-size: 13px; font-weight: 600; color: var(--ink); }
.ac-leg { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--ink2); }
.ac-leg span { display: inline-flex; align-items: center; gap: 5px; }
.ac-leg i { width: 12px; height: 3px; border-radius: 2px; }
.ac-ln { display: block; width: 100%; height: auto; touch-action: pan-y; }
.ac-g { stroke: var(--line2); stroke-width: 1; }
.ac-t { font-size: 10.5px; fill: var(--muted); }
.ac-cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.ac-cols { display: grid; gap: 2px; align-items: end; touch-action: pan-y; }
.ac-c { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ac-h { height: 132px; display: flex; align-items: flex-end; }
.ac-h i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--amber); }
.ac-x { height: 14px; font-size: 10px; color: var(--muted); text-align: center; white-space: nowrap; }
.ac-bars { display: flex; flex-direction: column; }
.ac-r { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 7px 0; border: 0; border-bottom: 1px solid var(--line2); background: none; text-align: left; color: var(--ink); font: inherit; }
.ac-r:last-child { border-bottom: 0; }
.ac-l { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; }
.ac-l > span { min-width: 0; overflow-wrap: anywhere; }
.ac-l small { display: block; font-size: 12px; color: var(--muted); }
.ac-l b { flex: none; font-size: 13.5px; }
.ac-b { display: block; height: 8px; border-radius: 4px; background: var(--line2); overflow: hidden; }
.ac-b i { display: block; height: 100%; border-radius: 4px; background: var(--amber); }
.ac-b i.dk { background: var(--ink); }
.ac-tb { overflow-x: auto; }
.ac-tb table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ac-tb th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ac-tb td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line2); vertical-align: top; }

/* six bottom tabs */
.art-home { align-self: stretch; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--card); justify-content: space-between; }
.art-home span { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.35; }

/* leave and return times */
.fi-t { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fi-t .text { min-width: 0; width: 100%; }

/* results: filters */
.q-save { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.q-save.on { color: var(--ink); background: var(--amber-soft); border-color: var(--amber); }
.qbar { flex: none; display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 1px 16px; scrollbar-width: none; }
.qbar::-webkit-scrollbar { display: none; }
.qbar button { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 38px; max-width: 200px; padding: 0 11px; border: 1px solid var(--chip); border-radius: 10px; background: var(--card); color: var(--ink); font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qbar button span { color: var(--muted); font-size: 11px; }
.qbar button.on { background: var(--amber-soft); border-color: var(--amber); font-weight: 600; }
.qbar .q-f { font-weight: 600; }
.qbar .q-f .i { width: 17px; height: 17px; }
.qbar .q-f i { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 10px; background: var(--ink); color: var(--on-accent); font-size: 11px; font-style: normal; font-weight: 700; line-height: 18px; text-align: center; }
.sheet.qf { display: flex; flex-direction: column; gap: 14px; }
.sheet.qf > * { flex-shrink: 0; }
.sheet.qf h2 { margin: 0; }
/* Quick-filter options stay small and text-only inside the pop-over. */
.sheet.qf .chips { gap: 6px; }
.sheet.qf .chips .chip { min-height: 32px; padding: 5px 14px; font-size: 12.5px; gap: 2px; }
.sheet.qf .chips .chip .i { display: none; }
.qf-f { display: flex; gap: 8px; }
.qf-f .btn { flex: 1; }
.qf-f .btn.ghost { flex: 0 0 auto; padding: 0 16px; }
.post-f.qf-f { display: flex; }
.post-f.qf-f .btn { width: auto; }

/* results: cards */
.kv2 b small { font-size: 11px; font-weight: 500; color: var(--muted); }
.mrt-row { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 13px; color: var(--ink2); }
.mrt-row i { flex: none; padding: 1px 5px; border-radius: 4px; font-size: 11px; font-style: normal; font-weight: 700; line-height: 16px; }
.mrt-row i.lrt { background: var(--line2); color: var(--ink); }
.mrt-row > span { min-width: 0; margin-left: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrt-row .i { flex: none; width: 14px; height: 14px; color: var(--muted); }
.cm-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 13px; color: var(--ink2); }
.cm-row .i { width: 14px; height: 14px; color: var(--muted); }
.cm-row b { color: var(--ink); }

/* search on results */
#rsBody { display: contents; }
.rs-box { flex: none; position: relative; }
.rs-box button { flex: none; width: 36px; height: 36px; border: 0; background: none; color: var(--muted); font-size: 14px; }
.rs-box input { font-size: 16px; }
.rs-box input::-webkit-search-cancel-button { display: none; }

/* travel times on the condo page */

/* selected stations, as a count */
.st-n { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; font-size: 14px; font-weight: 600; }
.sheet .line { flex-shrink: 0; }

/* district and region maps */
.dm-pick { display: block; width: 100%; height: auto; flex-shrink: 0; border-radius: 12px; background: var(--thumb); touch-action: pan-y; }
.dm-pick path { fill: var(--card); stroke: var(--ink4); stroke-width: 1; vector-effect: non-scaling-stroke; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.dm-pick path[aria-pressed="true"] { fill: var(--amber); stroke: #8A6420; stroke-width: 1.5; }
.dm-pick path:focus-visible { stroke: var(--ink); stroke-width: 2; }
.dm-pick text { fill: var(--ink); font-weight: 600; pointer-events: none; paint-order: stroke; stroke: rgba(255,255,255,.75); stroke-width: 2px; vector-effect: non-scaling-stroke; }

/* MRT map */
.mrt-pick .bg { fill: var(--card); stroke: var(--line); stroke-width: .6; pointer-events: none; }
.mrt-pick .ln { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.mrt-pick .dot { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
.mrt-pick .dot.on { stroke-width: 1.5; }
.mrt-pick .hit { fill: transparent; stroke: none; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.mrt-pick .hit:focus-visible { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* pan and zoom on picker maps */
.pick-wrap { position: relative; flex-shrink: 0; }
.dm-pick { user-select: none; -webkit-user-select: none; cursor: grab; }
.pick-z { position: absolute; right: 8px; bottom: 8px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; box-shadow: 0 1px 4px rgba(22,24,29,.14); }
.pick-z button { width: 38px; height: 38px; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--ink); }
.pick-z button + button { border-top: 1px solid var(--line2); }
.dm-pick .snm { font-weight: 500; }

/* results card */
.home .nm-t { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--ink); color: var(--on-accent); font-size: 11px; font-weight: 600; line-height: 16px; vertical-align: 2px; white-space: nowrap; }
.mrt-row > span.wk { flex: none; margin-left: 0; }

/* this condo on the detail map */
.dm-me { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 3px solid #fff; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(217,164,65,.45), 0 1px 6px rgba(22,24,29,.35); font-size: 20px; line-height: 1; cursor: pointer; }
.dm-me .dm-pin { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: max-content; }

/* floor plan zoom */
.fpv-b { position: relative; overflow: hidden; touch-action: none; cursor: grab; }
.fpv-b img { user-select: none; -webkit-user-select: none; -webkit-user-drag: none; will-change: transform; }

/* edit link beside a place name */
.link-btn.wk-ed { min-height: 0; padding: 6px; margin: -6px 0; color: var(--accent-ink); }

/* note footer: the buttons drop below the hint when there's no room */
.nt-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 10px; }
.nt-foot .hint { flex: 1 1 150px; min-width: 0; }
.nt-acts { display: flex; flex: none; gap: 6px; }
.nt-acts .btn { flex: none; white-space: nowrap; }

/* your own labels can be deleted in place */
.lb-own { position: relative; display: inline-flex; }
.lb-own .chip { padding-right: 34px; }
.lb-x { position: absolute; top: 50%; right: 3px; width: 32px; height: 32px; transform: translateY(-50%); border: 0; background: none; color: var(--muted); font-size: 13px; }

/* label editor, opened by tapping a label twice */
.lb-own .chip, [data-act="lbTog"] { touch-action: manipulation; }
.lb-ed { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }

/* Add a detail: tiles in sections, unlike the label chips */
.fp-g { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fp-t { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 10px; background: var(--bg); color: var(--ink); font-size: 14px; font-weight: 600; text-align: left; }
.fp-t > span { flex: none; color: var(--muted); font-weight: 700; }
.fp-new { width: 100%; flex: none; border: 1.5px dashed var(--chip); background: none; }

/* labels: square tags, coloured by whether they count for or against a home */
.lb-h { font-size: 13px; font-weight: 700; }
.lb-h.bad { color: var(--bad); }
.lb-h.good { color: var(--good); }
.lb-h.mine { color: var(--ink2); }
.lb-c { border-radius: 8px; }
.lb-c.bad { color: var(--bad); }
.lb-c.good { color: var(--good); }
.lb-c.bad[aria-pressed="true"] { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.lb-c.good[aria-pressed="true"] { background: var(--good-soft); border-color: var(--good); color: var(--good); }

/* MRT and commute are scannable as two short rows, not one run-on line */
.mc-row { display: flex; align-items: center; gap: 5px; min-width: 0; }
.home .mc-row { flex-wrap: wrap; row-gap: 3px; column-gap: 6px 14px; }
.home .mc-row .cm-row { flex: 1 1 auto; min-width: 0; }
.mc-row .mrt-row { max-width: 100%; }

/* score: the working under each part */
.ns-l.ed { grid-template-columns: 22px 1fr; }
.ns-l.ed .n { display: block; font-size: 13.5px; }
.ns-l.ed .d { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.ns-row.ed { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.ns-row.ed .e { display: flex; flex: 0 0 auto; }
.ns-row.ed .e .i { width: 19px; height: 19px; }
.ns-row.ed .n { flex: 1 1 auto; font-size: 13.5px; line-height: 1.25; min-width: 0; }
.ns-row.ed .n .d { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.ns-row.ed input[type=range] { flex: 0 1 110px; min-width: 70px; height: 28px; -webkit-appearance: none; appearance: none; background: none; }
.ns-row.ed input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--line2); }
.ns-row.ed input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line2); }
.ns-row.ed input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border: 0; border-radius: 50%; background: var(--amber); }
.ns-row.ed input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--amber); }
.ns-row.ed .wv { flex: 0 0 auto; width: 28px; text-align: right; font-size: 13px; color: var(--ink); }
.ns-how { margin: 3px 0 0 30px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }

/* note actions: a third button and the public state need room to wrap */
.rec .acts { flex-wrap: wrap; align-items: center; }
.rec .acts button .i { width: 14px; height: 14px; }

/* viewing: sections, then items, both fold */
.vs { gap: 0; padding-top: 0; padding-bottom: 0; }
.vs-h { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; }
.vs-h b { flex: 1; min-width: 0; font-size: 16px; }
.vs-m { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--muted); }
.vs-m.ok { color: var(--good); font-weight: 700; }
.vs-b { display: flex; flex-direction: column; gap: 12px; padding-bottom: 14px; border-top: 1px solid var(--line2); padding-top: 12px; }
.vs-b > .card { padding: 0; border: 0; background: none; box-shadow: none; }
.vs-b > .card > h2:first-child { display: none; }
.vs-b > .card > .row:first-child { justify-content: flex-end; }
.vs-b > .card > .row:first-child h2 { display: none; }
.vs-ed { align-self: flex-start; }
.vf { margin: 0 -2px; border-bottom: 1px solid var(--line2); }
.vs-b > .vf + :not(.vf) { margin-top: 2px; }
.vf-h { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 46px; padding: 2px; border: 0; background: none; color: var(--ink); font-size: 14px; text-align: left; }
.vf-n { flex: none; max-width: 62%; font-weight: 600; }
.vf-n .i { color: var(--ink2); }
.vf-v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; font-size: 13.5px; color: var(--ink2); }
.vf-b { padding: 2px 2px 12px; }
.vf-b .fi > .label, .vf-b .fi > .row > .label { display: none; }
.vf-b .fi > .row { justify-content: flex-end; }

/* template bar at the top of a viewing */
.vt-bar { display: flex; align-items: center; gap: 6px; }
.vt-cur { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-size: 14px; font-weight: 600; text-align: left; }
.vt-cur > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-i { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); }
.vt-i .i { width: 19px; height: 19px; }
.vt-i.off { color: var(--faint); }
.vt-p { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.vf-note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.vf-note a { color: var(--accent-ink); font-weight: 600; white-space: nowrap; }
.home .nm-t.up { background: var(--amber-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--amber); }
.yr-up { color: var(--ink); font-weight: 700; background: var(--amber-soft); padding: 0 4px; border-radius: 4px; }
.card.ns .group { gap: 6px; }
.ns-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ns-facts div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px; border-radius: 10px; background: var(--amber-soft); }
.ns-facts span { font-size: 11.5px; color: var(--ink2); line-height: 1.25; }
.ns-facts b { font-size: 15px; }
.vs-tags { display: flex; flex-direction: column; gap: 8px; padding-bottom: 2px; }
.wu { display: flex; flex-direction: column; }
.wu-s { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line2); }
.wu-s:first-child { padding-top: 2px; }
.wu-s h3 { margin: 0; font-size: 15px; font-weight: 700; }
.wu > .btn { margin-top: 14px; flex: none; }
.wu .fi > .label { display: none; }
.wu textarea.text { min-height: 96px; }
.wu-note { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.wu-note .photos { flex: 1; min-width: 0; }
.ln { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line2); }
.ln h3 { margin: 0; font-size: 15px; font-weight: 700; }
.ln-ok { color: var(--good); }
.ln-no { color: var(--bad); }
.fp-own { position: relative; display: flex; min-width: 0; }
.fp-own .fp-t { flex: 1; min-width: 0; padding-right: 34px; }
.fp-used { color: var(--muted); }
.fp-x { position: absolute; top: 2px; right: 2px; min-width: 32px; height: 32px; padding: 0 6px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 13px; font-weight: 600; }
.fp-x.sure { background: var(--bad); color: var(--on-accent); }
.vt-acts { display: flex; flex-direction: column; gap: 8px; }
.vt-acts .btn { flex: none; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-done { flex: none; width: 100%; }
.fpc { gap: 0; }
.fpc > .row { padding-bottom: 6px; }
.fpg { border-top: 1px solid var(--line2); }
.fpg-h { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; }
.fpg-h b { flex: none; font-size: 14.5px; }
.fpg-h span:nth-child(2) { flex: 1; min-width: 0; text-align: right; font-size: 12.5px; color: var(--muted); }
.fps.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow: visible; padding-bottom: 12px; }
.fps.grid .fp-item { width: auto; min-width: 0; }
.fpg-more { margin: 0 0 12px; }
.ns-r { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 0; border: 0; background: none; color: var(--ink); font-size: 13.5px; text-align: left; }
.ns-r .e { color: var(--ink2); display: flex; flex: none; }
.ns-r .e .i { width: 19px; height: 19px; }
.ns-r .n { min-width: 0; font-weight: 600; flex: 1; }
.ns-r .nv { font-size: 12.5px; color: var(--muted); white-space: nowrap; flex: none; }
.ns-r b { text-align: right; font-size: 15px; min-width: 22px; flex: none; }
.ns-r .mk-bar { flex: none; width: 56px; height: 6px; border-radius: 3px; background: var(--line2); overflow: hidden; }
.ns-r .mk-bar i { display: block; height: 100%; border-radius: 3px; background: var(--amber); }
/* One colour for every bar and score; a part that is low across the market carries a tag instead. */
.ns-tag { flex: none; font-size: 11px; line-height: 1.6; padding: 0 6px; border-radius: 999px; background: rgba(214,69,61,.12); color: var(--s-d); font-weight: 600; white-space: nowrap; }
.nb-h { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 14.5px; font-weight: 700; }
.tx-size { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; justify-content: flex-start; padding-bottom: 2px; }
.tx-size .chip { flex: none; }
.tx-range { display: flex; align-items: center; gap: 6px; margin: 8px 0; font-size: 13px; color: var(--ink2); }
.tx-range input.text { width: 78px; padding: 6px 8px; font-size: 16px; }
.nb-h .i { width: 18px; height: 18px; color: var(--ink2); }
button.nb-h-tog { display: flex; align-items: center; gap: 6px; width: 100%; margin: 10px 0 0; padding: 6px 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 700; text-align: left; cursor: pointer; }
button.nb-h-tog .ns-c { margin-left: auto; font-size: 13px; color: var(--muted); }
.nbc h2 + .nb-h, .nbc > button.nb-h-tog:first-child { margin-top: 0; }
.nb-l { align-self: flex-start; padding: 1px 8px; border-radius: 6px; background: var(--line2); color: var(--ink2); font-size: 12px; font-weight: 600; line-height: 19px; }
.nbc .near .n { gap: 3px; }
.nbc-h { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; }
.nbc-h b { flex: none; font-size: 16px; font-weight: 700; }
.nbc-h .m { flex: 1; min-width: 0; text-align: right; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nbc-b { padding-top: 2px; }
.nbc:not(.open) .nbc-b { display: none; }
.nbc-b .nb-h:first-child { margin-top: 6px; }
.nbc .near .d b { display: inline-flex; align-items: center; gap: 4px; }
.nbc .near .d b .i { width: 14px; height: 14px; }
.emo { font-size: 17px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.d-hero { gap: 12px; }
.d-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.d-about { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.d-about .ai { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-size: 12px; color: var(--muted); white-space: nowrap; }
.d-about .ai .i { width: 14px; height: 14px; flex: none; color: var(--accent-ink); }
.d-about .ai b { color: var(--ink); font-weight: 600; }
.d-about .up-badge { flex: none; }
.d-p { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.d-p .k { font-size: 12.5px; color: var(--muted); }
.d-p .k .nm-t { margin-left: 6px; }
.d-p .v { font-size: 24px; font-weight: 700; line-height: 1.2; }
.d-p .s { font-size: 12.5px; color: var(--ink2); }
.d-sc { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 62px; height: 62px; border-radius: 50%; border: 3px solid var(--amber); background: var(--amber-soft); }
.d-sc b { font-size: 20px; font-weight: 700; line-height: 1.1; }
.d-sc span { font-size: 10px; color: var(--ink2); }
.d-tabs { position: sticky; top: -14px; z-index: 6; box-shadow: 0 0 0 6px var(--bg); }
.d-tabs button { min-width: 0; padding: 0 2px; font-size: 13.5px; }
.bar a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.hc-m { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 0; }
.hc-p { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hc-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; max-width: 46%; }
.hc-ls { font-size: 11px; color: var(--muted); text-align: right; line-height: 1.3; }
.hc-p span { font-size: 11px; color: var(--muted); }
.hc-p b { font-size: 20px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.hc-p small { font-size: 11.5px; color: var(--ink2); font-weight: 500; margin-left: 4px; }
/* score moved from a competing circle to a secondary pill — price leads the row */
.hc-sc { flex: none; display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px 0 7px; border-radius: 999px; border: 1px solid var(--amber); background: var(--amber-soft); }
.hc-sc b { font-size: 14px; font-weight: 700; line-height: 1; }
.hc-sc span { font-size: 10px; color: var(--ink2); font-weight: 600; line-height: 1; }
.hc-body { display: flex; flex-direction: column; gap: 6px; }
.home .mc-row { padding-top: 8px; border-top: 1px solid var(--line2); }
.vw-hero { gap: 8px; }
.vw-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.vw-t { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.vw-t h1 { margin: 0; }
.vw-t .link-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0; font-size: 13.5px; color: var(--ink2); }
.vw-t .link-btn .i { width: 16px; height: 16px; }
.vw-pct { flex: none; font-size: 24px; font-weight: 700; line-height: 1.2; }
.vw-bar { display: block; height: 8px; border-radius: 4px; background: var(--line2); overflow: hidden; }
.vw-bar i { display: block; height: 100%; border-radius: 4px; background: var(--amber); }
.vw-next { flex: none; width: 100%; min-height: 44px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-ph { margin: 8px 0 -4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.vs-h .emo { flex: none; width: 22px; text-align: center; }
.vs-bar { display: block; height: 4px; margin: -8px 0 10px; border-radius: 2px; background: var(--line2); overflow: hidden; }
.vs-bar i { display: block; height: 100%; background: var(--amber); }
.vs.ok { background: var(--good-soft); }
.d-sc.none { border-style: dashed; border-color: var(--chip); background: var(--bg); gap: 1px; text-align: center; width: 72px; height: 72px; }
.hc-sc.none { border-style: dashed; border-color: var(--chip); background: var(--bg); }
.d-sc.none span { color: var(--ink2); font-size: 10px; line-height: 1.15; padding: 0 3px; }
.hc-sc.none span { color: var(--muted); font-size: 10.5px; font-weight: 600; }
.d-sc.none .emo { font-size: 18px; }
.hc-sc.none .emo { font-size: 13px; }
.d-p .k .nm-t { display: inline-block; padding: 1px 6px; border-radius: 6px; font-size: 11px; font-weight: 600; line-height: 16px; }
.d-p .k .nm-t.up { background: var(--amber-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--amber); }
.chv { flex: none; width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.chv.up { transform: rotate(180deg); }
.qbar button .chv { width: 13px; height: 13px; }

/* photos & listings (fid 68) */
.ph-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.ph-item { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--line2); }
.ph-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-item b { position: absolute; left: 5px; bottom: 5px; padding: 1px 5px; border-radius: 5px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.ph-ph { grid-column: 1 / -1; position: relative; border-radius: 10px; overflow: hidden; background: var(--line2); aspect-ratio: 3 / 1; display: flex; align-items: center; justify-content: center; }
.ph-ph img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ph-ph span { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); padding: 2px 7px; border-radius: 6px; background: var(--card); color: var(--ink3); font-size: 11px; white-space: nowrap; }
.ph-h { display: flex; align-items: center; gap: 6px; margin: 14px 0 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.ph-h span { font-size: 11px; font-weight: 600; color: var(--faint); }
.ph-list { display: flex; flex-direction: column; gap: 6px; }
.ph-r { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13px; }
.ph-b { flex: none; min-width: 58px; font-weight: 600; color: var(--ink2); }
.ph-p { flex: none; color: var(--good); font-size: 13.5px; }
.ph-m { flex: 1 1 auto; min-width: 0; text-align: right; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-go { flex: none; font-style: normal; font-size: 12px; color: var(--faint); }
.ph-rw { display: flex; gap: 6px; align-items: stretch; }
.ph-rw .ph-r { flex: 1 1 auto; min-width: 0; }
.ph-fp { flex: none; width: 64px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; cursor: pointer; }
.ph-fp img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ph-facts > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line2); font-size: 13px; }
.ph-facts > div:last-child { border-bottom: 0; }
.ph-facts span { flex: none; color: var(--muted); }
.ph-facts b { font-weight: 600; text-align: right; }
/* b186 ui sweep */
.place .p-rm { min-width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.near .n a { display: inline-block; padding: 4px 0; margin: -4px 0; }
.bar .btn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* detail page: strict prototype style (property_listing_overview.html) — slate palette, exact radii/padding/shadows */
.view.dtl { background: var(--bg); gap: 16px; }
.view.dtl .photo-hero { margin-bottom: 0; }
.view.dtl .card.d-hero { padding: 16px; }
.view.dtl .card { border-radius: 16px; padding: 20px; border-color: var(--line); box-shadow: var(--shadow-card); }
.view.dtl .card h2 { font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.view.dtl .d-tabs { background: var(--accent-tint); border-radius: 16px; padding: 4px; gap: 4px; box-shadow: 0 0 0 6px var(--bg); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); }
.view.dtl .d-tabs button { border-radius: 12px; font-weight: 500; font-size: 12px; letter-spacing: -.3px; color: var(--ink2); min-height: 36px; padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.view.dtl .d-tabs button[aria-pressed="true"] { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(16,18,22,.06); }
.view.dtl .tags span { background: var(--line2); border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; font-size: 13px; font-weight: 500; color: var(--ink2); }
.view.dtl .card .rows > div { background: var(--line2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.view.dtl .card .rows > div:last-child { margin-bottom: 0; }
.view.dtl .card .btn.small, .view.dtl .card .btn.ghost.small { border-radius: 12px; }
.view.dtl > .facts { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 8px; border-radius: 16px; border-color: var(--line); background: var(--card); box-shadow: var(--shadow-card); }
.view.dtl > .facts.n4 { grid-template-columns: repeat(4, 1fr); }
.view.dtl > .facts > div { border-left: 0; padding: 0; text-align: center; }
.view.dtl > .facts span { font-size: 11px; color: var(--faint); }
.view.dtl > .facts b { font-size: 14px; }
.view.dtl .mt-card { padding: 14px 16px; gap: 8px; background: linear-gradient(135deg, var(--amber-soft), var(--card)); border: 1px solid var(--amber-line); border-radius: 16px; }
.view.dtl .mt-card .mt-row { display: flex; align-items: center; gap: 10px; }
.view.dtl .mt-card .mt-row h2 { flex: 1; min-width: 0; margin: 0; font-size: 15px; font-weight: 600; }
.view.dtl .mt-card .mt-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--amber-soft); border: 1px solid var(--amber-line); color: var(--amber-ink); }
.view.dtl .mt-card .mt-ic .i { width: 16px; height: 16px; }
.view.dtl .mt-card .mt-btn { flex: none; min-height: 36px; padding: 0 12px; font-size: 12px; }
.view.dtl .mt-card .mt-see { align-self: flex-start; margin-top: -2px; }
.view.dtl .utable .uh { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--accent-tint); padding: 4px 12px 8px; }
.view.dtl .utable .ur { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 12px; padding: 10px 12px; border-bottom: 1px solid var(--accent-tint); }
.view.dtl .utable .ur:hover { background: var(--line2); }
.view.dtl .utable .ur.up-row { cursor: default; }
.view.dtl .utable .ur.up-row:hover { background: none; }
.view.dtl .up-t { display: flex; align-items: center; }
.view.dtl .up-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--chip); margin-right: 8px; flex: none; }
.view.dtl .up-badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 500; background: var(--accent-tint); color: var(--muted); border: 1px solid var(--line); }
.view.dtl .fpc .fps.grid .fp-item { border: 1px solid var(--line); border-radius: 12px; background: var(--line2); overflow: hidden; }
.view.dtl .fpc .fps.grid .fp-item img { height: auto; aspect-ratio: 4 / 3; object-fit: contain; padding: 10px; background: #fff; border-bottom: 1px solid var(--line2); }
.view.dtl .fpc .fps.grid .fp-item span { padding: 10px; font-size: 12px; font-weight: 600; border-top: 0; }
.view.dtl .fpc .fps.grid .fp-item span small { font-size: 11px; font-weight: 500; color: var(--muted); }
.view.dtl .fpc .fpg-h b { font-size: 14px; font-weight: 600; color: var(--ink); }
.view.dtl .fpc .fpg-h span:nth-child(2) { font-size: 12px; color: var(--muted); }
.view.dtl .ph-card .ph-grid { gap: 10px; margin-top: 14px; }
.view.dtl .ph-card .ph-item { border-radius: 12px; border: 1px solid var(--line); background: var(--accent-tint); }
.view.dtl .ph-card .ph-item b { left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px; background: rgba(16,18,22,.75); font-size: 10px; font-weight: 700; }
.view.dtl .ph-card .ph-h { font-size: 15px; font-weight: 600; color: var(--ink); margin: 20px 0 12px; }
.view.dtl .ph-facts > div { padding: 8px 0; border-bottom: 1px solid var(--accent-tint); font-size: 14px; }
.view.dtl .ph-facts > div:last-child { border-bottom: 0; }
.view.dtl .ph-facts span { color: var(--muted); font-weight: 500; }
.view.dtl .ph-facts b { font-weight: 600; color: var(--ink); }
.view.dtl .ph-pill { flex: none; display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--good-soft); color: var(--good); border: 1px solid rgba(47,107,63,.28); }

/* overview: commute, about, facilities, listings and viewing cards */
.view.dtl .wk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.view.dtl .wk-head h2 { margin: 0; color: var(--ink); font-weight: 600; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wk-badge { flex: none; display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--accent-tint); border: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 500; }
.wk-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.wk-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--line2); border: 1px solid var(--line); flex-wrap: wrap; }
.wk-l { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 2px; }
.wk-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.wk-main > b { font-size: 14px; font-weight: 600; color: var(--ink); }
.wk-chev { flex: none; margin-left: auto; display: inline-flex; color: var(--faint); }
.wk-chev .chv { width: 14px; height: 14px; }
.wk-ed { min-height: 0; padding: 2px; margin-left: 2px; }
.wk-ed .i { width: 14px; height: 14px; }
.wk-sub { flex-basis: 100%; font-size: 11px; color: var(--muted); line-height: 1.35; }
.wk-sub .i { width: 12px; height: 12px; color: var(--faint); vertical-align: -1px; margin: 0 3px 0 1px; }
.wk-det { flex-basis: 100%; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); line-height: 1.4; }
.wk-det.wk-chips { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.wk-legc { font-size: 11.5px; padding: 4px 9px; }
.wk-legc .i { width: 13px; height: 13px; color: var(--ink2); }
.wk-time { flex: none; font-size: 12px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.wk-side { flex: none; display: flex; align-items: flex-start; gap: 4px; padding-top: 1px; }
.wk-rm { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 4px; border: 0; border-radius: 8px; background: none; color: var(--faint); font: inherit; cursor: pointer; }
.wk-rm:active { transform: scale(.97); }
.wk-rm.sure { color: var(--bad); font-size: 11px; font-weight: 700; padding: 0 6px; }
.wk-rm .i { width: 14px; height: 14px; }
.wk-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--line2); border: 1px solid var(--line); }
.wk-total span { font-size: 14px; font-weight: 600; color: var(--ink2); }
.wk-total b { font-size: 14px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.wk-add { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 14px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 1px 2px rgba(16,18,22,.05); }
.wk-add:active { transform: scale(.97); }
.wk-add-ic { display: inline-flex; color: var(--ink2); }
.wk-add-ic .i { width: 16px; height: 16px; }
.about-grid { display: flex; gap: 8px; }
.about { flex: 1 1 0; min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--line2); border: 1px solid var(--line2); }
.about span { display: block; font-size: 11px; font-weight: 500; color: var(--faint); }
.about b { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.about-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.about-head h2 { margin: 0; }
.about-head .up-badge { flex: none; }
.fac-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.fac-head h2 { margin: 0; }
.fac-list { display: flex; flex-wrap: wrap; gap: 8px; }
.fac { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 12px; background: var(--line2); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink2); }
.fac-ic { display: inline-flex; flex: none; color: var(--muted); }
.fac-ic .i { width: 16px; height: 16px; }
.fac-ic.sky { color: #0284C7; } .fac-ic.indigo { color: #6366F1; } .fac-ic.orange { color: #F97316; } .fac-ic.violet { color: #8B5CF6; } .fac-ic.emerald { color: #10B981; } .fac-ic.teal { color: #14B8A6; } .fac-ic.green { color: #16A34A; }
.vw-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.vw-head h2 { margin: 0; min-width: 0; }
.vw-head .up-badge { margin-left: auto; white-space: nowrap; }
.vw-head .info-btn { flex: none; }
.vw-sched { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--good-soft); border: 1px solid rgba(47,107,63,.28); }
.vw-sched b { font-size: 13px; font-weight: 700; color: #065F46; }
.vw-sched span { font-size: 12px; font-weight: 600; color: var(--good); }
.vw-notes { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; }
.ls-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ls-head h2 { margin: 0; }
.ls-types { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--accent-tint); border: 1px solid var(--line); }
.ls-type { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; border-radius: 10px; padding: 5px 10px; font: inherit; font-size: 12px; font-weight: 600; color: var(--ink2); cursor: pointer; }
.ls-type[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(16,18,22,.08); }
.ls-type span { color: var(--faint); font-weight: 500; }
.ls-beds { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 12px; scrollbar-width: none; }
.ls-beds::-webkit-scrollbar { display: none; }
.ls-bed { flex: none; border: 1px solid var(--line); background: var(--accent-tint); color: var(--ink2); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.ls-bed[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-accent); }
.ls-bed span { opacity: .62; font-weight: 500; }
.ls-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; scrollbar-width: none; }
.ls-row::-webkit-scrollbar { display: none; }
.ls-item { position: relative; flex: 0 0 176px; width: 176px; display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; color: inherit; font: inherit; text-align: left; text-decoration: none; scroll-snap-align: start; cursor: pointer; }
.ls-thumb { position: relative; display: block; height: 110px; background: var(--line2); border-bottom: 1px solid var(--accent-tint); overflow: hidden; }
button.ls-thumb { border: 0; padding: 0; width: 100%; font: inherit; text-align: left; cursor: pointer; }
button.ls-thumb:not(.plan) { border-bottom: 1px solid var(--accent-tint); }
.ls-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ls-thumb.plan { background: var(--thumb); }
.ls-thumb.plan img { object-fit: contain; padding: 8px; }
.ls-thumb em { position: absolute; left: 8px; top: 8px; padding: 2px 7px; border-radius: 8px; background: rgba(255,255,255,.95); border: 1px solid var(--line); color: var(--ink2); font-style: normal; font-size: 10px; font-weight: 700; }
.ls-info { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
a.ls-info { color: inherit; text-decoration: none; }
.ls-info b { font-size: 15px; font-weight: 700; color: var(--good); font-variant-numeric: tabular-nums; }
.ls-info span { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--accent-tint); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ls-go { position: absolute; right: 10px; bottom: 10px; font-style: normal; color: var(--faint); }
.ls-main { flex: 1; display: flex; flex-direction: column; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ls-info .ls-posted { margin-top: 2px; font-style: normal; font-size: 11px; font-weight: 600; color: var(--good); }
.ls-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.ls-ftgl { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--accent-tint); color: var(--ink2); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.ls-ftgl.on { background: var(--ink); border-color: var(--ink); color: var(--on-accent); }
.ls-ftgl .i { width: 13px; height: 13px; }
.ls-sorts { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.ls-sorts::-webkit-scrollbar { display: none; }
.ls-sort { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--ink2); border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ls-sort[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-accent); }
.ls-fpanel { border: 1px solid var(--line); border-radius: 12px; background: var(--line2); padding: 10px 12px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.ls-frow { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink2); }
.ls-frow > span { flex: none; min-width: 72px; }
.ls-frng { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--ink2); font-variant-numeric: tabular-nums; }
.ls-fpanel .dual { margin: 0 -6px; }
.ls-frow small { display: block; font-weight: 400; color: var(--faint); font-size: 11px; }
.ls-sheet .ls-shead { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ls-sheet .ls-shead h2 { margin: 0 0 2px; }
.ls-sheet .ls-sprice { display: block; font-size: 20px; font-weight: 800; color: var(--good); font-variant-numeric: tabular-nums; }
.ls-sheet .ls-smeta { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.ls-sheet .ls-sacts { margin-top: 14px; flex-wrap: wrap; }

/* detail page top bar: back left, share + favourite right; no bottom tabs */
.top.dtl .brand-logo, .top.dtl .brand, .top.dtl .lang, .top.dtl .top-utils, .top.dtl .burger { display: none; }
.top.dtl .top-home { margin-left: 0; }
.top.dtl .dtl-ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: 0; }
.top.dtl .dtl-ic svg { width: 20px; height: 20px; }
.top.dtl .dtl-ic.fav.on { color: var(--fav); }
.top.dtl .dtl-ic.fav.on svg { fill: currentColor; }
@media (max-width: 360px) {
  .facts > div, .card .facts > div { padding: 9px 5px; }
  .facts b, .card .facts b { font-size: 13px; }
  .d-tabs button { font-size: 12.5px; padding: 0 3px; flex: 1 1 auto; }
  .view.dtl .d-tabs button { font-size: 12px; padding: 0 1px; }
  .bar { gap: 8px; }
  .bar .btn { font-size: 15px; padding: 0 10px; }
}
/* the secondary action takes only the room it needs, so the main one never wraps or cuts off */
.bar > .btn.ghost { flex: 0 0 auto; }
button.ph-item { width: 100%; padding: 0; border: 0; cursor: zoom-in; }
/* swipe between detail tabs */
@keyframes swL { from { opacity: .35; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes swR { from { opacity: .35; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.sw-l { animation: swL .22s ease-out; } .sw-r { animation: swR .22s ease-out; }
@media (prefers-reduced-motion: reduce) { .sw-l, .sw-r { animation: none; } }
@keyframes ovIn { from { opacity: 0; } }
@keyframes shIn { from { opacity: .4; transform: translateY(28px); } }
@keyframes menuIn { from { opacity: 0; transform: translateX(24px); } }
@keyframes ppIn { from { opacity: 0; transform: translateY(6px) scale(.97); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .overlay, .sheet, .menu, .toast { animation: none; transition: none; } }
/* exit animations: renderLayer adds .is-out, then clears #layer ~190ms later */
@keyframes ovOut { to { opacity: 0; } }
@keyframes shOut { to { opacity: 0; transform: translateY(100%); } }
@keyframes menuOut { to { opacity: 0; transform: translateX(100%); } }
@keyframes fpvOut { to { opacity: 0; } }
@keyframes ppOut { to { opacity: 0; transform: translateY(6px) scale(.97); } }
.overlay.is-out { animation: ovOut .16s ease-in forwards; }
.sheet.is-out { animation: shOut .18s cubic-bezier(.4,0,.6,1) forwards; }
.menu.is-out { animation: menuOut .16s ease-in forwards; }
.fpv.is-out { animation: fpvOut .18s ease-in forwards; }
.sheet.pop.is-out { animation: ppOut .14s ease-in forwards; }
/* small floating panels fade+rise in like popovers */
.sugg, .kw-list, .cm-menu, .sd-find .sugs, .hf-wrap .hf-panel, .hf-item .hf-panel { animation: ppIn .16s ease-out; }
/* optimistic message bubble while its POST is in flight */
.bubble.pend { opacity: .55; pointer-events: none; }
/* list <-> map switch: the freshly mounted mapbox fades in */
.view.mapv .mapbox, .view.bd-mapv .mapbox { animation: ppIn .2s ease-out; }
@media (prefers-reduced-motion: reduce) { .overlay.is-out, .sheet.is-out, .menu.is-out, .fpv.is-out, .sheet.pop.is-out, .sugg, .kw-list, .cm-menu, .sd-find .sugs, .hf-wrap .hf-panel, .hf-item .hf-panel, .view.mapv .mapbox, .view.bd-mapv .mapbox { animation: none; } }
/* b192 UI sweep: heart icon fills when saved; small labels no smaller than 11px */
button.fav .i, [data-act="fav"] .i { width: 22px; height: 22px; }
button.fav.on .i path, [data-act="fav"][aria-pressed="true"] .i path { fill: currentColor; }
.chip .soon, .est, .facts span, .vdate small { font-size: 11px; }
.d-sc span { font-size: 11px; }
.hc-sc span { font-size: 10.5px; letter-spacing: -.1px; }
.ph-item b { font-size: 11px; }
.ix { width: 1em; height: 1em; stroke-width: 2; vertical-align: -.12em; }
.tx-range input.text { font-size: 16px; width: 76px; }
/* b195: blocks stacked inside a fold (My profile and others) get the same breathing room as on a full page */
.fold .body > * + * { margin-top: 12px; }
.fold .body > .group + .group, .fold .body > .group + .count, .fold .body > .count + .group { margin-top: 14px; }
.fold .body > .row + .chips, .fold .body > * + .hint { margin-top: 6px; }
.fold .body > .dashed { display: block; width: 100%; }
/* b197: place pills are buttons that open a small editor under them */
.place .meta .pp { padding: 6px 12px; border-radius: 8px; background: var(--line2); border: 1.5px solid transparent; font: inherit; font-size: 12.5px; color: inherit; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; cursor: pointer; }
.place .meta .pp em { font-style: normal; }
.place .meta .pp.max { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.place .meta .pp[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.place .pq { border-top: 1px solid var(--line2); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.unit-btn { display: inline-flex; align-items: center; gap: 4px; } .unit-btn .i { width: 15px; height: 15px; color: var(--muted); }
.mrt-pick .pie { pointer-events: none; } .mrt-pick .pie-o { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mrt-pick .pie path { stroke: none; cursor: default; }
/* b202: follow-my-location button, styled like the other map buttons */
.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group { border-radius: 12px; box-shadow: 0 1px 6px rgba(30,35,40,.18); overflow: hidden; }
.maplibregl-ctrl-group .maplibregl-ctrl-geolocate { width: 40px; height: 40px; }
/* b203: the viewing page title opens the condo */
.vw-t h1 .vw-name { all: unset; cursor: pointer; display: inline; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.vw-t h1 .vw-name .i { width: .8em; height: .8em; margin-left: 4px; vertical-align: -.06em; color: var(--muted); }
.vw-t h1 .vw-name:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.vw-t h1 .vw-name .nw { white-space: nowrap; }
/* b207 wanted board redesign */
.wp-c { padding: 14px; }
.wp-c .wp { padding: 0; border-top: 0; }
.wp-sec { display: flex; align-items: baseline; gap: 8px; margin: 6px 2px -4px; }
.wp-sec h2 { margin: 0; font-size: 16px; }
.wp-sec span { font-size: 13px; font-weight: 700; color: var(--muted); }
.wp2 { gap: 10px; }
.wp2-h { display: flex; align-items: center; gap: 10px; }
.wp2-h .av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--amber-soft); color: var(--accent-ink); font-weight: 700; font-size: 15px; }
.wp2.off .wp2-h .av { background: var(--good-soft); color: var(--good); }
.wp2-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wp2-who b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp2-who .hint { font-size: 12px; }
.wp2-k { flex: none; padding: 4px 9px; border-radius: 999px; background: var(--line2); font-size: 12px; font-weight: 600; color: var(--ink2); }
.wp2-m { display: flex; flex-direction: column; gap: 1px; }
.wp2-m span { font-size: 12px; color: var(--muted); }
.wp2-m b { font-size: 21px; font-weight: 700; color: var(--accent-ink); letter-spacing: -.2px; }
.wp2-m b small { font-size: 13px; font-weight: 600; color: var(--ink2); margin-left: 2px; }
.wp2-w { display: flex; align-items: flex-start; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.wp2-w .i { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--muted); }
.wp2-f { display: flex; flex-wrap: wrap; gap: 6px; }
.wp2-f span { padding: 4px 9px; border-radius: 8px; background: var(--line2); font-size: 12.5px; color: var(--ink2); }
.wp2-pf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink2); }
.wp2-pf span:not(.lb) { padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); }
.wp2-pf .lb .i { width: 16px; height: 16px; color: var(--muted); }
.wp2 .wp-a { padding-top: 10px; border-top: 1px solid var(--line2); }
.wp-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 16px; }
.wp-empty > .i { width: 30px; height: 30px; color: var(--muted); }
.wp-empty b { font-size: 15px; }
.rn { display: flex; flex-direction: column; gap: 12px; }
.rn-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.rn-h h2 { margin: 0 0 2px; font-size: 16px; }
.rn-h .hint { font-size: 12px; }
.rn-tag { flex: none; padding: 3px 8px; border-radius: 999px; background: var(--amber-soft); color: var(--accent-ink); font-size: 11px; font-weight: 700; }
.rn-b { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; margin: 0 -14px; padding: 0 14px; }
.rn-b .chip { flex: none; }
.rn-big { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--amber-soft); }
.rn-big span { grid-column: 1 / -1; font-size: 12px; color: var(--ink2); }
.rn-big b { font-size: 24px; font-weight: 700; color: var(--accent-ink); letter-spacing: -.3px; }
.rn-big b small { font-size: 13px; font-weight: 600; color: var(--ink2); margin-left: 2px; }
.rn-big em { font-style: normal; font-size: 12px; color: var(--muted); }
.rn-list { display: flex; flex-direction: column; }
.rn-r { display: grid; grid-template-columns: minmax(0, 1fr) 54px auto 30px; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 6px 0; border: 0; border-top: 1px solid var(--line2); background: none; font: inherit; color: inherit; text-align: left; }
button.rn-r { cursor: pointer; }
.rn-d { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: 13.5px; }
.rn-d b { flex: none; font-size: 13px; }
.rn-d span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink2); }
.rn-d em { flex: none; font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--amber-soft); color: var(--accent-ink); }
.rn-bar { height: 6px; border-radius: 3px; background: var(--line2); overflow: hidden; }
.rn-bar i { display: block; height: 100%; border-radius: 3px; background: var(--amber); }
.rn-p { font-size: 14px; font-weight: 700; text-align: right; }
.rn-n { font-size: 11.5px; color: var(--muted); text-align: right; }
.rn-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin-top: -6px; }
.rn .hint { margin: 0; }

.ab-section { background: var(--card); border: 1px solid var(--line2); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.ab-section h2 { font-size: 15px; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.ab-section p { font-size: 14px; line-height: 1.6; color: var(--ink2); margin: 0; }
.ab-section p + p { margin-top: 8px; }
.ab-section .me-list { border: 0; background: none; border-radius: 0; margin-top: 6px; }
.ab-section .me-r { padding-left: 0; padding-right: 0; }
/* Delete your data page */
.del-ok { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--good-soft); color: var(--good); font-size: 14px; font-weight: 600; }
.del-ok .i { width: 18px; height: 18px; flex: none; }
.ab-section .del-btn { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 12px; text-decoration: none; }
.btn.del-btn { background: #B3261E; color: #fff; }
.btn.del-btn.ghost { background: var(--card); color: var(--ink); }
.ab-section .del-btn + .hint { margin-top: 10px; }
.btn.del-btn.armed { background: var(--bad-soft); color: var(--bad); box-shadow: inset 0 0 0 1.5px var(--bad); }
.ab-section .del-as { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--line2); font-size: 14px; color: var(--ink); }
.ab-section .del-as .i { width: 16px; height: 16px; flex: none; color: var(--ink2); }
.ab-section h3 { margin: 16px 0 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.del-steps { margin: 0; padding-left: 20px; color: var(--ink2); font-size: 14px; line-height: 1.6; }
.del-steps li + li { margin-top: 6px; }
.ab-section .del-inline { display: inline-flex; align-items: center; min-height: 34px; padding: 0; color: var(--accent-ink); font-size: 13.5px; }
.del-links { margin: 14px 0 0; text-align: center; }

/* Chat thread: the supplied voice-chat prototype, with live data and recording states. */
:root {
  --chat-bg: #F4F4F6; --chat-card: #FFFFFF; --chat-sent: #19191B; --chat-ink: #262626;
  --chat-meta: #A3A3A3; --chat-wave: #D4D4D4; --chat-wave-played: #404040;
  --chat-icon: #171717; --chat-tool: #525252; --chat-line: rgba(0,0,0,.05);
  --chat-vline: #F5F5F5; --chat-day: rgba(229,229,229,.6); --chat-hover: rgba(0,0,0,.05);
  --aic-a: #2563EB; --aic-a-soft: #E8F0FE; --aic-on: #FFFFFF; --aic-b: #6D4FD6; --aic-c: #0F8A8A; --aic-live: #10B981; --aic-mark: #D6E4FF;
  --aic-grad: linear-gradient(135deg, #60A5FA, #2563EB 55%, #1D4ED8);
}
:root[data-theme="dark"] {
  --chat-bg: #101216; --chat-card: #171A20; --chat-ink: #E9EBEF; --chat-meta: #9AA1AC;
  --chat-wave: #4A5260; --chat-wave-played: #C4C9D2; --chat-icon: #E9EBEF;
  --chat-tool: #C4C9D2; --chat-line: #2B303A;
  --chat-vline: #2B303A; --chat-day: rgba(43,48,58,.6); --chat-hover: rgba(255,255,255,.08); --aic-a: #6EA8FF; --aic-a-soft: #1B2A44; --aic-on: #0B1220; --aic-b: #A994F5; --aic-c: #4CC9C9; --aic-live: #34D399; --aic-mark: #233657;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --chat-bg: #101216; --chat-card: #171A20; --chat-ink: #E9EBEF; --chat-meta: #9AA1AC;
    --chat-wave: #4A5260; --chat-wave-played: #C4C9D2; --chat-icon: #E9EBEF;
    --chat-tool: #C4C9D2; --chat-line: #2B303A;
    --chat-vline: #2B303A; --chat-day: rgba(43,48,58,.6); --chat-hover: rgba(255,255,255,.08); --aic-a: #6EA8FF; --aic-a-soft: #1B2A44; --aic-on: #0B1220; --aic-b: #A994F5; --aic-c: #4CC9C9; --aic-live: #34D399; --aic-mark: #233657;
  }
}
.chat-open, .chat-open button, .chat-open textarea { font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif; }
.chat-open .top { display: none; }
.view.thread { gap: 0; padding: 0 16px 16px; background: var(--chat-bg); scroll-padding-top: 66px; }
.view.thread .msg-safe { max-width: 350px; margin: 8px auto 0; padding: 4px 10px; background: transparent; color: var(--chat-meta); font-size: 11px; line-height: 1.45; text-align: center; }
.msg-pins { flex: none; margin: 0 auto 8px; max-width: 350px; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.msg-pins:empty { display: none; }
.msg-pins-h { display: flex; align-items: center; gap: 6px; padding: 7px 10px 4px; font-size: 12px; font-weight: 600; color: var(--ink2); }
.msg-pins-h .i { width: 13px; height: 13px; color: var(--amber); }
.msg-pins-h em { margin-left: auto; font-style: normal; font-weight: 400; color: var(--muted); }
.msg-pins-l { display: flex; gap: 6px; overflow-x: auto; padding: 2px 8px 8px; scrollbar-width: none; }
.msg-pins-l::-webkit-scrollbar { display: none; }
.msg-pin-i { flex: none; max-width: 230px; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px; background: var(--amber-soft); color: var(--ink); font-size: 12px; line-height: 1.3; text-align: left; }
.msg-pin-i .mpi-t b { color: var(--amber-ink); }
.msg-pin-i .i { width: 12px; height: 12px; flex: none; color: var(--amber); }
.msg-pin-i .mpi-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-pin-i .mpi-t b { font-weight: 600; }
.msg-row.pin { position: relative; }
.msg-row.pin::before { content: ''; position: absolute; left: -7px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--amber); }
.msg-row.me.pin::before { left: auto; right: -7px; }
.msg-row.jump .bubble, .msg-row.jump .msg-card { animation: msgJumpA 1.1s ease-out; }
@keyframes msgJumpA { 0% { box-shadow: 0 0 0 3px var(--amber); } 100% { box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1); } }
.view.thread .msgs { flex: 1 0 auto; gap: 16px; min-height: 100px; padding: 16px 0; }
.msg-day { align-self: center; margin: 8px 0; padding: 4px 12px; border-radius: 999px; background: var(--chat-day); color: var(--chat-meta); font-size: 11px; font-weight: 500; line-height: 1.45; letter-spacing: .025em; text-transform: uppercase; }
.msg-row { display: flex; gap: 8px; align-items: flex-end; margin: 0; max-width: 85%; }
.msg-row.voice { gap: 10px; }
.msg-row.me { justify-content: flex-end; max-width: 100%; margin-left: auto; }
.msg-av { margin-bottom: 4px; padding: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); border: none; font-weight: 700; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.msg-row.voice .msg-av { width: 32px; height: 32px; box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1); }
.msg-row.me .msg-av { display: none; }
.bubble { min-width: 0; max-width: 100%; padding: 10px 16px; border-radius: 16px 16px 16px 4px; background: var(--chat-card); border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1); color: var(--chat-ink); font-size: 14px; line-height: 1.375; overflow-wrap: anywhere; white-space: pre-wrap; position: relative; }
.msg-row.me .bubble { max-width: 85%; background: var(--chat-sent); border-color: var(--chat-sent); border-radius: 16px 16px 4px 16px; color: #FFFFFF; }
.bubble small { display: block; margin-top: 4px; font-size: 10px; line-height: 1.2; text-align: right; opacity: .65; }
.bubble.msg-recalled { background: transparent; border: 1px dashed var(--chip); box-shadow: none; color: var(--muted); font-size: 12.5px; font-style: italic; }
@media (max-width: 360px) {
  .view.thread { padding-left: 12px; padding-right: 12px; }
  .view.thread .th-stick { margin-left: -12px; margin-right: -12px; }
  .msg-row { max-width: 92%; }
  .msg-row.me .bubble { max-width: 92%; }
}
/* b233 search Draw tab: one map, shape or circle */

/* b234: hand-drawn posts show the drawn area on the card and open a detail sheet with a real map */
.wp-area { all: unset; box-sizing: border-box; display: block; width: 100%; border-radius: 12px; overflow: hidden; cursor: pointer; }
.wp-area:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wp-area-cv { position: relative; display: block; height: 104px; background-color: var(--line2); background-image: linear-gradient(rgba(0,0,0,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.05) 1px, transparent 1px); background-size: 22px 22px; }
.wp-area-cv svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
.wp-area-cv polygon { fill: rgba(217,164,65,.32); stroke: #b9832a; stroke-width: 2; vector-effect: non-scaling-stroke; }
.wp-area-tag { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 11.5px; font-weight: 700; box-shadow: 0 1px 4px rgba(30,35,40,.14); }
.wp-area-tag .i { width: 13px; height: 13px; color: #b9832a; }
.wp-area-hint { display: flex; align-items: center; justify-content: flex-end; gap: 3px; padding: 5px 2px 0; font-size: 12px; font-weight: 600; color: var(--ink2); }
.wp-area-hint .i { width: 14px; height: 14px; color: var(--muted); }
.wp-d { max-height: 90%; }
.wp-d-t { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.wp-d-t .i { width: 17px; height: 17px; color: var(--muted); }
.wp-pg-acts { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.wp-pg-acts .btn { min-height: 36px; }

.wp-home { display: flex; gap: 12px; align-items: center; width: 100%; margin: 0 0 12px; padding: 10px; text-align: left; background: var(--card); border: 1px solid var(--line2); border-radius: 14px; color: var(--ink); cursor: pointer; }
.wp-home:active { background: var(--bg2); }
.wp-home-ph { flex: 0 0 62px; width: 62px; height: 62px; border-radius: 10px; overflow: hidden; background: var(--bg2); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.wp-home-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wp-home-ph .i { width: 26px; height: 26px; }
.wp-home-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wp-home-b > b { font-size: 14.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-home-b .hint { font-size: 11.5px; }
.wp-home-p { display: flex; align-items: baseline; gap: 6px; }
.wp-home-p b { font-size: 15px; color: var(--accent); }
.wp-home-p small { font-size: 10.5px; color: var(--muted); }
.wp-home-f, .wp-home-fac { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.wp-home-f i, .wp-home-fac i { font-style: normal; font-size: 11px; color: var(--muted); }
.wp-home-fac i { background: var(--bg2); border-radius: 999px; padding: 2px 8px; color: var(--ink2); }
.wp-home .mrt-row { margin-top: 1px; }
.wp-home > .i, .wp-home > svg { flex: 0 0 auto; color: var(--muted); }
.wp-d-map { position: relative; height: 190px; border-radius: 12px; overflow: hidden; background: var(--line2); border: 1px solid var(--line2); }
/* MapLibre sets position:relative on its container, so size it instead of using inset. */
.wpd-map { width: 100%; height: 100%; }
.wp-d-tag { position: absolute; left: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 11.5px; font-weight: 700; box-shadow: 0 1px 4px rgba(30,35,40,.14); pointer-events: none; }
.wp-d-tag .i { width: 13px; height: 13px; color: #b9832a; }
/* ---- post detail page (prototype layout) ---- */
.pd-gal { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--line2); }
.pd-gal-s { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.pd-gal-s::-webkit-scrollbar { display: none; }
.pd-gal-i { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: center; position: relative; }
.pd-gal-i img, .pd-gal-i video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-gal-n { position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 3px 9px; border-radius: 999px; background: rgba(15,17,21,.62); color: #fff; font-size: 11.5px; font-weight: 600; backdrop-filter: blur(6px); pointer-events: none; }
.pd-gal-tag { position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 11.5px; font-weight: 700; box-shadow: 0 1px 4px rgba(30,35,40,.14); pointer-events: none; }
.pd-gal-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--good, #10b981); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good, #10b981) 22%, transparent); }
.pd-author { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pd-author .av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--amber-soft); color: var(--accent-ink); font-weight: 700; font-size: 15px; }
.pd-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pd-who b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-kind { flex: none; font-size: 11px; font-weight: 700; color: var(--accent-ink); background: var(--accent-tint); border-radius: 999px; padding: 3px 8px; }
.pd-price { display: flex; align-items: baseline; gap: 6px; }
.pd-price .lb { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pd-price b { font-size: 24px; font-weight: 800; letter-spacing: -.5px; color: var(--ink); }
.pd-price small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.pd-loc { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.pd-loc > .i { width: 17px; height: 17px; color: var(--amber); flex: none; }
.pd-loc-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-loc-go { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; color: var(--accent-ink); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.pd-loc-go .i { width: 13px; height: 13px; }
.pd-specs { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.pd-spec { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 9px; background: var(--line2); color: var(--ink2); font-size: 12px; font-weight: 600; }
.pd-spec .i { width: 14px; height: 14px; color: var(--muted); }
.pd-sec { display: flex; flex-direction: column; gap: 8px; }
.pd-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pd-sec-h h2 { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.pd-sec-h .hint { font-size: 11.5px; }
.pd-lb { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.pd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pd-th { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line2); padding: 0; text-align: left; cursor: pointer; font: inherit; color: var(--ink2); }
.pd-th > img, .pd-th > video { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--card); }
.pd-th > span { display: block; padding: 6px 8px; font-size: 11.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-room { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--amber-soft); border: 1px solid var(--line); }
.pd-room-ic { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--amber); color: #fff; }
.pd-room-ic .i { width: 17px; height: 17px; }
.pd-room-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pd-room-b b { font-size: 13.5px; }
.pd-room-p { font-size: 14px; }
.pd-room-p small { font-size: 11px; color: var(--muted); font-weight: 600; margin-left: 1px; }
.pd-amen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pd-am { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 10px 6px; border-radius: 11px; background: var(--line2); border: 1px solid var(--line); font-size: 11.5px; font-weight: 600; color: var(--ink); text-align: center; line-height: 1.25; }
.pd-am .fac-ic { color: var(--muted); }
.pd-am .fac-ic .i { width: 20px; height: 20px; }
.pd-about { display: flex; align-items: center; gap: 12px; }
.pd-about .av { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--amber-soft); color: var(--accent-ink); font-weight: 700; font-size: 18px; }
.pd-about-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pd-about-b b { font-size: 14px; }
.pd-role { align-self: flex-start; font-size: 10.5px; font-weight: 700; color: var(--muted); background: var(--line2); border-radius: 999px; padding: 2px 8px; }
.pd-about-tags { margin-top: 2px; }
.pd-bar { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pd-bar-p { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pd-bar-p .lb { font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.pd-bar-p b { font-size: 17px; font-weight: 800; letter-spacing: -.3px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-bar-p small { display: none; }
.pd-bar-a { display: flex; align-items: center; gap: 8px; flex: none; }
.pd-act { flex: none; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--chip); border-radius: 10px; background: var(--card); color: var(--ink); -webkit-tap-highlight-color: transparent; }
.pd-act .i { width: 19px; height: 19px; }
.pd-act-main { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.in-d { border-top: 0; padding: 0; }
.in-d .wp-area { pointer-events: none; }

/* ===== List card media: every card gets the same slot, real photo or the shared placeholder ===== */
.home-media { position:relative; width:100%; aspect-ratio:8/3; overflow:hidden; flex:none; background:var(--line2); }
.home-media img { width:100%; height:100%; object-fit:cover; display:block; }
.media-acts { position:absolute; top:8px; right:8px; z-index:2; display:flex; gap:6px; }
.mact { width:34px; height:34px; border-radius:50%; border:0; background:rgba(255,255,255,.92); display:grid; place-items:center; color:var(--muted); box-shadow:0 1px 3px rgba(0,0,0,.18); }
.mact .i { width:18px; height:18px; }
.mact.fav.on { color: var(--fav); }
.hc-body { padding:10px 14px; }

/* ===== Detail page photo hero ===== */
.photo-hero { position:relative; height:240px; margin:-16px -16px 12px; overflow:hidden; display:flex; align-items:flex-end; background:linear-gradient(160deg,#3d5233 0%,#26331f 100%); }
.photo-hero > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.photo-hero-scrim { position:absolute; inset:0; background:linear-gradient(to bottom, transparent 35%, rgba(0,0,0,.35) 65%, rgba(0,0,0,.75) 100%); }
.photo-hero-t { position:relative; z-index:1; padding:16px; width:100%; color:#fff; }
.photo-hero-t h1 { font-size:23px; font-weight:700; line-height:1.2; margin:3px 0; color:#fff; }
.photo-hero-t .eyebrow { font-size:11px; font-weight:600; color:rgba(255,255,255,.85); }
.photo-hero-t .small { font-size:13px; color:rgba(255,255,255,.85); }


.set-hd { display: flex; flex-direction: column; gap: 8px; }
.set-hd-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
.set-hd-n { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.set-hd-n b { font-size: 14px; font-weight: 600; }
.set-hd-n small { color: var(--muted); font-size: 12px; }

/* List card avatar: small round photo beside the name; the fav/hide buttons sit top-right, so the head leaves room */
.hc-head { display:flex; align-items:center; gap:10px; padding-right:76px; min-height:48px; }
.hc-hd { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.hc-av { flex:none; width:48px; height:48px; border-radius:50%; overflow:hidden; background:var(--line2); box-shadow:0 0 0 1px var(--line); }
.hc-av img { width:100%; height:100%; object-fit:cover; display:block; }
/* Avatar card: the name wraps (no clamp, so the type tag after it is never cut off) instead of truncating to a few letters */
.hc-head .hc-title { display:block; line-height:1.3; }
.hc-head .hc-title b { display:inline; white-space:normal; overflow:visible; overflow-wrap:anywhere; }
/* b265 message reactions: tappable chips, yours highlighted */
.reacts { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.msg-react { display: inline-flex; align-items: center; gap: 3px; min-height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; line-height: 1; cursor: pointer; }
.msg-react b { font-size: 12px; font-weight: 700; color: var(--ink2); }
.msg-react.on { border-color: var(--amber); background: var(--accent-soft); }
.msg-react.on b { color: var(--accent-ink); }
.emoji-pick { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 8px 0 12px; }
.emoji-pick button { width: 48px; height: 48px; font-size: 28px; line-height: 1; padding: 0; border: 0; border-radius: 14px; background: none; cursor: pointer; }
.emoji-pick button[aria-pressed="true"] { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--amber); }
.emoji-pick button:active { background: var(--accent-tint); }
/* b267 reaction pop-up under the message */
.react-row { position: relative; z-index: 20; display: flex; margin: -8px 0 4px 40px; }
.react-row.me { justify-content: flex-end; margin-left: 0; }
.react-pop { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(30,35,40,.18); animation: rpIn .14s ease-out; }
.react-pop button { width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: none; font-size: 24px; line-height: 1; cursor: pointer; transition: transform .1s; }
.react-pop button:active { transform: scale(1.25); }
.react-pop button.on { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--amber); }
@keyframes rpIn { from { opacity: 0; transform: translateY(-4px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .react-pop { animation: none; } }
@media (max-width: 360px) { .react-pop button { width: 38px; height: 38px; font-size: 22px; } .react-row { margin-left: 30px; } }

/* HDB estate: each block on the detail map, and the block list under it */
/* Saved-place pins on the detail map, tinted by place kind */
.dm-pp { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--pc, #16181D); cursor: pointer; box-shadow: 0 1px 5px rgba(22,24,29,.35), 0 0 0 2px var(--pc, #16181D); }
.dm-pp .i { width: 16px; height: 16px; }
.dm-pp.k-work { --pc: #2D6FD1; }
.dm-pp.k-school { --pc: #6B4FCF; }
.dm-pp.k-gym { --pc: #2F6B3F; }
.dm-pp.k-parents { --pc: #B4458F; }
.dm-pp.k-other { --pc: #4A6378; }
.dm-blk { padding: 0 2px; border: 0; background: none; color: var(--ink); font: 700 11px/14px system-ui, sans-serif; text-align: center; text-shadow: 0 0 2px var(--card), 0 0 2px var(--card), 0 0 3px var(--card); cursor: pointer; }
/* A condo drawn as its site outline: no round icon, the name label sits on the site. */
.dm-me.shape { width: auto; height: auto; border: 0; background: none; box-shadow: none; }
.dm-me.shape > span[aria-hidden] { display: none; }
.dm-me.shape .dm-pin { position: static; transform: none; }
.hdb-bl { margin-top: 10px; }
.hdb-bl summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 6px 0; }
.hdb-bl-g { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.hdb-bl-g span { display: inline-flex; align-items: baseline; gap: 4px; padding: 4px 8px; border-radius: 8px; background: var(--chip, #EEF0F3); font-size: 13px; }
.hdb-bl-g small { color: var(--muted); font-size: 11px; }
.hdb-act { margin: 2px 0 10px; font-size: 15px; line-height: 1.5; }
.utable .uh.hdb-mk3, .utable .ur.hdb-mk3 { grid-template-columns: .9fr 1.5fr 1.5fr; align-items: baseline; }
.hdb-mk { color: var(--ink, #16181D); font-weight: 600; text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; font-variant-numeric: tabular-nums; }
.kind { justify-content: center; min-height: 48px; }
.kind b { display: inline-flex; align-items: center; gap: 6px; }
/* (i) Details: explanations stay hidden until tapped */
.tip-row { display: flex; }
.tip-i { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12.5px; cursor: pointer; padding: 2px 0; }
.tip-i .i { width: 15px; height: 15px; }
.tip-i[aria-expanded="true"] { color: var(--accent); }
.tip-t { margin: 2px 0 0; }
/* a member's page */
.up-h { display: flex; gap: 12px; align-items: center; margin-bottom: 4px; }
.up-h h1 { margin: 0; }
.up-av { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--amber); color: var(--on-amber); display: grid; place-items: center; font-weight: 800; font-size: 22px; }
.up-note p { margin: 6px 0 0; }
.msg-av { cursor: pointer; }
.ph-item b.ph-cap { right: 5px; max-width: calc(100% - 10px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; letter-spacing: 0; }
/* search box: near me, recent searches, popular places */
.kw-quick { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.kw-near { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.kw-near small { grid-column: 2; color: var(--muted); font-size: 12px; }
.kw-sec { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.kw-sec .label { margin: 0; }
/* five location tabs: wrap onto a second row instead of squeezing the labels */
.area-tabs { flex-wrap: wrap; gap: 2px; }
.area-tabs button { flex: 1 1 auto; overflow: visible; padding: 0 10px; font-size: 13px; gap: 4px; }
.area-tabs button .i { width: 15px; height: 15px; }
.kw-at { margin-top: 8px; }
.kw .row { align-items: baseline; }
/* Search by location: one row per category; a row opens its picker */
.loc-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.loc-row { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--line2); background: none; text-align: left; }
.loc-row:last-child { border-bottom: 0; }
.loc-row b { flex: none; font-size: 15px; }
.loc-row .loc-sum { flex: 1; min-width: 0; text-align: right; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-row .loc-sum.on { color: var(--accent-ink, #16181D); font-weight: 600; }
.loc-row .loc-go { flex: none; color: var(--muted); font-size: 20px; }
.loc-back { display: flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 0; font-size: 15px; align-self: flex-start; }
/* results: Filters sits beside the search box; quick pickers open under their button */
.rs-row { display: flex; gap: 8px; align-items: stretch; }
.rs-row .rs-box { flex: 1; min-width: 0; }
.rs-row .rs-f { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.rs-row .rs-f .i { width: 20px; height: 20px; }
.overlay.pop-ov { background: transparent; }
.sheet.pop { position: fixed; bottom: auto; right: auto; transform: none; border-radius: 14px; box-shadow: 0 8px 28px rgba(22,24,29,.22); overflow-y: auto; padding-top: 14px; animation: ppIn .14s ease-out; }
.sheet.pop .grip { display: none; }
/* drawing on a map: a pen cursor (tip = hot spot) instead of MapLibre's grab hand; a pointing hand where a tap places the circle */
.maplibregl-canvas-container.pen-on, .maplibregl-canvas-container.pen-on canvas { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.17 6.81a1 1 0 0 0-3.98-3.98L3.84 16.17a2 2 0 0 0-.5.83l-1.32 4.35a.5.5 0 0 0 .62.62l4.35-1.32a2 2 0 0 0 .83-.5z' stroke='%23fff' stroke-width='4'/%3E%3Cpath d='M21.17 6.81a1 1 0 0 0-3.98-3.98L3.84 16.17a2 2 0 0 0-.5.83l-1.32 4.35a.5.5 0 0 0 .62.62l4.35-1.32a2 2 0 0 0 .83-.5z' fill='%23F3D58A' stroke='%2316181D' stroke-width='1.7'/%3E%3Cpath d='m15 5 4 4' stroke='%2316181D' stroke-width='1.7'/%3E%3C/svg%3E") 2 24, crosshair !important; }
.sd-tap .maplibregl-canvas-container, .sd-tap .maplibregl-canvas-container canvas { cursor: pointer !important; }
.sd-tap .maplibregl-canvas-container.maplibregl-interactive:active, .sd-tap .maplibregl-canvas-container:active canvas { cursor: grabbing !important; }
/* drop-down pickers are compact: no title (the chip above already names it), no box inside the box, smaller text */
.sheet.pop { padding: 12px 14px 14px; gap: 10px; }
.sheet.pop > h2 { display: none; }
.sheet.pop .card { border: 0; padding: 0; margin: 0; background: none; box-shadow: none; }
.sheet.pop .label { font-size: 13px; }
.sheet.pop .val.lg { font-size: 17px; }
.sheet.pop .ends, .sheet.pop .small { font-size: 12px; }
.sheet.pop .chip { min-height: 34px; font-size: 13px; }
.sheet.pop .btn { min-height: 42px; height: 42px; font-size: 14px; border-radius: 12px; }
.sheet.pop .sort-opt { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.sheet.pop.sort-sh { gap: 2px; padding: 8px; }
/* full Filters sheet: one folded row per filter, recent filter sets on top */
.fh { margin-bottom: 12px; }
.fh-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.fh-h .label { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.fh-h .label .i { width: 16px; height: 16px; }
.fh-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.fh-chips::-webkit-scrollbar { display: none; }
.fh-chips .chip { flex: none; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.fold.ff { margin-bottom: 0; }
.fold.ff .head { min-height: 50px; gap: 10px; }
.fold.ff .head > .i { width: 18px; height: 18px; flex: none; color: var(--ink2); }
.fold.ff .head .sum { font-size: 13px; }
.fold.ff .head .chev { color: var(--muted); font-size: 13px; flex: none; }
.fold.ff .head[aria-expanded="true"] { background: var(--line2); }
.fold.ff .body { padding-top: 12px; }
.fold.ff .body .card { border: 0; padding: 0; margin: 0; background: none; box-shadow: none; }
/* the row head already names the filter, so a lone section inside doesn't repeat it */
.fold.ff .body > .group:only-child > .label, .fold.ff .body > .group:only-child > .row > .label, .fold.ff .body > .card:only-child > .row > .label, .fold.ff .body > .card:only-child > .label { display: none; }
.fold.ff .body > .group:only-child > .row { justify-content: flex-end; }
/* drop-down pickers, smaller again — near full width with roomier padding */
.sheet.pop { padding: 16px 16px 18px; gap: 12px; border-radius: 14px; }
.sheet.pop .row { gap: 8px; }
.sheet.pop .label { font-size: 12px; }
.sheet.pop .val.lg, .sheet.pop .val { font-size: 14px; }
.sheet.pop .ends, .sheet.pop .small { font-size: 11px; }
.sheet.pop .dual { height: 22px; }
.sheet.pop .dual .track, .sheet.pop .dual .fillbar { top: 9px; height: 4px; }
.sheet.pop .dual input::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -8px; }
.sheet.pop .dual input::-moz-range-thumb { width: 18px; height: 18px; }
.sheet.pop .chip { min-height: 36px; padding: 0 10px; font-size: 12.5px; }
.sheet.pop .btn { min-height: 40px; height: 40px; font-size: 13px; border-radius: 10px; }
.sheet.pop .sort-opt { min-height: 40px; font-size: 13px; }

/* results map: the map fills the screen, the search box, count and filter chips float on it */
.view.mapv { position: relative; overflow: hidden; }
.view.mapv #lmSlot { position: absolute; inset: 0; z-index: 0; }
.view.mapv .mapbox { position: absolute; inset: 0; height: auto; border: 0; border-radius: 0; }
.view.mapv .rs-row, .view.mapv #rsQuick, .view.mapv .res-bar, .view.mapv .qbar { position: relative; z-index: 2; }
.view.mapv .rs-box, .view.mapv .rs-f, .view.mapv .qbar button, .view.mapv .q-save, .view.mapv .vt { box-shadow: 0 1px 6px rgba(22,24,29,.18); }
.view.mapv .res-bar b { flex: 0 1 auto; margin-right: auto; font-size: 13px; background: var(--card); padding: 6px 10px; border-radius: 10px; box-shadow: 0 1px 6px rgba(22,24,29,.18); }
.view.mapv .empty { position: relative; z-index: 2; background: var(--card); border-radius: 12px; }
.view.mapv .maplibregl-popup { z-index: 3; }

/* homes in a tapped map cluster */
.sheet.cl-sh { max-height: 72%; padding-bottom: 0; gap: 10px; }
.cl-h { display: flex; align-items: center; justify-content: space-between; }
.cl-h h2 { margin: 0; font-size: 16px; }
.cl-h .x { border: 0; background: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.cl-sort { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: none; }
.cl-sort .chip { flex: none; min-height: 32px; font-size: 13px; }
.cl-list { overflow-y: auto; margin: 0 -16px; padding: 0 16px calc(12px + env(safe-area-inset-bottom)); flex: 1 1 auto; min-height: 0; }
.cl-row { width: 100%; display: flex; gap: 10px; align-items: center; justify-content: space-between; border: 0; border-bottom: 1px solid var(--line2); background: none; padding: 10px 0; text-align: left; font: inherit; color: var(--ink); }
.cl-row:last-child { border-bottom: 0; }
.cl-n { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cl-n b { font-size: 14px; }
.cl-n small, .cl-p small { font-size: 12px; color: var(--muted); }
.cl-p { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; flex: none; text-align: right; }
.cl-p b { font-size: 14px; color: var(--accent-ink); }
.cl-m { display: inline-flex; align-items: center; gap: 2px; }
.cl-m .i { width: 12px; height: 12px; }
.sheet.cl-sh { overflow: hidden; }
.view.mapv .res-bar > * { flex: none; }
.view.mapv .res-bar .q-save { display: none; }
.view.mapv .res-bar b { white-space: nowrap; }
.view.mapv .vt button { display: inline-flex; align-items: center; gap: 4px; }
/* Commute drop-down: compact places */
.sheet.pop .place { padding: 8px 10px; gap: 6px; border-radius: 10px; }
.sheet.pop .place .p-head { gap: 8px; }
.sheet.pop .place .tick { width: 20px; height: 20px; min-width: 20px; border-radius: 6px; font-size: 12px; }
.sheet.pop .place .p-name { font-size: 13.5px; }
.sheet.pop .place .p-edit { padding: 4px; }
.sheet.pop .place .p-edit .i, .sheet.pop .place .p-rm .i { width: 15px; height: 15px; }
.sheet.pop .place .p-rm { padding: 4px; font-size: 12px; }
.sheet.pop .place .p-addr { font-size: 11.5px; }
.sheet.pop .place .meta { gap: 4px; }
.sheet.pop .place .pp { font-size: 11.5px; min-height: 26px; padding: 0 8px; }
.sheet.pop .dashed { min-height: 34px; border-radius: 10px; font-size: 12.5px; }
/* search page */
.sheet.srch .srch-box { flex: none; }
.sheet.srch #srchBody { display: flex; flex-direction: column; gap: 12px; }
.sheet.srch .kw-sec { margin: 4px 0 -4px; }
.fold.loc-acc .body { padding-bottom: 14px; }
/* cluster list: more */
.cl-more { width: 100%; margin: 10px 0 4px; min-height: 40px; font-size: 13.5px; }
/* Map cluster sheet: grey canvas, white cards like the results list */
.sheet.cl-sh { gap: 12px; background: var(--bg2); }
.cl-sh .grip { background: var(--chip); }
.cl-h { align-items: flex-start; }
.cl-h > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cl-h h2 { font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.cl-h small { color: var(--muted); font-size: 12.5px; }
.cl-h .x { flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--card); box-shadow: 0 1px 2px rgba(16,18,22,.08); }
.cl-sort { gap: 8px; margin: 0 -16px; padding: 0 16px 2px; }
.cl-sort .chip { min-height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink2); font-weight: 700; }
.cl-sort .chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.cl-list { display: flex; flex-direction: column; gap: 10px; padding-top: 2px; }
.cl-card { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow-card); color: var(--ink); font: inherit; text-align: left; }
.cl-card:active { transform: scale(.97); background: var(--bg2); }
.cl-th { position: relative; flex: none; width: 56px; height: 56px; overflow: hidden; border-radius: 14px; background: var(--thumb); }
.cl-th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cl-th i { position: absolute; top: 4px; left: 4px; display: grid; min-width: 18px; height: 18px; place-items: center; padding: 0 4px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 10.5px; font-style: normal; font-weight: 800; }
.cl-b { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.cl-t { display: flex; align-items: flex-start; gap: 6px; }
.cl-t b { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 15px; font-weight: 800; line-height: 1.3; }
.cl-fav { flex: none; margin-top: 2px; color: #E0564F; }
.cl-fav .i { width: 14px; height: 14px; fill: currentColor; }
.cl-meta { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.cl-f { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 6px; }
.cl-pr { display: flex; flex-direction: column; min-width: 0; }
.cl-pr b { color: var(--amber-ink); font-size: 16.5px; font-weight: 800; letter-spacing: -.2px; }
.cl-pr small { overflow: hidden; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.cl-mrt { display: inline-flex; flex: none; align-items: center; gap: 3px; padding: 4px 8px; border-radius: 999px; background: var(--bg2); color: var(--ink2); font-size: 12px; font-weight: 700; }
.cl-mrt .i { width: 13px; height: 13px; }
.cl-go { flex: none; align-self: center; color: var(--ink4); }
.cl-go .i { width: 18px; height: 18px; }
.cl-sh .cl-more { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
/* School: types on the left, schools on the right */
.sch2 { display: flex; height: 320px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-card); }
.sch-l { flex: 0 0 38%; max-width: 150px; overflow-y: auto; background: var(--line2); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 4px 0; }
.sch-g { display: flex; align-items: center; justify-content: space-between; gap: 6px; border: 0; background: none; text-align: left; padding: 10px 12px; font: inherit; font-size: 12.5px; line-height: 1.3; color: var(--ink2); border-left: 3px solid transparent; position: relative; }
.sch-g[aria-pressed="true"] { background: var(--card); color: var(--ink); font-weight: 700; border-left-color: var(--amber); }
.sch-g.has::after { content: ''; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--amber); }
.sch-r { flex: 1; min-width: 0; overflow-y: auto; position: relative; background: var(--card); }
.sch-r .sch-q { position: sticky; top: 0; z-index: 1; margin: 8px 8px 2px; width: auto; border: 1px solid var(--line); border-radius: 10px; min-height: 36px; font-size: 13px; }
.sch-r .small { padding: 10px; margin: 0; }
.sch-i { width: calc(100% - 8px); margin: 1px 4px; display: flex; align-items: center; justify-content: flex-start; gap: 8px; border: 1px solid transparent; border-radius: 10px; background: transparent; text-align: left; padding: 8px 10px; font: inherit; font-size: 12.5px; line-height: 1.3; color: var(--ink); }
.sch-i[aria-pressed="true"] { background: var(--amber-soft); border-color: var(--amber); font-weight: 600; }
.sch-i > span { flex: 1; min-width: 0; }
.sch-tk { flex: none; display: inline-flex; width: 16px; height: 16px; color: var(--ink); }
.sch-tk .i { width: 16px; height: 16px; }
.sch-ab { flex: none; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .02em; color: #fff; padding: 2px 6px; border-radius: 5px; line-height: 1.4; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reach-card { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.reach-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.reach-head b { font-size: 14px; }
.reach-head .txt-btn { flex: none; color: var(--bad); }
.reach-picked { gap: 6px; max-height: 112px; overflow-y: auto; }
.reach-picked .chip { max-width: 100%; min-height: 34px; font-size: 12.5px; }
.reach-seg button { min-height: 38px; font-size: 13.5px; }
.reach-lim { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.reach-lim button { min-height: 40px; padding: 0 2px; border: 0; border-left: 1px solid var(--line); background: var(--card); font: inherit; font-size: 13px; color: var(--ink); white-space: nowrap; }
.reach-lim button:first-child { border-left: 0; }
.reach-lim button[aria-pressed="true"] { background: var(--amber-soft); color: var(--accent-ink); font-weight: 700; box-shadow: inset 0 0 0 2px var(--amber); }
.reach-note { margin: -2px 0 0; font-size: 12px; color: var(--muted); }
.reach-count { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--amber-soft); }
.reach-count b { font-size: 15px; }
.kw-sec-r { justify-content: flex-end; }
.sch-sort { margin: 0; padding: 10px 12px 4px; font-size: 11px; line-height: 1.35; color: var(--muted); }
.sch-i > span small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 1px; }
/* search boxes with our own ✕: hide the browser's built-in clear button */
.kw-box input[type="search"]::-webkit-search-cancel-button, .kw-box input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.kw-box > button { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: var(--line2); color: var(--muted); }
.kw-box > button[hidden] { display: none; }
.kw-box > button .i { width: 14px; height: 14px; }
.sheet.srch .kw-sec { margin: 6px 0 0; }
.sheet.srch .kw-sec .label { display: inline-flex; align-items: center; gap: 6px; }
.sheet.srch .kw-sec .label .i { width: 16px; height: 16px; }
.view.mapv .res-bar .res-n { flex: none; margin-right: auto; display: inline-flex; align-items: center; gap: 5px; border: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--card); padding: 6px 10px; border-radius: 10px; box-shadow: 0 1px 6px rgba(22,24,29,.18); white-space: nowrap; }
.view.mapv .res-bar .res-n .i { width: 14px; height: 14px; color: var(--accent); }
/* typed size range under the size chips */
.sz-wrap { padding-top: 12px; }
.sz-in { display: flex; align-items: center; gap: 8px; }
.group .sz-in { margin-top: 8px; }
.sz-f { flex: 1; min-width: 0; display: flex; align-items: center; height: 42px; padding: 0 12px; border: 1px solid var(--chip); border-radius: 10px; background: var(--card); cursor: text; }
.sz-f:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.sz-f input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16px; font-weight: 600; color: var(--ink); padding: 0; }
.sz-f input::placeholder { color: var(--faint); font-weight: 500; }
.sz-f em { flex: none; font-style: normal; font-size: 12px; color: var(--muted); margin-left: 6px; }
.sz-dash { flex: none; color: var(--muted); }
.sz-pre { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.sz-pre::-webkit-scrollbar { display: none; }
.sz-pre .chip { flex: 1 0 auto; min-height: 32px; padding: 4px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; }
/* "Seen" badge on a home card: quiet, so it doesn't compete with the name */
.home .nm-t.seen { background: var(--bg, #F4F5F7); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); display: inline-flex; align-items: center; gap: 3px; }
.home .nm-t.seen .i { width: 12px; height: 12px; }
/* Commute place card (b347): tick, kind icon, name over address, then a 2 x 2 grid of settings tiles. */
.place.pc2 { padding: 10px 12px; gap: 8px; }
.place.pc2.on { border-color: var(--amber); box-shadow: 0 1px 0 rgba(22,24,29,.04), 0 4px 14px rgba(217,164,65,.12); }
.place.pc2 .tick { width: 24px; height: 24px; border-radius: 8px; font-size: 13px; }
.place.pc2 .p-head { align-items: center; gap: 8px; }
.place.pc2 .p-ic { flex: none; width: 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--line2); color: var(--ink2); }
.place.pc2.on .p-ic { background: var(--amber-soft); color: var(--ink); }
.place.pc2 .p-ic .i { width: 16px; height: 16px; }
.place.pc2 .p-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.place.pc2 .p-name { font-size: 14.5px; flex: none; }
.place.pc2 .p-addr { font-size: 12px; line-height: 1.35; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.place.pc2 .p-edit, .place.pc2 .p-rm { padding: 4px; }
.place.pc2 .pq .modes { gap: 6px; }
.place.pc2 .pq .mode { padding-left: 2px; padding-right: 2px; font-size: 12px; white-space: nowrap; }
.place.pc2:not(.on) .p-name { color: var(--ink2); }
.p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.p-grid .pt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 48px; padding: 7px 9px; border: 1.5px solid transparent; border-radius: 10px; background: var(--bg); font: inherit; color: var(--ink); text-align: left; cursor: pointer; min-width: 0; }
.p-grid .pt small { font-size: 10.5px; color: var(--muted); }
.p-grid .pt b { font-size: 13px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; max-width: 100%; overflow: hidden; }
.p-grid .pt em { font-style: normal; }
.p-grid .pt-ms { display: inline-flex; gap: 3px; }
.p-grid .pt-ms .i { width: 17px; height: 17px; }
.p-grid .pt.max { background: var(--amber-soft); }
.p-grid .pt[aria-pressed="true"] { border-color: var(--amber); background: var(--card); }
.place.pc2 .pq { border-top: 0; padding: 12px; background: var(--bg); border-radius: 12px; }
.spm-n { font-weight: 400; color: var(--muted); font-size: 12px; }
.sheet.pop .p-grid .pt { min-height: 48px; padding: 6px 9px; }
.sheet.pop .place.pc2 .p-ic { width: 28px; height: 28px; }
/* Commute panel (search page): prototype layout — icon + title/subtitle, Clear all, category menu. */
.cm-panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 12px; }
.cm-head { display: flex; align-items: center; gap: 10px; }
.cm-ic { flex: none; width: 34px; height: 34px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--amber-soft); border: 1px solid var(--amber-line); color: var(--amber-ink); }
.cm-ic .i { width: 18px; height: 18px; }
.cm-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cm-ht b { font-size: 16.5px; font-weight: 800; letter-spacing: -.2px; color: var(--ink); }
.cm-ht small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-clear { flex: none; border: 0; background: none; padding: 6px 4px; min-height: 0; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); }
.cm-cat { position: relative; flex: none; }
.cm-catb { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 4px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font: inherit; font-size: 12px; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.cm-chev { display: inline-flex; }
.cm-chev .i { width: 13px; height: 13px; }
.cm-bd { position: fixed; inset: 0; z-index: 30; }
.cm-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 31; min-width: 140px; padding: 5px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(22,24,29,.14); display: flex; flex-direction: column; }
.cm-menu button { border: 0; background: none; text-align: left; padding: 9px 11px; min-height: 0; border-radius: 8px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cm-menu button[aria-pressed="true"] { background: var(--amber-soft); color: var(--amber-ink); }
.cm-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.cm-tt { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.cm-tt .p-name { flex: none; }
.cm-bdg { flex: none; font-style: normal; font-size: 10.5px; font-weight: 700; line-height: 1; padding: 3px 6px; border-radius: 6px; background: var(--amber-soft); border: 1px solid var(--amber-line); color: var(--amber-ink); }
.place.pc2:not(.on) .cm-bdg { background: none; border-color: transparent; color: var(--faint); font-weight: 600; }
.cm-addr { font-size: 11.5px; color: var(--muted); margin: -2px 0 0 46px; }
/* Prototype place tiles: three equal cells — days, ways there, longest one way (amber). */
.p-grid.cm-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.p-grid.cm-grid .pt { flex-direction: row; align-items: center; justify-content: center; gap: 5px; min-height: 38px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 12.5px; }
.p-grid.cm-grid .pt small { font-size: 10.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.p-grid.cm-grid .pt b { font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.p-grid.cm-grid .pt i { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.p-grid.cm-grid .pt .i { width: 15px; height: 15px; }
.p-grid.cm-grid .pt .pt-ic { display: inline-flex; gap: 2px; }
.p-grid.cm-grid .pt .pt-ic .i { width: 16px; height: 16px; }
.p-grid.cm-grid .pt.max { background: var(--amber-soft); border-color: var(--amber-line); color: var(--amber-ink); }
.p-grid.cm-grid .pt.max .i { color: var(--amber-ink); }
.cm-add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; border-radius: 14px; border: 1.5px dashed var(--chip); background: var(--card); color: var(--ink); font-weight: 700; font-size: 13.5px; }
.cm-add-ic { width: 20px; height: 20px; border-radius: 50%; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; color: var(--ink2); }
.cm-add-ic .i { width: 11px; height: 11px; }
/* Prototype place card metrics: roomier padding, 36px kind tile, 2px amber rim when active. */
.place.pc2.cm { padding: 14px; gap: 10px; border-radius: 16px; }
.place.pc2.cm.on { border-width: 2px; }
.place.pc2.cm .p-ic { width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--line); }
.place.pc2.cm.on .p-ic { background: var(--amber-soft); border-color: var(--amber-line); color: var(--amber-ink); }
.place.pc2.cm .p-ic .i { width: 19px; height: 19px; }
.place .cm-tt .p-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-addr { font-size: 11.5px; color: var(--muted); margin: -4px 0 0 78px; }
.place.pc2.cm .p-grid { margin-top: 2px; }
/* Add/edit place sheet: prototype commute form — slate surfaces, compact controls, pill pickers. */
.sheet.place-sheet { gap: 8px; max-height: calc(100% - 12px); padding-top: 8px; }
.sheet.place-sheet > h2 { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; margin: 0; }
.sheet.place-sheet .pl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sheet.place-sheet .pl-head h2 { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; margin: 0; }
.sheet.place-sheet .pl-sub { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.sheet.place-sheet .sheet-x { flex: none; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--accent-tint); color: var(--muted); cursor: pointer; }
.sheet.place-sheet .sheet-x .i { width: 15px; height: 15px; }
.sheet.place-sheet .group { gap: 6px; }
.sheet.place-sheet .pl-label { font-size: 11px; font-weight: 600; color: var(--ink2); text-transform: uppercase; letter-spacing: .04em; }
.sheet.place-sheet .hint { color: var(--muted); }
.sheet.place-sheet .text { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-size: 14px; }
.sheet.place-sheet .chips { display: flex; gap: 6px; overflow-x: auto; justify-content: flex-start; padding-bottom: 2px; }
.sheet.place-sheet .chip { flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.sheet.place-sheet .chip .e .i, .sheet.place-sheet .chip .e svg { width: 14px; height: 14px; }
.sheet.place-sheet .chip[aria-pressed="true"] { border-color: var(--amber); background: var(--amber-soft); color: var(--ink); font-weight: 700; }
.sheet.place-sheet .chip[aria-pressed="true"] .i { color: var(--amber-ink); }
.sheet.place-sheet .pl-name, .sheet.place-sheet .pl-loc { position: relative; display: flex; align-items: center; }
.sheet.place-sheet .pl-name .text, .sheet.place-sheet .pl-loc .text { flex: 1; }
.sheet.place-sheet .pl-name .text { padding-right: 40px; }
.sheet.place-sheet .pl-x { position: absolute; right: 6px; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--faint); cursor: pointer; }
.sheet.place-sheet .pl-x .i { width: 14px; height: 14px; }
.sheet.place-sheet .pl-loc .pl-ic { position: absolute; left: 12px; color: var(--faint); pointer-events: none; display: inline-flex; }
.sheet.place-sheet .pl-loc .pl-ic .i { width: 16px; height: 16px; }
.sheet.place-sheet .pl-loc .text { padding-left: 38px; padding-right: 126px; }
.sheet.place-sheet .pl-loc input[type="search"]::-webkit-search-cancel-button, .sheet.place-sheet .pl-loc input[type="search"]::-webkit-search-decoration { display: none; -webkit-appearance: none; }
.sheet.place-sheet .pl-qx { right: 96px; }
.sheet.place-sheet .pl-here { position: absolute; right: 6px; display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 5px 10px; border: 0; border-radius: 8px; background: var(--amber-soft); color: var(--amber-ink); font-size: 11px; font-weight: 600; cursor: pointer; }
.sheet.place-sheet .pl-here .i { width: 13px; height: 13px; }
.sheet.place-sheet .pl-sug-l { font-size: 11px; font-weight: 600; color: var(--ink2); text-transform: uppercase; letter-spacing: .04em; margin: 2px 0 6px; }
.sheet.place-sheet .pl-pref { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.sheet.place-sheet .pl-when { display: flex; flex-direction: column; gap: 6px; }
.sheet.place-sheet .pl-badge, .sheet.place-sheet .pl-tag { font-size: 11px; font-weight: 700; color: var(--amber-ink); background: var(--amber-soft); border: 1px solid var(--amber-line); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.sheet.place-sheet .pl-times { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sheet.place-sheet .pl-time { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.sheet.place-sheet .pl-time span { font-size: 10px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
.sheet.place-sheet .pl-time input { flex: 1; min-height: 26px; width: 100%; border: 0; padding: 0; font-size: 14px; font-weight: 700; color: var(--ink); background: transparent; cursor: pointer; }
.sheet.place-sheet .modes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding-bottom: 0; overflow: visible; }
.sheet.place-sheet .mode { display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 28px; padding: 4px 6px; border: 1.5px solid transparent; border-radius: 8px; background: var(--amber-soft); color: var(--amber-ink); font-size: 11px; font-weight: 600; text-align: center; }
.sheet.place-sheet .mode .e { font-size: 13px; line-height: 1; }
.sheet.place-sheet .mode .e .i, .sheet.place-sheet .mode .e svg { width: 13px; height: 13px; color: var(--amber-ink); }
.sheet.place-sheet .mode[aria-pressed="true"] { border-color: var(--amber); background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--amber-soft); }
.sheet.place-sheet .mode[aria-pressed="true"] .e .i, .sheet.place-sheet .mode[aria-pressed="true"] .e svg { color: var(--amber-ink); }
.sheet.place-sheet .chips { flex-wrap: nowrap; }
.sheet.place-sheet .chips .chip { padding: 6px 9px; font-size: 12.5px; }
.sheet.place-sheet .row { align-items: center; }
.sheet.place-sheet .stepper { gap: 12px; }
.sheet.place-sheet .stepper button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink2); font-size: 16px; font-weight: 700; }
.sheet.place-sheet .stepper b { min-width: 76px; font-size: 12px; font-weight: 600; color: var(--ink); }
.sheet.place-sheet .val { color: var(--ink); }
.sheet.place-sheet .val.lg { font-size: 12px; font-weight: 700; }
.sheet.place-sheet .ends { font-size: 10px; color: var(--faint); }
.sheet.place-sheet .place-save { width: 100%; min-height: 42px; border-radius: 12px; background: var(--ink); color: var(--on-accent); font-size: 14px; font-weight: 600; }
.sheet.place-sheet .place-save:active { transform: scale(.97); }
/* Commute-by-mode card (Area tab) + editable days / sun-moon time icons in the place sheet. */
.cm-list { display: flex; flex-direction: column; }
.cm-list .cm-row { display: flex; flex-direction: column; gap: 7px; padding: 10px 0; border-top: 1px solid var(--line); }
.cm-list .cm-row:first-child { border-top: 0; padding-top: 2px; }
.cm-who b { font-size: 14px; font-weight: 600; color: var(--ink); }
.cm-who span { display: block; margin-top: 1px; font-size: 11px; color: var(--muted); }
.cm-modes { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-mode { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 12px; color: var(--ink); }
.cm-mode .i { width: 14px; height: 14px; color: var(--ink2); }
.cm-mode b { font-weight: 700; }
/* "Your commute" unified card (detail Area tab): per-place article with avatar, weekly total, mode pills. */
.cm-hub-h { display: flex; align-items: center; gap: 8px; }
.cm-hub-h h2 { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-hub-n { flex: none; font-size: 11px; font-weight: 600; color: var(--muted); }
.cm-om { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 10px; font-weight: 700; letter-spacing: .03em; color: var(--muted); }
.cm-om .i { width: 9px; height: 9px; color: var(--bad); }
.cm2-dest { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.cm2-dest.off .cm2-top, .cm2-dest.off .cm2-ways { opacity: .55; }
.cm2-top { display: flex; align-items: flex-start; gap: 8px; }
.cm2-tick { flex: none; width: 22px; height: 22px; margin-top: 1px; border: 1.5px solid var(--chip); border-radius: 8px; background: var(--card); color: var(--ink4); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font: inherit; padding: 0; }
.cm2-tick .i { width: 13px; height: 13px; }
.cm2-tick[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.cm2-av { flex: none; width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--line2); color: var(--ink2); border: 0; padding: 0; font: inherit; cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; }
.cm2-avw { position: relative; flex: none; display: inline-flex; }
.cm2-ck { position: absolute; right: -5px; bottom: -5px; width: 15px; height: 15px; border-radius: 4px; background: var(--card); border: 1.5px solid var(--ink3); box-shadow: 0 0 0 2px var(--card); font-style: normal; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.cm2-avw.on .cm2-ck { background: var(--good); border-color: var(--good); }
.cm2-avw.on .cm2-ck::after { content: '\2713'; color: var(--on-good); font-size: 9px; font-weight: 800; line-height: 1; }
.cm2-avw:active .cm2-ck { border-color: var(--accent); }
.cm2-dest.off .cm2-av { opacity: .45; filter: grayscale(.9); }
.cm2-av .i { width: 19px; height: 19px; }
.cm2-av.k-work { background: #DBEAFE; color: #1D4ED8; }
.cm2-av.k-school { background: var(--amber-soft); color: var(--amber-ink); }
.cm2-av.k-gym { background: #DCFCE7; color: #15803D; }
.cm2-av.k-parents { background: #EDE9FE; color: #6D28D9; }
.cm2-id { flex: 1; min-width: 0; }
.cm2-nm { display: flex; align-items: center; gap: 5px; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.cm2-nm b { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm2-more { flex: none; width: 30px; height: 30px; margin-top: 0; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font: inherit; padding: 0; -webkit-tap-highlight-color: transparent; }
.cm2-more .i { width: 16px; height: 16px; }
.cm2-more[aria-expanded="true"] { background: var(--line2); color: var(--ink); }
.cm2-menu { display: flex; gap: 6px; margin: 8px 0 2px; }
.cm2-menu button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.cm2-menu button.bad { color: var(--bad); }
.cm2-menu button.bad.sure { background: var(--bad-soft); border-color: var(--bad); }
.cm2-menu .i { width: 14px; height: 14px; }
.cm2-ed { flex: none; padding: 3px; border: 0; background: none; color: var(--muted); cursor: pointer; display: inline-flex; }
.cm2-ed .i { width: 13px; height: 13px; }
.cm2-sub { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 11px; font-weight: 500; color: var(--muted); }
.cm2-sub-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm2-addr { display: block; margin-top: 1px; font-size: 10.5px; font-weight: 500; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm2-wk2 { flex: none; display: inline-flex; align-items: center; gap: 1px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font: inherit; color: var(--ink); cursor: pointer; }
.cm2-wk2 b { font-size: 11px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cm2-chv { display: inline-flex; }
.cm2-chv .i { width: 11px; height: 11px; color: var(--muted); }
.cm2-mode.on { background: var(--accent-soft); border-color: var(--accent); }
.cm2-mode.on .i, .cm2-mode.on b { color: var(--accent-ink); }
.cm-selhint { margin: 10px 0 0; font-size: 11px; color: var(--muted); }
.rt-login { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--accent-tint); }
.rt-login b { font-size: 14px; }
.rt-login .btn { flex: none; }
.vw-lslist { display: flex; flex-direction: column; gap: 6px; }
.vw-ls { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.vw-lsi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.vw-lsi b { font-size: 13px; }
.vw-lsi span { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-lsgo { flex: none; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink2); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.vw-lsgo .i { width: 15px; height: 15px; }
.cm2-rm { flex: none; min-width: 24px; height: 24px; padding: 0 4px; border: 0; border-radius: 50%; background: none; color: var(--muted); font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.cm2-rm .i { width: 13px; height: 13px; }
.cm2-rm.sure { color: var(--bad); background: var(--bad-soft); border-radius: 8px; padding: 0 6px; }
.cm2-ways { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.cm2-ways-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cm2-pills { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cm2-pills::-webkit-scrollbar { display: none; }
.cm2-mode { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font: inherit; font-size: 12px; color: var(--ink2); }
.cm2-mode .i { width: 14px; height: 14px; color: var(--muted); }
.cm2-mode b { font-weight: 700; color: var(--ink); }
.cm2-mode span { font-size: 10px; color: var(--muted); }
.cm2-mode.q { border-color: var(--amber); box-shadow: 0 0 0 2px var(--amber-soft); }
.cm2-mode.q .i { color: var(--amber); }
.cm2-add { width: 100%; margin-top: 12px; padding: 11px 12px; border: 1.5px dashed var(--chip); border-radius: 14px; background: none; font: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink2); cursor: pointer; }
.cm2-add:active { border-color: var(--amber); background: var(--amber-soft); }
.cm2-add-ic { width: 24px; height: 24px; border-radius: 50%; background: var(--line2); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 2px; }
.cm2-add-ic .i { width: 13px; height: 13px; color: var(--ink2); }
.cm2-add b { font-size: 13px; font-weight: 700; color: var(--ink); }
.cm2-add small { font-size: 11px; color: var(--muted); }
.sheet.place-sheet .pl-days-w { display: inline-flex; align-items: center; gap: 6px; min-width: 118px; justify-content: center; }
.sheet.place-sheet .pl-days { width: 40px; height: 30px; border: 1px solid var(--line); border-radius: 8px; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--card); }
.sheet.place-sheet .pl-unit { font-size: 11px; color: var(--muted); white-space: nowrap; }
.sheet.place-sheet .pl-tlab { display: inline-flex; align-items: center; gap: 5px; }
.sheet.place-sheet .pl-tic { display: inline-flex; }
.sheet.place-sheet .pl-tic .i { width: 13px; height: 13px; color: var(--amber-ink); }
/* Draw on map (b349): one card, search floating on the map, one main action at the bottom of the map. */
.sd-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; }
.sd-seg .i { width: 17px; height: 17px; }
.sd-card { margin-top: 10px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.sd-card.pen { border-color: var(--amber); box-shadow: 0 0 0 2px var(--amber-soft); }
.sd-wrap { position: relative; }
.sd-map { height: 340px; background: var(--line2); }
.sd-find { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 12px; min-height: 44px; border-radius: 12px; background: var(--card); box-shadow: 0 1px 6px rgba(30,35,40,.2); }
.sd-find > span { display: inline-flex; color: var(--muted); }
.sd-find > span .i { width: 18px; height: 18px; }
.sd-find input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); }
.sd-find .sugs { flex-basis: 100%; max-height: 200px; overflow-y: auto; }
.sd-find .sugs:empty { display: none; }
.sd-find .sugs .sug { border-top: 1px solid var(--line2); }
.sd-bar { position: absolute; left: 10px; right: 10px; bottom: 26px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.sd-bar > * { pointer-events: auto; }
.sd-hint { max-width: 100%; padding: 7px 12px; border-radius: 10px; background: rgba(22,24,29,.82); color: #fff; font-size: 12.5px; line-height: 1.35; text-align: center; }
.sd-pen { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--ink); color: var(--on-accent); font: inherit; font-size: 15px; font-weight: 700; box-shadow: 0 2px 10px rgba(22,24,29,.3); cursor: pointer; }
.sd-pen .i { width: 18px; height: 18px; }
.sd-pen.on { background: var(--card); color: var(--ink); }
.sd-foot { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.sd-foot .row { align-items: center; }
.sd-pl { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-pl .i { width: 16px; height: 16px; flex: none; }
.sd-res { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--amber-soft); }
.sd-res b { flex: 1; font-size: 15px; }
.sd-res .txt-btn { color: var(--bad); }
.sch2.sch-pl { height: 260px; }
/* School picker as its own page: nearly full-screen, list fills the space between header and Done. */
.sheet.sch-pick { max-height: 100%; height: 100%; border-radius: 0; padding-top: 12px; }
.sheet.sch-pick > * { flex-shrink: 0; }
.sheet.sch-pick .sch2.sch-pl { flex: 1; height: auto; min-height: 320px; }
/* Compact "which school" row inside the place sheet. */
.sch-pickrow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font: inherit; font-size: 13.5px; color: var(--ink); text-align: left; cursor: pointer; }
.sch-pickrow .spr-ic { flex: none; display: inline-flex; color: var(--muted); }
.sch-pickrow .spr-ic .i { width: 16px; height: 16px; }
.sch-pickrow .spr-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sch-pickrow .spr-t.none { color: var(--muted); }
.sch-pickrow .spr-go { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-size: 12.5px; font-weight: 600; }
.sch-pickrow .spr-go .i { width: 14px; height: 14px; }
/* District picker (b351): quick picks in two labelled rows, map or list, picked summary. */
.dq { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.dq-r { display: flex; flex-direction: column; gap: 5px; }
.dq-l { font-size: 12px; font-weight: 700; color: var(--muted); }
.dq-cs { display: flex; flex-wrap: wrap; gap: 6px; }
.dq-c { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.dq-c small { font-size: 11px; font-weight: 700; color: var(--accent-ink); background: var(--amber-soft); border-radius: 999px; padding: 1px 6px; }
.dq-c.part { border-color: var(--amber); }
.dq-c[aria-pressed="true"] { background: var(--amber-soft); border-color: var(--amber); }
.dq-c .i { width: 14px; height: 14px; }
.dv-seg { margin-bottom: 10px; }
.dv-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; font-size: 13.5px; }
.dv-seg .i { width: 16px; height: 16px; }
.dm-scope { position: absolute; top: 8px; left: 8px; padding: 3px; gap: 2px; border-radius: 10px; background: var(--card); box-shadow: 0 1px 4px rgba(30,35,40,.18); }
.dm-scope button { flex: none; min-height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.dm-scope button[aria-pressed="true"] { background: var(--ink); color: var(--on-accent); }
.dm-tip { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.dist-list { display: flex; flex-direction: column; max-height: 360px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.dl-i { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line2); background: none; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.dl-i:last-child { border-bottom: 0; }
.dl-i[aria-pressed="true"] { background: var(--amber-soft); }
.dl-b { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--chip); display: inline-flex; align-items: center; justify-content: center; background: var(--card); }
.dl-i[aria-pressed="true"] .dl-b { background: var(--amber); border-color: var(--amber); }
.dl-b .i { width: 13px; height: 13px; }
.dl-n { flex: none; min-width: 26px; font-size: 13px; color: var(--ink2); }
.dl-i > span { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.3; }
.dl-i > small { flex: none; font-size: 11.5px; color: var(--muted); }
.dist-sum { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--amber-soft); }
.dist-sum .row { align-items: center; }
.dist-sum .txt-btn { color: var(--bad); }
.dist-sum .picked button { background: var(--card); }
.p-grid .pt.wide { grid-column: 1 / -1; }
.sp-sch { display: flex; gap: 6px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--bg); color: var(--ink2); }
.sp-sch .i { width: 16px; height: 16px; flex: none; margin-top: 1px; }
/* A sheet opened on top of the search page or Filters (place editor): the page stays visible underneath. */
.stack-top { display: contents; }
.stack-top .overlay { z-index: 40; }
.stack-top .sheet { z-index: 41; }
.sheet .row .val { white-space: nowrap; flex: none; }
/* Search page sections (b353): Location (pick one way) AND Commute (its own condition). */
.sr-h .label { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--ink); }
.sr-h .label .i { width: 16px; height: 16px; }
.sr-h .txt-btn { color: var(--bad); }
.sr-sub { margin: -4px 0 8px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.sr-and { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.sr-and::before, .sr-and::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.sr-and span { padding: 3px 12px; border-radius: 999px; background: var(--ink); color: var(--on-accent); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; }
.sr-cm .body .sr-sub { margin: 0 0 4px; }
/* School reach: way of getting there (b354) */
.reach-how { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.reach-how button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 4px 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font: inherit; font-size: 11.5px; font-weight: 600; color: var(--ink); white-space: nowrap; cursor: pointer; }
.reach-how button .i { width: 18px; height: 18px; }
.reach-how button[aria-pressed="true"] { background: var(--amber-soft); border-color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
/* Around a place: draggable centre pin (b356) */
.sd-anchor { width: 40px; height: 40px; display: flex; align-items: flex-end; justify-content: center; cursor: grab; touch-action: none; }
.sd-anchor svg { filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.sd-anchor:active { cursor: grabbing; }
.sd-name { padding: 4px 10px; border-radius: 999px; background: rgba(20,22,28,.88); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; pointer-events: none; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
/* Recent searches on one line (b357) */
.kw-recent { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; min-width: 0; }
.kw-recent .kr-ic { flex: none; display: inline-flex; color: var(--muted); }
.kw-recent .kr-ic .i { width: 17px; height: 17px; }
.kw-recent .fh-chips { flex: 1; min-width: 0; padding-bottom: 0; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.kw-recent .fh-chips .chip { max-width: none; min-height: 34px; }
.kw-recent .txt-btn { flex: none; font-size: 13px; color: var(--muted); }
/* Whole unit / a room cards (b357) */
.kc-hint { margin: 0 0 8px; }
.kc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kc { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 92px; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.kc[aria-pressed="true"] { border-color: var(--amber); background: var(--amber-soft); }
.kc-ic { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; background: var(--bg); }
.kc[aria-pressed="true"] .kc-ic { background: var(--card); }
.kc-ic .i { width: 19px; height: 19px; }
.kc-t { display: flex; flex-direction: column; gap: 2px; }
.kc-t b { font-size: 14.5px; }
.kc-t small { font-size: 12px; line-height: 1.3; color: var(--muted); }
.kc-tk { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--chip); display: inline-flex; align-items: center; justify-content: center; background: var(--card); }
.kc[aria-pressed="true"] .kc-tk { border-color: var(--amber); background: var(--amber); }
.kc-tk .i { width: 12px; height: 12px; }
.kc-sub { margin-top: 4px; padding: 12px; border-radius: 14px; background: var(--bg); }
.kc-sub .kc { min-height: 0; flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; padding-right: 34px; }
.kc-sub .kc-ic { display: none; }
.kc { min-width: 0; }
.kc-t { min-width: 0; }
.kc-sub .kc-tk { top: 50%; margin-top: -10px; }
/* Location features (b358) */
.nf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nf { display: flex; align-items: flex-start; gap: 8px; min-width: 0; min-height: 60px; padding: 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.nf[aria-pressed="true"] { border-color: var(--amber); background: var(--amber-soft); }
.nf-ic { flex: none; display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 10px; background: var(--bg); }
.nf[aria-pressed="true"] .nf-ic { background: var(--card); }
.nf-ic .i { width: 17px; height: 17px; }
.nf-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nf-t b { font-size: 13.5px; line-height: 1.25; }
.nf-t small { font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.nf-t small.nf-n { color: var(--faint); }
.nf { align-items: center; min-height: 64px; }
.toast button[data-act="svGo"] { background: var(--amber); color: var(--on-amber); text-decoration: none; border-radius: 999px; padding: 0 16px; }
/* Filters sheet (b363): active filters with ×, a clear button on every set row, compact recent filters */
.af { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; padding: 12px; border-radius: 14px; background: var(--amber-soft); border: 1px solid var(--amber-line); }
.af-none { flex-direction: row; align-items: center; gap: 8px; background: var(--bg); border-color: var(--line); color: var(--muted); font-size: 13px; }
.af-none .i { width: 17px; height: 17px; flex: none; }
.af-h { display: flex; align-items: center; justify-content: space-between; }
.af-h b { font-size: 14px; }
.af-h .txt-btn { color: var(--bad); font-size: 13px; }
.af-cs { display: flex; flex-wrap: wrap; gap: 6px; }
.af-c { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 40px; padding: 4px 10px 4px 12px; border: 1px solid var(--amber-line); border-radius: 12px; background: var(--card); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.af-c > span { display: flex; flex-direction: column; min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.25; overflow: hidden; }
.af-c > span small { font-size: 10.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.af-c > span, .af-c > span small { white-space: nowrap; text-overflow: ellipsis; }
.af-c .ix, .af-c svg { flex: none; color: var(--muted); }
.af-c:active { background: var(--line2); }
.ff-hr { display: flex; align-items: stretch; background: var(--card); }
.ff-hr .head { flex: 1; min-width: 0; }
.ff-x { flex: none; width: 44px; border: 0; border-left: 1px solid var(--line2); background: var(--card); color: var(--bad); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ff-hr .head[aria-expanded="true"] + .ff-x { background: var(--line2); }
.fold.ff .ff-sec.set .head b::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--amber); vertical-align: middle; }
.fold.ff .ff-sec.set .head .sum { color: var(--ink); font-weight: 600; }
.fh.kw-recent { margin: 0 0 12px; }
.qf-f { flex-wrap: wrap; }
.qf-zero { flex-basis: 100%; margin: 0 0 2px; font-size: 12.5px; color: var(--bad); text-align: center; }
/* Closed search box showing the location in use (b364) */
.kw-loc input::placeholder { color: var(--ink); font-weight: 600; opacity: 1; }
.kw-loc input { text-overflow: ellipsis; }
.kw-loc input::placeholder { font-size: 14.5px; }
/* Results map: picked home's card docked at the bottom (b365) */
.lm-card { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 6; max-height: 70%; overflow: visible; border-radius: 14px; background: var(--card); box-shadow: 0 6px 22px rgba(22,24,29,.28); animation: lmUp .18s ease-out; }
.lm-card > .hc, .lm-card > article { margin: 0; }
.lm-card-x { position: absolute; top: -14px; left: 50%; margin-left: -15px; z-index: 2; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 1px 4px rgba(0,0,0,.2); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
@keyframes lmUp { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.lm-card > :not(.lm-card-x) { max-height: 100%; overflow-y: auto; border-radius: 14px; background: var(--card); }
/* Rent-out form (b366): month row and grouped features */
.mo-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mo-row::-webkit-scrollbar { display: none; }
.mo-row .chip { flex: none; }
.tgg { display: flex; flex-direction: column; gap: 12px; }
.tgg-g { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; border-radius: 12px; background: var(--bg); }
.tgg-l { font-size: 12px; font-weight: 700; color: var(--ink2); }
.tgg-g .chips { gap: 6px; }
.tgg-g .chip { background: var(--card); }
.tgg-g .chip[aria-pressed="true"] { background: var(--amber-soft); }
/* Rent-out "What this place offers" (b372): one section, a fold per group, picks shown in the head */
.og-hint { margin: -2px 0 8px; }
.fold.og .head { min-height: 48px; gap: 10px; }
.fold.og .head > .i { width: 18px; height: 18px; flex: none; color: var(--ink2); }
.fold.og .head .sum { font-size: 12.5px; }
.fold.og .head .sum.on { color: var(--ink); font-weight: 600; }
.fold.og .head .chev { flex: none; color: var(--muted); }
.fold.og .head[aria-expanded="true"] { background: var(--line2); }
.fold.og .body { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px 14px; }
.fold.og .body > * + * { margin-top: 0; }
.fold.og .og-sub { margin-top: 6px; }
.fold.og .chips { gap: 6px; }
.og-sub { font-size: 12px; font-weight: 700; color: var(--ink2); margin-top: 4px; }
.wp2-u { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 0; margin: -4px 0; background: none; border: 0; border-radius: 12px; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.wp2-u:active { background: var(--line2); }
.wp2-u .wp2-go { flex: none; width: 16px; height: 16px; color: var(--muted); }
/* report a problem / feedback */
.fb-entry { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 18px 0 6px; padding: 12px 14px; border: 1.5px dashed var(--line); border-radius: 12px; background: transparent; color: var(--ink2); font: inherit; font-size: 13.5px; text-align: left; }
.fb-entry .i { width: 16px; height: 16px; flex: none; color: var(--muted); }
.fb-sh { display: flex; flex-direction: column; gap: 10px; }
.fb-sh .fb-about { margin: -4px 0 2px; }
.fb-opts { display: flex; flex-direction: column; gap: 8px; }
.fb-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; text-align: left; }
.fb-opt > .i { width: 20px; height: 20px; flex: none; color: var(--ink2); }
.fb-opt > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fb-opt b { font-size: 14.5px; }
.fb-opt small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.fb-opt .fb-r { flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); }
.fb-opt[aria-checked="true"] { border-color: var(--amber, #D9A441); background: var(--amber-soft, #FBF1DC); }
.fb-opt[aria-checked="true"] .fb-r { box-shadow: inset 0 0 0 5px var(--amber, #D9A441); }
.fb-t { width: 100%; min-height: 96px; resize: vertical; font-size: 16px; }
.fb-sh .btn[disabled] { opacity: .45; }
/* messages: chats and notifications */
.ib-tabs { margin-bottom: 12px; }
.ib-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ib-tabs .i { width: 17px; height: 17px; }
.ib-n { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 10px; background: var(--fav); color: var(--on-accent); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.nt-list { display: flex; flex-direction: column; gap: 8px; }
.nt { position: relative; display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); font: inherit; text-align: left; }
.nt.new { border-color: var(--amber, #D9A441); }
.nt-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--line2); color: var(--ink2); }
.nt-ic .i { width: 17px; height: 17px; }
.nt-ic.good { background: var(--good-soft); color: var(--good); }
.nt-ic.warn { background: var(--amber-soft); color: var(--accent-ink); }
.nt-ic.bad { background: var(--bad-soft); color: var(--bad); }
.nt-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nt-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.nt-h b { font-size: 14.5px; }
.nt-h .hint { flex: none; font-size: 12px; }
.nt .small { line-height: 1.4; }
.nt .dot-new { position: absolute; top: 10px; left: 10px; }
.nt-go { flex: none; align-self: center; width: 16px; height: 16px; color: var(--muted); }
.link-btn .i { width: 14px; height: 14px; vertical-align: -2px; }
/* member page */
.up-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.up-top { display: flex; align-items: center; gap: 14px; }
.up-top .up-av { width: 60px; height: 60px; font-size: 25px; }
.up-id { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.up-id h1 { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.up-ver { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--good-soft); color: var(--good); font-size: 12px; font-weight: 600; }
.up-ver .i { width: 13px; height: 13px; }
.up-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 12px; }
.up-stats > div { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding: 0 4px; }
.up-stats > div + div { border-left: 1px solid var(--line); }
.up-stats b { font-size: 17px; white-space: nowrap; }
.up-stats > div:last-child b { font-size: 14.5px; line-height: 25px; }
.up-stats span { font-size: 12px; color: var(--muted); }
.up-me { margin: -4px 0 -6px; }
.up-card .btn.small { align-self: flex-start; }
.up-about { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.up-about h2 { margin: 0; }
.up-about p { margin: 0; line-height: 1.5; }
.up-sec { margin: 20px 0 10px; display: flex; align-items: center; gap: 8px; }
.up-sec span { font-size: 12px; font-weight: 700; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 12px; background: var(--line2); display: inline-grid; place-items: center; }
.up-posts { display: flex; flex-direction: column; gap: 10px; }
.upp { display: flex; gap: 12px; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); font: inherit; text-align: left; }
.upp-ph { flex: none; width: 76px; height: 76px; border-radius: 10px; object-fit: cover; background: var(--line2); }
.upp-ph.offer-placeholder { display: block; overflow: hidden; }
.offer-default-art { display: block; width: 100%; height: 100%; }
.upp-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.upp-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.upp-h .hint { font-size: 12px; flex: none; }
.upp-m { font-size: 19px; color: var(--accent-ink); }
.upp-m small { font-size: 12px; font-weight: 600; color: var(--muted); }
.upp-w { display: flex; align-items: flex-start; gap: 6px; font-weight: 600; font-size: 14px; }
.upp-w .i { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }
.upp .wp2-f { margin: 0; }
.upp-n { font-size: 13.5px; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.upp-go { align-self: flex-end; display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.upp-go .i { width: 15px; height: 15px; }
.up-note { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.up-note-c { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; }
.up-note-c .i { width: 16px; height: 16px; flex: none; color: var(--muted); }
.up-note-c b { flex: 1; min-width: 0; }
/* chat: the other person at the top of a thread, and avatars in the chat list */
.view.thread .th-stick, .view.aic .th-stick { position: sticky; top: 0; z-index: 12; margin: 0 -16px; background: var(--chat-bg); }
.th-stick .th-head { position: static; margin: 0; }
.th-head { display: flex; align-items: center; gap: 12px; margin: 0 -16px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; border-bottom: 1px solid var(--chat-line); background: var(--chat-bg); }
.th-back { flex: none; width: 32px; height: 36px; margin-left: -4px; padding: 4px; border: 0; border-radius: 8px; background: transparent; color: var(--chat-tool); display: grid; place-items: center; transition: transform .15s ease, color .15s ease; }
.th-back:active { transform: scale(.95); color: var(--chat-icon); }
.th-back .i { width: 24px; height: 24px; stroke-width: 2.2; }
.th-av { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--amber); color: var(--on-amber); display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.th-head .th-av { width: 40px; height: 40px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.th-peer { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; width: auto; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--chat-ink); font: inherit; text-align: left; }
.th-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0; }
.th-id b { font-size: 14px; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-id .hint { color: var(--chat-tool); font-size: 12px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-id .hint:empty { display: none; }
.th-go { flex: none; display: inline-flex; align-items: center; color: var(--chat-meta); }
.th-go .i { width: 18px; height: 18px; }
@media (max-width: 360px) { .th-head { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; } }
.ib.ib-av { flex-direction: row; align-items: center; gap: 12px; }
.ib-c { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
/* Rent Board */
.bd-intro { margin: 0 0 12px; line-height: 1.45; }
.bd-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; touch-action: pan-y; }
.bd-seg button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 8px 8px; white-space: nowrap; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink2); font: inherit; font-weight: 600; font-size: 14.5px; }
.bd-seg button .i { width: 18px; height: 18px; flex: none; }
.bd-seg button i { font-style: normal; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 12px; background: var(--line2); font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }
.bd-seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.bd-seg button[aria-pressed="true"] i { background: rgba(255,255,255,.18); color: #fff; }
.bd-f { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.bd-chips { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.bd-chips::-webkit-scrollbar { display: none; }
.bd-chips .chip { flex: none; }
.bd-f .vt { flex: none; }
.bd-list { display: flex; flex-direction: column; gap: 12px; }
.bd-status-group { margin-top: 14px; }
.bd-status-group h2 { display: flex; align-items: center; gap: 7px; margin: 0 2px 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.bd-status-group h2 span { color: var(--ink); }
.bd-list .card.wp-c { margin: 0; }
.bd-agg { display: flex; align-items: center; gap: 10px; width: 100%; margin: 16px 0 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; text-align: left; }
.bd-agg > .i:first-child { width: 18px; height: 18px; color: var(--ink2); flex: none; }
.bd-agg span { flex: 1; }
/* post card: who + Message on one row, price with the kind beside it */
.wp2-h .wp2-u { flex: 1; }
.wp2-msg { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; }
.wp2-msg .i { width: 16px; height: 16px; }
.wp2-list-h { min-height: 36px; }
.wp2-list-h .wp2-k { margin-right: auto; background: var(--amber-soft); color: var(--accent-ink); }
.wp2.off .wp2-list-h .wp2-k { background: var(--good-soft); color: var(--good); }
.wp2-list-age { flex: none; color: var(--muted); font-size: 12px; }
.wp-delete { color: var(--bad, #a23a36); }
.wp2 .wp-a .btn.small { min-height: 36px; padding: 0 11px; border-radius: 10px; font-size: 12.5px; }
.wp2 .wp-a .btn.small .i { width: 14px; height: 14px; }
.wp2 .wp-a .link-btn { min-height: 36px; padding: 0 4px; font-size: 11.5px; }
.wp2-m2 { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.wp-n.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wp-a.wp-a-r { justify-content: flex-end; }
.bd-out-actions { display: flex; flex-direction: column; gap: 9px; width: 100%; }
.bd-out-action { width: 100%; min-height: 66px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); color: var(--ink); text-align: left; }
.bd-out-action.primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.bd-out-ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--line2); color: var(--ink); }
.bd-out-action.primary .bd-out-ic { background: rgba(255,255,255,.15); color: #fff; }
.bd-out-ic .i { width: 20px; height: 20px; }
.bd-out-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bd-out-copy b { font-size: 15px; line-height: 1.25; }
.bd-out-copy small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.bd-out-action.primary .bd-out-copy small { color: rgba(255,255,255,.76); }
.bd-out-go { flex: none; color: var(--muted); font-size: 22px; line-height: 1; }
.bd-out-action.primary .bd-out-go { color: #fff; }
.bd-out-action:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
/* Board redesign: a pinned control stack, media-first cards and a map-card carousel. */
.bd-pinned { flex: none; }
.bd-vt-pin { position: sticky; top: -14px; z-index: 8; display: flex; justify-content: flex-end; align-items: center; margin: 0 -16px; padding: 8px 16px 6px; }
.bd-vt-pin .vt { flex: none; box-shadow: 0 1px 6px rgba(22,24,29,.18); }
/* The board-map header floats over the map on a gradient scrim; gaps let map gestures through. */
.bd-map-head { position: absolute; z-index: 4; top: 0; left: 0; right: 0; max-height: 56%; overflow-y: auto; padding: calc(6px + env(safe-area-inset-top)) 10px 18px; background: linear-gradient(to bottom, var(--bg) 55%, transparent); pointer-events: none; scrollbar-width: none; }
.bd-map-head::-webkit-scrollbar { display: none; }
.bd-map-head > * { pointer-events: auto; }
.bd-map-head .bd-pinned { padding: 0; }
.bd-map-head .bd-map-note { position: static; margin: 8px 2px 0; }
.bd-map-ctl { flex: none; display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.bd-map-ctl .vt { box-shadow: 0 1px 6px rgba(22,24,29,.18); }
.bd-fs { flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); box-shadow: 0 1px 6px rgba(22,24,29,.18); }
.bd-fs svg { width: 17px; height: 17px; }
.bd-mapbox.full { position: absolute; inset: 0; z-index: 16; height: auto; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
.bd-mapbox.full .bd-map-carousel { bottom: calc(14px + env(safe-area-inset-bottom)); }
.bd-mapbox.full .bd-map-credit { bottom: calc(238px + env(safe-area-inset-bottom)); }
.bd-top-row { display: flex; align-items: center; gap: 10px; }
.bd-mode { position: relative; flex: 1; min-width: 0; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--line2); touch-action: pan-y; }
.bd-mode button { flex: 1; min-width: 0; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: var(--ink2); font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; }
.bd-mode button .i { width: 16px; height: 16px; }
.bd-mode button[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.bd-mode button:disabled { opacity: .4; }
.bd-post-cta { flex: none; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: inherit; font-size: 12.5px; font-weight: 700; box-shadow: 0 2px 6px rgba(17,20,26,.16); }
.bd-post-cta .i { width: 16px; height: 16px; }
.bd-head-card { margin: 9px 0 0; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow-card); }
.bd-head-card .bd-intro { margin: 0 0 9px; font-size: 11.5px; line-height: 1.35; }
.bd-head-card .bd-seg { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 3px; border-radius: 12px; background: var(--line2); }
.bd-head-card .bd-seg button { min-width: 0; min-height: 38px; gap: 4px; padding: 4px; border: 0; border-radius: 10px; background: transparent; font-size: 12.5px; }
.bd-head-card .bd-seg button[aria-pressed="true"] { color: var(--ink); }
.bd-head-card .bd-seg button i { min-width: 18px; height: 18px; padding: 0 5px; line-height: 18px; background: var(--line); font-size: 10.5px; }
.bd-head-card .bd-seg button[aria-pressed="true"] i { background: var(--accent); color: var(--on-accent); }
.bd-head-card .bd-f { margin: 9px 0 0; gap: 7px; }
.bd-head-card .bd-chips { gap: 6px; padding: 1px 0; }
.bd-head-card .bd-filter-chip { min-height: 31px; padding: 4px 9px; border: 1px solid var(--line); background: var(--card); font-size: 12px; }
.bd-head-card .bd-filter-chip[aria-pressed="true"] { border-color: var(--amber); background: var(--amber-soft); color: var(--accent-ink); }
.bd-head-card .bd-filter-chip .i { width: 14px; height: 14px; }
.bd-head-card .vt { flex: none; padding: 2px; border-radius: 10px; background: var(--line2); }
.bd-head-card .vt button { min-height: 31px; padding: 5px 8px; }
.bd-list .card.wp-c { overflow: hidden; padding: 0; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.bd-list .wp2 { gap: 9px; padding: 12px 14px; }
.bd-list .wp-hero { margin: -12px -14px 2px; }
.wp-hero { position: relative; width: calc(100% + 28px); height: 174px; margin: -14px -14px 3px; overflow: hidden; background: var(--line2); }
.wp-hero button { display: block; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 0; background: transparent; }
.wp-hero img, .wp-hero video { display: block; width: 100%; height: 100%; object-fit: cover; }
.wp-hero-single.plan { height: 158px; background: var(--thumb); }
.wp-hero-single.plan img { object-fit: contain; padding: 8px 14px; }
.wp-hero-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; }
.wp-hero-grid button:first-child { grid-row: 1 / 3; }
.wp-hero-grid button:nth-child(2):last-of-type { grid-row: 1 / 3; }
.wp-hero-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(17,20,26,.56); color: #fff; font-size: 14px; font-weight: 700; }
.wp-hero-tag { position: absolute; left: 8px; bottom: 8px; padding: 4px 8px; border-radius: 999px; background: rgba(17,20,26,.76); color: #fff; font-size: 11px; font-weight: 700; }
.wp-hero-grid .wp-hero-tag { left: auto; right: 8px; top: 8px; bottom: auto; }
.wp-hero-default { height: 126px; display: grid; place-items: center; }
.wp-hero-default .offer-default-art { display: block; width: 100%; height: 100%; }
.wp-hero-video video { background: #111; }
.wp2-loc { width: 100%; padding: 6px 0; border: 0; background: none; font: inherit; text-align: left; }
.wp2-loc .chv { flex: none; width: 15px; height: 15px; color: var(--muted); }
.view.bd-mapv { overflow: hidden; padding-bottom: 8px; }
.view.bd-mapv .bd-mapbox { flex: 1 1 0; height: auto; min-height: 200px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.bd-map-carousel { position: absolute; z-index: 2; left: 0; right: 0; bottom: 36px; display: flex; gap: 10px; padding: 0 14px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.bd-map-carousel::-webkit-scrollbar { display: none; }
.bd-map-card { flex: 0 0 min(300px, 80vw); min-width: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; scroll-snap-align: start; border: 1.5px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); font: inherit; text-align: left; box-shadow: 0 10px 26px rgba(0,0,0,.22); }
.bd-map-card.on { border-color: var(--amber); box-shadow: 0 10px 26px rgba(0,0,0,.22), inset 0 0 0 1px var(--amber); animation: bdCardPulse 2s infinite cubic-bezier(.45,0,.2,1); }
@keyframes bdCardPulse { 0%, 100% { box-shadow: 0 10px 26px rgba(0,0,0,.22), inset 0 0 0 1px var(--amber), 0 0 0 0 rgba(217,164,65,.4); } 50% { box-shadow: 0 10px 26px rgba(0,0,0,.22), inset 0 0 0 1px var(--amber), 0 0 0 7px rgba(217,164,65,0); } }
@media (prefers-reduced-motion: reduce) { .bd-map-card.on { animation: none; } }
.bd-map-thumb { position: relative; display: block; height: 124px; overflow: hidden; background: var(--line2); }
.bd-map-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bd-map-thumb.plan { background: var(--thumb); }
.bd-map-thumb.plan img { object-fit: contain; padding: 4px 10px; }
.bd-map-thumb .offer-default-art { width: 100%; height: 100%; }
.bd-map-thumb > i { position: absolute; top: 8px; right: 8px; padding: 3px 6px; border-radius: 999px; background: rgba(17,20,26,.76); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; }
.bd-map-badge { position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(15,23,42,.8); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #fff; font-size: 11px; font-style: normal; font-weight: 600; }
.bd-map-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: var(--muted); }
.bd-map-placeholder .i { width: 24px; height: 24px; }
.bd-map-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 11px; }
.bd-map-t { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bd-map-t b { min-width: 0; overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.bd-map-t strong { flex: none; color: var(--amber-ink); font-size: 14px; }
.bd-map-t strong small { margin-left: 2px; color: var(--muted); font-size: 10.5px; font-weight: 500; }
.bd-map-m { overflow: hidden; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.bd-map-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 3px; padding-top: 8px; border-top: 1px solid var(--line2); }
.bd-map-user { min-width: 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.bd-map-f .vf-badge { flex: none; margin: 0; padding: 1px 6px; font-size: 10px; line-height: 1.5; }
.bd-map-pop-post { display: block; width: 100%; padding: 8px 0; border: 0; border-top: 1px solid var(--line2); background: transparent; color: var(--ink); font: inherit; font-size: 12px; text-align: left; }
.bd-map-pop-post:active { color: var(--amber-ink); }
.bd-map-pop-post .vf-badge { display: inline-flex; margin: 3px 0 0 6px; padding: 1px 6px; font-size: 10px; line-height: 1.5; vertical-align: middle; }
.bd-map-credit { position: absolute; z-index: 3; bottom: calc(258px + env(safe-area-inset-bottom)); left: 50%; padding: 4px 11px; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 1px 5px rgba(0,0,0,.12); color: var(--muted); font-size: 11px; font-weight: 500; white-space: nowrap; pointer-events: none; }
:root[data-theme="dark"] .bd-map-credit { background: rgba(23,26,32,.85); }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .bd-map-credit { background: rgba(23,26,32,.85); } }
.bd-map-note { position: absolute; z-index: 1; top: calc(8px + env(safe-area-inset-top)); left: 8px; right: 128px; margin: 0; padding: 7px 10px; border-radius: 10px; background: var(--card); color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.bd-map-empty { position: absolute; z-index: 1; top: 46%; left: 50%; width: min(300px, calc(100% - 28px)); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 16px; transform: translate(-50%, -50%); border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-align: center; box-shadow: var(--shadow-card); pointer-events: none; }
.bd-map-empty.act { pointer-events: auto; }
.bd-map-empty b { font-size: 14px; line-height: 1.3; }
.bd-map-empty span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.bd-list .wp2-msg { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font-size: 12px; }
.bd-pinned + .picked { margin-top: 2px; }
/* Board search field inside the header card. */
.bd-search { position: relative; display: flex; align-items: center; margin-top: 9px; }
.bd-search-ic { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.bd-search-ic .i { width: 16px; height: 16px; }
.bd-search input { flex: 1; min-width: 0; height: 38px; padding: 0 36px 0 36px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.bd-search input:focus { outline: none; border-color: var(--accent-line); }
.bd-search input::-webkit-search-cancel-button { display: none; }
.bd-search-x { position: absolute; right: 5px; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.bd-search-x::after { content: ''; position: absolute; inset: -7px; }
.bd-search-x .i { width: 14px; height: 14px; }
/* Board list cards reuse the map-carousel card anatomy at full width. */
.bl-card { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: var(--shadow-card); }
.bl-card .bd-map-thumb { height: 140px; }
.bl-card .wp-a { margin-top: 8px; padding-top: 9px; border-top: 1px solid var(--line2); }
.bl-card .wp-a .btn.small { min-height: 34px; padding: 0 11px; }
.bl-card .wp-a .link-btn { min-height: 34px; padding: 0 4px; font-size: 11.5px; }
.bd-map-f-r { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.bd-map-msg { flex: none; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink2); }
.bd-map-msg .i { width: 15px; height: 15px; }
@media (max-width: 360px) {
  .bd-top-row { gap: 6px; }
  .bd-post-cta { padding: 0 9px; font-size: 11.5px; }
  .bd-mode button { gap: 3px; padding: 0 5px; font-size: 11.5px; }
  .bd-head-card { padding: 8px; }
  .bd-head-card .bd-seg button { font-size: 11.5px; }
}
/* the post as a card in a chat */
.msg-cw { display: flex; flex-direction: column; gap: 3px; max-width: 82%; }
.msg-row.me .msg-cw { align-items: flex-end; }
.msg-cw small { font-size: 11px; color: var(--muted); padding: 0 4px; }
.msg-card { display: flex; gap: 10px; width: 260px; max-width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; text-align: left; }
.msg-card img, .msg-card-i { flex: none; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--line2); display: grid; place-items: center; color: var(--ink2); }
.msg-card-i .i { width: 24px; height: 24px; }
.msg-card-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.msg-card-b b { font-size: 15px; }
.msg-card-b b small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.msg-card-w { font-size: 12.5px; color: var(--ink2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-card-go { font-size: 12px; font-weight: 600; color: var(--ink2); }
.msg-card .ct-card-av { width: 64px; height: 64px; flex: none; border-radius: 50%; font-size: 26px; }
.msg-card-prev { margin-top: 12px; padding: 10px 12px; border: 1.5px dashed var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 8px; }
.msg-card-prev .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.msg-card-prev .msg-card { width: 100%; pointer-events: none; }
.ix-b { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--line2); color: var(--ink2); }
/* report a problem at a spot on a map */
.maplibregl-ctrl-group .mfb-btn { display: grid; place-items: center; color: var(--ink); }
.mfb-btn .i { width: 18px; height: 18px; }
.mfb { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.mfb-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); color: var(--bad); filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.mfb-pin .i { width: 38px; height: 38px; fill: #fff; stroke-width: 2.2; }
.mfb-bar { pointer-events: auto; position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--card); box-shadow: 0 2px 12px rgba(30,35,40,.22); font-size: 13.5px; }
/* Keep the bar clear of the map-control column: bottom-right on the results map, bottom-left on the detail map. */
.mfb-lm .mfb-bar { right: 64px; }
.mfb-dm .mfb-bar { left: 108px; }
.mfb-a { display: flex; justify-content: flex-end; gap: 8px; }
/* results map: clean view - search + Filters on top, one pill at the bottom */
.view.mapv .map-pill { position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 3; display: flex; align-items: center; padding: 3px; border-radius: 999px; background: var(--ink); color: var(--on-accent); box-shadow: 0 3px 14px rgba(22,24,29,.3); white-space: nowrap; max-width: calc(100vw - 126px); }
.view.mapv .map-pill .mp-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.view.mapv .map-pill button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: inherit; font: inherit; font-size: 13.5px; font-weight: 600; }
.view.mapv .map-pill .i { width: 16px; height: 16px; }
.view.mapv .map-pill .mp-u { font-weight: 700; letter-spacing: .3px; }
.view.mapv .map-pill .mp-u[aria-pressed="true"] { background: var(--amber); color: var(--on-amber); }
.view.mapv .map-pill button[hidden] { display: none; }
.view.mapv .map-pill i { width: 1px; height: 20px; background: rgba(255,255,255,.25); }
.view.mapv:has(.lm-card) .map-pill, .view.mapv:has(.mfb) .map-pill { display: none; }
@media (max-width: 360px) {
  .view.mapv .map-pill { max-width: calc(100vw - 112px); }
  .view.mapv .map-pill button { padding: 0 10px; font-size: 12.5px; gap: 4px; }
  .view.mapv .map-pill .i { width: 14px; height: 14px; }
}
.view.mapv .empty { margin-top: 12px; }
/* results map full screen: header and tab bar hidden */
body.map-full .top, body.map-full #tabs { display: none; }
body.map-full .view.mapv { padding-top: calc(10px + env(safe-area-inset-top)); }
.rs-row .rs-back { flex: none; width: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); }
.view.mapv .rs-back { box-shadow: 0 1px 6px rgba(22,24,29,.18); }
.rs-back .i { width: 22px; height: 22px; }
/* No browser tap highlight (a pale blue box on Android): it lingered on whatever appeared under the finger, e.g. a sheet's close button. */
html, button, a, input, select, textarea, label, [data-act], [role="button"] { -webkit-tap-highlight-color: transparent; }
.post-h > button:active, .lm-card-x:active, .ix-b:active { background: var(--line2); border-radius: 50%; }
/* flatmate posts */
.mt-card { display: flex; flex-direction: column; gap: 12px; }
.mt-h { display: flex; gap: 12px; align-items: flex-start; }
.mt-h h2 { margin: 0 0 4px; }
.mt-h p { margin: 0; line-height: 1.45; }
.mt-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--amber-soft); color: var(--accent-ink); }
.mt-ic .i { width: 20px; height: 20px; }
.mt-a { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mt-a .btn { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.mt-home { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.mt-hb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mt-hb b { font-size: 15.5px; }
.mt-pre { display: flex; align-items: center; gap: 6px; margin: -4px 0 4px; color: var(--good); }
.mt-pre .i { width: 15px; height: 15px; flex: none; }
.mt-est { margin: -6px 0 0; }
.sub-l { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink2); margin-top: 6px; }
.sub-l .i { width: 15px; height: 15px; }
.bd-seg { grid-template-columns: repeat(3, 1fr); }
.bd-seg button { font-size: 13.5px; padding: 8px 4px; gap: 5px; }
.mt-g { display: flex; flex-direction: column; gap: 6px; }
.mt-g .label { font-size: 13px; color: var(--ink2); }
/* Listings card: rows, then the two sites */
.ls-card .hint { margin: 8px 0 0; }
.ls-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.ls-a { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; position: relative; }
.ls-a span { font-size: 12px; color: var(--muted); }
.ls-a b { font-size: 15.5px; }
.ls-a i { position: absolute; top: 10px; right: 12px; font-style: normal; color: var(--muted); }
.ls-a.pg { border-color: #D8362A; }
.ls-a.pg b { color: #D8362A; }
.ls-a.n99 b { color: #2D5BE3; }
/* Posts from our own Rent Board inside the detail listings card / looking section */
.ls-own { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.ls-own-t { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ls-own-r { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 4px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; border-radius: 8px; }
.ls-own-r:active { background: var(--bg); }
.ls-own-l { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ls-own-l b { font-size: 14px; }
.ls-own-l span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-own-p { flex: 0 0 auto; font-size: 14px; color: var(--ink); }
.ls-own .link-btn { align-self: flex-start; padding: 4px 4px 8px; }
.mt-match { margin: -4px 0 0; color: var(--ink2); }
.mo-row .chip.in-r { background: var(--amber-soft); border-color: transparent; }
.mo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mo-grid .chip { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0; min-height: 44px; padding: 4px 6px; font-size: 13.5px; white-space: nowrap; }
.mo-grid .chip small { font-size: 10.5px; font-weight: 500; color: var(--muted); }
.mo-grid .chip.in-r { background: var(--amber-soft); border-color: transparent; }
.mo-grid .mo-flex { grid-column: 1 / -1; }
/* month calendar (move-in / available) */
.mcal { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 6px 12px 12px; }
.mcal-h { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid var(--line2); }
.mcal-h b { font-size: 17px; font-weight: 600; }
.mcal-h button { width: 40px; height: 40px; border: 0; background: none; color: var(--accent-ink); font-size: 20px; border-radius: 10px; }
.mcal-h button:disabled { color: var(--line); }
.mcal-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 8px; }
.mcal-m { height: 40px; border: 0; border-radius: 999px; background: var(--line2); color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; }
.mcal-m:disabled { color: var(--ink4); background: var(--bg2); }
.mcal-m.now:not([aria-pressed="true"]) { background: none; color: var(--accent-ink); font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--amber); }
.mcal-m.in-r { background: var(--amber-soft); }
.mcal-m[aria-pressed="true"] { background: var(--amber); color: var(--on-amber); font-weight: 700; }
.mcal-flex { width: 100%; margin-top: 12px; min-height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font: inherit; font-weight: 600; color: var(--ink); }
.mcal-flex[aria-pressed="true"] { background: var(--amber-soft); border-color: var(--amber); }
/* home suggestions in the post forms */
.sug-g { display: flex; flex-direction: column; margin-top: 8px; }
.sug-gl { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 4px 2px; }
.sug-gl .i { width: 14px; height: 14px; }
.sug.sug-near b { color: var(--accent-ink); }
/* results list: compact top, floating Map and back-to-top */
.view:not(.mapv) > .rs-row { position: sticky; top: -14px; z-index: 6; margin: -14px -16px 0; padding: 14px 16px 6px; background: var(--bg); }
.rl-h { flex: none; display: flex; align-items: center; gap: 8px; margin-top: -4px; }
.rl-n { flex: 1; min-width: 0; font-size: 14px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-n b { color: var(--ink); font-size: 15px; }
.rl-sort { flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; max-width: 62%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-sort .i { width: 15px; height: 15px; flex: none; }
.rl-sort .chv { width: 13px; height: 13px; flex: none; }
.rl-save { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink2); }
.rl-save .i { width: 17px; height: 17px; }
.rl-save.on { color: var(--accent-ink); border-color: var(--amber); background: var(--amber-soft); }
.rl-save.on .i { fill: var(--amber); }
.rl-af { flex: none; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -4px -16px 0; padding: 2px 16px; }
.rl-af::-webkit-scrollbar { display: none; }
.rl-af .af-c { flex: none; }
.rl-clear { flex: none; border: 0; background: none; color: var(--ink2); font: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; padding: 0 6px; }
.fabs { position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom) + 14px); z-index: 7; display: flex; justify-content: center; pointer-events: none; }
.fabs > * { pointer-events: auto; }
.fab-map { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--ink); color: var(--on-accent); font: inherit; font-size: 14px; font-weight: 600; box-shadow: 0 4px 16px rgba(22,24,29,.3); }
.fab-map .i { width: 17px; height: 17px; }
.fab-top { position: absolute; right: 16px; bottom: 0; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); box-shadow: 0 3px 12px rgba(22,24,29,.18); }
.fab-top[hidden] { display: none; }
.fab-top .i { width: 22px; height: 22px; }
.sort-sw { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 8px; padding: 12px 4px; border: 0; border-top: 1px solid var(--line2); background: none; color: var(--ink); font: inherit; text-align: left; }
.sort-sw > .i { width: 19px; height: 19px; color: var(--ink2); flex: none; }
.sort-sw span { flex: 1; display: flex; flex-direction: column; font-weight: 600; }
.sort-sw small { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.sort-sw[aria-checked="true"] .sw { background: var(--amber); }
.sort-sw[aria-checked="true"] .sw::after { transform: translateX(14px); }
.view:not(.mapv) #rsBody { padding-bottom: 64px; }
#rsQuick:empty { display: none; }
/* flatmate post: rooms, each with its kind and rent */
.mr-row { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-top: 8px; }
.mr-h { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.mr-h b { font-size: 14.5px; }
.mr-h .ix-b { width: 28px; height: 28px; }
.mr-rent { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--ink2); }
.mr-in { display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.mr-in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.mr-in i { font-style: normal; color: var(--muted); font-weight: 600; }
.mr-in input { width: 84px; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 700; color: var(--ink); outline: none; text-align: right; }
.mr-in small { color: var(--muted); font-size: 12.5px; }
.mr-add { margin-top: 8px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border: 1.5px dashed var(--line); border-radius: 12px; background: none; font: inherit; font-weight: 600; color: var(--ink2); }
/* results list: the quick filters, compact */
.qbar.rl-q { margin-top: -6px; gap: 6px; }
.qbar.rl-q button { min-height: 36px; padding: 0 10px; border-radius: 999px; font-size: 13px; gap: 4px; }
.qbar.rl-q button .i { width: 14px; height: 14px; }
.qbar.rl-q button .chv { width: 12px; height: 12px; }
.rl-sort .rl-ns { display: inline-flex; color: var(--accent-ink); }
.rl-sort .rl-ns .i { width: 15px; height: 15px; }
/* results list: the top bar slides away while scrolling; its back button sits in the search row */
.top { transition: margin-top .2s ease; }
body.hdr-hide .top { margin-top: calc(-1 * var(--top-h, 53px)); }
.rs-row .rs-back-l { display: none; }
body.hdr-hide .rs-row .rs-back-l { display: grid; }
body.hdr-hide .view:not(.mapv) > .rs-row { padding-top: calc(14px + env(safe-area-inset-top)); }
/* compact results list */
.view:not(.mapv) > .rs-row { padding-bottom: 4px; }
.view:not(.mapv) .rs-row .kw-box { min-height: 42px; border-radius: 12px; }
.view:not(.mapv) .rs-row .rs-f, .view:not(.mapv) .rs-row .rs-back { border-radius: 12px; }
.view:not(.mapv) .rs-row .rs-f { padding: 0 12px; }
.view:not(.mapv) .rs-row .rs-back { width: 42px; }
.rl-h { margin-top: -6px; }
.rl-sort, .rl-save { min-height: 32px; height: 32px; }
.rl-save { width: 32px; }
.qbar.rl-q { margin-top: -8px; }
.qbar.rl-q button { min-height: 36px; }
/* home cards, more compact: smaller photo and buttons, one-line details, unit types on one line */
.view .home .hc-body { padding: 10px 12px; gap: 5px; min-width: 0; }
.view .home .hc-head { min-height: 40px; gap: 9px; padding-right: 78px; }
.view .home .hc-av { width: 40px; height: 40px; }
.view .home .media-acts { top: 6px; right: 6px; gap: 4px; }
.view .home .mact { width: 30px; height: 30px; }
.view .home .mact .i { width: 16px; height: 16px; }
.view .home .hc-title b { font-size: 15px; line-height: 1.28; }
.view .home .hc-hd > .small { font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.view .home .hc-side .hc-ls { font-size: 10.5px; }
.view .home .hc-p b { font-size: 18px; }
.view .home .mc-row { padding-top: 6px; }
.view .home .tags { flex-wrap: wrap; row-gap: 5px; overflow: hidden; mask-image: none; -webkit-mask-image: none; min-width: 0; max-width: 100%; }
.view .home .tags > * { flex: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view:not(.mapv):not(.dtl) { gap: 10px; }
/* first page: the filters as tabs above the search box */
.hf-row { flex: none; display: flex; align-items: stretch; gap: 8px; }
.hf-tabs { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-left: -16px; padding-left: 16px; }
.hf-tabs::-webkit-scrollbar { display: none; }
.hf-t { flex: none; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 6px; align-items: center; padding: 6px 10px 6px 12px; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; text-align: left; }
.hf-t small { grid-column: 1; font-size: 11.5px; color: var(--muted); line-height: 1.2; }
.hf-t b { grid-column: 1; font-size: 14px; line-height: 1.3; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hf-t .chv { grid-column: 2; grid-row: 1 / 3; width: 14px; height: 14px; color: var(--muted); }
.hf-t.set { border-color: var(--amber); background: var(--amber-soft); }
.hf-t[aria-selected="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.hf-reset { flex: none; border: 0; background: none; color: var(--ink2); font: inherit; font-size: 13px; font-weight: 600; padding: 0 2px; }
.hf-panel { flex: none; display: flex; flex-direction: column; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-top: -4px; }
.hf-panel .card { border: 0; padding: 0; box-shadow: none; }
/* filter tabs share the row evenly */
.hf-tabs { overflow: visible; margin-left: 0; padding-left: 0; }
.hf-t { flex: 1 1 0; min-width: 0; padding: 6px 6px 6px 10px; }
.hf-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hf-t b { max-width: none; min-width: 0; font-size: 13.5px; }
.hf-t .chv { width: 12px; height: 12px; }
.hf-reset { width: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink2); padding: 0; }
.hf-reset .i { width: 18px; height: 18px; }
.hf-t { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 6px 8px 6px 10px; }
.hf-t small, .hf-t b { max-width: 100%; }
/* first page: the open filter is a pop-up over the page */
.hf-wrap { flex: none; position: relative; z-index: 8; }
.hf-wrap .hf-panel { position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; max-height: 60vh; overflow-y: auto; box-shadow: 0 10px 30px rgba(22,24,29,.18); }
/* results list: no tab bar, so the floating buttons sit at the bottom edge */
.fabs { bottom: calc(16px + env(safe-area-inset-bottom)); }
/* first page: four filter rows */
.hf-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.hf-item { position: relative; }
.hf-item + .hf-item { border-top: 1px solid var(--line2); }
.hf-r { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 0 12px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; }
.hf-r > .i { width: 18px; height: 18px; flex: none; color: var(--ink2); }
.hf-l { flex: none; font-size: 14px; color: var(--ink2); }
.hf-v { flex: 1; min-width: 0; text-align: right; font-size: 14.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hf-r.set .hf-v { color: var(--accent-ink); font-weight: 700; }
.hf-r.set > .i { color: var(--amber); }
.hf-r .chv { width: 14px; height: 14px; flex: none; color: var(--muted); }
.hf-r[aria-expanded="true"] { background: var(--line2); }
.hf-item:first-child .hf-r { border-radius: 14px 14px 0 0; }
.hf-item:last-child .hf-r { border-radius: 0 0 14px 14px; }
.hf-item .hf-panel { position: absolute; left: -1px; right: -1px; top: calc(100% + 4px); z-index: 9; margin: 0; max-height: 60vh; overflow-y: auto; box-shadow: 0 10px 30px rgba(22,24,29,.18); }
.hf-reset2 { flex: none; border: 0; background: none; color: var(--ink2); font: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 6px 2px; }
.hf-wrap { display: flex; flex-direction: column; }
/* bottom tab bar: six tabs */
/* account page */
.me-head { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.me-head .up-av { width: 56px; height: 56px; font-size: 24px; }
.me-head.guest .up-av { background: var(--line2); color: var(--ink2); }
.me-head.guest .up-av .i { width: 26px; height: 26px; }
.up-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
button.up-av.av-pick { border: 0; padding: 0; cursor: pointer; overflow: hidden; font: inherit; }
.me-who .av-rem { margin-left: 6px; }
.me-who { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.me-who b { font-size: 19px; overflow-wrap: anywhere; }
.me-who small { font-size: 13px; color: var(--ink2); line-height: 1.4; }
.me-auth { display: flex; gap: 8px; }
.me-g { display: flex; flex-direction: column; gap: 6px; }
.me-gl { font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 0 4px; }
.me-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.me-r { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 8px 12px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; }
.me-r + .me-r { border-top: 1px solid var(--line2); }
.me-r > .i:first-child { width: 19px; height: 19px; flex: none; color: var(--ink2); }
.me-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.me-t b { font-size: 14.5px; font-weight: 600; }
.me-t small { font-size: 12px; color: var(--muted); }
.me-n { flex: none; font-style: normal; font-size: 12px; font-weight: 700; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 12px; background: var(--line2); color: var(--ink2); display: grid; place-items: center; }
.me-go { width: 15px; height: 15px; flex: none; color: var(--muted); }
.me-out { flex: none; }
.me-f { text-align: center; margin: 0 0 8px; }
/* first page: four rows with their choices inline */
.hq { flex: none; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; box-shadow: var(--shadow-lift); }
.hq-search { padding: 12px 12px 10px; }
.hq-search .kw { gap: 8px; }
.kw-row { display: flex; align-items: stretch; gap: 8px; }
.kw-row > .kw-box { flex: 1; min-width: 0; }
.kw-go { flex: none; width: auto; align-self: center; min-height: 42px; height: 42px; padding: 0 14px; border-radius: 12px; font-size: 14px; font-weight: 700; }
.hq-search .kw-box { min-height: 52px; border-color: var(--line); border-radius: 14px; }
.hq-search .kw-box > span { display: flex; color: var(--muted); }
.hq-search .kw-box .i { width: 19px; height: 19px; }
/* Home search: plain box, no highlight ring */
.hq-search .kw-box { position: relative; background: var(--card); }
/* Popular areas: the label is a heading on its own line, so the chips get the full row width. */
.hq-popular { display: block; margin-top: 12px; }
.hq-popular-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }
.hq-popular-list { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
/* Fade the right edge so a cut-off chip reads as "there is more to the right", not as a broken row. */
.hq-popular-list { -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 26px), transparent 100%); mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 26px), transparent 100%); }
.hq-popular-list::-webkit-scrollbar { display: none; }
.hq-popular-chip { flex: none; min-height: 32px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink2); font: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.hq-popular-chip[aria-pressed="true"] { border-color: var(--amber); background: var(--amber-soft); color: var(--ink); }
.hq-filter-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 14px 4px; border-top: 1px solid var(--line2); }
.hq-filter-head > div { display: flex; align-items: baseline; gap: 7px; }
.hq-filter-head b { font-size: 13px; }
.hq-filter-head small { color: var(--muted); font-size: 11.5px; }
.hq-r { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; }
.hq-r + .hq-r { border-top: 1px solid var(--line2); }
.hq-l { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.hq-l > .i { width: 16px; height: 16px; color: var(--muted); flex: none; }
.hq-l > span { flex: 1; }
.hq-v { font-size: 14px; color: var(--ink); }
.hq-c { display: flex; flex-direction: column; gap: 6px; }
.hq-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.hq-chips .chip { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.hq-chips .chip .e { display: inline-flex; align-items: center; }
.hq-chips .chip .e .i { width: 14px; height: 14px; margin-right: 5px; }
.hq-sl { padding: 4px 6px 0; }
.hq-sl .dual { margin: 0; }
.home-illustration { width: 100%; overflow: hidden; border-radius: var(--radius); background: #E7F5EF; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
:root[data-theme="dark"] .home-illustration { background: #1B2620; }
/* A person picked up from the street picture: follows the finger, then rides back in */
.hs-drag { position: fixed; left: 0; top: 0; z-index: 80; width: 0; height: 0; pointer-events: none; transform-origin: 0 0; will-change: transform; }
.hs-drag svg { position: absolute; overflow: visible; filter: drop-shadow(0 6px 5px rgba(16,18,22,.22)); }
.hs-drag.left svg { transform: scaleX(-1); }
.hs-drag .hs-rider, .hs-drag.ride .hs-walker { display: none; }
.hs-drag.ride .hs-rider { display: block; }
.hs-drag .hs-leg, .hs-drag .hs-arm { transform-box: fill-box; transform-origin: 50% 0; }
.hs-drag.held .hs-leg1, .hs-drag.held .hs-arm2 { animation: hs-kick .22s ease-in-out infinite alternate; }
.hs-drag.held .hs-leg2, .hs-drag.held .hs-arm1 { animation: hs-kick .22s ease-in-out infinite alternate-reverse; }
.hs-drag.walking .hs-leg1, .hs-drag.walking .hs-arm2 { animation: hs-stride .3s ease-in-out infinite alternate; }
.hs-drag.walking .hs-leg2, .hs-drag.walking .hs-arm1 { animation: hs-stride .3s ease-in-out infinite alternate-reverse; }
@keyframes hs-stride { from { transform: rotate(-20deg); } to { transform: rotate(20deg); } }
.hs-drag .hs-wheel { transform-box: fill-box; transform-origin: 50% 50%; animation: hs-spin .45s linear infinite; }
.hs-drag .hs-pedal { transform-box: view-box; transform-origin: 2px -16px; animation: hs-pedal .45s ease-in-out infinite alternate; }
@keyframes hs-kick { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
@keyframes hs-spin { to { transform: rotate(360deg); } }
@keyframes hs-pedal { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .hs-drag .hs-leg, .hs-drag .hs-arm, .hs-drag .hs-wheel, .hs-drag .hs-pedal, .hs-drag.walking .hs-leg, .hs-drag.walking .hs-arm { animation: none; } }
.home-illustration img { display: block; width: 100%; height: auto; }
.out-actions { display: flex; flex-direction: column; gap: 10px; }
.out-action { display: flex; width: 100%; min-height: 76px; align-items: center; gap: 13px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 16px; text-align: left; box-shadow: var(--shadow-card); -webkit-tap-highlight-color: transparent; }
.out-action.primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.out-action.secondary { background: var(--card); color: var(--ink); }
.out-action-icon { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border-radius: 14px; background: rgba(255,255,255,.13); color: inherit; }
.out-action.secondary .out-action-icon { background: var(--bg); color: var(--ink2); }
.out-action-icon .i { width: 21px; height: 21px; }
.out-action-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.out-action-copy b { font-size: 15px; line-height: 1.3; font-weight: 700; }
.out-action-copy small { color: inherit; opacity: .7; font-size: 12px; line-height: 1.35; }
.out-action-arrow { flex: none; color: var(--amber); font-size: 23px; line-height: 1; }
.out-action.secondary .out-action-arrow { color: var(--muted); }
.out-action:active { transform: scale(.97); }
.hq-r:not(.col) { flex-direction: row; align-items: flex-start; gap: 10px; }
.hq-r:not(.col) .hq-l { flex: none; width: 96px; min-height: 34px; }
.hq-r:not(.col) .hq-c { flex: 1; min-width: 0; }
.hq-r { padding: 8px 12px; }
.hq-r.col .hq-chips { flex-wrap: nowrap; }
.hq-r.col .hq-chips .chip { padding: 0 11px; }
/* results page: no top bar; the back button always sits in the search row */
body.no-top .top { display: none; }
body.no-top .rs-row .rs-back-l { display: grid; }
body.no-top .view:not(.mapv) > .rs-row { padding-top: calc(10px + env(safe-area-inset-top)); }
.hq-off { opacity: .4; pointer-events: none; }
.hq > div:not(.hq-r):not(.hq-search):not(.hq-filter-head) { border-top: 1px solid var(--line2); }
/* Commute promo card under the search & filters card */
.hq-cm { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--amber); border-radius: var(--radius); background: linear-gradient(135deg, var(--amber-soft), var(--card) 75%); }
.hq-cm-ic { flex: none; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--amber); color: var(--on-amber); }
.hq-cm-ic .i { width: 20px; height: 20px; }
.hq-cm-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hq-cm-t b { font-size: 13.5px; font-weight: 700; }
.hq-cm-t small { font-size: 11.5px; color: var(--muted); }
.hq-cm-b { flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 12px; border: 1px solid var(--amber); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 700; }
.hq-cm-b:active { transform: scale(.97); }
/* Beds pills size to their label and wrap; equal-width pills clipped "Studio" on narrow phones */
.hq-beds { flex-wrap: wrap; overflow-x: visible; scrollbar-width: none; }
.hq-beds::-webkit-scrollbar { display: none; }
.hq-beds .chip { flex: 0 0 auto; min-width: 0; padding: 0 11px; font-size: 13px; }
.hq-r.col .hq-chips.hq-beds { flex-wrap: wrap; }

/* ---- b424: results list & location picker follow the first page's card language ---- */
/* results page: count, sort, save and the quick filters inside one white card */
.rl-card { flex: none; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; box-shadow: var(--shadow-lift); }
.rl-card .rl-h { margin: 0; padding: 10px 12px 9px; }
.rl-card .rl-n { font-size: 13px; color: var(--muted); }
.rl-card .rl-n b { font-size: 17px; color: var(--amber-ink); }
.rl-card .rl-sort { border-color: var(--line); background: var(--bg); }
.rl-card .rl-save { border-color: var(--line); background: var(--bg); }
.rl-card .qbar.rl-q { margin: 0; padding: 8px 10px 10px; border-top: 1px solid var(--line2); }
.rl-card .qbar.rl-q button { border-color: var(--line); background: var(--bg); }
.rl-card .qbar.rl-q button.on { background: var(--amber-soft); border-color: var(--amber); }
/* results cards: rounded-square photo, amber data price like the rest of the app */
.view .home { border-radius: var(--radius); box-shadow: var(--shadow-card); }
.view .home .hc-av { width: 46px; height: 46px; border-radius: 12px; }
.view .home .hc-p b { color: var(--amber-ink); }
.view .home .hc-info { display: block; margin-top: 1px; }
/* location & distance sheet: grey canvas with white cards, like the first page */
.sheet.srch2 { background: var(--bg); gap: 12px; }
.sheet.srch2 .post-h { position: sticky; top: -12px; z-index: 4; margin: -12px -16px 0; padding: 12px 16px 6px; background: var(--bg); }
.sheet.srch2 .post-h h2 { font-size: 19px; font-weight: 800; letter-spacing: -.2px; }
.sheet.srch2 .post-h button { width: 38px; height: 38px; margin-right: -6px; border-radius: 12px; background: var(--card); box-shadow: 0 1px 3px rgba(22,24,29,.12); color: var(--ink2); }
.sheet.srch2 .srch-box { min-height: 52px; border-color: var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(16,18,22,.04); }
.sheet.srch2 .srch-loc { margin-bottom: 10px; }
.sheet.srch2 .kw-near { border-color: var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(16,18,22,.04); }
.sheet.srch2 .sr-h .label { font-size: 15px; font-weight: 800; }
.sheet.srch2 .fold.loc-card { border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.sheet.srch2 .fold.loc-card .head { min-height: 54px; padding: 0 14px; }
.sheet.srch2 .fold.loc-card .head b { font-size: 14.5px; }
.sheet.srch2 .fold.loc-card .head[aria-expanded="true"] { background: var(--accent-tint); }
.sheet.srch2 .fold.loc-card .body { padding: 12px 12px 14px; }
.sheet.srch2 .post-f.qf-f { background: var(--bg); border-top: 1px solid var(--line); }
.sheet.srch2 .qf-f { flex-wrap: nowrap; }
.sheet.srch2 .qf-f .btn.srch-apply { flex: 1 1 0; padding: 0 12px; border-color: var(--ink); color: var(--ink); }
.sheet.srch2 .qf-f .btn.srch-go { flex: 1.3 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.sheet.srch2 .qf-f .btn.srch-go .i { width: 17px; height: 17px; }

/* ---- settings rebuild + board list in first-page card language ---- */
.set-sec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow-lift); }
.set-sec > h2 { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.set-sec > h2 .i { width: 18px; height: 18px; color: var(--ink2); flex: none; }
.set-sub { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; line-height: 1.4; }
.set-sec .group { margin: 0 0 12px; }
.set-sec .group:last-child { margin-bottom: 0; }
.set-sec .label { font-size: 13px; }
.set-sec .chips .chip { min-height: 36px; font-size: 13.5px; }
.set-div { height: 1px; background: var(--line2); margin: 12px 0; }
.set-sec .hint { margin: 4px 0 0; }
/* board: header card like the first page */
.bd-head-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; box-shadow: var(--shadow-lift); }
.bd-head-card .bd-intro { margin: 0 0 10px; }
.bd-head-card .bd-seg button { border-radius: 12px; }
.bd-head-card .bd-f { margin: 10px 0 0; }
.bd-list .card.wp-c { border-radius: var(--radius); box-shadow: var(--shadow-card); }
.tags.wp-f .more { background: none; color: var(--faint); font-weight: 600; padding: 3px 2px; }

/* post money uses the same amber data colour as the first-page cards */
.wp2-m b { color: var(--amber-ink); }

/* Keep every board filter visible on phone widths; the view switch gets its own row. */
@media (max-width: 430px) {
  .bd-head-card .bd-f { flex-wrap: wrap; }
  .bd-head-card .bd-chips { flex: 1 0 100%; flex-wrap: wrap; overflow: visible; }
  .bd-head-card .bd-f .vt { margin-left: auto; }
}

/* The fixed-width Message action otherwise gets clipped beside the post status on narrow phones. */
@media (max-width: 330px) {
  .bd-list .wp2-list-h { flex-wrap: wrap; }
  .bd-list .wp2-list-h .wp2-msg { margin-left: auto; }
}

/* profile chips in the post wizard follow the site-wide amber selected state, not the post-form black */
.wiz-prof .chip[aria-pressed="true"] { border-color: var(--amber); background: var(--amber-soft); color: var(--ink); }
.wiz-prof .chip[aria-pressed="true"] .i { color: var(--ink); }

/* every selected chip in the post wizards follows the site-wide amber selected state */
.offer-post .chip[aria-pressed="true"] { border-color: var(--amber); background: var(--amber-soft); color: var(--ink); }
.offer-post .chip[aria-pressed="true"] .i { color: var(--ink); }

/* board: home-style mode segment + sell placeholder */
.seg-tabs.goal.bd-mode { margin-bottom: 12px; }
.bd-sell { padding: 34px 18px; }
.bd-sell > .i { width: 34px; height: 34px; }
.bd-sell .hint { max-width: 280px; }

/* identity verification (owner / agent) */
.vf-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.vf-badge .i { width: 12px; height: 12px; }
.vf-badge.owner { background: var(--good-soft); color: var(--good); }
.vf-badge.agent { background: #e3eefb; color: #2456a6; }
.vf-badge.basic { background: var(--line2); color: var(--muted); }
.vf-badge.none { background: var(--line2); color: var(--faint); }
.vf-badge-link { border: 0; background: none; padding: 0; display: inline-flex; }
.vf-sh { max-height: 88vh; }
.vf-sub { margin: 0 0 10px; }
.vf-list { display: flex; flex-direction: column; gap: 8px; }
.vf-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--line, var(--line)); background: var(--card, #fff); border-radius: 12px; padding: 12px 14px; }
.vf-card.ok { border-color: rgba(47,107,63,.4); }
.vf-card.expired { border-color: #d8b078; }
.vf-card.wait { border-color: var(--amber); }
.vf-card.bad { border-color: #e0a9a9; }
.vf-card.rev { border-color: #d8a7d8; }
.vf-ic { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.vf-ic .i { width: 18px; height: 18px; }
.vf-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vf-t small { color: var(--muted, #777); }
.vf-back { margin: -4px 0 8px; }
.vf-note { border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 12px; }
.vf-note.ok { background: var(--good-soft); color: var(--good); }
.vf-note.wait { background: var(--amber-soft); color: var(--amber-ink); }
.vf-note.bad { background: #fbe9e9; color: #8a2f2f; }
.vf-msg { font-size: 13.5px; margin: 10px 0 0; }
.vf-msg.bad { color: #a33; }
.vf-disc { margin: 14px 0 8px; }
.vf-gate { border: 1px dashed #d9b45a; background: #fbf6e6; border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
.vf-gate.wait { border-color: #b9c7d9; background: #f2f6fb; }
.vf-gate p { margin: 4px 0 8px; }
.vf-gate-a { display: flex; align-items: center; gap: 12px; }
.vf-hdb { margin: 8px 0 0; }
.vf-comp { margin-top: 10px; }
.vf-comp-line { font-size: 13px; color: var(--muted, #666); margin: 8px 0 0; }
.vf-sign { font-size: 13px; margin-top: 8px; }
.vf-decl { text-align: left; }
.vf-who { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; flex-wrap: wrap; }
.vf-card-static { border: 1px solid var(--line, var(--line)); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.vf-card-static.ok { border-color: rgba(47,107,63,.4); }
.vf-card-static.wait { border-color: var(--amber); }
.vf-line { margin: 4px 0 0; }
.vf-report { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; }

.vf-badge.review { background: var(--amber-soft); color: var(--amber-ink); }
.vf-badge.expired { background: var(--line2); color: var(--bad); }
.vf-badge.none { background: var(--line2); color: var(--faint); }

/* press feedback: a quick shrink on tappable things that don't define their own :active.
   transform-only, so it stays on the compositor; elements with a custom :active keep it (higher specificity). */
:is(button, [data-act], [role="button"], a, .btn, .chip, .kind, .mode, .st, .vt button, .mi, .sort-opt, .home, .place, .nt, .upp, .loc-row, .me-r, .hf-r, .mcal-m, .sch-i, .dl-i, .kc, .nf, .fb-opt, .art-c, .kw-near, .bd-agg, .bd-out-action, .bd-map-card, .bl-card, .ls-item, .th-peer, .msg-av, .pp, .dashed, .empty-act, .txt-btn, .link-btn, .pick-z button, .cl-sort .chip, .rs-f, .gm-btn, .ib, .msg-card, .wp2-u, .af-c, .sugg button, .menu .langs button, .lang button, .icon-btn, .burger, .top-home, .mact, .ix-b, .info-btn, .kw-place, .bd-map-pop-post, .sort-sw, .ph-item, .fpv-tag):not(.sw):not(.chv):not(.react-pop button):active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { :is(button, [data-act], [role="button"], a, .btn, .chip, .kind, .mode, .st, .vt button, .mi, .sort-opt, .home, .place, .nt, .upp, .loc-row, .me-r, .hf-r, .mcal-m, .sch-i, .dl-i, .kc, .nf, .fb-opt, .art-c, .kw-near, .bd-agg, .bd-out-action, .bd-map-card, .bl-card, .ls-item, .th-peer, .msg-av, .pp, .dashed, .empty-act, .txt-btn, .link-btn, .pick-z button, .cl-sort .chip, .rs-f, .gm-btn, .ib, .msg-card, .wp2-u, .af-c, .sugg button, .menu .langs button, .lang button, .icon-btn, .burger, .top-home, .mact, .ix-b, .info-btn, .kw-place, .bd-map-pop-post, .sort-sw, .ph-item, .fpv-tag):not(.sw):not(.chv):not(.react-pop button):active { transform: none; } }

/* quick-filter pills + popover card (prototype redesign) */
.qbar .qp { border-radius: 999px; }
.qbar .qp.on { border-color: var(--amber); background: var(--amber-soft); font-weight: 700; box-shadow: 0 0 0 1px rgba(217,164,65,.28); }
.qbar .qp .chv { color: var(--faint); }
.qbar.rl-q .qp { min-height: 36px; padding: 0 12px; font-size: 12.5px; }
/* popover card: icon header, scrolling body, Clear + Show footer */
.sheet.qf.qf-pop { padding: 0; gap: 0; border-radius: var(--radius); overflow: hidden; }
.sheet.qf.qf-pop > * { flex-shrink: 0; }
.qf-pop-h { display: flex; align-items: center; gap: 10px; padding: 13px 14px 11px; border-bottom: 1px solid var(--line2); }
.qf-pop-ic { flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--amber-soft); color: var(--amber); display: grid; place-items: center; }
.qf-pop-ic .i { width: 16px; height: 16px; }
.qf-pop-t { flex: 1; min-width: 0; }
.qf-pop-t b { display: block; font-size: 14px; line-height: 1.25; }
.qf-pop-t small { display: block; margin-top: 1px; font-size: 11px; color: var(--muted); }
.qf-pop-x { flex: none; border: 0; background: none; color: var(--muted); padding: 6px; margin: -4px -6px -4px 0; display: grid; place-items: center; }
.qf-pop-x .i { width: 18px; height: 18px; }
.sheet.qf.qf-pop .qf-pop-b { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.qf-pop-f { display: flex; gap: 8px; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line2); background: var(--bg); }
.qf-pop-f .btn.qf-clr, .qf-pop-f .qf-clr-ph { flex: 0 0 34%; }
.qf-pop-f .btn.qf-clr { min-height: 46px; }
.qf-pop-f .btn { flex: 1; min-height: 46px; }

/* Nearby "Around here" (area tab): summary tiles + per-category amenity cards */
.nb-sum-h { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.nb-sum-h .emo { font-size: 16px; line-height: 1; }
.nb-sum-d { margin-left: auto; max-width: 55%; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 999px; padding: 2px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-tiles { display: flex; gap: 6px; margin-bottom: 12px; }
.nb-tile { flex: 1 1 0; min-width: 0; }
.nb-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 9px 4px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: var(--shadow-card); text-align: center; }
.nb-tile .nb-ic { display: flex; color: var(--accent); }
.nb-tile .nb-ic .i { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nb-tile b { font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.nb-tile > span { font-size: 10px; font-weight: 600; color: var(--muted); line-height: 1.3; }
.nb-tile small { display: block; font-size: 9.5px; font-weight: 500; color: var(--faint); }
.nb-cat { gap: 0; padding: 4px 14px 8px; }
.nb-ch { display: flex; align-items: center; gap: 8px; width: 100%; padding: 11px 0 9px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.nb-ch .emo { font-size: 17px; line-height: 1; }
.nb-ch > b { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; }
.nb-ch .ns-c { flex: none; color: var(--faint); display: inline-flex; }
.nb-ch .ns-c .chv { width: 15px; height: 15px; }
.nb-items > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.nb-items > div:last-child { border-bottom: 0; }
.nb-il { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nb-tag { align-self: flex-start; padding: 1px 7px; border-radius: 6px; background: var(--accent-tint); color: var(--ink2); font-size: 10.5px; font-weight: 700; letter-spacing: .02em; line-height: 1.5; }
.nb-nm { font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.nb-nm:hover { text-decoration: underline; text-underline-offset: 2px; }
.nb-ir { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; padding-top: 3px; }
.nb-m { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.nb-m .i { width: 13px; height: 13px; color: var(--ink2); }
.nb-d { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }

/* Detail Area tab: tighter cards, shorter map, slimmer nearby/commute/noise rows. */
.d-area { display: flex; flex-direction: column; gap: 12px; }
.d-area .card { padding: 13px; gap: 6px; }
.d-area .card h2 { font-size: 15px; }
.d-area .dm-slot { height: 210px; }
/* Map card: edge-to-edge map, compact height, controls float over it. */
.d-area .card.d-mapcard { padding: 0; overflow: hidden; }
.d-area .d-mapcard .dm-slot { height: 200px; }
.d-area .d-mapcard .dm { border-radius: 0; }
/* "Route to" destination cards. */
.rt-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rt-add { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 3px 11px; border: 0; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.rt-add .i { width: 13px; height: 13px; }
.rt-cards { display: flex; flex-direction: column; gap: 8px; }
.rt-card { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); font: inherit; color: var(--ink); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rt-card.on { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.rt-card.off { opacity: .55; }
.rt-av { flex: none; width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--line2); color: var(--ink2); }
.rt-av .i { width: 18px; height: 18px; }
.rt-av.k-work { background: #DBEAFE; color: #1D4ED8; }
.rt-av.k-school { background: var(--amber-soft); color: var(--amber-ink); }
.rt-av.k-gym { background: #DCFCE7; color: #15803D; }
.rt-av.k-parents { background: #EDE9FE; color: #6D28D9; }
.rt-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rt-mid b { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-mid span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.rt-side b { font-size: 13px; font-weight: 800; }
.rt-side small { font-size: 10.5px; color: var(--muted); }
/* HDB block chips. */
.blk-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.blk-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 7px 2px; border: 1px solid var(--chip); border-radius: 10px; background: var(--card); font: inherit; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.blk-chip b { font-size: 13px; }
.blk-chip small { font-size: 9.5px; color: var(--muted); }
.blk-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-accent); }
.blk-chip[aria-pressed="true"] small { color: var(--on-accent); opacity: .7; }
/* Layers popover opens below the top-right button group. */
.dm-pop.tr { position: absolute; right: 0; top: 56px; align-self: auto; max-height: calc(100% - 120px); }
.d-area .nb-sum-h { margin: 0 0 6px; font-size: 13px; }
.d-area .nb-tiles { gap: 5px; margin-bottom: 8px; }
.d-area .nb-tile { padding: 6px 4px 6px; border-radius: 10px; }
.d-area .nb-tile b { font-size: 13px; }
.d-area .nb-tile > span { font-size: 9.5px; }
.d-area .nb-cat { padding: 2px 12px 6px; border-radius: 14px; }
.d-area .nb-ch { padding: 8px 0 6px; gap: 7px; }
.d-area .nb-ch .emo { font-size: 15px; }
.d-area .nb-ch > b { font-size: 13px; }
.d-area .nb-items > div { padding: 7px 0; gap: 8px; }
.d-area .nb-i .nb-tag { font-size: 10px; padding: 1px 6px; }
.d-area .nb-i .nb-nm, .d-area .nb-il { font-size: 12.5px; }
.d-area .nb-ir { font-size: 11px; gap: 6px; padding-top: 1px; }
.d-area .nb-m { font-size: 11px; gap: 3px; }
.d-area .nb-m .i { width: 12px; height: 12px; }
.d-area .nb-d { font-size: 10px; }
.d-area .cm-hub { gap: 6px; }
.d-area .cm2-dest { margin-top: 8px; padding: 10px; border-radius: 12px; }
.d-area .cm2-ways { margin-top: 8px; padding-top: 8px; }
.d-area .cm2-av { width: 32px; height: 32px; border-radius: 10px; }
.d-area .cm2-av .i { width: 17px; height: 17px; }
.d-area .cm2-nm b { font-size: 13.5px; }
.d-area .cm2-pills { padding-bottom: 2px; }
.d-area .cm2-add { margin-top: 10px; padding: 9px 12px; }
.d-area .wk-total { margin-top: 8px; padding: 8px 12px; }
.d-area .near > div { padding: 5px 0; gap: 8px; }
.d-area .gm-btn { margin-top: 2px; }

/* Search "Commute" panel: match the detail page's compact card rhythm — smaller titles, lighter weights. */
.cm-panel { padding: 12px 12px 10px; border-radius: 14px; }
.cm-head { gap: 8px; }
.cm-ic { width: 30px; height: 30px; border-radius: 10px; }
.cm-ic .i { width: 16px; height: 16px; }
.cm-ht { gap: 0; }
.cm-ht b { font-size: 15px; font-weight: 700; letter-spacing: 0; }
.cm-ht small { font-size: 11px; }
.cm-clear { font-size: 11.5px; font-weight: 600; padding: 4px 2px; }
.cm-catb { min-height: 28px; padding: 3px 9px; font-size: 11.5px; border-radius: 8px; }
.cm-menu button { font-size: 12.5px; padding: 8px 10px; }
.cm-list { gap: 8px; margin-top: 10px; }
/* Place rows inside the commute panel: same density as detail .cm2-dest */
.cm-panel .place.pc2.cm { padding: 11px 12px; gap: 8px; border-radius: 14px; }
.cm-panel .place.pc2.cm.on { border-width: 1.5px; }
.cm-panel .place.pc2.cm .p-head { gap: 8px; }
.cm-panel .place.pc2.cm .tick { width: 22px; height: 22px; border-radius: 8px; font-size: 12px; }
.cm-panel .place.pc2.cm .p-ic { width: 32px; height: 32px; border-radius: 10px; }
.cm-panel .place.pc2.cm .p-ic .i { width: 17px; height: 17px; }
.cm-panel .place.pc2.cm .cm-tt .p-name { font-size: 13.5px; font-weight: 600; }
.cm-panel .place.pc2.cm .cm-bdg { font-size: 9.5px; padding: 2px 5px; }
.cm-panel .place.pc2.cm .p-edit, .cm-panel .place.pc2.cm .p-rm { padding: 3px; }
.cm-panel .place.pc2.cm .cm-addr { font-size: 11px; margin-top: -3px; }
.cm-panel .p-grid.cm-grid { gap: 5px; margin-top: 0; }
.cm-panel .p-grid.cm-grid .pt { min-height: 34px; padding: 4px 7px; border-radius: 10px; font-size: 11.5px; gap: 4px; }
.cm-panel .p-grid.cm-grid .pt small { font-size: 9.5px; }
.cm-panel .p-grid.cm-grid .pt b { font-size: 11.5px; }
.cm-panel .p-grid.cm-grid .pt i { font-size: 9.5px; }
.cm-panel .place.pc2.cm .pq { padding: 10px; border-radius: 10px; gap: 6px; }
.cm-panel .place.pc2.cm .pq .mode { min-height: 38px; font-size: 11px; border-radius: 8px; }
.cm-panel .place.pc2.cm .pq .mode .e { font-size: 15px; }
.cm-panel .cm-add { min-height: 40px; padding: 8px 12px; border-radius: 12px; border-width: 1.5px; font-size: 12.5px; font-weight: 600; gap: 6px; }
.cm-panel .cm-add-ic { width: 18px; height: 18px; }
.cm-panel .cm-add-ic .i { width: 10px; height: 10px; }

/* ===== Results card: "Six" prototype layout (thumb + meta + price/score, listings line, transit band, unit pills) ===== */
.home.pc { border-radius: var(--radius); }
.pc-top { display: flex; gap: 12px; padding: 14px 14px 10px; }
.pc-th { position: relative; flex: none; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--line2); border: 1px solid var(--line); }
.pc-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-nb { position: absolute; left: 4px; bottom: 4px; padding: 1px 5px; border-radius: 6px; background: rgba(16, 18, 22, .68); color: #fff; font-size: 9px; font-style: normal; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.pc-hd { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pc-t1 { display: flex; align-items: center; min-height: 32px; padding-right: 70px; }
.pc-nm { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-width: 0; }
.pc-nm b { font-size: 16px; font-weight: 700; line-height: 1.25; }
.pc-nm .nm-t { margin-left: 0; }
.pc-meta { font-size: 12px; color: var(--muted); line-height: 1.4; }
.pc-pr { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 3px; }
.pc-px { display: flex; flex-direction: column; min-width: 0; }
.pc-pl { font-size: 11px; color: var(--muted); line-height: 1.3; }
.pc-pv { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.pc-pv b { font-size: 19px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pc-pv small { font-size: 11px; color: var(--ink2); font-weight: 600; }
.pc-sc { flex: none; display: flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px 0 8px; border-radius: 999px; border: 1px solid var(--amber); background: var(--amber-soft); }
.pc-sc b { font-size: 14px; font-weight: 800; line-height: 1; }
.pc-sc > span { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--amber-ink); line-height: 1; }
.pc-sc.none { border-style: dashed; border-color: var(--chip); background: var(--bg); height: auto; min-height: 30px; padding: 4px 9px; gap: 5px; }
.pc-sc.none > span { font-size: 10.5px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted); }
.pc-sc.none .emo { font-size: 13px; }
.pc-ls { display: flex; justify-content: space-between; gap: 8px; padding: 9px 14px; border-top: 1px solid var(--line2); font-size: 11px; color: var(--muted); }
.pc-ls b { color: var(--ink2); font-weight: 600; }
.pc-tr { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; background: var(--bg); border-top: 1px solid var(--line2); font-size: 12px; color: var(--ink2); }
.pc-mrt { display: block; }
.pc-tr .mrt-row { font-size: 12px; }
.pc-cm { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pc-cm .i { flex: none; width: 14px; height: 14px; color: var(--amber); }
.pc-cm-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-cm-v { flex: none; font-size: 11px; font-weight: 700; color: var(--good); background: var(--good-soft); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.pc-cm-x { font-size: 11px; color: var(--muted); }
.pc-un { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 14px 12px; border-top: 1px solid var(--line2); font-size: 11px; }
.pc-un > span { padding: 3px 8px; border-radius: 8px; background: var(--line2); color: var(--ink2); font-weight: 500; }
.pc-un > span.wt { background: var(--amber-soft); color: var(--ink); }
.pc-un > span.more { background: none; color: var(--faint); padding: 3px 2px; }
.pc-un .pc-vu { margin-left: auto; padding: 3px 0; background: none; border-radius: 0; color: var(--amber-ink); font-weight: 700; cursor: pointer; }
.home.pc .mact { width: 30px; height: 30px; }
/* Location picker rows (MRT stations, popular places): chip rows align left instead of the global flex-end. */
.loc-acc .chips { justify-content: flex-start; }
/* Tenant (sublet) identity badge + pinned verification sheet header. */
.vf-badge.tenant { background: #efe9f7; color: #6b4fa1; }
/* Verification sheets: keep the title bar pinned while the form scrolls. */
.vf-sh .post-h { position: sticky; top: -10px; z-index: 4; margin: -2px -16px 0; padding: 2px 16px 10px; background: var(--card); }

/* ---- motion pass: smooth state changes + page transitions (compositor-friendly only) ---- */
/* Every tappable control eases its press scale and colour/border changes instead of snapping.
   transform/opacity/colours only; elements with their own transition (.sw, .chv, .react-pop) keep it. */
:is(button, [data-act], [role="button"], a, .chip, .seg-tabs button, .tabs button, .vt button, .mi, .sort-opt, .home, .place, .nt, .upp, .loc-row, .me-r, .hf-r, .mcal-m, .sch-i, .dl-i, .kc, .nf, .fb-opt, .art-c, .kw-near, .bd-agg, .bd-out-action, .bd-map-card, .bl-card, .ls-item, .th-peer, .msg-av, .pp, .dashed, .empty-act, .txt-btn, .link-btn, .pick-z button, .cl-sort .chip, .rs-f, .gm-btn, .ib, .msg-card, .wp2-u, .af-c, .sugg button, .menu .langs button, .lang button, .icon-btn, .burger, .top-home, .mact, .ix-b, .info-btn, .kw-place, .bd-map-pop-post, .sort-sw, .ph-item, .fpv-tag):not(.sw):not(.chv):not(.react-pop button) {
  transition: transform .12s ease-out, background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
input:not([type=range]):not([type=checkbox]):not([type=radio]), textarea, select { transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
@media (prefers-reduced-motion: reduce) {
  :is(button, [data-act], [role="button"], a, .chip, .seg-tabs button, .tabs button, .vt button, .mi, .sort-opt, .home, .place, .nt, .upp, .loc-row, .me-r, .hf-r, .mcal-m, .sch-i, .dl-i, .kc, .nf, .fb-opt, .art-c, .kw-near, .bd-agg, .bd-out-action, .bd-map-card, .bl-card, .ls-item, .th-peer, .msg-av, .pp, .dashed, .empty-act, .txt-btn, .link-btn, .pick-z button, .cl-sort .chip, .rs-f, .gm-btn, .ib, .msg-card, .wp2-u, .af-c, .sugg button, .menu .langs button, .lang button, .icon-btn, .burger, .top-home, .mact, .ix-b, .info-btn, .kw-place, .bd-map-pop-post, .sort-sw, .ph-item, .fpv-tag):not(.sw):not(.chv):not(.react-pop button) { transition: none; }
}

/* long lists: let the browser skip painting cards far outside the viewport.
   contain-intrinsic-size keeps the scrollbar honest; `auto` adopts the real size after first render. */
@supports (content-visibility: auto) {
  .view .home { content-visibility: auto; contain-intrinsic-size: auto 150px; }
  .bd-list .card.wp-c { content-visibility: auto; contain-intrinsic-size: auto 240px; }
  .cl-card { content-visibility: auto; contain-intrinsic-size: auto 84px; }
  .me-r, .hf-r, .srow, .nt { content-visibility: auto; contain-intrinsic-size: auto 56px; }
}

/* Floor-plan room tags: composer edits (tap to add / tap tag to remove), viewers see them read-only. */
.fpv-tags { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; transform-origin: 50% 50%; will-change: transform; }
.fpv-tags.ed .fpv-tag { pointer-events: auto; cursor: pointer; }
.fpv-tag { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; padding: calc(3px / var(--fzs, 1)) calc(9px / var(--fzs, 1)); border-radius: 999px; background: rgba(255, 255, 255, .92); color: #d92d20; font-size: calc(11.5px / var(--fzs, 1)); font-weight: 700; line-height: 1.5; white-space: nowrap; box-shadow: 0 1px 5px rgba(0, 0, 0, .4); border: calc(1.5px / var(--fzs, 1)) solid rgba(255, 255, 255, 1); text-shadow: 0 0 2px rgba(255, 255, 255, .95), 0 0 3px rgba(255, 255, 255, .8); }
.fpv-tag::after { content: ''; position: absolute; left: 50%; bottom: calc(-5px / var(--fzs, 1)); width: calc(7px / var(--fzs, 1)); height: calc(7px / var(--fzs, 1)); transform: translateX(-50%) rotate(45deg); background: rgba(255, 255, 255, .92); border-radius: 1.5px; }
.fpv-tagbar { position: absolute; top: calc(56px + env(safe-area-inset-top)); left: 0; right: 0; z-index: 2; display: flex; flex-direction: column; gap: 6px; padding: 7px 14px 9px; background: rgba(0, 0, 0, .38); color: #fff; font-size: 12px; }
.fpv-tagbar-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fpv-taglab { display: flex; align-items: center; gap: 8px; }
.fpv-taglab .tg-chips { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fpv-taglab .tg-chips::-webkit-scrollbar { display: none; }
.fpv-taglab .tg-chip { flex: none; }
.fpv-taglab .tg-chip.on { background: #fff; color: #20232a; }
.fpv-taglab .tg-custom { flex: none; width: 118px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 12.5px; padding: 6px 12px; outline: none; }
.fpv-taglab .tg-custom::placeholder { color: rgba(255, 255, 255, .65); }
.fpv-tagbar span { min-width: 0; }
.fpv-tagbar button { flex: none; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 14px; border-radius: 999px; }

/* Post-type chooser on the Rent Board: one Post button opens this sheet. */
.pm-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.pm-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-align: left; }
.pm-opt:active { background: var(--accent-tint); }
.pm-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--ink); }
.pm-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pm-tx b { font-size: 14.5px; font-weight: 600; }
.pm-tx small { font-size: 12px; color: var(--muted); }
.pm-go { flex: none; width: 18px; height: 18px; color: var(--faint); }
.pm-strip { margin-top: 12px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--line2); -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.pm-track { display: flex; width: max-content; height: 100%; animation: pmDrift 52s linear infinite; }
.pm-set { display: flex; flex: none; gap: 6px; padding-right: 6px; }
.pm-set img { width: 56px; height: 56px; flex: none; object-fit: cover; border-radius: 9px; background: var(--card); }
.pm-strip:hover .pm-track, .pm-strip:focus-within .pm-track { animation-play-state: paused; }
@keyframes pmDrift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .pm-track { animation: none; } .pm-strip { overflow-x: auto; scrollbar-width: none; } .pm-strip::-webkit-scrollbar { display: none; } }
.mvd { margin-top: 12px; }
.mvd .label { display: block; margin-bottom: 6px; }
.mvd input[type="date"] { display: block; width: 100%; }

/* ---- voice messages: exact prototype geometry, live audio progress ---- */
.vb-hold { flex: 1; min-width: 0; min-height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--chat-card); color: var(--chat-icon); font: inherit; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.vb-hold .i { width: 20px; height: 20px; color: inherit; }
.bubble.vb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 210px; max-width: 100%; padding: 12px; border: 1px solid var(--chat-vline); white-space: normal; }
.msg-row.me .bubble.vb { min-width: 190px; max-width: 230px; border: 0; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.bubble.vb small, .bubble.vb .reacts { flex: 1 0 100%; }
.bubble.vb .vec { flex: none; display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; background: transparent; color: var(--chat-icon); transition: color .15s ease; }
.msg-row.me .bubble.vb .vec { width: 16px; height: 16px; background: transparent; color: #FFFFFF; }
.bubble.vb .vec .i { width: 20px; height: 20px; }
.msg-row.me .bubble.vb .vec .i { width: 16px; height: 16px; }
.bubble.vb .vw { position: relative; display: block; flex: 0 0 49px; width: 49px; height: 32px; min-width: 49px; max-width: none; }
.msg-row.me .bubble.vb .vw { flex-basis: 36px; width: 36px; height: 24px; min-width: 36px; }
.bubble.vb .vwave { position: absolute; inset: 0 0 4px; display: flex; align-items: center; gap: 3px; height: 28px; }
.msg-row.me .bubble.vb .vwave { inset: 0; height: 24px; }
.bubble.vb .vwave b { flex: 0 0 3.5px; width: 3.5px; min-width: 3.5px; border-radius: 999px; background: currentColor; }
.bubble.vb .vbase { color: var(--chat-wave); opacity: 1; }
.bubble.vb .vfill { --progress: 0%; position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 calc(100% - var(--progress)) 0 0); color: var(--chat-wave-played); pointer-events: none; }
.bubble.vb .vfill b:nth-child(1), .bubble.vb .vfill b:nth-child(4) { color: #525252; }
.msg-row.me .bubble.vb .vbase { color: #525252; }
.msg-row.me .bubble.vb .vfill, .msg-row.me .bubble.vb .vfill b:nth-child(1), .msg-row.me .bubble.vb .vfill b:nth-child(4) { color: #FFFFFF; }
.msg-row.me .bubble.vb .vfill b:nth-child(1) { opacity: .7; }
.msg-row.me .bubble.vb .vfill b:nth-child(4) { opacity: .8; }
.bubble.vb .vlen { flex: none; min-width: 27px; padding-left: 4px; color: #525252; font-size: 12px; font-weight: 500; line-height: 16px; opacity: 1; font-variant-numeric: tabular-nums; }
.msg-row.me .bubble.vb .vlen { min-width: 28px; padding-left: 0; color: #E5E5E5; font-weight: 600; }
.bubble.vb small { display: flex; justify-content: space-between; margin-top: 0; color: var(--chat-meta); font-size: 11px; font-weight: 400; line-height: 1.35; text-align: left; opacity: 1; }
.msg-row.me .bubble.vb small { justify-content: flex-end; font-size: 10.5px; }
.bubble.vb .vsend, .bubble.vb .vretry { flex: 1 0 100%; text-align: right; }
.bubble.vb .vsend { font-size: 11px; opacity: .75; }
.bubble.vb.fail { box-shadow: 0 0 0 1px var(--fav); }
.bubble.vb .vretry { border: 0; background: none; color: inherit; font: inherit; font-size: 12px; font-weight: 600; text-decoration: underline; padding: 0; }
.rec-hud { --rec-bg: #18191B; --rec-red: #E53935; position: fixed; left: 50%; right: auto; bottom: calc(141px + env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: center; width: calc(100% - 24px); max-width: 340px; padding: 8px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: var(--rec-bg); color: #FFFFFF; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); backdrop-filter: blur(12px); transform: translateX(-50%); transition: background-color .3s cubic-bezier(.4,0,.2,1), color .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1); pointer-events: none; }
.rec-hud.cancel { background: var(--bad); color: #FFFFFF; }
.rec-top { display: flex; align-items: center; width: 100%; min-width: 0; font-size: 12px; }
.rec-top b { flex: none; min-width: 29px; margin-right: 12px; color: #FFFFFF; font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.rec-dot { flex: none; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--rec-red); box-shadow: 0 0 8px var(--rec-red); animation: pulse-recording 1.4s ease-in-out infinite; }
.rec-wave { flex: 1; min-width: 45px; display: flex; align-items: center; justify-content: center; gap: 4px; height: 24px; margin-right: 12px; padding: 0 4px; opacity: 1; }
.rec-wave i { flex: 0 0 3px; width: 3px; border-radius: 999px; background: #FFFFFF; }
.rec-wave i:nth-child(1), .rec-wave i:nth-child(7) { background: #A3A3A3; }
.rec-wave i:nth-child(2), .rec-wave i:nth-child(6) { background: #E5E5E5; }
.rec-wave i:nth-child(4) { background: #D4D4D4; }
.wave-anim-1 { animation: wave-bounce 1s ease-in-out infinite .1s; }
.wave-anim-2 { animation: wave-bounce 1.1s ease-in-out infinite .25s; }
.wave-anim-3 { animation: wave-bounce .9s ease-in-out infinite .4s; }
.wave-anim-4 { animation: wave-bounce 1.2s ease-in-out infinite .15s; }
.rec-hud:not(.ready) .rec-wave i { animation-play-state: paused; }
.rec-acts { flex: none; display: flex; gap: 6px; pointer-events: auto; }
/* Holding to talk shows only the dot, timer and live wave; the explicit cancel/send controls appear once the gesture is locked hands-free. */
.rec-hud:not(.locked) .rec-acts { display: none; }
.rec-hud:not(.locked) .rec-wave { margin-right: 0; }
.rec-x, .rec-send { flex: none; width: 28px; height: 28px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.rec-x { border: 0; background: transparent; color: #A3A3A3; opacity: 1; }
.rec-send { border: 0; background: #FFFFFF; color: #171717; box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1); }
.rec-x:active, .rec-send:active { transform: scale(.95); }
.rec-x .i { width: 16px; height: 16px; }
.rec-send .i { width: 14px; height: 14px; }
@media (hover: hover) { .rec-x:hover { color: #FFFFFF; background: rgba(38,38,38,.8); } .rec-send:hover { background: #E5E5E5; } }
.rec-sub { position: absolute; bottom: calc(100% + 6px); left: 8px; right: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 16px; padding: 0 3px; color: var(--chat-tool); font-size: 11px; line-height: 1.35; }
.rec-sub span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 1; }
.rec-sub em { flex: none; color: var(--rec-red); font-style: normal; font-weight: 700; }
@keyframes pulse-recording { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.88); } }
@keyframes wave-bounce { 0%, 100% { height: 6px; } 50% { height: 18px; } }
.sheet.vperm { gap: 12px; }
.sheet.vperm .btn { width: 100%; }
.sheet.vperm p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.sheet.vperm .hint { color: var(--muted); }
@media (max-width: 360px) { .rec-hud { bottom: calc(141px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .rec-wave i, .rec-dot { animation: none; } .rec-hud { transition: none; } }


/* ---- chat photos ---- */
.bubble.ib { padding: 4px 4px 2px; background: var(--chat-card); white-space: normal; overflow: hidden; }
.msg-row.me .bubble.ib { background: var(--chat-sent); }
.bubble.ib.pend { opacity: 1; }
.bubble.ib .ibw { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; position: relative; border-radius: 12px; overflow: hidden; }
.bubble.ib img { display: block; width: auto; max-width: min(64vw, 240px); max-height: 280px; border-radius: 12px; background: var(--line2); object-fit: cover; }
.bubble.ib img.bad { width: 160px; height: 110px; object-fit: contain; }
.bubble.ib .ibx { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 150px; height: 104px; border-radius: 12px; background: var(--line2); color: var(--muted); }
.bubble.ib .ibx .i { width: 24px; height: 24px; }
.bubble.ib .ibx em { font-style: normal; font-size: 11.5px; }
.bubble.ib small { padding: 0 6px; }
.bubble.ib .ibspin { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 12px; background: rgba(16, 18, 22, .42); color: #fff; font-size: 11.5px; font-weight: 600; }
.bubble.ib .ibspin i { width: 17px; height: 17px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: ibspin .8s linear infinite; }
.bubble.ib .ibspin em { font-style: normal; }
@keyframes ibspin { to { transform: rotate(360deg); } }
.bubble.ib.fail { border-color: var(--fav); }
.bubble.ib .ibfail { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px 8px; background: rgba(16, 18, 22, .66); color: #fff; font-size: 11px; text-align: left; }
.bubble.ib .ibfail em { font-style: normal; }
.bubble.ib .ibretry { width: 100%; margin: 2px 0 0; padding: 4px 0 2px; border: 0; background: none; color: inherit; font: inherit; font-size: 12px; font-weight: 700; text-decoration: underline; }
.sheet.ip { gap: 12px; }
.ip-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ip-head h2 { margin: 0; }
.ip-src { display: flex; gap: 8px; }
.ip-s { flex: 1; min-width: 0; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600; }
.ip-s .i { width: 19px; height: 19px; color: var(--accent-ink); }
.ip-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 12px 4px; text-align: center; color: var(--muted); }
.ip-eic { width: 46px; height: 46px; border-radius: 50%; background: var(--line2); display: grid; place-items: center; color: var(--ink2); }
.ip-eic .i { width: 22px; height: 22px; }
.ip-empty p { margin: 0; font-size: 13px; line-height: 1.45; }
.ip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ip-i { position: relative; margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--line2); }
.ip-i img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ip-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(16, 18, 22, .62); color: #fff; display: grid; place-items: center; }
.ip-x .i { width: 15px; height: 15px; }
.ip-add { min-height: 0; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1.5px dashed var(--chip); border-radius: 10px; background: var(--bg); color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 600; }
.ip-add .i { width: 20px; height: 20px; }
.ip-orig { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; }
.ip-orig input { width: 20px; height: 20px; flex: none; accent-color: var(--accent); margin: 0; }
.ip-orig span { display: flex; flex-direction: column; gap: 1px; }
.ip-orig small { color: var(--muted); font-size: 12px; }
.ip-send { width: 100%; }
.ip-perm { align-self: center; }
.sheet.cam { gap: 10px; }
.cam-v { position: relative; width: 100%; aspect-ratio: 3 / 4; max-height: 58vh; border-radius: 14px; overflow: hidden; background: #101216; }
.cam-v video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-wait { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 13px; background: rgba(16, 18, 22, .35); }
.cam-err { margin: 0; font-size: 13px; line-height: 1.45; color: var(--bad); }
.cam-acts .btn { width: 100%; }
.cam-hint { margin: 0; text-align: center; }
.fpv-ha { display: flex; align-items: center; flex: none; }
.fpv-save .i { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .bubble.ib .ibspin i { animation: none; } }

/* Shared-post card in chat + chat picker + recalled placeholder */
.msg-share { position: relative; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.share-b { position: relative; padding-right: 74px; }
.share-cv { position: absolute; right: 10px; top: 10px; width: 58px; height: 58px; border-radius: 10px; object-fit: cover; background: var(--line2); }
.share-t { font-size: 14px; }
.share-d { font-size: 12.5px; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.share-a { font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; }
.share-a .i { width: 12px; height: 12px; color: var(--good); }
.share-dead { opacity: .55; }
.msg-recalled { opacity: .55; font-style: italic; }
.share-sheet .share-sub { margin: 4px 0 2px; font-size: 13px; color: var(--ink2); }
.share-list { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; max-height: 50vh; overflow-y: auto; }
.share-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; text-align: left; }
.share-row.on { border-color: var(--amber); background: var(--accent-soft); }
.share-row .th-av { flex: none; }
.share-ck { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--on-amber); }
.share-row.on .share-ck { background: var(--amber); border-color: var(--amber); }
.share-ck .i { width: 13px; height: 13px; }
.react-recall { flex: none; align-self: center; margin-left: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--bad, #c0392b); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }

/* ---- dark overrides for components that keep bespoke pastel colors ---- */
:root[data-theme="dark"] .cm2-av.k-work, :root[data-theme="dark"] .rt-av.k-work { background: #1E2C47; color: #8FB4F0; }
:root[data-theme="dark"] .cm2-av.k-gym, :root[data-theme="dark"] .rt-av.k-gym { background: #1C3325; color: #8FD3A8; }
:root[data-theme="dark"] .cm2-av.k-parents, :root[data-theme="dark"] .rt-av.k-parents { background: #2E2545; color: #B7A5F0; }
:root[data-theme="dark"] .vf-badge.agent { background: #22304A; color: #A9C3F0; }
:root[data-theme="dark"] .vf-badge.tenant { background: #332A47; color: #C4AEF0; }
:root[data-theme="dark"] .vf-note.bad { background: #3A1F1D; color: #F0A79E; }
:root[data-theme="dark"] .vf-msg.bad { color: #EE9A92; }
:root[data-theme="dark"] .vf-gate { border-color: #8A6D2F; background: #33291A; }
:root[data-theme="dark"] .vf-gate.wait { border-color: #3E4C5E; background: #1E2630; }
:root[data-theme="dark"] .vf-card.expired { border-color: #7A5B2E; }
:root[data-theme="dark"] .vf-card.bad { border-color: #7A3B3B; }
:root[data-theme="dark"] .vf-card.rev { border-color: #6E4A6E; }
:root[data-theme="dark"] .sheet.offer-post {
  --offer-ink: #E8EAED; --offer-ink2: #B9BEC7; --offer-ink3: #8B919C; --offer-line: #2A2F37;
  --offer-bg: #14171C; --offer-brand: #E8EAED; --offer-brand-ink: #16181D; --offer-gold: #E3B45C; --offer-gold-soft: #3A2F1A;
  --offer-ok: #5FCB8F; --offer-warn: #E08A6D;
}
:root[data-theme="dark"] .offer-rent-set { border-color: #6B5426; background: #2E2716; }
:root[data-theme="dark"] .offer-rent-est .chip { border-color: #6B5426; background: #2E2716; }
:root[data-theme="dark"] .offer-type[aria-pressed="true"] { background: #2A2417; }
:root[data-theme="dark"] .offer-post .picked, :root[data-theme="dark"] .offer-post .mt-home { background: #2A2417; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .cm2-av.k-work, :root[data-theme="system"] .rt-av.k-work { background: #1E2C47; color: #8FB4F0; }
  :root[data-theme="system"] .cm2-av.k-gym, :root[data-theme="system"] .rt-av.k-gym { background: #1C3325; color: #8FD3A8; }
  :root[data-theme="system"] .cm2-av.k-parents, :root[data-theme="system"] .rt-av.k-parents { background: #2E2545; color: #B7A5F0; }
  :root[data-theme="system"] .vf-badge.agent { background: #22304A; color: #A9C3F0; }
  :root[data-theme="system"] .vf-badge.tenant { background: #332A47; color: #C4AEF0; }
  :root[data-theme="system"] .vf-note.bad { background: #3A1F1D; color: #F0A79E; }
  :root[data-theme="system"] .vf-msg.bad { color: #EE9A92; }
  :root[data-theme="system"] .vf-gate { border-color: #8A6D2F; background: #33291A; }
  :root[data-theme="system"] .vf-gate.wait { border-color: #3E4C5E; background: #1E2630; }
  :root[data-theme="system"] .vf-card.expired { border-color: #7A5B2E; }
  :root[data-theme="system"] .vf-card.bad { border-color: #7A3B3B; }
  :root[data-theme="system"] .vf-card.rev { border-color: #6E4A6E; }
  :root[data-theme="system"] .sheet.offer-post {
    --offer-ink: #E8EAED; --offer-ink2: #B9BEC7; --offer-ink3: #8B919C; --offer-line: #2A2F37;
    --offer-bg: #14171C; --offer-brand: #E8EAED; --offer-brand-ink: #16181D; --offer-gold: #E3B45C; --offer-gold-soft: #3A2F1A;
    --offer-ok: #5FCB8F; --offer-warn: #E08A6D;
  }
  :root[data-theme="system"] .offer-rent-set { border-color: #6B5426; background: #2E2716; }
  :root[data-theme="system"] .offer-rent-est .chip { border-color: #6B5426; background: #2E2716; }
  :root[data-theme="system"] .offer-type[aria-pressed="true"] { background: #2A2417; }
  :root[data-theme="system"] .offer-post .picked, :root[data-theme="system"] .offer-post .mt-home { background: #2A2417; }
}

/* Tap-a-message menu: reply / copy / recall row above the emoji reactions. */
.react-pop.msg-menu { flex-direction: column; align-items: stretch; gap: 8px; min-width: 210px; padding: 8px 12px; border: 1px solid var(--chat-vline); border-radius: 16px; background: var(--chat-card); color: var(--chat-ink); box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); animation: none; }
.msg-acts { display: flex; gap: 16px; padding: 0 4px 8px; border-bottom: 1px solid var(--chat-vline); }
.msg-acts button { display: flex; align-items: center; gap: 6px; width: auto; height: auto; min-height: 20px; padding: 2px 0; border: 0; border-radius: 0; background: none; color: var(--chat-ink); font: inherit; font-size: 12px; font-weight: 600; line-height: 16px; text-align: left; cursor: pointer; transition: transform .15s cubic-bezier(.4,0,.2,1), color .15s ease; }
.msg-acts button .i { width: 16px; height: 16px; flex: none; color: var(--chat-icon); }
.msg-acts button:active { transform: scale(.95); background: none; }
.msg-acts button.bad { color: var(--bad); }
.msg-acts button.bad .i { color: var(--bad); }
.msg-emojis { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px; }
.react-pop.msg-menu .msg-emojis button { width: auto; height: auto; min-width: 20px; padding: 2px; border-radius: 0; font-size: 16px; line-height: 20px; transition: transform .15s cubic-bezier(.4,0,.2,1); }
.react-pop.msg-menu .msg-emojis button:active { transform: scale(.95); }
.react-pop.msg-menu .msg-emojis button.on { background: var(--accent-soft); box-shadow: none; }
@media (hover: hover) { .msg-acts button:hover { color: var(--chat-icon); } .react-pop.msg-menu .msg-emojis button:hover { transform: scale(1.25); } }
.msg-reply { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; padding: 7px 8px 7px 12px; border-left: 3px solid var(--accent); border-radius: 10px; background: var(--accent-soft); }
.msg-reply-t { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink2); }
.msg-reply-t .i { width: 15px; height: 15px; flex: none; color: var(--accent-ink); }
.msg-reply-t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


:is(.av, .th-av, .msg-av) { overflow: visible; }      /* the VIP chip hangs over the corner; photos and initials round themselves */
:is(.av, .th-av, .msg-av) img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* ---- composer: textarea, emoji panel, stickers ---- */
.bar.cb { display: block; padding: 12px 12px calc(24px + env(safe-area-inset-bottom)); background: var(--chat-bg); border-top: 0; }
.cwrap { display: flex; flex-direction: column; gap: 7px; width: 100%; min-width: 0; }
.ctext { display: flex; align-items: flex-end; gap: 8px; min-width: 0; padding: 4px 4px 4px 14px; border: 1px solid var(--line); border-radius: 25px; background: var(--chat-card); }
.ctext:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.cta { display: block; flex: 1; min-width: 0; width: 100%; box-sizing: border-box; min-height: 40px; max-height: 112px; padding: 9px 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; line-height: 1.4; resize: none; overflow-y: auto; }
.cta:focus { outline: none; }
.crow { display: flex; align-items: center; gap: 5px; }
.composer-tools, .voice-tools { gap: 16px; padding: 2px 8px 0; }
.cico { flex: none; width: 36px; height: 36px; padding: 6px; border: 0; border-radius: 8px; background: transparent; color: var(--chat-tool); font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s ease, color .15s ease, background-color .15s ease; }
.cico .i { width: 24px; height: 24px; stroke-width: 1.8; }
.cico.on { background: var(--chat-hover); color: var(--chat-icon); }
.cico:active { transform: scale(.95); background: var(--chat-hover); color: var(--chat-icon); }
@media (hover: hover) { .cico:hover { color: var(--chat-icon); background: var(--chat-hover); } }
.cbtn { margin-left: auto; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.cbtn .i { width: 18px; height: 18px; }
.cbtn:active { transform: scale(.94); }
.qemo { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.qemo::-webkit-scrollbar { display: none; }
.qemo button { flex: none; width: 34px; height: 32px; padding: 0; border: 0; border-radius: 999px; background: transparent; font-size: 19px; line-height: 1; }
.qemo button:active { background: var(--accent-soft); }
.epanel { border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.emo-tabs { display: flex; gap: 4px; padding: 6px 6px 0; }
.emo-tab { flex: 1; min-width: 0; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emo-tab.on { background: var(--accent-soft); color: var(--accent-ink); }
.emo-body { max-height: 196px; overflow-y: auto; padding: 6px; -webkit-overflow-scrolling: touch; }
.emo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 2px; }
.emo-grid button { height: 38px; padding: 0; border: 0; border-radius: 8px; background: transparent; font-size: 23px; line-height: 1; }
.emo-grid button:active { background: var(--accent-soft); }
.emo-cat b { display: block; padding: 6px 6px 2px; color: var(--muted); font-size: 11px; font-weight: 600; }
.emo-empty { padding: 22px 8px; text-align: center; color: var(--muted); font-size: 12.5px; }
.stk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 8px; padding: 4px; }
.stk-grid .stk { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 12px; background: transparent; }
.stk-grid .stk:active { background: var(--accent-soft); }
.stk-grid .stk img { width: 100%; height: 100%; object-fit: contain; }
.stk-grid .stke { font-size: 38px; line-height: 1; }
.bubble.stkb { display: block; padding: 6px 10px 4px; border: 0; background: transparent; color: var(--ink); white-space: normal; }
.msg-row.me .bubble.stkb { background: transparent; color: var(--ink); }
.bubble.stkb .stke { font-size: 56px; line-height: 1.05; }
.bubble.stkb img { display: block; width: auto; max-width: 150px; max-height: 150px; }
.bubble.stkb small { color: var(--muted); text-align: right; opacity: 1; }
.bubble.stkb .stkm { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 18px; border-radius: 12px; background: var(--line2); color: var(--muted); }
.bubble.stkb .stkm .i { width: 22px; height: 22px; }
.bubble.stkb .stkm em { font-style: normal; font-size: 11.5px; }

/* location detail page (MRT / district / school / place) */
.ld { display: flex; flex-direction: column; gap: 14px; }
.ld-map { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--thumb); }
.ld-svg { display: block; width: 100%; height: auto; }
.ld-svg path.bg { fill: var(--chip); stroke: var(--line2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ld-svg path.bg.on { fill: var(--amber-soft); stroke: var(--amber); stroke-width: 2; }
.ld-svg path.ln { fill: none; stroke-width: 3; opacity: .8; }
.ld-svg .ld-nm { font-size: 15px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: rgba(255,255,255,.8); stroke-width: 3px; }
.ld-svg .ld-pin { fill: var(--accent); stroke: #fff; stroke-width: 3; }
.ld-name { font-size: 17px; font-weight: 700; margin: 2px 0 6px; }
.ld-ln { display: inline-block; min-width: 20px; padding: 1px 5px; border-radius: 4px; font-size: 11px; font-style: normal; font-weight: 700; line-height: 16px; color: #fff; text-align: center; }
.ld-ln:first-child { color: #16181D; }
.ld-acts { position: sticky; bottom: 0; padding: 10px 0 4px; background: linear-gradient(transparent, var(--bg) 30%); }
.ld-acts .btn { width: 100%; }
.pk2 { display: inline-flex; align-items: stretch; border-radius: 999px; border: 1px solid var(--chip); background: var(--card); color: var(--ink); overflow: hidden; }
.pk2 .pk-nm, .pk2 .pk-x { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; color: inherit; font: inherit; font-size: 13px; font-weight: 600; min-height: 34px; padding: 6px 10px; cursor: pointer; }
.pk2 .pk-nm i { width: 8px; height: 8px; border-radius: 50%; }
.pk2 .pk-x { padding: 6px 9px 6px 4px; color: var(--muted); }
.pk2 .pk-x .i { width: 14px; height: 14px; }
.picked .pk2, .chips .pk2 { background: var(--amber-soft); border-color: var(--amber); color: var(--ink); }
.picked .pk2 .pk-x { color: var(--ink2); }

/* blocking a member */
.up-blk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--line); }
.up-blk .hint { flex-basis: 100%; margin: 0; }
.up-blk .blk-ask { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12.5px; }
.up-blk .blk-ask.sure { color: var(--bad); font-weight: 700; }
.up-blk .blk-ask .i, .up-blk .blk-tag .i, .blk-pane .blk-pic .i { width: 15px; height: 15px; }
.up-blk .blk-tag { display: inline-flex; align-items: center; gap: 5px; color: var(--ink2); font-size: 12.5px; font-weight: 600; }
.up-blk .btn.small { min-height: 34px; padding: 0 12px; flex: 0 0 auto; margin-left: auto; }
.set-hd-row .btn.small { min-height: 34px; padding: 0 12px; flex: 0 0 auto; }
.blk-pane { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 34px 18px; }
.blk-pane .blk-pic { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: var(--line2); color: var(--muted); }
.blk-pane .blk-pic .i { width: 26px; height: 26px; }
.blk-pane b { font-size: 15.5px; }
.blk-pane p { margin: 0; max-width: 280px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.blk-pane .btn { margin-top: 6px; }

/* ---- AI: ask box, report page, post drafting (docs/ai-mobile.md) ---- */
.ai-card { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--accent-line); border-radius: var(--radius); background: linear-gradient(135deg, var(--accent-tint), var(--card) 70%); box-shadow: var(--shadow-card); }
.ai-h { display: flex; align-items: center; gap: 10px; }
.ai-ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.ai-ic .i { width: 19px; height: 19px; }
.ai-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ai-t b { font-size: 14.5px; font-weight: 700; }
.ai-t small { font-size: 12px; line-height: 1.35; color: var(--muted); }
.ai-beta { display: inline-block; margin-left: 4px; padding: 1px 6px; border: 1px solid var(--amber-line); border-radius: 99px; background: var(--amber-soft); color: var(--amber-ink); font-size: 10px; font-style: normal; font-weight: 700; vertical-align: 1px; }
.ai-last { flex: none; align-self: flex-start; min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink2); font: inherit; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ai-in { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.ai-in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.ai-in textarea.text { flex: none; width: 100%; min-width: 0; min-height: 56px; max-height: 180px; padding: 0; border: 0; background: transparent; box-shadow: none; resize: none; overflow-y: auto; font-size: 14px; line-height: 1.4; }
.ai-in textarea.text:focus { outline: 0; border: 0; box-shadow: none; }
.ai-in-ft { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.ai-go { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.ai-go .i { width: 15px; height: 15px; }
.ai-go[disabled] { opacity: .5; }
.ai-th { display: flex; flex-direction: column; gap: 8px; }
.ai-m.u { display: flex; justify-content: flex-end; }
.ai-m.u p { margin: 0; max-width: 86%; padding: 7px 12px; border-radius: 14px 14px 4px 14px; background: var(--accent); color: var(--on-accent); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.ai-m.a { display: flex; align-items: flex-start; gap: 6px; }
.ai-m.a .i { flex: none; width: 14px; height: 14px; margin-top: 2px; color: var(--amber-ink); }
.ai-m.a p { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--ink2); overflow-wrap: anywhere; }
.ai-ref { margin-top: 10px; }
.ai-refb { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--amber-line); border-radius: 14px; background: linear-gradient(135deg, var(--amber-soft), var(--card)); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ai-refb .i { flex: none; width: 18px; height: 18px; color: var(--amber-ink); }
.ai-refb .chv { flex: none; width: 16px; height: 16px; color: var(--muted); }
.ai-ref-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ai-ref-t b { font-size: 13px; font-weight: 700; }
.ai-ref-t small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-refx { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.ai-ref-h { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.ai-ref-h .i { width: 14px; height: 14px; }
.ai-ex { display: flex; align-items: center; gap: 6px; margin: 0 -14px; padding: 0 14px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ai-ex::-webkit-scrollbar { display: none; }
.ai-ex > span { flex: none; font-size: 12px; color: var(--muted); }
.ai-exb { flex: none; min-height: 32px; padding: 0 11px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink2); font: inherit; font-size: 12.5px; white-space: nowrap; }
.ai-exb:active { background: var(--accent-tint); }
.ai-exb[disabled] { opacity: .5; }
.ai-ex.col { flex-direction: column; align-items: stretch; margin: 0; padding: 0; overflow: visible; }
.ai-ex.col .ai-exb { min-height: 38px; padding: 8px 12px; border-radius: 12px; white-space: normal; text-align: left; line-height: 1.35; }
.ai-sent { font-size: 11.5px; }
.ai-pg { display: flex; flex-direction: column; gap: 12px; }
.ai-pg .card h2, .ai-post h2 { margin: 0; font-size: 15px; font-weight: 700; }
.ai-post h2 { display: flex; align-items: center; gap: 7px; }
.ai-post h2 .i { width: 18px; height: 18px; }
.ai-wait { display: flex; align-items: center; gap: 10px; padding: 6px 2px; font-size: 13.5px; color: var(--ink2); }
.ai-wait i { flex: none; width: 16px; height: 16px; border: 2px solid var(--chip); border-top-color: var(--accent); border-radius: 50%; animation: ai-spin .8s linear infinite; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ai-wait i { animation-duration: 2.4s; } }
.ai-q { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-chips span { padding: 5px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--ink); font-size: 12.5px; font-weight: 600; overflow-wrap: anywhere; }
.ai-rk, .ai-nf { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink2); overflow-wrap: anywhere; }
.ai-nf b { color: var(--amber-ink); }
.ai-sum p { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.ai-left { margin: 0; font-size: 12.5px; }
.ai-left.out { color: var(--bad); }
.ai-stale { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--accent-soft); font-size: 12.5px; line-height: 1.4; color: var(--ink2); }
.ai-stale span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.btn.ghost.ai-redo { flex: 0 0 auto; align-self: flex-start; min-height: 34px; padding: 6px 12px; font-size: 13px; }
.ai-cta { display: flex; gap: 8px; }
.ai-cta .btn { flex: 1 1 auto; min-width: 0; }
.ai-cta .btn.ghost { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; }
.ai-cta .btn .i { width: 16px; height: 16px; }
.ai-h2 { margin: 4px 2px 0; font-size: 15px; font-weight: 700; }
.ai-pick { position: relative; display: flex; flex-direction: column; }
.ai-no { position: absolute; top: -6px; left: -4px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; box-shadow: var(--shadow-card); }
.ai-why { display: flex; align-items: flex-start; gap: 8px; margin: -8px 0 0; padding: 16px 12px 10px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); background: var(--accent-tint); font-size: 13px; line-height: 1.45; color: var(--ink2); overflow-wrap: anywhere; }
.ai-why .i { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--amber-ink); }
.ai-tips ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.ai-tips li { font-size: 13px; line-height: 1.45; color: var(--ink2); overflow-wrap: anywhere; }
.ai-note { text-align: center; padding: 0 8px 8px; }
.ai-empty { text-align: center; padding: 18px 0; }
.ai-errc { border-color: var(--bad); background: var(--bad-soft); }
.ai-errc p, .ai-err { margin: 0; font-size: 13.5px; color: var(--bad); }
.ai-post { display: flex; flex-direction: column; gap: 10px; }
.ai-post textarea.text { min-height: 96px; }
.ai-post .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ai-post .btn .i { width: 16px; height: 16px; }
.ai-ban { display: flex; align-items: flex-start; gap: 8px; margin: 0 14px 10px; padding: 10px 12px; border: 1px solid var(--amber-line); border-radius: 12px; background: var(--amber-soft); font-size: 13px; line-height: 1.4; }
.ai-ban .i { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--amber-ink); }
.ai-ban small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink2); }
.qp.ai-qp { display: inline-flex; align-items: center; gap: 5px; border-color: var(--amber); background: var(--amber-soft); color: var(--ink); }
.qp.ai-qp .i { width: 14px; height: 14px; color: var(--amber-ink); }
.ai-tag { display: inline-flex; align-items: center; gap: 3px; margin: 0 6px; padding: 1px 6px; border-radius: 99px; background: var(--accent-soft, rgba(66,96,45,.12)); color: var(--accent-ink); font-size: 10px; font-style: normal; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; }
.ai-tag .i { width: 11px; height: 11px; }
.pm-opt.pm-ai { border-color: var(--amber); background: linear-gradient(135deg, var(--amber-soft), var(--card) 75%); }
.pm-opt.pm-ai .pm-ic { background: var(--amber); color: var(--on-amber); }

/* Ask-AI floating button: blue, glowing, with a slow shine sweep. */
#aiFab { position: fixed; right: 14px; bottom: calc(58px + env(safe-area-inset-bottom) + 14px); z-index: 28; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
#aiFab[hidden] { display: none; }
body.map-full #aiFab { bottom: calc(14px + env(safe-area-inset-bottom)); }
.ai-fab-ov { position: fixed; inset: 0; z-index: 28; }
.ai-fabpop { position: relative; z-index: 29; width: min(340px, calc(100vw - 28px)); padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: 0 10px 30px rgba(10, 40, 90, .18); animation: ppIn .14s ease-out; }
.ai-fabpop .ai-in { padding: 8px; }
.ai-refx .ai-ex, .ai-fabpop .ai-ex { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
.ai-fabpop .ai-in textarea.text { min-height: 64px; }
.ai-fabpop .ai-go { min-height: 38px; }
.ai-fabpop .ai-th { max-height: 180px; overflow-y: auto; }
.ai-fab-x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 30px; height: 30px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--accent-tint); color: var(--muted); cursor: pointer; }
.ai-fab-x .i { width: 15px; height: 15px; }
.ai-fab { position: relative; flex: none; overflow: hidden; width: 56px; height: 56px; border: 0; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #60a5fa, #2563eb 55%, #1d4ed8); box-shadow: 0 6px 18px rgba(37, 99, 235, .45), 0 0 0 4px rgba(59, 130, 246, .15); cursor: pointer; -webkit-tap-highlight-color: transparent; animation: aiFabGlow 2.4s ease-in-out infinite; }
.ai-fab:active { transform: scale(.94); }
.ai-fab .i { width: 26px; height: 26px; }
.ai-fab-shine { position: absolute; top: -60%; bottom: -60%; left: 0; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-180%) rotate(20deg); animation: aiFabShine 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes aiFabGlow { 0%, 100% { box-shadow: 0 6px 18px rgba(37, 99, 235, .4), 0 0 0 4px rgba(59, 130, 246, .12); } 50% { box-shadow: 0 6px 24px rgba(37, 99, 235, .65), 0 0 0 8px rgba(59, 130, 246, .2); } }
@keyframes aiFabShine { 0% { transform: translateX(-180%) rotate(20deg); } 55%, 100% { transform: translateX(310%) rotate(20deg); } }
@media (prefers-reduced-motion: reduce) { .ai-fab, .ai-fab-shine { animation: none; } }

/* Per-feature distance rows under the Near chips. */
.nf-dists { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.nf-drow { display: flex; flex-direction: column; gap: 5px; }
.nf-dlab { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.nf-dlab .i { width: 14px; height: 14px; }
.nf-dchips { flex-wrap: wrap; }
/* ---- VIP (docs/vip-mobile.md) ---- */
.vip-pg { display: flex; flex-direction: column; gap: 12px; }
.vip-hero { display: flex; align-items: center; gap: 12px; padding: 16px 14px; border: 1px solid var(--accent-line); border-radius: var(--radius); background: linear-gradient(135deg, var(--accent-tint), var(--card)); }
.vip-hero h1 { margin: 0; font-size: 20px; line-height: 1.2; }
.vip-hero p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--ink2); }
.vip-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--on-accent, #fff); }
.vip-ic .i { width: 22px; height: 22px; }
.vip-on { display: flex; flex-direction: column; gap: 3px; border-color: var(--good); background: var(--good-soft); }
.vip-on b { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--good); }
.vip-on b .i { width: 18px; height: 18px; }
.vip-on span { font-size: 13px; color: var(--ink2); }
.vip-note p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink2); }
.vip-perks ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.vip-perks li { display: flex; align-items: flex-start; gap: 10px; }
.vip-perks li > .i { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--good); }
.vip-perks li span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vip-perks li b { font-size: 14.5px; line-height: 1.35; }
.vip-perks li small { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.vip-opts { display: flex; gap: 10px; }
.vip-opt { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; text-align: left; }
.vip-opt.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.vip-opt .vip-d { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--ink2); }
.vip-opt .vip-d i { padding: 2px 7px; border-radius: 99px; background: var(--good-soft); color: var(--good); font-size: 11.5px; font-weight: 700; font-style: normal; }
.vip-opt b { font-size: 20px; line-height: 1.2; }
.vip-opt small { font-size: 12px; color: var(--muted); }
.vip-pay { width: 100%; }
.vip-fine { margin: 0; font-size: 12px; line-height: 1.5; }
.ai-errc .btn.small { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; }
.ai-errc .btn.small .i { width: 16px; height: 16px; }
/* ---- AI chat (docs/ai-mobile.md §9): colours come from the --aic-* variables next to the chat ones ---- */
.hq-cm.hq-ai { border-color: var(--aic-a); background: linear-gradient(135deg, var(--aic-a-soft), var(--card) 75%); }
.hq-ai .hq-cm-ic { background: var(--aic-grad); color: #fff; }
.hq-ai .hq-cm-b { border-color: var(--aic-a); }
.hq-cm.hq-ai { flex-wrap: wrap; }
.ib-ai .aic-av { box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }
.ib-ai .aic-av::after { box-shadow: 0 0 0 2px var(--card); }
.ib-ai .ib-h b { display: inline-flex; align-items: center; gap: 6px; }
.aic-hs { display: flex; flex-direction: column; gap: 8px; }
.aic-hs h2 { margin: 0 0 2px; font-size: 16px; font-weight: 700; }
.aic-hr { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.aic-hr.now { border-color: var(--aic-a); background: var(--aic-a-soft); }
.aic-hr-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; }
.aic-hr-m b { font-size: 14px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.aic-hr-m small { font-size: 11.5px; color: var(--muted); }
.aic-hr-x { flex: none; min-width: 40px; height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 700; display: grid; place-items: center; }
.aic-hr-x .i { width: 18px; height: 18px; }
.aic-hr-x.arm { background: var(--bad-soft); color: var(--bad); }
.aic-hs-n { margin: 4px 0 0; font-size: 11.5px; text-align: center; }
.pc-un .pc-vu.pc-ai { display: inline-flex; align-items: center; gap: 3px; color: var(--aic-a); }
.pc-un .pc-ai .i { width: 12px; height: 12px; }
.pc-un .pc-ai + .pc-vu { margin-left: 6px; }
.ai-ask-home { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--aic-a); border-radius: 14px; background: linear-gradient(135deg, var(--aic-a-soft), var(--card) 75%); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 700; text-align: left; }
.ai-ask-home > span { flex: 1; min-width: 0; }
.ai-ask-home .i { flex: none; width: 17px; height: 17px; color: var(--aic-a); }
.ai-ask-home .chv { transform: rotate(-90deg); color: var(--muted); }
.aic-sh { display: flex; align-items: center; gap: 10px; width: min(88%, 300px); padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--chat-card); color: var(--ink); font: inherit; text-align: left; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.aic-sh img { flex: none; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--thumb); }
.aic-sh span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.aic-sh small { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--aic-a); }
.aic-sh b { font-size: 13.5px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.aic-sh em { font-style: normal; font-size: 11.5px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ai-ref-w { padding: 8px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.hq-fab-gap { flex: none; height: 64px; }
.hq-ai-bs { flex: 1 0 100%; display: flex; gap: 8px; }
.hq-ai-bs .hq-cm-b { flex: 1 1 0; min-width: 0; min-height: 40px; justify-content: center; white-space: nowrap; }
.hq-ai-bs .hq-ai-chat { border-color: transparent; background: var(--aic-a); color: var(--aic-on); }
.hq-ai .hq-ai-bs .hq-ai-chat .i { color: inherit; }
.ai-fab-row { display: flex; align-items: center; gap: 10px; }
.ai-fab-tip { position: relative; max-width: calc(100vw - 110px); padding: 9px 12px; border: 0; border-radius: 14px; background: var(--aic-a); color: var(--aic-on); font: inherit; font-size: 13px; font-weight: 700; line-height: 1.25; box-shadow: 0 6px 18px rgba(37, 99, 235, .3); animation: ppIn .18s ease-out; }
.ai-fab-tip::after { content: ''; position: absolute; top: 50%; right: -5px; width: 10px; height: 10px; margin-top: -5px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.hq-ai .hq-cm-b .i { width: 15px; height: 15px; color: var(--aic-a); }
.view.aic { gap: 0; padding: 0 16px 16px; background: var(--chat-bg); scroll-padding-top: 66px; }
.aic-av { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--aic-grad); color: #fff; }
.aic-av .i { width: 20px; height: 20px; }
.aic-av::after { content: ''; position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--aic-live); box-shadow: 0 0 0 2px var(--chat-bg); }
.aic-av.sm { width: 32px; height: 32px; background: var(--aic-a-soft); color: var(--aic-a); }
.aic-av.sm .i { width: 17px; height: 17px; }
.aic-av.sm::after { display: none; }
.view.aic .th-id b { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; }
.view.aic .th-id .hint { display: flex; align-items: center; gap: 3px; }
.view.aic .th-id .hint .i { flex: none; width: 12px; height: 12px; }
.aic-hb { flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--chat-tool); display: grid; place-items: center; }
.aic-hb .i { width: 21px; height: 21px; }
.aic-hb:active, .aic-hb[aria-pressed="true"] { background: var(--chat-hover); color: var(--chat-icon); }
.aic-info { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--aic-a-soft); color: var(--ink2); font-size: 12px; line-height: 1.45; }
.aic-off { padding: 24px 0; text-align: center; }
.aic-list { flex: 1 0 auto; display: flex; flex-direction: column; gap: 20px; min-width: 0; padding: 14px 0 8px; }
.aic-day { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--chat-meta); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.aic-day i { flex: 0 1 60px; height: 1px; background: var(--line); }
.aic-u { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-left: 32px; }
.aic-ub { max-width: 88%; padding: 9px 14px; border-radius: 18px 4px 18px 18px; background: var(--aic-a); color: var(--aic-on); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.aic-ub p { margin: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.aic-meta { display: inline-flex; align-items: center; gap: 4px; padding-right: 4px; color: var(--chat-meta); font-size: 10.5px; font-weight: 600; }
.aic-meta .i { width: 13px; height: 13px; color: var(--aic-a); }
.aic-a { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.aic-ph { display: flex; align-items: center; gap: 8px; }
.aic-ph-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.aic-ph-t b { font-size: 15px; font-weight: 700; line-height: 1.25; }
.aic-ph-t b small { margin-left: 6px; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.aic-live { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; color: var(--aic-a); }
.aic-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: aicPulse 1.8s ease-in-out infinite; }
@keyframes aicPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.aic-und { display: flex; flex-wrap: wrap; gap: 6px; }
.aic-und span { padding: 4px 9px; border: 1px solid var(--line); border-radius: 99px; background: var(--chat-card); color: var(--ink2); font-size: 11.5px; font-weight: 600; overflow-wrap: anywhere; }
.aic-tx { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 4px 16px 16px 16px; background: var(--aic-a-soft); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.aic-tx p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.aic-tx p + p { color: var(--ink2); }
.aic-tx b, .aic-nt b { font-weight: 700; }
.aic-tx mark, .aic-nt mark { padding: 1px 6px; border-radius: 6px; background: var(--aic-mark); color: var(--aic-a); font-size: .86em; font-weight: 700; }
.aic-cd { display: flex; flex-direction: column; gap: 14px; padding: 14px; border-radius: 16px; background: var(--chat-card); box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.aic-cd-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.aic-cd-h b { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.aic-cd-h b .i { flex: none; width: 18px; height: 18px; color: var(--aic-c); }
.aic-cd-h > span { flex: none; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--muted); font-size: 10px; font-weight: 700; }
.aic-row { display: flex; flex-direction: column; gap: 5px; }
.aic-row-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; font-size: 11px; line-height: 1.35; }
.aic-row-h > span { display: flex; align-items: center; gap: 5px; min-width: 0; font-weight: 700; color: var(--ink); }
.aic-row-h .i { flex: none; width: 14px; height: 14px; color: var(--aic-a); }
.aic-row-h em { flex: 0 1 auto; font-style: normal; font-weight: 700; color: var(--aic-a); text-align: right; overflow-wrap: anywhere; }
.aic-bar { display: flex; align-items: center; gap: 8px; }
.aic-bar-n { flex: none; width: 86px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; font-weight: 600; color: var(--muted); }
.aic-bar-t { flex: 1; min-width: 0; height: 8px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; }
.aic-bar-t i { display: block; height: 100%; border-radius: 99px; background: var(--aic-a); }
.aic-bar.c1 .aic-bar-t i { background: var(--aic-b); }
.aic-bar.c2 .aic-bar-t i { background: var(--aic-c); }
.aic-bar b { flex: none; width: 78px; text-align: right; font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.aic-bar.win .aic-bar-n { color: var(--ink); }
.aic-bar.win b { font-size: 12px; font-weight: 800; color: var(--aic-a); }
.aic-bar.win.c1 b { color: var(--aic-b); }
.aic-bar.win.c2 b { color: var(--aic-c); }
.aic-mk { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--chat-card); box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.aic-mk-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.aic-mk-t small { font-size: 11px; font-weight: 700; color: var(--aic-a); }
.aic-mk-t b { font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.aic-rg { flex: none; width: 112px; display: flex; flex-direction: column; gap: 5px; }
.aic-rg > span { position: relative; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--aic-a-soft), var(--aic-a)); }
.aic-rg > span i { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--aic-a); box-shadow: 0 0 0 2px var(--chat-card); }
.aic-rg small { display: flex; justify-content: space-between; font-size: 10px; font-weight: 600; color: var(--muted); }
.aic-rg em { font-style: normal; }
.aic-pc { display: flex; flex-direction: column; border-radius: 16px; background: var(--chat-card); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); overflow: hidden; }
.aic-pc-ph { position: relative; height: 176px; background: var(--thumb); cursor: pointer; }
.aic-pc-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.aic-bdg { position: absolute; top: 12px; left: 12px; max-width: calc(100% - 24px); display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 99px; background: var(--aic-a); color: var(--aic-on); font-size: 10.5px; font-weight: 700; letter-spacing: .02em; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.aic-bdg span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.aic-bdg .i { flex: none; width: 12px; height: 12px; fill: currentColor; }
.aic-pc.c1 .aic-bdg { background: var(--aic-b); }
.aic-pc.c2 .aic-bdg { background: var(--aic-c); }
.aic-prc { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: baseline; gap: 2px; padding: 4px 10px; border-radius: 10px; background: var(--chat-card); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.aic-prc b { font-size: 17px; font-weight: 800; color: var(--aic-a); }
.aic-pc.c1 .aic-prc b { color: var(--aic-b); }
.aic-pc.c2 .aic-prc b { color: var(--aic-c); }
.aic-prc small { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.aic-chip { position: absolute; left: 12px; bottom: 12px; max-width: 55%; padding: 3px 9px; border-radius: 99px; background: var(--good-soft); color: var(--good); font-size: 10.5px; font-weight: 800; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.aic-pc-b { display: flex; flex-direction: column; gap: 9px; padding: 14px; }
.aic-pc-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.aic-pc-h > div { min-width: 0; }
.aic-pc-h h3 { margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.aic-pc-h p { margin: 1px 0 0; font-size: 12px; color: var(--muted); }
.aic-fav { flex: none; width: 34px; height: 34px; margin: -4px -6px 0 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; }
.aic-fav .i { width: 21px; height: 21px; }
.aic-fav.on { color: var(--fav); }
.aic-fav.on .i { fill: currentColor; }
.aic-sp { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--ink2); font-size: 12px; font-weight: 600; }
.aic-sp span { display: inline-flex; align-items: center; gap: 4px; }
.aic-sp .i { width: 15px; height: 15px; color: var(--muted); }
.aic-sp > i { font-style: normal; color: var(--ink4); }
.aic-nt { display: flex; align-items: flex-start; gap: 7px; padding: 10px; border-radius: 12px; background: var(--accent-tint); }
.aic-nt .i { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--aic-a); }
.aic-pc.c1 .aic-nt .i, .aic-pc.c1 .aic-nt strong { color: var(--aic-b); }
.aic-pc.c2 .aic-nt .i, .aic-pc.c2 .aic-nt strong { color: var(--aic-c); }
.aic-nt p { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.aic-nt strong { font-weight: 700; color: var(--aic-a); }
.aic-ct, .aic-all { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aic-all { grid-template-columns: 1fr auto; }
.aic-b1, .aic-b2 { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 42px; padding: 0 12px; border: 0; border-radius: 10px; font: inherit; font-size: 13.5px; font-weight: 700; }
.aic-b1 { background: var(--accent-soft); color: var(--ink); }
.aic-b2 { background: var(--aic-a); color: var(--aic-on); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.aic-pc.c1 .aic-b2 { background: var(--aic-b); }
.aic-pc.c2 .aic-b2 { background: var(--aic-c); }
.aic-b1 .i, .aic-b2 .i { flex: none; width: 17px; height: 17px; }
.aic-b1:active, .aic-b2:active { transform: scale(.98); }
.aic-tips { padding: 12px 14px; border-radius: 14px; background: var(--chat-card); box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.aic-tips b { font-size: 12.5px; font-weight: 700; }
.aic-tips ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.aic-tips li { font-size: 12.5px; line-height: 1.45; color: var(--ink2); overflow-wrap: anywhere; }
.aic-fu { display: flex; flex-direction: column; gap: 8px; }
.aic-fu > span { color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.aic-fus { display: flex; align-items: center; gap: 8px; margin: 0 -16px; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.aic-fus::-webkit-scrollbar { display: none; }
.aic-fus .ai-exb { background: var(--chat-card); }
.aic-fus.wrap { flex-direction: column; align-items: flex-start; overflow: visible; }
.aic-fus.wrap .ai-exb { flex: 0 1 auto; max-width: 100%; min-height: 36px; padding: 7px 12px; border-radius: 14px; white-space: normal; text-align: left; line-height: 1.35; }
.aic-wait { display: flex; align-items: center; gap: 10px; align-self: flex-start; padding: 12px 14px; border-radius: 4px 16px 16px 16px; background: var(--aic-a-soft); color: var(--ink2); font-size: 13px; }
.aic-dots { display: inline-flex; gap: 4px; }
.aic-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--aic-a); animation: aicDot 1.2s ease-in-out infinite; }
.aic-dots i:nth-child(2) { animation-delay: .15s; }
.aic-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes aicDot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .aic-dots i, .aic-live::before { animation: none; } }
.aic-err { padding: 12px 14px; border-radius: 4px 16px 16px 16px; background: var(--bad-soft); }
.aic-err p { margin: 0; font-size: 13.5px; color: var(--bad); }
.aic-err .btn.small { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; }
.aic-err .btn.small .i { width: 16px; height: 16px; }
.aic-in { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 16px; border: 1px solid var(--line); border-radius: 22px; background: var(--chat-card); box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.aic-in:focus-within { border-color: var(--aic-a); }
.aic-in textarea { flex: 1; min-width: 0; min-height: 40px; max-height: 120px; padding: 9px 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.35; resize: none; outline: 0; box-shadow: none; }
.aic-send { flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 14px; background: var(--aic-a); color: var(--aic-on); display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.aic-send .i { width: 20px; height: 20px; stroke-width: 2.4; }
.aic-send:active { transform: scale(.95); }
.aic-send[disabled] { opacity: .5; }
@media (max-width: 360px) { .view.aic { padding-left: 12px; padding-right: 12px; } .aic-fus { margin: 0 -12px; padding: 0 12px 2px; } .aic-bar-n { width: 70px; } .aic-bar b { width: 70px; } .aic-rg { width: 90px; } }
/* ---- contacts, direct chats and groups (docs/chat-groups.md) ---- */
.ib-acts { display: flex; gap: 8px; }
.ib-acts .btn { flex: 1 1 0; min-width: 0; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; }
.ib-acts .btn .i { width: 17px; height: 17px; }
.gp-av { flex: none; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--aic-a-soft); color: var(--aic-a); }
.gp-av .i { width: 21px; height: 21px; }
.ct-sheet { display: flex; flex-direction: column; gap: 8px; }
.ct-sheet h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 2px; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.ct-sheet h3 { margin: 10px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ct-find { display: flex; gap: 8px; }
.ct-find .text { flex: 1; min-width: 0; }
.ct-find .btn { flex: none; }
.ct-lab { font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.ct-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.ct-row > b { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ct-row .btn.small { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 34px; }
.ct-row .btn.small .i { width: 14px; height: 14px; }
.ct-row .btn.arm, .ct-leave.arm { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.ct-x { flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.ct-x .i { width: 15px; height: 15px; }
.ct-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ct-tag { flex: none; padding: 2px 7px; border-radius: 99px; background: var(--amber-soft); color: var(--amber-ink); font-size: 10.5px; font-weight: 700; font-style: normal; }
.ct-tag.you { background: var(--accent-soft); color: var(--ink2); }
.ct-leave { margin-top: 10px; }
.ct-sheet > .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; }
.ct-sheet > .btn .i { width: 17px; height: 17px; }
.msg-sys { align-self: center; max-width: 90%; padding: 2px 10px; color: var(--chat-meta); font-size: 11.5px; line-height: 1.45; text-align: center; overflow-wrap: anywhere; }
.msg-who { margin: 0 0 -10px 48px; color: var(--chat-meta); font-size: 11px; font-weight: 600; }
.msg-card.gp-card { display: flex; align-items: center; gap: 10px; }
.msg-card.gp-card .msg-card-b b { font-size: 14.5px; overflow-wrap: anywhere; }
.gp-av.gp-mo { display: grid; place-items: stretch; gap: 1px; padding: 0; overflow: hidden; background: var(--line); color: var(--on-amber); }
.gp-mo > b { display: grid; place-items: center; min-width: 0; min-height: 0; overflow: hidden; background: var(--amber); font-size: 10px; font-weight: 800; line-height: 1; }
.gp-mo > b img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.gp-mo.n1 { grid-template: 1fr / 1fr; }
.gp-mo.n2 { grid-template: 1fr / 1fr 1fr; }
.gp-mo.n3, .gp-mo.n4 { grid-template: 1fr 1fr / 1fr 1fr; }
.gp-mo.n3 > b:first-child { grid-column: 1 / -1; }
/* ---- VIP: a small light chip at the bottom-right of the avatar (the pale yellow and brown of the home page illustration) ---- */
:root { --vip-bg: #FFE9A8; --vip-ink: #5A4634; }
.th-av, .msg-av, .up-av, .wp2-h .av, .pd-author .av, .pd-about .av { position: relative; }
.vip-c { position: absolute; right: -3px; bottom: -3px; z-index: 1; padding: 2px 4px 2px 4px; border-radius: 99px; background: var(--vip-bg); color: var(--vip-ink); box-shadow: 0 0 0 1.5px var(--card);
  font-family: inherit; font-size: 8px; font-weight: 800; line-height: 1; font-style: normal; letter-spacing: .03em; text-shadow: none; pointer-events: none; }
.up-av .vip-c { right: -2px; bottom: -2px; padding: 2px 5px; font-size: 9px; }
.up-ct { display: flex; flex-wrap: wrap; gap: 8px; }
.up-ct .btn.small { display: inline-flex; align-items: center; justify-content: center; flex: 1 1 0; gap: 5px; align-self: auto; min-height: 38px; }
.up-ct .btn.small .i { width: 15px; height: 15px; }
.wait-note { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--chat-line); border-radius: 16px; background: var(--chat-card); color: var(--chat-tool); font-size: 13px; line-height: 1.4; }
.wait-note .i { flex: none; width: 18px; height: 18px; color: var(--amber-ink); }
.wait-note span { min-width: 0; overflow-wrap: anywhere; }
/* ---- members without a photo: their initial on a colour from their name ---- */
.avl { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; font-weight: 800; }
/* A photo avatar sits on top of its letter fallback (which shows until the image arrives). */
:is(.av, .th-av, .msg-av, .up-av, .gp-mo > b) img { position: relative; z-index: 1; }
.gp-mo > b { position: relative; }
/* ---- Sales "Market activity" and Trending "Rental trends" (docs/mobile.md) ---- */
.mk-box { border: 1px solid var(--line); border-radius: 12px; background: var(--accent-tint); overflow: hidden; }
.mk-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, .85fr) minmax(0, 1.15fr) minmax(0, 1.15fr); }
.mk-grid.fx { display: flex; }
.mk-grid > div { display: flex; flex-direction: column; justify-content: space-between; gap: 4px; min-width: 0; padding: 9px 6px 9px 8px; border-left: 1px solid var(--line); }
.mk-grid.fx > div { flex: 1 1 0; }
.mk-grid.fx > div.wide { flex: 2.3 1 0; }
.mk-grid > div:first-child { border-left: 0; }
.mk-grid > div > span { font-size: 10.5px; line-height: 1.25; color: var(--muted); }
.mk-grid .v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 3px; min-width: 0; }
.mk-grid .v b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(11.5px, 3.4vw, 13px); font-weight: 800; letter-spacing: -.02em; }
.mk-grid .v small { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.mk-yd { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 9px 10px; border-top: 1px solid var(--line); }
.mk-yd span { font-size: 10.5px; color: var(--muted); }
.mk-yd b { font-size: 14px; font-weight: 800; }
.label.sec { display: block; align-self: stretch; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line2); }
.mk-snap { gap: 6px; }
.ms-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 10px; background: var(--accent-tint); font-size: 12px; }
.ms-row.top { outline: 0; border-color: color-mix(in srgb, var(--amber) 45%, transparent); background: color-mix(in srgb, var(--amber) 12%, var(--bg2)); }
.ms-near { border: 1px solid var(--line2); border-radius: 10px; background: var(--bg2); }
.ms-l { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; color: var(--ink2); font-weight: 500; line-height: 1.3; }
.ms-t { min-width: 0; }
.ms-l .ms-top { margin: 0; padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--amber) 22%, transparent); color: var(--amber-ink); font-size: 9px; font-weight: 800; font-style: normal; letter-spacing: .05em; line-height: 1.5; text-transform: uppercase; white-space: nowrap; }
.ms-sub { flex-basis: 100%; font-size: 11px; font-weight: 500; color: var(--muted); }
.ms-r { flex: none; display: flex; align-items: center; gap: 8px; }
.ms-p { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.ms-r b { font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.ms-r .ms-n { font-size: 10.5px; line-height: 1.2; }
.ms-r .dm-tag { padding: 2px 7px; border-radius: 7px; font-size: 10.5px; line-height: 1.35; }
.mk .y { font-variant-numeric: tabular-nums; }
.mk .mk-bar { height: 9px; }
.mk.rt-b > div { grid-template-columns: 74px minmax(36px, 1fr) auto 78px; gap: 8px; }
.mk.rt-b .y, .mk.rt-b b, .mk.rt-b .p { white-space: nowrap; }
.mk.rt-b .y { font-size: 12px; }
.mk.rt-b .p { font-size: 11.5px; }
@media (max-width: 340px) { .mk.rt-b > div { grid-template-columns: 60px minmax(20px, 1fr) auto 70px; gap: 6px; } .mk.rt-b .y { font-size: 11px; } .mk.rt-b .p { font-size: 11px; } }
.tx-range { gap: 8px; margin: 2px 0; }
.tx-range input.text { width: 84px; min-height: 38px; height: 38px; padding: 6px 10px; border-radius: 10px; }
.mk-tx > div { grid-template-columns: 46px 38px 38px minmax(0, 1fr) 38px 46px; gap: 5px; align-items: baseline; padding: 8px 0; white-space: nowrap; }
.mk-tx > div > span:nth-child(n+3) { text-align: right; }
.mk-tx .head { padding: 0 0 6px; border-bottom: 1px solid var(--line); color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.mk-tx > div:not(.head) > span:first-child { color: var(--ink2); font-size: 11px; font-variant-numeric: tabular-nums; }
.mk-tx > div:not(.head) > span:nth-child(4) { font-weight: 800; }
.mk-tx > div:not(.head) > span:last-child { overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 11px; }
.nb { white-space: nowrap; }
.mk-more { display: block; width: 100%; margin-top: 10px; padding: 10px 14px; border: 0; border-radius: 12px; background: var(--accent-soft); color: var(--ink2); font: inherit; font-size: 13px; font-weight: 700; }
.mk-more:active { background: var(--line); }

/* Message actions in the AI chat: copy / edit / regenerate under a message, and the "editing" strip above the box */
.aic-ua { display: flex; justify-content: flex-end; gap: 2px; padding-right: 2px; margin-top: -2px; }
.aic-ua.a { justify-content: flex-start; padding: 2px 0 0 36px; margin: 0; }
.aic-ib { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--chat-meta); cursor: pointer; }
.aic-ib .i { width: 15px; height: 15px; }
.aic-ib:active, .aic-ib:hover { background: var(--line2); color: var(--ink); }
.aic-ed { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.aic-ed span { display: inline-flex; align-items: center; gap: 6px; }
.aic-ed .i { width: 14px; height: 14px; }
.aic-ed button { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }

/* Post drafts in the AI chat: the card, its change line, and the Back to chat button in the composer */
.aic-dr { margin: 8px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); display: flex; flex-direction: column; gap: 6px; }
.aic-dr.off { padding: 8px 12px; color: var(--muted); font-size: 12.5px; background: transparent; border-style: dashed; }
.aic-dr.done { border-color: var(--aic-a); }
.aic-dr-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.aic-dr-h b { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
.aic-dr-h .i { width: 15px; height: 15px; }
.aic-dr-h small { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.aic-dr p { margin: 0; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.aic-dr-m { font-size: 16px; font-weight: 700; color: var(--ink); }
.aic-dr-w .i { width: 13px; height: 13px; vertical-align: -2px; }
.aic-dr-s { color: var(--ink2); }
.aic-dr-n { color: var(--ink2); font-style: italic; }
.aic-dr-x { color: var(--muted); font-size: 12px; }
.aic-dr-t { display: flex; flex-wrap: wrap; gap: 5px; }
.aic-dr-t span { padding: 2px 9px; border-radius: 999px; background: var(--line2); font-size: 11.5px; }
.aic-dr-b { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.aic-dr ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.aic-dr.upd { background: transparent; }
.post-back { margin-left: auto; margin-right: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 12.5px; font-weight: 600; cursor: pointer; }
/* What the AI changed in a draft: marked until the person says "Got it" */
.ai-hl { outline: 2px solid var(--aic-a); outline-offset: 2px; border-radius: 10px; animation: ai-hl-in 1.4s ease-out 1; }
@keyframes ai-hl-in { 0% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--aic-a) 35%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.ai-ban-ch { align-items: flex-start; }
.ai-ban-ch ul { margin: 4px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.5; }
.ai-ban-ch .aic-b2 { margin-left: auto; flex: 0 0 auto; }
.aic-dr-ch { color: var(--aic-a); font-size: 12px; font-weight: 600; }
.aic-dr-ch .i { width: 13px; height: 13px; vertical-align: -2px; }

/* The agent loop in the AI chat: what turns up while it works, the pause, the questions, the "a little over budget" group */
.aic-live { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 13px; }
.aic-live p { margin: 0; line-height: 1.4; overflow-wrap: anywhere; }
.aic-lv-p { color: var(--ink2); }
.aic-lv-b { display: flex; gap: 8px; flex-wrap: wrap; }
.aic-lv-q { display: flex; flex-direction: column; gap: 6px; }
.aic-st { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.aic-st h3 { margin: 0; font-size: 14px; }
.aic-trail { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.aic-trail summary { cursor: pointer; font-weight: 600; }
.aic-trail ul { margin: 4px 0 0; padding-left: 18px; line-height: 1.5; }

/* Popular / hot tags */
.pop { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--line2); color: var(--ink2); }
.pop .i { width: 12px; height: 12px; }
.pop.hot { background: #FDE6D8; color: #B33A0B; }
.pop.pop { background: #E4F0E1; color: #2F5D2A; }
:root[data-theme="dark"] .pop.hot { background: #4A2314; color: #FFB48F; }
:root[data-theme="dark"] .pop.pop { background: #1F3A1C; color: #A9DCA2; }
.aic-pop { margin: 0 0 6px; }

/* Which would you rather? */
.aic-pf { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.aic-pf p { margin: 0; }
.aic-pf-e { color: var(--danger, #B3261E); }
.aic-pf-r { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aic-pf-c { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card, transparent); color: inherit; font: inherit; }
.aic-pf-c b { font-size: 13.5px; }
.aic-pf-c span { color: var(--ink2); line-height: 1.35; }
.aic-pf-c:disabled { opacity: .6; }
@media (max-width: 340px) { .aic-pf-r { grid-template-columns: 1fr; } }

.aic-pn { margin: 6px 0 0; font-size: 12.5px; color: var(--ink2); display: flex; gap: 4px; align-items: flex-start; flex-wrap: wrap; }
.aic-pn .i { width: 13px; height: 13px; margin-top: 2px; }
.aic-pc-h small { font-size: 12px; font-weight: 500; margin-left: 2px; }

.aic-fb { margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink2); }
.aic-fb.done { color: var(--muted); }

.aic-web { margin-top: 8px; font-size: 12.5px; }
.aic-web ul { margin: 4px 0 0; padding-left: 18px; line-height: 1.55; }
.aic-web a { color: inherit; text-decoration: underline; overflow-wrap: anywhere; }

.rc-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; font-size: 12.5px; background: var(--line2); color: var(--ink2); }
.rc-bar.on { background: #E4F0E1; color: #2F5D2A; }
.rc-bar span { display: inline-flex; align-items: center; gap: 4px; }
:root[data-theme="dark"] .rc-bar.on { background: #1F3A1C; color: #A9DCA2; }

/* system-dark parity: pastel badges above only had a data-theme="dark" override */
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .home-illustration { background: #1B2620; }
  :root[data-theme="system"] .pop.hot { background: #4A2314; color: #FFB48F; }
  :root[data-theme="system"] .pop.pop { background: #1F3A1C; color: #A9DCA2; }
  :root[data-theme="system"] .rc-bar.on { background: #1F3A1C; color: #A9DCA2; }
}
@media (prefers-reduced-motion: reduce) {
  .msg-row.jump .bubble, .msg-row.jump .msg-card, .ai-hl { animation: none; }
}

.aic-web-t { margin: 4px 0; line-height: 1.45; }

.pd-pn { margin: 8px 0; padding: 8px 12px; border-radius: 12px; background: var(--line2); font-size: 13px; }
.pd-pn p { margin: 2px 0; }
.pn-fb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.aic-dr.need { border-color: var(--aic-a); }
.aic-dr.need ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.aic-dr.ready { border-color: var(--aic-a); background: var(--card); }
.aic-dr.ready .aic-dr-h b { color: var(--aic-a); }
.aic-ls { margin: 10px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); display: flex; flex-direction: column; gap: 8px; }
.aic-ls h4 { margin: 0; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.aic-ls-g { display: flex; flex-direction: column; gap: 6px; }
.aic-ls-h b { font-size: 12.5px; color: var(--ink2); }
.aic-ls-g p, .aic-ls-n { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.aic-lsr { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: baseline; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; }
.aic-lsr b { font-size: 15px; color: var(--ink); }
.aic-lsr span { font-size: 12.5px; color: var(--ink2); overflow-wrap: anywhere; }
.aic-lsr i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--aic-a); white-space: nowrap; }
.ls-lock { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; font-size: 13px; color: var(--ink2); }
.ls-lock .btn { flex: none; }
.aic-fixed { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.aic-fixed .i { width: 13px; height: 13px; flex: none; }
.aic-send.stop { background: var(--aic-on); color: var(--aic-a); box-shadow: inset 0 0 0 2px var(--aic-a); }
.aic-send.stop .i { width: 22px; height: 22px; stroke-width: 0; }
