/* Follow both Nuvile themes; preserve the existing wordmark and module windows. */
#workspace .workspace-header.nv-compact-header{height:56px;min-height:56px;gap:8px;padding:7px 14px;position:relative}
.nv-compact-header .workspace-identity{flex:1 1 160px;margin:0;min-width:100px}
.nv-compact-header #user-name,.nv-compact-header .account{display:none!important}
#workspace .nv-compact-header .nv-branch-switch{max-width:210px;overflow:hidden;text-overflow:ellipsis;flex-shrink:1}
#workspace .nv-compact-header .nv-connections{display:flex;gap:2px;order:8;flex-shrink:0}
#workspace .nv-compact-header .nv-connections button{border:0;background:transparent;padding:5px 6px;font-size:12px;gap:5px}
.nv-connections i,.nv-connections-panel i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#8995a5;flex:none}
[data-state=good] i{background:#168459}[data-state=warn] i{background:#b97b00}[data-state=bad] i{background:#cb3745}
#workspace .nv-compact-header .nv-user-trigger{order:14;flex:none;border-radius:20px;background:var(--nuvile-soft);font-weight:600;padding:6px 9px}
.nv-user-menu{position:absolute;right:12px;top:calc(100% + 4px);z-index:15000;min-width:220px;max-width:calc(100vw - 24px);padding:10px;background:var(--nuvile-paper,#fff);color:var(--nuvile-primary,#164ba6);border:1px solid var(--nuvile-border,#cad8e7);border-radius:8px;box-shadow:0 10px 30px #132b4b26}
.nv-user-menu[hidden]{display:none!important}.nv-user-menu strong{display:block;padding:6px 8px 12px;font-size:13px}
#workspace .nv-compact-header .nv-user-menu button{display:flex;width:100%;height:auto;min-height:36px;justify-content:flex-start;white-space:normal;border:0;padding:8px;gap:8px;text-align:left}
#workspace .nv-compact-header .nv-user-menu .session-sign-out span{display:inline}
.nv-connections-panel{position:fixed;right:18px;top:76px;width:410px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 100px);overflow:auto;z-index:15000;background:var(--nuvile-paper,#fff);color:var(--nuvile-ink,#20344e);border:1px solid var(--nuvile-border,#cad8e7);border-radius:8px;box-shadow:0 10px 30px #132b4b26;font:13px/1.5 'Segoe UI',sans-serif;box-sizing:border-box;padding:14px}
.nv-connections-panel header{display:flex;align-items:center;gap:8px}.nv-connections-panel header strong{flex:1;font-size:16px}.nv-connections-panel button{cursor:pointer;font:inherit;border:1px solid var(--nuvile-border,#cad8e7);border-radius:5px;background:var(--nuvile-paper,#fff);color:var(--nuvile-primary,#164ba6);padding:6px 10px}
.nv-connections-panel article{border-top:1px solid var(--nuvile-border,#cad8e7);padding:10px 0}.nv-connections-panel h3{display:flex;align-items:center;gap:8px;margin:0 0 3px;font-size:14px}.nv-connections-panel p{margin:4px 0;color:var(--nuvile-muted,#516680);overflow-wrap:anywhere}.nv-connections-panel small{font-size:11px;color:var(--nuvile-muted,#516680)}.nv-connections-panel footer{border-top:1px solid var(--nuvile-border,#cad8e7);padding-top:10px;display:flex;justify-content:flex-end}.nv-connections-panel [data-check]{background:var(--nuvile-primary,#164ba6);color:white}.nv-connections-panel button:disabled{opacity:.6}.nv-connections-panel button:focus-visible,.nv-user-menu button:focus-visible{outline:2px solid var(--nuvile-primary,#164ba6);outline-offset:2px}
@media(max-width:1100px){#workspace .nv-compact-header .nv-connections button{padding-inline:4px;font-size:11px}#workspace .nv-compact-header .nv-branch-switch{max-width:150px}}
@media(max-width:800px){#workspace .workspace-header.nv-compact-header{display:grid;grid-template-columns:30px minmax(0,1fr) 36px 42px;grid-template-rows:34px 32px;gap:4px;height:80px;min-height:80px;padding:5px 8px}#workspace .nv-compact-header #toggle-menu{grid-column:1;grid-row:1;width:30px;height:32px;min-height:32px;padding:3px}.nv-compact-header .workspace-identity{grid-column:2;grid-row:1;min-width:0}#workspace .nv-compact-header .nn-bell{grid-column:3;grid-row:1;min-width:32px;padding:5px}#workspace .nv-compact-header .nv-user-trigger{grid-column:4;grid-row:1;height:32px;min-height:32px;padding:3px;font-size:11px}#workspace .nv-compact-header .nv-branch-switch{grid-column:1/3;grid-row:2;justify-self:start;max-width:100px;font-size:11px;padding:3px 5px;height:30px;min-height:30px}#workspace .nv-compact-header .nv-connections{grid-column:2/4;grid-row:2;justify-self:end;gap:0}#workspace .nv-compact-header .nv-connections button{font-size:10px;padding:3px;height:30px;min-height:30px;gap:3px}#workspace .nv-compact-header #nuvile-help-launch{grid-column:4;grid-row:2;width:38px;padding:3px;height:30px;min-height:30px;font-size:0}#workspace .nv-compact-header #nuvile-help-launch svg{width:17px}.nv-connections-panel{right:8px;top:88px;max-height:calc(100dvh - 100px);max-width:calc(100vw - 16px)}#workspace .nv-compact-header .nv-user-menu{top:40px;grid-column:auto;grid-row:auto}}

@media(max-width:800px){#workspace .nv-compact-header .nv-branch-switch{grid-column:1/4;max-width:calc(100% - 225px);min-width:0;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#workspace .nv-compact-header .nv-connections{grid-column:1/4}}

@media(max-width:800px){#workspace .nv-compact-header #nuvile-help-launch span{display:none}}
@media(max-width:800px){#workspace .nv-compact-header #toggle-menu{min-width:30px}#workspace .nv-compact-header .nv-user-trigger{min-width:36px}}

@media(max-width:800px){#workspace .nv-compact-header .nv-connections button{min-width:0}}
@media(max-width:800px){#workspace .nv-compact-header .nv-connections button{font-size:11px!important}#workspace .nv-compact-header .nv-branch-switch{font-size:11px!important}#workspace .nv-compact-header #active-company{font-size:12px!important}#workspace .nv-compact-header .nv-user-trigger{font-size:11px!important}} @media(min-width:801px){#workspace .nv-compact-header .workspace-identity{flex:0 1 320px}#workspace .nv-compact-header .nv-branch-switch{margin-right:auto}}
@layer nuvile-legibility { #workspace .workspace-header.nv-compact-header button{font-size:12px!important} @media(max-width:800px){#workspace .workspace-header.nv-compact-header .nv-connections button,#workspace .workspace-header.nv-compact-header .nv-branch-switch{font-size:11px!important}} }
#workspace .nv-compact-header .nv-connections button,#workspace .nv-compact-header .nv-user-trigger,#workspace .nv-compact-header .nv-user-menu button,.nv-user-menu{color:var(--nuvile-ink,#20344e)}

.nv-connections-panel:has([data-window-help]) [data-help-panel]{display:none}

.nv-connections button.nv-arca-alert { color:#ffd697; background:#322b23; border:1px solid #966731; border-radius:7px; gap:.55em; padding:.35em .65em; white-space:normal; }
.nv-arca-alert .nv-arca-detail { border-inline-start:1px solid #966731; padding-inline-start:.5em; white-space:nowrap; }
@media (max-width:600px){ .nv-arca-alert .nv-arca-detail { display:none; } }
