* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: -apple-system, system-ui, sans-serif; }
body { display: flex; flex-direction: column; }
#topbar { padding: 8px 16px; border-bottom: 1px solid #e2e2e2; display: flex; align-items: center; gap: 20px; }
#topbar h1 { font-size: 16px; margin: 0; }
#tabs { display: flex; gap: 4px; }
#pass-picker { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 12px;
  font-weight: 600; color: #5a6478; }
#pass-picker label { text-transform: uppercase; letter-spacing: .04em; font-size: 11px; color: #8a92a3; }
#pass-picker select { font: inherit; font-weight: 600; color: #2a3242; padding: 4px 8px; border-radius: 6px;
  border: 1px solid #d5d9e0; background: #fff; cursor: pointer; }
#pass-picker select:disabled { opacity: .5; cursor: progress; }
#site-addr { display: flex; align-items: center; gap: 7px; font-size: 13px;
  font-weight: 600; color: #2a3242; max-width: 42%; }
#site-addr .pin { color: #e11; font-size: 11px; }
#site-addr #site-addr-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tabs { gap: 2px; }
.tab { border: none; background: none; padding: 9px 14px; cursor: pointer; font-size: 14px; font-weight: 600;
  color: #6b7280; display: inline-flex; align-items: center; gap: 7px; border-radius: 8px 8px 0 0;
  border-bottom: 2px solid transparent; transition: color .12s, background .12s; }
