/* Sarubbi Management — operations console.
   Layout: fixed deep-teal sidebar + scrolling work area; summary first, detail below;
   tables collapse into labeled cards on phones. */
:root {
  --bg: #F1F4F3; --surface: #FFFFFF; --surface-2: #F6F8F7; --ink: #14282A; --muted: #5A6E6E; --line: #DAE2E0; --line-2: #E8EEEC;
  --side: #0F4C4F; --side-ink: #E7F1EF; --side-muted: #9EC0BC; --side-hover: #145A5D;
  --accent: #0F4C4F; --accent-ink: #FFFFFF; --brass: #9C7A33; --brass-soft: #F4EBD5; --gold: #D9B86F;
  --good: #23784A; --good-soft: #E1F2E7; --warn: #A2650C; --warn-soft: #FCEFD8; --bad: #B03A28; --bad-soft: #F9E2DD; --info: #1E5F8A; --info-soft: #E2EEF7;
  --shadow: 0 1px 2px rgba(16, 48, 50, .06), 0 4px 16px rgba(16, 48, 50, .06);
  --shadow-lg: 0 20px 50px rgba(10, 40, 42, .25);
  --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-ui: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  /* Addresses: classic serif with even, full-height numerals for easy reading */
  --f-address: "Libre Baskerville", Baskerville, "Baskerville Old Face", Georgia, serif;
  --r: 10px; --side-w: 248px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0B1516; --surface: #122021; --surface-2: #172728; --ink: #E3ECEA; --muted: #91A6A4; --line: #24393A; --line-2: #1D3031;
  --side: #0A2F31; --side-ink: #E3EFEC; --side-muted: #86A9A5; --side-hover: #103D40;
  --accent: #3E9A96; --accent-ink: #061314; --brass: #D7B46C; --brass-soft: #2E2816; --gold: #D9B86F;
  --good: #67C08D; --good-soft: #14301F; --warn: #E3AB52; --warn-soft: #34270E; --bad: #EF8572; --bad-soft: #3A1B16; --info: #79B6E0; --info-soft: #12293A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 20px 50px rgba(0, 0, 0, .55); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0B1516; --surface: #122021; --surface-2: #172728; --ink: #E3ECEA; --muted: #91A6A4; --line: #24393A; --line-2: #1D3031;
  --side: #0A2F31; --side-ink: #E3EFEC; --side-muted: #86A9A5; --side-hover: #103D40;
  --accent: #3E9A96; --accent-ink: #061314; --brass: #D7B46C; --brass-soft: #2E2816; --gold: #D9B86F;
  --good: #67C08D; --good-soft: #14301F; --warn: #E3AB52; --warn-soft: #34270E; --bad: #EF8572; --bad-soft: #3A1B16; --info: #79B6E0; --info-soft: #12293A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 20px 50px rgba(0, 0, 0, .55); color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--f-ui); }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h1 { font: 700 clamp(26px, 3.2vw, 34px)/1.1 var(--f-display); letter-spacing: .005em; text-wrap: balance; }
h2 { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.gut { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); }
.boot { padding: 40vh 16px 0; text-align: center; color: var(--muted); }
.muted { color: var(--muted); } .small { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.r { text-align: right; }
.t-bad { color: var(--bad); } .t-warn { color: var(--warn); }
.sub { display: block; font-size: 12px; color: var(--muted); }
.sel { user-select: all; }
.pre { white-space: pre-wrap; }
.eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); font-weight: 700; margin-bottom: 4px; }
.link { color: var(--accent); font-weight: 600; font-size: 12.5px; }
:root:not([data-theme="light"]) .link { color: var(--accent); }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }

