/* ================================================================ A-230 to A-232 (Rrahul, 16 Nov 2026)
 * 1. "Search anyone" in the centre of Studio's header, on every page.
 * 2. The one people card (Visitors and Employees): one frame, every card the same height, the action at the foot.
 * 3. The left menu's icons in colour: one hue for each group, a tinted tile behind a saturated glyph.
 * Brand tokens only (brand.css), and one more below. Studio has no dark mode (it is drawn light on every machine), so only light is measured.
 */
/* The brand magenta deepened for a line drawing on a light tile (5.6:1 on white, as --hb-cta-fill's first stop is). */
:root { --hb-magenta-deep: #B0006B; }

/* ---------------------------------------------------------------- 1. the header search */
/* Four columns: where you are | the search, centred | Welcome, Hub, Help, Sign out | the logo. The two sides share what is left. */
.studio .mhead { display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(220px, 400px) minmax(max-content, 1fr) auto; column-gap: 16px; }
.studio .mhead .mhead-r { justify-content: flex-end; margin-left: 0; }
.studio .mhead .gsearch { position: relative; width: 100%; min-width: 0; }
.gsearch .gs-open { display: none; }
.gsearch .gs-box { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 12px; border: 1px solid var(--hb-line); border-radius: var(--hb-pill); background: var(--hb-mist); transition: border-color .18s ease-out, background .18s ease-out, box-shadow .18s ease-out; }
.gsearch .gs-box:focus-within { border-color: var(--hb-blue); background: var(--hb-white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hb-blue) 22%, transparent); }
.gsearch .gs-ico { width: 18px; height: 18px; flex: none; color: var(--hb-slate); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.gsearch input[type=search] { flex: 1; min-width: 0; height: 38px; border: 0; padding: 0; margin: 0; background: transparent; box-shadow: none; outline: none; color: var(--hb-ink); font: 400 14px/1 var(--hb-font-ui, inherit); }
.gsearch input[type=search]::placeholder { color: var(--hb-slate); opacity: 1; }
.gsearch input[type=search]::-webkit-search-cancel-button { display: none; }
.gsearch .gs-x { display: none; flex: none; width: 28px; height: 28px; min-height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--hb-slate); font-size: 18px; line-height: 1; }
.gsearch.has-q .gs-x { display: inline-grid; place-items: center; }
.gsearch .gs-x:hover { background: var(--hb-line); color: var(--hb-ink); }

