.people-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.people-heading .titlebar{display:block}.people-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:white;border:1px solid var(--line);border-radius:12px;margin:22px 0}.people-summary>div{padding:16px 20px;border-right:1px solid var(--line)}.people-summary>div:last-child{border:0}.people-summary strong{font-size:25px;display:block;font-weight:800;line-height:1.2}.people-summary span{font-size:11px;color:#7b8490;display:block;margin-top:5px}.people-toolbar{display:flex;gap:14px;align-items:center;margin-bottom:16px}.people-toolbar select{height:44px;min-width:160px;border:1px solid var(--line);background:#fff;padding:8px 12px;border-radius:8px;font-size:12px}.people-table{width:100%;border-collapse:collapse;font-size:12px;background:#fff}.people-table th{font-size:10px;color:#747f8a;text-align:left;font-weight:500;padding:13px 17px;background:#fafbfc;white-space:nowrap}.people-table td{padding:16px 17px;border-top:1px solid var(--line);vertical-align:middle}.person-cell{display:flex;align-items:center;gap:11px;min-width:180px}.person-cell b{display:block;font-size:12px}.person-cell small{display:block;font-size:10px;color:#8a939d;margin-top:4px}.person-cell .tenant-avatar{width:34px;height:34px;flex-basis:34px;font-size:10px}.access-role{display:inline-block;background:#f0f3f5;color:#5d6b78;border-radius:5px;padding:4px 7px;font-size:10px;line-height:1.4;white-space:nowrap}.access-role.owner{background:#e5f5f5;color:#167384}.custom-access{display:block;font-size:9px;margin-top:5px;color:#8b949e}.person-estate-scope{font-size:11px;line-height:1.6;display:block;max-width:270px;color:#63717f}.people-manage{background:none;padding:8px 0;font-size:11px;font-weight:650;white-space:nowrap;color:#247486;min-height:36px}.access-role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.access-role-card{background:white;border:1px solid var(--line);border-radius:12px;padding:20px;text-align:left}.access-role-card p{font-size:12px;line-height:1.7;color:#78828d;margin:12px 0 20px;min-height:60px}.access-role-card>div{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #eef1f4;padding-top:12px;font-size:10px}.access-role-card>div b{font-weight:600;color:#697681}.access-role-card>div span{color:#247486}.access-policy-note{border:1px solid #dce9ed;background:#eff7f8;border-radius:10px;padding:16px 18px;margin-top:18px}.access-policy-note>b{font-size:12px}.access-policy-note p{font-size:11px;line-height:1.7;color:#60747f;margin-top:6px}.role-preview-group{padding:14px 0;border-bottom:1px solid var(--line)}.role-preview-group h3{font-size:12px;margin-bottom:9px}.role-preview-group span{font-size:11px;display:block;color:#6f7d88;line-height:1.9}.access-editor-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.access-editor-heading h1{font-size:29px;letter-spacing:-.8px}.access-editor-heading p{font-size:12px;color:#7d8792;margin-top:8px}.access-editor-heading>div:last-child{display:flex;gap:9px}.access-editor-grid{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.4fr);gap:22px;align-items:start}.access-editor-grid>*{min-width:0}.access-editor-settings>.info-card,.permission-matrix{padding:20px}.access-editor-settings>.info-card>h2{margin:0 0 16px;line-height:1.35}.access-editor-settings>.info-card>.access-field:first-of-type{margin-top:0}.permission-matrix-title>div{min-width:0}.permission-matrix-title .access-role{max-width:55%;white-space:normal;text-align:right;overflow-wrap:anywhere}.permission-matrix .access-helper{margin-top:12px}.access-editor-settings{display:grid;gap:16px}.access-editor-settings>.info-card h2,.permission-matrix-title h2{font-size:14px;margin-bottom:12px}.access-field{display:flex;flex-direction:column;font-size:11px;gap:6px;margin-top:13px;color:#68737f}.access-field input,.access-field select{border:1px solid var(--line);border-radius:7px;background:#fff;min-height:42px;padding:9px 11px;font:inherit;color:var(--ink);font-size:12px;width:100%}.access-field input:disabled,.access-field select:disabled{background:#f6f8fa;color:#87919b}.access-helper{font-size:10px;line-height:1.7;color:#84909a;margin:8px 0 0}.access-scope-toggle{display:flex;gap:16px;font-size:11px;flex-wrap:wrap;margin-top:18px}.access-scope-toggle label{display:flex;align-items:center;gap:6px;min-height:28px}.access-estate-choices{max-height:230px;overflow:auto;border:1px solid #e7ecef;border-radius:8px;margin-top:10px}.access-estate-choices label{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid #eef2f4;font-size:11px;line-height:1.4}.access-estate-choices label:last-child{border:0}.access-estate-choices small{display:block;font-size:9px;color:#8d969f;margin-top:2px}.access-editor-settings .access-policy-note{margin-top:0}.permission-matrix-title{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.permission-matrix-title h2{margin-bottom:4px}.permission-matrix-title p{font-size:10px;color:#86919a}.permission-group{border-top:1px solid var(--line);margin-top:14px;padding-top:3px}.permission-group summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;gap:10px;padding:13px 0;font-size:12px;font-weight:700;list-style:none}.permission-group summary:before{content:'›';font-size:19px;color:#9aa5ad}.permission-group[open] summary:before{transform:rotate(90deg)}.permission-group summary>span{flex:1}.permission-group summary small{font-size:10px;font-weight:500;color:#89949d}.permission-group>p{font-size:10px;line-height:1.6;color:#87929b;margin-bottom:10px}.permission-option{display:flex;justify-content:space-between;align-items:center;gap:18px;min-height:41px;padding:8px 0;border-bottom:1px solid #f0f3f5;cursor:pointer}.permission-option:last-child{border-bottom:0}.permission-option b{font-size:11px;font-weight:500;display:block}.permission-option small{display:block;font-size:9px;color:#89959e;margin-top:3px}.permission-option input,.access-scope-toggle input,.access-estate-choices input{accent-color:#247d8b;width:16px;height:16px;flex-shrink:0;cursor:pointer}.permission-option.protected b{color:#627988}.access-editor-error{background:#fff0ed;border:1px solid #f1d3cc;border-radius:9px;padding:13px 16px;margin-top:18px;color:#a04b3c;font-size:12px;line-height:1.6}.access-editor-error[hidden]{display:none}
@container app (max-width:1050px){.access-role-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.access-editor-grid{grid-template-columns:1fr;gap:16px}}
@container app (max-width:760px){.people-heading{gap:12px}.people-heading .btn{white-space:nowrap;padding:10px 12px}.people-summary{grid-template-columns:repeat(2,minmax(0,1fr));margin:18px 0}.people-summary>div{padding:14px 16px}.people-summary>div:nth-child(-n+2){border-bottom:1px solid var(--line)}.people-summary>div:nth-child(2){border-right:0}.people-summary strong{font-size:23px}.people-summary span{font-size:10px}.people-toolbar{flex-wrap:wrap;gap:10px}.people-toolbar>.search{flex-basis:100%}.people-toolbar select{width:100%;font-size:12px}.people-table{min-width:650px}.people-table td{padding:13px}.access-role-grid{grid-template-columns:1fr}.access-role-card p{min-height:0}.access-editor-heading{flex-direction:column;gap:14px}.access-editor-heading h1{font-size:27px}.access-editor-heading>div:last-child{width:100%}.access-editor-heading .btn{flex:1}.access-editor-grid{grid-template-columns:1fr}.access-editor-settings>.info-card,.permission-matrix{padding:18px}.access-editor-heading>div{min-width:0;max-width:100%}.access-editor-heading h1{overflow-wrap:anywhere}.permission-option{min-height:46px}.permission-option b{font-size:12px}.permission-group summary{font-size:13px}.access-field input,.access-field select{min-height:44px;font-size:16px}.access-policy-note p{font-size:11px}}
/* On phones, keep each person's role, estate scope and action visible together. */
@container app (max-width:760px){
 #peopleRows .people-table{display:block;width:100%;min-width:0}
 #peopleRows .people-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #peopleRows .people-table tbody{display:block}
 #peopleRows .people-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;padding:16px;border-top:1px solid var(--line)}
 #peopleRows .people-table tbody tr:first-child{border-top:0}
 #peopleRows .people-table td{padding:0;border:0;min-width:0}
 #peopleRows .people-table td:first-child{grid-column:1/-1;grid-row:1}
 #peopleRows .people-table td:nth-child(2){grid-column:1;grid-row:2}
 #peopleRows .people-table td:nth-child(3){grid-column:1;grid-row:3;align-self:center}
 #peopleRows .people-table td:nth-child(3):before{content:'Estate access';display:block;font-size:10px;color:#747f8a;margin-bottom:3px}
 #peopleRows .people-table td:nth-child(4){grid-column:2;grid-row:2;justify-self:end}
 #peopleRows .people-table td:nth-child(5){grid-column:2;grid-row:3;align-self:center}
 #peopleRows .people-table td[colspan]{grid-column:1/-1}
 #peopleRows .person-cell>span:last-child{min-width:0}
 #peopleRows .person-cell small,#peopleRows .person-estate-scope{overflow-wrap:anywhere}
 #peopleRows .access-role{white-space:normal}
 #peopleRows .people-manage{min-height:44px}
}