/* ---------- layout ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; padding: max(20px, env(safe-area-inset-top, 0px)) 14px max(16px, env(safe-area-inset-bottom, 0px)); padding-left: max(14px, env(safe-area-inset-left, 0px)); z-index: 30; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 22px; }
.brand .mark { width: 36px; height: 36px; border-radius: 9px; background: var(--gold); color: #0F3B3D; display: grid; place-items: center; font: 700 24px/1 var(--f-display); flex: 0 0 auto; }
.brand b { display: block; font: 700 22px/1 var(--f-display); letter-spacing: .01em; }
.brand span { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--side-muted); margin-top: 3px; }
.nav { display: grid; gap: 2px; }
.nav-group { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--side-muted); padding: 16px 10px 6px; font-weight: 600; }
.nav a, .side-foot a, .side-foot button { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px; color: var(--side-ink); font-weight: 500; font-size: 13.5px; width: 100%; }
.nav a svg, .side-foot svg { opacity: .8; flex: 0 0 auto; }
.nav a:hover, .side-foot a:hover, .side-foot button:hover { background: var(--side-hover); }
.nav a[aria-current] { background: rgba(217, 184, 111, .16); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.nav a[aria-current] svg { opacity: 1; color: var(--gold); }
.nav a.soon { color: var(--side-muted); }
.nav a em { margin-left: auto; font-style: normal; font-size: 10px; letter-spacing: .04em; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 1px 7px; color: var(--side-muted); }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 2px; }
.main { flex: 1; min-width: 0; margin-left: var(--side-w); display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: max(12px, env(safe-area-inset-top, 0px)) max(28px, env(safe-area-inset-right, 0px)) 12px 28px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.icon-btn.menu-btn { display: none; }
.gsearch { position: relative; flex: 1; max-width: 560px; }
.gresults { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; max-height: 60vh; overflow-y: auto; }
.gresults a { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 7px; font-weight: 500; }
.gresults a:hover, .gresults a:focus { background: var(--surface-2); }
.gresults a span { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); width: 84px; flex: 0 0 auto; }
.gresults p { padding: 10px; color: var(--muted); }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.who .pill svg { width: 12px; height: 12px; vertical-align: -1px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brass-soft); color: var(--brass); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.demo-banner { background: var(--brass-soft); color: var(--ink); font-size: 12.5px; padding-block: 9px; border-bottom: 1px solid var(--line); }
.content { padding-block: 26px 80px; display: grid; gap: 20px; align-content: start; max-width: 1360px; width: 100%; outline: none; }
.scrim-nav { display: none; }

/* ---------- headings & toolbars ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 + .muted { margin-top: 4px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search-field { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; min-width: 0; flex: 1 1 280px; max-width: 460px; }
.gsearch .search-field { max-width: none; }
.search-field svg { color: var(--muted); flex: 0 0 auto; }
.search-field input { border: 0; background: none; outline: none; padding: 10px 0; width: 100%; font: inherit; color: var(--ink); min-width: 0; }
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.toolbar select, .doc-upload select { min-width: 0; font: inherit; font-size: 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 9px 30px 9px 11px; max-width: 100%; }
.check-inline { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; font-size: 12.5px; width: max-content; }
.back:hover { color: var(--ink); }

/* ---------- buttons, pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 600; font-size: 13px; padding: 9px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; white-space: nowrap; transition: border-color .12s, background .12s; }
.btn:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn.ghost { border-color: transparent; background: none; }
.btn.block { width: 100%; padding: 12px; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger-ghost { color: var(--bad); }
.btn.danger-ghost.armed { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn svg { width: 16px; height: 16px; }
.icon-btn { background: none; border: 0; padding: 6px; border-radius: 8px; cursor: pointer; color: var(--muted); display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn.sm svg { width: 15px; height: 15px; }
.upload-btn { position: relative; overflow: hidden; }
.upload-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.upload-btn:focus-within { outline: 2px solid var(--brass); outline-offset: 2px; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); line-height: 1.4; }
.pill + .pill { margin-left: 4px; }
.pill.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.pill.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 11px; font-weight: 700; text-align: center; color: var(--muted); }
.chip { font: 600 12px var(--f-ui); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-transform: capitalize; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 12px; align-content: start; min-width: 0; box-shadow: var(--shadow); }
.card.quiet { box-shadow: none; background: var(--surface-2); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card-head h2 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card-foot { border-top: 1px solid var(--line-2); padding-top: 12px; }
.lead { font-size: 16px; font-weight: 600; }
.note { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; font-size: 13px; border: 1px solid var(--line-2); }
.note.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.group-h { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); font-weight: 700; margin-top: 6px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.span-2 { grid-column: 1 / -1; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.contacts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.contact { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.contact svg { width: 15px; height: 15px; color: var(--muted); }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); padding: 36px 24px; display: grid; gap: 10px; justify-items: start; }
.empty h3 { font: 700 22px var(--f-display); }
.empty-inline { color: var(--muted); font-size: 13px; display: grid; gap: 10px; justify-items: start; }
.notice { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; color: var(--muted); }

/* ---------- dashboard ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 2px; box-shadow: var(--shadow); min-width: 0; }
a.stat:hover { border-color: var(--brass); }
.stat-l { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.stat-v { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.25; }
.stat-s { font-size: 12px; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.dash-grid .span-2 { grid-column: span 2; }
.dash-grid .tall { grid-row: span 2; }
.dash-grid .span-all { grid-column: 1 / -1; }
.span-all .feed { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); column-gap: 24px; }
.rent-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rent-split > div { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.rent-split .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.rent-split b { grid-column: 1 / -1; font-size: 21px; font-variant-numeric: tabular-nums; }
.rent-split .sub { grid-column: 1 / -1; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--muted); }
.dot.good { background: var(--good); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }
.meter { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line-2); }
.meter i { display: block; height: 100%; }
.meter i.good { background: var(--good); } .meter i.warn { background: var(--warn); } .meter i.bad { background: var(--bad); }
.rows { list-style: none; margin: 0; padding: 0; display: grid; }
.rows li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); min-width: 0; }
.rows li:first-child { border-top: 0; }
.rows .grow, .grow { flex: 1; min-width: 0; }
.rows .grow b { font-weight: 600; overflow-wrap: anywhere; }
.rows a.grow:hover b { color: var(--accent); }
.sev { width: 4px; align-self: stretch; border-radius: 2px; background: var(--line); flex: 0 0 4px; min-height: 30px; }
.sev.good { background: var(--good); } .sev.warn { background: var(--warn); } .sev.bad { background: var(--bad); } .sev.info { background: var(--info); }
.agenda { list-style: none; margin: 0; padding: 0; display: grid; }
.agenda li { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-2); align-items: center; }
.agenda li:first-child { border-top: 0; }
.agenda .when { width: 42px; flex: 0 0 42px; text-align: center; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2); padding: 4px 0; line-height: 1.1; }
.agenda .when b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.agenda .when span { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.agenda li.late .when { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.agenda .kind { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); font-weight: 700; }
.agenda .what { display: block; font-weight: 600; font-size: 13px; overflow-wrap: anywhere; }
.agenda.big .what { font-size: 14px; }
.agenda .sub:hover { color: var(--accent); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feed li { display: flex; gap: 10px; font-size: 13px; }
.feed-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); margin-top: 6px; flex: 0 0 8px; }

/* ---------- tables ---------- */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; box-shadow: var(--shadow); }
.card .table-wrap { box-shadow: none; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table th.r { text-align: right; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr[data-href] { cursor: pointer; }
.table tbody tr[data-href]:hover td { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.table td a b { font-weight: 600; }
.table td a:hover b { color: var(--accent); }
.table.compact td { padding: 9px 12px; }
.prop-cell { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.thumb { width: 44px; height: 44px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); overflow: hidden; flex: 0 0 auto; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- property profile ---------- */
.prop-hero { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.hero-photo { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--surface-2); max-width: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-ph { height: 100%; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.hero-ph svg { width: 34px; height: 34px; }
.hero-main { display: grid; gap: 10px; align-content: start; padding: 4px 0; min-width: 0; }
.hero-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.hero-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; border-block: 1px solid var(--line-2); padding-block: 12px; margin-block: 4px; }
.hero-facts > div > span { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.hero-facts b { font-size: 17px; font-variant-numeric: tabular-nums; }
.hero-facts small { font-size: 12px; color: var(--muted); font-weight: 500; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 14px; font-weight: 600; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--brass); }
.tab-body { display: grid; gap: 18px; }
.danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; box-shadow: none; background: var(--surface-2); }
.renewal { display: grid; gap: 6px; padding: 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2); }
.renewal .k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.renewal ol { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.renewal li { flex: 1; text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 5px 0; background: var(--surface); }
.renewal li b { display: block; font-size: 16px; } .renewal li span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.renewal li.hit { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.renewal li.hit span { color: inherit; }
.month-list { list-style: none; margin: 0; padding: 0; display: grid; }
.month-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 74px; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 13px; }
.month-list li:first-child { border-top: 0; }
.month-list li .btn { justify-self: end; }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; }
.tasks li { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-2); }
.tasks li:first-child { border-top: 0; }
.tasks li.done b { text-decoration: line-through; color: var(--muted); }
.tick { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; font-size: 13px; color: var(--good); flex: 0 0 auto; }
.tick:hover { border-color: var(--good); }
.tasks li.done .tick { background: var(--good-soft); border-color: transparent; }
.cover-pick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ---------- photos & files ---------- */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.photo a { display: block; aspect-ratio: 4 / 3; background: var(--surface-2); max-width: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 4px 4px 4px 9px; font-size: 11.5px; color: var(--muted); }
.photo figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-empty { border: 1px dashed var(--line); border-radius: 8px; padding: 22px 14px; text-align: center; color: var(--muted); font-size: 12.5px; }
.files { list-style: none; margin: 0; padding: 0; display: grid; }
.files li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-2); }
.files li:first-child { border-top: 0; }
.file-ic { width: 34px; height: 34px; border-radius: 8px; background: var(--brass-soft); color: var(--brass); display: grid; place-items: center; flex: 0 0 auto; }
.file-name { font-weight: 600; overflow-wrap: anywhere; }
.file-name:hover { color: var(--accent); }
.doc-upload { align-items: center; }

