/* Conta e status do sistema no mesmo popover do cabeçalho. */
.heading-actions { grid-column:2; grid-row:1; display:flex; align-items:center; gap:8px; justify-self:end; }
.header-account { display:flex; align-items:center; }
.account-trigger { display:grid; place-items:center; width:36px; height:36px; padding:0; border:4px solid var(--surface); border-radius:50%; background:#08783d; color:#fff; font:500 15px/1 "Segoe UI",SegoeUI,Arial,sans-serif; cursor:pointer; }
.account-trigger:hover { background:#06632f; }
.account-popover { position:fixed; inset:auto; margin:0; width:max-content; max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); overflow:auto; padding:0; border:1px solid var(--line); border-radius:6px; color:var(--text); background:var(--surface); box-shadow:0 4px 18px #13213b26; font-family:"Segoe UI",SegoeUI,Arial,sans-serif; font-size:13px; line-height:1.35; }
.account-overview { padding:4px 0; border-bottom:1px solid var(--line); }
.account-summary { display:flex; align-items:center; gap:12px; min-height:36px; padding:8px 12px; }
.account-email { display:flex; align-items:center; gap:10px; min-width:0; margin:0; }
.account-email span { min-width:0; overflow-wrap:anywhere; }
.account-actions { display:grid; padding:4px 0; background:#f8fafc; }
.account-action { display:flex; align-items:center; gap:10px; min-height:36px; padding:8px 12px; color:var(--text); text-decoration:none; }
.account-action:hover { background:#eef3f8; }
.account-action svg,.account-email svg { width:20px; height:20px; flex:none; fill:none; stroke:var(--muted); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.account-email svg { stroke:#08783d; }
.account-guide img { display:block; width:20px; height:20px; flex:none; }
.account-trigger:focus-visible,.account-action:focus-visible { outline:2px solid var(--cyan); outline-offset:2px; }
.account-action:focus-visible { outline-offset:-3px; }
.connect-shell .connect-navigation > .nav-item svg { width:20px; height:20px; }
.connect-shell .view-sidebar { padding-bottom:12px; }
.connect-shell .sidebar-footer { display:block; }
.sidebar-version { display:flex; align-items:center; min-width:0; }
.connect-shell .sidebar-version .heading-version { min-width:0; font-size:11px; color:#dbe8fb; }
.connect-shell.sidebar-is-collapsed .sidebar-version .heading-version { font-size:9px; white-space:normal; overflow-wrap:anywhere; }
@media(min-width:1001px), (max-width:1000px) and (max-height:500px) and (orientation:landscape) {
  .connect-shell .view-sidebar { padding-bottom:0; }
  .connect-shell .sidebar-footer {
    display:flex; align-items:center; flex:none; box-sizing:border-box;
    height:var(--workspace-bottom-inset); padding:0 8px;
  }
  .connect-shell.sidebar-is-collapsed .sidebar-footer { height:auto; min-height:var(--workspace-bottom-inset); padding:4px 0; }
  .connect-shell .sidebar-version { line-height:1; }
}
.account-popover .application-health { margin:0; padding:0; border:0; }
.account-popover .health-trigger { display:flex; width:100%; max-width:none; gap:10px; padding:8px 12px; border-radius:0; font:inherit; }
.account-popover .health-trigger:hover { background:#eef3f8; }
.account-popover .health-trigger:focus-visible { outline:2px solid var(--cyan); outline-offset:-3px; }
.account-popover .health-menu-state,.account-popover .health-menu-state img { width:20px; height:20px; }
.health-trigger-copy { display:flex; align-items:baseline; flex-wrap:wrap; column-gap:4px; min-width:0; }
.health-overall-state { color:var(--muted); font-size:11px; font-weight:400; }
.health-overall-state[data-state="healthy"] { color:#38884b; }
.health-overall-state[data-state="unhealthy"] { color:#c33d3d; }
.account-popover .health-chevron { width:16px; height:16px; margin-left:auto; }
.health-trigger[aria-expanded="true"] .health-chevron { transform:rotate(180deg); }
.account-popover .health-panel { position:static; width:auto; max-width:none; max-height:none; overflow:visible; padding:8px 12px 8px 42px; border:0; border-radius:0; background:transparent; color:inherit; box-shadow:none; font:inherit; }
.account-popover .health-last-check { margin-top:0; }
@media(max-width:1000px) { .heading-actions { grid-column:2; grid-row:1; padding-right:12px; } }
@media(max-width:1000px) and (max-height:500px) and (orientation:landscape) { .heading-actions { grid-column:2; padding-right:0; } }
@media(pointer:coarse) { .account-summary,.account-action { min-height:44px; } .header-account { min-width:44px; min-height:44px; } .account-trigger { width:44px; height:44px; border:8px solid var(--surface); } .heading-actions { gap:4px; } }
@media(max-width:460px) {
  .connect-shell:has(.environment-tag) { --header-height:92px; }
  .connect-shell:has(.environment-tag) .page-heading { grid-template-rows:40px 52px; }
  .connect-shell:has(.environment-tag) .heading-brand { grid-column:1 / -1; grid-row:1; }
  .connect-shell:has(.environment-tag) .heading-actions { grid-column:1 / -1; grid-row:2; }
}
