:root{
  --people-rail:#171a17;
  --people-rail-soft:#222722;
  --people-canvas:#f5f4ee;
  --people-surface:#ffffff;
  --people-surface-soft:#f8f8f4;
  --people-line:#dfe2da;
  --people-line-strong:#c8cec4;
  --people-ink:#18201b;
  --people-ink-soft:#536159;
  --people-ink-muted:#748078;
  --people-forest:#174f42;
  --people-mint:#20c997;
  --people-mint-soft:#e5f8f1;
  --people-amber:#e9b949;
  --people-amber-soft:#fff5d7;
  --people-red:#b9473f;
  --people-red-soft:#fff0ee;
  --people-blue:#376d91;
  --people-blue-soft:#edf5fa;
  --people-shadow:0 18px 50px rgba(21,31,24,.10);
  --people-shadow-small:0 6px 18px rgba(21,31,24,.08);
  --people-radius:16px;
  --people-rail-width:238px;
  --people-topbar-height:64px;
  color-scheme:light;
}

*{box-sizing:border-box}
html{min-height:100%;background:var(--people-canvas);color:var(--people-ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px}
body{min-height:100%;margin:0;background:var(--people-canvas);color:var(--people-ink);overflow-x:hidden}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
small{font-size:11px;line-height:1.45}
[hidden]{display:none!important}
.skip-link{position:fixed;left:16px;top:-80px;z-index:1000;background:#fff;border:2px solid var(--people-forest);border-radius:10px;padding:10px 14px;font-weight:700}
.skip-link:focus{top:16px}

.people-shell{min-height:100vh;display:grid;grid-template-columns:var(--people-rail-width) minmax(0,1fr)}
.people-sidebar{position:fixed;inset:0 auto 0 0;width:var(--people-rail-width);z-index:30;display:flex;flex-direction:column;padding:22px 14px 18px;background:var(--people-rail);color:#f8faf8;border-right:1px solid rgba(255,255,255,.06)}
.people-brand{display:grid;gap:9px;padding:0 8px 22px;border-bottom:1px solid rgba(255,255,255,.08)}
.people-brand img{width:164px;height:auto;display:block}
.people-brand span{color:#aeb9b0;font-size:12px;font-weight:650;letter-spacing:.03em}
.people-nav{display:grid;gap:5px;margin-top:20px}
.people-nav a{min-height:42px;border-radius:11px;display:grid;grid-template-columns:28px 1fr;align-items:center;padding:0 11px;color:#aeb9b0;transition:background 150ms ease-out,color 150ms ease-out,transform 150ms ease-out}
.people-nav a span{font-size:16px;text-align:center}
.people-nav a b{font-size:13px;font-weight:650}
.people-nav a:hover{background:rgba(255,255,255,.06);color:#fff;transform:translateX(1px)}
.people-nav a.active{background:var(--people-amber);color:#272516;box-shadow:0 8px 24px rgba(0,0,0,.18)}
.people-sidebar-note{margin-top:auto;display:grid;gap:6px;border:1px solid rgba(255,255,255,.10);border-radius:14px;padding:13px;background:rgba(255,255,255,.04)}
.people-sidebar-note strong{font-size:12px}
.people-sidebar-note small{color:#aab5ac}

.people-workspace{grid-column:2;min-width:0}
.people-topbar{height:var(--people-topbar-height);position:sticky;top:0;z-index:20;display:flex;align-items:center;padding:0 30px;border-bottom:1px solid rgba(198,204,195,.8);background:rgba(245,244,238,.90);backdrop-filter:blur(18px)}
.people-topbar>div:first-of-type{display:grid;gap:2px}
.people-topbar small{color:var(--people-ink-muted)}
.people-topbar strong{font-size:13px}
.mobile-nav-button{display:none;width:38px;height:38px;border:1px solid var(--people-line);background:#fff;border-radius:10px;margin-right:10px}
.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:9px}
.connection-state{height:32px;display:flex;align-items:center;gap:8px;padding:0 11px;border:1px solid var(--people-line);border-radius:999px;background:#fff;color:var(--people-ink-soft);font-size:11px;font-weight:650}
.connection-state i{width:7px;height:7px;border-radius:50%;background:var(--people-mint)}
.connection-state[data-state="offline"] i,.connection-state[data-state="error"] i{background:var(--people-red)}
.icon-link{width:34px;height:34px;border:1px solid var(--people-line);border-radius:10px;background:#fff;display:grid;place-items:center;font-weight:800}

.people-content{max-width:1500px;margin:0 auto;padding:38px 34px 80px}
.people-page-head{display:flex;align-items:flex-end;gap:28px;margin-bottom:24px}
.people-page-head>div:first-child{max-width:820px}
.eyebrow{display:block;margin-bottom:8px;color:var(--people-forest);font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.people-page-head h1{font-size:38px;line-height:1.05;letter-spacing:-.04em;margin:0}
.people-page-head p{max-width:770px;margin:12px 0 0;color:var(--people-ink-soft);font-size:14px;line-height:1.65}
.page-actions{margin-left:auto;display:flex;gap:9px;flex-wrap:wrap}
.primary-action,.secondary-action,.quiet-action{min-height:38px;border-radius:10px;padding:9px 14px;font-size:12px;font-weight:750;border:1px solid transparent;transition:transform 150ms ease-out,box-shadow 150ms ease-out,background 150ms ease-out}
.primary-action{background:var(--people-forest);color:#fff;box-shadow:var(--people-shadow-small)}
.primary-action:hover{transform:translateY(-1px);box-shadow:0 9px 24px rgba(23,79,66,.20)}
.primary-action:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
.secondary-action{background:#fff;border-color:var(--people-line)}
.secondary-action:hover{border-color:var(--people-line-strong);transform:translateY(-1px)}
.quiet-action{background:transparent;border-color:var(--people-line);color:var(--people-forest)}

.attention-band{min-height:62px;display:flex;align-items:center;gap:18px;margin-bottom:18px;padding:12px 14px 12px 17px;border:1px solid #ead9a3;border-radius:14px;background:linear-gradient(90deg,var(--people-amber-soft),#fffdf6)}
.attention-band-copy{display:grid;gap:3px}
.attention-band-copy span{font-size:11px;color:#775f20;font-weight:800}
.attention-band-copy strong{font-size:13px}
.attention-band .quiet-action{margin-left:auto;background:rgba(255,255,255,.72);border-color:#e5ce87;color:#604c17}
.attention-band[data-empty="true"]{border-color:#cfe7dc;background:linear-gradient(90deg,var(--people-mint-soft),#fbfffd)}
.attention-band[data-empty="true"] .attention-band-copy span{color:var(--people-forest)}

.directory-toolbar{display:flex;align-items:center;gap:18px;margin-bottom:12px}
.view-tabs{display:flex;gap:6px;flex-wrap:wrap}
.view-tabs button{min-height:34px;border:1px solid var(--people-line);border-radius:999px;background:#fff;padding:7px 11px;font-size:11px;font-weight:650;color:var(--people-ink-soft)}
.view-tabs button.active{border-color:var(--people-forest);background:var(--people-forest);color:#fff}
.directory-tools{margin-left:auto;display:flex;align-items:center;gap:8px}
.people-search{height:38px;min-width:290px;display:flex;align-items:center;gap:8px;padding:0 11px;border:1px solid var(--people-line);border-radius:10px;background:#fff}
.people-search span{font-size:18px;color:var(--people-ink-muted)}
.people-search input{width:100%;border:0;outline:0;background:transparent;font-size:12px}
.display-toggle{height:38px;display:flex;padding:3px;border:1px solid var(--people-line);border-radius:10px;background:#fff}
.display-toggle button{width:34px;border:0;border-radius:7px;background:transparent;color:var(--people-ink-muted)}
.display-toggle button.active{background:var(--people-surface-soft);color:var(--people-forest);box-shadow:inset 0 0 0 1px var(--people-line)}
.directory-summary{min-height:28px;display:flex;align-items:center;gap:12px;color:var(--people-ink-muted);font-size:11px}
.directory-summary strong{color:var(--people-ink);font-variant-numeric:tabular-nums}
.directory-summary span+span:before{content:"·";margin-right:12px;color:var(--people-line-strong)}

.directory-surface{position:relative;min-height:360px;border:1px solid var(--people-line);border-radius:var(--people-radius);background:#fff;box-shadow:0 1px 0 rgba(255,255,255,.8) inset;overflow:hidden}
.people-loading{min-height:360px;display:flex;align-items:center;justify-content:center;gap:5px;color:var(--people-ink-muted)}
.people-loading span{width:7px;height:7px;border-radius:2px;background:var(--people-forest);animation:peoplePulse 900ms infinite alternate}
.people-loading span:nth-child(2){animation-delay:100ms}.people-loading span:nth-child(3){animation-delay:200ms}
.people-loading strong{margin-left:7px;font-size:12px}
@keyframes peoplePulse{to{opacity:.25;transform:translateY(-4px)}}

.people-table-wrap{max-width:100%;overflow:auto}
.people-table{width:100%;border-collapse:separate;border-spacing:0;min-width:1160px;font-variant-numeric:tabular-nums}
.people-table th{position:sticky;top:0;z-index:5;height:42px;padding:0 12px;border-bottom:1px solid var(--people-line);background:#f8f8f4;color:var(--people-ink-muted);font-size:11px;font-weight:750;text-align:left;white-space:nowrap}
.people-table th:first-child{left:0;z-index:6;padding-left:16px}
.people-table td{height:58px;padding:8px 12px;border-bottom:1px solid #eceee9;vertical-align:middle;font-size:12px}
.people-table td:first-child{position:sticky;left:0;z-index:3;padding-left:16px;background:#fff}
.people-table tr:last-child td{border-bottom:0}
.people-table tbody tr{transition:background 120ms ease-out}
.people-table tbody tr:hover td{background:#fbfcfa}
.people-table tbody tr:hover td:first-child{background:#fbfcfa}
.people-table tbody tr[data-archived="true"]{opacity:.68}
.person-cell{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:10px;min-width:210px}
.person-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--people-mint-soft);color:var(--people-forest);font-size:12px;font-weight:850;letter-spacing:.02em;overflow:hidden}
.person-avatar img{width:100%;height:100%;object-fit:cover}
.person-identity{display:grid;gap:3px;min-width:0}
.person-identity strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.person-identity small{color:var(--people-ink-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.state-stack{display:grid;gap:4px;min-width:145px}
.state-reason{font-size:11px;color:var(--people-ink-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px}
.status-pill{width:max-content;max-width:100%;display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:4px 8px;background:#eef1ed;color:var(--people-ink-soft);font-size:11px;font-weight:750;white-space:nowrap}
.status-pill:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:0 0 auto}
.status-pill.ready,.status-pill.active,.status-pill.available,.status-pill.verified{background:var(--people-mint-soft);color:var(--people-forest)}
.status-pill.blocked,.status-pill.failed,.status-pill.unreachable{background:var(--people-red-soft);color:var(--people-red)}
.status-pill.invited,.status-pill.onboarding,.status-pill.limited,.status-pill.pending{background:var(--people-amber-soft);color:#785e17}
.status-pill.working,.status-pill.scheduled{background:var(--people-blue-soft);color:var(--people-blue)}
.status-pill.archived,.status-pill.paused,.status-pill.unknown{background:#eef0ed;color:#6c756e}
.assignment-cell,.contact-cell,.owner-cell{display:grid;gap:3px;min-width:130px}
.assignment-cell strong,.contact-cell strong,.owner-cell strong{font-size:12px;font-weight:700}
.assignment-cell small,.contact-cell small,.owner-cell small{color:var(--people-ink-muted)}
.channel-row{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.channel-chip{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--people-line);border-radius:999px;padding:3px 6px;background:#fff;font-size:11px;color:var(--people-ink-soft)}
.channel-chip.available{border-color:#b9dfd0;background:var(--people-mint-soft);color:var(--people-forest)}
.attention-cell{min-width:155px}
.attention-copy{display:grid;gap:3px;color:var(--people-red)}
.attention-copy strong{font-size:12px}
.attention-copy small{color:var(--people-ink-muted)}
.no-attention{color:var(--people-ink-muted);font-size:11px}
.row-actions{display:flex;justify-content:flex-end;gap:5px;white-space:nowrap}
.row-actions button{min-height:31px;border:1px solid var(--people-line);border-radius:8px;background:#fff;padding:5px 9px;font-size:11px;font-weight:700}
.row-actions button.primary-row-action{border-color:var(--people-forest);background:var(--people-forest);color:#fff}

.people-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:12px;padding:14px;background:var(--people-canvas)}
.person-card{min-height:225px;display:flex;flex-direction:column;border:1px solid var(--people-line);border-radius:15px;background:#fff;padding:15px;box-shadow:0 1px 0 rgba(255,255,255,.8) inset;transition:transform 150ms ease-out,box-shadow 150ms ease-out}
.person-card:hover{transform:translateY(-2px);box-shadow:var(--people-shadow-small)}
.person-card-head{display:grid;grid-template-columns:48px 1fr;gap:11px;align-items:center}
.person-card .person-avatar{width:48px;height:48px;font-size:14px}
.person-card-title{display:grid;gap:3px;min-width:0}
.person-card-title strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.person-card-title small{color:var(--people-ink-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.person-card-status{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-top:14px}
.person-card-context{display:grid;gap:5px;margin-top:14px;padding:11px;border-radius:11px;background:var(--people-surface-soft)}
.person-card-context span{font-size:11px;color:var(--people-ink-muted)}
.person-card-context strong{font-size:12px}
.person-card-attention{min-height:34px;margin-top:12px;font-size:11px;color:var(--people-ink-soft)}
.person-card-attention.problem{color:var(--people-red);font-weight:650}
.person-card-actions{display:flex;gap:7px;margin-top:auto;padding-top:14px}
.person-card-actions button{flex:1;min-height:34px;border:1px solid var(--people-line);border-radius:9px;background:#fff;font-size:11px;font-weight:750}
.person-card-actions button:first-child{border-color:var(--people-forest);background:var(--people-forest);color:#fff}

.directory-empty{min-height:360px;display:grid;place-items:center;align-content:center;gap:9px;text-align:center;padding:40px}
.directory-empty .empty-icon{width:52px;height:52px;border-radius:15px;background:var(--people-mint-soft);display:grid;place-items:center;color:var(--people-forest);font-size:22px}
.directory-empty h2{font-size:18px;margin:4px 0 0}
.directory-empty p{max-width:460px;margin:0;color:var(--people-ink-muted);line-height:1.55}

.mobile-scrim{position:fixed;inset:0;z-index:39;background:rgba(12,17,13,.42);backdrop-filter:blur(2px)}
.person-drawer{position:fixed;inset:0 0 0 auto;z-index:50;width:min(720px,94vw);background:#fff;box-shadow:-24px 0 60px rgba(18,28,21,.18);transform:translateX(102%);transition:transform 240ms ease-out;display:flex;flex-direction:column}
.person-drawer.open{transform:translateX(0)}
.drawer-head{height:68px;display:flex;align-items:center;padding:0 18px;border-bottom:1px solid var(--people-line);background:#fbfcfa}
.drawer-head>div{display:grid;gap:2px}
.drawer-head small{color:var(--people-ink-muted)}
.drawer-head strong{font-size:15px}
.drawer-head button{margin-left:auto;width:36px;height:36px;border:1px solid var(--people-line);border-radius:10px;background:#fff;font-size:20px}
.drawer-body{flex:1;overflow:auto;padding:18px 18px calc(28px + env(safe-area-inset-bottom))}
.profile-loading{min-height:55vh;display:grid;place-items:center;color:var(--people-ink-muted)}
.profile-hero{display:grid;grid-template-columns:60px minmax(0,1fr) auto;align-items:center;gap:13px;padding:17px;border:1px solid var(--people-line);border-radius:15px;background:linear-gradient(135deg,#fbfdfb,#f5f8f5)}
.profile-hero .person-avatar{width:60px;height:60px;font-size:17px}
.profile-hero-copy{display:grid;gap:4px;min-width:0}
.profile-hero-copy h2{font-size:21px;line-height:1.15;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-hero-copy p{margin:0;color:var(--people-ink-muted);font-size:12px}
.profile-hero-state{display:grid;justify-items:end;gap:5px}
.profile-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.profile-actions button{min-height:36px;border:1px solid var(--people-line);border-radius:9px;background:#fff;padding:8px 11px;font-size:11px;font-weight:750}
.profile-actions button.primary{background:var(--people-forest);border-color:var(--people-forest);color:#fff}
.profile-tabs{position:sticky;top:-18px;z-index:5;display:flex;gap:4px;margin:16px -18px 0;padding:10px 18px;border-bottom:1px solid var(--people-line);background:rgba(255,255,255,.94);backdrop-filter:blur(12px);overflow:auto}
.profile-tabs button{min-height:34px;border:0;border-radius:8px;background:transparent;padding:7px 10px;font-size:11px;font-weight:700;color:var(--people-ink-muted);white-space:nowrap}
.profile-tabs button.active{background:var(--people-surface-soft);color:var(--people-forest);box-shadow:inset 0 0 0 1px var(--people-line)}
.profile-panel{display:none;padding-top:14px}
.profile-panel.active{display:block}
.profile-section{margin-bottom:12px;border:1px solid var(--people-line);border-radius:13px;background:#fff;overflow:hidden}
.profile-section>header{display:flex;align-items:center;gap:10px;min-height:45px;padding:0 13px;border-bottom:1px solid var(--people-line);background:#fafbf9}
.profile-section>header strong{font-size:12px}
.profile-section>header small{margin-left:auto;color:var(--people-ink-muted)}
.profile-section-body{padding:13px}
.definition-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.definition-item{min-height:58px;display:grid;align-content:start;gap:5px;padding:10px;border-radius:10px;background:var(--people-surface-soft)}
.definition-item span{font-size:11px;color:var(--people-ink-muted)}
.definition-item strong{font-size:12px;word-break:break-word}
.profile-list{display:grid}
.profile-list-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:11px 0;border-bottom:1px solid #eceee9}
.profile-list-row:last-child{border-bottom:0}
.profile-list-row>div{display:grid;gap:4px}
.profile-list-row strong{font-size:12px}
.profile-list-row small{color:var(--people-ink-muted)}
.profile-list-row time{font-size:11px;color:var(--people-ink-muted);white-space:nowrap}
.timeline{display:grid}
.timeline-row{position:relative;display:grid;grid-template-columns:14px minmax(0,1fr) auto;gap:9px;padding:10px 0}
.timeline-row:before{content:"";position:absolute;left:5px;top:22px;bottom:-8px;width:1px;background:var(--people-line)}
.timeline-row:last-child:before{display:none}
.timeline-dot{width:11px;height:11px;border-radius:50%;margin-top:3px;border:3px solid #fff;background:var(--people-forest);box-shadow:0 0 0 1px var(--people-line)}
.timeline-copy{display:grid;gap:3px}
.timeline-copy strong{font-size:12px}
.timeline-copy small{color:var(--people-ink-muted)}
.timeline-row time{font-size:11px;color:var(--people-ink-muted)}
.task-form{display:grid;grid-template-columns:minmax(0,1fr) 150px auto;gap:7px;margin-bottom:10px}
.task-form input{min-height:36px;border:1px solid var(--people-line);border-radius:9px;padding:7px 9px;background:#fff;font-size:12px}
.task-form button{border:0;border-radius:9px;background:var(--people-forest);color:#fff;padding:7px 11px;font-size:11px;font-weight:750}
.profile-boundary{margin-top:12px;padding:11px 12px;border-radius:10px;background:var(--people-blue-soft);color:#315f7f;font-size:11px;line-height:1.5}

.people-dialog{width:min(620px,calc(100vw - 28px));max-height:calc(100vh - 28px);border:0;border-radius:18px;padding:0;background:transparent;box-shadow:var(--people-shadow)}
.people-dialog.wide{width:min(980px,calc(100vw - 28px))}
.people-dialog::backdrop{background:rgba(12,18,14,.48);backdrop-filter:blur(3px)}
.dialog-card{display:flex;flex-direction:column;max-height:calc(100vh - 28px);margin:0;background:#fff;border-radius:18px;overflow:hidden}
.dialog-card>header{min-height:72px;display:flex;align-items:center;gap:12px;padding:14px 17px;border-bottom:1px solid var(--people-line);background:#fbfcfa}
.dialog-card>header>div{display:grid;gap:3px}
.dialog-card>header small{color:var(--people-ink-muted)}
.dialog-card h2{font-size:18px;margin:0}
.dialog-card>header button{margin-left:auto;width:36px;height:36px;border:1px solid var(--people-line);border-radius:10px;background:#fff;font-size:20px}
.dialog-intro{margin:0;padding:13px 17px 0;color:var(--people-ink-soft);font-size:12px;line-height:1.55}
.form-grid{display:grid;gap:12px;padding:17px;overflow:auto}
.form-grid.two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
.form-grid label,.import-dropzone label,.invitation-link{display:grid;gap:6px;color:var(--people-ink-soft);font-size:11px;font-weight:700}
.form-grid input,.form-grid select,.import-dropzone input,.invitation-link input{min-height:40px;border:1px solid var(--people-line);border-radius:9px;background:#fff;padding:8px 10px;outline:0;font-size:12px}
.form-grid input:focus,.form-grid select:focus,.import-dropzone input:focus,.invitation-link input:focus{border-color:var(--people-forest);box-shadow:0 0 0 3px rgba(23,79,66,.10)}
.dialog-card>footer{display:flex;justify-content:flex-end;gap:8px;padding:13px 17px;border-top:1px solid var(--people-line);background:#fbfcfa}
.form-feedback{min-height:0;margin:0 17px;color:var(--people-red);font-size:11px;line-height:1.45}
.form-feedback:not(:empty){min-height:38px;padding:9px 11px;border-radius:9px;background:var(--people-red-soft)}
.form-feedback.success:not(:empty){color:var(--people-forest);background:var(--people-mint-soft)}
.import-dropzone{display:grid;grid-template-columns:minmax(250px,.8fr) 1fr;gap:16px;margin:17px;padding:16px;border:1px dashed var(--people-line-strong);border-radius:13px;background:var(--people-surface-soft)}
.import-dropzone>div{display:grid;align-content:center;gap:4px}
.import-dropzone strong{font-size:12px}
.import-dropzone small{color:var(--people-ink-muted)}
.import-results{max-height:420px;overflow:auto;margin:0 17px 14px}
.import-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:10px}
.import-summary-item{display:grid;gap:4px;padding:11px;border:1px solid var(--people-line);border-radius:10px;background:#fff}
.import-summary-item span{font-size:11px;color:var(--people-ink-muted)}
.import-summary-item strong{font-size:19px;font-variant-numeric:tabular-nums}
.import-preview{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--people-line);border-radius:11px;overflow:hidden;font-size:11px}
.import-preview th{padding:9px 10px;background:#f7f8f5;text-align:left;color:var(--people-ink-muted);border-bottom:1px solid var(--people-line)}
.import-preview td{padding:9px 10px;border-bottom:1px solid #eceee9;vertical-align:top}
.import-preview tr:last-child td{border-bottom:0}
.import-row-state{font-weight:800;text-transform:capitalize}
.import-row-state.ok,.import-row-state.create,.import-row-state.match{color:var(--people-forest)}
.import-row-state.warning,.import-row-state.update{color:#7b611a}
.import-row-state.error,.import-row-state.reject{color:var(--people-red)}
.invitation-link{padding:17px}
.invitation-link input{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--people-surface-soft)}

.people-toasts{position:fixed;right:18px;bottom:18px;z-index:100;display:grid;gap:8px;width:min(390px,calc(100vw - 36px))}
.people-toast{padding:12px 14px;border:1px solid #c7e4d8;border-radius:11px;background:#f6fffb;color:var(--people-forest);box-shadow:var(--people-shadow-small);font-size:12px;font-weight:650;animation:toastIn 180ms ease-out}
.people-toast.error{border-color:#ecc7c3;background:#fff7f6;color:var(--people-red)}
@keyframes toastIn{from{opacity:0;transform:translateY(6px)}}

:focus-visible{outline:3px solid rgba(32,201,151,.38);outline-offset:2px}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}

@media (max-width:1100px){
  :root{--people-rail-width:214px}
  .people-content{padding-left:24px;padding-right:24px}
  .directory-toolbar{align-items:flex-start;flex-direction:column}
  .directory-tools{width:100%;margin-left:0}
  .people-search{flex:1;min-width:0}
}

@media (max-width:820px){
  .people-shell{display:block}
  .people-sidebar{width:min(280px,86vw);transform:translateX(-102%);transition:transform 220ms ease-out;box-shadow:24px 0 50px rgba(0,0,0,.24)}
  .people-sidebar.open{transform:translateX(0)}
  .people-workspace{min-width:0}
  .mobile-nav-button{display:grid;place-items:center}
  .people-topbar{padding:0 14px}
  .connection-state{display:none}
  .people-content{padding:26px 14px 72px}
  .people-page-head{align-items:flex-start;flex-direction:column;gap:16px}
  .people-page-head h1{font-size:32px}
  .page-actions{width:100%;margin-left:0}
  .page-actions button{flex:1}
  .attention-band{align-items:flex-start;flex-direction:column;gap:10px}
  .attention-band .quiet-action{width:100%;margin-left:0}
  .view-tabs{width:100%;overflow:auto;flex-wrap:nowrap;padding-bottom:2px}
  .view-tabs button{white-space:nowrap}
  .directory-tools{flex-wrap:wrap}
  .people-search{width:100%;flex-basis:100%}
  .display-toggle{margin-left:auto}
  .people-table-wrap{overflow:visible}
  .people-table{min-width:0;display:block}
  .people-table thead{display:none}
  .people-table tbody{display:grid;gap:9px;padding:10px;background:var(--people-canvas)}
  .people-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;border:1px solid var(--people-line);border-radius:13px;background:#fff;padding:12px}
  .people-table td{height:auto;min-width:0;padding:0;border:0;display:none}
  .people-table td:first-child{position:static;display:block;background:transparent;padding:0;grid-column:1}
  .people-table td[data-mobile="state"]{display:block;grid-column:2;grid-row:1;text-align:right}
  .people-table td[data-mobile="context"]{display:block;grid-column:1/-1;padding-top:8px;border-top:1px solid #eceee9}
  .people-table td[data-mobile="attention"]{display:block;grid-column:1/-1}
  .people-table td[data-mobile="actions"]{display:block;grid-column:1/-1}
  .people-table tbody tr:hover td,.people-table tbody tr:hover td:first-child{background:transparent}
  .person-cell{min-width:0}
  .state-stack{justify-items:end;min-width:0}
  .state-reason{display:none}
  .row-actions{justify-content:flex-start}
  .row-actions button{flex:1}
  .people-gallery{grid-template-columns:1fr}
  .profile-hero{grid-template-columns:52px minmax(0,1fr)}
  .profile-hero .person-avatar{width:52px;height:52px}
  .profile-hero-state{grid-column:1/-1;justify-items:start}
  .definition-grid{grid-template-columns:1fr}
  .task-form{grid-template-columns:1fr}
  .form-grid.two-columns{grid-template-columns:1fr}
  .import-dropzone{grid-template-columns:1fr}
  .import-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dialog-card>footer{flex-wrap:wrap}
  .dialog-card>footer button{flex:1}
}

@media (max-width:520px){
  .people-topbar>div:first-of-type small{display:none}
  .people-page-head p{font-size:13px}
  .directory-summary{align-items:flex-start;flex-direction:column;gap:3px}
  .directory-summary span+span:before{display:none}
  .person-drawer{width:100vw}
  .profile-tabs{padding-left:12px;padding-right:12px}
  .import-summary-grid{grid-template-columns:1fr 1fr}
  .import-preview{display:block;overflow:auto;white-space:nowrap}
}