.gsearch .gs-list { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; max-height: min(70vh, 520px); overflow: auto; padding: 6px; border: 1px solid var(--hb-line); border-radius: var(--hb-radius-sm); background: var(--hb-white); box-shadow: 0 12px 32px -8px rgba(15,18,34,.22), 0 2px 6px rgba(15,18,34,.06); }
.gsearch .gs-list { min-width: min(400px, calc(100vw - 32px)); }
.gsearch .gs-list[hidden] { display: none; }
.gs-sec { padding: 8px 10px 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hb-slate); }
.gs-hit { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; min-width: 0; }
.gs-hit[aria-selected="true"], .gs-hit:hover { background: var(--hb-mist); }
.gs-hit[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--hb-blue); }
.gs-av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.gs-av.v { background: color-mix(in srgb, var(--hb-purple) 12%, var(--hb-white)); color: var(--hb-purple); }
.gs-av.e { background: color-mix(in srgb, var(--hb-blue) 14%, var(--hb-white)); color: var(--hb-blue-deep); }
.gs-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.gs-tx b { font-size: 14px; font-weight: 600; color: var(--hb-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-tx span { font-size: 13px; color: var(--hb-slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-when { flex: none; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: var(--hb-pill); background: var(--hb-ok-bg); color: var(--hb-ok); }
.gs-none { padding: 14px 12px; font-size: 14px; color: var(--hb-slate); }
.gs-hit mark { background: color-mix(in srgb, var(--hb-yellow) 40%, var(--hb-white)); color: inherit; border-radius: 3px; padding: 0 1px; }

/* A narrower screen: the box folds to an icon that opens a field across the whole header. (Under 900 px Studio shows its
   "made for a laptop" card instead of itself, so a phone never sees this; it is built to hold at 360 px all the same.) */
@media (max-width: 1100px) {
  .studio .mhead { grid-template-columns: minmax(0, 1fr) 36px auto auto; column-gap: 8px; }
  .studio .mhead .crumbs { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .studio .mhead .gsearch { width: auto; position: static; }
  .gsearch .gs-open { display: inline-grid; place-items: center; width: 36px; height: 36px; min-height: 36px; padding: 0; border: 1px solid var(--hb-line); border-radius: 50%; background: var(--hb-white); color: var(--hb-slate); }
  .gsearch .gs-open .svg-i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .gsearch .gs-box { display: none; }
  .gsearch.open .gs-box { display: flex; position: absolute; z-index: 41; left: 16px; right: 16px; top: 50%; transform: translateY(-50%); background: var(--hb-white); border-color: var(--hb-blue); }
  .gsearch.open .gs-x { display: inline-grid; place-items: center; }
  .gsearch .gs-list { left: 16px; right: 16px; top: calc(100% - 4px); }
}

/* ---------------------------------------------------------------- 2. the one people card (A-231) */
/* Every card in a row is the same height; the name block is always three lines (name, company, second line), so a card
   with no company does not sit higher than its neighbour; notes and hints sit in one slot; the button is at the foot. */
.cardgrid.pgrid { align-items: stretch; }
.cardgrid .pcard { height: 100%; box-sizing: border-box; }
.pcard .pc-id { min-height: 58px; }
.pcard .pc-co:empty::before, .pcard .pc-line:empty::before { content: '\00a0'; }
.pcard .pc-pic { width: 56px; height: 56px; font-size: 17px; background: color-mix(in srgb, var(--hb-purple) 10%, var(--hb-white)); color: var(--hb-purple); }
.pcard .pc-more { display: flex; flex-direction: column; gap: 6px; }
.pcard .pc-more:not(:has(> :not(:empty))) { display: none; }   /* nothing in it but an empty code slot */
.pcard .pc-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.pcard .pc-foot:empty { display: none; }

/* ---------------------------------------------------------------- 3. the menu's coloured icons (A-232) */
/* Each group has its own hue; the glyph is the deep shade of it (at least 4.5:1 on its tile and on the menu's mist),
   the tile a light tint. The item being looked at keeps its white pill and the gradient mark at the left. */
.side nav a .svg-i.ni { width: 28px; height: 28px; padding: 5px; box-sizing: border-box; border-radius: 8px; flex: none; stroke-width: 2; color: var(--ni-fg); background: var(--ni-bg); transition: background .18s ease-out; }
.side nav a .svg-i.ni-dash { --ni-fg: var(--hb-blue-deep); --ni-bg: color-mix(in srgb, var(--hb-blue) 16%, var(--hb-white)); }
.side nav a .svg-i.ni-make { --ni-fg: var(--hb-magenta-deep); --ni-bg: color-mix(in srgb, var(--hb-magenta) 13%, var(--hb-white)); }
.side nav a .svg-i.ni-ppl { --ni-fg: var(--hb-purple); --ni-bg: color-mix(in srgb, var(--hb-purple) 14%, var(--hb-white)); }
.side nav a .svg-i.ni-rcp { --ni-fg: var(--hb-warn); --ni-bg: color-mix(in srgb, var(--hb-orange) 18%, var(--hb-white)); }
.side nav a .svg-i.ni-aud { --ni-fg: var(--hb-ok); --ni-bg: color-mix(in srgb, var(--hb-green) 20%, var(--hb-white)); }
.side nav a .svg-i.ni-set { --ni-fg: var(--hb-slate); --ni-bg: var(--hb-line); }
.side nav a:hover .svg-i.ni, .side nav a.on .svg-i.ni { background: color-mix(in srgb, var(--ni-fg) 10%, var(--hb-white)); }
.side nav a.on .svg-i.ni { color: var(--ni-fg); }
.side nav a { gap: 10px; }
.side nav a.on { padding-top: 5px; padding-bottom: 5px; }
.side nav a:not(.on) { padding-top: 6px; padding-bottom: 6px; }
@media (prefers-reduced-motion: reduce) { .side nav a .svg-i.ni, .gsearch .gs-box { transition: none; } }
