/* SandtonRS */

@font-face {
	font-family: "Inter var";
	src: url("fonts/inter-var.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0000-00FF, U+2013, U+2014, U+2018, U+2019, U+201C, U+201D, U+2022, U+2026, U+2212;
}

:root {
	color-scheme: only light;
	--bg: #f5f5f7;
	--bg-2: #ececf0;
	--surface: #fff;
	--ink: #1d1d1f;
	--ink-2: #6e6e73;
	--ink-3: #86868b;
	--line: rgba(0, 0, 0, .08);
	--edge: #8e8e93;
	--blue: #0a5fd1;
	--blue-2: #084fb0;
	--blue-t: #e8f1fd;
	--green: #1a7f43;
	--green-b: #2fa45d;
	--green-t: #e6f5ec;
	--amber: #9a5b00;
	--amber-b: #e8a019;
	--amber-t: #fdf3df;
	--red: #c9182b;
	--red-b: #e8364a;
	--red-t: #fdeaec;
	--grey-t: #eeeef1;
	--r-s: 8px;
	--r: 12px;
	--r-m: 20px;
	--r-l: 28px;
	--shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .05);
	--font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter var", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 15px/1.45 var(--font);
	letter-spacing: -.006em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
:where(a) { color: var(--blue); text-decoration: none; }
:where(a):hover { text-decoration: underline; }
b, strong { font-weight: 600; }
small { font-size: 13px; color: var(--ink-2); }
svg.ic { flex: none; display: block; }
img { max-width: 100%; }
p, li, dd { overflow-wrap: anywhere; text-wrap: pretty; }
small, label, summary b { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.count, .group b, .debtor__amt b { overflow-wrap: normal; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }

.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
.muted { color: var(--ink-2); }
.grow { flex: 1 1 auto; min-width: 0; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 600; color: var(--ink); }
.is-red { color: var(--red); }
.is-green { color: var(--green); }
.is-blue { color: var(--blue); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; font-weight: 400; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: 980px;
	background: var(--blue);
	color: #fff;
	font-weight: 500;
	font-size: 15px;
	white-space: nowrap;
	cursor: pointer;
	text-decoration: none;
	transition: background-color .15s ease, transform .1s ease;
}
.btn:hover { background: var(--blue-2); text-decoration: none; color: #fff; }
.btn:active { transform: scale(.98); }
.btn--ghost { background: var(--grey-t); color: var(--ink); }
.btn--ghost:hover { background: #e2e2e7; color: var(--ink); }
.btn--danger { background: var(--red); }
.btn--danger:hover { background: #a81222; }
.btn--sm { min-height: 34px; padding: 0 14px; font-size: 14px; }
.btn--full { width: 100%; }
.textlink { display: inline-flex; align-items: center; min-height: 24px; background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; font-size: 14px; }
.textlink:hover { text-decoration: underline; }
.textlink--red { color: var(--red); }
.iconbtn {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: var(--grey-t);
	color: var(--ink);
	cursor: pointer;
	flex: none;
}
@media (hover: hover) { .iconbtn:hover { background: #e2e2e7; } }

/* Chips and counts */
.chip { display: inline-block; padding: 2px 10px; border-radius: 980px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.chip--green { background: var(--green-t); color: var(--green); }
.chip--blue { background: var(--blue-t); color: var(--blue-2); }
.chip--amber { background: var(--amber-t); color: var(--amber); }
.chip--red { background: var(--red-t); color: var(--red); }
.chip--grey { background: var(--grey-t); color: var(--ink-2); }
.count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red-b); color: #fff; font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; }
.count--plain { background: var(--grey-t); color: var(--ink); margin-left: 0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot--clear { background: var(--green-b); }
.dot--due { background: var(--blue); }
.dot--part { background: var(--amber-b); }
.dot--overdue { background: var(--red-b); }
.dot--empty { background: #d2d2d7; }
.dot--billedbar { background: #d2d2d7; }

/* The frame */
.app--manage { padding-left: 252px; }
.side {
	position: fixed;
	inset: 0 auto 0 0;
	width: 252px;
	padding: 16px 12px 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: rgba(236, 236, 240, .82);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-right: 1px solid var(--line);
	overflow-y: auto;
}
.side nav { flex: 1 1 auto; }
.side__brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 8px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.side__brand:hover { text-decoration: none; }
.side__group { margin: 16px 8px 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.side__link { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 6px 10px; border-radius: var(--r-s); color: var(--ink); font-size: 14px; }
.side__link .ic { color: var(--blue); }
.side__link:hover { background: rgba(0, 0, 0, .05); text-decoration: none; }
.side__link.is-on { background: var(--blue); color: #fff; }
.side__link.is-on .ic { color: #fff; }
.side__link.is-on .count { background: #fff; color: var(--blue); }
.side__me { display: flex; align-items: center; gap: 10px; padding: 8px; border-top: 1px solid var(--line); }
.side__who { flex: 1; min-width: 0; line-height: 1.25; }
.side__who b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side__who small { font-size: 12px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(180deg, #9a9aa2, #6e6e73); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }
.main { max-width: 1240px; margin: 0 auto; padding: 32px 40px 72px; }
.banner { margin: -8px 0 20px; padding: 8px 14px; border-radius: var(--r); background: var(--amber-t); color: var(--amber); font-size: 13px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.pagehead h1 { font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -.028em; text-wrap: balance; }
.pagehead__sub { color: var(--ink-2); margin-top: 4px; }
.pagehead__actions { display: flex; gap: 8px; flex: none; }
.backlink { display: inline-flex; align-items: center; min-height: 24px; gap: 2px; font-size: 14px; margin-bottom: 8px; margin-left: -4px; }
.tabs { display: none; }

/* Sections */
.section { margin-top: 32px; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 12px; flex-wrap: wrap; }
.section > .section__head:first-child, .two > div > .section__head:first-child { margin-top: 0; }
.section__head h2 { font-size: 20px; font-weight: 600; letter-spacing: -.018em; }
.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; }
.lead { color: var(--ink-2); margin-bottom: 16px; max-width: 68ch; }
.panel { background: var(--surface); border-radius: var(--r-m); padding: 20px; }
.empty { background: var(--surface); border-radius: var(--r-m); padding: 40px 20px; text-align: center; color: var(--ink-2); }
.allclear { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r); background: var(--green-t); color: var(--green); font-weight: 500; margin-bottom: 16px; }
.callout { margin-top: 24px; padding: 16px 20px; border-radius: var(--r); background: var(--bg-2); font-size: 14px; }
.callout b { display: block; margin-bottom: 2px; }
.callout--red { background: var(--red-t); color: var(--red); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .segments { margin-bottom: 0; }

/* Tiles */
.hero-tiles { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--surface); border-radius: var(--r-m); padding: 20px; min-width: 0; }
.tile--link { display: block; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.tile--link:hover { text-decoration: none; box-shadow: var(--shadow); }
.tile--ring { display: flex; align-items: center; gap: 20px; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.figure { font-size: 30px; font-weight: 700; letter-spacing: -.026em; line-height: 1.15; margin: 4px 0 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.figure--sm { font-size: 20px; letter-spacing: -.018em; font-weight: 600; }
.figure__of { font-size: 16px; font-weight: 500; color: var(--ink-2); letter-spacing: -.01em; }
.tile .muted { font-size: 13px; }
.ring { position: relative; width: 136px; height: 136px; flex: none; }
.ring svg { display: block; }
.ring circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.ring__track { stroke: var(--grey-t); }
.ring__value { stroke: var(--green-b); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }

.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; background: var(--surface); border-radius: var(--r-m); padding: 20px; margin-bottom: 16px; }
.summary--one { grid-template-columns: minmax(0, 1fr); }

/* The room map */
.houses { display: grid; grid-template-columns: minmax(0, 10fr) minmax(0, 12fr); gap: 16px; }
.house { background: var(--surface); border-radius: var(--r-m); padding: 16px; }
.house header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; gap: 8px; }
.house h3 { font-size: 16px; font-weight: 600; letter-spacing: -.012em; }
.house .muted { font-size: 13px; }
.roomgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.house:nth-child(2) .roomgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.roomtile {
	display: flex;
	flex-direction: column;
	min-height: 84px;
	padding: 8px 10px;
	border-radius: var(--r);
	background: var(--grey-t);
	color: var(--ink);
	transition: transform .12s ease;
	min-width: 0;
}
.roomtile:hover { text-decoration: none; transform: translateY(-1px); }
.roomtile b { font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.roomtile span { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roomtile small { margin-top: auto; font-size: 12px; font-weight: 600; color: inherit; white-space: nowrap; }
.roomtile--clear { background: var(--green-t); color: #135e32; }
.roomtile--due { background: var(--blue-t); color: var(--blue-2); }
.roomtile--part { background: var(--amber-t); color: #7a4800; }
.roomtile--overdue { background: var(--red-t); color: #a21222; }
.roomtile--empty, .roomtile--closed { background: var(--bg); color: var(--ink-2); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }

/* Chart */
.chart svg { width: 100%; height: auto; display: block; }
.chart text { font: 500 11px var(--font); fill: var(--ink-2); }
.bar--billed { fill: #d2d2d7; }
.bar--received { fill: var(--green-b); }
.chart .legend { margin-top: 10px; }

/* Grouped lists */
.group { background: var(--surface); border-radius: var(--r-m); overflow: hidden; }
.group > li { display: flex; align-items: center; gap: 12px; }
.group > li > a, .group--plain > li { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; color: var(--ink); min-height: 48px; }
.group > li > a:hover { background: var(--bg); text-decoration: none; }
.group > li + li { box-shadow: 0 -1px 0 var(--line); }
.group .grow b, .group .grow small { display: block; }
.group > li > a > b, .group--plain > li > b { flex: none; white-space: nowrap; }
.group .ic:last-child { color: var(--ink-3); }

/* Tables */
.tablewrap { background: var(--surface); border-radius: var(--r-m); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 12px 14px 8px; white-space: nowrap; }
.table td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.table a { color: var(--ink); display: inline-block; padding: 3px 0; min-width: 24px; }
.table td a:hover { color: var(--blue); }
.table tbody tr:hover { background: #fafafa; }
.table input[type="checkbox"] { width: 24px; height: 24px; margin: 0; accent-color: var(--blue); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tfoot th, .table tfoot td { border-top: 1px solid var(--line); padding: 10px 14px; color: var(--ink); font-size: 14px; }
.is-struck td { color: var(--ink-3); }
.is-struck td:nth-child(2) { text-decoration: line-through; }
.rowact { display: flex; gap: 6px; justify-content: flex-end; }
.rowact form { display: contents; }
td.rowact { display: table-cell; text-align: right; white-space: nowrap; }
td.rowact .iconbtn { margin-left: 6px; vertical-align: middle; }
td.rowact form { display: inline; }
.rowform select { padding: 6px 28px 6px 10px; }

/* Segmented control */
.segments { display: inline-flex; max-width: 100%; gap: 2px; padding: 3px; margin-bottom: 16px; background: #e3e3e8; border-radius: 10px; overflow-x: auto; scrollbar-width: none; }
.segments::-webkit-scrollbar { display: none; }
.segments a { padding: 5px 14px; border-radius: 8px; color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; }
.segments a:hover { text-decoration: none; background: rgba(255, 255, 255, .5); }
.segments a.is-on { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }

/* Search */
.search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; background: #e3e3e8; border-radius: var(--r); color: var(--ink-2); }
.search input { border: 0; background: none; outline: 0; width: 220px; height: 30px; color: var(--ink); }
.search--wide { margin-bottom: 16px; }
.search--wide input { width: 100%; }

/* Forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form--one, .form--nested.form--one { grid-template-columns: minmax(0, 1fr); }
.form h2 { grid-column: 1 / -1; font-size: 17px; font-weight: 600; letter-spacing: -.014em; }
.form__foot { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.form > p { grid-column: 1 / -1; }
.field { display: grid; gap: 4px; align-content: start; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field > label { font-size: 13px; font-weight: 500; color: var(--ink); }
.field small { font-size: 12px; }
.field__t { font-size: 13px; font-weight: 500; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="date"], input[type="month"], select, textarea {
	width: 100%;
	min-height: 40px;
	padding: 8px 12px;
	background: var(--surface);
	border: 1px solid var(--edge);
	border-radius: 10px;
	font-size: 15px;
}
.panel input[type="text"], .panel input[type="email"], .panel input[type="tel"], .panel input[type="password"], .panel input[type="number"], .panel input[type="date"], .panel input[type="month"], .panel select, .panel textarea { background: var(--bg); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10, 95, 209, .2); }
input[type="file"] { width: 100%; min-height: 34px; font-size: 14px; color: var(--ink-2); }
input[type="file"]::file-selector-button { margin-right: 12px; height: 34px; padding: 0 14px; border: 0; border-radius: 980px; background: var(--grey-t); color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: #e2e2e7; }
textarea { resize: vertical; min-height: 96px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.inline { display: flex; flex-wrap: wrap; gap: 8px 20px; grid-column: 1 / -1; }
.inlineform { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.inlineform .field { flex: 1 1 180px; }
.rangebar { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.rangebar .field { width: 170px; }
.uploadbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.uploadbar > div:first-of-type { flex: 1 1 280px; }
.uploadbar b, .uploadbar small { display: block; }
.uploadbar input[type="file"] { width: auto; max-width: 260px; }
.codebox { display: block; padding: 8px 12px; background: var(--bg); border-radius: var(--r-s); overflow-wrap: anywhere; margin-top: 4px; }
.toggles { display: grid; gap: 2px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; cursor: pointer; }
.toggle b { display: block; font-weight: 500; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle i { position: relative; width: 44px; height: 26px; border-radius: 13px; background: #c7c7cc; transition: background-color .2s ease; flex: none; }
.toggle i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s ease; }
.toggle input:checked + i { background: var(--green-b); }
.toggle input:checked + i::after { transform: translateX(18px); }
.toggle input:focus-visible + i { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Sheets */
.sheet { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 0; padding: 24px; border-radius: var(--r-l); background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px rgba(0, 0, 0, .22); }
.sheet::backdrop { background: rgba(0, 0, 0, .3); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.sheet h2 { grid-column: 1 / -1; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.sheet__lead { grid-column: 1 / -1; color: var(--ink-2); margin-top: -8px; }
.sheet__foot { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.sheet input[type="text"], .sheet input[type="date"], .sheet select, .sheet textarea { background: var(--bg); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: min(560px, calc(100vw - 32px)); padding: 12px 18px; border-radius: var(--r); background: rgba(29, 29, 31, .92); color: #fff; font-size: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .25); z-index: 90; overflow-wrap: anywhere; animation: rise .25s ease both; }
.toast--error { background: var(--red); }
@keyframes rise { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

/* Notes */
.note { background: var(--surface); border-radius: var(--r); padding: 14px 16px; margin-top: 10px; }
.note--pinned { background: var(--amber-t); }
.note--off { opacity: .6; }
.note footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; align-items: center; }
.idbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.idbar b, .idbar small { display: block; }
.idbar code { font-size: 16px; }

/* Messages */
.thread { display: grid; gap: 10px; margin-top: 16px; }
.bubble { max-width: 76%; padding: 10px 14px; border-radius: 18px; background: var(--surface); }
.bubble--out { justify-self: end; background: var(--blue); color: #fff; }
.bubble--out footer { color: rgba(255, 255, 255, .86); }
.bubble--out a { color: #fff; }
.bubble footer { font-size: 12px; color: var(--ink-2); margin-top: 4px; }

/* Arrears */
.agebar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r-m); overflow: hidden; }
.agebar div { background: var(--surface); padding: 14px 16px; }
.agebar small, .agebar b { display: block; }
.agebar b { font-size: 20px; font-weight: 600; letter-spacing: -.018em; white-space: nowrap; }
.agebar .is-old b { color: var(--red); }
.debtors { display: grid; gap: 8px; }
.debtor { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; background: var(--surface); border-radius: var(--r); padding: 10px 14px; }
.debtor__room { width: 44px; height: 44px; border-radius: 12px; background: var(--red-t); color: #a21222; display: grid; place-items: center; font-weight: 700; font-size: 17px; }
.debtor__room:hover { text-decoration: none; }
.debtor__who a { display: block; padding: 2px 0; }
.debtor__who small { display: block; }
.debtor__amt { text-align: right; font-variant-numeric: tabular-nums; }
.debtor__amt b, .debtor__amt small { display: block; white-space: nowrap; }
.debtor__act { display: flex; gap: 6px; }

/* Approvals, repairs, bank */
.approval { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; flex-wrap: wrap; }
.approval small, .approval .grow > b { display: block; }
.approval__act { display: flex; gap: 8px; }
.repair { margin-bottom: 10px; }
.repair header { display: flex; align-items: center; gap: 8px; }
.repair .grow b, .repair .grow small { display: block; }
.repair > p { margin-top: 8px; }
.banklist { display: grid; gap: 8px; }
.bankrow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 8px 16px; align-items: center; background: var(--surface); border-radius: var(--r); padding: 12px 14px; }
.bankrow__what b, .bankrow__what span, .bankrow__what small, .bankrow__why small { display: block; }
.bankrow__why small { margin-top: 4px; }
.bankrow__act { display: flex; align-items: center; gap: 8px; }
.bankrow__act .field { flex: 1; min-width: 0; }
.bankrow__act .btn { min-height: 40px; }
.bankrow__act .field > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Checks */
.check-row__mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--green-t); color: var(--green); }
.check-row__list { margin: 0 16px 8px 52px; font-size: 14px; }
.check-row__list li { padding: 3px 0; }
.walk__row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 10px 16px; }
.walk__row + .walk__row { box-shadow: 0 -1px 0 var(--line); }
.walk__room { display: flex; gap: 12px; align-items: baseline; min-width: 0; }
.walk__room b { font-size: 17px; font-weight: 700; width: 26px; flex: none; }
.walk__who { min-height: 36px; padding: 6px 10px; background: var(--bg) !important; }

/* Room by month */
.heat { border-collapse: separate; border-spacing: 4px; padding: 12px; margin: 0 auto; font-size: 13px; }
.heat th { font-weight: 600; color: var(--ink-2); font-size: 12px; padding: 0 2px; text-align: center; }
.h { position: relative; width: 40px; height: 22px; border-radius: 5px; background: var(--grey-t); }
.h--paid { background: var(--green-b); }
.h--part { background: var(--amber-b); }
.h--unpaid { background: var(--red-b); }
.h--none { background: var(--grey-t); }

/* Sign-in screens */
.gate { min-height: 100svh; max-width: 400px; margin: 0 auto; padding: 56px 16px 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.gate__brand { display: block; margin-bottom: 20px; }
.gate__title { font-size: 30px; font-weight: 700; letter-spacing: -.026em; line-height: 1.12; }
.gate__lead { color: var(--ink-2); margin: 6px 0 24px; }
.gate__form { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; text-align: left; background: var(--surface); padding: 20px; border-radius: var(--r-m); }
.gate__form input { background: var(--bg); }
.gate__link { margin-top: 16px; font-size: 14px; }
.gate__note { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.gate__list { width: 100%; background: var(--surface); border-radius: var(--r-m); overflow: hidden; text-align: left; }
.gate__row { display: flex; align-items: center; gap: 14px; padding: 16px; color: var(--ink); }
.gate__row + .gate__row { box-shadow: 0 -1px 0 var(--line); }
.gate__row:hover { background: #fafafa; text-decoration: none; }
.gate__row > span:nth-child(2) { flex: 1; }
.gate__row b, .gate__row small { display: block; }
.gate__row > .ic { color: var(--ink-3); }
.gate__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-t); color: var(--blue); display: grid; place-items: center; flex: none; }

/* The resident side */
.app--resident { padding-bottom: 96px; }
.rtop { position: sticky; top: 0; z-index: 20; background: rgba(245, 245, 247, .82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.rtop { display: flex; align-items: center; justify-content: space-between; padding: 10px max(16px, calc((100vw - 680px) / 2)); }
.rtop__brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 16px; letter-spacing: -.018em; }
.rtop__brand:hover { text-decoration: none; }
.rtop__nav { display: flex; gap: 2px; }
.rtop__nav a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 980px; color: var(--ink); font-size: 14px; }
.rtop__nav a .ic { display: none; }
.rtop__nav a:hover { background: rgba(0, 0, 0, .05); text-decoration: none; }
.rtop__nav a.is-on { background: var(--grey-t); font-weight: 500; }
.rmain { max-width: 680px; margin: 0 auto; padding: 24px 16px; }
.rhello { font-size: 30px; font-weight: 700; letter-spacing: -.026em; line-height: 1.12; margin-bottom: 4px; }
.rmain > .panel { margin-top: 16px; }
.rsec { margin-top: 28px; }
.rsec h2 { font-size: 20px; font-weight: 600; letter-spacing: -.018em; margin-bottom: 10px; }
.balance { margin-top: 16px; padding: 24px; border-radius: var(--r-l); background: var(--surface); display: grid; gap: 2px; justify-items: start; }
.balance__amt { font-size: 44px; font-weight: 700; letter-spacing: -.034em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.balance__sub { color: var(--ink-2); }
.balance .btn { margin-top: 14px; }
.balance--late .balance__amt, .balance--late .eyebrow { color: var(--red); }
.balance--ok .eyebrow { color: var(--green); }
.notice { margin-top: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--blue-t); }
.dterms { margin-top: 12px; padding: 18px; border-radius: var(--r-m); background: var(--blue-t); }
.dterms h3 { font-size: 17px; font-weight: 600; letter-spacing: -.012em; margin-bottom: 4px; }
.dterms ul { display: grid; gap: 8px; margin: 10px 0 12px; padding: 0; list-style: none; }
.dterms li { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.dterms li .ic { flex: none; margin-top: 2px; color: var(--blue); }
.dterms__foot { font-size: 14px; }
.rsec .muted + .btn { margin-top: 10px; }
.dterms .textlink { display: inline-block; margin-top: 8px; }
.rgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.rcard { display: grid; gap: 10px; padding: 16px; border-radius: var(--r-m); background: var(--surface); color: var(--ink); }
.rcard .ic { color: var(--blue); }
.rcard:hover { text-decoration: none; box-shadow: var(--shadow); }
.refbox { background: var(--surface); border-radius: var(--r-m); padding: 20px; margin-bottom: 12px; display: grid; gap: 6px; justify-items: start; }
.refbox__code { font-size: 30px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ledger { background: var(--surface); border-radius: var(--r-m); overflow: hidden; margin-top: 12px; }
.ledger li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.ledger li + li { box-shadow: 0 -1px 0 var(--line); }
.ledger .grow b, .ledger .grow small { display: block; }
.ledger .grow b { font-weight: 500; }
.ledger__amt { text-align: right; flex: none; }
.ledger__amt b, .ledger__amt small { display: block; white-space: nowrap; font-variant-numeric: tabular-nums; }
.terms { max-height: 52vh; overflow-y: auto; }
.qr { width: 192px; }
.qr img, .qr svg { display: block; width: 100%; height: auto; }

/* Narrower screens */
@media (max-width: 1240px) {
	.hero-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tile--ring { grid-column: 1 / -1; }
	.houses { grid-template-columns: minmax(0, 1fr); }
	.bankrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 1040px) {
	.main { padding: 28px 24px 72px; }
	.two { grid-template-columns: minmax(0, 1fr); }
	.summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.app--manage { padding-left: 0; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
	.side { display: none; }
	.main { padding: 20px 16px 32px; }
	.pagehead h1 { font-size: 28px; }
	.tabs {
		position: fixed;
		inset: auto 0 0 0;
		z-index: 40;
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		padding-bottom: env(safe-area-inset-bottom);
		background: rgba(245, 245, 247, .86);
		-webkit-backdrop-filter: saturate(180%) blur(20px);
		backdrop-filter: saturate(180%) blur(20px);
		border-top: 1px solid var(--line);
	}
	.tabs a { display: grid; justify-items: center; gap: 2px; padding: 8px 2px 6px; color: var(--ink-2); font-size: 11px; font-weight: 500; }
	.tabs a:hover { text-decoration: none; }
	.tabs a.is-on { color: var(--blue); }
	.toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
	.roomgrid, .house:nth-child(2) .roomgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.agebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.agebar div:last-child { grid-column: 1 / -1; }
	.debtor { grid-template-columns: 44px minmax(0, 1fr) auto; }
	.debtor__act { grid-column: 2 / -1; }
	.walk__row { grid-template-columns: minmax(0, 1fr) auto; }
	.walk__who { grid-column: 1 / -1; }
	.bubble { max-width: 90%; }
}
@media (max-width: 640px) {
	.hero-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.tile { padding: 16px; }
	.figure { font-size: 24px; }
	.ring, .ring svg { width: 104px; height: 104px; }
	.ring b { font-size: 21px; }
	.tile--ring { gap: 14px; }
	.tile--link:last-child { grid-column: 1 / -1; }
	.form, .sheet form { grid-template-columns: minmax(0, 1fr); }
	.pagehead { flex-wrap: wrap; align-items: flex-start; }
	.pagehead__actions, .pagehead__actions .btn { width: 100%; }
	.sheet { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: var(--r-l) var(--r-l) 0 0; max-height: 92vh; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
	.bankrow { grid-template-columns: minmax(0, 1fr); }
	.search, .search input { width: 100%; }
	.table { font-size: 13px; }
	.table th, .table td { padding-left: 10px; padding-right: 10px; }
	.summary { gap: 12px; padding: 16px; }
	.figure--sm { font-size: 17px; white-space: normal; }
	.rtop { padding: 10px 16px; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
	.rtop__nav { position: fixed; inset: auto 0 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding-bottom: env(safe-area-inset-bottom); background: rgba(245, 245, 247, .9); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line); }
	.rtop__nav a { display: grid; justify-items: center; gap: 2px; padding: 8px 2px 6px; border-radius: 0; font-size: 11px; font-weight: 500; color: var(--ink-2); }
	.rtop__nav a .ic { display: block; }
	.rtop__nav a.is-on { background: none; color: var(--blue); }
	.balance__amt { font-size: 38px; }
}
@media (max-width: 400px) {
	.roomgrid, .house:nth-child(2) .roomgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media print {
	.side, .tabs, .banner, .pagehead__actions, .segments, .actions, .rangebar, .toast { display: none !important; }
	.app--manage { padding: 0; }
	body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
