/* People and companies page. Scoped to .directory so the shared stylesheet is untouched. */
.directory .page-head{margin-bottom:16px}
.directory h1{margin:var(--s2) 0 0}

/* Buttons: the one shared button type rule (styles.css); only the ghost colours are local */
.directory .btn-ghost:hover{border-color:var(--gold);color:var(--gold2);background:var(--gold4)}
.directory .link-btn{min-height:44px}

/* The search bar */
.omnibar{position:relative;display:flex;align-items:center;margin:0 0 var(--s4)}
.omnibar-icon{position:absolute;left:16px;color:var(--ink3);pointer-events:none}
.omnibar input{min-height:52px;padding:var(--s3) var(--s4) var(--s3) calc(var(--s6) + var(--s4));font-size:16px;border:1px solid var(--field-edge);border-radius:var(--radius-surface);background:var(--bg);box-shadow:var(--shadow)}

/* Company matches and quick actions under the search bar */
.omni-results{border:1px solid var(--rule);border-radius:var(--radius-surface);background:var(--bg);margin:0 0 16px;overflow:hidden}
.group-title{font-family:'DM Mono',ui-monospace,monospace;font-size:12px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--ink3);margin:0;padding:12px 16px 4px}
.directory .plain{list-style:none;margin:0;padding:0}
.co-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;border-top:1px solid var(--rule)}
.group-title + .co-list .co-row:first-child{border-top:none}
.co-main{display:flex;flex-direction:column;min-width:0}
.co-name{font-weight:700;overflow-wrap:anywhere}
.co-main .muted{font-size:14px;line-height:1.3}
.co-actions{display:flex;gap:8px;flex-wrap:wrap}
.quick-list{border-top:1px solid var(--rule)}
.quick-list:first-child{border-top:none}
.quick{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:12px 16px;border:none;background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.quick + .quick,.quick-list li + li .quick{border-top:1px solid var(--rule)}
.quick:hover{background:var(--gold4)}
.quick-plus{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:var(--radius-control);background:var(--gold);color:var(--bg);font-weight:700;flex:none}
.omni-note{margin:0;padding:12px 16px;font-size:14px}

/* Company context and the quiet invite action */
.context{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:var(--s4);margin:0 0 16px;border:1px solid var(--rule2);border-left:3px solid var(--gold);border-radius:var(--radius-surface);background:var(--gold4)}
.context p{margin:0}
.context-name{font-family:'Hanken Grotesk','DM Sans',system-ui,sans-serif;font-size:20px;font-weight:700;line-height:1.3;overflow-wrap:anywhere}
.quiet-actions{margin:0 0 16px}

/* The invite form: an inline panel, not a card */
.composer{border:1px solid var(--rule2);border-radius:var(--radius-surface);background:var(--bg);margin:0 0 16px;box-shadow:var(--shadow)}
.composer-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--rule)}
.composer-head h2{margin:0;font-size:16px}
.composer .form{max-width:none;padding:16px;grid-template-columns:1fr;align-items:end}
.composer .form .field:first-child{grid-column:1/-1}
.composer .form .btn-primary{justify-self:start}
@media(min-width:760px){.composer .form{grid-template-columns:220px 1fr auto}.composer .form .field:first-child{grid-column:1/-1}}
.scope-line{margin:0;padding:var(--s3);border:1px solid var(--rule);border-radius:var(--radius-control);background:var(--bg2)}
.scope-line .link-btn{min-height:44px;margin-left:8px;font-size:14px}

/* Filters: a quiet toolbar, not a card */
.directory .filters{padding:0;margin:0 0 var(--s4)}
.directory .filter-grid{gap:12px}
@media(min-width:760px){.directory .filter-grid{grid-template-columns:repeat(4,1fr)}}
.directory .filters .field label,.directory .filters .picker-label{font-family:'DM Mono',ui-monospace,monospace;font-size:12px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--ink3)}
.directory .filters input,.directory .filters select{min-height:44px;padding:4px 12px;font-size:16px;border-radius:var(--radius-control)}
.directory .chip{background:var(--bg2);border-color:var(--rule);border-radius:var(--radius-control);font-size:14px}

/* Results */
.directory .tablewrap{border-radius:var(--radius-surface);border-color:var(--rule);background:var(--bg)}
.directory th{background:var(--bg2);font-size:12px}
.directory td{padding:12px 16px}
.directory .badge{border-radius:var(--radius-control);font-size:14px;padding:1px 8px;background:var(--bg2)}
.directory .status{font-size:var(--fs-action);padding:3px 8px}
.directory .people-cards .card{border-radius:var(--radius-surface);background:var(--bg)}
.directory .pager{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.omni-note:empty{padding:0}

/* ===== People query bar and saved views (wave 2, item 5): one block, keep together =====
   Nothing here moves when a filter is set, a view is saved or a message appears: the save form's slot is always rendered
   (hidden, not absent), the status line is one reserved line, and the list's note and its chips share one 44px row.
   Every control is 44px at every pointer type; the name field is 16px (the global input rule) so iOS never zooms. */
.query-field{margin:0 0 var(--s4)}
.saved-views{margin:0 0 16px}
.sv-head{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2) var(--s3);margin:0 0 var(--s2)}
.sv-head .sv-title{margin:0}
.sv-title{font-family:'DM Mono',ui-monospace,monospace;font-size:12px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--ink3);margin:0 0 var(--s2)}
.sv-list{position:relative;display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none;min-height:44px}
.sv-empty{display:flex;align-items:center;min-height:44px;margin:0;font-size:14px}
.sv-chip{min-height:44px;padding:0 0 0 12px;max-width:100%}
.sv-link{display:inline-flex;align-items:center;min-height:44px;min-width:0;color:inherit;text-decoration:none;overflow-wrap:anywhere}
.sv-link:hover{text-decoration:underline}
.sv-link[aria-current="true"]{font-weight:700;text-decoration:underline}
/* The question floats over the list at the list's full width, right under the chip that asked (the panel sits at its in-flow
   position vertically; the list, not the narrow chip, is what it spans). */
.sv-item .slot.confirm-slot,.sv-item .slot.confirm-slot.in-row{position:static;margin-top:0}
.sv-item .confirm-panel{top:auto}
.sv-save{display:flex;gap:8px;align-items:stretch;min-height:44px;margin:8px 0 0}
.sv-save input{flex:1 1 auto;min-width:0;min-height:44px;font-size:16px}
.sv-save .btn-fixed{flex:none;min-width:112px}
.sv-msg{margin:4px 0 0}
.sv-msg[data-error]{color:var(--rose)}
