/* =====================================================================
   Design system. Warm charcoal layers (dark) or warm paper (light), one orange accent,
   large soft radii, pill controls, medium-weight type. Theme: html[data-theme].
   ===================================================================== */
:root {
  --bg: #121212;
  --surface: #1b1b1b;
  --surface-2: #232323;
  --surface-3: #2d2d2d;
  --raised: #343434;
  --line: rgba(255, 255, 255, .06);
  --line-2: rgba(255, 255, 255, .11);
  --ink: #f3f3f1;
  --ink-2: #b2b2ae;
  --ink-3: #8c8c88;
  --accent: #fe650b;
  --accent-2: #ff7a2c;
  --accent-deep: #d95100;
  --accent-ink: #ffffff;
  --accent-soft: rgba(254, 101, 11, .14);
  --good: #45c37b;
  --good-soft: rgba(69, 195, 123, .14);
  --bad: #ff5d5d;
  --bad-soft: rgba(255, 93, 93, .14);
  --warn: #f2b23e;
  --warn-soft: rgba(242, 178, 62, .15);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px rgba(0, 0, 0, .28);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .55);
  --scrim: rgba(0, 0, 0, .55);
  --glass: rgba(27, 27, 27, .78);
  --map-filter: brightness(.66) saturate(.85) contrast(1.05);
  --map-fade: rgba(18, 18, 18, .82);
  --map-fade-0: rgba(18, 18, 18, 0);
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --r-xl: 28px; --r-lg: 22px; --r: 16px; --r-sm: 12px;
  --rail: 84px;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #eeede9;
  --surface: #ffffff;
  --surface-2: #f4f3f0;
  --surface-3: #e9e8e4;
  --raised: #ffffff;
  --line: rgba(24, 24, 22, .07);
  --line-2: rgba(24, 24, 22, .12);
  --ink: #161615;
  --ink-2: #4c4c48;
  --ink-3: #6b6a65;
  --accent: #f55d05;
  --accent-2: #ff7323;
  --accent-deep: #d04c00;
  --accent-soft: rgba(245, 93, 5, .1);
  --good: #18995a;
  --good-soft: rgba(24, 153, 90, .1);
  --bad: #e2433f;
  --bad-soft: rgba(226, 67, 63, .09);
  --warn: #b97708;
  --warn-soft: rgba(213, 140, 15, .12);
  --shadow: 0 1px 2px rgba(20, 20, 18, .04), 0 10px 28px rgba(20, 20, 18, .06);
  --shadow-lg: 0 30px 80px rgba(20, 20, 18, .18);
  --scrim: rgba(30, 30, 28, .32);
  --glass: rgba(255, 255, 255, .86);
  --map-filter: brightness(.98) saturate(.9);
  --map-fade: rgba(238, 237, 233, .85);
  --map-fade-0: rgba(238, 237, 233, 0);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--bg); }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; font-feature-settings: 'ss01', 'cv11'; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ic { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3.5px; }
