/* Shared ConnectEstate palette and reference logo. */
.message-publication fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.message-publication legend { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.publication-choices { display: flex; gap: 10px; }
.publication-choices label { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 12px 10px; border: 1px solid var(--field); border-radius: 8px; font-size: 14px; cursor: pointer; }
.publication-choices label:has(input:checked) { border-color: var(--accent); background: #eff9fe; }
.publication-choices input { width: 17px; height: 17px; min-height: 0; padding: 0; margin: 0; accent-color: #218fb8; box-shadow: none; flex-shrink: 0; }
.publication-date { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,110px); gap: 12px; margin-top: 16px; }
.publication-date[hidden] { display: none; }
.publication-date label, .publication-date input { min-width: 0; }
.publication-date input { padding-inline: 8px; }
.editor-form:has(.message-publication) textarea { min-height: 120px; height: 120px; }
.message-publication { margin-top: 24px; }
:root {
    color-scheme: light;
    --navy: #142f59;
    --muted: #748fb7;
    --accent: #1599da;
    --page: #f4f8fb;
    --line: #e1ebf4;
    --field: #d6e3f1;
    --sidebar-width: 274px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--navy); background: var(--page); font: 16px/1.5 "Segoe UI", Arial, sans-serif; }
a { color: #158bc1; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
.icon { display: block; width: 24px; height: 24px; flex: 0 0 24px; }
.workspace { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }
.admin-page { background: radial-gradient(ellipse at 70% 0%, #f5f9fb 0%, #f4f8fb 55%, #f1f7fa 100%); }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100dvh; overflow: hidden; padding: 18px 20px 24px 22px; background: linear-gradient(115deg, #fff, #fefdfd); border-right: 1px solid #f0f4f7; }
.brand { display: block; width: 238px; height: 46px; flex-shrink: 0; margin-left: 4px; overflow: hidden; }
.brand-art { display: block; width: 238px; height: 46px; background: url("images/admin-reference.png") -26px -17px / 1582px 989px no-repeat; }
.sidebar .brand { width: 214px; height: 42px; }
.sidebar .brand-art { transform: scale(.9); transform-origin: left top; }
.property-toolbar, .property-title-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.property-toolbar { margin: 24px 0; align-items: flex-end; }
.property-toolbar .search { flex: 1; margin: 0; }
.property-breadcrumb { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.property-count { display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 20px; background: var(--page); font-size: 16px; vertical-align: middle; }
.property-list-total { margin: 12px 0 0; font-size: 14px; }
.property-tabs { display: flex; align-items: stretch; gap: 5px; margin: 28px 0 -1px; position: relative; z-index: 1; }
.property-tabs a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; min-width: 170px; padding: 12px 21px; border: 1px solid var(--line); border-radius: 9px 9px 0 0; background: var(--page); color: var(--muted); font-weight: 600; }
.property-tabs a:hover { text-decoration: none; color: var(--navy); }
.property-tabs a[aria-current="page"] { background: #fefefe; border-bottom-color: #fefefe; color: var(--navy); }
.property-tabs a span { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--line); color: var(--navy); font-size: 12px; }
.property-tabs a[aria-current="page"] span { background: #e0f4fc; color: var(--accent); }
.section-properties .property-tab-card { border-top-left-radius: 0; }
.property-tab-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; }
.property-tab-toolbar .search { flex: 1; margin: 0; }
.property-tab-footer { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; }
.entity-cell .property-door-name { display: flex; align-items: center; gap: 14px; white-space: normal; }
@media(max-width:760px) { .property-tabs a { min-width: 0; flex: 1; padding-inline: 12px; } .property-tab-toolbar .search { flex-basis: 100%; } }
/* Use the exact logo pixels in the supplied reference; no reconstructed wordmark. */
.tenant-picker { margin: 38px 6px 24px; min-height: 139px; flex-shrink: 0; }
.tenant-picker label, .field-label { font-size: 16px; font-weight: 600; }
.tenant-picker select { min-height: 44px; padding: 9px 14px; margin-top: 10px; font-size: 16px; }
.tenant-picker button { width: 100%; min-height: 41px; margin-top: 14px; padding: 8px 12px; }
.tenant-current p { margin: 10px 0 0; padding: 9px 14px; min-height: 44px; border: 1px solid var(--field); border-radius: 8px; color: var(--navy); background: #fff; }
.main-nav { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-bottom: 16px; scrollbar-width: thin; }
.main-nav a { display: flex; align-items: center; gap: 20px; min-height: 48px; padding: 10px 14px; margin-bottom: 3px; color: var(--navy); border-radius: 9px; }
.main-nav a:hover { background: #eff7fb; text-decoration: none; }
.main-nav a[aria-current="page"] { background: #e0f4fc; color: var(--accent); font-weight: 600; }
.nav-label { color: var(--muted); letter-spacing: 1.5px; font-size: 11px; margin: 20px 14px 8px; }
.identity { margin: auto 6px 0; padding: 18px 3px 7px; border-top: 1px solid var(--line); }
.identity strong { display: block; font-weight: 600; }
.identity span { display: block; margin-top: 2px; color: var(--muted); }
.main-nav + .identity { margin-top: 20px; }
.sidebar .identity { flex-shrink: 0; }
.workspace main { width: 100%; min-width: 0; padding: 53px 34px 44px 40px; }
.page-heading { margin-bottom: 15px; }
.eyebrow { color: #229ad5; font-size: 14px; font-weight: 650; letter-spacing: 1.4px; }
h1 { font-size: 40px; line-height: 1.2; letter-spacing: -.8px; margin: 8px 0 4px; font-weight: 700; }
.page-description { font-size: 20px; line-height: 1.45; color: #6987b1; margin: 0; }
h2 { margin: 0 0 15px; font-size: 24px; font-weight: 650; line-height: 1.3; letter-spacing: -.45px; }
h3 { margin: 0; font-size: 17px; font-weight: 600; }
p { color: var(--muted); margin: 8px 0 18px; }
.card { background: #fefefe; border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; margin-bottom: 29px; box-shadow: 0 5px 25px #40689506; }
.card form { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
label { display: block; flex: 1; min-width: 170px; font-size: 16px; font-weight: 400; color: var(--navy); }
input, select, textarea { display: block; width: 100%; min-height: 49px; margin-top: 6px; padding: 11px 16px; border: 1.5px solid var(--field); border-radius: 8px; color: var(--navy); background: #fff; box-shadow: 0 1px 2px #35608002; }
input::placeholder, textarea::placeholder { color: #7e99bd; opacity: 1; }
select { padding-right: 12px; }
textarea { min-width: 0; resize: vertical; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 11px 27px; border: 1px solid #2788ac; border-radius: 8px; color: #fff; background: linear-gradient(115deg, #318eb3, #2b85a9); box-shadow: inset 0 1px 3px #12557a18; font-size: 16px; font-weight: 600; cursor: pointer; text-align: center; }
button:hover, .button:hover { background: #237c9e; text-decoration: none; }
button:disabled { opacity: .6; cursor: wait; }
.secondary { color: #148ac2; background: #eaf5fa; border-color: transparent; box-shadow: none; }
.secondary:hover { background: #dceff8; }
.outline { color: #1599da; background: #fff; border: 1px solid #15a8ed; box-shadow: none; font-weight: 500; }
.outline:hover { background: #edf9fe; }
.record { padding: 21px 0; border-top: 1px solid var(--line); }
.record:first-of-type { border-top: 0; }
.record:last-child { padding-bottom: 0; }
.record p, .record strong, .record h3 { overflow-wrap: anywhere; }
.record form { margin-top: 12px; }
.body-text { white-space: pre-wrap; color: #46668c; }
.meta { font-size: 14px; }
.empty { padding: 26px; text-align: center; color: var(--muted); }
.search { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-bottom: 26px; }
.search-query { max-width: 488px; }
.search-filter { max-width: 390px; }
.search-field { position: relative; display: block; }
.search-field .icon { position: absolute; left: 16px; top: 14px; width: 22px; height: 22px; color: #6282ab; pointer-events: none; }
.search-field input { padding-left: 56px; }
.search button { min-width: 84px; }
.members-card { padding-top: 24px; }
.members-card .search { margin-bottom: 25px; }
.member-columns, .member-row form { display: grid; grid-template-columns: minmax(230px, 1.33fr) minmax(190px, 1fr) minmax(175px, .92fr) 182px; gap: 32px; align-items: center; }
.member-columns { min-height: 45px; font-size: 16px; font-weight: 600; }
.member-row { padding: 12px 2px; border-top: 1px solid var(--line); }
.member-person { display: flex; align-items: center; gap: 26px; min-width: 0; }
.member-person > div { min-width: 0; }
.member-person h3 { line-height: 1.45; }
.member-person p { margin: 2px 0 0; font-size: 17px; overflow-wrap: anywhere; }
.member-suffix { font-weight: 400; color: var(--muted); }
.avatar { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; font-size: 18px; font-weight: 600; }
.avatar-inactive { color: #466084; background: radial-gradient(circle at 35% 30%, #f1f2f8, #e6e8f2); }
.avatar-mint { color: #157e90; background: radial-gradient(circle at 35% 30%, #e3fbf5, #cdf4ef); }
.avatar-blue { color: #147ae3; background: radial-gradient(circle at 35% 30%, #e0efff, #c9e4ff); }
.avatar-purple { color: #642ac5; background: radial-gradient(circle at 35% 30%, #f2e8fc, #e5d6f7); }
.member-row label { min-width: 0; }
.member-row select { margin: 0; }
.member-row button { width: 100%; padding: 11px 14px; white-space: nowrap; }
.row-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.status-field { position: relative; display: block; }
.status-field::before { content: ""; position: absolute; left: 17px; top: 19px; width: 15px; height: 15px; border-radius: 50%; background: #959797; pointer-events: none; }
.status-field.is-active::before { background: #29ab61; box-shadow: inset 0 0 0 1px #168f4220; }
.status-field select { padding-left: 47px; }
.residence-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.residence-row p { margin-bottom: 0; }
.residence-row form { flex-shrink: 0; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stats .card { padding: 24px; }
.stats span { color: var(--muted); }
.stats strong { display: block; font-size: 38px; color: var(--navy); margin-top: 8px; }
.quick { display: flex; gap: 16px; flex-wrap: wrap; }
.quick a, .tenant-card { padding: 18px 22px; border: 1px solid var(--field); border-radius: 10px; background: #f9fcfe; }
.tenant-card { display: flex; justify-content: space-between; gap: 18px; margin-top: 12px; }
.tenant-card span { font-size: 14px; }
.notice { padding: 16px; border-radius: 8px; background: #e2f6ee; color: #24694c; }
.validation-summary-errors { margin-bottom: 20px; padding: 15px; border-radius: 8px; background: #fff0ed; color: #973f32; }
.validation-summary-valid { display: none; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 14px; color: var(--muted); }
.pagination a { padding: 10px 16px; border-radius: 8px; }
.auth-page { min-height: 100vh; background: radial-gradient(ellipse at top, #fff, var(--page)); }
.auth-header { padding: 20px 28px; }
.auth-header .brand { margin: 0; }
.login { width: 100%; max-width: 620px; min-height: 70vh; padding: 28px; margin: 24px auto; }
.login h1 { margin: 14px 0 22px; font-size: 40px; }
.login .card { margin-top: 28px; }
.login form { display: block; }
.login button { width: 100%; margin-top: 20px; }
.auth-footer { padding: 22px; color: var(--muted); text-align: center; font-size: 13px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { position: fixed; left: 20px; top: 5px; z-index: 10; padding: 10px; background: #fff; }
:where(input, select, textarea, a, button):focus-visible { outline: 3px solid #139fdf; outline-offset: 3px; }
main:focus { outline: none; }
@media (max-width: 1400px) {
    .member-columns, .member-row form { grid-template-columns: minmax(200px, 1.3fr) minmax(160px, 1fr) minmax(145px, .85fr) 165px; gap: 16px; }
    .member-person { gap: 16px; }
    .member-person p { font-size: 15px; }
    .member-row button { padding-inline: 8px; font-size: 14px; }
}
@media (max-width: 1190px) {
    .workspace main { padding: 40px 24px; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .member-columns { display: none; }
    .member-row form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
    .member-person { grid-column: 1 / -1; }
    .member-row { padding: 20px 0; }
    .row-label { position: static; width: auto; height: auto; margin: 0 0 6px; display: block; clip-path: none; overflow: visible; }
    .member-row button { grid-column: 2; width: auto; justify-self: end; }
    .invite-card form > label { min-width: 220px; }
}
@media (max-width: 760px) {
    .workspace { display: block; }
    .sidebar { position: static; width: 100%; height: auto; max-height: none; padding: 18px 20px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
    .sidebar .brand { margin-left: 0; }
    .tenant-picker { margin: 22px 0 18px; min-height: 0; }
    .tenant-current p { display: inline-block; width: auto; margin: 6px 0 0; }
    .tenant-current .field-label { display: block; }
    .tenant-picker select { max-width: 100%; }
    .main-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; flex: none; overflow: visible; padding-bottom: 0; }
    .main-nav a { min-width: 0; margin: 0; padding: 10px; gap: 12px; font-size: 14px; }
    .nav-label { grid-column: 1 / -1; }
    .sidebar .identity { margin: 18px 0 0; padding: 14px 0 0; }
    .workspace main { padding: 26px 16px; }
    .page-heading { margin-bottom: 22px; }
    h1 { font-size: 32px; }
    h2 { font-size: 22px; }
    .page-description { font-size: 17px; }
    .card { padding: 21px 19px; border-radius: 14px; margin-bottom: 20px; }
    .card form label, .invite-card form > label { min-width: 0; flex-basis: 100%; }
    .card form:not(.search) > button { width: 100%; }
    .search { gap: 14px; }
    .search-query, .search-filter { max-width: none; min-width: 0; flex-basis: 100%; }
    .member-row form { display: flex; flex-direction: column; align-items: stretch; }
    .member-person { gap: 16px; }
    .member-person h3 { font-size: 16px; }
    .member-person p { font-size: 14px; }
    .member-row button { width: 100%; }
    .residence-row { display: block; }
    .residence-row form { margin-top: 14px; }
    .stats { gap: 12px; }
    .stats .card { padding: 18px 14px; }
    .stats span { font-size: 14px; }
    .stats strong { font-size: 32px; }
    .quick { flex-direction: column; }
    .tenant-card { flex-direction: column; }
    .pagination { flex-wrap: wrap; }
    .login { padding: 20px; margin: 0 auto; }
    .login h1 { font-size: 34px; }
}

/* List-first administration and the right-hand editor from the CRUD reference. */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.list-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.list-heading h2 { margin: 0; }
.new-button { min-height: 42px; padding: 8px 18px; gap: 8px; white-space: nowrap; font-size: 14px; }
.new-button > span { font-size: 25px; line-height: 1; font-weight: 300; }
.entity-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--field); border-radius: 8px; overflow: hidden; }
.entity-list:empty { display: none; }
.entity-list li + li { border-top: 1px solid var(--line); }
.list-columns, .entity-row { display: grid; grid-template-columns: minmax(0,1fr) 16px; gap: 20px; align-items: center; }
[data-columns="2"] .list-columns, [data-columns="2"] .entity-row { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) 16px; }
[data-columns="3"] .list-columns, [data-columns="3"] .entity-row { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr) minmax(110px,.8fr) 16px; }
[data-columns="4"] .list-columns, [data-columns="4"] .entity-row { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr) minmax(0,.7fr) 16px; gap: 14px; }
.list-columns { padding: 0 18px 10px; font-size: 14px; }
.entity-row { padding: 14px 18px; color: var(--navy); min-height: 54px; transition: background .15s; }
.entity-row:hover { background: #f2f9fd; text-decoration: none; }
.entity-row:focus-visible { outline-offset: -3px; border-radius: 5px; }
.entity-cell { min-width: 0; white-space: pre-line; overflow-wrap: anywhere; font-size: 15px; }
.row-chevron { font-size: 26px; line-height: 1; color: #416a94; text-align: right; }
.mobile-column { display: none; }
.info-note { color: #597aa3; margin: 0 0 22px; }
.editor-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px,100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0; border: 0; background: #fff; color: var(--navy); box-shadow: -14px 0 50px #15304c29; overflow: hidden; }
.editor-drawer::backdrop { background: linear-gradient(90deg,#102c4c08,#102c4c38); }
.editor-drawer[open] { animation: drawer-in .18s ease-out; }
@keyframes drawer-in { from { transform: translateX(30px); opacity: .5; } to { transform: translateX(0); opacity: 1; } }
body:has(.editor-drawer[open]) { overflow: hidden; }
.editor-form { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.editor-header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 28px 16px; }
.editor-header h2 { margin: 0; font-size: 23px; letter-spacing: -.5px; }
.editor-header h2:focus { outline: none; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; font-size: 28px; color: var(--navy); border-radius: 6px; }
.icon-button:hover { background: var(--page); text-decoration: none; }
.editor-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 10px 28px 28px; }
.editor-field + .editor-field { margin-top: 24px; }
.editor-field label { min-width: 0; font-size: 14px; }
.editor-field input, .editor-field select, .editor-field textarea { font-size: 15px; }
.field-hint { font-size: 13px; margin: 6px 0 0; }
.editor-details { margin: 0 0 24px; }
.editor-details > div + div { margin-top: 18px; }
.editor-details dt { color: #6480a3; font-size: 13px; }
.editor-details dd { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.editor-footer { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 22px max(18px,env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.editor-footer button, .editor-footer .button { min-height: 46px; padding: 10px 16px; font-size: 14px; }
.editor-primary-actions { display: flex; justify-content: flex-end; gap: 10px; flex: 1; }
.editor-footer .secondary { color: var(--navy); }
button.danger-text { padding-inline: 6px; border-color: transparent; background: transparent; box-shadow: none; color: #ce1639; }
button.danger-text:hover { background: #fff0f3; }
.editor-error { background: #fff0ed; color: #973f32; padding: 14px; margin-bottom: 20px; border-radius: 8px; }
.inline-editor { border: 1px solid var(--line); border-radius: 12px; background: white; }
.loading-status { margin: 0 0 15px; color: #6280a6; font-size: 14px; }
.skeleton-row { pointer-events: none; }
.skeleton-row + .skeleton-row { border-top: 1px solid var(--line); }
.skeleton-bar { display: block; width: 70%; max-width: 250px; height: 16px; border-radius: 5px; background: linear-gradient(100deg,#e2e8ef 20%,#eef2f6 40%,#e2e8ef 60%); background-size: 250% 100%; animation: skeleton-pulse 1.4s ease-in-out infinite; }
.skeleton-row:nth-child(even) .skeleton-bar { width: 57%; }
.skeleton-cell:nth-child(2) .skeleton-bar { width: 42%; }
@keyframes skeleton-pulse { to { background-position: -170% 0; } }
.loading-error { padding: 22px; border: 1px solid #efc6bc; border-radius: 12px; background: #fff5f2; }
.loading-error p { color: #973f32; }
@media (prefers-reduced-motion: reduce) { .skeleton-bar, .editor-drawer[open] { animation: none; } .entity-row { transition: none; } }
@media (max-width: 1000px) { [data-columns="3"] .list-columns, [data-columns="3"] .entity-row { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr) minmax(80px,.7fr) 12px; gap: 12px; } }
@media (max-width: 760px) {
    .list-heading { align-items: flex-start; gap: 10px; }
    .list-heading h2 { font-size: 21px; }
    .new-button { font-size: 13px; padding: 7px 10px; min-height: 40px; white-space: normal; }
    .list-columns { display: none; }
    .entity-list .entity-row { grid-template-columns: minmax(0,1fr) 14px; gap: 8px; padding: 14px; }
    .entity-cell { grid-column: 1; font-size: 14px; }
    .entity-cell:first-child .cell-value { font-weight: 600; }
    .entity-cell + .entity-cell .mobile-column { display: block; color: #6480a3; font-size: 12px; }
    .entity-row .row-chevron { grid-column: 2; grid-row: 1; }
    .editor-header { padding: 20px 20px 14px; }
    .editor-body { padding: 12px 20px 24px; }
    .editor-footer { padding-inline: 14px; gap: 6px; }
    .editor-footer button, .editor-footer .button { padding-inline: 12px; }
    .editor-primary-actions { gap: 6px; }
}
.confirmation { width: min(440px,calc(100vw - 32px)); padding: 26px; border: 1px solid var(--line); border-radius: 14px; color: var(--navy); box-shadow: 0 20px 80px #102c4c40; }
.confirmation::backdrop { background: #102c4c45; }
.confirmation h2 { font-size: 22px; }
.confirmation p { color: #597596; overflow-wrap: anywhere; }
.confirmation-actions { display: flex; justify-content: flex-end; gap: 12px; }
.confirmation-actions button { min-height: 44px; padding: 9px 16px; font-size: 14px; }
/* Keep the list and its New action visible next to the desktop panel. */
@media (min-width: 1200px) {
    .workspace:has(.editor-drawer[open]) main { padding-right: 474px; }
}
@media (min-width: 761px) {
    .tenant-current { min-height: 83px; margin-bottom: 18px; }
}
/* Resident list and the resident's settings drawer. */
.section-members .property-toolbar { align-items: flex-end; }
.section-members .property-toolbar .search { flex: 1; margin-bottom: 0; }
.section-members .property-toolbar > .button { flex-shrink: 0; }
.section-members [data-columns="4"] .list-columns,
.section-members [data-columns="4"] .entity-row { grid-template-columns: minmax(0,1.5fr) minmax(0,1.25fr) minmax(65px,.55fr) minmax(70px,.5fr) 16px; }
.section-members .entity-row { min-height: 82px; }
.section-members .entity-cell:first-child .cell-value { font-weight: 500; }
.section-members .entity-cell:last-of-type .cell-value { font-size: 13px; }
.editor-drawer:has([data-resident-settings]) { width: min(470px,100vw); }
.resident-person { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 24px; }
.resident-person strong { font-size: 21px; }
.resident-person p { margin: 6px 0 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.resident-section { margin: 24px 0; }
.resident-section h3 { margin: 0 0 12px; font-size: 17px; }
.resident-section > p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0 0 16px; }
.resident-member-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.resident-member-fields .editor-field + .editor-field { margin-top: 0; }
.resident-home { border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 14px; }
.resident-home-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; font-size: 14px; }
.resident-home .editor-field + .editor-field { margin-top: 16px; }
.resident-remove, .resident-add { border: 0; background: transparent; box-shadow: none; min-height: 30px; padding: 0; }
.resident-remove { color: var(--muted); font-size: 12px; }
.resident-add { color: var(--accent); font-size: 14px; }
.resident-separated { border-top: 1px solid var(--line); padding-top: 24px; }
.resident-door-group { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.resident-door-group summary { background: var(--page); padding: 15px 17px; cursor: pointer; font-size: 14px; font-weight: 600; }
.resident-door-group summary span { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 4px; }
.resident-door-choice { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 13px 17px; border-top: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.resident-door-choice input { width: 17px; height: 17px; min-height: 0; margin: 0; flex-shrink: 0; accent-color: var(--accent); }
.resident-section .resident-help { margin-top: 14px; font-size: 12px; }
.resident-push { margin-top: 16px; font-size: 14px; }
.resident-section .resident-push-result { margin-top: 14px; color: var(--navy); }
@media (max-width: 1000px) {
    .section-members .property-toolbar { flex-wrap: wrap; }
}
@media (max-width: 760px) {
    .section-members [data-columns="4"] .entity-row { grid-template-columns: minmax(0,1fr) 14px; }
    .resident-home { padding: 14px; }
}
.resident-list-person { white-space: normal; }
.resident-list-person strong { display: block; font-size: 16px; font-weight: 600; }
.resident-list-person small { display: block; font-size: 13px; color: var(--muted); margin-top: 5px; }
.resident-status { display: inline-flex; background: var(--page); border: 1px solid var(--line); border-radius: 20px; padding: 4px 10px; font-size: 12px; }
@media (min-width: 1200px) {
    .workspace:has(.editor-drawer[open] [data-resident-settings]) main { padding-right: 504px; }
    .workspace:has(.editor-drawer[open] [data-resident-settings]) .property-toolbar { flex-wrap: wrap; }
}
.resident-header-identity { display: block; margin-top: 5px; font-size: 13px; color: var(--muted); }
