/* System navigation lives in the header; administration stays in Users. */
.one-systems-switch { position:relative; flex:0 0 auto; }
.one-systems-toggle { display:flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:8px 12px; border:1px solid var(--border, #d7dce3); border-radius:10px; background:var(--panel, #fff); color:var(--text, #18212c); cursor:pointer; font:inherit; }
.one-systems-toggle > span:first-child { font-size:22px; line-height:1; }
.one-systems-toggle:focus-visible, .one-systems-menu a:focus-visible { outline:2px solid var(--blue, #2563eb); outline-offset:2px; }
.one-systems-menu { position:absolute; z-index:30; top:calc(100% + 7px); right:0; width:260px; max-width:calc(100vw - 24px); max-height:calc(100dvh - 80px); overflow:auto; padding:6px; border:1px solid var(--border, #d7dce3); border-radius:12px; background:var(--panel, #fff); box-shadow:0 12px 32px #10223826; }
.one-systems-menu[hidden] { display:none; }
.one-systems-menu a { display:flex; align-items:center; gap:8px; min-height:44px; padding:10px 12px; border-radius:7px; color:var(--text, #18212c); text-decoration:none; overflow-wrap:anywhere; }
.one-systems-menu a:hover, .one-systems-menu a[aria-current] { background:var(--blue-soft, #eef4ff); }
.one-systems-menu a[aria-current]::after { content:'✓'; margin-left:auto; color:var(--blue, #2563eb); }
.access-account-row.one-system-user-row { grid-template-columns:minmax(0,1fr) auto auto; }
.one-grant-active {display:flex;gap:8px;align-items:center;margin:16px 0;}
.one-grant-rights {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border:1px solid #d7dce3;border-radius:8px;padding:12px;}
.one-grant-rights label {display:flex;align-items:center;gap:8px;}
@media(max-width:760px){
  /* The production badge is fixed above the header; reserve the system button slot. */
  .topbar:has(.one-systems-switch) .deployment-badge:not([hidden]) { max-width:calc(100vw - 232px); }
  .one-systems-toggle { width:44px; height:44px; padding:0; }
  .one-systems-label, .one-systems-arrow { display:none; }
  .one-systems-menu { position:fixed; top:calc(51px + env(safe-area-inset-top)); right:12px; }
  .topbar:has(.one-systems-switch) .mobile-wordmark { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; }
  .access-account-row.one-system-user-row { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding-bottom:10px; }
  .one-system-user-row > .access-account { grid-column:1 / -1; min-width:0; }
  .one-system-user-row > .quiet-btn { min-height:44px; white-space:normal; }
}
@media(max-width:600px){.one-grant-rights{grid-template-columns:1fr;}}
