/* HPM management desk. Navy uniform chrome, white working surface, brass for keys and focus, red only for money owed. */
/* Fonts are self-hosted (SIL OFL): no outside calls from the desk or the tenants' request page. */
@font-face { font-family: "Archivo"; src: url(fonts/archivo-wdth.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(fonts/plex-sans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(fonts/plex-sans-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(fonts/plex-sans-600.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }
:root {
  --navy: #0E1A2B; --navy-2: #1B2C44; --navy-3: #2B4061;
  --canvas: #EDF0F4; --paper: #FFFFFF; --ink: #1B2430; --muted: #5B6573; --line: #D5DCE5; --line-2: #E6EAF0;
  --brass: #A47E3B; --brass-2: #8A6A30; --brass-soft: #F4ECDD;
  --red: #B42318; --red-soft: #FCEDEB;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --text: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --rail: 252px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 15px/1.5 var(--text); }
a { color: var(--navy-3); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-stretch: 112%; color: var(--navy); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 30px; line-height: 1.15; font-weight: 700; }
h2 { font-size: 17px; line-height: 1.3; font-weight: 650; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt { margin-top: 20px; }
.sr, .skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: #fff; padding: 8px 12px; }
.nowrap { white-space: nowrap; }

/* ---------- shell ---------- */
.topbar { display: none; }
.rail { position: fixed; inset: 0 auto 0 0; width: var(--rail); background: var(--navy); color: #C9D3E0; display: flex; flex-direction: column; padding: 22px 16px 16px; overflow-y: auto; z-index: 10; }
.brand { display: flex; align-items: flex-end; gap: 10px; color: #fff; text-decoration: none; padding: 0 8px 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand .logo { width: 74px; height: auto; color: #fff; }
.brand span { font-size: 12px; line-height: 1.2; color: #AEBBCB; padding-bottom: 3px; }
.co-switch, .co-name { padding: 16px 8px 6px; }
.co-switch label { display: block; font-size: 12px; color: #8E9CB0; margin-bottom: 4px; }
.co-switch select { width: 100%; background: var(--navy-2); color: #fff; border: 1px solid var(--navy-3); border-radius: 4px; padding: 7px 8px; font: inherit; font-size: 14px; }
.co-name { color: #fff; font-weight: 600; font-size: 14px; }
.nav { list-style: none; margin: 10px 0; padding: 0; flex: 1; }
.nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 4px; color: #D7DEE8; text-decoration: none; font-size: 15px; position: relative; }
.nav a:hover { background: var(--navy-2); color: #fff; }
.nav a[aria-current="page"] { background: var(--navy-2); color: #fff; font-weight: 600; }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 3px; background: var(--brass); border-radius: 0 2px 2px 0; }
.badge { min-width: 22px; padding: 1px 7px; border-radius: 11px; background: var(--brass); color: #fff; font-size: 12px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.rail-foot { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 8px 0; font-size: 13px; }
.who strong { display: block; color: #fff; font-weight: 600; }
.who span { color: #8E9CB0; }
.foot-links { display: flex; gap: 14px; margin: 8px 0 10px; }
.foot-links a, .rail .langs a { color: #C9D3E0; }
.langs { display: flex; gap: 2px; }
.langs a { font-size: 12px; font-weight: 600; text-decoration: none; padding: 3px 7px; border-radius: 3px; color: var(--muted); }
.langs a[aria-current="true"] { background: var(--brass); color: #fff !important; }
.main { margin-left: var(--rail); padding: 30px 40px 60px; max-width: calc(1240px + var(--rail)); }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lede { color: var(--muted); max-width: 72ch; margin: -8px 0 20px; }

/* ---------- surfaces ---------- */
.block { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 20px 22px; margin-bottom: 20px; min-width: 0; }
.block > h2 { margin-bottom: 12px; }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin-bottom: 12px; }
.block.narrow, .form.narrow { max-width: 760px; }
details.block > summary { cursor: pointer; font-family: var(--display); font-stretch: 112%; font-weight: 650; color: var(--navy); }
details.block[open] > summary { margin-bottom: 14px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; align-items: start; }
.cols > * { min-width: 0; }
.cols.wide-left { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.callout { border-color: var(--brass); background: var(--brass-soft); }
.empty { background: var(--paper); border: 1px dashed #B9C3D0; border-radius: 4px; padding: 26px 24px; margin-bottom: 20px; color: var(--muted); }
.empty.start h2 { margin-bottom: 8px; }
.empty.start { border-style: solid; border-color: var(--line); }

/* figures strip */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0 0 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
.figures > div { padding: 16px 20px; border-left: 1px solid var(--line-2); }
.figures > div:first-child { border-left: 0; }
.figures dt { font-size: 13px; color: var(--muted); }
.figures dd { margin: 2px 0 0; font-family: var(--display); font-stretch: 105%; font-size: 30px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.15; }
.figures dd a { color: inherit; text-decoration: none; }
.figures dd.text { font-size: 20px; padding-top: 6px; }
.figures dd.sub { font: 400 13px/1.4 var(--text); color: var(--muted); margin-top: 4px; }
.figures .owes dd:not(.sub) { color: var(--red); }

/* ---------- ledger tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
.block > .table-wrap:last-child { margin-bottom: 0; }
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--paper); }
.main > .table-wrap .ledger { border: 1px solid var(--line); }
.ledger th { text-align: left; font-weight: 600; font-size: 13px; color: var(--navy); padding: 10px 12px; border-bottom: 2px solid var(--navy); white-space: nowrap; }
.ledger td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.ledger tbody tr:hover td { background: #F7F9FB; }
.ledger tfoot td { font-weight: 600; border-top: 2px solid var(--line); border-bottom: 0; color: var(--navy); }
.ledger.compact td, .ledger.compact th { padding: 7px 10px; }
.ledger tr.off td { color: var(--muted); }
.num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.owes { color: var(--red); }
td.owes, .num.owes { font-weight: 600; }
.strong { font-weight: 600; }
.clip { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 3px; background: var(--line-2); color: var(--ink); white-space: nowrap; }

/* status marks */
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9AA5B4; flex: none; }
.st-new::before, .st-open::before, .st-onboarding::before { background: var(--brass); }
.st-assigned::before, .st-answered::before, .st-active::before, .st-occupied::before { background: var(--navy-3); }
.st-in_progress::before { background: #fff; border: 2px solid var(--navy-3); }
.st-waiting::before { background: #fff; border: 2px solid var(--brass); }
.st-vacant::before { background: var(--brass); border-radius: 2px; }
.st-notice::before { background: #fff; border: 2px dashed var(--brass); }
.st-done::before, .st-paused::before { background: #C3CBD6; }

/* ---------- rent roll sheet: the team's colour key on a quiet ledger. The month tiles are the one loud thing. ---------- */
:root {
  --int: #1B9AD6; --int-bg: #D4ECFA; --int-ink: #0A4666;      /* baby blue: Interac e-transfer */
  --chq: #2145A6; --chq-ink: #FFFFFF;                          /* dark blue: cheque */
  --adm: #1C9A4E; --adm-bg: #D3EFDB; --adm-ink: #0D5529;      /* green: entered by administration */
  --mis: #C0178A; --mis-bg: #F9D8EE; --mis-ink: #760E55;      /* magenta: something missing */
  --unp: #D92D20; --unp-bg: #FBD9D5; --unp-ink: #861B13;      /* red: not paid */
  --vac: #D6A200; --vac-bg: #FAEFBD; --vac-ink: #665000;      /* yellow: vacant */
}
.roll { padding-bottom: 16px; }
.years { display: inline-flex; background: var(--canvas); border-radius: 6px; padding: 3px; gap: 2px; }
.years a { padding: 4px 12px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); font-variant-numeric: tabular-nums; border-radius: 4px; }
.years a:hover { color: var(--navy); }
.years a[aria-current="true"] { background: var(--paper); color: var(--navy); box-shadow: 0 1px 2px rgba(14, 26, 43, .16); }
.standing { margin: 0 0 14px; }
.st-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 8px; }
.st-line strong { font-family: var(--display); font-stretch: 110%; font-size: 20px; font-weight: 700; color: var(--navy); }
.st-line span { color: var(--muted); font-variant-numeric: tabular-nums; }
.st-bar { display: flex; gap: 2px; height: 10px; margin: 0 0 10px; }
.st-bar span { flex: 1 0 0; min-width: 4px; border-radius: 2px; box-shadow: none !important; }
.rr-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; padding: 0; font-size: 13px; color: var(--ink); }
.standing .rr-legend { margin-bottom: 0; }
.rr-legend li { display: inline-flex; align-items: center; gap: 7px; }
.rr-legend b { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; flex: none; }
.s-paid { background: var(--int-bg); box-shadow: inset 3px 0 0 var(--int); }
.s-cheque { background: var(--chq); }
.s-paid2 { background: var(--adm-bg); box-shadow: inset 3px 0 0 var(--adm); }
.s-partial { background: var(--mis-bg); box-shadow: inset 3px 0 0 var(--mis); }
.s-unpaid { background: var(--unp-bg); box-shadow: inset 3px 0 0 var(--unp); }
.s-vacant { background: var(--vac-bg); box-shadow: inset 3px 0 0 var(--vac); }
.s-none { background: var(--canvas); }
.sheet td.mc.s-paid { background-color: var(--int-bg); } .sheet td.mc.s-cheque { background-color: var(--chq); } .sheet td.mc.s-paid2 { background-color: var(--adm-bg); }
.sheet td.mc.s-partial { background-color: var(--mis-bg); } .sheet td.mc.s-unpaid { background-color: var(--unp-bg); } .sheet td.mc.s-vacant { background-color: var(--vac-bg); }
.st-bar .s-paid { background: var(--int); } .st-bar .s-paid2 { background: var(--adm); } .st-bar .s-partial { background: var(--mis); }
.st-bar .s-unpaid { background: var(--unp); } .st-bar .s-vacant { background: var(--vac); } .st-bar .s-none { background: #C9D1DC; }
.sheet-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 6px; margin: 0 0 10px; background: var(--paper); }
.sheet { border-collapse: separate; border-spacing: 0; font: 400 13.5px/1.3 var(--text); color: var(--ink); font-variant-numeric: tabular-nums; min-width: 100%; }
.sheet th, .sheet td { padding: 0 10px; height: 40px; border-bottom: 1px solid var(--line-2); white-space: nowrap; background: var(--paper); text-align: left; font-weight: 400; vertical-align: middle; }
.sheet thead th { height: 36px; font-size: 12.5px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.sheet thead th.now { color: var(--navy); box-shadow: inset 0 -3px 0 var(--brass); }
.sheet a { color: inherit; text-decoration: none; }
.sheet a:hover { text-decoration: underline; }
.sheet .c-apt { position: sticky; left: 0; z-index: 2; min-width: 66px; max-width: 66px; overflow: hidden; text-overflow: ellipsis; }
.sheet tbody th.c-apt { font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: 14px; color: var(--navy); }
.sheet .c-ten { position: sticky; left: 66px; z-index: 2; min-width: 160px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; box-shadow: 1px 0 0 var(--line); font-weight: 500; }
.sheet th.c-apt[colspan] { min-width: 226px; max-width: 226px; box-shadow: 1px 0 0 var(--line); }
.sheet .c-line { position: sticky; left: 0; z-index: 2; min-width: 200px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; box-shadow: 1px 0 0 var(--line); font-weight: 500; }
.sheet td.c-rent { font-weight: 600; color: var(--navy); }
.sheet tr.is-vacant .c-ten, .sheet tr.is-vacant td.c-rent { color: var(--muted); font-weight: 400; }
@media (min-width: 961px) { .sheet .c-rent { position: sticky; left: 226px; z-index: 2; min-width: 96px; box-shadow: 1px 0 0 var(--line); } .sheet .c-ten { box-shadow: none; } }
.sheet .c-note { max-width: 240px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.sheet .c-mail { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
/* month tiles */
.sheet .mc { min-width: 92px; text-align: right; cursor: pointer; position: relative; padding: 0 10px; border-right: 2px solid var(--paper); border-bottom: 2px solid var(--paper); border-top: 1px solid var(--paper); border-radius: 6px; background-clip: padding-box; font-weight: 500; }
.sheet .mc.s-none { background: var(--paper); border-bottom-color: var(--line-2); border-radius: 0; }
.sheet .mc.s-none::after { content: ""; position: absolute; right: 10px; top: 50%; width: 10px; height: 1px; background: #C3CBD6; }
.sheet .mc.s-paid { color: var(--int-ink); } .sheet .mc.s-cheque { color: var(--chq-ink); } .sheet .mc.s-paid2 { color: var(--adm-ink); }
.sheet .mc.s-partial { color: var(--mis-ink); } .sheet .mc.s-unpaid { color: var(--unp-ink); font-weight: 600; } .sheet .mc.s-vacant { color: var(--vac-ink); }
.sheet .mc:hover, .sheet .mc:focus-visible, .sheet .mc.on { outline: 2px solid var(--navy); outline-offset: -2px; }
.sheet .mc .n { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); min-width: 16px; height: 16px; font-size: 10.5px; line-height: 16px; font-weight: 700; text-align: center; background: rgba(255, 255, 255, .85); color: var(--navy); border-radius: 8px; }
.sheet .mc .nt { position: absolute; right: 4px; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 1.5px #fff; }
.sheet .xc { border-radius: 0; border-right: 0; border-top: 0; border-bottom: 1px solid var(--line-2); font-weight: 400; min-width: 86px; }
.sheet .xc.s-none::after, .sheet .xc::after { content: none; }
.sheet .xc.plan .v { color: #8D97A5; }
.sheet tr.band th, .sheet tr.band td { height: 32px; background: var(--canvas); font-size: 12.5px; font-weight: 600; color: var(--navy); border-bottom: 0; }
.sheet tr.total th, .sheet tr.total td { font-weight: 600; color: var(--navy); border-top: 2px solid var(--navy); border-bottom: 0; background: var(--paper); }
.sheet tr.grand th, .sheet tr.grand td { background: var(--navy); color: #fff; font-weight: 600; border-bottom: 1px solid var(--navy-2); }
.sheet tr.grand.need td.owes { color: #FFB4AB; }
.sheet .tot { font-weight: 600; color: var(--navy); background: #F7F9FB; }
.sheet.one { width: 100%; }
.sheet.one .mc { height: 44px; }
.sheet-hint { margin: 0; }
.flag { display: inline-block; width: 10px; height: 13px; margin-right: 6px; vertical-align: -2px; flex: none;
  background: linear-gradient(var(--navy), var(--navy)) left top / 1.5px 100% no-repeat, linear-gradient(#F28C0F, #F28C0F) 1.5px 1px / 8.5px 7px no-repeat; }
.callout.flagged { padding: 12px 16px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--navy-3); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.sheet .linkbtn { color: inherit; font-weight: inherit; text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sheet .linkbtn:hover { text-decoration: underline; }
.add-line { margin-top: 14px; }
.add-line > summary { cursor: pointer; font-weight: 600; color: var(--navy-3); margin-bottom: 12px; }
.mv { font-weight: 600; }
/* the panel behind a month: how the rent was deposited, then the forms once the cell is clicked */
.cell-pop { position: absolute; z-index: 30; width: 320px; max-width: calc(100vw - 16px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 6px rgba(14, 26, 43, .08), 0 18px 44px rgba(14, 26, 43, .22); padding: 12px 14px 14px; font-size: 14px; color: var(--ink); }
.cell-pop .dep-h { font-family: var(--display); font-stretch: 110%; font-weight: 650; color: var(--navy); margin: 0 26px 8px 0; }
.cell-pop p { margin: 0 0 8px; }
.dep-f { margin: 0 0 8px; }
.dep-f > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.dep-f dt { color: var(--muted); }
.dep-f dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.dep-l { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1px solid var(--line-2); }
.dep-l li { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.dep-l .d { color: var(--muted); }
.dep-l .a { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.dep-l .m { grid-column: 1 / -1; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.dep-l form { grid-column: 1 / -1; font-size: 13px; }
.dep-n { background: var(--brass-soft); border-radius: 4px; padding: 6px 9px; font-size: 13px; }
.cell-pop .pin-only, .cell-pop .cf, .cell-pop .cf-more { display: none; }
.cell-pop.pinned .pin-only, .cell-pop.pinned .cf, .cell-pop.pinned .cf-more { display: block; }
.cell-pop .cf { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.cf-h { font-weight: 600; color: var(--navy); }
.cf-g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin-bottom: 10px; }
.cf-g .span2 { grid-column: 1 / -1; }
.cf-more { margin-top: 10px; }
.cf-more > summary { cursor: pointer; font-size: 13px; color: var(--navy-3); }
.cell-pop .x { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; display: none; }
.cell-pop.pinned .x { display: block; }

/* ---------- lists ---------- */
.lines, .feed, .inbox, .chase, .notes, .checklist { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.lines li:last-child { border-bottom: 0; }
.lines a { text-decoration: none; color: var(--ink); min-width: 0; }
.line-main { display: block; font-weight: 600; color: var(--navy); }
.line-sub { display: block; color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.when { color: var(--muted); font-size: 13px; white-space: nowrap; }
.feed li { display: grid; grid-template-columns: 120px 140px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed .who { font-weight: 600; color: var(--navy); overflow: hidden; text-overflow: ellipsis; }

.inbox { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; margin-bottom: 20px; }
.inbox li { border-bottom: 1px solid var(--line-2); border-left: 3px solid transparent; }
.inbox li:last-child { border-bottom: 0; }
.inbox li.st-new { border-left-color: var(--brass); }
.inbox li.st-done { opacity: .7; }
.inbox a { display: block; padding: 12px 16px; text-decoration: none; color: var(--ink); }
.inbox a:hover { background: #F7F9FB; }
.i-top { display: flex; gap: 10px; align-items: baseline; }
.i-ref { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.i-where { font-weight: 600; color: var(--navy); flex: 1; min-width: 0; }
.i-msg { display: block; margin: 3px 0 6px; }
.i-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }

.chase li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.chase li:last-child { border-bottom: 0; }
.chase li.st-done .c-title { color: var(--muted); text-decoration: line-through; }
.chase li.stale .c-trail { color: var(--red); }
.c-main { min-width: 0; flex: 1; }
.c-title { display: block; font-weight: 600; color: var(--navy); }
.c-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--muted); margin: 4px 0; }
.c-trail { font-size: 13px; color: var(--muted); }
.chase blockquote { margin: 8px 0 0; padding: 8px 12px; background: #F5F7FA; border-left: 3px solid var(--navy-3); font-size: 14px; }
.chase cite { display: block; font-style: normal; color: var(--muted); font-size: 12px; margin-top: 4px; }
.c-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; justify-content: flex-end; max-width: 330px; }

.checklist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-2); }
.checklist li:last-child { border-bottom: 0; }
.tick { display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 10px 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.tick.static { cursor: default; }
.tick .box { width: 20px; height: 20px; border: 2px solid var(--navy-3); border-radius: 3px; flex: none; position: relative; }
.is-done .tick .box { background: var(--navy); border-color: var(--navy); }
.is-done .tick .box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.is-done .tick > span:last-child { color: var(--muted); }
.progress, .meter { display: block; height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; margin: 6px 0 4px; }
.progress span, .meter span { display: block; height: 100%; background: var(--brass); }
.meter { display: inline-block; width: 70px; vertical-align: middle; margin: 0 6px 0 0; }

.message .msg-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 14px; color: var(--muted); }
.msg-where { font-family: var(--display); font-stretch: 110%; font-size: 19px; font-weight: 650; color: var(--navy); margin: 8px 0 10px; }
.msg-body { font-size: 16px; line-height: 1.6; margin-bottom: 14px; white-space: normal; overflow-wrap: anywhere; }
.media { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 14px; }
.media img, .media video { width: 100%; max-height: 260px; object-fit: cover; border-radius: 3px; background: #000; display: block; }
.media audio { width: 100%; grid-column: 1 / -1; }
.sender { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 14px; }
.sender dt { color: var(--muted); font-size: 13px; }
.sender dd { margin: 0; overflow-wrap: anywhere; }
.notes li { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.notes .who { font-weight: 600; color: var(--navy); margin-right: 10px; }
.notes p { margin: 4px 0 0; }

/* ---------- forms and buttons ---------- */
.form { display: grid; gap: 14px; }
.form.grid2, .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.span2 { grid-column: 1 / -1; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.grid2 { display: grid; }
label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--navy); min-width: 0; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--ink); font-size: 14px; }
input, select, textarea { width: 100%; font: 400 15px/1.4 var(--text); color: var(--ink); background: #fff; border: 1px solid #BFC9D6; border-radius: 4px; padding: 9px 11px; min-width: 0; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--navy); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--brass); }
input:disabled, select:disabled, textarea:disabled { background: #F3F5F8; color: var(--muted); }
textarea { resize: vertical; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 14px/1.2 var(--text); color: var(--navy); background: #fff; border: 1px solid var(--navy); border-radius: 4px; padding: 9px 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #F2F5F9; color: var(--navy); }
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.ghost { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn.big { width: 100%; padding: 14px; font-size: 16px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.row-actions form { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.filters label { width: 200px; }
.linkbox { display: flex; gap: 8px; margin-bottom: 12px; }
.linkbox input { font-size: 13px; background: #F7F9FB; }
.qr { width: 156px; height: 156px; padding: 8px; background: #fff; border: 1px solid var(--line); }
.qr canvas, .qr img, .qr svg { width: 100%; height: 100%; display: block; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 16px; }
.danger-zone { margin-top: 10px; }
details.pop { position: relative; }
details.pop > summary { list-style: none; }
details.pop > summary::-webkit-details-marker { display: none; }
details.pop[open] > form, details.pop[open] > .form { position: absolute; right: 0; z-index: 5; width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 14px; margin-top: 6px; box-shadow: 0 10px 30px rgba(14, 26, 43, .18); }
details.pop.right[open] > form + form { top: auto; }
details.pop[open] { z-index: 6; }
details.pop[open] > form ~ form { position: static; width: auto; box-shadow: none; margin-top: 8px; }
.flash { padding: 11px 14px; border-radius: 4px; margin-bottom: 16px; font-size: 14px; border: 1px solid; }
.flash-ok { background: #EEF3FA; border-color: #B8C8DE; color: var(--navy); }
.flash-err { background: var(--red-soft); border-color: #F5B5AE; color: #7A1A12; }

/* ---------- public pages (sign-in, request link, poster) ---------- */
.bare { background: var(--navy); min-height: 100vh; }
.bare-main { padding: 40px 16px 60px; display: flex; flex-direction: column; align-items: center; }
.auth-card, .portal-card { width: 100%; max-width: 440px; background: #fff; border-radius: 6px; padding: 28px 28px 22px; }
.portal-card { max-width: 600px; }
.auth-brand, .portal-brand { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 2px solid var(--navy); }
.auth-brand .logo, .portal-brand .logo { width: 70px; color: var(--navy); }
.auth-brand span, .portal-brand span { font-size: 13px; color: var(--muted); padding-bottom: 2px; }
.portal-brand span { font-family: var(--display); font-stretch: 110%; font-size: 18px; font-weight: 650; color: var(--navy); }
.auth-card h1, .portal-card h1 { font-size: 24px; margin-bottom: 10px; }
.auth-alt { margin: 16px 0 6px; font-size: 14px; }
.auth-card .langs, .portal-card .langs { margin-top: 14px; }
.who-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.who-pick legend { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; padding: 0; }
.chip { display: inline-flex; font-weight: 400; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { padding: 8px 12px; border: 1px solid #BFC9D6; border-radius: 20px; font-size: 14px; color: var(--ink); cursor: pointer; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.attach { display: flex; flex-wrap: wrap; gap: 8px; }
.file-btn { position: relative; overflow: hidden; display: inline-flex; font-size: 14px; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
#rec.recording { background: var(--red); border-color: var(--red); color: #fff; }
.picked { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--muted); }
.picked li { padding: 3px 0; }
.picked audio { width: 100%; margin-top: 4px; }
.hp { position: absolute !important; left: -9999px !important; }
.ref { font-family: var(--display); font-stretch: 110%; font-size: 20px; font-weight: 700; color: var(--brass-2); }
.portal-foot { font-size: 12px; color: var(--muted); margin: 14px 0 0; }

.poster-page { background: #fff; }
.poster { max-width: 680px; margin: 0 auto; padding: 30px 20px; text-align: center; }
.poster-top { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 3px solid var(--navy); padding-bottom: 14px; margin-bottom: 30px; }
.poster-top .logo { width: 110px; color: var(--navy); }
.poster-top span { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 22px; color: var(--navy); }
.poster h1 { font-size: 40px; }
.poster .p-en { color: var(--muted); }
.poster > p:first-of-type { font-size: 22px; }
.qr.big { width: 300px; height: 300px; margin: 26px auto; border: 0; }
.poster p { font-size: 17px; max-width: 52ch; margin-left: auto; margin-right: auto; }
.poster-url { font-size: 13px !important; color: var(--muted); overflow-wrap: anywhere; }
.poster-foot { margin-top: 26px !important; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px !important; }
.no-print { text-align: center; }
@media print { .no-print { display: none; } .poster { padding: 0; } @page { margin: 14mm; } }

/* ---------- phone and tablet ---------- */
@media (max-width: 960px) {
  .topbar { display: flex; position: sticky; top: 0; z-index: 9; align-items: center; justify-content: space-between; background: var(--navy); padding: 10px 16px; }
  .brand-sm .logo { width: 56px; color: #fff; display: block; }
  .menu-btn { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; padding: 7px 12px; font: 600 14px var(--text); }
  .rail { transform: translateX(-100%); transition: transform .2s ease; width: min(300px, 86vw); visibility: hidden; }
  body.nav-open .rail { transform: none; visibility: visible; box-shadow: 0 0 40px rgba(0,0,0,.35); }
  .main { margin-left: 0; padding: 20px 16px 50px; }
  .cols, .cols.wide-left { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 25px; }
}
@media (max-width: 600px) {
  .form.grid2, .grid2, fieldset.grid2 { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures > div { border-left: 0; border-top: 1px solid var(--line-2); padding: 12px 14px; }
  .figures > div:nth-child(-n+2) { border-top: 0; }
  .figures > div:nth-child(even) { border-left: 1px solid var(--line-2); }
  .figures dd { font-size: 24px; }
  .block { padding: 16px; }
  .feed li { grid-template-columns: 1fr; gap: 2px; }
  .chase li { flex-direction: column; }
  .c-actions { justify-content: flex-start; max-width: none; }
  details.pop[open] > form, details.pop[open] > .form { left: 0; right: auto; width: min(300px, calc(100vw - 48px)); }
  .filters label { width: calc(50% - 6px); }
  .sheet th, .sheet td { padding: 0 8px; }
  .sheet .c-apt { min-width: 60px; max-width: 60px; }
  .sheet .c-ten { left: 60px; min-width: 102px; max-width: 102px; }
  .sheet th.c-apt[colspan] { min-width: 162px; max-width: 162px; }
  .sheet .c-line { min-width: 132px; max-width: 132px; white-space: normal; line-height: 1.2; }
  .sheet .mc { min-width: 84px; }
  .cell-pop.pinned { position: fixed; left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; max-width: none; max-height: 78vh; overflow-y: auto; border-radius: 10px 10px 0 0; padding-bottom: 22px; }
  .auth-card, .portal-card { padding: 22px 18px 18px; }
  .poster h1 { font-size: 30px; }
  .qr.big { width: 240px; height: 240px; }
}

/* sign in with Google */
.google-signin { display: flex; justify-content: center; min-height: 44px; margin: 4px 0 6px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 14px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* grouped module menu */
.nav { margin: 6px 0; }
.nav > li > a { padding: 7px 10px; }
.nav-group { margin-top: 10px; }
.nav-group > span { display: block; padding: 4px 10px; font-size: 12px; color: #8E9CB0; font-weight: 600; }
.nav-group ul { list-style: none; margin: 0; padding: 0; }
.nav-group a { padding: 5px 10px 5px 14px; font-size: 14px; }
.nav-group a[aria-current="page"]::before { top: 6px; bottom: 6px; }
details.add { margin-top: 12px; }
details.add > summary { list-style: none; display: inline-flex; }
details.add > summary::-webkit-details-marker { display: none; }
details.add[open] > summary { margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.chips li { font-size: 13px; padding: 4px 10px; border-radius: 14px; background: var(--line-2); }
.chips li.on { background: var(--navy); color: #fff; }
.pay-paid { background: #E6F0FB !important; } .pay-part { background: #F9E3F4 !important; } .pay-none { background: var(--red-soft) !important; } .pay-vac { background: #FFF6D6 !important; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--line-2); color: var(--navy); font-weight: 700; display: grid; place-items: center; }
.steps li.is-done::before { background: var(--navy); color: #fff; content: "✓"; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.module-grid a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; text-decoration: none; color: var(--ink); }
.module-grid a:hover { border-color: var(--navy-3); }
.module-grid strong { display: block; color: var(--navy); }
.module-grid span { font-size: 13px; color: var(--muted); }
.ai-box { border-left: 3px solid var(--brass); background: #FBF8F2; padding: 12px 14px; margin: 10px 0; white-space: pre-wrap; font-size: 14px; }
.figures > div { min-width: 0; }
.figures dd { overflow-wrap: anywhere; }
@media (max-width: 600px) { .block .figures dd:not(.sub) { font-size: 19px; } }
/* settings: commands to copy (cron job, pipe) */
pre.code { background: var(--canvas); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0 12px; }
label.check { align-items: flex-start; }
label.check input { margin-top: 3px; flex: none; }

/* 1.7: the simple menu again, and the tabs Lucas asked for (Rentals, TAL, Increases, Commercial taxes, Insurance, Bank logs, building analysis) */
.nav-sep { height: 1px; background: rgba(255, 255, 255, .12); margin: 10px 10px; }
details.pop[open] > .pop-body, details.pop[open] > form.grid2 { position: absolute; right: 0; z-index: 5; width: min(560px, 86vw); background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 14px; margin-top: 6px; box-shadow: 0 10px 30px rgba(14, 26, 43, .18); }
details.pop[open] > .pop-body form { position: static; width: auto; box-shadow: none; border: 0; padding: 0; margin: 8px 0 0; }
.pop-body blockquote { margin: 0 0 8px; }
td .sub, .c-title + .sub { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }
td .sub.ok, .ok { color: #1F7A4D; }
.owes .sub { color: inherit; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; align-items: end; }
.grid4 .span4 { grid-column: 1 / -1; }
input.mini { width: 88px; padding: 6px 8px; text-align: right; }
td input:not(.mini), td select { min-width: 120px; padding: 6px 8px; }
tr.subrow td { border-top: 0; padding-top: 0; }
tr.muted td { color: var(--muted); }
ul.plain { list-style: none; padding: 0; margin: 6px 0 12px; display: grid; gap: 6px; }
details.sources { font-size: 13px; color: var(--muted); }
details.sources ul { margin: 6px 0 0; padding-left: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
a.chip { padding: 7px 12px; border: 1px solid #BFC9D6; border-radius: 20px; font-size: 14px; color: var(--ink); text-decoration: none; background: #fff; }
a.chip:hover { border-color: var(--navy); }
form.inline { display: inline; }
.masked { letter-spacing: 2px; color: var(--muted); }
code.secret { background: var(--brass-soft); padding: 2px 6px; border-radius: 3px; font-size: 13px; user-select: all; }
.filters label.grow { width: auto; flex: 1 1 260px; }
.scroll-y { max-height: 70vh; overflow: auto; }
.scroll-y thead th { position: sticky; top: 0; background: #fff; z-index: 1; }
.chase-table tr.late td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.chase-table tr.late .c-title, .chase-table tr.late td.num { color: var(--red); }
.chase-table tr.st-done td { color: var(--muted); }
.pill.cat-rent { background: var(--red-soft); color: var(--red); }
.pill.cat-tal { background: #EFE7FB; color: #4B2C85; }
.pill.cat-service { background: #E6F1FB; color: #1B4F80; }
.pill.cat-rental { background: #FFF4D6; color: #7A5400; }
.pill.cat-admin { background: #ECEFF3; color: var(--navy-3); }
.quote .q-in { margin-bottom: 14px; }
.quote .q-in label output { float: right; font-weight: 600; color: var(--navy); }
.quote .q-in input[type=range] { width: 100%; padding: 0; }
.quote .q-exp h3 { font-size: 15px; margin: 6px 0 2px; }
.q-out dd strong { font-weight: 700; }
.mv { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 10px; background: #ECEFF3; color: var(--navy-3); }
.mv-in { background: #E3F4EA; color: #1F7A4D; }
.mv-out { background: var(--red-soft); color: var(--red); }
@media (max-width: 960px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid4 { grid-template-columns: 1fr; } .filters label { width: 100%; } }
@media (max-width: 600px) { .row-actions .btn, form > .btn { white-space: normal; max-width: 100%; text-align: center; } }
.q-out dd:not(.sub) { font-size: 22px; }
.q-out dd strong { font-size: inherit; }

/* 1.8: tribunal case editing in the row, paid/owed rows, insurance detail, printable case documents */
.grid4 .span2 { grid-column: span 2; }
tr.editrow > td { background: var(--canvas); padding: 16px; white-space: normal; }
tr.editrow form.form { max-width: none; }
.row-actions.tight { margin-top: 0; flex-wrap: nowrap; gap: 4px; }
tr.paid-row > td { background: #E9F5EC; }
tr.due-row > td { background: #FCECEA; }
a.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.kv { margin: 0; }
.kv > div { display: grid; grid-template-columns: minmax(120px, 42%) 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0; }
pre.letter { white-space: pre-wrap; font: inherit; background: var(--canvas); border: 1px solid var(--line-2); border-radius: 8px; padding: 16px 18px; margin: 0; max-width: 76ch; }
.mail-form { border-top: 1px solid var(--line-2); padding-top: 10px; margin-top: 10px; }
.sheet-doc { max-width: 760px; margin: 32px auto; padding: 0 20px; color: #111; }
.sheet-doc h1 { font-size: 24px; margin: 28px 0 6px; }
.kvt { width: 100%; border-collapse: collapse; margin: 14px 0; }
.kvt th, .kvt td { text-align: left; vertical-align: top; padding: 8px 10px; border: 1px solid #C9D1DB; font-size: 15px; }
.kvt th { width: 34%; font-weight: 600; background: #F4F6F9; }
.sheet-doc .sign { margin-top: 48px; }
@media (max-width: 700px) { .grid4 .span2 { grid-column: 1 / -1; } .kv > div { grid-template-columns: 1fr; gap: 2px; } }
@media print { .noprint { display: none !important; } .pagebreak { break-before: page; } .sheet-doc { margin: 0; max-width: none; } }
table.fin th { white-space: normal; vertical-align: bottom; }
table.fin td.num { white-space: nowrap; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 10px; }

/* 1.9: Communication */
.comm-form fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.comm-form legend { font-weight: 600; color: var(--navy); margin-bottom: 8px; padding: 0; }
.comm-form .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.comm-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 520px; margin-bottom: 14px; }
.btn.big { padding: 14px 18px; font-size: 16px; justify-content: center; }
.comm-how .btn.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.comm-pane textarea { width: 100%; max-width: 640px; }
.rec-row { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.rec-time { font-variant-numeric: tabular-nums; color: var(--red); font-weight: 600; }
.comm-list { list-style: none; margin: 0; padding: 0; }
.comm-item { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.comm-item:last-child { border-bottom: 0; }
.comm-item.done { opacity: .6; }
.comm-item audio, .comm-item video, .comm-pane audio { display: block; width: 100%; max-width: 420px; margin-top: 8px; }
.comm-item video { max-height: 320px; background: #000; border-radius: 6px; }
.comm-body { margin: 6px 0 0; }
.comm-pane audio[hidden], .comm-pane [hidden] { display: none; }

/* 1.10: pop-overs in tables open as a full-width row; clear case actions; white print sheet */
tr.has-pop > td { border-bottom-color: transparent; }
tr.poprow > td { background: var(--canvas); padding: 16px 18px; white-space: normal; }
.pop-inline { max-width: 900px; }
.pop-inline > form, .pop-inline .pop-body, .pop-inline .pop-body form { position: static; width: auto; box-shadow: none; border: 0; padding: 0; background: transparent; }
.pop-inline > form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.pop-inline > form > .span2, .pop-inline > form > button, .pop-inline > form > div { grid-column: 1 / -1; justify-self: start; }
.pop-inline > form + form { margin-top: 12px; display: block; }
.pop-inline .pop-body form { margin: 10px 0 0; }
.pop-inline .row-actions { flex-wrap: wrap; }
details.pop.inline[open] > summary { background: var(--navy); color: #fff; border-color: var(--navy); }
.case-actions { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.case-actions form { display: inline-flex; margin: 6px 10px 0 0; vertical-align: middle; }
.case-actions input { width: 220px; }
body.bare.printable { background: #fff; }
.comm-pane video { display: block; width: 100%; max-width: 420px; max-height: 320px; background: #000; border-radius: 6px; margin-bottom: 10px; }
.src-note { border-left: 3px solid var(--red); padding: 8px 12px; background: #FCECEA; margin: 0 0 14px; }
@media (max-width: 700px) { .pop-inline > form { grid-template-columns: 1fr; } }

/* rental application documents (Rentals, application file) */
.docthumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.docthumb { display: block; aspect-ratio: 3 / 4; border: 1px solid var(--line); background: var(--paper); overflow: hidden; border-radius: 4px; }
.docthumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.docthumb:hover, .docthumb:focus-visible { border-color: var(--brass); }
.docicon { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 11px; font-weight: 700; color: var(--muted); }
.docthumbs.mini { gap: 4px; flex-wrap: nowrap; }
.docslots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.docslot h3 { margin: 0 0 8px; font-size: 15px; }
.docslot > a.small { display: inline-block; margin-top: 6px; }
.kvlist { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.kvlist dt { color: var(--muted); }
.kvlist dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .kvlist { grid-template-columns: 1fr; gap: 2px; } .kvlist dd { margin-bottom: 8px; } }
.sheet-doc table.kv { width: 100%; border-collapse: collapse; margin: 12px 0 20px; }
.sheet-doc table.kv th, .sheet-doc table.kv td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid #ddd; }
.sheet-doc table.kv th { width: 34%; font-weight: 600; }
.sheet-doc .docthumb { border-color: #bbb; }

/* ==========================================================================================
   2.0: the look Lucas chose on 2026-11-24 (Option C). Slim icon rail, the buildings in a second
   pane, a navy-to-blue header with the title and key numbers, the page on a white sheet.
   Phone: the same header, a bottom tab bar, the full menu under "More"; 16px text, 44px taps.
   ========================================================================================== */
:root {
  --navy: #102C50; --night: #0B2240; --navy-2: #173A68; --navy-3: #2C62A8; --blue: #1F57C3; --baby: #A8C8FF;
  --canvas: #EEF3FB; --paper: #FFFFFF; --ink: #14253D; --muted: #4A5D7E; --line: #D3DDEB; --line-2: #E6ECF5;
  --brass: #1F57C3; --brass-2: #1A47A0; --brass-soft: #EAF1FD;
  --red: #C42B1F; --red-soft: #FDECEA;
  --rail-w: 96px; --ctx-w: 288px;
  --hero: radial-gradient(120% 150% at 100% 0%, #7FB0FF 0%, #2C62A8 36%, #102C50 76%);
  --grad: linear-gradient(160deg, #2C62A8, #1F57C3);
  --shadow: 0 1px 2px rgba(11, 31, 63, .06), 0 8px 22px rgba(11, 42, 94, .09);
}
[hidden] { display: none !important; }
body.desk { background: var(--canvas); color: var(--ink); }
a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { color: var(--navy); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; left: auto; }
.av { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--baby); color: var(--night); font: 600 13px/1 var(--text); flex: none; letter-spacing: .02em; }
.av.big { width: 46px; height: 46px; font-size: 15px; }
.badge { background: var(--blue); color: #fff; }
.topbar { display: none !important; }

/* icon rail */
.rail { position: fixed; inset: 0 auto 0 0; width: var(--rail-w); background: var(--night); color: #B4C5E0; padding: 16px 8px 14px; display: flex; flex-direction: column; overflow-y: auto; z-index: 20; transform: none; visibility: visible; scrollbar-width: none; }
.rail-logo { display: block; padding: 4px 0 16px; text-align: center; color: #fff; }
.rail-logo .logo { width: 54px; height: auto; color: #fff; }
.rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.rail li a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 1px 8px; border-radius: 12px; color: #B4C5E0; text-decoration: none; font-size: 10.5px; font-weight: 500; line-height: 1.15; text-align: center; letter-spacing: -.01em; }
.rail li a .ic { width: 22px; height: 22px; }
.rail li a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.rail li a[aria-current="page"] { background: var(--grad); color: #fff; }
.rail li a .badge { position: absolute; top: 3px; right: 12px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--baby); color: var(--night); font-size: 10.5px; line-height: 18px; }
.rail-foot { margin-top: auto; padding: 14px 0 0; border: 0; display: flex; justify-content: center; }
.rail-me, .hero-me { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; }

/* second pane: the buildings, or the pages of Money and Admin */
.ctx { position: fixed; top: 0; bottom: 0; left: var(--rail-w); width: var(--ctx-w); background: #F7F9FD; border-right: 1px solid var(--line); padding: 18px 14px 16px; overflow-y: auto; z-index: 15; display: flex; flex-direction: column; }
.ctx-co select { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; font: 500 14px var(--text); color: var(--navy); }
.ctx-co .co-name { display: block; font-weight: 600; color: var(--navy); font-size: 14px; padding: 4px 6px; }
.ctx h2 { font-size: 22px; font-weight: 800; font-stretch: 118%; margin: 16px 6px 2px; }
.ctx h2 a { color: inherit; text-decoration: none; }
.ctx-sub { font-size: 13px; color: var(--muted); margin: 0 6px 12px; }
.ctx-bl { list-style: none; margin: 0 0 12px; padding: 0; }
.ctx-bl a { display: block; padding: 11px 12px 12px; border-radius: 14px; text-decoration: none; color: var(--ink); margin-bottom: 4px; }
.ctx-bl a:hover { background: #fff; color: var(--ink); }
.ctx-bl li.on a { background: #fff; box-shadow: var(--shadow); }
.ctx-bl .t1 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ctx-bl strong { font-weight: 600; font-size: 14.5px; color: var(--navy); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx-bl .ow { font-size: 12.5px; font-weight: 600; color: var(--red); white-space: nowrap; }
.ctx-bl .okk { font-size: 12.5px; font-weight: 600; color: #1C7A45; white-space: nowrap; }
.ctx-bl .ad { display: block; font-size: 12.5px; color: var(--muted); margin: 1px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctx-bl .t2 { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.pb { display: block; height: 6px; border-radius: 3px; background: #DCE5F2; overflow: hidden; }
.pb i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #1F57C3, #7FB0FF); }
.ctx-foot { margin-top: auto; padding: 14px 12px; border-radius: 14px; background: var(--navy); color: #C3D4F0; font-size: 12.5px; }
.ctx-foot b { display: block; color: #fff; font: 700 19px var(--display); font-stretch: 112%; margin: 3px 0 8px; }
.ctx-foot .pb { background: rgba(255, 255, 255, .16); }
.ctx-foot .pb i { background: var(--baby); }
.ctx-nav { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.ctx-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 15px; }
.ctx-nav a:hover { background: #fff; color: var(--ink); }
.ctx-nav a[aria-current="page"] { background: #fff; color: var(--blue); font-weight: 600; box-shadow: var(--shadow); }
.ctx-nav .ic { width: 20px; height: 20px; color: var(--navy-3); }
.ctx-nav .badge { margin-left: auto; }

/* closing the second pane (Lucas, 2026-11-24): × in the pane; then a button in the header pops it up over the page */
.ctx-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; }
.ctx-h h2 { margin-top: 0; }
.ctx > .ctx-x { align-self: flex-end; margin-top: 10px; }
.ctx-x { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.ctx-x:hover { background: #fff; color: var(--navy); }
.ctx-x .ic { width: 18px; height: 18px; }
.ctx-open { display: none; }
@media (min-width: 1200px) {
  body.ctx-off .ctx { display: none; }
  body.ctx-off .main { margin-left: var(--rail-w); }
  body.ctx-off.ctx-pop .ctx { display: flex; z-index: 35; box-shadow: 0 24px 64px rgba(11, 34, 64, .38); border-right: 0; }
  body.ctx-off .ctx-open { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 7px 15px 7px 11px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .34); color: #fff; font: 500 14px var(--text); cursor: pointer; }
  body.ctx-off .ctx-open:hover { background: rgba(255, 255, 255, .22); }
  body.ctx-off .ctx-open .ic { width: 18px; height: 18px; }
}
@media (max-width: 1199px) { .ctx-x { display: none; } }

/* header and sheet */
.main { margin-left: calc(var(--rail-w) + var(--ctx-w)); padding: 0 0 48px; max-width: none; min-width: 0; }
.hero { background: var(--hero); color: #fff; padding: 28px 38px 94px; }
.hero-top { display: none; }
.crumb { color: #C9D8F0; font-size: 13px; margin: 0 0 6px; }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; }
.hero h1 { color: #fff; font-size: 40px; font-weight: 800; font-stretch: 122%; line-height: 1.05; letter-spacing: -.01em; overflow-wrap: anywhere; min-width: 0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hero .actions form { margin: 0; display: inline-flex; }
.hero .actions .btn, .hero .actions summary.btn { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .34); color: #fff; }
.hero .actions .btn:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.hero .actions .btn.primary { background: #fff; color: var(--navy); border-color: #fff; }
.hero-extra { margin-top: 24px; }
.page { position: relative; margin: -66px 24px 0; background: var(--paper); border-radius: 20px; padding: 24px 26px 28px; box-shadow: 0 20px 50px rgba(11, 34, 64, .14); min-height: 320px; }
.page > :last-child { margin-bottom: 0; }
.page .lede { margin: 0 0 18px; }
.page > .table-wrap .ledger { border: 1px solid var(--line-2); }
.subnav { display: none; }

/* the key numbers and this month's standing, in the header */
.hero-extra .figures { background: transparent; border: 0; border-radius: 0; margin: 0; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.hero-extra .figures > div { border-left: 1px solid rgba(255, 255, 255, .22); padding: 0 20px; }
.hero-extra .figures > div:first-child { border-left: 0; padding-left: 0; }
.hero-extra .figures dt { color: #C9D8F0; }
.hero-extra .figures dd, .hero-extra .figures dd a { color: #fff; }
.hero-extra .figures dd:not(.sub) { font-size: clamp(22px, 2.1vw, 30px); font-stretch: 108%; white-space: nowrap; }
.hero-extra .figures dd.sub { color: #C9D8F0; }
.hero-extra .figures .owes dd:not(.sub), .hero-extra .figures .owes dd a { color: #FFD3CF; }
.hero-extra .standing { margin: 0; display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 6px 26px; align-items: center; }
.hero-extra .st-line { display: block; margin: 0; grid-row: span 2; }
.hero-extra .st-line strong { display: block; color: #fff; font-size: 22px; }
.hero-extra .st-line span { color: #DCE8FA; }
.hero-extra .st-bar { height: 12px; margin: 0; gap: 3px; }
.hero-extra .st-bar span { border-radius: 4px; }
.hero-extra .st-bar .s-none, .hero-extra .sw.s-none { background: rgba(255, 255, 255, .85); }
.hero-extra .st-bar .s-cheque, .hero-extra .sw.s-cheque { background: #6A8BE6; }
.hero-extra .rr-legend { color: #DCE8FA; margin: 0; }
.hero-extra .rr-legend b { color: #fff; }
.hero-extra .flag { background: linear-gradient(#fff, #fff) left top / 1.5px 100% no-repeat, linear-gradient(#FFB054, #FFB054) 1.5px 1px / 8.5px 7px no-repeat; }

/* surfaces inside the sheet */
.block { border: 1px solid var(--line-2); border-radius: 14px; padding: 18px 20px; }
.page > .block:only-of-type { border: 0; padding: 0; }
.empty { border-radius: 14px; border-color: #C5D2E5; }
.figures { border-radius: 14px; border-color: var(--line-2); }
.callout { border-color: #B9CCEE; background: var(--brass-soft); }
.inbox { border-radius: 14px; border-color: var(--line-2); overflow: hidden; }
.sheet-wrap { border-radius: 12px; border-color: var(--line-2); }
.ledger th { font-size: 12.5px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.ledger tfoot td { border-top: 2px solid var(--navy); }
.sheet thead th.now { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); }
.sheet .mc .nt { background: #E07A00; }
.st-vacant::before { background: var(--vac); }
.pill { border-radius: 999px; padding: 2px 9px; background: #EAF1FD; color: var(--navy-3); }
.years { background: #EAF0F9; border-radius: 999px; }
.years a { border-radius: 999px; }

/* buttons and fields */
.btn { border-radius: 999px; border-color: #C3D0E2; color: var(--navy); padding: 9px 16px; min-height: 40px; }
.btn:hover { background: #F2F6FC; border-color: var(--navy-3); color: var(--navy); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); color: #fff; }
.btn.small { min-height: 34px; padding: 6px 12px; }
.btn.big { border-radius: 14px; }
.btn.danger { border-color: #E3A39C; }
input, select, textarea { border-radius: 10px; border-color: #C3D0E2; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(31, 87, 195, .35); outline-offset: 0; border-color: var(--blue); }
.chip span { border-radius: 999px; border-color: #C9D5E6; background: #fff; }
.chip input:checked + span { background: var(--grad); border-color: transparent; color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--blue); }
.flash { border-radius: 12px; }
.flash-ok { background: #EAF1FD; border-color: #B9CCEE; color: var(--navy); }

/* the full menu (phone "More", and the account button of the rail) */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(11, 22, 38, .45); display: none; }
body.nav-open .drawer { display: block; }
body.nav-open { overflow: hidden; }
.drawer-in { position: absolute; top: 0; bottom: 0; left: var(--rail-w); width: min(360px, 92vw); background: #fff; overflow-y: auto; padding: calc(16px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
.drawer-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.drawer-top .who { flex: 1; line-height: 1.3; min-width: 0; }
.drawer-top .who strong { display: block; color: var(--navy); font-weight: 600; font-size: 16px; }
.drawer-top .who span { color: var(--muted); font-size: 14px; }
.drawer-x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--navy); cursor: pointer; flex: none; }
.drawer-x .ic { width: 20px; height: 20px; }
.drawer .ctx-co { margin-bottom: 6px; }
.drawer-nav { list-style: none; margin: 8px 0 14px; padding: 0; }
.drawer-nav a { display: flex; align-items: center; gap: 14px; padding: 11px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 16px; min-height: 48px; }
.drawer-nav a:hover { background: #F3F7FD; color: var(--ink); }
.drawer-nav a[aria-current="page"] { background: #EAF1FD; color: var(--blue); font-weight: 600; }
.drawer-nav .ic { width: 22px; height: 22px; color: var(--navy-3); flex: none; }
.drawer-nav .badge { margin-left: auto; }
.drawer-nav .grp span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); padding: 14px 10px 4px; }
.drawer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.drawer-foot .btn .ic { width: 18px; height: 18px; }
.drawer .langs a { font-size: 14px; padding: 8px 11px; border-radius: 8px; color: var(--muted); }
.drawer .langs a[aria-current="true"] { background: var(--navy); color: #fff !important; }
.tabbar { display: none; }

/* screens without room for the second pane: its pages become chips in the header */
@media (max-width: 1199px) {
  .ctx { display: none; }
  .main { margin-left: var(--rail-w); }
  .subnav { display: flex; gap: 8px; overflow-x: auto; margin: 18px -2px 0; padding: 2px; scrollbar-width: none; }
  .subnav a { flex: none; padding: 8px 15px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; }
  .subnav a[aria-current="page"] { background: #fff; color: var(--navy); border-color: #fff; }
}

/* phone and small tablet */
@media (max-width: 960px) {
  body.desk { font-size: 16px; }
  .rail, .ctx { display: none !important; }
  .main { margin-left: 0; padding: 0; }
  .hero { padding: calc(10px + env(safe-area-inset-top)) 16px 48px; }
  .hero-top { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin-bottom: 10px; }
  .brand-sm { display: block; color: #fff; }
  .brand-sm .logo { width: 54px; color: #fff; display: block; }
  .hero-me .av { width: 42px; height: 42px; font-size: 14px; }
  .hero h1 { font-size: 30px; }
  .crumb { font-size: 14px; }
  .hero .actions { width: 100%; }
  .hero .actions .btn { min-height: 44px; padding: 10px 16px; font-size: 14.5px; }
  .hero-extra { margin-top: 18px; }
  .hero-extra .figures { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .hero-extra .figures > div { padding: 0 12px; border-top: 0 !important; }
  .hero-extra .figures > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hero-extra .figures > div:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .22) !important; }
  .hero-extra .figures dd:not(.sub) { font-size: 24px; }
  .hero-extra .figures dd.sub { font-size: 13.5px; }
  .hero-extra .standing { grid-template-columns: 1fr; gap: 10px; }
  .hero-extra .st-line { grid-row: auto; }
  .hero-extra .rr-legend { font-size: 13.5px; gap: 6px 14px; }
  .page { margin: -26px 0 0; border-radius: 22px 22px 0 0; padding: 20px 16px calc(100px + env(safe-area-inset-bottom)); box-shadow: none; min-height: 60vh; }
  .block { padding: 16px 14px; }
  h2 { font-size: 18px; }
  input, select, textarea { font-size: 16px; padding: 11px 12px; }
  .btn { min-height: 44px; font-size: 15px; }
  .btn.small { min-height: 38px; font-size: 14px; }
  .chip span { padding: 10px 15px; font-size: 15px; }
  .lines li, .inbox a { padding-top: 12px; padding-bottom: 12px; }
  .when { font-size: 13.5px; }
  .muted.small, .small { font-size: 14px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 4px 2px calc(4px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(11, 34, 64, .06); }
  .tabbar a, .tabbar button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 5px; min-height: 56px; font: 500 10.5px/1.1 var(--text); color: #52627E; text-decoration: none; background: none; border: 0; position: relative; cursor: pointer; letter-spacing: -.01em; }
  .tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar .ic { width: 25px; height: 25px; }
  .tabbar [aria-current="page"], .tabbar .on { color: var(--blue); font-weight: 600; }
  .tabbar .badge { position: absolute; top: 1px; left: calc(50% + 5px); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #D92D20; color: #fff; font-size: 11px; line-height: 19px; }
  .drawer-in { left: auto; right: 0; width: 100%; max-width: 440px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 27px; }
  .tabbar a, .tabbar button { font-size: 9.5px; letter-spacing: -.02em; }
}

/* 2.0: Communication (steps, four ways, Photo with the camera in the page, messages with photos) */
.comm-form { max-width: 760px; margin: 0 0 26px; }
.comm-form .step { border: 0; padding: 0; margin: 0 0 20px; }
.comm-form .step legend { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); font-size: 15px; margin-bottom: 10px; padding: 0; }
.comm-form .step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 13px/26px var(--display); text-align: center; flex: none; }
.comm-form .chips { gap: 8px; margin: 0; }
.chip .av.sm { width: 24px; height: 24px; font-size: 10px; margin: -4px 6px -4px -6px; background: #DCE6F6; color: var(--navy); }
.chip input:checked + span .av.sm { background: rgba(255, 255, 255, .25); color: #fff; }
.chip span { display: inline-flex; align-items: center; }
.comm-how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 560px; margin: 0 0 16px; }
.hw { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 78px; padding: 10px 4px; border-radius: 16px; border: 1px solid #C9D5E6; background: #fff; color: var(--navy); font: 600 14px var(--text); cursor: pointer; }
.hw .ic { width: 26px; height: 26px; color: var(--navy-3); }
.hw:hover { border-color: var(--navy-3); }
.hw.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 18px rgba(31, 87, 195, .28); }
.hw.on .ic { color: #fff; }
.comm-pane { margin: 0 0 14px; }
.comm-pane .opt { font-weight: 400; color: var(--muted); }
.comm-form .send { width: 100%; max-width: 560px; }
.comm-form .send[disabled] { opacity: .7; }
.photo-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 560px; }
.photo-btns .btn { gap: 10px; }
.photo-btns .ic { width: 22px; height: 22px; }
.photo-btns .btn.primary { background: var(--grad); border-color: transparent; }
.cam { position: relative; max-width: 560px; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #0B1626; }
.cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam.flash::after { content: ""; position: absolute; inset: 0; background: #fff; animation: camflash .35s ease-out forwards; pointer-events: none; }
@keyframes camflash { from { opacity: .85; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cam.flash::after { animation: none; opacity: 0; } }
.cam-ctl { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.cam-btn { position: relative; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .45); color: #fff; display: grid; place-items: center; cursor: pointer; overflow: hidden; }
.cam-btn .ic { width: 22px; height: 22px; }
.cam-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cam-shut { width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; background: transparent; padding: 5px; cursor: pointer; }
.cam-shut::before { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; }
.cam-shut:active::before { transform: scale(.92); }
.photo-count { margin: 14px 0 8px; font-weight: 600; color: var(--navy); }
.thumbs { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-width: 560px; }
.thumbs li { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--canvas); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs .rm { position: absolute; top: 5px; right: 5px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(11, 22, 38, .72); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.comm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.comm-head .av.sm { width: 34px; height: 34px; font-size: 12px; background: #DCE6F6; color: var(--navy); }
.comm-head strong { color: var(--navy); }
.comm-item { padding: 14px 0; }
.comm-photos { display: grid; gap: 4px; margin-top: 10px; max-width: 520px; border-radius: 14px; overflow: hidden; }
.comm-photos a { display: block; background: var(--canvas); }
.comm-photos img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 1; }
.comm-photos.n1 img { aspect-ratio: 4 / 3; }
.comm-photos.n2 { grid-template-columns: 1fr 1fr; }
.comm-photos.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.comm-photos.n3 a:first-child { grid-row: span 2; }
.comm-photos.n4 { grid-template-columns: 1fr 1fr; }
.comm-photos.n3 a:first-child img { aspect-ratio: auto; height: 100%; }
@media (max-width: 960px) {
  .comm-how { gap: 8px; }
  .hw { min-height: 74px; font-size: 13.5px; }
  .photo-btns { grid-template-columns: 1fr; }
  .cam { aspect-ratio: 3 / 4; max-height: 62vh; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
}

/* 2.0: the quick link (com.php) and its Communication-only shell */
body.quickpage { margin: 0; min-height: 100vh; background: var(--hero), #102C50; background-attachment: fixed; color: #fff; font-size: 16px; }
.qp { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: calc(18px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom)); }
.qp-top { width: 100%; max-width: 440px; display: flex; justify-content: center; padding: 8px 0 18px; }
.qp-top .logo { width: 74px; color: #fff; }
.qp-card { width: 100%; max-width: 440px; text-align: center; flex: 1; display: flex; flex-direction: column; }
.qp-card h1 { color: #fff; font-size: 30px; font-weight: 800; font-stretch: 120%; }
.qp-sub { color: #DCE8FA; margin: 8px 0 0; font-size: 16px; }
.qp-boxes { display: flex; justify-content: center; gap: 12px; margin: 26px 0 10px; }
.qp-boxes span { width: 54px; height: 62px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .1); display: grid; place-items: center; }
.qp-boxes span.f::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.qp-boxes span.cur { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .2); }
.qp-code form:not(.js) .qp-boxes { display: none; }
.qp-code form:not(.js) input[name="code"] { margin: 22px auto 10px; max-width: 220px; text-align: center; font-size: 26px; letter-spacing: .3em; }
.qp-help { color: #C9D8F0; font-size: 14.5px; margin: 0; }
.qp-err { color: #fff; background: rgba(217, 45, 32, .85); border-radius: 12px; padding: 10px 14px; font-size: 15px; margin: 4px 0 0; }
.qp-go { margin-top: 16px; }
.qp-keys { margin-top: auto; padding-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.qp-keys button { height: 66px; border-radius: 18px; border: 0; background: #fff; color: var(--navy); font: 500 28px var(--text); cursor: pointer; box-shadow: 0 6px 16px rgba(11, 34, 64, .18); display: grid; place-items: center; touch-action: manipulation; }
.qp-keys button:active { transform: scale(.96); background: #EAF1FD; }
.qp-keys button[data-key="del"] { background: transparent; color: #fff; box-shadow: none; }
.qp-keys button .ic { width: 30px; height: 30px; }
.qp-who { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.qp-who form { margin: 0; }
.qp-who button { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; border-radius: 16px; border: 0; background: #fff; color: var(--navy); font: 500 17px var(--text); cursor: pointer; box-shadow: 0 6px 16px rgba(11, 34, 64, .18); }
.qp-who button:active { background: #EAF1FD; }
.qp-who .av { width: 40px; height: 40px; background: var(--navy); color: #fff; }
.qp-who .nm { flex: 1; text-align: left; }
.qp-who .rl { font-size: 13.5px; color: var(--muted); }
.qp-note { color: #DCE8FA; font-size: 14.5px; margin-top: 18px; }
.qp-langs { padding-top: 18px; }
.qp-langs .langs a { color: #DCE8FA; font-size: 14px; padding: 6px 10px; }
.qp-langs .langs a[aria-current="true"] { background: #fff; color: var(--navy) !important; }
body.quick .main { margin-left: 0; }
body.quick .hero-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
body.quick .brand-sm .logo { width: 54px; color: #fff; display: block; }
.quick-me { display: flex; align-items: center; gap: 10px; line-height: 1.25; font-size: 14px; }
.quick-me b { display: block; color: #fff; font-weight: 600; }
.quick-me a { color: #DCE8FA; }
body.quick .page { max-width: 820px; margin-left: auto; margin-right: auto; }
@media (min-width: 961px) { body.quick .hero { padding-left: max(38px, calc(50% - 410px)); padding-right: max(38px, calc(50% - 410px)); } }
@media (max-width: 960px) { body.quick .page { padding-bottom: calc(28px + env(safe-area-inset-bottom)); } }

/* 2.0: photos on the lines of Bank logs (door, lock, key box) */
td.rec-ph { white-space: nowrap; }
.rec-thumbs { display: flex; align-items: center; gap: 6px; }
.rec-thumbs a { display: block; width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--canvas); flex: none; }
.rec-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-thumbs .more { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.photo-add { margin: 0; display: inline-flex; }
.photo-btn { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 1.5px dashed #A9BAD3; display: grid; place-items: center; color: var(--navy-3); cursor: pointer; overflow: hidden; background: #fff; font-weight: 400; }
.photo-btn:hover { border-color: var(--blue); color: var(--blue); }
.photo-btn .ic { width: 20px; height: 20px; }
.photo-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-btn.busy { opacity: .5; pointer-events: none; }
.rec-photo-list { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.rec-photo-list ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.rec-photo-list li { display: grid; gap: 4px; justify-items: start; }
.rec-photo-list img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; display: block; }
@media (max-width: 960px) { .rec-thumbs a, .photo-btn { width: 44px; height: 44px; } }

/* 2.0.2: Building information (owner company, money in, at a glance) under the revenue and the expenses */
details.binfo > summary { list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; cursor: pointer; }
details.binfo > summary::-webkit-details-marker { display: none; }
details.binfo > summary::before { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(-45deg); margin-right: 2px; transition: transform .15s; align-self: center; }
details.binfo[open] > summary::before { transform: rotate(45deg); }
.binfo-h { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 18px; color: var(--navy); }
.binfo-s { color: var(--muted); font-size: 14px; }
details.binfo[open] > summary { margin-bottom: 16px; }
.binfo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.binfo-grid > section { border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.binfo-grid h3 { font-size: 16px; margin: 0 0 8px; }
.binfo-grid .kv > div { grid-template-columns: minmax(96px, 40%) 1fr; padding: 6px 0; }
.binfo-grid .kv dt { font-size: 13px; }
.binfo-grid .kv dd { font-size: 14px; overflow-wrap: anywhere; }
.binfo-sub { font-weight: 600; color: var(--navy); font-size: 14px; margin: 12px 0 2px; }
.binfo-sub:first-of-type { margin-top: 0; }
.binfo-chq { display: block; max-width: 260px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); }
.binfo-chq img { width: 100%; display: block; }
.binfo-up { margin-top: 8px; }
.binfo-up .ic { width: 17px; height: 17px; }
.binfo-edit { margin-top: 16px; }
.binfo-edit > summary { list-style: none; display: inline-flex; }
.binfo-edit > summary::-webkit-details-marker { display: none; }
.binfo-edit[open] > summary { margin-bottom: 12px; }
@media (max-width: 1100px) { .binfo-grid { grid-template-columns: 1fr; } }

/* ---------- 2.1 welcome package: building rules signed online ---------- */
.tosign { display: inline-block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--red); }
.tosign-dot { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--vac); vertical-align: middle; }
.pill.ok { background: var(--adm-bg); color: var(--adm-ink); }
code.wrap { word-break: break-all; white-space: normal; font-size: 13px; }
textarea.rules-text { font-size: 14px; line-height: 1.5; min-height: 420px; }
.row-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.row-form label { flex: 1 1 260px; }
.rules-wrap { width: 100%; max-width: 860px; margin: 0 auto; }
.rdoc { display: flex; flex-direction: column; gap: 18px; }
.rpage { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 26px 30px 18px; display: flex; flex-direction: column; color: var(--ink); }
.rp-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 14px; }
.rp-body { flex: 1; }
.rp-body h1 { font-family: var(--display); font-size: 22px; letter-spacing: .01em; margin: 4px 0 10px; color: var(--navy); }
.rp-body h2 { font-size: 14px; font-weight: 700; margin: 16px 0 4px; color: var(--navy); }
.rp-body p { font-size: 15px; line-height: 1.55; margin: 0 0 8px; }
.rp-body ul { margin: 0 0 8px; padding-left: 20px; }
.rp-body li { font-size: 15px; line-height: 1.5; margin: 0 0 3px; }
.rp-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.rp-ini { display: inline-flex; align-items: flex-end; gap: 8px; }
.ini-box { display: inline-flex; align-items: flex-end; justify-content: center; width: 96px; height: 38px; border-bottom: 1.5px solid var(--ink); }
.ini-box img { max-width: 92px; max-height: 36px; }
.rp-sign { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.rp-who { font-size: 14px; }
.rp-sig-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 10px; }
.rp-sig-grid > div { display: flex; flex-direction: column; gap: 4px; }
.rp-lbl { font-size: 12px; color: var(--muted); }
.sig-box { display: flex; align-items: flex-end; height: 74px; border-bottom: 1.5px solid var(--ink); }
.sig-box img { max-height: 70px; max-width: 100%; }
.sig-box.dir { font-weight: 600; font-size: 14px; padding-bottom: 4px; }
.rp-date { font-size: 13px; }
.rp-cert { margin-top: 12px; font-size: 11.5px; color: var(--muted); }
body.signpage { background: var(--canvas); }
.signpage .bare-main { padding: 18px 12px 60px; }
.sign-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sign-head .portal-brand { margin: 0; padding: 0; border: 0; }
.sign-intro { background: var(--hero); color: #fff; border-radius: 16px; padding: 22px 24px; margin-bottom: 18px; }
.sign-intro h1 { font-family: var(--display); font-size: 26px; margin: 0 0 8px; color: #fff; }
.sign-intro p { font-size: 16px; line-height: 1.5; margin: 0 0 6px; }
.sign-intro .muted { color: rgba(255, 255, 255, .82); }
.sign-form { margin-top: 18px; background: #fff; border-radius: 16px; padding: 20px; }
.sign-form h2 { font-size: 20px; margin: 0 0 12px; }
.sign-form label input { font-size: 17px; }
.pad-row { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; margin: 14px 0 8px; }
.sigpad { position: relative; border: 2px dashed var(--line); border-radius: 12px; background: #fff; padding: 8px 8px 6px; display: flex; flex-direction: column; gap: 6px; }
.sigpad.done { border-style: solid; border-color: var(--blue); }
.sigpad canvas { width: 100%; height: 130px; touch-action: none; display: block; cursor: crosshair; border-bottom: 1.5px solid var(--line); }
.sigpad.ini canvas { height: 130px; }
.pad-lbl { font-size: 14px; font-weight: 600; color: var(--navy); }
.sigpad [data-clear] { align-self: flex-end; }
.sign-err { color: var(--red); font-weight: 600; }
.sign-form .btn.big { width: 100%; min-height: 52px; font-size: 17px; }
@media (max-width: 640px) {
  .rpage { padding: 18px 16px 14px; border-radius: 12px; }
  .rp-body p, .rp-body li { font-size: 15.5px; }
  .pad-row { grid-template-columns: 1fr; }
  .rp-sig-grid { grid-template-columns: 1fr; gap: 14px; }
  .sign-intro { padding: 18px; }
  .sign-intro h1 { font-size: 22px; }
}
@media print {
  @page { size: letter; margin: 12mm 14mm; }
  body.rules-print, body.signpage { background: #fff; }
  .rules-print .bare-main, .signpage .bare-main { padding: 0; display: block; }
  .rules-wrap { max-width: none; }
  .rdoc { display: block; }
  .rpage { border: 0; border-radius: 0; box-shadow: none; padding: 0; margin: 0; min-height: 250mm; break-after: page; page-break-after: always; }
  .rpage:last-child { break-after: auto; page-break-after: auto; }
  .rp-head { font-size: 8.5pt; margin-bottom: 8px; padding-bottom: 6px; }
  .rp-body h1 { font-size: 15pt; margin: 0 0 6px; }
  .rp-body h2 { font-size: 9.5pt; margin: 8px 0 2px; }
  .rp-body p, .rp-body li { font-size: 9.5pt; line-height: 1.38; margin-bottom: 4px; }
  .rp-foot { font-size: 8.5pt; }
  .sign-intro, .sign-head, .noprint { display: none !important; }
}
.wlist { list-style: none; margin: 0; padding: 0; }
.wlist li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.wlist li:first-child { border-top: 0; }
.wl-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.wl-main .small { overflow-wrap: anywhere; }
.wlist .row-actions { flex-wrap: wrap; gap: 8px; }
.wlist .row-actions .btn, #welcome .row-actions .btn { white-space: nowrap; }
/* ---------- 2.2 increase letters ---------- */
th.sel, td.sel { width: 34px; text-align: center; }
td.sel input, th.sel input { width: 18px; height: 18px; }
.inc-letters { margin: 16px 0 8px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--brass-soft); }
.inc-letters h3 { margin: 0 0 4px; font-size: 16px; }
.inc-letters .row-actions { flex-wrap: wrap; align-items: center; }
label.inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
label.inline input { width: auto; }
.lpage { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 30px 34px; color: var(--ink); }
.lp-head { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--navy); }
.lp-head strong { font-family: var(--display); font-size: 20px; color: var(--navy); }
.lp-head span { font-size: 12.5px; color: var(--muted); }
.lp-body p { font-size: 15px; line-height: 1.55; margin: 0 0 12px; }
.lp-body h2 { font-size: 14.5px; font-weight: 700; margin: 18px 0 6px; color: var(--navy); }
@media (max-width: 640px) { .lpage { padding: 18px 16px; } }
@media print {
  .lpage { border: 0; border-radius: 0; box-shadow: none; padding: 0; break-after: page; page-break-after: always; }
  .lpage:last-child { break-after: auto; page-break-after: auto; }
  .lp-head strong { font-size: 15pt; }
  .lp-head span { font-size: 9pt; }
  .lp-body p { font-size: 10pt; line-height: 1.4; margin-bottom: 8px; }
  .lp-body h2 { font-size: 10.5pt; margin: 12px 0 4px; }
}

/* ---------- 2.3 commercial taxes: amounts added, bill files, invoices ---------- */
.ct-extra { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px 4px; margin: 0; }
.ct-extra legend { font-weight: 600; font-size: 14px; padding: 0 6px; }
.ct-x { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 8px; margin-bottom: 8px; }
.files-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.files-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .ct-x { grid-template-columns: 1fr 1fr; } .ct-x input:first-child { grid-column: 1 / -1; } }

/* every number sizes itself to its column (Lucas, 2026-11-24: "$22,740.10" ran into the next figure on his PC) */
.figures > div { container-type: inline-size; min-width: 0; }
.figures dd:not(.sub):not(.text) { font-size: clamp(16px, 17cqi, 30px); white-space: nowrap; overflow-wrap: normal; }
.hero-extra .figures dd:not(.sub) { font-size: clamp(16px, 17cqi, 34px); }
/* a button wider than its place wraps its words instead of pushing the page sideways (French labels are longer) */
.row-actions:not(.tight) .btn, form > .btn, .grid4 .btn, .form .btn { white-space: normal; max-width: 100%; text-align: center; }
.wlist .row-actions .btn, #welcome .row-actions .btn { white-space: nowrap; }

/* notifications (2.4.0): the bell in the rail and on the phone header, and the list */
.rail-foot { flex-direction: column; align-items: center; gap: 12px; }
.rail-bell, .hero-bell { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #B4C5E0; text-decoration: none; }
.rail-bell:hover, .rail-bell[aria-current="page"] { background: rgba(255, 255, 255, .1); color: #fff; }
.rail-bell .ic, .hero-bell .ic { width: 24px; height: 24px; }
.rail-bell .badge, .hero-bell .badge { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #D92D20; color: #fff; font: 600 11px/19px var(--text); text-align: center; }
.hero-tr { display: flex; align-items: center; gap: 8px; }
.hero-bell { color: #fff; }
.notifs { list-style: none; margin: 0; padding: 0; }
.notifs li { border-bottom: 1px solid var(--line-2); }
.notifs a { display: block; padding: 12px 4px; text-decoration: none; color: var(--ink); }
.notifs a:hover { background: var(--canvas); }
.notifs .nt { display: block; }
.notifs .nm { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.notifs li.new .nt { font-weight: 600; color: var(--navy); }
.notifs li.new a { border-left: 3px solid var(--blue); padding-left: 10px; }

/* profile pictures (2.5.0) */
.av.has-img { padding: 0; overflow: hidden; background: #DCE5F2; }
.av.has-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.av.xl { width: 96px; height: 96px; font-size: 30px; }
.av-link { border-radius: 50%; text-decoration: none; }
.photo-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.photo-row .row-actions { margin-top: 8px; }
.photo-row label.btn { cursor: pointer; }

/* the demo: emails it would have sent pop up (2.5.1) */
.demo-sent { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 0; border-radius: 18px; padding: 20px 22px 18px; box-shadow: 0 30px 80px rgba(11, 34, 64, .35); }
.demo-sent::backdrop { background: rgba(10, 27, 56, .5); }
.ds-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ds-head h2 { margin: 0; font-size: 22px; }
.ds-x { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; }
.ds-x .ic { width: 18px; height: 18px; }
.ds-mail { border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; margin-top: 12px; }
.ds-frame { display: block; width: 100%; height: 380px; border: 1px solid var(--line-2); border-radius: 10px; margin-top: 10px; background: #fff; }
@media (max-width: 600px) { .ds-frame { height: 300px; } }

/* documents from the templates (2.6.0): Word pages at their real size */
.dx { --pw: 816px; --ph: 1056px; --mt: 96px; --mr: 96px; --mb: 96px; --ml: 96px; width: 100%; overflow: hidden; }
.dx-flow { width: calc(var(--pw) - var(--ml) - var(--mr)); }
.dx-pages { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 4px 0 8px; }
.dx-page { position: relative; width: var(--pw); height: var(--ph); background: #fff; color: #000; box-shadow: 0 2px 10px rgba(11, 34, 64, .16); border: 1px solid #DCE3EE; padding: var(--mt) var(--mr) 0 var(--ml); box-sizing: border-box; font-family: "Times New Roman", Tinos, "Liberation Serif", Times, serif; font-size: 11pt; line-height: 1.15; }
.dx-hd { position: absolute; left: var(--ml); right: var(--mr); top: 12px; max-height: calc(var(--mt) - 12px); overflow: hidden; }
.dx-bd { height: calc(var(--ph) - var(--mt) - var(--mb) - 46px); overflow: hidden; }
.dx-ft { position: absolute; left: var(--ml); right: var(--mr); bottom: 6px; min-height: 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.dx-ft > p, .dx-hd > p { margin: 0 !important; }
.dx-p { margin: 0; white-space: pre-wrap; overflow-wrap: break-word; }
.dx-tab { display: inline-block; width: 48px; }
.dx-num { display: inline-block; min-width: 24px; text-indent: 0; }
.dx-tbl { border-collapse: collapse; width: auto; max-width: 100%; table-layout: fixed; }
.dx-tbl td { padding: 1px 5px; vertical-align: top; }
.dx-tbl.dx-bd td { border: 1px solid #000; }
.dx-img { max-width: 100%; vertical-align: middle; }
.dx-ph { background: #FFF3BF; outline: 1px dashed #D9A400; border-radius: 2px; }
.dx-ph.filled { background: none; outline: 0; }
.dx-sig { display: inline-block; width: 220px; height: 64px; border-bottom: 1px solid #000; vertical-align: bottom; position: relative; }
.dx-sig img { position: absolute; left: 0; bottom: 2px; max-width: 100%; max-height: 62px; }
.dx-sig:empty::after { content: attr(data-label); position: absolute; left: 0; bottom: -16px; font: 10px Arial, sans-serif; color: #6B7A90; }
.dx-ini-row { display: flex; gap: 14px; margin-left: auto; font: 10px/1.2 Arial, sans-serif; color: #44536A; white-space: nowrap; }
.dx-ini-row span.box { display: inline-block; width: 70px; height: 30px; border-bottom: 1px solid #000; vertical-align: bottom; margin-left: 4px; position: relative; }
.dx-ini-row img { position: absolute; left: 0; bottom: 1px; max-width: 70px; max-height: 29px; }
.dx-cert { font: 10px/1.35 Arial, sans-serif; color: #44536A; margin-top: 10px !important; }
@media print {
  .dx { overflow: visible; }
  .dx-pages { display: block; padding: 0; zoom: 1 !important; }
  .dx-page { box-shadow: none; border: 0; page-break-after: always; break-after: page; margin: 0; }
  @page { size: letter; margin: 0; }
}

/* 2.6: the application pages (apply.php) */
.apply-pick { display: grid; gap: 12px; margin: 18px 0 6px; }
.apply-opt { display: block; padding: 18px 20px; border: 1px solid #BFC9D6; border-radius: 6px; text-decoration: none; color: var(--ink); }
.apply-opt strong { display: block; font-family: var(--display); font-size: 20px; color: var(--navy); margin-bottom: 4px; }
.apply-opt span { color: var(--muted); font-size: 14px; }
.apply-opt:hover, .apply-opt:focus-visible { border-color: var(--navy); background: #F3F6FA; }
.apply-card { max-width: 680px; }
.apply-form fieldset { margin: 0 0 22px; padding-top: 14px; border-top: 1px solid #DCE3EC; }
.apply-form legend { font-family: var(--display); font-size: 17px; font-weight: 650; color: var(--navy); padding: 0 10px 0 0; }
.apply-form .opt { font-weight: 400; color: var(--muted); font-size: 13px; }
.apply-form .help { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin: 2px 0 4px; }
.apply-form .lbl { font-size: 13px; font-weight: 600; color: var(--navy); margin: 12px 0 6px; }
.apply-form .who-pick { margin-bottom: 12px; }
.apply-file { margin-bottom: 14px; }
.apply-file input { display: block; margin-top: 6px; font-size: 14px; max-width: 100%; }
.apply-form label.check { margin: 6px 0 16px; }

/* 2.6: welcome package items, templates, documents to sign */
.pk-line { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.pk-it { white-space: nowrap; }
.pill.warn { background: #FFF1D6; color: #7A4B00; }
.pk-items li { align-items: center; }
.callout-line { background: #FFF7E3; border-left: 3px solid var(--brass); padding: 8px 12px; font-size: 14px; }
.tpl-fields code { background: #EEF2F7; padding: 1px 5px; border-radius: 3px; font-size: 12.5px; }
.copylist dd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.form .help { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.dx-wrap { max-width: 880px; margin: 0 auto 18px; }
.dx-sigblock { width: 100%; margin-top: 40px; }
.dx-sigblock td { width: 50%; vertical-align: top; padding: 0 12px 0 0; border: 0; }
.btn.hide { display: none; }
ul.plain { margin: 0; padding-left: 18px; }

/* 2.6: rental ads (desk and public pages) */
.ad-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ad-photos figure { margin: 0; }
.ad-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; }
.ad-photos form { margin-top: 4px; }
.ad-card { max-width: 860px; }
.ad-price { font-family: var(--display); font-size: 20px; font-weight: 650; color: var(--navy); margin: 0 0 14px; }
.ad-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-bottom: 18px; }
.ad-gallery a:first-child { grid-column: 1 / -1; }
.ad-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; }
.ad-gallery a:first-child img { aspect-ratio: 16 / 9; }
.ad-text { font-size: 16px; line-height: 1.6; margin-bottom: 18px; }
.ad-text ul { padding-left: 20px; }
.ad-list { display: grid; gap: 12px; margin-top: 14px; }
.ad-item { display: grid; grid-template-columns: 180px 1fr; gap: 14px; text-decoration: none; color: var(--ink); border: 1px solid #DCE3EC; border-radius: 6px; overflow: hidden; }
.ad-item img, .ad-noimg { width: 100%; height: 100%; min-height: 120px; object-fit: cover; background: #E6ECF3; display: block; }
.ad-meta { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 12px 0; }
.ad-meta strong { font-family: var(--display); color: var(--navy); font-size: 17px; }
.ad-meta .ad-price { font-size: 16px; margin: 0; }
@media (max-width: 520px) { .ad-item { grid-template-columns: 110px 1fr; } }

/* 2.6.2: the application in parts */
.steps-bar { list-style: none; display: flex; gap: 6px; margin: 0 0 18px; padding: 0; counter-reset: st; }
.steps-bar li { flex: 1; counter-increment: st; font-size: 12.5px; color: var(--muted); border-top: 3px solid #DCE3EC; padding-top: 6px; }
.steps-bar li::before { content: counter(st) ". "; }
.steps-bar li.on { color: var(--navy); font-weight: 600; border-color: var(--navy); }
.steps-bar li.done { border-color: var(--navy-3, #1F57C3); }
.apply-form[data-steps] fieldset { border-top: 0; padding-top: 0; }
.steps-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 18px; }
.steps-nav .btn.primary { margin-left: auto; }
.steps-nav .btn.big { flex: 1; }

/* 2.7: verify each answer of an application */
.vlist { list-style: none; margin: 0; padding: 0; }
.vlist li { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; padding: 14px 12px; border-top: 1px solid #E3E8EE; border-left: 4px solid transparent; }
.vlist li.ok { border-left-color: #1E8A5A; background: #F3FAF6; }
.vlist li.issue { border-left-color: var(--red); background: #FDF4F3; }
.vlist li.call { border-left-color: #E0A100; background: #FFF9EA; }
.v-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.v-what { font-size: 13px; font-weight: 600; color: var(--navy); }
.v-ans { font-size: 16px; overflow-wrap: anywhere; }
.v-state { display: flex; gap: 6px; flex: none; }
.vbtn { border: 1px solid #BFC9D6; background: #fff; border-radius: 18px; padding: 7px 12px; font: inherit; font-size: 13px; cursor: pointer; min-height: 36px; }
.vbtn.on.ok { background: #1E8A5A; border-color: #1E8A5A; color: #fff; }
.vbtn.on.issue { background: var(--red); border-color: var(--red); color: #fff; }
.vbtn.on.call { background: #E0A100; border-color: #E0A100; color: #1B2430; }
.decide .btn.primary { min-width: 140px; }
@media (max-width: 640px) { .vlist li { flex-direction: column; } .v-state { width: 100%; } .vbtn { flex: 1; } }

/* each company's own look: its logo in place of the HPM mark, and "Powered by HPM" at the bottom of every page */
img.brand-logo { height: auto; max-height: 64px; object-fit: contain; background: #fff; border-radius: 6px; padding: 4px; }
.brand-prev { display: block; max-width: 180px; max-height: 90px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 6px; }
input[type="color"] { display: block; width: 72px; height: 42px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
.powered { margin: 28px 0 0; text-align: center; font-size: 12px; }
.powered a { color: var(--muted); text-decoration: none; }
.powered a:hover { text-decoration: underline; color: var(--ink); }
.bare .powered a { color: rgba(255, 255, 255, .78); }
.bare .powered a:hover { color: #fff; }
body.bare.printable .powered a { color: var(--muted); }
@media print { .powered { display: none; } }

/* the guided visit of the demo: the lit part of the page, the shade around it, the card that explains, the button that starts it */
.tour-shade { position: fixed; z-index: 900; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(8, 20, 40, .66), 0 0 0 3px #fff, 0 0 0 6px var(--blue, #1F57C3); pointer-events: none; transition: top .2s, left .2s, width .2s, height .2s; }
.tour-shade.all { inset: 0; border-radius: 0; box-shadow: none; background: rgba(8, 20, 40, .66); }
.tour-card { position: fixed; z-index: 901; background: #fff; color: var(--ink); border-radius: 14px; padding: 16px 18px 14px; box-shadow: 0 18px 48px rgba(8, 20, 40, .35); }
.tour-card h2 { margin: 0 0 6px; font: 650 19px/1.25 var(--display); color: var(--navy); }
.tour-card p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; }
.tour-card .tour-n { margin: 0 0 4px; font-size: 12px; color: var(--muted); }
.tour-row { display: flex; align-items: center; gap: 8px; }
.tour-quit { margin-right: auto; background: none; border: 0; padding: 6px 0; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.tour-pill { position: fixed; z-index: 890; right: 16px; bottom: 16px; border: 0; border-radius: 999px; padding: 11px 18px; background: var(--navy); color: #fff; font: 600 14px/1 var(--text); box-shadow: 0 8px 22px rgba(8, 20, 40, .3); cursor: pointer; }
.tour-pill[hidden] { display: none; }
@media (max-width: 900px) { .tour-pill { bottom: 84px; } }
@media (prefers-reduced-motion: reduce) { .tour-shade { transition: none; } }
@media print { .tour-shade, .tour-card, .tour-pill { display: none; } }

/* ---------- 2.11 charts: forecast bars, loan lines, renewal watch, value bars, month calendar ---------- */
:root { --c-in: #1F9D63; --c-out: #7C8799; --c-amber: #C98A12; --c-blue: #2C5FB8; }
.chart { margin: 14px 0 4px; }
.chart-key { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: 0 0 10px; padding: 0; font-size: 12.5px; color: var(--muted); }
.chart-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; background: var(--c-out); vertical-align: -1px; }
.chart-key .k-a, .chart-key .g-money { background: var(--c-in); }
.chart-key .k-line { width: 16px; height: 3px; vertical-align: 3px; }
.chart-key .k-line.l-a { background: var(--c-out); } .chart-key .k-line.l-b, .chart-key .k-debt { background: var(--navy-3); }
.chart-key .k-eq { background: #C9D6EA; } .chart-key .g-maint { background: var(--c-amber); } .chart-key .g-legal { background: var(--red); } .chart-key .g-team { background: #7A5CC2; }
.bars, .lchart { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; }
.bars-y { display: flex; flex-direction: column; justify-content: space-between; height: 220px; font-size: 11.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.bars-y span { line-height: 1; transform: translateY(-50%); }
.bars-y span:last-child { transform: translateY(50%); }
.bars-plot { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; align-items: end; min-width: 0; }
.bars-col { min-width: 0; text-align: center; }
.bars-pair { height: 220px; display: flex; align-items: flex-end; justify-content: center; gap: 4px; background: linear-gradient(var(--line-2) 1px, transparent 1px) 0 0 / 100% 25%; border-bottom: 1px solid var(--line); }
.bar { display: block; width: 34%; max-width: 26px; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--c-out); position: relative; }
.bar.a { background: var(--c-in); } .bar.over { background: var(--red); }
.bar em { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font: 600 11px/1.6 var(--text); color: var(--red); white-space: nowrap; }
.bars-x { display: block; padding-top: 6px; font-size: 12px; color: var(--muted); }
.lchart .bars-y { height: 170px; }
.lines-plot { min-width: 0; }
.lines-plot svg { display: block; width: 100%; height: 170px; overflow: visible; background: linear-gradient(var(--line-2) 1px, transparent 1px) 0 0 / 100% 50%; border-bottom: 1px solid var(--line); }
.lines-plot polyline { stroke-width: 2; stroke: var(--c-out); } .lines-plot polyline.l-b { stroke: var(--navy-3); stroke-width: 2.5; }
.lines-x { display: flex; justify-content: space-between; padding-top: 6px; font-size: 12px; color: var(--muted); }
.callout.short { border: 1px solid var(--red); border-color: color-mix(in srgb, var(--red) 30%, transparent); background: var(--red-soft); color: var(--ink); border-radius: 4px; padding: 10px 14px; margin: 12px 0 0; font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 16px; }
.kpis.three { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.kpi { background: #F3F6FA; border: 1px solid var(--line-2); border-radius: 6px; padding: 14px 16px; min-width: 0; }
.kpi span { display: block; font-size: 13px; color: var(--muted); }
.kpi strong { display: block; font: 700 26px/1.2 var(--display); font-stretch: 105%; color: var(--navy); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi strong.owes { color: var(--red); }
.kpi small { display: block; font-size: 12.5px; color: var(--muted); }
.kpi.dark { background: var(--navy); border-color: var(--navy); } .kpi.dark span, .kpi.dark small { color: #C3CEDD; } .kpi.dark strong { color: #fff; }
.kpi.best { background: #E9F0FB; border-color: var(--navy-3); }
.ros { border-top: 1px solid var(--line-2); margin: 4px 0 16px; padding-top: 16px; }
.ros h3 { font-size: 16px; margin-bottom: 2px; }
.ros-say { background: var(--navy); color: #fff; border-radius: 6px; padding: 12px 16px; margin: 0 0 6px; }
.watch { list-style: none; margin: 0; padding: 0; }
.watch li { border-top: 1px solid var(--line-2); } .watch li:first-child { border-top: 0; }
.watch a { display: block; padding: 10px 2px; color: inherit; text-decoration: none; }
.watch-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; }
.watch-sub { display: block; font-size: 12.5px; color: var(--muted); margin: 1px 0 7px; }
.watch-bar { display: block; height: 5px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.watch-bar i { display: block; height: 100%; border-radius: 3px; background: #B9C3D2; }
.w-hold .watch-bar i { background: var(--red); } .w-hold .pill { background: var(--red-soft); color: var(--red); }
.w-shop .watch-bar i { background: var(--c-amber); } .w-shop .pill { background: #FBF1DC; color: #7A5200; }
.w-watch .watch-bar i { background: var(--c-blue); } .w-watch .pill { background: #E6EEFB; color: #1F4690; }
.vbars { list-style: none; margin: 0; padding: 0; }
.vbars li > a, .vb-row { display: grid; grid-template-columns: minmax(90px, 1.1fr) 3fr minmax(70px, auto); gap: 4px 12px; align-items: center; padding: 8px 0; color: inherit; text-decoration: none; border-top: 1px solid var(--line-2); }
.vbars li:first-child > a, .vbars li:first-child .vb-row { border-top: 0; }
.vb-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.vb-track { display: block; min-width: 0; }
.vb-val { display: block; height: 14px; border-radius: 3px; background: #C9D6EA; overflow: hidden; min-width: 2px; }
.vb-val i { display: block; height: 100%; background: var(--navy-3); }
.collect .vb-val { background: var(--line-2); } .collect .vb-val i { background: var(--c-in); }
.vb-fig { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vb-fig small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head { font: 500 12px/1 var(--text); letter-spacing: .04em; color: var(--muted); text-align: center; margin-bottom: 6px; }
.cal-day { min-height: 76px; border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 6px; min-width: 0; background: var(--paper); }
.cal-day.off { border-color: transparent; background: none; }
.cal-day.today { border-color: var(--navy-3); box-shadow: inset 0 0 0 1px var(--navy-3); }
.cal-n { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
.cal-it { display: block; font-size: 11.5px; line-height: 1.25; padding: 2px 5px; margin-top: 3px; border-radius: 3px; text-decoration: none; color: var(--ink); background: #E3F3EA; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-it.g-maint { background: #FBEBD3; } .cal-it.g-legal { background: var(--red-soft); } .cal-it.g-team { background: #ECE6F8; }
.cal-more { font-size: 11px; color: var(--muted); }
.cal-key { margin: 12px 0 0; }
@media (max-width: 720px) {
  .bars-pair, .bars-y { height: 170px; }
  .cal-row { gap: 3px; } .cal-day { min-height: 46px; padding: 3px; text-align: center; }
  .cal-it { display: inline-block; width: 8px; height: 8px; padding: 0; margin: 2px 1px 0; border-radius: 50%; background: var(--c-in); }
  .cal-it.g-maint { background: var(--c-amber); } .cal-it.g-legal { background: var(--red); } .cal-it.g-team { background: #7A5CC2; }
  .cal-it span { position: absolute; left: -9999px; }
  .vbars li > a, .vb-row { grid-template-columns: 1fr auto; } .vb-track { grid-column: 1 / -1; grid-row: 2; }
  .kpi strong { font-size: 22px; }
}
@media print { body:has(.owner-report) .rail, body:has(.owner-report) .topbar, body:has(.owner-report) .powered, body:has(.owner-report) .side { display: none !important; } body:has(.owner-report) .main { margin: 0; padding: 0; } .owner-report .block { break-inside: avoid; } }

/* 2.11.2: the lease opens in one click from the rent roll, next to the tenant's name */
.sheet .lease-ic { display: inline-flex; vertical-align: -3px; margin-right: 5px; color: var(--navy-3); border-radius: 3px; }
.sheet .lease-ic:hover { color: var(--brass-2); }

/* 2.12: bank statements of the month, building by building */
.bq { list-style: none; margin: 0; padding: 0; }
.bq li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 9px 0; border-top: 1px solid var(--line-2); }
.bq li:first-child { border-top: 0; }
.bq-name { font-weight: 600; flex: 1 1 180px; min-width: 0; }
.bq-st { flex: 1 1 200px; font-size: 13.5px; color: var(--muted); }
.bq li.out .bq-st { color: var(--red); font-weight: 600; }
.bq li.in .bq-name::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c-in); margin-right: 8px; }
.bq li.out .bq-name::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--red); margin-right: 8px; }
.bq form { margin: 0; }
