/* Mirrored parent/teacher selectors use the shared compact gray-green controls. */
.user-page .people-page{--people-heading:#365e4c;--people-text:#536b62;--people-muted:#65786d;padding:0;margin-bottom:12px;color:var(--people-text);font-size:13px;line-height:1.5}
.people-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:10px 14px}
.user-page .people-toolbar label{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0;color:var(--people-heading);font-size:12px;min-width:0;white-space:nowrap}
.people-toolbar .people-search{flex:0 1 270px}.people-toolbar .people-select{flex:0 1 300px}
.user-page .people-toolbar input,.user-page .people-toolbar select{width:0;flex:1;min-width:110px;height:32px;min-height:32px;padding:4px 8px;border:1px solid #d7e2dc;border-radius:5px;background:#fff;color:var(--people-heading);font:inherit;font-size:13px;line-height:22px}
.people-count{color:var(--people-muted);font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums}
.people-mode{display:flex;align-items:center;gap:2px;margin-left:auto;padding:2px;border:1px solid #dce5df;border-radius:7px;background:#f1f5f2}
.user-page .people-mode button{min-height:28px;padding:4px 9px;border-radius:5px;color:#536b62;font:inherit;font-size:12px;line-height:20px;white-space:nowrap}
.people-mode button[aria-checked=true]{background:#365e4c;color:white;box-shadow:0 1px 3px #365e4c22}
.people-panel{padding:8px 14px 10px;border-top:1px solid #edf2ee;background:#fcfdfc}
.people-panel-head{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin-bottom:8px;color:var(--people-muted);font-size:11px}
.people-quick>summary{display:flex;align-items:center;gap:6px;min-height:28px;margin:0;color:var(--people-muted);font-size:12px;cursor:pointer;list-style:none}
.people-quick>summary::-webkit-details-marker{display:none}
.people-quick>summary:before{content:'';flex:none;width:7px;height:5px;background:currentColor;clip-path:polygon(0 0,100% 0,50% 100%);transform:rotate(-90deg)}
.people-quick[open]>summary:before{transform:none}
.people-quick>[data-client-panel]{padding-top:8px}
.people-quick>summary:focus-visible{outline:2px solid #55a58e;outline-offset:2px}
@media(max-width:760px),(pointer:coarse){.people-quick>summary{min-height:44px}}
.people-alphabet{display:flex;align-items:center;flex-wrap:wrap;gap:3px}
.user-page .people-alphabet button{min-height:26px;min-width:26px;padding:3px 6px;border-radius:4px;background:transparent;color:#65786d;font:inherit;font-size:11px;line-height:20px}
.people-alphabet button[aria-pressed=true]{background:#e6efe9;color:#365e4c}
.people-groups{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;min-width:0}
.people-group{display:flex;align-items:center;flex-wrap:wrap;gap:6px;max-width:100%}
.people-group-letter{flex:none;display:grid;place-items:center;width:18px;min-height:28px;font-size:11px;font-weight:500;color:#7b9185}
.user-page .people-page .person-button{display:inline-flex;align-items:center;gap:4px;min-height:32px;max-width:240px;padding:4px 9px;border:1px solid #dce5df;border-radius:5px;background:#fff;color:#536b62;font:inherit;font-size:12px;line-height:22px;white-space:nowrap;text-align:left}
.user-page .people-page .person-button[aria-pressed=true]{border-color:#9ebfad;background:#eaf3ee;color:#365e4c}
.person-check{flex:none;min-width:10px;color:#397659}.person-name{min-width:0;overflow:hidden;text-overflow:ellipsis}
.person-button small{min-width:0;max-width:100px;overflow:hidden;text-overflow:ellipsis;color:#7b8b82;font-size:10px}
.people-page .person-button:hover:enabled{border-color:#b9d0c3;background:#f0f6f2}.people-page button:disabled{opacity:.55}
.people-foot{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 14px;padding:7px 14px;border-top:1px solid #edf2ee;color:var(--people-muted);font-size:11px}
.user-page .people-foot p[role=status],.people-note [role=status]{min-height:0;margin:0;color:#365e4c;font-size:12px}
.people-foot p:empty,.people-note [role=status]:empty{display:none}.people-foot p.error,.people-note [role=status].error{color:#a35446}
.people-empty{margin:0;padding:2px 0;color:#7b8b82;font-size:12px}
.people-detail{min-width:0}.people-detail[hidden]{display:none}
.user-page .people-note{padding:0;margin:0 0 12px;color:#536b62;font-size:12px}
.people-note>summary{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;padding:8px 14px;min-height:34px;color:#365e4c;cursor:pointer;list-style:none}
.people-note>summary::-webkit-details-marker{display:none}.people-note>summary:before{content:'';flex:none;width:7px;height:5px;background:currentColor;clip-path:polygon(0 0,100% 0,50% 100%);transform:rotate(-90deg)}.people-note[open]>summary:before{transform:none}
.people-note summary small{color:#7b8b82;font-size:11px}.people-unsaved{color:#a07745;font-size:11px}.people-unsaved[hidden]{display:none}
.people-note-body{padding:0 14px 12px;border-top:1px solid #edf2ee}.people-note-body>p{margin:8px 0;color:#65786d;font-size:11px}
.user-page .people-note textarea{display:block;width:100%;min-height:100px;padding:8px;border-color:#d7e2dc;border-radius:5px;color:#536b62;font:inherit;line-height:1.7}
.people-note-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin-top:8px}
.user-page .people-control{min-height:32px;padding:5px 9px;border:1px solid #dce5df;border-radius:5px;background:#f8faf9;color:#365e4c;font:inherit;font-size:12px;line-height:20px}
.people-control.is-primary{background:#365e4c;color:#fff;border-color:#365e4c}
.people-page button:focus-visible,.people-note button:focus-visible{outline:2px solid #55a58e;outline-offset:2px}
@media(max-width:760px){
 .people-toolbar{padding:10px;gap:8px}.user-page .people-toolbar label{flex:1 1 100%}.people-count{margin-right:auto}
 .user-page .people-toolbar input,.user-page .people-toolbar select{height:44px;min-height:44px;font-size:16px}
 .people-mode{max-width:100%;margin-left:0}.user-page .people-mode button{min-height:44px;padding-inline:8px;font-size:12px}
 .people-panel{padding:8px 10px 10px}.people-groups{gap:8px 12px}.people-group{gap:5px}
 .user-page .people-page .person-button{max-width:100%;min-height:44px}.user-page .people-alphabet button{min-height:44px;min-width:36px}
 .people-foot{padding:7px 10px}.people-note>summary{padding:8px 10px;min-height:44px}.people-note-body{padding-inline:10px}.user-page .people-control{min-height:44px}
}
@media(pointer:coarse){.user-page .people-mode button,.user-page .people-page .person-button,.user-page .people-alphabet button,.user-page .people-control{min-height:44px}}

/* Keep client selection and shared notes beside the plan workspace. */
.client-layout{container-type:inline-size}
.client-workspace{display:grid;grid-template-columns:var(--client-tools-width,224px) 12px minmax(0,1fr);align-items:start;gap:0}
.client-resizer{position:relative;align-self:stretch;min-height:200px;cursor:col-resize;touch-action:none;outline-offset:-2px}
.client-resizer:after{content:'';position:absolute;top:100px;left:4px;width:3px;height:48px;border-radius:3px;background:#ccd8d2}
.client-resizer:hover:after,.client-resizer:focus-visible:after,.client-resizer.is-resizing:after{background:#365e4c}
.client-tools{min-width:0}
.client-tools .people-toolbar{flex-direction:column;align-items:stretch;gap:10px;padding:12px}
.user-page .client-tools .people-toolbar label{flex:0 1 auto;flex-direction:column;align-items:stretch;gap:5px;white-space:normal}
.user-page .client-tools .people-toolbar input,.user-page .client-tools .people-toolbar select{flex:none;width:100%;min-width:0}
.client-tools .people-mode{margin:0;flex-wrap:wrap}
.client-tools .people-mode button{flex:1 1 auto}
.client-tools .people-panel,.client-tools .people-foot{padding-inline:12px}
.client-tools .people-quick>.people-foot{margin:8px -12px -10px}
.client-tools .people-group{gap:5px}
.client-tools .people-relations .people-toolbar{flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 8px}
.people-relations .people-groups{gap:6px}
.user-page .people-relations .person-button[aria-pressed=true]{border-color:#dce5df}
.people-relations .people-foot:has([role=status]:empty){display:none}
/* Client relations use background alone; viewing a client adds only a border. */
.user-page [data-client-access] .person-button[aria-pressed=true]{border-color:#dce5df}
.user-page [data-client-access][data-mode=view] .person-button{background:#eaf3ee;color:#365e4c}
.user-page [data-client-access][data-mode=view] .person-button[aria-pressed=true]{border:2px solid #365e4c;padding:3px 8px}
.user-page [data-client-access][data-mode=view] .person-button:hover:enabled{background:#eaf3ee}
.client-tools .people-note>summary{align-items:flex-start;gap:5px;padding:10px 12px}
.client-tools .people-note summary small{flex-basis:100%;padding-left:12px;overflow-wrap:anywhere}
.client-tools .people-note-body{padding-inline:12px}
.client-tools .people-note textarea{min-height:180px}
.client-workspace>.people-detail:empty{display:none}
@container(max-width:900px){
 .client-workspace{grid-template-columns:minmax(0,1fr);gap:12px}
 .client-resizer{display:none}
 .client-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}
 .client-tools:has([data-client-note]:empty),.client-tools:has([data-client-note][hidden]){grid-template-columns:minmax(0,1fr)}
}
@container(max-width:580px){
 .client-tools{grid-template-columns:minmax(0,1fr);gap:0}
}
