/* CRE Maxi: base components. Colours are tokens defined in the institutional layer at the end. */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 13px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
a { color: var(--in-ink); }

.app { display: flex; min-height: 100vh; }

/* ---------- sidebar ---------- */
.side { width: 236px; flex: 0 0 236px; background: var(--chrome); color: #d6e0ee; padding: 18px 14px 28px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 2px 14px; }
.brand .logo { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 4px; background: var(--gold); color: var(--head); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; letter-spacing: .5px; box-shadow: 0 4px 12px rgba(232, 178, 58, .25); }
.brand-n { color: var(--on-dark); font-weight: 700; font-size: 15px; letter-spacing: .1px; }
.brand-t { color: #8ea3bf; font-size: 10.5px; line-height: 1.3; }
.side-h { text-transform: uppercase; font-size: 10px; letter-spacing: 1.2px; color: #7f95b3; margin: 14px 4px 4px; font-weight: 700; }
.side-note { font-size: 11.5px; color: #a9b9ce; margin: 4px 4px 0; }
.scen { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sbtn { width: 38px; height: 32px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); color: var(--on-dark); font-weight: 700; cursor: pointer; }
.sbtn.on { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.tool { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); border-radius: 4px; padding: 8px 10px; font-size: 12px; }
.tool > span { flex: 1; color: #dfe7f2; }
.tool .in.mini { width: 62px; background: rgba(0, 0, 0, .2); border-color: rgba(255, 255, 255, .12); color: #a8d1ff; }
.deals select { width: 100%; background: rgba(0, 0, 0, .2); color: var(--on-dark); border-color: rgba(255, 255, 255, .12); }
.deals select option { color: var(--ink); }
.btnrow { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.btnrow .btn { flex: 1; }
.side .btn:not(.gold):not(.ghost-l) { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .1); color: #e6eef8; }
.side .btn:not(.gold):not(.ghost-l):hover { background: rgba(255, 255, 255, .12); }
.side .side-act { justify-content: flex-start; padding: 8px 11px; }
.acct { font-size: 12px; color: #dfe7f2; margin: 2px 4px; word-break: break-all; }
.acct .tag { background: var(--gold); color: var(--gold-ink); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: inline-block; margin-left: auto; }

/* ---------- buttons ---------- */
.btn { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 4px; padding: 7px 12px; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-weight: 500; transition: background .12s, border-color .12s, box-shadow .12s; }
.btn:hover { border-color: var(--line-strong); }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn.xs { padding: 4px 8px; font-size: 11.5px; }
.btn.block { width: 100%; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 600; justify-content: space-between; padding: 9px 12px; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: var(--on-dark); font-weight: 600; }
.btn.primary:hover { background: var(--navy-2); }
.btn.ghost { background: transparent; }
.btn.ghost-l { background: transparent; color: #a9b9ce; border-color: rgba(255, 255, 255, .14); }
.btn.danger { color: var(--bad); }
.btn.on { background: var(--good-bg); border-color: var(--good-line); }
.x { border: 0; background: transparent; color: var(--dim); cursor: pointer; padding: 0 4px; font-size: 12px; }
.x:hover { color: var(--bad); }
.btnlink { background: none; border: 0; cursor: pointer; padding: 0; }

/* segmented control */
.seg { display: inline-flex; background: var(--navy-50); border-radius: 4px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 5px 11px; border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--head); box-shadow: 0 1px 3px rgba(19, 38, 63, .12); }

/* ---------- switch ---------- */
.switch { position: relative; display: inline-block; width: 34px; height: 20px; flex: 0 0 34px; vertical-align: middle; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--switch-off); border-radius: 4px; transition: .15s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; background: var(--card); border-radius: 50%; transition: .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--good); }
.switch input:checked + span::before { transform: translateX(14px); }
.switch input:disabled + span { cursor: default; opacity: .8; }

/* ---------- main & topbar ---------- */
.main { flex: 1; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 5; background: var(--topbar-bg); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 10px 22px; flex-wrap: wrap; }
.chip { font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 4px 8px; border-radius: 3px; }
.chip.ed { background: var(--good-bg); color: var(--good); }
.chip.ro { background: var(--gold-50); color: var(--accent-ink); }
.tb-main { display: flex; flex-direction: column; min-width: 0; }
.tb-main { flex: 1 1 160px; }
.tb-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .grow { display: none; }
.tb-sub { color: var(--muted); font-size: 11.5px; }
.grow { flex: 1; }
.content { padding: 20px 22px 44px; display: flex; flex-direction: column; gap: 18px; max-width: 1600px; }

/* ---------- broker brand block ---------- */
.brandblock { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bb-logo { max-height: 40px; max-width: 140px; object-fit: contain; }
.bb-mono { width: 38px; height: 38px; border-radius: 4px; background: var(--navy); color: var(--gold); font-weight: 800; display: flex; align-items: center; justify-content: center; flex: 0 0 38px; }
.bb-mono.big { width: 64px; height: 64px; font-size: 20px; border-radius: 3px; }
.bb-name { font-weight: 700; font-size: 13px; }
.bb-title { font-weight: 500; color: var(--muted); }
.bb-co, .bb-contact { font-size: 11.5px; color: var(--muted); }
.tb-brand { padding-left: 12px; border-left: 1px solid var(--line); }
.print-brand { display: none; }

/* ---------- inputs ---------- */
.in { border: 1px solid var(--in-line); background: var(--in-bg); color: var(--in-ink); border-radius: 4px; padding: 5px 8px; width: 100%; min-width: 0; font-weight: 500; transition: border-color .12s, box-shadow .12s, background .12s; }
.in.n { text-align: right; font-variant-numeric: tabular-nums; }
.in:hover:not(:disabled) { border-color: var(--in-line-hover); }
.in:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-ring); background: var(--card); }
.in:disabled { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
.in.big { font-size: 19px; font-weight: 700; padding: 7px 9px; }
.in.mini { width: 72px; display: inline-block; }
.in.xmini { width: 46px; display: inline-block; }
.in.mid { width: 112px; display: inline-block; }
.in.txt { min-width: 130px; }
.in.ovr { font-weight: 800; color: var(--ovr-ink); background: var(--ovr-bg); border-color: var(--focus); }
select.in { padding: 5px 5px; text-align: left; }
input[type=date].in { min-width: 130px; }
.rodate { font-variant-numeric: tabular-nums; }

/* ---------- hero ---------- */
.hero { background: var(--chrome); color: var(--on-dark); border-radius: 3px; padding: 22px 24px; display: grid; grid-template-columns: 1fr 260px; gap: 20px; box-shadow: 0 10px 30px rgba(19, 38, 63, .18); }
.hero h1, .h1in { font-size: 26px; font-weight: 800; color: var(--gold-2); margin: 0 0 10px; letter-spacing: -.2px; }
.h1in { background: transparent; border: 1px dashed transparent; width: 100%; border-radius: 4px; padding: 2px 6px; margin-left: -6px; }
.h1in:hover, .h1in:focus { border-color: rgba(255, 255, 255, .25); outline: none; }
.linkrow { display: flex; align-items: center; gap: 12px; margin: 7px 0; flex-wrap: wrap; }
.linkrow .url, .linkrow .in.url { max-width: 400px; background: rgba(0, 0, 0, .22); color: #a9c8ec; border: 1px solid rgba(255, 255, 255, .1); padding: 4px 9px; border-radius: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.linkrow .in.url { width: 400px; }
.lnk { color: #ffe1a0; text-decoration: none; font-size: 12px; font-weight: 500; }
.lnk:hover { text-decoration: underline; }
.hero-r { display: flex; flex-direction: column; gap: 8px; }
.photo { border-radius: 4px; overflow: hidden; height: 150px; background: rgba(0, 0, 0, .22); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .08); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.ph-empty { color: #7d95b3; text-align: center; font-size: 12px; }
.photo-tools { display: flex; gap: 6px; }
.photo-tools .in { background: rgba(0, 0, 0, .22); color: #a9c8ec; border-color: rgba(255, 255, 255, .1); font-size: 11px; }
.hero .btn.xs { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .15); color: var(--on-dark); }
.mapslot { height: 190px; border-radius: 4px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; }
#mapLayer { position: absolute; z-index: 4; display: none; border-radius: 4px; overflow: hidden; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
#mapLayer iframe { border: 0; width: 100%; height: 100%; display: block; }
.map-seg { align-self: flex-start; background: rgba(255, 255, 255, .1); }
.map-seg button { color: #c9d6e6; padding: 3px 10px; font-size: 11.5px; }
.map-seg button.on { background: var(--card); color: var(--head); }
.lnk-l { color: #a9bdd6; font-size: 12px; }
.lnk-ok { color: #8fe3bd; font-size: 12px; font-weight: 600; }
.sh-photo { position: relative; }
.sh-photo iframe { border: 0; width: 100%; height: 100%; }
.sh-up { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.card-h { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.card.collapsed .card-h { border-bottom: 0; }
.card-h h3 { margin: 0; font-size: 14px; font-weight: 700; flex: 1; color: var(--head); display: flex; align-items: center; gap: 9px; }
.card-h h3::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--gold); flex: 0 0 4px; }
.card-h .tools { display: flex; gap: 6px; flex-wrap: wrap; }
.card-h .btn.ghost { color: var(--muted); border-color: transparent; }
.card-h .btn.ghost:hover { background: var(--navy-50); }
.card-b { padding: 14px 16px; overflow-x: auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(390px, 1fr)); gap: 18px; align-items: start; }
.sub-h { text-transform: uppercase; font-size: 10.5px; letter-spacing: 1px; color: var(--muted); font-weight: 700; margin: 4px 0 9px; }
.hint { color: var(--muted); font-size: 11.5px; }
.pad { padding: 6px 2px; margin: 0; }
.note { font-size: 11.5px; color: var(--muted); margin: 6px 0 0; line-height: 1.35; }
.note.warn, .warn { color: var(--warn); }
.good { color: var(--good); font-weight: 600; }
.neg { color: var(--bad); }
.dim { color: var(--dim); }
.bold td, td.bold { font-weight: 700; }

/* ---------- economics ---------- */
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px 12px; margin-bottom: 16px; }
.fld label { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fld label em { font-style: normal; text-transform: none; color: var(--in-ink); }
.fld.inl { display: flex; align-items: center; gap: 6px; }
.fld.inl label { margin: 0; overflow: visible; }
.outv { border: 1px solid var(--line); background: var(--surface-2); border-radius: 4px; padding: 5px 8px; text-align: right; font-weight: 600; }
.econ-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr) minmax(230px, .85fr); gap: 16px; align-items: start; }
.boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 10px; }
.box { border: 1px solid var(--line); background: var(--surface-2); border-radius: 4px; padding: 10px; }
.box > label { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.box .tgl { display: flex; align-items: center; gap: 7px; font-size: 12px; margin-top: 7px; }
.exitval { border: 1px solid var(--bad-line); background: var(--card); border-radius: 4px; padding: 12px; }
.ev-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ev { border: 1px solid var(--bad-line); background: var(--card); border-radius: 4px; padding: 8px; }
.ev label { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--bad-ink); font-weight: 700; margin-bottom: 4px; }
.ev.drive { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad) inset; }
.kv { display: flex; justify-content: space-between; align-items: center; background: var(--card); border: 1px solid var(--bad-line); border-radius: 4px; padding: 7px 10px; margin-top: 8px; }
.kv span { font-size: 11px; text-transform: uppercase; font-weight: 700; color: var(--bad-ink); letter-spacing: .5px; }
.kv b { font-size: 17px; }
.kv2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; font-weight: 600; }
.kv2 label { display: block; font-size: 10.5px; text-transform: uppercase; color: var(--bad-ink); font-weight: 700; margin-bottom: 2px; }
.kv2 .in.mini { width: 64px; padding: 1px 5px; font-size: 11px; }
.econ-info { display: flex; flex-direction: column; gap: 10px; }
.mini-t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.mini-t th { background: var(--navy-50); text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--head-2); padding: 6px 9px; }
.mini-t th + th, .mini-t td + td { text-align: right; }
.mini-t td { padding: 5px 9px; border-top: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.mini-t tr.hl td { background: var(--gold-50); font-weight: 700; }
.warnbox { background: var(--gold-50); border: 1px solid var(--accent-line); color: var(--accent-ink); border-radius: 4px; padding: 8px 10px; font-size: 11.5px; }

/* ---------- tables ---------- */
.t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.t th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); background: var(--surface-2); padding: 7px 9px; text-align: right; white-space: nowrap; font-weight: 700; border-bottom: 1px solid var(--line); }
.t td { padding: 5px 9px; border-bottom: 1px solid var(--line-2); text-align: right; white-space: nowrap; }
.t tr:hover td { background-color: var(--surface-2); }
.t .l { text-align: left; }
.t td.as { color: var(--muted); }
.t tr.sub td { font-weight: 600; background: var(--surface-2); }
.t tr.total td { font-weight: 700; background: var(--navy-50); border-top: 1px solid var(--line-strong); color: var(--head); }
.t tr.sec td { background: transparent; color: var(--head-2); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 800; padding: 12px 9px 5px; text-align: left; border-bottom: 2px solid var(--gold); }
.t.grid3 th, .t.grid3 td { text-align: center; }
.t.grid3 .in { text-align: center; }
.tscroll { overflow-x: auto; }
.yt td:first-child { position: sticky; left: 0; background: var(--card); z-index: 1; }
.yt tr.total td:first-child { background: var(--navy-50); }
.yt tr.sub td:first-child { background: var(--surface-2); }
.yt tr.sec td:first-child { background: var(--card); }
.yt th:first-child { position: sticky; left: 0; z-index: 1; }
.refi-col { background: var(--refi) !important; }
.tag { display: inline-block; font-size: 9px; padding: 1px 6px; border-radius: 3px; background: var(--surface-3); color: var(--muted); margin-left: 5px; vertical-align: middle; letter-spacing: .3px; font-weight: 700; }
.tag.refi { background: var(--gold); color: var(--gold-ink); }
.tag.exit { background: var(--bad-bg); color: var(--bad); }
.strip { display: flex; gap: 8px; margin-bottom: 12px; }
.strip > div { flex: 1; border: 1px solid var(--line); border-radius: 4px; padding: 7px 10px; background: var(--surface-2); }
.strip small { display: block; font-size: 10.5px; text-transform: uppercase; color: var(--muted); letter-spacing: .5px; font-weight: 700; }
.strip b { font-size: 16px; color: var(--head); }
.fin-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.fin-top label { font-size: 11px; text-transform: uppercase; color: var(--muted); font-weight: 700; letter-spacing: .5px; }
.fin-top select { width: auto; }
.kvi { margin-left: auto; color: var(--muted); }
.kvi b { color: var(--ink); }
.wf { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.opex-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.yt td .x { margin-left: 2px; }

/* ---------- rent roll ---------- */
.rr-top { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.exp-h { font-weight: 700; margin-bottom: 7px; color: var(--head); }
.exp-h small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.tiles { display: flex; gap: 8px; flex-wrap: wrap; }
.tiles > div { border: 1px solid var(--line); border-radius: 4px; padding: 7px 13px; background: var(--surface-2); min-width: 112px; }
.tiles small { display: block; font-size: 10px; text-transform: uppercase; color: var(--muted); letter-spacing: .5px; font-weight: 700; }
.tiles b { font-size: 17px; color: var(--head); }
.same { display: flex; gap: 10px; align-items: center; margin: 4px 0 14px; }
.ytabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.ytab { border: 1px solid var(--line); background: var(--card); border-radius: 4px; padding: 5px 11px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ytab:hover { border-color: var(--line-strong); }
.ytab.on { background: var(--navy); color: var(--on-dark); border-color: var(--navy); }
.ytab.past { color: var(--dim); }
.rr-yh { padding: 6px 2px; font-size: 13px; }
.rr-yh span { color: var(--muted); }
.t.rr tr.grp th { background: var(--card); color: var(--head-2); text-align: center; border-bottom: 2px solid var(--gold); }
.t.rr td { padding: 4px 5px; }
.t.rr select.in { min-width: 94px; }
.occ { font-weight: 500; color: var(--muted); margin-left: 8px; }
.row-vac td { background: var(--surface-2); color: var(--dim); }
.row-soon td { background: var(--warn-bg); }
.row-exp td { background: var(--bad-bg); }

/* ---------- modal ---------- */
#modal { display: none; }
#modal.on { display: block; position: fixed; inset: 0; z-index: 50; overflow-y: auto; }
.mbg { position: fixed; inset: 0; background: rgba(10, 20, 35, .5); backdrop-filter: blur(2px); }
.mbox { position: relative; max-width: 500px; margin: 8vh auto 40px; background: var(--card); border-radius: 3px; padding: 20px 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.mbox h3 { margin: 0 0 10px; color: var(--head); }
.mbox .fld { margin: 10px 0; }
.mclose { position: absolute; right: 12px; top: 12px; border: 0; background: transparent; font-size: 16px; cursor: pointer; color: var(--muted); }
.linkout { height: 80px; margin-top: 10px; font-size: 11px; word-break: break-all; resize: none; }
.wide-t td { padding: 7px 9px; }
.legend div { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.sw { width: 26px; height: 16px; border-radius: 4px; border: 1px solid var(--line); flex: 0 0 26px; }
.in-sw { background: var(--in-bg); border-color: var(--in-line); }
.ovr-sw { background: var(--ovr-bg); border-color: var(--focus); }
.vac-sw { background: var(--surface-2); }
.soon-sw { background: var(--warn-bg); }
.exp-sw { background: var(--bad-bg); }
.neg-sw { background: var(--bad); }
.expired { margin: 15vh auto; text-align: center; color: var(--muted); }
.foot { color: var(--muted); font-size: 11.5px; text-align: center; padding: 12px; line-height: 1.7; }
.foot a { color: var(--muted); }

/* listing import */
.pastebox { height: 180px; resize: vertical; font-size: 12px; color: var(--ink); }
.implist { border: 1px solid var(--line); border-radius: 4px; max-height: 45vh; overflow: auto; }
.impi { display: grid; grid-template-columns: 20px 150px 1fr; gap: 8px; align-items: start; padding: 8px 10px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.impi:last-child { border-bottom: 0; }
.impl { color: var(--muted); font-weight: 600; }
.impv { font-weight: 600; word-break: break-word; }
.impnew { display: flex; gap: 8px; align-items: center; margin: 10px 0 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 9px 11px; }

/* branding form */
.br-logo { display: flex; gap: 14px; align-items: center; margin: 10px 0; padding: 12px; border: 1px dashed var(--line); border-radius: 4px; }
.br-logo img { max-width: 160px; max-height: 64px; object-fit: contain; }
.br-logo .hint { margin: 6px 0 0; }
.fgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.fgrid2 .fld { margin: 6px 0; }

/* ---------- one-page summary ---------- */
#modal.wide .mbox.sumbox { max-width: 880px; padding: 16px; background: var(--surface-3); }
.sum-actions { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.sum-actions .seg { background: var(--card); }
.sheet { background: var(--card); border-radius: 3px; padding: 30px 34px; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); color: var(--ink); page: summary; }
.sh-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 3px solid var(--navy); gap: 12px; }
.sh-tag { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--head); background: var(--gold-50); border: 1px solid var(--accent-line); padding: 5px 10px; border-radius: 3px; white-space: nowrap; }
.sum-brand-empty { font-weight: 800; color: var(--head); font-size: 16px; }
.sh-title { margin: 12px 0 8px; }
.sh-title h2 { margin: 0; font-size: 23px; color: var(--head); letter-spacing: -.2px; }
.sh-sub { color: var(--muted); margin-top: 3px; }
.sh-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.sh-photo { border-radius: 4px; overflow: hidden; background: var(--navy-50); height: 165px; display: flex; align-items: center; justify-content: center; }
.sh-photo img { width: 100%; height: 100%; object-fit: cover; }
.sh-facts { width: 100%; border-collapse: collapse; font-size: 12.5px; align-self: start; }
.sh-facts td { padding: 4px 2px; border-bottom: 1px solid var(--line-2); }
.sh-facts td:first-child { white-space: nowrap; padding-right: 10px; }
.sh-facts td + td { text-align: right; font-weight: 700; }
.sh-sec { margin: 13px 0 7px; font-size: 11px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; color: var(--head-2); display: flex; align-items: center; gap: 8px; }
.sh-sec::after { content: ""; flex: 1; height: 2px; background: var(--gold); opacity: .7; }
.sh-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sh-tiles.inv { grid-template-columns: repeat(4, 1fr); }
.sh-tiles.inv .st { background: var(--gold-50); border-color: var(--accent-line); }
.st { border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; background: var(--surface-2); }
.st small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; }
.st b { display: block; font-size: 16px; color: var(--head); margin-top: 1px; }
.st em { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.sum-t { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.sum-t th { background: var(--navy); color: var(--on-dark); font-weight: 600; padding: 6px 8px; text-align: right; font-size: 11px; }
.sum-t th:first-child { border-radius: 3px 0 0 0; }
.sum-t th:last-child { border-radius: 0 3px 0 0; }
.sum-t td { padding: 4px 8px; text-align: right; border-bottom: 1px solid var(--line-2); }
.sum-t td:first-child { text-align: left; color: var(--ink-2); }
.sum-t tr.b td { font-weight: 700; color: var(--head); }
.sh-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.sh-foot span:last-child { text-align: right; max-width: 60%; }
.sheet .brandblock .bb-logo { max-height: 48px; max-width: 180px; }

/* ---------- lease scanning ---------- */
#modal.wide .mbox.scanbox { max-width: 760px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 2px dashed var(--line-strong); background: var(--surface-2); border-radius: 3px; padding: 22px 14px; cursor: pointer; text-align: center; margin: 12px 0; }
.drop:hover { border-color: var(--in-ink); }
.drop.busy { cursor: default; opacity: .75; }
.drop input { display: none; }
.drop span { color: var(--head); }
.drop small { color: var(--muted); }
.scanlist { display: flex; flex-direction: column; gap: 10px; max-height: 52vh; overflow: auto; margin-bottom: 10px; }
.scanitem { border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; }
.scanitem.done { border-color: var(--good-line); }
.scanitem.error { border-color: var(--bad-line); background: var(--bad-bg); }
.si-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.si-top b { word-break: break-all; }
.si-st { color: var(--muted); font-size: 12px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.scanitem.done .si-st { color: var(--good); font-weight: 700; }
.spin { width: 12px; height: 12px; border: 2px solid var(--line-strong); border-top-color: var(--in-ink); border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.si-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 12px; margin: 10px 0 6px; }
.si-grid small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 700; }
.si-grid span { font-weight: 600; font-size: 12.5px; }
.scanitem details { margin: 6px 0; }
.scanitem summary { cursor: pointer; color: var(--in-ink); font-weight: 600; font-size: 12px; margin-bottom: 6px; }
.si-act { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.si-act label { display: flex; gap: 6px; align-items: center; font-weight: 600; }
.si-act select { width: auto; min-width: 200px; }
.x.abs { font-size: 13px; vertical-align: middle; }
.abs-list { margin: 4px 0 8px 18px; padding: 0; }
.abs-list li { margin: 3px 0; }

.btn.gold-sm { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 700; padding: 7px 13px; }
.pdflist { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.pdflist > div { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 4px; padding: 6px 9px; font-weight: 600; }
.pdflist .x { margin-left: auto; }
.info-box { background: var(--gold-50); border: 1px solid var(--accent-line); color: var(--accent-ink); border-radius: 4px; padding: 9px 11px; margin: 0 0 10px; }
.drop.small { padding: 14px 12px; margin: 4px 0 8px; }
.shots { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.shot { position: relative; width: 84px; height: 84px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .x { position: absolute; top: 2px; right: 2px; background: rgba(255, 255, 255, .9); border-radius: 50%; width: 20px; height: 20px; padding: 0; }
.btn .spin { margin-right: 4px; }

/* ---------- LOI ---------- */
.loi-h { color: var(--head); font-size: 15px; }
.loi-form { background: var(--card); border-radius: 4px; padding: 14px 16px; margin-bottom: 12px; }
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 12px; }
.lgrid .fld { margin: 4px 0; }
.lgrid .fld.wide2 { grid-column: span 2; }
.lgrid textarea { resize: vertical; color: var(--ink); }
.lchecks { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0; }
.lchk { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.sheet.loi { font-size: 12.5px; line-height: 1.55; }
.sheet.loi p { margin: 10px 0; }
.sheet.loi .ldate { margin-top: 16px; }
.sheet.loi .li { margin: 7px 0; }
.sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 30px; }
.sig { border-bottom: 1px solid var(--ink); height: 34px; margin: 4px 0 6px; }
@media (max-width: 640px) { .si-grid { grid-template-columns: 1fr 1fr; } .lgrid .fld.wide2 { grid-column: auto; } .sigs { grid-template-columns: 1fr; } }

/* ---------- returns & key metrics ---------- */
.mgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.mtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mt { border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; background: var(--surface-2); }
.mt small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 700; }
.mt b { display: block; font-size: 18px; color: var(--head); margin-top: 2px; font-variant-numeric: tabular-nums; }
.mt em { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); }
.mt.hl { background: var(--gold-50); border-color: var(--accent-line); }
.mt.badm b { color: var(--bad); }
.mt.warnm { border-color: var(--warn-line); }
.mt.warnm b { color: var(--warn); }
.xs-seg { margin-top: 2px; }
.xs-seg button { padding: 3px 8px; font-size: 11px; }

/* ---------- cloud status ---------- */
.cs-saved { color: var(--good); }
.cs-error { color: var(--warn); font-weight: 600; }
.cs-syncing, .cs-saving, .cs-pending { color: var(--head-2); }

/* ---------- sectors ---------- */
.sector-badge { font-size: 12px; font-weight: 700; color: var(--head); background: var(--gold-2); border-radius: 4px; padding: 6px 10px; margin-bottom: 4px; }
button.sector-badge { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; font-family: inherit; text-align: left; cursor: pointer; }
button.sector-badge:hover { background: var(--gold); }
.sb-ch { margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--head-2); background: rgba(255, 255, 255, .55); border-radius: 3px; padding: 1px 7px; }
.sector-card.locked.current { opacity: 1; border-color: var(--gold); background: var(--gold-50); cursor: default; color: var(--ink); }
.sector-card.locked.current small { color: var(--muted); }
.sector-banner { background: var(--navy-50); border: 1px solid var(--line-strong); color: var(--head); border-radius: 4px; padding: 10px 14px; font-size: 12.5px; }
.sector-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.sector-card { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 4px; padding: 14px; cursor: pointer; }
.sector-card:hover:not(.locked) { border-color: var(--navy-3); box-shadow: var(--shadow); }
.sector-card .sc-ic { font-size: 26px; }
.sector-card b { color: var(--head); font-size: 14px; }
.sector-card small { color: var(--muted); font-size: 11.5px; }
.sector-card.locked { opacity: .45; cursor: not-allowed; }
.lockcard { text-align: center; padding: 30px 10px; }
.lockcard h2 { color: var(--head); margin: 6px 0; }
.lock-ic { font-size: 40px; }
.adm-sect { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-sect label { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; cursor: pointer; }
.adm-sect label.on { background: var(--gold-50); border-color: var(--accent-line); }

/* ---------- DCF additions ---------- */
.sub-v { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
select.in.msel { width: auto; min-width: 118px; font-size: 12px; }
.tgl-in { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.tgl-in .switch { transform: scale(.85); }
.vacrow td { background: var(--warn-bg); }
.vacrow .in.mini { width: 74px; }
.warnrow td { color: var(--warn); font-weight: 600; }
.notes-in { min-width: 200px; text-align: left; }
.dim-n { color: var(--muted); }
.em-sel { margin: 0 0 8px; grid-template-columns: 1fr; }
.em-sel .msel { width: 100%; }
.big-out { font-size: 18px; text-align: left; padding: 7px 9px; }
.meas-top { align-items: start; }

/* ---------- tiered waterfall ---------- */
.wf-setup { border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; margin-bottom: 14px; background: var(--surface-2); }
.wf-tier { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.wf-tier:last-of-type { border-bottom: 0; }
.wf-tier > b:first-child { min-width: 52px; color: var(--head); }
.wf-tier .in.mini { width: 80px; }

/* ---------- lease rollover ---------- */
.hint-w { font-weight: 500; color: var(--muted); font-size: 12px; }
.roll-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.roll-f { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.roll-f .fld label { white-space: normal; }
.roll-t td .in.mini { width: 90px; }
@media (max-width: 980px) { .roll-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- office: recoveries, leasing profiles, tenancy ---------- */
.t.rr td.rec-c { white-space: nowrap; min-width: 218px; text-align: left; }
.t.rr select.in.rec-sel { width: 122px; min-width: 122px; display: inline-block; }
.t.rr .rec-p { margin-left: 4px; display: inline-block; vertical-align: middle; }
.t.rr select.in.rec-p { width: 88px; min-width: 88px; }
.t.rr input.in.rec-p { width: 72px; }
.t.rr select.in { min-width: 104px; }
.rec-c .dim { font-size: 10.5px; margin-left: 4px; }
.rec-tools { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; }
.rec-tools .hint { flex: 1 1 320px; margin: 0; }
.rec-tools .tgl { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.prof-t td .in.mini { width: 84px; }
.prof-t .in.prof-n { width: 150px; font-weight: 700; }
.prof-t th { white-space: nowrap; }
.dim-row td { color: var(--muted); }
/* multifamily */
.mf-f { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.mf-f .fld label { white-space: normal; }
.vac-note { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; }
.vac-note .btn { margin-left: 6px; }
.mix-t th { white-space: nowrap; }
.mix-t .in.txt { width: 150px; }
.mix-t td .in.mini { width: 74px; }
.mix-t td .in.xmini { width: 44px; }
.mix-other .in.txt { width: 210px; }
.mix-other select.in { min-width: 0; width: auto; font-size: 12px; }
/* retail */
.retail-terms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 14px; }
@media (max-width: 980px) { .retail-terms { grid-template-columns: minmax(0, 1fr); } }
.retail-terms .tgl { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; margin-top: 8px; }
.retail-t th { white-space: nowrap; }
.retail-t tr.grp th { background: var(--card); color: var(--head-2); text-align: center; border-bottom: 2px solid var(--gold); }
.retail-t td .in.mini { width: 66px; }
.retail-t select.in { min-width: 0; width: auto; font-size: 12px; }
.retail-t td.bp-c { white-space: nowrap; }
.retail-t .bp-c .in.mid { width: 96px; margin-left: 4px; }
.retail-t tr.anchor-row td { background: var(--surface-2); }
.retail-t .warn { font-size: 10.5px; font-weight: 700; }
input.cb { width: 16px; height: 16px; accent-color: var(--navy-3); cursor: pointer; vertical-align: middle; }
.park-t .in.txt { width: 116px; }
.park-t td .in.mini { width: 64px; }
.park-t th { white-space: nowrap; }
.ten-tiles { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
/* expiration chart: one series (% of building SF expiring each year); dark = before exit, gray = after */
.xchart { margin-top: 22px; padding-left: 34px; }
.xplot { position: relative; height: 150px; border-bottom: 1px solid var(--line-strong); }
.xg { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line-2); }
.xg span { position: absolute; left: -34px; top: -7px; width: 30px; text-align: right; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.xcols { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.xcol { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; outline: none; cursor: default; }
.xbar { width: 60%; max-width: 24px; background: var(--chart-muted); border-radius: 4px 4px 0 0; position: relative; }
.xcol.hold .xbar { background: var(--navy-3); }
.xcol:hover .xbar, .xcol:focus .xbar { filter: brightness(1.15); }
.xval { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 3px; font-size: 11px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.xtip { display: none; position: absolute; left: 50%; transform: translateX(-50%); z-index: 5; width: max-content; max-width: 240px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 4px; padding: 7px 9px; font-size: 11.5px; line-height: 1.45; color: var(--ink-2); text-align: left; pointer-events: none; }
.xcol:hover .xtip, .xcol:focus .xtip { display: block; }
.xcol:nth-child(-n+2) .xtip { left: 0; transform: none; }
.xcol:nth-last-child(-n+3) .xtip { left: auto; right: 0; transform: none; }
.xlabels { display: flex; }
.xlabels span { flex: 1; text-align: center; font-size: 10.5px; color: var(--muted); padding-top: 4px; }

/* ---------- calculators ---------- */
.navseg { display: flex; background: rgba(0, 0, 0, .22); border-radius: 4px; padding: 3px; gap: 3px; margin-bottom: 4px; }
.navseg button { flex: 1; border: 0; background: transparent; color: #b5c4d6; padding: 7px 6px; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 12px; }
.navseg button.on { background: var(--card); color: var(--head); }
.calc-h h2 { margin: 0; color: var(--head); font-size: 22px; }
.calc-h p { margin: 4px 0 0; }
.ctabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 16px; }
.ctab { border: 1px solid var(--line); background: var(--card); border-radius: 4px; padding: 8px 13px; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.ctab:hover { border-color: var(--line-strong); }
.ctab.on { background: var(--navy); color: var(--on-dark); border-color: var(--navy); }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.cgrid.wide-l { grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); }
.cgrid.wide-r { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); }
.ccard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; min-width: 0; }
.ccard h4 { margin: 0 0 12px; color: var(--head); font-size: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ccard h4::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--gold); }
.ccard h4.mt { margin-top: 18px; }
.ccard h4 .btn { margin-left: auto; }
.cfld { margin: 8px 0; }
.cfld label { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.cfld small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.cfld .in { font-size: 14px; padding: 7px 9px; }
.tvm-top { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0 12px; margin-bottom: 6px; }
.tvm-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); }
.tvm-l b { display: block; color: var(--head); }
.tvm-l small { color: var(--muted); font-size: 11px; }
.tvm-row .in { font-size: 16px; font-weight: 700; padding: 8px 10px; }
.in.solved { background: var(--gold-50); border-color: var(--gold); color: var(--accent-ink); }
.tbar { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 14px; }
.tbar > div { padding: 12px; text-align: center; }
.tb-mid { background: var(--navy-50); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.tbar small { display: block; color: var(--muted); font-size: 11px; }
.tbar b { display: block; font-size: 16px; margin: 4px 0; color: var(--head); }
.tbar em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: 1px; color: var(--head-2); }
.cresgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cresgrid.one { grid-template-columns: 1fr; margin-top: 12px; }
.cres { border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; background: var(--surface-2); }
.cres small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; }
.cres b { display: block; font-size: 19px; color: var(--head); margin-top: 3px; font-variant-numeric: tabular-nums; }
.cres.hl { background: var(--gold-50); border-color: var(--accent-line); }
.cres.good b { color: var(--good); }
.cres.badv b { color: var(--bad); }
.okmsg { color: var(--good); font-size: 12px; margin: 10px 0 0; }
.sm-seg button { padding: 4px 9px; font-size: 11.5px; }
.amort-scroll { max-height: 520px; overflow: auto; }
.amort-scroll th { position: sticky; top: 0; z-index: 1; }
.tiers { border: 1px dashed var(--line); border-radius: 4px; padding: 10px 12px; margin: 6px 0 12px; }
.tiers > b { color: var(--head); font-size: 12.5px; }
.tier { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.pct-t td { padding: 8px 9px; }
.stats-in { height: 220px; resize: vertical; font-size: 13px; color: var(--ink); text-align: left; }
.ctools { display: flex; gap: 6px; margin: -6px 0 14px; flex-wrap: wrap; }
.calc-print-h { display: none; }
@media print {
  body.print-calc .ctabs, body.print-calc .ctools, body.print-calc .calc-h, body.print-calc .ccard .btnrow, body.print-calc .ccard button, body.print-calc .x { display: none !important; }
  body.print-calc .calc-print-h { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--navy); padding-bottom: 8px; margin-bottom: 12px; gap: 12px; }
  body.print-calc .calc-print-h > div:last-child { text-align: right; }
  body.print-calc .calc-print-h b { display: block; font-size: 16px; color: var(--head); }
  body.print-calc .calc-print-h span { color: var(--muted); font-size: 10px; }
  body.print-calc .amort-scroll { max-height: none; overflow: visible; }
  body.print-calc .ccard { box-shadow: none; break-inside: avoid; }
  body.print-calc .cgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) { .cgrid, .cgrid.wide-l, .cgrid.wide-r { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .tvm-row { grid-template-columns: 1fr; } .cresgrid { grid-template-columns: 1fr; } }

/* ---------- read-only ---------- */
body.ro .edit-only { display: none !important; }
body.ro .in:disabled { background: transparent; border-color: transparent; color: var(--ink); }
body.ro select.in:disabled { appearance: none; -webkit-appearance: none; }

/* ---------- responsive ---------- */
@media (max-width: 1250px) {
  .econ-grid { grid-template-columns: 1fr 1fr; }
  .econ-main { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .app { flex-direction: column; }
  .side { width: auto; flex: none; height: auto; position: static; }
  .econ-grid, .wf, .hero { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .content { padding: 14px 16px 30px; }
  .topbar { padding: 10px 16px; position: static; }
  .linkrow .in.url { width: 100%; }
  .sh-row, .fgrid2 { grid-template-columns: 1fr; }
  .sh-tiles, .sh-tiles.inv { grid-template-columns: 1fr 1fr; }
  .sheet { padding: 18px; }
}
@media (max-width: 520px) {
  .impi { grid-template-columns: 20px 1fr; }
  .impv { grid-column: 2; }
  .mbox { margin: 4vh 12px 20px; }
}

/* ---------- print ---------- */
@page { size: landscape; margin: 10mm; }
@page summary { size: letter portrait; margin: 9mm; }
@media print {
  body { background: var(--card); font-size: 10.5px; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .side, .topbar, .edit-only, .card-h .tools, .photo-tools, #mapLayer, .hero-r, .sh-up { display: none !important; }
  .hero { grid-template-columns: 1fr; }
  .print-brand { display: block; padding-bottom: 8px; border-bottom: 2px solid var(--navy); }
  .content { padding: 0; gap: 10px; max-width: none; }
  .card, .hero { break-inside: avoid; box-shadow: none; }
  .tscroll { overflow: visible; }
  .in { border-color: transparent; background: transparent; padding: 0; box-shadow: none; }
  select.in { appearance: none; -webkit-appearance: none; }
  #modal { display: none !important; }

  body.print-summary .app { display: none !important; }
  body.print-summary #modal { display: block !important; position: static; overflow: visible; }
  body.print-summary .mbg, body.print-summary .mclose, body.print-summary .sum-actions, body.print-summary .loi-form { display: none !important; }
  body.print-summary .mbox.sumbox { margin: 0; padding: 0; max-width: none; background: var(--card); box-shadow: none; border-radius: 0; }
  body.print-summary .sheet { box-shadow: none; padding: 0; border-radius: 0; }
}

/* === institutional layer === */
/* Palette: slate grays, deep navy #0F172A, charcoal #1E293B. Emerald marks positive financial deltas, red negative.
   Blue ink = an editable input (the spreadsheet convention). Every colour above is one of these tokens. */
:root, .sheet {
  color-scheme: light;
  --bg: #F1F5F9; --card: #FFFFFF; --surface-2: #F8FAFC; --surface-3: #E2E8F0;
  --ink: #0F172A; --ink-2: #334155; --muted: #64748B; --dim: #94A3B8;
  --head: #0F172A; --head-2: #334155;
  --line: #E2E8F0; --line-2: #EEF2F6; --line-strong: #CBD5E1;
  --navy: #0F172A; --navy-2: #1E293B; --navy-3: #334155; --navy-50: #F1F5F9;
  --chrome: #0F172A; --chrome-2: #1E293B; --on-dark: #FFFFFF;
  --gold: #475569; --gold-2: #475569; --gold-50: #F1F5F9; --gold-ink: #FFFFFF; --accent-line: #CBD5E1; --accent-ink: #334155;
  --in-bg: #F8FAFF; --in-line: #CBD5E1; --in-line-hover: #94A3B8; --in-ink: #1D4ED8; --focus: #3B82F6; --focus-ring: rgba(59, 130, 246, .22);
  --ovr-bg: #DBEAFE; --ovr-ink: #1E40AF;
  --good: #059669; --good-bg: #ECFDF5; --good-line: #A7F3D0; --up: #10B981;
  --bad: #DC2626; --bad-bg: #FEF2F2; --bad-line: #FECACA; --bad-ink: #991B1B;
  --warn: #B45309; --warn-bg: #FFFBEB; --warn-line: #FCD34D;
  --refi: #F1F5F9; --switch-off: #CBD5E1; --chart-muted: #CBD5E1;
  --topbar-bg: #FFFFFF; --out-h: #0F172A;
  --r: 6px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070C17; --card: #0F172A; --surface-2: #131D31; --surface-3: #1E293B;
  --ink: #F1F5F9; --ink-2: #CBD5E1; --muted: #94A3B8; --dim: #64748B;
  --head: #F8FAFC; --head-2: #CBD5E1;
  --line: #1E293B; --line-2: #18233A; --line-strong: #334155;
  --navy: #334155; --navy-2: #475569; --navy-3: #64748B; --navy-50: #1E293B;
  --chrome: #0B1220; --chrome-2: #1E293B;
  --gold: #64748B; --gold-2: #64748B; --gold-50: #1E293B; --accent-line: #334155; --accent-ink: #CBD5E1;
  --in-bg: #0A1224; --in-line: #334155; --in-line-hover: #475569; --in-ink: #93C5FD; --focus: #60A5FA; --focus-ring: rgba(96, 165, 250, .28);
  --ovr-bg: #172554; --ovr-ink: #BFDBFE;
  --good: #34D399; --good-bg: #052E22; --good-line: #065F46; --up: #34D399;
  --bad: #F87171; --bad-bg: #2A1215; --bad-line: #7F1D1D; --bad-ink: #FCA5A5;
  --warn: #FBBF24; --warn-bg: #2A2008; --warn-line: #78350F;
  --refi: #16213A; --switch-off: #475569; --chart-muted: #475569;
  --topbar-bg: #0F172A; --out-h: #1E293B;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
@media print {
  :root[data-theme="dark"] {
    color-scheme: light;
    --bg: #F1F5F9; --card: #FFFFFF; --surface-2: #F8FAFC; --surface-3: #E2E8F0; --ink: #0F172A; --ink-2: #334155; --muted: #64748B; --dim: #94A3B8;
    --head: #0F172A; --head-2: #334155; --line: #E2E8F0; --line-2: #EEF2F6; --line-strong: #CBD5E1; --navy: #0F172A; --navy-2: #1E293B; --navy-3: #334155; --navy-50: #F1F5F9;
    --gold: #475569; --gold-2: #475569; --gold-50: #F1F5F9; --accent-line: #CBD5E1; --accent-ink: #334155; --in-bg: #F8FAFF; --in-line: #CBD5E1; --in-ink: #1D4ED8;
    --ovr-bg: #DBEAFE; --ovr-ink: #1E40AF; --good: #059669; --good-bg: #ECFDF5; --good-line: #A7F3D0; --bad: #DC2626; --bad-bg: #FEF2F2; --bad-line: #FECACA; --bad-ink: #991B1B;
    --warn: #B45309; --warn-bg: #FFFBEB; --warn-line: #FCD34D; --refi: #F1F5F9; --switch-off: #CBD5E1; --chart-muted: #CBD5E1; --topbar-bg: #FFFFFF; --out-h: #0F172A;
  }
}

/* ---------- density & shape ---------- */
body { font-size: 12.5px; line-height: 1.4; }
.content { padding: 12px 16px 36px; gap: 12px; max-width: none; }
.cards { gap: 12px; }
@media (min-width: 861px) { .cards { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); } }
.card { box-shadow: var(--shadow); }
.card-h { padding: 7px 12px; }
.card-h h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
.card-h h3::before { width: 3px; height: 13px; border-radius: 1px; background: var(--navy-3); flex-basis: 3px; }
.card-h h3 .hint-w { text-transform: none; letter-spacing: 0; }
.card-b { padding: 10px 12px; }
.btn { border-radius: 4px; padding: 5px 10px; font-weight: 600; font-size: 12px; border-color: var(--line-strong); }
.btn:hover { background: var(--surface-2); border-color: var(--in-line-hover); }
.btn:focus-visible, .tab:focus-visible, .in:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.btn.sm { padding: 4px 9px; font-size: 11.5px; }
.btn.xs { padding: 3px 7px; font-size: 11px; }
.btn.primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn:disabled { opacity: .55; cursor: default; }
.in { padding: 4px 7px; border-radius: 3px; font-size: 12.5px; }
.in.big { font-size: 17px; padding: 5px 8px; }
.fgrid { gap: 8px 10px; margin-bottom: 12px; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.fld label, .box > label { font-size: 10px; letter-spacing: .6px; margin-bottom: 3px; }
.outv { padding: 4px 7px; border-radius: 3px; font-variant-numeric: tabular-nums; }
.box { padding: 8px; }
.t th { padding: 5px 8px; font-size: 10px; letter-spacing: .5px; }
.t td { padding: 4px 8px; }
.t tr.sec td { padding: 10px 8px 4px; border-bottom-width: 1px; border-bottom-color: var(--line-strong); }
.sub-h { margin: 2px 0 7px; font-size: 10px; letter-spacing: 1.1px; }
.mt { padding: 7px 9px; border-radius: 4px; }
.mt b { font-size: 16px; }
.mt.hl { border-left: 3px solid var(--navy-3); }
.mbox { border-radius: 6px; }
.seg { border-radius: 4px; padding: 2px; }
.seg button { border-radius: 3px; padding: 4px 10px; }
.ytab { border-radius: 3px; padding: 4px 10px; }
.tag { border-radius: 2px; }
.switch { width: 32px; height: 18px; flex-basis: 32px; }
.switch span { border-radius: 4px; transition: background .18s ease; }
.switch span::before { width: 14px; height: 14px; border-radius: 3px; background: #FFFFFF; transition: transform .18s cubic-bezier(.3, 1.4, .6, 1); }
.switch input:checked + span { background: var(--up); }
.switch input:checked + span::before { transform: translateX(14px); }
.switch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch:active span::before { width: 16px; }
.warnbox { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.good, .cs-saved { color: var(--good); }

/* currency now shows its $ in the box: give the narrow inputs room for it */
.in.mini { width: 78px; }
.in.mid { width: 118px; }
.retail-t td .in.mini, .park-t td .in.mini, .mix-t td .in.mini { width: 76px; }
.kv2 .in.mini { width: 66px; }
.sector-banner { display: none; }
.lockcard .sc-ic { display: inline-block; margin-bottom: 8px; }
.chip.ro { background: var(--warn-bg); color: var(--warn); }
.acct .tag { background: #FFFFFF; color: #0F172A; }
.bb-mono { background: var(--chrome); color: #FFFFFF; border-radius: 4px; }
.in.solved { background: var(--good-bg); border-color: var(--good-line); color: var(--good); }
.dot { display: none; }

/* ---------- visual weight: results vs inputs ---------- */
/* Result tables (income summary, debt, measures, after-tax, waterfall, returns) get a solid header; input cards stay light. */
#c-summary > .card-h, #c-debt > .card-h, #c-measures > .card-h, #c-tax > .card-h, #c-waterfall > .card-h, #c-returns > .card-h { background: var(--out-h); border-bottom-color: var(--out-h); border-radius: 5px 5px 0 0; }
#c-summary > .card-h h3, #c-debt > .card-h h3, #c-measures > .card-h h3, #c-tax > .card-h h3, #c-waterfall > .card-h h3, #c-returns > .card-h h3 { color: #F8FAFC; }
#c-summary > .card-h h3::before, #c-debt > .card-h h3::before, #c-measures > .card-h h3::before, #c-tax > .card-h h3::before, #c-waterfall > .card-h h3::before, #c-returns > .card-h h3::before { background: var(--up); }
#c-summary .card-h .btn.ghost, #c-debt .card-h .btn.ghost, #c-measures .card-h .btn.ghost, #c-tax .card-h .btn.ghost, #c-waterfall .card-h .btn.ghost, #c-returns .card-h .btn.ghost { color: #CBD5E1; }
#c-summary .card-h .btn.ghost:hover, #c-debt .card-h .btn.ghost:hover, #c-measures .card-h .btn.ghost:hover, #c-tax .card-h .btn.ghost:hover, #c-waterfall .card-h .btn.ghost:hover, #c-returns .card-h .btn.ghost:hover { background: rgba(255, 255, 255, .1); }
#c-summary .card-h .hint-w, #c-debt .card-h .hint-w, #c-measures .card-h .hint-w, #c-tax .card-h .hint-w, #c-waterfall .card-h .hint-w { color: #94A3B8; }
.t tr.total td { font-size: 12.5px; }
.exitval { border-color: var(--line); }
.ev, .kv { border-color: var(--line); }
.ev label, .kv span, .kv2 label { color: var(--muted); }
.ev.drive { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus) inset; }

/* ---------- sidebar (always dark chrome) ---------- */
.side { padding: 12px 10px 20px; gap: 5px; border-right: 1px solid #1E293B; }
@media (min-width: 861px) { .side { width: 220px; flex-basis: 220px; } }
.brand { margin: 0 2px 10px; }
.brand .logo { border-radius: 4px; background: #FFFFFF; color: #0F172A; box-shadow: none; width: 32px; height: 32px; flex-basis: 32px; }
.brand .logo svg { width: 20px; height: 20px; display: block; color: #059669; }
.logo-img { display: block; border-radius: 4px; flex: 0 0 36px; }
.sum-brand-empty { display: flex; align-items: center; gap: 10px; }
.sum-brand-empty svg { width: 30px; height: 30px; display: block; }
.side-h { margin: 12px 4px 3px; font-size: 9.5px; color: #64748B; }
.sector-badge, button.sector-badge { background: rgba(255, 255, 255, .06); color: #E2E8F0; border: 1px solid rgba(255, 255, 255, .1); border-radius: 4px; font-size: 11.5px; padding: 5px 8px; }
button.sector-badge:hover { background: rgba(255, 255, 255, .1); }
.sb-ch { background: transparent; color: #94A3B8; border: 1px solid rgba(255, 255, 255, .16); border-radius: 3px; }
.sbtn { border-radius: 4px; width: 36px; height: 28px; transition: background .12s, border-color .12s; }
.sbtn:hover { border-color: rgba(255, 255, 255, .3); }
.sbtn.on { background: #FFFFFF; color: #0F172A; border-color: #FFFFFF; }
.tool { border-radius: 4px; padding: 6px 8px; font-size: 11.5px; transition: border-color .12s, background .12s; }
.tool:hover { border-color: rgba(255, 255, 255, .16); }
/* label | switch | rate on the first line, the live readout on its own line underneath */
.tool { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 8px; row-gap: 2px; }
.tool > span { display: contents; }
.tool-v { grid-column: 1 / -1; grid-row: 2; font-size: 10.5px; color: #94A3B8; font-variant-numeric: tabular-nums; font-weight: 600; }
.tool-v.live { color: #34D399; }
.tool-v.cost { color: #FCA5A5; }
.tool .in.mini { width: 58px; color: #BFDBFE; }
.btn.gold { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #E2E8F0; padding: 6px 9px; font-weight: 600; }
.btn.gold b { color: #34D399; font-variant-numeric: tabular-nums; }
.side .btn.gold:hover { background: rgba(255, 255, 255, .1); }

/* ---------- header: top bar, tabs, key metrics ---------- */
.hdr { position: sticky; top: 0; z-index: 6; }
.topbar { position: static; backdrop-filter: none; padding: 7px 16px; gap: 8px; }
.tb-name { font-size: 13.5px; }
.chip { border-radius: 2px; padding: 3px 7px; font-size: 9.5px; }
.tabs { display: flex; background: var(--topbar-bg); border-bottom: 1px solid var(--line); padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 8px 14px 7px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: color .12s, border-color .12s, background .12s; }
.tab:hover { color: var(--ink); background: var(--surface-2); border-bottom-color: var(--line-strong); }
.tab.on { color: var(--head); border-bottom-color: var(--head); }
.tab .badge { font-size: 9px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; padding: 1px 5px; border-radius: 2px; background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); }
.tab .badge.ok { background: var(--good-bg); color: var(--good); border-color: var(--good-line); }
.tab-sep { width: 1px; background: var(--line); margin: 8px 6px; flex: 0 0 1px; }
.kpis { display: flex; background: var(--chrome); color: #F8FAFC; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--chrome-2); }
.kpis::-webkit-scrollbar { display: none; }
.kpi { padding: 6px 12px 7px; border-right: 1px solid rgba(255, 255, 255, .08); white-space: nowrap; flex: 1 0 auto; }
.kpi:last-child { border-right: 0; }
.kpi small { display: block; font-size: 9.5px; letter-spacing: .6px; text-transform: uppercase; color: #94A3B8; font-weight: 700; }
.kpi b { font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi.lead b { font-size: 16px; }
.kpi em { font-style: normal; font-size: 10.5px; font-weight: 700; margin-left: 6px; font-variant-numeric: tabular-nums; }
.kpi em.up { color: #34D399; }
.kpi em.down { color: #F87171; }
.kpi em.flat { color: #94A3B8; }
.kpi b.neg { color: #F87171; }
.theme-btn { gap: 6px; }
.theme-ic { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); display: inline-block; }

/* ---------- property header & map ---------- */
.prop { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; box-shadow: var(--shadow); }
.prop-k { font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.prop h1, .prop .h1in { font-size: 20px; font-weight: 800; color: var(--head); margin: 2px 0 6px; letter-spacing: -.2px; }
.prop .h1in { border: 1px solid transparent; border-radius: 3px; padding: 1px 5px; margin-left: -6px; background: transparent; width: 100%; }
.prop .h1in:hover { border-color: var(--line-strong); }
.prop .h1in:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px var(--focus-ring); }
.prop-facts { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 10px; font-size: 12px; color: var(--ink-2); }
.prop-facts span { padding: 0 10px; border-left: 1px solid var(--line-strong); font-variant-numeric: tabular-nums; }
.prop-facts span:first-child { padding-left: 0; border-left: 0; }
.prop-facts b { color: var(--head); }
.prop-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.prop-acts .sep { color: var(--muted); font-size: 11.5px; margin-left: 4px; }
.prop-map { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.prop .mapslot { height: 132px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); }
#mapLayer { border-radius: 4px; box-shadow: none; }
.prop .ph-empty { color: var(--muted); }
.map-bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.prop .map-seg { background: var(--navy-50); align-self: auto; }
.prop .map-seg button { color: var(--muted); }
.prop .map-seg button.on { background: var(--card); color: var(--head); }
@media (max-width: 900px) { .prop { grid-template-columns: minmax(0, 1fr); } .prop .mapslot { height: 150px; } }

/* ---------- branding suite ---------- */
.br-sec { border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; margin: 10px 0; }
.br-sec > b { display: block; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.br-logo { border-radius: 4px; margin: 4px 0; }
.br-domain { display: flex; align-items: center; gap: 6px; }
.br-domain .in { width: 150px; }
.br-domain code, .br-prev code { font: 600 12px/1.3 ui-monospace, Consolas, monospace; color: var(--ink-2); }
.br-status { display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; padding: 1px 6px; border-radius: 2px; border: 1px solid var(--line-strong); color: var(--muted); margin-left: 6px; }
.br-status.live { color: var(--good); border-color: var(--good-line); background: var(--good-bg); }
.br-prev { background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: 4px; padding: 8px 10px; margin-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11.5px; }

/* ---------- platform footer, legal, cookie notice ---------- */
.pfoot { border-top: 1px solid var(--line); margin-top: 4px; padding: 10px 2px 0; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; font-size: 11px; color: var(--muted); }
.pfoot nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.flink { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font-size: 11px; text-decoration: underline; text-underline-offset: 2px; }
.flink:hover { color: var(--ink); }
.pfoot a { color: var(--muted); }
.legal { max-height: 62vh; overflow-y: auto; font-size: 12px; line-height: 1.55; padding-right: 6px; }
.legal h4 { margin: 14px 0 4px; font-size: 12px; color: var(--head); text-transform: uppercase; letter-spacing: .5px; }
.legal p, .legal li { color: var(--ink-2); margin: 4px 0; }
.legal .upd { color: var(--muted); font-size: 11px; }
.cookie { position: fixed; right: 12px; bottom: 12px; z-index: 40; width: min(340px, calc(100vw - 24px)); background: var(--card); border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: 0 8px 24px rgba(15, 23, 42, .18); padding: 10px 12px; font-size: 11.5px; color: var(--ink-2); }
.cookie b { display: block; color: var(--head); margin-bottom: 2px; }
.cookie .btnrow { margin-top: 8px; }
/* while the notice is open the page gets extra room at the bottom, so the last table rows can always scroll clear of it */
body.has-cookie .content { padding-bottom: 150px; }
.errbox { max-width: 520px; margin: 14vh auto; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 28px 24px; }
.errbox h2 { margin: 0 0 6px; color: var(--head); font-size: 18px; }
.errbox p { color: var(--muted); margin: 6px 0; }
.errbox .code { font: 700 11px/1 ui-monospace, Consolas, monospace; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 10px; display: block; }
.errbox .btnrow { justify-content: center; }
.errbox .btnrow .btn { flex: 0 0 auto; }
.expired { max-width: 520px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 28px 24px; }
.sc-ic { font: 800 10px/1 ui-monospace, Consolas, monospace; letter-spacing: 1px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 2px; padding: 3px 5px; }
.sector-card .sc-ic { font-size: 10px; }

/* ---------- print cover ---------- */
.print-cover { display: none; }
@media print {
  .hdr, .cookie, .pfoot nav, .tabs, .kpis, .prop-map, .prop-acts { display: none !important; }
  .content { padding: 0; gap: 10px; }
  .in { padding: 0; }
  .card, .prop { box-shadow: none; break-inside: avoid; }
  .prop { grid-template-columns: 1fr; border: 0; padding: 0; }
  body.print-summary .print-cover { display: none; }
  .prop-k, .prop h1, .prop .h1in { display: none; }
  .prop-facts { margin: 0; }
  .print-cover { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; border-bottom: 3px solid #0F172A; padding-bottom: 10px; margin-bottom: 4px; }
  .print-cover h1 { margin: 6px 0 2px; font-size: 20px; }
  .print-cover .pc-k { font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 800; color: #334155; }
  .print-cover .pc-m { display: flex; gap: 18px; font-size: 11px; }
  .print-cover .pc-m b { display: block; font-size: 14px; }
}

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .hdr { position: static; }
  .content { padding: 10px 10px 32px; }
  .kpi { padding: 6px 12px; }
}

/* ---- six sectors: Self Storage and Mixed-Use ---- */
.mx-tabs { display: flex; align-items: center; gap: 10px; margin: 16px 0 8px; }
.mx-tabs .mx-k { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; color: var(--muted); }
.mx-tabs .seg button em { font-style: normal; font-weight: 500; opacity: .7; margin-left: 5px; }
.mx-pane.off { display: none; }
.calc-how { margin-top: 16px; }
.how-t { max-width: 820px; }
.how-t td { padding: 5px 10px; font-size: 12.5px; }
.how-t td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.how-t td:nth-child(2) { color: var(--muted); }
.ss-mo th, .ss-mo td { min-width: 64px; }
.mix-t td .in.msel { min-width: 132px; }
@media print { .mx-pane.off { display: block; } .mx-tabs { display: none; } }

/* ================= guided workspace: rail, sections, overview, deals, wizard ================= */
.ic { flex: none; vertical-align: -3px; }

/* ---- left rail ---- */
.rail { width: 228px; flex: 0 0 228px; gap: 1px; transition: width .2s ease-out, flex-basis .2s ease-out; }
.rail .brand { margin-bottom: 8px; }
.rail .brand-x { min-width: 0; flex: 1; }
.rail-tg { margin-left: auto; border: 0; background: transparent; color: #94A3B8; cursor: pointer; padding: 4px; border-radius: 4px; display: inline-flex; }
.rail-tg:hover { color: #FFFFFF; background: rgba(255, 255, 255, .08); }
.nv { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; color: #CBD5E1; font: 500 12.5px/1.2 inherit; font-family: inherit; text-align: left; padding: 7px 9px; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.nv span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nv:hover { background: rgba(255, 255, 255, .06); color: #FFFFFF; }
.nv.on { background: rgba(255, 255, 255, .11); color: #FFFFFF; box-shadow: inset 2px 0 0 #FFFFFF; }
.nv:focus-visible { outline: 2px solid #60A5FA; outline-offset: -2px; }
.nv .ic { color: #94A3B8; }
.nv.on .ic, .nv:hover .ic { color: #FFFFFF; }
.nv.new { background: #FFFFFF; color: #0F172A; font-weight: 600; margin-bottom: 4px; justify-content: flex-start; }
.nv.new .ic { color: #0F172A; }
.nv.new:hover { background: #E2E8F0; color: #0F172A; }
.nv em { font-style: normal; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nv-n { background: #B45309; color: #FFFFFF; border-radius: 3px; padding: 1px 5px; }
.nv-c { color: #94A3B8; }
.nv-t { color: #64748B; letter-spacing: .5px; }
.nv-t.warn { color: #FBBF24; }
.rail-deal { display: flex; gap: 7px; align-items: center; padding: 3px 9px 6px; font-size: 12px; color: #F1F5F9; min-width: 0; }
.rail-deal b { font: 800 9.5px/1 ui-monospace, Consolas, monospace; letter-spacing: .8px; color: #94A3B8; border: 1px solid #334155; border-radius: 2px; padding: 3px 4px; flex: none; }
.rail-deal span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rail-sp { flex: 1 1 12px; }
.rail .acct { padding: 0 9px; font-size: 11px; color: #94A3B8; }
.rail-bg { display: none; }
body.rail-min .rail { width: 58px; flex-basis: 58px; padding-left: 8px; padding-right: 8px; }
body.rail-min .rail .brand-x, body.rail-min .rail .nv span, body.rail-min .rail .nv em, body.rail-min .rail .side-h, body.rail-min .rail .rail-deal span, body.rail-min .rail .acct, body.rail-min .rail .side-note { display: none; }
body.rail-min .rail .brand { flex-direction: column; gap: 6px; }
body.rail-min .rail .rail-tg { margin: 0; transform: rotate(180deg); }
body.rail-min .rail .nv { justify-content: center; padding: 8px 0; }
body.rail-min .rail .rail-deal { justify-content: center; padding: 8px 0; }
body.rail-min .rail .btn.block { display: none; }

/* ---- top bar ---- */
.nav-btn { display: none; }
.tb-sp { flex: 1 1 0; }
.sect-tag { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); border-radius: 4px; padding: 3px 9px; font: 600 12px/1.5 inherit; font-family: inherit; white-space: nowrap; }
button.sect-tag { cursor: pointer; }
button.sect-tag:hover { border-color: var(--navy-3); }
.sect-tag b { font: 800 9.5px/1 ui-monospace, Consolas, monospace; letter-spacing: .8px; color: var(--muted); }
.tb-scen { display: flex; align-items: center; gap: 6px; }
.tb-l { font-size: 10px; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; color: var(--muted); }
.sec-tabs { display: none; }

/* ---- section pages ---- */
.pane.off { display: none; }
.pane { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.sec-k { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.sec-head h2 { margin: 2px 0 3px; font-size: 22px; font-weight: 700; color: var(--head); letter-spacing: -.2px; }
.sec-head p { margin: 0; color: var(--muted); font-size: 13px; }
.sec-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.basic-note { margin: 0; font-size: 11.5px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 4px; padding: 6px 10px; }
body.basic .adv { display: none !important; }
.sec-grid { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 12px; align-items: start; }
.sec-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sec-side { position: sticky; top: 98px; max-height: calc(100vh - 110px); overflow-y: auto; }
.rp { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px 12px; box-shadow: var(--shadow); }
.rp-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--head-2); padding-bottom: 6px; }
.rp-h small { font-weight: 600; color: var(--muted); letter-spacing: .3px; }
.rp-r { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line-2); font-size: 12.5px; }
.rp-r span { color: var(--ink-2); }
.rp-r b { font-variant-numeric: tabular-nums; color: var(--head); white-space: nowrap; }
.rp-r b.big { font-size: 15px; }
.rp-r b.neg { color: var(--bad); }
.rp-w { display: flex; gap: 7px; align-items: flex-start; margin-top: 8px; font-size: 12px; color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 4px; padding: 6px 8px; }
.rp-w .ic { margin-top: 1px; }
.setgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; background: var(--surface-2); }
.set-l b { display: block; font-size: 12.5px; color: var(--head); }
.set-l small { display: block; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.set-l small.live { color: var(--good); }
.set-l small.cost { color: var(--bad); }
.set-c { display: flex; align-items: center; gap: 6px; flex: none; }
.set-c .in.mini { width: 72px; }
.exit-grid, .inv-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); gap: 16px; align-items: start; }
.exit-l { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* ---- overview ---- */
.ov-grid { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 12px; align-items: start; }
.nsl { list-style: none; margin: 0; padding: 0; }
.ns { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-top: 1px solid var(--line-2); font-size: 12.5px; }
.ns:first-child { border-top: 0; }
.ns > .ic { color: var(--dim); }
.ns.warn > .ic { color: var(--warn); }
.ns span { flex: 1; min-width: 0; }
.ns .btn { flex: none; }
.ns .btn .ic { width: 12px; height: 12px; }
.ns-ok { display: flex; gap: 8px; align-items: center; color: var(--good); font-size: 12.5px; font-weight: 600; }
.chart { width: 100%; height: auto; display: block; }
.ch-g { stroke: var(--line); stroke-width: 1; }
.ch-g.zero { stroke: var(--line-strong); }
.ch-t { fill: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; font-family: inherit; }
.ch-t.ex { fill: var(--head); font-weight: 700; }
rect.ch-noi { fill: var(--navy-3); }
rect.ch-noi.dimd { opacity: .35; }
rect.ch-cf { fill: var(--up); }
rect.ch-neg { fill: var(--bad); }
.ch-ds { fill: none; stroke: var(--warn); stroke-width: 2; stroke-linecap: round; }
.ch-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11.5px; color: var(--ink-2); margin-top: 6px; }
.ch-leg span { display: inline-flex; align-items: center; gap: 6px; }
.ch-leg i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.ch-leg i.ch-noi { background: var(--navy-3); }
.ch-leg i.ch-cf { background: var(--up); }
.ch-leg i.ch-ds-i { height: 0; border-top: 2px solid var(--warn); border-radius: 0; width: 14px; }

/* ---- deliverables ---- */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.dl { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 12px; box-shadow: var(--shadow); }
.dl-t { flex: none; }
.dl-thumb { width: 92px; height: 115px; display: block; }
.dl-thumb .pg { fill: var(--surface-2); stroke: var(--line-strong); }
.dl-thumb .hd { fill: var(--navy-3); }
.dl-thumb .ln { fill: var(--line-strong); }
.dl-thumb .ph { fill: var(--surface-3); }
.dl-thumb .bx { fill: var(--line); }
.dl-thumb .gr { stroke: var(--line-strong); fill: none; }
.dl-b { min-width: 0; display: flex; flex-direction: column; }
.dl-b h3 { margin: 0 0 4px; font-size: 14px; color: var(--head); }
.dl-b p { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.dl-m { font-size: 11.5px; color: var(--muted); margin: 6px 0 8px; }
.dl-b .btnrow { margin-top: auto; }

/* ---- deals pipeline ---- */
.pl-bar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.pl-st { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 6px; padding: 8px 10px; cursor: pointer; font-family: inherit; color: var(--ink); }
.pl-st:hover { border-color: var(--line-strong); }
.pl-st.on { border-color: var(--head); box-shadow: inset 0 0 0 1px var(--head); }
.pl-st small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; color: var(--muted); }
.pl-st b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; color: var(--head); }
.pl-st em { font-style: normal; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chipb { border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); border-radius: 4px; padding: 4px 9px; font: 600 12px/1.4 inherit; font-family: inherit; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.chipb b { font: 800 9.5px/1 ui-monospace, Consolas, monospace; letter-spacing: .6px; color: var(--muted); }
.chipb em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.chipb.on { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.chipb.on b, .chipb.on em { color: #CBD5E1; }
.pl-t td { vertical-align: middle; }
.pl-name { border: 0; background: none; padding: 0; color: var(--head); font: 600 13px/1.3 inherit; font-family: inherit; cursor: pointer; text-align: left; }
.pl-name:hover { text-decoration: underline; }
.pl-t tr.cur td { background: var(--surface-2); }
.pl-t .tag { margin-left: 8px; }
.pl-acts { white-space: nowrap; }
.pl-acts .btn { margin-left: 4px; }
.pl-empty { text-align: center !important; color: var(--muted); padding: 22px !important; }

/* ---- new deal wizard ---- */
#modal.wide .mbox.wizbox { max-width: 780px; }
.wiz-head { margin: -2px 0 14px; padding-right: 26px; }
.wiz-k { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.wiz-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 8px 0 8px; }
.wiz-steps li { flex: 1; display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); min-width: 0; }
.wiz-steps li i { width: 20px; height: 20px; flex: none; border: 1px solid var(--line-strong); border-radius: 4px; font-style: normal; font-weight: 700; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.wiz-steps li i .ic { width: 12px; height: 12px; }
.wiz-steps li.on { color: var(--head); font-weight: 700; }
.wiz-steps li.on i { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.wiz-steps li.done i { background: var(--good-bg); border-color: var(--good-line); color: var(--good); }
.wiz-bar { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.wiz-bar i { display: block; height: 100%; background: var(--navy-3); transition: width .25s ease-out; }
.wiz-body { animation: wizIn .2s ease-out both; }
@keyframes wizIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.wiz-body h3:focus { outline: none; }
.wiz-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.wiz-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; border: 1px solid var(--line); background: var(--card); border-radius: 6px; padding: 12px; text-align: left; cursor: pointer; font-family: inherit; color: var(--ink); }
.wiz-opt .ic { color: var(--muted); margin-bottom: 2px; }
.wiz-opt b { font-size: 13px; color: var(--head); }
.wiz-opt small { font-size: 11.5px; color: var(--muted); }
.wiz-opt:hover { border-color: var(--line-strong); }
.wiz-opt.on { border-color: var(--navy-3); box-shadow: inset 0 0 0 1px var(--navy-3); background: var(--surface-2); }
.wiz-opt.on .ic { color: var(--head); }
.wiz-opt:focus-visible, .sector-card:focus-visible, .pl-st:focus-visible, .chipb:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wiz-panel { margin-top: 12px; }
.wiz-drop .ic { width: 20px; height: 20px; color: var(--muted); }
.wiz-seg { margin-bottom: 4px; }
.wiz-blank { border: 1px dashed var(--line-strong); border-radius: 4px; padding: 12px; margin: 0; }
.wiz-nav { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; align-items: center; }
.wiz-nav .grow { flex: 1; }
.wiz-found { display: flex; gap: 7px; align-items: center; color: var(--good); font-size: 12.5px; font-weight: 600; background: var(--good-bg); border: 1px solid var(--good-line); border-radius: 4px; padding: 6px 10px; margin: 6px 0 8px; }
.sector-grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sector-card.picked { border-color: var(--navy-3); box-shadow: inset 0 0 0 1px var(--navy-3); background: var(--surface-2); }
.sector-card b .ic { width: 13px; height: 13px; color: var(--muted); }
.sector-card b .tag { vertical-align: 1px; }
.wiz-rev { max-height: 44vh; overflow: auto; border: 1px solid var(--line); border-radius: 4px; margin-top: 8px; }
.rev-t { width: 100%; }
.rev-t th { position: sticky; top: 0; }
.rev-t td.v { font-weight: 600; font-variant-numeric: tabular-nums; }
.rev-t td.src { color: var(--muted); font-size: 11.5px; }
.rev-t td label { cursor: pointer; }
.rev-t tr { animation: rowIn .25s ease-out both; }
@keyframes rowIn { from { opacity: 0; } to { opacity: 1; } }
.wiz-flag, .wiz-nf { border-radius: 4px; padding: 8px 12px; margin-top: 10px; font-size: 12.5px; }
.wiz-flag { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn); }
.wiz-nf { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.wiz-flag b, .wiz-nf b { display: flex; align-items: center; gap: 6px; }
.wiz-flag ul, .wiz-nf ul { margin: 4px 0 0 18px; padding: 0; }
.wiz-status { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); }
#wizClock { color: var(--muted); font-variant-numeric: tabular-nums; }
.skel { border: 1px solid var(--line); border-radius: 4px; margin: 10px 0; }
.sk-r { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.sk-r:first-child { border-top: 0; }
.sk-r span { width: 140px; flex: none; }
.sk-r i { height: 8px; border-radius: 2px; background: var(--surface-3); animation: skel 1.1s ease-in-out infinite alternate; }
@keyframes skel { from { opacity: .4; } to { opacity: 1; } }
.wiz-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 10px 0; }

/* ---- motion: headline numbers ---- */
.kpi b { transition: color .45s ease-out; }
.kpi.tick-up b { color: #34D399; }
.kpi.tick-down b { color: #F87171; }

/* ---- responsive ---- */
@media (max-width: 1180px) {
  .sec-grid { grid-template-columns: minmax(0, 1fr); }
  .sec-side { position: static; max-height: none; order: -1; }
  .rp { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); column-gap: 18px; }
  .rp-h, .rp-w { grid-column: 1 / -1; }
  .ov-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) { .exit-grid, .inv-grid { grid-template-columns: minmax(0, 1fr); } .pl-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .rail { position: fixed; left: 0; top: 0; bottom: 0; height: 100vh; width: 264px; flex: none; z-index: 40; transform: translateX(-100%); transition: transform .2s ease-out; }
  body.nav-open .rail { transform: none; }
  body.nav-open .rail-bg { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(2, 6, 23, .45); }
  body.rail-min .rail { width: 264px; padding-left: 10px; padding-right: 10px; }
  body.rail-min .rail .brand-x, body.rail-min .rail .nv span, body.rail-min .rail .side-h, body.rail-min .rail .rail-deal span, body.rail-min .rail .acct { display: revert; }
  .rail-tg { display: none; }
  .nav-btn { display: inline-flex; }
  .sec-tabs { display: flex; }
  .tb-scen .btn { display: none; }
  .wiz-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sector-grid.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wiz-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wiz-steps li { font-size: 0; gap: 0; }
  .wiz-steps li.on { font-size: 11.5px; gap: 7px; }
  .pl-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl { flex-direction: column; }
  .sec-head h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .wiz-body, .rev-t tr, .sk-r i { animation: none; }
  .wiz-bar i, .rail, .kpi b { transition: none; }
}
@media print {
  .rail, .rail-bg, .sec-tabs, .sec-side, .sec-tools, .basic-note, #c-next, .nav-btn, .pane[data-sec="deliver"] { display: none !important; }
  .pane.off { display: flex !important; }
  body.basic .adv { display: revert !important; }
  .sec-grid { grid-template-columns: minmax(0, 1fr); }
  .sec-head { break-after: avoid; }
  .ov-grid { grid-template-columns: minmax(0, 1fr); }
}


/* workspace layout fixes */
.wiz-nav .btn, .dl-b .btnrow .btn, .sec-tools .btn { flex: 0 0 auto; }
.pl-t td.l { white-space: normal; min-width: 220px; }
.pl-acts { white-space: normal !important; min-width: 236px; }
.pl-acts .btn { margin: 2px 0 2px 4px; }
.rev-t td.v, .rev-t td.src { white-space: normal; }
.rev-t td.v { min-width: 180px; }
.rev-t td.src { min-width: 120px; }

/* ================= Offering Memorandum builder ================= */
.om-bar { margin-bottom: 4px; }
.om-wrap { display: grid; grid-template-columns: minmax(360px, 440px) minmax(0, 1fr); gap: 14px; align-items: start; }
.om-wrap.ro { grid-template-columns: minmax(0, 1fr); }
.om-edit { position: sticky; top: 64px; max-height: calc(100vh - 80px); overflow-y: auto; }
.om-tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--line); padding: 6px 8px 0; position: sticky; top: 0; background: var(--card); z-index: 1; }
.om-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 7px 9px; font: 600 12px/1.2 inherit; font-family: inherit; color: var(--muted); cursor: pointer; }
.om-tabs button.on { color: var(--head); border-bottom-color: var(--head); }
.om-tabs button em { font-style: normal; background: var(--warn); color: #fff; border-radius: 3px; padding: 0 4px; font-size: 10px; }
.om-pane { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.om-pane .fld { margin: 0; }
.om-f { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 0; }
.om-f.wide { grid-template-columns: 1fr; }
.om-color { width: 64px; height: 30px; padding: 2px; cursor: pointer; }
.om-ta { width: 100%; resize: vertical; font: 13px/1.5 inherit; font-family: inherit; text-align: left; }
.om-hl-r { display: flex; gap: 6px; align-items: center; }
.om-hl-r .in { flex: 1; text-align: left; }
.om-pl { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 4px; }
.om-pl li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-top: 1px solid var(--line-2); font-size: 12.5px; background: var(--card); }
.om-pl li:first-child { border-top: 0; }
.om-pl li.off { opacity: .55; }
.om-pl li.dragging { opacity: .4; }
.om-pl label { flex: 1; display: flex; gap: 6px; align-items: center; cursor: pointer; }
.om-pl .msel { width: auto; }
.om-pl-a { display: flex; gap: 4px; }
.om-grip { cursor: grab; color: var(--dim); font-weight: 800; letter-spacing: -1px; user-select: none; }
.om-custom { border: 1px dashed var(--line-strong); border-radius: 4px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.om-fig td .ic { width: 12px; height: 12px; color: var(--muted); }
.om-flags { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.om-flags li { padding: 5px 0; border-top: 1px solid var(--line-2); }
.om-comp td .in.txt { width: 120px; }
.om-paste summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.om-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.om-slot { border: 1px solid var(--line); border-radius: 4px; padding: 8px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.om-slot img, .om-slot .ph-empty { width: 100%; height: 86px; object-fit: cover; border-radius: 3px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.om-rev-cta { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.om-rev-cta p { margin: 0; max-width: 680px; }
.om-tpls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.om-tpl { display: flex; flex-direction: column; gap: 4px; text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 6px; padding: 10px; cursor: pointer; font-family: inherit; color: var(--ink); }
.om-tpl:hover { border-color: var(--line-strong); }
.om-tpl.on { border-color: var(--navy-3); box-shadow: inset 0 0 0 1px var(--navy-3); background: var(--surface-2); }
.om-tpl b { font-size: 13px; color: var(--head); }
.om-tpl small { font-size: 11.5px; color: var(--muted); }
.om-tpl .om-tpl-m { color: var(--dim); }
.om-tpl-thumb { position: relative; display: block; height: 78px; border-radius: 3px; overflow: hidden; background: #FFFFFF; border: 1px solid var(--line); margin-bottom: 4px; }
.om-tpl-thumb i, .om-tpl-thumb b, .om-tpl-thumb em { position: absolute; display: block; }
.om-tpl-thumb i { left: 0; right: 0; top: 0; height: 60%; background: linear-gradient(to bottom, #8A9BB0, #FFFFFF); }
.om-tpl-thumb b { left: 12%; top: 64%; width: 56%; height: 6px; background: var(--om-accent); border-radius: 1px; }
.om-tpl-thumb em { left: 12%; top: 78%; width: 16%; height: 2px; background: var(--om-accent2); }
.om-tpl-thumb.cv-split i { bottom: 0; width: 50%; height: auto; right: auto; background: linear-gradient(to right, #8A9BB0, #FFFFFF); }
.om-tpl-thumb.cv-split b { left: 54%; top: 40%; width: 36%; }
.om-tpl-thumb.cv-split em { left: 54%; top: 54%; }
.om-tpl-thumb.cv-minimal { background: var(--om-accent); }
.om-tpl-thumb.cv-minimal i { height: 100%; background: linear-gradient(to bottom, rgba(255, 255, 255, .2), transparent 70%); }
.om-tpl-thumb.cv-minimal b { top: 50%; background: rgba(255, 255, 255, .88); }
.om-tpl-thumb.cv-minimal em { top: 64%; }
/* Design tab */
.om-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.om-th { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; border: 1px solid var(--line); border-radius: 5px; padding: 7px; background: var(--card); cursor: pointer; font-family: inherit; text-align: left; }
.om-th:hover { border-color: var(--line-strong); }
.om-th.on { border-color: var(--navy-3); box-shadow: inset 0 0 0 1px var(--navy-3); }
.om-th span { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(15, 23, 42, .15); }
.om-th small { width: 100%; font-size: 11px; color: var(--muted); margin-top: 3px; }
.om-mini { display: flex; align-items: center; gap: 10px; }
.om-mini img, .om-mini-e { width: 64px; height: 48px; object-fit: contain; border: 1px solid var(--line); border-radius: 4px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--dim); flex: none; }
.om-mini img.round, .om-mini-e.round { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.om-chk { display: flex; gap: 8px; align-items: center; font-size: 12.5px; cursor: pointer; }
.om-prev { background: var(--surface-3); border-radius: 6px; padding: 14px; overflow: auto; max-height: calc(100vh - 80px); position: sticky; top: 64px; }
.om-wrap.ro .om-prev { max-height: none; position: static; }
.om-prev .om-doc { zoom: .62; }
.om-wrap.ro .om-prev .om-doc { zoom: .9; }
@media (min-width: 1700px) { .om-prev .om-doc { zoom: .78; } }
@media (max-width: 1100px) {
  .om-wrap { grid-template-columns: minmax(0, 1fr); }
  .om-edit, .om-prev { position: static; max-height: none; }
  .om-tpls { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) { .om-prev .om-doc { zoom: .42; } }

/* ---- the printed document (always light, Letter size) ---- */
.om-doc {
  --om-h: 'Source Serif 4', Georgia, serif; --om-b: Inter, system-ui, sans-serif;
  --om-fs: 10pt; --om-gap: 11px; --om-mx: .7in; --om-mt: .65in; --om-mb: .9in; --om-phk: 1; --om-lz: .55in;
  --om-ink: #1E293B; --om-mute: #64748B;
  --om-line: color-mix(in srgb, var(--om-accent) 13%, #E5E7EB);
  --om-tint: color-mix(in srgb, var(--om-accent) 5%, var(--om-paper));
  --fd: 42%;
  counter-reset: omp; color: #0F172A; font-family: var(--om-b);
}
.om-doc.st-modern { --om-h: 'Inter Tight', Inter, sans-serif; }
.om-doc.st-bold { --om-h: 'Archivo', Inter, sans-serif; }
.om-doc.mg-narrow { --om-mx: .5in; --om-mt: .5in; --om-mb: .75in; }
.om-doc.mg-wide { --om-mx: .95in; --om-mt: .85in; --om-mb: 1.05in; }
.om-doc.gp-tight { --om-gap: 6px; }
.om-doc.gp-open { --om-gap: 18px; }
.om-doc.fs-s { --om-fs: 9pt; }
.om-doc.fs-l { --om-fs: 11pt; }
.om-doc.ph-s { --om-phk: .8; }
.om-doc.ph-l { --om-phk: 1.25; }
.om-doc.lz-s { --om-lz: .38in; }
.om-doc.lz-l { --om-lz: .8in; }
.om-doc { --fd: 28%; }
.om-doc.fd-subtle { --fd: 55%; }
.om-doc.fd-strong { --fd: 0%; }
.om-page { counter-increment: omp; position: relative; width: 8.5in; height: 11in; overflow: hidden; background: var(--om-paper); margin: 0 auto 20px; padding: var(--om-mt) var(--om-mx) var(--om-mb); display: flex; flex-direction: column; box-shadow: 0 2px 12px rgba(15, 23, 42, .16); color-scheme: light; }
.om-doc.land .om-page { width: 11in; height: 8.5in; }
/* faded decoration, behind the content */
.om-wash { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 34% at 100% 0%, color-mix(in srgb, var(--om-accent2) 14%, transparent), transparent 72%),
              radial-gradient(ellipse 50% 28% at 0% 100%, color-mix(in srgb, var(--om-accent) 6%, transparent), transparent 70%); }
.om-ghost { position: absolute; z-index: 0; top: calc(var(--om-mt) - 30pt); right: calc(var(--om-mx) - 8pt); font: 600 118pt/1 var(--om-h); letter-spacing: -4px; color: color-mix(in srgb, var(--om-accent) 6%, transparent); pointer-events: none; }
.om-wm { position: absolute; z-index: 0; pointer-events: none; object-fit: contain; filter: grayscale(1); opacity: .05; }
.om-doc.wo-light .om-wm { opacity: .08; }
.om-doc.wo-medium .om-wm { opacity: .12; }
.om-wm.wm-center { left: 50%; top: 54%; width: 4.4in; height: 4.4in; transform: translate(-50%, -50%); }
.om-wm.wm-br { right: var(--om-mx); bottom: calc(var(--om-mb) + .1in); width: 1.5in; height: 1.1in; object-position: right bottom; }
/* page header */
.om-head { position: relative; z-index: 1; margin-bottom: calc(var(--om-gap) * 1.7); }
.om-k { display: flex; align-items: center; gap: 10px; font-size: 7.8pt; letter-spacing: 2.4px; text-transform: uppercase; font-weight: 600; color: var(--om-mute); }
.om-no { display: inline-flex; align-items: center; gap: 10px; color: var(--om-accent); font-weight: 700; letter-spacing: 1px; }
.om-no::after { content: ''; width: 22px; height: 1px; background: var(--om-accent2); }
.om-head h2 { font-family: var(--om-h); font-size: 25pt; line-height: 1.12; margin: 8px 0 0; color: var(--om-accent); font-weight: 600; letter-spacing: -.3px; }
.om-head h2::after { content: ''; display: block; width: .55in; height: 2px; background: var(--om-accent2); margin-top: 12px; }
.om-head h2 small { font-family: var(--om-b); font-size: 10pt; color: var(--om-mute); font-weight: 500; margin-left: 8px; letter-spacing: 0; }
/* page body: everything inside scales with --om-s (set by the page-fit step) */
.om-body { --s: var(--om-s, 1); position: relative; z-index: 1; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: calc(var(--om-gap) * var(--s)); }
.om-body > .om-fine:last-child { margin-top: auto; }
.om-body h3 { font-family: var(--om-h); font-size: calc(var(--om-fs) * 1.3 * var(--s)); margin: calc(var(--om-gap) * .4 * var(--s)) 0 0; color: var(--om-accent); font-weight: 600; }
.om-text p { font-size: calc(var(--om-fs) * var(--s)); line-height: 1.62; color: var(--om-ink); margin: 0 0 calc(var(--om-gap) * .85 * var(--s)); }
.om-text p:last-child { margin-bottom: 0; }
.om-body h3 .om-u { font-family: var(--om-b); font-size: .62em; font-weight: 500; color: var(--om-mute); margin-left: 6px; }
.om-hl { list-style: none; margin: 0; padding: 0; font-size: calc(var(--om-fs) * var(--s)); line-height: 1.5; color: var(--om-ink); }
.om-hl li { position: relative; padding: calc(6px * var(--s)) 0 calc(6px * var(--s)) 20px; border-bottom: 1px solid var(--om-line); }
.om-hl li:last-child { border-bottom: 0; }
.om-hl li::before { content: ''; position: absolute; left: 1px; top: calc(6px * var(--s) + .5em - 3px); width: 6px; height: 6px; border: 1.5px solid var(--om-accent2); transform: rotate(45deg); }
.om-cols { display: grid; grid-template-columns: 1.45fr 1fr; gap: .32in; align-items: start; }
.om-cols > div { display: flex; flex-direction: column; gap: calc(var(--om-gap) * var(--s)); min-width: 0; }
.om-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(1.45in, 1fr)); gap: calc(8px * var(--s)); }
.om-side .om-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.om-side .om-tile b { font-size: calc(var(--om-fs) * 1.25 * var(--s)); }
.om-tile { min-width: 0; background: var(--om-tint); border-left: 2px solid var(--om-accent2); padding: calc(9px * var(--s)) calc(11px * var(--s)); }
.om-tile b { white-space: nowrap; overflow: hidden; }
/* a photo that grows into the space left on a light page; hidden by the page-fit step when the gap is small */
.om-fillph { flex: 1 1 0; min-height: 0; position: relative; overflow: hidden; border-radius: 2px; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24%); mask-image: linear-gradient(to bottom, transparent, #000 24%); }
.om-fillph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.om-tile small { display: block; font-size: calc(var(--om-fs) * .7 * var(--s)); letter-spacing: 1.3px; text-transform: uppercase; color: var(--om-mute); font-weight: 600; }
.om-tile b { display: block; font-family: var(--om-h); font-size: calc(var(--om-fs) * 1.5 * var(--s)); font-weight: 600; color: var(--om-accent); font-variant-numeric: tabular-nums lining-nums; margin-top: 3px; }
/* tables */
.om-t { width: 100%; border-collapse: collapse; font-size: calc(var(--om-fs) * .88 * var(--s)); font-variant-numeric: tabular-nums; }
.om-t th { background: none; color: var(--om-accent); text-align: right; font-weight: 700; padding: calc(6px * var(--s)) 8px; font-size: calc(var(--om-fs) * .7 * var(--s)); letter-spacing: 1.1px; text-transform: uppercase; border-bottom: 1.5px solid var(--om-accent); }
.om-t td { text-align: right; padding: calc(5px * var(--s)) 8px; border-bottom: 1px solid var(--om-line); color: var(--om-ink); }
.om-t tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--om-accent) 2.5%, transparent); }
.om-t .l { text-align: left; }
.om-t tr.sub td { font-weight: 700; border-top: 1px solid color-mix(in srgb, var(--om-accent) 35%, transparent); }
.om-t tr.tot td { font-weight: 700; color: var(--om-accent); background: color-mix(in srgb, var(--om-accent) 7%, var(--om-paper)); border-top: 1.5px solid var(--om-accent); border-bottom: 0; }
.om-t i { color: var(--om-mute); font-style: normal; }
.om-t.om-10 { font-size: calc(var(--om-fs) * .76 * var(--s)); }
.om-t.om-10 td, .om-t.om-10 th { padding: calc(4px * var(--s)) 4px; }
.om-specs tbody tr:nth-child(even) td { background: none; }
.om-specs td { font-size: calc(var(--om-fs) * .9 * var(--s)); }
.om-specs td:first-child { color: var(--om-mute); white-space: nowrap; width: 1%; padding-right: 14px; }
.om-specs td:last-child { text-align: left; font-weight: 600; }
/* photos */
.om-grid { display: grid; gap: calc(8px * var(--s)); }
.om-grid.n1 { grid-template-columns: 1fr; } .om-grid.n2 { grid-template-columns: 1fr 1fr; } .om-grid.n3 { grid-template-columns: 1fr 1fr 1fr; } .om-grid.n4 { grid-template-columns: 1fr 1fr; }
.om-ph { width: 100%; height: calc(2.1in * var(--om-phk) * var(--s)); object-fit: cover; display: block; border-radius: 2px; }
.om-hero .om-ph { height: calc(3.4in * var(--om-phk) * var(--s)); }
.om-map { width: 100%; height: calc(4.2in * var(--om-phk) * var(--s)); border: 0; object-fit: cover; display: block; border-radius: 2px; }
.om-fine { font-size: 7.4pt; color: var(--om-mute); margin: 4px 0 0; line-height: 1.45; }
.om-empty { color: #94A3B8; font-size: 10pt; border: 1px dashed #CBD5E1; padding: 20px; text-align: center; }
/* footer and back-page logo */
.om-foot { position: absolute; z-index: 1; left: var(--om-mx); right: var(--om-mx); bottom: calc(var(--om-mb) * .4); display: flex; justify-content: space-between; gap: 12px; font-size: 7pt; letter-spacing: .6px; color: #94A3B8; border-top: 1px solid var(--om-line); padding-top: 7px; }
.om-pn { color: var(--om-accent); font-weight: 700; }
.om-pn::after { content: counter(omp, decimal-leading-zero); }
.om-bl { position: absolute; z-index: 2; max-height: var(--om-lz); max-width: 2.2in; object-fit: contain; }
.om-bl.bl-tr { top: calc(var(--om-mt) * .5); right: var(--om-mx); }
.om-bl.bl-br { bottom: calc(var(--om-mb) * .4 + 20px); right: var(--om-mx); }
.om-bl.bl-bottom { bottom: calc(var(--om-mb) * .4 + 20px); left: 50%; transform: translateX(-50%); }
/* closing / contact page */
.cl-media { position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 3.4in; overflow: hidden; }
.cl-media { -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 96%); mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 96%); }
.cl-media .cl-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-media .cv-fade { display: none; }
.om-body.cl-body { justify-content: center; align-items: center; text-align: center; gap: 14px; }
.cl-logo { max-height: calc(var(--om-lz) * 1.3); max-width: 2.6in; object-fit: contain; margin-bottom: 6px; }
.om-close h2 { font-family: var(--om-h); font-size: 26pt; line-height: 1.1; margin: 0; color: var(--om-accent); font-weight: 600; }
.om-close .cv-rule { display: block; width: .6in; height: 2px; background: var(--om-accent2); }
.cl-card { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 10px; }
.om-headshot { width: 1.9in; height: 1.9in; border-radius: 50%; object-fit: cover; border: 5px solid var(--om-paper); box-shadow: 0 0 0 1.5px var(--om-accent2), 0 10px 26px rgba(15, 23, 42, .14); }
.cl-card h3 { font-family: var(--om-h); font-size: 19pt; color: var(--om-accent); margin: 0 0 8px; font-weight: 600; }
.cl-card p { font-size: 10.5pt; line-height: 1.65; margin: 0 0 8px; color: var(--om-ink); }
.cl-card p.cl-c { color: var(--om-accent); font-weight: 600; }
.om-body.cl-body > .om-fine:last-child { max-width: 5in; margin-top: 22px; }
/* cover */
.om-cover { padding: 0; }
.om-cover > * { position: absolute; }
.cv-media { left: 0; right: 0; top: 0; height: 62%; overflow: hidden; }
.cv-img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* the fade is a transparency mask, so the photo melts into whatever is behind it (page tint, decoration) with no edge */
.cv-media { --mk: linear-gradient(to bottom, #000 var(--fd), rgba(0, 0, 0, .3) 72%, transparent 92%); -webkit-mask-image: var(--mk); mask-image: var(--mk); }
.om-doc.fd-none .cv-media { -webkit-mask-image: none; mask-image: none; }
.cv-media .cv-fade { display: none; }
.om-doc.fd-strong .om-cover .cv-img { opacity: .82; }
.cv-ring { border-radius: 50%; border: 1px solid color-mix(in srgb, var(--om-accent2) 38%, transparent); pointer-events: none; }
.cv-ring.r1 { width: 5.4in; height: 5.4in; right: -2.3in; bottom: -2.5in; }
.cv-ring.r2 { width: 3.7in; height: 3.7in; right: -1.45in; bottom: -1.65in; border-color: color-mix(in srgb, var(--om-accent) 11%, transparent); }
.cv-lg { z-index: 2; top: .45in; padding: 9px 13px; border-radius: 3px; background: color-mix(in srgb, var(--om-paper) 92%, transparent); box-shadow: 0 1px 8px rgba(15, 23, 42, .12); }
.cv-lg.lg-tl { left: .55in; }
.cv-lg.lg-tr { right: .55in; }
.cv-logo { display: block; max-height: var(--om-lz); max-width: 2.2in; object-fit: contain; }
.cv-panel { z-index: 1; left: .8in; right: .8in; top: 55%; display: flex; flex-direction: column; gap: 12px; color: var(--om-accent); }
.no-img .cv-panel { top: 2.4in; }
.cv-k { font-size: 8.5pt; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; color: var(--om-mute); }
.om-cover h1 { font-family: var(--om-h); font-size: 38pt; line-height: 1.04; margin: 0; font-weight: 600; letter-spacing: -.5px; }
.cv-rule { display: block; width: .7in; height: 2px; background: var(--om-accent2); }
.cv-sub { font-size: 10.5pt; color: var(--om-mute); letter-spacing: .3px; }
.cv-stats { display: flex; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--om-line); }
.cv-stats div { flex: 1; min-width: 0; padding: 0 14px; border-left: 1px solid var(--om-line); }
.cv-stats div:first-child { padding-left: 0; border-left: 0; }
.cv-stats small { display: block; font-size: 7pt; letter-spacing: 1.4px; text-transform: uppercase; color: var(--om-mute); font-weight: 600; }
.cv-stats b { display: block; font-family: var(--om-h); font-size: 15pt; font-weight: 600; margin-top: 4px; color: var(--om-accent); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.cv-foot { z-index: 1; left: .8in; right: .8in; bottom: .55in; display: flex; align-items: center; gap: 14px; padding-top: 14px; border-top: 1px solid var(--om-line); font-size: 8.5pt; color: var(--om-ink); }
.cv-who { display: flex; flex-direction: column; gap: 2px; }
.cv-who b { font-size: 10.5pt; color: var(--om-accent); }
.cv-who span { color: var(--om-mute); }
.cv-sp { margin-left: auto; }
.cv-hs { width: .8in; height: .8in; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--om-paper); box-shadow: 0 0 0 1.5px var(--om-accent2); }
/* split cover: photo on the left fading into the page */
.cv-split .cv-media { right: auto; bottom: 0; width: 50%; height: 100%; }
.cv-split .cv-media { --mk: linear-gradient(to right, #000 var(--fd), rgba(0, 0, 0, .3) 72%, transparent 92%); }
.cv-split .cv-panel { left: 46%; right: .65in; top: 2.2in; }
.cv-split .cv-foot { left: 46%; right: .65in; flex-wrap: wrap; }
.cv-split h1 { font-size: 30pt; }
.cv-split .cv-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.cv-split .cv-stats div { padding: 0; border-left: 0; }
.cv-split.no-img .cv-panel, .cv-split.no-img .cv-foot { left: .8in; right: .8in; }
/* minimal cover: solid primary color over a faded photo */
.om-cover.cv-minimal { background: var(--om-accent); }
.cv-minimal .cv-media, .om-doc.fd-none .cv-minimal .cv-media { height: 100%; -webkit-mask-image: none; mask-image: none; }
.cv-minimal .cv-foot .cv-logo { background: #FFFFFF; padding: 6px 10px; border-radius: 3px; box-sizing: content-box; }
.cv-minimal .cv-img { opacity: .3; filter: grayscale(.25); }
.om-doc.fd-subtle .cv-minimal .cv-img { opacity: .45; }
.om-doc.fd-strong .cv-minimal .cv-img { opacity: .16; }
.om-doc.fd-none .cv-minimal .cv-img { opacity: .6; }
.cv-minimal .cv-media .cv-fade, .om-doc.fd-none .cv-minimal .cv-media .cv-fade { display: block; position: absolute; inset: 0; background: linear-gradient(to top, var(--om-accent) 18%, color-mix(in srgb, var(--om-accent) 55%, transparent) 62%, color-mix(in srgb, var(--om-accent) 20%, transparent)); }
.cv-minimal .cv-panel { top: 42%; color: var(--om-on); }
.cv-minimal .cv-k, .cv-minimal .cv-sub, .cv-minimal .cv-stats small, .cv-minimal .cv-who span { color: color-mix(in srgb, var(--om-on) 72%, transparent); }
.cv-minimal .cv-stats b, .cv-minimal .cv-who b, .cv-minimal .cv-foot { color: var(--om-on); }
.cv-minimal .cv-stats, .cv-minimal .cv-stats div, .cv-minimal .cv-foot { border-color: color-mix(in srgb, var(--om-on) 22%, transparent); }
.cv-minimal .cv-ring.r1 { border-color: color-mix(in srgb, var(--om-on) 16%, transparent); }
.cv-minimal .cv-ring.r2 { border-color: color-mix(in srgb, var(--om-accent2) 40%, transparent); }
.cv-minimal .cv-hs { border-color: var(--om-accent); }
.cv-minimal .cv-lg { background: color-mix(in srgb, #FFFFFF 94%, transparent); }
@media print {
  @page om { size: letter portrait; margin: 0; }
  @page omland { size: letter landscape; margin: 0; }
  body.print-om .rail, body.print-om .rail-bg, body.print-om .hdr, body.print-om .om-bar, body.print-om .om-edit, body.print-om .pfoot, body.print-om .cookie, body.print-om #modal, body.print-om #mapLayer, body.print-om .screen-only { display: none !important; }
  body.print-om .content { padding: 0 !important; }
  body.print-om .om-wrap { display: block; }
  body.print-om .om-prev { background: none; padding: 0; overflow: visible; max-height: none; position: static; }
  body.print-om .om-prev .om-doc { zoom: 1; }
  body.print-om .om-page { page: om; margin: 0; box-shadow: none; break-after: page; }
  body.print-om.om-land .om-page { page: omland; }
}

.om-pane .btnrow .btn { flex: 0 0 auto; }

/* rent roll tie-out check in the import review */
.rr-check { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin: 10px 0; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.rr-check b { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.rr-check span { color: var(--muted); }
.rr-check ul { margin: 4px 0 0; padding-left: 18px; }
.rr-check.ok { background: var(--good-bg); border-color: var(--good-line); }
.rr-check.ok b { color: var(--good); }
.rr-check.bad { background: var(--warn-bg); border-color: var(--warn-line); }
.rr-check.bad b, .rr-check.bad li { color: var(--warn); }

/* rent roll: contract rent beside the Year 1 projection, month-to-month tag, reconciliation */
.rr-con, .rr-mtm { display: block; font-size: 10.5px; line-height: 1.2; color: var(--warn); font-weight: 600; margin-top: 2px; white-space: nowrap; cursor: help; }
.rr-mtm { color: var(--muted); cursor: default; }
.rr-recon { margin: 10px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; }
.rr-recon b { color: var(--head); margin-right: 4px; }
.rr-recon .rr-gap { color: var(--ink); border-top: 1px solid var(--line-2); padding-top: 6px; }
.rr-recon ul { margin: 4px 0 4px; padding-left: 18px; }