/* ---------- maintenance ---------- */
.seg { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 4px; width: max-content; max-width: 100%; overflow-x: auto; }
.seg button { border: 0; background: none; padding: 7px 12px; border-radius: 7px; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.seg button[aria-selected="true"] .count { background: rgba(255, 255, 255, .2); color: inherit; border-color: transparent; }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.stepper li { font-size: 11.5px; font-weight: 600; color: var(--muted); display: grid; gap: 6px; }
.stepper li span { height: 5px; border-radius: 3px; background: var(--line); }
.stepper li.done span { background: var(--accent); }
.stepper li.now { color: var(--ink); }
.stepper li.now span { background: var(--brass); }
.grid-wo { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.grid-wo .col { display: grid; gap: 18px; min-width: 0; }
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ba-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ba .photos { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.note-box { display: grid; gap: 8px; justify-items: end; }
.note-box textarea, .field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; }
.note-box textarea:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 14px; }
.timeline li { display: flex; gap: 12px; font-size: 13px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: -14px; width: 1px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brass); margin-top: 5px; flex: 0 0 9px; position: relative; }

/* ---------- directories ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.person h2 { font: 700 20px/1.15 var(--f-display); text-transform: none; letter-spacing: 0; color: var(--ink); }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; background: var(--surface-2); border-radius: 8px; padding: 10px 12px; }
.mini-stats span { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mini-stats b { font-variant-numeric: tabular-nums; }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.links a { color: var(--accent); font-weight: 600; }
.planned { max-width: 720px; }
.checks { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* ---------- modal & forms ---------- */
.scrim { position: fixed; inset: 0; background: rgba(6, 22, 23, .55); z-index: 50; display: flex; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.sheet { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); width: 100%; max-width: 560px; max-height: 100%; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.sheet.wide { max-width: 760px; }
.sheet > form { display: flex; flex-direction: column; min-height: 0; max-height: 100%; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font: 700 24px/1.1 var(--f-display); }
.sheet-body { padding: 18px 20px; overflow-y: auto; display: grid; gap: 14px; }
.sheet-foot { display: flex; justify-content: space-between; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.form-intro { font-size: 13px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.sheet.wide .fgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sheet.wide .fgrid .field { grid-column: span 2; }
.sheet.wide .fgrid .field.full, .fgrid .full, .fgrid .fsec { grid-column: 1 / -1; }
.field { display: grid; gap: 5px; align-content: start; min-width: 0; }
.field label { font-size: 12px; font-weight: 600; color: var(--muted); }
.field label b { color: var(--bad); }
.field small { font-size: 11.5px; color: var(--muted); }
.field.check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.affix { position: relative; }
.affix::before { content: attr(data-affix); position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }
.affix.pre::before { left: 11px; } .affix.pre input { padding-left: 24px; }
.affix.post::before { right: 11px; } .affix.post input { padding-right: 26px; }
.fsec { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); font-weight: 700; border-top: 1px solid var(--line-2); padding-top: 14px; margin-top: 4px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fsec span { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.form-error { color: var(--bad); font-size: 13px; font-weight: 600; }
#toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: calc(100% - 32px); }
.toast { background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 9px; font-weight: 600; font-size: 13px; box-shadow: var(--shadow-lg); }
.toast.bad { background: var(--bad); color: #fff; }

/* ---------- sign in ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); background: radial-gradient(1200px 500px at 50% -10%, color-mix(in srgb, var(--side) 30%, transparent), transparent), var(--bg); }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 30px 28px; width: 100%; max-width: 400px; display: grid; gap: 16px; }
.auth-card .brand { padding: 0 0 4px; }
.auth-card .brand b { color: var(--ink); } .auth-card .brand span { color: var(--muted); }
.auth-msg { background: var(--good-soft); color: var(--good); padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.auth-foot { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 11.5px; border-top: 1px solid var(--line-2); padding-top: 14px; }
.auth-foot svg { width: 14px; height: 14px; flex: 0 0 auto; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid .span-2 { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  :root { --side-w: 0px; }
  .sidebar { width: 268px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim-nav { display: block; position: fixed; inset: 0; background: rgba(6, 22, 23, .45); z-index: 25; }
  .icon-btn.menu-btn { display: inline-grid; }
  .who .pill { display: none; }
  .grid-wo { grid-template-columns: 1fr; }
  .prop-hero { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  .gut { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .topbar { padding-left: max(10px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); gap: 8px; }
  .content { padding-block: 18px 60px; gap: 16px; }
  .stats { gap: 10px; }
  .stat { padding: 12px 14px; }
  .stat-v { font-size: 22px; }
  .dash-grid, .grid-2 { grid-template-columns: 1fr; }
  .rent-split b { font-size: 17px; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ba { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
  .fgrid, .sheet.wide .fgrid { grid-template-columns: 1fr; }
  .sheet.wide .fgrid .field { grid-column: 1 / -1; }
  .scrim { align-items: flex-end; padding: 0; }
  .sheet { border-radius: 16px 16px 0 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .page-head .btn-row { width: 100%; }
  .toolbar select { flex: 1 1 100%; width: 100%; min-width: 0; }
  .rows li { flex-wrap: wrap; row-gap: 8px; }
  .rows li > .grow { flex: 1 1 calc(100% - 20px); }
  .rows li > .sev { align-self: stretch; }
  .seg { width: 100%; }
  /* tables become labeled cards */
  .table-wrap { background: none; border: 0; box-shadow: none; overflow: visible; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .table td { padding: 0; border: 0; min-width: 0; }
  .table td:first-child { grid-column: 1 / -1; }
  .table td.r { text-align: left; }
  .table td[data-l]::before { content: attr(data-l); display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
  .table td:empty { display: none; }
  .prop-cell { min-width: 0; }
  .month-list li { grid-template-columns: 1fr auto; }
}
@media (max-width: 420px) {
  .rent-split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }

/* ---------- Phase 2: financials ---------- */
.monthnav { display: flex; align-items: center; gap: 10px; }
.monthnav b { min-width: 132px; text-align: center; font-size: 14px; }
.toolbar.end { justify-content: flex-end; }
.nowrap { flex-wrap: nowrap; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.table tfoot td { padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface-2); }
.notice.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.payout-card { border-left: 4px solid var(--warn); }
.payout-card.late { border-left-color: var(--bad); }
.print-only { display: none; }

/* ---------- owner report (also the PDF layout) ---------- */
.report { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); max-width: 760px; width: 100%; padding: 28px 30px; display: grid; gap: 22px; margin: 0 auto; }
.rpt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; border-bottom: 2px solid var(--brass); padding-bottom: 18px; }
.rpt-brand { display: flex; align-items: center; gap: 10px; }
.rpt-brand .mark { width: 38px; height: 38px; border-radius: 9px; background: var(--side); color: var(--gold); display: grid; place-items: center; font: 700 24px/1 var(--f-display); }
.rpt-brand b { display: block; font: 700 22px/1 var(--f-display); }
.rpt-brand span { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.rpt-title { text-align: right; }
.rpt-title h2 { font: 700 28px/1.1 var(--f-display); letter-spacing: 0; text-transform: none; color: var(--ink); }
.rpt-title p { font-weight: 600; }
.rpt-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 10px; }
.rpt-summary div { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; }
.rpt-summary span { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.rpt-summary b { font-size: 19px; font-variant-numeric: tabular-nums; }
.rpt-summary .hl { background: var(--side); border-color: var(--side); color: #fff; }
.rpt-summary .hl span { color: var(--gold); }
.rpt-box { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: grid; gap: 10px; }
.rpt-box h3, .rpt-prop h3 { font: 700 20px/1.2 var(--f-display); }
.rpt-kv { display: grid; grid-template-columns: 1fr auto; gap: 7px 16px; margin: 0; font-size: 13.5px; }
.rpt-kv dt { color: var(--muted); } .rpt-kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.rpt-kv .strong { color: var(--ink); font-weight: 700; border-top: 1px solid var(--line); padding-top: 8px; }
.rpt-kv.compact { font-size: 13px; }
.rpt-alert { background: var(--bad-soft); color: var(--bad); padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.rpt-prop { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 12px; break-inside: avoid; }
.rpt-prop-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rpt-prop h4 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); margin: 4px 0 0; }
.rpt-lines { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.rpt-lines li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line-2); font-size: 13px; align-items: start; }
.rpt-lines li:first-child { border-top: 0; }
.rpt-lines .d { color: var(--muted); font-variant-numeric: tabular-nums; }
.rpt-lines .w b { font-weight: 600; display: block; }
.rpt-lines .w small { color: var(--muted); font-size: 11.5px; }
.rpt-lines .a { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.rpt-lines .a.in { color: var(--good); }
.rpt-lines li.tot { background: var(--surface-2); }
.rpt-bullets { margin: 0; padding-left: 18px; font-size: 13px; display: grid; gap: 3px; }
.rpt-note { background: var(--brass-soft); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; white-space: pre-wrap; }
.note-edit { display: grid; gap: 6px; justify-items: start; }
.note-edit label { font-size: 12px; font-weight: 600; color: var(--muted); }
.note-edit textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px dashed var(--line); border-radius: 8px; padding: 9px 11px; }
.rpt-foot { border-top: 2px solid var(--brass); padding-top: 14px; font-size: 12.5px; display: grid; gap: 3px; }
@media (max-width: 560px) {
  .report { padding: 18px 16px; border-radius: 12px; }
  .rpt-title { text-align: left; }
  .rpt-lines li { grid-template-columns: 1fr auto; }
  .rpt-lines .d { grid-column: 1 / -1; font-size: 11px; }
  .monthnav b { min-width: 0; }
}
@media print {
  @page { margin: 14mm; }
  :root { --bg: #fff; --surface: #fff; --surface-2: #F5F7F6; --ink: #14282A; --muted: #5A6E6E; --line: #D5DDDB; --line-2: #E6ECEA; --side: #0F4C4F; --brass: #9C7A33; --brass-soft: #F4EBD5; --good: #23784A; --bad: #B03A28; --good-soft: #E1F2E7; --bad-soft: #F9E2DD; --warn: #A2650C; --warn-soft: #FCEFD8; color-scheme: light; }
  body { background: #fff; }
  .sidebar, .topbar, .demo-banner, .no-print, .scrim-nav, #toast, .back { display: none !important; }
  .main { margin: 0 !important; }
  .content { padding: 0 !important; max-width: none; }
  .report { box-shadow: none; border: 0; padding: 0; max-width: none; }
  .print-only { display: block; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.table.fin td:first-child { min-width: 200px; }

/* ---------- addresses ---------- */
.hero-main h1, .rpt-prop h3, .prop-cell a b, .lease-addr { font-family: var(--f-address); font-variant-numeric: lining-nums; }
.hero-main h1 { font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.005em; line-height: 1.2; }
.rpt-prop h3 { font-weight: 400; font-size: 19px; letter-spacing: 0; }
.prop-cell a b { font-weight: 700; font-size: 14px; letter-spacing: .005em; }
/* ---------- reserve & receipts ---------- */
.t-good { color: var(--good); }
.rpt-box.reserve { background: var(--surface-2); }
.rpt-alert.soft { background: var(--warn-soft); color: var(--warn); }
.rpt-lines li.from-reserve .a { color: var(--muted); font-weight: 500; }
.clip { font-size: 12px; }
.rpt-receipts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.rcpt { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); break-inside: avoid; }
.rcpt a { display: block; aspect-ratio: 3 / 4; background: var(--surface-2); max-width: 100%; }
.rcpt img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.rcpt.doc a { aspect-ratio: auto; }
.rcpt-doc { display: grid; gap: 4px; justify-items: start; padding: 14px; color: var(--ink); }
.rcpt-doc svg { color: var(--brass); }
.rcpt-doc b { font-size: 12.5px; overflow-wrap: anywhere; }
.rcpt-doc small { font-size: 11px; color: var(--muted); }
.rcpt figcaption { font-size: 11.5px; padding: 7px 9px; color: var(--muted); border-top: 1px solid var(--line-2); }
.rcpt figcaption b { color: var(--ink); }
.receipt-cell { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rcpt-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--accent); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 8px; max-width: 160px; }
.rcpt-chip svg { width: 13px; height: 13px; flex: 0 0 auto; }
.rcpt-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-link { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.line-link:hover { color: var(--accent); }
.reserve-card h2 { font: 700 19px/1.2 var(--f-display); text-transform: none; letter-spacing: 0; color: var(--ink); }
.small-rows li { padding: 7px 0; font-size: 13px; }
@media print { .rcpt a { aspect-ratio: auto; max-height: 340px; } .rcpt img { max-height: 340px; } }

/* ---------- owner portal ---------- */
.portal { min-height: 100vh; background: var(--bg); }
.portal-top { background: var(--side); color: var(--side-ink); padding-top: env(safe-area-inset-top, 0px); }
.portal-top-in { max-width: 920px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.portal-top .brand { padding: 0; }
.portal-signout { background: transparent; color: var(--side-ink); border-color: rgba(255,255,255,.25); }
.portal-signout:hover { border-color: rgba(255,255,255,.6); }
.portal-main, .portal-wrap { max-width: 920px; width: 100%; margin: 0 auto; display: grid; gap: 20px; align-content: start; }
.portal-main { padding-block: 26px 64px; outline: none; }
.portal-hero h1 { font-size: clamp(28px, 4vw, 38px); }
.portal-hero .muted { margin-top: 4px; }
.portal-notice { display: flex; gap: 14px; align-items: center; background: var(--brass-soft); border: 1px solid color-mix(in srgb, var(--brass) 30%, transparent); border-radius: var(--r); padding: 14px 16px; }
.portal-notice .pn-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--surface); color: var(--brass); display: grid; place-items: center; flex: 0 0 auto; }
.portal-notice b { display: block; }
.portal-notice span:not(.pn-ic) { font-size: 13px; color: var(--muted); }
.portal-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.portal-figs div { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; }
.portal-figs span { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.portal-figs b { font-size: 20px; font-variant-numeric: tabular-nums; }
.portal-section { display: grid; gap: 12px; }
.portal-h { font: 700 22px/1.2 var(--f-display); letter-spacing: 0; text-transform: none; color: var(--ink); }
.portal-props { display: grid; gap: 14px; }
.portal-prop { display: grid; grid-template-columns: 220px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.pp-photo { background: var(--surface-2); min-height: 150px; display: grid; place-items: center; color: var(--muted); }
.pp-photo img { width: 100%; height: 100%; object-fit: cover; }
.pp-photo svg { width: 34px; height: 34px; }
.pp-body { padding: 16px 18px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.pp-body .addr { font-family: var(--f-address); font-weight: 400; font-size: 20px; line-height: 1.25; font-variant-numeric: lining-nums; }
.portal-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.portal-list li + li { border-top: 1px solid var(--line-2); }
.portal-list a { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; }
.portal-list a:hover { background: var(--surface-2); }
.portal-list b { display: block; font-weight: 600; }
.portal-list small { color: var(--muted); font-size: 12px; }
.portal-list .pl-ic { width: 34px; height: 34px; border-radius: 8px; background: var(--brass-soft); color: var(--brass); display: grid; place-items: center; flex: 0 0 auto; }
.portal-list .pl-amt { font-variant-numeric: tabular-nums; font-weight: 600; }
.portal-list svg:last-child { color: var(--muted); flex: 0 0 auto; }
.portal-foot { border-top: 2px solid var(--brass); padding-top: 14px; font-size: 13px; display: grid; gap: 3px; }
.portal-stmt-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.preview-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--info-soft); color: var(--info); border-radius: var(--r); padding: 12px 16px; font-size: 13px; }
/* manager side */
.portal-block { border-top: 1px solid var(--line-2); padding-top: 12px; display: grid; gap: 8px; }
.pb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pb-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.pb-list li > .grow { flex: 1 1 100%; }
.pb-list .grow { min-width: 0; overflow-wrap: anywhere; }
.share-btn { font: 600 11px var(--f-ui); border-radius: 999px; padding: 4px 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; white-space: nowrap; }
.share-btn.on { background: var(--good-soft); color: var(--good); border-color: transparent; }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
@media (max-width: 640px) {
  .portal-prop { grid-template-columns: 1fr; }
  .pp-photo { aspect-ratio: 16 / 9; min-height: 0; max-width: 100%; }
  .portal-main { padding-block: 18px 48px; }
}
@media print { .portal-top, .preview-banner, .portal-stmt-bar { display: none !important; } .portal-main { padding: 0 !important; } }

.portal-owner { font-family: var(--f-address); font-size: 18px; margin-top: 2px; }

.auth-title { display: grid; gap: 4px; border-top: 1px solid var(--line-2); padding-top: 16px; }
.auth-title h1 { font-size: 30px; }
.auth-title .muted { font-size: 13.5px; }

/* ---------- logo ---------- */
.mark svg { width: 100%; height: 100%; display: block; }
.brand .mark { padding: 1px; font-size: 0; }
.auth-card .brand .mark, .rpt-brand .mark { background: var(--side); color: var(--gold); }
:root:not([data-theme="light"]) .auth-card .brand .mark { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 25%, transparent); }
.brand.big .mark { width: 46px; height: 46px; border-radius: 11px; }

/* ---------- document preview ---------- */
.sheet.preview { max-width: min(1100px, 100%); height: min(90vh, 1000px); }
.sheet.preview .sheet-head h2.pv-title { font: 600 15px/1.3 var(--f-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sheet.preview .sheet-head { flex-wrap: nowrap; }
.pv-body { flex: 1; min-height: 0; background: var(--surface-2); display: grid; place-items: center; overflow: auto; }
.pv-body img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pv-body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.pv-none { display: grid; gap: 12px; justify-items: center; padding: 30px; text-align: center; color: var(--muted); }
@media (max-width: 760px) { .sheet.preview { height: 92vh; max-height: 92vh; } }

/* ---------- owner portal v2 ---------- */
.portal-page { display: grid; gap: 22px; align-content: start; min-width: 0; }
.pnav { position: sticky; top: 0; z-index: 5; margin-inline: -4px; padding: 6px 4px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pnav-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; box-shadow: var(--shadow); }
.pnav-in::-webkit-scrollbar { display: none; }
.pnav a { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; position: relative; }
.pnav a:hover { color: var(--ink); background: var(--surface-2); }
.pnav a[aria-current] { background: var(--side); color: var(--side-ink); }
.pnav a[aria-current] svg { color: var(--gold); }
.badge { font-style: normal; font-size: 10.5px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--bad); color: #fff; line-height: 1; }
.nav a em.badge { border: 0; color: #fff; }
.p-title { display: grid; gap: 6px; }
.p-title .muted { max-width: 62ch; }
.p-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.p-empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); padding: 26px 22px; text-align: center; display: grid; gap: 6px; justify-items: center; }
.p-empty h3 { font: 700 20px/1.2 var(--f-display); }
.p-empty p { color: var(--muted); max-width: 52ch; font-size: 13.5px; }
.p-empty.slim { border: 0; padding: 18px; }
.p-src { font-size: 12px; color: var(--muted); }
.addr-sm { font-family: var(--f-address); font-variant-numeric: lining-nums; }

/* alerts */
.p-alerts { display: grid; gap: 8px; }
.pa { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: var(--r); padding: 11px 14px; font-weight: 600; font-size: 13.5px; box-shadow: var(--shadow); cursor: pointer; }
a.pa:hover { background: var(--surface-2); }
.pa-ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 auto; background: var(--brass-soft); color: var(--brass); }
.pa-ic.soon { background: var(--warn-soft); color: var(--warn); }
.pa-cta { font-size: 12px; color: var(--accent); white-space: nowrap; }

/* dashboard */
.p-dash .card-head { margin-bottom: 4px; }
.portal-figs small { margin-top: 4px; }
.portal-figs small .pill { font-size: 10.5px; }
.p-ytd { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; border-top: 1px solid var(--line-2); padding-top: 12px; font-size: 13px; color: var(--muted); }
.p-ytd b { color: var(--ink); font-variant-numeric: tabular-nums; margin-left: 4px; }
.p-ytd-h { flex: 1 1 100%; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--brass); }
.p-snap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.p-snap a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 2px; box-shadow: var(--shadow); }
.p-snap a:hover { border-color: var(--brass); }
.p-snap span { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.p-snap b { font: 700 26px/1.1 var(--f-display); font-variant-numeric: lining-nums tabular-nums; }
.p-snap small { color: var(--muted); font-size: 12px; }

/* property cards (clickable) */
a.portal-prop { transition: border-color .15s, transform .15s; }
a.portal-prop:hover { border-color: var(--brass); }
.pp-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pp-more { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.pp-more svg { width: 15px; height: 15px; }

/* property page */
.pd-hero { display: grid; gap: 14px; }
.pd-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 6px; aspect-ratio: 16 / 8; border-radius: var(--r); overflow: hidden; }
.pd-gallery a { background: var(--surface-2); min-height: 0; cursor: zoom-in; }
.pd-gallery a.main { grid-row: span 2; }
.pd-gallery img { width: 100%; height: 100%; object-fit: cover; }
.pd-gallery.one { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.pd-gallery:not(.one) a.main:only-child { grid-column: 1 / -1; }
.pd-nophoto { aspect-ratio: 16 / 6; border: 1px dashed var(--line); border-radius: var(--r); display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--muted); font-size: 13px; background: var(--surface); }
.pd-nophoto svg { width: 34px; height: 34px; }
.pd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pd-head h1.addr { font: 400 clamp(22px, 3vw, 30px)/1.2 var(--f-address); font-variant-numeric: lining-nums; }
.pd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.pd-dates { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pd-dates li { display: flex; gap: 12px; align-items: center; font-size: 13.5px; }
.pd-dates small { display: block; color: var(--muted); font-size: 12px; }
.pd-cal { width: 44px; flex: 0 0 auto; text-align: center; border: 1px solid var(--line); border-radius: 8px; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--brass); font-weight: 700; padding: 3px 0; background: var(--surface-2); }
.pd-cal b { display: block; font: 700 18px/1.1 var(--f-display); color: var(--ink); letter-spacing: 0; }

/* statements */
.p-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--muted); }
.p-legend b { color: var(--ink); margin-right: 3px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.dot.good { background: var(--good); } .dot.warn { background: var(--warn); } .dot.info { background: var(--info); }
.p-stmts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 12px; }
.p-stmt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.p-stmt:hover { border-color: var(--brass); }
.ps-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ps-top b { font: 700 21px/1.2 var(--f-display); }
.p-stmt dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.p-stmt dt { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.p-stmt dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.p-stmt > .pill { justify-self: start; }
.pl-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; }
.p-year { display: grid; gap: 16px; }
.p-year-head { display: flex; gap: 14px; align-items: center; border-bottom: 2px solid var(--brass); padding-bottom: 14px; }
.p-year-head .mark { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--side); color: var(--gold); flex: 0 0 auto; }
.p-ytable tfoot th { border-top: 2px solid var(--line); text-align: left; }
.p-ytable tfoot th.r { text-align: right; }
.p-cats { max-width: 460px; }
.p-cats dd { text-align: right; font-variant-numeric: tabular-nums; }

/* maintenance */
.p-mrs { display: grid; gap: 10px; }
.p-mr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 4px; box-shadow: var(--shadow); }
.p-mr:hover { border-color: var(--brass); }
.p-mr-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-mr-top b { font-size: 15px; }
.p-mr-last { font-size: 13px; background: var(--surface-2); border-radius: 8px; padding: 8px 10px; margin-top: 4px; }
.p-mr-last span { color: var(--brass); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; }
.p-steps { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.p-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 8px; }
.p-photos a { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.p-photos img { width: 100%; height: 100%; object-fit: cover; }

/* activity */
.p-feed { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.p-feed li + li { border-top: 1px solid var(--line-2); }
.p-feed li > a, .p-feed li > div { display: flex; align-items: center; gap: 12px; padding: 11px 16px; }
.p-feed li > a { cursor: pointer; } .p-feed li > a:hover { background: var(--surface-2); }
.p-feed b { display: block; font-weight: 600; font-size: 13.5px; }
.p-feed small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52ch; }
.p-feed .grow { min-width: 0; }
.p-feed time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.pf-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); flex: 0 0 auto; }
.pf-ic svg { width: 15px; height: 15px; }

