.p-workspace h1{font-size:2.7rem}.p-workspace .actions,.p-toolbar,.p-tabs{display:flex;flex-wrap:wrap;gap:14px;align-items:center}.p-tabs{border-bottom:1px solid var(--line);margin-bottom:24px}.p-tabs button{padding:12px 8px;border-bottom:3px solid transparent;border-radius:0}.p-tabs button[aria-pressed=true]{border-bottom-color:var(--green);font-weight:700}.p-search{display:flex;gap:25px;align-items:center;padding:22px}.p-search>label:first-child{flex:1}.p-search p{max-width:360px;font-size:.8rem}.p-row{padding:24px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;align-items:center}.p-row h3{font-size:1.1rem;margin:8px 0}.p-row p{margin:6px 0}.p-row small{color:var(--muted)}.p-reminder{background:#fff3d7;padding:10px 14px;border-left:3px solid #ab782a;font-size:.85rem}.p-detail{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px}.p-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.p-workspace textarea{display:block;width:100%;margin-top:8px;min-height:85px;padding:12px;font:inherit;border:1px solid #d6d8cc;border-radius:5px}.p-workspace input,.p-workspace select{margin-top:8px}.p-workspace fieldset{border:1px solid var(--line);padding:18px;margin:20px 0;max-height:240px;overflow:auto}.p-workspace .p-check{display:flex;gap:10px;align-items:center;font-weight:400;margin:12px 0}.p-check input{width:auto;flex:none;margin:0}.p-document{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding:12px 0;overflow-wrap:anywhere}#p-notice:not(:empty){background:#f2f4e8;border-left:3px solid #888f5e;padding:16px;margin-bottom:20px}#p-dialog{max-width:850px;width:calc(100% - 32px)}.p-workspace .workspace-nav{flex-wrap:wrap}.p-row>div{min-width:0;overflow-wrap:anywhere}@media(max-width:700px){.p-grid,.p-detail{grid-template-columns:1fr}.p-workspace h1{font-size:2rem}.p-search{flex-direction:column;align-items:stretch}.p-row{flex-wrap:wrap;padding:18px}.p-workspace .section-heading{display:block}}

/* Contacts and agreements share a compact register and a focused record layout. */
.p-workspace #p-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 18px;max-width:700px}.p-workspace #p-stats article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border:1px solid #e1e6d9;border-radius:12px;background:#f5f7ef}.p-workspace #p-stats span{font-size:12px;color:#6b795b}.p-workspace #p-stats strong{font-size:22px;color:#43512e}
.people-register{min-width:0;padding:0;border-radius:16px;overflow:hidden}.people-register .p-search{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,260px);align-items:end;gap:16px;margin:0!important;border:0!important;border-radius:0!important;padding:16px!important;background:#f4f6ee}.people-register .p-search>label:first-child{grid-column:auto!important}.people-register .p-search>label{font-size:12px;min-width:0}.people-register .p-search input:not([type=checkbox]),.people-register .p-search select{width:100%;min-width:0;margin-top:6px;box-sizing:border-box}.people-register .p-search .p-check{align-self:center;margin:0}
.people-register-rows{overflow-anchor:none;max-height:580px;overflow:auto;scrollbar-gutter:stable;min-width:0}.people-register .p-row{padding:14px 18px;gap:16px;align-items:start;border-top:1px solid #e9eddf;transition:background .16s ease}.people-register .p-row:hover{background:#fafbf7}.people-register .p-row>div:first-child{flex:1}.people-register .p-row h3{font-size:14px;line-height:1.5;margin:0 0 4px}.people-register .p-row p{font-size:12px;line-height:1.5;margin:4px 0}.people-register .p-row small{font-size:11px}
.people-record-title{color:#394628;background:transparent;border:0;padding:0;font:inherit;font-weight:650;text-decoration:none;cursor:pointer;text-align:left}.people-record-title:hover{color:#b35326;text-decoration:underline}.people-row-end{display:flex;flex-direction:column;align-items:end;gap:4px;flex:none}.people-row-end>strong{font-size:15px;font-variant-numeric:tabular-nums}.people-row-end :is(.plain-button,.action-link){font-size:12px;padding:5px 8px;white-space:nowrap}.people-context{display:flex;flex-wrap:wrap;gap:5px;margin:7px 0}.people-context-link{font-size:11px;line-height:1.5;background:#f1f4e9;color:#617449;border-radius:6px;padding:4px 7px;text-decoration:none;max-width:100%;overflow-wrap:anywhere}.people-context-link:hover{background:#e7eecf;text-decoration:underline}.people-context details{font-size:11px;min-width:0}.people-context details>summary{cursor:pointer;color:#677b46;padding:4px 6px}.people-context details[open]{flex:1 1 100%}.people-context details[open] .people-context-link{display:inline-block;margin:4px 4px 0 0}.people-account{display:block;color:#687954}.people-missing{color:#987123!important;font-size:12px}
.people-pagination{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid #e2e7d6;padding:12px 18px;background:#fafbf7}.people-pagination button{font-size:12px}.people-pagination span{font-size:12px;color:#748364}.people-register-note{font-size:12px;margin:0;padding:10px 18px;color:#758368;background:#fbfcf9}.people-empty{padding:28px;text-align:center}.people-empty h3{font-size:17px}.people-empty p{font-size:13px;color:#768465}.people-renewal{color:#986e24}.people-renewal span{font-size:9px}
.people-lease-detail{min-width:0}.people-lease-detail .p-toolbar{gap:10px;justify-content:flex-end;padding:4px 0 14px}.people-lease-detail .p-toolbar>button:first-child{margin-right:auto}.people-lease-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 0;border-top:1px solid #e1e7d4}.people-lease-heading h2{font-size:22px;line-height:1.4;margin:10px 0 5px}.people-lease-heading p{font-size:13px;margin:0;color:#75816a}.people-lease-rent{display:grid;gap:5px;text-align:right;flex:none}.people-lease-rent strong{font-size:28px;color:#4c6034;font-variant-numeric:tabular-nums}.people-lease-rent span{font-size:12px;color:#7a876d}.people-lease-review{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#fff5df;border:1px solid #f0ddb2;border-radius:12px;padding:12px 16px;font-size:13px;color:#956b21}.people-lease-review p{font-size:12px;margin:4px 0}.people-lease-review button{font-size:12px;white-space:nowrap}
.people-detail-links{display:flex;position:static!important;inset:auto!important;width:auto!important;gap:8px;background:transparent!important;box-shadow:none!important;border:0!important;padding:16px 0 0!important;margin:0!important;flex-wrap:wrap}.people-detail-links :is(a,button){padding:7px 12px;background:#edf2e1;border-radius:8px;font-size:12px;text-decoration:none;color:#5c7040}.people-detail-links :is(a,button):hover{background:#e2ebce}.people-lease-detail .p-detail{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-top:16px}.people-lease-detail .m-panel{min-width:0;padding:20px;border-radius:14px;scroll-margin-top:170px}.people-lease-detail .m-panel h3{font-size:15px;margin:0 0 14px}.people-lease-detail .m-muted{font-size:12px;line-height:1.6}.people-lease-detail .m-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.people-lease-detail .m-facts>div{border:0;padding:0;min-width:0}.people-lease-detail .m-facts dt{font-size:11px;color:#7e896e;margin:0 0 4px}.people-lease-detail .m-facts dd{font-size:13px;font-weight:550;margin:0;overflow-wrap:anywhere}.people-residents{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}.people-resident{padding:7px 10px;background:#ecf2e2;border-radius:8px;text-decoration:none;color:#537038;font-size:12px}.people-resident::after{content:' ↗';color:#8d9e78}.people-lease-notes{border-top:1px solid #e5ebdb;padding-top:14px;margin-top:18px}.people-lease-notes h4{font-size:12px;margin:0 0 8px}.people-lease-notes p{font-size:13px;line-height:1.6}
.people-document-upload{display:flex;align-items:end;gap:8px;margin:16px 0}.people-document-upload>label{min-width:0;flex:1;font-size:12px}.people-document-upload input{width:100%;min-width:0;font-size:12px}.people-document-upload button{font-size:12px;flex:none}.people-documents .p-document{display:block;padding:12px 0;border-color:#e9eedf}.people-documents .p-document strong{font-size:12px;overflow-wrap:anywhere}.people-documents .p-document>div{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.people-documents .p-document button{font-size:11px;padding:5px 6px}.people-activity{grid-column:1/-1}.people-event{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid #ebf0e3}.people-event:last-child{border:0}.people-event-dot{width:8px;height:8px;border-radius:50%;background:#80975a;flex:none;margin-top:6px}.people-event p{font-size:13px;margin:0 0 5px;line-height:1.5}.people-event small{font-size:11px;color:#7b896c}
.people-record-title:focus-visible,.people-context-link:focus-visible,.people-resident:focus-visible,.people-detail-links :is(a,button):focus-visible{outline:2px solid #849c5b;outline-offset:3px}
@media(max-width:700px){.people-lease-detail .p-detail{grid-template-columns:minmax(0,1fr)}.people-lease-heading{display:block}.people-lease-rent{text-align:left;margin-top:16px}.people-lease-rent strong{font-size:24px}.people-lease-detail .p-toolbar{justify-content:start}.people-lease-detail .p-toolbar>button:first-child{flex:1 1 100%}.people-lease-review{flex-wrap:wrap}.people-register .p-row{flex-wrap:wrap}.people-row-end{flex-direction:row;align-items:center;flex-wrap:wrap;justify-content:end;flex:1 1 100%}.people-register .p-search{grid-template-columns:1fr!important}.people-register-rows{max-height:520px}.people-document-upload{flex-wrap:wrap}.people-document-upload>label{flex:1 1 100%}.p-workspace #p-stats article{display:block;padding:10px}.p-workspace #p-stats span{font-size:11px;display:block;line-height:1.4}.p-workspace #p-stats strong{font-size:20px;display:block;margin-top:4px}}
@media(prefers-reduced-motion:reduce){.people-register .p-row{transition:none}}

/* Portal switches are part of the contact editor and save with the contact. */
body #p-fields .person-portal-settings{margin:20px 0 0;padding:18px;border:1px solid #dce4d0;border-radius:12px;background:#f8faf3;min-width:0}
.person-portal-settings legend{font-size:13px;font-weight:650;color:#50633d;padding:0 6px}
body #p-fields .person-portal-switch{display:flex!important;align-items:center!important;justify-content:space-between;gap:20px;margin:0;padding:14px 0;font-size:12px;cursor:pointer}
.person-portal-switch+.person-portal-switch{border-top:1px solid #e1e7d8}
.person-portal-switch>span:first-child{min-width:0}
.person-portal-switch strong{font-size:12px;line-height:1.5;color:#445636}
.person-portal-switch small{display:block;font-size:11px;color:#778568;line-height:1.6;margin-top:5px}
.person-switch-control{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:26px}
body #p-fields .person-switch-control input{position:absolute;inset:0;opacity:0;width:44px!important;height:26px!important;max-width:44px;margin:0!important;cursor:pointer}
.person-switch-track{display:block;width:44px;height:26px;border-radius:20px;background:#c6cebd;transition:background .15s;pointer-events:none}
.person-switch-track::after{content:'';position:absolute;width:20px;height:20px;top:3px;left:3px;background:#fff;border-radius:50%;box-shadow:0 1px 4px #29382125;transition:transform .15s}
.person-switch-control input:checked+.person-switch-track{background:#708a48}
.person-switch-control input:checked+.person-switch-track::after{transform:translateX(18px)}
.person-switch-control input:disabled+.person-switch-track{opacity:.45}
.person-switch-control input:focus-visible+.person-switch-track{outline:3px solid #b85b2b;outline-offset:3px}
.person-portal-note{font-size:11px;color:#778568;line-height:1.7;margin:12px 0 0}
@media(max-width:480px){body #p-fields .person-portal-settings{padding:14px}body #p-fields .person-portal-switch{gap:12px}}
@media(prefers-reduced-motion:reduce){.person-switch-track,.person-switch-track::after{transition:none}}
.lease-renewal-plan{margin:20px 0;padding:18px;border:1px solid #dce4d5;border-radius:12px;background:#f7f9f3}
.lease-renewal-plan h3{margin:0 0 16px;font-size:16px}
.lease-review-lead{display:flex;align-items:center;gap:10px;margin-top:6px}
body #p-fields .lease-review-lead input{width:80px;min-width:0;flex:0 0 80px;margin:0}
.lease-review-lead>span{font-size:12px;font-weight:400;color:var(--muted);line-height:1.5}
.lease-review-preview{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px;font-weight:600}
.lease-review-preview output{font-size:18px;font-weight:650;color:#3e5830;overflow-wrap:anywhere}
.lease-review-preview small{font-weight:400;color:var(--muted)}
.lease-follow-up{margin-top:16px;padding-top:14px;border-top:1px solid #dce4d5}
.lease-follow-up summary{font-size:13px;font-weight:600;cursor:pointer;padding:6px 0}
.lease-follow-up .form-hint{margin:10px 0}
@media(max-width:480px){.lease-renewal-plan{padding:14px}.lease-review-lead{flex-wrap:wrap}}
