/* Slim app bar for the signed-in customer portal. Replaces the marketing header on opspilot-customer-reports.html.
   The shell script (opspilot-portal-shell.mjs) mounts the tenant, connection, Help, role and Sign out controls into [data-pchrome-mount];
   without JavaScript the bar still shows the logo and the link back to the public site. Dark values mirror the portal dark palette. */
.pchrome{position:sticky;top:0;z-index:30;display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;min-height:56px;padding:8px clamp(16px,4vw,40px);background:#fff;border-bottom:1px solid #d9e2dc;box-shadow:0 6px 16px -14px #1f2a24}
.pchrome-brand{display:inline-flex;align-items:center;gap:8px;color:#18261e;font-size:21px;font-weight:750;letter-spacing:-.8px;text-decoration:none}
.pchrome-brand img{width:30px;height:30px}
.pchrome-brand span span{color:#1c8077}
.pchrome-product{color:#4b5d53;font-size:12px;font-weight:700;letter-spacing:1px}
.pchrome-mount{display:flex;flex:1 1 auto;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px 12px;min-width:0}
.pchrome-mount .ps-ctx{flex:0 1 auto;order:0;padding:0;border:0}
.pchrome-mount .ps-slot{margin-left:0}
.pchrome-mount .ps-ctx-item{padding:3px 9px;font-size:13px;color:#18261e}
.pchrome-site{margin-left:auto;color:#315d69;font-size:13px;font-weight:650;text-decoration:none;white-space:nowrap}
.pchrome-mount:not(:empty)~.pchrome-site{margin-left:0}
.pchrome-site:hover{text-decoration:underline}
.pchrome :focus-visible{outline:3px solid #0b5f4f;outline-offset:2px;border-radius:6px}
@media(max-width:820px){.pchrome{position:static}.pchrome-mount{flex:1 1 100%;order:3;justify-content:flex-start}.pchrome-site{order:2;margin-left:auto}.pchrome-mount:not(:empty)~.pchrome-site{margin-left:auto}.pchrome-product{display:none}}
@media print{.pchrome{display:none}}
@media(forced-colors:active){.pchrome{border-bottom:1px solid CanvasText}}
@media (prefers-color-scheme:dark){
  .pchrome{background:#1b2520;border-bottom-color:#2f3d36;box-shadow:0 1px 0 #2f3d36,0 6px 16px -14px #000}
  .pchrome-brand{color:#f2f5f3}.pchrome-brand span span{color:#6bc7c1}.pchrome-brand img{padding:3px;border-radius:8px;background:#fff}
  .pchrome-product{color:#c4d0ca}.pchrome-site{color:#96c2ce}
  .pchrome .ps-ctx-item{border-color:#2f3d36;background:#141d19;color:#f2f5f3}.pchrome .ps-ctx-k{color:#c4d0ca}
  .pchrome .ps-help{color:#8fd1ac}.pchrome .ps-help:hover{background:#26342d}
  .pchrome .ps-conn::before{border-color:#9fb0a7}.pchrome .ps-conn[data-tone=ok]::before{background:#7ddc9f;border-color:#7ddc9f}.pchrome .ps-conn[data-tone=info]::before{background:#8bd7ff;border-color:#8bd7ff}.pchrome .ps-conn[data-tone=warn]::before{background:#ffcf70;border-color:#ffcf70}
  .pchrome :focus-visible{outline-color:#8bd7ff}
}