/* messages (owner + staff) */
.p-chat { display: grid; gap: 14px; }
.p-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-height: 56vh; overflow-y: auto; }
.p-msgs li { display: grid; gap: 4px; max-width: min(78%, 560px); }
.p-msgs li.me { justify-self: end; justify-items: end; }
.p-msgs .bubble { padding: 10px 13px; border-radius: 14px; font-size: 14px; background: var(--surface-2); border: 1px solid var(--line-2); }
.p-msgs li.me .bubble { background: var(--side); color: var(--side-ink); border-color: transparent; border-bottom-right-radius: 4px; }
.p-msgs li.them .bubble { border-bottom-left-radius: 4px; }
.p-msgs .sub { font-size: 11.5px; }
.p-compose { display: grid; gap: 8px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.p-compose textarea, .p-compose select { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; }
.p-compose textarea:focus, .p-compose select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.p-compose-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.msg-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.msg-list { padding: 8px; }
.msg-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.msg-list a { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 8px; }
.msg-list a:hover { background: var(--surface-2); }
.msg-list a.on { background: var(--brass-soft); }
.msg-list .grow { min-width: 0; }
.msg-list b { display: block; font-size: 13.5px; }
.msg-list small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-list .nav-group { color: var(--muted); padding: 10px 10px 4px; }
.msg-meta { display: grid; justify-items: end; gap: 4px; flex: 0 0 auto; }
.msg-thread { display: grid; gap: 14px; }
.msg-back { display: none; }
.msg-notice { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.msg-notice > span:not(.link) { flex: 1; }

/* staff: owner visibility */
.note-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; }
.check.small { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.vis-btn { font: 600 10.5px var(--f-ui); border-radius: 999px; padding: 1px 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.vis-btn.on { background: var(--good-soft); color: var(--good); border-color: transparent; }
.shared-card { border-color: color-mix(in srgb, var(--good) 35%, var(--line)); }

@media (max-width: 760px) {
  .pnav a span { font-size: 12.5px; }
  .pnav a { padding: 8px 10px; flex: 0 0 auto; }
  .pd-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; aspect-ratio: auto; }
  .pd-gallery a { aspect-ratio: 4 / 3; }
  .pd-gallery a.main { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
  .pd-gallery a:nth-child(n+4) { display: none; }
  .p-msgs li { max-width: 88%; }
  .msg-layout { grid-template-columns: 1fr; }
  .msg-layout.has-thread .msg-list { display: none; }
  .msg-back { display: inline-flex; }
  .p-feed small { max-width: 60vw; }
}
@media print { .pnav, .p-alerts { display: none !important; } .p-year { box-shadow: none; border: 0; } }
.portal-main, .portal-wrap, .portal-page { grid-template-columns: minmax(0, 1fr); }
.p-contact { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.p-contact b { display: block; font: 700 19px/1.2 var(--f-display); }
.p-contact span { font-size: 13px; color: var(--muted); }
.p-contact .btn-row .btn { min-width: 96px; justify-content: center; }
@media (max-width: 760px) { .p-contact .btn-row { width: 100%; } .p-contact .btn-row .btn { flex: 1; } }

/* ---------- recurring charges ---------- */
.notice.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.notice.warn .linklike { color: inherit; text-decoration: underline; font-weight: 600; }
.rc-due li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rc-due li .grow { min-width: 200px; }
.rc-due .num { font-weight: 600; font-variant-numeric: tabular-nums; }
.rc-card { border-left: 3px solid var(--brass); }
@media (max-width: 640px) { .rc-due li .btn-row { width: 100%; } }
