.aq-role-tools {
  display:flex; flex-wrap:wrap; gap:.5rem; margin:.65rem 0 1.15rem; align-items:stretch;
}
.aq-role-tools .aq-role-action {
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  box-sizing:border-box; min-height:42px; padding:.5rem .86rem; border-radius:12px;
  background:#10353d; border:1px solid #78afa644; color:#dbecea;
  text-decoration:none; font-family:inherit;
  font-size:.91rem; font-weight:600; line-height:1.2; cursor:pointer;
}
.aq-role-tools .aq-role-ai { color:#f2dec1; background:#123d43; border-color:#c0ad856b; }
.aq-role-tools .aq-role-action svg {flex:none;}
.aq-role-tools .aq-role-action:focus-visible {outline:2px solid #cce9dd; outline-offset:3px;}
@media(hover:hover){.aq-role-tools .aq-role-action:hover {background:#16464d; border-color:#adcac4;}}
.aq-role-tools.aq-role-menu {margin:0 0 .9rem;}
@media(max-width:520px){
  .aq-role-tools {gap:.42rem;}
  .aq-role-tools .aq-role-action {min-height:44px; padding:.48rem .67rem; font-size:.82rem;}
}

.page-family .workspace,
.page-family .content,
.page-family .grid > * {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}
.page-family .profile-switch { flex-wrap: wrap; }
.page-family :is(.profile-switch button, .big-profile > div, .result-line > div) {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .page-family .main-grid { grid-template-columns: minmax(0, 1fr); }
  .page-family .inline.between { flex-wrap: wrap; }
}
