/* Louisa — Leasing module (properties, tenants, leases, renewals, inspections). Prefix: lx- */

/* ---------- generic bits ---------- */
.lx-muted-num { color: var(--subtle); }
.lx-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #c4ccd8; vertical-align: middle; margin: 0 6px; }
.lx-cnt { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 18px; padding: 0 6px; margin-left: 6px; border-radius: 9px; background: #eef1f5; color: #475467; font-size: 11px; font-weight: 700; }
.tabs a.on .lx-cnt { background: var(--primary-50); color: var(--primary); }
.lx-link { color: var(--ink); font-weight: 600; }
.lx-link:hover { color: var(--primary); }
.lx-sub-link { color: var(--muted); }
.lx-sub-link:hover { color: var(--primary); }
.lx-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lx-mini-bar { height: 6px; border-radius: 6px; background: #e9edf3; overflow: hidden; }
.lx-mini-bar > span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2aa45f, #1f8a4c); }
.lx-mini-bar.amber > span { background: #e3a008; }
.lx-mini-bar.red > span { background: linear-gradient(90deg, #e05a5a, #d13b3b); }
.lx-mini-bar.blue > span { background: linear-gradient(90deg, #3b7fd0, #1f5fae); }
.lx-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.lx-table-min td { padding-top: 9px; padding-bottom: 9px; }
.lx-chev { color: var(--subtle); }
.lx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.lx-stats .stat { min-width: 0; padding: 12px 16px; }
.lx-stats .stat-v small { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.stat-amber .stat-v { color: var(--amber); }
.lx-section-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.lx-section-h h3 { font-size: 14px; }
.lx-empty-sm { padding: 18px 4px; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- properties list ---------- */
.toolbar .search input.lx-wide { min-width: 320px; }
.lx-props { display: flex; flex-direction: column; gap: 12px; }
.lx-prop {
  display: grid; grid-template-columns: 128px minmax(0, 2.3fr) repeat(4, minmax(0, 1fr)) 20px; gap: 18px; align-items: center;
  padding: 12px 18px 12px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); color: inherit;
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.lx-prop:hover { border-color: #c9d4e3; box-shadow: var(--sh-2), 0 6px 18px -10px rgba(16, 24, 40, .25); color: inherit; }
.lx-thumb { width: 128px; height: 90px; border-radius: 10px; object-fit: cover; background: #e6edf6; border: 1px solid var(--line-2); display: block; }
.lx-ph { display: flex; align-items: center; justify-content: center; color: #8aa2c2; background: linear-gradient(140deg, #eef3fa, #dfe8f4); }
.lx-prop-main { min-width: 0; }
.lx-prop-main b { display: block; font-size: 15px; color: var(--ink); font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-prop-addr { color: var(--muted); font-size: 13px; margin-top: 3px; display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-prop-addr .ic { color: var(--subtle); }
.lx-prop-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; align-items: center; }
.lx-owner { font-size: 12.5px; color: #475467; display: inline-flex; align-items: center; gap: 5px; }
.lx-owner .ic { color: var(--subtle); }
.lx-metric { min-width: 0; }
.lx-metric .v { font-size: 16px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.lx-metric .l { font-size: 12px; color: var(--muted); margin-top: 1px; }
.lx-metric .lx-mini-bar { margin-top: 7px; max-width: 140px; }
.lx-metric.warn .v { color: var(--amber); }
.lx-metric.zero .v { color: var(--subtle); }

/* ---------- property hero ---------- */
.lx-hero { display: grid; grid-template-columns: 340px minmax(0, 1fr); overflow: hidden; }
.lx-hero-photo { position: relative; min-height: 230px; background: #e6edf6; }
.lx-hero-photo img, .lx-hero-photo .lx-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; }
.lx-hero-photo .lx-type { position: absolute; left: 12px; top: 12px; }
.lx-hero-photo .lx-type .badge { background: rgba(255,255,255,.92); box-shadow: 0 1px 2px rgba(16,24,40,.12); color: var(--ink); }
.lx-hero-b { padding: 18px 22px 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lx-hero-addr { font-size: 15px; color: var(--ink); font-weight: 600; display: flex; gap: 8px; align-items: flex-start; }
.lx-hero-addr .ic { color: var(--primary); margin-top: 2px; }
.lx-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #475467; font-size: 13px; }
.lx-facts span { display: inline-flex; align-items: center; gap: 6px; }
.lx-facts .ic { color: var(--subtle); }
.lx-facts a { font-weight: 600; }
.lx-hero-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: auto; }
.lx-hs { border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; background: #fbfcfe; }
.lx-hs .v { font-size: 18px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.015em; }
.lx-hs .l { font-size: 12px; color: var(--muted); }
.lx-hs.green .v { color: var(--green); } .lx-hs.red .v { color: var(--red); } .lx-hs.blue .v { color: var(--primary); }
.lx-hs.amber .v { color: var(--amber); }

/* units table */
.lx-units td { vertical-align: middle; }
.lx-units tr.lx-room td { background: #fbfcfe; }
.lx-units tr.lx-room td:first-child { padding-left: 40px !important; position: relative; }
.lx-units tr.lx-room td:first-child::before { content: ""; position: absolute; left: 24px; top: 0; bottom: 50%; width: 9px; border-left: 1.5px solid #cdd6e3; border-bottom: 1.5px solid #cdd6e3; border-bottom-left-radius: 6px; }
.lx-units tr.lx-parent td { border-bottom-color: transparent; }
.lx-people { display: flex; flex-direction: column; gap: 2px; }
.lx-people a { color: var(--ink); font-weight: 500; }
.lx-people a:hover { color: var(--primary); }
.lx-av-stack { display: inline-flex; }
.lx-av-stack .avatar { width: 26px; height: 26px; font-size: 10.5px; box-shadow: 0 0 0 2px #fff; }
.lx-av-stack .avatar + .avatar { margin-left: -7px; }

/* quick actions */
.lx-qa { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lx-qa a, .lx-qa summary { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); font-weight: 600; font-size: 13px; background: #fff; transition: border-color .12s, background .12s; cursor: pointer; list-style: none; }
.lx-qa a:hover, .lx-qa summary:hover { border-color: #bcd0ea; background: #f8fbff; color: var(--ink); }
.lx-qa .ic { color: var(--primary); }
.lx-qa small { color: var(--muted); font-weight: 500; font-size: 12px; }
.lx-qa .pop { position: relative; min-width: 0; }
.lx-qa .pop > summary { height: 100%; }
.lx-qa .pop-m { min-width: 250px; }
.lx-qa .pop-i { flex-direction: row; padding: 8px 10px; border: 0; }
.lx-qa .pop-i .ic { color: var(--muted); }

/* ---------- tenants ---------- */
.lx-person { display: flex; gap: 12px; align-items: center; min-width: 0; }
.lx-person .t-main { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-contact { display: flex; flex-direction: column; gap: 1px; font-size: 13px; }
.lx-contact span { color: #344054; white-space: nowrap; }
.lx-contact small { color: var(--muted); font-size: 12.5px; }
.lx-profile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 22px; }
.lx-profile .avatar { width: 64px; height: 64px; font-size: 22px; }
.lx-profile h2 { font-size: 20px; letter-spacing: -.02em; }
.lx-profile .lx-facts { margin-top: 6px; }
.lx-profile-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.lx-balance { padding: 18px 20px; }
.lx-balance .amt { font-size: 32px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 4px; }
.lx-balance .amt.pos { color: var(--green); }
.lx-balance .amt.neg { color: var(--red); }
.lx-balance .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.lx-balance .btns form { display: contents; }
.lx-balance .btns .btn { width: 100%; }
.lx-lease-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: start; background: #fff; color: inherit; }
.lx-lease-card:hover { border-color: #c9d4e3; color: inherit; }
.lx-lease-card + .lx-lease-card { margin-top: 10px; }
.lx-lease-card b { color: var(--ink); font-size: 14px; }
.lx-lease-card .meta { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.lx-lease-card .amt { font-weight: 700; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.lx-lease-card .amt small { display: block; font-weight: 500; color: var(--muted); }
.lx-ledger tr.lx-pay td { background: #fbfefc; }
.lx-ledger tr.lx-muted td { color: var(--subtle); }
.lx-ledger .amt-in { color: var(--green); font-weight: 600; }

/* ---------- lease detail: split showcase ---------- */
.lx-term { margin-top: 14px; }
.lx-term-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.lx-keyfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fbfcfe; }
.lx-keyfacts > div { padding: 12px 14px; border-right: 1px solid var(--line); min-width: 0; }
.lx-keyfacts > div:last-child { border-right: 0; }
.lx-keyfacts .l { font-size: 12px; color: var(--muted); }
.lx-keyfacts .v { font-size: 16px; font-weight: 700; color: var(--ink); margin-top: 2px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.lx-keyfacts .s { font-size: 12px; color: var(--muted); margin-top: 1px; }
.lx-splitbar { display: flex; height: 12px; border-radius: 8px; overflow: hidden; gap: 2px; background: #eef1f5; }
.lx-splitbar span { display: block; height: 100%; position: relative; }
.lx-splitbar span.unpaid { opacity: .35; }
.lx-sw0 { background: #3b7fd0; } .lx-sw1 { background: #2aa45f; } .lx-sw2 { background: #e3a008; }
.lx-sw3 { background: #7c62d6; } .lx-sw4 { background: #1d8796; } .lx-sw5 { background: #d0567a; }
.lx-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.lx-split-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: #475467; margin-top: 8px; }
.lx-split-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lx-privacy { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.lx-privacy .ic { color: var(--green); }
.lx-tgroup { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lx-tgroup + .lx-tgroup { margin-top: 10px; }
.lx-tgroup > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 11px 14px; cursor: pointer; background: #fbfcfe; }
.lx-tgroup > summary::-webkit-details-marker { display: none; }
.lx-tgroup > summary .chev { color: var(--subtle); transition: transform .15s; margin-left: 4px; }
.lx-tgroup[open] > summary .chev { transform: rotate(180deg); }
.lx-tgroup[open] > summary { border-bottom: 1px solid var(--line); }
.lx-tgroup .table th { background: #fff; }
.lx-tgroup .table td:first-child, .lx-tgroup .table th:first-child { padding-left: 14px; }
.lx-tgroup .table td:last-child, .lx-tgroup .table th:last-child { padding-right: 14px; }
.lx-tg-sum { margin-left: auto; text-align: right; font-size: 12.5px; color: var(--muted); }
.lx-tg-sum b { display: block; color: var(--ink); font-size: 14px; }

/* ---------- lease_new ---------- */
.lx-form { max-width: 1060px; }
.lx-steps { display: flex; flex-direction: column; gap: 16px; }
.lx-step-h { display: flex; align-items: center; gap: 12px; padding: 16px 20px 6px; }
.lx-step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--primary-50); color: var(--primary); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px var(--primary-100); flex: none; }
.lx-step-h h2 { font-size: 15.5px; }
.lx-step-h p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.lx-step-b { padding: 10px 20px 20px; }
.lx-trows { display: flex; flex-direction: column; gap: 10px; }
.lx-trow { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fbfcfe; display: grid; grid-template-columns: 30px minmax(0, 1fr) 150px 110px 34px; gap: 12px; align-items: start; }
.lx-trow .avatar { width: 30px; height: 30px; font-size: 11px; margin-top: 5px; background: #e3edfa; color: var(--primary); }
.lx-trow .lx-new { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.lx-trow .lx-share .input-group input { text-align: right; }
.lx-trow .lx-amt { padding-top: 10px; text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.lx-trow .lx-amt small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.lx-trow .icon-btn { width: 34px; height: 34px; margin-top: 3px; box-shadow: none; }
.lx-trow .lx-primary { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .04em; margin-top: 6px; }
.lx-share-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.lx-share-total { font-size: 13px; color: var(--muted); }
.lx-share-total b { font-size: 15px; margin-left: 4px; }
.lx-firstmonth { margin-top: 14px; }
.lx-fees { display: flex; flex-direction: column; gap: 8px; }
.lx-fee { display: grid; grid-template-columns: minmax(0, 1fr) 150px 150px 34px; gap: 10px; align-items: center; }
.lx-fee .icon-btn { width: 34px; height: 34px; box-shadow: none; }
.lx-sticky-actions { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 14px 18px; background: rgba(255,255,255,.94); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 -6px 20px -14px rgba(16, 24, 40, .3); }
.lx-sticky-actions .lx-sum { margin-right: auto; display: flex; flex-direction: column; justify-content: center; font-size: 12.5px; color: var(--muted); }
.lx-sticky-actions .lx-sum b { color: var(--ink); font-size: 14px; }
.lx-space-pill { display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 13px; color: #475467; }
.radio-card .ic { color: var(--primary); margin-top: 2px; }
.lx-errors { margin-bottom: 14px; }
.lx-errors ul { margin: 4px 0 0; padding-left: 18px; }

/* ---------- renewals ---------- */
.lx-offer { border: 1px solid #cfe0f5; background: linear-gradient(180deg, #f7fbff, #fff 120px); }
.lx-rent-change { display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.lx-rent-change .from { color: var(--muted); text-decoration: line-through; }
.lx-rent-change .to { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.lx-delta { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--green-50); color: var(--green-600); }
.lx-delta.hot { background: var(--amber-50); color: var(--amber); }
.lx-days { font-weight: 700; font-variant-numeric: tabular-nums; }
.lx-days.soon { color: var(--red); } .lx-days.mid { color: var(--amber); }

/* ---------- inspections ---------- */
.lx-insp-wrap { max-width: 920px; }
.lx-insp-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 20px; }
.lx-progress { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.lx-progress .lx-mini-bar { width: 160px; }
.lx-area { overflow: hidden; }
.lx-area-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); background: #fbfcfe; }
.lx-area-h h2 { font-size: 15px; display: flex; gap: 8px; align-items: center; }
.lx-area-h h2 .ic { color: var(--muted); }
.lx-item { padding: 14px 18px; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.lx-item:last-child { border-bottom: 0; }
.lx-item.changed { background: linear-gradient(90deg, #fff7f5, #fff 60%); box-shadow: inset 3px 0 0 var(--red); }
.lx-item-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.lx-item-top b { color: var(--ink); font-size: 14px; }
.lx-was { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.lx-was .badge { height: 20px; font-size: 11px; }
.lx-cond { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.lx-cond label { position: relative; }
.lx-cond input { position: absolute; opacity: 0; pointer-events: none; }
.lx-cond span { display: flex; align-items: center; justify-content: center; height: 38px; border: 1px solid #cfd7e3; border-radius: 9px; font-weight: 600; font-size: 13px; color: #475467; background: #fff; cursor: pointer; transition: all .12s; user-select: none; }
.lx-cond span:hover { border-color: #9fb3cd; }
.lx-cond input:focus-visible + span { outline: 3px solid rgba(31, 95, 174, .25); }
.lx-cond input[value=good]:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.lx-cond input[value=fair]:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.lx-cond input[value=poor]:checked + span { background: #e3a008; border-color: #d29405; color: #fff; }
.lx-cond input[value=damaged]:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.lx-cond input[value=na]:checked + span { background: #667085; border-color: #667085; color: #fff; }
.lx-item-x { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; gap: 10px; align-items: center; }
.lx-item-x input[type=text] { height: 38px; }
.lx-item-x .input-group input { height: 38px; }
.lx-photo-btn { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border: 1px dashed #b8c4d6; border-radius: 9px; color: #344054; font-weight: 600; font-size: 13px; cursor: pointer; background: #fff; white-space: nowrap; }
.lx-photo-btn:hover { border-color: var(--primary); color: var(--primary); }
.lx-photo-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.lx-photo-btn.has { border-style: solid; border-color: #b7dcc5; background: var(--green-50); color: var(--green-600); }
.lx-item-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.lx-item-photos img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.lx-insp-bar { position: sticky; bottom: 0; z-index: 6; margin-top: 16px; display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding: 12px 16px; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 -6px 20px -14px rgba(16, 24, 40, .3); flex-wrap: wrap; }
.lx-insp-bar .lx-sum { margin-right: auto; font-size: 12.5px; color: var(--muted); }
.lx-insp-bar .lx-sum b { color: var(--ink); }
.lx-ro-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 11px 18px; border-bottom: 1px solid var(--line-2); align-items: center; }
.lx-ro-item:last-child { border-bottom: 0; }
.lx-ro-item b { color: var(--ink); font-weight: 600; }
.lx-ro-item .n { grid-column: 1 / -1; color: #475467; font-size: 13px; }
.lx-ro-item .lx-item-photos { grid-column: 1 / -1; }
.lx-ro-item.changed { box-shadow: inset 3px 0 0 var(--red); background: #fffafa; }

@media (max-width: 1280px) {
  .lx-prop { grid-template-columns: 112px minmax(0, 2fr) repeat(4, minmax(0, 1fr)) 16px; gap: 14px; }
  .lx-thumb { width: 112px; height: 80px; }
}
@media (max-width: 1100px) {
  .lx-prop { grid-template-columns: 104px minmax(0, 1fr) repeat(2, minmax(0, 120px)); grid-template-areas: none; }
  .lx-prop .lx-chev, .lx-prop .lx-hide-md { display: none; }
  .lx-hero { grid-template-columns: 280px minmax(0, 1fr); }
  .lx-hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .lx-hero { grid-template-columns: minmax(0, 1fr); }
  .lx-hero-photo { min-height: 180px; }
  .lx-keyfacts { grid-template-columns: 1fr 1fr; }
  .lx-keyfacts > div:nth-child(2) { border-right: 0; }
  .lx-keyfacts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .lx-profile { grid-template-columns: auto minmax(0, 1fr); }
  .lx-profile-side { grid-column: 1 / -1; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .lx-trow { grid-template-columns: 30px minmax(0, 1fr) 34px; }
  .lx-trow .lx-share { grid-column: 2 / 3; }
  .lx-trow .lx-amt { grid-column: 2 / 3; text-align: left; padding-top: 0; }
  .lx-trow .icon-btn { grid-column: 3; grid-row: 1; }
  .lx-fee { grid-template-columns: minmax(0, 1fr) 34px; }
  .lx-fee .icon-btn { grid-column: 2; grid-row: 1; }
  .lx-fee > :nth-child(2), .lx-fee > :nth-child(3) { grid-column: 1 / 2; }
}
@media (max-width: 640px) {
  .lx-prop { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .lx-thumb { width: 84px; height: 66px; }
  .lx-prop .lx-metric { display: none; }
  .lx-prop .lx-metric.lx-occ-m { display: block; grid-column: 1 / -1; }
  .lx-prop .lx-metric.lx-occ-m .lx-mini-bar { max-width: none; }
  .lx-hero-stats { grid-template-columns: 1fr 1fr; }
  .lx-hero-b { padding: 16px; }
  .lx-cond { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .lx-cond span { font-size: 12px; height: 40px; padding: 0 2px; }
  .lx-item-x { grid-template-columns: 1fr 1fr; }
  .lx-item-x > :first-child { grid-column: 1 / -1; }
  .lx-item { padding: 14px; }
  .lx-area-h { padding: 12px 14px; }
  .lx-trow .lx-new { grid-template-columns: 1fr; }
  .lx-balance .btns { grid-template-columns: 1fr; }
  .lx-insp-head { grid-template-columns: 1fr; }
  .lx-sticky-actions .lx-sum { width: 100%; }
  .lx-sticky-actions .btn { flex: 1; }
  .lx-stats { grid-template-columns: 1fr 1fr; }
}
@media print {
  .lx-insp-bar, .lx-sticky-actions { display: none !important; }
}

/* stacked cards: keep a 16px rhythm even when two cards are adjacent */
.stack.lx-stack > * + * { margin-top: 16px; }
.lx-units td:first-child .t-sub { white-space: nowrap; }
.lx-units td:first-child .t-main { white-space: nowrap; }
.lx-form [hidden], .lx-trow [hidden] { display: none !important; }
#leasesTbl td:first-child { white-space: nowrap; }
.lx-names { white-space: nowrap; font-weight: 500; color: var(--ink); }
.lx-balance .btns { grid-template-columns: 1fr; }
.lx-offer [hidden], .lx-insp-wrap [hidden] { display: none !important; }
@media (max-width: 640px) {
  .lx-sticky-actions { position: static; }
  .lx-insp-bar { padding: 10px 12px; gap: 8px; }
  .lx-insp-bar .lx-sum { width: 100%; }
  .lx-insp-bar .btn { flex: 1; }
  .lx-insp-bar .btn-ghost { flex: 0 0 auto; }
}