.num { font-variant-numeric: tabular-nums; }
.cap { font-size: 12px; color: var(--ink-2); font-weight: 450; display: inline-flex; align-items: center; gap: 6px; }
.big { font-weight: 500; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.big small { font-size: .42em; color: var(--ink-3); margin-left: .2em; letter-spacing: 0; font-weight: 450; }
.pos { color: var(--good); } .neg { color: var(--bad); } .warn { color: var(--warn); } .acc { color: var(--accent); }
.grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.note { color: var(--ink-2); font-size: 12.5px; margin: 12px 2px 0; line-height: 1.5; }
.link { color: var(--ink-2); font-size: 12.5px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.link:hover { color: var(--ink); text-decoration-color: currentColor; }
.link.neg { color: var(--bad); }

/* ---------- surfaces ---------- */
.glass { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.tile { background: var(--surface-2); border-radius: var(--r); padding: 14px; }
.form { padding: 20px; display: flex; flex-direction: column; gap: 14px; }

/* ---------- app shell: icon rail + top bar ---------- */
.app { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 0; }
.rail .logo { width: 44px; height: 44px; display: block; margin: 2px 0 20px; filter: drop-shadow(0 8px 18px rgba(254, 101, 11, .3)); }
.rail nav { display: flex; flex-direction: column; gap: 8px; }
.rail .nb, .rail .rb { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); border: 1px solid var(--line-2); transition: background .15s, color .15s, border-color .15s; }
.rail .nb:hover, .rail .rb:hover { color: var(--ink); background: var(--surface-2); }
.rail .nb[aria-selected="true"], .rail .nb[aria-selected="true"]:hover { background: #fff; color: #161615; border: 1.5px solid var(--accent); }
.rail .nb .lbl, .rail .rb .lbl { position: absolute; left: 60px; top: 50%; transform: translate(-4px, -50%); white-space: nowrap; padding: 6px 10px; border-radius: 10px; background: var(--raised); color: var(--ink); font-size: 12.5px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s; z-index: 40; border: 1px solid var(--line); }
.rail .nb:hover .lbl, .rail .rb:hover .lbl, .rail .nb:focus-visible .lbl { opacity: 1; transform: translate(0, -50%); }
.rail .bottom { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.main { min-width: 0; padding: 18px 28px 48px 8px; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: 18px; }
.top .titles { min-width: 0; }
.top .date { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.top h1 { margin: 2px 0 0; font-size: 26px; font-weight: 500; letter-spacing: -.03em; }
.top .field.llc { width: auto; max-width: 240px; height: 44px; padding: 0 38px 0 16px; border-radius: 999px; background-color: var(--surface); border: 1px solid var(--line-2); font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .field.llc:hover { background-color: var(--surface-2); }
/* LLC filter: a pill button that opens a menu (native select popups can’t be styled). */
select.field, button.field.llc { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.llc-menu { min-width: 200px; max-height: min(60vh, 420px); overflow-y: auto; }
.llc-menu button[aria-selected="true"] { color: var(--ink); font-weight: 500; }
.llc-menu button[aria-selected="true"]::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.menu-wrap { position: relative; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); font-weight: 500; font-size: 15px; }
.avatar:hover { background: var(--surface-2); }
.menu { position: absolute; right: 0; top: 52px; z-index: 50; min-width: 240px; padding: 6px; display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); }
.menu button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; color: var(--ink-2); }
.menu button:hover { background: var(--surface-2); color: var(--ink); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
.banner { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 10px 10px 10px 18px; margin-bottom: 16px; border-radius: 999px; background: var(--accent-soft); color: var(--ink-2); font-size: 13px; }
.banner b { color: var(--ink); font-weight: 500; }
.view { display: none; } .view.on { display: block; }
.app.loading main { opacity: .35; pointer-events: none; }

/* ---------- headings ---------- */
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 24px; margin: 4px 0 20px; }
.head p { margin: 6px 0 0; color: var(--ink-2); max-width: 64ch; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
h2.title { font-weight: 500; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.035em; line-height: 1.1; margin: 0; }
h3.sec { font-weight: 500; font-size: 13px; color: var(--ink-2); margin: 0 0 12px; letter-spacing: 0; }
.sec-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sec-h .sec { margin: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .15s, transform .1s, color .15s; border: 1px solid transparent; }
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn .ic { width: 16px; height: 16px; }
.btn.solid, .btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.solid:hover, .btn.primary:hover { background: var(--accent-2); }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.danger:hover { background: var(--bad); color: #fff; }
.btn.wide { width: 100%; height: 48px; font-size: 14px; }
.btn.ghost { background: transparent; border-color: var(--line-2); }
/* signature call to action: icon disc + label + chevrons */
.btn.cta { background: var(--accent); color: var(--accent-ink); height: 46px; padding: 0 16px 0 5px; gap: 10px; font-size: 13.5px; box-shadow: 0 8px 22px rgba(254, 101, 11, .28); }
.btn.cta:hover { background: var(--accent-2); }
.btn.cta .disc { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-deep); }
.btn.cta .chev { opacity: .65; margin-left: 2px; }

/* ---------- chips, dots ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.accent { background: var(--accent-soft); color: var(--accent); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.dot.rented { background: var(--good); } .dot.vacant { background: var(--bad); } .dot.rehab { background: var(--accent); } .dot.partial { background: var(--warn); }
.chip .dot { width: 6px; height: 6px; }

/* ---------- info popovers ---------- */
.ibtn { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--surface-3); font: 600 10px/1 var(--font); color: var(--ink-2); vertical-align: 1px; flex: none; }
.ibtn:hover, .ibtn:focus-visible { background: var(--ink); color: var(--bg); }
.popover { position: absolute; z-index: 60; padding: 14px 16px; font-size: 13px; line-height: 1.5; color: var(--ink-2); background: var(--raised); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); }
.popover b { display: block; color: var(--ink); font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.popover .calc { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-family: var(--mono); font-size: 11.5px; color: var(--ink); }
.popover .calc b { display: inline; font-size: inherit; color: var(--accent); margin: 0; }

/* ---------- segmented controls, filters ---------- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.seg button, .seg label { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; color: var(--ink-2); font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s, color .15s; }
.seg button:hover, .seg label:hover { color: var(--ink); }
.seg button[aria-pressed="true"], .seg label:has(input:checked) { background: var(--raised); color: var(--ink); box-shadow: var(--shadow); }
.seg label input { position: absolute; opacity: 0; pointer-events: none; }
.seg.route { display: flex; }
.seg.route label { flex: 1; text-align: center; }
.tabs2 { margin-bottom: 18px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; font-weight: 500; }
.filters button span { color: var(--ink-3); font-size: 11px; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.filters button[aria-pressed="true"] span { color: inherit; opacity: .6; }

/* ---------- form fields ---------- */
.field { width: 100%; height: 44px; padding: 0 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid transparent; font-size: 14px; font-variant-numeric: tabular-nums; transition: border-color .15s, background .15s; }
textarea.field { height: auto; padding: 11px 14px; resize: vertical; min-height: 80px; line-height: 1.5; }
.field::placeholder { color: var(--ink-3); }
.field:hover { background: var(--surface-3); }
.field:focus { outline: 0; border-color: var(--accent); background: var(--surface); }
.field.bad { border-color: var(--bad); }
select.field option { background: var(--surface); color: var(--ink); }
input[type=date].field { padding-right: 10px; }
.ctl { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ctl label, .ctl .lbl { display: flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 12.5px; font-weight: 450; }
.ctl label output { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--ink); }
.ctl small { color: var(--ink-3); font-size: 11.5px; line-height: 1.4; }
.req { color: var(--accent); }
.inwrap { position: relative; display: flex; align-items: center; }
.inwrap i { position: absolute; font-style: normal; color: var(--ink-3); font-size: 13px; pointer-events: none; }
.inwrap.pre i { left: 13px; } .inwrap.pre .field { padding-left: 25px; }
.inwrap.post i { right: 13px; } .inwrap.post .field { padding-right: 28px; }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-size: 13px; cursor: pointer; padding: 6px 0; align-self: end; }
.check input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; flex: none; }
.check span { display: flex; flex-direction: column; gap: 2px; }
.check small { color: var(--ink-3); font-size: 11.5px; }
.check.full { grid-column: 1 / -1; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fgrid .full, .fgrid .fsec { grid-column: 1 / -1; }
.fsec { margin: 10px 0 -2px; font-size: 13px; font-weight: 500; color: var(--ink); }
.fgrid2 { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.row-end { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; background: var(--surface-3); border-radius: 6px; }
input[type=range]::-moz-range-track { height: 6px; background: var(--surface-3); border-radius: 6px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); margin-top: -7px; border: 4px solid var(--raised); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 4px solid var(--raised); }
.controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 24px; padding: 20px 22px; margin-bottom: 16px; align-items: end; }
.controls .full-row { grid-column: 1 / -1; }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 18px 20px; position: relative; }
.kpi .v { font-size: 34px; margin: 14px 0 6px; }
.kpi p { margin: 0; color: var(--ink-3); font-size: 12.5px; }
.kpi .cap::before, .out > .cap::before, .floater > .cap::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; border-radius: var(--r-lg); }
table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 900px; }
th { font-size: 12px; font-weight: 450; color: var(--ink-3); text-align: right; padding: 14px 16px; white-space: nowrap; border-bottom: 1px solid var(--line); }
td { padding: 14px 16px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { text-align: left; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.link { cursor: pointer; transition: background .12s; }
tbody tr.link:hover td { background: var(--surface-2); }
tfoot td { border-top: 1px solid var(--line-2); border-bottom: 0; font-weight: 500; }
td .sub { display: block; color: var(--ink-3); font-size: 11.5px; margin-top: 2px; }
td.addr { font-weight: 500; }
th button.sort { font: inherit; color: inherit; }
th button.sort:hover { color: var(--ink); }
.empty-row { text-align: center !important; color: var(--ink-3); padding: 32px !important; }
.cellbar { position: relative; display: inline-block; min-width: 72px; }
.cellbar::after { content: ""; position: absolute; right: 0; bottom: -6px; height: 3px; border-radius: 3px; background: var(--accent); width: var(--w, 0%); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.search { max-width: 320px; border-radius: 999px; padding-left: 18px; }
.termbtn { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; padding: 6px 12px; border-radius: 12px; background: var(--surface-2); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.termbtn span { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); font-weight: 400; }
.termbtn:hover { background: var(--surface-3); color: var(--ink); }
.termbtn.custom { background: var(--accent-soft); color: var(--accent); }

/* ---------- portfolio: map stage ---------- */
.stage { position: relative; min-height: 720px; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.mapzone { position: absolute; inset: 0; }
.mapzone #map { position: absolute; inset: 0; }
.mapzone #map .mapboxgl-canvas { filter: var(--map-filter); }
.mapzone::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--map-fade) 0, var(--map-fade-0) 520px), linear-gradient(0deg, var(--map-fade) 0, var(--map-fade-0) 40%); }
.maptitle { position: absolute; z-index: 2; left: 404px; top: 26px; pointer-events: none; }
.maptitle h2 { font-weight: 500; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.04em; line-height: 1; margin: 0; color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.maptitle .chip { margin-top: 12px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.map-off { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); padding: 24px; text-align: center; }
.panel { position: absolute; z-index: 3; left: 14px; top: 14px; bottom: 14px; width: 374px; display: flex; flex-direction: column; gap: 10px; padding: 12px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; background: var(--glass); border-radius: var(--r-lg); border: 1px solid var(--line); backdrop-filter: blur(24px) saturate(1.2); -webkit-backdrop-filter: blur(24px) saturate(1.2); box-shadow: var(--shadow); }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.counter { padding: 12px 14px; }
.counter .l { display: flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 12px; }
.counter .v { font-size: 30px; margin-top: 10px; }
.cfcard { padding: 16px; }
.cfcard .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cfcard .v { font-size: 40px; margin-top: 12px; }
.spark { display: block; width: 100%; height: auto; margin-top: 10px; color: var(--ink); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-2); margin-top: 8px; align-items: center; }
.legend i { display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--ink); vertical-align: middle; margin-right: 6px; }
.legend i.dash { border-top: 2px dashed var(--accent); }
.legend i.pt { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--accent); }
.legend i.sw { width: 10px; height: 10px; border: 0; border-radius: 3px; background: var(--ink); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pcard { text-align: left; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); display: flex; flex-direction: column; gap: 3px; min-width: 0; transition: background .15s, box-shadow .15s; border: 1px solid transparent; }
.pcard:hover { background: var(--surface-3); }
.pcard.sel { border-color: var(--accent); }
.pcard .a { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .c { font-size: 11.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.pcard .m { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11px; color: var(--ink-3); }
.pcard .m b { display: block; font-weight: 500; font-size: 15px; color: var(--ink); letter-spacing: -.02em; }
.floaters { position: absolute; z-index: 3; right: 14px; bottom: 14px; display: flex; gap: 10px; align-items: stretch; }
.floater { padding: 16px 18px; width: 300px; background: var(--glass); backdrop-filter: blur(24px) saturate(1.2); -webkit-backdrop-filter: blur(24px) saturate(1.2); }
.floater .v { font-size: 38px; margin: 12px 0 6px; }
.floater p { margin: 0; color: var(--ink-2); font-size: 12.5px; }
.upl { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.upl li { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.upl li b { font-weight: 500; color: var(--ink); font-family: var(--mono); font-size: 11.5px; white-space: nowrap; }
.eqbar { display: flex; gap: 3px; height: 8px; margin-top: 12px; }
.eqbar span { border-radius: 4px; background: var(--ink); }
.eqbar span + span { background: var(--accent); }
/* pins: Mapbox moves .pin-wrap; visual effects live on the inner .pin */
.pin-wrap { width: 44px; height: 44px; transition: none !important; }
.pin-wrap.sel { z-index: 3; }
.pin { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .35); background: rgba(20, 20, 20, .35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: transform .18s, border-color .18s, opacity .18s; }
.pin i { width: 12px; height: 12px; border-radius: 50%; display: block; background: #888; box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
.pin.rented i { background: var(--good); } .pin.vacant i { background: var(--bad); } .pin.rehab i { background: var(--accent); } .pin.partial i { background: var(--warn); }
.pin:hover { transform: scale(1.12); }
.pin.sel { transform: scale(1.35); border-color: #fff; background: rgba(20, 20, 20, .5); }
.pin.dim { opacity: .25; }
.pin .lab { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 4px); white-space: nowrap; font-size: 11px; font-weight: 500; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); pointer-events: none; }
.pin.sel .lab { transform: translate(-50%, 4px) scale(.74); }
.pf-popup { z-index: 5; }
.pf-popup .mapboxgl-popup-content { background: transparent; padding: 0; box-shadow: none; border-radius: 0; }
.pf-popup .mapboxgl-popup-tip { display: none; }
.callout { width: 250px; padding: 14px 16px; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.callout .a { font-size: 15px; font-weight: 500; margin-top: 2px; }
.callout .row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 12px; }
.callout .v { font-size: 28px; }
.callout .go { margin-top: 12px; width: 100%; height: 38px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 500; }
.callout .go:hover { background: var(--accent-2); }
.mapboxgl-ctrl-group { background: var(--glass) !important; border-radius: 14px !important; overflow: hidden; box-shadow: var(--shadow) !important; }
.mapboxgl-ctrl-group button + button { border-top: 1px solid var(--line) !important; }
html:not([data-theme="light"]) .mapboxgl-ctrl-group button .mapboxgl-ctrl-icon { filter: invert(1) opacity(.8); }
.mapboxgl-ctrl-top-right { top: 14px !important; right: 14px !important; }
.mapboxgl-ctrl-attrib { background: var(--glass) !important; }
.mapboxgl-ctrl-attrib a { color: var(--ink-3) !important; }

/* ---------- checklist ---------- */
.checklist { padding: 14px; }
.ck-head { display: flex; justify-content: space-between; width: 100%; font-size: 12.5px; color: var(--ink-2); }
.ck-bar { height: 6px; border-radius: 6px; background: var(--surface-3); margin: 10px 0 4px; overflow: hidden; }
.ck-bar i { display: block; height: 100%; border-radius: 6px; background: var(--accent); }
.checklist ul { list-style: none; margin: 8px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.checklist li button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 7px 6px; border-radius: 10px; font-size: 12.5px; }
.checklist li button:hover:not(:disabled) { background: var(--surface-3); }
.checklist li.done button { color: var(--ink-3); text-decoration: line-through; }
.checklist .box { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 11px; flex: none; }
.checklist li.done .box { background: var(--good); border-color: var(--good); color: #fff; }

/* ---------- modal ---------- */
.modal-scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; padding: max(28px, env(safe-area-inset-top)) 16px 28px; overflow-y: auto; opacity: 0; transition: opacity .15s; }
.modal-scrim.on { opacity: 1; }
.modal { width: min(560px, 100%); margin: auto 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.modal.wide { width: min(780px, 100%); }
.m-head { display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px 4px; }
.m-head h2 { margin: 0; font-weight: 500; font-size: 22px; letter-spacing: -.025em; }
.m-head p { margin: 6px 0 0; color: var(--ink-2); font-size: 13px; }
.x { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); display: grid; place-items: center; flex: none; font-size: 13px; }
.x:hover { background: var(--surface-3); color: var(--ink); }
.m-body { padding: 16px 24px 6px; }
.m-text { color: var(--ink-2); margin: 0 0 6px; line-height: 1.55; }
.m-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 16px 24px 22px; }
.m-foot.inline { padding: 18px 0 4px; }
.m-foot .left { margin-right: auto; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps span { flex: 1; padding-top: 10px; border-top: 4px solid var(--surface-3); font-size: 12px; color: var(--ink-3); font-weight: 500; border-radius: 2px; }
.steps span.on { border-color: var(--accent); color: var(--ink); }
fieldset.st { border: 0; margin: 0; padding: 0; min-width: 0; }
.unitrows { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.unitrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.unitrow .ul { font-size: 12px; color: var(--ink-3); padding-bottom: 13px; min-width: 50px; font-weight: 500; }
.unitrow:only-child { grid-template-columns: 1fr; }
.upload { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1.5px dashed var(--line-2); border-radius: var(--r); cursor: pointer; color: var(--ink-2); font-size: 13px; }
.upload:hover { border-color: var(--accent); color: var(--ink); }
.upload input { max-width: 110px; font-size: 12px; color: var(--ink-3); }
.upload.small { padding: 9px 14px; border-radius: 999px; }
.docs { display: flex; flex-direction: column; gap: 6px; margin: 4px 0; }
.doc { display: flex; justify-content: space-between; gap: 10px; }
.docs-inline { font-size: 12.5px; color: var(--ink-3); display: inline-flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 12px; max-height: 210px; overflow: auto; padding: 4px 2px; }
.checks .check { padding: 5px 0; }
.has-sugg { position: relative; }
.sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; padding: 6px; display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }
.sugg button { text-align: left; padding: 9px 11px; border-radius: 11px; display: flex; flex-direction: column; }
.sugg button b { font-weight: 500; font-size: 13px; }
.sugg button span { font-size: 11.5px; color: var(--ink-3); }
.sugg button:hover, .sugg button.on { background: var(--surface-2); }
.sheet-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.sheet-banner { padding: 11px 14px; margin-bottom: 14px; border-radius: 14px; background: var(--good-soft); font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.sheet-banner b { color: var(--ink); font-weight: 500; }
.ctl.from-sheet .field, .check.from-sheet { box-shadow: 0 0 0 2px var(--good-soft), 0 0 0 1px var(--good) inset; border-radius: var(--r-sm); }
.ctl.unsure .field, .check.unsure { box-shadow: 0 0 0 2px var(--warn-soft), 0 0 0 1px var(--warn) inset; border-radius: var(--r-sm); }
.reading { display: flex; align-items: center; gap: 14px; padding: 6px 0 16px; }
.spin { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 34px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty h3 { margin: 0; font-weight: 500; font-size: 20px; letter-spacing: -.02em; }
.empty p { margin: 0 0 10px; color: var(--ink-2); max-width: 56ch; }

/* ---------- auth & welcome ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(900px 500px at 75% 0%, var(--accent-soft), transparent 60%), var(--bg); }
.auth-card { width: min(420px, 100%); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.auth-card .brand { display: flex; align-items: center; }
.auth-card .brand img { height: 30px; width: auto; }
/* Wordmark in two inks: white HUNDRED on dark, near-black on light. */
html[data-theme="light"] .wm-dark, html:not([data-theme="light"]) .wm-light { display: none; }
.auth-card h1 { margin: 6px 0 0; font-weight: 500; font-size: 30px; letter-spacing: -.035em; }
.auth-sub { margin: 0; color: var(--ink-2); }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-links { display: flex; justify-content: space-between; gap: 10px; }
.auth-msg { padding: 11px 14px; border-radius: 14px; background: var(--good-soft); font-size: 13px; }
.welcome { max-width: 1040px; margin: 30px auto; display: flex; flex-direction: column; gap: 12px; }
.welcome > p { color: var(--ink-2); max-width: 62ch; margin: 0 0 14px; }
.w-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.w-card { text-align: left; padding: 22px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; transition: transform .15s, box-shadow .15s; }
.w-card:hover { transform: translateY(-2px); }
.w-card .w-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); }
.w-card b { font-weight: 500; font-size: 20px; letter-spacing: -.02em; }
.w-card span { color: var(--ink-2); font-size: 13px; flex: 1; }
.w-card em { font-style: normal; color: var(--accent); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- tour ---------- */
.tour { position: fixed; inset: 0; z-index: 70; }
.tour-hole { position: fixed; border-radius: var(--r-lg); box-shadow: 0 0 0 9999px rgba(0, 0, 0, .6); transition: all .25s; pointer-events: none; outline: 2px solid var(--accent); }
.tour-card { position: fixed; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.tour-card h3 { margin: 4px 0 0; font-weight: 500; font-size: 20px; letter-spacing: -.02em; }
.tour-card p { margin: 0; color: var(--ink-2); }
.tour-btns { display: flex; gap: 8px; align-items: center; margin-top: 12px; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 20; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; z-index: 21; top: 10px; right: 10px; bottom: 10px; width: min(580px, calc(100% - 20px)); padding: 24px 24px 40px; overflow-y: auto; transform: translateX(calc(100% + 20px)); transition: transform .3s cubic-bezier(.2, .8, .2, 1); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.drawer.on { transform: none; }
.drawer > .x { position: absolute; top: 18px; right: 18px; }
.drawer h2 { font-weight: 500; font-size: 30px; letter-spacing: -.035em; margin: 12px 0 2px; padding-right: 44px; }
.drawer section { margin-top: 14px; padding: 18px; background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); }
.d-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.d-meta { color: var(--ink-2); font-size: 13px; }
.d-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.d-notes { white-space: pre-wrap; color: var(--ink-2); margin: 0; }
.mini4 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.mini4 .tile { background: var(--surface); border: 1px solid var(--line); }
.mini4 .tile .v { font-size: 26px; margin-top: 12px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.kv div > span { display: flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: 12px; margin-bottom: 3px; }
.kv div b { font-weight: 500; font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kv div em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.kv div em.neg { color: var(--bad); } .kv div em.warn { color: var(--warn); }
.kv div b span { display: inline; color: inherit; font-size: inherit; margin: 0; }
.kv div b span.pos { color: var(--good); } .kv div b span.neg { color: var(--bad); }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bars .r { display: grid; grid-template-columns: 130px 1fr 84px; gap: 12px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.bars .r > span:first-child { display: flex; align-items: center; gap: 4px; }
.bars .t { height: 6px; border-radius: 6px; background: var(--surface-2); }
.bars .t i { display: block; height: 100%; border-radius: 6px; background: var(--ink-3); }
.bars .r.tot { color: var(--ink); font-weight: 500; padding-top: 12px; border-top: 1px solid var(--line); }
.bars .r.tot .t i { background: var(--good); }
.bars .r.tot.neg .t i { background: var(--bad); }
.bars .r b { font-weight: 500; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.units { display: flex; flex-direction: column; gap: 8px; }
.unit, .card-row { padding: 14px; border-radius: var(--r); background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.u-top, .cr-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.u-top b, .cr-top b { display: block; font-weight: 500; }
.u-top span:not(.chip), .cr-top span { color: var(--ink-3); font-size: 12px; }
.lease { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.lease b { font-weight: 500; }
.lease > div > span { display: block; color: var(--ink-3); font-size: 12px; }
.lgrid { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-2); }
.lgrid b { color: var(--ink); font-weight: 500; }
.lgrid em { font-style: normal; }
.u-actions { display: flex; gap: 16px; }
.card-row .kv { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.linkrow { margin-top: 10px; }
.team { display: flex; flex-direction: column; gap: 8px; }
.team .p { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); align-items: center; }
.team .p b { display: block; font-weight: 500; font-size: 13.5px; }
.team .p span { color: var(--ink-3); font-size: 12px; }
.team .p .ph { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; font-family: var(--mono); font-size: 11.5px; }
.team .p .ph a { text-decoration: none; color: var(--ink-2); }
.team .p .ph a:hover { color: var(--ink); }

/* ---------- contacts & lenders grid ---------- */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.contact { padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.c-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.contact .n { font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.contact .co { color: var(--ink-2); font-size: 13px; }
.contact dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; font-size: 12.5px; }
.contact dt { color: var(--ink-3); }
.contact dd { margin: 0; overflow-wrap: anywhere; }
.contact dd a { text-decoration: none; }
.contact .kv { grid-template-columns: 1fr 1fr; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills button { height: 28px; padding: 0 11px; border-radius: 999px; background: var(--surface-2); font-size: 12px; color: var(--ink-2); }
.pills button:hover { background: var(--surface-3); color: var(--ink); }

/* ---------- rehab ---------- */
.hero-rh { padding: 24px; display: flex; flex-direction: column; gap: 22px; margin-bottom: 16px; }
.hero-rh .top2 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.hero-rh .kv { min-width: min(100%, 340px); flex: 1; max-width: 520px; }
.stepper { display: flex; gap: 6px; }
.step { flex: 1; min-width: 0; }
.step i { display: block; height: 6px; border-radius: 6px; background: var(--surface-3); }
.step.done i { background: var(--ink); }
.step.cur i { background: var(--accent); }
.step span { display: block; margin-top: 8px; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.step.cur span { color: var(--ink); }
.budgetbar { display: flex; gap: 3px; height: 10px; }
.budgetbar span { border-radius: 5px; min-width: 0; }
.budgetbar .sp { background: var(--ink); } .budgetbar .sc { background: var(--surface-3); } .budgetbar .ct { background: var(--accent); } .budgetbar .ov { background: var(--bad); }
.rh-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
.tlcard { padding: 20px 24px 16px; }
.tl { position: relative; height: 108px; margin: 0 14px; }
.tl .rail { position: absolute; left: 0; right: 0; top: 52px; height: 4px; border-radius: 4px; background: var(--surface-3); }
.tl .fillr { position: absolute; left: 0; top: 52px; height: 4px; border-radius: 4px; background: var(--ink); }
.tl .mk { position: absolute; top: 42px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-2); white-space: nowrap; }
.tl .mk i { display: block; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink-3); background: var(--surface); }
.tl .mk.funded i { background: var(--good); border-color: var(--good); }
.tl .mk.requested i { background: var(--accent); border-color: var(--accent); }
.tl .mk b { font-weight: 500; color: var(--ink); }
.tl .mk em { font-style: normal; font-size: 11px; color: var(--ink-3); font-family: var(--mono); }
.tl .tm { position: absolute; top: 4px; bottom: 0; border-left: 1.5px dashed var(--line-2); width: 0; }
.tl .tm span { position: absolute; top: 0; left: 8px; font-size: 11px; color: var(--ink-3); white-space: nowrap; font-weight: 500; }
.tl .tm.now { border-color: var(--accent); }
.tl .tm.now span { color: var(--accent); }
.tl .tm.end span { left: auto; right: 8px; }
.srow { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(130px, 1fr) 108px 96px; gap: 10px 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.srow:first-of-type { border-top: 0; }
.srow .sn b { display: block; font-weight: 500; font-size: 13.5px; }
.srow .sn span { display: block; color: var(--ink-3); font-size: 12px; }
.srow .sp { display: flex; align-items: center; gap: 10px; }
.srow .sp output { font-family: var(--mono); font-size: 12px; width: 40px; text-align: right; color: var(--ink-2); }
.srow .sx { display: block; }
.srow .sx .cap { display: block; margin-bottom: 4px; font-size: 11px; color: var(--ink-3); }
.srow .sx .field { height: 36px; font-size: 13px; }
.srow .sb { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.srow .sb .cap { display: block; margin-bottom: 4px; font-size: 11px; color: var(--ink-3); }
.srow .sb em { display: block; font-style: normal; font-size: 11px; color: var(--bad); }
.srow .sb span { display: block; font-size: 11px; color: var(--ink-3); }
.srow.cont { background: var(--surface-2); border-radius: var(--r); padding: 12px 14px; border-top: 0; margin-top: 8px; }
.draw { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid transparent; }
.draw.ready { border-color: var(--warn); }
.draw .no { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.draw.funded .no { background: var(--good); color: #fff; }
.draw .lb b { display: block; font-weight: 500; font-size: 13.5px; }
.draw .lb span { color: var(--ink-3); font-size: 12px; }
.draw .rt { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.draw .rt .amt { font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.draw .gate { grid-column: 2 / 4; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); }
.draw .gate div { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.draw .gate i { display: block; height: 100%; border-radius: 6px; background: var(--ink-3); }
.draw.ready .gate i { background: var(--warn); }
.logrow { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.logrow:first-of-type { border-top: 0; }
.logrow .d { font-family: var(--mono); font-size: 11px; color: var(--ink-3); padding-top: 4px; }
.logrow b { font-weight: 500; color: var(--ink); }

/* ---------- next deal / comparison ---------- */
.outs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.out { padding: 18px 20px; }
.out .v { font-size: 34px; margin: 14px 0 10px; }
.out ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--ink-2); }
.out li { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.out li b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
table.cmp { min-width: 540px; }
table.cmp th { text-align: left; font-size: 13px; color: var(--ink-2); font-weight: 450; }
table.cmp thead th { font-size: 12px; text-align: right; white-space: normal; vertical-align: bottom; }
table.cmp thead th:first-child { text-align: left; }
table.cmp thead th .sub { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 4px; font-weight: 400; }
table.cmp td.win { color: var(--good); }
table.cmp td.neg { color: var(--bad); }
table.cmp td.picked, table.cmp th.picked { background: var(--accent-soft); }
table.cmp thead th.picked { box-shadow: inset 0 3px 0 var(--accent); }
.pick { font: inherit; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.lcards { display: grid; gap: 8px; }
.lcard { padding: 14px; border-radius: var(--r); background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lc-name { font-weight: 500; font-size: 14.5px; letter-spacing: -.01em; }
.lc-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 12.5px; }
.lc-grid dt { color: var(--ink-3); }
.lc-grid dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.lc-grid em { font-style: normal; }
.chartbox { padding: 20px 22px; position: relative; }
.chartbox svg { display: block; width: 100%; overflow: visible; color: var(--ink); }
.chartbox .legend { margin: 0 0 10px; }
.tip { position: absolute; z-index: 3; pointer-events: none; padding: 10px 12px; border-radius: 14px; font-size: 12px; min-width: 180px; background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .1s; }
.tip.on { opacity: 1; }
.tip .t { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); margin-bottom: 6px; }
.tip div.r { display: flex; justify-content: space-between; gap: 14px; color: var(--ink-2); }
.tip div.r b { color: var(--ink); font-weight: 500; }
.timeline { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.timeline .ev { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-2); padding: 11px 14px; border-radius: var(--r); background: var(--surface-2); }
.timeline .ev b { font-weight: 500; color: var(--ink); }

/* ---------- settings, SREO, misc ---------- */
.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; align-items: start; }
.actions-list { display: flex; flex-wrap: wrap; gap: 8px; }
.sreo-card { padding: 22px 24px; }
.sreo-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.sreo-head h3 { margin: 0; font-weight: 500; font-size: 22px; letter-spacing: -.025em; }
.sreo-head p { margin: 4px 0 0; color: var(--ink-2); font-size: 13px; }
.sreo-sum { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--ink-3); }
.sreo-sum b { color: var(--ink); font-weight: 500; margin-left: 4px; }
table.sreo { min-width: 1100px; }
table.sreo td, table.sreo th { padding: 11px 10px; font-size: 12.5px; }
.sreo-note { color: var(--ink-3); font-size: 12px; margin: 14px 0 0; }
.sharerow { display: flex; gap: 8px; align-items: center; }
.sharerow .field { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; }
.share-page { max-width: 1400px; margin: 0 auto; padding: 24px 16px 48px; }
table.mini { min-width: 600px; }
table.mini td, table.mini th { padding: 9px 10px; font-size: 12px; }
.imp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 20px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast[data-kind="error"] { background: var(--bad); color: #fff; }
.fatal { position: fixed; inset: auto 16px 16px; padding: 14px 16px; border-radius: 16px; background: var(--bad); color: #fff; z-index: 99; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .fgrid2, .rh-grid { grid-template-columns: 1fr; }
  .stage { display: flex; flex-direction: column; min-height: 0; overflow: visible; border: 0; background: none; gap: 12px; }
  .mapzone { position: relative; inset: auto; height: 460px; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); }
  .mapzone::after { background: linear-gradient(0deg, var(--map-fade) 0, var(--map-fade-0) 35%); }
  .maptitle { left: 20px; top: 20px; }
  .panel { position: static; width: auto; order: 2; overflow: visible; background: var(--surface); backdrop-filter: none; }
  .floaters { position: static; order: 3; flex-direction: column; }
  .floater { width: auto; background: var(--surface); backdrop-filter: none; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .main { padding: 14px 16px 104px; }
  .rail { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); top: auto; height: auto; flex-direction: row; justify-content: center; padding: 8px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow-lg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
  .rail .logo, .rail .bottom { display: none; }
  .rail nav { flex-direction: row; gap: 4px; }
  .rail .nb:not([aria-selected="true"]) { border-color: transparent; }
  .rail .nb { width: 46px; height: 46px; }
  .rail .nb .lbl { display: none; }
  .top h1 { font-size: 22px; }
  .top .field.llc { max-width: 150px; }
  .top #add-prop .lbl-long, .top #add-prop .chev { display: none; }
  .fgrid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .srow { grid-template-columns: minmax(0, 1fr) 100px; }
  .srow .sp { grid-column: 1 / -1; order: 3; }
  .draw { grid-template-columns: 34px minmax(0, 1fr); }
  .draw .rt { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .draw .gate { grid-column: 1 / -1; }
  .bars .r { grid-template-columns: 100px 1fr 72px; }
  .m-head, .m-body, .m-foot { padding-left: 18px; padding-right: 18px; }
  .sharerow { flex-wrap: wrap; }
  .hero-rh { padding: 18px; }
  .mapzone { height: 400px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation-duration: 3s !important; } }

/* ---------- print (lender schedule) ---------- */
@media print {
  :root, html[data-theme="light"] { --ink: #111; --ink-2: #333; --ink-3: #666; --line: #ccc; --line-2: #999; --bg: #fff; --surface: #fff; }
  body { background: #fff !important; color: #111; }
  .no-print, .rail, .top, #banner, .drawer, .scrim, .toast, .mapboxgl-ctrl { display: none !important; }
  .app { display: block; }
  .main { padding: 0; }
  .view { display: none !important; }
  #v-sreo.view.on { display: block !important; }
  .glass, .sreo-card { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
  .tbl-wrap { overflow: visible; }
  table.sreo { min-width: 0; width: 100%; }
  table.sreo td, table.sreo th { padding: 5px 6px; font-size: 9.5px; color: #111; border-color: #ccc; }
  @page { size: landscape; margin: 12mm; }
}

/* The top bar already names the page, so view headings only carry their description and actions. */
.view > .head h2.title { display: none; }
.view > .head { margin-top: -4px; }
/* quieter highlight for the chosen route and the sample-data banner */
table.cmp td.picked, table.cmp th.picked { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.banner { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.banner > span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: 1px; }
@media (max-width: 820px) { .banner { border-radius: 20px; padding: 14px 16px; } }

/* Layering: the sidebar (and its hover labels) sits above page content (map panels and cards go up to 5),
   but below the property drawer (20/21), modals (40) and toasts, so it never covers them. */
.rail { z-index: 15; }
@media (max-width: 820px) { .rail { z-index: 19; } }

/* =====================================================================
   Map page glass (desktop): the panel, corner cards and callout are see-through
   frosted glass over the satellite map, and so are the tiles inside them.
   ===================================================================== */
:root {
  --glass-bg: rgba(24, 24, 24, .38);
  --glass-tile: rgba(255, 255, 255, .07);
  --glass-tile-hover: rgba(255, 255, 255, .13);
  --glass-edge: rgba(255, 255, 255, .14);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .09);
  --glass-blur: blur(28px) saturate(1.5);
}
html[data-theme="light"] {
  --glass-bg: rgba(255, 255, 255, .58);
  --glass-tile: rgba(255, 255, 255, .52);
  --glass-tile-hover: rgba(255, 255, 255, .75);
  --glass-edge: rgba(255, 255, 255, .75);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .9);
}
@media (min-width: 1181px) {
  /* let the imagery reach the glass: a light fade instead of a near-solid one */
  .mapzone::after { background: linear-gradient(90deg, rgba(0, 0, 0, .22) 0, rgba(0, 0, 0, 0) 460px), linear-gradient(0deg, rgba(0, 0, 0, .28) 0, rgba(0, 0, 0, 0) 32%); }
  .stage .panel, .stage .floater, .pf-popup .callout {
    background: var(--glass-bg);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--glass-hi), 0 20px 50px rgba(0, 0, 0, .25);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
  }
  .stage .tile, .stage .pcard, .stage .filters button, .stage .chip:not(.good):not(.bad):not(.warn):not(.accent) {
    background: var(--glass-tile);
    box-shadow: var(--glass-hi);
  }
  .stage .pcard:hover, .stage .filters button:hover { background: var(--glass-tile-hover); }
  .stage .filters button[aria-pressed="true"] { background: var(--ink); }
  .stage .ck-bar, .stage .checklist .box { background: var(--glass-tile); }
  .maptitle .chip { background: var(--glass-bg); border: 1px solid var(--glass-edge); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
}

/* =====================================================================
   Usability pass: small buttons, inline errors, drawer tabs, optional columns, phone layouts.
   ===================================================================== */
.btn.sm { height: 32px; padding: 0 12px; gap: 6px; font-size: 12.5px; }
.btn.sm .ic { width: 14px; height: 14px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.sec-h .btnrow { margin-top: 0; }
.opt-tag { font-weight: 450; font-size: 11.5px; color: var(--ink-3); margin-left: 6px; }
/* errors sit next to what needs fixing */
.ctl small.err { color: var(--bad); font-weight: 500; }
.m-err { margin: 4px 24px 0; padding: 10px 14px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-size: 13px; line-height: 1.45; }
.m-body .m-err { margin: 14px 0 0; }
/* property drawer: one section at a time */
.dtabs { position: sticky; top: -24px; z-index: 2; display: flex; gap: 2px; margin: 16px -24px 0; padding: 10px 24px; background: var(--bg); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.dtabs::-webkit-scrollbar { display: none; }
.dtabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.dtabs button:hover { color: var(--ink); background: var(--surface-2); }
.dtabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.dtabs button span { font-family: var(--mono); font-size: 11px; opacity: .65; }
/* optional table columns, shown with "More columns" */
table:not(.all) .opt { display: none; }
#p-table:not(.all), #f-table:not(.all) { min-width: 760px; }
.toolbar.tb-end { justify-content: flex-end; margin: -4px 0 10px; }
.sortsel { display: none; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.sortsel .field { height: 36px; width: auto; border-radius: 999px; font-size: 13px; }
.mcards { display: none; }

@media (max-width: 820px) {
  /* compact header: the page title and actions in one band */
  .top { margin-bottom: 12px; gap: 10px; }
  .top .date { display: none; }
  .top h1 { font-size: 20px; margin: 0; }
  .top .field.llc, .avatar { height: 40px; }
  .avatar { width: 40px; }
  .btn.cta { height: 40px; padding-left: 4px; }
  .btn.cta .disc { width: 32px; height: 32px; }
  .banner { padding: 8px 8px 8px 14px; border-radius: 999px; font-size: 12.5px; flex-wrap: nowrap; margin-bottom: 12px; }
  .banner .lbl-long { display: none; }
  /* two KPI tiles per row */
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { padding: 14px; }
  .kpi .v { font-size: 24px; margin: 10px 0 4px; }
  .kpi p { font-size: 11.5px; }
  /* Properties: cards instead of a wide table */
  #v-properties .tbl-wrap, #v-properties .colbtn { display: none; }
  .sortsel { display: inline-flex; }
  .toolbar .search { max-width: none; }
  .mcards { display: flex; flex-direction: column; gap: 8px; }
  .mcard { text-align: left; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
  .mc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
  .mc-a { font-weight: 500; font-size: 15px; min-width: 0; }
  .mc-a small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
  .mc-m { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 11.5px; color: var(--ink-3); }
  .mc-m b { display: block; font-weight: 500; font-size: 15px; color: var(--ink); margin-top: 2px; font-variant-numeric: tabular-nums; }
  .mc-f { font-size: 12px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 10px; }
  .drawer { padding: 20px 18px 40px; }
  .dtabs { top: -20px; margin: 14px -18px 0; padding: 8px 18px; }
  .m-err { margin: 4px 18px 0; }
}
/* keep gain/loss colors on numbers inside cards */
.pcard .m b.pos, .mc-m b.pos { color: var(--good); }
.pcard .m b.neg, .mc-m b.neg { color: var(--bad); }
@media (max-width: 820px) {
  /* one-line header on phones: the Add button shrinks to its plus disc */
  .top { flex-wrap: nowrap; }
  .top .titles { flex: 1; }
  .top .grow { display: none; }
  .top .field.llc { max-width: 128px; padding: 0 30px 0 12px; }
  .top #add-prop { padding: 0 4px; gap: 0; }
  .top #add-prop > span:not(.disc) { display: none; }
  .toolbar .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .toolbar .seg button { flex: none; }
}

/* ---------- search ---------- */
.avatar.srch { display: grid; place-items: center; color: var(--ink-2); }
.avatar.srch:hover { color: var(--ink); }
.menu kbd { margin-left: auto; font: 500 10.5px var(--mono); color: var(--ink-3); padding: 2px 6px; border-radius: 6px; background: var(--surface-2); }
.sres { display: flex; flex-direction: column; gap: 2px; margin: 10px -8px 0; max-height: min(60vh, 520px); overflow-y: auto; }
.sres button { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; text-align: left; min-width: 0; }
.sres button:hover, .sres button.on { background: var(--surface-2); }
.sres .si { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); flex: none; }
.sres button.on .si, .sres button:hover .si { background: var(--surface-3); }
.sres .st { min-width: 0; flex: 1; }
.sres .st b { display: block; font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sres .st small { display: block; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sres em { font-style: normal; font-size: 11.5px; color: var(--ink-3); flex: none; }
/* Next Deal: saved deals */
.deal-bar .field { width: auto; min-width: 180px; max-width: 260px; height: 40px; border-radius: 999px; }
@media (max-width: 820px) {
  .top .avatar.srch { display: none; }
  .deal-bar { width: 100%; }
  .deal-bar .field { flex: 1; max-width: none; min-width: 0; }
}

/* ---------- land, placing a pin, plan a sale ---------- */
:root { --land: #b8925a; }
html[data-theme="light"] { --land: #93703a; }
.dot.land, .pin.land i { background: var(--land); }
.placebar { position: absolute; z-index: 4; left: 50%; top: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px; border-radius: 999px; font-size: 13px; background: var(--raised); box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); }
.placebar b { font-weight: 500; }
.sell-list { display: flex; flex-direction: column; gap: 2px; max-height: 360px; overflow-y: auto; margin: 0 -6px; }
.sell-pick { padding: 9px 6px; border-radius: 12px; align-self: stretch; }
.sell-pick:hover { background: var(--surface-2); }
.sell-pick b { font-weight: 500; }
.sell-pick small { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.sell-card .fgrid { margin-top: 2px; }
table.cmp.sale th, table.cmp.sale td { text-align: right; }
table.cmp.sale th:first-child, table.cmp.sale td:first-child, table.cmp.sale th:nth-child(2), table.cmp.sale td:nth-child(2) { text-align: left; }
.ev-row { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-radius: var(--r); background: var(--surface-2); font-size: 13px; color: var(--ink-2); }
.ev-row b { font-weight: 500; color: var(--ink); }
@media (max-width: 1180px) { .placebar { position: absolute; top: 12px; } }

/* ---------- terms and privacy pages, sign-in legal line ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 36px 20px 64px; line-height: 1.65; color: var(--ink-2); font-size: 15px; }
.legal .back { color: var(--ink-2); font-size: 13px; text-decoration: none; }
.legal .back:hover { color: var(--ink); }
.legal h1 { color: var(--ink); font-weight: 500; font-size: clamp(30px, 5vw, 40px); letter-spacing: -.035em; margin: 22px 0 4px; }
.legal .eff { margin: 0 0 26px; font-size: 13px; color: var(--ink-3); }
.legal h2 { color: var(--ink); font-weight: 500; font-size: 18px; letter-spacing: -.015em; margin: 30px 0 8px; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin: 4px 0; }
.legal b { color: var(--ink); font-weight: 500; }
.legal a { color: var(--ink); }
.auth-legal { margin: -4px 0 0; font-size: 12px; color: var(--ink-3); text-align: center; line-height: 1.5; }
.auth-legal a, .auth-foot a { color: var(--ink-2); }
.auth-foot { font-size: 12px; color: var(--ink-3); text-align: center; }

/* ---------- money: rent roll, transactions, reports ---------- */
.monthbar { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.monthbar b { font-weight: 500; font-size: 18px; letter-spacing: -.02em; min-width: 150px; text-align: center; }
.iconlink { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.iconlink:hover { background: var(--surface-3); color: var(--ink); }
.rentlist { display: flex; flex-direction: column; gap: 6px; }
.rentrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 16px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid transparent; }
.rentrow.late { border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.rr-a b { display: block; font-weight: 500; font-size: 13.5px; }
.rr-a span { color: var(--ink-3); font-size: 12px; }
.rr-n { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.rr-n small { color: var(--ink-3); font-weight: 400; font-size: 12px; }
.rr-x { display: flex; gap: 6px; justify-content: flex-end; }
.tb-sel { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tb-sel .field { width: auto; height: 38px; border-radius: 999px; font-size: 13px; max-width: 220px; }
.sumline { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; font-size: 13px; color: var(--ink-2); margin: 0 2px 10px; }
.sumline b { font-weight: 500; margin-left: 4px; }
.txlist { display: flex; flex-direction: column; padding: 6px; }
.txlist.mini { padding: 0; gap: 2px; }
.txrow { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; text-align: left; }
.txrow:hover { background: var(--surface-2); }
.tx-d { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.tx-a { min-width: 0; }
.tx-a b { display: block; font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-a small { display: block; color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-r { display: flex; align-items: center; gap: 8px; color: var(--ink-3); }
.tx-r b { font-weight: 500; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.tx-r b.pos { color: var(--good); }
.loanpost { display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow-y: auto; }
.loanpost b { font-weight: 500; }
table.cmp.acts th, table.cmp.acts td { text-align: right; }
table.cmp.acts th:first-child, table.cmp.acts td:first-child { text-align: left; }
table.sched { min-width: 0; margin: 4px 0; }
table.sched th { width: 70px; text-align: left; font-family: var(--mono); font-size: 11.5px; padding: 9px 8px; }
table.sched td { text-align: left; padding: 9px 8px; }
table.sched td.num { text-align: right; }
table.sched tr.zero td { color: var(--ink-3); }
table.sched tr.tot td { font-weight: 500; border-top: 1px solid var(--line-2); }
@media (max-width: 820px) {
  .rentrow { grid-template-columns: minmax(0, 1fr) auto; }
  .rr-x { grid-column: 1 / -1; justify-content: flex-start; }
  .txrow { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; }
  .tb-sel .field { max-width: none; flex: 1; min-width: 0; }
  /* eight sections: the bottom bar drops Lender schedule (it's in the menu) and tightens */
  .rail .nb.nb-sreo { display: none; }
  .rail nav { gap: 2px; }
  .rail .nb { width: 42px; height: 42px; }
}

/* ---------- bank CSV import ---------- */
.modal.xwide { width: min(1080px, 100%); }
.bi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 4px 0 14px; }
.bi-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 10px; }
.bi-bulk .field { width: auto; height: 36px; border-radius: 999px; font-size: 13px; max-width: 220px; }
.bi-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.bi-row { display: grid; grid-template-columns: 28px 56px minmax(0, 1fr) 96px minmax(0, 170px) minmax(0, 190px); gap: 10px; align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.bi-row.off { opacity: .5; }
.bi-row .field { height: 34px; font-size: 12.5px; padding: 0 30px 0 10px; background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; }
.bi-c input { width: 18px; height: 18px; accent-color: var(--accent); }
.bi-d { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.bi-a { min-width: 0; }
.bi-a b { display: block; font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bi-a small { display: block; font-size: 11.5px; color: var(--ink-3); }
.bi-a small.warn { color: var(--warn); }
.bi-amt { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.bi-amt.pos { color: var(--good); }
@media (max-width: 820px) {
  .bi-grid { grid-template-columns: 1fr 1fr; }
  .bi-row { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .bi-d { display: none; }
  .bi-row .field { grid-column: 2 / -1; }
}
