.people-page{--people-radius:18px;width:100%;font-size:14px;color:var(--text)}.people-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px;flex-wrap:wrap}.people-heading h1{font-size:34px;letter-spacing:-.035em;margin:0;font-weight:780}.people-heading h2{margin:0;font-size:23px}.people-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.people-content h2{font-size:21px;font-weight:750}.people-content h3{font-size:17px}.people-content p{color:var(--muted)}.people-loading,.people-empty{padding:28px;color:var(--muted);font-size:14px}.people-filters{display:flex;gap:16px;align-items:end;margin-bottom:18px;flex-wrap:wrap}.people-filters>label:first-child{width:320px;max-width:100%}.people-filters>label:nth-child(2){width:175px}.people-filters>span{margin-left:auto;padding:12px 0;color:var(--muted)}
.people-page label,.people-drawer label{display:grid;gap:7px;font-size:13px;font-weight:650;color:var(--muted)}.people-page input:not([type=checkbox]):not([type=hidden]),.people-page textarea,.people-drawer input:not([type=checkbox]):not([type=hidden]),.people-drawer textarea{box-sizing:border-box;min-width:0;width:100%;border:1px solid var(--line-strong);border-radius:12px;background:var(--canvas-soft);color:var(--text);padding:12px 14px;font:600 14px/1.5 var(--portal-font,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);outline:none}.people-page input:focus-visible,.people-drawer input:focus-visible,.people-page textarea:focus-visible,.people-drawer textarea:focus-visible{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.people-table-scroll{overflow:auto;border:1px solid var(--line);border-radius:18px;background:var(--surface);max-height:650px}.people-table{width:100%;border-spacing:0;border-collapse:separate}.people-table th{position:sticky;top:0;z-index:1;background:var(--surface-raised);font-size:12px;text-align:left;color:var(--muted);padding:16px;border-bottom:1px solid var(--line)}.people-table td{padding:17px 16px;border-bottom:1px solid var(--line);font-size:14px;vertical-align:middle}.people-table tbody tr:last-child td{border-bottom:0}.people-table tr:hover td{background:var(--accent-soft)}.people-table td strong{font-size:15px;font-weight:750;display:block}.people-table small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.people-chip{display:inline-block;padding:5px 9px;margin:3px;border-radius:8px;background:var(--accent-soft);font-size:12px;font-weight:650;color:var(--text)}.people-status{display:inline-block;padding:5px 9px;border-radius:20px;background:var(--canvas-soft);color:var(--muted);font-size:12px;font-weight:700}.people-status.is-active{background:color-mix(in srgb,var(--success) 13%,var(--surface));color:var(--success)}.people-list-more{display:flex;justify-content:center;padding:18px}.people-role-list{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--surface)}.people-role-row{display:flex;justify-content:space-between;gap:24px;padding:24px;border-bottom:1px solid var(--line);align-items:center}.people-role-row:last-child{border-bottom:0}.people-role-row h2,.people-role-row h3{margin:0 0 8px}.people-role-row p{margin:0 0 12px;max-width:70ch}.people-role-meta{display:flex;gap:18px;color:var(--muted);font-size:12px}.people-role-row:hover{background:color-mix(in srgb,var(--accent) 3%,var(--surface))}
.people-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(590px,100vw);height:100dvh;max-height:100dvh;max-width:100vw;padding:0;box-sizing:border-box;border:0;border-left:1px solid var(--line-strong);border-radius:22px 0 0 22px;background:var(--surface-raised);color:var(--text);box-shadow:-20px 0 80px oklch(18% .01 85 / .24);overflow:hidden;font-family:var(--portal-font,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif)}.people-drawer[open]{display:flex;flex-direction:column;animation:people-drawer-in .22s cubic-bezier(.16,1,.3,1)}.people-drawer::backdrop{background:oklch(18% .01 85 / .42)}.people-drawer>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:25px 26px;border-bottom:1px solid var(--line);flex-shrink:0}.people-drawer h2{font-size:23px;margin:0;font-weight:750;letter-spacing:-.025em}.people-drawer h3{font-size:17px;font-weight:750;line-height:1.3}.people-icon{border:1px solid var(--line);background:var(--canvas-soft);color:var(--text);border-radius:11px;width:38px;height:38px;cursor:pointer;flex-shrink:0}.people-drawer-body{padding:24px 26px;overflow:auto;flex:1;min-height:0}.people-drawer-body>form,.people-password-form,.people-compose{display:grid;gap:18px}.people-drawer>footer{padding:18px 26px;border-top:1px solid var(--line);display:flex;gap:10px;justify-content:flex-end;background:var(--surface);flex-shrink:0}.people-form-section{padding:0 0 22px;border-bottom:1px solid var(--line);margin-bottom:6px;display:grid;gap:16px}.people-form-section h3{margin:0}.people-form-section p,.people-drawer p{font-size:13px;color:var(--muted);line-height:1.6;margin:0}.people-drawer small{font-size:12px;color:var(--muted)}.people-drawer summary{cursor:pointer;font-weight:700;color:var(--text);padding:12px 0;font-size:14px}.people-drawer details label{margin-top:10px}.people-password-form,.people-compose{max-width:680px;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:28px}.people-password-form p{line-height:1.6}.people-password-form small,.people-compose small{font-size:12px;line-height:1.55;color:var(--muted)}
.people-drawer label.people-toggle,.people-page label.people-toggle{position:relative;display:flex;gap:12px;align-items:center;min-height:44px;padding:10px 0;cursor:pointer;color:var(--text);font-size:14px;font-weight:600}.people-toggle input{position:absolute;width:1px;height:1px;opacity:0;clip-path:inset(50%)}.people-toggle .toggle-track{width:36px;height:22px;border-radius:20px;background:var(--line-strong);border:1px solid var(--line-strong);position:relative;flex-shrink:0;transition:background .18s}.people-toggle .toggle-track::after{content:'';position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:var(--surface-raised);box-shadow:0 1px 3px oklch(15% .01 85 / .18);transition:transform .18s}.people-toggle input:checked+.toggle-track{background:var(--accent);border-color:var(--accent)}.people-toggle input:checked+.toggle-track::after{transform:translateX(14px);background:var(--accent-ink)}.people-toggle input:focus-visible+.toggle-track{outline:2px solid var(--accent);outline-offset:3px}.permission-group{border:1px solid var(--line);border-radius:13px;padding:0 14px;background:var(--surface)}.permission-group summary{display:flex;justify-content:space-between;align-items:center;font-size:14px;padding:14px 0}.permission-group summary span{color:var(--muted);font-size:12px}.permission-group>div{padding-bottom:10px}.permission-group .people-toggle+.people-toggle{border-top:1px solid var(--line)}.people-security{display:grid;gap:20px}.people-security>i{font-size:28px;color:var(--accent)}.people-security h3{font-size:24px;margin:0}.people-security input{font-variant-numeric:tabular-nums;letter-spacing:.06em}.people-admin-tabs{display:flex;gap:10px;margin-bottom:22px;flex-wrap:wrap}.notification-preference{border:0;border-bottom:1px solid var(--line);padding:0 0 18px;margin:0 0 18px}.notification-preference legend{font-weight:750;font-size:15px;padding:0 0 9px}.notification-preference p{margin:0 0 8px}.people-notification-list{margin-top:18px}.people-notification{border-bottom:1px solid var(--line);padding:20px 4px}.people-notification.is-unread{background:var(--accent-soft);padding:18px;border:1px solid var(--line);border-radius:13px;margin-bottom:12px}.people-notification header{display:grid;gap:6px}.people-notification strong{font-size:15px}.people-notification p{white-space:pre-wrap;margin:12px 0;color:var(--text);font-size:14px}.people-notification button{display:block;margin-top:12px}.people-audit-item{padding:22px;margin-bottom:15px;border:1px solid var(--line);border-radius:15px;background:var(--surface)}.people-audit-item header{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}.people-audit-item time{font-size:12px;color:var(--muted)}.people-audit-item p{font-size:13px;margin:8px 0 16px}.people-audit-values{width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px}.people-audit-values td,.people-audit-values th{text-align:left;vertical-align:top;overflow-wrap:anywhere;padding:10px 8px;border-bottom:1px solid var(--line)}.people-audit-values thead{color:var(--muted);font-size:12px}.people-audit-values td:last-child{font-weight:650;color:var(--text)}.people-drawer .people-audit-item{padding:14px 0;border:0;border-bottom:1px solid var(--line);border-radius:0}.people-toast{position:fixed;bottom:24px;right:24px;z-index:2147483647;max-width:min(430px,calc(100vw - 48px));padding:16px 20px;border:1px solid var(--line-strong);border-radius:14px;box-shadow:0 12px 35px oklch(15% .01 85 / .2);background:var(--surface-raised);color:var(--text);font-size:14px}.people-toast.is-error{border-color:var(--danger)}[data-unread-count]{min-width:20px;height:20px;display:grid;place-items:center;background:var(--accent);color:var(--accent-ink);border-radius:12px;font-size:12px;margin-left:auto}.people-page [hidden],.people-drawer [hidden],[data-unread-count][hidden]{display:none!important}
.people-tour{position:fixed;inset:0;z-index:2147483100;pointer-events:auto}.tour-spotlight{position:fixed;border:2px solid var(--accent);border-radius:12px;box-shadow:0 0 0 9999px oklch(15% .01 85 / .64);pointer-events:none;box-sizing:border-box}.tour-card{position:fixed;width:min(400px,calc(100vw - 24px));box-sizing:border-box;padding:24px;border:1px solid var(--line-strong);border-radius:18px;background:var(--surface-raised);box-shadow:0 16px 48px oklch(15% .01 85 / .24);color:var(--text);font-family:var(--portal-font,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif)}.tour-card h2{font-size:22px;line-height:1.2;margin:12px 0;font-weight:750}.tour-card p{font-size:14px;line-height:1.6;color:var(--muted)}.tour-card small{font-size:12px;font-weight:700;color:var(--accent)}.tour-card footer{display:flex;justify-content:flex-end;gap:10px;align-items:center;margin-top:20px}.tour-card footer .quiet-link{margin-right:auto}.people-page button:disabled,.people-drawer button:disabled{opacity:.5;cursor:wait}@keyframes people-drawer-in{from{transform:translateX(30px);opacity:0}to{transform:translateX(0);opacity:1}}@media(prefers-reduced-motion:reduce){.people-drawer[open]{animation:none}.toggle-track,.toggle-track::after{transition:none!important}}@media(max-width:700px){.people-role-row{align-items:flex-start;flex-direction:column;padding:20px}.people-role-meta{flex-wrap:wrap;gap:10px}.people-heading h1{font-size:29px}.people-drawer{border-radius:0}.people-drawer>header,.people-drawer-body{padding:20px}.people-drawer>footer{padding:16px}.people-filters>span{margin-left:0}.people-password-form,.people-compose{padding:20px}}
.people-toast[popover]{inset:auto 24px 24px auto;margin:0}
.app-rail .rail-nav{overflow-y:auto;flex:1;scrollbar-width:thin}.app-rail .rail-footer{flex-shrink:0}
.app-rail .rail-nav{display:flex;flex-direction:column;gap:24px;min-height:0}
.rail-operation,.rail-support{display:grid;gap:6px}
.rail-support{margin-top:auto;padding-top:18px;border-top:1px solid var(--line)}
.rail-group-label,.portal-section-label{font:700 12px/1.5 var(--portal-font,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);color:var(--muted);padding:4px 14px;letter-spacing:.04em}
.rail-link [data-unread-count]{margin-left:auto;background:var(--accent);color:var(--accent-ink);font-size:12px;padding:3px 6px;border-radius:8px}
.portal-section-label{padding:0;margin-bottom:12px}
.portal-section-tabs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:6px;border:1px solid var(--line);border-radius:14px;background:var(--surface);margin:0 0 24px;width:fit-content;max-width:100%;box-sizing:border-box}
.portal-section-tabs a{display:block;padding:11px 18px;border-radius:10px;color:var(--muted);font-size:14px;font-weight:650;text-decoration:none;line-height:1.4}
.portal-section-tabs a:hover{color:var(--text);background:var(--canvas-soft)}
.portal-section-tabs a.is-active{color:var(--text);background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--line-strong);font-weight:750}
.portal-section-tabs a:focus-visible,.history-change summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.history-change-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--surface);margin-bottom:18px}
.history-change-filters>label{flex:1 1 150px;min-width:0}
.history-change-filters>label:first-child{flex:2 1 240px}
.history-change-results{border:1px solid var(--line);border-radius:18px;background:var(--surface);overflow:hidden}
.history-change{border-bottom:1px solid var(--line)}
.history-change:last-child{border-bottom:0}
.history-change summary{list-style:none;display:flex;align-items:center;gap:16px;padding:20px;cursor:pointer}
.history-change summary::-webkit-details-marker{display:none}
.history-change summary:hover{background:var(--canvas-soft)}
.history-change-icon{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:12px;background:var(--accent-soft);color:var(--accent)}
.history-change-main{flex:1;min-width:0;display:grid;gap:6px}
.history-change-main strong{font-size:15px;font-weight:750;color:var(--text);overflow-wrap:anywhere}
.history-change-main>span,.history-change time{font-size:12px;color:var(--muted)}
.history-change-count{font-size:12px;font-weight:700;background:var(--canvas-soft);border:1px solid var(--line);padding:5px 9px;border-radius:8px;white-space:nowrap}
.history-change summary>i{color:var(--muted);font-size:12px}
.history-change[open] summary>i{transform:rotate(180deg)}
.history-change-detail{padding:0 20px 20px}
.history-values-scroll{overflow:auto;border:1px solid var(--line);border-radius:12px}
.history-change .people-audit-values{width:100%;border-collapse:collapse;margin:0}
.history-change .people-audit-values :is(th,td){padding:13px 16px;text-align:left;vertical-align:top;font-size:13px;min-width:140px;overflow-wrap:anywhere;border-bottom:1px solid var(--line)}
.history-change .people-audit-values thead{background:var(--canvas-soft);color:var(--muted)}
.history-change .people-audit-values td:last-child{background:color-mix(in srgb,var(--success) 6%,var(--surface));color:var(--text)}
[data-people-page="notifications"] .people-content{min-width:0}
[data-people-page="notifications"] .people-notification-list{border:1px solid var(--line);border-radius:16px;padding:8px 20px;background:var(--surface);margin-top:16px}
@media(max-width:700px){.portal-section-tabs{width:100%}.portal-section-tabs a{padding:10px 12px;flex:1;text-align:center}.history-change summary{flex-wrap:wrap;padding:16px;gap:10px}.history-change-main{flex-basis:calc(100% - 64px)}.history-change time{margin-left:50px}.history-change-detail{padding:0 12px 12px}.history-change-filters>button{width:100%}}
@media(prefers-reduced-motion:no-preference){.portal-section-tabs a,.history-change summary{transition:background-color .18s ease-out,color .18s ease-out}}