.tab:hover { color: #2f49d6; background: #f3f5ff; }
.tab .tab-ic { color: #9aa3b2; }
.tab.active { color: #2f49d6; background: #eef2ff; border-bottom-color: #2f49d6; }
.tab.active .tab-ic { color: #2f49d6; }
main { flex: 1; position: relative; }
.tab-panel { display: none; position: absolute; inset: 0; }
.tab-panel.active { display: block; }
#map { height: 100%; width: 100%; }
.store-popup { text-align: center; }
.store-popup img { width: 64px; height: 64px; object-fit: contain; display: block; margin: 0 auto 6px; }
.store-popup .name { font-weight: 600; font-size: 14px; }
.store-popup .cat { color: #666; font-size: 12px; }
.store-popup .dist { color: #999; font-size: 11px; margin-top: 2px; }
.lbl { background: #fff; border: 1px solid #ccc; border-radius: 4px; padding: 1px 5px;
       font-size: 11px; font-weight: 600; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.2); }

/* nearby-tenant map markers: logo tile + bold name + category dot */
.tmk-wrap { background: none; border: 0; }
.tmk { display: flex; flex-direction: column; align-items: center; width: 80px; }
.tmk-logo { width: 26px; height: 26px; background: #fff; border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,.28); display: flex; align-items: center; justify-content: center;
  overflow: hidden; }
.tmk-img { width: 22px; height: 22px; object-fit: contain; }
.tmk-ini { font-size: 10px; font-weight: 700; color: #444; }
.tmk-name { margin-top: 2px; font-size: 11px; font-weight: 700; color: #1a1a1a;
  text-align: center; line-height: 1.1; max-width: 80px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; text-shadow: 0 1px 2px #fff, 0 0 2px #fff, 0 0 3px #fff; }
.tmk-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 2px;
  border: 1.5px solid #fff; box-shadow: 0 1px 2px rgba(0,0,0,.35); }

/* category analysis tab */
#category-scroll { height: 100%; overflow: auto; padding: 28px 32px 40px; background: #f7f8fa; }
#wheels { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1200px; margin: 0 auto; }
.wheel-block { display: flex; flex-direction: column; gap: 0; background: #fff; border: 1px solid #e7e9ee;
               border-radius: 14px; box-shadow: 0 1px 3px rgba(20,30,60,.05); overflow: hidden; }
.wheel-block h3 { margin: 0; font-size: 15px; font-weight: 700; color: #1a2233; text-align: center;
                  padding: 16px 18px; background: #fafbfc; border-bottom: 1px solid #eef0f4; }
.wheel-body { display: flex; align-items: center; gap: 22px; padding: 22px 24px; }
.donut { position: relative; width: 210px; height: 210px; border-radius: 50%; flex: none; }
.donut::after { content: attr(data-total); position: absolute; inset: 30%; border-radius: 50%;
                background: #fff; display: flex; align-items: center; justify-content: center;
                font-size: 11px; color: #667; text-align: center; line-height: 1.3; white-space: pre; }
.legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.legend li { display: flex; align-items: center; gap: 9px; padding: 4px 0; font-size: 13px; color: #2a3242; }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.legend .nm { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend .ct { color: #9aa2b1; font-size: 11px; font-variant-numeric: tabular-nums; }

#servedness { max-width: 1200px; margin: 26px auto 0; background: #fff; border: 1px solid #e7e9ee;
              border-radius: 14px; box-shadow: 0 1px 3px rgba(20,30,60,.05); overflow: hidden; }
#served-table { width: 100%; border-collapse: collapse; font-size: 13px; }
#served-table thead th { text-align: right; padding: 14px 18px; font-size: 11px; letter-spacing: .05em;
                         text-transform: uppercase; color: #8a94a6; font-weight: 700; border-bottom: 1px solid #eef0f4; }
#served-table th.c-cat { text-align: left; }
#served-table tbody td { text-align: right; padding: 12px 18px; border-bottom: 1px solid #f0f2f5;
                         color: #2a3242; font-variant-numeric: tabular-nums; }
#served-table tbody tr:last-child td { border-bottom: none; }
#served-table tbody tr:hover td { background: #fafbff; }
#served-table td.c-cat { text-align: left; font-weight: 600; color: #1a2233; }
#served-table td.c-cat .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px;
                             margin-right: 9px; vertical-align: middle; }
#served-table td.c-diff { font-weight: 700; }
#served-table td.c-diff.pos { color: #1a9850; }
#served-table td.c-diff.neg { color: #d64550; }
#served-table td.c-diff.zero { color: #000; }

/* servedness drilldown */
#served-table tr.served-row { cursor: pointer; }
#served-table td.c-cat .sd-caret { display: inline-block; width: 12px; margin-right: 4px;
                                   color: #8a93a6; transition: transform .15s; font-size: 11px; }
#served-table tr.served-row.open .sd-caret { transform: rotate(90deg); }
#served-table tr.served-detail.hidden { display: none; }
#served-table tr.served-detail > td { padding: 0; background: #f7f9fc; }
.sd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.sd-col { padding: 14px 18px; }
.sd-col + .sd-col { border-left: 1px solid #e6eaf0; }
.sd-col h4 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
             color: #5a6478; text-align: left; font-weight: 600; }
.sd-col h4 span { color: #9aa3b5; font-weight: 500; }
.sd-colhead { display: flex; justify-content: space-between; align-items: baseline;
              padding: 0 0 6px; margin-bottom: 4px;
              border-bottom: 1px solid #e6eaf0; font-size: 11px; text-transform: uppercase;
              letter-spacing: .03em; color: #9aa3b5; font-weight: 600; }
.sd-col ul { list-style: none; margin: 0; padding: 0; }
.sd-col li { display: flex; align-items: center; gap: 10px; padding: 6px 0; text-align: left; }
.sd-col li img, .sd-col li .noimg { width: 26px; height: 26px; border-radius: 6px; object-fit: contain;
                                    background: #fff; border: 1px solid #e6eaf0; flex: 0 0 auto; }
.sd-col li .sd-nm { flex: 1 1 auto; font-weight: 600; color: #1a2233; font-size: 13px; }
.sd-col li .sd-meta { color: #6b7488; font-size: 12px; font-variant-numeric: tabular-nums; }
.sd-col li.sd-empty { color: #9aa3b5; font-style: italic; }

/* demographics button + panel over the map */
#demo-btn { position: absolute; top: 12px; right: 12px; z-index: 1000; background: #111; color: #fff;
            border: none; border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 600;
            cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
#demo-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 92%); z-index: 1001;
              background: #fff; box-shadow: -4px 0 20px rgba(0,0,0,.18); overflow: auto; padding: 20px 24px; }
#demo-panel.hidden { display: none; }
.demo-head { display: flex; align-items: center; justify-content: space-between; }
.demo-head h2 { margin: 0; font-size: 20px; }
#demo-close { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: #888; }
.demo-glance { font-size: 11px; letter-spacing: .04em; color: #888; text-transform: uppercase; margin: 4px 0 14px; }
#demo-local-rent { display: flex; align-items: baseline; gap: 10px; background: #eef1ff; border: 1px solid #dfe4ff;
                   border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; }
#demo-local-rent.hidden { display: none; }
#demo-local-rent .lbl { font-size: 12px; color: #556; text-transform: uppercase; letter-spacing: .04em; }
#demo-local-rent .val { font-size: 22px; font-weight: 700; color: #2f49d6; }
#demo-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.demo-card { border: 1px solid #eee; border-radius: 10px; padding: 12px 14px; background: #fafbfc; }
.demo-card .lbl { display: block; font-size: 12px; color: #667; margin-bottom: 4px; }
.demo-card .val { font-size: 20px; font-weight: 700; color: #1a1a2e; }
.demo-card .delta { font-size: 12px; color: #8a94a6; margin-top: 2px; }
.demo-card .delta.pos { color: #1a7f37; } .demo-card .delta.neg { color: #c0392b; }
.demo-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
.demo-block { border: 1px solid #eee; border-radius: 10px; padding: 14px 16px; }
.demo-block h3 { margin: 0 0 12px; font-size: 15px; }
.demo-row { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 8px;
            font-size: 13px; margin: 6px 0; }
.demo-bar-track { background: #eef0f2; border-radius: 5px; height: 9px; overflow: hidden; display: block; }
.demo-bar { display: block; height: 100%; border-radius: 5px; }
.demo-bar.orange { background: #f2711c; }
.demo-bar.green { background: #21ba45; }
.demo-row .pctv { text-align: right; color: #556; font-variant-numeric: tabular-nums; }
@media (max-width: 620px) { .demo-blocks { grid-template-columns: 1fr; } }

/* map mode toggle */
#map-toggle { position: absolute; top: 12px; left: 12px; z-index: 1000; display: flex;
              background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.2); overflow: hidden; }
#map-toggle .mode { border: none; background: #fff; padding: 8px 14px; font-size: 13px; font-weight: 600;
                    cursor: pointer; color: #444; }
#map-toggle .mode.active { background: #111; color: #fff; }

/* markets side list */
#markets-side { position: absolute; top: 60px; left: 12px; z-index: 1000; width: 330px; max-height: calc(100% - 80px);
                background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.2); overflow: auto; padding: 12px 14px; }
#markets-side.hidden { display: none; }
#markets-side h3 { margin: 0 0 8px; font-size: 14px; }
#markets-list { list-style: none; margin: 0; padding: 0; }
#markets-list li { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center;
                   padding: 7px 6px; border-radius: 6px; cursor: pointer; font-size: 13px; }
#markets-list li:hover { background: #f2f4f7; }
#markets-list .rk { color: #4e79a7; font-weight: 700; font-variant-numeric: tabular-nums; }
#markets-list .cid { color: #333; }
#markets-list .sc { color: #999; font-size: 11px; font-variant-numeric: tabular-nums; }
.mkr-dot { background: #4e79a7; color: #fff; border-radius: 50%; width: 26px; height: 26px; display: flex;
           align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
           box-shadow: 0 1px 4px rgba(0,0,0,.4); border: 2px solid #fff; }
.market-popup { max-height: 260px; overflow: auto; }
.market-popup h4 { margin: 0 0 6px; font-size: 13px; }
.market-popup .trow { display: flex; align-items: center; gap: 7px; padding: 3px 0; font-size: 12px; }
.market-popup .trow img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.market-popup .trow .tn { flex: 1; }
.market-popup .trow .tc { color: #999; font-variant-numeric: tabular-nums; }

/* recommended tenants tab */
#reco-wrap { height: 100%; display: flex; flex-direction: column; }
#reco-bar { display: flex; align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid #eee; }
#reco-count { font-size: 13px; color: #667; }
#reco-search-wrap { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #d7dbe0; border-radius: 8px; padding: 5px 10px; color: #889; }
#reco-search { border: none; outline: none; background: transparent; font-size: 13px; color: #223; width: 180px; }
#reco-search::placeholder { color: #99a; }
#reco-mode { display: inline-flex; background: #fff; border: 1px solid #d7dbe0; border-radius: 8px; overflow: hidden; }
#reco-mode .rmode { border: none; background: #fff; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; color: #445; }
#reco-mode .rmode.active { background: #111; color: #fff; }
#reco-bar label { font-size: 13px; color: #445; display: flex; align-items: center; gap: 6px; }
#reco-filter { font-size: 13px; padding: 5px 8px; border: 1px solid #ccc; border-radius: 6px; }
#reco-list { list-style: none; margin: 0; padding: 12px 24px; overflow: auto; flex: 1; }
#reco-head, #reco-list li { display: grid;
    grid-template-columns: 118px 40px 1fr 116px 92px 120px 180px 170px 92px 92px; align-items: center; gap: 12px; }
/* ranking cell: #N + fit bar + % */
.rank-cell { display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 5px; column-gap: 7px; }
.rank-no { grid-column: 1 / -1; font-weight: 700; font-size: 13px; color: #1a2233; }
.rank-bar { height: 3px; background: #e6e9ef; border-radius: 2px; overflow: hidden; }
.rank-fill { display: block; height: 100%; background: #7b93f5; border-radius: 2px; }
.rank-pct { font-size: 11px; color: #9aa2b1; font-variant-numeric: tabular-nums; }
/* brand badge + category pill */
.top-badge { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px;
  background: #fdf0dd; color: #96620a; font-size: 11px; font-weight: 700; vertical-align: middle; }
.cat-pill { display: inline-block; padding: 4px 11px; border-radius: 999px; background: #eef0f5;
  color: #3a4256; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* nearest-location colored pill by distance */
.nearpill.near-hot { background: #fce7d8; color: #b5551d; }
.nearpill.near-mid { background: #fdf3d1; color: #8a6d10; }
.nearpill.near-far { background: #e4f5e9; color: #1a7f37; }
#llm-menu { min-width: 170px; }
#llm-menu label { display: flex; align-items: center; gap: 8px; padding: 5px 6px; font-size: 13px; cursor: pointer; border-radius: 5px; }
#llm-menu label:hover { background: #f2f4f7; }
.llm-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.llm-pill.viable { background: #e4f5e9; color: #1a7f37; }
.llm-pill.notviable { background: #fbe4e4; color: #c0392b; }
#reco-list .llm { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
#reco-list .llm-reason { font-size: 10px; color: #999; line-height: 1.1; }
.nearpill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
            background: #eef0f2; color: #445; white-space: nowrap; }
#reco-list .growth { font-variant-numeric: tabular-nums; color: #334; }
/* shared column-header filter popovers (Viability / Category / Size / Growth) */
.hdr-filter { position: relative; display: flex; align-items: center; gap: 5px; }
.fnl { cursor: pointer; color: #8a94a6; display: inline-flex; align-items: center; line-height: 0; }
.fnl svg { display: block; }
.hdr-filter:hover .fnl { color: #3b5bfd; }
.hdr-filter.active .fnl { color: #3b5bfd; }
.hdr-menu { position: absolute; top: 150%; left: 0; z-index: 1200; background: #fff; border: 1px solid #ddd;
    border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.15); padding: 14px 16px;
    text-transform: none; letter-spacing: normal; font-weight: 400; color: #333; }
.hdr-menu.hidden { display: none; }
#growth-menu { width: 230px; }
#cat-menu { width: 250px; }
#cat-search { width: 100%; padding: 6px 8px; border: 1px solid #ccc; border-radius: 6px; font-size: 12px; margin: 4px 0 6px; box-sizing: border-box; }
#cat-menu .cat-all { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: #333; padding: 3px 2px; border-bottom: 1px solid #eee; margin-bottom: 4px; cursor: pointer; }
#cat-checks { max-height: 260px; overflow-y: auto; }
#cat-checks label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #333; padding: 3px 2px; cursor: pointer; }
#cat-checks label:hover { background: #f4f6ff; }
#cat-checks input, #cat-menu .cat-all input { margin: 0; }
#cat-checks label.hidden { display: none; }
#growth-menu .gm-label { font-size: 13px; font-weight: 700; color: #333; margin-bottom: 6px; }
#growth-menu input { width: 100%; padding: 7px 9px; border: 1px solid #ccc; border-radius: 7px; font-size: 13px; }
#growth-menu hr { border: none; border-top: 1px solid #eee; margin: 12px 0; }
#growth-menu .gm-sort { display: block; width: 100%; text-align: left; background: #fff; border: none;
    padding: 7px 6px; font-size: 14px; cursor: pointer; border-radius: 6px; color: #333; }
#growth-menu .gm-sort:hover { background: #f2f4f7; }
#growth-menu .gm-sort.active { background: #eef1ff; color: #3b5bfd; font-weight: 600; }
.gm-actions { display: flex; gap: 8px; margin-top: 12px; }
#growth-apply { flex: 1; background: #3b5bfd; color: #fff; border: none; border-radius: 8px; padding: 7px 0; font-size: 13px; font-weight: 600; cursor: pointer; }
#growth-reset { background: #fff; color: #556; border: 1px solid #ccc; border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
#reco-head { padding: 0 30px 8px; border-bottom: 2px solid #e6e9ec; font-size: 11px; font-weight: 700;
             letter-spacing: .04em; text-transform: uppercase; color: #8a94a6; }
#reco-head .rk { text-align: right; }
#reco-head .sortable { cursor: pointer; user-select: none; display: flex; align-items: center; gap: 5px; }
#reco-head .sortable:hover { color: #3b5bfd; }
#reco-head .arrow { color: #bbb; }
#reco-head .sortable.active .arrow { color: #3b5bfd; }
#reco-list li { padding: 8px 6px; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
#reco-list .size { color: #556; font-variant-numeric: tabular-nums; }
#reco-list .stores { color: #334; font-variant-numeric: tabular-nums; }
/* size range slider popover */
#size-menu { width: 280px; padding: 16px 18px; }
/* rightmost column: open the menu leftwards so it stays on screen */
#void-menu { width: 300px; padding: 16px 18px; left: auto; right: 0; }
#void-title, #size-title { text-align: center; font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.void-hint { margin: -6px 0 14px; font-size: 11.5px; line-height: 1.45; color: #888; font-weight: 400; }
.void-stat { margin-top: 12px; font-size: 12px; color: #556; text-align: center; }
.void-stat b { color: #222; }
.void-stat em { display: block; margin-top: 3px; font-size: 11px; color: #999; font-style: normal; }
#void-reset { flex: 1; text-align: center; }
.range-wrap { position: relative; height: 24px; }
.range-track { position: absolute; top: 11px; left: 0; right: 0; height: 4px; background: #e3e6ea; border-radius: 2px; }
.range-fill { position: absolute; top: 11px; height: 4px; background: #3b5bfd; border-radius: 2px; }
.range-wrap input[type=range] { position: absolute; top: 0; left: 0; width: 100%; height: 24px; margin: 0;
    background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range-wrap input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto;
    height: 22px; width: 22px; border-radius: 50%; background: #fff; border: 3px solid #3b5bfd; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.range-wrap input[type=range]::-moz-range-thumb { pointer-events: auto; height: 18px; width: 18px; border-radius: 50%;
    background: #fff; border: 3px solid #3b5bfd; cursor: pointer; }
.range-ends { display: flex; justify-content: space-between; color: #999; font-size: 12px; margin-top: 6px; }
.size-actions { display: flex; gap: 8px; margin-top: 14px; }
#size-apply { flex: 1; background: #3b5bfd; color: #fff; border: none; border-radius: 8px;
              padding: 8px 0; font-size: 13px; font-weight: 600; cursor: pointer; }
#size-apply:hover { background: #2f49d6; }
#size-reset { background: #fff; color: #556; border: 1px solid #ccc; border-radius: 8px;
              padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
#size-reset:hover { background: #f2f4f7; }
.viab-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
             white-space: nowrap; }
.viab-pill.strong { background: #e4f5e9; color: #1a7f37; }
.viab-pill.yes { background: #fbe9d7; color: #9a4a12; }
.viab-pill.maybe { background: #eef0f2; color: #667; }
/* viability filter popover */
#viab-menu { min-width: 200px; }
#viab-menu label { display: flex; align-items: center; gap: 8px; padding: 5px 6px; font-size: 13px; cursor: pointer; border-radius: 5px; }
#viab-menu label:hover { background: #f2f4f7; }
#reco-list .rk { color: #bbb; font-variant-numeric: tabular-nums; text-align: right; }
#reco-list img { width: 34px; height: 34px; object-fit: contain; border-radius: 6px; background: #f6f6f6; }
#reco-list .nm { font-weight: 600; }
#reco-list .cat { color: #889; }
#reco-list .fmt { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.fmt-tag { display: inline-block; padding: 2px 7px; border-radius: 999px; background: #eef0f5;
    color: #556; font-size: 10px; line-height: 1.5; white-space: nowrap; }
.fmt-tag.primary { background: #e6ecff; color: #1f3bad; font-weight: 700; border: 1px solid #b9c6ff; padding: 1px 6px; }
#reco-list .sc { text-align: right; font-variant-numeric: tabular-nums; color: #1a7f37; font-weight: 600; }
#reco-list .noimg { width: 34px; height: 34px; border-radius: 6px; background: #eef0f2; }
#reco-list li { cursor: pointer; }
#reco-list li:hover { background: #f6f8fa; }

/* tenant detail (inline, replaces the list) */
#reco-detail { height: 100%; overflow: auto; padding: 20px 24px; }
#reco-detail.hidden, #reco-wrap.hidden { display: none; }
#reco-back { background: none; border: none; color: #4e79a7; font-size: 13px; font-weight: 600;
             cursor: pointer; padding: 0; margin-bottom: 16px; }
#tenant-hero { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
#tenant-hero img, #tenant-hero .noimg { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: #f6f6f6; flex: none; }
#tenant-hero .h-info { min-width: 0; flex: 1; }
#tenant-hero .h-name { font-size: 22px; font-weight: 700; }
#tenant-hero .h-cat { color: #889; font-size: 14px; margin-top: 2px; }
#tenant-hero .h-about { flex-basis: 100%; width: 100%; color: #556; font-size: 13px; line-height: 1.5; margin-top: 4px; white-space: pre-wrap; }
#tenant-hero .h-metrics { margin-left: auto; display: flex; gap: 22px; align-items: flex-start; }
#tenant-hero .h-metric { text-align: right; }
#tenant-hero .h-metric .v { font-size: 20px; font-weight: 700; color: #1a1a2e; white-space: nowrap; }
#tenant-hero .h-metric .l { font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: .04em; }
#tenant-hero .h-metric.score .v { font-size: 26px; color: #1a7f37; }

/* tenant stat cards (fit score / positioning / comparable markets) */
#tenant-cards { display: grid; grid-template-columns: auto 1fr 1.35fr; gap: 12px; margin: 16px 0 4px;
  align-items: stretch; }
.tcard { border: 1px solid #e7e9ee; border-radius: 12px; background: #fff; padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(20,30,60,.05); display: flex; flex-direction: column; }
.tc-h { font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: #8a94a6; font-weight: 700; margin-bottom: 10px; }
/* fit score gauge */
.tc-fit { align-items: center; }
.tc-fitbody { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.fit-gauge { width: 66px; height: 66px; }
.fit-gauge .fit-bg { fill: none; stroke: #eef0f4; stroke-width: 8; }
.fit-gauge .fit-fg { fill: none; stroke-width: 8; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: 40px 40px; transition: stroke-dashoffset .4s; }
.fit-fg.great { stroke: #34c759; } .fit-fg.good { stroke: #4e79a7; }
.fit-fg.fair { stroke: #f0a020; } .fit-fg.low { stroke: #d64550; }
.fit-num { font-size: 22px; font-weight: 800; fill: #1a2233; text-anchor: middle; }
.fit-den { font-size: 9px; fill: #9aa2b1; text-anchor: middle; }
.fit-badge { font-size: 11px; font-weight: 700; padding: 2px 11px; border-radius: 999px; }
.fit-badge.great { background: #e4f7ea; color: #1a7f37; } .fit-badge.good { background: #e8eefb; color: #345; }
.fit-badge.fair { background: #fdf0dd; color: #96620a; } .fit-badge.low { background: #fbe4e6; color: #b02330; }
/* positioning metrics */
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; flex: 1; }
.pm-tall { grid-row: span 2; }
.pm-tall, .pm-cell { background: #fafbfc; border: 1px solid #eef0f4; border-radius: 9px;
  padding: 8px 16px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.pm-l { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: #8a94a6; font-weight: 600; white-space: nowrap; }
.pm-v { font-size: 18px; font-weight: 800; color: #1a2233; margin-top: 3px; white-space: nowrap; }
.pm-up { color: #1a7f37; }
.pm-down { color: #d64550; }
/* comparable markets */
.cmp-body { background: #fafbfc; border: 1px solid #eef0f4; border-radius: 9px; padding: 12px 14px;
  flex: 1; display: flex; flex-direction: column; justify-content: center; }
.cmp-top { display: flex; align-items: baseline; gap: 7px; }
.cmp-n { font-size: 24px; font-weight: 800; color: #1a2233; }
.cmp-of { font-size: 13px; color: #9aa2b1; }
.cmp-pct { margin-left: auto; font-size: 16px; font-weight: 800; color: #2f49d6; }
.cmp-track { height: 8px; background: #e6e9ef; border-radius: 6px; margin: 9px 0 8px; overflow: hidden; }
.cmp-fill { display: block; height: 100%; background: #2f6bff; border-radius: 6px; }
.cmp-foot { font-size: 13px; color: #45506a; }

#tenant-drivers { margin-top: 22px; }
#tenant-drivers h3 { margin: 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #4e79a7; }
#tenant-drivers .sub { margin: 4px 0 16px; color: #778; font-size: 14px; }
#drivers-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.driver-pill { display: inline-flex; align-items: center; gap: 8px; background: #f4f6f8; border: 1px solid #e6e9ec;
               border-radius: 999px; padding: 6px 14px 6px 8px; font-size: 14px; font-weight: 500; }
.driver-pill img { width: 22px; height: 22px; object-fit: contain; border-radius: 50%; background: #fff; }
.driver-pill .dp-no { width: 22px; height: 22px; border-radius: 50%; background: #dde; }

/* void report */
#void-report { margin-top: 22px; }
#void-report h3 { margin: 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #4e79a7; }
#void-report .sub { margin: 4px 0 12px; color: #778; font-size: 14px; }
.vr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
#void-toggle { display: flex; background: #fff; border: 1px solid #d7dbe0; border-radius: 8px; overflow: hidden; flex: none; }
#void-toggle .vmode { border: none; background: #fff; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; color: #445; }
#void-toggle .vmode.active { background: #111; color: #fff; }
#void-map { height: 380px; width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid #e6e9ec; }
.void-legend { background: #fff; padding: 8px 10px; border-radius: 8px; box-shadow: 0 1px 6px rgba(0,0,0,.2);
               font-size: 12px; line-height: 1.7; }
.void-legend .li { display: flex; align-items: center; gap: 7px; }
.void-legend .sw { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.void-legend .sw.subj { background: #e11; } .void-legend .sw.near { background: #2b6cff; }
.void-legend .sw.nrst { background: #f2711c; }
.void-legend .ring { width: 12px; height: 12px; border: 1.5px dashed #6a5acd; border-radius: 50%; flex: none; }
.void-legend hr { border: none; border-top: 1px solid #eee; margin: 6px 0; }
.void-legend b { font-variant-numeric: tabular-nums; }
.void-dot { background: #2b6cff; border: 2px solid #fff; border-radius: 50%; width: 13px; height: 13px;
            box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.void-dot.nearest { background: #f2711c; width: 16px; height: 16px; }

/* market name in the side list: street-pair name + county sub-line */
#markets-list .cid { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
#markets-list .cid-nm { font-weight: 600; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
#markets-list .cid-sub { font-size: 10.5px; color: #9aa3b2; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.market-popup .mp-sub { font-size: 11px; color: #8a92a3; margin: -4px 0 7px; }
.market-popup h4 { overflow-wrap: anywhere; }
